@intent-hq/web 2.308.0 → 2.308.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.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{Cdw6MInS.js → 20p6UVrJ.js} +1 -1
- package/web/app/immutable/chunks/{sFBciGzK.js → 3mA9htoY.js} +1 -1
- package/web/app/immutable/chunks/{Dft9saDn.js → 4sdU8HJh.js} +1 -1
- package/web/app/immutable/chunks/{Hv37H7OW.js → 5jHx5tgm.js} +1 -1
- package/web/app/immutable/chunks/{mxMUw61m.js → 64K2oBlN.js} +1 -1
- package/web/app/immutable/chunks/{-B3w7smR.js → 7GaMUkMr.js} +1 -1
- package/web/app/immutable/chunks/{fsr4ml-E.js → 7I4Lb20T.js} +1 -1
- package/web/app/immutable/chunks/{Dy2IW3UQ.js → 7NZPmxCc.js} +1 -1
- package/web/app/immutable/chunks/{C4EO5Kfs.js → 7woFK997.js} +1 -1
- package/web/app/immutable/chunks/{CVmTCE7s.js → AcuCqG0h.js} +1 -1
- package/web/app/immutable/chunks/{7-4K7v4g.js → Aq8XADnv.js} +1 -1
- package/web/app/immutable/chunks/{BvSpaYYO.js → B-Do9RZm.js} +1 -1
- package/web/app/immutable/chunks/{DRY7e-Lq.js → B1gh0LOn.js} +1 -1
- package/web/app/immutable/chunks/{DtWlovTg.js → B2MkQOVO.js} +1 -1
- package/web/app/immutable/chunks/{DCYtlLu-.js → B43S04j_.js} +1 -1
- package/web/app/immutable/chunks/{C3Fbg3bo.js → B4kMH02u.js} +1 -1
- package/web/app/immutable/chunks/{DqF0c_03.js → B5n1NWyy.js} +1 -1
- package/web/app/immutable/chunks/B6MkJHGN.js +1 -0
- package/web/app/immutable/chunks/{BgY3ql3v.js → B6Utvg2n.js} +1 -1
- package/web/app/immutable/chunks/{DbN_saL_.js → B6qPnBG-.js} +1 -1
- package/web/app/immutable/chunks/{Bsg35Oqb.js → B7OQprzS.js} +1 -1
- package/web/app/immutable/chunks/{CuDezCQ5.js → B7ZegD4D.js} +2 -2
- package/web/app/immutable/chunks/{_ybNzzj4.js → B8923tpn.js} +1 -1
- package/web/app/immutable/chunks/{DketxIzW.js → BAzJKeaK.js} +1 -1
- package/web/app/immutable/chunks/{Bmp6mo_s.js → BD3-5til.js} +1 -1
- package/web/app/immutable/chunks/{BWEOkWg3.js → BDzrcVAC.js} +1 -1
- package/web/app/immutable/chunks/{BiFgVe6g.js → BEW3Nx_B.js} +2 -2
- package/web/app/immutable/chunks/{7EvfrDU0.js → BIQCpOqH.js} +1 -1
- package/web/app/immutable/chunks/{hTYb21U_.js → BJgRJinA.js} +1 -1
- package/web/app/immutable/chunks/{DExyo3TI.js → BK1cEBjQ.js} +1 -1
- package/web/app/immutable/chunks/{79Zkca1D.js → BKv7jjmi.js} +1 -1
- package/web/app/immutable/chunks/{C2Ib9ljU.js → BNIR-Q1X.js} +1 -1
- package/web/app/immutable/chunks/{BWLUCU8u.js → BR9v8XzI.js} +1 -1
- package/web/app/immutable/chunks/{DMl2hAjr.js → BV6v273A.js} +1 -1
- package/web/app/immutable/chunks/{CCL8C58v.js → BW8HfXsd.js} +1 -1
- package/web/app/immutable/chunks/{5Ji_nn5U.js → BWaUCvWp.js} +1 -1
- package/web/app/immutable/chunks/{CkRxNMzn.js → BXxd1yfG.js} +1 -1
- package/web/app/immutable/chunks/{BW4J01Vd.js → BY5rau8Y.js} +1 -1
- package/web/app/immutable/chunks/{Dt4s7v4Q.js → BY6gVP5g.js} +2 -2
- package/web/app/immutable/chunks/{BNzOwWfC.js → B_xltzgW.js} +1 -1
- package/web/app/immutable/chunks/{Co8-Pa6T.js → BaW2Kupg.js} +4 -4
- package/web/app/immutable/chunks/{D_LJNo0n.js → BbGSGn0Q.js} +1 -1
- package/web/app/immutable/chunks/{BoSllnp_.js → BbUQNpFr.js} +1 -1
- package/web/app/immutable/chunks/{CxrPw94A.js → BbzvDmlI.js} +3 -3
- package/web/app/immutable/chunks/{CU8cEhkD.js → Bc8khoFa.js} +1 -1
- package/web/app/immutable/chunks/{B1yY6GJu.js → BcN0CnII.js} +1 -1
- package/web/app/immutable/chunks/{C_QScSD8.js → Beai452N.js} +1 -1
- package/web/app/immutable/chunks/{Ces2yzPJ.js → BfZnDuM_.js} +1 -1
- package/web/app/immutable/chunks/{CHPRzIEy.js → BhHn9akW.js} +1 -1
- package/web/app/immutable/chunks/{CH9XQcSf.js → BhVXJo65.js} +1 -1
- package/web/app/immutable/chunks/{BUHhLhgs.js → Bi74ET9W.js} +1 -1
- package/web/app/immutable/chunks/{CARz5CCT.js → BqVcdxr-.js} +1 -1
- package/web/app/immutable/chunks/{CdV1nqqz.js → Br15jMhJ.js} +1 -1
- package/web/app/immutable/chunks/{CRzOnFQP.js → Bs4FWb9N.js} +1 -1
- package/web/app/immutable/chunks/{BVOBfKOE.js → BsqCeXyo.js} +1 -1
- package/web/app/immutable/chunks/{dih-86Tc.js → Bt1rXtoo.js} +1 -1
- package/web/app/immutable/chunks/{CVyBS3oN.js → BtabWTXt.js} +1 -1
- package/web/app/immutable/chunks/{gdHduTFA.js → Byuo4e4d.js} +1 -1
- package/web/app/immutable/chunks/{DmUYWvMN.js → Bz6PKE7H.js} +1 -1
- package/web/app/immutable/chunks/{CWC_Nlup.js → BzL4sJXY.js} +1 -1
- package/web/app/immutable/chunks/{9hq3-PO7.js → C0a6I3vg.js} +1 -1
- package/web/app/immutable/chunks/{BOCOLX90.js → C44FfRqF.js} +3 -3
- package/web/app/immutable/chunks/{DQjYQpqd.js → C4OKLpdN.js} +1 -1
- package/web/app/immutable/chunks/{D4DWEC-L.js → C4V8YQCv.js} +1 -1
- package/web/app/immutable/chunks/{BqcwAMAI.js → C5EoO5Sg.js} +1 -1
- package/web/app/immutable/chunks/{BjPXFOqO.js → C5UReY-E.js} +1 -1
- package/web/app/immutable/chunks/{BCX3JQcy.js → C5j9FNqg.js} +1 -1
- package/web/app/immutable/chunks/{Dm4s1Q7w.js → C5zpIq2z.js} +1 -1
- package/web/app/immutable/chunks/{eArTaZy5.js → C6lu15Tw.js} +1 -1
- package/web/app/immutable/chunks/{DWTnVkwi.js → C6z3A8E7.js} +1 -1
- package/web/app/immutable/chunks/{BX6K5XDX.js → C8QbdAo3.js} +1 -1
- package/web/app/immutable/chunks/{De8QYb8q.js → CDnda6Iq.js} +1 -1
- package/web/app/immutable/chunks/{V0vWExlc.js → CG68xo30.js} +1 -1
- package/web/app/immutable/chunks/{C_ibd4Ww.js → CGMdgn-W.js} +1 -1
- package/web/app/immutable/chunks/{DrsphvSS.js → CGzdYZTI.js} +1 -1
- package/web/app/immutable/chunks/{Deu3BA7u.js → CIC39etl.js} +1 -1
- package/web/app/immutable/chunks/{Bzvl9BJV.js → CJYxykIm.js} +1 -1
- package/web/app/immutable/chunks/{B7Se8Mhp.js → CKIXy6ww.js} +1 -1
- package/web/app/immutable/chunks/{Hf5uwTdE.js → CL-rni0w.js} +1 -1
- package/web/app/immutable/chunks/{BXeRsIrT.js → CLy6KHFt.js} +6 -6
- package/web/app/immutable/chunks/{BeMvIUhX.js → CMNzHnZE.js} +1 -1
- package/web/app/immutable/chunks/{BiGwvkYf.js → COErIaxB.js} +1 -1
- package/web/app/immutable/chunks/{CyFFAGL5.js → CRHmQRas.js} +1 -1
- package/web/app/immutable/chunks/{Ds_Kf9EA.js → CWfnIL3Q.js} +7 -7
- package/web/app/immutable/chunks/{BwldUeEG.js → CY2dENCG.js} +1 -1
- package/web/app/immutable/chunks/{Xo50RLJp.js → CYbC4Xec.js} +1 -1
- package/web/app/immutable/chunks/{Bj1RMWlB.js → CboPiPQY.js} +1 -1
- package/web/app/immutable/chunks/{Bjte08dR.js → Cce6TTnZ.js} +1 -1
- package/web/app/immutable/chunks/{GF5ZSxte.js → CdwBPvEi.js} +1 -1
- package/web/app/immutable/chunks/{DR-Aj_ks.js → Cg2VNX7z.js} +1 -1
- package/web/app/immutable/chunks/{BnUIUu9T.js → ChGBRwNt.js} +1 -1
- package/web/app/immutable/chunks/{nPJWc816.js → Cm7xDtac.js} +1 -1
- package/web/app/immutable/chunks/{Cr9D3b1H.js → CmXHtTkz.js} +1 -1
- package/web/app/immutable/chunks/{C8htDeGn.js → CpiHp8Ae.js} +4 -4
- package/web/app/immutable/chunks/{Du-d3vcz.js → CrvoX2WJ.js} +1 -1
- package/web/app/immutable/chunks/{CUSFlCws.js → Ctl_B37M.js} +1 -1
- package/web/app/immutable/chunks/{CUUGGMlu.js → CucuIbmg.js} +1 -1
- package/web/app/immutable/chunks/{BP5FX2kf.js → CwFOIVIZ.js} +1 -1
- package/web/app/immutable/chunks/{C6ujNqIY.js → CxQfN3-2.js} +1 -1
- package/web/app/immutable/chunks/{hQ9zd42d.js → Cxs8qSWC.js} +1 -1
- package/web/app/immutable/chunks/{08jl08Lg.js → D-vX4iJv.js} +1 -1
- package/web/app/immutable/chunks/{5MwvnnU4.js → D3vkMbH6.js} +2 -2
- package/web/app/immutable/chunks/{VKybzKaK.js → D6FhcUuF.js} +1 -1
- package/web/app/immutable/chunks/{B2WUxdNu.js → DAKiyYLi.js} +2 -2
- package/web/app/immutable/chunks/{DYyzIkMa.js → DBe3iowp.js} +1 -1
- package/web/app/immutable/chunks/{BdjTR4R9.js → DCHrAI0P.js} +4 -4
- package/web/app/immutable/chunks/{BdrD6-Yk.js → DCTOYXXK.js} +1 -1
- package/web/app/immutable/chunks/{B70VJUk6.js → DCn_fwGY.js} +1 -1
- package/web/app/immutable/chunks/{UDIxqEeg.js → DCpLg9rk.js} +1 -1
- package/web/app/immutable/chunks/{Biu0mZ7b.js → DDVvWGb_.js} +1 -1
- package/web/app/immutable/chunks/{jZC5wC-X.js → DFX-g_B2.js} +1 -1
- package/web/app/immutable/chunks/{DZ0q4VGI.js → DGCL143k.js} +1 -1
- package/web/app/immutable/chunks/{fgutS2Xt.js → DHeLZdAl.js} +1 -1
- package/web/app/immutable/chunks/{JyqDnnKU.js → DJhdh1Cj.js} +1 -1
- package/web/app/immutable/chunks/{TNF6hsWn.js → DJlDux3f.js} +1 -1
- package/web/app/immutable/chunks/{BfVCrToW.js → DLDAnI9z.js} +1 -1
- package/web/app/immutable/chunks/{BU52YJZu.js → DMUxnsSi.js} +1 -1
- package/web/app/immutable/chunks/{DiTToznV.js → DN0k4-NH.js} +2 -2
- package/web/app/immutable/chunks/{q3LKPyTi.js → DNS6iE59.js} +1 -1
- package/web/app/immutable/chunks/{C4JGZJVX.js → DQpf1Ksw.js} +1 -1
- package/web/app/immutable/chunks/{B8zPoaDq.js → DRm8GvSg.js} +1 -1
- package/web/app/immutable/chunks/{6zbeEeHU.js → DWbUmCoQ.js} +1 -1
- package/web/app/immutable/chunks/{hRTXnLSp.js → DZcnfrfN.js} +1 -1
- package/web/app/immutable/chunks/{BvZ472sk.js → DaR6SlK7.js} +3 -3
- package/web/app/immutable/chunks/{OXkvCdQy.js → Dd78YZJ8.js} +2 -2
- package/web/app/immutable/chunks/{RBtryOly.js → DeGjTipP.js} +1 -1
- package/web/app/immutable/chunks/{CbdsiBFH.js → DeKx3e_L.js} +1 -1
- package/web/app/immutable/chunks/{DUNFJ1mG.js → DgBIwWee.js} +1 -1
- package/web/app/immutable/chunks/{CZrhAzUT.js → DgHl4bT8.js} +1 -1
- package/web/app/immutable/chunks/{Bu8ds4Jl.js → DhIDq5qU.js} +1 -1
- package/web/app/immutable/chunks/{DmfJJbWh.js → DhT0fw5L.js} +1 -1
- package/web/app/immutable/chunks/{7EVUv7lz.js → Djwcl6Fr.js} +1 -1
- package/web/app/immutable/chunks/{0Jt7HvfX.js → Dl8JqE7s.js} +1 -1
- package/web/app/immutable/chunks/{fe_eftOD.js → DlZ5F9Lx.js} +1 -1
- package/web/app/immutable/chunks/{ByIqwBuP.js → DnamVqCn.js} +1 -1
- package/web/app/immutable/chunks/{DcW7h9iU.js → DoMPu14N.js} +1 -1
- package/web/app/immutable/chunks/{Cuq5AuKG.js → Dof0iyzF.js} +1 -1
- package/web/app/immutable/chunks/{D-L0g5sP.js → Doh3PUYI.js} +1 -1
- package/web/app/immutable/chunks/{DPCSzjyj.js → DqgAlN7P.js} +1 -1
- package/web/app/immutable/chunks/{DcWh3crB.js → DtDxrQfi.js} +1 -1
- package/web/app/immutable/chunks/{P2xe4rfv.js → DtLridJD.js} +1 -1
- package/web/app/immutable/chunks/{DvcYKh19.js → DuD6uhYH.js} +1 -1
- package/web/app/immutable/chunks/{CQwSYydk.js → DvBs4Hcz.js} +1 -1
- package/web/app/immutable/chunks/{fLy_hJlz.js → DvDq_wDk.js} +1 -1
- package/web/app/immutable/chunks/{BsBYt8VW.js → DwclCkw1.js} +1 -1
- package/web/app/immutable/chunks/{Bsl2-PKT.js → Dx2FEG0z.js} +1 -1
- package/web/app/immutable/chunks/{BmhoW_L6.js → DxGyW0lA.js} +1 -1
- package/web/app/immutable/chunks/{D49m-ZaH.js → DzsfGvxl.js} +1 -1
- package/web/app/immutable/chunks/{B-ahkFCR.js → Fo7QNM30.js} +1 -1
- package/web/app/immutable/chunks/{CaHzETsO.js → Glr413kB.js} +1 -1
- package/web/app/immutable/chunks/{DtB5d-1F.js → HsvYWQrw.js} +1 -1
- package/web/app/immutable/chunks/{BL9-ROzw.js → JWlrX8g6.js} +1 -1
- package/web/app/immutable/chunks/{DMFRjZee.js → Jqp5qOVD.js} +1 -1
- package/web/app/immutable/chunks/{CLgOAyRn.js → LigVTKZd.js} +1 -1
- package/web/app/immutable/chunks/{7Oj1FwH7.js → M5XKIMwb.js} +1 -1
- package/web/app/immutable/chunks/{CRTiEGz_.js → NcTzLGaE.js} +6 -6
- package/web/app/immutable/chunks/{8xz0mqCS.js → Q7h5F5MY.js} +1 -1
- package/web/app/immutable/chunks/{HFgXggBX.js → ST0Pr06L.js} +1 -1
- package/web/app/immutable/chunks/{DBG-2jVd.js → SqT0PCrX.js} +1 -1
- package/web/app/immutable/chunks/{1Q6G0pvW.js → U1EJdIrS.js} +1 -1
- package/web/app/immutable/chunks/{BaCDnbdR.js → U5EkHYlB.js} +1 -1
- package/web/app/immutable/chunks/{CKylENIK.js → UuhfJP8e.js} +1 -1
- package/web/app/immutable/chunks/{B6SdqA8G.js → VLIUKGSW.js} +1 -1
- package/web/app/immutable/chunks/{B_ihHIXk.js → XhVa-cY9.js} +1 -1
- package/web/app/immutable/chunks/{B9Zb2I-3.js → XwAA3IRV.js} +1 -1
- package/web/app/immutable/chunks/{LNGUAKz-.js → ZSVjaaq5.js} +1 -1
- package/web/app/immutable/chunks/{Bdi_ql3M.js → ZW7HN3jk.js} +1 -1
- package/web/app/immutable/chunks/{D60UPZv6.js → cK_X_Z2_.js} +1 -1
- package/web/app/immutable/chunks/{B4JY7OdG.js → cp14at2-.js} +1 -1
- package/web/app/immutable/chunks/{DKI6Z6i9.js → cyTctvu3.js} +1 -1
- package/web/app/immutable/chunks/{mXP56bVn.js → f4sPQl0K.js} +1 -1
- package/web/app/immutable/chunks/{DhLqxXsb.js → hebNG67g.js} +1 -1
- package/web/app/immutable/chunks/{DKUxKAad.js → hf6CuW6w.js} +1 -1
- package/web/app/immutable/chunks/{BCShYG5q.js → i-Fs1U2f.js} +1 -1
- package/web/app/immutable/chunks/{gZfnsun1.js → jqiCLmEu.js} +6 -6
- package/web/app/immutable/chunks/{W_knKG-M.js → lP8JdB64.js} +1 -1
- package/web/app/immutable/chunks/{DgTxDo3A.js → qCYtXSkB.js} +1 -1
- package/web/app/immutable/chunks/{edWktldY.js → s0uOmxSf.js} +1 -1
- package/web/app/immutable/chunks/{DpfRsBSx.js → saR3-JRv.js} +1 -1
- package/web/app/immutable/chunks/{CrHWjZvi.js → t-AupbTj.js} +1 -1
- package/web/app/immutable/chunks/{CjnNpRDF.js → uD982nf2.js} +1 -1
- package/web/app/immutable/chunks/{B2LC9Sos.js → yQERw7Ok.js} +1 -1
- package/web/app/immutable/chunks/{BC2yRiH0.js → ybv9yBcQ.js} +1 -1
- package/web/app/immutable/entry/{app.5swf8fH6.js → app.DbJk3ZpG.js} +2 -2
- package/web/app/immutable/entry/start.DTPxOZG8.js +1 -0
- package/web/app/immutable/nodes/{0.rj6WxPiI.js → 0.BJ700vC2.js} +1 -1
- package/web/app/immutable/nodes/{1.D2LKdxSK.js → 1.BTyy14rK.js} +1 -1
- package/web/app/immutable/nodes/{10.CsOXyM9t.js → 10.V55g30nz.js} +1 -1
- package/web/app/immutable/nodes/{14.EKyMha8S.js → 14._G7LK5Dq.js} +1 -1
- package/web/app/immutable/nodes/{16.DJIf57hW.js → 16.DvmMFRvS.js} +2 -2
- package/web/app/immutable/nodes/{2.lbWc9DH5.js → 2.CxEoe4OH.js} +3 -3
- package/web/app/immutable/nodes/{3.in8ZwJzB.js → 3.Cx7GEzkN.js} +1 -1
- package/web/app/immutable/nodes/{4.CUsxPHda.js → 4.BScaFjaT.js} +1 -1
- package/web/app/immutable/nodes/{5.DvU91sgr.js → 5.B524kS74.js} +1 -1
- package/web/app/immutable/nodes/{6.BdAKoKat.js → 6.DazQUzxi.js} +1 -1
- package/web/app/immutable/nodes/{7.JNWjRQgm.js → 7.BtN1OPi8.js} +1 -1
- package/web/app/immutable/nodes/{8.CzuEJYxY.js → 8.Ak4UD-JY.js} +2 -2
- package/web/app/immutable/nodes/{9.Bn4F0-mM.js → 9.BGiVSjZY.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/ppMO_QX7.js +0 -1
- package/web/app/immutable/entry/start.B6Q2SB8U.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as he}from"./fLy_hJlz.js";import{p as $e}from"./CjnNpRDF.js";import{p as fe}from"./DR-Aj_ks.js";import{O as ge,aI as ue,aF as ye,K as xe,L as me,aG as pe,a as h,M as Z,ad as w,N as W,aV as be,aL as we,k as ke,p as B,j as ve,y as Ce,at as Ee}from"./Ds_Kf9EA.js";import{c3 as Be,g as K}from"./gZfnsun1.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ce.gitGraph,S=h(()=>ve({...Te,...Z().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function N(){return Ee({length:7})}K(N,"getID");h(N,"getID");function ee(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}K(ee,"uniqBy");h(ee,"uniqBy");var Le=h(function(e){d.records.direction=e},"setDirection"),Me=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ie=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+N(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Oe=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ne(r),w.debug("in createBranch")},"branch"),_e=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${N()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),Ge=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+N(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ne=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function z(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}K(z,"upsert");h(z,"upsert");function U(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);z(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);z(e,r,o)}}e=ee(e,o=>o.id),U(e)}K(U,"prettyPrintCommitHistory");h(U,"prettyPrintCommitHistory");var He=h(function(){w.debug(d.records.commits);const e=se()[0];U([e])},"prettyPrint"),Se=h(function(){d.reset(),ke()},"clear"),Ae=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),De=h(function(){return d.records.branches},"getBranches"),Pe=h(function(){return d.records.commits},"getCommits"),se=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),Ne=h(function(){return d.records.head},"getHead"),oe={commitType:m,getConfig:S,setDirection:Le,setOptions:Me,getOptions:Ie,commit:Re,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Se,getBranchesAsObjArray:Ae,getBranches:De,getCommits:Pe,getCommitsArray:se,getCurrentBranch:qe,getDirection:We,getHead:Ne,setAccTitle:pe,getAccTitle:me,getAccDescription:xe,setAccDescription:ye,setDiagramTitle:ue,getDiagramTitle:ge},Fe=h((e,r)=>{$e(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=h((e,r)=>{const s={Commit:h(o=>r.commit(Ye(o)),"Commit"),Branch:h(o=>r.branch(je(o)),"Branch"),Merge:h(o=>r.merge(Ke(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ve(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ke=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ve=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Xe={parse:h(async e=>{const r=await fe("gitGraph",e);w.debug(r),Fe(r,oe)},"parse")},O=10,_=40,L=4,I=2,G=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Q=12,re=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,Y=30,P=new Map,j=[],R=0,y="LR",Qe=h(()=>{C.clear(),E.clear(),P.clear(),R=0,j=[],y="LR"},"clear"),ce=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ie=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Ze=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),er=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=tr(a),o=Math.max(s,o)):i.push(a),ar(a,s)}),s=o,i.forEach(n=>{nr(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Ze(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),rr=h(e=>{const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=h(e=>rr(e)+_,"calculateCommitPosition"),ar=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),nr=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),sr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=V.has(n??""),l=re.has(n??""),f=Je.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),or=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-I).attr("y",t.y+13.5).attr("width",l.width+2*I).attr("height",l.height+2*I),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),cr=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{I as he}from"./DvDq_wDk.js";import{p as $e}from"./uD982nf2.js";import{p as fe}from"./Cg2VNX7z.js";import{O as ge,aI as ue,aF as ye,K as xe,L as me,aG as pe,a as h,M as Z,ad as w,N as W,aV as be,aL as we,k as ke,p as B,j as ve,y as Ce,at as Ee}from"./CWfnIL3Q.js";import{c3 as Be,g as K}from"./jqiCLmEu.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ce.gitGraph,S=h(()=>ve({...Te,...Z().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function N(){return Ee({length:7})}K(N,"getID");h(N,"getID");function ee(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}K(ee,"uniqBy");h(ee,"uniqBy");var Le=h(function(e){d.records.direction=e},"setDirection"),Me=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ie=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+N(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Oe=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ne(r),w.debug("in createBranch")},"branch"),_e=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${N()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),Ge=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+N(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ne=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function z(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}K(z,"upsert");h(z,"upsert");function U(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);z(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);z(e,r,o)}}e=ee(e,o=>o.id),U(e)}K(U,"prettyPrintCommitHistory");h(U,"prettyPrintCommitHistory");var He=h(function(){w.debug(d.records.commits);const e=se()[0];U([e])},"prettyPrint"),Se=h(function(){d.reset(),ke()},"clear"),Ae=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),De=h(function(){return d.records.branches},"getBranches"),Pe=h(function(){return d.records.commits},"getCommits"),se=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),Ne=h(function(){return d.records.head},"getHead"),oe={commitType:m,getConfig:S,setDirection:Le,setOptions:Me,getOptions:Ie,commit:Re,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Se,getBranchesAsObjArray:Ae,getBranches:De,getCommits:Pe,getCommitsArray:se,getCurrentBranch:qe,getDirection:We,getHead:Ne,setAccTitle:pe,getAccTitle:me,getAccDescription:xe,setAccDescription:ye,setDiagramTitle:ue,getDiagramTitle:ge},Fe=h((e,r)=>{$e(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=h((e,r)=>{const s={Commit:h(o=>r.commit(Ye(o)),"Commit"),Branch:h(o=>r.branch(je(o)),"Branch"),Merge:h(o=>r.merge(Ke(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ve(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ke=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ve=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Xe={parse:h(async e=>{const r=await fe("gitGraph",e);w.debug(r),Fe(r,oe)},"parse")},O=10,_=40,L=4,I=2,G=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Q=12,re=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,Y=30,P=new Map,j=[],R=0,y="LR",Qe=h(()=>{C.clear(),E.clear(),P.clear(),R=0,j=[],y="LR"},"clear"),ce=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ie=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Ze=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),er=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=tr(a),o=Math.max(s,o)):i.push(a),ar(a,s)}),s=o,i.forEach(n=>{nr(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Ze(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),rr=h(e=>{const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=h(e=>rr(e)+_,"calculateCommitPosition"),ar=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),nr=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),sr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=V.has(n??""),l=re.has(n??""),f=Je.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),or=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-I).attr("y",t.y+13.5).attr("width",l.width+2*I).attr("height",l.height+2*I),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),cr=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${s-i/2-L/2},${x+I}
|
|
3
3
|
${s-i/2-L/2},${x-I}
|
|
4
4
|
${t.posWithOffset-i/2-L},${x-c-I}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bo as c,_ as p}from"./DVcxpZob.js";import{n as I}from"./DTCb8Epd.js";import"./B8o4lNgr.js";import"./CRLCgacz.js";import"./Dy0ApYVY.js";import{bx as A}from"./C-KminjT.js";import"./ChTqQfQN.js";import"./BT9muwwL.js";import{g as L,Hp as d,u8 as g,ua as y}from"./DOX6tqe2.js";import{$ as R}from"./Rw2sIc23.js";import{l as v}from"./aGrIQKRU.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function H(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=h(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=h(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),m=A(E+l);return i=h(m.path.split("/")),w=m.line,W(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function h(e){return e.map(r=>decodeURIComponent(r)).join("/")}function W(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=H(e);if(!t.valid)return I.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B6qPnBG-.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/DRWXI2c9.js","/app/immutable/chunks/DVcxpZob.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/DOX6tqe2.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/Dy0ApYVY.js","/app/immutable/chunks/CtOtN9TD.js","/app/immutable/chunks/C-KminjT.js","/app/immutable/chunks/CRLCgacz.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/Bo1m530q.js","/app/immutable/chunks/jqeDAy7c.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BFV2dSHH.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/_qnhofRC.js","/app/immutable/chunks/Rw2sIc23.js","/app/immutable/chunks/ofkVZzaj.js","/app/immutable/chunks/Dwoq6qgz.js","/app/immutable/chunks/WsKP4LPk.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/BY6gVP5g.js","/app/immutable/chunks/B8923tpn.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bo as c,_ as p}from"./DVcxpZob.js";import{n as I}from"./DTCb8Epd.js";import"./B8o4lNgr.js";import"./CRLCgacz.js";import"./Dy0ApYVY.js";import{bx as A}from"./C-KminjT.js";import"./ChTqQfQN.js";import"./BT9muwwL.js";import{g as L,Hp as d,u8 as g,ua as y}from"./DOX6tqe2.js";import{$ as R}from"./Rw2sIc23.js";import{l as v}from"./aGrIQKRU.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function H(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=h(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=h(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),m=A(E+l);return i=h(m.path.split("/")),w=m.line,W(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function h(e){return e.map(r=>decodeURIComponent(r)).join("/")}function W(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=H(e);if(!t.valid)return I.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./B6qPnBG-.js");return{openMessage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:I.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?I.error(c.ui_linkHandler_notFound_title(),{description:n.message}):I.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function G(e,r){return R(e,r)}function B(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./DRWXI2c9.js").then(o=>o.Z);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,2,21,22,23]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./B8923tpn.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([30,7,5,6,8,9,10,11,12,4,13,29]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??v.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await P(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./B8923tpn.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([30,7,5,6,8,9,10,11,12,4,13,29]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(y(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await P(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(y(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??v.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./B8923tpn.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([30,7,5,6,8,9,10,11,12,4,13,29]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function P(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./C-KminjT.js").then(s=>s.az);return{backendRequest:o}},__vite__mapDeps([14,4,5,12,15,11,16,17,18,13,19,10,20]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,B as createIntentLinkClickHandler,G as generateNoteLink,T as handleIntentLink,H as parseIntentLink};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Xe}from"./BL9-ROzw.js";import{a as m,M as He,aG as Je,L as Ze,aF as et,K as tt,aI as st,O as it,N as Ce,ad as Ae,k as rt,_ as nt,R as at,ax as lt,aV as ct}from"./Ds_Kf9EA.js";import{s as ot}from"./BnUIUu9T.js";import{g as S}from"./gZfnsun1.js";var Ve=(function(){var e=m(function(P,i,a,o){for(a=a||{},o=P.length;o--;a[P[o]]=i);return a},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],n=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],p=[2,7],y=[1,26],b=[1,27],T=[1,28],C=[1,29],A=[1,33],V=[1,34],v=[1,35],x=[1,36],L=[1,37],O=[1,38],w=[1,24],D=[1,31],M=[1,32],F=[1,30],R=[1,39],g=[1,40],E=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],U=[1,61],Z=[89,90],ve=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Re=[27,29],xe=[1,70],Le=[1,71],Oe=[1,72],we=[1,73],De=[1,74],Me=[1,75],Fe=[1,76],te=[1,83],Y=[1,80],se=[1,84],ie=[1,85],re=[1,86],ne=[1,87],ae=[1,88],le=[1,89],ce=[1,90],oe=[1,91],he=[1,92],ge=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[63,64],$e=[1,101],Pe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],N=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Q=[1,110],H=[1,106],K=[1,107],W=[1,108],j=[1,109],G=[1,111],ue=[1,116],fe=[1,117],me=[1,114],de=[1,115],be={trace:m(S(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(S(function(i,a,o,s,d,t,pe){var l=t.length-1;switch(d){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(n,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},e(n,[2,4]),e(n,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:43,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:44,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:45,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:46,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:47,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:48,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:49,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:50,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(E,[2,17]),e(E,[2,18]),e(E,[2,19]),e(E,[2,20]),{30:60,33:62,75:U,89:R,90:g},{30:63,33:62,75:U,89:R,90:g},{30:64,33:62,75:U,89:R,90:g},e(Z,[2,29]),e(Z,[2,30]),e(Z,[2,31]),e(Z,[2,32]),e(Z,[2,33]),e(Z,[2,34]),e(ve,[2,81]),e(ve,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Re,[2,79]),e(Re,[2,80]),{27:[1,67],29:[1,68]},e(Re,[2,85]),e(Re,[2,86]),{62:69,65:xe,66:Le,67:Oe,68:we,69:De,70:Me,71:Fe},{62:77,65:xe,66:Le,67:Oe,68:we,69:De,70:Me,71:Fe},{30:78,33:62,75:U,89:R,90:g},{73:79,75:te,76:Y,78:81,79:82,80:se,81:ie,82:re,83:ne,84:ae,85:le,86:ce,87:oe,88:he},e(ge,[2,60]),e(ge,[2,62]),{73:93,75:te,76:Y,78:81,79:82,80:se,81:ie,82:re,83:ne,84:ae,85:le,86:ce,87:oe,88:he},{30:94,33:62,75:U,76:Y,89:R,90:g},{5:[1,95]},{30:96,33:62,75:U,89:R,90:g},{5:[1,97]},{30:98,33:62,75:U,89:R,90:g},{63:[1,99]},e(B,[2,50]),e(B,[2,51]),e(B,[2,52]),e(B,[2,53]),e(B,[2,54]),e(B,[2,55]),e(B,[2,56]),{64:[1,100]},e(E,[2,59],{76:Y}),e(E,[2,64],{76:$e}),{33:103,75:[1,102],89:R,90:g},e(Pe,[2,65],{79:104,75:te,80:se,81:ie,82:re,83:ne,84:ae,85:le,86:ce,87:oe,88:he}),e(N,[2,67]),e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(E,[2,57],{76:$e}),e(E,[2,58],{76:Y}),{5:Q,28:105,31:H,34:K,36:W,38:j,40:G},{27:[1,112],76:Y},{5:ue,40:fe,56:113,57:me,59:de},{27:[1,118],76:Y},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:te,78:121,79:82,80:se,81:ie,82:re,83:ne,84:ae,85:le,86:ce,87:oe,88:he},e(ge,[2,61]),e(ge,[2,63]),e(N,[2,68]),e(E,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Q,28:126,31:H,34:K,36:W,38:j,40:G},e(E,[2,28]),{5:[1,127]},e(E,[2,42]),{32:[1,128]},{32:[1,129]},{5:ue,40:fe,56:130,57:me,59:de},e(E,[2,47]),{5:[1,131]},e(E,[2,48]),e(E,[2,49]),e(Pe,[2,66],{79:104,75:te,80:se,81:ie,82:re,83:ne,84:ae,85:le,86:ce,87:oe,88:he}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(E,[2,27]),{5:Q,28:145,31:H,34:K,36:W,38:j,40:G},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(E,[2,46]),{5:ue,40:fe,56:152,57:me,59:de},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(E,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(E,[2,43]),{5:Q,28:159,31:H,34:K,36:W,38:j,40:G},{5:Q,28:160,31:H,34:K,36:W,38:j,40:G},{5:Q,28:161,31:H,34:K,36:W,38:j,40:G},{5:Q,28:162,31:H,34:K,36:W,38:j,40:G},{5:ue,40:fe,56:163,57:me,59:de},{5:ue,40:fe,56:164,57:me,59:de},e(E,[2,23]),e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,44]),e(E,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(S(function(i,a){if(a.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=a,o}},"parseError"),"parseError"),parse:m(S(function(i){var a=this,o=[0],s=[],d=[null],t=[],pe=this.table,l="",ye=0,Ue=0,je=2,Ye=1,Ge=t.slice.call(arguments,1),_=Object.create(this.lexer),z={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(z.yy[Ie]=this.yy[Ie]);_.setInput(i,z.yy),z.yy.lexer=_,z.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var ke=_.yylloc;t.push(ke);var ze=_.options&&_.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(k){o.length=o.length-2*k,d.length=d.length-k,t.length=t.length-k}S(Be,"popStack"),m(Be,"popStack");function Te(){var k;return k=s.pop()||_.lex()||Ye,typeof k!="number"&&(k instanceof Array&&(s=k,k=s.pop()),k=a.symbols_[k]||k),k}S(Te,"lex"),m(Te,"lex");for(var I,X,q,Ne,ee={},_e,$,Qe,Se;;){if(X=o[o.length-1],this.defaultActions[X]?q=this.defaultActions[X]:((I===null||typeof I>"u")&&(I=Te()),q=pe[X]&&pe[X][I]),typeof q>"u"||!q.length||!q[0]){var qe="";Se=[];for(_e in pe[X])this.terminals_[_e]&&_e>je&&Se.push("'"+this.terminals_[_e]+"'");_.showPosition?qe="Parse error on line "+(ye+1)+`:
|
|
1
|
+
import{g as Xe}from"./JWlrX8g6.js";import{a as m,M as He,aG as Je,L as Ze,aF as et,K as tt,aI as st,O as it,N as Ce,ad as Ae,k as rt,_ as nt,R as at,ax as lt,aV as ct}from"./CWfnIL3Q.js";import{s as ot}from"./ChGBRwNt.js";import{g as S}from"./jqiCLmEu.js";var Ve=(function(){var e=m(function(P,i,a,o){for(a=a||{},o=P.length;o--;a[P[o]]=i);return a},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],n=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],p=[2,7],y=[1,26],b=[1,27],T=[1,28],C=[1,29],A=[1,33],V=[1,34],v=[1,35],x=[1,36],L=[1,37],O=[1,38],w=[1,24],D=[1,31],M=[1,32],F=[1,30],R=[1,39],g=[1,40],E=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],U=[1,61],Z=[89,90],ve=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Re=[27,29],xe=[1,70],Le=[1,71],Oe=[1,72],we=[1,73],De=[1,74],Me=[1,75],Fe=[1,76],te=[1,83],Y=[1,80],se=[1,84],ie=[1,85],re=[1,86],ne=[1,87],ae=[1,88],le=[1,89],ce=[1,90],oe=[1,91],he=[1,92],ge=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[63,64],$e=[1,101],Pe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],N=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Q=[1,110],H=[1,106],K=[1,107],W=[1,108],j=[1,109],G=[1,111],ue=[1,116],fe=[1,117],me=[1,114],de=[1,115],be={trace:m(S(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(S(function(i,a,o,s,d,t,pe){var l=t.length-1;switch(d){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(n,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},e(n,[2,4]),e(n,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:43,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:44,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:45,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:46,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:47,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:48,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:49,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{4:17,5:c,7:50,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:b,23:T,24:C,25:23,33:25,41:A,42:V,43:v,44:x,45:L,46:O,54:w,72:D,74:M,77:F,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(E,[2,17]),e(E,[2,18]),e(E,[2,19]),e(E,[2,20]),{30:60,33:62,75:U,89:R,90:g},{30:63,33:62,75:U,89:R,90:g},{30:64,33:62,75:U,89:R,90:g},e(Z,[2,29]),e(Z,[2,30]),e(Z,[2,31]),e(Z,[2,32]),e(Z,[2,33]),e(Z,[2,34]),e(ve,[2,81]),e(ve,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Re,[2,79]),e(Re,[2,80]),{27:[1,67],29:[1,68]},e(Re,[2,85]),e(Re,[2,86]),{62:69,65:xe,66:Le,67:Oe,68:we,69:De,70:Me,71:Fe},{62:77,65:xe,66:Le,67:Oe,68:we,69:De,70:Me,71:Fe},{30:78,33:62,75:U,89:R,90:g},{73:79,75:te,76:Y,78:81,79:82,80:se,81:ie,82:re,83:ne,84:ae,85:le,86:ce,87:oe,88:he},e(ge,[2,60]),e(ge,[2,62]),{73:93,75:te,76:Y,78:81,79:82,80:se,81:ie,82:re,83:ne,84:ae,85:le,86:ce,87:oe,88:he},{30:94,33:62,75:U,76:Y,89:R,90:g},{5:[1,95]},{30:96,33:62,75:U,89:R,90:g},{5:[1,97]},{30:98,33:62,75:U,89:R,90:g},{63:[1,99]},e(B,[2,50]),e(B,[2,51]),e(B,[2,52]),e(B,[2,53]),e(B,[2,54]),e(B,[2,55]),e(B,[2,56]),{64:[1,100]},e(E,[2,59],{76:Y}),e(E,[2,64],{76:$e}),{33:103,75:[1,102],89:R,90:g},e(Pe,[2,65],{79:104,75:te,80:se,81:ie,82:re,83:ne,84:ae,85:le,86:ce,87:oe,88:he}),e(N,[2,67]),e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(E,[2,57],{76:$e}),e(E,[2,58],{76:Y}),{5:Q,28:105,31:H,34:K,36:W,38:j,40:G},{27:[1,112],76:Y},{5:ue,40:fe,56:113,57:me,59:de},{27:[1,118],76:Y},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:te,78:121,79:82,80:se,81:ie,82:re,83:ne,84:ae,85:le,86:ce,87:oe,88:he},e(ge,[2,61]),e(ge,[2,63]),e(N,[2,68]),e(E,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Q,28:126,31:H,34:K,36:W,38:j,40:G},e(E,[2,28]),{5:[1,127]},e(E,[2,42]),{32:[1,128]},{32:[1,129]},{5:ue,40:fe,56:130,57:me,59:de},e(E,[2,47]),{5:[1,131]},e(E,[2,48]),e(E,[2,49]),e(Pe,[2,66],{79:104,75:te,80:se,81:ie,82:re,83:ne,84:ae,85:le,86:ce,87:oe,88:he}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(E,[2,27]),{5:Q,28:145,31:H,34:K,36:W,38:j,40:G},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(E,[2,46]),{5:ue,40:fe,56:152,57:me,59:de},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(E,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(E,[2,43]),{5:Q,28:159,31:H,34:K,36:W,38:j,40:G},{5:Q,28:160,31:H,34:K,36:W,38:j,40:G},{5:Q,28:161,31:H,34:K,36:W,38:j,40:G},{5:Q,28:162,31:H,34:K,36:W,38:j,40:G},{5:ue,40:fe,56:163,57:me,59:de},{5:ue,40:fe,56:164,57:me,59:de},e(E,[2,23]),e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,44]),e(E,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(S(function(i,a){if(a.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=a,o}},"parseError"),"parseError"),parse:m(S(function(i){var a=this,o=[0],s=[],d=[null],t=[],pe=this.table,l="",ye=0,Ue=0,je=2,Ye=1,Ge=t.slice.call(arguments,1),_=Object.create(this.lexer),z={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(z.yy[Ie]=this.yy[Ie]);_.setInput(i,z.yy),z.yy.lexer=_,z.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var ke=_.yylloc;t.push(ke);var ze=_.options&&_.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(k){o.length=o.length-2*k,d.length=d.length-k,t.length=t.length-k}S(Be,"popStack"),m(Be,"popStack");function Te(){var k;return k=s.pop()||_.lex()||Ye,typeof k!="number"&&(k instanceof Array&&(s=k,k=s.pop()),k=a.symbols_[k]||k),k}S(Te,"lex"),m(Te,"lex");for(var I,X,q,Ne,ee={},_e,$,Qe,Se;;){if(X=o[o.length-1],this.defaultActions[X]?q=this.defaultActions[X]:((I===null||typeof I>"u")&&(I=Te()),q=pe[X]&&pe[X][I]),typeof q>"u"||!q.length||!q[0]){var qe="";Se=[];for(_e in pe[X])this.terminals_[_e]&&_e>je&&Se.push("'"+this.terminals_[_e]+"'");_.showPosition?qe="Parse error on line "+(ye+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+Se.join(", ")+", got '"+(this.terminals_[I]||I)+"'":qe="Parse error on line "+(ye+1)+": Unexpected "+(I==Ye?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(qe,{text:_.match,token:this.terminals_[I]||I,line:_.yylineno,loc:ke,expected:Se})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+X+", token: "+I);switch(q[0]){case 1:o.push(I),d.push(_.yytext),t.push(_.yylloc),o.push(q[1]),I=null,Ue=_.yyleng,l=_.yytext,ye=_.yylineno,ke=_.yylloc;break;case 2:if($=this.productions_[q[1]][1],ee.$=d[d.length-$],ee._$={first_line:t[t.length-($||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-($||1)].first_column,last_column:t[t.length-1].last_column},ze&&(ee._$.range=[t[t.length-($||1)].range[0],t[t.length-1].range[1]]),Ne=this.performAction.apply(ee,[l,Ue,ye,z.yy,q[1],d,t].concat(Ge)),typeof Ne<"u")return Ne;$&&(o=o.slice(0,-1*$*2),d=d.slice(0,-1*$),t=t.slice(0,-1*$)),o.push(this.productions_[q[1]][0]),d.push(ee.$),t.push(ee._$),Qe=pe[o[o.length-2]][o[o.length-1]],o.push(Qe);break;case 3:return!0}}return!0},"parse"),"parse")},We=(function(){var P={EOF:1,parseError:m(S(function(a,o){if(this.yy.parser)this.yy.parser.parseError(a,o);else throw new Error(a)},"parseError"),"parseError"),setInput:m(function(i,a){return this.yy=a||this.yy||{},this._input=i,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:m(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:m(function(i){var a=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===s.length?this.yylloc.first_column:0)+s[s.length-o.length].length-o[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(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:m(function(i){this.unput(this.match.slice(i))},"less"),pastInput:m(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as c,M as V,ah as Re,r as Pe,ad as E,k as Fe,aC as Me,N as Ce,G as Ke,a0 as Ye,a1 as We,aq as Ve,l as je,i as Ue,p as He,S as Xe,a3 as Oe,ar as Ge}from"./
|
|
1
|
+
import{a as c,M as V,ah as Re,r as Pe,ad as E,k as Fe,aC as Me,N as Ce,G as Ke,a0 as Ye,a1 as We,aq as Ve,l as je,i as Ue,p as He,S as Xe,a3 as Oe,ar as Ge}from"./CWfnIL3Q.js";import{g as qe}from"./BbGSGn0Q.js";import{c3 as q,g as L}from"./jqiCLmEu.js";var ce=(function(){var e=c(function(O,u,r,n){for(r=r||{},n=O.length;n--;r[O[n]]=u);return r},"o"),o=[1,15],l=[1,7],a=[1,13],h=[1,14],p=[1,19],s=[1,16],g=[1,17],x=[1,18],y=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],_=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],D=[1,49],w={trace:c(L(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:c(L(function(u,r,n,d,k,t,K){var i=t.length-1;switch(k){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",t[i-1]),d.setHierarchy(t[i-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",t[i]),typeof t[i].length=="number"?this.$=t[i]:this.$=[t[i]];break;case 13:d.getLogger().debug("Rule: statement #2: ",t[i-1]),this.$=[t[i-1]].concat(t[i]);break;case 14:d.getLogger().debug("Rule: link: ",t[i],u),this.$={edgeTypeStr:t[i],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",t[i-3],t[i-1],t[i]),this.$={edgeTypeStr:t[i],label:t[i-1]};break;case 18:const F=parseInt(t[i]),U=d.generateId();this.$={id:U,type:"space",label:"",width:F,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",t[i-2],t[i-1],t[i]," typestr: ",t[i-1].edgeTypeStr);const te=d.edgeStrToEdgeData(t[i-1].edgeTypeStr),H=d.edgeStrToEdgeStartData(t[i-1].edgeTypeStr),se=d.edgeStrToThickness(t[i-1].edgeTypeStr),N=d.edgeStrToPattern(t[i-1].edgeTypeStr);this.$=[{id:t[i-2].id,label:t[i-2].label,type:t[i-2].type,directions:t[i-2].directions},{id:t[i-2].id+"-"+t[i].id,start:t[i-2].id,end:t[i].id,label:t[i-1].label,type:"edge",thickness:se,pattern:N,directions:t[i].directions,arrowTypeEnd:te,arrowTypeStart:H},{id:t[i].id,label:t[i].label,type:d.typeStr2Type(t[i].typeStr),directions:t[i].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[i-1],t[i]),this.$={id:t[i-1].id,label:t[i-1].label,type:d.typeStr2Type(t[i-1].typeStr),directions:t[i-1].directions,widthInColumns:parseInt(t[i],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",t[i]),this.$={id:t[i].id,label:t[i].label,type:d.typeStr2Type(t[i].typeStr),directions:t[i].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",t[i]),this.$={type:"column-setting",columns:t[i]==="auto"?-1:parseInt(t[i])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",t[i-2],t[i-1]),d.generateId(),this.$={...t[i-2],type:"composite",children:t[i-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",t[i-2],t[i-1],t[i]);const A=d.generateId();this.$={id:A,type:"composite",label:"",children:t[i-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",t[i]),this.$={id:t[i]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[i-1],t[i]),this.$={id:t[i-1],label:t[i].label,typeStr:t[i].typeStr,directions:t[i].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",t[i]),this.$=[t[i]];break;case 32:d.getLogger().debug("Rule: dirList: ",t[i-1],t[i]),this.$=[t[i-1]].concat(t[i]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",t[i-2],t[i-1],t[i]),this.$={typeStr:t[i-2]+t[i],label:t[i-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[i-3],t[i-2]," #3:",t[i-1],t[i]),this.$={typeStr:t[i-3]+t[i],label:t[i-2],directions:t[i-1]};break;case 35:case 36:this.$={type:"classDef",id:t[i-1].trim(),css:t[i].trim()};break;case 37:this.$={type:"applyClass",id:t[i-1].trim(),styleClass:t[i].trim()};break;case 38:this.$={type:"applyStyles",id:t[i-1].trim(),stylesStr:t[i].trim()};break}},"anonymous"),"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:o,11:3,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:s,43:g,46:x},{8:[1,20]},e(y,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:o,21:l,28:a,29:h,31:p,39:s,43:g,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(_,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:p},{10:o,11:27,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:s,43:g,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(y,[2,13]),{26:35,31:p},{31:[2,14]},{17:[1,36]},e(_,[2,24]),{10:o,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:s,43:g,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(_,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:D},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:D,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:c(L(function(u,r){if(r.recoverable)this.trace(u);else{var n=new Error(u);throw n.hash=r,n}},"parseError"),"parseError"),parse:c(L(function(u){var r=this,n=[0],d=[],k=[null],t=[],K=this.table,i="",F=0,U=0,te=2,H=1,se=t.slice.call(arguments,1),N=Object.create(this.lexer),A={yy:{}};for(var re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,re)&&(A.yy[re]=this.yy[re]);N.setInput(u,A.yy),A.yy.lexer=N,A.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var ie=N.yylloc;t.push(ie);var Ae=N.options&&N.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(C){n.length=n.length-2*C,k.length=k.length-C,t.length=t.length-C}L(De,"popStack"),c(De,"popStack");function ne(){var C;return C=d.pop()||N.lex()||H,typeof C!="number"&&(C instanceof Array&&(d=C,C=d.pop()),C=r.symbols_[C]||C),C}L(ne,"lex"),c(ne,"lex");for(var I,P,z,ae,M={},X,R,Ne,G;;){if(P=n[n.length-1],this.defaultActions[P]?z=this.defaultActions[P]:((I===null||typeof I>"u")&&(I=ne()),z=K[P]&&K[P][I]),typeof z>"u"||!z.length||!z[0]){var oe="";G=[];for(X in K[P])this.terminals_[X]&&X>te&&G.push("'"+this.terminals_[X]+"'");N.showPosition?oe="Parse error on line "+(F+1)+`:
|
|
2
2
|
`+N.showPosition()+`
|
|
3
3
|
Expecting `+G.join(", ")+", got '"+(this.terminals_[I]||I)+"'":oe="Parse error on line "+(F+1)+": Unexpected "+(I==H?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(oe,{text:N.match,token:this.terminals_[I]||I,line:N.yylineno,loc:ie,expected:G})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+I);switch(z[0]){case 1:n.push(I),k.push(N.yytext),t.push(N.yylloc),n.push(z[1]),I=null,U=N.yyleng,i=N.yytext,F=N.yylineno,ie=N.yylloc;break;case 2:if(R=this.productions_[z[1]][1],M.$=k[k.length-R],M._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Ae&&(M._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),ae=this.performAction.apply(M,[i,U,F,A.yy,z[1],k,t].concat(se)),typeof ae<"u")return ae;R&&(n=n.slice(0,-1*R*2),k=k.slice(0,-1*R),t=t.slice(0,-1*R)),n.push(this.productions_[z[1]][0]),k.push(M.$),t.push(M._$),Ne=K[n[n.length-2]][n[n.length-1]],n.push(Ne);break;case 3:return!0}}return!0},"parse"),"parse")},T=(function(){var O={EOF:1,parseError:c(L(function(r,n){if(this.yy.parser)this.yy.parser.parseError(r,n);else throw new Error(r)},"parseError"),"parseError"),setInput:c(function(u,r){return this.yy=r||this.yy||{},this._input=u,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:c(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var r=u.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:c(function(u){var r=u.length,n=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=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 k=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===d.length?this.yylloc.first_column:0)+d[d.length-n.length].length-n[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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:c(function(u){this.unput(this.match.slice(u))},"less"),pastInput:c(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var u=this.pastInput(),r=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as h}from"./
|
|
1
|
+
import{J as h}from"./Jqp5qOVD.js";import{c as v}from"./ChTqQfQN.js";import{bt as d}from"./C-KminjT.js";const g=v("AttachmentImageUrl");function y(n,t){const r=t.split("/").filter(e=>e.length>0).map(e=>encodeURIComponent(e)).join("/");return`workspace-file://${n}/${r}`}const u=new Map,a=new Map;let f=0,m=!1;function p(){m||(m=!0,d(()=>{f+=1,u.clear(),a.clear()}))}function A(n,t){u.delete(`${n}/${t}`)}function F(n,t,r){p();let e=!1,i=!1,o=!1;async function l(){if(!e){if(i){o=!0;return}i=!0;try{const c=await $(n,t);e||r(c)}finally{i=!1,o&&(o=!1,l())}}}const s=d(()=>{l()});return l(),{imageFailed(){e||(A(n,t),r(null))},dispose(){e=!0,s()}}}function $(n,t){p();const r=f,e=`${n}/${t}`,i=u.get(e);if(i)return Promise.resolve(i);const o=a.get(e);if(o)return o;const l=(async()=>{try{const s=await h({attachmentId:t,workspaceId:n});if(r!==f)return null;if(!s.exists)return g.warn("Attachment file missing on disk",{attachmentId:t}),null;const c=y(n,s.path);return u.set(e,c),c}catch(s){return g.warn("Failed to resolve attachment image",{attachmentId:t,error:s}),null}finally{r===f&&a.delete(e)}})();return a.set(e,l),l}export{A as e,F as o,$ as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t,a,s as r,S as s}from"./
|
|
1
|
+
import{b as t,a,s as r,S as s}from"./CGzdYZTI.js";import{a as i}from"./CWfnIL3Q.js";import"./jqiCLmEu.js";import"./i-Fs1U2f.js";var u={parser:r,get db(){return new s(2)},renderer:a,styles:t,init:i(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{u as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as i,c3 as l,bA as d,aA as o}from"./
|
|
1
|
+
import{f as i,c3 as l,bA as d,aA as o}from"./jqiCLmEu.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),f=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),h=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,x as e,y as f,f as g,h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as B}from"./
|
|
1
|
+
import{p as B}from"./CMNzHnZE.js";import{f as b,$ as m,c4 as C,a6 as S,bC as w,c7 as D,aL as P,c9 as T,aP as z,aK as E,c6 as F,aN as A,ax as W,a0 as _}from"./jqiCLmEu.js";import{p as N}from"./f_earp7w.js";var L=W.packet,u,v=(u=class{constructor(){this.packet=[],this.setAccTitle=D,this.getAccTitle=P,this.setDiagramTitle=T,this.getDiagramTitle=z,this.getAccDescription=E,this.setAccDescription=F}getConfig(){const t=m({...L,...A().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){_(),this.packet=[]}},b(u,"PacketDB"),u),M=1e4,Y=b((e,t)=>{B(e,t);let r=-1,s=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??=a+(d??1)-1,d??=i-a+1,r=i,w.debug(`Packet block ${a} - ${r} with label ${c}`);s.length<=l+1&&t.getPacket().length<M;){const[p,o]=I({start:a,end:i,bits:d,label:c},n,l);if(s.push(p),p.end+1===n*l&&(t.pushWord(s),s=[],n++),!o)break;({start:a,end:i,bits:d,label:c}=o)}}t.pushWord(s)},"populate"),I=b((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,n=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:b(async e=>{const t=await N("packet",e),r=x.parser?.yy;if(!(r instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,r)},"parse")},K=b((e,t,r,s)=>{const n=s.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),o=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(o?0:a),k=d*c+2,f=C(t);f.attr("viewBox",`0 0 ${k} ${g}`),S(f,g,k,l.useMaxWidth);for(const[y,$]of p.entries())O(f,$,y,l);f.append("text").text(o).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((e,t,r,{rowHeight:s,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=r*(s+l)+l;for(const o of t){const h=o.start%i*a+1,g=(o.end-o.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(o.label),!d)continue;const k=o.end===o.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(o.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(o.end)}},"drawWord"),j={draw:K},G={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},H=b(({packet:e}={})=>{const t=m(G,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${t.byteFontSize};
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as a3,bq as p,a_ as I,by as t3,b as s3}from"./DVcxpZob.js";import{bs as r3,a5 as o3,aD as t,bA as L,b_ as v,W as f,bn as l3,c9 as l,bV as S,aA as u,ay as n3,bS as i3,aw as N,bz as c3,bl as Z,bO as A,aB as m,bH as B}from"./B8o4lNgr.js";import{N as v3}from"./
|
|
1
|
+
import{t as a3,bq as p,a_ as I,by as t3,b as s3}from"./DVcxpZob.js";import{bs as r3,a5 as o3,aD as t,bA as L,b_ as v,W as f,bn as l3,c9 as l,bV as S,aA as u,ay as n3,bS as i3,aw as N,bz as c3,bl as Z,bO as A,aB as m,bH as B}from"./B8o4lNgr.js";import{N as v3}from"./DN0k4-NH.js";import{k as C,l as x,s as F}from"./CRLCgacz.js";import{F as f3,aR as m3,aJ as g3,a_ as p3,cq as u3,ao as d3}from"./ofkVZzaj.js";var h3=m("<div></div>"),b3=m('<span class="type-caption absolute text-subtle font-medium"> </span>'),w3=m("<img/> <!>",1),_3=m('<span class="type-caption text-subtle font-medium"> </span>'),C3=m("<div><!></div>");function x3(y,n){if(new.target)return a3({component:x3,...y});r3(n,!0);let r=p(n,"iconName",7),i=p(n,"label",7),o=p(n,"size",7,20),d=p(n,"class",7,"");const j={redis:"redis",mongodb:"mongodb",circleci:"circleci",vercel:"vercel",railway:"railway",convex:"convex",snowflake:"snowflake",sentry:"sentry",figma:"figma",github:"github",linear:"linear"},D={figma:"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Figma-logo.svg/960px-Figma-logo.svg.png",playwright:"https://ray.run/playwright-brand-assets/playwright-logo.svg"},q={context7:'<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 0C26.2091 0 28 1.79086 28 4V24C28 26.2091 26.2091 28 24 28H4C1.79086 28 0 26.2091 0 24V4C0 1.79086 1.79086 0 4 0H24ZM8.58008 15.2559C8.58008 17.8621 7.95482 19.3557 6.33398 21.1885V22.7783H11.6309V21.1045H8.17773C9.66098 19.3776 10.5723 17.5019 10.5723 15.2559H8.58008ZM17.4268 15.2559C17.4268 17.5019 18.338 19.3776 19.8213 21.1045H16.3672V22.7783H21.6641V21.1885C20.0433 19.3558 19.4189 17.862 19.4189 15.2559H17.4268ZM6.33398 6.80957C7.95495 8.64244 8.58008 10.137 8.58008 12.7432H10.5713C10.5713 10.4972 9.66094 8.62143 8.17773 6.89453H11.6309V5.2207H6.33398V6.80957ZM16.3672 5.2207V6.89453H19.8213C18.338 8.62145 17.4268 10.4972 17.4268 12.7432H19.4189C19.4189 10.137 20.0432 8.64242 21.6641 6.80957V5.2207H16.3672Z" fill="black"/></svg>',slack:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path d="M27.255 80.719c0 7.33-5.978 13.317-13.309 13.317C6.616 94.036.63 88.049.63 80.719s5.987-13.317 13.317-13.317h13.309zm6.709 0c0-7.33 5.987-13.317 13.317-13.317s13.317 5.986 13.317 13.317v33.335c0 7.33-5.986 13.317-13.317 13.317-7.33 0-13.317-5.987-13.317-13.317zm0 0" fill="#de1c59"/><path d="M47.281 27.255c-7.33 0-13.317-5.978-13.317-13.309C33.964 6.616 39.951.63 47.281.63s13.317 5.987 13.317 13.317v13.309zm0 6.709c7.33 0 13.317 5.987 13.317 13.317s-5.986 13.317-13.317 13.317H13.946C6.616 60.598.63 54.612.63 47.281c0-7.33 5.987-13.317 13.317-13.317zm0 0" fill="#35c5f0"/><path d="M100.745 47.281c0-7.33 5.978-13.317 13.309-13.317 7.33 0 13.317 5.987 13.317 13.317s-5.987 13.317-13.317 13.317h-13.309zm-6.709 0c0 7.33-5.987 13.317-13.317 13.317s-13.317-5.986-13.317-13.317V13.946C67.402 6.616 73.388.63 80.719.63c7.33 0 13.317 5.987 13.317 13.317zm0 0" fill="#2eb57d"/><path d="M80.719 100.745c7.33 0 13.317 5.978 13.317 13.309 0 7.33-5.987 13.317-13.317 13.317s-13.317-5.987-13.317-13.317v-13.309zm0-6.709c-7.33 0-13.317-5.987-13.317-13.317s5.986-13.317 13.317-13.317h33.335c7.33 0 13.317 5.986 13.317 13.317 0 7.33-5.987 13.317-13.317 13.317zm0 0" fill="#ebb02e"/></svg>'},E=new Set(["context7","github","linear"]),h={brain:d3,server:u3,database:p3,cloud:g3,default:m3},z=l(()=>j[r().toLowerCase()]),U=l(()=>h[r().toLowerCase()]||h.default),H=l(()=>q[r().toLowerCase()]||null),M=l(()=>E.has(r().toLowerCase()));let b=S(!1),k=S(!1);const V=l(()=>D[r().toLowerCase()]||(t(z)?`https://cdn.simpleicons.org/${t(z)}`:null));function W(){B(b,!0)}function J(){B(k,!0)}var O={get iconName(){return r()},set iconName(e){r(e),u()},get label(){return i()},set label(e){i(e),u()},get size(){return o()},set size(e=20){o(e),u()},get class(){return d()},set class(e=""){d(e),u()},$set:t3,$on:(e,a)=>s3(n,e,a)},c=C3(),R=o3(c);{var G=e=>{var a=h3();v3(a,()=>t(H),!0),L(a),v(()=>C(a,1,`w-full h-full flex items-center justify-center [&>svg]:w-full [&>svg]:h-full ${t(M)?"dark:invert":""}`)),f(e,a)},K=e=>{var a=w3(),s=n3(a);let g;var X=i3(s,2);{var Y=w=>{var _=b3(),$=Z(_,!0);v(e3=>{x(_,`font-size: ${o()*.45}px;`),A($,e3)},[()=>i().charAt(0)]),f(w,_)};I(X,w=>{t(b)||w(Y)})}v(()=>{F(s,"src",t(V)),F(s,"alt",i()),g=C(s,1,`w-full h-full object-contain ${t(M)?"dark:invert":""}`,null,g,{"opacity-0":!t(b)})}),N("load",s,W),N("error",s,J),c3(s),f(e,a)},P=e=>{{let a=l(()=>o()*.7);f3(e,{get icon(){return t(U)},class:"text-ghost",get style(){return`font-size: ${t(a)??""}px;`}})}},Q=l(()=>h[r().toLowerCase()]),T=e=>{var a=_3(),s=Z(a,!0);v(g=>{x(a,`font-size: ${o()*.45}px;`),A(s,g)},[()=>i().charAt(0)]),f(e,a)};I(R,e=>{t(H)?e(G):t(V)&&!t(k)?e(K,1):t(Q)?e(P,2):e(T,-1)})}return L(c),v(()=>{C(c,1,`flex items-center justify-center shrink-0 ${d()??""}`),x(c,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(y,c),l3(O)}export{x3 as M};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as tt}from"./
|
|
1
|
+
import{p as tt}from"./uD982nf2.js";import{p as et}from"./Cg2VNX7z.js";import{K as at,aF as rt,L as it,aG as nt,O as ot,aI as st,a as l,ad as z,N as lt,j as ct,aE as dt,an as gt,r as pt,k as ht,y as ft}from"./CWfnIL3Q.js";import"./jqiCLmEu.js";import{d as I}from"./3mA9htoY.js";import{o as ut}from"./CmKTTxBW.js";import{d as mt}from"./DtLridJD.js";var vt=ft.pie,L={sections:new Map,showData:!1},T=L.sections,R=L.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{T=new Map,R=L.showData,ht()},"clear"),Ct=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);T.has(t)||(T.set(t,a),z.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),$t=l(()=>T,"getSections"),yt=l(t=>{R=t},"setShowData"),Dt=l(()=>R,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:st,getDiagramTitle:ot,setAccTitle:nt,getAccTitle:it,setAccDescription:rt,getAccDescription:at,addSection:Ct,getSections:$t,setShowData:yt,getShowData:Dt},Tt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),bt={parse:l(async t=>{const a=await et("pie",t);z.debug(a),Tt(a,U)},"parse")},At=l(t=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${t.pieStrokeColor};
|
|
4
4
|
stroke-width : ${t.pieStrokeWidth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as B,bq as m,a_ as P,bo as a,by as H,b as $,bu as oe,bs as ie}from"./DVcxpZob.js";import{bs as E,a5 as S,aD as q,bS as g,bl as D,bA as O,b_ as x,bO as v,W as k,bn as M,c9 as V,aA as f,aB as R,be as W,b$ as j,c5 as L,a7 as ce,ay as le}from"./B8o4lNgr.js";import{h as de,s as N}from"./CRLCgacz.js";import{f as A}from"./C-KminjT.js";import{h as ue,W as _e,i as pe}from"./ofkVZzaj.js";import{ac as ge}from"./
|
|
1
|
+
import{t as B,bq as m,a_ as P,bo as a,by as H,b as $,bu as oe,bs as ie}from"./DVcxpZob.js";import{bs as E,a5 as S,aD as q,bS as g,bl as D,bA as O,b_ as x,bO as v,W as k,bn as M,c9 as V,aA as f,aB as R,be as W,b$ as j,c5 as L,a7 as ce,ay as le}from"./B8o4lNgr.js";import{h as de,s as N}from"./CRLCgacz.js";import{f as A}from"./C-KminjT.js";import{h as ue,W as _e,i as pe}from"./ofkVZzaj.js";import{ac as ge}from"./NcTzLGaE.js";import{Hp as ve,iH as ke}from"./DOX6tqe2.js";var me=R('<li class="flex items-center gap-2"><!> <span class="min-w-0 flex-1 break-words"> </span> <span class="shrink-0 text-muted-foreground"> </span></li>'),fe=R('<ul class="space-y-1 text-sm"></ul>');function X(y,n){if(new.target)return B({component:X,...y});E(n,!0);let t=m(n,"checklist",7);const p=V(()=>{const s=_=>({state:_?"done":"waiting",status:_?a.desktop_os_checklist_allowed():a.desktop_os_checklist_missing()}),r=()=>!t().accessibility||!t().screenRecording?{state:"waiting",status:a.desktop_os_checklist_blocked()}:t().screenCapture==="ready"?{state:"done",status:a.desktop_os_checklist_ready()}:t().screenCapture==="pending"?{state:"waiting",status:a.desktop_os_checklist_checking()}:{state:"failed",status:a.desktop_os_checklist_unconfirmed()};return[{label:a.desktop_os_checklist_accessibility(),...s(t().accessibility)},{label:a.desktop_os_checklist_screenRecording(),...s(t().screenRecording)},{label:a.desktop_os_checklist_screenCapture(),...r()}]});var w={get checklist(){return t()},set checklist(s){t(s),f()},$set:H,$on:(s,r)=>$(n,s,r)},c=fe();return de(c,21,()=>q(p),s=>s.label,(s,r)=>{var _=me(),h=S(_);{var b=d=>{ue(d,{class:"size-4 shrink-0 text-success","aria-hidden":"true"})},z=d=>{_e(d,{class:"size-4 shrink-0 text-danger","aria-hidden":"true"})},U=d=>{pe(d,{class:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"})};P(h,d=>{q(r).state==="done"?d(b):q(r).state==="failed"?d(z,1):d(U,-1)})}var C=g(h,2),i=D(C,!0),I=g(C,2),T=D(I,!0);O(_),x(()=>{N(_,"data-state",q(r).state),v(i,q(r).label),v(T,q(r).status)}),k(s,_)}),O(c),x(s=>N(c,"aria-label",s),[()=>a.desktop_os_checklist_title()]),k(y,c),M(w)}var he=R('<p class="text-sm text-muted-foreground"> </p>'),Q=R('<p role="status" class="text-sm"> </p>'),be=R('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function Y(y,n){if(new.target)return B({component:Y,...y});E(n,!0);let t=m(n,"request",7),p=m(n,"pending",7,!1),w=m(n,"settingUp",7,!1),c=m(n,"guidance",7),s=m(n,"checklist",7),r=m(n,"onDecision",7);var _={get request(){return t()},set request(e){t(e),f()},get pending(){return p()},set pending(e=!1){p(e),f()},get settingUp(){return w()},set settingUp(e=!1){w(e),f()},get guidance(){return c()},set guidance(e){c(e),f()},get checklist(){return s()},set checklist(e){s(e),f()},get onDecision(){return r()},set onDecision(e){r(e),f()},$set:H,$on:(e,o)=>$(n,e,o)},h=be(),b=S(h),z=S(b),U=D(z,!0),C=g(z,2),i=D(C,!0),I=g(C,2);{var T=e=>{var o=he(),l=D(o,!0);x(u=>v(l,u),[()=>a.desktop_consent_claimPrimary({computer:t().computerName})]),k(e,o)};P(I,e=>{t().claimsPrimary&&e(T)})}var d=g(I,2);{var ee=e=>{X(e,{get checklist(){return s()}})};P(d,e=>{s()&&e(ee)})}var F=g(d,2);{var te=e=>{var o=Q(),l=D(o,!0);x(()=>v(l,c())),k(e,o)};P(F,e=>{c()&&e(te)})}var se=g(F,2);{var re=e=>{var o=Q(),l=D(o,!0);x(u=>v(l,u),[()=>a.desktop_consent_pending()]),k(e,o)};P(se,e=>{p()&&!w()&&e(re)})}O(b);var G=g(b,2),J=S(G);A(J,{size:"compact",variant:"primary",get disabled(){return p()},onclick:()=>r()("allow_once"),children:(e,o)=>{W();var l=j();x(u=>v(l,u),[()=>a.desktop_consent_once()]),k(e,l)},$$slots:{default:!0}});var K=g(J,2);A(K,{size:"compact",variant:"outline",get disabled(){return p()},onclick:()=>r()("allow_future"),children:(e,o)=>{W();var l=j();x(u=>v(l,u),[()=>a.desktop_consent_future()]),k(e,l)},$$slots:{default:!0}});var ae=g(K,2);{let e=V(()=>p()&&!w());A(ae,{size:"compact",variant:"ghost",get disabled(){return q(e)},onclick:()=>r()("deny"),children:(o,l)=>{W();var u=j();x(ne=>v(u,ne),[()=>a.desktop_consent_deny()]),k(o,u)},$$slots:{default:!0}})}return O(G),O(h),x((e,o,l,u)=>{N(h,"aria-label",e),N(b,"aria-label",o),v(U,l),v(i,u)},[()=>a.desktop_consent_title(),()=>a.desktop_consent_title(),()=>a.desktop_consent_request({agent:t().agentName,computer:t().computerName}),()=>a.desktop_consent_description()]),k(y,h),M(_)}function Z(y,n){if(new.target)return B({component:Z,...y});E(n,!0);const t=()=>oe(_,"$entry",p),[p,w]=ie();let c=m(n,"workspaceId",7),s=m(n,"agentId",7),r=m(n,"requestId",7);const _=ge(L(()=>c()),L(()=>s()));var h={get workspaceId(){return c()},set workspaceId(i){c(i),f()},get agentId(){return s()},set agentId(i){s(i),f()},get requestId(){return r()},set requestId(i){r(i),f()},$set:H,$on:(i,I)=>$(n,i,I)},b=ce(),z=le(b);{var U=i=>{Y(i,{get request(){return t().pending},get pending(){return t().submitting},get settingUp(){return t().settingUp},get guidance(){return t().error},get checklist(){return t().osChecklist},onDecision:I=>ve.dispatch(ke(c(),s(),r(),I))})};P(z,i=>{t()?.pending?.requestId===r()&&i(U)})}k(y,b);var C=M(h);return w(),C}const ze=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));export{Z as D,ze as a,X as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ae}from"./
|
|
1
|
+
import{g as ae}from"./CxQfN3-2.js";import{s as oe}from"./DJlDux3f.js";import{f as l,bC as C,aS as ce,bZ as le,aN as he,ax as G,aO as B,c2 as F,aZ as de,bk as ge,by as ue,as as pe}from"./jqiCLmEu.js";import{cS as fe}from"./Jqp5qOVD.js";var Y=(function(){var i=l(function(D,s,n,a){for(n=n||{},a=D.length;a--;n[D[a]]=s);return n},"o"),e=[1,4],o=[1,13],g=[1,12],t=[1,15],h=[1,16],f=[1,20],y=[1,19],E=[6,7,8],_=[1,26],L=[1,24],w=[1,25],d=[6,7,11],R=[1,6,13,15,16,19,22],Z=[1,33],q=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,n,a,c,p,r,$){var u=r.length-1;switch(p){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[u].id),c.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:c.getLogger().trace("Icon: ",r[u]),c.decorateNode({icon:r[u]});break;case 17:case 21:c.decorateNode({class:r[u]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[u].id),c.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:c.decorateNode({icon:r[u]});break;case 25:c.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:c.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:c.getType(r[u-2],r[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:o,7:[1,10],9:9,12:11,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},i(E,[2,3]),{1:[2,2]},i(E,[2,4]),i(E,[2,5]),{1:[2,6],6:o,12:21,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},{6:o,9:22,12:11,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},{6:_,7:L,10:23,11:w},i(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:y}),i(d,[2,18]),i(d,[2,19]),i(d,[2,20]),i(d,[2,21]),i(d,[2,23]),i(d,[2,24]),i(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:L,10:32,11:w},{1:[2,7],6:o,12:21,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},i(R,[2,14],{7:Z,11:q}),i(A,[2,8]),i(A,[2,9]),i(A,[2,10]),i(d,[2,15]),i(d,[2,16]),i(d,[2,17]),{20:[1,35]},{21:[1,36]},i(R,[2,13],{7:Z,11:q}),i(A,[2,11]),i(A,[2,12]),{21:[1,37]},i(d,[2,25]),i(d,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:l(function(s){var n=this,a=[0],c=[],p=[null],r=[],$=this.table,u="",M=0,J=0,ie=2,K=1,ne=r.slice.call(arguments,1),m=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);m.setInput(s,v.yy),v.yy.lexer=m,v.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var W=m.yylloc;r.push(W);var se=m.options&&m.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function re(b){a.length=a.length-2*b,p.length=p.length-b,r.length=r.length-b}l(re,"popStack");function Q(){var b;return b=c.pop()||m.lex()||K,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=n.symbols_[b]||b),b}l(Q,"lex");for(var k,T,S,z,O={},U,N,ee,V;;){if(T=a[a.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Q()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var X="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");m.showPosition?X="Parse error on line "+(M+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":X="Parse error on line "+(M+1)+": Unexpected "+(k==K?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(X,{text:m.match,token:this.terminals_[k]||k,line:m.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:a.push(k),p.push(m.yytext),r.push(m.yylloc),a.push(S[1]),k=null,J=m.yyleng,u=m.yytext,M=m.yylineno,W=m.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=p[p.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},se&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),z=this.performAction.apply(O,[u,J,M,v.yy,S[1],p,r].concat(ne)),typeof z<"u")return z;N&&(a=a.slice(0,-1*N*2),p=p.slice(0,-1*N),r=r.slice(0,-1*N)),a.push(this.productions_[S[1]][0]),p.push(O.$),r.push(O._$),ee=$[a[a.length-2]][a[a.length-1]],a.push(ee);break;case 3:return!0}}return!0},"parse")},te=(function(){var D={EOF:1,parseError:l(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:l(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as le,bq as u,a_ as D,by as ce,b as de}from"./DVcxpZob.js";import{bs as ve,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as F}from"./B8o4lNgr.js";import{k as X,s as c,h as _e,l as R}from"./CRLCgacz.js";import{s as ke}from"./Dy0ApYVY.js";import{b as we}from"./D2g8BuR1.js";import{t as j}from"./WsKP4LPk.js";import{A as xe}from"./
|
|
1
|
+
import{t as le,bq as u,a_ as D,by as ce,b as de}from"./DVcxpZob.js";import{bs as ve,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as F}from"./B8o4lNgr.js";import{k as X,s as c,h as _e,l as R}from"./CRLCgacz.js";import{s as ke}from"./Dy0ApYVY.js";import{b as we}from"./D2g8BuR1.js";import{t as j}from"./WsKP4LPk.js";import{A as xe}from"./CpiHp8Ae.js";import{y as ye}from"./DN0k4-NH.js";function We(y){const{itemCount:a,maxVisible:d,availableWidth:r,surface:s,overlap:b,overflowOverlap:v}=y;if(r<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,d)),I=i=>i===0?0:s+(i-1)*_;if(a<=m&&I(a)<=r)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(I(i)+(A>0?y.measureOverflowText(A)-(i>0?v:0):0)<=r)return i}return 0}function Ie(y,a=r=>requestAnimationFrame(r),d=r=>cancelAnimationFrame(r)){let r,s;return{set(b){if(r=b,s!==void 0)return;let v=!1;const _=a(()=>{v=!0,s=void 0;const m=r;r=void 0,y(m)});v||(s=_)},cancel(){s!==void 0&&(d(s),s=void 0),r=void 0}}}const Ae=20,Ce=12;let O,J;const Q=new Map;var Te=F('<span data-agent-avatar-stack-item=""><!></span>'),Oe=F('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Ve=F('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Me=F('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function Se(y,a){if(new.target)return le({component:Se,...y});ve(a,!0);let d=u(a,"items",7),r=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),v=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),I=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),W=P(void 0),z=P(void 0);const h=x(()=>ye[v()]),U=x(()=>s()&&e(z)!==void 0?We({itemCount:d().length,maxVisible:r(),availableWidth:e(z),surface:e(h).surface,overlap:e(h).overlap,overflowOverlap:e(h).overlap,measureOverflowText:t=>Math.max(e(h).surface,$(t)+Ce)}):void 0),Y=x(()=>Math.min(d().length,Math.max(0,s()?e(U)??r():r()))),k=x(()=>d().slice(0,e(Y))),E=x(()=>Math.max(0,d().length-e(k).length)),q=x(()=>e(h).surface-e(h).overlap),Z=x(()=>e(k).length===0?0:e(h).surface+(e(k).length-1)*e(q));function $(t){const n=`+${j(t)}`,o=Q.get(n);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!e(W))return Ae;J??=`500 12px ${getComputedStyle(e(W)).fontFamily}`,O.font=J;const l=O.measureText(n).width;return Q.set(n,l),l}fe(()=>{if(!s()||!e(W)||typeof ResizeObserver>"u")return;const t=Ie(o=>{K(z,o,!0)}),n=new ResizeObserver(o=>{const l=o[o.length-1];t.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return n.observe(e(W)),()=>{n.disconnect(),t.cancel()}});var ee={get items(){return d()},set items(t){d(t),g()},get maxVisible(){return r()},set maxVisible(t=3){r(t),g()},get adaptive(){return s()},set adaptive(t=!1){s(t),g()},get align(){return b()},set align(t="end"){b(t),g()},get variant(){return v()},set variant(t="card-stack"){v(t),g()},get interactive(){return _()},set interactive(t=!1){_(t),g()},get overflowId(){return m()},set overflowId(t){m(t),g()},get overflowTestId(){return I()},set overflowTestId(t){I(t),g()},get itemContent(){return i()},set itemContent(t){i(t),g()},get class(){return A()},set class(t=""){A(t),g()},$set:ce,$on:(t,n)=>de(a,t,n)},p=Me();let N;var B=H(p);{var te=t=>{var n=Oe();let o;_e(n,23,()=>e(k),l=>l.key,(l,w,V)=>{var f=Te();let G;var re=H(f);{var se=C=>{var M=me(),oe=he(M);ke(oe,i,()=>e(w)),T(C,M)},ie=C=>{{let M=x(()=>e(w).state??"idle");xe(C,{get agentId(){return e(w).agentId},get specialist(){return e(w).specialist},get icon(){return e(w).icon},get state(){return e(M)},get variant(){return v()},class:"agent-avatar-stack-surface"})}};D(re,C=>{i()?C(se):C(ie,-1)})}L(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":e(E)>0&&e(V)===e(k).length-1}),R(f,`inset-inline-start: ${e(V)*e(q)}px; z-index: ${e(V)+1};`),c(f,"data-agent-avatar-stack-index",e(V)),c(f,"data-agent-avatar-stack-key",e(w).key),c(f,"data-agent-avatar-stack-agent-id",e(w).agentId),c(f,"data-agent-avatar-stack-specialist",e(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),L(n),S(()=>o=R(n,"",o,{width:`${e(Z)}px`})),T(t,n)};D(B,t=>{e(k).length>0&&t(te)})}var ae=ue(B,2);{var ne=t=>{var n=Ve(),o=pe(n);S(l=>{c(n,"id",m()),R(n,`margin-inline-start: ${e(k).length>0?-e(h).overlap:0}px; z-index: ${e(k).length+1};`),c(n,"data-testid",I()),be(o,`+${l??""}`)},[()=>j(e(E))]),T(t,n)};D(ae,t=>{e(E)>0&&t(ne)})}return L(p),we(p,t=>K(W,t),()=>e(W)),S(()=>{N=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",N,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",v()),c(p,"data-agent-avatar-stack-clear-space",e(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(y,p),ge(ee)}export{Se as A};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{_ as i}from"./DVcxpZob.js";import{c as m}from"./ChTqQfQN.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}let _=0;function f(){_+=1}function E(){return _}const h=m("Navigation"),w="settings-previous-path";function r(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function l(t,a={}){if(d()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){h.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=a.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||f(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:e}=await import("./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/D3vkMbH6.js","/app/immutable/chunks/DVcxpZob.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/DOX6tqe2.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/Dy0ApYVY.js","/app/immutable/chunks/CtOtN9TD.js","/app/immutable/chunks/DRWXI2c9.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/C-KminjT.js","/app/immutable/chunks/CRLCgacz.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/Bo1m530q.js","/app/immutable/chunks/jqeDAy7c.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/BFV2dSHH.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/_qnhofRC.js","/app/immutable/chunks/BEW3Nx_B.js","/app/immutable/chunks/DTCb8Epd.js","/app/immutable/chunks/WsKP4LPk.js","/app/immutable/chunks/BT9muwwL.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/ofkVZzaj.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/Rw2sIc23.js","/app/immutable/chunks/Dwoq6qgz.js","/app/immutable/chunks/aGrIQKRU.js","/app/immutable/chunks/pJjgPm2r.js","/app/immutable/chunks/Cb2bvBb_.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CsW8j_Ls.js","/app/immutable/chunks/CLy6KHFt.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as i}from"./DVcxpZob.js";import{c as m}from"./ChTqQfQN.js";function d(){return typeof window<"u"&&window.location.pathname.startsWith("/hud")}let _=0;function f(){_+=1}function E(){return _}const h=m("Navigation"),w="settings-previous-path";function r(t){return/^\/settings(?:[/?#]|$)/.test(t)}async function l(t,a={}){if(d()||typeof window<"u"&&/^\/dock(?:\/|$)/.test(window.location.pathname)){h.debug("Ignoring navigation in auxiliary window",{route:t});return}const c=a.assistantContent||t.startsWith("intent://")||/^https?:\/\//.test(t);if(c||f(),c){const{showAssistantContent:n}=await i(async()=>{const{showAssistantContent:e}=await import("./D3vkMbH6.js");return{showAssistantContent:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]),import.meta.url);if(await n(t,{preserveFocus:!0,background:a.assistantContent===!0,agentId:a.assistantAgentId})){if(a.assistantContent)return;const{openPanel:e}=await i(async()=>{const{openPanel:o}=await import("./DOX6tqe2.js").then(s=>s.H6);return{openPanel:o}},__vite__mapDeps([3,4,2,5,6,7,8,9,1,10]),import.meta.url),{store:g}=await i(async()=>{const{store:o}=await import("./Cb2bvBb_.js");return{store:o}},__vite__mapDeps([36,3,4,2,5,6,7,8,9,1,10,37,38]),import.meta.url);g.dispatch(e("chief"));const{goto:p}=await i(async()=>{const{goto:o}=await import("./CLy6KHFt.js").then(s=>s.n);return{goto:o}},__vite__mapDeps([39,2]),import.meta.url);window.location.pathname!=="/"&&await p("/");return}}if(r(t)&&typeof window<"u"&&typeof sessionStorage<"u"&&!r(window.location.pathname)){const n=new URL(window.location.href);sessionStorage.setItem(w,n.pathname+n.search+n.hash)}const{goto:u}=await i(async()=>{const{goto:n}=await import("./CLy6KHFt.js").then(e=>e.n);return{goto:n}},__vite__mapDeps([39,2]),import.meta.url);return a.state?u(t,{state:a.state}):u(t)}const P=Object.freeze(Object.defineProperty({__proto__:null,SETTINGS_PREV_PATH_KEY:w,isHudWindowRenderer:d,isSettingsRoute:r,navigateToRoute:l},Symbol.toStringTag,{value:"Module"}));export{w as S,r as a,f as b,E as c,P as d,d as i,l as n};
|