@intent-hq/web 2.320.1 → 2.321.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{sWFJeG75.js → -OAW1EMW.js} +1 -1
- package/web/app/immutable/chunks/{CXux1NAJ.js → -WHIysNv.js} +1 -1
- package/web/app/immutable/chunks/{BTVnc-yD.js → 1hja73nv.js} +1 -1
- package/web/app/immutable/chunks/{3TX-_riq.js → 595JSfYJ.js} +4 -4
- package/web/app/immutable/chunks/{CBE9bOjQ.js → 9ZBkr0Qf.js} +1 -1
- package/web/app/immutable/chunks/{DWcUEP_3.js → B-obUB2z.js} +4 -4
- package/web/app/immutable/chunks/{DamIfQPR.js → B0SbPsRb.js} +1 -1
- package/web/app/immutable/chunks/{CAhuuwZ9.js → B1Ss_ZJB.js} +1 -1
- package/web/app/immutable/chunks/B21V7_mT.js +6 -0
- package/web/app/immutable/chunks/{9Lm8k_8r.js → B3X_dqJy.js} +1 -1
- package/web/app/immutable/chunks/{DbSP_yi5.js → B5plHk_3.js} +1 -1
- package/web/app/immutable/chunks/{4o1DPfmL.js → B6l2HPmZ.js} +1 -1
- package/web/app/immutable/chunks/{Dbcyn1sm.js → B7Ka_0Oj.js} +1 -1
- package/web/app/immutable/chunks/{CGVZRNqq.js → B8EyUhsU.js} +1 -1
- package/web/app/immutable/chunks/{DgDI47Tl.js → B8lRKrSj.js} +1 -1
- package/web/app/immutable/chunks/{ivVGXMNS.js → B8z7D92E.js} +1 -1
- package/web/app/immutable/chunks/{BRqOyyER.js → B9_x-PiX.js} +1 -1
- package/web/app/immutable/chunks/{Dlalsrb2.js → BA_dLJoi.js} +1 -1
- package/web/app/immutable/chunks/{CMcfEzCt.js → BBFIIkt3.js} +1 -1
- package/web/app/immutable/chunks/{DOxrGs5l.js → BC2qBoqJ.js} +1 -1
- package/web/app/immutable/chunks/{CjOd6IrN.js → BCXXXhph.js} +1 -1
- package/web/app/immutable/chunks/{TRcwahzR.js → BGDIUFls.js} +1 -1
- package/web/app/immutable/chunks/{DSP3ClFU.js → BIyU-DJK.js} +1 -1
- package/web/app/immutable/chunks/{BsCDeyle.js → BJevbZ6b.js} +1 -1
- package/web/app/immutable/chunks/{CZFJH8pA.js → BKGDTzxi.js} +29 -29
- package/web/app/immutable/chunks/{Dczc0YMo.js → BKjTzecb.js} +1 -1
- package/web/app/immutable/chunks/BLK9_MXJ.js +1 -0
- package/web/app/immutable/chunks/{Bk4gFCP5.js → BLPUk2wE.js} +1 -1
- package/web/app/immutable/chunks/{CK2xtMaJ.js → BMeK3RDc.js} +1 -1
- package/web/app/immutable/chunks/{fUyHJpWx.js → BOCB_5Mq.js} +1 -1
- package/web/app/immutable/chunks/{B524kvVw.js → BOIp2sA8.js} +2 -2
- package/web/app/immutable/chunks/{CVQvxrRM.js → BOXp2u2v.js} +1 -1
- package/web/app/immutable/chunks/{CKiOztob.js → BQSDfUdM.js} +1 -1
- package/web/app/immutable/chunks/{vnFqKiHP.js → BTFetavf.js} +1 -1
- package/web/app/immutable/chunks/{r2I2bB7k.js → BUJszVQU.js} +1 -1
- package/web/app/immutable/chunks/{BxxQ5pIU.js → BUgNMnQK.js} +1 -1
- package/web/app/immutable/chunks/{CuTNRxpo.js → BVu_zw0i.js} +1 -1
- package/web/app/immutable/chunks/{DtL3mwiX.js → BW92tDoj.js} +1 -1
- package/web/app/immutable/chunks/{D7hkdi6r.js → BaY77ElS.js} +1 -1
- package/web/app/immutable/chunks/{CW_MTCOu.js → BepfjQky.js} +1 -1
- package/web/app/immutable/chunks/{DDdEHmdT.js → BfDD9-8-.js} +1 -1
- package/web/app/immutable/chunks/{DSbw-nyW.js → BfLoMdoJ.js} +1 -1
- package/web/app/immutable/chunks/{ChV6OcuF.js → BhLhuxzO.js} +1 -1
- package/web/app/immutable/chunks/{IYLMGQxr.js → BhQoULkp.js} +1 -1
- package/web/app/immutable/chunks/{D02FkLBh.js → BhptSt_t.js} +1 -1
- package/web/app/immutable/chunks/{DjWen1vr.js → BnfqUxHy.js} +1 -1
- package/web/app/immutable/chunks/{CrkvePNd.js → BoRJGEYY.js} +1 -1
- package/web/app/immutable/chunks/{BoAwi0I6.js → BqY6zXt8.js} +1 -1
- package/web/app/immutable/chunks/{CgQiyraX.js → Bswi_ddk.js} +1 -1
- package/web/app/immutable/chunks/{QeTaV4Op.js → BuSLaAvw.js} +1 -1
- package/web/app/immutable/chunks/{D-NAfI6p.js → Bv8X8HVG.js} +1 -1
- package/web/app/immutable/chunks/BxYEiUJG.js +1 -0
- package/web/app/immutable/chunks/{gV7ZxrZ2.js → BxwVL-Fm.js} +1 -1
- package/web/app/immutable/chunks/{R6dAjEem.js → By6RneNn.js} +1 -1
- package/web/app/immutable/chunks/{Dpk7e0gp.js → ByHaUdGf.js} +1 -1
- package/web/app/immutable/chunks/{sOHh4EMg.js → ByrMuSC8.js} +1 -1
- package/web/app/immutable/chunks/{DgvGDMI5.js → Bz3RpCLK.js} +1 -1
- package/web/app/immutable/chunks/{DVijqcE1.js → BzxV99e1.js} +1 -1
- package/web/app/immutable/chunks/{5BaUgoc7.js → C-Bae4WT.js} +1 -1
- package/web/app/immutable/chunks/{oB6nSTCC.js → C49MHRWB.js} +1 -1
- package/web/app/immutable/chunks/{BQKHJuv8.js → C4v4cxss.js} +1 -1
- package/web/app/immutable/chunks/{Ck3dkN4B.js → C7ROHbZN.js} +1 -1
- package/web/app/immutable/chunks/{Df_CcsUd.js → C8PJPEyt.js} +1 -1
- package/web/app/immutable/chunks/{49Xcxy9Z.js → C8j9JMqo.js} +1 -1
- package/web/app/immutable/chunks/{OvSKCwS-.js → C9X3oeee.js} +2 -2
- package/web/app/immutable/chunks/{CZ5Pr0zI.js → CAlQoToi.js} +1 -1
- package/web/app/immutable/chunks/{CCghBHzC.js → CAqQ6ocO.js} +1 -1
- package/web/app/immutable/chunks/{lzfQOUtM.js → CBB0H9gy.js} +1 -1
- package/web/app/immutable/chunks/{DJbnWCnN.js → CBt1geRx.js} +6 -6
- package/web/app/immutable/chunks/{DlUfd75E.js → CCFv83XE.js} +3 -3
- package/web/app/immutable/chunks/{DgvFQ5ps.js → CEifkBBF.js} +1 -1
- package/web/app/immutable/chunks/{V_BIwIYH.js → CF05BHVg.js} +2 -2
- package/web/app/immutable/chunks/{DKBox7Ew.js → CFUuuOCk.js} +1 -1
- package/web/app/immutable/chunks/{C72zM9oE.js → CFpa0qKK.js} +1 -1
- package/web/app/immutable/chunks/CKVMwQIU.js +19 -0
- package/web/app/immutable/chunks/{DQSz8rIC.js → CKwUXTNV.js} +5 -5
- package/web/app/immutable/chunks/{4EPU-1_C.js → CNfmWkr2.js} +1 -1
- package/web/app/immutable/chunks/{C9Az19Q-.js → COHcJhIZ.js} +1 -1
- package/web/app/immutable/chunks/{Do2QepJk.js → CPTVx1j_.js} +1 -1
- package/web/app/immutable/chunks/{BJfH3e03.js → CQR2-ULA.js} +3 -3
- package/web/app/immutable/chunks/{DB531Hr_.js → CRIiIVFe.js} +2 -2
- package/web/app/immutable/chunks/{CCVg2HgS.js → CRVLGDX1.js} +1 -1
- package/web/app/immutable/chunks/{Dby-RtfB.js → CShmL-bJ.js} +1 -1
- package/web/app/immutable/chunks/{DU9iEtZ1.js → CVXLAap3.js} +1 -1
- package/web/app/immutable/chunks/{BLl4jbbs.js → CVpyP8V1.js} +2 -2
- package/web/app/immutable/chunks/{V4Dt-iuy.js → CVxxrZlU.js} +1 -1
- package/web/app/immutable/chunks/{CAoY2-K6.js → CZHW0zTR.js} +1 -1
- package/web/app/immutable/chunks/{BMJ3_jM1.js → C_J-ZvyS.js} +1 -1
- package/web/app/immutable/chunks/{D_FHOcPH.js → C_etBYrd.js} +1 -1
- package/web/app/immutable/chunks/{BZrP_BN5.js → Ccao0BPS.js} +2 -2
- package/web/app/immutable/chunks/{CMeoq2YD.js → Cd2nCrGL.js} +1 -1
- package/web/app/immutable/chunks/{B-NH8jPK.js → Cg1Q3Vce.js} +1 -1
- package/web/app/immutable/chunks/{CPObUSo8.js → Cg1YDdPt.js} +1 -1
- package/web/app/immutable/chunks/{mk8wN9pR.js → CgTaoYRE.js} +1 -1
- package/web/app/immutable/chunks/{IwQXvQKq.js → CgX-NR2x.js} +1 -1
- package/web/app/immutable/chunks/{DZxiqmZj.js → CgYFLqPV.js} +1 -1
- package/web/app/immutable/chunks/{BkH6TsO0.js → ChoOa3ue.js} +1 -1
- package/web/app/immutable/chunks/ChwJR7tq.js +2 -0
- package/web/app/immutable/chunks/{Dy4G53ce.js → CjMMRJKO.js} +1 -1
- package/web/app/immutable/chunks/{CrF5hjNA.js → Cjt2NmNL.js} +1 -1
- package/web/app/immutable/chunks/{VE9Tc-Fm.js → CkCvlKVo.js} +2 -2
- package/web/app/immutable/chunks/{D7ZBvVv7.js → CkFyNl9C.js} +1 -1
- package/web/app/immutable/chunks/{zl8Sz0Gx.js → CkO5mH9l.js} +3 -3
- package/web/app/immutable/chunks/{DVX1HL-4.js → CkVv_2uN.js} +1 -1
- package/web/app/immutable/chunks/{DU9yd1xn.js → CksqvVEv.js} +1 -1
- package/web/app/immutable/chunks/{SrOLwB5L.js → ClKXAKis.js} +1 -1
- package/web/app/immutable/chunks/{CcjhvQaU.js → CmdmUBjO.js} +1 -1
- package/web/app/immutable/chunks/{BvO0zD3q.js → Cn3sgfe9.js} +1 -1
- package/web/app/immutable/chunks/{DudXAl_N.js → CnGmyG1N.js} +1 -1
- package/web/app/immutable/chunks/{CwKQMp5y.js → Cnv2xfJ5.js} +1 -1
- package/web/app/immutable/chunks/{DFRP5ruh.js → CpHf2NNU.js} +2 -2
- package/web/app/immutable/chunks/{9tzjcklF.js → CpqBzFAh.js} +1 -1
- package/web/app/immutable/chunks/{BBvT7Bb8.js → Cs29mItj.js} +1 -1
- package/web/app/immutable/chunks/{Dld3dCA-.js → CtlvWnL2.js} +1 -1
- package/web/app/immutable/chunks/{DkrIcKd4.js → CukTrqVi.js} +3 -3
- package/web/app/immutable/chunks/{Cmsg1-Jz.js → CvEJT2Bp.js} +1 -1
- package/web/app/immutable/chunks/{BtA94G-4.js → CwCU1Sl2.js} +1 -1
- package/web/app/immutable/chunks/{DeFnstZp.js → Cx6BBijv.js} +1 -1
- package/web/app/immutable/chunks/{DDhu5Shq.js → CxFIgZQh.js} +4 -4
- package/web/app/immutable/chunks/{CI-U2zwu.js → CxH_XgDD.js} +1 -1
- package/web/app/immutable/chunks/{Ca0VZzWN.js → CyDNFzzR.js} +1 -1
- package/web/app/immutable/chunks/{DBEuoua2.js → CzJkcVDg.js} +2 -2
- package/web/app/immutable/chunks/{BnY6qa9O.js → D0t3600U.js} +1 -1
- package/web/app/immutable/chunks/{D2MFHl3c.js → D2cK1lQ1.js} +1 -1
- package/web/app/immutable/chunks/{C23Piy_l.js → D4GiefG7.js} +1 -1
- package/web/app/immutable/chunks/{273-ejOd.js → D58l9gbk.js} +1 -1
- package/web/app/immutable/chunks/{Byh9jXBr.js → D7DC5szJ.js} +1 -1
- package/web/app/immutable/chunks/{Cm-Ux8AK.js → D7G7K7c-.js} +1 -1
- package/web/app/immutable/chunks/{CT5WLLvq.js → D7Ooq-cX.js} +1 -1
- package/web/app/immutable/chunks/{CJhkZF1l.js → D7T2_Y9j.js} +1 -1
- package/web/app/immutable/chunks/{YGDnq71P.js → D7gneRCc.js} +1 -1
- package/web/app/immutable/chunks/{CTIoKRdg.js → D8UKP7YR.js} +1 -1
- package/web/app/immutable/chunks/{BwfkZxtl.js → DA-H5C8Y.js} +1 -1
- package/web/app/immutable/chunks/{Bv7Cc181.js → DA6yyw4t.js} +1 -1
- package/web/app/immutable/chunks/{BB6TPLRQ.js → DCK0Naee.js} +1 -1
- package/web/app/immutable/chunks/{cYktK7bI.js → DDQNWelJ.js} +10 -10
- package/web/app/immutable/chunks/{u-Ou3zHY.js → DEG0t0e4.js} +2 -2
- package/web/app/immutable/chunks/{i3h2CX4F.js → DFNIzPXh.js} +1 -1
- package/web/app/immutable/chunks/{55B_mQC6.js → DG59horb.js} +2 -2
- package/web/app/immutable/chunks/{XL81JlY3.js → DGwsJJPM.js} +1 -1
- package/web/app/immutable/chunks/{C2pLxq9N.js → DHDWM67z.js} +1 -1
- package/web/app/immutable/chunks/{CIH3mb7Y.js → DI5kEG-f.js} +1 -1
- package/web/app/immutable/chunks/{BS3L5ssG.js → DILsnJHr.js} +1 -1
- package/web/app/immutable/chunks/{CcVvQKcJ.js → DJ4kCFeu.js} +1 -1
- package/web/app/immutable/chunks/{eeOO6ePS.js → DK60Gbnz.js} +1 -1
- package/web/app/immutable/chunks/{C-_w8CdN.js → DLL1CDAX.js} +2 -2
- package/web/app/immutable/chunks/{Btkc4GhJ.js → DN-zwgZs.js} +1 -1
- package/web/app/immutable/chunks/{CnlzKY2y.js → DNmwPq0o.js} +1 -1
- package/web/app/immutable/chunks/{B9MzVcgv.js → DPbHVaEp.js} +3 -3
- package/web/app/immutable/chunks/{CW_i4yzi.js → DPu6l1xr.js} +1 -1
- package/web/app/immutable/chunks/{DUW0BlH5.js → DQ5722kb.js} +1 -1
- package/web/app/immutable/chunks/{IsZuHG2a.js → DQJIFwfN.js} +1 -1
- package/web/app/immutable/chunks/{DYepVMa7.js → DSAz0okZ.js} +3 -3
- package/web/app/immutable/chunks/{C0Eg_x6y.js → DSK0s2id.js} +1 -1
- package/web/app/immutable/chunks/{B30Ssr1r.js → DSemZQdl.js} +1 -1
- package/web/app/immutable/chunks/{BOypJjQg.js → DWE0HeOH.js} +1 -1
- package/web/app/immutable/chunks/DXQjqgTI.js +2 -0
- package/web/app/immutable/chunks/{BoUhyyfU.js → DXUSKOBi.js} +1 -1
- package/web/app/immutable/chunks/{C0HDG-tg.js → Db4tMHqD.js} +1 -1
- package/web/app/immutable/chunks/{DLme1vI4.js → DbEloQVd.js} +1 -1
- package/web/app/immutable/chunks/{Dtei9o3U.js → DbSExeuK.js} +3 -3
- package/web/app/immutable/chunks/DdyXhBml.js +1 -0
- package/web/app/immutable/chunks/{B-ukGsyU.js → DeAs3CrV.js} +1 -1
- package/web/app/immutable/chunks/{CwSP6heW.js → DfmFIVGk.js} +1 -1
- package/web/app/immutable/chunks/{CDFwOYFZ.js → DgH1Kxzo.js} +1 -1
- package/web/app/immutable/chunks/{jiIr1QvR.js → DhupuNdm.js} +1 -1
- package/web/app/immutable/chunks/{7z2H_RtS.js → DjlgzWYz.js} +1 -1
- package/web/app/immutable/chunks/{DXjHY2hF.js → Djo4jLAK.js} +1 -1
- package/web/app/immutable/chunks/{ipFV2AXr.js → DknRplPn.js} +1 -1
- package/web/app/immutable/chunks/{B1892jNy.js → Dkqghfib.js} +1 -1
- package/web/app/immutable/chunks/{DnIfn_Q5.js → Dl9O9El0.js} +1 -1
- package/web/app/immutable/chunks/{CfpYQrWa.js → DlVuwwPm.js} +1 -1
- package/web/app/immutable/chunks/{C3lmZVdU.js → Do2QraPX.js} +1 -1
- package/web/app/immutable/chunks/{CYvGLw1Y.js → Dpt5qRH-.js} +1 -1
- package/web/app/immutable/chunks/{CCmXROuj.js → DqoSmmzJ.js} +1 -1
- package/web/app/immutable/chunks/{DjfcjPFA.js → DrLFKkMN.js} +1 -1
- package/web/app/immutable/chunks/{Cugknw1m.js → DrV9FRnq.js} +1 -1
- package/web/app/immutable/chunks/DtA2OOMb.js +1 -0
- package/web/app/immutable/chunks/{T2aO1XPv.js → Dw8vhMX8.js} +1 -1
- package/web/app/immutable/chunks/{VKC6gzws.js → Dx4FwkUV.js} +53 -53
- package/web/app/immutable/chunks/{O4y88_QN.js → Dy273g_c.js} +1 -1
- package/web/app/immutable/chunks/{DukwQosN.js → DyAwtID_.js} +1 -1
- package/web/app/immutable/chunks/{_p09hiud.js → HjZp7lPh.js} +1 -1
- package/web/app/immutable/chunks/IVwolD3l.js +1 -0
- package/web/app/immutable/chunks/{ApbPdiAE.js → J2Ik-qgk.js} +1 -1
- package/web/app/immutable/chunks/{H5XG0yyu.js → Jyvn4VFV.js} +2 -2
- package/web/app/immutable/chunks/{DVRDTT5s.js → KbX4WJa3.js} +1 -1
- package/web/app/immutable/chunks/{DsQHEEWt.js → LJbiiLoF.js} +1 -1
- package/web/app/immutable/chunks/{BIzCpN2r.js → M2KsQzCE.js} +1 -1
- package/web/app/immutable/chunks/{DMu4mjpX.js → P5ksjIJq.js} +1 -1
- package/web/app/immutable/chunks/{GzyujEXJ.js → QH2SEUTS.js} +1 -1
- package/web/app/immutable/chunks/{Dk1FwKDL.js → Qo3qzRgV.js} +1 -1
- package/web/app/immutable/chunks/{VlQJw7Mt.js → R4RwwAIT.js} +1 -1
- package/web/app/immutable/chunks/{Bv-JB2Uu.js → R6TUWaQq.js} +1 -1
- package/web/app/immutable/chunks/{CGTFiYKr.js → R7JNw0Kj.js} +1 -1
- package/web/app/immutable/chunks/{D2Hsf4lo.js → R7cFQfJw.js} +1 -1
- package/web/app/immutable/chunks/{j3QkolT-.js → ShyOFQId.js} +3 -3
- package/web/app/immutable/chunks/{BtxYdCDO.js → UJOJMGUV.js} +1 -1
- package/web/app/immutable/chunks/UrKpUjsc.js +1 -0
- package/web/app/immutable/chunks/{JwXVdNK9.js → W3fvY0y9.js} +1 -1
- package/web/app/immutable/chunks/{KJelEqX3.js → Yemr8tAr.js} +1 -1
- package/web/app/immutable/chunks/{COuKp8NZ.js → Z9C8BZgq.js} +1 -1
- package/web/app/immutable/chunks/{mEKKjA-u.js → ZXnl98NQ.js} +1 -1
- package/web/app/immutable/chunks/{BigdBsL9.js → ZZRQ9A5E.js} +1 -1
- package/web/app/immutable/chunks/{Cx547a39.js → _tiHrnhs.js} +4 -4
- package/web/app/immutable/chunks/{BmGPu7Nl.js → bsuDfMJ7.js} +2 -2
- package/web/app/immutable/chunks/{D8l-pxCs.js → cSE4WxMO.js} +1 -1
- package/web/app/immutable/chunks/{D5BYjywr.js → cb3YK4cU.js} +2 -2
- package/web/app/immutable/chunks/{CpnH3je1.js → fR46xO2d.js} +2 -2
- package/web/app/immutable/chunks/{Wm9WFHAU.js → hbDKUMfp.js} +1 -1
- package/web/app/immutable/chunks/{DnWPcgvb.js → hiomoPR0.js} +1 -1
- package/web/app/immutable/chunks/{DcQGtdYG.js → jG9ZxBG9.js} +1 -1
- package/web/app/immutable/chunks/{XWXuV5J_.js → kJEAqQBZ.js} +1 -1
- package/web/app/immutable/chunks/{MJGmlCLu.js → kYECwxqW.js} +1 -1
- package/web/app/immutable/chunks/{CQX4KubR.js → knj_j9t3.js} +1 -1
- package/web/app/immutable/chunks/{DdteGby8.js → oeKvwm9n.js} +1 -1
- package/web/app/immutable/chunks/rVUl07zm.js +1 -0
- package/web/app/immutable/chunks/{D8UQMJEh.js → s0WtN5GJ.js} +1 -1
- package/web/app/immutable/chunks/{DQhHyGm2.js → tF6DpP53.js} +1 -1
- package/web/app/immutable/chunks/{2d9ARddo.js → vZMKGyZD.js} +1 -1
- package/web/app/immutable/chunks/{Le4YFzxz.js → wCe59Qn_.js} +3 -3
- package/web/app/immutable/chunks/{Dkt7Tsgw.js → wL4DOyzk.js} +1 -1
- package/web/app/immutable/chunks/{VKc1-U2z.js → waagD0cO.js} +1 -1
- package/web/app/immutable/chunks/{BpzYGtC7.js → wsChBzD5.js} +1 -1
- package/web/app/immutable/chunks/{CtNKFf3W.js → xXOd43YN.js} +1 -1
- package/web/app/immutable/chunks/{DAgho_P-.js → y427XYTC.js} +1 -1
- package/web/app/immutable/chunks/{CpEHCOut.js → yDAFOpKJ.js} +1 -1
- package/web/app/immutable/chunks/{DDRNgELR.js → yYa77Hy1.js} +1 -1
- package/web/app/immutable/entry/{app.DnikQ4I9.js → app.C4lGM6VF.js} +3 -3
- package/web/app/immutable/entry/start.Dm-EgTQN.js +1 -0
- package/web/app/immutable/nodes/{0.C7A1xQm9.js → 0.qAsdYGwF.js} +1 -1
- package/web/app/immutable/nodes/{1.D3O5lTcl.js → 1.xPfapkeR.js} +1 -1
- package/web/app/immutable/nodes/{10.BaLN4VIK.js → 10.B15mzUUg.js} +4 -4
- package/web/app/immutable/nodes/{11.DNy1N3E_.js → 11.DQfonRjI.js} +1 -1
- package/web/app/immutable/nodes/{12.CkJqJXDQ.js → 12.BhFeMS2H.js} +1 -1
- package/web/app/immutable/nodes/{13.BQO-XqRU.js → 13.BhRY0bGm.js} +3 -3
- package/web/app/immutable/nodes/{14.BycEEfsq.js → 14.a47lQm__.js} +1 -1
- package/web/app/immutable/nodes/{15.Cul5GEsK.js → 15.ByMIoKJb.js} +1 -1
- package/web/app/immutable/nodes/{16.BjrtGDLp.js → 16.BZyTPRIV.js} +2 -2
- package/web/app/immutable/nodes/{2.Cfk2c4l0.js → 2.C4xwnwcF.js} +8 -8
- package/web/app/immutable/nodes/{3.Dp8QGgRH.js → 3.Bp1zelve.js} +1 -1
- package/web/app/immutable/nodes/{4.D3m3OUdj.js → 4.CVUqia69.js} +1 -1
- package/web/app/immutable/nodes/{5.BMBYYbKi.js → 5.CeZEr5fx.js} +2 -2
- package/web/app/immutable/nodes/{6.BIo4yUgT.js → 6.D4BurFfy.js} +1 -1
- package/web/app/immutable/nodes/{7.DdNd4GXX.js → 7.B6cTk0vB.js} +1 -1
- package/web/app/immutable/nodes/8.orOAWU1G.js +15 -0
- package/web/app/immutable/nodes/{9.kCWJBZ1N.js → 9.CgJhFQrz.js} +5 -5
- 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/4Qt-u50Z.js +0 -1
- package/web/app/immutable/chunks/B--T3tY0.js +0 -19
- package/web/app/immutable/chunks/BJzlL5VK.js +0 -1
- package/web/app/immutable/chunks/C-r1nQ0P.js +0 -2
- package/web/app/immutable/chunks/C7-4lB53.js +0 -6
- package/web/app/immutable/chunks/CR8nwpLC.js +0 -1
- package/web/app/immutable/chunks/CduK2Osu.js +0 -1
- package/web/app/immutable/chunks/CmTfIBH2.js +0 -2
- package/web/app/immutable/chunks/DakbBhJV.js +0 -1
- package/web/app/immutable/chunks/DclJ6-AA.js +0 -1
- package/web/app/immutable/chunks/DozYGPQ1.js +0 -1
- package/web/app/immutable/entry/start.DW0TPq6E.js +0 -1
- package/web/app/immutable/nodes/8.Cp6GdAVQ.js +0 -15
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bo as c,_ as p}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DCK0Naee.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/B21V7_mT.js","/app/immutable/chunks/BLK9_MXJ.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/DSAz0okZ.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/DSemZQdl.js","/app/immutable/chunks/Cs29mItj.js","/app/immutable/chunks/CukTrqVi.js","/app/immutable/chunks/9ZBkr0Qf.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/kYECwxqW.js","/app/immutable/chunks/DJ4kCFeu.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BOXp2u2v.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CZHW0zTR.js","/app/immutable/chunks/ClKXAKis.js","/app/immutable/chunks/yDAFOpKJ.js","/app/immutable/chunks/D7gneRCc.js","/app/immutable/chunks/CFpa0qKK.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/cb3YK4cU.js","/app/immutable/chunks/Yemr8tAr.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bo as c,_ as p}from"./BLK9_MXJ.js";import{n as I}from"./B6l2HPmZ.js";import"./DYhIMPy1.js";import"./9ZBkr0Qf.js";import"./DSemZQdl.js";import{bx as A}from"./CukTrqVi.js";import"./ChTqQfQN.js";import"./DNmwPq0o.js";import{g as R,HR as d,us as g,uu as y}from"./DSAz0okZ.js";import{$ as L}from"./ClKXAKis.js";import{l as v}from"./DgH1Kxzo.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function H(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=h(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=h(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),m=A(E+l);return i=h(m.path.split("/")),w=m.line,W(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function h(e){return e.map(r=>decodeURIComponent(r)).join("/")}function W(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([R,"new"]);function O(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=H(e);if(!t.valid)return I.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./DCK0Naee.js");return{openMessage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:I.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?I.error(c.ui_linkHandler_notFound_title(),{description:n.message}):I.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function G(e,r){return L(e,r)}function B(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./B21V7_mT.js").then(o=>o.Z);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,2,21,22,23]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./Yemr8tAr.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([30,7,5,6,8,9,10,11,12,4,13,29]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??v.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await P(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./Yemr8tAr.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([30,7,5,6,8,9,10,11,12,4,13,29]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(y(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await P(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(y(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??v.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./Yemr8tAr.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([30,7,5,6,8,9,10,11,12,4,13,29]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function P(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./CukTrqVi.js").then(s=>s.az);return{backendRequest:o}},__vite__mapDeps([14,4,5,12,15,11,16,17,18,13,19,10,20]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,B as createIntentLinkClickHandler,G as generateNoteLink,T as handleIntentLink,H as parseIntentLink};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h}from"./
|
|
1
|
+
import{c as h}from"./Bswi_ddk.js";import{C as c,H as u,d as p,D as m,R as f,g as _,h as w,b as k,F as v,a as D,S as P,c as R,f as I}from"./D2cK1lQ1.js";import{e as H,i as U,j as y,t as T,k as x}from"./D2cK1lQ1.js";import{l as s}from"./DPbHVaEp.js";const C=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>C&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/css.worker-08QwUeFR.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new I(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,H as DocumentLinkAdapter,I as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,U as fromPosition,y as fromRange,E as setupMode,T as toRange,x as toTextEdit};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var ut=e=>{throw TypeError(e)};var rn=(e,t,n)=>t.has(e)||ut("Cannot "+n);var k=(e,t,n)=>(rn(e,t,"read from private field"),n?n.call(e):t.get(e)),j=(e,t,n)=>t.has(e)?ut("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);import{ao as R,cd as We,bk as dt,bV as U,aD as N,bH as C,c0 as Se,bX as on,bP as an,c5 as sn}from"./DYhIMPy1.js";const Pt=!0;class Xe{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ze{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Ee extends Error{constructor(t,n,o){super(o),this.status=t,this.text=n}}new URL("sveltekit-internal://");function cn(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function ln(e){return e.split("%25").map(decodeURI).join("%25")}function fn(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Ve({href:e}){return e.split("#")[0]}function q(){}function un(...e){let t=5381;for(const n of e)if(typeof n=="string"){let o=n.length;for(;o;)t=t*33^n.charCodeAt(--o)}else if(ArrayBuffer.isView(n)){const o=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=o.length;for(;r;)t=t*33^o[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function dn(e){const t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}let hn=0;const ht=window.fetch;if(R&&Pt){let e=!1;(async()=>{e=new Error().stack.includes("check_stack_trace")})(),window.fetch=(n,o)=>{const r=n instanceof Request?n.url:n.toString(),i=new Error().stack.split(`
|
|
2
2
|
`),a=i.findIndex(g=>g.includes("load@")||g.includes("at load")),s=i.slice(0,a+2).join(`
|
|
3
|
-
`),c=e?s.includes("src/runtime/client/client.js"):hn,f=o?.__sveltekit_fetch__;return c&&!f&&console.warn(`Loading ${r} using \`window.fetch\`. For best results, use the \`fetch\` that is passed to your \`load\` function: https://svelte.dev/docs/kit/load#making-fetch-requests`),(n instanceof Request?n.method:o?.method||"GET")!=="GET"&&Q.delete(Oe(n)),ht(n,o)}}else window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Q.delete(Oe(e)),ht(e,t));const Q=new Map;function pn(e,t){const n=Oe(e,t),o=document.querySelector(n);if(o?.textContent){o.remove();let{body:r,...i}=JSON.parse(o.textContent);o.getAttribute("data-b64")!==null&&(r=dn(r));const s=o.getAttribute("data-ttl");return s&&Q.set(n,{body:r,init:i,ttl:1e3*Number(s)}),Promise.resolve(new Response(r,i))}return R?It(e,t):window.fetch(e,t)}function gn(e,t,n){if(Q.size>0){const o=Oe(e,n),r=Q.get(o);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);Q.delete(o)}}return R?It(t,n):window.fetch(t,n)}function It(e,t){const n={...t};return Object.defineProperty(n,"__sveltekit_fetch__",{value:!0,writable:!0,configurable:!0}),window.fetch(e,n)}function Oe(e,t){let o=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),o+=`[data-hash="${un(...r)}"]`}return o}const _n=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,yn=/^\/\((?:[^)]+)\)$/;function mn(e){const t=[];return{pattern:e==="/"||yn.test(e)?/^\/$/:new RegExp(`^${vn(e).map(o=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const a=o.split(/\[(.+?)\](?!\])/);return"/"+a.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return qe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return qe(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const u=_n.exec(c),[,g,d,h,p]=u;return t.push({name:h,matcher:p,optional:!!g,rest:!!d,chained:d?f===1&&a[0]==="":!1}),d?"([^]*?)":g?"([^/]*)?":"([^/]+?)"}return qe(c)}).join("")}).join("")}/?$`),params:t}}function wn(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function vn(e){return e.slice(1).split("/").filter(wn)}function bn(e,t,n){const o={},r=e.slice(1),i=r.filter(s=>s!==void 0);let a=0;for(let s=0;s<t.length;s+=1){const c=t[s];let f=r[s-a];if(c.chained&&c.rest&&a&&(f=r.slice(s-a,s+1).filter(u=>u).join("/"),a=0),f===void 0)if(c.rest)f="";else continue;if(!c.matcher||n[c.matcher](f)){o[c.name]=f;const u=t[s+1],g=r[s+1];u&&!u.rest&&u.optional&&g&&c.chained&&(a=0),!u&&!g&&Object.keys(o).length===i.length&&(a=0);continue}if(c.optional&&c.chained){a++;continue}return}if(!a)return o}function qe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function kn({nodes:e,server_loads:t,dictionary:n,matchers:o}){const r=new Set(t);return Object.entries(n).map(([s,[c,f,u]])=>{const{pattern:g,params:d}=mn(s),h={id:s,exec:p=>{const m=g.exec(p);if(m)return bn(m,d,o)},errors:[1,...u||[]].map(p=>e[p]),layouts:[0,...f||[]].map(a),leaf:i(c)};return h.errors.length=h.layouts.length=Math.max(h.errors.length,h.layouts.length),h});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function a(s){return s===void 0?s:[r.has(s),e[s]]}}function xt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function pt(e,t,n=JSON.stringify){const o=n(t);try{sessionStorage[e]=o}catch{}}const I=globalThis.
|
|
3
|
+
`),c=e?s.includes("src/runtime/client/client.js"):hn,f=o?.__sveltekit_fetch__;return c&&!f&&console.warn(`Loading ${r} using \`window.fetch\`. For best results, use the \`fetch\` that is passed to your \`load\` function: https://svelte.dev/docs/kit/load#making-fetch-requests`),(n instanceof Request?n.method:o?.method||"GET")!=="GET"&&Q.delete(Oe(n)),ht(n,o)}}else window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Q.delete(Oe(e)),ht(e,t));const Q=new Map;function pn(e,t){const n=Oe(e,t),o=document.querySelector(n);if(o?.textContent){o.remove();let{body:r,...i}=JSON.parse(o.textContent);o.getAttribute("data-b64")!==null&&(r=dn(r));const s=o.getAttribute("data-ttl");return s&&Q.set(n,{body:r,init:i,ttl:1e3*Number(s)}),Promise.resolve(new Response(r,i))}return R?It(e,t):window.fetch(e,t)}function gn(e,t,n){if(Q.size>0){const o=Oe(e,n),r=Q.get(o);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);Q.delete(o)}}return R?It(t,n):window.fetch(t,n)}function It(e,t){const n={...t};return Object.defineProperty(n,"__sveltekit_fetch__",{value:!0,writable:!0,configurable:!0}),window.fetch(e,n)}function Oe(e,t){let o=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),o+=`[data-hash="${un(...r)}"]`}return o}const _n=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,yn=/^\/\((?:[^)]+)\)$/;function mn(e){const t=[];return{pattern:e==="/"||yn.test(e)?/^\/$/:new RegExp(`^${vn(e).map(o=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const a=o.split(/\[(.+?)\](?!\])/);return"/"+a.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return qe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return qe(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const u=_n.exec(c),[,g,d,h,p]=u;return t.push({name:h,matcher:p,optional:!!g,rest:!!d,chained:d?f===1&&a[0]==="":!1}),d?"([^]*?)":g?"([^/]*)?":"([^/]+?)"}return qe(c)}).join("")}).join("")}/?$`),params:t}}function wn(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function vn(e){return e.slice(1).split("/").filter(wn)}function bn(e,t,n){const o={},r=e.slice(1),i=r.filter(s=>s!==void 0);let a=0;for(let s=0;s<t.length;s+=1){const c=t[s];let f=r[s-a];if(c.chained&&c.rest&&a&&(f=r.slice(s-a,s+1).filter(u=>u).join("/"),a=0),f===void 0)if(c.rest)f="";else continue;if(!c.matcher||n[c.matcher](f)){o[c.name]=f;const u=t[s+1],g=r[s+1];u&&!u.rest&&u.optional&&g&&c.chained&&(a=0),!u&&!g&&Object.keys(o).length===i.length&&(a=0);continue}if(c.optional&&c.chained){a++;continue}return}if(!a)return o}function qe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function kn({nodes:e,server_loads:t,dictionary:n,matchers:o}){const r=new Set(t);return Object.entries(n).map(([s,[c,f,u]])=>{const{pattern:g,params:d}=mn(s),h={id:s,exec:p=>{const m=g.exec(p);if(m)return bn(m,d,o)},errors:[1,...u||[]].map(p=>e[p]),layouts:[0,...f||[]].map(a),leaf:i(c)};return h.errors.length=h.layouts.length=Math.max(h.errors.length,h.layouts.length),h});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function a(s){return s===void 0?s:[r.has(s),e[s]]}}function xt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function pt(e,t,n=JSON.stringify){const o=n(t);try{sessionStorage[e]=o}catch{}}const I=globalThis.__sveltekit_1keeyrc?.base??"",Sn=globalThis.__sveltekit_1keeyrc?.assets??I??"",En="1794461992733",jt="sveltekit:snapshot",Ut="sveltekit:scroll",Qe="sveltekit:states",Nt="sveltekit:pageurl",G="sveltekit:history",ne="sveltekit:navigation",Y={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},je=location.origin;function Ue(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function J(){return{x:pageXOffset,y:pageYOffset}}const gt=new WeakSet,_t={"preload-code":["","off","false","tap","hover","viewport","eager"],"preload-data":["","off","false","tap","hover"],keepfocus:["","true","off","false"],noscroll:["","true","off","false"],reload:["","true","off","false"],replacestate:["","true","off","false"]};function X(e,t){const n=e.getAttribute(`data-sveltekit-${t}`);return R&&On(e,t,n),n}function On(e,t,n){n!==null&&!gt.has(e)&&!_t[t].includes(n)&&(console.error(`Unexpected value for ${t} — should be one of ${_t[t].map(o=>JSON.stringify(o)).join(", ")}`,e),gt.add(e))}const yt={...Y,"":Y.hover};function Ct(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Dt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ct(e)}}function He(e,t,n){let o;try{if(o=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&o.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";o.hash=`#${s}${o.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!o||!!r||Ne(o,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=o?.origin===je&&e.hasAttribute("download");return{url:o,external:i,target:r,download:a}}function $e(e){let t=null,n=null,o=null,r=null,i=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=X(s,"preload-code")),r===null&&(r=X(s,"preload-data")),t===null&&(t=X(s,"keepfocus")),n===null&&(n=X(s,"noscroll")),i===null&&(i=X(s,"reload")),a===null&&(a=X(s,"replacestate")),s=Ct(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:yt[o??"off"],preload_data:yt[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(a)}}function mt(e){const t=We(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function i(a){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&a(s=c)})}return{notify:o,set:r,subscribe:i}}const Bt={v:q};function $n(){const{set:e,subscribe:t}=We(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${Sn}/app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==En;return a&&(e(!0),Bt.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function Ne(e,t,n){return e.origin!==je||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Cr(e){}const Mt=-1,wt=-2,An=-3,Rn=-4,Tn=-5,Vt=-6,Ln=-7,Pn=2**32-1,In=Pn-1;class H extends Error{constructor(t,n,o,r){super(t),this.name="DevalueError",this.path=n.join(""),this.value=o,this.root=r}}const xn=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function jn(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join("\0")===xn}function Un(e){return Object.prototype.toString.call(e).slice(8,-1)}function Nn(e){return typeof Buffer<"u"&&Buffer.isBuffer(e)}function Cn(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
|
|
4
4
|
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function M(e){let t="",n=0;const o=e.length;for(let r=0;r<o;r+=1){const i=e[r],a=Cn(i);a&&(t+=e.slice(n,r)+a,n=r+1)}return`"${n===0?e:t+e.slice(n)}"`}function Dn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}const Bn=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function vt(e){return Bn.test(e)?"."+e:"["+JSON.stringify(e)+"]"}function Mn(e){return!(!Number.isInteger(e)||e<0||e>In)}function Vn(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<48||n>57)return!1}return Mn(+e)}function qn(e){for(var t=e.length-1;t>=0&&!Vn(e[t]);t--);return t+1}function Fn(e){const t=Object.keys(e);return t.length=qn(t),t}function zn(e){return new Uint8Array(e).toBase64()}function Hn(e){return Buffer.from(e).toString("base64")}function Yn(e){const t=new Uint8Array(e);let n="";const o=32768;for(let r=0;r<t.length;r+=o){const i=t.subarray(r,r+o);n+=String.fromCharCode.apply(null,i)}return btoa(n)}const Gn=typeof Uint8Array.fromBase64=="function",Kn=typeof process=="object"&&process.versions?.node!==void 0,Jn=Gn?zn:Kn?Hn:Yn;function Wn(e,t){return e}const Xn=Object.freeze({kind:"not-plain"}),Zn=Object.freeze({kind:"symbol-keys"}),Qn={identify:e=>e,typeOf:e=>e===null?"null":typeof e,toPrimitive:e=>e,tagOf:e=>Un(e),isThenable:e=>typeof e.then=="function",toPromise:e=>Promise.resolve(e),unbox:e=>e.valueOf(),toISOString:e=>isNaN(e.getDate())?"":e.toISOString(),toStringValue:e=>e.toString(),regExpInfo:e=>({source:e.source,flags:e.flags}),valuesOf:e=>e,entriesOf:e=>e,viewInfo:e=>(Nn(e)&&(e=new Uint8Array(e)),{buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),toArrayBuffer:e=>e,lengthOf:e=>e.length,hasOwn:(e,t)=>Object.hasOwn(e,t),indicesOf:e=>Fn(e),shapeOf:e=>jn(e)?Dn(e).length>0?Zn:{kind:Object.getPrototypeOf(e)===null?"null-proto":"plain",keys:Object.keys(e)}:Xn,get:(e,t)=>e[t]},er=Object.freeze(Qn);Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;typeof SharedArrayBuffer>"u"||Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get;function tr(e,t,n){const o=nr(!1,e);return typeof o=="string"?o:`[${o.join(",")}]`}function nr(e,t,n,o){const r=Wn(er),i=[],a=new Map,s=[],c=[];let f=0;function u(d,h){const p=r.typeOf(d);if(p==="undefined")return Mt;let m;if(p==="number"){if(m=r.toPrimitive(d),Number.isNaN(m))return An;if(m===1/0)return Rn;if(m===-1/0)return Tn;if(m===0&&1/m<0)return Vt}const _=r.identify(d);if(a.has(_))return a.get(_);h??=f++,a.set(_,h);for(const{key:b,fn:E}of s){const T=E(d);if(T)return i[h]=`["${b}",${u(T)}]`,h}if(p==="function")throw new H("Cannot stringify a function",c,d,t);if(p==="symbol")throw new H("Cannot stringify a Symbol primitive",c,d,t);let l="";if(p!=="object")l=bt(p==="number"?m:r.toPrimitive(d));else{if(r.isThenable(d))throw new H("Cannot stringify a Promise or thenable — use stringifyAsync instead",c,d,t);{const b=r.tagOf(d);switch(b){case"Number":case"String":case"Boolean":case"BigInt":l=`["Object",${u(r.unbox(d))}]`;break;case"Date":l=`["Date","${r.toISOString(d)}"]`;break;case"URL":l=`["URL",${M(r.toStringValue(d))}]`;break;case"URLSearchParams":l=`["URLSearchParams",${M(r.toStringValue(d))}]`;break;case"RegExp":const{source:E,flags:T}=r.regExpInfo(d);l=T?`["RegExp",${M(E)},"${T}"]`:`["RegExp",${M(E)}]`;break;case"Array":{let y=!1;const $=r.lengthOf(d);l="[";for(let w=0;w<$;w+=1)if(w>0&&(l+=","),r.hasOwn(d,w))c.push(`[${w}]`),l+=u(r.get(d,w)),c.pop();else if(y)l+=wt;else{const x=r.indicesOf(d),W=x.length,B=String($).length,re=($-W)*3,nn=4+B+W*(B+1);if(re>nn){l="["+Ln+","+$;for(let Be=0;Be<x.length;Be++){const Me=x[Be];c.push(`[${Me}]`),l+=","+Me+","+u(r.get(d,Me)),c.pop()}break}else y=!0,l+=wt}l+="]";break}case"Set":l='["Set"';for(const y of r.valuesOf(d))l+=`,${u(y)}`;l+="]";break;case"Map":l='["Map"';for(const[y,$]of r.entriesOf(d)){const w=r.typeOf(y),x=w!=="object"&&w!=="function"&&w!=="symbol";c.push(`.get(${x?bt(r.toPrimitive(y)):"..."})`),l+=`,${u(y)},${u($)}`,c.pop()}l+="]";break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const y=r.viewInfo(d);l='["'+b+'",'+u(y.buffer),y.byteLength!==y.bufferByteLength&&(l+=`,${y.byteOffset},${y.length}`),l+="]";break}case"DataView":{const y=r.viewInfo(d);l='["'+b+'",'+u(y.buffer),y.byteLength!==y.bufferByteLength&&(l+=`,${y.byteOffset},${y.byteLength}`),l+="]";break}case"ArrayBuffer":{l=`["ArrayBuffer","${Jn(r.toArrayBuffer(d))}"]`;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":l=`["${b}",${M(r.toStringValue(d))}]`;break;default:{const y=r.shapeOf(d);if(y.kind==="not-plain")throw new H("Cannot stringify arbitrary non-POJOs",c,d,t);if(y.kind==="symbol-keys")throw new H("Cannot stringify POJOs with symbolic keys",c,d,t);if(y.kind==="null-proto"){l='["null"';for(const $ of y.keys){if($==="__proto__")throw new H("Cannot stringify objects with __proto__ keys",c,d,t);c.push(vt($)),l+=`,${M($)},${u(r.get(d,$))}`,c.pop()}l+="]"}else{l="{";let $=!1;for(const w of y.keys){if(w==="__proto__")throw new H("Cannot stringify objects with __proto__ keys",c,d,t);$&&(l+=","),$=!0,c.push(vt(w)),l+=`${M(w)}:${u(r.get(d,w))}`,c.pop()}l+="}"}}}}}return i[h]=l,h}const g=u(t);return g<0?`${g}`:i}function bt(e){const t=typeof e;return t==="string"?M(e):e===void 0?Mt.toString():e===0&&1/e<0?Vt.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function rr(e){function t(n,o){if(n)for(const r in n){if(r[0]==="_"||e.has(r))continue;const i=[...e.values()],a=or(r,o?.slice(o.lastIndexOf(".")))??`valid exports are ${i.join(", ")}, or anything with a '_' prefix`;throw new Error(`Invalid export '${r}'${o?` in ${o}`:""} (${a})`)}}return t}function or(e,t=".js"){const n=[];if(et.has(e)&&n.push(`+layout${t}`),qt.has(e)&&n.push(`+page${t}`),Ft.has(e)&&n.push(`+layout.server${t}`),ar.has(e)&&n.push(`+page.server${t}`),sr.has(e)&&n.push(`+server${t}`),n.length>0)return`'${e}' is a valid export in ${n.slice(0,-1).join(", ")}${n.length>1?" or ":""}${n.at(-1)}`}const et=new Set(["load","prerender","csr","ssr","trailingSlash","config"]),qt=new Set([...et,"entries"]),Ft=new Set([...et]),ar=new Set([...Ft,"actions","entries"]),sr=new Set(["GET","POST","PATCH","PUT","DELETE","OPTIONS","HEAD","fallback","prerender","trailingSlash","config","entries"]),ir=rr(qt);function cr(e){return e.filter(t=>t!=null)}function be(e,t){return e+"/"+t}function tt(e){return e instanceof Xe||e instanceof Ee?e.status:500}function lr(e){return e instanceof Ee?e.text:"Internal Error"}let A,se,Fe;const fr=dt.toString().includes("$$")||/function \w+\(\) \{\}/.test(dt.toString()),kt="a:";var ue,de,he,pe,ge,_e,ye,me,Rt,we,Tt,ve,Lt;fr?(A={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(kt)},se={current:null},Fe={current:!1}):(A=new(Rt=class{constructor(){j(this,ue,U({}));j(this,de,U(null));j(this,he,U(null));j(this,pe,U({}));j(this,ge,U({id:null}));j(this,_e,U({}));j(this,ye,U(-1));j(this,me,U(new URL(kt)))}get data(){return N(k(this,ue))}set data(t){C(k(this,ue),t)}get form(){return N(k(this,de))}set form(t){C(k(this,de),t)}get error(){return N(k(this,he))}set error(t){C(k(this,he),t)}get params(){return N(k(this,pe))}set params(t){C(k(this,pe),t)}get route(){return N(k(this,ge))}set route(t){C(k(this,ge),t)}get state(){return N(k(this,_e))}set state(t){C(k(this,_e),t)}get status(){return N(k(this,ye))}set status(t){C(k(this,ye),t)}get url(){return N(k(this,me))}set url(t){C(k(this,me),t)}},ue=new WeakMap,de=new WeakMap,he=new WeakMap,pe=new WeakMap,ge=new WeakMap,_e=new WeakMap,ye=new WeakMap,me=new WeakMap,Rt),se=new(Tt=class{constructor(){j(this,we,U(null))}get current(){return N(k(this,we))}set current(t){C(k(this,we),t)}},we=new WeakMap,Tt),Fe=new(Lt=class{constructor(){j(this,ve,U(!1))}get current(){return N(k(this,ve))}set current(t){C(k(this,ve),t)}},ve=new WeakMap,Lt),Bt.v=()=>Fe.current=!0);function zt(e){Object.assign(A,e)}const{onMount:ur}=on,dr=sn??(e=>e()),hr=new Set(["icon","shortcut icon","apple-touch-icon"]);let oe=null;const z=xt(Ut)??{},ie=xt(jt)??{};if(R&&Pt){let e=!1;const t=()=>{if(e)return;let r=new Error().stack?.split(`
|
|
5
5
|
`);!r||(!r[0].includes("https:")&&!r[0].includes("http:")&&(r=r.slice(1)),r[2]?.includes("node_modules"))||(e=!0,console.warn("Avoid using `history.pushState(...)` and `history.replaceState(...)` as these will conflict with SvelteKit's router. Use the `pushState` and `replaceState` imports from `$app/navigation` instead."))},n=history.pushState;history.pushState=(...r)=>(t(),n.apply(history,r));const o=history.replaceState;history.replaceState=(...r)=>(t(),o.apply(history,r))}const F={url:mt({}),page:mt({}),navigating:We(null),updated:$n()};function nt(e){z[e]=J()}function pr(e,t){let n=e+1;for(;z[n];)delete z[n],n+=1;for(n=t+1;ie[n];)delete ie[n],n+=1}function ce(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(q)}async function Ht(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(I||"/");e&&await e.update()}}let rt,Ye,Ae,D,Ge,S;const Re=[],Te=[];let P=null;function Le(){P?.fork?.then(e=>e?.discard()),P=null,Z={element:void 0,href:void 0}}const ke=new Map,ot=new Set,gr=new Set,ee=new Set;let v={branch:[],error:null,url:null},Yt=!1,le=!1,St=!0,fe=!1,ae=!1,Gt=!1,at=!1,st,O,L,V;const Pe=new Set,Et=new Map,Ot=new Map;async function Vr(e,t,n){if(R&&t===document.body&&console.warn(`Placing %sveltekit.body% directly inside <body> is not recommended, as your app may break for users who have certain browser extensions installed.
|
|
6
6
|
|
|
@@ -8,5 +8,5 @@ Consider wrapping it in an element:
|
|
|
8
8
|
|
|
9
9
|
<div style="display: contents">
|
|
10
10
|
%sveltekit.body%
|
|
11
|
-
</div>`),globalThis.__sveltekit_1iaggms.data){const{q:i={},p:a={},l:s={},f:c={}}=globalThis.__sveltekit_1iaggms.data;for(const f in i)i[f];for(const f in s)s[f];for(const f in c)c[f];for(const f in a)a[f]}document.URL!==location.href&&(location.href=location.href),S=e,await e.hooks.init?.(),rt=kn(e),D=document.documentElement,Ge=t,Ye=e.nodes[0],Ae=e.nodes[1],Ye(),Ae(),O=history.state?.[G],L=history.state?.[ne],O||(O=L=Date.now(),history.replaceState({...history.state,[G]:O,[ne]:L},""));const o=z[O];function r(){o&&(history.scrollRestoration="manual",scrollTo(o.x,o.y))}n?(r(),await Pr(Ge,n)):(await te({type:"enter",url:Ue(S.hash?jr(new URL(location.href)):location.href),replace_state:!0}),r()),Lr()}function _r(){Re.length=0,at=!1}function Kt(e){Te.some(t=>t?.snapshot)&&(ie[e]=Te.map(t=>t?.snapshot?.capture()))}function Jt(e){ie[e]?.forEach((t,n)=>{Te[n]?.snapshot?.restore(t)})}function $t(){nt(O),pt(Ut,z),Kt(L),pt(jt,ie)}async function Wt(e,t,n,o){let r,i;t.invalidateAll&&Le(),await te({type:"goto",url:Ue(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:o,accept:()=>{if(t.invalidateAll){at=!0,r=new Set;for(const[a,s]of Et)for(const[c,f]of s)f.resource?.reset(),r.add(be(a,c));i=new Set;for(const[a,s]of Ot)for(const c of s.keys())i.add(be(a,c))}t.invalidate&&t.invalidate.forEach(Rr)}}),t.invalidateAll&&Se().then(Se).then(()=>{for(const[a,s]of Et)for(const[c,{resource:f}]of s)r?.has(be(a,c))&&f.start();for(const[a,s]of Ot)for(const[c,{resource:f}]of s)i?.has(be(a,c))&&f.reconnect()})}async function At(e){if(e.id!==P?.id){Le();const t={};Pe.add(t),P={id:e.id,token:t,promise:Zt({...e,preload:t}).then(n=>(Pe.delete(t),n.type==="loaded"&&n.state.error&&Le(),n)),fork:null}}return P.promise}async function ze(e){const t=(await Ce(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function Xt(e,t,n){const o={params:v.params,route:{id:v.route?.id??null},url:new URL(location.href)};if(v={...e.state,nav:o},zt(e.props.page),st=new S.root({target:t,props:{...e.props,stores:F,components:Te},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){const r={from:null,to:{...o,scroll:z[O]??J()},willUnload:!1,type:"enter",complete:Promise.resolve()};ee.forEach(i=>i(r))}Jt(L),le=!0}async function Ie({url:e,params:t,branch:n,errors:o,status:r,error:i,route:a,form:s}){let c="never";if(I&&(e.pathname===I||e.pathname===I+"/"))c="always";else for(const p of n)p?.slash!==void 0&&(c=p.slash);e.pathname=cn(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:a},props:{constructors:cr(n).map(p=>p.node.component),page:De(A)}};s!==void 0&&(f.props.form=s);let u={},g=!A,d=0;for(let p=0;p<Math.max(n.length,v.branch.length);p+=1){const m=n[p],_=v.branch[p];m?.data!==_?.data&&(g=!0),m&&(u={...u,...m.data},g&&(f.props[`data_${d}`]=u),d+=1)}return(!v.url||e.href!==v.url.href||v.error!==i||s!==void 0&&s!==A.form||g)&&(f.props.page={error:i,params:t,route:{id:a?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:g?u:A.data}),f}async function it({loader:e,parent:t,url:n,params:o,route:r,server_data_node:i}){let a=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(R&&(ir(c.universal),c.universal&&S.hash)){const f=Object.keys(c.universal).filter(u=>u!=="load");if(f.length>0)throw new Error(`Page options are ignored when \`router.type === 'hash'\` (${r.id} has ${f.filter(u=>u!=="load").map(u=>`'${u}'`).join(", ")})`)}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:a,uses:s}:null,data:a??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function yr(e,t,n){let o=e instanceof Request?e.url:e;const r=new URL(o,n);r.origin===n.origin&&(o=r.href.slice(n.origin.length));const i=le?gn(o,r.href,t):pn(o,t);return{resolved:r,promise:i}}function mr(e,t,n,o,r,i){if(at)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const a of r.search_params)if(o.has(a))return!0;for(const a of r.params)if(i[a]!==v.params[a])return!0;for(const a of r.dependencies)if(Re.some(s=>s(new URL(a))))return!0;return!1}function ct(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function wr(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const o of n){const r=e.searchParams.getAll(o),i=t.searchParams.getAll(o);r.every(a=>i.includes(a))&&i.every(a=>r.includes(a))&&n.delete(o)}return n}function vr({error:e,url:t,route:n,params:o}){return{type:"loaded",state:{error:e,url:t,route:n,params:o,branch:[]},props:{page:De(A),constructors:[]}}}async function Zt({id:e,invalidating:t,url:n,params:o,route:r,preload:i}){if(P?.id===e)return Pe.delete(P.token),P.promise;const{errors:a,layouts:s,leaf:c}=r,f=[...s,c];a.forEach(_=>_?.().catch(q)),f.forEach(_=>_?.[1]().catch(q));const u=v.url?e!==xe(v.url):!1,g=v.route?r.id!==v.route.id:!1,d=wr(v.url,n);let h=!1;const p=f.map(async(_,l)=>{if(!_)return;const b=v.branch[l];return _[1]===b?.loader&&!mr(h,g,u,d,b.universal?.uses,o)?b:(h=!0,it({loader:_[1],url:n,params:o,route:r,parent:async()=>{const T={};for(let y=0;y<l;y+=1)Object.assign(T,(await p[y])?.data);return T},server_data_node:ct(_[0]?{type:"skip"}:null,_[0]?b?.server:void 0)}))});for(const _ of p)_.catch(q);const m=[];for(let _=0;_<f.length;_+=1)if(f[_])try{m.push(await p[_])}catch(l){if(l instanceof Ze)return{type:"redirect",location:l.location};if(i&&Pe.has(i))return vr({error:await K(l,{params:o,url:n,route:{id:r.id}}),url:n,params:o,route:r});let b=tt(l),E;if(l instanceof Xe)E=l.body;else{if(await F.updated.check())return await Ht(),await ce(n);E=await K(l,{params:o,url:n,route:{id:r.id}})}const T=await br(_,m,a);return T?Ie({url:n,params:o,branch:m.slice(0,T.idx).concat(T.node),errors:a,status:b,error:E,route:r}):await Ke(n,{id:r.id},E,b)}else m.push(void 0);return Ie({url:n,params:o,branch:m,errors:a,status:200,error:null,route:r,form:t?void 0:null})}async function br(e,t,n){for(;e--;)if(n[e]){let o=e;for(;!t[o];)o-=1;try{return{idx:o+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function lt({status:e,error:t,url:n,route:o}){const r={};let i=null;try{const a=await it({loader:Ye,url:n,params:r,route:o,parent:()=>Promise.resolve({}),server_data_node:ct(i)}),s={node:await Ae(),loader:Ae,universal:null,server:null,data:null};return Ie({url:n,params:r,branch:[a,s],status:e,error:t,errors:[],route:null})}catch(a){if(a instanceof Ze){await Wt(new URL(a.location,location.href),{},0);return}const s=await S.get_error_template(),c=await K(a,{url:n,params:r,route:o}),f=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),u=s({status:e,message:f}),g=new DOMParser().parseFromString(u,"text/html");throw document.documentElement.replaceChild(document.adoptNode(g.head),document.head),document.documentElement.replaceChild(document.adoptNode(g.body),document.body),a}}async function kr(e){const t=e.href;if(ke.has(t))return ke.get(t);let n;try{const o=(async()=>{let r=await S.hooks.reroute({url:new URL(e),fetch:async(i,a)=>yr(i,a,e).promise})??e;if(typeof r=="string"){const i=new URL(e);S.hash?i.hash=r:i.pathname=r,r=i}return r})();ke.set(t,o),n=await o}catch(o){if(ke.delete(t),R){console.error(o);debugger}return}return n}async function Ce(e,t){if(e&&!Ne(e,I,S.hash)){const n=await kr(e);if(!n)return;const o=Sr(n);for(const r of rt){const i=r.exec(o);if(i)return{id:xe(e),invalidating:t,route:r,params:fn(i),url:e}}}}function Sr(e){return ln(S.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(I.length))||"/"}function xe(e){return(S.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Qt({url:e,type:t,intent:n,delta:o,event:r,scroll:i}){let a=!1;const s=ft(v,n,e,t,i??null);o!==void 0&&(s.navigation.delta=o),r!==void 0&&(s.navigation.event=r);const c={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return fe||ot.forEach(f=>f(c)),a?null:s}async function te({type:e,url:t,popped:n,keepfocus:o,noscroll:r,replace_state:i,state:a={},redirect_count:s=0,nav_token:c={},accept:f=q,block:u=q,event:g}){const d=V;V=c;const h=await Ce(t,!1),p=e==="enter"?ft(v,h,t,e):Qt({url:t,type:e,delta:n?.delta,intent:h,scroll:n?.scroll,event:g});if(!p){u(),V===c&&(V=d);return}const m=O,_=L;f(),fe=!0,le&&p.navigation.type!=="enter"&&F.navigating.set(se.current=p.navigation);let l=h&&await Zt(h);if(!l)if(Ne(t,I,S.hash))if(R&&S.hash)l=await Ke(t,{id:null},await K(new Ee(404,"Not Found",`Not found: ${t.pathname} (did you forget the hash?)`),{url:t,params:{},route:{id:null}}),404,i);else return await ce(t,i);else l=await Ke(t,{id:null},await K(new Ee(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i);if(t=h?.url||t,V!==c){p.reject(new Error("navigation aborted"));return}if(!l)return;if(l.type==="redirect"){if(s<20){await te({type:e,url:new URL(l.location,t),popped:n,keepfocus:o,noscroll:r,replace_state:i,state:a,redirect_count:s+1,nav_token:c}),p.fulfil(void 0);return}if(l=await lt({status:500,error:await K(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!l)return}else if(l.props.page.status>=400&&await F.updated.check())return await Ht(),await ce(t,i);if(_r(),nt(m),Kt(_),l.props.page.url.pathname!==t.pathname&&(t.pathname=l.props.page.url.pathname),a=n?n.state:a,!n){const w=i?0:1,x={[G]:O+=w,[ne]:L+=w,[Qe]:a};(i?history.replaceState:history.pushState).call(history,x,"",t),i||pr(O,L)}const b=h&&P?.id===h.id?P.fork:null;P?.fork&&!b?Le():(P=null,Z={element:void 0,href:void 0}),l.props.page.state=a;let E;if(le){const w=(await Promise.all(Array.from(gr,B=>B(p.navigation)))).filter(B=>typeof B=="function");if(w.length>0){let B=function(){w.forEach(re=>{ee.delete(re)})};w.push(B),w.forEach(re=>{ee.add(re)})}const x=p.navigation.to;v={...l.state,nav:{params:x.params,route:x.route,url:x.url}},l.props.page&&(l.props.page.url=t),!o&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const W=b&&await b;W?E=W.commit():(oe=null,st.$set(l.props),oe&&Object.assign(l.props.page,oe),zt(l.props.page),E=an?.()),Gt=!0}else await Xt(l,Ge,!1);const{activeElement:T}=document;if(await E,await Se(),await Se(),V!==c){p.reject(new Error("navigation aborted"));return}l.props.page&&oe&&Object.assign(l.props.page,oe);let y=null;if(St){const w=n?n.scroll:r?J():null;w?scrollTo(w.x,w.y):(y=t.hash&&document.getElementById(tn(t)))?y.scrollIntoView():scrollTo(0,0)}const $=document.activeElement!==T&&document.activeElement!==document.body;!o&&!$&&xr(t,!y),St=!0,fe=!1,p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=J()),ee.forEach(w=>w(p.navigation)),e==="popstate"&&Jt(L),F.navigating.set(se.current=null)}async function Ke(e,t,n,o,r){if(e.origin===je&&e.pathname===location.pathname&&!Yt)return await lt({status:o,error:n,url:e,route:t});if(R&&o!==404){console.error("An error occurred while loading the page. This will cause a full page reload. (This message will only appear during development.)");debugger}return await ce(e,r)}let Z={element:void 0,href:void 0};function Er(){let e,t;D.addEventListener("mousemove",a=>{const s=a.target;clearTimeout(e),e=setTimeout(()=>{r(s,Y.hover)},20)});function n(a){a.defaultPrevented||r(a.composedPath()[0],Y.tap)}D.addEventListener("mousedown",n),D.addEventListener("touchstart",n,{passive:!0});const o=new IntersectionObserver(a=>{for(const s of a)s.isIntersecting&&(ze(new URL(s.target.href)),o.unobserve(s.target))},{threshold:0});async function r(a,s){const c=Dt(a,D),f=c===Z.element&&c?.href===Z.href&&s>=t;if(!c||f)return;const{url:u,external:g,download:d}=He(c,I,S.hash);if(g||d)return;const h=$e(c),p=u&&xe(v.url)===xe(u);if(!(h.reload||p))if(s<=h.preload_data){Z={element:c,href:c.href},t=Y.tap;const m=await Ce(u,!1);if(!m)return;R?At(m).then(_=>{_.type==="loaded"&&_.state.error&&console.warn(`Preloading data for ${m.url.pathname} failed with the following error: ${_.state.error.message}
|
|
11
|
+
</div>`),globalThis.__sveltekit_1keeyrc.data){const{q:i={},p:a={},l:s={},f:c={}}=globalThis.__sveltekit_1keeyrc.data;for(const f in i)i[f];for(const f in s)s[f];for(const f in c)c[f];for(const f in a)a[f]}document.URL!==location.href&&(location.href=location.href),S=e,await e.hooks.init?.(),rt=kn(e),D=document.documentElement,Ge=t,Ye=e.nodes[0],Ae=e.nodes[1],Ye(),Ae(),O=history.state?.[G],L=history.state?.[ne],O||(O=L=Date.now(),history.replaceState({...history.state,[G]:O,[ne]:L},""));const o=z[O];function r(){o&&(history.scrollRestoration="manual",scrollTo(o.x,o.y))}n?(r(),await Pr(Ge,n)):(await te({type:"enter",url:Ue(S.hash?jr(new URL(location.href)):location.href),replace_state:!0}),r()),Lr()}function _r(){Re.length=0,at=!1}function Kt(e){Te.some(t=>t?.snapshot)&&(ie[e]=Te.map(t=>t?.snapshot?.capture()))}function Jt(e){ie[e]?.forEach((t,n)=>{Te[n]?.snapshot?.restore(t)})}function $t(){nt(O),pt(Ut,z),Kt(L),pt(jt,ie)}async function Wt(e,t,n,o){let r,i;t.invalidateAll&&Le(),await te({type:"goto",url:Ue(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:o,accept:()=>{if(t.invalidateAll){at=!0,r=new Set;for(const[a,s]of Et)for(const[c,f]of s)f.resource?.reset(),r.add(be(a,c));i=new Set;for(const[a,s]of Ot)for(const c of s.keys())i.add(be(a,c))}t.invalidate&&t.invalidate.forEach(Rr)}}),t.invalidateAll&&Se().then(Se).then(()=>{for(const[a,s]of Et)for(const[c,{resource:f}]of s)r?.has(be(a,c))&&f.start();for(const[a,s]of Ot)for(const[c,{resource:f}]of s)i?.has(be(a,c))&&f.reconnect()})}async function At(e){if(e.id!==P?.id){Le();const t={};Pe.add(t),P={id:e.id,token:t,promise:Zt({...e,preload:t}).then(n=>(Pe.delete(t),n.type==="loaded"&&n.state.error&&Le(),n)),fork:null}}return P.promise}async function ze(e){const t=(await Ce(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function Xt(e,t,n){const o={params:v.params,route:{id:v.route?.id??null},url:new URL(location.href)};if(v={...e.state,nav:o},zt(e.props.page),st=new S.root({target:t,props:{...e.props,stores:F,components:Te},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){const r={from:null,to:{...o,scroll:z[O]??J()},willUnload:!1,type:"enter",complete:Promise.resolve()};ee.forEach(i=>i(r))}Jt(L),le=!0}async function Ie({url:e,params:t,branch:n,errors:o,status:r,error:i,route:a,form:s}){let c="never";if(I&&(e.pathname===I||e.pathname===I+"/"))c="always";else for(const p of n)p?.slash!==void 0&&(c=p.slash);e.pathname=cn(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:a},props:{constructors:cr(n).map(p=>p.node.component),page:De(A)}};s!==void 0&&(f.props.form=s);let u={},g=!A,d=0;for(let p=0;p<Math.max(n.length,v.branch.length);p+=1){const m=n[p],_=v.branch[p];m?.data!==_?.data&&(g=!0),m&&(u={...u,...m.data},g&&(f.props[`data_${d}`]=u),d+=1)}return(!v.url||e.href!==v.url.href||v.error!==i||s!==void 0&&s!==A.form||g)&&(f.props.page={error:i,params:t,route:{id:a?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:g?u:A.data}),f}async function it({loader:e,parent:t,url:n,params:o,route:r,server_data_node:i}){let a=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(R&&(ir(c.universal),c.universal&&S.hash)){const f=Object.keys(c.universal).filter(u=>u!=="load");if(f.length>0)throw new Error(`Page options are ignored when \`router.type === 'hash'\` (${r.id} has ${f.filter(u=>u!=="load").map(u=>`'${u}'`).join(", ")})`)}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:a,uses:s}:null,data:a??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function yr(e,t,n){let o=e instanceof Request?e.url:e;const r=new URL(o,n);r.origin===n.origin&&(o=r.href.slice(n.origin.length));const i=le?gn(o,r.href,t):pn(o,t);return{resolved:r,promise:i}}function mr(e,t,n,o,r,i){if(at)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const a of r.search_params)if(o.has(a))return!0;for(const a of r.params)if(i[a]!==v.params[a])return!0;for(const a of r.dependencies)if(Re.some(s=>s(new URL(a))))return!0;return!1}function ct(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function wr(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const o of n){const r=e.searchParams.getAll(o),i=t.searchParams.getAll(o);r.every(a=>i.includes(a))&&i.every(a=>r.includes(a))&&n.delete(o)}return n}function vr({error:e,url:t,route:n,params:o}){return{type:"loaded",state:{error:e,url:t,route:n,params:o,branch:[]},props:{page:De(A),constructors:[]}}}async function Zt({id:e,invalidating:t,url:n,params:o,route:r,preload:i}){if(P?.id===e)return Pe.delete(P.token),P.promise;const{errors:a,layouts:s,leaf:c}=r,f=[...s,c];a.forEach(_=>_?.().catch(q)),f.forEach(_=>_?.[1]().catch(q));const u=v.url?e!==xe(v.url):!1,g=v.route?r.id!==v.route.id:!1,d=wr(v.url,n);let h=!1;const p=f.map(async(_,l)=>{if(!_)return;const b=v.branch[l];return _[1]===b?.loader&&!mr(h,g,u,d,b.universal?.uses,o)?b:(h=!0,it({loader:_[1],url:n,params:o,route:r,parent:async()=>{const T={};for(let y=0;y<l;y+=1)Object.assign(T,(await p[y])?.data);return T},server_data_node:ct(_[0]?{type:"skip"}:null,_[0]?b?.server:void 0)}))});for(const _ of p)_.catch(q);const m=[];for(let _=0;_<f.length;_+=1)if(f[_])try{m.push(await p[_])}catch(l){if(l instanceof Ze)return{type:"redirect",location:l.location};if(i&&Pe.has(i))return vr({error:await K(l,{params:o,url:n,route:{id:r.id}}),url:n,params:o,route:r});let b=tt(l),E;if(l instanceof Xe)E=l.body;else{if(await F.updated.check())return await Ht(),await ce(n);E=await K(l,{params:o,url:n,route:{id:r.id}})}const T=await br(_,m,a);return T?Ie({url:n,params:o,branch:m.slice(0,T.idx).concat(T.node),errors:a,status:b,error:E,route:r}):await Ke(n,{id:r.id},E,b)}else m.push(void 0);return Ie({url:n,params:o,branch:m,errors:a,status:200,error:null,route:r,form:t?void 0:null})}async function br(e,t,n){for(;e--;)if(n[e]){let o=e;for(;!t[o];)o-=1;try{return{idx:o+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function lt({status:e,error:t,url:n,route:o}){const r={};let i=null;try{const a=await it({loader:Ye,url:n,params:r,route:o,parent:()=>Promise.resolve({}),server_data_node:ct(i)}),s={node:await Ae(),loader:Ae,universal:null,server:null,data:null};return Ie({url:n,params:r,branch:[a,s],status:e,error:t,errors:[],route:null})}catch(a){if(a instanceof Ze){await Wt(new URL(a.location,location.href),{},0);return}const s=await S.get_error_template(),c=await K(a,{url:n,params:r,route:o}),f=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),u=s({status:e,message:f}),g=new DOMParser().parseFromString(u,"text/html");throw document.documentElement.replaceChild(document.adoptNode(g.head),document.head),document.documentElement.replaceChild(document.adoptNode(g.body),document.body),a}}async function kr(e){const t=e.href;if(ke.has(t))return ke.get(t);let n;try{const o=(async()=>{let r=await S.hooks.reroute({url:new URL(e),fetch:async(i,a)=>yr(i,a,e).promise})??e;if(typeof r=="string"){const i=new URL(e);S.hash?i.hash=r:i.pathname=r,r=i}return r})();ke.set(t,o),n=await o}catch(o){if(ke.delete(t),R){console.error(o);debugger}return}return n}async function Ce(e,t){if(e&&!Ne(e,I,S.hash)){const n=await kr(e);if(!n)return;const o=Sr(n);for(const r of rt){const i=r.exec(o);if(i)return{id:xe(e),invalidating:t,route:r,params:fn(i),url:e}}}}function Sr(e){return ln(S.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(I.length))||"/"}function xe(e){return(S.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Qt({url:e,type:t,intent:n,delta:o,event:r,scroll:i}){let a=!1;const s=ft(v,n,e,t,i??null);o!==void 0&&(s.navigation.delta=o),r!==void 0&&(s.navigation.event=r);const c={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return fe||ot.forEach(f=>f(c)),a?null:s}async function te({type:e,url:t,popped:n,keepfocus:o,noscroll:r,replace_state:i,state:a={},redirect_count:s=0,nav_token:c={},accept:f=q,block:u=q,event:g}){const d=V;V=c;const h=await Ce(t,!1),p=e==="enter"?ft(v,h,t,e):Qt({url:t,type:e,delta:n?.delta,intent:h,scroll:n?.scroll,event:g});if(!p){u(),V===c&&(V=d);return}const m=O,_=L;f(),fe=!0,le&&p.navigation.type!=="enter"&&F.navigating.set(se.current=p.navigation);let l=h&&await Zt(h);if(!l)if(Ne(t,I,S.hash))if(R&&S.hash)l=await Ke(t,{id:null},await K(new Ee(404,"Not Found",`Not found: ${t.pathname} (did you forget the hash?)`),{url:t,params:{},route:{id:null}}),404,i);else return await ce(t,i);else l=await Ke(t,{id:null},await K(new Ee(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i);if(t=h?.url||t,V!==c){p.reject(new Error("navigation aborted"));return}if(!l)return;if(l.type==="redirect"){if(s<20){await te({type:e,url:new URL(l.location,t),popped:n,keepfocus:o,noscroll:r,replace_state:i,state:a,redirect_count:s+1,nav_token:c}),p.fulfil(void 0);return}if(l=await lt({status:500,error:await K(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!l)return}else if(l.props.page.status>=400&&await F.updated.check())return await Ht(),await ce(t,i);if(_r(),nt(m),Kt(_),l.props.page.url.pathname!==t.pathname&&(t.pathname=l.props.page.url.pathname),a=n?n.state:a,!n){const w=i?0:1,x={[G]:O+=w,[ne]:L+=w,[Qe]:a};(i?history.replaceState:history.pushState).call(history,x,"",t),i||pr(O,L)}const b=h&&P?.id===h.id?P.fork:null;P?.fork&&!b?Le():(P=null,Z={element:void 0,href:void 0}),l.props.page.state=a;let E;if(le){const w=(await Promise.all(Array.from(gr,B=>B(p.navigation)))).filter(B=>typeof B=="function");if(w.length>0){let B=function(){w.forEach(re=>{ee.delete(re)})};w.push(B),w.forEach(re=>{ee.add(re)})}const x=p.navigation.to;v={...l.state,nav:{params:x.params,route:x.route,url:x.url}},l.props.page&&(l.props.page.url=t),!o&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const W=b&&await b;W?E=W.commit():(oe=null,st.$set(l.props),oe&&Object.assign(l.props.page,oe),zt(l.props.page),E=an?.()),Gt=!0}else await Xt(l,Ge,!1);const{activeElement:T}=document;if(await E,await Se(),await Se(),V!==c){p.reject(new Error("navigation aborted"));return}l.props.page&&oe&&Object.assign(l.props.page,oe);let y=null;if(St){const w=n?n.scroll:r?J():null;w?scrollTo(w.x,w.y):(y=t.hash&&document.getElementById(tn(t)))?y.scrollIntoView():scrollTo(0,0)}const $=document.activeElement!==T&&document.activeElement!==document.body;!o&&!$&&xr(t,!y),St=!0,fe=!1,p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=J()),ee.forEach(w=>w(p.navigation)),e==="popstate"&&Jt(L),F.navigating.set(se.current=null)}async function Ke(e,t,n,o,r){if(e.origin===je&&e.pathname===location.pathname&&!Yt)return await lt({status:o,error:n,url:e,route:t});if(R&&o!==404){console.error("An error occurred while loading the page. This will cause a full page reload. (This message will only appear during development.)");debugger}return await ce(e,r)}let Z={element:void 0,href:void 0};function Er(){let e,t;D.addEventListener("mousemove",a=>{const s=a.target;clearTimeout(e),e=setTimeout(()=>{r(s,Y.hover)},20)});function n(a){a.defaultPrevented||r(a.composedPath()[0],Y.tap)}D.addEventListener("mousedown",n),D.addEventListener("touchstart",n,{passive:!0});const o=new IntersectionObserver(a=>{for(const s of a)s.isIntersecting&&(ze(new URL(s.target.href)),o.unobserve(s.target))},{threshold:0});async function r(a,s){const c=Dt(a,D),f=c===Z.element&&c?.href===Z.href&&s>=t;if(!c||f)return;const{url:u,external:g,download:d}=He(c,I,S.hash);if(g||d)return;const h=$e(c),p=u&&xe(v.url)===xe(u);if(!(h.reload||p))if(s<=h.preload_data){Z={element:c,href:c.href},t=Y.tap;const m=await Ce(u,!1);if(!m)return;R?At(m).then(_=>{_.type==="loaded"&&_.state.error&&console.warn(`Preloading data for ${m.url.pathname} failed with the following error: ${_.state.error.message}
|
|
12
12
|
If this error is transient, you can ignore it. Otherwise, consider disabling preloading for this route. This route was preloaded due to a data-sveltekit-preload-data attribute. See https://svelte.dev/docs/kit/link-options for more info`)}):At(m)}else s<=h.preload_code&&(Z={element:c,href:c.href},t=s,ze(u))}function i(){o.disconnect();for(const a of D.querySelectorAll("a")){const{url:s,external:c,download:f}=He(a,I,S.hash);if(c||f)continue;const u=$e(a);u.reload||(u.preload_code===Y.viewport&&o.observe(a),u.preload_code===Y.eager&&ze(s))}}ee.add(i),i()}function K(e,t){if(e instanceof Xe)return e.body;R&&console.warn("The next HMR update will cause the page to reload");const n=tt(e),o=lr(e);return S.hooks.handleError({error:e,event:t,status:n,message:o})??{message:o}}function en(e,t){ur(()=>(e.add(t),()=>{e.delete(t)}))}function Or(e){en(ee,e)}function $r(e){en(ot,e)}function Ar(e,t={}){return e=new URL(Ue(e)),e.origin!==je?Promise.reject(new Error(R?`Cannot use \`goto\` with an external URL. Use \`window.location = "${e}"\` instead`:"goto: invalid URL")):Wt(e,t,0)}function Rr(e){if(typeof e=="function")Re.push(e);else{const{href:t}=new URL(e,location.href);Re.push(n=>n.href===t)}}function Tr(e,t){if(R){if(!le)throw new Error("Cannot call replaceState(...) before router is initialized");try{tr(t)}catch(o){throw new Error(`Could not serialize state${o.path}`,{cause:o})}}const n={[G]:O,[ne]:L,[Nt]:A.url.href,[Qe]:t};history.replaceState(n,"",Ue(e)),A.state=t,st.$set({page:dr(()=>De(A))})}function Lr(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if($t(),!fe){const o=ft(v,void 0,null,"leave"),r={...o.navigation,cancel:()=>{n=!0,o.reject(new Error("navigation cancelled"))}};ot.forEach(i=>i(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&$t()}),navigator.connection?.saveData||Er(),D.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Dt(t.composedPath()[0],D);if(!n)return;const{url:o,external:r,target:i,download:a}=He(n,I,S.hash);if(!o)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=$e(n);if(!(n instanceof SVGAElement)&&o.protocol!==location.protocol&&!(o.protocol==="https:"||o.protocol==="http:")||a)return;const[f,u]=(S.hash?o.hash.replace(/^#/,""):o.href).split("#"),g=f===Ve(location);if(r||s.reload&&(!g||!u)){Qt({url:o,type:"link",event:t})?fe=!0:t.preventDefault();return}if(u!==void 0&&g){const[,d]=v.url.href.split("#");if(d===u){if(t.preventDefault(),u===""||u==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=n.ownerDocument.getElementById(decodeURIComponent(u));h&&(h.scrollIntoView(),h.focus())}return}if(ae=!0,nt(O),e(o),!s.replace_state)return;ae=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),await te({type:"link",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href,event:t})}),D.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),o=t.submitter;if((o?.formTarget||n.target)==="_blank"||(o?.formMethod||n.method)!=="get")return;const a=new URL(o?.hasAttribute("formaction")&&o?.formAction||n.action);if(Ne(a,I,!1))return;const s=t.target,c=$e(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s,o);a.search=new URLSearchParams(f).toString(),te({type:"form",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Je){if(t.state?.[G]){const n=t.state[G];if(V={},n===O)return;const o=z[n],r=t.state[Qe]??{},i=new URL(t.state[Nt]??location.href),a=t.state[ne],s=v.url?Ve(location)===Ve(v.url):!1;if(a===L&&(Gt||s)){r!==A.state&&(A.state=r),e(i),z[O]=J(),o&&scrollTo(o.x,o.y),O=n;return}const f=n-O;await te({type:"popstate",url:i,popped:{state:r,scroll:o,delta:f},accept:()=>{O=n,L=a},block:()=>{history.go(-f)},nav_token:V,event:t})}else if(!ae){const n=new URL(location.href);e(n),S.hash&&location.reload()}}}),addEventListener("hashchange",()=>{ae&&(ae=!1,history.replaceState({...history.state,[G]:++O,[ne]:L},"",location.href))});for(const t of document.querySelectorAll("link"))hr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&F.navigating.set(se.current=null)});function e(t){v.url=A.url=t,F.page.set(De(A)),F.page.notify()}}async function Pr(e,{status:t=200,error:n,node_ids:o,params:r,route:i,server_route:a,data:s,form:c}){Yt=!0;const f=new URL(location.href);let u;({params:r={},route:i={id:null}}=await Ce(f,!1)||{}),u=rt.find(({id:h})=>h===i.id);let g,d=!0;try{const h=o.map(async(m,_)=>{const l=s[_];return l?.uses&&(l.uses=Ir(l.uses)),it({loader:S.nodes[m],url:f,params:r,route:i,parent:async()=>{const b={};for(let E=0;E<_;E+=1)Object.assign(b,(await h[E]).data);return b},server_data_node:ct(l)})}),p=await Promise.all(h);if(u){const m=u.layouts;for(let _=0;_<m.length;_++)m[_]||p.splice(_,0,void 0)}g=await Ie({url:f,params:r,branch:p,status:t,error:n,errors:u?.errors,form:c,route:u??null})}catch(h){if(h instanceof Ze)return await ce(new URL(h.location,location.href));g=await lt({status:tt(h),error:await K(h,{url:f,params:r,route:i}),url:f,route:i}),e.textContent="",d=!1}g&&(g.props.page&&(g.props.page.state={}),await Xt(g,e,d))}function Ir(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Je=!1;function xr(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const o=tn(e);if(o&&document.getElementById(o)){const{x:i,y:a}=J();setTimeout(()=>{const s=history.state;Je=!0,location.replace(new URL(`#${o}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(i,a),Je=!1})}else{const i=document.body,a=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),a!==null?i.setAttribute("tabindex",a):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let a=0;a<r.rangeCount;a+=1)i.push(r.getRangeAt(a));setTimeout(()=>{if(r.rangeCount===i.length){for(let a=0;a<r.rangeCount;a+=1){const s=i[a],c=r.getRangeAt(a);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function ft(e,t,n,o,r=null){let i,a;const s=new Promise((f,u)=>{i=f,a=u});return s.catch(q),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:J()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:r},willUnload:!t,type:o,complete:s},fulfil:i,reject:a}}function De(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function jr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function tn(e){let t;if(S.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}if(R){const e=console.warn;console.warn=function(...n){n.length===1&&/<(Layout|Page|Error)(_[\w$]+)?> was created (with unknown|without expected) prop '(data|form)'/.test(n[0])||e(...n)}}const qr=Object.freeze(Object.defineProperty({__proto__:null,afterNavigate:Or,beforeNavigate:$r,goto:Ar,replaceState:Tr},Symbol.toStringTag,{value:"Module"}));export{Or as a,$r as b,Pt as c,F as d,Ar as g,Cr as l,qr as n,A as p,Tr as r,Vr as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./
|
|
1
|
+
import{l as e}from"./DPbHVaEp.js";const n={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{n as conf,o as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as q,bq as s,a_ as M,by as z,br as O,b as N,bu as D,bs as V}from"./
|
|
1
|
+
import{t as q,bq as s,a_ as M,by as z,br as O,b as N,bu as D,bs as V}from"./BLK9_MXJ.js";import{aG as X,bs as A,c5 as p,aD as x,a5 as R,bS as Y,bf as P,bA as W,W as S,bn as E,c9 as B,aA as n,aB as K,ca as G,a7 as Z,ay as $}from"./DYhIMPy1.js";import{s as I}from"./DSemZQdl.js";import{c as L,f as k}from"./9ZBkr0Qf.js";import{b as j}from"./BaIAhI85.js";import{u as ee,c as H,s as te,b as re,a as ae}from"./DfxQWSVU.js";import{C as se}from"./BA_dLJoi.js";import{HR as ne,r$ as oe,bk as de}from"./DSAz0okZ.js";import{a_ as ie}from"./BKGDTzxi.js";import{m as ce}from"./7k5ozo9c.js";import{bS as le}from"./CVpyP8V1.js";import{d as ue}from"./B6l2HPmZ.js";const fe=Symbol("card-group"),ve=()=>X(fe);var me=new Set(["$$slots","$$events","$$legacy","ref","class","inert","interactive","level","border","selected","media","children"]),be=K('<div data-slot="card-media" class="shrink-0 p-4"><!></div>'),ge=K("<div><!> <!></div>");function he(o,e){if(new.target)return q({component:he,...o});A(e,!0);let d=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"inert",7,!1),u=s(e,"interactive",7,!1),v=s(e,"level",7),f=s(e,"border",7),l=s(e,"selected",7,!1),b=s(e,"media",7),r=s(e,"children",7),g=O(e,me);const m=ve(),w=B(()=>f()==="outlined"||f()===void 0&&(!m||m.border==="outlined"&&m.separated)),y=ee(),i=H(p(()=>v()??y+1));te(i);const C=H(i+1);var F={get ref(){return d()},set ref(t=null){d(t),n()},get class(){return c()},set class(t){c(t),n()},get inert(){return a()},set inert(t=!1){a(t),n()},get interactive(){return u()},set interactive(t=!1){u(t),n()},get level(){return v()},set level(t){v(t),n()},get border(){return f()},set border(t){f(t),n()},get selected(){return l()},set selected(t=!1){l(t),n()},get media(){return b()},set media(t){b(t),n()},get children(){return r()},set children(t){r(t),n()},$set:z,$on:(t,_)=>N(e,t,_)},h=ge();L(h,t=>({"data-slot":"card","data-selected":l()||void 0,"data-orientation":m?.orientation,"data-surface-level":i,"data-inert":a()||void 0,"data-interactive":u()||void 0,inert:a(),class:t,...g}),[()=>k("flex min-w-0 flex-col overflow-hidden rounded-md text-card-foreground",x(w)?m?"border border-border bg-transparent":ae(i):"bg-transparent",l()&&"bg-selected",m?.orientation==="inline"&&"flex-row items-center [&>[data-slot=card-header]]:min-w-0 [&>[data-slot=card-header]]:flex-1",m&&"relative",u()?k("cursor-pointer transition-[background-color,box-shadow] duration-(--motion-fast) ease-(--ease-standard)","focus-visible:outline focus-visible:-outline-offset-1","active:bg-active data-[state=pressed]:bg-active motion-reduce:transition-none",re(C)):"",c())]);var T=R(h);{var J=t=>{var _=be(),U=R(_);I(U,b),W(_),S(t,_)};M(T,t=>{b()&&t(J)})}var Q=Y(T,2);return I(Q,()=>r()??P),W(h),j(h,t=>d(t),()=>d()),S(o,h),E(F)}var _e=new Set(["$$slots","$$events","$$legacy","ref","class","flush","children"]),pe=K("<div><!></div>");function Se(o,e){if(new.target)return q({component:Se,...o});A(e,!0);let d=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"flush",7,!1),u=s(e,"children",7),v=O(e,_e);var f={get ref(){return d()},set ref(r=null){d(r),n()},get class(){return c()},set class(r){c(r),n()},get flush(){return a()},set flush(r=!1){a(r),n()},get children(){return u()},set children(r){u(r),n()},$set:z,$on:(r,g)=>N(e,r,g)},l=pe();L(l,r=>({"data-slot":"card-content","data-flush":a()||void 0,class:r,...v}),[()=>k("type-body min-w-0",a()?"p-0":k(se,"py-4 first:pt-4"),c())]);var b=R(l);return I(b,()=>u()??P),W(l),j(l,r=>d(r),()=>d()),S(o,l),E(f)}function Ke(o){const e=()=>ne.dispatch(oe({quiet:o.quiet}));G(()=>{o.key?.(),o.active()&&p(e)});const d=B(()=>o.workspaces().some(a=>a.status===de.Retired));let c=p(()=>x(d));G(()=>{const a=x(d);p(()=>{c&&!a&&o.active()&&e(),c=a})})}function ke(o,e){if(new.target)return q({component:ke,...o});A(e,!0);const d=()=>D(l,"$connected$",a),c=()=>D(b,"$slot$",a),[a,u]=V();let v=s(e,"workspaceId",7),f=s(e,"size",7,"default");const l=ce(),b=le(ie(()=>v()));var r={get workspaceId(){return v()},set workspaceId(i){v(i),n()},get size(){return f()},set size(i="default"){f(i),n()},$set:z,$on:(i,C)=>N(e,i,C)},g=Z(),m=$(g);{var w=i=>{ue(i,{get slot(){return c()},get size(){return f()}})};M(m,i=>{d()&&c()!==null&&i(w)})}S(o,g);var y=E(r);return u(),y}export{he as C,ke as W,Se as a,Ke as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as i}from"./
|
|
1
|
+
import{b as i}from"./B-obUB2z.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Ie}from"./BoAwi0I6.js";import{aZ as Me,U as Be,V as Ve,a_ as Ye,b as d,X as Ot,ay as de,B as Fe,h as Ue,al as je,o as Nt,b5 as ze,aV as me,aW as Jt,bi as We,z as te,n as pe}from"./DWcUEP_3.js";var jt=(function(){var t=d(function(_t,m,x,E){for(x=x||{},E=_t.length;E--;x[_t[E]]=m);return x},"o"),e=[1,24],a=[1,25],i=[1,26],u=[1,27],r=[1,28],n=[1,63],l=[1,64],s=[1,65],h=[1,66],y=[1,67],p=[1,68],g=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],X=[1,35],q=[1,36],H=[1,37],Q=[1,38],K=[1,39],G=[1,40],Z=[1,41],J=[1,42],$=[1,43],tt=[1,44],et=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],it=[1,51],ot=[1,52],lt=[1,53],ct=[1,54],ut=[1,55],ht=[1,56],dt=[1,57],pt=[1,58],ft=[1,59],yt=[1,60],kt=[14,42],Xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Pt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],oe=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],xt=[12,33],qt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ht={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(m,x,E,_,D,o,Dt){var f=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[f-3]);break;case 19:_.setTitle(o[f].substring(6)),this.$=o[f].substring(6);break;case 20:_.setAccDescription(o[f].substring(15)),this.$=o[f].substring(15);break;case 21:this.$=o[f].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[f].trim(),_.setAccDescription(this.$);break;case 28:o[f].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 29:o[f].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 30:_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 31:o[f].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[f]),this.$=o[f];break;case 32:_.addDeploymentNode("node",...o[f]),this.$=o[f];break;case 33:_.addDeploymentNode("nodeL",...o[f]),this.$=o[f];break;case 34:_.addDeploymentNode("nodeR",...o[f]),this.$=o[f];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[f]),this.$=o[f];break;case 40:_.addPersonOrSystem("external_person",...o[f]),this.$=o[f];break;case 41:_.addPersonOrSystem("system",...o[f]),this.$=o[f];break;case 42:_.addPersonOrSystem("system_db",...o[f]),this.$=o[f];break;case 43:_.addPersonOrSystem("system_queue",...o[f]),this.$=o[f];break;case 44:_.addPersonOrSystem("external_system",...o[f]),this.$=o[f];break;case 45:_.addPersonOrSystem("external_system_db",...o[f]),this.$=o[f];break;case 46:_.addPersonOrSystem("external_system_queue",...o[f]),this.$=o[f];break;case 47:_.addContainer("container",...o[f]),this.$=o[f];break;case 48:_.addContainer("container_db",...o[f]),this.$=o[f];break;case 49:_.addContainer("container_queue",...o[f]),this.$=o[f];break;case 50:_.addContainer("external_container",...o[f]),this.$=o[f];break;case 51:_.addContainer("external_container_db",...o[f]),this.$=o[f];break;case 52:_.addContainer("external_container_queue",...o[f]),this.$=o[f];break;case 53:_.addComponent("component",...o[f]),this.$=o[f];break;case 54:_.addComponent("component_db",...o[f]),this.$=o[f];break;case 55:_.addComponent("component_queue",...o[f]),this.$=o[f];break;case 56:_.addComponent("external_component",...o[f]),this.$=o[f];break;case 57:_.addComponent("external_component_db",...o[f]),this.$=o[f];break;case 58:_.addComponent("external_component_queue",...o[f]),this.$=o[f];break;case 60:_.addRel("rel",...o[f]),this.$=o[f];break;case 61:_.addRel("birel",...o[f]),this.$=o[f];break;case 62:_.addRel("rel_u",...o[f]),this.$=o[f];break;case 63:_.addRel("rel_d",...o[f]),this.$=o[f];break;case 64:_.addRel("rel_l",...o[f]),this.$=o[f];break;case 65:_.addRel("rel_r",...o[f]),this.$=o[f];break;case 66:_.addRel("rel_b",...o[f]),this.$=o[f];break;case 67:o[f].splice(0,1),_.addRel("rel",...o[f]),this.$=o[f];break;case 68:_.updateElStyle("update_el_style",...o[f]),this.$=o[f];break;case 69:_.updateRelStyle("update_rel_style",...o[f]),this.$=o[f];break;case 70:_.updateLayoutConfig("update_layout_config",...o[f]),this.$=o[f];break;case 71:this.$=[o[f]];break;case 72:o[f].unshift(o[f-1]),this.$=o[f];break;case 73:case 75:this.$=o[f].trim();break;case 74:let vt={};vt[o[f-1].trim()]=o[f].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:70,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:71,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:72,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:73,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{14:[1,74]},t(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:s,38:h,39:y,40:p,41:g,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(kt,[2,14]),t(Xt,[2,16],{12:[1,76]}),t(kt,[2,36],{12:[1,77]}),t(Pt,[2,19]),t(Pt,[2,20]),{25:[1,78]},{27:[1,79]},t(Pt,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(kt,[2,15]),t(Xt,[2,17],{21:22,19:130,22:e,23:a,24:i,26:u,28:r}),t(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:a,24:i,26:u,28:r,34:n,36:l,37:s,38:h,39:y,40:p,41:g,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(Pt,[2,21]),t(Pt,[2,22]),t(R,[2,39]),t(oe,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Bt,[2,73]),{78:[1,133]},t(Bt,[2,75]),t(Bt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Xt,[2,18]),t(kt,[2,38]),t(oe,[2,72]),t(Bt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(qt,[2,25]),t(qt,[2,26],{12:[1,138]}),t(qt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),parse:d(function(m){var x=this,E=[0],_=[],D=[null],o=[],Dt=this.table,f="",vt=0,le=0,De=2,ce=1,Ne=o.slice.call(arguments,1),A=Object.create(this.lexer),Et={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(Et.yy[Qt]=this.yy[Qt]);A.setInput(m,Et.yy),Et.yy.lexer=A,Et.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var Kt=A.yylloc;o.push(Kt);var Ae=A.options&&A.options.ranges;typeof Et.yy.parseError=="function"?this.parseError=Et.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(Le,"popStack");function ue(){var B;return B=_.pop()||A.lex()||ce,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(ue,"lex");for(var M,St,V,Gt,Ct={},Yt,z,he,Ft;;){if(St=E[E.length-1],this.defaultActions[St]?V=this.defaultActions[St]:((M===null||typeof M>"u")&&(M=ue()),V=Dt[St]&&Dt[St][M]),typeof V>"u"||!V.length||!V[0]){var Zt="";Ft=[];for(Yt in Dt[St])this.terminals_[Yt]&&Yt>De&&Ft.push("'"+this.terminals_[Yt]+"'");A.showPosition?Zt="Parse error on line "+(vt+1)+`:
|
|
1
|
+
import{e as Ie}from"./BqY6zXt8.js";import{aZ as Me,U as Be,V as Ve,a_ as Ye,b as d,X as Ot,ay as de,B as Fe,h as Ue,al as je,o as Nt,b5 as ze,aV as me,aW as Jt,bi as We,z as te,n as pe}from"./B-obUB2z.js";var jt=(function(){var t=d(function(_t,m,x,E){for(x=x||{},E=_t.length;E--;x[_t[E]]=m);return x},"o"),e=[1,24],a=[1,25],i=[1,26],u=[1,27],r=[1,28],n=[1,63],l=[1,64],s=[1,65],h=[1,66],y=[1,67],p=[1,68],g=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],X=[1,35],q=[1,36],H=[1,37],Q=[1,38],K=[1,39],G=[1,40],Z=[1,41],J=[1,42],$=[1,43],tt=[1,44],et=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],it=[1,51],ot=[1,52],lt=[1,53],ct=[1,54],ut=[1,55],ht=[1,56],dt=[1,57],pt=[1,58],ft=[1,59],yt=[1,60],kt=[14,42],Xt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Pt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],oe=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],xt=[12,33],qt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ht={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(m,x,E,_,D,o,Dt){var f=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[f-3]);break;case 19:_.setTitle(o[f].substring(6)),this.$=o[f].substring(6);break;case 20:_.setAccDescription(o[f].substring(15)),this.$=o[f].substring(15);break;case 21:this.$=o[f].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[f].trim(),_.setAccDescription(this.$);break;case 28:o[f].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 29:o[f].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 30:_.addPersonOrSystemBoundary(...o[f]),this.$=o[f];break;case 31:o[f].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[f]),this.$=o[f];break;case 32:_.addDeploymentNode("node",...o[f]),this.$=o[f];break;case 33:_.addDeploymentNode("nodeL",...o[f]),this.$=o[f];break;case 34:_.addDeploymentNode("nodeR",...o[f]),this.$=o[f];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[f]),this.$=o[f];break;case 40:_.addPersonOrSystem("external_person",...o[f]),this.$=o[f];break;case 41:_.addPersonOrSystem("system",...o[f]),this.$=o[f];break;case 42:_.addPersonOrSystem("system_db",...o[f]),this.$=o[f];break;case 43:_.addPersonOrSystem("system_queue",...o[f]),this.$=o[f];break;case 44:_.addPersonOrSystem("external_system",...o[f]),this.$=o[f];break;case 45:_.addPersonOrSystem("external_system_db",...o[f]),this.$=o[f];break;case 46:_.addPersonOrSystem("external_system_queue",...o[f]),this.$=o[f];break;case 47:_.addContainer("container",...o[f]),this.$=o[f];break;case 48:_.addContainer("container_db",...o[f]),this.$=o[f];break;case 49:_.addContainer("container_queue",...o[f]),this.$=o[f];break;case 50:_.addContainer("external_container",...o[f]),this.$=o[f];break;case 51:_.addContainer("external_container_db",...o[f]),this.$=o[f];break;case 52:_.addContainer("external_container_queue",...o[f]),this.$=o[f];break;case 53:_.addComponent("component",...o[f]),this.$=o[f];break;case 54:_.addComponent("component_db",...o[f]),this.$=o[f];break;case 55:_.addComponent("component_queue",...o[f]),this.$=o[f];break;case 56:_.addComponent("external_component",...o[f]),this.$=o[f];break;case 57:_.addComponent("external_component_db",...o[f]),this.$=o[f];break;case 58:_.addComponent("external_component_queue",...o[f]),this.$=o[f];break;case 60:_.addRel("rel",...o[f]),this.$=o[f];break;case 61:_.addRel("birel",...o[f]),this.$=o[f];break;case 62:_.addRel("rel_u",...o[f]),this.$=o[f];break;case 63:_.addRel("rel_d",...o[f]),this.$=o[f];break;case 64:_.addRel("rel_l",...o[f]),this.$=o[f];break;case 65:_.addRel("rel_r",...o[f]),this.$=o[f];break;case 66:_.addRel("rel_b",...o[f]),this.$=o[f];break;case 67:o[f].splice(0,1),_.addRel("rel",...o[f]),this.$=o[f];break;case 68:_.updateElStyle("update_el_style",...o[f]),this.$=o[f];break;case 69:_.updateRelStyle("update_rel_style",...o[f]),this.$=o[f];break;case 70:_.updateLayoutConfig("update_layout_config",...o[f]),this.$=o[f];break;case 71:this.$=[o[f]];break;case 72:o[f].unshift(o[f-1]),this.$=o[f];break;case 73:case 75:this.$=o[f].trim();break;case 74:let vt={};vt[o[f-1].trim()]=o[f].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:70,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:71,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:72,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{13:73,19:20,20:21,21:22,22:e,23:a,24:i,26:u,28:r,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{14:[1,74]},t(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:s,38:h,39:y,40:p,41:g,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(kt,[2,14]),t(Xt,[2,16],{12:[1,76]}),t(kt,[2,36],{12:[1,77]}),t(Pt,[2,19]),t(Pt,[2,20]),{25:[1,78]},{27:[1,79]},t(Pt,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:p,41:g,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(kt,[2,15]),t(Xt,[2,17],{21:22,19:130,22:e,23:a,24:i,26:u,28:r}),t(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:a,24:i,26:u,28:r,34:n,36:l,37:s,38:h,39:y,40:p,41:g,44:v,45:w,46:N,47:O,48:P,49:I,50:X,51:q,52:H,53:Q,54:K,55:G,56:Z,57:J,58:$,59:tt,60:et,61:nt,62:st,63:at,64:rt,65:it,66:ot,67:lt,68:ct,69:ut,70:ht,71:dt,72:pt,73:ft,74:yt}),t(Pt,[2,21]),t(Pt,[2,22]),t(R,[2,39]),t(oe,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Bt,[2,73]),{78:[1,133]},t(Bt,[2,75]),t(Bt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Xt,[2,18]),t(kt,[2,38]),t(oe,[2,72]),t(Bt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(qt,[2,25]),t(qt,[2,26],{12:[1,138]}),t(qt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),parse:d(function(m){var x=this,E=[0],_=[],D=[null],o=[],Dt=this.table,f="",vt=0,le=0,De=2,ce=1,Ne=o.slice.call(arguments,1),A=Object.create(this.lexer),Et={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(Et.yy[Qt]=this.yy[Qt]);A.setInput(m,Et.yy),Et.yy.lexer=A,Et.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var Kt=A.yylloc;o.push(Kt);var Ae=A.options&&A.options.ranges;typeof Et.yy.parseError=="function"?this.parseError=Et.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(Le,"popStack");function ue(){var B;return B=_.pop()||A.lex()||ce,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(ue,"lex");for(var M,St,V,Gt,Ct={},Yt,z,he,Ft;;){if(St=E[E.length-1],this.defaultActions[St]?V=this.defaultActions[St]:((M===null||typeof M>"u")&&(M=ue()),V=Dt[St]&&Dt[St][M]),typeof V>"u"||!V.length||!V[0]){var Zt="";Ft=[];for(Yt in Dt[St])this.terminals_[Yt]&&Yt>De&&Ft.push("'"+this.terminals_[Yt]+"'");A.showPosition?Zt="Parse error on line "+(vt+1)+`:
|
|
2
2
|
`+A.showPosition()+`
|
|
3
3
|
Expecting `+Ft.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Zt="Parse error on line "+(vt+1)+": Unexpected "+(M==ce?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Zt,{text:A.match,token:this.terminals_[M]||M,line:A.yylineno,loc:Kt,expected:Ft})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+St+", token: "+M);switch(V[0]){case 1:E.push(M),D.push(A.yytext),o.push(A.yylloc),E.push(V[1]),M=null,le=A.yyleng,f=A.yytext,vt=A.yylineno,Kt=A.yylloc;break;case 2:if(z=this.productions_[V[1]][1],Ct.$=D[D.length-z],Ct._$={first_line:o[o.length-(z||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(z||1)].first_column,last_column:o[o.length-1].last_column},Ae&&(Ct._$.range=[o[o.length-(z||1)].range[0],o[o.length-1].range[1]]),Gt=this.performAction.apply(Ct,[f,le,vt,Et.yy,V[1],D,o].concat(Ne)),typeof Gt<"u")return Gt;z&&(E=E.slice(0,-1*z*2),D=D.slice(0,-1*z),o=o.slice(0,-1*z)),E.push(this.productions_[V[1]][0]),D.push(Ct.$),o.push(Ct._$),he=Dt[E[E.length-2]][E[E.length-1]],E.push(he);break;case 3:return!0}}return!0},"parse")},Pe=(function(){var _t={EOF:1,parseError:d(function(x,E){if(this.yy.parser)this.yy.parser.parseError(x,E);else throw new Error(x)},"parseError"),setInput:d(function(m,x){return this.yy=x||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var x=m.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:d(function(m){var x=m.length,E=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var _=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var D=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===_.length?this.yylloc.first_column:0)+_[_.length-E.length].length-E[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(m){this.unput(this.match.slice(m))},"less"),pastInput:d(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var m=this.pastInput(),x=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var j=Object.defineProperty;var V=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>V(s,typeof e!="symbol"?e+"":e,t);import{f as x,j as G,p as z}from"./BlOn95cv.js";import{u as J,o as T,_ as C,s as b,l as O,n as U}from"./UyBYtOpv.js";import{bo as $}from"./DozYGPQ1.js";class u extends Error{constructor(t){super(t.message);n(this,"code");n(this,"data");n(this,"rpcCode");this.name="BackendError",this.code=t.code,this.data=t.data,this.rpcCode=t.rpcCode}}function Ee(s){return!s||typeof s!="object"?!1:typeof s.rpcCode=="number"}const K=-32003;function Ce(s){return!s||typeof s!="object"?!1:s.rpcCode===K}const Ae=x.refine(s=>s.repository.provider==="github"&&s.kind==="pull-request"||s.repository.provider==="gitlab"&&s.kind==="merge-request"),_e=J([T({state:C(["available","pending","reconnect-required","restricted","disabled","unsupported","unavailable","unknown"])}),T({state:O("backoff"),retryAt:b()}),T({state:O("unresolved"),reason:C(["missing-provenance","unverified-import","invalid-target","missing-authority","unknown"]).catch("unknown")})]).catch({state:"unknown"}),Oe=T({backendId:b().min(1),sessionId:b().min(1),workspaceId:b().min(1)}).strict();function v(s){return typeof s=="number"&&Number.isSafeInteger(s)&&s>=1}function Ne(s){if(s.resource||s.monitorAvailability||s.title===null||s.url===null||s.lastSnapshot===null)return!1;const e=s.lastSnapshot;return!e||!e.availability&&e.isDraft!==null&&e.hasConflicts!==null&&e.isBehind!==null&&Object.values(e.checks).every(t=>t!==null)&&e.approvals.decision!==null&&e.approvals.have!==null&&e.approvals.changesRequested!==null}const Ie=new Set(["agent.getConversation","agent.listUserMessages","agent.getMessageBlock","chat.subscribe","chat.unsubscribe"]);class Y{constructor(e,t,i,o,a,d,R){n(this,"ready");n(this,"acknowledged",!1);n(this,"closed",!1);n(this,"id",0);n(this,"pending",new Map);n(this,"listeners",new Set);n(this,"rejectReady");n(this,"timer");this.socket=e,this.currentSource=o,this.timeoutMs=a,this.onFailure=R,this.ready=new Promise((m,r)=>{this.rejectReady=r,e.onopen=()=>{if(!this.current())return this.fail();this.send("client.hello",{clientId:t,connectionRole:"review-monitor",capabilities:{reviewMonitoring:i}}).then(f=>{const c=f;if(!this.current()||c?.clientId!==t||c?.connectionRole!=="review-monitor"||!v(c?.server?.capabilities?.reviewMonitoring))return this.fail();this.acknowledged=!0,clearTimeout(this.timer),m()},()=>this.fail())}}),this.timer=setTimeout(()=>this.fail(),d),e.onerror=()=>this.fail(),e.onclose=()=>this.fail(),e.onmessage=({data:m})=>{if(!this.current()||typeof m!="string")return;let r;try{r=JSON.parse(m)}catch{return}if(!r||typeof r!="object")return;if(typeof r.method=="string"){if(r.id!=null){try{e.send(JSON.stringify({jsonrpc:"2.0",id:r.id,error:{code:-32601,message:"Method not found"}}))}catch{this.fail()}return}if(this.acknowledged)for(const c of[...this.listeners])c({method:r.method,params:r.params});return}if(typeof r.id!="number")return;const f=this.pending.get(r.id);if(f)if(this.pending.delete(r.id),clearTimeout(f.timer),r.error){const c=r.error.data,g=c&&typeof c=="object"&&"code"in c&&typeof c.code=="string"?c.code:"SERVER_ERROR";f.reject(new u({code:g,message:typeof r.error.message=="string"?r.error.message:"Monitor request failed",data:c,rpcCode:typeof r.error.code=="number"?r.error.code:void 0}))}else f.resolve(r.result)}}current(){return!this.closed&&this.currentSource()}onNotification(e){return this.listeners.add(e),()=>this.listeners.delete(e)}request(e,t){return!this.acknowledged||e==="client.hello"?Promise.reject(this.unavailable()):this.send(e,t)}close(){if(this.closed)return;this.closed=!0,this.acknowledged=!1,clearTimeout(this.timer);const e=this.unavailable();this.rejectReady(e);for(const t of this.pending.values())clearTimeout(t.timer),t.reject(e);this.pending.clear(),this.listeners.clear(),this.socket.onopen=this.socket.onmessage=this.socket.onerror=this.socket.onclose=null;try{this.socket.close()}catch{}}fail(){this.closed||(this.close(),this.onFailure())}unavailable(){return new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor attachment unavailable"})}send(e,t){if(!this.current())return Promise.reject(this.unavailable());const i=++this.id;return new Promise((o,a)=>{const d=setTimeout(()=>{this.pending.delete(i),a(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`}))},this.timeoutMs);this.pending.set(i,{resolve:o,reject:a,timer:d});try{this.socket.send(JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:t}))}catch{this.fail()}})}}const X=["agentNodes","localNodeIsolation","agentPlatformRouting","workspaceMembershipEvents","rawScreenshotRetention","chiefAttachments","noteTruncatedRead","remoteMachines","remoteInitialAgent","remoteMachineClaim","remoteLinkTraffic","cloudMachines","cloudMachineEntries","cloudMachineProviders"];function Q(s){return Object.freeze(Object.fromEntries(X.map(e=>[e,s?.[e]===1?1:0])))}function Z(s){if(!G(s,11,1))throw new Error($.files_secondaryRoot_unsupported_error())}function ee(s,e,t){te(s,e)&&Z(t)}function te(s,e){if(s!=="file.read"&&s!=="file.readChunk")return!1;const t=e?.gitRootId;return typeof t=="string"&&!!t.trim()}const N=-32012,se="system.startupStatus",ne=1e3,L=1e3,F=3e4,w=U().int().nonnegative().max(Number.MAX_SAFE_INTEGER),ie=T({completedNotes:w,totalNotes:w,processedSourceBytes:w,totalSourceBytes:w}).refine(s=>s.completedNotes<=s.totalNotes&&s.processedSourceBytes<=s.totalSourceBytes),oe=T({startupStatus:O(1),daemonVersion:b().min(1).optional(),attemptId:b().min(1),phase:C(["preparing","indexing","finalizing","ready","failed"]),elapsedMs:w,phaseElapsedMs:w,progressAgeMs:w,retryAfterMs:U().int().min(L).max(F).optional(),progress:ie.optional(),estimatedRemainingMs:w.optional(),finalizingStep:C(["anchors","committing","services"]).optional(),failure:T({code:b().min(1),message:b().min(1)}).optional()}).refine(s=>(s.phase==="ready"||s.phase==="failed"?s.retryAfterMs===void 0:s.retryAfterMs!==void 0)&&(s.phase==="finalizing"?s.finalizingStep!==void 0:s.finalizingStep===void 0)&&(s.phase==="failed"?s.failure!==void 0:s.failure===void 0)&&(s.estimatedRemainingMs===void 0||s.phase==="indexing"));function B(s){const e=oe.safeParse(s);return e.success?e.data:null}function P(s){const e=typeof s=="number"&&Number.isFinite(s)?s:ne;return Math.min(F,Math.max(L,e))}function re(s){const e=s;return typeof e.rpcCode=="number"?e.rpcCode:typeof e.code=="number"?e.code:void 0}function q(s){if(!s||typeof s!="object"||re(s)!==N)return;const e=s.data??{},t=B(e.startup);if(e.code==="daemon-startup-failed"){const i=e.startup?.failure?.message,o=s.message;return{kind:"failed",message:typeof i=="string"&&i.trim()?i:typeof o=="string"?o:"",snapshot:t}}if(!(e.code!=="daemon-not-ready"||e.retryable!==!0))return{kind:"not-ready",retryAfterMs:P(e.retryAfterMs),snapshot:t}}function D(s){const e=s.snapshot??void 0;return s.state==="failed"?{code:N,message:"Daemon startup failed",data:{code:"daemon-startup-failed",retryable:!1,startup:e}}:{code:N,message:"Daemon not ready",data:{code:"daemon-not-ready",retryable:!0,retryAfterMs:P(e?.retryAfterMs),startup:e}}}const ae=5e3,ce=5e3,le=3e4;function he(s){const e=s.snapshot;return JSON.stringify([s.state,s.available,e?.attemptId,e?.phase,e?.finalizingStep,e?.progress?.completedNotes,e?.progress?.totalNotes,e?.estimatedRemainingMs===void 0,(e?.progressAgeMs??0)>=le])}class ue{constructor(e){n(this,"generation",0);n(this,"timer",null);n(this,"snapshot",null);n(this,"lastKey",null);n(this,"lastPublishedAt",0);this.host=e}start(e){this.stop(),this.snapshot=e.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:e.snapshot!==null},!0),this.schedule(e.retryAfterMs)}stop(){this.generation++,this.timer&&(clearTimeout(this.timer),this.timer=null)}reset(){this.stop(),this.snapshot=null,this.lastKey=null,this.lastPublishedAt=0}publish(e,t=!1){const i=he(e),o=Date.now();!t&&i===this.lastKey&&o-this.lastPublishedAt<ce||(this.lastKey=i,this.lastPublishedAt=o,this.host.publish(e))}schedule(e){const t=this.generation;this.timer=setTimeout(()=>{if(this.timer=null,t!==this.generation)return;const i=()=>this.poll(t);this.host.track?this.host.track(i):i()},e)}async poll(e){let t;try{t=B(await this.host.request())}catch(i){if(e!==this.generation)return;const o=q(i);if(o?.kind==="failed"){this.stop(),this.host.fail(o.message,o.snapshot);return}if(o?.kind==="not-ready"){this.snapshot=o.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:o.snapshot!==null}),this.schedule(o.retryAfterMs);return}this.unavailable();return}if(e===this.generation){if(t===null){this.unavailable();return}if(this.snapshot=t,t.phase==="failed"){this.stop(),this.host.fail(t.failure?.message??"",t);return}if(t.phase==="ready"){this.stop(),this.publish({state:"starting",snapshot:t,available:!0},!0),this.host.handoff(!0);return}this.publish({state:"starting",snapshot:t,available:!0}),this.schedule(P(t.retryAfterMs))}}unavailable(){this.stop(),this.publish({state:"starting",snapshot:this.snapshot,available:!1},!0),this.host.handoff(!1)}}function Pe(s=(()=>{const e=globalThis.__INTENT_RUNTIME_CONFIG__;return e?.intentdWsUrl!==void 0?e.intentdWsUrl:typeof process>"u"?void 0:""})()){if(typeof s!="string")return;const e=s.trim();if(!e)return;if(e.startsWith("/")&&!e.startsWith("//")&&!e.includes("\\")){const o=globalThis.location;if(o?.host&&(o.protocol==="http:"||o.protocol==="https:"))return`${o.protocol==="https:"?"wss:":"ws:"}//${o.host}${e}`;console.warn("[browser-websocket-transport] Ignoring same-origin WebSocket path without an HTTP page origin");return}let t;try{t=new URL(e)}catch{console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}if(t.protocol!=="ws:"&&t.protocol!=="wss:"){console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}const i=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol==="ws:"&&!i){console.warn("[browser-websocket-transport] Ignoring insecure remote WebSocket URL: use wss://");return}return e}function de(s){try{const e=new URL(s);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return s.replace(/[?#].*$/,"").replace(/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i,"$1")}}const fe={[-32700]:"PARSE_ERROR",[-32600]:"INVALID_REQUEST",[-32601]:"METHOD_NOT_FOUND",[-32602]:"INVALID_PARAMS",[-32603]:"INTERNAL_ERROR"};function pe(s){const e=fe[s];return e||(s<=-32e3&&s>=-32099?"SERVER_ERROR":"UNKNOWN_ERROR")}function me(s){if(s&&typeof s=="object"&&"code"in s){const e=s.code;if(typeof e=="string"&&e.length>0)return e}}function _(s){const e=me(s.data)??pe(s.code),t=s.data&&typeof s.data=="object"?{...s.data,code:e}:typeof s.data=="string"&&s.data.length>0?{code:e,detail:s.data}:{code:e};return{code:e,message:s.message,data:t,rpcCode:s.code}}function E(s){if(s instanceof u)return s;const e=s instanceof Error?s.message:String(s);return new u({code:"TRANSPORT_ERROR",message:e,data:{code:"TRANSPORT_ERROR"}})}const ge=3e4,Re=1e3,ye=3e4,Se=1e4,be=5e3;class we{constructor(e){n(this,"url");n(this,"webSocketFactory");n(this,"requestTimeoutMs");n(this,"reconnectDelayMs");n(this,"maxReconnectDelayMs");n(this,"connectTimeoutMs");n(this,"socket",null);n(this,"connected",!1);n(this,"connecting",!1);n(this,"disposed",!1);n(this,"requestId",0);n(this,"currentReconnectDelay");n(this,"reconnectTimer",null);n(this,"connectTimer",null);n(this,"connectWaiters",[]);n(this,"clientId");n(this,"helloConfirmed",!1);n(this,"acknowledgedHello",null);n(this,"nodeCapabilities",null);n(this,"capabilityHelloGeneration",0);n(this,"reviewMonitoring");n(this,"reviewMonitoringRecipient");n(this,"reviewMonitoringEnabled",!1);n(this,"ordinaryHello",!1);n(this,"monitorRetry",null);n(this,"monitorRetirements",new Set);n(this,"monitorReady",new Set);n(this,"protocolVersion",null);n(this,"helloError",new u({code:"UNAVAILABLE",message:"client.hello has not completed on this connection"}));n(this,"pending",new Map);n(this,"hasBeenConnected",!1);n(this,"hasConnectionFailed",!1);n(this,"notificationHandlers",new Set);n(this,"reconnectedHandlers",new Set);n(this,"statusHandlers",new Set);n(this,"lastNotifiedStatus","disconnected");n(this,"startupState",null);n(this,"startupSocket",null);n(this,"startupPoller",new ue({request:()=>{const e=this.startupSocket;return e?this.requestOnSocket(se,void 0,{timeoutMs:ae},e):Promise.reject(this.startupRefusal())},publish:e=>this.updateStartup(e),handoff:e=>this.startupHandoff(e),fail:(e,t)=>this.failStartup(e,t)}));n(this,"startupHandlers",new Set);this.reviewMonitoringEnabled=v(e.reviewMonitoring),this.reviewMonitoringRecipient=v(e.reviewMonitoring)?e.reviewMonitoring:void 0,this.url=e.url,this.webSocketFactory=e.webSocketFactory??(t=>new WebSocket(t)),this.requestTimeoutMs=e.requestTimeoutMs??ge,this.reconnectDelayMs=e.reconnectDelayMs??Re,this.maxReconnectDelayMs=e.maxReconnectDelayMs??ye,this.connectTimeoutMs=e.connectTimeoutMs??Se,this.currentReconnectDelay=this.reconnectDelayMs}isAvailable(){return!this.disposed}async readPrincipal(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected(),t=this.capabilityHelloGeneration,i=structuredClone(this.acknowledgedHello),o=()=>!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t&&this.acknowledgedHello!==null;if(!o())throw this.helloError;const a=await this.requestOnSocket("principal.me",{},void 0,e);if(!o())throw new u({code:"UNAVAILABLE",message:"Principal discovery connection changed"});return{hello:i,principal:a}}async observeNodeCapabilities(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected();if(this.disposed||!this.connected||this.socket!==e)throw new u({code:"UNAVAILABLE",message:"Backend connection changed"});return{server:{capabilities:this.nodeCapabilities}}}onMonitorReconnected(e){this.monitorReady.add(e);const t=this.onReconnected(e);return()=>{this.monitorReady.delete(e),t()}}prMonitorBackendId(){return de(this.url)}async capturePrMonitorSession(e){const t=await this.ensureConnected(),i=this.capabilityHelloGeneration,o=()=>new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});let a,d=!1;const R=new Set,m=new Set,r=()=>{if(!d){d=!0,this.monitorRetirements.delete(r),a?.close();for(const l of R)l();R.clear()}},f=()=>!d&&!this.disposed&&this.connected&&this.helloConfirmed&&this.socket===t&&i===this.capabilityHelloGeneration,c=()=>f()&&(!a||a.current());if(!c())throw o();this.monitorRetirements.add(r);const g=v(this.reviewMonitoring);let M=g?"consumer-pending":"unsupported";if(g&&this.reviewMonitoringEnabled&&this.ordinaryHello&&this.clientId)try{if(a=new Y(this.webSocketFactory(this.url),this.clientId,Math.min(this.reviewMonitoringRecipient,this.reviewMonitoring),f,this.requestTimeoutMs,this.connectTimeoutMs,()=>{const l=f();r(),l&&this.scheduleMonitorRecovery(t,i)}),await a.ready,!c())throw o();M="supported"}catch(l){const p=f();throw r(),p&&this.scheduleMonitorRecovery(t,i),l}const y=(l,p)=>a?a.request(l,p):this.requestOnSocket(l,p,void 0,t);return{origin:{backendId:this.prMonitorBackendId(),sessionId:crypto.randomUUID(),workspaceId:e},support:M,onRetired(l){return c()?(R.add(l),()=>{R.delete(l)}):(l(),()=>{})},onNotification:l=>(a??this).onNotification(p=>{c()&&l(p)}),request:async(l,p)=>{if(!c()||M==="consumer-pending"||p.workspaceId!==e)throw o();const k=await y(l,p),h=l==="events.subscribe"?k?.subscriptionId:void 0;if(!c())throw h&&this.socket===t&&this.connected&&i===this.capabilityHelloGeneration&&y("events.unsubscribe",{workspaceId:e,subscriptionId:h}).catch(()=>{}),o();return h&&m.add(h),l==="events.unsubscribe"&&m.delete(String(p.subscriptionId)),k},release:async()=>{const l=c();r(),l&&!a&&await Promise.all([...m].map(p=>this.requestOnSocket("events.unsubscribe",{workspaceId:e,subscriptionId:p},void 0,t).catch(()=>{})))}}}request(e,t,i){return this.requestOnSocket(e,t,i)}requestOnSocket(e,t,i,o){if(i?.localMachine)return Promise.reject(new u({code:"UNAVAILABLE",message:"Local machine requests require the desktop bridge"}));if(this.disposed)return Promise.reject(new u({code:"UNAVAILABLE",message:"Backend transport disposed"}));if(!o&&this.startupState?.state==="starting")return Promise.reject(new u(_(D(this.startupState))));const a=++this.requestId,d=i?.timeoutMs,R=typeof d=="number"&&Number.isFinite(d)&&d>0?d:this.requestTimeoutMs;return new Promise((m,r)=>{let f=!1;const c=setTimeout(()=>{f=!0,this.pending.delete(a),r(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`,data:{code:"TIMEOUT"}}))},R),g=y=>{clearTimeout(c),r(E(y))},M=y=>{if(f)return;if(this.disposed||this.socket!==y){g(new u({code:"TRANSPORT_ERROR",message:"Connection replaced"}));return}if(e==="presence.update"&&!this.helloConfirmed){g(this.helloError);return}try{ee(e,t,this.protocolVersion)}catch(h){g(h);return}let l=e==="client.hello"&&this.clientId?{clientId:this.clientId,...t}:t;if(e==="client.hello"){const h={...l},S={...h.capabilities};Object.prototype.hasOwnProperty.call(S,"reviewMonitoring")&&(this.reviewMonitoringEnabled=this.reviewMonitoringRecipient!==void 0&&v(S.reviewMonitoring)),delete S.reviewMonitoring,delete h.connectionRole,h.capabilities!==void 0&&(h.capabilities=S),l=h}const p=JSON.stringify({jsonrpc:"2.0",id:a,method:e,params:l}),k=e==="client.hello"?++this.capabilityHelloGeneration:0;if(e==="client.hello"){this.helloConfirmed=!1,this.ordinaryHello=!1,this.clearMonitorRecovery(),this.nodeCapabilities=null,this.reviewMonitoring=void 0;for(const h of[...this.monitorRetirements])h();this.acknowledgedHello=null}this.pending.set(a,{method:e,timeout:c,resolve:h=>{if(e==="client.hello"&&this.socket===y&&k===this.capabilityHelloGeneration){const S=h?.clientId;if(typeof S=="string"&&S.length>0){const H=h.server?.capabilities;if(this.clientId=S,this.reviewMonitoring=H?.reviewMonitoring,this.ordinaryHello=h.connectionRole===void 0,this.acknowledgedHello=structuredClone(h),this.nodeCapabilities=Q(H),this.protocolVersion=z(h.protocolVersion),this.helloConfirmed=!0,this.connected)for(const W of this.monitorReady)W()}}m(h)},reject:r});try{y.send(p)}catch(h){clearTimeout(c),this.pending.delete(a),r(E(h))}};o?M(o):this.connected&&this.socket?M(this.socket):this.ensureConnected().then(M,g)})}async subscribe(e){return this.request("events.subscribe",e)}async unsubscribe(e,t){try{await this.request("events.unsubscribe",{subscriptionId:e,...t!==void 0?{workspaceId:t}:{}})}catch{}}onNotification(e){return this.notificationHandlers.add(e),()=>this.notificationHandlers.delete(e)}onReconnected(e){return this.reconnectedHandlers.add(e),()=>this.reconnectedHandlers.delete(e)}getConnectionStatus(){return this.connected?"connected":this.connecting?"connecting":"disconnected"}getStartupState(){return this.startupState}onStartupChange(e){return this.startupHandlers.add(e),()=>this.startupHandlers.delete(e)}onConnectionStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}dispose(){if(this.disposed)return;this.disposed=!0,this.clearReconnect(),this.clearConnectTimer();const e=new u({code:"UNAVAILABLE",message:"Backend transport disposed"});this.failPending(e),this.failWaiters(e),this.teardownSocket(),this.connected=!1,this.connecting=!1,this.notifyStatusChange(),this.notificationHandlers.clear(),this.reconnectedHandlers.clear(),this.statusHandlers.clear(),this.startupHandlers.clear()}ensureConnected(){return this.connected&&this.socket?Promise.resolve(this.socket):new Promise((e,t)=>{this.connectWaiters.push({resolve:e,reject:t}),this.start()})}start(){this.disposed||this.socket||this.connecting||this.reconnectTimer||this.connect()}connect(){this.clearReconnect(),this.connecting=!0,this.notifyStatusChange();let e;try{e=this.webSocketFactory(this.url)}catch(t){this.connecting=!1,this.onConnectionFailure(E(t));return}this.socket=e,this.helloConfirmed=!1,this.connectTimer=setTimeout(()=>{this.connectTimer=null,!(this.socket!==e||this.connected)&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:`WebSocket connect attempt timed out after ${this.connectTimeoutMs}ms`})))},this.connectTimeoutMs),e.onopen=()=>{this.socket===e&&this.onConnected(e)},e.onmessage=t=>{this.socket===e&&this.onMessage(t.data)},e.onerror=null,e.onclose=()=>{this.socket===e&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})))}}onConnected(e){this.clearConnectTimer(),this.performHelloHandshake(e)}async performHelloHandshake(e){try{await this.requestOnSocket("client.hello",{},{timeoutMs:Math.min(this.requestTimeoutMs,be)},e)}catch(o){if(this.disposed||this.socket!==e)return;const a=q(o);if(a){this.enterStartup(e,a);return}this.helloError=E(o)}if(this.disposed||this.socket!==e)return;this.startupPoller.reset(),this.startupSocket=null;const t=this.startupState!==null;this.startupState=null,this.connecting=!1,this.connected=!0,this.currentReconnectDelay=this.reconnectDelayMs;const i=this.hasBeenConnected||this.hasConnectionFailed;if(this.hasBeenConnected=!0,this.hasConnectionFailed=!1,this.notifyStatusChange(),t)for(const o of[...this.startupHandlers])o(null);if(this.flushWaiters(e),i)for(const o of[...this.reconnectedHandlers])o()}onConnectionFailure(e){if(this.clearConnectTimer(),!this.disposed){if(this.startupSocket!==null&&this.startupSocket===this.socket){this.startupHandoff(!0);return}this.startupState?.state==="starting"&&(this.startupPoller.reset(),this.updateStartup(null)),this.hasConnectionFailed=!0,this.connected=!1,this.notifyStatusChange(),this.teardownSocket(),this.failPending(e),this.failWaiters(e),this.scheduleReconnect()}}notifyStatusChange(){const e=this.getConnectionStatus();if(e!==this.lastNotifiedStatus){this.lastNotifiedStatus=e;for(const t of[...this.statusHandlers])t(e)}}onMessage(e){if(typeof e!="string")return;let t;try{t=JSON.parse(e)}catch{console.warn("[browser-websocket-transport] Dropping unparseable frame");return}if(!t||typeof t!="object")return;const i=typeof t.method=="string",o=t.id!=null;if(i&&o){this.sendFrame({jsonrpc:"2.0",id:t.id,error:{code:-32601,message:`Method not found: ${String(t.method)}`}});return}if(o){const a=Number(t.id),d=this.pending.get(a);if(!d)return;this.pending.delete(a),clearTimeout(d.timeout),t.error?d.reject(new u(_(t.error))):d.resolve(t.result);return}if(i){const a={method:t.method,params:t.params};for(const d of[...this.notificationHandlers])d(a)}}sendFrame(e){try{this.socket?.send(JSON.stringify(e))}catch{}}scheduleReconnect(){if(this.disposed||this.reconnectTimer)return;const e=this.currentReconnectDelay;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.currentReconnectDelay=Math.min(e*2,this.maxReconnectDelayMs),this.disposed||this.connect()},e)}clearReconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearConnectTimer(){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=null)}scheduleMonitorRecovery(e,t){this.monitorRetry||this.disposed||(this.monitorRetry=setTimeout(()=>{if(this.monitorRetry=null,!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t)for(const i of[...this.monitorReady])i()},this.reconnectDelayMs))}clearMonitorRecovery(){this.monitorRetry&&clearTimeout(this.monitorRetry),this.monitorRetry=null}teardownSocket(){this.startupPoller.stop(),this.startupSocket=null,this.reviewMonitoring=void 0,this.clearMonitorRecovery();for(const t of[...this.monitorRetirements])t();if(this.acknowledgedHello=null,this.nodeCapabilities=null,this.capabilityHelloGeneration+=1,this.protocolVersion=null,!this.socket)return;const e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}}updateStartup(e){this.startupState=e?Object.freeze({...e}):null;for(const t of[...this.startupHandlers])t(this.startupState)}startupRefusal(){return this.startupState?new u(_(D(this.startupState))):new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})}enterStartup(e,t){if(this.hasConnectionFailed=!0,t.kind==="failed"){this.failStartup(t.message,t.snapshot);return}this.startupSocket=e,this.startupPoller.start(t),this.failWaiters(this.startupRefusal())}startupHandoff(e){const t=this.startupRefusal();if(this.teardownSocket(),this.failPending(t),this.disposed)return;this.connecting=!0,this.notifyStatusChange(),this.clearReconnect();let i=this.reconnectDelayMs;e?this.currentReconnectDelay=this.reconnectDelayMs:(i=this.currentReconnectDelay,this.currentReconnectDelay=Math.min(i*2,this.maxReconnectDelayMs)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.disposed||this.connect()},i)}failStartup(e,t){this.startupPoller.stop(),this.startupSocket=null,this.hasConnectionFailed=!0,this.updateStartup({state:"failed",snapshot:t,available:t!==null,message:e}),this.connecting=!1,this.onConnectionFailure(this.startupRefusal())}failPending(e){for(const t of this.pending.values())clearTimeout(t.timeout),t.reject(e);this.pending.clear()}flushWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.resolve(e)}failWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.reject(e)}}function He(s){return new we(s)}let A=null;const I=new Set;function De(s){A=s;for(const e of[...I])e(s)}function Ue(){return A}function Le(s){return I.add(s),A&&s(A),()=>I.delete(s)}export{u as B,_e as M,Oe as P,Ie as R,Ae as a,Ce as b,He as c,Ne as d,Pe as e,v as f,Ue as g,Ee as i,Le as o,De as r,de as s};
|
|
1
|
+
var j=Object.defineProperty;var V=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>V(s,typeof e!="symbol"?e+"":e,t);import{f as x,j as G,p as z}from"./BlOn95cv.js";import{u as J,o as T,_ as C,s as b,l as O,n as U}from"./UyBYtOpv.js";import{bo as $}from"./BLK9_MXJ.js";class u extends Error{constructor(t){super(t.message);n(this,"code");n(this,"data");n(this,"rpcCode");this.name="BackendError",this.code=t.code,this.data=t.data,this.rpcCode=t.rpcCode}}function Ee(s){return!s||typeof s!="object"?!1:typeof s.rpcCode=="number"}const K=-32003;function Ce(s){return!s||typeof s!="object"?!1:s.rpcCode===K}const Ae=x.refine(s=>s.repository.provider==="github"&&s.kind==="pull-request"||s.repository.provider==="gitlab"&&s.kind==="merge-request"),_e=J([T({state:C(["available","pending","reconnect-required","restricted","disabled","unsupported","unavailable","unknown"])}),T({state:O("backoff"),retryAt:b()}),T({state:O("unresolved"),reason:C(["missing-provenance","unverified-import","invalid-target","missing-authority","unknown"]).catch("unknown")})]).catch({state:"unknown"}),Oe=T({backendId:b().min(1),sessionId:b().min(1),workspaceId:b().min(1)}).strict();function v(s){return typeof s=="number"&&Number.isSafeInteger(s)&&s>=1}function Ne(s){if(s.resource||s.monitorAvailability||s.title===null||s.url===null||s.lastSnapshot===null)return!1;const e=s.lastSnapshot;return!e||!e.availability&&e.isDraft!==null&&e.hasConflicts!==null&&e.isBehind!==null&&Object.values(e.checks).every(t=>t!==null)&&e.approvals.decision!==null&&e.approvals.have!==null&&e.approvals.changesRequested!==null}const Ie=new Set(["agent.getConversation","agent.listUserMessages","agent.getMessageBlock","chat.subscribe","chat.unsubscribe"]);class Y{constructor(e,t,i,o,a,d,R){n(this,"ready");n(this,"acknowledged",!1);n(this,"closed",!1);n(this,"id",0);n(this,"pending",new Map);n(this,"listeners",new Set);n(this,"rejectReady");n(this,"timer");this.socket=e,this.currentSource=o,this.timeoutMs=a,this.onFailure=R,this.ready=new Promise((m,r)=>{this.rejectReady=r,e.onopen=()=>{if(!this.current())return this.fail();this.send("client.hello",{clientId:t,connectionRole:"review-monitor",capabilities:{reviewMonitoring:i}}).then(f=>{const c=f;if(!this.current()||c?.clientId!==t||c?.connectionRole!=="review-monitor"||!v(c?.server?.capabilities?.reviewMonitoring))return this.fail();this.acknowledged=!0,clearTimeout(this.timer),m()},()=>this.fail())}}),this.timer=setTimeout(()=>this.fail(),d),e.onerror=()=>this.fail(),e.onclose=()=>this.fail(),e.onmessage=({data:m})=>{if(!this.current()||typeof m!="string")return;let r;try{r=JSON.parse(m)}catch{return}if(!r||typeof r!="object")return;if(typeof r.method=="string"){if(r.id!=null){try{e.send(JSON.stringify({jsonrpc:"2.0",id:r.id,error:{code:-32601,message:"Method not found"}}))}catch{this.fail()}return}if(this.acknowledged)for(const c of[...this.listeners])c({method:r.method,params:r.params});return}if(typeof r.id!="number")return;const f=this.pending.get(r.id);if(f)if(this.pending.delete(r.id),clearTimeout(f.timer),r.error){const c=r.error.data,g=c&&typeof c=="object"&&"code"in c&&typeof c.code=="string"?c.code:"SERVER_ERROR";f.reject(new u({code:g,message:typeof r.error.message=="string"?r.error.message:"Monitor request failed",data:c,rpcCode:typeof r.error.code=="number"?r.error.code:void 0}))}else f.resolve(r.result)}}current(){return!this.closed&&this.currentSource()}onNotification(e){return this.listeners.add(e),()=>this.listeners.delete(e)}request(e,t){return!this.acknowledged||e==="client.hello"?Promise.reject(this.unavailable()):this.send(e,t)}close(){if(this.closed)return;this.closed=!0,this.acknowledged=!1,clearTimeout(this.timer);const e=this.unavailable();this.rejectReady(e);for(const t of this.pending.values())clearTimeout(t.timer),t.reject(e);this.pending.clear(),this.listeners.clear(),this.socket.onopen=this.socket.onmessage=this.socket.onerror=this.socket.onclose=null;try{this.socket.close()}catch{}}fail(){this.closed||(this.close(),this.onFailure())}unavailable(){return new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor attachment unavailable"})}send(e,t){if(!this.current())return Promise.reject(this.unavailable());const i=++this.id;return new Promise((o,a)=>{const d=setTimeout(()=>{this.pending.delete(i),a(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`}))},this.timeoutMs);this.pending.set(i,{resolve:o,reject:a,timer:d});try{this.socket.send(JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:t}))}catch{this.fail()}})}}const X=["agentNodes","localNodeIsolation","agentPlatformRouting","workspaceMembershipEvents","rawScreenshotRetention","chiefAttachments","noteTruncatedRead","remoteMachines","remoteInitialAgent","remoteMachineClaim","remoteLinkTraffic","cloudMachines","cloudMachineEntries","cloudMachineProviders"];function Q(s){return Object.freeze(Object.fromEntries(X.map(e=>[e,s?.[e]===1?1:0])))}function Z(s){if(!G(s,11,1))throw new Error($.files_secondaryRoot_unsupported_error())}function ee(s,e,t){te(s,e)&&Z(t)}function te(s,e){if(s!=="file.read"&&s!=="file.readChunk")return!1;const t=e?.gitRootId;return typeof t=="string"&&!!t.trim()}const N=-32012,se="system.startupStatus",ne=1e3,L=1e3,F=3e4,w=U().int().nonnegative().max(Number.MAX_SAFE_INTEGER),ie=T({completedNotes:w,totalNotes:w,processedSourceBytes:w,totalSourceBytes:w}).refine(s=>s.completedNotes<=s.totalNotes&&s.processedSourceBytes<=s.totalSourceBytes),oe=T({startupStatus:O(1),daemonVersion:b().min(1).optional(),attemptId:b().min(1),phase:C(["preparing","indexing","finalizing","ready","failed"]),elapsedMs:w,phaseElapsedMs:w,progressAgeMs:w,retryAfterMs:U().int().min(L).max(F).optional(),progress:ie.optional(),estimatedRemainingMs:w.optional(),finalizingStep:C(["anchors","committing","services"]).optional(),failure:T({code:b().min(1),message:b().min(1)}).optional()}).refine(s=>(s.phase==="ready"||s.phase==="failed"?s.retryAfterMs===void 0:s.retryAfterMs!==void 0)&&(s.phase==="finalizing"?s.finalizingStep!==void 0:s.finalizingStep===void 0)&&(s.phase==="failed"?s.failure!==void 0:s.failure===void 0)&&(s.estimatedRemainingMs===void 0||s.phase==="indexing"));function B(s){const e=oe.safeParse(s);return e.success?e.data:null}function P(s){const e=typeof s=="number"&&Number.isFinite(s)?s:ne;return Math.min(F,Math.max(L,e))}function re(s){const e=s;return typeof e.rpcCode=="number"?e.rpcCode:typeof e.code=="number"?e.code:void 0}function q(s){if(!s||typeof s!="object"||re(s)!==N)return;const e=s.data??{},t=B(e.startup);if(e.code==="daemon-startup-failed"){const i=e.startup?.failure?.message,o=s.message;return{kind:"failed",message:typeof i=="string"&&i.trim()?i:typeof o=="string"?o:"",snapshot:t}}if(!(e.code!=="daemon-not-ready"||e.retryable!==!0))return{kind:"not-ready",retryAfterMs:P(e.retryAfterMs),snapshot:t}}function D(s){const e=s.snapshot??void 0;return s.state==="failed"?{code:N,message:"Daemon startup failed",data:{code:"daemon-startup-failed",retryable:!1,startup:e}}:{code:N,message:"Daemon not ready",data:{code:"daemon-not-ready",retryable:!0,retryAfterMs:P(e?.retryAfterMs),startup:e}}}const ae=5e3,ce=5e3,le=3e4;function he(s){const e=s.snapshot;return JSON.stringify([s.state,s.available,e?.attemptId,e?.phase,e?.finalizingStep,e?.progress?.completedNotes,e?.progress?.totalNotes,e?.estimatedRemainingMs===void 0,(e?.progressAgeMs??0)>=le])}class ue{constructor(e){n(this,"generation",0);n(this,"timer",null);n(this,"snapshot",null);n(this,"lastKey",null);n(this,"lastPublishedAt",0);this.host=e}start(e){this.stop(),this.snapshot=e.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:e.snapshot!==null},!0),this.schedule(e.retryAfterMs)}stop(){this.generation++,this.timer&&(clearTimeout(this.timer),this.timer=null)}reset(){this.stop(),this.snapshot=null,this.lastKey=null,this.lastPublishedAt=0}publish(e,t=!1){const i=he(e),o=Date.now();!t&&i===this.lastKey&&o-this.lastPublishedAt<ce||(this.lastKey=i,this.lastPublishedAt=o,this.host.publish(e))}schedule(e){const t=this.generation;this.timer=setTimeout(()=>{if(this.timer=null,t!==this.generation)return;const i=()=>this.poll(t);this.host.track?this.host.track(i):i()},e)}async poll(e){let t;try{t=B(await this.host.request())}catch(i){if(e!==this.generation)return;const o=q(i);if(o?.kind==="failed"){this.stop(),this.host.fail(o.message,o.snapshot);return}if(o?.kind==="not-ready"){this.snapshot=o.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:o.snapshot!==null}),this.schedule(o.retryAfterMs);return}this.unavailable();return}if(e===this.generation){if(t===null){this.unavailable();return}if(this.snapshot=t,t.phase==="failed"){this.stop(),this.host.fail(t.failure?.message??"",t);return}if(t.phase==="ready"){this.stop(),this.publish({state:"starting",snapshot:t,available:!0},!0),this.host.handoff(!0);return}this.publish({state:"starting",snapshot:t,available:!0}),this.schedule(P(t.retryAfterMs))}}unavailable(){this.stop(),this.publish({state:"starting",snapshot:this.snapshot,available:!1},!0),this.host.handoff(!1)}}function Pe(s=(()=>{const e=globalThis.__INTENT_RUNTIME_CONFIG__;return e?.intentdWsUrl!==void 0?e.intentdWsUrl:typeof process>"u"?void 0:""})()){if(typeof s!="string")return;const e=s.trim();if(!e)return;if(e.startsWith("/")&&!e.startsWith("//")&&!e.includes("\\")){const o=globalThis.location;if(o?.host&&(o.protocol==="http:"||o.protocol==="https:"))return`${o.protocol==="https:"?"wss:":"ws:"}//${o.host}${e}`;console.warn("[browser-websocket-transport] Ignoring same-origin WebSocket path without an HTTP page origin");return}let t;try{t=new URL(e)}catch{console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}if(t.protocol!=="ws:"&&t.protocol!=="wss:"){console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}const i=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol==="ws:"&&!i){console.warn("[browser-websocket-transport] Ignoring insecure remote WebSocket URL: use wss://");return}return e}function de(s){try{const e=new URL(s);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return s.replace(/[?#].*$/,"").replace(/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i,"$1")}}const fe={[-32700]:"PARSE_ERROR",[-32600]:"INVALID_REQUEST",[-32601]:"METHOD_NOT_FOUND",[-32602]:"INVALID_PARAMS",[-32603]:"INTERNAL_ERROR"};function pe(s){const e=fe[s];return e||(s<=-32e3&&s>=-32099?"SERVER_ERROR":"UNKNOWN_ERROR")}function me(s){if(s&&typeof s=="object"&&"code"in s){const e=s.code;if(typeof e=="string"&&e.length>0)return e}}function _(s){const e=me(s.data)??pe(s.code),t=s.data&&typeof s.data=="object"?{...s.data,code:e}:typeof s.data=="string"&&s.data.length>0?{code:e,detail:s.data}:{code:e};return{code:e,message:s.message,data:t,rpcCode:s.code}}function E(s){if(s instanceof u)return s;const e=s instanceof Error?s.message:String(s);return new u({code:"TRANSPORT_ERROR",message:e,data:{code:"TRANSPORT_ERROR"}})}const ge=3e4,Re=1e3,ye=3e4,Se=1e4,be=5e3;class we{constructor(e){n(this,"url");n(this,"webSocketFactory");n(this,"requestTimeoutMs");n(this,"reconnectDelayMs");n(this,"maxReconnectDelayMs");n(this,"connectTimeoutMs");n(this,"socket",null);n(this,"connected",!1);n(this,"connecting",!1);n(this,"disposed",!1);n(this,"requestId",0);n(this,"currentReconnectDelay");n(this,"reconnectTimer",null);n(this,"connectTimer",null);n(this,"connectWaiters",[]);n(this,"clientId");n(this,"helloConfirmed",!1);n(this,"acknowledgedHello",null);n(this,"nodeCapabilities",null);n(this,"capabilityHelloGeneration",0);n(this,"reviewMonitoring");n(this,"reviewMonitoringRecipient");n(this,"reviewMonitoringEnabled",!1);n(this,"ordinaryHello",!1);n(this,"monitorRetry",null);n(this,"monitorRetirements",new Set);n(this,"monitorReady",new Set);n(this,"protocolVersion",null);n(this,"helloError",new u({code:"UNAVAILABLE",message:"client.hello has not completed on this connection"}));n(this,"pending",new Map);n(this,"hasBeenConnected",!1);n(this,"hasConnectionFailed",!1);n(this,"notificationHandlers",new Set);n(this,"reconnectedHandlers",new Set);n(this,"statusHandlers",new Set);n(this,"lastNotifiedStatus","disconnected");n(this,"startupState",null);n(this,"startupSocket",null);n(this,"startupPoller",new ue({request:()=>{const e=this.startupSocket;return e?this.requestOnSocket(se,void 0,{timeoutMs:ae},e):Promise.reject(this.startupRefusal())},publish:e=>this.updateStartup(e),handoff:e=>this.startupHandoff(e),fail:(e,t)=>this.failStartup(e,t)}));n(this,"startupHandlers",new Set);this.reviewMonitoringEnabled=v(e.reviewMonitoring),this.reviewMonitoringRecipient=v(e.reviewMonitoring)?e.reviewMonitoring:void 0,this.url=e.url,this.webSocketFactory=e.webSocketFactory??(t=>new WebSocket(t)),this.requestTimeoutMs=e.requestTimeoutMs??ge,this.reconnectDelayMs=e.reconnectDelayMs??Re,this.maxReconnectDelayMs=e.maxReconnectDelayMs??ye,this.connectTimeoutMs=e.connectTimeoutMs??Se,this.currentReconnectDelay=this.reconnectDelayMs}isAvailable(){return!this.disposed}async readPrincipal(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected(),t=this.capabilityHelloGeneration,i=structuredClone(this.acknowledgedHello),o=()=>!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t&&this.acknowledgedHello!==null;if(!o())throw this.helloError;const a=await this.requestOnSocket("principal.me",{},void 0,e);if(!o())throw new u({code:"UNAVAILABLE",message:"Principal discovery connection changed"});return{hello:i,principal:a}}async observeNodeCapabilities(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected();if(this.disposed||!this.connected||this.socket!==e)throw new u({code:"UNAVAILABLE",message:"Backend connection changed"});return{server:{capabilities:this.nodeCapabilities}}}onMonitorReconnected(e){this.monitorReady.add(e);const t=this.onReconnected(e);return()=>{this.monitorReady.delete(e),t()}}prMonitorBackendId(){return de(this.url)}async capturePrMonitorSession(e){const t=await this.ensureConnected(),i=this.capabilityHelloGeneration,o=()=>new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});let a,d=!1;const R=new Set,m=new Set,r=()=>{if(!d){d=!0,this.monitorRetirements.delete(r),a?.close();for(const l of R)l();R.clear()}},f=()=>!d&&!this.disposed&&this.connected&&this.helloConfirmed&&this.socket===t&&i===this.capabilityHelloGeneration,c=()=>f()&&(!a||a.current());if(!c())throw o();this.monitorRetirements.add(r);const g=v(this.reviewMonitoring);let M=g?"consumer-pending":"unsupported";if(g&&this.reviewMonitoringEnabled&&this.ordinaryHello&&this.clientId)try{if(a=new Y(this.webSocketFactory(this.url),this.clientId,Math.min(this.reviewMonitoringRecipient,this.reviewMonitoring),f,this.requestTimeoutMs,this.connectTimeoutMs,()=>{const l=f();r(),l&&this.scheduleMonitorRecovery(t,i)}),await a.ready,!c())throw o();M="supported"}catch(l){const p=f();throw r(),p&&this.scheduleMonitorRecovery(t,i),l}const y=(l,p)=>a?a.request(l,p):this.requestOnSocket(l,p,void 0,t);return{origin:{backendId:this.prMonitorBackendId(),sessionId:crypto.randomUUID(),workspaceId:e},support:M,onRetired(l){return c()?(R.add(l),()=>{R.delete(l)}):(l(),()=>{})},onNotification:l=>(a??this).onNotification(p=>{c()&&l(p)}),request:async(l,p)=>{if(!c()||M==="consumer-pending"||p.workspaceId!==e)throw o();const k=await y(l,p),h=l==="events.subscribe"?k?.subscriptionId:void 0;if(!c())throw h&&this.socket===t&&this.connected&&i===this.capabilityHelloGeneration&&y("events.unsubscribe",{workspaceId:e,subscriptionId:h}).catch(()=>{}),o();return h&&m.add(h),l==="events.unsubscribe"&&m.delete(String(p.subscriptionId)),k},release:async()=>{const l=c();r(),l&&!a&&await Promise.all([...m].map(p=>this.requestOnSocket("events.unsubscribe",{workspaceId:e,subscriptionId:p},void 0,t).catch(()=>{})))}}}request(e,t,i){return this.requestOnSocket(e,t,i)}requestOnSocket(e,t,i,o){if(i?.localMachine)return Promise.reject(new u({code:"UNAVAILABLE",message:"Local machine requests require the desktop bridge"}));if(this.disposed)return Promise.reject(new u({code:"UNAVAILABLE",message:"Backend transport disposed"}));if(!o&&this.startupState?.state==="starting")return Promise.reject(new u(_(D(this.startupState))));const a=++this.requestId,d=i?.timeoutMs,R=typeof d=="number"&&Number.isFinite(d)&&d>0?d:this.requestTimeoutMs;return new Promise((m,r)=>{let f=!1;const c=setTimeout(()=>{f=!0,this.pending.delete(a),r(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`,data:{code:"TIMEOUT"}}))},R),g=y=>{clearTimeout(c),r(E(y))},M=y=>{if(f)return;if(this.disposed||this.socket!==y){g(new u({code:"TRANSPORT_ERROR",message:"Connection replaced"}));return}if(e==="presence.update"&&!this.helloConfirmed){g(this.helloError);return}try{ee(e,t,this.protocolVersion)}catch(h){g(h);return}let l=e==="client.hello"&&this.clientId?{clientId:this.clientId,...t}:t;if(e==="client.hello"){const h={...l},S={...h.capabilities};Object.prototype.hasOwnProperty.call(S,"reviewMonitoring")&&(this.reviewMonitoringEnabled=this.reviewMonitoringRecipient!==void 0&&v(S.reviewMonitoring)),delete S.reviewMonitoring,delete h.connectionRole,h.capabilities!==void 0&&(h.capabilities=S),l=h}const p=JSON.stringify({jsonrpc:"2.0",id:a,method:e,params:l}),k=e==="client.hello"?++this.capabilityHelloGeneration:0;if(e==="client.hello"){this.helloConfirmed=!1,this.ordinaryHello=!1,this.clearMonitorRecovery(),this.nodeCapabilities=null,this.reviewMonitoring=void 0;for(const h of[...this.monitorRetirements])h();this.acknowledgedHello=null}this.pending.set(a,{method:e,timeout:c,resolve:h=>{if(e==="client.hello"&&this.socket===y&&k===this.capabilityHelloGeneration){const S=h?.clientId;if(typeof S=="string"&&S.length>0){const H=h.server?.capabilities;if(this.clientId=S,this.reviewMonitoring=H?.reviewMonitoring,this.ordinaryHello=h.connectionRole===void 0,this.acknowledgedHello=structuredClone(h),this.nodeCapabilities=Q(H),this.protocolVersion=z(h.protocolVersion),this.helloConfirmed=!0,this.connected)for(const W of this.monitorReady)W()}}m(h)},reject:r});try{y.send(p)}catch(h){clearTimeout(c),this.pending.delete(a),r(E(h))}};o?M(o):this.connected&&this.socket?M(this.socket):this.ensureConnected().then(M,g)})}async subscribe(e){return this.request("events.subscribe",e)}async unsubscribe(e,t){try{await this.request("events.unsubscribe",{subscriptionId:e,...t!==void 0?{workspaceId:t}:{}})}catch{}}onNotification(e){return this.notificationHandlers.add(e),()=>this.notificationHandlers.delete(e)}onReconnected(e){return this.reconnectedHandlers.add(e),()=>this.reconnectedHandlers.delete(e)}getConnectionStatus(){return this.connected?"connected":this.connecting?"connecting":"disconnected"}getStartupState(){return this.startupState}onStartupChange(e){return this.startupHandlers.add(e),()=>this.startupHandlers.delete(e)}onConnectionStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}dispose(){if(this.disposed)return;this.disposed=!0,this.clearReconnect(),this.clearConnectTimer();const e=new u({code:"UNAVAILABLE",message:"Backend transport disposed"});this.failPending(e),this.failWaiters(e),this.teardownSocket(),this.connected=!1,this.connecting=!1,this.notifyStatusChange(),this.notificationHandlers.clear(),this.reconnectedHandlers.clear(),this.statusHandlers.clear(),this.startupHandlers.clear()}ensureConnected(){return this.connected&&this.socket?Promise.resolve(this.socket):new Promise((e,t)=>{this.connectWaiters.push({resolve:e,reject:t}),this.start()})}start(){this.disposed||this.socket||this.connecting||this.reconnectTimer||this.connect()}connect(){this.clearReconnect(),this.connecting=!0,this.notifyStatusChange();let e;try{e=this.webSocketFactory(this.url)}catch(t){this.connecting=!1,this.onConnectionFailure(E(t));return}this.socket=e,this.helloConfirmed=!1,this.connectTimer=setTimeout(()=>{this.connectTimer=null,!(this.socket!==e||this.connected)&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:`WebSocket connect attempt timed out after ${this.connectTimeoutMs}ms`})))},this.connectTimeoutMs),e.onopen=()=>{this.socket===e&&this.onConnected(e)},e.onmessage=t=>{this.socket===e&&this.onMessage(t.data)},e.onerror=null,e.onclose=()=>{this.socket===e&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})))}}onConnected(e){this.clearConnectTimer(),this.performHelloHandshake(e)}async performHelloHandshake(e){try{await this.requestOnSocket("client.hello",{},{timeoutMs:Math.min(this.requestTimeoutMs,be)},e)}catch(o){if(this.disposed||this.socket!==e)return;const a=q(o);if(a){this.enterStartup(e,a);return}this.helloError=E(o)}if(this.disposed||this.socket!==e)return;this.startupPoller.reset(),this.startupSocket=null;const t=this.startupState!==null;this.startupState=null,this.connecting=!1,this.connected=!0,this.currentReconnectDelay=this.reconnectDelayMs;const i=this.hasBeenConnected||this.hasConnectionFailed;if(this.hasBeenConnected=!0,this.hasConnectionFailed=!1,this.notifyStatusChange(),t)for(const o of[...this.startupHandlers])o(null);if(this.flushWaiters(e),i)for(const o of[...this.reconnectedHandlers])o()}onConnectionFailure(e){if(this.clearConnectTimer(),!this.disposed){if(this.startupSocket!==null&&this.startupSocket===this.socket){this.startupHandoff(!0);return}this.startupState?.state==="starting"&&(this.startupPoller.reset(),this.updateStartup(null)),this.hasConnectionFailed=!0,this.connected=!1,this.notifyStatusChange(),this.teardownSocket(),this.failPending(e),this.failWaiters(e),this.scheduleReconnect()}}notifyStatusChange(){const e=this.getConnectionStatus();if(e!==this.lastNotifiedStatus){this.lastNotifiedStatus=e;for(const t of[...this.statusHandlers])t(e)}}onMessage(e){if(typeof e!="string")return;let t;try{t=JSON.parse(e)}catch{console.warn("[browser-websocket-transport] Dropping unparseable frame");return}if(!t||typeof t!="object")return;const i=typeof t.method=="string",o=t.id!=null;if(i&&o){this.sendFrame({jsonrpc:"2.0",id:t.id,error:{code:-32601,message:`Method not found: ${String(t.method)}`}});return}if(o){const a=Number(t.id),d=this.pending.get(a);if(!d)return;this.pending.delete(a),clearTimeout(d.timeout),t.error?d.reject(new u(_(t.error))):d.resolve(t.result);return}if(i){const a={method:t.method,params:t.params};for(const d of[...this.notificationHandlers])d(a)}}sendFrame(e){try{this.socket?.send(JSON.stringify(e))}catch{}}scheduleReconnect(){if(this.disposed||this.reconnectTimer)return;const e=this.currentReconnectDelay;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.currentReconnectDelay=Math.min(e*2,this.maxReconnectDelayMs),this.disposed||this.connect()},e)}clearReconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearConnectTimer(){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=null)}scheduleMonitorRecovery(e,t){this.monitorRetry||this.disposed||(this.monitorRetry=setTimeout(()=>{if(this.monitorRetry=null,!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t)for(const i of[...this.monitorReady])i()},this.reconnectDelayMs))}clearMonitorRecovery(){this.monitorRetry&&clearTimeout(this.monitorRetry),this.monitorRetry=null}teardownSocket(){this.startupPoller.stop(),this.startupSocket=null,this.reviewMonitoring=void 0,this.clearMonitorRecovery();for(const t of[...this.monitorRetirements])t();if(this.acknowledgedHello=null,this.nodeCapabilities=null,this.capabilityHelloGeneration+=1,this.protocolVersion=null,!this.socket)return;const e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}}updateStartup(e){this.startupState=e?Object.freeze({...e}):null;for(const t of[...this.startupHandlers])t(this.startupState)}startupRefusal(){return this.startupState?new u(_(D(this.startupState))):new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})}enterStartup(e,t){if(this.hasConnectionFailed=!0,t.kind==="failed"){this.failStartup(t.message,t.snapshot);return}this.startupSocket=e,this.startupPoller.start(t),this.failWaiters(this.startupRefusal())}startupHandoff(e){const t=this.startupRefusal();if(this.teardownSocket(),this.failPending(t),this.disposed)return;this.connecting=!0,this.notifyStatusChange(),this.clearReconnect();let i=this.reconnectDelayMs;e?this.currentReconnectDelay=this.reconnectDelayMs:(i=this.currentReconnectDelay,this.currentReconnectDelay=Math.min(i*2,this.maxReconnectDelayMs)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.disposed||this.connect()},i)}failStartup(e,t){this.startupPoller.stop(),this.startupSocket=null,this.hasConnectionFailed=!0,this.updateStartup({state:"failed",snapshot:t,available:t!==null,message:e}),this.connecting=!1,this.onConnectionFailure(this.startupRefusal())}failPending(e){for(const t of this.pending.values())clearTimeout(t.timeout),t.reject(e);this.pending.clear()}flushWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.resolve(e)}failWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.reject(e)}}function He(s){return new we(s)}let A=null;const I=new Set;function De(s){A=s;for(const e of[...I])e(s)}function Ue(){return A}function Le(s){return I.add(s),A&&s(A),()=>I.delete(s)}export{u as B,_e as M,Oe as P,Ie as R,Ae as a,Ce as b,He as c,Ne as d,Pe as e,v as f,Ue as g,Ee as i,Le as o,De as r,de as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./
|
|
1
|
+
import{l as e}from"./DPbHVaEp.js";const n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:e.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:e.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:e.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:e.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},o={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{n as conf,o as language};
|