@intent-hq/web 2.384.2 → 2.385.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{CK2Cr1RP.js → 0RCk28l5.js} +1 -1
- package/web/app/immutable/chunks/{DVL_BM5a.js → 0oyPeRI9.js} +1 -1
- package/web/app/immutable/chunks/{BEjISjEF.js → 2zSj5_GV.js} +1 -1
- package/web/app/immutable/chunks/{D6Hf6lXy.js → 3VhO4Wn2.js} +1 -1
- package/web/app/immutable/chunks/{6n7e2aNB.js → 3qVSmuIV.js} +1 -1
- package/web/app/immutable/chunks/{CYQKXGJn.js → 40W1U6K5.js} +1 -1
- package/web/app/immutable/chunks/{BZidc-yX.js → 418Agcsp.js} +1 -1
- package/web/app/immutable/chunks/{BTtAt-Pu.js → 4PAYwk2I.js} +1 -1
- package/web/app/immutable/chunks/{DXdFemRu.js → 4g_iHoQm.js} +1 -1
- package/web/app/immutable/chunks/{BRsOtr8M.js → 4poQ2xKW.js} +1 -1
- package/web/app/immutable/chunks/{CXul4WJt.js → 5-0LQoqd.js} +1 -1
- package/web/app/immutable/chunks/{BTc_j7Dt.js → 7KxcPj98.js} +1 -1
- package/web/app/immutable/chunks/{CpMQqUEz.js → 7OH6WUSt.js} +1 -1
- package/web/app/immutable/chunks/{BwLxx4IG.js → 7y3Z0Q49.js} +3 -3
- package/web/app/immutable/chunks/{B4mHWFlW.js → 8jMQM9h0.js} +1 -1
- package/web/app/immutable/chunks/{xmnalplU.js → 94vL4WlW.js} +1 -1
- package/web/app/immutable/chunks/{BVlMQ1xQ.js → 9GO97JAL.js} +1 -1
- package/web/app/immutable/chunks/{CpimfPxg.js → A0KsbysW.js} +1 -1
- package/web/app/immutable/chunks/{QFC15GkG.js → B-E_4dSm.js} +2 -2
- package/web/app/immutable/chunks/{DaXosNFA.js → B0qb2Ymj.js} +1 -1
- package/web/app/immutable/chunks/{B7h1ZmQS.js → B22zVGFP.js} +1 -1
- package/web/app/immutable/chunks/{k863GLf6.js → B2CniqS1.js} +1 -1
- package/web/app/immutable/chunks/{DB0jxR-D.js → B2XeuV1l.js} +1 -1
- package/web/app/immutable/chunks/{CmImGhNY.js → B433f4mk.js} +1 -1
- package/web/app/immutable/chunks/{4QXQvR4H.js → B5pL-E-o.js} +1 -1
- package/web/app/immutable/chunks/{55FYKQCf.js → B5qiyEpH.js} +1 -1
- package/web/app/immutable/chunks/{BNN0vAFF.js → B5tvpTFB.js} +1 -1
- package/web/app/immutable/chunks/{CE0jr9sE.js → B6FGs8l2.js} +1 -1
- package/web/app/immutable/chunks/{CdMAY9xp.js → B6QnBRPC.js} +1 -1
- package/web/app/immutable/chunks/{Di3TE7pQ.js → B6d1Nolc.js} +1 -1
- package/web/app/immutable/chunks/{B4PfEXaO.js → B6eTPmJH.js} +1 -1
- package/web/app/immutable/chunks/{B7JHU89G.js → B8HnjSSF.js} +1 -1
- package/web/app/immutable/chunks/{xeMXLCBg.js → B8QvP_8b.js} +1 -1
- package/web/app/immutable/chunks/{BYU-C1jV.js → B9ka1bX8.js} +2 -2
- package/web/app/immutable/chunks/{CNzCvSR9.js → BBYtaKSX.js} +1 -1
- package/web/app/immutable/chunks/{I8XhKsSY.js → BByf3ILj.js} +1 -1
- package/web/app/immutable/chunks/{DJM7b4MF.js → BCLFORRd.js} +1 -1
- package/web/app/immutable/chunks/{leDczq9h.js → BD9db4FR.js} +1 -1
- package/web/app/immutable/chunks/{DLvrhtSt.js → BDsciJGp.js} +1 -1
- package/web/app/immutable/chunks/{X-wIiWCo.js → BECK4OaG.js} +1 -1
- package/web/app/immutable/chunks/{DnozpXMO.js → BGspyNwk.js} +1 -1
- package/web/app/immutable/chunks/{DpeQIGDn.js → BHEogMS0.js} +2 -2
- package/web/app/immutable/chunks/{BAdVoGAI.js → BHqp2vwo.js} +1 -1
- package/web/app/immutable/chunks/{CIU_APaR.js → BIGqOuh0.js} +1 -1
- package/web/app/immutable/chunks/{DilOhRAO.js → BJO0de_7.js} +1 -1
- package/web/app/immutable/chunks/{BDPP0w0q.js → BJgwBOBz.js} +1 -1
- package/web/app/immutable/chunks/{DxDZbRkP.js → BLKFshyr.js} +1 -1
- package/web/app/immutable/chunks/{Dg5FvxXA.js → BNX4ri6c.js} +3 -3
- package/web/app/immutable/chunks/{D2Rapl2X.js → BNa9zzEx.js} +1 -1
- package/web/app/immutable/chunks/{B7RoQL2j.js → BO4b6Ny-.js} +2 -2
- package/web/app/immutable/chunks/{CVoQx6Vw.js → BO8Bp7Ht.js} +1 -1
- package/web/app/immutable/chunks/{DLKd3Oyl.js → BORk03Sd.js} +1 -1
- package/web/app/immutable/chunks/{tF7VK2wM.js → BP1fPIN6.js} +1 -1
- package/web/app/immutable/chunks/{rNjiZ_3W.js → BPuz5cN_.js} +2 -2
- package/web/app/immutable/chunks/{Bygp72Wl.js → BSUnflvl.js} +1 -1
- package/web/app/immutable/chunks/{Bm6FDHvN.js → BSWVBeG0.js} +1 -1
- package/web/app/immutable/chunks/{Df4fyHSB.js → BSgFpkqa.js} +1 -1
- package/web/app/immutable/chunks/{BOpszErG.js → BSntxgH1.js} +1 -1
- package/web/app/immutable/chunks/{YTt0B0lA.js → BT8hDSo1.js} +1 -1
- package/web/app/immutable/chunks/{BAAb6Ol7.js → BU1Gcrkq.js} +1 -1
- package/web/app/immutable/chunks/{Cb6nJOfB.js → BV1ayWTC.js} +1 -1
- package/web/app/immutable/chunks/{DN-MAVuE.js → BV47Ledo.js} +1 -1
- package/web/app/immutable/chunks/{CI-VmE1m.js → BVctKbNy.js} +1 -1
- package/web/app/immutable/chunks/{CIzFSDuO.js → BVkAOJlr.js} +1 -1
- package/web/app/immutable/chunks/{Bosi029J.js → BVl79jmM.js} +1 -1
- package/web/app/immutable/chunks/{iVHs_bWz.js → BVuLEX_p.js} +1 -1
- package/web/app/immutable/chunks/{uAXEbxa8.js → BW1iql_y.js} +1 -1
- package/web/app/immutable/chunks/{DDnDtSlm.js → BXJzIaQM.js} +1 -1
- package/web/app/immutable/chunks/{C4IVoYqo.js → BYLCAn5f.js} +1 -1
- package/web/app/immutable/chunks/{Mh0PqgbP.js → B_4WsP9b.js} +1 -1
- package/web/app/immutable/chunks/{D5-RCLzi.js → B_75gRww.js} +1 -1
- package/web/app/immutable/chunks/{CQZUFyS7.js → BbLh3POL.js} +1 -1
- package/web/app/immutable/chunks/{D5q2XDzo.js → BbuLzldI.js} +1 -1
- package/web/app/immutable/chunks/{72S4_8Fo.js → Bc1vJq_Z.js} +1 -1
- package/web/app/immutable/chunks/{D8s3q34H.js → BcEkxi5l.js} +1 -1
- package/web/app/immutable/chunks/{BTtqZJEI.js → BcKrkXju.js} +1 -1
- package/web/app/immutable/chunks/{2bsrY56g.js → Bd1Doib5.js} +2 -2
- package/web/app/immutable/chunks/{6kZoubzS.js → BdEtT3Ti.js} +1 -1
- package/web/app/immutable/chunks/{CJ72QIuX.js → BeJRU38G.js} +3 -3
- package/web/app/immutable/chunks/{DGZLYT-c.js → BeU-lAdJ.js} +1 -1
- package/web/app/immutable/chunks/{BXE_7Biv.js → Bf_nrOhg.js} +1 -1
- package/web/app/immutable/chunks/{CwHPdS9l.js → BgDnzAo4.js} +1 -1
- package/web/app/immutable/chunks/{D3qs3VJZ.js → BhD_8q1J.js} +1 -1
- package/web/app/immutable/chunks/{Za_i3D8P.js → Bhb3isek.js} +4 -4
- package/web/app/immutable/chunks/{CayjT2l8.js → Bi-y50ry.js} +1 -1
- package/web/app/immutable/chunks/{0tWsVa0y.js → Bi_Yd73A.js} +1 -1
- package/web/app/immutable/chunks/{CEjK2ich.js → BjlMkd10.js} +1 -1
- package/web/app/immutable/chunks/{gkPeOUJv.js → BlDwsvYd.js} +1 -1
- package/web/app/immutable/chunks/{RWWlGLMu.js → BlIRL_82.js} +1 -1
- package/web/app/immutable/chunks/{D4g4334W.js → BmF8Qq3w.js} +1 -1
- package/web/app/immutable/chunks/{BPZBxYco.js → BoIbJp9v.js} +1 -1
- package/web/app/immutable/chunks/{B4l71ix-.js → BpYEdDT4.js} +1 -1
- package/web/app/immutable/chunks/BsdyWfPQ.js +2 -0
- package/web/app/immutable/chunks/{CMbvNZma.js → BtBQ5qfh.js} +1 -1
- package/web/app/immutable/chunks/{4oPBEC4-.js → Bt_vaAcw.js} +1 -1
- package/web/app/immutable/chunks/{CcmN1reb.js → Bu-RLSv9.js} +1 -1
- package/web/app/immutable/chunks/{CXrVII1G.js → BuFDqZnJ.js} +1 -1
- package/web/app/immutable/chunks/{D0sQr-H_.js → BuPmvT2w.js} +1 -1
- package/web/app/immutable/chunks/{ZNhLMxqQ.js → BupDQr_B.js} +2 -2
- package/web/app/immutable/chunks/{CJoPlWyA.js → Bv_xG3nA.js} +1 -1
- package/web/app/immutable/chunks/{Bap7o4n5.js → BvbZcfOT.js} +1 -1
- package/web/app/immutable/chunks/{Djz9uuuA.js → BvbeTrka.js} +1 -1
- package/web/app/immutable/chunks/{BJZU-qAV.js → BvzO6hxM.js} +1 -1
- package/web/app/immutable/chunks/{BK6CZrM5.js → BwC--T1G.js} +1 -1
- package/web/app/immutable/chunks/{4jB5IsVV.js → BwPwF85e.js} +1 -1
- package/web/app/immutable/chunks/{DKrlwauu.js → Bwx5QwNp.js} +1 -1
- package/web/app/immutable/chunks/{CgJXgMzB.js → BxU4EAMe.js} +1 -1
- package/web/app/immutable/chunks/{CBvkahdk.js → ByZMA8RF.js} +1 -1
- package/web/app/immutable/chunks/{IxfPVMNO.js → C-G2u0Oe.js} +1 -1
- package/web/app/immutable/chunks/{0v4yIgtg.js → C-PQQ8rb.js} +1 -1
- package/web/app/immutable/chunks/{D400ElMz.js → C-zB-6G6.js} +1 -1
- package/web/app/immutable/chunks/{YtoDeXhM.js → C0Zo7HuP.js} +1 -1
- package/web/app/immutable/chunks/{ump_SWLl.js → C1AUaRa8.js} +1 -1
- package/web/app/immutable/chunks/{COB2k0Aa.js → C2F2Vd1P.js} +1 -1
- package/web/app/immutable/chunks/{DkET5D1Z.js → C2Hs8n0u.js} +1 -1
- package/web/app/immutable/chunks/{CnHcPhIW.js → C3-81PRC.js} +4 -4
- package/web/app/immutable/chunks/{rYnu2FeJ.js → C3gIkQxX.js} +1 -1
- package/web/app/immutable/chunks/{CCAcpS1o.js → C412Y6ti.js} +2 -2
- package/web/app/immutable/chunks/{BGN0Ete3.js → C4Py2-C-.js} +1 -1
- package/web/app/immutable/chunks/{DHbqsCcC.js → C4UnZ5aI.js} +1 -1
- package/web/app/immutable/chunks/{C6g7LzDB.js → C50zlWbZ.js} +1 -1
- package/web/app/immutable/chunks/{CmbheRhJ.js → C63WwVct.js} +1 -1
- package/web/app/immutable/chunks/{CJW4jhjq.js → C8LrJXqa.js} +1 -1
- package/web/app/immutable/chunks/{Bb9tq6rt.js → C9ew0Hx2.js} +1 -1
- package/web/app/immutable/chunks/{DpChblex.js → C9p4fddz.js} +1 -1
- package/web/app/immutable/chunks/{Cw2ZnpX7.js → CA8JHp72.js} +1 -1
- package/web/app/immutable/chunks/{C0fFeGdB.js → CAfPEsZt.js} +1 -1
- package/web/app/immutable/chunks/CAtVH-rJ.js +158 -0
- package/web/app/immutable/chunks/CCIZBeez.js +1 -0
- package/web/app/immutable/chunks/{BhVPbMnV.js → CD-M_2xD.js} +1 -1
- package/web/app/immutable/chunks/{cKonll34.js → CDAnHxmJ.js} +1 -1
- package/web/app/immutable/chunks/{qLxI2L63.js → CDBHtmaA.js} +1 -1
- package/web/app/immutable/chunks/{H9nIRlnK.js → CE9_m5Rd.js} +1 -1
- package/web/app/immutable/chunks/{AYsHMWH3.js → CEEUgGO1.js} +1 -1
- package/web/app/immutable/chunks/{CjyJQV6j.js → CEfkJpk7.js} +1 -1
- package/web/app/immutable/chunks/{DETS1-K4.js → CGYPBD6G.js} +1 -1
- package/web/app/immutable/chunks/{C0CrTfQC.js → CHto7_WH.js} +1 -1
- package/web/app/immutable/chunks/{KMO8sO00.js → CI0C7_h-.js} +1 -1
- package/web/app/immutable/chunks/{D4ZMSrvm.js → CIWky03S.js} +3 -3
- package/web/app/immutable/chunks/{CHMwcoWM.js → CIaruUrd.js} +1 -1
- package/web/app/immutable/chunks/{BzqJYEOZ.js → CJB-ebPL.js} +1 -1
- package/web/app/immutable/chunks/{_0LhNaan.js → CJNNcGWg.js} +1 -1
- package/web/app/immutable/chunks/{NZ_vlsKe.js → CLlFdy2p.js} +1 -1
- package/web/app/immutable/chunks/{jmJoSjVa.js → CLo9TzNK.js} +1 -1
- package/web/app/immutable/chunks/{CegXgKbh.js → CNSshwg_.js} +1 -1
- package/web/app/immutable/chunks/{Ciei8d6b.js → COflq_3N.js} +3 -3
- package/web/app/immutable/chunks/{O63l2zGE.js → COgn_CzG.js} +1 -1
- package/web/app/immutable/chunks/{BWtgRgi0.js → CPI5xBWX.js} +1 -1
- package/web/app/immutable/chunks/{oTjaecL9.js → CPaH4fRt.js} +1 -1
- package/web/app/immutable/chunks/{ByYwSpDO.js → CQMFoUkp.js} +1 -1
- package/web/app/immutable/chunks/{BmALJKBY.js → CR-JVxLD.js} +1 -1
- package/web/app/immutable/chunks/CT9qg5pc.js +1 -0
- package/web/app/immutable/chunks/{DpmMYKqt.js → CTW83wJs.js} +1 -1
- package/web/app/immutable/chunks/{DMrypNw-.js → CV2tdNDf.js} +1 -1
- package/web/app/immutable/chunks/{BqU6TsU1.js → CVU_1O7c.js} +1 -1
- package/web/app/immutable/chunks/{DV6uX7ff.js → CVs9CHtI.js} +1 -1
- package/web/app/immutable/chunks/{C9fPgzDG.js → CWOQ_pUA.js} +1 -1
- package/web/app/immutable/chunks/{BcffwE-d.js → CWTUGfLW.js} +1 -1
- package/web/app/immutable/chunks/{CWwAStwx.js → CXDUvPYf.js} +1 -1
- package/web/app/immutable/chunks/{_Tye__BB.js → CYSndAne.js} +1 -1
- package/web/app/immutable/chunks/{DnHJL326.js → C_SKcJv7.js} +1 -1
- package/web/app/immutable/chunks/{Cb0AGw5F.js → Cbb4o3qj.js} +1 -1
- package/web/app/immutable/chunks/{Dk0Z1pVU.js → CbxBZqC_.js} +1 -1
- package/web/app/immutable/chunks/{DKLk3Wx8.js → CdbRvoG6.js} +1 -1
- package/web/app/immutable/chunks/{Bw8_vMki.js → ClNMpui4.js} +1 -1
- package/web/app/immutable/chunks/{edw8TVSr.js → CletI6Pa.js} +1 -1
- package/web/app/immutable/chunks/{Dfh8DRT0.js → Clez3uTU.js} +3 -3
- package/web/app/immutable/chunks/{CwTWayd0.js → Clo7aK1n.js} +1 -1
- package/web/app/immutable/chunks/{CbucW-av.js → Cnl_O3ZO.js} +1 -1
- package/web/app/immutable/chunks/{CWezNj5-.js → CoJyxFcH.js} +1 -1
- package/web/app/immutable/chunks/{DCP9TL-A.js → Cp02CBjf.js} +1 -1
- package/web/app/immutable/chunks/{BaJfBXet.js → Cp7Byf5d.js} +1 -1
- package/web/app/immutable/chunks/{BGaOyp5o.js → CqrCSb8W.js} +1 -1
- package/web/app/immutable/chunks/{BziYv9ZW.js → Cr2Op5yp.js} +2 -2
- package/web/app/immutable/chunks/{BHKaBN6i.js → Cr5QjekU.js} +1 -1
- package/web/app/immutable/chunks/{CJHIllR1.js → CrEMns9K.js} +1 -1
- package/web/app/immutable/chunks/{DXB4L22V.js → CrsbEWnE.js} +1 -1
- package/web/app/immutable/chunks/{BNFLngEB.js → Csh6XB2J.js} +1 -1
- package/web/app/immutable/chunks/{BaodMpKG.js → CsyhqW-P.js} +1 -1
- package/web/app/immutable/chunks/{DOuyIvfN.js → CuPx_r7k.js} +1 -1
- package/web/app/immutable/chunks/{BD47nZkr.js → Cy9hcA7q.js} +1 -1
- package/web/app/immutable/chunks/{CjZEyjv4.js → D-rRuAXZ.js} +1 -1
- package/web/app/immutable/chunks/{B7o2QL9R.js → D0R3sca1.js} +1 -1
- package/web/app/immutable/chunks/{DoStKyYK.js → D20kqX2U.js} +2 -2
- package/web/app/immutable/chunks/{DOU-V4Cg.js → D2mnZ9kC.js} +2 -2
- package/web/app/immutable/chunks/{DZjKvOyB.js → D5Tu5Sg8.js} +1 -1
- package/web/app/immutable/chunks/{DTU57FsX.js → D7Dfbf5g.js} +1 -1
- package/web/app/immutable/chunks/{D5u143LD.js → D8XzixBC.js} +1 -1
- package/web/app/immutable/chunks/{CPel99qV.js → DDb9H7X6.js} +3 -3
- package/web/app/immutable/chunks/{DltbAw1B.js → DDrpCbke.js} +1 -1
- package/web/app/immutable/chunks/{Dm9EHXJZ.js → DEDo4DeD.js} +4 -4
- package/web/app/immutable/chunks/{Cx6Utm5I.js → DErxk4N4.js} +1 -1
- package/web/app/immutable/chunks/{DfOxl3xY.js → DEs9kPtf.js} +1 -1
- package/web/app/immutable/chunks/{DhHLTWgE.js → DGMrUmNq.js} +1 -1
- package/web/app/immutable/chunks/{BCx-pM-8.js → DGVdJiQ7.js} +1 -1
- package/web/app/immutable/chunks/{DcACHBPs.js → DHf7N1bI.js} +1 -1
- package/web/app/immutable/chunks/{CvxVjZLu.js → DI71nFp4.js} +1 -1
- package/web/app/immutable/chunks/{AXE1aiRo.js → DJPIUVkw.js} +1 -1
- package/web/app/immutable/chunks/{BWmYJDmC.js → DLCFUd4s.js} +1 -1
- package/web/app/immutable/chunks/{2V6-Yhg-.js → DM1_VFfD.js} +1 -1
- package/web/app/immutable/chunks/{BFc0Rlfo.js → DMeCi1eF.js} +1 -1
- package/web/app/immutable/chunks/{Bs8vOu-_.js → DPR_clFy.js} +1 -1
- package/web/app/immutable/chunks/{RzextV4B.js → DPY-p9P3.js} +2 -2
- package/web/app/immutable/chunks/{7Em2EC6e.js → DQT1hnTe.js} +1 -1
- package/web/app/immutable/chunks/{CU_25eHm.js → DR6M_MBd.js} +1 -1
- package/web/app/immutable/chunks/{D0I7VQ8a.js → DSiGyv9Y.js} +1 -1
- package/web/app/immutable/chunks/{mLzVJBUx.js → DTDtxEAk.js} +1 -1
- package/web/app/immutable/chunks/{CSIAWhhl.js → DUAtqTLU.js} +1 -1
- package/web/app/immutable/chunks/{CU89eAKc.js → DV7x43jt.js} +1 -1
- package/web/app/immutable/chunks/{BEvFtidS.js → DWa-2rkZ.js} +1 -1
- package/web/app/immutable/chunks/{CRFehAxF.js → DX9N1RQz.js} +1 -1
- package/web/app/immutable/chunks/{DB4f78Ip.js → D_VvdZe2.js} +1 -1
- package/web/app/immutable/chunks/{BNm3whw0.js → Da-Blgd9.js} +1 -1
- package/web/app/immutable/chunks/{BXT21uPn.js → DcOkWaeN.js} +1 -1
- package/web/app/immutable/chunks/{Ct8L3-dh.js → DgJnzjEh.js} +1 -1
- package/web/app/immutable/chunks/{Jh2BVut2.js → DiURwJNX.js} +1 -1
- package/web/app/immutable/chunks/{C5tAJtyd.js → DlU1rxYV.js} +1 -1
- package/web/app/immutable/chunks/{BQ1b28aV.js → DlUpt_0u.js} +1 -1
- package/web/app/immutable/chunks/{ez7LBTR9.js → DlWS0XX3.js} +1 -1
- package/web/app/immutable/chunks/{h3LTJhAu.js → DmhHa5tp.js} +1 -1
- package/web/app/immutable/chunks/{DAzQ7i2U.js → Dmn1abz2.js} +1 -1
- package/web/app/immutable/chunks/{Dl9we4aZ.js → DnLmeVJZ.js} +1 -1
- package/web/app/immutable/chunks/{1MN-thc1.js → Do2KlQU0.js} +1 -1
- package/web/app/immutable/chunks/DoOue2dc.js +2 -0
- package/web/app/immutable/chunks/{2ndYjFQq.js → Dp8FVKoA.js} +1 -1
- package/web/app/immutable/chunks/{Chx7ONT3.js → DqAYkzSz.js} +1 -1
- package/web/app/immutable/chunks/{hcDGwCEP.js → DrTTxENT.js} +1 -1
- package/web/app/immutable/chunks/{BqCuw50f.js → DsfORPYa.js} +1 -1
- package/web/app/immutable/chunks/{CcSZrbR4.js → DtqPBHQj.js} +1 -1
- package/web/app/immutable/chunks/{BEpYOO0x.js → DtyEiVnc.js} +1 -1
- package/web/app/immutable/chunks/{CXCw-Jw-.js → DuAAGnM9.js} +1 -1
- package/web/app/immutable/chunks/{CAmQkXZq.js → Dval4sTX.js} +1 -1
- package/web/app/immutable/chunks/{CJtFSxbf.js → Dvi4g0xk.js} +1 -1
- package/web/app/immutable/chunks/Dws-34a7.js +1 -0
- package/web/app/immutable/chunks/{BBV_EtXR.js → Dx3P5K2z.js} +1 -1
- package/web/app/immutable/chunks/{BdnR40vX.js → DxC0zTSc.js} +1 -1
- package/web/app/immutable/chunks/{CBZTF7Qa.js → DxPvfI2H.js} +4 -4
- package/web/app/immutable/chunks/{DbDI5c8r.js → Dxfvrgme.js} +1 -1
- package/web/app/immutable/chunks/{BhpCwvYl.js → DyZa5hX5.js} +1 -1
- package/web/app/immutable/chunks/{Bc3o0U_Z.js → Ex_x2wO5.js} +1 -1
- package/web/app/immutable/chunks/{B8nUpMEz.js → GIVowYni.js} +1 -1
- package/web/app/immutable/chunks/{CP9jggxp.js → Gt7Fxn5w.js} +1 -1
- package/web/app/immutable/chunks/{C0A3yiL9.js → HU1Ksz8U.js} +1 -1
- package/web/app/immutable/chunks/{wZz1J3UE.js → IIW6JGdD.js} +1 -1
- package/web/app/immutable/chunks/{BvFRd1je.js → JM7CQkWC.js} +1 -1
- package/web/app/immutable/chunks/{CceLSCZq.js → K8u-JjT9.js} +1 -1
- package/web/app/immutable/chunks/{oki3b9jv.js → L7Esr5Id.js} +1 -1
- package/web/app/immutable/chunks/{CGaMCAik.js → LQRHF1eM.js} +1 -1
- package/web/app/immutable/chunks/{x019Lcmv.js → OGqbAD_O.js} +1 -1
- package/web/app/immutable/chunks/{CbDsELcV.js → OrN9D77d.js} +3 -3
- package/web/app/immutable/chunks/{DZEg_JlV.js → PhAbES0t.js} +1 -1
- package/web/app/immutable/chunks/{BaJMqkSd.js → QRUY44Ff.js} +1 -1
- package/web/app/immutable/chunks/{9Bk8hwX5.js → RHSH5iZ7.js} +1 -1
- package/web/app/immutable/chunks/{C9aF-Sor.js → SbTG0nwQ.js} +1 -1
- package/web/app/immutable/chunks/{CyYfX9fz.js → TT8yXpG-.js} +1 -1
- package/web/app/immutable/chunks/{C4VXXfVL.js → U7dpdlAf.js} +1 -1
- package/web/app/immutable/chunks/{Bcb1iqQJ.js → VeUh5OMZ.js} +1 -1
- package/web/app/immutable/chunks/Whej1Dge.js +1 -0
- package/web/app/immutable/chunks/{DaZ7K0cS.js → Z9NyJp9w.js} +3 -3
- package/web/app/immutable/chunks/{DCGl0RXW.js → ZRNKCUqe.js} +47 -47
- package/web/app/immutable/chunks/{CUWtSiZ5.js → _2VCBG9z.js} +1 -1
- package/web/app/immutable/chunks/{DZAKdz0-.js → ada9rZfE.js} +1 -1
- package/web/app/immutable/chunks/{BzllE3aT.js → d8NijX_Z.js} +2 -2
- package/web/app/immutable/chunks/{BLZhAOLT.js → deEweluJ.js} +1 -1
- package/web/app/immutable/chunks/{Do6vtrQf.js → dmZv6JOg.js} +1 -1
- package/web/app/immutable/chunks/{D2LsUZli.js → e9nNeD_8.js} +1 -1
- package/web/app/immutable/chunks/{BJHkJxQ6.js → fHygQTSC.js} +1 -1
- package/web/app/immutable/chunks/{CbqBbwIN.js → gU2qspu9.js} +1 -1
- package/web/app/immutable/chunks/{-J-Hmuck.js → h8JtxU_T.js} +1 -1
- package/web/app/immutable/chunks/{MsC14vMO.js → hNQ1u1TD.js} +1 -1
- package/web/app/immutable/chunks/{Df-2xtN9.js → hYcAQyax.js} +1 -1
- package/web/app/immutable/chunks/{jiLgt56M.js → i0UHQwRY.js} +1 -1
- package/web/app/immutable/chunks/{HQDMr2H7.js → iCWz6IE9.js} +1 -1
- package/web/app/immutable/chunks/{CbaFGz2w.js → jBG7W4tL.js} +1 -1
- package/web/app/immutable/chunks/{oRcurxpq.js → lTwh0Wzj.js} +1 -1
- package/web/app/immutable/chunks/{DyHx5QFY.js → nwO3KCpP.js} +1 -1
- package/web/app/immutable/chunks/{05jEdw2V.js → pMP23LzB.js} +1 -1
- package/web/app/immutable/chunks/{BJTYazIn.js → pomj9evG.js} +1 -1
- package/web/app/immutable/chunks/{WWSsQ21S.js → rEslErv9.js} +1 -1
- package/web/app/immutable/chunks/{x_GKKTQV.js → rXKOJqUt.js} +1 -1
- package/web/app/immutable/chunks/{McOgUz0K.js → sOF-qTei.js} +1 -1
- package/web/app/immutable/chunks/{BXyd6A9p.js → sSXTMg2P.js} +1 -1
- package/web/app/immutable/chunks/{B0fUscDD.js → tLFaYuVN.js} +1 -1
- package/web/app/immutable/chunks/{BEiVNbJd.js → tuKjkgzS.js} +1 -1
- package/web/app/immutable/chunks/{Ipu7_2rx.js → v3_7O0A0.js} +1 -1
- package/web/app/immutable/chunks/{DZnKNdAN.js → vdylZNCS.js} +1 -1
- package/web/app/immutable/chunks/{ChdMCKvy.js → vyUklWDK.js} +1 -1
- package/web/app/immutable/chunks/{DU4sJYad.js → wiGlLVr-.js} +1 -1
- package/web/app/immutable/chunks/{CCPr9hs_.js → yDmmPu6L.js} +1 -1
- package/web/app/immutable/chunks/{Dv-bjgEk.js → zB9UbdEg.js} +1 -1
- package/web/app/immutable/entry/{app.CHgb5yMQ.js → app.DEnhhDc1.js} +3 -3
- package/web/app/immutable/entry/start.Cmawmwgw.js +1 -0
- package/web/app/immutable/nodes/{0.DECevrtM.js → 0.DLkagS9u.js} +1 -1
- package/web/app/immutable/nodes/{1.LZZdSQoJ.js → 1.ChB9puqR.js} +1 -1
- package/web/app/immutable/nodes/10.B3YEuSxS.js +39 -0
- package/web/app/immutable/nodes/{11.D5CTYtT6.js → 11.rgOqEz2U.js} +1 -1
- package/web/app/immutable/nodes/{12.iQywXLwT.js → 12.D6rxlIQy.js} +1 -1
- package/web/app/immutable/nodes/{13.m6xe0bMv.js → 13.CHYsmiD_.js} +1 -1
- package/web/app/immutable/nodes/{14.CyaNpqAL.js → 14.mG-YN9pn.js} +3 -3
- package/web/app/immutable/nodes/{15.5st_fzCN.js → 15.CgSxPoXZ.js} +1 -1
- package/web/app/immutable/nodes/{16.MUmBS-bv.js → 16.BsFtzH0D.js} +1 -1
- package/web/app/immutable/nodes/{17.C_k1qpf6.js → 17.me_aOx8O.js} +1 -1
- package/web/app/immutable/nodes/{18.BjTfofOz.js → 18.BO1oZWgm.js} +1 -1
- package/web/app/immutable/nodes/{19.wB7XsK3B.js → 19.DS0Anfm0.js} +2 -2
- package/web/app/immutable/nodes/{2.C7whbYui.js → 2.BB55cMHs.js} +4 -4
- package/web/app/immutable/nodes/{20.DuDV-BZU.js → 20.LbRPieV_.js} +1 -1
- package/web/app/immutable/nodes/{3.KbBbpAm6.js → 3.B1suR6zI.js} +1 -1
- package/web/app/immutable/nodes/{4.C1b_QyI0.js → 4.BdkLcCps.js} +1 -1
- package/web/app/immutable/nodes/{5.CG-B5vOM.js → 5.DlFTrLdG.js} +1 -1
- package/web/app/immutable/nodes/{6.v-GnNHdu.js → 6.EdJoOCRv.js} +1 -1
- package/web/app/immutable/nodes/{7.D9LU-AZb.js → 7.iPBOmxFo.js} +1 -1
- package/web/app/immutable/nodes/{8.BJP_1POW.js → 8.BRpg5Nn-.js} +1 -1
- package/web/app/immutable/nodes/{9.f8mHa7_b.js → 9.CeyWcdBf.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/B8evz7o6.js +0 -2
- package/web/app/immutable/chunks/C0P2MUJp.js +0 -1
- package/web/app/immutable/chunks/D8elUKsb.js +0 -158
- package/web/app/immutable/chunks/DY52XPja.js +0 -2
- package/web/app/immutable/chunks/KU76P7cR.js +0 -1
- package/web/app/immutable/chunks/akx8_VtJ.js +0 -1
- package/web/app/immutable/chunks/hY0rMePc.js +0 -1
- package/web/app/immutable/entry/start.CINDVXKj.js +0 -1
- package/web/app/immutable/nodes/10.KUh1filM.js +0 -39
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as a}from"./
|
|
1
|
+
import{g as l,r as m,d as a}from"./BeU-lAdJ.js";import{p}from"./CPaH4fRt.js";import{b as t,ay as o}from"./DxPvfI2H.js";import{M as u,b as c}from"./BgDnzAo4.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=y(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),y=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),v=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(v(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ul=Object.defineProperty;var jl=(r,t,a)=>t in r?Ul(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var pa=(r,t,a)=>jl(r,typeof t!="symbol"?t+"":t,a);import{t as pt,bo as g,bw as vt,b as ht,bm as d,bq as Ea,bs as tr,br as Vl,bp as vn}from"./hY0rMePc.js";import{ai as Ga,bs as _t,ca as Xt,aD as e,bH as D,ay as fe,bS as A,a7 as St,W as c,a5 as V,bA as F,bn as bt,c9 as n,bV as ue,aA as m,b_ as $,aj as xr,aB as I,be as Cr,b$ as Pr,bO as Q,bf as rr,c0 as Ia,bl as oe,bj as ja,c6 as Gl,bo as nn,br as Zr,am as Da,ax as Ba,bk as as,aw as pn,bz as ns,cb as Fn,c5 as Mn,aC as Ir,cd as vo,bv as Kl}from"./3SdAC2_C.js";import{i as O}from"./BWmYJDmC.js";import{g as kr,e as sa,p as ms,i as Ha,I as Zl,h as eo,X as pi,o as Ql}from"./D400ElMz.js";import{n as Kt,l as On,c as Ya,g as rn,s as ks,k as ss,S as Xl}from"./72S4_8Fo.js";import{s as J,f as Fe,g as hn,c as It,e as Qt,b as _n,p as Yl,S as Jl,C as ed}from"./leDczq9h.js";import{b as ea}from"./Dn334wJv.js";import{f as st,ae as to,a_ as td}from"./CIU_APaR.js";import{J as rd,O as ad,Q as Is}from"./rNjiZ_3W.js";import"./COB2k0Aa.js";import"./uAXEbxa8.js";import"./CbqBbwIN.js";import{t as Ma,k as vi}from"./CjZEyjv4.js";import{F as Bt,a4 as zs,bg as ka,cK as ps,au as hi,aZ as _i,aK as nd,c9 as sd,a6 as os,aN as od,cN as id,cM as ld,a3 as vs,aC as is,aw as hs,I as ho,aj as dd,bu as cd,aS as ud,aX as fd,bJ as gd,ao as md,bk as bi,cC as pd,aP as _o,c0 as Ss,aI as Hn,cW as vd,cb as hd,bn as _d,b as bd,cp as yd,ag as wd,ba as Ts,cr as wn,cF as xd,az as kd,c6 as Id,d3 as Sd}from"./DETS1-K4.js";import{C as yi,A as Td,o as Cd}from"./CbaFGz2w.js";import{b as Cs,V as bo}from"./CCPr9hs_.js";import{A as wi}from"./CSIAWhhl.js";import{bZ as xi,aj as Md,j as Kn,a4 as Ws,al as ls,E as Ad,au as Zn,aP as Pd,aS as yo}from"./Cw2ZnpX7.js";import{t as an,o as Rd}from"./DAsc1V4f.js";import{ch as Qn,aO as qn,d2 as ki,d4 as Va,c6 as _s,q as Nd,cX as Ii,d1 as bs,d0 as Si,c_ as Ti,n as Ca,al as Ed,am as $d,aJ as Ld,z as Od,V as qd,a3 as wo,D as Ci,e4 as Dd,aF as Bd,ak as Fd,r as zd,C as Ms,ag as Wd,U as xn,e2 as Hd,ab as Ud,k as xo,u as jd,Z as Vd,v as Gd,i as Kd,g as As,f as ko,a0 as Zd,$ as Qd,a9 as Xd,x as Mi,y as Ai,l as Pi,j as Yd,s as Jd,a as ec,d5 as tc,ae as rc,e3 as ac,L as nc,F as sc,a2 as Io,bq as oc,av as ic}from"./C9aF-Sor.js";import{Jx as mt,o$ as lc,tQ as Xn,nQ as So,vJ as Ri,vL as Ni,s1 as dc,yI as ds,v0 as Ei,nL as $i,br as En,nY as cc,nZ as uc,yJ as fc,qz as gc,tk as mc,vC as Li,nK as pc,mP as vc,m as hc,za as _c,z7 as bc,z9 as yc}from"./DXdFemRu.js";import{a3 as wc,y as Ps,a1 as xc,O as Rs,W as kc,$ as Ic,k as Sc,p as kn,P as un,q as Tc,G as Cc,v as Mc,t as Ac,M as Ns,K as Pc,z as Rc,L as Nc,_ as An,U as Un,N as To,n as Co,E as Ec,c as Es,F as Mo,B as $c,w as Ao,J as Pn,Q as Lc,H as Oc,j as qc,R as Dc,T as Bc,A as Fc,g as zc,b as Wc,D as Hc,f as Uc,e as jc,a as Vc,C as Gc,i as Kc,d as Hs,V as Oi,a4 as Zc,u as Qc,l as Xc}from"./CJ72QIuX.js";import{i as Yc,e as Jc}from"./CAmQkXZq.js";import{g as $s}from"./B5aYN90J.js";import{M as In,C as Rn}from"./DaZ7K0cS.js";import{C as Po}from"./DaXosNFA.js";import"./McOgUz0K.js";import{P as eu}from"./B7h1ZmQS.js";import"./RWWlGLMu.js";import{c as qi}from"./ChTqQfQN.js";import{S as tu}from"./B8nUpMEz.js";import{D as Ro,M as ru}from"./CBZTF7Qa.js";import{b as au,s as en,c as cs}from"./Bm6FDHvN.js";import{O as Yn,y as Ls,E as Os,B as qs,N as nu,m as su,l as ou,k as iu,d as Dn,C as No,f as lu,e as du,g as cu}from"./Bw8_vMki.js";import{a as Di,s as Eo}from"./BsieX9dN.js";import{f as uu}from"./BdWqymET.js";import{c as na}from"./KU76P7cR.js";import{a as fu,k as Bi,h as ro,q as Fi,l as wr}from"./B7JHU89G.js";import{P as gu}from"./BEvFtidS.js";import{r as Ds,q as Bs,B as $o,i as mu}from"./DpeQIGDn.js";import{R as zi,C as ys,m as pu,h as vu,g as hu,i as Lo,P as _u}from"./x_GKKTQV.js";import"./BXT21uPn.js";import{c as bu,s as yu}from"./Ciei8d6b.js";import{h as gn}from"./DOU-V4Cg.js";import{b as wu,a as Wi}from"./4QXQvR4H.js";import{P as Hi}from"./CWezNj5-.js";import{B as xu}from"./2V6-Yhg-.js";import{o as Ui,r as ku,e as Iu}from"./B4l71ix-.js";import{o as ji}from"./BzllE3aT.js";import{A as Jn,b as Vi}from"./Bcb1iqQJ.js";import{g as ao}from"./BNm3whw0.js";import{a as Su,M as Tu}from"./BTc_j7Dt.js";import{a as Gi}from"./DhHLTWgE.js";import{E as Cu,n as Mu}from"./AXE1aiRo.js";import{t as Tr}from"./C-BsEdGZ.js";import{c as Sn}from"./BNN0vAFF.js";import{A as Au}from"./DDnDtSlm.js";import{f as Pu,d as Ru}from"./DnozpXMO.js";import{ad as Nu,P as Eu,Z as $u,L as Oo,Y as Lu,w as Ou,a0 as Ki,$ as Zi}from"./Dm9EHXJZ.js";import{a as qu}from"./CC7to1B5.js";import{k as Du}from"./CXul4WJt.js";import{S as Bu}from"./CcmN1reb.js";import{u as Fu,a as zu,c as qo,S as Wu}from"./D9tVylVS.js";import{T as us}from"./0tWsVa0y.js";import"./C6g7LzDB.js";import{g as Hu,a as Uu}from"./CmbheRhJ.js";import{I as ju,R as Vu,q as Gu}from"./D4ZMSrvm.js";import{b as Qi}from"./Di3TE7pQ.js";import{b as Do}from"./goTpbPhD.js";import{ah as Ua,n as Ku}from"./Mh0PqgbP.js";import{c as Zu}from"./2bsrY56g.js";import{r as Bo}from"./BAAb6Ol7.js";function Qu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof i!="string"||!i||typeof l!="string"||!l||u!=="finished"&&u!=="ttl-expired"&&u!=="output-match"&&u!=="line-count")return null;const h=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u,...u==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Xu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Yu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=Nu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===a||s,sendNow:(i||s)&&!Xi(r)}}function Tn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Xi(r){return Xu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Fo(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!Xi(r)}const Cb="pl-3.5! pr-2!";var Ju=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),zo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),ef=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),tf=I("<!><span> </span>",1),rf=I('<img alt="" draggable="false"/>'),af=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),nf=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),sf=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),of=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),lf=I("<!> <!> <!>",1),df=I('<img draggable="false" class="svelte-d8pwpf"/>'),cf=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),uf=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),ff=I("<!> <!>",1);function gf(r,t){if(new.target)return pt({component:gf,...r});_t(t,!0);const a=(T,me=rr,le=rr)=>{var N=Ju(),ve=V(N);st(ve,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return le()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return le()},onclick:()=>z(me()),children:(Le,Ae)=>{Cs(Le,{glyph:"x"})},$$slots:{default:!0}}),F(N),c(T,N)};let s=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),l=g(t,"onMarkUp",7),u=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),x=g(t,"onCopy",7),M=g(t,"onMenu",7);const B=T=>T.owner==="attachment"?2:{image:0,clip:1,file:2}[T.kind],U=n(()=>[...s()].sort((T,me)=>B(T)-B(me)));let w=ue(null),C=ue(!1),re=ue(null),G=null;const S=n(()=>s().find(T=>T.id===e(re)));Xt(()=>{(!e(S)||e(S).kind==="image"&&!j(e(S)))&&D(C,!1)});function j(T){return T.kind==="image"&&T.status!=="placing"&&T.status!=="failed"&&T.url.trim().length>0}function L(T){return T.kind==="image"?o().image(T.markCount):T.kind==="clip"?T.summary?`${o().clip(T.duration)} ${T.summary}`:o().clip(T.duration):T.name}function ne(T,me){if(!(i()||T.kind==="file"||T.kind==="image"&&!j(T)||T.kind==="clip"&&(!T.url||T.recording))){if((T.kind==="clip"||T.kind==="image")&&u()){u()(T.id);return}G=me,D(re,T.id,!0),D(C,!0)}}async function z(T){i()||(e(re)===T&&D(C,!1),h()(T),await Ia(),(!document.activeElement||document.activeElement===document.body)&&e(w)?.querySelector("button:not(:disabled)")?.focus())}function q(T){const me=s().find(le=>le.id===T);i()||!me||!j(me)||(D(C,!1),u()?u()(T):l()(T))}function ee(T,me){T.key!=="Delete"||i()||(T.preventDefault(),T.stopPropagation(),z(me))}function R(T){return T.status==="placing"||T.status==="failed"?!1:T.kind==="image"?!!T.file||j(T):T.kind==="clip"&&!T.recording&&!!T.url}function X(T,me){const le=rd()?T.metaKey:T.ctrlKey,N=T.key.toLowerCase();if(le&&!T.shiftKey&&!T.altKey&&(N==="c"||N==="x")){if(!x()||!R(me)||(T.preventDefault(),T.stopPropagation(),N==="x"&&i()))return;x()(me.id,N==="x");return}ee(T,me.id)}function te(T,me){!M()||!R(me)||(T.preventDefault(),M()(me.id))}var _e={get items(){return s()},set items(T){s(T),m()},get labels(){return o()},set labels(T){o(T),m()},get disabled(){return i()},set disabled(T=!1){i(T),m()},get onMarkUp(){return l()},set onMarkUp(T){l(T),m()},get onEdit(){return u()},set onEdit(T){u(T),m()},get onRemove(){return h()},set onRemove(T){h(T),m()},get onRetry(){return v()},set onRetry(T){v(T),m()},get onCopy(){return x()},set onCopy(T){x(T),m()},get onMenu(){return M()},set onMenu(T){M(T),m()},$set:vt,$on:(T,me)=>ht(t,T,me)},de=ff(),ge=fe(de);{var Pe=T=>{var me=of();kr(me,21,()=>e(U),le=>le.id,(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=xe=>{var P=ef(),Y=V(P);{let W=n(()=>i()||e(N).status==="placing");wi(Y,{get id(){return e(N).id},get name(){return e(N).file.name},get type(){return e(N).file.imageMimeType},get imageData(){return e(N).file.imageData},get imageMimeType(){return e(N).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(W)},get placementStatus(){return e(N).status},get placementError(){return e(N).error}})}var ae=A(Y,2);{var we=W=>{var be=zo(),Re=oe(be,!0);$(()=>{J(be,"data-failed",e(N).status==="failed"||void 0),J(be,"role",e(N).status==="failed"?"alert":"status"),J(be,"title",e(N).error),Q(Re,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(W,be)};O(ae,W=>{e(N).status&&W(we)})}var _=A(ae,2),Se=V(_);{var Ce=W=>{st(W,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:(be,Re)=>{Bt(be,{get icon(){return zs},size:16})},$$slots:{default:!0}})};O(Se,W=>{e(N).status==="failed"&&v()&&W(Ce)})}var E=A(Se,2);{let W=n(()=>d.chat_attachmentPreview_remove_ariaLabel({name:e(N).file.name}));a(E,()=>e(N).id,()=>e(W))}F(_),F(P),$(()=>J(P,"data-attachment-id",e(N).id)),xr("keydown",P,W=>X(W,e(N))),xr("contextmenu",P,W=>te(W,e(N))),Kt(1,P,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,P,()=>Ya,()=>({tier:"fast"})),c(xe,P)},Ee=xe=>{const P=n(()=>e(N).kind==="image"&&!j(e(N))&&e(N).status!=="failed");var Y=sf(),ae=V(Y);{var we=ke=>{st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(N).name},get disabled(){return i()},onkeydown:$e=>ee($e,e(N).id),children:($e,Oe)=>{var Ue=tf(),se=fe(Ue);Bt(se,{get icon(){return ka},size:20});var Ge=A(se),yt=oe(Ge,!0);$(()=>Q(yt,e(N).name)),c($e,Ue)},$$slots:{default:!0}})},_=ke=>{{let $e=n(()=>L(e(N))),Oe=n(()=>i()||e(N).kind==="clip"&&(e(N).recording||!e(N).url));st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e($e)},get disabled(){return e(Oe)},onkeydown:Ue=>X(Ue,e(N)),onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{var Ge=St(),yt=fe(Ge);{var Ft=et=>{var Ke=rf();$(()=>J(Ke,"src",e(N).url)),c(et,Ke)},er=et=>{var Ke=nf(),$t=A(V(Ke)),Tt=oe($t,!0),ut=A($t);{var ze=K=>{var y=af(),pe=oe(y,!0);$(()=>Q(pe,e(N).summary)),c(K,y)};O(ut,K=>{e(N).summary&&K(ze)})}F(Ke),$(()=>Q(Tt,e(N).duration)),c(et,Ke)};O(yt,et=>{e(N).kind==="image"?et(Ft):et(er,-1)})}c(Ue,Ge)},$$slots:{default:!0}})}},Se=n(()=>e(N).kind!=="image"||j(e(N)));O(ae,ke=>{e(N).kind==="file"?ke(we):e(Se)&&ke(_,1)})}var Ce=A(ae,2);{var E=ke=>{var $e=zo(),Oe=oe($e,!0);$(()=>{J($e,"data-failed",e(N).status==="failed"||void 0),J($e,"role",e(N).status==="failed"?"alert":"status"),J($e,"title",e(N).error),Q(Oe,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(ke,$e)};O(Ce,ke=>{(e(N).status||e(P))&&ke(E)})}var W=A(Ce,2),be=V(W);{var Re=ke=>{st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:($e,Oe)=>{Bt($e,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Ve=ke=>{{let $e=n(()=>u()?o().edit:o().markUp),Oe=n(()=>u()?o().edit:o().markUp);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:()=>q(e(N).id),children:(Ue,se)=>{Cs(Ue,{glyph:"pencil"})},$$slots:{default:!0}})}},De=n(()=>j(e(N))),Et=ke=>{{let $e=n(()=>u()?o().edit:o().play),Oe=n(()=>u()?o().edit:o().play);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{{let Ge=n(()=>u()?"pencil":"play");Cs(Ue,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};O(be,ke=>{e(N).status==="failed"&&v()?ke(Re):e(De)?ke(Ve,1):e(N).kind==="clip"&&!e(N).recording&&e(N).url&&ke(Et,2)})}var ye=A(be,2);a(ye,()=>e(N).id,()=>o().remove),F(W),F(Y),$(()=>{J(Y,"data-kind",e(N).kind),J(Y,"data-attachment-id",e(N).id),J(Y,"aria-busy",e(P)||void 0)}),xr("contextmenu",Y,ke=>te(ke,e(N))),Kt(1,Y,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Y,()=>Ya,()=>({tier:"fast"})),c(xe,Y)};O(Le,xe=>{e(N).kind==="image"&&e(N).file?xe(Ae):xe(Ee,-1)})}c(le,ve)}),F(me),ea(me,le=>D(w,le),()=>e(w)),$(()=>J(me,"aria-label",o().attachments)),c(T,me)};O(ge,T=>{e(U).length&&T(Pe)})}var Ie=A(ge,2);{const T=le=>{var N=St(),ve=fe(N);{var Le=Ae=>{var Ee=lf(),xe=fe(Ee);{var P=_=>{st(_,{variant:"primary",get disabled(){return i()},onclick:()=>e(S)&&q(e(S).id),children:(Se,Ce)=>{Cr();var E=Pr();$(()=>Q(E,o().markUp)),c(Se,E)},$$slots:{default:!0}})},Y=n(()=>j(e(S)));O(xe,_=>{e(Y)&&_(P)})}var ae=A(xe,2);st(ae,{variant:"secondary",get disabled(){return i()},onclick:()=>e(S)&&z(e(S).id),children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().remove)),c(_,Ce)},$$slots:{default:!0}});var we=A(ae,2);st(we,{variant:"ghost-light",onclick:()=>{D(C,!1)},children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().done)),c(_,Ce)},$$slots:{default:!0}}),c(Ae,Ee)};O(ve,Ae=>{e(S)&&e(S).kind!=="file"&&Ae(Le)})}c(le,N)};let me=n(()=>e(S)?L(e(S)):o().attachments);yi(Ie,{get title(){return e(me)},size:"wide",showCloseButton:!1,onCloseAutoFocus:le=>{le.preventDefault(),G?.isConnected?G.focus():e(w)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(C)},set open(le){D(C,le,!0)},footer:T,children:(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=Ee=>{var xe=uf(),P=V(xe);{var Y=_=>{var Se=df();$(Ce=>{J(Se,"src",e(S).url),J(Se,"alt",Ce)},[()=>L(e(S))]),c(_,Se)},ae=n(()=>e(S).kind==="image"&&j(e(S))),we=_=>{var Se=cf();$(Ce=>{J(Se,"src",e(S).url),J(Se,"aria-label",Ce)},[()=>L(e(S))]),c(_,Se)};O(P,_=>{e(ae)?_(Y):e(S).kind==="clip"&&e(S).url&&_(we,1)})}F(xe),c(Ee,xe)};O(Le,Ee=>{e(S)&&e(S).kind!=="file"&&Ee(Ae)})}c(le,ve)},$$slots:{footer:!0,default:!0}})}return c(r,de),bt(_e)}Ga(["keydown","contextmenu"]);var mf=I("<!> ",1),pf=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Yi(r,t){if(new.target)return pt({component:Yi,...r});_t(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),l=ue(!1);function u(){navigator.clipboard.writeText(o()),D(l,!0),setTimeout(()=>{D(l,!1)},2e3)}function h(){i()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(R){a(R),m()},get description(){return s()},set description(R){s(R),m()},get content(){return o()},set content(R){o(R),m()},get onUseScript(){return i()},set onUseScript(R){i(R),m()},$set:vt,$on:(R,X)=>ht(t,R,X)},x=pf(),M=V(x),B=V(M),U=V(B),w=V(U);Bt(w,{get icon(){return ps},size:"sm"}),F(U);var C=A(U,2),re=oe(C,!0);F(B);var G=A(B,2),S=V(G);st(S,{variant:"ghost-light",size:"sm",onclick:u,class:"h-7 px-2",children:(R,X)=>{var te=mf(),_e=fe(te);{let ge=n(()=>e(l)?hi:_i);Bt(_e,{get icon(){return e(ge)},class:"mr-1"})}var de=A(_e);$(ge=>Q(de,` ${ge??""}`),[()=>e(l)?d.chat_shared_copied_label():d.chat_shared_copy_label()]),c(R,te)},$$slots:{default:!0}});var j=A(S,2);{var L=R=>{st(R,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(X,te)=>{Cr();var _e=Pr();$(de=>Q(_e,de),[()=>d.chat_setupScriptCard_useScript_label()]),c(X,_e)},$$slots:{default:!0}})};O(j,R=>{i()&&R(L)})}F(G),F(M);var ne=A(M,2),z=oe(ne,!0),q=A(ne,2),ee=oe(q,!0);return F(x),$(()=>{Q(re,a()),Q(z,s()),Q(ee,o())}),c(r,x),bt(v)}const yr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class vf{constructor(){pa(this,"buffer","");pa(this,"currentToolName",null);pa(this,"currentToolId",null);pa(this,"lastToolId",null);pa(this,"currentToolParams",[]);pa(this,"currentToolResultContent",[]);pa(this,"inToolResult",!1);pa(this,"inCodeBlock",!1);pa(this,"codeBlockLanguage","");pa(this,"codeBlockContent","");pa(this,"characterBuffer","");pa(this,"inCharacterMode",!1);pa(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const u=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
1
|
+
var Ul=Object.defineProperty;var jl=(r,t,a)=>t in r?Ul(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var pa=(r,t,a)=>jl(r,typeof t!="symbol"?t+"":t,a);import{t as pt,bo as g,bw as vt,b as ht,bm as d,bq as Ea,bs as tr,br as Vl,bp as vn}from"./Dws-34a7.js";import{ai as Ga,bs as _t,ca as Xt,aD as e,bH as D,ay as fe,bS as A,a7 as St,W as c,a5 as V,bA as F,bn as bt,c9 as n,bV as ue,aA as m,b_ as $,aj as xr,aB as I,be as Cr,b$ as Pr,bO as Q,bf as rr,c0 as Ia,bl as oe,bj as ja,c6 as Gl,bo as nn,br as Zr,am as Da,ax as Ba,bk as as,aw as pn,bz as ns,cb as Fn,c5 as Mn,aC as Ir,cd as vo,bv as Kl}from"./3SdAC2_C.js";import{i as O}from"./DLCFUd4s.js";import{g as kr,e as sa,p as ms,i as Ha,I as Zl,h as eo,X as pi,o as Ql}from"./C-zB-6G6.js";import{n as Kt,l as On,c as Ya,g as rn,s as ks,k as ss,S as Xl}from"./Bc1vJq_Z.js";import{s as J,f as Fe,g as hn,c as It,e as Qt,b as _n,p as Yl,S as Jl,C as ed}from"./BD9db4FR.js";import{b as ea}from"./Dn334wJv.js";import{f as st,ae as to,a_ as td}from"./BIGqOuh0.js";import{J as rd,O as ad,Q as Is}from"./BPuz5cN_.js";import"./C2F2Vd1P.js";import"./BW1iql_y.js";import"./gU2qspu9.js";import{t as Ma,k as vi}from"./D-rRuAXZ.js";import{F as Bt,a4 as zs,bg as ka,cK as ps,au as hi,aZ as _i,aK as nd,c9 as sd,a6 as os,aN as od,cN as id,cM as ld,a3 as vs,aC as is,aw as hs,I as ho,aj as dd,bu as cd,aS as ud,aX as fd,bJ as gd,ao as md,bk as bi,cC as pd,aP as _o,c0 as Ss,aI as Hn,cW as vd,cb as hd,bn as _d,b as bd,cp as yd,ag as wd,ba as Ts,cr as wn,cF as xd,az as kd,c6 as Id,d3 as Sd}from"./CGYPBD6G.js";import{C as yi,A as Td,o as Cd}from"./jBG7W4tL.js";import{b as Cs,V as bo}from"./yDmmPu6L.js";import{A as wi}from"./DUAtqTLU.js";import{bZ as xi,aj as Md,j as Kn,a4 as Ws,al as ls,E as Ad,au as Zn,aP as Pd,aS as yo}from"./CA8JHp72.js";import{t as an,o as Rd}from"./DAsc1V4f.js";import{ch as Qn,aO as qn,d2 as ki,d4 as Va,c6 as _s,q as Nd,cX as Ii,d1 as bs,d0 as Si,c_ as Ti,n as Ca,al as Ed,am as $d,aJ as Ld,z as Od,V as qd,a3 as wo,D as Ci,e4 as Dd,aF as Bd,ak as Fd,r as zd,C as Ms,ag as Wd,U as xn,e2 as Hd,ab as Ud,k as xo,u as jd,Z as Vd,v as Gd,i as Kd,g as As,f as ko,a0 as Zd,$ as Qd,a9 as Xd,x as Mi,y as Ai,l as Pi,j as Yd,s as Jd,a as ec,d5 as tc,ae as rc,e3 as ac,L as nc,F as sc,a2 as Io,bq as oc,av as ic}from"./SbTG0nwQ.js";import{Jx as mt,o$ as lc,tQ as Xn,nQ as So,vJ as Ri,vL as Ni,s1 as dc,yI as ds,v0 as Ei,nL as $i,br as En,nY as cc,nZ as uc,yJ as fc,qz as gc,tk as mc,vC as Li,nK as pc,mP as vc,m as hc,za as _c,z7 as bc,z9 as yc}from"./4g_iHoQm.js";import{a3 as wc,y as Ps,a1 as xc,O as Rs,W as kc,$ as Ic,k as Sc,p as kn,P as un,q as Tc,G as Cc,v as Mc,t as Ac,M as Ns,K as Pc,z as Rc,L as Nc,_ as An,U as Un,N as To,n as Co,E as Ec,c as Es,F as Mo,B as $c,w as Ao,J as Pn,Q as Lc,H as Oc,j as qc,R as Dc,T as Bc,A as Fc,g as zc,b as Wc,D as Hc,f as Uc,e as jc,a as Vc,C as Gc,i as Kc,d as Hs,V as Oi,a4 as Zc,u as Qc,l as Xc}from"./BeJRU38G.js";import{i as Yc,e as Jc}from"./Dval4sTX.js";import{g as $s}from"./B5aYN90J.js";import{M as In,C as Rn}from"./Z9NyJp9w.js";import{C as Po}from"./B0qb2Ymj.js";import"./sOF-qTei.js";import{P as eu}from"./B22zVGFP.js";import"./BlIRL_82.js";import{c as qi}from"./ChTqQfQN.js";import{S as tu}from"./GIVowYni.js";import{D as Ro,M as ru}from"./DxPvfI2H.js";import{b as au,s as en,c as cs}from"./BSWVBeG0.js";import{O as Yn,y as Ls,E as Os,B as qs,N as nu,m as su,l as ou,k as iu,d as Dn,C as No,f as lu,e as du,g as cu}from"./ClNMpui4.js";import{a as Di,s as Eo}from"./BsieX9dN.js";import{f as uu}from"./BdWqymET.js";import{c as na}from"./Whej1Dge.js";import{a as fu,k as Bi,h as ro,q as Fi,l as wr}from"./B8HnjSSF.js";import{P as gu}from"./DWa-2rkZ.js";import{r as Ds,q as Bs,B as $o,i as mu}from"./BHEogMS0.js";import{R as zi,C as ys,m as pu,h as vu,g as hu,i as Lo,P as _u}from"./rXKOJqUt.js";import"./DcOkWaeN.js";import{c as bu,s as yu}from"./COflq_3N.js";import{h as gn}from"./D2mnZ9kC.js";import{b as wu,a as Wi}from"./B5pL-E-o.js";import{P as Hi}from"./CoJyxFcH.js";import{B as xu}from"./DM1_VFfD.js";import{o as Ui,r as ku,e as Iu}from"./BpYEdDT4.js";import{o as ji}from"./d8NijX_Z.js";import{A as Jn,b as Vi}from"./VeUh5OMZ.js";import{g as ao}from"./Da-Blgd9.js";import{a as Su,M as Tu}from"./7KxcPj98.js";import{a as Gi}from"./DGMrUmNq.js";import{E as Cu,n as Mu}from"./DJPIUVkw.js";import{t as Tr}from"./C-BsEdGZ.js";import{c as Sn}from"./B5tvpTFB.js";import{A as Au}from"./BXJzIaQM.js";import{f as Pu,d as Ru}from"./BGspyNwk.js";import{ad as Nu,P as Eu,Z as $u,L as Oo,Y as Lu,w as Ou,a0 as Ki,$ as Zi}from"./DEDo4DeD.js";import{a as qu}from"./CC7to1B5.js";import{k as Du}from"./5-0LQoqd.js";import{S as Bu}from"./Bu-RLSv9.js";import{u as Fu,a as zu,c as qo,S as Wu}from"./D9tVylVS.js";import{T as us}from"./Bi_Yd73A.js";import"./C50zlWbZ.js";import{g as Hu,a as Uu}from"./C63WwVct.js";import{I as ju,R as Vu,q as Gu}from"./CIWky03S.js";import{b as Qi}from"./B6d1Nolc.js";import{b as Do}from"./goTpbPhD.js";import{ah as Ua,n as Ku}from"./B_4WsP9b.js";import{c as Zu}from"./Bd1Doib5.js";import{r as Bo}from"./BU1Gcrkq.js";function Qu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u}=t;if(typeof a!="string"||typeof s!="string"||!s||typeof o!="string"||!o||typeof i!="string"||!i||typeof l!="string"||!l||u!=="finished"&&u!=="ttl-expired"&&u!=="output-match"&&u!=="line-count")return null;const h=t.trigger;return{scriptName:a,scriptId:s,runId:o,monitorId:i,workspaceId:l,reason:u,...u==="output-match"&&typeof h?.matchedLine=="string"?{matchedLine:h.matchedLine}:{}}}function Xu(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function Yu(r,t,a,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const o=r.messageMetadata?.fromPrincipalId??r.author?.principalId,i=Nu(r)&&r.author?.principalId!==null&&o===t;return{edit:i,remove:i||t===a||s,sendNow:(i||s)&&!Xi(r)}}function Tn(r,t){if(t)return r.find(a=>a.editing&&a.editingMessageId?a.editingMessageId===t:a.id===t)}function Xi(r){return Xu(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function Fo(r,t=Date.now()){const a=r.messageMetadata,s=a?.fromPrincipalId,o=a&&Object.hasOwn(a,"humanAuthor")&&!(typeof s=="string"&&s.length>0),i=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!i&&!o&&!Xi(r)}const Cb="pl-3.5! pr-2!";var Ju=I('<span class="tile-remove-slot svelte-d8pwpf"><!></span>'),zo=I('<span class="attachment-status svelte-d8pwpf"> </span>'),ef=I('<div class="file-image tile svelte-d8pwpf" data-kind="file"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),tf=I("<!><span> </span>",1),rf=I('<img alt="" draggable="false"/>'),af=I('<span class="summary svelte-d8pwpf" data-clip-summary=""> </span>'),nf=I('<span class="clip svelte-d8pwpf"><span class="record-dot svelte-d8pwpf" aria-hidden="true"></span><span class="duration svelte-d8pwpf"> </span><!></span>'),sf=I('<div class="tile svelte-d8pwpf"><!> <!> <div class="tile-actions svelte-d8pwpf"><!> <!></div></div>'),of=I('<div class="attachment-row svelte-d8pwpf" role="group" data-dock-media-attachments=""></div>'),lf=I("<!> <!> <!>",1),df=I('<img draggable="false" class="svelte-d8pwpf"/>'),cf=I('<video controls="" playsinline="" class="svelte-d8pwpf"></video>',2),uf=I('<div class="media-viewer svelte-d8pwpf"><!></div>'),ff=I("<!> <!>",1);function gf(r,t){if(new.target)return pt({component:gf,...r});_t(t,!0);const a=(T,me=rr,le=rr)=>{var N=Ju(),ve=V(N);st(ve,{variant:"secondary",size:"icon-sm",class:"tile-action tile-remove",get disabled(){return i()},get"aria-label"(){return le()},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return le()},onclick:()=>z(me()),children:(Le,Ae)=>{Cs(Le,{glyph:"x"})},$$slots:{default:!0}}),F(N),c(T,N)};let s=g(t,"items",7),o=g(t,"labels",7),i=g(t,"disabled",7,!1),l=g(t,"onMarkUp",7),u=g(t,"onEdit",7),h=g(t,"onRemove",7),v=g(t,"onRetry",7),x=g(t,"onCopy",7),M=g(t,"onMenu",7);const B=T=>T.owner==="attachment"?2:{image:0,clip:1,file:2}[T.kind],U=n(()=>[...s()].sort((T,me)=>B(T)-B(me)));let w=ue(null),C=ue(!1),re=ue(null),G=null;const S=n(()=>s().find(T=>T.id===e(re)));Xt(()=>{(!e(S)||e(S).kind==="image"&&!j(e(S)))&&D(C,!1)});function j(T){return T.kind==="image"&&T.status!=="placing"&&T.status!=="failed"&&T.url.trim().length>0}function L(T){return T.kind==="image"?o().image(T.markCount):T.kind==="clip"?T.summary?`${o().clip(T.duration)} ${T.summary}`:o().clip(T.duration):T.name}function ne(T,me){if(!(i()||T.kind==="file"||T.kind==="image"&&!j(T)||T.kind==="clip"&&(!T.url||T.recording))){if((T.kind==="clip"||T.kind==="image")&&u()){u()(T.id);return}G=me,D(re,T.id,!0),D(C,!0)}}async function z(T){i()||(e(re)===T&&D(C,!1),h()(T),await Ia(),(!document.activeElement||document.activeElement===document.body)&&e(w)?.querySelector("button:not(:disabled)")?.focus())}function q(T){const me=s().find(le=>le.id===T);i()||!me||!j(me)||(D(C,!1),u()?u()(T):l()(T))}function ee(T,me){T.key!=="Delete"||i()||(T.preventDefault(),T.stopPropagation(),z(me))}function R(T){return T.status==="placing"||T.status==="failed"?!1:T.kind==="image"?!!T.file||j(T):T.kind==="clip"&&!T.recording&&!!T.url}function X(T,me){const le=rd()?T.metaKey:T.ctrlKey,N=T.key.toLowerCase();if(le&&!T.shiftKey&&!T.altKey&&(N==="c"||N==="x")){if(!x()||!R(me)||(T.preventDefault(),T.stopPropagation(),N==="x"&&i()))return;x()(me.id,N==="x");return}ee(T,me.id)}function te(T,me){!M()||!R(me)||(T.preventDefault(),M()(me.id))}var _e={get items(){return s()},set items(T){s(T),m()},get labels(){return o()},set labels(T){o(T),m()},get disabled(){return i()},set disabled(T=!1){i(T),m()},get onMarkUp(){return l()},set onMarkUp(T){l(T),m()},get onEdit(){return u()},set onEdit(T){u(T),m()},get onRemove(){return h()},set onRemove(T){h(T),m()},get onRetry(){return v()},set onRetry(T){v(T),m()},get onCopy(){return x()},set onCopy(T){x(T),m()},get onMenu(){return M()},set onMenu(T){M(T),m()},$set:vt,$on:(T,me)=>ht(t,T,me)},de=ff(),ge=fe(de);{var Pe=T=>{var me=of();kr(me,21,()=>e(U),le=>le.id,(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=xe=>{var P=ef(),Y=V(P);{let W=n(()=>i()||e(N).status==="placing");wi(Y,{get id(){return e(N).id},get name(){return e(N).file.name},get type(){return e(N).file.imageMimeType},get imageData(){return e(N).file.imageData},get imageMimeType(){return e(N).file.imageMimeType},variant:"thumbnail",thumbnailClass:"size-full",class:"size-full",get disabled(){return e(W)},get placementStatus(){return e(N).status},get placementError(){return e(N).error}})}var ae=A(Y,2);{var we=W=>{var be=zo(),Re=oe(be,!0);$(()=>{J(be,"data-failed",e(N).status==="failed"||void 0),J(be,"role",e(N).status==="failed"?"alert":"status"),J(be,"title",e(N).error),Q(Re,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(W,be)};O(ae,W=>{e(N).status&&W(we)})}var _=A(ae,2),Se=V(_);{var Ce=W=>{st(W,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:(be,Re)=>{Bt(be,{get icon(){return zs},size:16})},$$slots:{default:!0}})};O(Se,W=>{e(N).status==="failed"&&v()&&W(Ce)})}var E=A(Se,2);{let W=n(()=>d.chat_attachmentPreview_remove_ariaLabel({name:e(N).file.name}));a(E,()=>e(N).id,()=>e(W))}F(_),F(P),$(()=>J(P,"data-attachment-id",e(N).id)),xr("keydown",P,W=>X(W,e(N))),xr("contextmenu",P,W=>te(W,e(N))),Kt(1,P,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,P,()=>Ya,()=>({tier:"fast"})),c(xe,P)},Ee=xe=>{const P=n(()=>e(N).kind==="image"&&!j(e(N))&&e(N).status!=="failed");var Y=sf(),ae=V(Y);{var we=ke=>{st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile file",get"aria-label"(){return e(N).name},get disabled(){return i()},onkeydown:$e=>ee($e,e(N).id),children:($e,Oe)=>{var Ue=tf(),se=fe(Ue);Bt(se,{get icon(){return ka},size:20});var Ge=A(se),yt=oe(Ge,!0);$(()=>Q(yt,e(N).name)),c($e,Ue)},$$slots:{default:!0}})},_=ke=>{{let $e=n(()=>L(e(N))),Oe=n(()=>i()||e(N).kind==="clip"&&(e(N).recording||!e(N).url));st(ke,{type:"button",variant:"ghost",wrapContent:!1,class:"open-tile",get"aria-label"(){return e($e)},get disabled(){return e(Oe)},onkeydown:Ue=>X(Ue,e(N)),onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{var Ge=St(),yt=fe(Ge);{var Ft=et=>{var Ke=rf();$(()=>J(Ke,"src",e(N).url)),c(et,Ke)},er=et=>{var Ke=nf(),$t=A(V(Ke)),Tt=oe($t,!0),ut=A($t);{var ze=K=>{var y=af(),pe=oe(y,!0);$(()=>Q(pe,e(N).summary)),c(K,y)};O(ut,K=>{e(N).summary&&K(ze)})}F(Ke),$(()=>Q(Tt,e(N).duration)),c(et,Ke)};O(yt,et=>{e(N).kind==="image"?et(Ft):et(er,-1)})}c(Ue,Ge)},$$slots:{default:!0}})}},Se=n(()=>e(N).kind!=="image"||j(e(N)));O(ae,ke=>{e(N).kind==="file"?ke(we):e(Se)&&ke(_,1)})}var Ce=A(ae,2);{var E=ke=>{var $e=zo(),Oe=oe($e,!0);$(()=>{J($e,"data-failed",e(N).status==="failed"||void 0),J($e,"role",e(N).status==="failed"?"alert":"status"),J($e,"title",e(N).error),Q(Oe,e(N).status==="failed"?e(N).error??o().attachmentFailed:o().attachmentPending)}),c(ke,$e)};O(Ce,ke=>{(e(N).status||e(P))&&ke(E)})}var W=A(Ce,2),be=V(W);{var Re=ke=>{st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return o().retry},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return o().retry},onclick:()=>v()?.(e(N).id),children:($e,Oe)=>{Bt($e,{get icon(){return zs},size:16})},$$slots:{default:!0}})},Ve=ke=>{{let $e=n(()=>u()?o().edit:o().markUp),Oe=n(()=>u()?o().edit:o().markUp);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:()=>q(e(N).id),children:(Ue,se)=>{Cs(Ue,{glyph:"pencil"})},$$slots:{default:!0}})}},De=n(()=>j(e(N))),Et=ke=>{{let $e=n(()=>u()?o().edit:o().play),Oe=n(()=>u()?o().edit:o().play);st(ke,{variant:"primary",size:"icon-sm",class:"tile-action",get disabled(){return i()},get"aria-label"(){return e($e)},tooltipContentClass:"dock-chrome-tooltip",get tooltip(){return e(Oe)},onclick:Ue=>{Ue.currentTarget instanceof HTMLElement&&ne(e(N),Ue.currentTarget)},children:(Ue,se)=>{{let Ge=n(()=>u()?"pencil":"play");Cs(Ue,{get glyph(){return e(Ge)}})}},$$slots:{default:!0}})}};O(be,ke=>{e(N).status==="failed"&&v()?ke(Re):e(De)?ke(Ve,1):e(N).kind==="clip"&&!e(N).recording&&e(N).url&&ke(Et,2)})}var ye=A(be,2);a(ye,()=>e(N).id,()=>o().remove),F(W),F(Y),$(()=>{J(Y,"data-kind",e(N).kind),J(Y,"data-attachment-id",e(N).id),J(Y,"aria-busy",e(P)||void 0)}),xr("contextmenu",Y,ke=>te(ke,e(N))),Kt(1,Y,()=>On,()=>({tier:"fast",y:3,scale:.98})),Kt(2,Y,()=>Ya,()=>({tier:"fast"})),c(xe,Y)};O(Le,xe=>{e(N).kind==="image"&&e(N).file?xe(Ae):xe(Ee,-1)})}c(le,ve)}),F(me),ea(me,le=>D(w,le),()=>e(w)),$(()=>J(me,"aria-label",o().attachments)),c(T,me)};O(ge,T=>{e(U).length&&T(Pe)})}var Ie=A(ge,2);{const T=le=>{var N=St(),ve=fe(N);{var Le=Ae=>{var Ee=lf(),xe=fe(Ee);{var P=_=>{st(_,{variant:"primary",get disabled(){return i()},onclick:()=>e(S)&&q(e(S).id),children:(Se,Ce)=>{Cr();var E=Pr();$(()=>Q(E,o().markUp)),c(Se,E)},$$slots:{default:!0}})},Y=n(()=>j(e(S)));O(xe,_=>{e(Y)&&_(P)})}var ae=A(xe,2);st(ae,{variant:"secondary",get disabled(){return i()},onclick:()=>e(S)&&z(e(S).id),children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().remove)),c(_,Ce)},$$slots:{default:!0}});var we=A(ae,2);st(we,{variant:"ghost-light",onclick:()=>{D(C,!1)},children:(_,Se)=>{Cr();var Ce=Pr();$(()=>Q(Ce,o().done)),c(_,Ce)},$$slots:{default:!0}}),c(Ae,Ee)};O(ve,Ae=>{e(S)&&e(S).kind!=="file"&&Ae(Le)})}c(le,N)};let me=n(()=>e(S)?L(e(S)):o().attachments);yi(Ie,{get title(){return e(me)},size:"wide",showCloseButton:!1,onCloseAutoFocus:le=>{le.preventDefault(),G?.isConnected?G.focus():e(w)?.querySelector("button:not(:disabled)")?.focus()},get open(){return e(C)},set open(le){D(C,le,!0)},footer:T,children:(le,N)=>{var ve=St(),Le=fe(ve);{var Ae=Ee=>{var xe=uf(),P=V(xe);{var Y=_=>{var Se=df();$(Ce=>{J(Se,"src",e(S).url),J(Se,"alt",Ce)},[()=>L(e(S))]),c(_,Se)},ae=n(()=>e(S).kind==="image"&&j(e(S))),we=_=>{var Se=cf();$(Ce=>{J(Se,"src",e(S).url),J(Se,"aria-label",Ce)},[()=>L(e(S))]),c(_,Se)};O(P,_=>{e(ae)?_(Y):e(S).kind==="clip"&&e(S).url&&_(we,1)})}F(xe),c(Ee,xe)};O(Le,Ee=>{e(S)&&e(S).kind!=="file"&&Ee(Ae)})}c(le,ve)},$$slots:{footer:!0,default:!0}})}return c(r,de),bt(_e)}Ga(["keydown","contextmenu"]);var mf=I("<!> ",1),pf=I('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function Yi(r,t){if(new.target)return pt({component:Yi,...r});_t(t,!0);let a=g(t,"name",7),s=g(t,"description",7),o=g(t,"content",7),i=g(t,"onUseScript",7),l=ue(!1);function u(){navigator.clipboard.writeText(o()),D(l,!0),setTimeout(()=>{D(l,!1)},2e3)}function h(){i()?.({name:a(),description:s(),content:o()})}var v={get name(){return a()},set name(R){a(R),m()},get description(){return s()},set description(R){s(R),m()},get content(){return o()},set content(R){o(R),m()},get onUseScript(){return i()},set onUseScript(R){i(R),m()},$set:vt,$on:(R,X)=>ht(t,R,X)},x=pf(),M=V(x),B=V(M),U=V(B),w=V(U);Bt(w,{get icon(){return ps},size:"sm"}),F(U);var C=A(U,2),re=oe(C,!0);F(B);var G=A(B,2),S=V(G);st(S,{variant:"ghost-light",size:"sm",onclick:u,class:"h-7 px-2",children:(R,X)=>{var te=mf(),_e=fe(te);{let ge=n(()=>e(l)?hi:_i);Bt(_e,{get icon(){return e(ge)},class:"mr-1"})}var de=A(_e);$(ge=>Q(de,` ${ge??""}`),[()=>e(l)?d.chat_shared_copied_label():d.chat_shared_copy_label()]),c(R,te)},$$slots:{default:!0}});var j=A(S,2);{var L=R=>{st(R,{variant:"ghost-light",size:"sm",onclick:h,class:"h-7 px-2",children:(X,te)=>{Cr();var _e=Pr();$(de=>Q(_e,de),[()=>d.chat_setupScriptCard_useScript_label()]),c(X,_e)},$$slots:{default:!0}})};O(j,R=>{i()&&R(L)})}F(G),F(M);var ne=A(M,2),z=oe(ne,!0),q=A(ne,2),ee=oe(q,!0);return F(x),$(()=>{Q(re,a()),Q(z,s()),Q(ee,o())}),c(r,x),bt(v)}const yr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class vf{constructor(){pa(this,"buffer","");pa(this,"currentToolName",null);pa(this,"currentToolId",null);pa(this,"lastToolId",null);pa(this,"currentToolParams",[]);pa(this,"currentToolResultContent",[]);pa(this,"inToolResult",!1);pa(this,"inCodeBlock",!1);pa(this,"codeBlockLanguage","");pa(this,"codeBlockContent","");pa(this,"characterBuffer","");pa(this,"inCharacterMode",!1);pa(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const o=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const u=this.currentToolResultContent.some(v=>v.startsWith("❌")||v.startsWith("Error:")),h=this.currentToolResultContent.map(v=>v.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
2
2
|
`);o.push({type:"tool_result",content:h,metadata:{toolId:this.currentToolId,isError:u}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const i=t.indexOf("🤖"),l=t.substring(i+2);if(this.inCharacterMode=!0,this.characterBuffer="",l&&l.trim()&&l!==`
|
|
3
3
|
`){const u=l.replace(/^\n/,"");u&&(this.characterBuffer=u)}return o}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
|
|
4
4
|
`)&&this.characterBuffer.length>0){const o=t.substring(0,t.indexOf(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as ce,a as Wn,b as qn,d as Hn,f as Te,c as T,i as zn}from"./BYU-C1jV.js";import{b as x,X as Jn,ay as m,bg as Kn,b1 as Zn,a4 as Qn,af as Se,aL as Ce,ad as er,ae as nr,aK as rr}from"./CBZTF7Qa.js";import{L as U,I as O,r as Ie,s as H,C as z,H as tn,m as le,K as an,c as tr,g as on,W as ar,R as ir,Q as or,J as he,k as sr,V as dr,U as Re,a as ke,w as pe,n as ge,P as V,E as sn,S as dn,b as ur,B as I,v as fr,M as cr,D as lr,A as Me,F as hr,h as un,l as M,O as pr,f as gr,e as vr,d as X,o as fn,i as cn,y as br,z as ve,p as ln,X as wr,j as hn,x as mr,Y as yr,G as N,u as l,q as xr,N as L,t as $,Z as R,T as J}from"./-xK_vQQs.js";var Er=/\s/;function Lr(e){for(var n=e.length;n--&&Er.test(e.charAt(n)););return n}var Or=/^\s+/;function Nr(e){return e&&e.slice(0,Lr(e)+1).replace(Or,"")}var _e=NaN,Pr=/^[-+]0x[0-9a-f]+$/i,Tr=/^0b[01]+$/i,Sr=/^0o[0-7]+$/i,Cr=parseInt;function Ir(e){if(typeof e=="number")return e;if(U(e))return _e;if(O(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=O(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Nr(e);var r=Tr.test(e);return r||Sr.test(e)?Cr(e.slice(2),r?2:8):Pr.test(e)?_e:+e}var Ae=1/0,Rr=17976931348623157e292;function G(e){if(!e)return e===0?e:0;if(e=Ir(e),e===Ae||e===-Ae){var n=e<0?-1:1;return n*Rr}return e===e?e:0}function kr(e){var n=G(e),r=n%1;return n===n?r?n-r:n:0}var je=Object.create,Mr=(function(){function e(){}return function(n){if(!O(n))return{};if(je)return je(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}})();function _r(e,n){var r=-1,t=e.length;for(n||(n=Array(t));++r<t;)n[r]=e[r];return n}function K(e,n,r){n=="__proto__"&&Ie?Ie(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}var Ar=Object.prototype,jr=Ar.hasOwnProperty;function Z(e,n,r){var t=e[n];(!(jr.call(e,n)&&H(t,r))||r===void 0&&!(n in e))&&K(e,n,r)}function Dr(e,n,r,t){var a=!r;r||(r={});for(var o=-1,i=n.length;++o<i;){var s=n[o],d=void 0;d===void 0&&(d=e[s]),a?K(r,s,d):Z(r,s,d)}return r}function j(e,n,r){if(!O(r))return!1;var t=typeof n;return(t=="number"?z(r)&&tn(n,r.length):t=="string"&&n in r)?H(r[n],e):!1}function Br(e){return le(function(n,r){var t=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&j(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),n=Object(n);++t<a;){var s=r[t];s&&e(n,s,t,o)}return n})}function $r(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var Fr=Object.prototype,Xr=Fr.hasOwnProperty;function Gr(e){if(!O(e))return $r(e);var n=an(e),r=[];for(var t in e)t=="constructor"&&(n||!Xr.call(e,t))||r.push(t);return r}function Q(e){return z(e)?tr(e,!0):Gr(e)}function _(e){var n=e==null?0:e.length;return n?on(e):[]}function Yr(e){return ar(ir(e,void 0,_),e+"")}var pn=or(Object.getPrototypeOf,Object),Ur="[object Object]",Vr=Function.prototype,Wr=Object.prototype,gn=Vr.toString,qr=Wr.hasOwnProperty,Hr=gn.call(Object);function zr(e){if(!he(e)||sr(e)!=Ur)return!1;var n=pn(e);if(n===null)return!0;var r=qr.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&gn.call(r)==Hr}var vn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,De=vn&&typeof module=="object"&&module&&!module.nodeType&&module,Jr=De&&De.exports===vn,Be=Jr?dr.Buffer:void 0,$e=Be?Be.allocUnsafe:void 0;function bn(e,n){if(n)return e.slice();var r=e.length,t=$e?$e(r):new e.constructor(r);return e.copy(t),t}var Kr=Object.prototype,Zr=Kr.hasOwnProperty;function Qr(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Zr.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function be(e){var n=new e.constructor(e.byteLength);return new Re(n).set(new Re(e)),n}function et(e,n){var r=be(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var nt=/\w*$/;function rt(e){var n=new e.constructor(e.source,nt.exec(e));return n.lastIndex=e.lastIndex,n}var Fe=ke?ke.prototype:void 0,Xe=Fe?Fe.valueOf:void 0;function tt(e){return Xe?Object(Xe.call(e)):{}}function wn(e,n){var r=n?be(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var at="[object Boolean]",it="[object Date]",ot="[object Map]",st="[object Number]",dt="[object RegExp]",ut="[object Set]",ft="[object String]",ct="[object Symbol]",lt="[object ArrayBuffer]",ht="[object DataView]",pt="[object Float32Array]",gt="[object Float64Array]",vt="[object Int8Array]",bt="[object Int16Array]",wt="[object Int32Array]",mt="[object Uint8Array]",yt="[object Uint8ClampedArray]",xt="[object Uint16Array]",Et="[object Uint32Array]";function Lt(e,n,r){var t=e.constructor;switch(n){case lt:return be(e);case at:case it:return new t(+e);case ht:return et(e);case pt:case gt:case vt:case bt:case wt:case mt:case yt:case xt:case Et:return wn(e,r);case ot:return new t;case st:case ft:return new t(e);case dt:return rt(e);case ut:return new t;case ct:return tt(e)}}function mn(e){return typeof e.constructor=="function"&&!an(e)?Mr(pn(e)):{}}var Ot="[object Map]";function Nt(e){return he(e)&&pe(e)==Ot}var Ge=V&&V.isMap,Pt=Ge?ge(Ge):Nt,Tt="[object Set]";function St(e){return he(e)&&pe(e)==Tt}var Ye=V&&V.isSet,Ct=Ye?ge(Ye):St,It=1,yn="[object Arguments]",Rt="[object Array]",kt="[object Boolean]",Mt="[object Date]",_t="[object Error]",xn="[object Function]",At="[object GeneratorFunction]",jt="[object Map]",Dt="[object Number]",En="[object Object]",Bt="[object RegExp]",$t="[object Set]",Ft="[object String]",Xt="[object Symbol]",Gt="[object WeakMap]",Yt="[object ArrayBuffer]",Ut="[object DataView]",Vt="[object Float32Array]",Wt="[object Float64Array]",qt="[object Int8Array]",Ht="[object Int16Array]",zt="[object Int32Array]",Jt="[object Uint8Array]",Kt="[object Uint8ClampedArray]",Zt="[object Uint16Array]",Qt="[object Uint32Array]",y={};y[yn]=y[Rt]=y[Yt]=y[Ut]=y[kt]=y[Mt]=y[Vt]=y[Wt]=y[qt]=y[Ht]=y[zt]=y[jt]=y[Dt]=y[En]=y[Bt]=y[$t]=y[Ft]=y[Xt]=y[Jt]=y[Kt]=y[Zt]=y[Qt]=!0;y[_t]=y[xn]=y[Gt]=!1;function Y(e,n,r,t,a,o){var i,s=n&It;if(i!==void 0)return i;if(!O(e))return e;var d=I(e);if(d)i=Qr(e);else{var u=pe(e),f=u==xn||u==At;if(sn(e))return bn(e,s);if(u==En||u==yn||f&&!a)i=f?{}:mn(e);else{if(!y[u])return a?e:{};i=Lt(e,u,s)}}o||(o=new dn);var c=o.get(e);if(c)return c;o.set(e,i),Ct(e)?e.forEach(function(p){i.add(Y(p,n,r,p,e,o))}):Pt(e)&&e.forEach(function(p,g){i.set(g,Y(p,n,r,g,e,o))});var h=fr,v=d?void 0:h(e);return ur(v||e,function(p,g){v&&(g=p,p=e[g]),Z(i,g,Y(p,n,r,g,e,o))}),i}var ea=1,na=4;function ra(e){return Y(e,ea|na)}var Ln=Object.prototype,ta=Ln.hasOwnProperty,aa=le(function(e,n){e=Object(e);var r=-1,t=n.length,a=t>2?n[2]:void 0;for(a&&j(n[0],n[1],a)&&(t=1);++r<t;)for(var o=n[r],i=Q(o),s=-1,d=i.length;++s<d;){var u=i[s],f=e[u];(f===void 0||H(f,Ln[u])&&!ta.call(e,u))&&(e[u]=o[u])}return e});function se(e,n,r){(r!==void 0&&!H(e[n],r)||r===void 0&&!(n in e))&&K(e,n,r)}function de(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}function ia(e){return Dr(e,Q(e))}function oa(e,n,r,t,a,o,i){var s=de(e,r),d=de(n,r),u=i.get(d);if(u){se(e,r,u);return}var f=o?o(s,d,r+"",e,n,i):void 0,c=f===void 0;if(c){var h=I(d),v=!h&&sn(d),p=!h&&!v&&cr(d);f=d,h||v||p?I(s)?f=s:lr(s)?f=_r(s):v?(c=!1,f=bn(d,!0)):p?(c=!1,f=wn(d,!0)):f=[]:zr(d)||Me(d)?(f=s,Me(s)?f=ia(s):(!O(s)||hr(s))&&(f=mn(d))):c=!1}c&&(i.set(d,f),a(f,d,t,o,i),i.delete(d)),se(e,r,f)}function On(e,n,r,t,a){e!==n&&un(n,function(o,i){if(a||(a=new dn),O(o))oa(e,n,i,r,On,t,a);else{var s=t?t(de(e,i),o,i+"",e,n,a):void 0;s===void 0&&(s=o),se(e,i,s)}},Q)}function W(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function sa(e){return function(n,r,t){var a=Object(n);if(!z(n)){var o=M(r);n=pr(n),r=function(s){return o(a[s],s,a)}}var i=e(n,r,t);return i>-1?a[o?n[i]:i]:void 0}}var da=Math.max;function ua(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var a=r==null?0:kr(r);return a<0&&(a=da(t+a,0)),gr(e,M(n),a)}var we=sa(ua);function Nn(e,n){var r=-1,t=z(e)?Array(e.length):[];return vr(e,function(a,o,i){t[++r]=n(a,o,i)}),t}function E(e,n){var r=I(e)?X:Nn;return r(e,M(n))}function fa(e,n){return e==null?e:un(e,fn(n),Q)}function ca(e,n){return e&&cn(e,fn(n))}function la(e,n){return e>n}var ha=Object.prototype,pa=ha.hasOwnProperty;function ga(e,n){return e!=null&&pa.call(e,n)}function Pn(e,n){return e!=null&&br(e,n,ga)}function Tn(e,n){return e<n}function ee(e,n){var r={};return n=M(n),cn(e,function(t,a,o){K(r,a,n(t,a,o))}),r}function me(e,n,r){for(var t=-1,a=e.length;++t<a;){var o=e[t],i=n(o);if(i!=null&&(s===void 0?i===i&&!U(i):r(i,s)))var s=i,d=o}return d}function S(e){return e&&e.length?me(e,ve,la):void 0}var ue=Br(function(e,n,r){On(e,n,r)});function D(e){return e&&e.length?me(e,ve,Tn):void 0}function ye(e,n){return e&&e.length?me(e,M(n),Tn):void 0}function va(e,n,r,t){if(!O(e))return e;n=ln(n,e);for(var a=-1,o=n.length,i=o-1,s=e;s!=null&&++a<o;){var d=wr(n[a]),u=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(a!=i){var f=s[d];u=void 0,u===void 0&&(u=O(f)?f:tn(n[a+1])?[]:{})}Z(s,d,u),s=s[d]}return e}function ba(e,n,r){for(var t=-1,a=n.length,o={};++t<a;){var i=n[t],s=hn(e,i);r(s,i)&&va(o,ln(i,e),s)}return o}function wa(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function ma(e,n){if(e!==n){var r=e!==void 0,t=e===null,a=e===e,o=U(e),i=n!==void 0,s=n===null,d=n===n,u=U(n);if(!s&&!u&&!o&&e>n||o&&i&&d&&!s&&!u||t&&i&&d||!r&&d||!a)return 1;if(!t&&!o&&!u&&e<n||u&&r&&a&&!t&&!o||s&&r&&a||!i&&a||!d)return-1}return 0}function ya(e,n,r){for(var t=-1,a=e.criteria,o=n.criteria,i=a.length,s=r.length;++t<i;){var d=ma(a[t],o[t]);if(d){if(t>=s)return d;var u=r[t];return d*(u=="desc"?-1:1)}}return e.index-n.index}function xa(e,n,r){n.length?n=X(n,function(o){return I(o)?function(i){return hn(i,o.length===1?o[0]:o)}:o}):n=[ve];var t=-1;n=X(n,ge(M));var a=Nn(e,function(o,i,s){var d=X(n,function(u){return u(o)});return{criteria:d,index:++t,value:o}});return wa(a,function(o,i){return ya(o,i,r)})}function Ea(e,n){return ba(e,n,function(r,t){return mr(e,t)})}var q=Yr(function(e,n){return e==null?{}:Ea(e,n)}),La=Math.ceil,Oa=Math.max;function Na(e,n,r,t){for(var a=-1,o=Oa(La((n-e)/(r||1)),0),i=Array(o);o--;)i[++a]=e,e+=r;return i}function Pa(e){return function(n,r,t){return t&&typeof t!="number"&&j(n,r,t)&&(r=t=void 0),n=G(n),r===void 0?(r=n,n=0):r=G(r),t=t===void 0?n<r?1:-1:G(t),Na(n,r,t)}}var k=Pa(),F=le(function(e,n){if(e==null)return[];var r=n.length;return r>1&&j(e,n[0],n[1])?n=[]:r>2&&j(n[0],n[1],n[2])&&(n=[n[0]]),xa(e,on(n),[])}),Ta=0;function xe(e){var n=++Ta;return yr(e)+n}function Sa(e,n,r){for(var t=-1,a=e.length,o=n.length,i={};++t<a;){var s=t<o?n[t]:void 0;r(i,e[t],s)}return i}function Ca(e,n){return Sa(e||[],n||[],Z)}class Ia{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return Ue(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&Ue(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,Ra)),t=t._prev;return"["+n.join(", ")+"]"}}function Ue(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Ra(e,n){if(e!=="_next"&&e!=="_prev")return n}var ka=xr(1);function Ma(e,n){if(e.nodeCount()<=1)return[];var r=Aa(e,n||ka),t=_a(r.graph,r.buckets,r.zeroIdx);return _(E(t,function(a){return e.outEdges(a.v,a.w)}))}function _a(e,n,r){for(var t=[],a=n[n.length-1],o=n[0],i;e.nodeCount();){for(;i=o.dequeue();)re(e,n,r,i);for(;i=a.dequeue();)re(e,n,r,i);if(e.nodeCount()){for(var s=n.length-2;s>0;--s)if(i=n[s].dequeue(),i){t=t.concat(re(e,n,r,i,!0));break}}}return t}function re(e,n,r,t,a){var o=a?[]:void 0;return l(e.inEdges(t.v),function(i){var s=e.edge(i),d=e.node(i.v);a&&o.push({v:i.v,w:i.w}),d.out-=s,fe(n,r,d)}),l(e.outEdges(t.v),function(i){var s=e.edge(i),d=i.w,u=e.node(d);u.in-=s,fe(n,r,u)}),e.removeNode(t.v),o}function Aa(e,n){var r=new N,t=0,a=0;l(e.nodes(),function(s){r.setNode(s,{v:s,in:0,out:0})}),l(e.edges(),function(s){var d=r.edge(s.v,s.w)||0,u=n(s),f=d+u;r.setEdge(s.v,s.w,f),a=Math.max(a,r.node(s.v).out+=u),t=Math.max(t,r.node(s.w).in+=u)});var o=k(a+t+3).map(function(){return new Ia}),i=t+1;return l(r.nodes(),function(s){fe(o,i,r.node(s))}),{graph:r,buckets:o,zeroIdx:i}}function fe(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function ja(e){var n=e.graph().acyclicer==="greedy"?Ma(e,r(e)):Da(e);l(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,xe("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function Da(e){var n=[],r={},t={};function a(o){Object.prototype.hasOwnProperty.call(t,o)||(t[o]=!0,r[o]=!0,l(e.outEdges(o),function(i){Object.prototype.hasOwnProperty.call(r,i.w)?n.push(i):a(i.w)}),delete r[o])}return l(e.nodes(),a),n}function Ba(e){l(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function A(e,n,r,t){var a;do a=xe(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function $a(e){var n=new N().setGraph(e.graph());return l(e.nodes(),function(r){n.setNode(r,e.node(r))}),l(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function Sn(e){var n=new N({multigraph:e.isMultigraph()}).setGraph(e.graph());return l(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),l(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function Ve(e,n){var r=e.x,t=e.y,a=n.x-r,o=n.y-t,i=e.width/2,s=e.height/2;if(!a&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,u;return Math.abs(o)*i>Math.abs(a)*s?(o<0&&(s=-s),d=s*a/o,u=s):(a<0&&(i=-i),d=i,u=i*o/a),{x:r+d,y:t+u}}function ne(e){var n=E(k(Cn(e)+1),function(){return[]});return l(e.nodes(),function(r){var t=e.node(r),a=t.rank;L(a)||(n[a][t.order]=r)}),n}function Fa(e){var n=D(E(e.nodes(),function(r){return e.node(r).rank}));l(e.nodes(),function(r){var t=e.node(r);Pn(t,"rank")&&(t.rank-=n)})}function Xa(e){var n=D(E(e.nodes(),function(o){return e.node(o).rank})),r=[];l(e.nodes(),function(o){var i=e.node(o).rank-n;r[i]||(r[i]=[]),r[i].push(o)});var t=0,a=e.graph().nodeRankFactor;l(r,function(o,i){L(o)&&i%a!==0?--t:t&&l(o,function(s){e.node(s).rank+=t})})}function We(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),A(e,"border",a,n)}function Cn(e){return S(E(e.nodes(),function(n){var r=e.node(n).rank;if(!L(r))return r}))}function Ga(e,n){var r={lhs:[],rhs:[]};return l(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function Ya(e,n){return n()}function Ua(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&l(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var o=a.minRank,i=a.maxRank+1;o<i;++o)qe(e,"borderLeft","_bl",r,a,o),qe(e,"borderRight","_br",r,a,o)}}l(e.children(),n)}function qe(e,n,r,t,a,o){var i={width:0,height:0,rank:o,borderType:n},s=a[n][o-1],d=A(e,"border",i,r);a[n][o]=d,e.setParent(d,t),s&&e.setEdge(s,d,{weight:1})}function Va(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&In(e)}function Wa(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&qa(e),(n==="lr"||n==="rl")&&(Ha(e),In(e))}function In(e){l(e.nodes(),function(n){He(e.node(n))}),l(e.edges(),function(n){He(e.edge(n))})}function He(e){var n=e.width;e.width=e.height,e.height=n}function qa(e){l(e.nodes(),function(n){te(e.node(n))}),l(e.edges(),function(n){var r=e.edge(n);l(r.points,te),Object.prototype.hasOwnProperty.call(r,"y")&&te(r)})}function te(e){e.y=-e.y}function Ha(e){l(e.nodes(),function(n){ae(e.node(n))}),l(e.edges(),function(n){var r=e.edge(n);l(r.points,ae),Object.prototype.hasOwnProperty.call(r,"x")&&ae(r)})}function ae(e){var n=e.x;e.x=e.y,e.y=n}function za(e){e.graph().dummyChains=[],l(e.edges(),function(n){Ja(e,n)})}function Ja(e,n){var r=n.v,t=e.node(r).rank,a=n.w,o=e.node(a).rank,i=n.name,s=e.edge(n),d=s.labelRank;if(o!==t+1){e.removeEdge(n);var u=void 0,f,c;for(c=0,++t;t<o;++c,++t)s.points=[],u={width:0,height:0,edgeLabel:s,edgeObj:n,rank:t},f=A(e,"edge",u,"_d"),t===d&&(u.width=s.width,u.height=s.height,u.dummy="edge-label",u.labelpos=s.labelpos),e.setEdge(r,f,{weight:s.weight},i),c===0&&e.graph().dummyChains.push(f),r=f;e.setEdge(r,a,{weight:s.weight},i)}}function Ka(e){l(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,a;for(e.setEdge(r.edgeObj,t);r.dummy;)a=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=a,r=e.node(n)})}function Ee(e){var n={};function r(t){var a=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return a.rank;n[t]=!0;var o=D(E(e.outEdges(t),function(i){return r(i.w)-e.edge(i).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),a.rank=o}l(e.sources(),r)}function B(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function Rn(e){var n=new N({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var a,o;Za(n,e)<t;)a=Qa(n,e),o=n.hasNode(a.v)?B(e,a):-B(e,a),ei(n,e,o);return n}function Za(e,n){function r(t){l(n.nodeEdges(t),function(a){var o=a.v,i=t===o?a.w:o;!e.hasNode(i)&&!B(n,a)&&(e.setNode(i,{}),e.setEdge(t,i,{}),r(i))})}return l(e.nodes(),r),e.nodeCount()}function Qa(e,n){return ye(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return B(n,r)})}function ei(e,n,r){l(e.nodes(),function(t){n.node(t).rank+=r})}function ni(){}ni.prototype=new Error;function kn(e,n,r){I(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],o={};return l(n,function(i){if(!e.hasNode(i))throw new Error("Graph does not have node: "+i);Mn(e,i,r==="post",o,t,a)}),a}function Mn(e,n,r,t,a,o){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||o.push(n),l(a(n),function(i){Mn(e,i,r,t,a,o)}),r&&o.push(n))}function ri(e,n){return kn(e,n,"post")}function ti(e,n){return kn(e,n,"pre")}C.initLowLimValues=Oe;C.initCutValues=Le;C.calcCutValue=_n;C.leaveEdge=jn;C.enterEdge=Dn;C.exchangeEdges=Bn;function C(e){e=$a(e),Ee(e);var n=Rn(e);Oe(n),Le(n,e);for(var r,t;r=jn(n);)t=Dn(n,e,r),Bn(n,e,r,t)}function Le(e,n){var r=ri(e,e.nodes());r=r.slice(0,r.length-1),l(r,function(t){ai(e,n,t)})}function ai(e,n,r){var t=e.node(r),a=t.parent;e.edge(r,a).cutvalue=_n(e,n,r)}function _n(e,n,r){var t=e.node(r),a=t.parent,o=!0,i=n.edge(r,a),s=0;return i||(o=!1,i=n.edge(a,r)),s=i.weight,l(n.nodeEdges(r),function(d){var u=d.v===r,f=u?d.w:d.v;if(f!==a){var c=u===o,h=n.edge(d).weight;if(s+=c?h:-h,oi(e,r,f)){var v=e.edge(r,f).cutvalue;s+=c?-v:v}}}),s}function Oe(e,n){arguments.length<2&&(n=e.nodes()[0]),An(e,{},1,n)}function An(e,n,r,t,a){var o=r,i=e.node(t);return n[t]=!0,l(e.neighbors(t),function(s){Object.prototype.hasOwnProperty.call(n,s)||(r=An(e,n,r,s,t))}),i.low=o,i.lim=r++,a?i.parent=a:delete i.parent,r}function jn(e){return we(e.edges(),function(n){return e.edge(n).cutvalue<0})}function Dn(e,n,r){var t=r.v,a=r.w;n.hasEdge(t,a)||(t=r.w,a=r.v);var o=e.node(t),i=e.node(a),s=o,d=!1;o.lim>i.lim&&(s=i,d=!0);var u=$(n.edges(),function(f){return d===ze(e,e.node(f.v),s)&&d!==ze(e,e.node(f.w),s)});return ye(u,function(f){return B(n,f)})}function Bn(e,n,r,t){var a=r.v,o=r.w;e.removeEdge(a,o),e.setEdge(t.v,t.w,{}),Oe(e),Le(e,n),ii(e,n)}function ii(e,n){var r=we(e.nodes(),function(a){return!n.node(a).parent}),t=ti(e,r);t=t.slice(1),l(t,function(a){var o=e.node(a).parent,i=n.edge(a,o),s=!1;i||(i=n.edge(o,a),s=!0),n.node(a).rank=n.node(o).rank+(s?i.minlen:-i.minlen)})}function oi(e,n,r){return e.hasEdge(n,r)}function ze(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function si(e){switch(e.graph().ranker){case"network-simplex":Je(e);break;case"tight-tree":ui(e);break;case"longest-path":di(e);break;default:Je(e)}}var di=Ee;function ui(e){Ee(e),Rn(e)}function Je(e){C(e)}function fi(e){var n=A(e,"root",{},"_root"),r=ci(e),t=S(R(r))-1,a=2*t+1;e.graph().nestingRoot=n,l(e.edges(),function(i){e.edge(i).minlen*=a});var o=li(e)+1;l(e.children(),function(i){$n(e,n,a,o,t,r,i)}),e.graph().nodeRankFactor=a}function $n(e,n,r,t,a,o,i){var s=e.children(i);if(!s.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:r});return}var d=We(e,"_bt"),u=We(e,"_bb"),f=e.node(i);e.setParent(d,i),f.borderTop=d,e.setParent(u,i),f.borderBottom=u,l(s,function(c){$n(e,n,r,t,a,o,c);var h=e.node(c),v=h.borderTop?h.borderTop:c,p=h.borderBottom?h.borderBottom:c,g=h.borderTop?t:2*t,b=v!==p?1:a-o[i]+1;e.setEdge(d,v,{weight:g,minlen:b,nestingEdge:!0}),e.setEdge(p,u,{weight:g,minlen:b,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,d,{weight:0,minlen:a+o[i]})}function ci(e){var n={};function r(t,a){var o=e.children(t);o&&o.length&&l(o,function(i){r(i,a+1)}),n[t]=a}return l(e.children(),function(t){r(t,1)}),n}function li(e){return J(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function hi(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,l(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function pi(e,n,r){var t={},a;l(r,function(o){for(var i=e.parent(o),s,d;i;){if(s=e.parent(i),s?(d=t[s],t[s]=i):(d=a,a=i),d&&d!==i){n.setEdge(d,i);return}i=s}})}function gi(e,n,r){var t=vi(e),a=new N({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return e.node(o)});return l(e.nodes(),function(o){var i=e.node(o),s=e.parent(o);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(a.setNode(o),a.setParent(o,s||t),l(e[r](o),function(d){var u=d.v===o?d.w:d.v,f=a.edge(u,o),c=L(f)?0:f.weight;a.setEdge(u,o,{weight:e.edge(d).weight+c})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&a.setNode(o,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),a}function vi(e){for(var n;e.hasNode(n=xe("_root")););return n}function bi(e,n){for(var r=0,t=1;t<n.length;++t)r+=wi(e,n[t-1],n[t]);return r}function wi(e,n,r){for(var t=Ca(r,E(r,function(u,f){return f})),a=_(E(n,function(u){return F(E(e.outEdges(u),function(f){return{pos:t[f.w],weight:e.edge(f).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var i=2*o-1;o-=1;var s=E(new Array(i),function(){return 0}),d=0;return l(a.forEach(function(u){var f=u.pos+o;s[f]+=u.weight;for(var c=0;f>0;)f%2&&(c+=s[f+1]),f=f-1>>1,s[f]+=u.weight;d+=u.weight*c})),d}function mi(e){var n={},r=$(e.nodes(),function(s){return!e.children(s).length}),t=S(E(r,function(s){return e.node(s).rank})),a=E(k(t+1),function(){return[]});function o(s){if(!Pn(n,s)){n[s]=!0;var d=e.node(s);a[d.rank].push(s),l(e.successors(s),o)}}var i=F(r,function(s){return e.node(s).rank});return l(i,o),a}function yi(e,n){return E(n,function(r){var t=e.inEdges(r);if(t.length){var a=J(t,function(o,i){var s=e.edge(i),d=e.node(i.v);return{sum:o.sum+s.weight*d.order,weight:o.weight+s.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function xi(e,n){var r={};l(e,function(a,o){var i=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i:o};L(a.barycenter)||(i.barycenter=a.barycenter,i.weight=a.weight)}),l(n.edges(),function(a){var o=r[a.v],i=r[a.w];!L(o)&&!L(i)&&(i.indegree++,o.out.push(r[a.w]))});var t=$(r,function(a){return!a.indegree});return Ei(t)}function Ei(e){var n=[];function r(o){return function(i){i.merged||(L(i.barycenter)||L(o.barycenter)||i.barycenter>=o.barycenter)&&Li(o,i)}}function t(o){return function(i){i.in.push(o),--i.indegree===0&&e.push(i)}}for(;e.length;){var a=e.pop();n.push(a),l(a.in.reverse(),r(a)),l(a.out,t(a))}return E($(n,function(o){return!o.merged}),function(o){return q(o,["vs","i","barycenter","weight"])})}function Li(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function Oi(e,n){var r=Ga(e,function(f){return Object.prototype.hasOwnProperty.call(f,"barycenter")}),t=r.lhs,a=F(r.rhs,function(f){return-f.i}),o=[],i=0,s=0,d=0;t.sort(Ni(!!n)),d=Ke(o,a,d),l(t,function(f){d+=f.vs.length,o.push(f.vs),i+=f.barycenter*f.weight,s+=f.weight,d=Ke(o,a,d)});var u={vs:_(o)};return s&&(u.barycenter=i/s,u.weight=s),u}function Ke(e,n,r){for(var t;n.length&&(t=W(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function Ni(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function Fn(e,n,r,t){var a=e.children(n),o=e.node(n),i=o?o.borderLeft:void 0,s=o?o.borderRight:void 0,d={};i&&(a=$(a,function(p){return p!==i&&p!==s}));var u=yi(e,a);l(u,function(p){if(e.children(p.v).length){var g=Fn(e,p.v,r,t);d[p.v]=g,Object.prototype.hasOwnProperty.call(g,"barycenter")&&Ti(p,g)}});var f=xi(u,r);Pi(f,d);var c=Oi(f,t);if(i&&(c.vs=_([i,c.vs,s]),e.predecessors(i).length)){var h=e.node(e.predecessors(i)[0]),v=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(c,"barycenter")||(c.barycenter=0,c.weight=0),c.barycenter=(c.barycenter*c.weight+h.order+v.order)/(c.weight+2),c.weight+=2}return c}function Pi(e,n){l(e,function(r){r.vs=_(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function Ti(e,n){L(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function Si(e){var n=Cn(e),r=Ze(e,k(1,n+1),"inEdges"),t=Ze(e,k(n-1,-1,-1),"outEdges"),a=mi(e);Qe(e,a);for(var o=Number.POSITIVE_INFINITY,i,s=0,d=0;d<4;++s,++d){Ci(s%2?r:t,s%4>=2),a=ne(e);var u=bi(e,a);u<o&&(d=0,i=ra(a),o=u)}Qe(e,i)}function Ze(e,n,r){return E(n,function(t){return gi(e,t,r)})}function Ci(e,n){var r=new N;l(e,function(t){var a=t.graph().root,o=Fn(t,a,r,n);l(o.vs,function(i,s){t.node(i).order=s}),pi(t,r,o.vs)})}function Qe(e,n){l(n,function(r){l(r,function(t,a){e.node(t).order=a})})}function Ii(e){var n=ki(e);l(e.graph().dummyChains,function(r){for(var t=e.node(r),a=t.edgeObj,o=Ri(e,n,a.v,a.w),i=o.path,s=o.lca,d=0,u=i[d],f=!0;r!==a.w;){if(t=e.node(r),f){for(;(u=i[d])!==s&&e.node(u).maxRank<t.rank;)d++;u===s&&(f=!1)}if(!f){for(;d<i.length-1&&e.node(u=i[d+1]).minRank<=t.rank;)d++;u=i[d]}e.setParent(r,u),r=e.successors(r)[0]}})}function Ri(e,n,r,t){var a=[],o=[],i=Math.min(n[r].low,n[t].low),s=Math.max(n[r].lim,n[t].lim),d,u;d=r;do d=e.parent(d),a.push(d);while(d&&(n[d].low>i||s>n[d].lim));for(u=d,d=t;(d=e.parent(d))!==u;)o.push(d);return{path:a.concat(o.reverse()),lca:u}}function ki(e){var n={},r=0;function t(a){var o=r;l(e.children(a),t),n[a]={low:o,lim:r++}}return l(e.children(),t),n}function Mi(e,n){var r={};function t(a,o){var i=0,s=0,d=a.length,u=W(o);return l(o,function(f,c){var h=Ai(e,f),v=h?e.node(h).order:d;(h||f===u)&&(l(o.slice(s,c+1),function(p){l(e.predecessors(p),function(g){var b=e.node(g),w=b.order;(w<i||v<w)&&!(b.dummy&&e.node(p).dummy)&&Xn(r,g,p)})}),s=c+1,i=v)}),o}return J(n,t),r}function _i(e,n){var r={};function t(o,i,s,d,u){var f;l(k(i,s),function(c){f=o[c],e.node(f).dummy&&l(e.predecessors(f),function(h){var v=e.node(h);v.dummy&&(v.order<d||v.order>u)&&Xn(r,h,f)})})}function a(o,i){var s=-1,d,u=0;return l(i,function(f,c){if(e.node(f).dummy==="border"){var h=e.predecessors(f);h.length&&(d=e.node(h[0]).order,t(i,u,c,s,d),u=c,s=d)}t(i,u,i.length,d,o.length)}),i}return J(n,a),r}function Ai(e,n){if(e.node(n).dummy)return we(e.predecessors(n),function(r){return e.node(r).dummy})}function Xn(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=e[n];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function ji(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function Di(e,n,r,t){var a={},o={},i={};return l(n,function(s){l(s,function(d,u){a[d]=d,o[d]=d,i[d]=u})}),l(n,function(s){var d=-1;l(s,function(u){var f=t(u);if(f.length){f=F(f,function(g){return i[g]});for(var c=(f.length-1)/2,h=Math.floor(c),v=Math.ceil(c);h<=v;++h){var p=f[h];o[u]===u&&d<i[p]&&!ji(r,u,p)&&(o[p]=u,o[u]=a[u]=a[p],d=i[p])}}})}),{root:a,align:o}}function Bi(e,n,r,t,a){var o={},i=$i(e,n,r,a),s=a?"borderLeft":"borderRight";function d(c,h){for(var v=i.nodes(),p=v.pop(),g={};p;)g[p]?c(p):(g[p]=!0,v.push(p),v=v.concat(h(p))),p=v.pop()}function u(c){o[c]=i.inEdges(c).reduce(function(h,v){return Math.max(h,o[v.v]+i.edge(v))},0)}function f(c){var h=i.outEdges(c).reduce(function(p,g){return Math.min(p,o[g.w]-i.edge(g))},Number.POSITIVE_INFINITY),v=e.node(c);h!==Number.POSITIVE_INFINITY&&v.borderType!==s&&(o[c]=Math.max(o[c],h))}return d(u,i.predecessors.bind(i)),d(f,i.successors.bind(i)),l(t,function(c){o[c]=o[r[c]]}),o}function $i(e,n,r,t){var a=new N,o=e.graph(),i=Ui(o.nodesep,o.edgesep,t);return l(n,function(s){var d;l(s,function(u){var f=r[u];if(a.setNode(f),d){var c=r[d],h=a.edge(c,f);a.setEdge(c,f,Math.max(i(e,u,d),h||0))}d=u})}),a}function Fi(e,n){return ye(R(n),function(r){var t=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;return fa(r,function(o,i){var s=Vi(e,i)/2;t=Math.max(o+s,t),a=Math.min(o-s,a)}),t-a})}function Xi(e,n){var r=R(n),t=D(r),a=S(r);l(["u","d"],function(o){l(["l","r"],function(i){var s=o+i,d=e[s],u;if(d!==n){var f=R(d);u=i==="l"?t-D(f):a-S(f),u&&(e[s]=ee(d,function(c){return c+u}))}})})}function Gi(e,n){return ee(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var a=F(E(e,t));return(a[1]+a[2])/2})}function Yi(e){var n=ne(e),r=ue(Mi(e,n),_i(e,n)),t={},a;l(["u","d"],function(i){a=i==="u"?n:R(n).reverse(),l(["l","r"],function(s){s==="r"&&(a=E(a,function(c){return R(c).reverse()}));var d=(i==="u"?e.predecessors:e.successors).bind(e),u=Di(e,a,r,d),f=Bi(e,a,u.root,u.align,s==="r");s==="r"&&(f=ee(f,function(c){return-c})),t[i+s]=f})});var o=Fi(e,t);return Xi(t,o),Gi(t,e.graph().align)}function Ui(e,n,r){return function(t,a,o){var i=t.node(a),s=t.node(o),d=0,u;if(d+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":u=-i.width/2;break;case"r":u=i.width/2;break}if(u&&(d+=r?u:-u),u=0,d+=(i.dummy?n:e)/2,d+=(s.dummy?n:e)/2,d+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":u=s.width/2;break;case"r":u=-s.width/2;break}return u&&(d+=r?u:-u),u=0,d}}function Vi(e,n){return e.node(n).width}function Wi(e){e=Sn(e),qi(e),ca(Yi(e),function(n,r){e.node(r).x=n})}function qi(e){var n=ne(e),r=e.graph().ranksep,t=0;l(n,function(a){var o=S(E(a,function(i){return e.node(i).height}));l(a,function(i){e.node(i).y=t+o/2}),t+=o+r})}function Hi(e,n){var r=Ya;r("layout",()=>{var t=r(" buildLayoutGraph",()=>io(e));r(" runLayout",()=>zi(t,r)),r(" updateInputGraph",()=>Ji(e,t))})}function zi(e,n){n(" makeSpaceForEdgeLabels",()=>oo(e)),n(" removeSelfEdges",()=>vo(e)),n(" acyclic",()=>ja(e)),n(" nestingGraph.run",()=>fi(e)),n(" rank",()=>si(Sn(e))),n(" injectEdgeLabelProxies",()=>so(e)),n(" removeEmptyRanks",()=>Xa(e)),n(" nestingGraph.cleanup",()=>hi(e)),n(" normalizeRanks",()=>Fa(e)),n(" assignRankMinMax",()=>uo(e)),n(" removeEdgeLabelProxies",()=>fo(e)),n(" normalize.run",()=>za(e)),n(" parentDummyChains",()=>Ii(e)),n(" addBorderSegments",()=>Ua(e)),n(" order",()=>Si(e)),n(" insertSelfEdges",()=>bo(e)),n(" adjustCoordinateSystem",()=>Va(e)),n(" position",()=>Wi(e)),n(" positionSelfEdges",()=>wo(e)),n(" removeBorderNodes",()=>go(e)),n(" normalize.undo",()=>Ka(e)),n(" fixupEdgeLabelCoords",()=>ho(e)),n(" undoCoordinateSystem",()=>Wa(e)),n(" translateGraph",()=>co(e)),n(" assignNodeIntersects",()=>lo(e)),n(" reversePoints",()=>po(e)),n(" acyclic.undo",()=>Ba(e))}function Ji(e,n){l(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),l(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Ki=["nodesep","edgesep","ranksep","marginx","marginy"],Zi={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Qi=["acyclicer","ranker","rankdir","align"],eo=["width","height"],no={width:0,height:0},ro=["minlen","weight","width","height","labeloffset"],to={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},ao=["labelpos"];function io(e){var n=new N({multigraph:!0,compound:!0}),r=oe(e.graph());return n.setGraph(ue({},Zi,ie(r,Ki),q(r,Qi))),l(e.nodes(),function(t){var a=oe(e.node(t));n.setNode(t,aa(ie(a,eo),no)),n.setParent(t,e.parent(t))}),l(e.edges(),function(t){var a=oe(e.edge(t));n.setEdge(t,ue({},to,ie(a,ro),q(a,ao)))}),n}function oo(e){var n=e.graph();n.ranksep/=2,l(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function so(e){l(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),o={rank:(a.rank-t.rank)/2+t.rank,e:n};A(e,"edge-proxy",o,"_ep")}})}function uo(e){var n=0;l(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=S(n,t.maxRank))}),e.graph().maxRank=n}function fo(e){l(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function co(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,o=e.graph(),i=o.marginx||0,s=o.marginy||0;function d(u){var f=u.x,c=u.y,h=u.width,v=u.height;n=Math.min(n,f-h/2),r=Math.max(r,f+h/2),t=Math.min(t,c-v/2),a=Math.max(a,c+v/2)}l(e.nodes(),function(u){d(e.node(u))}),l(e.edges(),function(u){var f=e.edge(u);Object.prototype.hasOwnProperty.call(f,"x")&&d(f)}),n-=i,t-=s,l(e.nodes(),function(u){var f=e.node(u);f.x-=n,f.y-=t}),l(e.edges(),function(u){var f=e.edge(u);l(f.points,function(c){c.x-=n,c.y-=t}),Object.prototype.hasOwnProperty.call(f,"x")&&(f.x-=n),Object.prototype.hasOwnProperty.call(f,"y")&&(f.y-=t)}),o.width=r-n+i,o.height=a-t+s}function lo(e){l(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),o,i;r.points?(o=r.points[0],i=r.points[r.points.length-1]):(r.points=[],o=a,i=t),r.points.unshift(Ve(t,o)),r.points.push(Ve(a,i))})}function ho(e){l(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function po(e){l(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function go(e){l(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),o=e.node(W(r.borderLeft)),i=e.node(W(r.borderRight));r.width=Math.abs(i.x-o.x),r.height=Math.abs(a.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),l(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function vo(e){l(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function bo(e){var n=ne(e);l(n,function(r){var t=0;l(r,function(a,o){var i=e.node(a);i.order=o+t,l(i.selfEdges,function(s){A(e,"selfedge",{width:s.label.width,height:s.label.height,rank:i.rank,order:o+ ++t,e:s.e,label:s.label},"_se")}),delete i.selfEdges})})}function wo(e){l(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,o=t.y,i=r.x-a,s=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*i/3,y:o-s},{x:a+5*i/6,y:o-s},{x:a+i,y:o},{x:a+5*i/6,y:o+s},{x:a+2*i/3,y:o+s}],r.label.x=r.x,r.label.y=r.y}})}function ie(e,n){return ee(q(e,n),Number)}function oe(e){var n={};return l(e,function(r,t){n[t.toLowerCase()]=r}),n}var en=x((e,n,r)=>Math.max(n,Math.min(r,e)),"clamp"),nn=x((e="TB")=>{switch(e){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),mo=x(e=>e==="flowchart"||e==="flowchart-v2"||e==="stateDiagram"||e==="er"||e==="classDiagram","shouldMergeSelfLoopSegments"),yo=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],xo=x((e,n,r,t,a)=>{const o=[],i=new Set;if(r.forEach(({start:f,end:c})=>{f!==t&&i.add(f),c!==t&&i.add(c)}),i.forEach(f=>{const c=e.node(f);typeof c?.x=="number"&&typeof c?.y=="number"&&o.push(c)}),o.length===0&&r.forEach(({edge:f})=>{(f.points??[]).forEach(c=>{typeof c?.x=="number"&&typeof c?.y=="number"&&o.push(c)})}),o.length===0)return nn(a);const s=o.reduce((f,c)=>({x:f.x+c.x/o.length,y:f.y+c.y/o.length}),{x:0,y:0}),d=s.x-n.x,u=s.y-n.y;return Math.abs(d)>Math.abs(u)?d>0?"right":"left":Math.abs(u)>0?u>0?"bottom":"top":nn(a)},"getSelfLoopSide"),Eo=x((e,n="top",r=0,t=0)=>{const a=e.x,o=e.y-r,i=e.width/2,s=e.height/2,d=Math.max(36,Math.min(100,e.width*.8)),u=en(Math.max(t,e.width*.35),36,d),f=en(Math.min(e.width,e.height)*.45,24,48);switch(n){case"bottom":{const c=o+s;return[{x:a-u/2,y:c},{x:a-u/2,y:c+f},{x:a+u/2,y:c+f},{x:a+u/2,y:c}]}case"right":{const c=a+i;return[{x:c,y:o-u/2},{x:c+f,y:o-u/2},{x:c+f,y:o+u/2},{x:c,y:o+u/2}]}case"left":{const c=a-i;return[{x:c,y:o-u/2},{x:c-f,y:o-u/2},{x:c-f,y:o+u/2},{x:c,y:o+u/2}]}case"top":default:{const c=o-s;return[{x:a-u/2,y:c},{x:a-u/2,y:c-f},{x:a+u/2,y:c-f},{x:a+u/2,y:c}]}}},"getSelfLoopPoints"),Lo=x((e,n,r="top",t=0,a={})=>{const i=e.x,s=e.y-t,d=a.width??0,u=a.height??0;switch(r){case"bottom":return{x:i,y:Math.max(...n.map(f=>f.y))+u/2+4};case"right":return{x:Math.max(...n.map(f=>f.x))+d/2+4,y:s};case"left":return{x:Math.min(...n.map(f=>f.x))-d/2-4,y:s};case"top":default:return{x:i,y:Math.min(...n.map(f=>f.y))-u/2-4}}},"getSelfLoopLabelPosition"),Gn=x((e,n=0,{mergeSelfLoops:r=!0}={})=>{const t=new Map,a=[],o=e.graph()?.rankdir;return e.edges().forEach(i=>{const s=e.edge(i);if(r&&s.selfLoop){const d=s.selfLoop.id;t.has(d)||t.set(d,[]),t.get(d).push({edge:s,start:i.v,end:i.w})}else a.push({edge:s,start:i.v,end:i.w})}),t.forEach(i=>{if(i.length!==3){i.forEach(w=>a.push(w));return}i.sort((w,P)=>w.edge.selfLoop.order-P.edge.selfLoop.order);const[s,d,u]=i,f=s.edge.originalEdge??d.edge.originalEdge??u.edge.originalEdge??d.edge,c=e.node(f.start);if(!c){i.forEach(w=>a.push(w));return}const h={width:d.edge.width,height:d.edge.height},v=xo(e,c,i,f.start,o),p=Eo(c,v,n,h.width??0),g=Lo(c,p,v,n,h),b={...d.edge,...f,id:f.id,points:p,start:f.start,end:f.end,x:g.x,y:g.y,width:h.width,height:h.height,labelStyle:d.edge.labelStyle,fromCluster:s.edge.fromCluster??d.edge.fromCluster??u.edge.fromCluster,toCluster:s.edge.toCluster??d.edge.toCluster??u.edge.toCluster};delete b.selfLoop,delete b.originalEdge,a.push({edge:b,start:b.start,end:b.end})}),a},"getEdgesToRender"),Yn=x(async({element:e,graph:n,diagramType:r,id:t,parentCluster:a,siteConfig:o})=>{const i=n.graph().rankdir;m.trace("Dir in recursive render - dir:",i);const{clusters:s,edgePaths:d,edgeLabels:u,nodes:f,rootGroups:c}=Hn(e,{edgePathsClass:"edgePaths"});n.nodes()?m.info("Recursive render XXX",n.nodes()):m.info("No nodes found for",n),n.edges().length>0&&m.info("Recursive edges",n.edge(n.edges()[0]));const h=mo(r);await Promise.all(n.nodes().map(async function(g){const b=n.node(g);if(a!==void 0){const w=JSON.parse(JSON.stringify(a.clusterData));m.trace(`Setting data for parent cluster XXX
|
|
1
|
+
import{s as ce,a as Wn,b as qn,d as Hn,f as Te,c as T,i as zn}from"./B9ka1bX8.js";import{b as x,X as Jn,ay as m,bg as Kn,b1 as Zn,a4 as Qn,af as Se,aL as Ce,ad as er,ae as nr,aK as rr}from"./DxPvfI2H.js";import{L as U,I as O,r as Ie,s as H,C as z,H as tn,m as le,K as an,c as tr,g as on,W as ar,R as ir,Q as or,J as he,k as sr,V as dr,U as Re,a as ke,w as pe,n as ge,P as V,E as sn,S as dn,b as ur,B as I,v as fr,M as cr,D as lr,A as Me,F as hr,h as un,l as M,O as pr,f as gr,e as vr,d as X,o as fn,i as cn,y as br,z as ve,p as ln,X as wr,j as hn,x as mr,Y as yr,G as N,u as l,q as xr,N as L,t as $,Z as R,T as J}from"./-xK_vQQs.js";var Er=/\s/;function Lr(e){for(var n=e.length;n--&&Er.test(e.charAt(n)););return n}var Or=/^\s+/;function Nr(e){return e&&e.slice(0,Lr(e)+1).replace(Or,"")}var _e=NaN,Pr=/^[-+]0x[0-9a-f]+$/i,Tr=/^0b[01]+$/i,Sr=/^0o[0-7]+$/i,Cr=parseInt;function Ir(e){if(typeof e=="number")return e;if(U(e))return _e;if(O(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=O(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Nr(e);var r=Tr.test(e);return r||Sr.test(e)?Cr(e.slice(2),r?2:8):Pr.test(e)?_e:+e}var Ae=1/0,Rr=17976931348623157e292;function G(e){if(!e)return e===0?e:0;if(e=Ir(e),e===Ae||e===-Ae){var n=e<0?-1:1;return n*Rr}return e===e?e:0}function kr(e){var n=G(e),r=n%1;return n===n?r?n-r:n:0}var je=Object.create,Mr=(function(){function e(){}return function(n){if(!O(n))return{};if(je)return je(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}})();function _r(e,n){var r=-1,t=e.length;for(n||(n=Array(t));++r<t;)n[r]=e[r];return n}function K(e,n,r){n=="__proto__"&&Ie?Ie(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}var Ar=Object.prototype,jr=Ar.hasOwnProperty;function Z(e,n,r){var t=e[n];(!(jr.call(e,n)&&H(t,r))||r===void 0&&!(n in e))&&K(e,n,r)}function Dr(e,n,r,t){var a=!r;r||(r={});for(var o=-1,i=n.length;++o<i;){var s=n[o],d=void 0;d===void 0&&(d=e[s]),a?K(r,s,d):Z(r,s,d)}return r}function j(e,n,r){if(!O(r))return!1;var t=typeof n;return(t=="number"?z(r)&&tn(n,r.length):t=="string"&&n in r)?H(r[n],e):!1}function Br(e){return le(function(n,r){var t=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&j(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),n=Object(n);++t<a;){var s=r[t];s&&e(n,s,t,o)}return n})}function $r(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var Fr=Object.prototype,Xr=Fr.hasOwnProperty;function Gr(e){if(!O(e))return $r(e);var n=an(e),r=[];for(var t in e)t=="constructor"&&(n||!Xr.call(e,t))||r.push(t);return r}function Q(e){return z(e)?tr(e,!0):Gr(e)}function _(e){var n=e==null?0:e.length;return n?on(e):[]}function Yr(e){return ar(ir(e,void 0,_),e+"")}var pn=or(Object.getPrototypeOf,Object),Ur="[object Object]",Vr=Function.prototype,Wr=Object.prototype,gn=Vr.toString,qr=Wr.hasOwnProperty,Hr=gn.call(Object);function zr(e){if(!he(e)||sr(e)!=Ur)return!1;var n=pn(e);if(n===null)return!0;var r=qr.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&gn.call(r)==Hr}var vn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,De=vn&&typeof module=="object"&&module&&!module.nodeType&&module,Jr=De&&De.exports===vn,Be=Jr?dr.Buffer:void 0,$e=Be?Be.allocUnsafe:void 0;function bn(e,n){if(n)return e.slice();var r=e.length,t=$e?$e(r):new e.constructor(r);return e.copy(t),t}var Kr=Object.prototype,Zr=Kr.hasOwnProperty;function Qr(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Zr.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function be(e){var n=new e.constructor(e.byteLength);return new Re(n).set(new Re(e)),n}function et(e,n){var r=be(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var nt=/\w*$/;function rt(e){var n=new e.constructor(e.source,nt.exec(e));return n.lastIndex=e.lastIndex,n}var Fe=ke?ke.prototype:void 0,Xe=Fe?Fe.valueOf:void 0;function tt(e){return Xe?Object(Xe.call(e)):{}}function wn(e,n){var r=n?be(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var at="[object Boolean]",it="[object Date]",ot="[object Map]",st="[object Number]",dt="[object RegExp]",ut="[object Set]",ft="[object String]",ct="[object Symbol]",lt="[object ArrayBuffer]",ht="[object DataView]",pt="[object Float32Array]",gt="[object Float64Array]",vt="[object Int8Array]",bt="[object Int16Array]",wt="[object Int32Array]",mt="[object Uint8Array]",yt="[object Uint8ClampedArray]",xt="[object Uint16Array]",Et="[object Uint32Array]";function Lt(e,n,r){var t=e.constructor;switch(n){case lt:return be(e);case at:case it:return new t(+e);case ht:return et(e);case pt:case gt:case vt:case bt:case wt:case mt:case yt:case xt:case Et:return wn(e,r);case ot:return new t;case st:case ft:return new t(e);case dt:return rt(e);case ut:return new t;case ct:return tt(e)}}function mn(e){return typeof e.constructor=="function"&&!an(e)?Mr(pn(e)):{}}var Ot="[object Map]";function Nt(e){return he(e)&&pe(e)==Ot}var Ge=V&&V.isMap,Pt=Ge?ge(Ge):Nt,Tt="[object Set]";function St(e){return he(e)&&pe(e)==Tt}var Ye=V&&V.isSet,Ct=Ye?ge(Ye):St,It=1,yn="[object Arguments]",Rt="[object Array]",kt="[object Boolean]",Mt="[object Date]",_t="[object Error]",xn="[object Function]",At="[object GeneratorFunction]",jt="[object Map]",Dt="[object Number]",En="[object Object]",Bt="[object RegExp]",$t="[object Set]",Ft="[object String]",Xt="[object Symbol]",Gt="[object WeakMap]",Yt="[object ArrayBuffer]",Ut="[object DataView]",Vt="[object Float32Array]",Wt="[object Float64Array]",qt="[object Int8Array]",Ht="[object Int16Array]",zt="[object Int32Array]",Jt="[object Uint8Array]",Kt="[object Uint8ClampedArray]",Zt="[object Uint16Array]",Qt="[object Uint32Array]",y={};y[yn]=y[Rt]=y[Yt]=y[Ut]=y[kt]=y[Mt]=y[Vt]=y[Wt]=y[qt]=y[Ht]=y[zt]=y[jt]=y[Dt]=y[En]=y[Bt]=y[$t]=y[Ft]=y[Xt]=y[Jt]=y[Kt]=y[Zt]=y[Qt]=!0;y[_t]=y[xn]=y[Gt]=!1;function Y(e,n,r,t,a,o){var i,s=n&It;if(i!==void 0)return i;if(!O(e))return e;var d=I(e);if(d)i=Qr(e);else{var u=pe(e),f=u==xn||u==At;if(sn(e))return bn(e,s);if(u==En||u==yn||f&&!a)i=f?{}:mn(e);else{if(!y[u])return a?e:{};i=Lt(e,u,s)}}o||(o=new dn);var c=o.get(e);if(c)return c;o.set(e,i),Ct(e)?e.forEach(function(p){i.add(Y(p,n,r,p,e,o))}):Pt(e)&&e.forEach(function(p,g){i.set(g,Y(p,n,r,g,e,o))});var h=fr,v=d?void 0:h(e);return ur(v||e,function(p,g){v&&(g=p,p=e[g]),Z(i,g,Y(p,n,r,g,e,o))}),i}var ea=1,na=4;function ra(e){return Y(e,ea|na)}var Ln=Object.prototype,ta=Ln.hasOwnProperty,aa=le(function(e,n){e=Object(e);var r=-1,t=n.length,a=t>2?n[2]:void 0;for(a&&j(n[0],n[1],a)&&(t=1);++r<t;)for(var o=n[r],i=Q(o),s=-1,d=i.length;++s<d;){var u=i[s],f=e[u];(f===void 0||H(f,Ln[u])&&!ta.call(e,u))&&(e[u]=o[u])}return e});function se(e,n,r){(r!==void 0&&!H(e[n],r)||r===void 0&&!(n in e))&&K(e,n,r)}function de(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}function ia(e){return Dr(e,Q(e))}function oa(e,n,r,t,a,o,i){var s=de(e,r),d=de(n,r),u=i.get(d);if(u){se(e,r,u);return}var f=o?o(s,d,r+"",e,n,i):void 0,c=f===void 0;if(c){var h=I(d),v=!h&&sn(d),p=!h&&!v&&cr(d);f=d,h||v||p?I(s)?f=s:lr(s)?f=_r(s):v?(c=!1,f=bn(d,!0)):p?(c=!1,f=wn(d,!0)):f=[]:zr(d)||Me(d)?(f=s,Me(s)?f=ia(s):(!O(s)||hr(s))&&(f=mn(d))):c=!1}c&&(i.set(d,f),a(f,d,t,o,i),i.delete(d)),se(e,r,f)}function On(e,n,r,t,a){e!==n&&un(n,function(o,i){if(a||(a=new dn),O(o))oa(e,n,i,r,On,t,a);else{var s=t?t(de(e,i),o,i+"",e,n,a):void 0;s===void 0&&(s=o),se(e,i,s)}},Q)}function W(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function sa(e){return function(n,r,t){var a=Object(n);if(!z(n)){var o=M(r);n=pr(n),r=function(s){return o(a[s],s,a)}}var i=e(n,r,t);return i>-1?a[o?n[i]:i]:void 0}}var da=Math.max;function ua(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var a=r==null?0:kr(r);return a<0&&(a=da(t+a,0)),gr(e,M(n),a)}var we=sa(ua);function Nn(e,n){var r=-1,t=z(e)?Array(e.length):[];return vr(e,function(a,o,i){t[++r]=n(a,o,i)}),t}function E(e,n){var r=I(e)?X:Nn;return r(e,M(n))}function fa(e,n){return e==null?e:un(e,fn(n),Q)}function ca(e,n){return e&&cn(e,fn(n))}function la(e,n){return e>n}var ha=Object.prototype,pa=ha.hasOwnProperty;function ga(e,n){return e!=null&&pa.call(e,n)}function Pn(e,n){return e!=null&&br(e,n,ga)}function Tn(e,n){return e<n}function ee(e,n){var r={};return n=M(n),cn(e,function(t,a,o){K(r,a,n(t,a,o))}),r}function me(e,n,r){for(var t=-1,a=e.length;++t<a;){var o=e[t],i=n(o);if(i!=null&&(s===void 0?i===i&&!U(i):r(i,s)))var s=i,d=o}return d}function S(e){return e&&e.length?me(e,ve,la):void 0}var ue=Br(function(e,n,r){On(e,n,r)});function D(e){return e&&e.length?me(e,ve,Tn):void 0}function ye(e,n){return e&&e.length?me(e,M(n),Tn):void 0}function va(e,n,r,t){if(!O(e))return e;n=ln(n,e);for(var a=-1,o=n.length,i=o-1,s=e;s!=null&&++a<o;){var d=wr(n[a]),u=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(a!=i){var f=s[d];u=void 0,u===void 0&&(u=O(f)?f:tn(n[a+1])?[]:{})}Z(s,d,u),s=s[d]}return e}function ba(e,n,r){for(var t=-1,a=n.length,o={};++t<a;){var i=n[t],s=hn(e,i);r(s,i)&&va(o,ln(i,e),s)}return o}function wa(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function ma(e,n){if(e!==n){var r=e!==void 0,t=e===null,a=e===e,o=U(e),i=n!==void 0,s=n===null,d=n===n,u=U(n);if(!s&&!u&&!o&&e>n||o&&i&&d&&!s&&!u||t&&i&&d||!r&&d||!a)return 1;if(!t&&!o&&!u&&e<n||u&&r&&a&&!t&&!o||s&&r&&a||!i&&a||!d)return-1}return 0}function ya(e,n,r){for(var t=-1,a=e.criteria,o=n.criteria,i=a.length,s=r.length;++t<i;){var d=ma(a[t],o[t]);if(d){if(t>=s)return d;var u=r[t];return d*(u=="desc"?-1:1)}}return e.index-n.index}function xa(e,n,r){n.length?n=X(n,function(o){return I(o)?function(i){return hn(i,o.length===1?o[0]:o)}:o}):n=[ve];var t=-1;n=X(n,ge(M));var a=Nn(e,function(o,i,s){var d=X(n,function(u){return u(o)});return{criteria:d,index:++t,value:o}});return wa(a,function(o,i){return ya(o,i,r)})}function Ea(e,n){return ba(e,n,function(r,t){return mr(e,t)})}var q=Yr(function(e,n){return e==null?{}:Ea(e,n)}),La=Math.ceil,Oa=Math.max;function Na(e,n,r,t){for(var a=-1,o=Oa(La((n-e)/(r||1)),0),i=Array(o);o--;)i[++a]=e,e+=r;return i}function Pa(e){return function(n,r,t){return t&&typeof t!="number"&&j(n,r,t)&&(r=t=void 0),n=G(n),r===void 0?(r=n,n=0):r=G(r),t=t===void 0?n<r?1:-1:G(t),Na(n,r,t)}}var k=Pa(),F=le(function(e,n){if(e==null)return[];var r=n.length;return r>1&&j(e,n[0],n[1])?n=[]:r>2&&j(n[0],n[1],n[2])&&(n=[n[0]]),xa(e,on(n),[])}),Ta=0;function xe(e){var n=++Ta;return yr(e)+n}function Sa(e,n,r){for(var t=-1,a=e.length,o=n.length,i={};++t<a;){var s=t<o?n[t]:void 0;r(i,e[t],s)}return i}function Ca(e,n){return Sa(e||[],n||[],Z)}class Ia{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return Ue(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&Ue(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,Ra)),t=t._prev;return"["+n.join(", ")+"]"}}function Ue(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Ra(e,n){if(e!=="_next"&&e!=="_prev")return n}var ka=xr(1);function Ma(e,n){if(e.nodeCount()<=1)return[];var r=Aa(e,n||ka),t=_a(r.graph,r.buckets,r.zeroIdx);return _(E(t,function(a){return e.outEdges(a.v,a.w)}))}function _a(e,n,r){for(var t=[],a=n[n.length-1],o=n[0],i;e.nodeCount();){for(;i=o.dequeue();)re(e,n,r,i);for(;i=a.dequeue();)re(e,n,r,i);if(e.nodeCount()){for(var s=n.length-2;s>0;--s)if(i=n[s].dequeue(),i){t=t.concat(re(e,n,r,i,!0));break}}}return t}function re(e,n,r,t,a){var o=a?[]:void 0;return l(e.inEdges(t.v),function(i){var s=e.edge(i),d=e.node(i.v);a&&o.push({v:i.v,w:i.w}),d.out-=s,fe(n,r,d)}),l(e.outEdges(t.v),function(i){var s=e.edge(i),d=i.w,u=e.node(d);u.in-=s,fe(n,r,u)}),e.removeNode(t.v),o}function Aa(e,n){var r=new N,t=0,a=0;l(e.nodes(),function(s){r.setNode(s,{v:s,in:0,out:0})}),l(e.edges(),function(s){var d=r.edge(s.v,s.w)||0,u=n(s),f=d+u;r.setEdge(s.v,s.w,f),a=Math.max(a,r.node(s.v).out+=u),t=Math.max(t,r.node(s.w).in+=u)});var o=k(a+t+3).map(function(){return new Ia}),i=t+1;return l(r.nodes(),function(s){fe(o,i,r.node(s))}),{graph:r,buckets:o,zeroIdx:i}}function fe(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function ja(e){var n=e.graph().acyclicer==="greedy"?Ma(e,r(e)):Da(e);l(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,xe("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function Da(e){var n=[],r={},t={};function a(o){Object.prototype.hasOwnProperty.call(t,o)||(t[o]=!0,r[o]=!0,l(e.outEdges(o),function(i){Object.prototype.hasOwnProperty.call(r,i.w)?n.push(i):a(i.w)}),delete r[o])}return l(e.nodes(),a),n}function Ba(e){l(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function A(e,n,r,t){var a;do a=xe(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function $a(e){var n=new N().setGraph(e.graph());return l(e.nodes(),function(r){n.setNode(r,e.node(r))}),l(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function Sn(e){var n=new N({multigraph:e.isMultigraph()}).setGraph(e.graph());return l(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),l(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function Ve(e,n){var r=e.x,t=e.y,a=n.x-r,o=n.y-t,i=e.width/2,s=e.height/2;if(!a&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,u;return Math.abs(o)*i>Math.abs(a)*s?(o<0&&(s=-s),d=s*a/o,u=s):(a<0&&(i=-i),d=i,u=i*o/a),{x:r+d,y:t+u}}function ne(e){var n=E(k(Cn(e)+1),function(){return[]});return l(e.nodes(),function(r){var t=e.node(r),a=t.rank;L(a)||(n[a][t.order]=r)}),n}function Fa(e){var n=D(E(e.nodes(),function(r){return e.node(r).rank}));l(e.nodes(),function(r){var t=e.node(r);Pn(t,"rank")&&(t.rank-=n)})}function Xa(e){var n=D(E(e.nodes(),function(o){return e.node(o).rank})),r=[];l(e.nodes(),function(o){var i=e.node(o).rank-n;r[i]||(r[i]=[]),r[i].push(o)});var t=0,a=e.graph().nodeRankFactor;l(r,function(o,i){L(o)&&i%a!==0?--t:t&&l(o,function(s){e.node(s).rank+=t})})}function We(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),A(e,"border",a,n)}function Cn(e){return S(E(e.nodes(),function(n){var r=e.node(n).rank;if(!L(r))return r}))}function Ga(e,n){var r={lhs:[],rhs:[]};return l(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function Ya(e,n){return n()}function Ua(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&l(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var o=a.minRank,i=a.maxRank+1;o<i;++o)qe(e,"borderLeft","_bl",r,a,o),qe(e,"borderRight","_br",r,a,o)}}l(e.children(),n)}function qe(e,n,r,t,a,o){var i={width:0,height:0,rank:o,borderType:n},s=a[n][o-1],d=A(e,"border",i,r);a[n][o]=d,e.setParent(d,t),s&&e.setEdge(s,d,{weight:1})}function Va(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&In(e)}function Wa(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&qa(e),(n==="lr"||n==="rl")&&(Ha(e),In(e))}function In(e){l(e.nodes(),function(n){He(e.node(n))}),l(e.edges(),function(n){He(e.edge(n))})}function He(e){var n=e.width;e.width=e.height,e.height=n}function qa(e){l(e.nodes(),function(n){te(e.node(n))}),l(e.edges(),function(n){var r=e.edge(n);l(r.points,te),Object.prototype.hasOwnProperty.call(r,"y")&&te(r)})}function te(e){e.y=-e.y}function Ha(e){l(e.nodes(),function(n){ae(e.node(n))}),l(e.edges(),function(n){var r=e.edge(n);l(r.points,ae),Object.prototype.hasOwnProperty.call(r,"x")&&ae(r)})}function ae(e){var n=e.x;e.x=e.y,e.y=n}function za(e){e.graph().dummyChains=[],l(e.edges(),function(n){Ja(e,n)})}function Ja(e,n){var r=n.v,t=e.node(r).rank,a=n.w,o=e.node(a).rank,i=n.name,s=e.edge(n),d=s.labelRank;if(o!==t+1){e.removeEdge(n);var u=void 0,f,c;for(c=0,++t;t<o;++c,++t)s.points=[],u={width:0,height:0,edgeLabel:s,edgeObj:n,rank:t},f=A(e,"edge",u,"_d"),t===d&&(u.width=s.width,u.height=s.height,u.dummy="edge-label",u.labelpos=s.labelpos),e.setEdge(r,f,{weight:s.weight},i),c===0&&e.graph().dummyChains.push(f),r=f;e.setEdge(r,a,{weight:s.weight},i)}}function Ka(e){l(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,a;for(e.setEdge(r.edgeObj,t);r.dummy;)a=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=a,r=e.node(n)})}function Ee(e){var n={};function r(t){var a=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return a.rank;n[t]=!0;var o=D(E(e.outEdges(t),function(i){return r(i.w)-e.edge(i).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),a.rank=o}l(e.sources(),r)}function B(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function Rn(e){var n=new N({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var a,o;Za(n,e)<t;)a=Qa(n,e),o=n.hasNode(a.v)?B(e,a):-B(e,a),ei(n,e,o);return n}function Za(e,n){function r(t){l(n.nodeEdges(t),function(a){var o=a.v,i=t===o?a.w:o;!e.hasNode(i)&&!B(n,a)&&(e.setNode(i,{}),e.setEdge(t,i,{}),r(i))})}return l(e.nodes(),r),e.nodeCount()}function Qa(e,n){return ye(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return B(n,r)})}function ei(e,n,r){l(e.nodes(),function(t){n.node(t).rank+=r})}function ni(){}ni.prototype=new Error;function kn(e,n,r){I(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],o={};return l(n,function(i){if(!e.hasNode(i))throw new Error("Graph does not have node: "+i);Mn(e,i,r==="post",o,t,a)}),a}function Mn(e,n,r,t,a,o){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||o.push(n),l(a(n),function(i){Mn(e,i,r,t,a,o)}),r&&o.push(n))}function ri(e,n){return kn(e,n,"post")}function ti(e,n){return kn(e,n,"pre")}C.initLowLimValues=Oe;C.initCutValues=Le;C.calcCutValue=_n;C.leaveEdge=jn;C.enterEdge=Dn;C.exchangeEdges=Bn;function C(e){e=$a(e),Ee(e);var n=Rn(e);Oe(n),Le(n,e);for(var r,t;r=jn(n);)t=Dn(n,e,r),Bn(n,e,r,t)}function Le(e,n){var r=ri(e,e.nodes());r=r.slice(0,r.length-1),l(r,function(t){ai(e,n,t)})}function ai(e,n,r){var t=e.node(r),a=t.parent;e.edge(r,a).cutvalue=_n(e,n,r)}function _n(e,n,r){var t=e.node(r),a=t.parent,o=!0,i=n.edge(r,a),s=0;return i||(o=!1,i=n.edge(a,r)),s=i.weight,l(n.nodeEdges(r),function(d){var u=d.v===r,f=u?d.w:d.v;if(f!==a){var c=u===o,h=n.edge(d).weight;if(s+=c?h:-h,oi(e,r,f)){var v=e.edge(r,f).cutvalue;s+=c?-v:v}}}),s}function Oe(e,n){arguments.length<2&&(n=e.nodes()[0]),An(e,{},1,n)}function An(e,n,r,t,a){var o=r,i=e.node(t);return n[t]=!0,l(e.neighbors(t),function(s){Object.prototype.hasOwnProperty.call(n,s)||(r=An(e,n,r,s,t))}),i.low=o,i.lim=r++,a?i.parent=a:delete i.parent,r}function jn(e){return we(e.edges(),function(n){return e.edge(n).cutvalue<0})}function Dn(e,n,r){var t=r.v,a=r.w;n.hasEdge(t,a)||(t=r.w,a=r.v);var o=e.node(t),i=e.node(a),s=o,d=!1;o.lim>i.lim&&(s=i,d=!0);var u=$(n.edges(),function(f){return d===ze(e,e.node(f.v),s)&&d!==ze(e,e.node(f.w),s)});return ye(u,function(f){return B(n,f)})}function Bn(e,n,r,t){var a=r.v,o=r.w;e.removeEdge(a,o),e.setEdge(t.v,t.w,{}),Oe(e),Le(e,n),ii(e,n)}function ii(e,n){var r=we(e.nodes(),function(a){return!n.node(a).parent}),t=ti(e,r);t=t.slice(1),l(t,function(a){var o=e.node(a).parent,i=n.edge(a,o),s=!1;i||(i=n.edge(o,a),s=!0),n.node(a).rank=n.node(o).rank+(s?i.minlen:-i.minlen)})}function oi(e,n,r){return e.hasEdge(n,r)}function ze(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function si(e){switch(e.graph().ranker){case"network-simplex":Je(e);break;case"tight-tree":ui(e);break;case"longest-path":di(e);break;default:Je(e)}}var di=Ee;function ui(e){Ee(e),Rn(e)}function Je(e){C(e)}function fi(e){var n=A(e,"root",{},"_root"),r=ci(e),t=S(R(r))-1,a=2*t+1;e.graph().nestingRoot=n,l(e.edges(),function(i){e.edge(i).minlen*=a});var o=li(e)+1;l(e.children(),function(i){$n(e,n,a,o,t,r,i)}),e.graph().nodeRankFactor=a}function $n(e,n,r,t,a,o,i){var s=e.children(i);if(!s.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:r});return}var d=We(e,"_bt"),u=We(e,"_bb"),f=e.node(i);e.setParent(d,i),f.borderTop=d,e.setParent(u,i),f.borderBottom=u,l(s,function(c){$n(e,n,r,t,a,o,c);var h=e.node(c),v=h.borderTop?h.borderTop:c,p=h.borderBottom?h.borderBottom:c,g=h.borderTop?t:2*t,b=v!==p?1:a-o[i]+1;e.setEdge(d,v,{weight:g,minlen:b,nestingEdge:!0}),e.setEdge(p,u,{weight:g,minlen:b,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,d,{weight:0,minlen:a+o[i]})}function ci(e){var n={};function r(t,a){var o=e.children(t);o&&o.length&&l(o,function(i){r(i,a+1)}),n[t]=a}return l(e.children(),function(t){r(t,1)}),n}function li(e){return J(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function hi(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,l(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function pi(e,n,r){var t={},a;l(r,function(o){for(var i=e.parent(o),s,d;i;){if(s=e.parent(i),s?(d=t[s],t[s]=i):(d=a,a=i),d&&d!==i){n.setEdge(d,i);return}i=s}})}function gi(e,n,r){var t=vi(e),a=new N({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return e.node(o)});return l(e.nodes(),function(o){var i=e.node(o),s=e.parent(o);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(a.setNode(o),a.setParent(o,s||t),l(e[r](o),function(d){var u=d.v===o?d.w:d.v,f=a.edge(u,o),c=L(f)?0:f.weight;a.setEdge(u,o,{weight:e.edge(d).weight+c})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&a.setNode(o,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),a}function vi(e){for(var n;e.hasNode(n=xe("_root")););return n}function bi(e,n){for(var r=0,t=1;t<n.length;++t)r+=wi(e,n[t-1],n[t]);return r}function wi(e,n,r){for(var t=Ca(r,E(r,function(u,f){return f})),a=_(E(n,function(u){return F(E(e.outEdges(u),function(f){return{pos:t[f.w],weight:e.edge(f).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var i=2*o-1;o-=1;var s=E(new Array(i),function(){return 0}),d=0;return l(a.forEach(function(u){var f=u.pos+o;s[f]+=u.weight;for(var c=0;f>0;)f%2&&(c+=s[f+1]),f=f-1>>1,s[f]+=u.weight;d+=u.weight*c})),d}function mi(e){var n={},r=$(e.nodes(),function(s){return!e.children(s).length}),t=S(E(r,function(s){return e.node(s).rank})),a=E(k(t+1),function(){return[]});function o(s){if(!Pn(n,s)){n[s]=!0;var d=e.node(s);a[d.rank].push(s),l(e.successors(s),o)}}var i=F(r,function(s){return e.node(s).rank});return l(i,o),a}function yi(e,n){return E(n,function(r){var t=e.inEdges(r);if(t.length){var a=J(t,function(o,i){var s=e.edge(i),d=e.node(i.v);return{sum:o.sum+s.weight*d.order,weight:o.weight+s.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function xi(e,n){var r={};l(e,function(a,o){var i=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i:o};L(a.barycenter)||(i.barycenter=a.barycenter,i.weight=a.weight)}),l(n.edges(),function(a){var o=r[a.v],i=r[a.w];!L(o)&&!L(i)&&(i.indegree++,o.out.push(r[a.w]))});var t=$(r,function(a){return!a.indegree});return Ei(t)}function Ei(e){var n=[];function r(o){return function(i){i.merged||(L(i.barycenter)||L(o.barycenter)||i.barycenter>=o.barycenter)&&Li(o,i)}}function t(o){return function(i){i.in.push(o),--i.indegree===0&&e.push(i)}}for(;e.length;){var a=e.pop();n.push(a),l(a.in.reverse(),r(a)),l(a.out,t(a))}return E($(n,function(o){return!o.merged}),function(o){return q(o,["vs","i","barycenter","weight"])})}function Li(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function Oi(e,n){var r=Ga(e,function(f){return Object.prototype.hasOwnProperty.call(f,"barycenter")}),t=r.lhs,a=F(r.rhs,function(f){return-f.i}),o=[],i=0,s=0,d=0;t.sort(Ni(!!n)),d=Ke(o,a,d),l(t,function(f){d+=f.vs.length,o.push(f.vs),i+=f.barycenter*f.weight,s+=f.weight,d=Ke(o,a,d)});var u={vs:_(o)};return s&&(u.barycenter=i/s,u.weight=s),u}function Ke(e,n,r){for(var t;n.length&&(t=W(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function Ni(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function Fn(e,n,r,t){var a=e.children(n),o=e.node(n),i=o?o.borderLeft:void 0,s=o?o.borderRight:void 0,d={};i&&(a=$(a,function(p){return p!==i&&p!==s}));var u=yi(e,a);l(u,function(p){if(e.children(p.v).length){var g=Fn(e,p.v,r,t);d[p.v]=g,Object.prototype.hasOwnProperty.call(g,"barycenter")&&Ti(p,g)}});var f=xi(u,r);Pi(f,d);var c=Oi(f,t);if(i&&(c.vs=_([i,c.vs,s]),e.predecessors(i).length)){var h=e.node(e.predecessors(i)[0]),v=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(c,"barycenter")||(c.barycenter=0,c.weight=0),c.barycenter=(c.barycenter*c.weight+h.order+v.order)/(c.weight+2),c.weight+=2}return c}function Pi(e,n){l(e,function(r){r.vs=_(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function Ti(e,n){L(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function Si(e){var n=Cn(e),r=Ze(e,k(1,n+1),"inEdges"),t=Ze(e,k(n-1,-1,-1),"outEdges"),a=mi(e);Qe(e,a);for(var o=Number.POSITIVE_INFINITY,i,s=0,d=0;d<4;++s,++d){Ci(s%2?r:t,s%4>=2),a=ne(e);var u=bi(e,a);u<o&&(d=0,i=ra(a),o=u)}Qe(e,i)}function Ze(e,n,r){return E(n,function(t){return gi(e,t,r)})}function Ci(e,n){var r=new N;l(e,function(t){var a=t.graph().root,o=Fn(t,a,r,n);l(o.vs,function(i,s){t.node(i).order=s}),pi(t,r,o.vs)})}function Qe(e,n){l(n,function(r){l(r,function(t,a){e.node(t).order=a})})}function Ii(e){var n=ki(e);l(e.graph().dummyChains,function(r){for(var t=e.node(r),a=t.edgeObj,o=Ri(e,n,a.v,a.w),i=o.path,s=o.lca,d=0,u=i[d],f=!0;r!==a.w;){if(t=e.node(r),f){for(;(u=i[d])!==s&&e.node(u).maxRank<t.rank;)d++;u===s&&(f=!1)}if(!f){for(;d<i.length-1&&e.node(u=i[d+1]).minRank<=t.rank;)d++;u=i[d]}e.setParent(r,u),r=e.successors(r)[0]}})}function Ri(e,n,r,t){var a=[],o=[],i=Math.min(n[r].low,n[t].low),s=Math.max(n[r].lim,n[t].lim),d,u;d=r;do d=e.parent(d),a.push(d);while(d&&(n[d].low>i||s>n[d].lim));for(u=d,d=t;(d=e.parent(d))!==u;)o.push(d);return{path:a.concat(o.reverse()),lca:u}}function ki(e){var n={},r=0;function t(a){var o=r;l(e.children(a),t),n[a]={low:o,lim:r++}}return l(e.children(),t),n}function Mi(e,n){var r={};function t(a,o){var i=0,s=0,d=a.length,u=W(o);return l(o,function(f,c){var h=Ai(e,f),v=h?e.node(h).order:d;(h||f===u)&&(l(o.slice(s,c+1),function(p){l(e.predecessors(p),function(g){var b=e.node(g),w=b.order;(w<i||v<w)&&!(b.dummy&&e.node(p).dummy)&&Xn(r,g,p)})}),s=c+1,i=v)}),o}return J(n,t),r}function _i(e,n){var r={};function t(o,i,s,d,u){var f;l(k(i,s),function(c){f=o[c],e.node(f).dummy&&l(e.predecessors(f),function(h){var v=e.node(h);v.dummy&&(v.order<d||v.order>u)&&Xn(r,h,f)})})}function a(o,i){var s=-1,d,u=0;return l(i,function(f,c){if(e.node(f).dummy==="border"){var h=e.predecessors(f);h.length&&(d=e.node(h[0]).order,t(i,u,c,s,d),u=c,s=d)}t(i,u,i.length,d,o.length)}),i}return J(n,a),r}function Ai(e,n){if(e.node(n).dummy)return we(e.predecessors(n),function(r){return e.node(r).dummy})}function Xn(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=e[n];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function ji(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function Di(e,n,r,t){var a={},o={},i={};return l(n,function(s){l(s,function(d,u){a[d]=d,o[d]=d,i[d]=u})}),l(n,function(s){var d=-1;l(s,function(u){var f=t(u);if(f.length){f=F(f,function(g){return i[g]});for(var c=(f.length-1)/2,h=Math.floor(c),v=Math.ceil(c);h<=v;++h){var p=f[h];o[u]===u&&d<i[p]&&!ji(r,u,p)&&(o[p]=u,o[u]=a[u]=a[p],d=i[p])}}})}),{root:a,align:o}}function Bi(e,n,r,t,a){var o={},i=$i(e,n,r,a),s=a?"borderLeft":"borderRight";function d(c,h){for(var v=i.nodes(),p=v.pop(),g={};p;)g[p]?c(p):(g[p]=!0,v.push(p),v=v.concat(h(p))),p=v.pop()}function u(c){o[c]=i.inEdges(c).reduce(function(h,v){return Math.max(h,o[v.v]+i.edge(v))},0)}function f(c){var h=i.outEdges(c).reduce(function(p,g){return Math.min(p,o[g.w]-i.edge(g))},Number.POSITIVE_INFINITY),v=e.node(c);h!==Number.POSITIVE_INFINITY&&v.borderType!==s&&(o[c]=Math.max(o[c],h))}return d(u,i.predecessors.bind(i)),d(f,i.successors.bind(i)),l(t,function(c){o[c]=o[r[c]]}),o}function $i(e,n,r,t){var a=new N,o=e.graph(),i=Ui(o.nodesep,o.edgesep,t);return l(n,function(s){var d;l(s,function(u){var f=r[u];if(a.setNode(f),d){var c=r[d],h=a.edge(c,f);a.setEdge(c,f,Math.max(i(e,u,d),h||0))}d=u})}),a}function Fi(e,n){return ye(R(n),function(r){var t=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;return fa(r,function(o,i){var s=Vi(e,i)/2;t=Math.max(o+s,t),a=Math.min(o-s,a)}),t-a})}function Xi(e,n){var r=R(n),t=D(r),a=S(r);l(["u","d"],function(o){l(["l","r"],function(i){var s=o+i,d=e[s],u;if(d!==n){var f=R(d);u=i==="l"?t-D(f):a-S(f),u&&(e[s]=ee(d,function(c){return c+u}))}})})}function Gi(e,n){return ee(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var a=F(E(e,t));return(a[1]+a[2])/2})}function Yi(e){var n=ne(e),r=ue(Mi(e,n),_i(e,n)),t={},a;l(["u","d"],function(i){a=i==="u"?n:R(n).reverse(),l(["l","r"],function(s){s==="r"&&(a=E(a,function(c){return R(c).reverse()}));var d=(i==="u"?e.predecessors:e.successors).bind(e),u=Di(e,a,r,d),f=Bi(e,a,u.root,u.align,s==="r");s==="r"&&(f=ee(f,function(c){return-c})),t[i+s]=f})});var o=Fi(e,t);return Xi(t,o),Gi(t,e.graph().align)}function Ui(e,n,r){return function(t,a,o){var i=t.node(a),s=t.node(o),d=0,u;if(d+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":u=-i.width/2;break;case"r":u=i.width/2;break}if(u&&(d+=r?u:-u),u=0,d+=(i.dummy?n:e)/2,d+=(s.dummy?n:e)/2,d+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":u=s.width/2;break;case"r":u=-s.width/2;break}return u&&(d+=r?u:-u),u=0,d}}function Vi(e,n){return e.node(n).width}function Wi(e){e=Sn(e),qi(e),ca(Yi(e),function(n,r){e.node(r).x=n})}function qi(e){var n=ne(e),r=e.graph().ranksep,t=0;l(n,function(a){var o=S(E(a,function(i){return e.node(i).height}));l(a,function(i){e.node(i).y=t+o/2}),t+=o+r})}function Hi(e,n){var r=Ya;r("layout",()=>{var t=r(" buildLayoutGraph",()=>io(e));r(" runLayout",()=>zi(t,r)),r(" updateInputGraph",()=>Ji(e,t))})}function zi(e,n){n(" makeSpaceForEdgeLabels",()=>oo(e)),n(" removeSelfEdges",()=>vo(e)),n(" acyclic",()=>ja(e)),n(" nestingGraph.run",()=>fi(e)),n(" rank",()=>si(Sn(e))),n(" injectEdgeLabelProxies",()=>so(e)),n(" removeEmptyRanks",()=>Xa(e)),n(" nestingGraph.cleanup",()=>hi(e)),n(" normalizeRanks",()=>Fa(e)),n(" assignRankMinMax",()=>uo(e)),n(" removeEdgeLabelProxies",()=>fo(e)),n(" normalize.run",()=>za(e)),n(" parentDummyChains",()=>Ii(e)),n(" addBorderSegments",()=>Ua(e)),n(" order",()=>Si(e)),n(" insertSelfEdges",()=>bo(e)),n(" adjustCoordinateSystem",()=>Va(e)),n(" position",()=>Wi(e)),n(" positionSelfEdges",()=>wo(e)),n(" removeBorderNodes",()=>go(e)),n(" normalize.undo",()=>Ka(e)),n(" fixupEdgeLabelCoords",()=>ho(e)),n(" undoCoordinateSystem",()=>Wa(e)),n(" translateGraph",()=>co(e)),n(" assignNodeIntersects",()=>lo(e)),n(" reversePoints",()=>po(e)),n(" acyclic.undo",()=>Ba(e))}function Ji(e,n){l(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),l(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Ki=["nodesep","edgesep","ranksep","marginx","marginy"],Zi={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Qi=["acyclicer","ranker","rankdir","align"],eo=["width","height"],no={width:0,height:0},ro=["minlen","weight","width","height","labeloffset"],to={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},ao=["labelpos"];function io(e){var n=new N({multigraph:!0,compound:!0}),r=oe(e.graph());return n.setGraph(ue({},Zi,ie(r,Ki),q(r,Qi))),l(e.nodes(),function(t){var a=oe(e.node(t));n.setNode(t,aa(ie(a,eo),no)),n.setParent(t,e.parent(t))}),l(e.edges(),function(t){var a=oe(e.edge(t));n.setEdge(t,ue({},to,ie(a,ro),q(a,ao)))}),n}function oo(e){var n=e.graph();n.ranksep/=2,l(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function so(e){l(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),o={rank:(a.rank-t.rank)/2+t.rank,e:n};A(e,"edge-proxy",o,"_ep")}})}function uo(e){var n=0;l(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=S(n,t.maxRank))}),e.graph().maxRank=n}function fo(e){l(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function co(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,o=e.graph(),i=o.marginx||0,s=o.marginy||0;function d(u){var f=u.x,c=u.y,h=u.width,v=u.height;n=Math.min(n,f-h/2),r=Math.max(r,f+h/2),t=Math.min(t,c-v/2),a=Math.max(a,c+v/2)}l(e.nodes(),function(u){d(e.node(u))}),l(e.edges(),function(u){var f=e.edge(u);Object.prototype.hasOwnProperty.call(f,"x")&&d(f)}),n-=i,t-=s,l(e.nodes(),function(u){var f=e.node(u);f.x-=n,f.y-=t}),l(e.edges(),function(u){var f=e.edge(u);l(f.points,function(c){c.x-=n,c.y-=t}),Object.prototype.hasOwnProperty.call(f,"x")&&(f.x-=n),Object.prototype.hasOwnProperty.call(f,"y")&&(f.y-=t)}),o.width=r-n+i,o.height=a-t+s}function lo(e){l(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),o,i;r.points?(o=r.points[0],i=r.points[r.points.length-1]):(r.points=[],o=a,i=t),r.points.unshift(Ve(t,o)),r.points.push(Ve(a,i))})}function ho(e){l(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function po(e){l(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function go(e){l(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),o=e.node(W(r.borderLeft)),i=e.node(W(r.borderRight));r.width=Math.abs(i.x-o.x),r.height=Math.abs(a.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),l(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function vo(e){l(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function bo(e){var n=ne(e);l(n,function(r){var t=0;l(r,function(a,o){var i=e.node(a);i.order=o+t,l(i.selfEdges,function(s){A(e,"selfedge",{width:s.label.width,height:s.label.height,rank:i.rank,order:o+ ++t,e:s.e,label:s.label},"_se")}),delete i.selfEdges})})}function wo(e){l(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,o=t.y,i=r.x-a,s=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*i/3,y:o-s},{x:a+5*i/6,y:o-s},{x:a+i,y:o},{x:a+5*i/6,y:o+s},{x:a+2*i/3,y:o+s}],r.label.x=r.x,r.label.y=r.y}})}function ie(e,n){return ee(q(e,n),Number)}function oe(e){var n={};return l(e,function(r,t){n[t.toLowerCase()]=r}),n}var en=x((e,n,r)=>Math.max(n,Math.min(r,e)),"clamp"),nn=x((e="TB")=>{switch(e){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),mo=x(e=>e==="flowchart"||e==="flowchart-v2"||e==="stateDiagram"||e==="er"||e==="classDiagram","shouldMergeSelfLoopSegments"),yo=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],xo=x((e,n,r,t,a)=>{const o=[],i=new Set;if(r.forEach(({start:f,end:c})=>{f!==t&&i.add(f),c!==t&&i.add(c)}),i.forEach(f=>{const c=e.node(f);typeof c?.x=="number"&&typeof c?.y=="number"&&o.push(c)}),o.length===0&&r.forEach(({edge:f})=>{(f.points??[]).forEach(c=>{typeof c?.x=="number"&&typeof c?.y=="number"&&o.push(c)})}),o.length===0)return nn(a);const s=o.reduce((f,c)=>({x:f.x+c.x/o.length,y:f.y+c.y/o.length}),{x:0,y:0}),d=s.x-n.x,u=s.y-n.y;return Math.abs(d)>Math.abs(u)?d>0?"right":"left":Math.abs(u)>0?u>0?"bottom":"top":nn(a)},"getSelfLoopSide"),Eo=x((e,n="top",r=0,t=0)=>{const a=e.x,o=e.y-r,i=e.width/2,s=e.height/2,d=Math.max(36,Math.min(100,e.width*.8)),u=en(Math.max(t,e.width*.35),36,d),f=en(Math.min(e.width,e.height)*.45,24,48);switch(n){case"bottom":{const c=o+s;return[{x:a-u/2,y:c},{x:a-u/2,y:c+f},{x:a+u/2,y:c+f},{x:a+u/2,y:c}]}case"right":{const c=a+i;return[{x:c,y:o-u/2},{x:c+f,y:o-u/2},{x:c+f,y:o+u/2},{x:c,y:o+u/2}]}case"left":{const c=a-i;return[{x:c,y:o-u/2},{x:c-f,y:o-u/2},{x:c-f,y:o+u/2},{x:c,y:o+u/2}]}case"top":default:{const c=o-s;return[{x:a-u/2,y:c},{x:a-u/2,y:c-f},{x:a+u/2,y:c-f},{x:a+u/2,y:c}]}}},"getSelfLoopPoints"),Lo=x((e,n,r="top",t=0,a={})=>{const i=e.x,s=e.y-t,d=a.width??0,u=a.height??0;switch(r){case"bottom":return{x:i,y:Math.max(...n.map(f=>f.y))+u/2+4};case"right":return{x:Math.max(...n.map(f=>f.x))+d/2+4,y:s};case"left":return{x:Math.min(...n.map(f=>f.x))-d/2-4,y:s};case"top":default:return{x:i,y:Math.min(...n.map(f=>f.y))-u/2-4}}},"getSelfLoopLabelPosition"),Gn=x((e,n=0,{mergeSelfLoops:r=!0}={})=>{const t=new Map,a=[],o=e.graph()?.rankdir;return e.edges().forEach(i=>{const s=e.edge(i);if(r&&s.selfLoop){const d=s.selfLoop.id;t.has(d)||t.set(d,[]),t.get(d).push({edge:s,start:i.v,end:i.w})}else a.push({edge:s,start:i.v,end:i.w})}),t.forEach(i=>{if(i.length!==3){i.forEach(w=>a.push(w));return}i.sort((w,P)=>w.edge.selfLoop.order-P.edge.selfLoop.order);const[s,d,u]=i,f=s.edge.originalEdge??d.edge.originalEdge??u.edge.originalEdge??d.edge,c=e.node(f.start);if(!c){i.forEach(w=>a.push(w));return}const h={width:d.edge.width,height:d.edge.height},v=xo(e,c,i,f.start,o),p=Eo(c,v,n,h.width??0),g=Lo(c,p,v,n,h),b={...d.edge,...f,id:f.id,points:p,start:f.start,end:f.end,x:g.x,y:g.y,width:h.width,height:h.height,labelStyle:d.edge.labelStyle,fromCluster:s.edge.fromCluster??d.edge.fromCluster??u.edge.fromCluster,toCluster:s.edge.toCluster??d.edge.toCluster??u.edge.toCluster};delete b.selfLoop,delete b.originalEdge,a.push({edge:b,start:b.start,end:b.end})}),a},"getEdgesToRender"),Yn=x(async({element:e,graph:n,diagramType:r,id:t,parentCluster:a,siteConfig:o})=>{const i=n.graph().rankdir;m.trace("Dir in recursive render - dir:",i);const{clusters:s,edgePaths:d,edgeLabels:u,nodes:f,rootGroups:c}=Hn(e,{edgePathsClass:"edgePaths"});n.nodes()?m.info("Recursive render XXX",n.nodes()):m.info("No nodes found for",n),n.edges().length>0&&m.info("Recursive edges",n.edge(n.edges()[0]));const h=mo(r);await Promise.all(n.nodes().map(async function(g){const b=n.node(g);if(a!==void 0){const w=JSON.parse(JSON.stringify(a.clusterData));m.trace(`Setting data for parent cluster XXX
|
|
2
2
|
Node.id = `,g,`
|
|
3
3
|
data=`,w.height,`
|
|
4
4
|
Parent cluster`,a.height),n.setNode(a.id,w),n.parent(g)||(m.trace("Setting parent",g,a.id),n.setParent(g,a.id,w))}if(m.info("(Insert) Node XXX"+g+": "+JSON.stringify(n.node(g))),b?.clusterNode){m.info("Cluster identified XBX",g,b.width,n.node(g));const{ranksep:w,nodesep:P}=n.graph();b.graph.setGraph({...b.graph.graph(),ranksep:w+25,nodesep:P});const Ne=await So({element:f,graph:b.graph,diagramType:r,id:t,parentCluster:n.node(g),siteConfig:o}),Pe=Ne.elem;Kn(b,Pe),b.diff=Ne.diff||0,m.info("New compound node after recursive render XAX",g,"width",b.width,"height",b.height),Zn(Pe,b)}else n.children(g).length>0?(m.trace("Cluster - the non recursive path XBX",g,b.id,b,b.width,"Graph:",n),m.trace(Te(b.id,n)),T.set(b.id,{id:Te(b.id,n),node:b})):(m.trace("Node - the non recursive path XAX",g,f,n.node(g),i),await zn(f,n.node(g),{config:o,dir:i}))})),await x(async()=>{const g=n.edges().map(async function(b){const w=n.edge(b.v,b.w,b.name);if(m.info("Edge "+b.v+" -> "+b.w+": "+JSON.stringify(b)),m.info("Edge "+b.v+" -> "+b.w+": ",b," ",JSON.stringify(n.edge(b))),m.info("Fix",T,"ids:",b.v,b.w,"Translating: ",T.get(b.v),T.get(b.w)),h&&w.selfLoop){if(w.selfLoop.order!==1)return;const P={...w.originalEdge,...w,id:w.selfLoop.id,startLabelLeft:w.originalEdge?.startLabelLeft??w.startLabelLeft,startLabelRight:w.originalEdge?.startLabelRight??w.startLabelRight,endLabelLeft:w.originalEdge?.endLabelLeft??w.endLabelLeft,endLabelRight:w.originalEdge?.endLabelRight??w.endLabelRight};await Se(u,P),w.width=P.width,w.height=P.height,w.labelStyle=P.labelStyle;return}await Se(u,w)});await Promise.all(g)},"processEdges")();const{subGraphTitleTotalMargin:p}=Qn(o);return{elem:c,graph:n,groups:{clusters:s,edgePaths:d,edgeLabels:u,nodes:f,rootGroups:c},diagramType:r,id:t,mergeSelfLoops:h,subGraphTitleTotalMargin:p}},"measureDagreGraph"),Un=x(e=>{m.info("############################################# XXX"),m.info("### Layout ### XXX"),m.info("############################################# XXX"),Hi(e)},"runDagreGraphLayout"),Oo=x((e,n,r)=>{const t=e.node(n);if(!t)return;const a={...t};return t?.clusterNode?a.y=(t.y??0)+r:e.children(n).length>0?a.height=(t.height??0)+r:a.y=(t.y??0)+r/2,a},"normalizeDagreNode"),rn=x((e,n)=>{yo.forEach(r=>{n[r]!==void 0&&(e[r]=n[r])})},"applyDagreNodeLayout"),No=x((e,n,r,t)=>({...e,start:e.start??n,end:e.end??r,points:(e.points??[]).map(a=>({...a,y:typeof a.y=="number"?a.y+t:a.y}))}),"normalizeDagreEdge"),Po=x((e,n)=>{const{graph:r,mergeSelfLoops:t,subGraphTitleTotalMargin:a=0}=n,o=new Map(e.nodes.map(s=>[s.id,s]));ce(r).forEach(s=>{const d=Oo(r,s,a);if(!d)return;rn(r.node(s),d);const u=o.get(s);u&&rn(u,d)});const i=a/2;return e.edges=Gn(r,i,{mergeSelfLoops:t}).map(({edge:s,start:d,end:u})=>No(s,d,u,i)),e},"applyDagreLayoutResult"),To=x(async({elem:e,graph:n,groups:{clusters:r,edgePaths:t},diagramType:a,id:o,mergeSelfLoops:i,subGraphTitleTotalMargin:s})=>{let d=0;await Promise.all(ce(n).map(async function(c){const h=n.node(c);if(m.info("Position XBX => "+c+": ("+h.x,","+h.y,") width: ",h.width," height: ",h.height),h?.clusterNode)h.y+=s,m.info("A tainted cluster node XBX1",c,h.id,h.width,h.height,h.x,h.y,n.parent(c)),T.get(h.id).node=h,Ce(h);else if(n.children(c).length>0){m.info("A pure cluster node XBX1",c,h.id,h.x,h.y,h.width,h.height,n.parent(c)),h.height+=s,n.node(h.parentId);const v=h?.padding/2||0,p=h?.labelBBox?.height||0,g=p-v||0;m.debug("OffsetY",g,"labelHeight",p,"halfPadding",v),await er(r,h),T.get(h.id).node=h}else{const v=n.node(h.parentId);h.y+=s/2,m.info("A regular node XBX1 - using the padding",h.id,"parent",h.parentId,h.width,h.height,h.x,h.y,"offsetY",h.offsetY,"parent",v,v?.offsetY,h),Ce(h)}}));const u=s/2;return Gn(n,u,{mergeSelfLoops:i}).forEach(function({edge:c,start:h,end:v}){m.info("Edge "+h+" -> "+v+": "+JSON.stringify(c),c),c.points.forEach(w=>w.y+=u);const p=n.node(h),g=n.node(v),b=nr(t,c,T,a,p,g,o);rr(c,b)}),n.nodes().forEach(function(c){const h=n.node(c);m.info(c,h.type,h.diff),h.isGroup&&(d=h.diff)}),m.warn("Returning from recursive render XAX",e,d),{elem:e,diff:d}},"paintDagreLayoutCore"),So=x(async e=>{const n=await Yn(e);return Un(n.graph),await To(n)},"renderDagreSubgraph"),Vn=x(e=>{const n=new N({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.nodeSpacing||e.config?.flowchart?.nodeSpacing,ranksep:e.config?.rankSpacing||e.rankSpacing||e.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return e.nodes.forEach(r=>{n.setNode(r.id,{...r}),r.parentId&&n.setParent(r.id,r.parentId)}),m.debug("Edges:",e.edges),e.edges.forEach(r=>{if(r.start===r.end){const t=r.start,a=t+"---"+t+"---1",o=t+"---"+t+"---2",i=n.node(t);n.setNode(a,{domId:a,id:a,parentId:i.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(a,i.parentId),n.setNode(o,{domId:o,id:o,parentId:i.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(o,i.parentId);const s=structuredClone(r),d=structuredClone(r),u=structuredClone(r),f=structuredClone(r);d.originalEdge=s,d.selfLoop={id:s.id,order:0},u.originalEdge=s,u.selfLoop={id:s.id,order:1},f.originalEdge=s,f.selfLoop={id:s.id,order:2},d.label="",d.arrowTypeEnd="none",d.endLabelLeft="",d.endLabelRight="",d.startLabelLeft="",d.id=t+"-cyclic-special-1",u.startLabelRight="",u.startLabelLeft="",u.endLabelLeft="",u.endLabelRight="",u.arrowTypeStart="none",u.arrowTypeEnd="none",u.id=t+"-cyclic-special-mid",f.label="",f.startLabelRight="",f.startLabelLeft="",f.arrowTypeStart="none",i.isGroup&&(d.fromCluster=t,f.toCluster=t),f.id=t+"-cyclic-special-2",f.arrowTypeStart="none",n.setEdge(t,a,d,t+"-cyclic-special-0"),n.setEdge(a,o,u,t+"-cyclic-special-1"),n.setEdge(o,t,f,t+"-cyclic-special-2")}else n.setEdge(r.start,r.end,{...r},r.id)}),Wn(n),{graph:n}},"prepareLayoutForDagre"),Co=x(async(e,{element:n,preparedLayout:r})=>{const t=r??Vn(e),a=Jn(),o=await Yn({element:n,graph:t.graph,diagramType:e.type,id:e.diagramId,parentCluster:void 0,siteConfig:a});return t.measuredLayout=o,o},"measureDagreLayout"),Io=x((e,n)=>{const r=n.preparedLayout?.measuredLayout;if(!r)throw new Error("runDagreLayoutCore requires measureDagreLayout to run first");return Un(r.graph),Po(e,r),r},"runDagreLayoutCore"),Ro=x((e,{measure:n})=>ce(n.graph).map(r=>n.graph.node(r)).filter(Boolean),"getDagrePaintNodes"),ko=x((e,n,{measure:r})=>e?r.graph.node(e):void 0,"getDagreEdgeNode"),jo=qn({prepareLayout:Vn,measureLayout:Co,runLayoutCore:Io,paintOptions:{clusterDb:T,getNodes:Ro,getEdgeNode:ko,skipNode:x((e,{measure:n})=>!n.graph.hasNode(e.id),"skipNode"),isCluster:x((e,{measure:n})=>n.graph.hasNode(e.id)&&(n.graph.children(e.id)??[]).length>0,"isCluster")}});export{Po as applyDagreLayoutResult,Gn as getEdgesToRender,Co as measureDagreLayout,Vn as prepareLayoutForDagre,jo as render,Io as runDagreLayoutCore};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as z}from"./
|
|
1
|
+
import{p as z}from"./CPaH4fRt.js";import{b as f,q as B,aX as E,B as F,ay as $,a_ as P,V as A,b0 as W,Y as _,U as N,aZ as Y,W as L,O as M,r as O}from"./DxPvfI2H.js";import{p as I}from"./BgDnzAo4.js";var U=M.packet,u,C=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=A,this.setDiagramTitle=W,this.getDiagramTitle=_,this.getAccDescription=N,this.setAccDescription=Y}getConfig(){const t=B({...U,...L().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){O(),this.packet=[]}},f(u,"PacketDB"),u),X=1e4,j=f((e,t)=>{z(e,t);let r=-1,s=[],i=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:o,bits:d,label:g}of e.blocks){if(a!==void 0&&o!==void 0&&o<a)throw new Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${o??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(o??=a+(d??1)-1,d??=o-a+1,r=o,$.debug(`Packet block ${a} - ${r} with label ${g}`);s.length<=l+1&&t.getPacket().length<X;){const[c,p]=q({start:a,end:o,bits:d,label:g},i,l);if(s.push(c),c.end+1===i*l&&(t.pushWord(s),s=[],i++),!p)break;({start:a,end:o,bits:d,label:g}=p)}}t.pushWord(s)},"populate"),q=f((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,i=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),S={parser:{yy:void 0},parse:f(async e=>{const t=await I("packet",e),r=S.parser?.yy;if(!(r instanceof C))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");$.debug(t),j(t,r)},"parse")},G=f((e,t,r,s)=>{const i=s.db,l=i.getConfig(),{rowHeight:a,paddingY:o,bitWidth:d,bitsPerRow:g}=l,c=i.getPacket(),p=i.getDiagramTitle(),m=a+o,n=m*(c.length+1)-(p?0:a),h=d*g+2,k=E(t);k.attr("viewBox",`0 0 ${h} ${n}`),F(k,n,h,l.useMaxWidth);for(const[x,b]of c.entries())H(k,b,x,l);k.append("text").text(p).attr("x",h/2).attr("y",n-m/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=f((e,t,r,{rowHeight:s,paddingX:i,paddingY:l,bitWidth:a,bitsPerRow:o,showBits:d,bitOrder:g})=>{const c=e.append("g"),p=r*(s+l)+l,m=g==="descending";for(const n of t){const h=n.end-n.start+1,k=n.start%o,b=(m?o-k-h:k)*a+1,w=h*a-i;if(c.append("rect").attr("x",b).attr("y",p).attr("width",w).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",b+w/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!d)continue;const[D,T]=m?[n.end,n.start]:[n.start,n.end],v=h===1,y=p-2;c.append("text").attr("x",b+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(D),v||c.append("text").attr("x",b+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),K={draw:G},V={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Z=f(({packet:e}={})=>{const t=B(V,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${t.byteFontSize};
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bo as z,bs as I,a7 as O,ay as x,W as y,aD as S,a5 as Q,bf as j,bA as q,bn as E,c9 as G,aA as r,aB as J}from"./3SdAC2_C.js";import{t as K,bo as a,bw as L,b as M,bp as N}from"./
|
|
1
|
+
import{bo as z,bs as I,a7 as O,ay as x,W as y,aD as S,a5 as Q,bf as j,bA as q,bn as E,c9 as G,aA as r,aB as J}from"./3SdAC2_C.js";import{t as K,bo as a,bw as L,b as M,bp as N}from"./Dws-34a7.js";import{b as R}from"./BD9db4FR.js";import"./DWa-2rkZ.js";import{i as U}from"./DLCFUd4s.js";import{t as w}from"./D-rRuAXZ.js";import{a as V}from"./BByf3ILj.js";import{az as T,av as n,aQ as X}from"./BIGqOuh0.js";import{F as Y}from"./BNa9zzEx.js";var Z=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),$=J("<button><!></button>");function A(v,t){const _=z();if(new.target)return K({component:A,...v});I(t,!0);let p=a(t,"children",7),l=a(t,"child",7),i=a(t,"id",23,()=>T(_)),d=a(t,"ref",15,null),c=a(t,"type",7,"button"),f=a(t,"disabled",7,!1),u=a(t,"openOnHover",7,!1),g=a(t,"openDelay",7,700),m=a(t,"closeDelay",7,300),B=N(t,Z);const h=V.create({id:n(()=>i()),ref:n(()=>d(),e=>d(e)),disabled:n(()=>!!f()),openOnHover:n(()=>u()),openDelay:n(()=>g()),closeDelay:n(()=>m())}),D=G(()=>X(B,h.props,{type:c()}));var C={get children(){return p()},set children(e){p(e),r()},get child(){return l()},set child(e){l(e),r()},get id(){return i()},set id(e=T(_)){i(e),r()},get ref(){return d()},set ref(e=null){d(e),r()},get type(){return c()},set type(e="button"){c(e),r()},get disabled(){return f()},set disabled(e=!1){f(e),r()},get openOnHover(){return u()},set openOnHover(e=!1){u(e),r()},get openDelay(){return g()},set openDelay(e=700){g(e),r()},get closeDelay(){return m()},set closeDelay(e=300){m(e),r()},$set:L,$on:(e,P)=>M(t,e,P)};return Y(v,{get id(){return i()},get ref(){return h.opts.ref},children:(e,P)=>{var H=O(),F=x(H);{var W=s=>{var o=O(),b=x(o);w(b,l,()=>({props:S(D)})),y(s,o)},k=s=>{var o=$();R(o,()=>({...S(D)}));var b=Q(o);w(b,()=>p()??j),q(o),y(s,o)};U(F,s=>{l()?s(W):s(k,-1)})}y(e,H)},$$slots:{default:!0}}),E(C)}const de=A;export{A as P,de as T};
|