@intent-hq/web 2.340.0 → 2.340.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Ckl7Uv0g.js → 2zJzFf0n.js} +1 -1
  3. package/web/app/immutable/chunks/{CdjCvvRy.js → 3ihzYB3B.js} +1 -1
  4. package/web/app/immutable/chunks/{BuGsU4Hb.js → 6ttgZXCo.js} +1 -1
  5. package/web/app/immutable/chunks/{Tx4_gQCC.js → B0JwRbGv.js} +1 -1
  6. package/web/app/immutable/chunks/{DVOhk-mH.js → B12_oQah.js} +1 -1
  7. package/web/app/immutable/chunks/{ehgj4JGx.js → B2skdn5r.js} +1 -1
  8. package/web/app/immutable/chunks/{88XLDyYp.js → B629omcp.js} +1 -1
  9. package/web/app/immutable/chunks/{Dqh0mE9o.js → B6HDg_5J.js} +1 -1
  10. package/web/app/immutable/chunks/{4-D_C5ka.js → B6uczKwF.js} +1 -1
  11. package/web/app/immutable/chunks/{BUnB6-PL.js → BHCa2aqv.js} +1 -1
  12. package/web/app/immutable/chunks/{Cp6MJgUQ.js → BKKe6SMA.js} +1 -1
  13. package/web/app/immutable/chunks/{OWacZ7rY.js → BKUbnlfv.js} +1 -1
  14. package/web/app/immutable/chunks/{DNjH2AoR.js → BKpkQXOc.js} +1 -1
  15. package/web/app/immutable/chunks/{CBRnEjo_.js → BOGwjwyV.js} +9 -9
  16. package/web/app/immutable/chunks/{DTeENtoH.js → BOmiP_-J.js} +1 -1
  17. package/web/app/immutable/chunks/{BqTJBVj_.js → BOtVBIUd.js} +1 -1
  18. package/web/app/immutable/chunks/{CwA_zBFP.js → BP8RauO6.js} +1 -1
  19. package/web/app/immutable/chunks/{CncyYpim.js → BQs4fy4w.js} +1 -1
  20. package/web/app/immutable/chunks/{C7qqZ7Np.js → BRiNStAc.js} +1 -1
  21. package/web/app/immutable/chunks/{CDfuNZ37.js → BSUYxR6-.js} +1 -1
  22. package/web/app/immutable/chunks/{C-JYxEbU.js → BT0AWaPh.js} +3 -3
  23. package/web/app/immutable/chunks/{Cm7nTtW_.js → BTJSEmEn.js} +1 -1
  24. package/web/app/immutable/chunks/{BupBV4w0.js → BV-BZKII.js} +2 -2
  25. package/web/app/immutable/chunks/{CIcEE2lZ.js → BV3g1ev7.js} +1 -1
  26. package/web/app/immutable/chunks/{CW0EpZDE.js → BVFbqz97.js} +1 -1
  27. package/web/app/immutable/chunks/{vkW9Qpvz.js → BYs9_cNF.js} +1 -1
  28. package/web/app/immutable/chunks/{CKecBSOS.js → Bd_6HBKD.js} +1 -1
  29. package/web/app/immutable/chunks/{CUGyz-GO.js → BkpX4I_T.js} +1 -1
  30. package/web/app/immutable/chunks/{PnL1aKrA.js → Bm0Jd9kY.js} +3 -3
  31. package/web/app/immutable/chunks/{D71s6lTD.js → BpBwsbt_.js} +1 -1
  32. package/web/app/immutable/chunks/{D2F6GQPQ.js → BrvQxJce.js} +1 -1
  33. package/web/app/immutable/chunks/{D9JDkiGX.js → C1r7a25c.js} +4 -4
  34. package/web/app/immutable/chunks/{CoNImpwm.js → C4hcrWw4.js} +1 -1
  35. package/web/app/immutable/chunks/{J8XZPrPt.js → CBjTuKEK.js} +1 -1
  36. package/web/app/immutable/chunks/{B7VTWE2s.js → CDOqg_hD.js} +1 -1
  37. package/web/app/immutable/chunks/{CmPnZSPM.js → CDW-i6Fv.js} +1 -1
  38. package/web/app/immutable/chunks/{CqhQxn7l.js → CEUkKgnH.js} +1 -1
  39. package/web/app/immutable/chunks/{L3UjiXrj.js → CFLRL0EB.js} +1 -1
  40. package/web/app/immutable/chunks/{DdCxE_Xs.js → CJ1Z6bNT.js} +1 -1
  41. package/web/app/immutable/chunks/{Cm75qM7a.js → CJXwbq2U.js} +1 -1
  42. package/web/app/immutable/chunks/{_M-5y_H6.js → CN8OUXe_.js} +1 -1
  43. package/web/app/immutable/chunks/{Ds_1J_Ua.js → CNa7ysF4.js} +1 -1
  44. package/web/app/immutable/chunks/{Dx_O9X_g.js → CSUwzpGH.js} +2 -2
  45. package/web/app/immutable/chunks/{CXdPB1q8.js → CTZWroek.js} +1 -1
  46. package/web/app/immutable/chunks/{Bb42C1jx.js → CUbDjN6V.js} +2 -2
  47. package/web/app/immutable/chunks/{CA611i5V.js → Cb7uUz2R.js} +12 -12
  48. package/web/app/immutable/chunks/{CWFv5PT5.js → CclH1YIh.js} +1 -1
  49. package/web/app/immutable/chunks/{CcYvO5fW.js → Cdee4hLo.js} +1 -1
  50. package/web/app/immutable/chunks/{C7kkK1tY.js → Cdt3Os_E.js} +1 -1
  51. package/web/app/immutable/chunks/{DT1if45V.js → Ce-M4Yet.js} +1 -1
  52. package/web/app/immutable/chunks/{Bkc-9cJz.js → ChqVaW7F.js} +1 -1
  53. package/web/app/immutable/chunks/{BckkEJUR.js → Clh-uN2S.js} +1 -1
  54. package/web/app/immutable/chunks/{CxPlqAY_.js → CnsvCPbt.js} +1 -1
  55. package/web/app/immutable/chunks/{C2TVch-A.js → CoJ-IYbA.js} +1 -1
  56. package/web/app/immutable/chunks/{i_iuhbAO.js → CoN6faAY.js} +1 -1
  57. package/web/app/immutable/chunks/{CjYiS2Dd.js → Co_CDc_C.js} +1 -1
  58. package/web/app/immutable/chunks/{BuWw_qLX.js → CpVL4p4g.js} +1 -1
  59. package/web/app/immutable/chunks/{Cp-LTiNq.js → Ct_jn4oi.js} +4 -4
  60. package/web/app/immutable/chunks/{CO-56D0z.js → Ct_wErwu.js} +1 -1
  61. package/web/app/immutable/chunks/{6UoLYB73.js → Cu6cQ3bz.js} +1 -1
  62. package/web/app/immutable/chunks/{2s5YLexB.js → Cu9Chmho.js} +1 -1
  63. package/web/app/immutable/chunks/{CEKZLvrJ.js → CvCi5Zre.js} +1 -1
  64. package/web/app/immutable/chunks/{CAV_oAtD.js → CxflQmTv.js} +1 -1
  65. package/web/app/immutable/chunks/{C3Vm0B6o.js → CyZEXqMD.js} +1 -1
  66. package/web/app/immutable/chunks/{DQhpUNCJ.js → CzQ1bq5z.js} +1 -1
  67. package/web/app/immutable/chunks/{DcVJXt83.js → D-FQTs8G.js} +1 -1
  68. package/web/app/immutable/chunks/{k7kBuPkp.js → D0plQxho.js} +1 -1
  69. package/web/app/immutable/chunks/{DWcO-zLg.js → D3TakY94.js} +1 -1
  70. package/web/app/immutable/chunks/{J_N0r9J9.js → D69jpRoN.js} +1 -1
  71. package/web/app/immutable/chunks/{oudOPrje.js → D6o1s9ud.js} +1 -1
  72. package/web/app/immutable/chunks/{rhZ58jO5.js → DCnpOMJV.js} +1 -1
  73. package/web/app/immutable/chunks/{8uAH6qHX.js → DFWX4KUv.js} +1 -1
  74. package/web/app/immutable/chunks/{B5IkzLIr.js → DFea2F8i.js} +1 -1
  75. package/web/app/immutable/chunks/{C0Jq4DAw.js → DIRmnyX1.js} +2 -2
  76. package/web/app/immutable/chunks/{YTEWeGok.js → DIkhRMRo.js} +3 -3
  77. package/web/app/immutable/chunks/{CIQ1pc5e.js → DLtPx11_.js} +1 -1
  78. package/web/app/immutable/chunks/{DDZ2OsqF.js → DR9Al9U6.js} +2 -2
  79. package/web/app/immutable/chunks/{CFUk70rP.js → DTO4GWEs.js} +1 -1
  80. package/web/app/immutable/chunks/{C9qmGVAu.js → DTm9Cl9J.js} +1 -1
  81. package/web/app/immutable/chunks/{DJv91LeU.js → DTx3XIeO.js} +1 -1
  82. package/web/app/immutable/chunks/{DwcTeSht.js → DV1cJQP-.js} +1 -1
  83. package/web/app/immutable/chunks/{DdUVLh9Y.js → DXl8wdfL.js} +1 -1
  84. package/web/app/immutable/chunks/{CxwuSVPe.js → D_FmcpdP.js} +3 -3
  85. package/web/app/immutable/chunks/{CGpetF0X.js → DaMaUIGp.js} +1 -1
  86. package/web/app/immutable/chunks/{DLTY4AKt.js → Dd16ARRa.js} +1 -1
  87. package/web/app/immutable/chunks/{CIPg4Oj3.js → DfaM9xoo.js} +1 -1
  88. package/web/app/immutable/chunks/{D9SniPYE.js → DgbXpArF.js} +1 -1
  89. package/web/app/immutable/chunks/{DyZNfCXf.js → DhU8Eiqq.js} +1 -1
  90. package/web/app/immutable/chunks/{BeJjj6hr.js → DhdMmVFs.js} +1 -1
  91. package/web/app/immutable/chunks/{CJ5T9oR0.js → DhnV1b3I.js} +1 -1
  92. package/web/app/immutable/chunks/{BYAS9QfA.js → DkCfIFHY.js} +1 -1
  93. package/web/app/immutable/chunks/{CQwVHpNy.js → Dl2U1Wya.js} +1 -1
  94. package/web/app/immutable/chunks/{0A9zMXP1.js → DlfmDS1W.js} +1 -1
  95. package/web/app/immutable/chunks/{56kThhU_.js → DnHmskem.js} +1 -1
  96. package/web/app/immutable/chunks/{DgmO0YM3.js → DrsfHmYl.js} +1 -1
  97. package/web/app/immutable/chunks/{DfgRQpui.js → DvkwbTMH.js} +3 -3
  98. package/web/app/immutable/chunks/{CGssQRFx.js → JJppOn81.js} +1 -1
  99. package/web/app/immutable/chunks/{CyaIGPPT.js → LwRH1eka.js} +1 -1
  100. package/web/app/immutable/chunks/{DAHVbkwy.js → MI6b3I4g.js} +1 -1
  101. package/web/app/immutable/chunks/{BFrr_NGL.js → MZ-Z8Ci1.js} +1 -1
  102. package/web/app/immutable/chunks/{CaGdQwZd.js → RcUVizw0.js} +1 -1
  103. package/web/app/immutable/chunks/{BwrBLXeH.js → SMiFFPlc.js} +1 -1
  104. package/web/app/immutable/chunks/{DvW23_33.js → Wl6R_9KY.js} +2 -2
  105. package/web/app/immutable/chunks/{afZQ6UAr.js → Yfz2ipIe.js} +1 -1
  106. package/web/app/immutable/chunks/{_StK5_6x.js → _Le3pPaT.js} +1 -1
  107. package/web/app/immutable/chunks/{CAcCYcUh.js → apmshPCT.js} +1 -1
  108. package/web/app/immutable/chunks/{D455gGBd.js → axQU0SjH.js} +1 -1
  109. package/web/app/immutable/chunks/{g3EJS67v.js → h3Utj-6O.js} +1 -1
  110. package/web/app/immutable/chunks/{BsB_ZBpn.js → kniKaj8l.js} +1 -1
  111. package/web/app/immutable/chunks/{DdAHCwW1.js → lS2ZzWyn.js} +2 -2
  112. package/web/app/immutable/chunks/{CxBKFB6m.js → ljddUkNt.js} +1 -1
  113. package/web/app/immutable/chunks/{DdplcBC-.js → mGAn30DI.js} +1 -1
  114. package/web/app/immutable/chunks/{DyzUsn2r.js → meW_HLSI.js} +4 -4
  115. package/web/app/immutable/chunks/{DkbGHDwu.js → pfpEUetK.js} +1 -1
  116. package/web/app/immutable/chunks/{RzGJYCKz.js → tADzjMIa.js} +1 -1
  117. package/web/app/immutable/chunks/{D2OZOSK1.js → uC2D9YWv.js} +2 -2
  118. package/web/app/immutable/chunks/{QhxXN72z.js → ua4ooXEO.js} +1 -1
  119. package/web/app/immutable/chunks/{BnTt2u_d.js → umdNWcd2.js} +1 -1
  120. package/web/app/immutable/chunks/{CcUyq_m7.js → urnpr2FU.js} +1 -1
  121. package/web/app/immutable/chunks/{DTjVtyhg.js → v5cJrXPV.js} +2 -2
  122. package/web/app/immutable/chunks/{EV-Wg10o.js → wruYJWvu.js} +1 -1
  123. package/web/app/immutable/chunks/{YvLIZ0PA.js → zHOhpzbP.js} +1 -1
  124. package/web/app/immutable/entry/{app.Dr0ZNq2A.js → app.BUbsETEC.js} +2 -2
  125. package/web/app/immutable/entry/start.BsxeZxKz.js +1 -0
  126. package/web/app/immutable/nodes/{0.BECiWPST.js → 0.BsmvutDZ.js} +1 -1
  127. package/web/app/immutable/nodes/{1.BnIqeMZ5.js → 1.BrUX48T8.js} +1 -1
  128. package/web/app/immutable/nodes/{10.DQX0bqgQ.js → 10.7J5qVFyy.js} +1 -1
  129. package/web/app/immutable/nodes/{14.RvlaUqh6.js → 14.L6XtNmcg.js} +1 -1
  130. package/web/app/immutable/nodes/{17.CtxxPZdN.js → 17.l75hM3Fb.js} +2 -2
  131. package/web/app/immutable/nodes/{2.ixn1pA-c.js → 2.D42i0GRA.js} +11 -11
  132. package/web/app/immutable/nodes/{3.CkPKjozI.js → 3.BGRV9LT6.js} +1 -1
  133. package/web/app/immutable/nodes/{4.BSXzHHqw.js → 4.BexAoHjn.js} +1 -1
  134. package/web/app/immutable/nodes/{5.CHa0ZTrq.js → 5.Bbv5x2qJ.js} +1 -1
  135. package/web/app/immutable/nodes/{6.DKArX4yH.js → 6.BzVHiMKE.js} +1 -1
  136. package/web/app/immutable/nodes/{7.zaZKNCI8.js → 7.rwtSWtjx.js} +1 -1
  137. package/web/app/immutable/nodes/{8.DODsuOE6.js → 8.D6d_r0Eu.js} +4 -4
  138. package/web/app/immutable/nodes/{9.CDgsFK7C.js → 9.aquGW3ae.js} +4 -4
  139. package/web/app/version.json +1 -1
  140. package/web/index.html +9 -9
  141. package/web/app/immutable/entry/start.BZgIvCjP.js +0 -1
@@ -1,4 +1,4 @@
1
- var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,br as S,a_ as M,bp as P,bz as un,bt as On,b as hn,bv as je}from"./Cv-W__h8.js";import{ai as xr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as H,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as Y,aA as x,ay as ne,bS as y,bl as de,bO as K,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Ln,a as Us,be as Tt,b$ as ft,bf as or}from"./DYhIMPy1.js";import{v as En,u as Ve,n as Pt,p as Hn,I as ir,g as ar,w as lr}from"./DPvDLGgX.js";import{I as cn,F as Ws,c as Bs,t as Rt}from"./j0KL2ItM.js";import{b as on}from"./BaIAhI85.js";import{Ir as Me,eD as Vs,eu as Ks,ev as js,oA as qs,no as Vt,ns as cr,nr as In,ex as Gs,uV as Qs,uW as Xs,uY as Ys,Gv as Zs,Iw as Js,rh as eo,eC as to}from"./DBkMUdAo.js";import{c as no}from"./CueFizU8.js";import{F as Ne,Z as ro,a4 as An,as as dr,at as ur,bO as so,aL as oo,c8 as hr,bV as gr,cl as fr}from"./BKpkoMuv.js";import{dr as io,be as ao,M as lo,aC as mr,i as co}from"./B10dK85Q.js";import{L as pr}from"./DaxXWdI0.js";import{C as an}from"./DypB-Dwi.js";import{b6 as kr,bL as uo,bR as ho}from"./D71s6lTD.js";import{q as $e,d as go,g as fo}from"./DdCxE_Xs.js";import"./ClsZrb8B.js";import{f as ke}from"./BePtUMMB.js";import{e as mo}from"./DdAHCwW1.js";import{T as Pr}from"./vkW9Qpvz.js";import{g as Nn}from"./CmUwI5cU.js";import{C as po}from"./DbYY-d08.js";import{C as vo}from"./DTDbZc--.js";import{s as vr}from"./CmPnZSPM.js";import{t as Dt}from"./D2pEu7en.js";import{P as _o,k as _r}from"./DyzUsn2r.js";import{g as wo}from"./DfD-d1VI.js";import{a6 as bo,W as Co}from"./CW0EpZDE.js";import{ao as yo}from"./YTEWeGok.js";import{L as wr}from"./CxwuSVPe.js";import{ad as So,ac as xo,ae as ko}from"./CA611i5V.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,C=a?l+c*2:b;if(r=Math.max(r,C),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+C,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Lo=[0,1e-6,.99999,1],Ho={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Ho,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Lo,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,C=a+c+p;return!(r<b-l||r>C)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+Kt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:C}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=Kt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=Kt(p,l);if(C==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=Kt(c,l),b=p+c.offsetHeight;let C,A;b<=0?(C=b,A="bottom"):(C=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=Kt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(C>=0&&(a.fileOffset<0||C<a.fileOffset)||C<0&&a.fileOffset<0&&C>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:C,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function Kt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Lr(f,r){if(new.target)return dn({component:Lr,...f});gn(r,!0);const l=()=>je(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=S(r,"change",7),C=S(r,"foldUnchanged",7,!0),A=S(r,"allowHeadReads",7,!0),F=S(r,"canReadHeadFiles",7),G=S(r,"lineWrapping",7,!1),h=S(r,"scrollToLine",7),oe=S(r,"isAggregate",7,!1),Te=S(r,"showScrollHint",7,!1),ue=S(r,"onStageHunk",7),Q=S(r,"onUnstageHunk",7),at=S(r,"onOpenCommit",7),pt=S(r,"virtualizer",7),vt=S(r,"gitRootId",7,void 0),_t=S(r,"gitRootPath",7,void 0);const ve=kr();let Re=Y(!1),Ce=Y(!1),Fe=Y(!1),Ue=Y(0),qe=Y(void 0);const $=80;function ie(){m(Ce,!0)}function De(){m(Ce,!1),m(Fe,!1),m(Ue,0)}function Le(v){!e(Ce)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function jt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(Ce))&&(m(Fe,!1),m(Ue,0))});let Lt=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:Ct,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,Ke="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let yt;return Ke==="committed"?yt=an.Committed:rt?yt=an.Staged:yt=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:yt,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:Ct},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Ht={get change(){return b()},set change(v){b(v),x()},get foldUnchanged(){return C()},set foldUnchanged(v=!0){C(v),x()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),x()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),x()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),x()},get scrollToLine(){return h()},set scrollToLine(v){h(v),x()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),x()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),x()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),x()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),x()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),x()},get virtualizer(){return pt()},set virtualizer(v){pt(v),x()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),x()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),x()},$set:un,$on:(v,_e)=>hn(r,v,_e)},He=To();let wt;var It=N(He);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Lt)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return C()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var Ct=y(Qe,2);{var re=Xe=>{var rt=Eo(),Ke=N(rt),At=N(Ke);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=y(At);H(Ke),H(rt),z(Mt=>K(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(Ct,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(Ct=>K(Qe,Ct),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}H(He),on(He,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(He,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(He,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",He,ie),sn("mouseleave",He,De),sn("wheel",He,Le),ln("focusin",He,jt),ln("focusout",He,qt),w(f,He);var mn=fn(Ht);return c(),mn}xr(["focusin","focusout"]);function Cr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
1
+ var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,br as S,a_ as M,bp as P,bz as un,bt as On,b as hn,bv as je}from"./Cv-W__h8.js";import{ai as xr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as H,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as Y,aA as x,ay as ne,bS as y,bl as de,bO as K,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Ln,a as Us,be as Tt,b$ as ft,bf as or}from"./DYhIMPy1.js";import{v as En,u as Ve,n as Pt,p as Hn,I as ir,g as ar,w as lr}from"./DPvDLGgX.js";import{I as cn,F as Ws,c as Bs,t as Rt}from"./j0KL2ItM.js";import{b as on}from"./BaIAhI85.js";import{Ir as Me,eD as Vs,eu as Ks,ev as js,oA as qs,no as Vt,ns as cr,nr as In,ex as Gs,uV as Qs,uW as Xs,uY as Ys,Gv as Zs,Iw as Js,rh as eo,eC as to}from"./DBkMUdAo.js";import{c as no}from"./CueFizU8.js";import{F as Ne,Z as ro,a4 as An,as as dr,at as ur,bO as so,aL as oo,c8 as hr,bV as gr,cl as fr}from"./BKpkoMuv.js";import{dr as io,be as ao,M as lo,aC as mr,i as co}from"./B10dK85Q.js";import{L as pr}from"./DaxXWdI0.js";import{C as an}from"./DypB-Dwi.js";import{b6 as kr,bL as uo,bR as ho}from"./BpBwsbt_.js";import{q as $e,d as go,g as fo}from"./CJ1Z6bNT.js";import"./ClsZrb8B.js";import{f as ke}from"./BePtUMMB.js";import{e as mo}from"./lS2ZzWyn.js";import{T as Pr}from"./BYs9_cNF.js";import{g as Nn}from"./CmUwI5cU.js";import{C as po}from"./DbYY-d08.js";import{C as vo}from"./DTDbZc--.js";import{s as vr}from"./CDW-i6Fv.js";import{t as Dt}from"./D2pEu7en.js";import{P as _o,k as _r}from"./meW_HLSI.js";import{g as wo}from"./DfD-d1VI.js";import{a6 as bo,W as Co}from"./BVFbqz97.js";import{ao as yo}from"./DIkhRMRo.js";import{L as wr}from"./D_FmcpdP.js";import{ad as So,ac as xo,ae as ko}from"./Cb7uUz2R.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,C=a?l+c*2:b;if(r=Math.max(r,C),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+C,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Lo=[0,1e-6,.99999,1],Ho={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Ho,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Lo,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,C=a+c+p;return!(r<b-l||r>C)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+Kt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:C}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=Kt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=Kt(p,l);if(C==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=Kt(c,l),b=p+c.offsetHeight;let C,A;b<=0?(C=b,A="bottom"):(C=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=Kt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(C>=0&&(a.fileOffset<0||C<a.fileOffset)||C<0&&a.fileOffset<0&&C>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:C,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function Kt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Lr(f,r){if(new.target)return dn({component:Lr,...f});gn(r,!0);const l=()=>je(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=S(r,"change",7),C=S(r,"foldUnchanged",7,!0),A=S(r,"allowHeadReads",7,!0),F=S(r,"canReadHeadFiles",7),G=S(r,"lineWrapping",7,!1),h=S(r,"scrollToLine",7),oe=S(r,"isAggregate",7,!1),Te=S(r,"showScrollHint",7,!1),ue=S(r,"onStageHunk",7),Q=S(r,"onUnstageHunk",7),at=S(r,"onOpenCommit",7),pt=S(r,"virtualizer",7),vt=S(r,"gitRootId",7,void 0),_t=S(r,"gitRootPath",7,void 0);const ve=kr();let Re=Y(!1),Ce=Y(!1),Fe=Y(!1),Ue=Y(0),qe=Y(void 0);const $=80;function ie(){m(Ce,!0)}function De(){m(Ce,!1),m(Fe,!1),m(Ue,0)}function Le(v){!e(Ce)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function jt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(Ce))&&(m(Fe,!1),m(Ue,0))});let Lt=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:Ct,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,Ke="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let yt;return Ke==="committed"?yt=an.Committed:rt?yt=an.Staged:yt=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:yt,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:Ct},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Ht={get change(){return b()},set change(v){b(v),x()},get foldUnchanged(){return C()},set foldUnchanged(v=!0){C(v),x()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),x()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),x()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),x()},get scrollToLine(){return h()},set scrollToLine(v){h(v),x()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),x()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),x()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),x()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),x()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),x()},get virtualizer(){return pt()},set virtualizer(v){pt(v),x()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),x()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),x()},$set:un,$on:(v,_e)=>hn(r,v,_e)},He=To();let wt;var It=N(He);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Lt)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return C()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var Ct=y(Qe,2);{var re=Xe=>{var rt=Eo(),Ke=N(rt),At=N(Ke);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=y(At);H(Ke),H(rt),z(Mt=>K(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(Ct,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(Ct=>K(Qe,Ct),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}H(He),on(He,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(He,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(He,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",He,ie),sn("mouseleave",He,De),sn("wheel",He,Le),ln("focusin",He,jt),ln("focusout",He,qt),w(f,He);var mn=fn(Ht);return c(),mn}xr(["focusin","focusout"]);function Cr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
2
2
  `):[],a=r?r.split(`
3
3
  `):[];if(l.length===0&&a.length===0)return[];const c=[];for(const p of l)c.push({type:"Deletion",content:p});for(const p of a)c.push({type:"Addition",content:p});return[{oldStart:1,oldLines:l.length,newStart:1,newLines:a.length,lines:c}]}function Mo(f){if(!f||f.length===0)return[];const r=[];for(const a of f){let c=a.change.chunks||[];c.length===0&&(a.change.oldContent!=null||a.change.newContent!=null)&&(c=zo(a.change.oldContent??"",a.change.newContent??"")),c.forEach((p,b)=>{r.push({hunk:p,stage:a.category,part:a,hunkIndex:b})})}if(r.length===0)return[];r.sort((a,c)=>a.hunk.newStart-c.hunk.newStart);const l=[];for(const{hunk:a,stage:c,hunkIndex:p}of r){const C=Do(a).map(A=>({type:A.type,content:A.content,oldLineNumber:A.oldLineNumber,newLineNumber:A.newLineNumber,stage:c,hunkIndex:p}));l.push({headStart:a.oldStart,headLines:a.oldLines,wtStart:a.newStart,wtLines:a.newLines,lines:C,stages:new Set([c])})}return $o(l)}function $o(f){if(f.length<=1)return f;const r=[];let l=f[0];for(let a=1;a<f.length;a++){const c=f[a],p=l.wtStart+l.wtLines;c.wtStart<=p+3?l=Fo(l,c):(r.push(l),l=c)}return r.push(l),r}function Fo(f,r){const l=new Map,a=new Map,c=new Set;for(const h of f.lines)c.add(Cr(h)),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h);const p=[...f.lines];for(const h of r.lines){const oe=Cr(h);if(!c.has(oe)){if(h.type==="Context"){const Te=h.newLineNumber!==void 0?l.get(h.newLineNumber):void 0,ue=h.oldLineNumber!==void 0?a.get(h.oldLineNumber):void 0;if(Te?.type==="Context"||ue?.type==="Context"){c.add(oe);continue}}p.push(h),c.add(oe),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h)}}p.sort((h,oe)=>{const Te=h.newLineNumber??h.oldLineNumber??0,ue=oe.newLineNumber??oe.oldLineNumber??0;return Te-ue});const b=new Set([...f.stages,...r.stages]),C=Math.min(f.headStart,r.headStart),A=Math.min(f.wtStart,r.wtStart),F=Math.max(f.headStart+f.headLines,r.headStart+r.headLines),G=Math.max(f.wtStart+f.wtLines,r.wtStart+r.wtLines);return{headStart:C,headLines:F-C,wtStart:A,wtLines:G-A,lines:p,stages:b}}function Uo(f){const r=[],l=[];let a=f[0]?.headStart??1,c=f[0]?.wtStart??1;const p=(b,C,A)=>{let F=C;for(;F<A;)b.push(""),F++;return F};for(const b of f){a=p(r,a,b.headStart),c=p(l,c,b.wtStart);for(const C of b.lines)C.type==="Context"?(C.oldLineNumber!==void 0&&(a=p(r,a,C.oldLineNumber)),C.newLineNumber!==void 0&&(c=p(l,c,C.newLineNumber)),r.push(C.content),l.push(C.content),a++,c++):C.type==="Deletion"?(C.oldLineNumber!==void 0&&(a=p(r,a,C.oldLineNumber)),r.push(C.content),a++):C.type==="Addition"&&(C.newLineNumber!==void 0&&(c=p(l,c,C.newLineNumber)),l.push(C.content),c++)}return{oldContent:r.join(`
4
4
  `),newContent:l.join(`
@@ -1,4 +1,4 @@
1
- import{g as Ni}from"./C7qqZ7Np.js";import{s as Ci}from"./J_N0r9J9.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"./Cp-LTiNq.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"./BRiNStAc.js";import{s as Ci}from"./D69jpRoN.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"./Ct_jn4oi.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,4 +1,4 @@
1
- import{g as ie}from"./C7qqZ7Np.js";import{s as re}from"./J_N0r9J9.js";import{b as p,ay as b,X as $,a1 as ae,aP as ne,bh as oe,V as le,a_ as ce,U as he,aZ as de,b0 as ue,Y as fe,T as pe,z as j,r as Se,aW as vt,am as ge,aU as ye,ab as me,aG as Te}from"./Cp-LTiNq.js";import{c as Ee}from"./L3UjiXrj.js";import{aP as _e}from"./D71s6lTD.js";var At=(function(){var t=p(function(V,o,f,n){for(f=f||{},n=V.length;n--;f[V[n]]=o);return f},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],c=[1,9],h=[1,11],u=[1,16],l=[1,17],m=[1,18],y=[1,19],_=[1,33],L=[1,20],R=[1,21],D=[1,22],S=[1,23],w=[1,24],C=[1,26],F=[1,27],I=[1,28],P=[1,29],v=[1,30],z=[1,31],at=[1,32],nt=[1,35],ot=[1,36],lt=[1,37],ct=[1,38],K=[1,34],g=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ht=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],It=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,f,n,T,E,i,B){var d=i.length-1;switch(E){case 3:return T.setRootDoc(i[d]),i[d];case 4:this.$=[];break;case 5:i[d]!="nl"&&(i[d-1].push(i[d]),this.$=i[d-1]);break;case 6:case 7:this.$=i[d];break;case 8:this.$="nl";break;case 12:this.$=i[d];break;case 13:const Q=i[d-1];Q.description=T.trimColon(i[d]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[d-2],state2:i[d]};break;case 15:const Tt=T.trimColon(i[d]);this.$={stmt:"relation",state1:i[d-3],state2:i[d-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[d-3],type:"default",description:"",doc:i[d-1]};break;case 20:var G=i[d],X=i[d-2].trim();if(i[d].match(":")){var ut=i[d].split(":");G=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:G,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[d-3],type:"default",description:i[d-5],doc:i[d-1]};break;case 22:this.$={stmt:"state",id:i[d],type:"fork"};break;case 23:this.$={stmt:"state",id:i[d],type:"join"};break;case 24:this.$={stmt:"state",id:i[d],type:"choice"};break;case 25:this.$={stmt:"state",id:T.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[d-1].trim(),note:{position:i[d-2].trim(),text:i[d].trim()}};break;case 29:this.$=i[d].trim(),T.setAccTitle(this.$);break;case 30:case 31:this.$=i[d].trim(),T.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[d-3],url:i[d-2],tooltip:i[d-1]};break;case 33:this.$={stmt:"click",id:i[d-3],url:i[d-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[d-1].trim(),classes:i[d].trim()};break;case 36:this.$={stmt:"style",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 37:this.$={stmt:"applyClass",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 38:T.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:T.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:T.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:T.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[d].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:R,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:R,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,7]),t(g,[2,8]),t(g,[2,9]),t(g,[2,10]),t(g,[2,11]),t(g,[2,12],{14:[1,40],15:[1,41]}),t(g,[2,16]),{18:[1,42]},t(g,[2,18],{20:[1,43]}),{23:[1,44]},t(g,[2,22]),t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(g,[2,28]),{34:[1,49]},{36:[1,50]},t(g,[2,31]),{13:51,24:_,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ht,[2,44],{58:[1,56]}),t(ht,[2,45],{58:[1,57]}),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,41]),t(g,[2,6]),t(g,[2,13]),{13:58,24:_,57:K},t(g,[2,17]),t(It,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(g,[2,29]),t(g,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(g,[2,14],{14:[1,71]}),{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,72],22:y,24:_,25:L,26:R,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(g,[2,34]),t(g,[2,35]),t(g,[2,36]),t(g,[2,37]),t(ht,[2,46]),t(ht,[2,47]),t(g,[2,15]),t(g,[2,19]),t(It,r,{7:78}),t(g,[2,26]),t(g,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,81],22:y,24:_,25:L,26:R,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,32]),t(g,[2,33]),t(g,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,f){if(f.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=f,n}},"parseError"),parse:p(function(o){var f=this,n=[0],T=[],E=[null],i=[],B=this.table,d="",G=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(W.yy[Et]=this.yy[Et]);k.setInput(o,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var ee=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(N){n.length=n.length-2*N,E.length=E.length-N,i.length=i.length-N}p(se,"popStack");function Nt(){var N;return N=T.pop()||k.lex()||Q,typeof N!="number"&&(N instanceof Array&&(T=N,N=T.pop()),N=f.symbols_[N]||N),N}p(Nt,"lex");for(var x,U,O,bt,J={},ft,Y,Rt,pt;;){if(U=n[n.length-1],this.defaultActions[U]?O=this.defaultActions[U]:((x===null||typeof x>"u")&&(x=Nt()),O=B[U]&&B[U][x]),typeof O>"u"||!O.length||!O[0]){var kt="";pt=[];for(ft in B[U])this.terminals_[ft]&&ft>ut&&pt.push("'"+this.terminals_[ft]+"'");k.showPosition?kt="Parse error on line "+(G+1)+`:
1
+ import{g as ie}from"./BRiNStAc.js";import{s as re}from"./D69jpRoN.js";import{b as p,ay as b,X as $,a1 as ae,aP as ne,bh as oe,V as le,a_ as ce,U as he,aZ as de,b0 as ue,Y as fe,T as pe,z as j,r as Se,aW as vt,am as ge,aU as ye,ab as me,aG as Te}from"./Ct_jn4oi.js";import{c as Ee}from"./CFLRL0EB.js";import{aP as _e}from"./BpBwsbt_.js";var At=(function(){var t=p(function(V,o,f,n){for(f=f||{},n=V.length;n--;f[V[n]]=o);return f},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],c=[1,9],h=[1,11],u=[1,16],l=[1,17],m=[1,18],y=[1,19],_=[1,33],L=[1,20],R=[1,21],D=[1,22],S=[1,23],w=[1,24],C=[1,26],F=[1,27],I=[1,28],P=[1,29],v=[1,30],z=[1,31],at=[1,32],nt=[1,35],ot=[1,36],lt=[1,37],ct=[1,38],K=[1,34],g=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ht=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],It=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,f,n,T,E,i,B){var d=i.length-1;switch(E){case 3:return T.setRootDoc(i[d]),i[d];case 4:this.$=[];break;case 5:i[d]!="nl"&&(i[d-1].push(i[d]),this.$=i[d-1]);break;case 6:case 7:this.$=i[d];break;case 8:this.$="nl";break;case 12:this.$=i[d];break;case 13:const Q=i[d-1];Q.description=T.trimColon(i[d]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[d-2],state2:i[d]};break;case 15:const Tt=T.trimColon(i[d]);this.$={stmt:"relation",state1:i[d-3],state2:i[d-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[d-3],type:"default",description:"",doc:i[d-1]};break;case 20:var G=i[d],X=i[d-2].trim();if(i[d].match(":")){var ut=i[d].split(":");G=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:G,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[d-3],type:"default",description:i[d-5],doc:i[d-1]};break;case 22:this.$={stmt:"state",id:i[d],type:"fork"};break;case 23:this.$={stmt:"state",id:i[d],type:"join"};break;case 24:this.$={stmt:"state",id:i[d],type:"choice"};break;case 25:this.$={stmt:"state",id:T.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[d-1].trim(),note:{position:i[d-2].trim(),text:i[d].trim()}};break;case 29:this.$=i[d].trim(),T.setAccTitle(this.$);break;case 30:case 31:this.$=i[d].trim(),T.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[d-3],url:i[d-2],tooltip:i[d-1]};break;case 33:this.$={stmt:"click",id:i[d-3],url:i[d-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[d-1].trim(),classes:i[d].trim()};break;case 36:this.$={stmt:"style",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 37:this.$={stmt:"applyClass",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 38:T.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:T.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:T.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:T.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[d].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:R,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:R,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,7]),t(g,[2,8]),t(g,[2,9]),t(g,[2,10]),t(g,[2,11]),t(g,[2,12],{14:[1,40],15:[1,41]}),t(g,[2,16]),{18:[1,42]},t(g,[2,18],{20:[1,43]}),{23:[1,44]},t(g,[2,22]),t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(g,[2,28]),{34:[1,49]},{36:[1,50]},t(g,[2,31]),{13:51,24:_,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ht,[2,44],{58:[1,56]}),t(ht,[2,45],{58:[1,57]}),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,41]),t(g,[2,6]),t(g,[2,13]),{13:58,24:_,57:K},t(g,[2,17]),t(It,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(g,[2,29]),t(g,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(g,[2,14],{14:[1,71]}),{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,72],22:y,24:_,25:L,26:R,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(g,[2,34]),t(g,[2,35]),t(g,[2,36]),t(g,[2,37]),t(ht,[2,46]),t(ht,[2,47]),t(g,[2,15]),t(g,[2,19]),t(It,r,{7:78}),t(g,[2,26]),t(g,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,81],22:y,24:_,25:L,26:R,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,32]),t(g,[2,33]),t(g,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,f){if(f.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=f,n}},"parseError"),parse:p(function(o){var f=this,n=[0],T=[],E=[null],i=[],B=this.table,d="",G=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(W.yy[Et]=this.yy[Et]);k.setInput(o,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var ee=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(N){n.length=n.length-2*N,E.length=E.length-N,i.length=i.length-N}p(se,"popStack");function Nt(){var N;return N=T.pop()||k.lex()||Q,typeof N!="number"&&(N instanceof Array&&(T=N,N=T.pop()),N=f.symbols_[N]||N),N}p(Nt,"lex");for(var x,U,O,bt,J={},ft,Y,Rt,pt;;){if(U=n[n.length-1],this.defaultActions[U]?O=this.defaultActions[U]:((x===null||typeof x>"u")&&(x=Nt()),O=B[U]&&B[U][x]),typeof O>"u"||!O.length||!O[0]){var kt="";pt=[];for(ft in B[U])this.terminals_[ft]&&ft>ut&&pt.push("'"+this.terminals_[ft]+"'");k.showPosition?kt="Parse error on line "+(G+1)+`:
2
2
  `+k.showPosition()+`
3
3
  Expecting `+pt.join(", ")+", got '"+(this.terminals_[x]||x)+"'":kt="Parse error on line "+(G+1)+": Unexpected "+(x==Q?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(kt,{text:k.match,token:this.terminals_[x]||x,line:k.yylineno,loc:_t,expected:pt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+x);switch(O[0]){case 1:n.push(x),E.push(k.yytext),i.push(k.yylloc),n.push(O[1]),x=null,X=k.yyleng,d=k.yytext,G=k.yylineno,_t=k.yylloc;break;case 2:if(Y=this.productions_[O[1]][1],J.$=E[E.length-Y],J._$={first_line:i[i.length-(Y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Y||1)].first_column,last_column:i[i.length-1].last_column},ee&&(J._$.range=[i[i.length-(Y||1)].range[0],i[i.length-1].range[1]]),bt=this.performAction.apply(J,[d,X,G,W.yy,O[1],E,i].concat(Tt)),typeof bt<"u")return bt;Y&&(n=n.slice(0,-1*Y*2),E=E.slice(0,-1*Y),i=i.slice(0,-1*Y)),n.push(this.productions_[O[1]][0]),E.push(J.$),i.push(J._$),Rt=B[n[n.length-2]][n[n.length-1]],n.push(Rt);break;case 3:return!0}}return!0},"parse")},te=(function(){var V={EOF:1,parseError:p(function(f,n){if(this.yy.parser)this.yy.parser.parseError(f,n);else throw new Error(f)},"parseError"),setInput:p(function(o,f){return this.yy=f||this.yy||{},this._input=o,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:p(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var f=o.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:p(function(o){var f=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var T=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var 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:n?(n.length===T.length?this.yylloc.first_column:0)+T[T.length-n.length].length-n[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(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:p(function(o){this.unput(this.match.slice(o))},"less"),pastInput:p(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var o=this.pastInput(),f=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{t as lt,br as $,a_ as y,bz as pt,bt as dt,b as mt,bv as S,bp as T}from"./Cv-W__h8.js";import{bs as ut,ca as A,aD as e,bj as ft,a7 as f,ay as l,W as p,bn as _t,c9 as _,cd as z,aA as k,bS as vt,aB as gt}from"./DYhIMPy1.js";import{G}from"./GdlMbZRO.js";import{c as H}from"./D4os-974.js";import{as as bt,cN as It}from"./BKpkoMuv.js";import{dl as $t,dK as St}from"./B10dK85Q.js";import{S as kt,c as Ct}from"./oudOPrje.js";import{selectScriptById as ht,selectCanDeleteScript as wt}from"./C9qmGVAu.js";import"./DPvDLGgX.js";import"./ClsZrb8B.js";import"./BePtUMMB.js";import"./BvDMLNjQ.js";import{M as K}from"./C-SF0TBp.js";import{g as xt}from"./DfN8_dcw.js";import{T as yt}from"./CBRnEjo_.js";import{Ir as D,Cx as Tt,uN as At,gL as Dt}from"./DBkMUdAo.js";var Bt=gt("<!> <!>",1);function Wt(B,c){if(new.target)return lt({component:Wt,...B});ut(c,!0);const v=()=>S(E,"$fullContext$",g),L=()=>S(Q,"$canDeleteScript$",g),P=()=>S(F,"$scriptContext$",g),R=()=>S(J,"$script$",g),[g,V]=dt(),q=t=>{var r=f(),n=l(r);{var m=w=>{var O=Bt(),j=l(O);{let u=_(()=>T.workspace_shell_showInBottomBar_tooltip());H(j,()=>K,(I,x)=>{x(I,{get icon(){return bt},get label(){return e(u)},onclick:X,"data-move-to-bottom-bar":!0})})}var at=vt(j,2);{var st=u=>{var I=f(),x=l(I);{let ot=_(()=>T.scripts_delete_label()),nt=_(()=>L()?void 0:T.scripts_delete_disabled_description());H(x,()=>K,(ct,it)=>{it(ct,{get icon(){return It},get label(){return e(ot)},destructive:!0,get disabledReason(){return e(nt)},onclick:U})})}p(u,I)};y(at,u=>{e(s)&&u(st)})}p(w,O)};y(n,w=>{v()&&w(m)})}p(t,r)};let o=$(c,"tab",7),a=$(c,"workspaceId",7),C=$(c,"layoutId",7),i=$(c,"isActive",7);const b=_(()=>o().terminalId),s=_(()=>o().scriptId),W=xt(),d=z(""),h=z("");A(()=>d.set(a())),A(()=>h.set(e(s)??""));const E=$t(d),F=St(d),J=ht(d,h),Q=wt(d,h);let M=!0;ft(()=>{M=!1});function U(){if(!e(s))return;const t=a(),r=e(s),n=o().id;return Ct(t,r,()=>M&&i()&&a()===t&&e(s)===r&&o().id===n)}function X(){v()&&(e(s)&&D.dispatch(Tt(a(),e(s))),D.dispatch(At(a(),e(b))),D.dispatch(Dt(C()??a(),o().id)))}A(()=>{if(!(!W||!i()))return W.registerActions({actions:q})});var Y={get tab(){return o()},set tab(t){o(t),k()},get workspaceId(){return a()},set workspaceId(t){a(t),k()},get layoutId(){return C()},set layoutId(t){C(t),k()},get isActive(){return i()},set isActive(t){i(t),k()},$set:pt,$on:(t,r)=>mt(c,t,r)},N=f(),Z=l(N);{var tt=t=>{var r=f(),n=l(r);G(n,()=>e(s),m=>{kt(m,{get scriptId(){return e(s)},get workspaceId(){return a()},class:"h-full"})}),p(t,r)},et=t=>{var r=f(),n=l(r);G(n,()=>e(b),m=>{yt(m,{get terminalId(){return e(b)},get workspaceId(){return a()},class:"h-full"})}),p(t,r)};y(Z,t=>{e(s)&&i()&&P()&&(v()||R())?t(tt):e(b)&&i()&&v()&&t(et,1)})}p(B,N);var rt=_t(Y);return V(),rt}export{Wt as default};
1
+ import{t as lt,br as $,a_ as y,bz as pt,bt as dt,b as mt,bv as S,bp as T}from"./Cv-W__h8.js";import{bs as ut,ca as A,aD as e,bj as ft,a7 as f,ay as l,W as p,bn as _t,c9 as _,cd as z,aA as k,bS as vt,aB as gt}from"./DYhIMPy1.js";import{G}from"./GdlMbZRO.js";import{c as H}from"./D4os-974.js";import{as as bt,cN as It}from"./BKpkoMuv.js";import{dl as $t,dK as St}from"./B10dK85Q.js";import{S as kt,c as Ct}from"./D6o1s9ud.js";import{selectScriptById as ht,selectCanDeleteScript as wt}from"./DTm9Cl9J.js";import"./DPvDLGgX.js";import"./ClsZrb8B.js";import"./BePtUMMB.js";import"./BvDMLNjQ.js";import{M as K}from"./C-SF0TBp.js";import{g as xt}from"./DfN8_dcw.js";import{T as yt}from"./BOGwjwyV.js";import{Ir as D,Cx as Tt,uN as At,gL as Dt}from"./DBkMUdAo.js";var Bt=gt("<!> <!>",1);function Wt(B,c){if(new.target)return lt({component:Wt,...B});ut(c,!0);const v=()=>S(E,"$fullContext$",g),L=()=>S(Q,"$canDeleteScript$",g),P=()=>S(F,"$scriptContext$",g),R=()=>S(J,"$script$",g),[g,V]=dt(),q=t=>{var r=f(),n=l(r);{var m=w=>{var O=Bt(),j=l(O);{let u=_(()=>T.workspace_shell_showInBottomBar_tooltip());H(j,()=>K,(I,x)=>{x(I,{get icon(){return bt},get label(){return e(u)},onclick:X,"data-move-to-bottom-bar":!0})})}var at=vt(j,2);{var st=u=>{var I=f(),x=l(I);{let ot=_(()=>T.scripts_delete_label()),nt=_(()=>L()?void 0:T.scripts_delete_disabled_description());H(x,()=>K,(ct,it)=>{it(ct,{get icon(){return It},get label(){return e(ot)},destructive:!0,get disabledReason(){return e(nt)},onclick:U})})}p(u,I)};y(at,u=>{e(s)&&u(st)})}p(w,O)};y(n,w=>{v()&&w(m)})}p(t,r)};let o=$(c,"tab",7),a=$(c,"workspaceId",7),C=$(c,"layoutId",7),i=$(c,"isActive",7);const b=_(()=>o().terminalId),s=_(()=>o().scriptId),W=xt(),d=z(""),h=z("");A(()=>d.set(a())),A(()=>h.set(e(s)??""));const E=$t(d),F=St(d),J=ht(d,h),Q=wt(d,h);let M=!0;ft(()=>{M=!1});function U(){if(!e(s))return;const t=a(),r=e(s),n=o().id;return Ct(t,r,()=>M&&i()&&a()===t&&e(s)===r&&o().id===n)}function X(){v()&&(e(s)&&D.dispatch(Tt(a(),e(s))),D.dispatch(At(a(),e(b))),D.dispatch(Dt(C()??a(),o().id)))}A(()=>{if(!(!W||!i()))return W.registerActions({actions:q})});var Y={get tab(){return o()},set tab(t){o(t),k()},get workspaceId(){return a()},set workspaceId(t){a(t),k()},get layoutId(){return C()},set layoutId(t){C(t),k()},get isActive(){return i()},set isActive(t){i(t),k()},$set:pt,$on:(t,r)=>mt(c,t,r)},N=f(),Z=l(N);{var tt=t=>{var r=f(),n=l(r);G(n,()=>e(s),m=>{kt(m,{get scriptId(){return e(s)},get workspaceId(){return a()},class:"h-full"})}),p(t,r)},et=t=>{var r=f(),n=l(r);G(n,()=>e(b),m=>{yt(m,{get terminalId(){return e(b)},get workspaceId(){return a()},class:"h-full"})}),p(t,r)};y(Z,t=>{e(s)&&i()&&P()&&(v()||R())?t(tt):e(b)&&i()&&v()&&t(et,1)})}p(B,N);var rt=_t(Y);return V(),rt}export{Wt as default};
@@ -1 +1 @@
1
- import{t as St,br as x,bz as Rt,bt as wt,b as It,bv as g}from"./Cv-W__h8.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as vt,bH as M,bV as V,aA as F}from"./DYhIMPy1.js";import{b as kt}from"./BaIAhI85.js";import{Ir as l,eu as Ut,ev as At,sq as Bt,nZ as xt,n_ as Ft,IY as _t,Jd as Lt,J1 as Tt,o2 as _}from"./DBkMUdAo.js";import{b7 as Dt}from"./DyzUsn2r.js";import{g as Wt}from"./DfN8_dcw.js";import{dr as Et,bA as Gt,bC as Mt,bz as Vt,bE as zt,c$ as Nt,f as Ht}from"./B10dK85Q.js";import{C as qt}from"./CxPlqAY_.js";import{V as Jt}from"./CQsysHl4.js";import{bR as Yt,bL as Zt,b6 as jt}from"./D71s6lTD.js";import{i as L,n as z}from"./H2jLkRRS.js";import{ae as Kt}from"./YTEWeGok.js";function Ot(T,$){if(new.target)return St({component:Ot,...T});Pt($,!0);const N=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),H=()=>g(nt,"$ftCommits$",c),q=()=>g(lt,"$rootGitRoots$",c),b=()=>g(st,"$ftChanges$",c),J=()=>g(tt,"$foldUnchanged",c),Y=()=>g(X,"$lineWrapping",c),Z=()=>g(et,"$diffSideBySide",c),j=()=>g(rt,"$ftLoading$",c),K=()=>g(it,"$ftBoundarySha$",c),[c,O]=wt(),Q=o=>{Jt(o,{embedded:!0,showExpand:!0,get expanded(){return t(R)},onToggleExpand:()=>{M(R,!t(R)),t(R)?t(w)?.expandAll():t(w)?.collapseAll()},get foldEnabled(){return J()},onToggleFold:()=>l.dispatch(Tt()),get wrapEnabled(){return Y()},onToggleWrap:()=>l.dispatch(Lt()),get splitEnabled(){return Z()},onToggleSplit:()=>l.dispatch(_t())})},X=Yt(),tt=Zt(),et=jt();let P=x($,"tab",7),m=x($,"workspaceId",7),C=x($,"isActive",7);const D=Wt(),p=Dt(()=>m()),ot=Et(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=Kt(p),S=s(()=>N().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),v=s(()=>t(S)?.path||t(h)),st=Gt(p),nt=Mt(p),it=Vt(p),rt=zt(p),dt=s(()=>H()||[]),lt=Nt(p),f=s(()=>q()[t(n)]??Ht),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(S)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(Bt(o,i,t(S)?.registeredCommitSha,100))});let R=V(!0),w=V(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(v)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(v)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=b().filter(e=>e.stage==="unstaged"),i=b().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&L(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,B=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:B,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function k(o){if(!t(h))return o;const i=z(o),e=z(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(_(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(k),source:"localChanges"}))}function E(o){l.dispatch(_(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(k),source:"localChanges"}))}function ht(o){l.dispatch(_(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(k),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Q})});const G=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(xt(o,G)),()=>l.dispatch(Ft(o,G))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:Rt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):j()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(v):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(S)?.registeredCommitSha||null:K()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),B=s(()=>t(n)?void 0:d=>void E([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=b().filter(u=>u.stage==="unstaged");W(d.map(u=>u.relativePath||u.file))}),bt=s(()=>t(n)?void 0:()=>{const d=b().filter(u=>u.stage==="staged");E(d.map(u=>u.relativePath||u.file))});kt(qt(T,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(B)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(bt)}}),d=>M(w,d,!0),()=>t(w))}var $t=vt(ft);return O(),$t}export{Ot as default};
1
+ import{t as St,br as x,bz as Rt,bt as wt,b as It,bv as g}from"./Cv-W__h8.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as vt,bH as M,bV as V,aA as F}from"./DYhIMPy1.js";import{b as kt}from"./BaIAhI85.js";import{Ir as l,eu as Ut,ev as At,sq as Bt,nZ as xt,n_ as Ft,IY as _t,Jd as Lt,J1 as Tt,o2 as _}from"./DBkMUdAo.js";import{b7 as Dt}from"./meW_HLSI.js";import{g as Wt}from"./DfN8_dcw.js";import{dr as Et,bA as Gt,bC as Mt,bz as Vt,bE as zt,c$ as Nt,f as Ht}from"./B10dK85Q.js";import{C as qt}from"./CnsvCPbt.js";import{V as Jt}from"./CQsysHl4.js";import{bR as Yt,bL as Zt,b6 as jt}from"./BpBwsbt_.js";import{i as L,n as z}from"./H2jLkRRS.js";import{ae as Kt}from"./DIkhRMRo.js";function Ot(T,$){if(new.target)return St({component:Ot,...T});Pt($,!0);const N=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),H=()=>g(nt,"$ftCommits$",c),q=()=>g(lt,"$rootGitRoots$",c),b=()=>g(st,"$ftChanges$",c),J=()=>g(tt,"$foldUnchanged",c),Y=()=>g(X,"$lineWrapping",c),Z=()=>g(et,"$diffSideBySide",c),j=()=>g(rt,"$ftLoading$",c),K=()=>g(it,"$ftBoundarySha$",c),[c,O]=wt(),Q=o=>{Jt(o,{embedded:!0,showExpand:!0,get expanded(){return t(R)},onToggleExpand:()=>{M(R,!t(R)),t(R)?t(w)?.expandAll():t(w)?.collapseAll()},get foldEnabled(){return J()},onToggleFold:()=>l.dispatch(Tt()),get wrapEnabled(){return Y()},onToggleWrap:()=>l.dispatch(Lt()),get splitEnabled(){return Z()},onToggleSplit:()=>l.dispatch(_t())})},X=Yt(),tt=Zt(),et=jt();let P=x($,"tab",7),m=x($,"workspaceId",7),C=x($,"isActive",7);const D=Wt(),p=Dt(()=>m()),ot=Et(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=Kt(p),S=s(()=>N().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),v=s(()=>t(S)?.path||t(h)),st=Gt(p),nt=Mt(p),it=Vt(p),rt=zt(p),dt=s(()=>H()||[]),lt=Nt(p),f=s(()=>q()[t(n)]??Ht),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(S)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(Bt(o,i,t(S)?.registeredCommitSha,100))});let R=V(!0),w=V(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(v)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(v)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=b().filter(e=>e.stage==="unstaged"),i=b().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&L(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,B=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:B,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function k(o){if(!t(h))return o;const i=z(o),e=z(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(_(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(k),source:"localChanges"}))}function E(o){l.dispatch(_(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(k),source:"localChanges"}))}function ht(o){l.dispatch(_(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(k),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Q})});const G=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(xt(o,G)),()=>l.dispatch(Ft(o,G))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:Rt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):j()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(v):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(S)?.registeredCommitSha||null:K()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),B=s(()=>t(n)?void 0:d=>void E([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=b().filter(u=>u.stage==="unstaged");W(d.map(u=>u.relativePath||u.file))}),bt=s(()=>t(n)?void 0:()=>{const d=b().filter(u=>u.stage==="staged");E(d.map(u=>u.relativePath||u.file))});kt(qt(T,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(B)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(bt)}}),d=>M(w,d,!0),()=>t(w))}var $t=vt(ft);return O(),$t}export{Ot as default};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/k7kBuPkp.js","/app/immutable/chunks/Cm75qM7a.js","/app/immutable/chunks/Bb42C1jx.js","/app/immutable/chunks/Cv-W__h8.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/-xK_vQQs.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CIcEE2lZ.js","/app/immutable/chunks/DTeENtoH.js","/app/immutable/chunks/DLTY4AKt.js","/app/immutable/chunks/lAmQKSWr.js","/app/immutable/chunks/BnTt2u_d.js","/app/immutable/chunks/L3UjiXrj.js","/app/immutable/chunks/8uAH6qHX.js","/app/immutable/chunks/DNjH2AoR.js","/app/immutable/chunks/C7qqZ7Np.js","/app/immutable/chunks/J_N0r9J9.js","/app/immutable/chunks/D71s6lTD.js","/app/immutable/chunks/B10dK85Q.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/DBkMUdAo.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BZeUwBn0.js","/app/immutable/chunks/ClsZrb8B.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/GdlMbZRO.js","/app/immutable/chunks/BKpkoMuv.js","/app/immutable/chunks/D4os-974.js","/app/immutable/chunks/DPvDLGgX.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BePtUMMB.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/BiLjH_HB.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/1o85IiDb.js","/app/immutable/chunks/j0KL2ItM.js","/app/immutable/chunks/C3Vm0B6o.js","/app/immutable/chunks/DTDbZc--.js","/app/immutable/chunks/CgCdkhNg.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/CEpchTPD.js","/app/immutable/chunks/ZhmlPELZ.js","/app/immutable/chunks/CUrYTyIw.js","/app/immutable/chunks/BtpuPEaR.js","/app/immutable/chunks/Ct5KmixI.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/Dx_O9X_g.js","/app/immutable/chunks/C3BW_tmx.js","/app/immutable/chunks/BahFkvC5.js","/app/immutable/chunks/B7VTWE2s.js","/app/immutable/chunks/DgmO0YM3.js","/app/immutable/chunks/D2F6GQPQ.js","/app/immutable/chunks/ehgj4JGx.js","/app/immutable/chunks/CUGyz-GO.js","/app/immutable/chunks/DwcTeSht.js","/app/immutable/chunks/BbcRDMCy.js","/app/immutable/chunks/DJv91LeU.js","/app/immutable/chunks/CncyYpim.js","/app/immutable/chunks/CxBKFB6m.js","/app/immutable/chunks/CEKZLvrJ.js","/app/immutable/chunks/4-D_C5ka.js","/app/immutable/chunks/J8XZPrPt.js","/app/immutable/chunks/CcUyq_m7.js","/app/immutable/chunks/BqTJBVj_.js","/app/immutable/chunks/BeJjj6hr.js","/app/immutable/chunks/i_iuhbAO.js","/app/immutable/chunks/DdplcBC-.js","/app/immutable/chunks/QhxXN72z.js","/app/immutable/chunks/RzGJYCKz.js","/app/immutable/chunks/BckkEJUR.js","/app/immutable/chunks/CJ5T9oR0.js","/app/immutable/chunks/CwA_zBFP.js","/app/immutable/chunks/CWFv5PT5.js","/app/immutable/chunks/2s5YLexB.js","/app/immutable/chunks/EV-Wg10o.js","/app/immutable/chunks/B5IkzLIr.js","/app/immutable/chunks/D455gGBd.js","/app/immutable/chunks/C2TVch-A.js","/app/immutable/chunks/Cp6MJgUQ.js","/app/immutable/chunks/6UoLYB73.js","/app/immutable/chunks/CGssQRFx.js","/app/immutable/chunks/CAV_oAtD.js","/app/immutable/chunks/0A9zMXP1.js","/app/immutable/chunks/Dqh0mE9o.js","/app/immutable/chunks/BUnB6-PL.js"])))=>i.map(i=>d[i]);
2
- var W1=Object.defineProperty;var z1=(e,t,r)=>t in e?W1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var gr=(e,t,r)=>z1(e,typeof t!="symbol"?t+"":t,r);import{_ as Ge,t as _a,br as ze,bp as Ye,bz as La,b as Aa,a_ as ur,bs as H1}from"./Cv-W__h8.js";import{g as Y1}from"./BdWqymET.js";import{aP as cs}from"./D71s6lTD.js";import{b7 as X1,cc as j1,bs as Fa,a7 as za,ay as ri,aD as S,bS as qe,be as Hs,b$ as zn,b_ as or,bO as pr,W as ge,c9 as Et,bn as $a,aA as Te,aB as er,bk as Gh,bH as ft,ca as ba,c5 as el,a5 as Ne,bA as Fe,bV as ce,bl as kr,c0 as ch,aC as oi,aw as rl,a as vu,bj as Cp,br as fi,cb as G1,bf as U1}from"./DYhIMPy1.js";import{z as Mu}from"./DdAHCwW1.js";import{v as ra,u as fe,s as Ys,o as V1,i as wp,e as Z1,f as K1,g as Q1,n as no,p as Tu,j as kp,w as Oo}from"./DPvDLGgX.js";import{b as ta}from"./BaIAhI85.js";import{c as J1}from"./ChTqQfQN.js";import{c$ as tC,cR as eC,F as Qs,aI as rC,b7 as Sp,l as iC,m as aC,f as oC,i as sC,v as Bu,s as _u,g as nC,G as lC,P as cC,q as hC,y as dC,p as uC,j as fC,D as Lu,H as gC,U as pC,at as mC,au as yC,aU as xC}from"./BKpkoMuv.js";import{f as Ho,am as bC}from"./BePtUMMB.js";import{r as CC,a6 as wC}from"./DyzUsn2r.js";import{e as kC,H as SC}from"./D9JDkiGX.js";import{G as vp}from"./GdlMbZRO.js";import{I as xa,h as Au,H as Ms,d as Fu}from"./j0KL2ItM.js";import{c as io}from"./D4os-974.js";import{e as vC}from"./CmUwI5cU.js";import{t as MC}from"./2_iuLgF6.js";import{s as Hn}from"./ClsZrb8B.js";import{s as $u,a as TC}from"./BsieX9dN.js";import{p as BC,K as _C,h as LC,i as sc,M as AC}from"./D2pEu7en.js";import"./BvDMLNjQ.js";import{t as ga}from"./DTDbZc--.js";import"./CgCdkhNg.js";import"./DBkMUdAo.js";import{cq as FC}from"./C3Vm0B6o.js";function $C(e,t){X1(window,["resize"],()=>j1(()=>t(window[e])))}var Mp=Object.defineProperty,b=(e,t)=>Mp(e,"name",{value:t,configurable:!0}),EC=(e,t)=>{for(var r in t)Mp(e,r,{get:t[r],enumerable:!0})};function Tp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}b(Tp,"getDefaultExportFromCjs");var jr={},kn={},Ra={},Eu;function ms(){if(Eu)return Ra;Eu=1;function e(s){return typeof s>"u"||s===null}b(e,"isNothing");function t(s){return typeof s=="object"&&s!==null}b(t,"isObject");function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}b(r,"toArray");function i(s,n){if(n){const l=Object.keys(n);for(let c=0,h=l.length;c<h;c+=1){const d=l[c];s[d]=n[d]}}return s}b(i,"extend");function a(s,n){let l="";for(let c=0;c<n;c+=1)l+=s;return l}b(a,"repeat");function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return b(o,"isNegativeZero"),Ra.isNothing=e,Ra.isObject=t,Ra.toArray=r,Ra.repeat=a,Ra.isNegativeZero=o,Ra.extend=i,Ra}b(ms,"requireCommon");var nc,Pu;function ys(){if(Pu)return nc;Pu=1;function e(r,i){let a="";const o=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(a+='in "'+r.mark.name+'" '),a+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(a+=`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/D0plQxho.js","/app/immutable/chunks/CJXwbq2U.js","/app/immutable/chunks/CUbDjN6V.js","/app/immutable/chunks/Cv-W__h8.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/-xK_vQQs.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BV3g1ev7.js","/app/immutable/chunks/BOmiP_-J.js","/app/immutable/chunks/Dd16ARRa.js","/app/immutable/chunks/lAmQKSWr.js","/app/immutable/chunks/umdNWcd2.js","/app/immutable/chunks/CFLRL0EB.js","/app/immutable/chunks/DFWX4KUv.js","/app/immutable/chunks/BKpkQXOc.js","/app/immutable/chunks/BRiNStAc.js","/app/immutable/chunks/D69jpRoN.js","/app/immutable/chunks/BpBwsbt_.js","/app/immutable/chunks/B10dK85Q.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/DBkMUdAo.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BZeUwBn0.js","/app/immutable/chunks/ClsZrb8B.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/GdlMbZRO.js","/app/immutable/chunks/BKpkoMuv.js","/app/immutable/chunks/D4os-974.js","/app/immutable/chunks/DPvDLGgX.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BePtUMMB.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/BiLjH_HB.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/1o85IiDb.js","/app/immutable/chunks/j0KL2ItM.js","/app/immutable/chunks/CyZEXqMD.js","/app/immutable/chunks/DTDbZc--.js","/app/immutable/chunks/CgCdkhNg.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/CEpchTPD.js","/app/immutable/chunks/ZhmlPELZ.js","/app/immutable/chunks/CUrYTyIw.js","/app/immutable/chunks/BtpuPEaR.js","/app/immutable/chunks/Ct5KmixI.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/CSUwzpGH.js","/app/immutable/chunks/C3BW_tmx.js","/app/immutable/chunks/BahFkvC5.js","/app/immutable/chunks/CDOqg_hD.js","/app/immutable/chunks/DrsfHmYl.js","/app/immutable/chunks/BrvQxJce.js","/app/immutable/chunks/B2skdn5r.js","/app/immutable/chunks/BkpX4I_T.js","/app/immutable/chunks/DV1cJQP-.js","/app/immutable/chunks/BbcRDMCy.js","/app/immutable/chunks/DTx3XIeO.js","/app/immutable/chunks/BQs4fy4w.js","/app/immutable/chunks/ljddUkNt.js","/app/immutable/chunks/CvCi5Zre.js","/app/immutable/chunks/B6uczKwF.js","/app/immutable/chunks/CBjTuKEK.js","/app/immutable/chunks/urnpr2FU.js","/app/immutable/chunks/BOtVBIUd.js","/app/immutable/chunks/DhdMmVFs.js","/app/immutable/chunks/CoN6faAY.js","/app/immutable/chunks/mGAn30DI.js","/app/immutable/chunks/ua4ooXEO.js","/app/immutable/chunks/tADzjMIa.js","/app/immutable/chunks/Clh-uN2S.js","/app/immutable/chunks/DhnV1b3I.js","/app/immutable/chunks/BP8RauO6.js","/app/immutable/chunks/CclH1YIh.js","/app/immutable/chunks/Cu9Chmho.js","/app/immutable/chunks/wruYJWvu.js","/app/immutable/chunks/DFea2F8i.js","/app/immutable/chunks/axQU0SjH.js","/app/immutable/chunks/CoJ-IYbA.js","/app/immutable/chunks/BKKe6SMA.js","/app/immutable/chunks/Cu6cQ3bz.js","/app/immutable/chunks/JJppOn81.js","/app/immutable/chunks/CxflQmTv.js","/app/immutable/chunks/DlfmDS1W.js","/app/immutable/chunks/B6HDg_5J.js","/app/immutable/chunks/BHCa2aqv.js"])))=>i.map(i=>d[i]);
2
+ var W1=Object.defineProperty;var z1=(e,t,r)=>t in e?W1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var gr=(e,t,r)=>z1(e,typeof t!="symbol"?t+"":t,r);import{_ as Ge,t as _a,br as ze,bp as Ye,bz as La,b as Aa,a_ as ur,bs as H1}from"./Cv-W__h8.js";import{g as Y1}from"./BdWqymET.js";import{aP as cs}from"./BpBwsbt_.js";import{b7 as X1,cc as j1,bs as Fa,a7 as za,ay as ri,aD as S,bS as qe,be as Hs,b$ as zn,b_ as or,bO as pr,W as ge,c9 as Et,bn as $a,aA as Te,aB as er,bk as Gh,bH as ft,ca as ba,c5 as el,a5 as Ne,bA as Fe,bV as ce,bl as kr,c0 as ch,aC as oi,aw as rl,a as vu,bj as Cp,br as fi,cb as G1,bf as U1}from"./DYhIMPy1.js";import{z as Mu}from"./lS2ZzWyn.js";import{v as ra,u as fe,s as Ys,o as V1,i as wp,e as Z1,f as K1,g as Q1,n as no,p as Tu,j as kp,w as Oo}from"./DPvDLGgX.js";import{b as ta}from"./BaIAhI85.js";import{c as J1}from"./ChTqQfQN.js";import{c$ as tC,cR as eC,F as Qs,aI as rC,b7 as Sp,l as iC,m as aC,f as oC,i as sC,v as Bu,s as _u,g as nC,G as lC,P as cC,q as hC,y as dC,p as uC,j as fC,D as Lu,H as gC,U as pC,at as mC,au as yC,aU as xC}from"./BKpkoMuv.js";import{f as Ho,am as bC}from"./BePtUMMB.js";import{r as CC,a6 as wC}from"./meW_HLSI.js";import{e as kC,H as SC}from"./C1r7a25c.js";import{G as vp}from"./GdlMbZRO.js";import{I as xa,h as Au,H as Ms,d as Fu}from"./j0KL2ItM.js";import{c as io}from"./D4os-974.js";import{e as vC}from"./CmUwI5cU.js";import{t as MC}from"./2_iuLgF6.js";import{s as Hn}from"./ClsZrb8B.js";import{s as $u,a as TC}from"./BsieX9dN.js";import{p as BC,K as _C,h as LC,i as sc,M as AC}from"./D2pEu7en.js";import"./BvDMLNjQ.js";import{t as ga}from"./DTDbZc--.js";import"./CgCdkhNg.js";import"./DBkMUdAo.js";import{cq as FC}from"./CyZEXqMD.js";function $C(e,t){X1(window,["resize"],()=>j1(()=>t(window[e])))}var Mp=Object.defineProperty,b=(e,t)=>Mp(e,"name",{value:t,configurable:!0}),EC=(e,t)=>{for(var r in t)Mp(e,r,{get:t[r],enumerable:!0})};function Tp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}b(Tp,"getDefaultExportFromCjs");var jr={},kn={},Ra={},Eu;function ms(){if(Eu)return Ra;Eu=1;function e(s){return typeof s>"u"||s===null}b(e,"isNothing");function t(s){return typeof s=="object"&&s!==null}b(t,"isObject");function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}b(r,"toArray");function i(s,n){if(n){const l=Object.keys(n);for(let c=0,h=l.length;c<h;c+=1){const d=l[c];s[d]=n[d]}}return s}b(i,"extend");function a(s,n){let l="";for(let c=0;c<n;c+=1)l+=s;return l}b(a,"repeat");function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return b(o,"isNegativeZero"),Ra.isNothing=e,Ra.isObject=t,Ra.toArray=r,Ra.repeat=a,Ra.isNegativeZero=o,Ra.extend=i,Ra}b(ms,"requireCommon");var nc,Pu;function ys(){if(Pu)return nc;Pu=1;function e(r,i){let a="";const o=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(a+='in "'+r.mark.name+'" '),a+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(a+=`
3
3
 
4
4
  `+r.mark.snippet),o+" "+a):o}b(e,"formatError");function t(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return b(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=b(function(i){return this.name+": "+e(this,i)},"toString"),nc=t,nc}b(ys,"requireException");var lc,Iu;function Bp(){if(Iu)return lc;Iu=1;const e=ms();function t(a,o,s,n,l){let c="",h="";const d=Math.floor(l/2)-1;return n-o>d&&(c=" ... ",o=n-d+c.length),s-n>d&&(h=" ...",s=n+d-h.length),{str:c+a.slice(o,s).replace(/\t/g,"→")+h,pos:n-o+c.length}}b(t,"getLine");function r(a,o){return e.repeat(" ",o-a.length)+a}b(r,"padStart");function i(a,o){if(o=Object.create(o||null),!a.buffer)return null;o.maxLength||(o.maxLength=79),typeof o.indent!="number"&&(o.indent=1),typeof o.linesBefore!="number"&&(o.linesBefore=3),typeof o.linesAfter!="number"&&(o.linesAfter=2);const s=/\r?\n|\r|\0/g,n=[0],l=[];let c,h=-1;for(;c=s.exec(a.buffer);)l.push(c.index),n.push(c.index+c[0].length),a.position<=c.index&&h<0&&(h=n.length-2);h<0&&(h=n.length-1);let d="";const u=Math.min(a.line+o.linesAfter,l.length).toString().length,f=o.maxLength-(o.indent+u+3);for(let g=1;g<=o.linesBefore&&!(h-g<0);g++){const m=t(a.buffer,n[h-g],l[h-g],a.position-(n[h]-n[h-g]),f);d=e.repeat(" ",o.indent)+r((a.line-g+1).toString(),u)+" | "+m.str+`
5
5
  `+d}const p=t(a.buffer,n[h],l[h],a.position,f);d+=e.repeat(" ",o.indent)+r((a.line+1).toString(),u)+" | "+p.str+`
@@ -298,8 +298,8 @@ ${o.join(`
298
298
  L0,20`)},"requirement_arrow"),W_=b((e,t,r)=>{const i=Tr(),{themeVariables:a}=i,{strokeWidth:o}=a;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${o}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
299
299
  L20,10
300
300
  M20,10
301
- L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),z_=b((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),H_=b((e,t,r)=>{const i=Tr(),{themeVariables:a}=i,{strokeWidth:o}=a,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${o}`)},"requirement_contains_neo"),Y_=b((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),X_=b((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),j_=b((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),G_={extension:k_,composition:S_,aggregation:v_,dependency:M_,lollipop:T_,point:B_,circle:__,cross:L_,barb:A_,barbNeo:F_,hierarchy:Y_,only_one:$_,zero_or_one:E_,one_or_more:P_,zero_or_more:I_,only_one_neo:O_,zero_or_one_neo:R_,one_or_more_neo:D_,zero_or_more_neo:N_,requirement_arrow:q_,requirement_contains:z_,requirement_arrow_neo:W_,requirement_contains_neo:H_,openArrow:X_,hollowCircle:j_},U_=w_,V_={common:hn,getConfig:Tr,insertCluster:BB,insertEdge:C_,insertEdgeLabel:u_,insertMarkers:U_,insertNode:O0,interpolateToCurve:$d,labelHelper:he,log:Tt,positionEdgeLabel:g_},Z_=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],an=Object.create(null),eb=b(e=>{for(const t of e)an[t.name]=t},"registerLayoutLoaders"),K_=b(()=>{const e=b(async()=>await Ge(()=>import("./k7kBuPkp.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...Z_.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),Q_=b(()=>{eb([{name:"dagre",loader:b(async()=>await Ge(()=>import("./CIcEE2lZ.js"),__vite__mapDeps([7,2,3,4,5]),import.meta.url),"loader")},{name:"swimlane",loader:b(async()=>await Ge(()=>import("./DTeENtoH.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:b(async()=>await Ge(()=>import("./DLTY4AKt.js"),__vite__mapDeps([9,10,6]),import.meta.url),"loader")},...K_()])},"registerDefaultLayoutLoaders");Q_();var eP=b(async(e,t)=>{if(!Object.hasOwn(an,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const o of e.nodes){const s=o.domId||o.id;o.domId=`${e.diagramId}-${s}`}const r=an[e.layoutAlgorithm],i=await r.loader();DC(t,e.config);const a=await i.render(e,t,V_,{algorithm:r.algorithm});return s_(t.node()),a},"render"),Vc="dagre",rP=b((e="",{fallback:t=Vc}={})=>{if(Object.hasOwn(an,e))return e;for(const r of[t,Vc])if(Object.hasOwn(an,r))return Tt.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${Vc} is registered.`)},"getRegisteredLayoutAlgorithm"),J_=b(e=>{const{securityLevel:t}=Xe();let r=He("body");if(t==="sandbox"){const o=He(`#i${e}`).node()?.contentDocument??document;r=He(o.body)}return r.select(`#${e}`)},"selectSvgElement"),ou="comm",rb="rule",ib="decl",tL="@media",eL="@import",rL="@supports",iL="@namespace",Rh="@keyframes",ab="@layer",aL="@scope",oL=Math.abs,Ks=String.fromCharCode;function ob(e){return e.trim()}function Dh(e,t,r){return e.replace(t,r)}function Go(e,t){return e.charCodeAt(t)|0}function us(e,t,r){return e.slice(t,r)}function Ki(e){return e.length}function sb(e){return e.length}function Pn(e,t){return t.push(e),e}var Vl=1,fs=1,nb=0,_i=0,Pr=0,ws="";function su(e,t,r,i,a,o,s,n){return{value:e,root:t,parent:r,type:i,props:a,children:o,line:Vl,column:fs,length:s,return:"",siblings:n}}function sL(){return Pr}function nL(){return Pr=_i>0?Go(ws,--_i):0,fs--,Pr===10&&(fs=1,Vl--),Pr}function Di(){return Pr=_i<nb?Go(ws,_i++):0,fs++,Pr===10&&(fs=1,Vl++),Pr}function qa(){return Go(ws,_i)}function Jn(){return _i}function Zl(e,t){return us(ws,e,t)}function on(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function lL(e){return Vl=fs=1,nb=Ki(ws=e),_i=0,[]}function cL(e){return ws="",e}function Zc(e){return ob(Zl(_i-1,Nh(e===91?e+2:e===40?e+1:e)))}function hL(e){for(;(Pr=qa())&&Pr<33;)Di();return on(e)>2||on(Pr)>3?"":" "}function dL(e,t){for(;--t&&Di()&&!(Pr<48||Pr>102||Pr>57&&Pr<65||Pr>70&&Pr<97););return Zl(e,Jn()+(t<6&&qa()==32&&Di()==32))}function Nh(e){for(;Di();)switch(Pr){case e:return _i;case 34:case 39:e!==34&&e!==39&&Nh(Pr);break;case 40:e===41&&Nh(e);break;case 92:Di();break}return _i}function uL(e,t){for(;Di()&&e+Pr!==57;)if(e+Pr===84&&qa()===47)break;return"/*"+Zl(t,_i-1)+"*"+Ks(e===47?e:Di())}function fL(e){for(;!on(qa());)Di();return Zl(e,_i)}function gL(e){return cL(tl("",null,null,null,[""],e=lL(e),0,[0],e))}function tl(e,t,r,i,a,o,s,n,l){for(var c=0,h=0,d=s,u=0,f=0,p=0,g=1,m=1,y=1,x=0,C=0,k="",v=a,T=o,F=i,A=k;m;)switch(p=C,C=Di()){case 40:p!=108&&Go(A,d-1)==58?(x++,A+="("):A+=Zc(C);break;case 41:x--,A+=")";break;case 34:case 39:case 91:A+=Zc(C);break;case 9:case 10:case 13:case 32:if(x>0){A+=Ks(C);break}A+=hL(p);break;case 92:A+=dL(Jn()-1,7);continue;case 47:switch(qa()){case 42:case 47:Pn(pL(uL(Di(),Jn()),t,r,l),l),(on(p||1)==5||on(qa()||1)==5)&&Ki(A)&&us(A,-1,void 0)!==" "&&(A+=" ");break;default:A+="/"}break;case 123*g:n[c++]=Ki(A)*y;case 125*g:case 59:case 0:if(x>0&&C){A+=Ks(C);break}switch(C){case 0:case 125:m=0;case 59+h:y==-1&&(A=Dh(A,/\f/g,"")),f>0&&(Ki(A)-d||g===0)&&Pn(f>32?Hg(A+";",i,r,d-1,l):Hg(Dh(A," ","")+";",i,r,d-2,l),l);break;case 59:A+=";";default:if(Pn(F=zg(A,t,r,c,h,a,n,k,v=[],T=[],d,o),o),C===123)if(h===0)tl(A,t,F,F,v,o,d,n,T);else{switch(u){case 99:if(Go(A,3)===110)break;case 108:if(Go(A,2)===97)break;default:h=0;case 100:case 109:case 115:}h?tl(e,F,F,i&&Pn(zg(e,F,F,0,0,a,n,k,a,v=[],d,T),T),a,T,d,n,i?v:T):tl(A,F,F,F,[""],T,0,n,T)}}c=h=f=0,g=y=1,k=A="",d=s;break;case 58:d=1+Ki(A),f=p;default:if(g<1){if(C==123)--g;else if(C==125&&g++==0&&nL()==125)continue}switch(A+=Ks(C),C*g){case 38:y=h>0?1:(A+="\f",-1);break;case 44:if(x>0)break;n[c++]=(Ki(A)-1)*y,y=1;break;case 64:qa()===45&&(A+=Zc(Di())),u=qa(),h=d=Ki(k=A+=fL(Jn())),C++;break;case 45:p===45&&Ki(A)==2&&(g=0)}}return o}function zg(e,t,r,i,a,o,s,n,l,c,h,d){for(var u=a-1,f=a===0?o:[""],p=sb(f),g=0,m=0,y=0;g<i;++g)for(var x=0,C=us(e,u+1,u=oL(m=s[g])),k=e;x<p;++x)(k=ob(m>0?f[x]+" "+C:Dh(C,/&\f/g,f[x])))&&(l[y++]=k);return su(e,t,r,a===0?rb:n,l,c,h,d)}function pL(e,t,r,i){return su(e,t,r,ou,Ks(sL()),us(e,2,-2),0,i)}function Hg(e,t,r,i,a){return su(e,t,r,ib,us(e,0,i),us(e,i+1,-1),i,a)}function qh(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function mL(e,t,r,i){switch(e.type){case ab:if(e.children.length)break;case eL:case iL:case ib:return e.return=e.return||e.value;case ou:return"";case Rh:return e.return=e.value+"{"+qh(e.children,i)+"}";case rb:if(!Ki(e.value=e.props.join(",")))return""}return Ki(r=qh(e.children,i))?e.return=e.value+"{"+r+"}":""}function yL(e){var t=sb(e);return function(r,i,a,o){for(var s="",n=0;n<t;n++)s+=e[n](r,i,a,o)||"";return s}}var lb="c4",xL=b(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),bL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./BnTt2u_d.js");return{diagram:t}},__vite__mapDeps([11,12]),import.meta.url);return{id:lb,diagram:e}},"loader"),CL={id:lb,detector:xL,loader:bL},wL=CL,cb="flowchart-v2",kL=b(e=>/^\s*(graph|flowchart)/.test(e),"detector"),SL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./8uAH6qHX.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,6,48,49,50,51,52,53,54]),import.meta.url);return{id:cb,diagram:e}},"loader"),vL={id:cb,detector:kL,loader:SL},ML=vL,hb="agentflow",TL=b(e=>/^\s*agentflow-beta\b/.test(e),"detector"),BL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./B7VTWE2s.js");return{diagram:t}},__vite__mapDeps([55,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,6,48,49,50,51,52,53,54]),import.meta.url);return{id:hb,diagram:e}},"loader"),_L={id:hb,detector:TL,loader:BL},LL=_L,db="swimlane",AL=b(e=>/^\s*swimlane-beta\b/.test(e),"detector"),FL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./DgmO0YM3.js");return{diagram:t}},__vite__mapDeps([56,13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,6,48,49,50,51,52,53,54]),import.meta.url);return{id:db,diagram:e}},"loader"),$L={id:db,detector:AL,loader:FL},EL=$L,ub="er",PL=b(e=>/^\s*erDiagram/.test(e),"detector"),IL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./D2F6GQPQ.js");return{diagram:t}},__vite__mapDeps([57,15,16]),import.meta.url);return{id:ub,diagram:e}},"loader"),OL={id:ub,detector:PL,loader:IL},RL=OL,fb="gitGraph",DL=b(e=>/^\s*gitGraph/.test(e),"detector"),NL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./ehgj4JGx.js");return{diagram:t}},__vite__mapDeps([58,59,60,61,3,4]),import.meta.url);return{id:fb,diagram:e}},"loader"),qL={id:fb,detector:DL,loader:NL},WL=qL,gb="gantt",zL=b(e=>/^\s*gantt/.test(e),"detector"),HL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./DJv91LeU.js");return{diagram:t}},__vite__mapDeps([62,6,63]),import.meta.url);return{id:gb,diagram:e}},"loader"),YL={id:gb,detector:zL,loader:HL},XL=YL,pb="info",jL=b(e=>/^\s*info/.test(e),"detector"),GL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CxBKFB6m.js");return{diagram:t}},__vite__mapDeps([64,61,3,4]),import.meta.url);return{id:pb,diagram:e}},"loader"),UL={id:pb,detector:jL,loader:GL},mb="pie",VL=b(e=>/^\s*pie/.test(e),"detector"),ZL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CEKZLvrJ.js");return{diagram:t}},__vite__mapDeps([65,60,61,3,4,63]),import.meta.url);return{id:mb,diagram:e}},"loader"),KL={id:mb,detector:VL,loader:ZL},yb="quadrantChart",QL=b(e=>/^\s*quadrantChart/.test(e),"detector"),JL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./4-D_C5ka.js");return{diagram:t}},__vite__mapDeps([66,63]),import.meta.url);return{id:yb,diagram:e}},"loader"),tA={id:yb,detector:QL,loader:JL},eA=tA,xb="xychart",rA=b(e=>/^\s*xychart(-beta)?/.test(e),"detector"),iA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./J8XZPrPt.js");return{diagram:t}},__vite__mapDeps([67,63]),import.meta.url);return{id:xb,diagram:e}},"loader"),aA={id:xb,detector:rA,loader:iA},oA=aA,bb="requirement",sA=b(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),nA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CcUyq_m7.js");return{diagram:t}},__vite__mapDeps([68,15,16]),import.meta.url);return{id:bb,diagram:e}},"loader"),lA={id:bb,detector:sA,loader:nA},cA=lA,Cb="sequence",hA=b(e=>/^\s*sequenceDiagram/.test(e),"detector"),dA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./BqTJBVj_.js");return{diagram:t}},__vite__mapDeps([69,59,12]),import.meta.url);return{id:Cb,diagram:e}},"loader"),uA={id:Cb,detector:hA,loader:dA},fA=uA,wb="classDiagram",gA=b(e=>/^\s*classDiagram/.test(e),"detector"),pA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./BeJjj6hr.js");return{diagram:t}},__vite__mapDeps([70,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,6,48,49,50,51,52,53,54]),import.meta.url);return{id:wb,diagram:e}},"loader"),mA={id:wb,detector:gA,loader:pA},yA=mA,kb="stateDiagram",xA=b(e=>/^\s*stateDiagram/.test(e),"detector"),bA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./i_iuhbAO.js");return{diagram:t}},__vite__mapDeps([71,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,6,48,49,50,51,52,53,54]),import.meta.url);return{id:kb,diagram:e}},"loader"),CA={id:kb,detector:xA,loader:bA},wA=CA,Sb="journey",kA=b(e=>/^\s*journey/.test(e),"detector"),SA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./DdplcBC-.js");return{diagram:t}},__vite__mapDeps([72,14,12]),import.meta.url);return{id:Sb,diagram:e}},"loader"),vA={id:Sb,detector:kA,loader:SA},MA=vA,In=4,Es=75,TA=b(e=>{const t=[];for(const a of e.split(/\s+/)){let o=[...a];for(;o.length>Es;)t.push(o.slice(0,Es).join("")),o=o.slice(Es);o.length>0&&t.push(o.join(""))}const r=[];let i="";for(const a of t){const o=i?`${i} ${a}`:a;[...o].length>Es?(r.push(i),i=a):i=o}if(i&&r.push(i),r.length>In){r.length=In;const a=r[In-1]??"";r[In-1]=`${[...a].slice(0,Es-3).join("")}...`}return r},"wrapErrorMessage"),BA=b((e,t,r,i)=>{Tt.debug(`rendering svg for syntax error
302
- `);const a=J_(t),o=a.append("g"),s=TA(i?.db.getErrorMessage?.()??""),n=s.length>0?500+s.length*56:512;a.attr("viewBox",`0 0 2412 ${n}`),Gp(a,100,n,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),s.forEach((l,c)=>{o.append("text").attr("class","error-text").attr("x",1440).attr("y",510+c*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),vb={draw:BA},_A=vb,Kc,LA={clear(){Kc=void 0},setErrorMessage(e){Kc=e},getErrorMessage(){return Kc}},AA={db:LA,renderer:vb,parser:{parse:b(()=>{},"parse")}},FA=AA,Mb="flowchart-elk",$A=b((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),EA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./8uAH6qHX.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,6,48,49,50,51,52,53,54]),import.meta.url);return{id:Mb,diagram:e}},"loader"),PA={id:Mb,detector:$A,loader:EA},IA=PA,Tb="timeline",OA=b(e=>/^\s*timeline/.test(e),"detector"),RA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./Cm7nTtW_.js");return{diagram:t}},[],import.meta.url);return{id:Tb,diagram:e}},"loader"),DA={id:Tb,detector:OA,loader:RA},NA=DA,Bb="mindmap",qA=b(e=>/^\s*mindmap/.test(e),"detector"),WA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./QhxXN72z.js");return{diagram:t}},__vite__mapDeps([73,15,16]),import.meta.url);return{id:Bb,diagram:e}},"loader"),zA={id:Bb,detector:qA,loader:WA},HA=zA,_b="kanban",YA=b(e=>/^\s*kanban/.test(e),"detector"),XA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./RzGJYCKz.js");return{diagram:t}},__vite__mapDeps([74,14]),import.meta.url);return{id:_b,diagram:e}},"loader"),jA={id:_b,detector:YA,loader:XA},GA=jA,Lb="sankey",UA=b(e=>/^\s*sankey(-beta)?/.test(e),"detector"),VA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./BckkEJUR.js");return{diagram:t}},__vite__mapDeps([75,63]),import.meta.url);return{id:Lb,diagram:e}},"loader"),ZA={id:Lb,detector:UA,loader:VA},KA=ZA,Ab="packet",QA=b(e=>/^\s*packet(-beta)?/.test(e),"detector"),JA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CJ5T9oR0.js");return{diagram:t}},__vite__mapDeps([76,60,61,3,4]),import.meta.url);return{id:Ab,diagram:e}},"loader"),t5={id:Ab,detector:QA,loader:JA},Fb="radar",e5=b(e=>/^\s*radar-beta/.test(e),"detector"),r5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CwA_zBFP.js");return{diagram:t}},__vite__mapDeps([77,60,61,3,4]),import.meta.url);return{id:Fb,diagram:e}},"loader"),i5={id:Fb,detector:e5,loader:r5},$b="block",a5=b(e=>/^\s*block(-beta)?/.test(e),"detector"),o5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CWFv5PT5.js");return{diagram:t}},__vite__mapDeps([78,14,5]),import.meta.url);return{id:$b,diagram:e}},"loader"),s5={id:$b,detector:a5,loader:o5},n5=s5,Eb="treeView",l5=b(e=>/^\s*treeView-beta/.test(e),"detector"),c5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./2s5YLexB.js");return{diagram:t}},__vite__mapDeps([79,59,60,61,3,4]),import.meta.url);return{id:Eb,diagram:e}},"loader"),h5={id:Eb,detector:l5,loader:c5},d5=h5,Pb="architecture",u5=b(e=>/^\s*architecture/.test(e),"detector"),f5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./EV-Wg10o.js");return{diagram:t}},__vite__mapDeps([80,60,61,3,4,10,6]),import.meta.url);return{id:Pb,diagram:e}},"loader"),g5={id:Pb,detector:u5,loader:f5},p5=g5,Ib="eventmodeling",m5=b(e=>/^\s*eventmodeling/.test(e),"detector"),y5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./B5IkzLIr.js");return{diagram:t}},__vite__mapDeps([81,60,61,3,4]),import.meta.url);return{id:Ib,diagram:e}},"loader"),x5={id:Ib,detector:m5,loader:y5},b5=x5,Ob="ishikawa",C5=b(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),w5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CdjCvvRy.js");return{diagram:t}},[],import.meta.url);return{id:Ob,diagram:e}},"loader"),k5={id:Ob,detector:C5,loader:w5},Rb="venn",S5=b(e=>/^\s*venn-beta/.test(e),"detector"),v5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CoNImpwm.js");return{diagram:t}},[],import.meta.url);return{id:Rb,diagram:e}},"loader"),M5={id:Rb,detector:S5,loader:v5},T5=M5,Db="treemap",B5=b(e=>/^\s*treemap/.test(e),"detector"),_5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./D455gGBd.js");return{diagram:t}},__vite__mapDeps([82,16,60,61,3,4,63]),import.meta.url);return{id:Db,diagram:e}},"loader"),L5={id:Db,detector:B5,loader:_5},Nb="usecase",A5=b(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),F5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./C2TVch-A.js");return{diagram:t}},__vite__mapDeps([83,15,16]),import.meta.url);return{id:Nb,diagram:e}},"loader"),$5={id:Nb,detector:A5,loader:F5},qb="wardley",E5=b(e=>/^\s*wardley-beta/i.test(e),"detector"),P5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./Cp6MJgUQ.js");return{diagram:t}},__vite__mapDeps([84,60,61,3,4]),import.meta.url);return{id:qb,diagram:e}},"loader"),I5={id:qb,detector:E5,loader:P5},O5=I5,Wb="cynefin",R5=b(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),D5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./6UoLYB73.js");return{diagram:t}},__vite__mapDeps([85,60,61,3,4]),import.meta.url);return{id:Wb,diagram:e}},"loader"),N5={id:Wb,detector:R5,loader:D5},zb="railroad",q5=b(e=>/^\s*railroad-beta/i.test(e),"detector"),W5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CGssQRFx.js");return{diagram:t}},__vite__mapDeps([86,87,60,61,3,4]),import.meta.url);return{id:zb,diagram:e}},"loader"),z5={id:zb,detector:q5,loader:W5},Hb="railroadEbnf",H5=b(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),Y5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./0A9zMXP1.js");return{diagram:t}},__vite__mapDeps([88,87,60,61,3,4]),import.meta.url);return{id:Hb,diagram:e}},"loader"),X5={id:Hb,detector:H5,loader:Y5},Yb="railroadAbnf",j5=b(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),G5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./Dqh0mE9o.js");return{diagram:t}},__vite__mapDeps([89,87,60,61,3,4]),import.meta.url);return{id:Yb,diagram:e}},"loader"),U5={id:Yb,detector:j5,loader:G5},Xb="railroadPeg",V5=b(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),Z5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./BUnB6-PL.js");return{diagram:t}},__vite__mapDeps([90,87,60,61,3,4]),import.meta.url);return{id:Xb,diagram:e}},"loader"),K5={id:Xb,detector:V5,loader:Z5},Yg=!1,Kl=b(()=>{Yg||(Yg=!0,cl("error",FA,e=>e.toLowerCase().trim()==="error"),cl("---",{db:{clear:b(()=>{},"clear")},styles:{},renderer:{draw:b(()=>{},"draw")},parser:{parse:b(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:b(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),hh(IA,HA,p5),hh(LL,wL,GA,yA,RL,XL,UL,KL,cA,fA,EL,ML,NA,WL,wA,MA,eA,KA,t5,oA,n5,b5,d5,i5,k5,L5,z5,X5,U5,K5,T5,O5,N5,$5))},"addDiagrams"),Q5=b(async()=>{Tt.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(yo).map(async([r,{detector:i,loader:a}])=>{if(a)try{ph(r)}catch{try{const{diagram:o,id:s}=await a();cl(s,o,i)}catch(o){throw Tt.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete yo[r],o}}}))).filter(r=>r.status==="rejected");if(t.length>0){Tt.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Tt.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),J5="graphics-document document";function jb(e,t){e.attr("role",J5),t!==""&&e.attr("aria-roledescription",t)}b(jb,"setA11yDiagramInfo");function Gb(e,t,r,i){if(e.insert!==void 0){if(r){const a=`chart-desc-${i}`;e.attr("aria-describedby",a),e.insert("desc",":first-child").attr("id",a).text(r)}if(t){const a=`chart-title-${i}`;e.attr("aria-labelledby",a),e.insert("title",":first-child").attr("id",a).text(t)}}}b(Gb,"addSVGa11yTitleDescription");var mo,Fl=(mo=class{constructor(t,r,i,a,o){this.type=t,this.text=r,this.db=i,this.parser=a,this.renderer=o}static async fromText(t,r={}){const i=typeof t=="string"?{cleaned:t}:t,a=Tr(),o=Ol(i.cleaned,a);try{ph(o)}catch{const u=JC(o);if(!u)throw new Pp(`Diagram ${o} not found.`);const{id:f,diagram:p}=await u();cl(f,p)}const{db:s,parser:n,renderer:l,init:c}=ph(o);n.parser&&(n.parser.yy=s),s.clear?.(),c?.(a),r.title&&s.setDiagramTitle?.(r.title);let h=i.cleaned;if(s.preserveCommentsWhenParsing&&i.withComments){const u=a.maxTextSize??ud.maxTextSize;i.withComments.length>u?Tt.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${u}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):h=i.withComments}const d=oM(h)+`
301
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),z_=b((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),H_=b((e,t,r)=>{const i=Tr(),{themeVariables:a}=i,{strokeWidth:o}=a,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${o}`)},"requirement_contains_neo"),Y_=b((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),X_=b((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),j_=b((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),G_={extension:k_,composition:S_,aggregation:v_,dependency:M_,lollipop:T_,point:B_,circle:__,cross:L_,barb:A_,barbNeo:F_,hierarchy:Y_,only_one:$_,zero_or_one:E_,one_or_more:P_,zero_or_more:I_,only_one_neo:O_,zero_or_one_neo:R_,one_or_more_neo:D_,zero_or_more_neo:N_,requirement_arrow:q_,requirement_contains:z_,requirement_arrow_neo:W_,requirement_contains_neo:H_,openArrow:X_,hollowCircle:j_},U_=w_,V_={common:hn,getConfig:Tr,insertCluster:BB,insertEdge:C_,insertEdgeLabel:u_,insertMarkers:U_,insertNode:O0,interpolateToCurve:$d,labelHelper:he,log:Tt,positionEdgeLabel:g_},Z_=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],an=Object.create(null),eb=b(e=>{for(const t of e)an[t.name]=t},"registerLayoutLoaders"),K_=b(()=>{const e=b(async()=>await Ge(()=>import("./D0plQxho.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...Z_.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),Q_=b(()=>{eb([{name:"dagre",loader:b(async()=>await Ge(()=>import("./BV3g1ev7.js"),__vite__mapDeps([7,2,3,4,5]),import.meta.url),"loader")},{name:"swimlane",loader:b(async()=>await Ge(()=>import("./BOmiP_-J.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:b(async()=>await Ge(()=>import("./Dd16ARRa.js"),__vite__mapDeps([9,10,6]),import.meta.url),"loader")},...K_()])},"registerDefaultLayoutLoaders");Q_();var eP=b(async(e,t)=>{if(!Object.hasOwn(an,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const o of e.nodes){const s=o.domId||o.id;o.domId=`${e.diagramId}-${s}`}const r=an[e.layoutAlgorithm],i=await r.loader();DC(t,e.config);const a=await i.render(e,t,V_,{algorithm:r.algorithm});return s_(t.node()),a},"render"),Vc="dagre",rP=b((e="",{fallback:t=Vc}={})=>{if(Object.hasOwn(an,e))return e;for(const r of[t,Vc])if(Object.hasOwn(an,r))return Tt.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${Vc} is registered.`)},"getRegisteredLayoutAlgorithm"),J_=b(e=>{const{securityLevel:t}=Xe();let r=He("body");if(t==="sandbox"){const o=He(`#i${e}`).node()?.contentDocument??document;r=He(o.body)}return r.select(`#${e}`)},"selectSvgElement"),ou="comm",rb="rule",ib="decl",tL="@media",eL="@import",rL="@supports",iL="@namespace",Rh="@keyframes",ab="@layer",aL="@scope",oL=Math.abs,Ks=String.fromCharCode;function ob(e){return e.trim()}function Dh(e,t,r){return e.replace(t,r)}function Go(e,t){return e.charCodeAt(t)|0}function us(e,t,r){return e.slice(t,r)}function Ki(e){return e.length}function sb(e){return e.length}function Pn(e,t){return t.push(e),e}var Vl=1,fs=1,nb=0,_i=0,Pr=0,ws="";function su(e,t,r,i,a,o,s,n){return{value:e,root:t,parent:r,type:i,props:a,children:o,line:Vl,column:fs,length:s,return:"",siblings:n}}function sL(){return Pr}function nL(){return Pr=_i>0?Go(ws,--_i):0,fs--,Pr===10&&(fs=1,Vl--),Pr}function Di(){return Pr=_i<nb?Go(ws,_i++):0,fs++,Pr===10&&(fs=1,Vl++),Pr}function qa(){return Go(ws,_i)}function Jn(){return _i}function Zl(e,t){return us(ws,e,t)}function on(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function lL(e){return Vl=fs=1,nb=Ki(ws=e),_i=0,[]}function cL(e){return ws="",e}function Zc(e){return ob(Zl(_i-1,Nh(e===91?e+2:e===40?e+1:e)))}function hL(e){for(;(Pr=qa())&&Pr<33;)Di();return on(e)>2||on(Pr)>3?"":" "}function dL(e,t){for(;--t&&Di()&&!(Pr<48||Pr>102||Pr>57&&Pr<65||Pr>70&&Pr<97););return Zl(e,Jn()+(t<6&&qa()==32&&Di()==32))}function Nh(e){for(;Di();)switch(Pr){case e:return _i;case 34:case 39:e!==34&&e!==39&&Nh(Pr);break;case 40:e===41&&Nh(e);break;case 92:Di();break}return _i}function uL(e,t){for(;Di()&&e+Pr!==57;)if(e+Pr===84&&qa()===47)break;return"/*"+Zl(t,_i-1)+"*"+Ks(e===47?e:Di())}function fL(e){for(;!on(qa());)Di();return Zl(e,_i)}function gL(e){return cL(tl("",null,null,null,[""],e=lL(e),0,[0],e))}function tl(e,t,r,i,a,o,s,n,l){for(var c=0,h=0,d=s,u=0,f=0,p=0,g=1,m=1,y=1,x=0,C=0,k="",v=a,T=o,F=i,A=k;m;)switch(p=C,C=Di()){case 40:p!=108&&Go(A,d-1)==58?(x++,A+="("):A+=Zc(C);break;case 41:x--,A+=")";break;case 34:case 39:case 91:A+=Zc(C);break;case 9:case 10:case 13:case 32:if(x>0){A+=Ks(C);break}A+=hL(p);break;case 92:A+=dL(Jn()-1,7);continue;case 47:switch(qa()){case 42:case 47:Pn(pL(uL(Di(),Jn()),t,r,l),l),(on(p||1)==5||on(qa()||1)==5)&&Ki(A)&&us(A,-1,void 0)!==" "&&(A+=" ");break;default:A+="/"}break;case 123*g:n[c++]=Ki(A)*y;case 125*g:case 59:case 0:if(x>0&&C){A+=Ks(C);break}switch(C){case 0:case 125:m=0;case 59+h:y==-1&&(A=Dh(A,/\f/g,"")),f>0&&(Ki(A)-d||g===0)&&Pn(f>32?Hg(A+";",i,r,d-1,l):Hg(Dh(A," ","")+";",i,r,d-2,l),l);break;case 59:A+=";";default:if(Pn(F=zg(A,t,r,c,h,a,n,k,v=[],T=[],d,o),o),C===123)if(h===0)tl(A,t,F,F,v,o,d,n,T);else{switch(u){case 99:if(Go(A,3)===110)break;case 108:if(Go(A,2)===97)break;default:h=0;case 100:case 109:case 115:}h?tl(e,F,F,i&&Pn(zg(e,F,F,0,0,a,n,k,a,v=[],d,T),T),a,T,d,n,i?v:T):tl(A,F,F,F,[""],T,0,n,T)}}c=h=f=0,g=y=1,k=A="",d=s;break;case 58:d=1+Ki(A),f=p;default:if(g<1){if(C==123)--g;else if(C==125&&g++==0&&nL()==125)continue}switch(A+=Ks(C),C*g){case 38:y=h>0?1:(A+="\f",-1);break;case 44:if(x>0)break;n[c++]=(Ki(A)-1)*y,y=1;break;case 64:qa()===45&&(A+=Zc(Di())),u=qa(),h=d=Ki(k=A+=fL(Jn())),C++;break;case 45:p===45&&Ki(A)==2&&(g=0)}}return o}function zg(e,t,r,i,a,o,s,n,l,c,h,d){for(var u=a-1,f=a===0?o:[""],p=sb(f),g=0,m=0,y=0;g<i;++g)for(var x=0,C=us(e,u+1,u=oL(m=s[g])),k=e;x<p;++x)(k=ob(m>0?f[x]+" "+C:Dh(C,/&\f/g,f[x])))&&(l[y++]=k);return su(e,t,r,a===0?rb:n,l,c,h,d)}function pL(e,t,r,i){return su(e,t,r,ou,Ks(sL()),us(e,2,-2),0,i)}function Hg(e,t,r,i,a){return su(e,t,r,ib,us(e,0,i),us(e,i+1,-1),i,a)}function qh(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function mL(e,t,r,i){switch(e.type){case ab:if(e.children.length)break;case eL:case iL:case ib:return e.return=e.return||e.value;case ou:return"";case Rh:return e.return=e.value+"{"+qh(e.children,i)+"}";case rb:if(!Ki(e.value=e.props.join(",")))return""}return Ki(r=qh(e.children,i))?e.return=e.value+"{"+r+"}":""}function yL(e){var t=sb(e);return function(r,i,a,o){for(var s="",n=0;n<t;n++)s+=e[n](r,i,a,o)||"";return s}}var lb="c4",xL=b(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),bL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./umdNWcd2.js");return{diagram:t}},__vite__mapDeps([11,12]),import.meta.url);return{id:lb,diagram:e}},"loader"),CL={id:lb,detector:xL,loader:bL},wL=CL,cb="flowchart-v2",kL=b(e=>/^\s*(graph|flowchart)/.test(e),"detector"),SL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./DFWX4KUv.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,6,48,49,50,51,52,53,54]),import.meta.url);return{id:cb,diagram:e}},"loader"),vL={id:cb,detector:kL,loader:SL},ML=vL,hb="agentflow",TL=b(e=>/^\s*agentflow-beta\b/.test(e),"detector"),BL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CDOqg_hD.js");return{diagram:t}},__vite__mapDeps([55,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,6,48,49,50,51,52,53,54]),import.meta.url);return{id:hb,diagram:e}},"loader"),_L={id:hb,detector:TL,loader:BL},LL=_L,db="swimlane",AL=b(e=>/^\s*swimlane-beta\b/.test(e),"detector"),FL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./DrsfHmYl.js");return{diagram:t}},__vite__mapDeps([56,13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,6,48,49,50,51,52,53,54]),import.meta.url);return{id:db,diagram:e}},"loader"),$L={id:db,detector:AL,loader:FL},EL=$L,ub="er",PL=b(e=>/^\s*erDiagram/.test(e),"detector"),IL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./BrvQxJce.js");return{diagram:t}},__vite__mapDeps([57,15,16]),import.meta.url);return{id:ub,diagram:e}},"loader"),OL={id:ub,detector:PL,loader:IL},RL=OL,fb="gitGraph",DL=b(e=>/^\s*gitGraph/.test(e),"detector"),NL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./B2skdn5r.js");return{diagram:t}},__vite__mapDeps([58,59,60,61,3,4]),import.meta.url);return{id:fb,diagram:e}},"loader"),qL={id:fb,detector:DL,loader:NL},WL=qL,gb="gantt",zL=b(e=>/^\s*gantt/.test(e),"detector"),HL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./DTx3XIeO.js");return{diagram:t}},__vite__mapDeps([62,6,63]),import.meta.url);return{id:gb,diagram:e}},"loader"),YL={id:gb,detector:zL,loader:HL},XL=YL,pb="info",jL=b(e=>/^\s*info/.test(e),"detector"),GL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./ljddUkNt.js");return{diagram:t}},__vite__mapDeps([64,61,3,4]),import.meta.url);return{id:pb,diagram:e}},"loader"),UL={id:pb,detector:jL,loader:GL},mb="pie",VL=b(e=>/^\s*pie/.test(e),"detector"),ZL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CvCi5Zre.js");return{diagram:t}},__vite__mapDeps([65,60,61,3,4,63]),import.meta.url);return{id:mb,diagram:e}},"loader"),KL={id:mb,detector:VL,loader:ZL},yb="quadrantChart",QL=b(e=>/^\s*quadrantChart/.test(e),"detector"),JL=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./B6uczKwF.js");return{diagram:t}},__vite__mapDeps([66,63]),import.meta.url);return{id:yb,diagram:e}},"loader"),tA={id:yb,detector:QL,loader:JL},eA=tA,xb="xychart",rA=b(e=>/^\s*xychart(-beta)?/.test(e),"detector"),iA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CBjTuKEK.js");return{diagram:t}},__vite__mapDeps([67,63]),import.meta.url);return{id:xb,diagram:e}},"loader"),aA={id:xb,detector:rA,loader:iA},oA=aA,bb="requirement",sA=b(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),nA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./urnpr2FU.js");return{diagram:t}},__vite__mapDeps([68,15,16]),import.meta.url);return{id:bb,diagram:e}},"loader"),lA={id:bb,detector:sA,loader:nA},cA=lA,Cb="sequence",hA=b(e=>/^\s*sequenceDiagram/.test(e),"detector"),dA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./BOtVBIUd.js");return{diagram:t}},__vite__mapDeps([69,59,12]),import.meta.url);return{id:Cb,diagram:e}},"loader"),uA={id:Cb,detector:hA,loader:dA},fA=uA,wb="classDiagram",gA=b(e=>/^\s*classDiagram/.test(e),"detector"),pA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./DhdMmVFs.js");return{diagram:t}},__vite__mapDeps([70,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,6,48,49,50,51,52,53,54]),import.meta.url);return{id:wb,diagram:e}},"loader"),mA={id:wb,detector:gA,loader:pA},yA=mA,kb="stateDiagram",xA=b(e=>/^\s*stateDiagram/.test(e),"detector"),bA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CoN6faAY.js");return{diagram:t}},__vite__mapDeps([71,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,6,48,49,50,51,52,53,54]),import.meta.url);return{id:kb,diagram:e}},"loader"),CA={id:kb,detector:xA,loader:bA},wA=CA,Sb="journey",kA=b(e=>/^\s*journey/.test(e),"detector"),SA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./mGAn30DI.js");return{diagram:t}},__vite__mapDeps([72,14,12]),import.meta.url);return{id:Sb,diagram:e}},"loader"),vA={id:Sb,detector:kA,loader:SA},MA=vA,In=4,Es=75,TA=b(e=>{const t=[];for(const a of e.split(/\s+/)){let o=[...a];for(;o.length>Es;)t.push(o.slice(0,Es).join("")),o=o.slice(Es);o.length>0&&t.push(o.join(""))}const r=[];let i="";for(const a of t){const o=i?`${i} ${a}`:a;[...o].length>Es?(r.push(i),i=a):i=o}if(i&&r.push(i),r.length>In){r.length=In;const a=r[In-1]??"";r[In-1]=`${[...a].slice(0,Es-3).join("")}...`}return r},"wrapErrorMessage"),BA=b((e,t,r,i)=>{Tt.debug(`rendering svg for syntax error
302
+ `);const a=J_(t),o=a.append("g"),s=TA(i?.db.getErrorMessage?.()??""),n=s.length>0?500+s.length*56:512;a.attr("viewBox",`0 0 2412 ${n}`),Gp(a,100,n,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),s.forEach((l,c)=>{o.append("text").attr("class","error-text").attr("x",1440).attr("y",510+c*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),vb={draw:BA},_A=vb,Kc,LA={clear(){Kc=void 0},setErrorMessage(e){Kc=e},getErrorMessage(){return Kc}},AA={db:LA,renderer:vb,parser:{parse:b(()=>{},"parse")}},FA=AA,Mb="flowchart-elk",$A=b((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),EA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./DFWX4KUv.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,6,48,49,50,51,52,53,54]),import.meta.url);return{id:Mb,diagram:e}},"loader"),PA={id:Mb,detector:$A,loader:EA},IA=PA,Tb="timeline",OA=b(e=>/^\s*timeline/.test(e),"detector"),RA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./BTJSEmEn.js");return{diagram:t}},[],import.meta.url);return{id:Tb,diagram:e}},"loader"),DA={id:Tb,detector:OA,loader:RA},NA=DA,Bb="mindmap",qA=b(e=>/^\s*mindmap/.test(e),"detector"),WA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./ua4ooXEO.js");return{diagram:t}},__vite__mapDeps([73,15,16]),import.meta.url);return{id:Bb,diagram:e}},"loader"),zA={id:Bb,detector:qA,loader:WA},HA=zA,_b="kanban",YA=b(e=>/^\s*kanban/.test(e),"detector"),XA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./tADzjMIa.js");return{diagram:t}},__vite__mapDeps([74,14]),import.meta.url);return{id:_b,diagram:e}},"loader"),jA={id:_b,detector:YA,loader:XA},GA=jA,Lb="sankey",UA=b(e=>/^\s*sankey(-beta)?/.test(e),"detector"),VA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./Clh-uN2S.js");return{diagram:t}},__vite__mapDeps([75,63]),import.meta.url);return{id:Lb,diagram:e}},"loader"),ZA={id:Lb,detector:UA,loader:VA},KA=ZA,Ab="packet",QA=b(e=>/^\s*packet(-beta)?/.test(e),"detector"),JA=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./DhnV1b3I.js");return{diagram:t}},__vite__mapDeps([76,60,61,3,4]),import.meta.url);return{id:Ab,diagram:e}},"loader"),t5={id:Ab,detector:QA,loader:JA},Fb="radar",e5=b(e=>/^\s*radar-beta/.test(e),"detector"),r5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./BP8RauO6.js");return{diagram:t}},__vite__mapDeps([77,60,61,3,4]),import.meta.url);return{id:Fb,diagram:e}},"loader"),i5={id:Fb,detector:e5,loader:r5},$b="block",a5=b(e=>/^\s*block(-beta)?/.test(e),"detector"),o5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CclH1YIh.js");return{diagram:t}},__vite__mapDeps([78,14,5]),import.meta.url);return{id:$b,diagram:e}},"loader"),s5={id:$b,detector:a5,loader:o5},n5=s5,Eb="treeView",l5=b(e=>/^\s*treeView-beta/.test(e),"detector"),c5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./Cu9Chmho.js");return{diagram:t}},__vite__mapDeps([79,59,60,61,3,4]),import.meta.url);return{id:Eb,diagram:e}},"loader"),h5={id:Eb,detector:l5,loader:c5},d5=h5,Pb="architecture",u5=b(e=>/^\s*architecture/.test(e),"detector"),f5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./wruYJWvu.js");return{diagram:t}},__vite__mapDeps([80,60,61,3,4,10,6]),import.meta.url);return{id:Pb,diagram:e}},"loader"),g5={id:Pb,detector:u5,loader:f5},p5=g5,Ib="eventmodeling",m5=b(e=>/^\s*eventmodeling/.test(e),"detector"),y5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./DFea2F8i.js");return{diagram:t}},__vite__mapDeps([81,60,61,3,4]),import.meta.url);return{id:Ib,diagram:e}},"loader"),x5={id:Ib,detector:m5,loader:y5},b5=x5,Ob="ishikawa",C5=b(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),w5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./3ihzYB3B.js");return{diagram:t}},[],import.meta.url);return{id:Ob,diagram:e}},"loader"),k5={id:Ob,detector:C5,loader:w5},Rb="venn",S5=b(e=>/^\s*venn-beta/.test(e),"detector"),v5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./C4hcrWw4.js");return{diagram:t}},[],import.meta.url);return{id:Rb,diagram:e}},"loader"),M5={id:Rb,detector:S5,loader:v5},T5=M5,Db="treemap",B5=b(e=>/^\s*treemap/.test(e),"detector"),_5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./axQU0SjH.js");return{diagram:t}},__vite__mapDeps([82,16,60,61,3,4,63]),import.meta.url);return{id:Db,diagram:e}},"loader"),L5={id:Db,detector:B5,loader:_5},Nb="usecase",A5=b(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),F5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./CoJ-IYbA.js");return{diagram:t}},__vite__mapDeps([83,15,16]),import.meta.url);return{id:Nb,diagram:e}},"loader"),$5={id:Nb,detector:A5,loader:F5},qb="wardley",E5=b(e=>/^\s*wardley-beta/i.test(e),"detector"),P5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./BKKe6SMA.js");return{diagram:t}},__vite__mapDeps([84,60,61,3,4]),import.meta.url);return{id:qb,diagram:e}},"loader"),I5={id:qb,detector:E5,loader:P5},O5=I5,Wb="cynefin",R5=b(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),D5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./Cu6cQ3bz.js");return{diagram:t}},__vite__mapDeps([85,60,61,3,4]),import.meta.url);return{id:Wb,diagram:e}},"loader"),N5={id:Wb,detector:R5,loader:D5},zb="railroad",q5=b(e=>/^\s*railroad-beta/i.test(e),"detector"),W5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./JJppOn81.js");return{diagram:t}},__vite__mapDeps([86,87,60,61,3,4]),import.meta.url);return{id:zb,diagram:e}},"loader"),z5={id:zb,detector:q5,loader:W5},Hb="railroadEbnf",H5=b(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),Y5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./DlfmDS1W.js");return{diagram:t}},__vite__mapDeps([88,87,60,61,3,4]),import.meta.url);return{id:Hb,diagram:e}},"loader"),X5={id:Hb,detector:H5,loader:Y5},Yb="railroadAbnf",j5=b(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),G5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./B6HDg_5J.js");return{diagram:t}},__vite__mapDeps([89,87,60,61,3,4]),import.meta.url);return{id:Yb,diagram:e}},"loader"),U5={id:Yb,detector:j5,loader:G5},Xb="railroadPeg",V5=b(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),Z5=b(async()=>{const{diagram:e}=await Ge(async()=>{const{diagram:t}=await import("./BHCa2aqv.js");return{diagram:t}},__vite__mapDeps([90,87,60,61,3,4]),import.meta.url);return{id:Xb,diagram:e}},"loader"),K5={id:Xb,detector:V5,loader:Z5},Yg=!1,Kl=b(()=>{Yg||(Yg=!0,cl("error",FA,e=>e.toLowerCase().trim()==="error"),cl("---",{db:{clear:b(()=>{},"clear")},styles:{},renderer:{draw:b(()=>{},"draw")},parser:{parse:b(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:b(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),hh(IA,HA,p5),hh(LL,wL,GA,yA,RL,XL,UL,KL,cA,fA,EL,ML,NA,WL,wA,MA,eA,KA,t5,oA,n5,b5,d5,i5,k5,L5,z5,X5,U5,K5,T5,O5,N5,$5))},"addDiagrams"),Q5=b(async()=>{Tt.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(yo).map(async([r,{detector:i,loader:a}])=>{if(a)try{ph(r)}catch{try{const{diagram:o,id:s}=await a();cl(s,o,i)}catch(o){throw Tt.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete yo[r],o}}}))).filter(r=>r.status==="rejected");if(t.length>0){Tt.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Tt.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),J5="graphics-document document";function jb(e,t){e.attr("role",J5),t!==""&&e.attr("aria-roledescription",t)}b(jb,"setA11yDiagramInfo");function Gb(e,t,r,i){if(e.insert!==void 0){if(r){const a=`chart-desc-${i}`;e.attr("aria-describedby",a),e.insert("desc",":first-child").attr("id",a).text(r)}if(t){const a=`chart-title-${i}`;e.attr("aria-labelledby",a),e.insert("title",":first-child").attr("id",a).text(t)}}}b(Gb,"addSVGa11yTitleDescription");var mo,Fl=(mo=class{constructor(t,r,i,a,o){this.type=t,this.text=r,this.db=i,this.parser=a,this.renderer=o}static async fromText(t,r={}){const i=typeof t=="string"?{cleaned:t}:t,a=Tr(),o=Ol(i.cleaned,a);try{ph(o)}catch{const u=JC(o);if(!u)throw new Pp(`Diagram ${o} not found.`);const{id:f,diagram:p}=await u();cl(f,p)}const{db:s,parser:n,renderer:l,init:c}=ph(o);n.parser&&(n.parser.yy=s),s.clear?.(),c?.(a),r.title&&s.setDiagramTitle?.(r.title);let h=i.cleaned;if(s.preserveCommentsWhenParsing&&i.withComments){const u=a.maxTextSize??ud.maxTextSize;i.withComments.length>u?Tt.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${u}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):h=i.withComments}const d=oM(h)+`
303
303
  `;return i.frontmatterLineOffset&&s.setFrontmatterLineOffset?.(i.frontmatterLineOffset),await n.parse(d),new mo(o,d,s,n,l)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},b(mo,"Diagram"),mo),Xg=[],tF=b(()=>{Xg.forEach(e=>{e()}),Xg=[]},"attachFunctions"),eF=b(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Ub(e){const t=Ep(e);if(!t)return{text:e,metadata:{}};const r=t.indent,i=r?t.body.split(`
304
304
  `).map(s=>s.startsWith(r)?s.slice(r.length):s).join(`
305
305
  `):t.body;let a=RC(i,{schema:OC})??{};a=typeof a=="object"&&!Array.isArray(a)?a:{};const o={};return a.displayMode&&(o.displayMode=a.displayMode.toString()),a.title&&(o.title=a.title.toString()),a.config&&(o.config=a.config),{text:e.slice(t.length),metadata:o}}b(Ub,"extractFrontMatter");var rF=b(e=>e.replace(/\r\n?/g,`