dimcode 0.0.10-beta.1 → 0.0.11
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/assets/gui/200.html +1 -1
- package/assets/gui/404.html +1 -1
- package/assets/gui/_nuxt/{DnynIWI5.js → B4BeXTM8.js} +1 -1
- package/assets/gui/_nuxt/{C59w42ub.js → BTTJEMKv.js} +1 -1
- package/assets/gui/_nuxt/{CS1c1ilo.js → CBflTB_3.js} +1 -1
- package/assets/gui/_nuxt/{rNU3DPJT.js → Cd_MtzEZ.js} +6 -6
- package/assets/gui/_nuxt/{B_k0ykIW.js → DTsXV384.js} +2 -2
- package/assets/gui/_nuxt/DzShUmTH.js +1 -0
- package/assets/gui/_nuxt/{B8T9Vkkp.js → ULB_ug-y.js} +3 -3
- package/assets/gui/_nuxt/builds/latest.json +1 -1
- package/assets/gui/_nuxt/builds/meta/95fbe12d-15ea-4bf8-91f9-6a016cdb79ea.json +1 -0
- package/assets/gui/index.html +1 -1
- package/dist/cli.mjs +624 -624
- package/package.json +17 -16
- package/assets/gui/_nuxt/2EtD6e53.js +0 -1
- package/assets/gui/_nuxt/2UxHyX5q.js +0 -1
- package/assets/gui/_nuxt/3e1v2bzS.js +0 -1
- package/assets/gui/_nuxt/4A_iFExJ.js +0 -1
- package/assets/gui/_nuxt/5X7smno1.js +0 -1
- package/assets/gui/_nuxt/5i3qLPDT.js +0 -1
- package/assets/gui/_nuxt/83L43bj1.js +0 -1
- package/assets/gui/_nuxt/85-TOEBH.js +0 -1
- package/assets/gui/_nuxt/B0m2ddpp.js +0 -1
- package/assets/gui/_nuxt/B1dDrJ26.js +0 -1
- package/assets/gui/_nuxt/B1yitclQ.js +0 -1
- package/assets/gui/_nuxt/B6aJPvgy.js +0 -1
- package/assets/gui/_nuxt/B7c-h3xW.js +0 -1
- package/assets/gui/_nuxt/B7mTdjB0.js +0 -1
- package/assets/gui/_nuxt/B93PlW-d.js +0 -1
- package/assets/gui/_nuxt/BE2KfCdU.js +0 -1
- package/assets/gui/_nuxt/BEDo0Tqx.js +0 -1
- package/assets/gui/_nuxt/BERRCDM3.js +0 -1
- package/assets/gui/_nuxt/BETggiCN.js +0 -1
- package/assets/gui/_nuxt/BEwlwnbL.js +0 -1
- package/assets/gui/_nuxt/BFfxhgS-.js +0 -1
- package/assets/gui/_nuxt/BGHnOYBU.js +0 -1
- package/assets/gui/_nuxt/BGJmEYvX.js +0 -1
- package/assets/gui/_nuxt/BIGW1oBm.js +0 -1
- package/assets/gui/_nuxt/BJDFO7_C.js +0 -1
- package/assets/gui/_nuxt/BLmx8bSh.js +0 -1
- package/assets/gui/_nuxt/BLtJtn59.js +0 -1
- package/assets/gui/_nuxt/BM1_JUlF.js +0 -1
- package/assets/gui/_nuxt/BMWR74SV.js +0 -1
- package/assets/gui/_nuxt/BPQ3VLAy.js +0 -1
- package/assets/gui/_nuxt/BQ8w6xss.js +0 -1
- package/assets/gui/_nuxt/BR5kRUq4.js +0 -1
- package/assets/gui/_nuxt/BRHolxvo.js +0 -1
- package/assets/gui/_nuxt/BRZ36xJF.js +0 -1
- package/assets/gui/_nuxt/BTJTHyun.js +0 -1
- package/assets/gui/_nuxt/BTifaqeh.js +0 -1
- package/assets/gui/_nuxt/BV7otONQ.js +0 -1
- package/assets/gui/_nuxt/BVQ-GDCI.js +0 -1
- package/assets/gui/_nuxt/BWvSN4gD.js +0 -1
- package/assets/gui/_nuxt/BX7qsR0-.js +0 -1
- package/assets/gui/_nuxt/BXkSAIEj.js +0 -1
- package/assets/gui/_nuxt/BYV0-3_D.js +0 -1
- package/assets/gui/_nuxt/BYunw83y.js +0 -1
- package/assets/gui/_nuxt/BZvkOJ9d.js +0 -1
- package/assets/gui/_nuxt/B_m7g4N7.js +0 -1
- package/assets/gui/_nuxt/Ba13S78F.js +0 -1
- package/assets/gui/_nuxt/BcOcwvcX.js +0 -1
- package/assets/gui/_nuxt/BcVCzyr7.js +0 -1
- package/assets/gui/_nuxt/BdImnpbu.js +0 -1
- package/assets/gui/_nuxt/BdnUsdx6.js +0 -1
- package/assets/gui/_nuxt/BfHTSMKl.js +0 -1
- package/assets/gui/_nuxt/BfjtVDDH.js +0 -1
- package/assets/gui/_nuxt/BgDCqdQA.js +0 -1
- package/assets/gui/_nuxt/BhOHFoWU.js +0 -1
- package/assets/gui/_nuxt/BkioyH1T.js +0 -1
- package/assets/gui/_nuxt/Bkuqu6BP.js +0 -1
- package/assets/gui/_nuxt/BmXAJ9_W.js +0 -1
- package/assets/gui/_nuxt/Bmn6On1c.js +0 -1
- package/assets/gui/_nuxt/Bp3cYrEr.js +0 -1
- package/assets/gui/_nuxt/Bp6g37R7.js +0 -1
- package/assets/gui/_nuxt/BqTXFGrv.js +0 -1
- package/assets/gui/_nuxt/BqYA7rlc.js +0 -1
- package/assets/gui/_nuxt/Br6cN0cg.js +0 -1
- package/assets/gui/_nuxt/BrzmwbiE.js +0 -1
- package/assets/gui/_nuxt/BsS91CYL.js +0 -1
- package/assets/gui/_nuxt/BspZqrRM.js +0 -1
- package/assets/gui/_nuxt/BtCnVYZw.js +0 -1
- package/assets/gui/_nuxt/BtOb2qkB.js +0 -1
- package/assets/gui/_nuxt/BthQWCQV.js +0 -1
- package/assets/gui/_nuxt/BtqSS_iP.js +0 -1
- package/assets/gui/_nuxt/BtvRca6l.js +0 -1
- package/assets/gui/_nuxt/Bu9oaDYs.js +0 -1
- package/assets/gui/_nuxt/Buea-lGh.js +0 -1
- package/assets/gui/_nuxt/Bv_4Rxtq.js +0 -1
- package/assets/gui/_nuxt/BvzEVeQv.js +0 -1
- package/assets/gui/_nuxt/Bw305WKR.js +0 -1
- package/assets/gui/_nuxt/BxgE0vQu.js +0 -1
- package/assets/gui/_nuxt/BzJJZx-M.js +0 -1
- package/assets/gui/_nuxt/BzTr9Aqm.js +0 -1
- package/assets/gui/_nuxt/C-HG3fhB.js +0 -1
- package/assets/gui/_nuxt/C-Jbm3Hp.js +0 -1
- package/assets/gui/_nuxt/C-SQnVFl.js +0 -1
- package/assets/gui/_nuxt/C-sUppwS.js +0 -1
- package/assets/gui/_nuxt/C0HS_06l.js +0 -1
- package/assets/gui/_nuxt/C0hk2d4L.js +0 -1
- package/assets/gui/_nuxt/C151Ov-r.js +0 -1
- package/assets/gui/_nuxt/C2t-YnRu.js +0 -1
- package/assets/gui/_nuxt/C39BiMTA.js +0 -1
- package/assets/gui/_nuxt/C3B-1QV4.js +0 -1
- package/assets/gui/_nuxt/C3mMm8J8.js +0 -1
- package/assets/gui/_nuxt/C4EeE6gA.js +0 -1
- package/assets/gui/_nuxt/C4IJs8-o.js +0 -1
- package/assets/gui/_nuxt/C7zT0LnQ.js +0 -1
- package/assets/gui/_nuxt/C8M2exoo.js +0 -1
- package/assets/gui/_nuxt/C8lEn-DE.js +0 -1
- package/assets/gui/_nuxt/C98Dy4si.js +0 -1
- package/assets/gui/_nuxt/C9XAeP06.js +0 -1
- package/assets/gui/_nuxt/C9dUb6Cb.js +0 -1
- package/assets/gui/_nuxt/C9oPPf7i.js +0 -1
- package/assets/gui/_nuxt/C9tS-k6U.js +0 -1
- package/assets/gui/_nuxt/CA7CTBwS.js +0 -1
- package/assets/gui/_nuxt/CDVJQ6XC.js +0 -1
- package/assets/gui/_nuxt/CDx5xZoG.js +0 -1
- package/assets/gui/_nuxt/CEL-wOlO.js +0 -1
- package/assets/gui/_nuxt/CEu0bR-o.js +0 -1
- package/assets/gui/_nuxt/CF10PKvl.js +0 -1
- package/assets/gui/_nuxt/CFHQjOhq.js +0 -1
- package/assets/gui/_nuxt/CG6Dc4jp.js +0 -1
- package/assets/gui/_nuxt/CG8Ifv2g.js +0 -1
- package/assets/gui/_nuxt/CH1njM8p.js +0 -1
- package/assets/gui/_nuxt/CHLpvVh8.js +0 -1
- package/assets/gui/_nuxt/CHM0blh-.js +0 -1
- package/assets/gui/_nuxt/CJc9bBzg.js +0 -1
- package/assets/gui/_nuxt/CKIfxQSi.js +0 -1
- package/assets/gui/_nuxt/CLZrNe3w.js +0 -1
- package/assets/gui/_nuxt/CLxacb5B.js +0 -1
- package/assets/gui/_nuxt/CO1LY3CK.js +0 -1
- package/assets/gui/_nuxt/COkxafJQ.js +0 -1
- package/assets/gui/_nuxt/COt5Ahok.js +0 -1
- package/assets/gui/_nuxt/CQ8jqdy-.js +0 -1
- package/assets/gui/_nuxt/CS3Unz2-.js +0 -1
- package/assets/gui/_nuxt/CSXwinHm.js +0 -1
- package/assets/gui/_nuxt/CTRr51gU.js +0 -1
- package/assets/gui/_nuxt/CVO1_9PV.js +0 -1
- package/assets/gui/_nuxt/CVdnzihN.js +0 -1
- package/assets/gui/_nuxt/CW8IKDeL.js +0 -1
- package/assets/gui/_nuxt/CXZktZb0.js +0 -1
- package/assets/gui/_nuxt/CXtECtnM.js +0 -1
- package/assets/gui/_nuxt/CYsAdtH9.js +0 -1
- package/assets/gui/_nuxt/CafNBF8u.js +0 -1
- package/assets/gui/_nuxt/Cb4P6-Nf.js +0 -1
- package/assets/gui/_nuxt/CbFg5uaA.js +0 -1
- package/assets/gui/_nuxt/CbfX1IO0.js +0 -1
- package/assets/gui/_nuxt/CeAyd5Ju.js +0 -1
- package/assets/gui/_nuxt/CeZK1NFH.js +0 -1
- package/assets/gui/_nuxt/CfQXZHmo.js +0 -1
- package/assets/gui/_nuxt/CfeIJUat.js +0 -1
- package/assets/gui/_nuxt/Cg-RD9OK.js +0 -1
- package/assets/gui/_nuxt/ChMvpjG-.js +0 -1
- package/assets/gui/_nuxt/Cj5Yp3dK.js +0 -1
- package/assets/gui/_nuxt/CkByrt1z.js +0 -1
- package/assets/gui/_nuxt/CkXjmgJE.js +0 -1
- package/assets/gui/_nuxt/CklMAg4u.js +0 -1
- package/assets/gui/_nuxt/Cl-U1hlN.js +0 -1
- package/assets/gui/_nuxt/Cl0AqbOI.js +0 -1
- package/assets/gui/_nuxt/Cm3UrAx6.js +0 -1
- package/assets/gui/_nuxt/CmIQRyeF.js +0 -1
- package/assets/gui/_nuxt/CmMr59Fi.js +0 -1
- package/assets/gui/_nuxt/Cmh6b_Ma.js +0 -1
- package/assets/gui/_nuxt/Cn7AkR1O.js +0 -1
- package/assets/gui/_nuxt/CnnebwVN.js +0 -1
- package/assets/gui/_nuxt/CnnmHF94.js +0 -1
- package/assets/gui/_nuxt/Co6uUVPk.js +0 -1
- package/assets/gui/_nuxt/Cp-IABpG.js +0 -1
- package/assets/gui/_nuxt/CpOuai2O.js +0 -1
- package/assets/gui/_nuxt/Cq5zzVJU.js +0 -1
- package/assets/gui/_nuxt/CquLrc37.js +0 -1
- package/assets/gui/_nuxt/CsfeWuGM.js +0 -1
- package/assets/gui/_nuxt/Csfq5Kiy.js +0 -1
- package/assets/gui/_nuxt/CuPHTKiy.js +0 -1
- package/assets/gui/_nuxt/CufHLc7y.js +0 -1
- package/assets/gui/_nuxt/Cuk6v7N8.js +0 -1
- package/assets/gui/_nuxt/Cvjx9yec.js +0 -1
- package/assets/gui/_nuxt/CwoSXNpI.js +0 -1
- package/assets/gui/_nuxt/CxGSJlkm.js +0 -1
- package/assets/gui/_nuxt/CxbxFI8M.js +0 -1
- package/assets/gui/_nuxt/CyktbL80.js +0 -1
- package/assets/gui/_nuxt/CylS5w8V.js +0 -1
- package/assets/gui/_nuxt/CzTSHFRz.js +0 -1
- package/assets/gui/_nuxt/D-2ljcwZ.js +0 -1
- package/assets/gui/_nuxt/D0YGMca9.js +0 -1
- package/assets/gui/_nuxt/D0r3Knsf.js +0 -1
- package/assets/gui/_nuxt/D17OF-Vu.js +0 -1
- package/assets/gui/_nuxt/D1j8_8rp.js +0 -1
- package/assets/gui/_nuxt/D3lLCCz7.js +0 -1
- package/assets/gui/_nuxt/D4_iv3hh.js +0 -1
- package/assets/gui/_nuxt/D4h5O-jR.js +0 -1
- package/assets/gui/_nuxt/D5-asLiD.js +0 -1
- package/assets/gui/_nuxt/D53aC0YG.js +0 -1
- package/assets/gui/_nuxt/D5KoaKCx.js +0 -1
- package/assets/gui/_nuxt/D7o27uSR.js +0 -1
- package/assets/gui/_nuxt/D7oLnXFd.js +0 -1
- package/assets/gui/_nuxt/D82EKSYY.js +0 -1
- package/assets/gui/_nuxt/D87Tk5Gz.js +0 -1
- package/assets/gui/_nuxt/D8_7TLub.js +0 -1
- package/assets/gui/_nuxt/D93ZcfNL.js +0 -1
- package/assets/gui/_nuxt/D97Zzqfu.js +0 -1
- package/assets/gui/_nuxt/DAi9KRSo.js +0 -1
- package/assets/gui/_nuxt/DDtWJeGD.js +0 -1
- package/assets/gui/_nuxt/DEthMvLe.js +0 -1
- package/assets/gui/_nuxt/DFQXde-d.js +0 -1
- package/assets/gui/_nuxt/DFWUc33u.js +0 -1
- package/assets/gui/_nuxt/DFXneXwc.js +0 -1
- package/assets/gui/_nuxt/DGP4VlC8.js +0 -1
- package/assets/gui/_nuxt/DGztddWO.js +0 -1
- package/assets/gui/_nuxt/DH5Ifo-i.js +0 -1
- package/assets/gui/_nuxt/DHCkPAjA.js +0 -1
- package/assets/gui/_nuxt/DHJKELXO.js +0 -1
- package/assets/gui/_nuxt/DHQR4-dF.js +0 -1
- package/assets/gui/_nuxt/DM8c43g1.js +0 -1
- package/assets/gui/_nuxt/DMzUqQB5.js +0 -1
- package/assets/gui/_nuxt/DPfMkruS.js +0 -1
- package/assets/gui/_nuxt/DQyhUUbL.js +0 -1
- package/assets/gui/_nuxt/DRg8JJMk.js +0 -1
- package/assets/gui/_nuxt/DRw_LuNl.js +0 -1
- package/assets/gui/_nuxt/DTMYz4Jt.js +0 -1
- package/assets/gui/_nuxt/DU1UobuO.js +0 -1
- package/assets/gui/_nuxt/DUszq2jm.js +0 -1
- package/assets/gui/_nuxt/DV7GczEv.js +0 -1
- package/assets/gui/_nuxt/DVFEvuxE.js +0 -1
- package/assets/gui/_nuxt/DVMEJ2y_.js +0 -1
- package/assets/gui/_nuxt/DVxCFoDh.js +0 -1
- package/assets/gui/_nuxt/DWedfzmr.js +0 -1
- package/assets/gui/_nuxt/DWrx1Km3.js +0 -1
- package/assets/gui/_nuxt/DXbdFlpD.js +0 -1
- package/assets/gui/_nuxt/DXmwc3jG.js +0 -1
- package/assets/gui/_nuxt/DXvB9xmW.js +0 -1
- package/assets/gui/_nuxt/DXx00hUE.js +0 -1
- package/assets/gui/_nuxt/DYoxhk2S.js +0 -1
- package/assets/gui/_nuxt/DZf3V79B.js +0 -1
- package/assets/gui/_nuxt/DZu-aV2c.js +0 -1
- package/assets/gui/_nuxt/DZxFcAj9.js +0 -1
- package/assets/gui/_nuxt/D_Q5rh1f.js +0 -1
- package/assets/gui/_nuxt/Da5cRb03.js +0 -1
- package/assets/gui/_nuxt/DcaNXYhu.js +0 -1
- package/assets/gui/_nuxt/Dd19v3D-.js +0 -1
- package/assets/gui/_nuxt/DdkO51Og.js +0 -1
- package/assets/gui/_nuxt/Ddv68eIx.js +0 -1
- package/assets/gui/_nuxt/Des-eS-w.js +0 -1
- package/assets/gui/_nuxt/Df6bDoY_.js +0 -1
- package/assets/gui/_nuxt/Dg5xB15N.js +0 -1
- package/assets/gui/_nuxt/DhmSosst.js +0 -1
- package/assets/gui/_nuxt/DkFqJrB1.js +0 -1
- package/assets/gui/_nuxt/DkwncUOv.js +0 -1
- package/assets/gui/_nuxt/Dn2_MT6a.js +0 -1
- package/assets/gui/_nuxt/DnULxvSX.js +0 -1
- package/assets/gui/_nuxt/Dpen1YoG.js +0 -1
- package/assets/gui/_nuxt/DqQDbK_p.js +0 -1
- package/assets/gui/_nuxt/DqwNpetd.js +0 -1
- package/assets/gui/_nuxt/DsOJ9woJ.js +0 -1
- package/assets/gui/_nuxt/Dspwwk_N.js +0 -1
- package/assets/gui/_nuxt/Dv7Oe6Be.js +0 -1
- package/assets/gui/_nuxt/Dx-B1_4e.js +0 -1
- package/assets/gui/_nuxt/DxNHbxmM.js +0 -1
- package/assets/gui/_nuxt/DxSwrfjg.js +0 -1
- package/assets/gui/_nuxt/DyUgxO5C.js +0 -1
- package/assets/gui/_nuxt/DyxjwDmM.js +0 -1
- package/assets/gui/_nuxt/Dzze3sRP.js +0 -1
- package/assets/gui/_nuxt/E3gJ1_iC.js +0 -1
- package/assets/gui/_nuxt/GsRaNv29.js +0 -1
- package/assets/gui/_nuxt/IeuSbFQv.js +0 -1
- package/assets/gui/_nuxt/K5feNrxe.js +0 -1
- package/assets/gui/_nuxt/L9t79GZl.js +0 -1
- package/assets/gui/_nuxt/MzD3tlZU.js +0 -1
- package/assets/gui/_nuxt/P80f7IUj.js +0 -1
- package/assets/gui/_nuxt/Pmp26Uib.js +0 -1
- package/assets/gui/_nuxt/PoHY5YXO.js +0 -1
- package/assets/gui/_nuxt/QIJgUcNo.js +0 -1
- package/assets/gui/_nuxt/TsXTqZ29.js +0 -1
- package/assets/gui/_nuxt/VCDPK7BO.js +0 -1
- package/assets/gui/_nuxt/VOosw3JB.js +0 -1
- package/assets/gui/_nuxt/W9tJ9s81.js +0 -1
- package/assets/gui/_nuxt/Xqf5ue2O.js +0 -1
- package/assets/gui/_nuxt/YqXBG_HV.js +0 -1
- package/assets/gui/_nuxt/Yzrsuije.js +0 -1
- package/assets/gui/_nuxt/Z6tloZ0k.js +0 -855
- package/assets/gui/_nuxt/_ykCGR6B.js +0 -1
- package/assets/gui/_nuxt/bCR0ucgS.js +0 -1
- package/assets/gui/_nuxt/bN70gL4F.js +0 -1
- package/assets/gui/_nuxt/builds/meta/1b6015d4-d98d-4593-9e18-bae10dc135d2.json +0 -1
- package/assets/gui/_nuxt/dwOrl1Do.js +0 -1
- package/assets/gui/_nuxt/fKv21gyL.js +0 -1
- package/assets/gui/_nuxt/fWqGrwan.js +0 -1
- package/assets/gui/_nuxt/fuZLfV_i.js +0 -1
- package/assets/gui/_nuxt/g9-lgVsj.js +0 -1
- package/assets/gui/_nuxt/gcz8RCvz.js +0 -1
- package/assets/gui/_nuxt/hJgmCMqR.js +0 -1
- package/assets/gui/_nuxt/hegEt444.js +0 -1
- package/assets/gui/_nuxt/k_qm7-4y.js +0 -1
- package/assets/gui/_nuxt/lXgVvXCa.js +0 -1
- package/assets/gui/_nuxt/m17aaUwq.js +0 -1
- package/assets/gui/_nuxt/mWjccvbQ.js +0 -1
- package/assets/gui/_nuxt/mjskCLCv.js +0 -1
- package/assets/gui/_nuxt/n2N0HUVH.js +0 -1
- package/assets/gui/_nuxt/oTG82Wo1.js +0 -1
- package/assets/gui/_nuxt/qdsjHGoJ.js +0 -1
- package/assets/gui/_nuxt/rGO070M0.js +0 -1
- package/assets/gui/_nuxt/u5AG7uiY.js +0 -1
- package/assets/gui/_nuxt/uYugtg8r.js +0 -1
- package/assets/gui/_nuxt/vGWfd6FD.js +0 -1
- package/assets/gui/_nuxt/vendor-monaco.BfZGHs1N.css +0 -1
- package/assets/gui/_nuxt/wDzz0qaB.js +0 -1
- package/assets/gui/_nuxt/yv6CvBhz.js +0 -1
- package/assets/native/build.zig +0 -16
- package/assets/native/src/lib.zig +0 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./
|
|
2
|
-
function iu(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const pt={},lo=[],un=()=>{},Zd=()=>!1,va=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ou=e=>e.startsWith("onUpdate:"),$t=Object.assign,au=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Xm=Object.prototype.hasOwnProperty,ct=(e,t)=>Xm.call(e,t),ze=Array.isArray,co=e=>xa(e)==="[object Map]",Qd=e=>xa(e)==="[object Set]",Km=e=>xa(e)==="[object RegExp]",qe=e=>typeof e=="function",xt=e=>typeof e=="string",Rn=e=>typeof e=="symbol",mt=e=>e!==null&&typeof e=="object",Jd=e=>(mt(e)||qe(e))&&qe(e.then)&&qe(e.catch),ef=Object.prototype.toString,xa=e=>ef.call(e),Zm=e=>xa(e).slice(8,-1),tf=e=>xa(e)==="[object Object]",Vs=e=>xt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ti=iu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Us=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},Qm=/-\w/g,Rr=Us(e=>e.replace(Qm,t=>t.slice(1).toUpperCase())),Jm=/\B([A-Z])/g,ui=Us(e=>e.replace(Jm,"-$1").toLowerCase()),Gs=Us(e=>e.charAt(0).toUpperCase()+e.slice(1)),ts=Us(e=>e?`on${Gs(e)}`:""),Mn=(e,t)=>!Object.is(e,t),uo=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},rf=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},su=e=>{const t=parseFloat(e);return isNaN(t)?e:t},nf=e=>{const t=xt(e)?Number(e):NaN;return isNaN(t)?e:t};let ah;const Ys=()=>ah||(ah=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function St(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=xt(n)?ng(n):St(n);if(i)for(const o in i)t[o]=i[o]}return t}else if(xt(e)||mt(e))return e}const eg=/;(?![^(]*\))/g,tg=/:([^]+)/,rg=/\/\*[^]*?\*\//g;function ng(e){const t={};return e.replace(rg,"").split(eg).forEach(r=>{if(r){const n=r.split(tg);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ae(e){let t="";if(xt(e))t=e;else if(ze(e))for(let r=0;r<e.length;r++){const n=Ae(e[r]);n&&(t+=n+" ")}else if(mt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function M9(e){if(!e)return null;let{class:t,style:r}=e;return t&&!xt(t)&&(e.class=Ae(t)),r&&(e.style=St(r)),e}const ig="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",og=iu(ig);function of(e){return!!e||e===""}const af=e=>!!(e&&e.__v_isRef===!0),it=e=>xt(e)?e:e==null?"":ze(e)||mt(e)&&(e.toString===ef||!qe(e.toString))?af(e)?it(e.value):JSON.stringify(e,sf,2):String(e),sf=(e,t)=>af(t)?sf(e,t.value):co(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],o)=>(r[bl(n,o)+" =>"]=i,r),{})}:Qd(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>bl(r))}:Rn(t)?bl(t):mt(t)&&!ze(t)&&!tf(t)?String(t):t,bl=(e,t="")=>{var r;return Rn(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let xr;class lf{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xr,!t&&xr&&(this.index=(xr.scopes||(xr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=xr;try{return xr=this,t()}finally{xr=r}}}on(){++this._on===1&&(this.prevScope=xr,xr=this)}off(){this._on>0&&--this._on===0&&(xr=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function ag(e){return new lf(e)}function cf(){return xr}let bt;const vl=new WeakSet;class uf{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,xr&&xr.active&&xr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,vl.has(this)&&(vl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||df(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,sh(this),ff(this);const t=bt,r=jr;bt=this,jr=!0;try{return this.fn()}finally{pf(this),bt=t,jr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)uu(t);this.deps=this.depsTail=void 0,sh(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?vl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){uc(this)&&this.run()}get dirty(){return uc(this)}}let hf=0,Uo,Go;function df(e,t=!1){if(e.flags|=8,t){e.next=Go,Go=e;return}e.next=Uo,Uo=e}function lu(){hf++}function cu(){if(--hf>0)return;if(Go){let t=Go;for(Go=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Uo;){let t=Uo;for(Uo=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function ff(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function pf(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),uu(n),sg(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function uc(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(mf(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function mf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ia)||(e.globalVersion=ia,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!uc(e))))return;e.flags|=2;const t=e.dep,r=bt,n=jr;bt=e,jr=!0;try{ff(e);const i=e.fn(e._value);(t.version===0||Mn(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{bt=r,jr=n,pf(e),e.flags&=-3}}function uu(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let o=r.computed.deps;o;o=o.nextDep)uu(o,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function sg(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let jr=!0;const gf=[];function Bn(){gf.push(jr),jr=!1}function Ln(){const e=gf.pop();jr=e===void 0?!0:e}function sh(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=bt;bt=void 0;try{t()}finally{bt=r}}}let ia=0;class lg{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!bt||!jr||bt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==bt)r=this.activeLink=new lg(bt,this),bt.deps?(r.prevDep=bt.depsTail,bt.depsTail.nextDep=r,bt.depsTail=r):bt.deps=bt.depsTail=r,yf(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=bt.depsTail,r.nextDep=void 0,bt.depsTail.nextDep=r,bt.depsTail=r,bt.deps===r&&(bt.deps=n)}return r}trigger(t){this.version++,ia++,this.notify(t)}notify(t){lu();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{cu()}}}function yf(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)yf(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const ms=new WeakMap,Mi=Symbol(""),hc=Symbol(""),oa=Symbol("");function Xt(e,t,r){if(jr&&bt){let n=ms.get(e);n||ms.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new hu),i.map=n,i.key=r),i.track()}}function Cn(e,t,r,n,i,o){const a=ms.get(e);if(!a){ia++;return}const s=l=>{l&&l.trigger()};if(lu(),t==="clear")a.forEach(s);else{const l=ze(e),c=l&&Vs(r);if(l&&r==="length"){const u=Number(n);a.forEach((h,f)=>{(f==="length"||f===oa||!Rn(f)&&f>=u)&&s(h)})}else switch((r!==void 0||a.has(void 0))&&s(a.get(r)),c&&s(a.get(oa)),t){case"add":l?c&&s(a.get("length")):(s(a.get(Mi)),co(e)&&s(a.get(hc)));break;case"delete":l||(s(a.get(Mi)),co(e)&&s(a.get(hc)));break;case"set":co(e)&&s(a.get(Mi));break}}cu()}function cg(e,t){const r=ms.get(e);return r&&r.get(t)}function Xi(e){const t=ot(e);return t===e?t:(Xt(t,"iterate",oa),Lr(e)?t:t.map(Gr))}function Xs(e){return Xt(e=ot(e),"iterate",oa),e}function Qn(e,t){return $n(e)?So(li(e)?Gr(t):t):Gr(t)}const ug={__proto__:null,[Symbol.iterator](){return xl(this,Symbol.iterator,e=>Qn(this,e))},concat(...e){return Xi(this).concat(...e.map(t=>ze(t)?Xi(t):t))},entries(){return xl(this,"entries",e=>(e[1]=Qn(this,e[1]),e))},every(e,t){return bn(this,"every",e,t,void 0,arguments)},filter(e,t){return bn(this,"filter",e,t,r=>r.map(n=>Qn(this,n)),arguments)},find(e,t){return bn(this,"find",e,t,r=>Qn(this,r),arguments)},findIndex(e,t){return bn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return bn(this,"findLast",e,t,r=>Qn(this,r),arguments)},findLastIndex(e,t){return bn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return bn(this,"forEach",e,t,void 0,arguments)},includes(...e){return wl(this,"includes",e)},indexOf(...e){return wl(this,"indexOf",e)},join(e){return Xi(this).join(e)},lastIndexOf(...e){return wl(this,"lastIndexOf",e)},map(e,t){return bn(this,"map",e,t,void 0,arguments)},pop(){return No(this,"pop")},push(...e){return No(this,"push",e)},reduce(e,...t){return lh(this,"reduce",e,t)},reduceRight(e,...t){return lh(this,"reduceRight",e,t)},shift(){return No(this,"shift")},some(e,t){return bn(this,"some",e,t,void 0,arguments)},splice(...e){return No(this,"splice",e)},toReversed(){return Xi(this).toReversed()},toSorted(e){return Xi(this).toSorted(e)},toSpliced(...e){return Xi(this).toSpliced(...e)},unshift(...e){return No(this,"unshift",e)},values(){return xl(this,"values",e=>Qn(this,e))}};function xl(e,t,r){const n=Xs(e),i=n[t]();return n!==e&&!Lr(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=r(o.value)),o}),i}const hg=Array.prototype;function bn(e,t,r,n,i,o){const a=Xs(e),s=a!==e&&!Lr(e),l=a[t];if(l!==hg[t]){const h=l.apply(e,o);return s?Gr(h):h}let c=r;a!==e&&(s?c=function(h,f){return r.call(this,Qn(e,h),f,e)}:r.length>2&&(c=function(h,f){return r.call(this,h,f,e)}));const u=l.call(a,c,n);return s&&i?i(u):u}function lh(e,t,r,n){const i=Xs(e);let o=r;return i!==e&&(Lr(e)?r.length>3&&(o=function(a,s,l){return r.call(this,a,s,l,e)}):o=function(a,s,l){return r.call(this,a,Qn(e,s),l,e)}),i[t](o,...n)}function wl(e,t,r){const n=ot(e);Xt(n,"iterate",oa);const i=n[t](...r);return(i===-1||i===!1)&&Ks(r[0])?(r[0]=ot(r[0]),n[t](...r)):i}function No(e,t,r=[]){Bn(),lu();const n=ot(e)[t].apply(e,r);return cu(),Ln(),n}const dg=iu("__proto__,__v_isRef,__isVue"),bf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rn));function fg(e){Rn(e)||(e=String(e));const t=ot(this);return Xt(t,"has",e),t.hasOwnProperty(e)}class vf{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(i?o?_g:_f:o?kf:wf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=ze(t);if(!i){let l;if(a&&(l=ug[r]))return l;if(r==="hasOwnProperty")return fg}const s=Reflect.get(t,r,Lt(t)?t:n);if((Rn(r)?bf.has(r):dg(r))||(i||Xt(t,"get",r),o))return s;if(Lt(s)){const l=a&&Vs(r)?s:s.value;return i&&mt(l)?gs(l):l}return mt(s)?i?gs(s):ln(s):s}}class xf extends vf{constructor(t=!1){super(!1,t)}set(t,r,n,i){let o=t[r];const a=ze(t)&&Vs(r);if(!this._isShallow){const c=$n(o);if(!Lr(n)&&!$n(n)&&(o=ot(o),n=ot(n)),!a&&Lt(o)&&!Lt(n))return c||(o.value=n),!0}const s=a?Number(r)<t.length:ct(t,r),l=Reflect.set(t,r,n,Lt(t)?t:i);return t===ot(i)&&(s?Mn(n,o)&&Cn(t,"set",r,n):Cn(t,"add",r,n)),l}deleteProperty(t,r){const n=ct(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&Cn(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!Rn(r)||!bf.has(r))&&Xt(t,"has",r),n}ownKeys(t){return Xt(t,"iterate",ze(t)?"length":Mi),Reflect.ownKeys(t)}}class pg extends vf{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const mg=new xf,gg=new pg,yg=new xf(!0);const dc=e=>e,Ba=e=>Reflect.getPrototypeOf(e);function bg(e,t,r){return function(...n){const i=this.__v_raw,o=ot(i),a=co(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=i[e](...n),u=r?dc:t?So:Gr;return!t&&Xt(o,"iterate",l?hc:Mi),$t(Object.create(c),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:s?[u(h[0]),u(h[1])]:u(h),done:f}}})}}function La(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function vg(e,t){const r={get(i){const o=this.__v_raw,a=ot(o),s=ot(i);e||(Mn(i,s)&&Xt(a,"get",i),Xt(a,"get",s));const{has:l}=Ba(a),c=t?dc:e?So:Gr;if(l.call(a,i))return c(o.get(i));if(l.call(a,s))return c(o.get(s));o!==a&&o.get(i)},get size(){const i=this.__v_raw;return!e&&Xt(ot(i),"iterate",Mi),i.size},has(i){const o=this.__v_raw,a=ot(o),s=ot(i);return e||(Mn(i,s)&&Xt(a,"has",i),Xt(a,"has",s)),i===s?o.has(i):o.has(i)||o.has(s)},forEach(i,o){const a=this,s=a.__v_raw,l=ot(s),c=t?dc:e?So:Gr;return!e&&Xt(l,"iterate",Mi),s.forEach((u,h)=>i.call(o,c(u),c(h),a))}};return $t(r,e?{add:La("add"),set:La("set"),delete:La("delete"),clear:La("clear")}:{add(i){!t&&!Lr(i)&&!$n(i)&&(i=ot(i));const o=ot(this);return Ba(o).has.call(o,i)||(o.add(i),Cn(o,"add",i,i)),this},set(i,o){!t&&!Lr(o)&&!$n(o)&&(o=ot(o));const a=ot(this),{has:s,get:l}=Ba(a);let c=s.call(a,i);c||(i=ot(i),c=s.call(a,i));const u=l.call(a,i);return a.set(i,o),c?Mn(o,u)&&Cn(a,"set",i,o):Cn(a,"add",i,o),this},delete(i){const o=ot(this),{has:a,get:s}=Ba(o);let l=a.call(o,i);l||(i=ot(i),l=a.call(o,i)),s&&s.call(o,i);const c=o.delete(i);return l&&Cn(o,"delete",i,void 0),c},clear(){const i=ot(this),o=i.size!==0,a=i.clear();return o&&Cn(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=bg(i,e,t)}),r}function du(e,t){const r=vg(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ct(r,i)&&i in n?r:n,i,o)}const xg={get:du(!1,!1)},wg={get:du(!1,!0)},kg={get:du(!0,!1)};const wf=new WeakMap,kf=new WeakMap,_f=new WeakMap,_g=new WeakMap;function Cg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sg(e){return e.__v_skip||!Object.isExtensible(e)?0:Cg(Zm(e))}function ln(e){return $n(e)?e:fu(e,!1,mg,xg,wf)}function io(e){return fu(e,!1,yg,wg,kf)}function gs(e){return fu(e,!0,gg,kg,_f)}function fu(e,t,r,n,i){if(!mt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Sg(e);if(o===0)return e;const a=i.get(e);if(a)return a;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function li(e){return $n(e)?li(e.__v_raw):!!(e&&e.__v_isReactive)}function $n(e){return!!(e&&e.__v_isReadonly)}function Lr(e){return!!(e&&e.__v_isShallow)}function Ks(e){return e?!!e.__v_raw:!1}function ot(e){const t=e&&e.__v_raw;return t?ot(t):e}function fc(e){return!ct(e,"__v_skip")&&Object.isExtensible(e)&&rf(e,"__v_skip",!0),e}const Gr=e=>mt(e)?ln(e):e,So=e=>mt(e)?gs(e):e;function Lt(e){return e?e.__v_isRef===!0:!1}function J(e){return Cf(e,!1)}function Zs(e){return Cf(e,!0)}function Cf(e,t){return Lt(e)?e:new Tg(e,t)}class Tg{constructor(t,r){this.dep=new hu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:ot(t),this._value=r?t:Gr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Lr(t)||$n(t);t=n?t:ot(t),Mn(t,r)&&(this._rawValue=t,this._value=n?t:Gr(t),this.dep.trigger())}}function le(e){return Lt(e)?e.value:e}function Mg(e){return qe(e)?e():le(e)}const Ag={get:(e,t,r)=>t==="__v_raw"?e:le(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Lt(i)&&!Lt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function Sf(e){return li(e)?e:new Proxy(e,Ag)}class Eg{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=ot(t);let i=!0,o=t;if(!ze(t)||!Vs(String(r)))do i=!Ks(o)||Lr(o);while(i&&(o=o.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=le(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Lt(this._raw[this._key])){const r=this._object[this._key];if(Lt(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return cg(this._raw,this._key)}}class Bg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Lg(e,t,r){return Lt(e)?e:qe(e)?new Bg(e):mt(e)&&arguments.length>1?$g(e,t,r):J(e)}function $g(e,t,r){return new Eg(e,t,r)}class Dg{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new hu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ia-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&bt!==this)return df(this,!0),!0}get value(){const t=this.dep.track();return mf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Fg(e,t,r=!1){let n,i;return qe(e)?n=e:(n=e.get,i=e.set),new Dg(n,i,r)}const $a={},ys=new WeakMap;let wi;function Ig(e,t=!1,r=wi){if(r){let n=ys.get(r);n||ys.set(r,n=[]),n.push(e)}}function Og(e,t,r=pt){const{immediate:n,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=r,c=b=>i?b:Lr(b)||i===!1||i===0?Sn(b,1):Sn(b);let u,h,f,d,p=!1,m=!1;if(Lt(e)?(h=()=>e.value,p=Lr(e)):li(e)?(h=()=>c(e),p=!0):ze(e)?(m=!0,p=e.some(b=>li(b)||Lr(b)),h=()=>e.map(b=>{if(Lt(b))return b.value;if(li(b))return c(b);if(qe(b))return l?l(b,2):b()})):qe(e)?t?h=l?()=>l(e,2):e:h=()=>{if(f){Bn();try{f()}finally{Ln()}}const b=wi;wi=u;try{return l?l(e,3,[d]):e(d)}finally{wi=b}}:h=un,t&&i){const b=h,v=i===!0?1/0:i;h=()=>Sn(b(),v)}const y=cf(),C=()=>{u.stop(),y&&y.active&&au(y.effects,u)};if(o&&t){const b=t;t=(...v)=>{b(...v),C()}}let x=m?new Array(e.length).fill($a):$a;const g=b=>{if(!(!(u.flags&1)||!u.dirty&&!b))if(t){const v=u.run();if(i||p||(m?v.some((A,w)=>Mn(A,x[w])):Mn(v,x))){f&&f();const A=wi;wi=u;try{const w=[v,x===$a?void 0:m&&x[0]===$a?[]:x,d];x=v,l?l(t,3,w):t(...w)}finally{wi=A}}}else u.run()};return s&&s(g),u=new uf(h),u.scheduler=a?()=>a(g,!1):g,d=b=>Ig(b,!1,u),f=u.onStop=()=>{const b=ys.get(u);if(b){if(l)l(b,4);else for(const v of b)v();ys.delete(u)}},t?n?g(!0):x=u.run():a?a(g.bind(null,!0),!0):u.run(),C.pause=u.pause.bind(u),C.resume=u.resume.bind(u),C.stop=C,C}function Sn(e,t=1/0,r){if(t<=0||!mt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Lt(e))Sn(e.value,t,r);else if(ze(e))for(let n=0;n<e.length;n++)Sn(e[n],t,r);else if(Qd(e)||co(e))e.forEach(n=>{Sn(n,t,r)});else if(tf(e)){for(const n in e)Sn(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Sn(e[n],t,r)}return e}function wa(e,t,r,n){try{return n?e(...n):e()}catch(i){Lo(i,t,r)}}function Yr(e,t,r,n){if(qe(e)){const i=wa(e,t,r,n);return i&&Jd(i)&&i.catch(o=>{Lo(o,t,r)}),i}if(ze(e)){const i=[];for(let o=0;o<e.length;o++)i.push(Yr(e[o],t,r,n));return i}}function Lo(e,t,r,n=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||pt;if(t){let s=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${r}`;for(;s;){const u=s.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,l,c)===!1)return}s=s.parent}if(o){Bn(),wa(o,null,10,[e,l,c]),Ln();return}}Rg(e,r,i,n,a)}function Rg(e,t,r,n=!0,i=!1){if(i)throw e;console.error(e)}const cr=[];let rn=-1;const ho=[];let Jn=null,eo=0;const Tf=Promise.resolve();let bs=null;function at(e){const t=bs||Tf;return e?t.then(this?e.bind(this):e):t}function Ng(e){let t=rn+1,r=cr.length;for(;t<r;){const n=t+r>>>1,i=cr[n],o=aa(i);o<e||o===e&&i.flags&2?t=n+1:r=n}return t}function pu(e){if(!(e.flags&1)){const t=aa(e),r=cr[cr.length-1];!r||!(e.flags&2)&&t>=aa(r)?cr.push(e):cr.splice(Ng(t),0,e),e.flags|=1,Mf()}}function Mf(){bs||(bs=Tf.then(Af))}function pc(e){ze(e)?ho.push(...e):Jn&&e.id===-1?Jn.splice(eo+1,0,e):e.flags&1||(ho.push(e),e.flags|=1),Mf()}function ch(e,t,r=rn+1){for(;r<cr.length;r++){const n=cr[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;cr.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function vs(e){if(ho.length){const t=[...new Set(ho)].sort((r,n)=>aa(r)-aa(n));if(ho.length=0,Jn){Jn.push(...t);return}for(Jn=t,eo=0;eo<Jn.length;eo++){const r=Jn[eo];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Jn=null,eo=0}}const aa=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Af(e){try{for(rn=0;rn<cr.length;rn++){const t=cr[rn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),wa(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;rn<cr.length;rn++){const t=cr[rn];t&&(t.flags&=-2)}rn=-1,cr.length=0,vs(),bs=null,(cr.length||ho.length)&&Af()}}let Wt=null,Ef=null;function xs(e){const t=Wt;return Wt=e,Ef=e&&e.type.__scopeId||null,t}function Zr(e,t=Wt,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&Ss(-1);const o=xs(t);let a;try{a=e(...i)}finally{xs(o),n._d&&Ss(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Dn(e,t){if(Wt===null)return e;const r=nl(Wt),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,a,s,l=pt]=t[i];o&&(qe(o)&&(o={mounted:o,updated:o}),o.deep&&Sn(a),n.push({dir:o,instance:r,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function on(e,t,r,n){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[n];l&&(Bn(),Yr(l,r,8,[e.el,s,e,t]),Ln())}}function Yo(e,t){if(jt){let r=jt.provides;const n=jt.parent&&jt.parent.provides;n===r&&(r=jt.provides=Object.create(n)),r[e]=t}}function $r(e,t,r=!1){const n=zn();if(n||Ai){let i=Ai?Ai._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return r&&qe(t)?t.call(n&&n.proxy):t}}function Qs(){return!!(zn()||Ai)}const zg=Symbol.for("v-scx"),Pg=()=>$r(zg);function qg(e,t){return mu(e,null,t)}function Ne(e,t,r){return mu(e,t,r)}function mu(e,t,r=pt){const{immediate:n,deep:i,flush:o,once:a}=r,s=$t({},r),l=t&&n||!t&&o!=="post";let c;if(To){if(o==="sync"){const d=Pg();c=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=un,d.resume=un,d.pause=un,d}}const u=jt;s.call=(d,p,m)=>Yr(d,u,p,m);let h=!1;o==="post"?s.scheduler=d=>{At(d,u&&u.suspense)}:o!=="sync"&&(h=!0,s.scheduler=(d,p)=>{p?d():pu(d)}),s.augmentJob=d=>{t&&(d.flags|=4),h&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const f=Og(e,t,s);return To&&(c?c.push(f):l&&f()),f}function Hg(e,t,r){const n=this.proxy,i=xt(e)?e.includes(".")?Bf(n,e):()=>n[e]:e.bind(n,n);let o;qe(t)?o=t:(o=t.handler,r=t);const a=Ca(this),s=mu(i,o.bind(n),r);return a(),s}function Bf(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}const Lf=Symbol("_vte"),$f=e=>e.__isTeleport,Xo=e=>e&&(e.disabled||e.disabled===""),uh=e=>e&&(e.defer||e.defer===""),hh=e=>typeof SVGElement<"u"&&e instanceof SVGElement,dh=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,mc=(e,t)=>{const r=e&&e.to;return xt(r)?t?t(r):null:r},Df={name:"Teleport",__isTeleport:!0,process(e,t,r,n,i,o,a,s,l,c){const{mc:u,pc:h,pbc:f,o:{insert:d,querySelector:p,createText:m,createComment:y}}=c,C=Xo(t.props);let{shapeFlag:x,children:g,dynamicChildren:b}=t;if(e==null){const v=t.el=m(""),A=t.anchor=m("");d(v,r,n),d(A,r,n);const w=(S,_)=>{x&16&&u(g,S,_,i,o,a,s,l)},T=()=>{const S=t.target=mc(t.props,p),_=Ff(S,t,m,d);S&&(a!=="svg"&&hh(S)?a="svg":a!=="mathml"&&dh(S)&&(a="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(S),C||(w(S,_),rs(t,!1)))};C&&(w(r,A),rs(t,!0)),uh(t.props)?(t.el.__isMounted=!1,At(()=>{T(),delete t.el.__isMounted},o)):T()}else{if(uh(t.props)&&e.el.__isMounted===!1){At(()=>{Df.process(e,t,r,n,i,o,a,s,l,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const v=t.anchor=e.anchor,A=t.target=e.target,w=t.targetAnchor=e.targetAnchor,T=Xo(e.props),S=T?r:A,_=T?v:w;if(a==="svg"||hh(A)?a="svg":(a==="mathml"||dh(A))&&(a="mathml"),b?(f(e.dynamicChildren,b,S,i,o,a,s),wu(e,t,!0)):l||h(e,t,S,_,i,o,a,s,!1),C)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Da(t,r,v,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=mc(t.props,p);B&&Da(t,B,null,c,0)}else T&&Da(t,A,w,c,1);rs(t,C)}},remove(e,t,r,{um:n,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:h,props:f}=e;if(h&&(i(c),i(u)),o&&i(l),a&16){const d=o||!Xo(f);for(let p=0;p<s.length;p++){const m=s[p];n(m,t,r,d,!!m.dynamicChildren)}}},move:Da,hydrate:jg};function Da(e,t,r,{o:{insert:n},m:i},o=2){o===0&&n(e.targetAnchor,t,r);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,h=o===2;if(h&&n(a,t,r),(!h||Xo(u))&&l&16)for(let f=0;f<c.length;f++)i(c[f],t,r,2);h&&n(s,t,r)}function jg(e,t,r,n,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:c,createText:u}},h){function f(m,y,C,x){y.anchor=h(a(m),y,s(m),r,n,i,o),y.targetStart=C,y.targetAnchor=x}const d=t.target=mc(t.props,l),p=Xo(t.props);if(d){const m=d._lpa||d.firstChild;if(t.shapeFlag&16)if(p)f(e,t,m,m&&a(m));else{t.anchor=a(e);let y=m;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,d._lpa=t.targetAnchor&&a(t.targetAnchor);break}}y=a(y)}t.targetAnchor||Ff(d,t,u,c),h(m&&a(m),t,d,r,n,i,o)}rs(t,p)}else p&&t.shapeFlag&16&&f(e,t,e,a(e));return t.anchor&&a(t.anchor)}const Js=Df;function rs(e,t){const r=e.ctx;if(r&&r.ut){let n,i;for(t?(n=e.el,i=e.anchor):(n=e.targetStart,i=e.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function Ff(e,t,r,n){const i=t.targetStart=r(""),o=t.targetAnchor=r("");return i[Lf]=o,e&&(n(i,e),n(o,e)),o}const _n=Symbol("_leaveCb"),Fa=Symbol("_enterCb");function If(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qr(()=>{e.isMounted=!0}),nr(()=>{e.isUnmounting=!0}),e}const Or=[Function,Array],Of={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Or,onEnter:Or,onAfterEnter:Or,onEnterCancelled:Or,onBeforeLeave:Or,onLeave:Or,onAfterLeave:Or,onLeaveCancelled:Or,onBeforeAppear:Or,onAppear:Or,onAfterAppear:Or,onAppearCancelled:Or},Rf=e=>{const t=e.subTree;return t.component?Rf(t.component):t},Wg={name:"BaseTransition",props:Of,setup(e,{slots:t}){const r=zn(),n=If();return()=>{const i=t.default&&gu(t.default(),!0);if(!i||!i.length)return;const o=Nf(i),a=ot(e),{mode:s}=a;if(n.isLeaving)return kl(o);const l=fh(o);if(!l)return kl(o);let c=sa(l,a,n,r,h=>c=h);l.type!==Et&&ci(l,c);let u=r.subTree&&fh(r.subTree);if(u&&u.type!==Et&&!qr(u,l)&&Rf(r).type!==Et){let h=sa(u,a,n,r);if(ci(u,h),s==="out-in"&&l.type!==Et)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete h.afterLeave,u=void 0},kl(o);s==="in-out"&&l.type!==Et?h.delayLeave=(f,d,p)=>{const m=zf(n,u);m[String(u.key)]=u,f[_n]=()=>{d(),f[_n]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function Nf(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==Et){t=r;break}}return t}const Vg=Wg;function zf(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function sa(e,t,r,n,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:h,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:y,onAppear:C,onAfterAppear:x,onAppearCancelled:g}=t,b=String(e.key),v=zf(r,e),A=(S,_)=>{S&&Yr(S,n,9,_)},w=(S,_)=>{const B=_[1];A(S,_),ze(S)?S.every(E=>E.length<=1)&&B():S.length<=1&&B()},T={mode:a,persisted:s,beforeEnter(S){let _=l;if(!r.isMounted)if(o)_=y||l;else return;S[_n]&&S[_n](!0);const B=v[b];B&&qr(e,B)&&B.el[_n]&&B.el[_n](),A(_,[S])},enter(S){let _=c,B=u,E=h;if(!r.isMounted)if(o)_=C||c,B=x||u,E=g||h;else return;let I=!1;const W=S[Fa]=F=>{I||(I=!0,F?A(E,[S]):A(B,[S]),T.delayedLeave&&T.delayedLeave(),S[Fa]=void 0)};_?w(_,[S,W]):W()},leave(S,_){const B=String(e.key);if(S[Fa]&&S[Fa](!0),r.isUnmounting)return _();A(f,[S]);let E=!1;const I=S[_n]=W=>{E||(E=!0,_(),W?A(m,[S]):A(p,[S]),S[_n]=void 0,v[B]===e&&delete v[B])};v[B]=e,d?w(d,[S,I]):I()},clone(S){const _=sa(S,t,r,n,i);return i&&i(_),_}};return T}function kl(e){if(ka(e))return e=Fn(e),e.children=null,e}function fh(e){if(!ka(e))return $f(e.type)&&e.children?Nf(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&qe(r.default))return r.default()}}function ci(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ci(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gu(e,t=!1,r){let n=[],i=0;for(let o=0;o<e.length;o++){let a=e[o];const s=r==null?a.key:String(r)+String(a.key!=null?a.key:o);a.type===Ke?(a.patchFlag&128&&i++,n=n.concat(gu(a.children,t,s))):(t||a.type!==Et)&&n.push(s!=null?Fn(a,{key:s}):a)}if(i>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}function Ve(e,t){return qe(e)?$t({name:e.name},t,{setup:e}):e}function yu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const ws=new WeakMap;function fo(e,t,r,n,i=!1){if(ze(e)){e.forEach((p,m)=>fo(p,t&&(ze(t)?t[m]:t),r,n,i));return}if(An(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&fo(e,t,r,n.component.subTree);return}const o=n.shapeFlag&4?nl(n.component):n.el,a=i?null:o,{i:s,r:l}=e,c=t&&t.r,u=s.refs===pt?s.refs={}:s.refs,h=s.setupState,f=ot(h),d=h===pt?Zd:p=>ct(f,p);if(c!=null&&c!==l){if(ph(t),xt(c))u[c]=null,d(c)&&(h[c]=null);else if(Lt(c)){c.value=null;const p=t;p.k&&(u[p.k]=null)}}if(qe(l))wa(l,s,12,[a,u]);else{const p=xt(l),m=Lt(l);if(p||m){const y=()=>{if(e.f){const C=p?d(l)?h[l]:u[l]:l.value;if(i)ze(C)&&au(C,o);else if(ze(C))C.includes(o)||C.push(o);else if(p)u[l]=[o],d(l)&&(h[l]=u[l]);else{const x=[o];l.value=x,e.k&&(u[e.k]=x)}}else p?(u[l]=a,d(l)&&(h[l]=a)):m&&(l.value=a,e.k&&(u[e.k]=a))};if(a){const C=()=>{y(),ws.delete(e)};C.id=-1,ws.set(e,C),At(C,r)}else ph(e),y()}}}function ph(e){const t=ws.get(e);t&&(t.flags|=8,ws.delete(e))}let mh=!1;const Ki=()=>{mh||(console.error("Hydration completed but contains mismatches."),mh=!0)},Ug=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Gg=e=>e.namespaceURI.includes("MathML"),Ia=e=>{if(e.nodeType===1){if(Ug(e))return"svg";if(Gg(e))return"mathml"}},oo=e=>e.nodeType===8;function Yg(e){const{mt:t,p:r,o:{patchProp:n,createText:i,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:c}}=e,u=(g,b)=>{if(!b.hasChildNodes()){r(null,g,b),vs(),b._vnode=g;return}h(b.firstChild,g,null,null,null),vs(),b._vnode=g},h=(g,b,v,A,w,T=!1)=>{T=T||!!b.dynamicChildren;const S=oo(g)&&g.data==="[",_=()=>m(g,b,v,A,w,S),{type:B,ref:E,shapeFlag:I,patchFlag:W}=b;let F=g.nodeType;b.el=g,W===-2&&(T=!1,b.dynamicChildren=null);let D=null;switch(B){case Ei:F!==3?b.children===""?(l(b.el=i(""),a(g),g),D=g):D=_():(g.data!==b.children&&(Ki(),g.data=b.children),D=o(g));break;case Et:x(g)?(D=o(g),C(b.el=g.content.firstChild,g,v)):F!==8||S?D=_():D=o(g);break;case ns:if(S&&(g=o(g),F=g.nodeType),F===1||F===3){D=g;const R=!b.children.length;for(let z=0;z<b.staticCount;z++)R&&(b.children+=D.nodeType===1?D.outerHTML:D.data),z===b.staticCount-1&&(b.anchor=D),D=o(D);return S?o(D):D}else _();break;case Ke:S?D=p(g,b,v,A,w,T):D=_();break;default:if(I&1)(F!==1||b.type.toLowerCase()!==g.tagName.toLowerCase())&&!x(g)?D=_():D=f(g,b,v,A,w,T);else if(I&6){b.slotScopeIds=w;const R=a(g);if(S?D=y(g):oo(g)&&g.data==="teleport start"?D=y(g,g.data,"teleport end"):D=o(g),t(b,R,null,v,A,Ia(R),T),An(b)&&!b.type.__asyncResolved){let z;S?(z=tt(Ke),z.anchor=D?D.previousSibling:R.lastChild):z=g.nodeType===3?pp(""):tt("div"),z.el=g,b.component.subTree=z}}else I&64?F!==8?D=_():D=b.type.hydrate(g,b,v,A,w,T,e,d):I&128&&(D=b.type.hydrate(g,b,v,A,Ia(a(g)),w,T,e,h))}return E!=null&&fo(E,null,A,b),D},f=(g,b,v,A,w,T)=>{T=T||!!b.dynamicChildren;const{type:S,props:_,patchFlag:B,shapeFlag:E,dirs:I,transition:W}=b,F=S==="input"||S==="option";if(F||B!==-1){I&&on(b,null,v,"created");let D=!1;if(x(g)){D=ap(null,W)&&v&&v.vnode.props&&v.vnode.props.appear;const z=g.content.firstChild;if(D){const V=z.getAttribute("class");V&&(z.$cls=V),W.beforeEnter(z)}C(z,g,v),b.el=g=z}if(E&16&&!(_&&(_.innerHTML||_.textContent))){let z=d(g.firstChild,b,g,v,A,w,T);for(;z;){Oa(g,1)||Ki();const V=z;z=z.nextSibling,s(V)}}else if(E&8){let z=b.children;z[0]===`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DLcXGJ1M.js","./vendor-katex.ltkKqWhd.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
function iu(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const pt={},lo=[],un=()=>{},Zd=()=>!1,va=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ou=e=>e.startsWith("onUpdate:"),$t=Object.assign,au=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Xm=Object.prototype.hasOwnProperty,ct=(e,t)=>Xm.call(e,t),ze=Array.isArray,co=e=>xa(e)==="[object Map]",Qd=e=>xa(e)==="[object Set]",Km=e=>xa(e)==="[object RegExp]",qe=e=>typeof e=="function",xt=e=>typeof e=="string",Rn=e=>typeof e=="symbol",mt=e=>e!==null&&typeof e=="object",Jd=e=>(mt(e)||qe(e))&&qe(e.then)&&qe(e.catch),ef=Object.prototype.toString,xa=e=>ef.call(e),Zm=e=>xa(e).slice(8,-1),tf=e=>xa(e)==="[object Object]",Vs=e=>xt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ti=iu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Us=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},Qm=/-\w/g,Rr=Us(e=>e.replace(Qm,t=>t.slice(1).toUpperCase())),Jm=/\B([A-Z])/g,ui=Us(e=>e.replace(Jm,"-$1").toLowerCase()),Gs=Us(e=>e.charAt(0).toUpperCase()+e.slice(1)),ts=Us(e=>e?`on${Gs(e)}`:""),Mn=(e,t)=>!Object.is(e,t),uo=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},rf=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},su=e=>{const t=parseFloat(e);return isNaN(t)?e:t},nf=e=>{const t=xt(e)?Number(e):NaN;return isNaN(t)?e:t};let ah;const Ys=()=>ah||(ah=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function St(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=xt(n)?ng(n):St(n);if(i)for(const o in i)t[o]=i[o]}return t}else if(xt(e)||mt(e))return e}const eg=/;(?![^(]*\))/g,tg=/:([^]+)/,rg=/\/\*[^]*?\*\//g;function ng(e){const t={};return e.replace(rg,"").split(eg).forEach(r=>{if(r){const n=r.split(tg);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ae(e){let t="";if(xt(e))t=e;else if(ze(e))for(let r=0;r<e.length;r++){const n=Ae(e[r]);n&&(t+=n+" ")}else if(mt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function E9(e){if(!e)return null;let{class:t,style:r}=e;return t&&!xt(t)&&(e.class=Ae(t)),r&&(e.style=St(r)),e}const ig="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",og=iu(ig);function of(e){return!!e||e===""}const af=e=>!!(e&&e.__v_isRef===!0),it=e=>xt(e)?e:e==null?"":ze(e)||mt(e)&&(e.toString===ef||!qe(e.toString))?af(e)?it(e.value):JSON.stringify(e,sf,2):String(e),sf=(e,t)=>af(t)?sf(e,t.value):co(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],o)=>(r[bl(n,o)+" =>"]=i,r),{})}:Qd(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>bl(r))}:Rn(t)?bl(t):mt(t)&&!ze(t)&&!tf(t)?String(t):t,bl=(e,t="")=>{var r;return Rn(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let xr;class lf{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xr,!t&&xr&&(this.index=(xr.scopes||(xr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=xr;try{return xr=this,t()}finally{xr=r}}}on(){++this._on===1&&(this.prevScope=xr,xr=this)}off(){this._on>0&&--this._on===0&&(xr=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function ag(e){return new lf(e)}function cf(){return xr}let bt;const vl=new WeakSet;class uf{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,xr&&xr.active&&xr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,vl.has(this)&&(vl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||df(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,sh(this),ff(this);const t=bt,r=jr;bt=this,jr=!0;try{return this.fn()}finally{pf(this),bt=t,jr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)uu(t);this.deps=this.depsTail=void 0,sh(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?vl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){uc(this)&&this.run()}get dirty(){return uc(this)}}let hf=0,Uo,Go;function df(e,t=!1){if(e.flags|=8,t){e.next=Go,Go=e;return}e.next=Uo,Uo=e}function lu(){hf++}function cu(){if(--hf>0)return;if(Go){let t=Go;for(Go=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Uo;){let t=Uo;for(Uo=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function ff(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function pf(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),uu(n),sg(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function uc(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(mf(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function mf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ia)||(e.globalVersion=ia,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!uc(e))))return;e.flags|=2;const t=e.dep,r=bt,n=jr;bt=e,jr=!0;try{ff(e);const i=e.fn(e._value);(t.version===0||Mn(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{bt=r,jr=n,pf(e),e.flags&=-3}}function uu(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let o=r.computed.deps;o;o=o.nextDep)uu(o,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function sg(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let jr=!0;const gf=[];function Bn(){gf.push(jr),jr=!1}function Ln(){const e=gf.pop();jr=e===void 0?!0:e}function sh(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=bt;bt=void 0;try{t()}finally{bt=r}}}let ia=0;class lg{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!bt||!jr||bt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==bt)r=this.activeLink=new lg(bt,this),bt.deps?(r.prevDep=bt.depsTail,bt.depsTail.nextDep=r,bt.depsTail=r):bt.deps=bt.depsTail=r,yf(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=bt.depsTail,r.nextDep=void 0,bt.depsTail.nextDep=r,bt.depsTail=r,bt.deps===r&&(bt.deps=n)}return r}trigger(t){this.version++,ia++,this.notify(t)}notify(t){lu();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{cu()}}}function yf(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)yf(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const ms=new WeakMap,Mi=Symbol(""),hc=Symbol(""),oa=Symbol("");function Xt(e,t,r){if(jr&&bt){let n=ms.get(e);n||ms.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new hu),i.map=n,i.key=r),i.track()}}function Cn(e,t,r,n,i,o){const a=ms.get(e);if(!a){ia++;return}const s=l=>{l&&l.trigger()};if(lu(),t==="clear")a.forEach(s);else{const l=ze(e),c=l&&Vs(r);if(l&&r==="length"){const u=Number(n);a.forEach((h,f)=>{(f==="length"||f===oa||!Rn(f)&&f>=u)&&s(h)})}else switch((r!==void 0||a.has(void 0))&&s(a.get(r)),c&&s(a.get(oa)),t){case"add":l?c&&s(a.get("length")):(s(a.get(Mi)),co(e)&&s(a.get(hc)));break;case"delete":l||(s(a.get(Mi)),co(e)&&s(a.get(hc)));break;case"set":co(e)&&s(a.get(Mi));break}}cu()}function cg(e,t){const r=ms.get(e);return r&&r.get(t)}function Xi(e){const t=ot(e);return t===e?t:(Xt(t,"iterate",oa),Lr(e)?t:t.map(Gr))}function Xs(e){return Xt(e=ot(e),"iterate",oa),e}function Qn(e,t){return $n(e)?So(li(e)?Gr(t):t):Gr(t)}const ug={__proto__:null,[Symbol.iterator](){return xl(this,Symbol.iterator,e=>Qn(this,e))},concat(...e){return Xi(this).concat(...e.map(t=>ze(t)?Xi(t):t))},entries(){return xl(this,"entries",e=>(e[1]=Qn(this,e[1]),e))},every(e,t){return bn(this,"every",e,t,void 0,arguments)},filter(e,t){return bn(this,"filter",e,t,r=>r.map(n=>Qn(this,n)),arguments)},find(e,t){return bn(this,"find",e,t,r=>Qn(this,r),arguments)},findIndex(e,t){return bn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return bn(this,"findLast",e,t,r=>Qn(this,r),arguments)},findLastIndex(e,t){return bn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return bn(this,"forEach",e,t,void 0,arguments)},includes(...e){return wl(this,"includes",e)},indexOf(...e){return wl(this,"indexOf",e)},join(e){return Xi(this).join(e)},lastIndexOf(...e){return wl(this,"lastIndexOf",e)},map(e,t){return bn(this,"map",e,t,void 0,arguments)},pop(){return No(this,"pop")},push(...e){return No(this,"push",e)},reduce(e,...t){return lh(this,"reduce",e,t)},reduceRight(e,...t){return lh(this,"reduceRight",e,t)},shift(){return No(this,"shift")},some(e,t){return bn(this,"some",e,t,void 0,arguments)},splice(...e){return No(this,"splice",e)},toReversed(){return Xi(this).toReversed()},toSorted(e){return Xi(this).toSorted(e)},toSpliced(...e){return Xi(this).toSpliced(...e)},unshift(...e){return No(this,"unshift",e)},values(){return xl(this,"values",e=>Qn(this,e))}};function xl(e,t,r){const n=Xs(e),i=n[t]();return n!==e&&!Lr(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=r(o.value)),o}),i}const hg=Array.prototype;function bn(e,t,r,n,i,o){const a=Xs(e),s=a!==e&&!Lr(e),l=a[t];if(l!==hg[t]){const h=l.apply(e,o);return s?Gr(h):h}let c=r;a!==e&&(s?c=function(h,f){return r.call(this,Qn(e,h),f,e)}:r.length>2&&(c=function(h,f){return r.call(this,h,f,e)}));const u=l.call(a,c,n);return s&&i?i(u):u}function lh(e,t,r,n){const i=Xs(e);let o=r;return i!==e&&(Lr(e)?r.length>3&&(o=function(a,s,l){return r.call(this,a,s,l,e)}):o=function(a,s,l){return r.call(this,a,Qn(e,s),l,e)}),i[t](o,...n)}function wl(e,t,r){const n=ot(e);Xt(n,"iterate",oa);const i=n[t](...r);return(i===-1||i===!1)&&Ks(r[0])?(r[0]=ot(r[0]),n[t](...r)):i}function No(e,t,r=[]){Bn(),lu();const n=ot(e)[t].apply(e,r);return cu(),Ln(),n}const dg=iu("__proto__,__v_isRef,__isVue"),bf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rn));function fg(e){Rn(e)||(e=String(e));const t=ot(this);return Xt(t,"has",e),t.hasOwnProperty(e)}class vf{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(i?o?_g:_f:o?kf:wf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=ze(t);if(!i){let l;if(a&&(l=ug[r]))return l;if(r==="hasOwnProperty")return fg}const s=Reflect.get(t,r,Lt(t)?t:n);if((Rn(r)?bf.has(r):dg(r))||(i||Xt(t,"get",r),o))return s;if(Lt(s)){const l=a&&Vs(r)?s:s.value;return i&&mt(l)?gs(l):l}return mt(s)?i?gs(s):ln(s):s}}class xf extends vf{constructor(t=!1){super(!1,t)}set(t,r,n,i){let o=t[r];const a=ze(t)&&Vs(r);if(!this._isShallow){const c=$n(o);if(!Lr(n)&&!$n(n)&&(o=ot(o),n=ot(n)),!a&&Lt(o)&&!Lt(n))return c||(o.value=n),!0}const s=a?Number(r)<t.length:ct(t,r),l=Reflect.set(t,r,n,Lt(t)?t:i);return t===ot(i)&&(s?Mn(n,o)&&Cn(t,"set",r,n):Cn(t,"add",r,n)),l}deleteProperty(t,r){const n=ct(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&Cn(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!Rn(r)||!bf.has(r))&&Xt(t,"has",r),n}ownKeys(t){return Xt(t,"iterate",ze(t)?"length":Mi),Reflect.ownKeys(t)}}class pg extends vf{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const mg=new xf,gg=new pg,yg=new xf(!0);const dc=e=>e,Ba=e=>Reflect.getPrototypeOf(e);function bg(e,t,r){return function(...n){const i=this.__v_raw,o=ot(i),a=co(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=i[e](...n),u=r?dc:t?So:Gr;return!t&&Xt(o,"iterate",l?hc:Mi),$t(Object.create(c),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:s?[u(h[0]),u(h[1])]:u(h),done:f}}})}}function La(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function vg(e,t){const r={get(i){const o=this.__v_raw,a=ot(o),s=ot(i);e||(Mn(i,s)&&Xt(a,"get",i),Xt(a,"get",s));const{has:l}=Ba(a),c=t?dc:e?So:Gr;if(l.call(a,i))return c(o.get(i));if(l.call(a,s))return c(o.get(s));o!==a&&o.get(i)},get size(){const i=this.__v_raw;return!e&&Xt(ot(i),"iterate",Mi),i.size},has(i){const o=this.__v_raw,a=ot(o),s=ot(i);return e||(Mn(i,s)&&Xt(a,"has",i),Xt(a,"has",s)),i===s?o.has(i):o.has(i)||o.has(s)},forEach(i,o){const a=this,s=a.__v_raw,l=ot(s),c=t?dc:e?So:Gr;return!e&&Xt(l,"iterate",Mi),s.forEach((u,h)=>i.call(o,c(u),c(h),a))}};return $t(r,e?{add:La("add"),set:La("set"),delete:La("delete"),clear:La("clear")}:{add(i){!t&&!Lr(i)&&!$n(i)&&(i=ot(i));const o=ot(this);return Ba(o).has.call(o,i)||(o.add(i),Cn(o,"add",i,i)),this},set(i,o){!t&&!Lr(o)&&!$n(o)&&(o=ot(o));const a=ot(this),{has:s,get:l}=Ba(a);let c=s.call(a,i);c||(i=ot(i),c=s.call(a,i));const u=l.call(a,i);return a.set(i,o),c?Mn(o,u)&&Cn(a,"set",i,o):Cn(a,"add",i,o),this},delete(i){const o=ot(this),{has:a,get:s}=Ba(o);let l=a.call(o,i);l||(i=ot(i),l=a.call(o,i)),s&&s.call(o,i);const c=o.delete(i);return l&&Cn(o,"delete",i,void 0),c},clear(){const i=ot(this),o=i.size!==0,a=i.clear();return o&&Cn(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=bg(i,e,t)}),r}function du(e,t){const r=vg(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ct(r,i)&&i in n?r:n,i,o)}const xg={get:du(!1,!1)},wg={get:du(!1,!0)},kg={get:du(!0,!1)};const wf=new WeakMap,kf=new WeakMap,_f=new WeakMap,_g=new WeakMap;function Cg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sg(e){return e.__v_skip||!Object.isExtensible(e)?0:Cg(Zm(e))}function ln(e){return $n(e)?e:fu(e,!1,mg,xg,wf)}function io(e){return fu(e,!1,yg,wg,kf)}function gs(e){return fu(e,!0,gg,kg,_f)}function fu(e,t,r,n,i){if(!mt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Sg(e);if(o===0)return e;const a=i.get(e);if(a)return a;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function li(e){return $n(e)?li(e.__v_raw):!!(e&&e.__v_isReactive)}function $n(e){return!!(e&&e.__v_isReadonly)}function Lr(e){return!!(e&&e.__v_isShallow)}function Ks(e){return e?!!e.__v_raw:!1}function ot(e){const t=e&&e.__v_raw;return t?ot(t):e}function fc(e){return!ct(e,"__v_skip")&&Object.isExtensible(e)&&rf(e,"__v_skip",!0),e}const Gr=e=>mt(e)?ln(e):e,So=e=>mt(e)?gs(e):e;function Lt(e){return e?e.__v_isRef===!0:!1}function J(e){return Cf(e,!1)}function Zs(e){return Cf(e,!0)}function Cf(e,t){return Lt(e)?e:new Tg(e,t)}class Tg{constructor(t,r){this.dep=new hu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:ot(t),this._value=r?t:Gr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Lr(t)||$n(t);t=n?t:ot(t),Mn(t,r)&&(this._rawValue=t,this._value=n?t:Gr(t),this.dep.trigger())}}function le(e){return Lt(e)?e.value:e}function Mg(e){return qe(e)?e():le(e)}const Ag={get:(e,t,r)=>t==="__v_raw"?e:le(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Lt(i)&&!Lt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function Sf(e){return li(e)?e:new Proxy(e,Ag)}class Eg{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=ot(t);let i=!0,o=t;if(!ze(t)||!Vs(String(r)))do i=!Ks(o)||Lr(o);while(i&&(o=o.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=le(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Lt(this._raw[this._key])){const r=this._object[this._key];if(Lt(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return cg(this._raw,this._key)}}class Bg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Lg(e,t,r){return Lt(e)?e:qe(e)?new Bg(e):mt(e)&&arguments.length>1?$g(e,t,r):J(e)}function $g(e,t,r){return new Eg(e,t,r)}class Dg{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new hu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ia-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&bt!==this)return df(this,!0),!0}get value(){const t=this.dep.track();return mf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Fg(e,t,r=!1){let n,i;return qe(e)?n=e:(n=e.get,i=e.set),new Dg(n,i,r)}const $a={},ys=new WeakMap;let wi;function Ig(e,t=!1,r=wi){if(r){let n=ys.get(r);n||ys.set(r,n=[]),n.push(e)}}function Og(e,t,r=pt){const{immediate:n,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=r,c=b=>i?b:Lr(b)||i===!1||i===0?Sn(b,1):Sn(b);let u,h,f,d,p=!1,m=!1;if(Lt(e)?(h=()=>e.value,p=Lr(e)):li(e)?(h=()=>c(e),p=!0):ze(e)?(m=!0,p=e.some(b=>li(b)||Lr(b)),h=()=>e.map(b=>{if(Lt(b))return b.value;if(li(b))return c(b);if(qe(b))return l?l(b,2):b()})):qe(e)?t?h=l?()=>l(e,2):e:h=()=>{if(f){Bn();try{f()}finally{Ln()}}const b=wi;wi=u;try{return l?l(e,3,[d]):e(d)}finally{wi=b}}:h=un,t&&i){const b=h,v=i===!0?1/0:i;h=()=>Sn(b(),v)}const y=cf(),C=()=>{u.stop(),y&&y.active&&au(y.effects,u)};if(o&&t){const b=t;t=(...v)=>{b(...v),C()}}let x=m?new Array(e.length).fill($a):$a;const g=b=>{if(!(!(u.flags&1)||!u.dirty&&!b))if(t){const v=u.run();if(i||p||(m?v.some((A,w)=>Mn(A,x[w])):Mn(v,x))){f&&f();const A=wi;wi=u;try{const w=[v,x===$a?void 0:m&&x[0]===$a?[]:x,d];x=v,l?l(t,3,w):t(...w)}finally{wi=A}}}else u.run()};return s&&s(g),u=new uf(h),u.scheduler=a?()=>a(g,!1):g,d=b=>Ig(b,!1,u),f=u.onStop=()=>{const b=ys.get(u);if(b){if(l)l(b,4);else for(const v of b)v();ys.delete(u)}},t?n?g(!0):x=u.run():a?a(g.bind(null,!0),!0):u.run(),C.pause=u.pause.bind(u),C.resume=u.resume.bind(u),C.stop=C,C}function Sn(e,t=1/0,r){if(t<=0||!mt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Lt(e))Sn(e.value,t,r);else if(ze(e))for(let n=0;n<e.length;n++)Sn(e[n],t,r);else if(Qd(e)||co(e))e.forEach(n=>{Sn(n,t,r)});else if(tf(e)){for(const n in e)Sn(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Sn(e[n],t,r)}return e}function wa(e,t,r,n){try{return n?e(...n):e()}catch(i){Lo(i,t,r)}}function Yr(e,t,r,n){if(qe(e)){const i=wa(e,t,r,n);return i&&Jd(i)&&i.catch(o=>{Lo(o,t,r)}),i}if(ze(e)){const i=[];for(let o=0;o<e.length;o++)i.push(Yr(e[o],t,r,n));return i}}function Lo(e,t,r,n=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||pt;if(t){let s=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${r}`;for(;s;){const u=s.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,l,c)===!1)return}s=s.parent}if(o){Bn(),wa(o,null,10,[e,l,c]),Ln();return}}Rg(e,r,i,n,a)}function Rg(e,t,r,n=!0,i=!1){if(i)throw e;console.error(e)}const cr=[];let rn=-1;const ho=[];let Jn=null,eo=0;const Tf=Promise.resolve();let bs=null;function at(e){const t=bs||Tf;return e?t.then(this?e.bind(this):e):t}function Ng(e){let t=rn+1,r=cr.length;for(;t<r;){const n=t+r>>>1,i=cr[n],o=aa(i);o<e||o===e&&i.flags&2?t=n+1:r=n}return t}function pu(e){if(!(e.flags&1)){const t=aa(e),r=cr[cr.length-1];!r||!(e.flags&2)&&t>=aa(r)?cr.push(e):cr.splice(Ng(t),0,e),e.flags|=1,Mf()}}function Mf(){bs||(bs=Tf.then(Af))}function pc(e){ze(e)?ho.push(...e):Jn&&e.id===-1?Jn.splice(eo+1,0,e):e.flags&1||(ho.push(e),e.flags|=1),Mf()}function ch(e,t,r=rn+1){for(;r<cr.length;r++){const n=cr[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;cr.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function vs(e){if(ho.length){const t=[...new Set(ho)].sort((r,n)=>aa(r)-aa(n));if(ho.length=0,Jn){Jn.push(...t);return}for(Jn=t,eo=0;eo<Jn.length;eo++){const r=Jn[eo];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Jn=null,eo=0}}const aa=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Af(e){try{for(rn=0;rn<cr.length;rn++){const t=cr[rn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),wa(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;rn<cr.length;rn++){const t=cr[rn];t&&(t.flags&=-2)}rn=-1,cr.length=0,vs(),bs=null,(cr.length||ho.length)&&Af()}}let Wt=null,Ef=null;function xs(e){const t=Wt;return Wt=e,Ef=e&&e.type.__scopeId||null,t}function Zr(e,t=Wt,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&Ss(-1);const o=xs(t);let a;try{a=e(...i)}finally{xs(o),n._d&&Ss(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Dn(e,t){if(Wt===null)return e;const r=nl(Wt),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,a,s,l=pt]=t[i];o&&(qe(o)&&(o={mounted:o,updated:o}),o.deep&&Sn(a),n.push({dir:o,instance:r,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function on(e,t,r,n){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[n];l&&(Bn(),Yr(l,r,8,[e.el,s,e,t]),Ln())}}function Yo(e,t){if(jt){let r=jt.provides;const n=jt.parent&&jt.parent.provides;n===r&&(r=jt.provides=Object.create(n)),r[e]=t}}function $r(e,t,r=!1){const n=zn();if(n||Ai){let i=Ai?Ai._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return r&&qe(t)?t.call(n&&n.proxy):t}}function Qs(){return!!(zn()||Ai)}const zg=Symbol.for("v-scx"),Pg=()=>$r(zg);function qg(e,t){return mu(e,null,t)}function Ne(e,t,r){return mu(e,t,r)}function mu(e,t,r=pt){const{immediate:n,deep:i,flush:o,once:a}=r,s=$t({},r),l=t&&n||!t&&o!=="post";let c;if(To){if(o==="sync"){const d=Pg();c=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=un,d.resume=un,d.pause=un,d}}const u=jt;s.call=(d,p,m)=>Yr(d,u,p,m);let h=!1;o==="post"?s.scheduler=d=>{At(d,u&&u.suspense)}:o!=="sync"&&(h=!0,s.scheduler=(d,p)=>{p?d():pu(d)}),s.augmentJob=d=>{t&&(d.flags|=4),h&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const f=Og(e,t,s);return To&&(c?c.push(f):l&&f()),f}function Hg(e,t,r){const n=this.proxy,i=xt(e)?e.includes(".")?Bf(n,e):()=>n[e]:e.bind(n,n);let o;qe(t)?o=t:(o=t.handler,r=t);const a=Ca(this),s=mu(i,o.bind(n),r);return a(),s}function Bf(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}const Lf=Symbol("_vte"),$f=e=>e.__isTeleport,Xo=e=>e&&(e.disabled||e.disabled===""),uh=e=>e&&(e.defer||e.defer===""),hh=e=>typeof SVGElement<"u"&&e instanceof SVGElement,dh=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,mc=(e,t)=>{const r=e&&e.to;return xt(r)?t?t(r):null:r},Df={name:"Teleport",__isTeleport:!0,process(e,t,r,n,i,o,a,s,l,c){const{mc:u,pc:h,pbc:f,o:{insert:d,querySelector:p,createText:m,createComment:y}}=c,C=Xo(t.props);let{shapeFlag:x,children:g,dynamicChildren:b}=t;if(e==null){const v=t.el=m(""),A=t.anchor=m("");d(v,r,n),d(A,r,n);const w=(S,_)=>{x&16&&u(g,S,_,i,o,a,s,l)},T=()=>{const S=t.target=mc(t.props,p),_=Ff(S,t,m,d);S&&(a!=="svg"&&hh(S)?a="svg":a!=="mathml"&&dh(S)&&(a="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(S),C||(w(S,_),rs(t,!1)))};C&&(w(r,A),rs(t,!0)),uh(t.props)?(t.el.__isMounted=!1,At(()=>{T(),delete t.el.__isMounted},o)):T()}else{if(uh(t.props)&&e.el.__isMounted===!1){At(()=>{Df.process(e,t,r,n,i,o,a,s,l,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const v=t.anchor=e.anchor,A=t.target=e.target,w=t.targetAnchor=e.targetAnchor,T=Xo(e.props),S=T?r:A,_=T?v:w;if(a==="svg"||hh(A)?a="svg":(a==="mathml"||dh(A))&&(a="mathml"),b?(f(e.dynamicChildren,b,S,i,o,a,s),wu(e,t,!0)):l||h(e,t,S,_,i,o,a,s,!1),C)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Da(t,r,v,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=mc(t.props,p);B&&Da(t,B,null,c,0)}else T&&Da(t,A,w,c,1);rs(t,C)}},remove(e,t,r,{um:n,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:h,props:f}=e;if(h&&(i(c),i(u)),o&&i(l),a&16){const d=o||!Xo(f);for(let p=0;p<s.length;p++){const m=s[p];n(m,t,r,d,!!m.dynamicChildren)}}},move:Da,hydrate:jg};function Da(e,t,r,{o:{insert:n},m:i},o=2){o===0&&n(e.targetAnchor,t,r);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,h=o===2;if(h&&n(a,t,r),(!h||Xo(u))&&l&16)for(let f=0;f<c.length;f++)i(c[f],t,r,2);h&&n(s,t,r)}function jg(e,t,r,n,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:c,createText:u}},h){function f(m,y,C,x){y.anchor=h(a(m),y,s(m),r,n,i,o),y.targetStart=C,y.targetAnchor=x}const d=t.target=mc(t.props,l),p=Xo(t.props);if(d){const m=d._lpa||d.firstChild;if(t.shapeFlag&16)if(p)f(e,t,m,m&&a(m));else{t.anchor=a(e);let y=m;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,d._lpa=t.targetAnchor&&a(t.targetAnchor);break}}y=a(y)}t.targetAnchor||Ff(d,t,u,c),h(m&&a(m),t,d,r,n,i,o)}rs(t,p)}else p&&t.shapeFlag&16&&f(e,t,e,a(e));return t.anchor&&a(t.anchor)}const Js=Df;function rs(e,t){const r=e.ctx;if(r&&r.ut){let n,i;for(t?(n=e.el,i=e.anchor):(n=e.targetStart,i=e.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function Ff(e,t,r,n){const i=t.targetStart=r(""),o=t.targetAnchor=r("");return i[Lf]=o,e&&(n(i,e),n(o,e)),o}const _n=Symbol("_leaveCb"),Fa=Symbol("_enterCb");function If(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qr(()=>{e.isMounted=!0}),nr(()=>{e.isUnmounting=!0}),e}const Or=[Function,Array],Of={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Or,onEnter:Or,onAfterEnter:Or,onEnterCancelled:Or,onBeforeLeave:Or,onLeave:Or,onAfterLeave:Or,onLeaveCancelled:Or,onBeforeAppear:Or,onAppear:Or,onAfterAppear:Or,onAppearCancelled:Or},Rf=e=>{const t=e.subTree;return t.component?Rf(t.component):t},Wg={name:"BaseTransition",props:Of,setup(e,{slots:t}){const r=zn(),n=If();return()=>{const i=t.default&&gu(t.default(),!0);if(!i||!i.length)return;const o=Nf(i),a=ot(e),{mode:s}=a;if(n.isLeaving)return kl(o);const l=fh(o);if(!l)return kl(o);let c=sa(l,a,n,r,h=>c=h);l.type!==Et&&ci(l,c);let u=r.subTree&&fh(r.subTree);if(u&&u.type!==Et&&!qr(u,l)&&Rf(r).type!==Et){let h=sa(u,a,n,r);if(ci(u,h),s==="out-in"&&l.type!==Et)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete h.afterLeave,u=void 0},kl(o);s==="in-out"&&l.type!==Et?h.delayLeave=(f,d,p)=>{const m=zf(n,u);m[String(u.key)]=u,f[_n]=()=>{d(),f[_n]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function Nf(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==Et){t=r;break}}return t}const Vg=Wg;function zf(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function sa(e,t,r,n,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:h,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:y,onAppear:C,onAfterAppear:x,onAppearCancelled:g}=t,b=String(e.key),v=zf(r,e),A=(S,_)=>{S&&Yr(S,n,9,_)},w=(S,_)=>{const B=_[1];A(S,_),ze(S)?S.every(E=>E.length<=1)&&B():S.length<=1&&B()},T={mode:a,persisted:s,beforeEnter(S){let _=l;if(!r.isMounted)if(o)_=y||l;else return;S[_n]&&S[_n](!0);const B=v[b];B&&qr(e,B)&&B.el[_n]&&B.el[_n](),A(_,[S])},enter(S){let _=c,B=u,E=h;if(!r.isMounted)if(o)_=C||c,B=x||u,E=g||h;else return;let I=!1;const W=S[Fa]=F=>{I||(I=!0,F?A(E,[S]):A(B,[S]),T.delayedLeave&&T.delayedLeave(),S[Fa]=void 0)};_?w(_,[S,W]):W()},leave(S,_){const B=String(e.key);if(S[Fa]&&S[Fa](!0),r.isUnmounting)return _();A(f,[S]);let E=!1;const I=S[_n]=W=>{E||(E=!0,_(),W?A(m,[S]):A(p,[S]),S[_n]=void 0,v[B]===e&&delete v[B])};v[B]=e,d?w(d,[S,I]):I()},clone(S){const _=sa(S,t,r,n,i);return i&&i(_),_}};return T}function kl(e){if(ka(e))return e=Fn(e),e.children=null,e}function fh(e){if(!ka(e))return $f(e.type)&&e.children?Nf(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&qe(r.default))return r.default()}}function ci(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ci(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gu(e,t=!1,r){let n=[],i=0;for(let o=0;o<e.length;o++){let a=e[o];const s=r==null?a.key:String(r)+String(a.key!=null?a.key:o);a.type===Ke?(a.patchFlag&128&&i++,n=n.concat(gu(a.children,t,s))):(t||a.type!==Et)&&n.push(s!=null?Fn(a,{key:s}):a)}if(i>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}function Ve(e,t){return qe(e)?$t({name:e.name},t,{setup:e}):e}function yu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const ws=new WeakMap;function fo(e,t,r,n,i=!1){if(ze(e)){e.forEach((p,m)=>fo(p,t&&(ze(t)?t[m]:t),r,n,i));return}if(An(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&fo(e,t,r,n.component.subTree);return}const o=n.shapeFlag&4?nl(n.component):n.el,a=i?null:o,{i:s,r:l}=e,c=t&&t.r,u=s.refs===pt?s.refs={}:s.refs,h=s.setupState,f=ot(h),d=h===pt?Zd:p=>ct(f,p);if(c!=null&&c!==l){if(ph(t),xt(c))u[c]=null,d(c)&&(h[c]=null);else if(Lt(c)){c.value=null;const p=t;p.k&&(u[p.k]=null)}}if(qe(l))wa(l,s,12,[a,u]);else{const p=xt(l),m=Lt(l);if(p||m){const y=()=>{if(e.f){const C=p?d(l)?h[l]:u[l]:l.value;if(i)ze(C)&&au(C,o);else if(ze(C))C.includes(o)||C.push(o);else if(p)u[l]=[o],d(l)&&(h[l]=u[l]);else{const x=[o];l.value=x,e.k&&(u[e.k]=x)}}else p?(u[l]=a,d(l)&&(h[l]=a)):m&&(l.value=a,e.k&&(u[e.k]=a))};if(a){const C=()=>{y(),ws.delete(e)};C.id=-1,ws.set(e,C),At(C,r)}else ph(e),y()}}}function ph(e){const t=ws.get(e);t&&(t.flags|=8,ws.delete(e))}let mh=!1;const Ki=()=>{mh||(console.error("Hydration completed but contains mismatches."),mh=!0)},Ug=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Gg=e=>e.namespaceURI.includes("MathML"),Ia=e=>{if(e.nodeType===1){if(Ug(e))return"svg";if(Gg(e))return"mathml"}},oo=e=>e.nodeType===8;function Yg(e){const{mt:t,p:r,o:{patchProp:n,createText:i,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:c}}=e,u=(g,b)=>{if(!b.hasChildNodes()){r(null,g,b),vs(),b._vnode=g;return}h(b.firstChild,g,null,null,null),vs(),b._vnode=g},h=(g,b,v,A,w,T=!1)=>{T=T||!!b.dynamicChildren;const S=oo(g)&&g.data==="[",_=()=>m(g,b,v,A,w,S),{type:B,ref:E,shapeFlag:I,patchFlag:W}=b;let F=g.nodeType;b.el=g,W===-2&&(T=!1,b.dynamicChildren=null);let D=null;switch(B){case Ei:F!==3?b.children===""?(l(b.el=i(""),a(g),g),D=g):D=_():(g.data!==b.children&&(Ki(),g.data=b.children),D=o(g));break;case Et:x(g)?(D=o(g),C(b.el=g.content.firstChild,g,v)):F!==8||S?D=_():D=o(g);break;case ns:if(S&&(g=o(g),F=g.nodeType),F===1||F===3){D=g;const R=!b.children.length;for(let z=0;z<b.staticCount;z++)R&&(b.children+=D.nodeType===1?D.outerHTML:D.data),z===b.staticCount-1&&(b.anchor=D),D=o(D);return S?o(D):D}else _();break;case Ke:S?D=p(g,b,v,A,w,T):D=_();break;default:if(I&1)(F!==1||b.type.toLowerCase()!==g.tagName.toLowerCase())&&!x(g)?D=_():D=f(g,b,v,A,w,T);else if(I&6){b.slotScopeIds=w;const R=a(g);if(S?D=y(g):oo(g)&&g.data==="teleport start"?D=y(g,g.data,"teleport end"):D=o(g),t(b,R,null,v,A,Ia(R),T),An(b)&&!b.type.__asyncResolved){let z;S?(z=tt(Ke),z.anchor=D?D.previousSibling:R.lastChild):z=g.nodeType===3?pp(""):tt("div"),z.el=g,b.component.subTree=z}}else I&64?F!==8?D=_():D=b.type.hydrate(g,b,v,A,w,T,e,d):I&128&&(D=b.type.hydrate(g,b,v,A,Ia(a(g)),w,T,e,h))}return E!=null&&fo(E,null,A,b),D},f=(g,b,v,A,w,T)=>{T=T||!!b.dynamicChildren;const{type:S,props:_,patchFlag:B,shapeFlag:E,dirs:I,transition:W}=b,F=S==="input"||S==="option";if(F||B!==-1){I&&on(b,null,v,"created");let D=!1;if(x(g)){D=ap(null,W)&&v&&v.vnode.props&&v.vnode.props.appear;const z=g.content.firstChild;if(D){const V=z.getAttribute("class");V&&(z.$cls=V),W.beforeEnter(z)}C(z,g,v),b.el=g=z}if(E&16&&!(_&&(_.innerHTML||_.textContent))){let z=d(g.firstChild,b,g,v,A,w,T);for(;z;){Oa(g,1)||Ki();const V=z;z=z.nextSibling,s(V)}}else if(E&8){let z=b.children;z[0]===`
|
|
3
3
|
`&&(g.tagName==="PRE"||g.tagName==="TEXTAREA")&&(z=z.slice(1));const{textContent:V}=g;V!==z&&V!==z.replace(/\r\n|\r/g,`
|
|
4
|
-
`)&&(Oa(g,0)||Ki(),g.textContent=b.children)}if(_){if(F||!T||B&48){const z=g.tagName.includes("-");for(const V in _)(F&&(V.endsWith("value")||V==="indeterminate")||va(V)&&!Ti(V)||V[0]==="."||z&&!Ti(V))&&n(g,V,null,_[V],void 0,v)}else if(_.onClick)n(g,"onClick",null,_.onClick,void 0,v);else if(B&4&&li(_.style))for(const z in _.style)_.style[z]}let R;(R=_&&_.onVnodeBeforeMount)&&wr(R,v,b),I&&on(b,null,v,"beforeMount"),((R=_&&_.onVnodeMounted)||I||D)&&up(()=>{R&&wr(R,v,b),D&&W.enter(g),I&&on(b,null,v,"mounted")},A)}return g.nextSibling},d=(g,b,v,A,w,T,S)=>{S=S||!!b.dynamicChildren;const _=b.children,B=_.length;for(let E=0;E<B;E++){const I=S?_[E]:_[E]=Ar(_[E]),W=I.type===Ei;g?(W&&!S&&E+1<B&&Ar(_[E+1]).type===Ei&&(l(i(g.data.slice(I.children.length)),v,o(g)),g.data=I.children),g=h(g,I,A,w,T,S)):W&&!I.children?l(I.el=i(""),v):(Oa(v,1)||Ki(),r(null,I,v,null,A,w,Ia(v),T))}return g},p=(g,b,v,A,w,T)=>{const{slotScopeIds:S}=b;S&&(w=w?w.concat(S):S);const _=a(g),B=d(o(g),b,_,v,A,w,T);return B&&oo(B)&&B.data==="]"?o(b.anchor=B):(Ki(),l(b.anchor=c("]"),_,B),B)},m=(g,b,v,A,w,T)=>{if(Oa(g.parentElement,1)||Ki(),b.el=null,T){const B=y(g);for(;;){const E=o(g);if(E&&E!==B)s(E);else break}}const S=o(g),_=a(g);return s(g),r(null,b,_,S,v,A,Ia(_),w),v&&(v.vnode.el=b.el,rl(v,b.el)),S},y=(g,b="[",v="]")=>{let A=0;for(;g;)if(g=o(g),g&&oo(g)&&(g.data===b&&A++,g.data===v)){if(A===0)return o(g);A--}return g},C=(g,b,v)=>{const A=b.parentNode;A&&A.replaceChild(g,b);let w=v;for(;w;)w.vnode.el===b&&(w.vnode.el=w.subTree.el=g),w=w.parent},x=g=>g.nodeType===1&&g.tagName==="TEMPLATE";return[u,h]}const gh="data-allow-mismatch",Xg={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Oa(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(gh);)e=e.parentElement;const r=e&&e.getAttribute(gh);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:n.includes(Xg[t])}}Ys().requestIdleCallback;Ys().cancelIdleCallback;function Kg(e,t){if(oo(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(oo(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const An=e=>!!e.type.__asyncLoader;function Wr(e){qe(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:i=200,hydrate:o,timeout:a,suspensible:s=!0,onError:l}=e;let c=null,u,h=0;const f=()=>(h++,c=null,d()),d=()=>{let p;return c||(p=c=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((y,C)=>{l(m,()=>y(f()),()=>C(m),h+1)});throw m}).then(m=>p!==c&&c?c:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),u=m,m)))};return Ve({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(p,m,y){let C=!1;(m.bu||(m.bu=[])).push(()=>C=!0);const x=()=>{C||y()},g=o?()=>{const b=o(x,v=>Kg(p,v));b&&(m.bum||(m.bum=[])).push(b)}:x;u?g():d().then(()=>!m.isUnmounted&&g())},get __asyncResolved(){return u},setup(){const p=jt;if(yu(p),u)return()=>Ra(u,p);const m=g=>{c=null,Lo(g,p,13,!n)};if(s&&p.suspense||To)return d().then(g=>()=>Ra(g,p)).catch(g=>(m(g),()=>n?tt(n,{error:g}):null));const y=J(!1),C=J(),x=J(!!i);return i&&setTimeout(()=>{x.value=!1},i),a!=null&&setTimeout(()=>{if(!y.value&&!C.value){const g=new Error(`Async component timed out after ${a}ms.`);m(g),C.value=g}},a),d().then(()=>{y.value=!0,p.parent&&ka(p.parent.vnode)&&p.parent.update()}).catch(g=>{m(g),C.value=g}),()=>{if(y.value&&u)return Ra(u,p);if(C.value&&n)return tt(n,{error:C.value});if(r&&!x.value)return Ra(r,p)}}})}function Ra(e,t){const{ref:r,props:n,children:i,ce:o}=t.vnode,a=tt(e,n,i);return a.ref=r,a.ce=o,delete t.vnode.ce,a}const ka=e=>e.type.__isKeepAlive,Zg={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=zn(),n=r.ctx;if(!n.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const i=new Map,o=new Set;let a=null;const s=r.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:h}}}=n,f=h("div");n.activate=(x,g,b,v,A)=>{const w=x.component;c(x,g,b,0,s),l(w.vnode,x,g,b,w,s,v,x.slotScopeIds,A),At(()=>{w.isDeactivated=!1,w.a&&uo(w.a);const T=x.props&&x.props.onVnodeMounted;T&&wr(T,w.parent,x)},s)},n.deactivate=x=>{const g=x.component;_s(g.m),_s(g.a),c(x,f,null,1,s),At(()=>{g.da&&uo(g.da);const b=x.props&&x.props.onVnodeUnmounted;b&&wr(b,g.parent,x),g.isDeactivated=!0},s)};function d(x){_l(x),u(x,r,s,!0)}function p(x){i.forEach((g,b)=>{const v=_c(An(g)?g.type.__asyncResolved||{}:g.type);v&&!x(v)&&m(b)})}function m(x){const g=i.get(x);g&&(!a||!qr(g,a))?d(g):a&&_l(a),i.delete(x),o.delete(x)}Ne(()=>[e.include,e.exclude],([x,g])=>{x&&p(b=>Wo(x,b)),g&&p(b=>!Wo(g,b))},{flush:"post",deep:!0});let y=null;const C=()=>{y!=null&&(Cs(r.subTree.type)?At(()=>{i.set(y,Na(r.subTree))},r.subTree.suspense):i.set(y,Na(r.subTree)))};return Qr(C),bu(C),nr(()=>{i.forEach(x=>{const{subTree:g,suspense:b}=r,v=Na(g);if(x.type===v.type&&x.key===v.key){_l(v);const A=v.component.da;A&&At(A,b);return}d(x)})}),()=>{if(y=null,!t.default)return a=null;const x=t.default(),g=x[0];if(x.length>1)return a=null,x;if(!zi(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return a=null,g;let b=Na(g);if(b.type===Et)return a=null,b;const v=b.type,A=_c(An(b)?b.type.__asyncResolved||{}:v),{include:w,exclude:T,max:S}=e;if(w&&(!A||!Wo(w,A))||T&&A&&Wo(T,A))return b.shapeFlag&=-257,a=b,g;const _=b.key==null?v:b.key,B=i.get(_);return b.el&&(b=Fn(b),g.shapeFlag&128&&(g.ssContent=b)),y=_,B?(b.el=B.el,b.component=B.component,b.transition&&ci(b,b.transition),b.shapeFlag|=512,o.delete(_),o.add(_)):(o.add(_),S&&o.size>parseInt(S,10)&&m(o.values().next().value)),b.shapeFlag|=256,a=b,Cs(g.type)?g:b}}},A9=Zg;function Wo(e,t){return ze(e)?e.some(r=>Wo(r,t)):xt(e)?e.split(",").includes(t):Km(e)?(e.lastIndex=0,e.test(t)):!1}function Pf(e,t){Hf(e,"a",t)}function qf(e,t){Hf(e,"da",t)}function Hf(e,t,r=jt){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(el(t,n,r),r){let i=r.parent;for(;i&&i.parent;)ka(i.parent.vnode)&&Qg(n,t,r,i),i=i.parent}}function Qg(e,t,r,n){const i=el(t,e,n,!0);_a(()=>{au(n[t],i)},r)}function _l(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Na(e){return e.shapeFlag&128?e.ssContent:e}function el(e,t,r=jt,n=!1){if(r){const i=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Bn();const s=Ca(r),l=Yr(t,r,e,a);return s(),Ln(),l});return n?i.unshift(o):i.push(o),o}}const Nn=e=>(t,r=jt)=>{(!To||e==="sp")&&el(e,(...n)=>t(...n),r)},Jg=Nn("bm"),Qr=Nn("m"),e2=Nn("bu"),bu=Nn("u"),nr=Nn("bum"),_a=Nn("um"),t2=Nn("sp"),r2=Nn("rtg"),n2=Nn("rtc");function i2(e,t=jt){el("ec",e,t)}const jf="components";function yh(e,t){return Vf(jf,e,!0,t)||e}const Wf=Symbol.for("v-ndc");function rr(e){return xt(e)?Vf(jf,e,!1)||e:e||Wf}function Vf(e,t,r=!0,n=!1){const i=Wt||jt;if(i){const o=i.type;{const s=_c(o,!1);if(s&&(s===t||s===Rr(t)||s===Gs(Rr(t))))return o}const a=bh(i[e]||o[e],t)||bh(i.appContext[e],t);return!a&&n?o:a}}function bh(e,t){return e&&(e[t]||e[Rr(t)]||e[Gs(Rr(t))])}function Vt(e,t,r,n){let i;const o=r&&r[n],a=ze(e);if(a||xt(e)){const s=a&&li(e);let l=!1,c=!1;s&&(l=!Lr(e),c=$n(e),e=Xs(e)),i=new Array(e.length);for(let u=0,h=e.length;u<h;u++)i[u]=t(l?c?So(Gr(e[u])):Gr(e[u]):e[u],u,void 0,o&&o[u])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,o&&o[s])}else if(mt(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,c=s.length;l<c;l++){const u=s[l];i[l]=t(e[u],u,l,o&&o[l])}}else i=[];return r&&(r[n]=i),i}function Ut(e,t,r={},n,i){if(Wt.ce||Wt.parent&&An(Wt.parent)&&Wt.parent.ce){const c=Object.keys(r).length>0;return t!=="default"&&(r.name=t),j(),ht(Ke,null,[tt("slot",r,n&&n())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),j();const a=o&&Uf(o(r)),s=r.key||a&&a.key,l=ht(Ke,{key:(s&&!Rn(s)?s:`_${t}`)+(!a&&n?"_fb":"")},a||(n?n():[]),a&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Uf(e){return e.some(t=>zi(t)?!(t.type===Et||t.type===Ke&&!Uf(t.children)):!0)?e:null}function vh(e,t){const r={};for(const n in e)r[/[A-Z]/.test(n)?`on:${n}`:ts(n)]=e[n];return r}const gc=e=>e?mp(e)?nl(e):gc(e.parent):null,Ko=$t(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gc(e.parent),$root:e=>gc(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Yf(e),$forceUpdate:e=>e.f||(e.f=()=>{pu(e.update)}),$nextTick:e=>e.n||(e.n=at.bind(e.proxy)),$watch:e=>Hg.bind(e)}),Cl=(e,t)=>e!==pt&&!e.__isScriptSetup&&ct(e,t),o2={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:o,accessCache:a,type:s,appContext:l}=e;if(t[0]!=="$"){const f=a[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return o[t]}else{if(Cl(n,t))return a[t]=1,n[t];if(i!==pt&&ct(i,t))return a[t]=2,i[t];if(ct(o,t))return a[t]=3,o[t];if(r!==pt&&ct(r,t))return a[t]=4,r[t];yc&&(a[t]=0)}}const c=Ko[t];let u,h;if(c)return t==="$attrs"&&Xt(e.attrs,"get",""),c(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(r!==pt&&ct(r,t))return a[t]=4,r[t];if(h=l.config.globalProperties,ct(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:o}=e;return Cl(i,t)?(i[t]=r,!0):n!==pt&&ct(n,t)?(n[t]=r,!0):ct(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,props:o,type:a}},s){let l;return!!(r[s]||e!==pt&&s[0]!=="$"&&ct(e,s)||Cl(t,s)||ct(o,s)||ct(n,s)||ct(Ko,s)||ct(i.config.globalProperties,s)||(l=a.__cssModules)&&l[s])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ct(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function a2(){return s2().attrs}function s2(e){const t=zn();return t.setupContext||(t.setupContext=yp(t))}function xh(e){return ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let yc=!0;function l2(e){const t=Yf(e),r=e.proxy,n=e.ctx;yc=!1,t.beforeCreate&&wh(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:d,updated:p,activated:m,deactivated:y,beforeDestroy:C,beforeUnmount:x,destroyed:g,unmounted:b,render:v,renderTracked:A,renderTriggered:w,errorCaptured:T,serverPrefetch:S,expose:_,inheritAttrs:B,components:E,directives:I,filters:W}=t;if(c&&c2(c,n,null),a)for(const R in a){const z=a[R];qe(z)&&(n[R]=z.bind(r))}if(i){const R=i.call(r,r);mt(R)&&(e.data=ln(R))}if(yc=!0,o)for(const R in o){const z=o[R],V=qe(z)?z.bind(r,r):qe(z.get)?z.get.bind(r,r):un,re=!qe(z)&&qe(z.set)?z.set.bind(r):un,de=ue({get:V,set:re});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>de.value,set:Ce=>de.value=Ce})}if(s)for(const R in s)Gf(s[R],n,r,R);if(l){const R=qe(l)?l.call(r):l;Reflect.ownKeys(R).forEach(z=>{Yo(z,R[z])})}u&&wh(u,e,"c");function D(R,z){ze(z)?z.forEach(V=>R(V.bind(r))):z&&R(z.bind(r))}if(D(Jg,h),D(Qr,f),D(e2,d),D(bu,p),D(Pf,m),D(qf,y),D(i2,T),D(n2,A),D(r2,w),D(nr,x),D(_a,b),D(t2,S),ze(_))if(_.length){const R=e.exposed||(e.exposed={});_.forEach(z=>{Object.defineProperty(R,z,{get:()=>r[z],set:V=>r[z]=V,enumerable:!0})})}else e.exposed||(e.exposed={});v&&e.render===un&&(e.render=v),B!=null&&(e.inheritAttrs=B),E&&(e.components=E),I&&(e.directives=I),S&&yu(e)}function c2(e,t,r=un){ze(e)&&(e=bc(e));for(const n in e){const i=e[n];let o;mt(i)?"default"in i?o=$r(i.from||n,i.default,!0):o=$r(i.from||n):o=$r(i),Lt(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[n]=o}}function wh(e,t,r){Yr(ze(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Gf(e,t,r,n){let i=n.includes(".")?Bf(r,n):()=>r[n];if(xt(e)){const o=t[e];qe(o)&&Ne(i,o)}else if(qe(e))Ne(i,e.bind(r));else if(mt(e))if(ze(e))e.forEach(o=>Gf(o,t,r,n));else{const o=qe(e.handler)?e.handler.bind(r):t[e.handler];qe(o)&&Ne(i,o,e)}}function Yf(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(c=>ks(l,c,a,!0)),ks(l,t,a)),mt(t)&&o.set(t,l),l}function ks(e,t,r,n=!1){const{mixins:i,extends:o}=t;o&&ks(e,o,r,!0),i&&i.forEach(a=>ks(e,a,r,!0));for(const a in t)if(!(n&&a==="expose")){const s=u2[a]||r&&r[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const u2={data:kh,props:_h,emits:_h,methods:Vo,computed:Vo,beforeCreate:ar,created:ar,beforeMount:ar,mounted:ar,beforeUpdate:ar,updated:ar,beforeDestroy:ar,beforeUnmount:ar,destroyed:ar,unmounted:ar,activated:ar,deactivated:ar,errorCaptured:ar,serverPrefetch:ar,components:Vo,directives:Vo,watch:d2,provide:kh,inject:h2};function kh(e,t){return t?e?function(){return $t(qe(e)?e.call(this,this):e,qe(t)?t.call(this,this):t)}:t:e}function h2(e,t){return Vo(bc(e),bc(t))}function bc(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function ar(e,t){return e?[...new Set([].concat(e,t))]:t}function Vo(e,t){return e?$t(Object.create(null),e,t):t}function _h(e,t){return e?ze(e)&&ze(t)?[...new Set([...e,...t])]:$t(Object.create(null),xh(e),xh(t??{})):t}function d2(e,t){if(!e)return t;if(!t)return e;const r=$t(Object.create(null),e);for(const n in t)r[n]=ar(e[n],t[n]);return r}function Xf(){return{app:null,config:{isNativeTag:Zd,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let f2=0;function p2(e,t){return function(n,i=null){qe(n)||(n=$t({},n)),i!=null&&!mt(i)&&(i=null);const o=Xf(),a=new WeakSet,s=[];let l=!1;const c=o.app={_uid:f2++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:U2,get config(){return o.config},set config(u){},use(u,...h){return a.has(u)||(u&&qe(u.install)?(a.add(u),u.install(c,...h)):qe(u)&&(a.add(u),u(c,...h))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,h){return h?(o.components[u]=h,c):o.components[u]},directive(u,h){return h?(o.directives[u]=h,c):o.directives[u]},mount(u,h,f){if(!l){const d=c._ceVNode||tt(n,i);return d.appContext=o,f===!0?f="svg":f===!1&&(f=void 0),h&&t?t(d,u):e(d,u,f),l=!0,c._container=u,u.__vue_app__=c,nl(d.component)}},onUnmount(u){s.push(u)},unmount(){l&&(Yr(s,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return o.provides[u]=h,c},runWithContext(u){const h=Ai;Ai=c;try{return u()}finally{Ai=h}}};return c}}let Ai=null;const m2=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Rr(t)}Modifiers`]||e[`${ui(t)}Modifiers`];function g2(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||pt;let i=r;const o=t.startsWith("update:"),a=o&&m2(n,t.slice(7));a&&(a.trim&&(i=r.map(u=>xt(u)?u.trim():u)),a.number&&(i=r.map(su)));let s,l=n[s=ts(t)]||n[s=ts(Rr(t))];!l&&o&&(l=n[s=ts(ui(t))]),l&&Yr(l,e,6,i);const c=n[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Yr(c,e,6,i)}}const y2=new WeakMap;function Kf(e,t,r=!1){const n=r?y2:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let a={},s=!1;if(!qe(e)){const l=c=>{const u=Kf(c,t,!0);u&&(s=!0,$t(a,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(mt(e)&&n.set(e,null),null):(ze(o)?o.forEach(l=>a[l]=null):$t(a,o),mt(e)&&n.set(e,a),a)}function tl(e,t){return!e||!va(t)?!1:(t=t.slice(2).replace(/Once$/,""),ct(e,t[0].toLowerCase()+t.slice(1))||ct(e,ui(t))||ct(e,t))}function Sl(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:h,data:f,setupState:d,ctx:p,inheritAttrs:m}=e,y=xs(e);let C,x;try{if(r.shapeFlag&4){const b=i||n,v=b;C=Ar(c.call(v,b,u,h,d,f,p)),x=s}else{const b=t;C=Ar(b.length>1?b(h,{attrs:s,slots:a,emit:l}):b(h,null)),x=t.props?s:v2(s)}}catch(b){Zo.length=0,Lo(b,e,1),C=tt(Et)}let g=C;if(x&&m!==!1){const b=Object.keys(x),{shapeFlag:v}=g;b.length&&v&7&&(o&&b.some(ou)&&(x=x2(x,o)),g=Fn(g,x,!1,!0))}return r.dirs&&(g=Fn(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(r.dirs):r.dirs),r.transition&&ci(g,r.transition),C=g,xs(y),C}function b2(e,t=!0){let r;for(let n=0;n<e.length;n++){const i=e[n];if(zi(i)){if(i.type!==Et||i.children==="v-if"){if(r)return;r=i}}else return}return r}const v2=e=>{let t;for(const r in e)(r==="class"||r==="style"||va(r))&&((t||(t={}))[r]=e[r]);return t},x2=(e,t)=>{const r={};for(const n in e)(!ou(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function w2(e,t,r){const{props:n,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Ch(n,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(a[f]!==n[f]&&!tl(c,f))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===a?!1:n?a?Ch(n,a,c):!0:!!a;return!1}function Ch(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const o=n[i];if(t[o]!==e[o]&&!tl(r,o))return!0}return!1}function rl({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const Zf={},Qf=()=>Object.create(Zf),Jf=e=>Object.getPrototypeOf(e)===Zf;function k2(e,t,r,n=!1){const i={},o=Qf();e.propsDefaults=Object.create(null),ep(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);r?e.props=n?i:io(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function _2(e,t,r,n){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=ot(i),[l]=e.propsOptions;let c=!1;if((n||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(tl(e.emitsOptions,f))continue;const d=t[f];if(l)if(ct(o,f))d!==o[f]&&(o[f]=d,c=!0);else{const p=Rr(f);i[p]=vc(l,s,p,d,e,!1)}else d!==o[f]&&(o[f]=d,c=!0)}}}else{ep(e,t,i,o)&&(c=!0);let u;for(const h in s)(!t||!ct(t,h)&&((u=ui(h))===h||!ct(t,u)))&&(l?r&&(r[h]!==void 0||r[u]!==void 0)&&(i[h]=vc(l,s,h,void 0,e,!0)):delete i[h]);if(o!==s)for(const h in o)(!t||!ct(t,h))&&(delete o[h],c=!0)}c&&Cn(e.attrs,"set","")}function ep(e,t,r,n){const[i,o]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(Ti(l))continue;const c=t[l];let u;i&&ct(i,u=Rr(l))?!o||!o.includes(u)?r[u]=c:(s||(s={}))[u]=c:tl(e.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,a=!0)}if(o){const l=ot(r),c=s||pt;for(let u=0;u<o.length;u++){const h=o[u];r[h]=vc(i,l,h,c[h],e,!ct(c,h))}}return a}function vc(e,t,r,n,i,o){const a=e[r];if(a!=null){const s=ct(a,"default");if(s&&n===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&qe(l)){const{propsDefaults:c}=i;if(r in c)n=c[r];else{const u=Ca(i);n=c[r]=l.call(null,t),u()}}else n=l;i.ce&&i.ce._setProp(r,n)}a[0]&&(o&&!s?n=!1:a[1]&&(n===""||n===ui(r))&&(n=!0))}return n}const C2=new WeakMap;function tp(e,t,r=!1){const n=r?C2:t.propsCache,i=n.get(e);if(i)return i;const o=e.props,a={},s=[];let l=!1;if(!qe(e)){const u=h=>{l=!0;const[f,d]=tp(h,t,!0);$t(a,f),d&&s.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return mt(e)&&n.set(e,lo),lo;if(ze(o))for(let u=0;u<o.length;u++){const h=Rr(o[u]);Sh(h)&&(a[h]=pt)}else if(o)for(const u in o){const h=Rr(u);if(Sh(h)){const f=o[u],d=a[h]=ze(f)||qe(f)?{type:f}:$t({},f),p=d.type;let m=!1,y=!0;if(ze(p))for(let C=0;C<p.length;++C){const x=p[C],g=qe(x)&&x.name;if(g==="Boolean"){m=!0;break}else g==="String"&&(y=!1)}else m=qe(p)&&p.name==="Boolean";d[0]=m,d[1]=y,(m||ct(d,"default"))&&s.push(h)}}const c=[a,s];return mt(e)&&n.set(e,c),c}function Sh(e){return e[0]!=="$"&&!Ti(e)}const vu=e=>e==="_"||e==="_ctx"||e==="$stable",xu=e=>ze(e)?e.map(Ar):[Ar(e)],S2=(e,t,r)=>{if(t._n)return t;const n=Zr((...i)=>xu(t(...i)),r);return n._c=!1,n},rp=(e,t,r)=>{const n=e._ctx;for(const i in e){if(vu(i))continue;const o=e[i];if(qe(o))t[i]=S2(i,o,n);else if(o!=null){const a=xu(o);t[i]=()=>a}}},np=(e,t)=>{const r=xu(t);e.slots.default=()=>r},ip=(e,t,r)=>{for(const n in t)(r||!vu(n))&&(e[n]=t[n])},T2=(e,t,r)=>{const n=e.slots=Qf();if(e.vnode.shapeFlag&32){const i=t._;i?(ip(n,t,r),r&&rf(n,"_",i,!0)):rp(t,n)}else t&&np(e,t)},M2=(e,t,r)=>{const{vnode:n,slots:i}=e;let o=!0,a=pt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?o=!1:ip(i,t,r):(o=!t.$stable,rp(t,i)),a=t}else t&&(np(e,t),a={default:1});if(o)for(const s in i)!vu(s)&&a[s]==null&&delete i[s]},At=up;function A2(e){return op(e)}function E2(e){return op(e,Yg)}function op(e,t){const r=Ys();r.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=un,insertStaticContent:p}=e,m=(k,M,H,te=null,Z=null,Q=null,he=void 0,ge=null,ye=!!M.dynamicChildren)=>{if(k===M)return;k&&!qr(k,M)&&(te=N(k),Ce(k,Z,Q,!0),k=null),M.patchFlag===-2&&(ye=!1,M.dynamicChildren=null);const{type:se,ref:Ie,shapeFlag:ke}=M;switch(se){case Ei:y(k,M,H,te);break;case Et:C(k,M,H,te);break;case ns:k==null&&x(M,H,te,he);break;case Ke:E(k,M,H,te,Z,Q,he,ge,ye);break;default:ke&1?v(k,M,H,te,Z,Q,he,ge,ye):ke&6?I(k,M,H,te,Z,Q,he,ge,ye):(ke&64||ke&128)&&se.process(k,M,H,te,Z,Q,he,ge,ye,Se)}Ie!=null&&Z?fo(Ie,k&&k.ref,Q,M||k,!M):Ie==null&&k&&k.ref!=null&&fo(k.ref,null,Q,k,!0)},y=(k,M,H,te)=>{if(k==null)n(M.el=s(M.children),H,te);else{const Z=M.el=k.el;M.children!==k.children&&c(Z,M.children)}},C=(k,M,H,te)=>{k==null?n(M.el=l(M.children||""),H,te):M.el=k.el},x=(k,M,H,te)=>{[k.el,k.anchor]=p(k.children,M,H,te,k.el,k.anchor)},g=({el:k,anchor:M},H,te)=>{let Z;for(;k&&k!==M;)Z=f(k),n(k,H,te),k=Z;n(M,H,te)},b=({el:k,anchor:M})=>{let H;for(;k&&k!==M;)H=f(k),i(k),k=H;i(M)},v=(k,M,H,te,Z,Q,he,ge,ye)=>{if(M.type==="svg"?he="svg":M.type==="math"&&(he="mathml"),k==null)A(M,H,te,Z,Q,he,ge,ye);else{const se=k.el&&k.el._isVueCE?k.el:null;try{se&&se._beginPatch(),S(k,M,Z,Q,he,ge,ye)}finally{se&&se._endPatch()}}},A=(k,M,H,te,Z,Q,he,ge)=>{let ye,se;const{props:Ie,shapeFlag:ke,transition:Ee,dirs:Te}=k;if(ye=k.el=a(k.type,Q,Ie&&Ie.is,Ie),ke&8?u(ye,k.children):ke&16&&T(k.children,ye,null,te,Z,Tl(k,Q),he,ge),Te&&on(k,null,te,"created"),w(ye,k,k.scopeId,he,te),Ie){for(const He in Ie)He!=="value"&&!Ti(He)&&o(ye,He,null,Ie[He],Q,te);"value"in Ie&&o(ye,"value",null,Ie.value,Q),(se=Ie.onVnodeBeforeMount)&&wr(se,te,k)}Te&&on(k,null,te,"beforeMount");const De=ap(Z,Ee);De&&Ee.beforeEnter(ye),n(ye,M,H),((se=Ie&&Ie.onVnodeMounted)||De||Te)&&At(()=>{se&&wr(se,te,k),De&&Ee.enter(ye),Te&&on(k,null,te,"mounted")},Z)},w=(k,M,H,te,Z)=>{if(H&&d(k,H),te)for(let Q=0;Q<te.length;Q++)d(k,te[Q]);if(Z){let Q=Z.subTree;if(M===Q||Cs(Q.type)&&(Q.ssContent===M||Q.ssFallback===M)){const he=Z.vnode;w(k,he,he.scopeId,he.slotScopeIds,Z.parent)}}},T=(k,M,H,te,Z,Q,he,ge,ye=0)=>{for(let se=ye;se<k.length;se++){const Ie=k[se]=ge?ei(k[se]):Ar(k[se]);m(null,Ie,M,H,te,Z,Q,he,ge)}},S=(k,M,H,te,Z,Q,he)=>{const ge=M.el=k.el;let{patchFlag:ye,dynamicChildren:se,dirs:Ie}=M;ye|=k.patchFlag&16;const ke=k.props||pt,Ee=M.props||pt;let Te;if(H&&mi(H,!1),(Te=Ee.onVnodeBeforeUpdate)&&wr(Te,H,M,k),Ie&&on(M,k,H,"beforeUpdate"),H&&mi(H,!0),(ke.innerHTML&&Ee.innerHTML==null||ke.textContent&&Ee.textContent==null)&&u(ge,""),se?_(k.dynamicChildren,se,ge,H,te,Tl(M,Z),Q):he||z(k,M,ge,null,H,te,Tl(M,Z),Q,!1),ye>0){if(ye&16)B(ge,ke,Ee,H,Z);else if(ye&2&&ke.class!==Ee.class&&o(ge,"class",null,Ee.class,Z),ye&4&&o(ge,"style",ke.style,Ee.style,Z),ye&8){const De=M.dynamicProps;for(let He=0;He<De.length;He++){const Ue=De[He],ft=ke[Ue],ut=Ee[Ue];(ut!==ft||Ue==="value")&&o(ge,Ue,ft,ut,Z,H)}}ye&1&&k.children!==M.children&&u(ge,M.children)}else!he&&se==null&&B(ge,ke,Ee,H,Z);((Te=Ee.onVnodeUpdated)||Ie)&&At(()=>{Te&&wr(Te,H,M,k),Ie&&on(M,k,H,"updated")},te)},_=(k,M,H,te,Z,Q,he)=>{for(let ge=0;ge<M.length;ge++){const ye=k[ge],se=M[ge],Ie=ye.el&&(ye.type===Ke||!qr(ye,se)||ye.shapeFlag&198)?h(ye.el):H;m(ye,se,Ie,null,te,Z,Q,he,!0)}},B=(k,M,H,te,Z)=>{if(M!==H){if(M!==pt)for(const Q in M)!Ti(Q)&&!(Q in H)&&o(k,Q,M[Q],null,Z,te);for(const Q in H){if(Ti(Q))continue;const he=H[Q],ge=M[Q];he!==ge&&Q!=="value"&&o(k,Q,ge,he,Z,te)}"value"in H&&o(k,"value",M.value,H.value,Z)}},E=(k,M,H,te,Z,Q,he,ge,ye)=>{const se=M.el=k?k.el:s(""),Ie=M.anchor=k?k.anchor:s("");let{patchFlag:ke,dynamicChildren:Ee,slotScopeIds:Te}=M;Te&&(ge=ge?ge.concat(Te):Te),k==null?(n(se,H,te),n(Ie,H,te),T(M.children||[],H,Ie,Z,Q,he,ge,ye)):ke>0&&ke&64&&Ee&&k.dynamicChildren&&k.dynamicChildren.length===Ee.length?(_(k.dynamicChildren,Ee,H,Z,Q,he,ge),(M.key!=null||Z&&M===Z.subTree)&&wu(k,M,!0)):z(k,M,H,Ie,Z,Q,he,ge,ye)},I=(k,M,H,te,Z,Q,he,ge,ye)=>{M.slotScopeIds=ge,k==null?M.shapeFlag&512?Z.ctx.activate(M,H,te,he,ye):W(M,H,te,Z,Q,he,ye):F(k,M,ye)},W=(k,M,H,te,Z,Q,he)=>{const ge=k.component=q2(k,te,Z);if(ka(k)&&(ge.ctx.renderer=Se),H2(ge,!1,he),ge.asyncDep){if(Z&&Z.registerDep(ge,D,he),!k.el){const ye=ge.subTree=tt(Et);C(null,ye,M,H),k.placeholder=ye.el}}else D(ge,k,M,H,Z,Q,he)},F=(k,M,H)=>{const te=M.component=k.component;if(w2(k,M,H))if(te.asyncDep&&!te.asyncResolved){R(te,M,H);return}else te.next=M,te.update();else M.el=k.el,te.vnode=M},D=(k,M,H,te,Z,Q,he)=>{const ge=()=>{if(k.isMounted){let{next:ke,bu:Ee,u:Te,parent:De,vnode:He}=k;{const wt=sp(k);if(wt){ke&&(ke.el=He.el,R(k,ke,he)),wt.asyncDep.then(()=>{k.isUnmounted||ge()});return}}let Ue=ke,ft;mi(k,!1),ke?(ke.el=He.el,R(k,ke,he)):ke=He,Ee&&uo(Ee),(ft=ke.props&&ke.props.onVnodeBeforeUpdate)&&wr(ft,De,ke,He),mi(k,!0);const ut=Sl(k),gt=k.subTree;k.subTree=ut,m(gt,ut,h(gt.el),N(gt),k,Z,Q),ke.el=ut.el,Ue===null&&rl(k,ut.el),Te&&At(Te,Z),(ft=ke.props&&ke.props.onVnodeUpdated)&&At(()=>wr(ft,De,ke,He),Z)}else{let ke;const{el:Ee,props:Te}=M,{bm:De,m:He,parent:Ue,root:ft,type:ut}=k,gt=An(M);if(mi(k,!1),De&&uo(De),!gt&&(ke=Te&&Te.onVnodeBeforeMount)&&wr(ke,Ue,M),mi(k,!0),Ee&&K){const wt=()=>{k.subTree=Sl(k),K(Ee,k.subTree,k,Z,null)};gt&&ut.__asyncHydrate?ut.__asyncHydrate(Ee,k,wt):wt()}else{ft.ce&&ft.ce._def.shadowRoot!==!1&&ft.ce._injectChildStyle(ut);const wt=k.subTree=Sl(k);m(null,wt,H,te,k,Z,Q),M.el=wt.el}if(He&&At(He,Z),!gt&&(ke=Te&&Te.onVnodeMounted)){const wt=M;At(()=>wr(ke,Ue,wt),Z)}(M.shapeFlag&256||Ue&&An(Ue.vnode)&&Ue.vnode.shapeFlag&256)&&k.a&&At(k.a,Z),k.isMounted=!0,M=H=te=null}};k.scope.on();const ye=k.effect=new uf(ge);k.scope.off();const se=k.update=ye.run.bind(ye),Ie=k.job=ye.runIfDirty.bind(ye);Ie.i=k,Ie.id=k.uid,ye.scheduler=()=>pu(Ie),mi(k,!0),se()},R=(k,M,H)=>{M.component=k;const te=k.vnode.props;k.vnode=M,k.next=null,_2(k,M.props,te,H),M2(k,M.children,H),Bn(),ch(k),Ln()},z=(k,M,H,te,Z,Q,he,ge,ye=!1)=>{const se=k&&k.children,Ie=k?k.shapeFlag:0,ke=M.children,{patchFlag:Ee,shapeFlag:Te}=M;if(Ee>0){if(Ee&128){re(se,ke,H,te,Z,Q,he,ge,ye);return}else if(Ee&256){V(se,ke,H,te,Z,Q,he,ge,ye);return}}Te&8?(Ie&16&&be(se,Z,Q),ke!==se&&u(H,ke)):Ie&16?Te&16?re(se,ke,H,te,Z,Q,he,ge,ye):be(se,Z,Q,!0):(Ie&8&&u(H,""),Te&16&&T(ke,H,te,Z,Q,he,ge,ye))},V=(k,M,H,te,Z,Q,he,ge,ye)=>{k=k||lo,M=M||lo;const se=k.length,Ie=M.length,ke=Math.min(se,Ie);let Ee;for(Ee=0;Ee<ke;Ee++){const Te=M[Ee]=ye?ei(M[Ee]):Ar(M[Ee]);m(k[Ee],Te,H,null,Z,Q,he,ge,ye)}se>Ie?be(k,Z,Q,!0,!1,ke):T(M,H,te,Z,Q,he,ge,ye,ke)},re=(k,M,H,te,Z,Q,he,ge,ye)=>{let se=0;const Ie=M.length;let ke=k.length-1,Ee=Ie-1;for(;se<=ke&&se<=Ee;){const Te=k[se],De=M[se]=ye?ei(M[se]):Ar(M[se]);if(qr(Te,De))m(Te,De,H,null,Z,Q,he,ge,ye);else break;se++}for(;se<=ke&&se<=Ee;){const Te=k[ke],De=M[Ee]=ye?ei(M[Ee]):Ar(M[Ee]);if(qr(Te,De))m(Te,De,H,null,Z,Q,he,ge,ye);else break;ke--,Ee--}if(se>ke){if(se<=Ee){const Te=Ee+1,De=Te<Ie?M[Te].el:te;for(;se<=Ee;)m(null,M[se]=ye?ei(M[se]):Ar(M[se]),H,De,Z,Q,he,ge,ye),se++}}else if(se>Ee)for(;se<=ke;)Ce(k[se],Z,Q,!0),se++;else{const Te=se,De=se,He=new Map;for(se=De;se<=Ee;se++){const Je=M[se]=ye?ei(M[se]):Ar(M[se]);Je.key!=null&&He.set(Je.key,se)}let Ue,ft=0;const ut=Ee-De+1;let gt=!1,wt=0;const Ot=new Array(ut);for(se=0;se<ut;se++)Ot[se]=0;for(se=Te;se<=ke;se++){const Je=k[se];if(ft>=ut){Ce(Je,Z,Q,!0);continue}let Y;if(Je.key!=null)Y=He.get(Je.key);else for(Ue=De;Ue<=Ee;Ue++)if(Ot[Ue-De]===0&&qr(Je,M[Ue])){Y=Ue;break}Y===void 0?Ce(Je,Z,Q,!0):(Ot[Y-De]=se+1,Y>=wt?wt=Y:gt=!0,m(Je,M[Y],H,null,Z,Q,he,ge,ye),ft++)}const yt=gt?B2(Ot):lo;for(Ue=yt.length-1,se=ut-1;se>=0;se--){const Je=De+se,Y=M[Je],q=M[Je+1],oe=Je+1<Ie?q.el||lp(q):te;Ot[se]===0?m(null,Y,H,oe,Z,Q,he,ge,ye):gt&&(Ue<0||se!==yt[Ue]?de(Y,H,oe,2):Ue--)}}},de=(k,M,H,te,Z=null)=>{const{el:Q,type:he,transition:ge,children:ye,shapeFlag:se}=k;if(se&6){de(k.component.subTree,M,H,te);return}if(se&128){k.suspense.move(M,H,te);return}if(se&64){he.move(k,M,H,Se);return}if(he===Ke){n(Q,M,H);for(let ke=0;ke<ye.length;ke++)de(ye[ke],M,H,te);n(k.anchor,M,H);return}if(he===ns){g(k,M,H);return}if(te!==2&&se&1&&ge)if(te===0)ge.beforeEnter(Q),n(Q,M,H),At(()=>ge.enter(Q),Z);else{const{leave:ke,delayLeave:Ee,afterLeave:Te}=ge,De=()=>{k.ctx.isUnmounted?i(Q):n(Q,M,H)},He=()=>{Q._isLeaving&&Q[_n](!0),ke(Q,()=>{De(),Te&&Te()})};Ee?Ee(Q,De,He):He()}else n(Q,M,H)},Ce=(k,M,H,te=!1,Z=!1)=>{const{type:Q,props:he,ref:ge,children:ye,dynamicChildren:se,shapeFlag:Ie,patchFlag:ke,dirs:Ee,cacheIndex:Te}=k;if(ke===-2&&(Z=!1),ge!=null&&(Bn(),fo(ge,null,H,k,!0),Ln()),Te!=null&&(M.renderCache[Te]=void 0),Ie&256){M.ctx.deactivate(k);return}const De=Ie&1&&Ee,He=!An(k);let Ue;if(He&&(Ue=he&&he.onVnodeBeforeUnmount)&&wr(Ue,M,k),Ie&6)pe(k.component,H,te);else{if(Ie&128){k.suspense.unmount(H,te);return}De&&on(k,null,M,"beforeUnmount"),Ie&64?k.type.remove(k,M,H,Se,te):se&&!se.hasOnce&&(Q!==Ke||ke>0&&ke&64)?be(se,M,H,!1,!0):(Q===Ke&&ke&384||!Z&&Ie&16)&&be(ye,M,H),te&&ce(k)}(He&&(Ue=he&&he.onVnodeUnmounted)||De)&&At(()=>{Ue&&wr(Ue,M,k),De&&on(k,null,M,"unmounted")},H)},ce=k=>{const{type:M,el:H,anchor:te,transition:Z}=k;if(M===Ke){ee(H,te);return}if(M===ns){b(k);return}const Q=()=>{i(H),Z&&!Z.persisted&&Z.afterLeave&&Z.afterLeave()};if(k.shapeFlag&1&&Z&&!Z.persisted){const{leave:he,delayLeave:ge}=Z,ye=()=>he(H,Q);ge?ge(k.el,Q,ye):ye()}else Q()},ee=(k,M)=>{let H;for(;k!==M;)H=f(k),i(k),k=H;i(M)},pe=(k,M,H)=>{const{bum:te,scope:Z,job:Q,subTree:he,um:ge,m:ye,a:se}=k;_s(ye),_s(se),te&&uo(te),Z.stop(),Q&&(Q.flags|=8,Ce(he,k,M,H)),ge&&At(ge,M),At(()=>{k.isUnmounted=!0},M)},be=(k,M,H,te=!1,Z=!1,Q=0)=>{for(let he=Q;he<k.length;he++)Ce(k[he],M,H,te,Z)},N=k=>{if(k.shapeFlag&6)return N(k.component.subTree);if(k.shapeFlag&128)return k.suspense.next();const M=f(k.anchor||k.el),H=M&&M[Lf];return H?f(H):M};let me=!1;const fe=(k,M,H)=>{let te;k==null?M._vnode&&(Ce(M._vnode,null,null,!0),te=M._vnode.component):m(M._vnode||null,k,M,null,null,null,H),M._vnode=k,me||(me=!0,ch(te),vs(),me=!1)},Se={p:m,um:Ce,m:de,r:ce,mt:W,mc:T,pc:z,pbc:_,n:N,o:e};let $e,K;return t&&([$e,K]=t(Se)),{render:fe,hydrate:$e,createApp:p2(fe,$e)}}function Tl({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function mi({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ap(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function wu(e,t,r=!1){const n=e.children,i=t.children;if(ze(n)&&ze(i))for(let o=0;o<n.length;o++){const a=n[o];let s=i[o];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[o]=ei(i[o]),s.el=a.el),!r&&s.patchFlag!==-2&&wu(a,s)),s.type===Ei&&(s.patchFlag!==-1?s.el=a.el:s.__elIndex=o+(e.type===Ke?1:0)),s.type===Et&&!s.el&&(s.el=a.el)}}function B2(e){const t=e.slice(),r=[0];let n,i,o,a,s;const l=e.length;for(n=0;n<l;n++){const c=e[n];if(c!==0){if(i=r[r.length-1],e[i]<c){t[n]=i,r.push(n);continue}for(o=0,a=r.length-1;o<a;)s=o+a>>1,e[r[s]]<c?o=s+1:a=s;c<e[r[o]]&&(o>0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,a=r[o-1];o-- >0;)r[o]=a,a=t[a];return r}function sp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:sp(t)}function _s(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function lp(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?lp(t.subTree):null}const Cs=e=>e.__isSuspense;let xc=0;const L2={name:"Suspense",__isSuspense:!0,process(e,t,r,n,i,o,a,s,l,c){if(e==null)$2(t,r,n,i,o,a,s,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}D2(e,t,r,n,i,a,s,l,c)}},hydrate:F2,normalize:I2},E9=L2;function la(e,t){const r=e.props&&e.props[t];qe(r)&&r()}function $2(e,t,r,n,i,o,a,s,l){const{p:c,o:{createElement:u}}=l,h=u("div"),f=e.suspense=cp(e,i,n,t,h,r,o,a,s,l);c(null,f.pendingBranch=e.ssContent,h,null,n,f,o,a),f.deps>0?(la(e,"onPending"),la(e,"onFallback"),c(null,e.ssFallback,t,r,n,null,o,a),po(f,e.ssFallback)):f.resolve(!1,!0)}function D2(e,t,r,n,i,o,a,s,{p:l,um:c,o:{createElement:u}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const f=t.ssContent,d=t.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:y,isHydrating:C}=h;if(m)h.pendingBranch=f,qr(m,f)?(l(m,f,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0?h.resolve():y&&(C||(l(p,d,r,n,i,null,o,a,s),po(h,d)))):(h.pendingId=xc++,C?(h.isHydrating=!1,h.activeBranch=m):c(m,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=u("div"),y?(l(null,f,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0?h.resolve():(l(p,d,r,n,i,null,o,a,s),po(h,d))):p&&qr(p,f)?(l(p,f,r,n,i,h,o,a,s),h.resolve(!0)):(l(null,f,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0&&h.resolve()));else if(p&&qr(p,f))l(p,f,r,n,i,h,o,a,s),po(h,f);else if(la(t,"onPending"),h.pendingBranch=f,f.shapeFlag&512?h.pendingId=f.component.suspenseId:h.pendingId=xc++,l(null,f,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0)h.resolve();else{const{timeout:x,pendingId:g}=h;x>0?setTimeout(()=>{h.pendingId===g&&h.fallback(d)},x):x===0&&h.fallback(d)}}function cp(e,t,r,n,i,o,a,s,l,c,u=!1){const{p:h,m:f,um:d,n:p,o:{parentNode:m,remove:y}}=c;let C;const x=O2(e);x&&t&&t.pendingBranch&&(C=t.pendingId,t.deps++);const g=e.props?nf(e.props.timeout):void 0,b=o,v={vnode:e,parent:t,parentComponent:r,namespace:a,container:n,hiddenContainer:i,deps:0,pendingId:xc++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(A=!1,w=!1){const{vnode:T,activeBranch:S,pendingBranch:_,pendingId:B,effects:E,parentComponent:I,container:W,isInFallback:F}=v;let D=!1;v.isHydrating?v.isHydrating=!1:A||(D=S&&_.transition&&_.transition.mode==="out-in",D&&(S.transition.afterLeave=()=>{B===v.pendingId&&(f(_,W,o===b?p(S):o,0),pc(E),F&&T.ssFallback&&(T.ssFallback.el=null))}),S&&(m(S.el)===W&&(o=p(S)),d(S,I,v,!0),!D&&F&&T.ssFallback&&At(()=>T.ssFallback.el=null,v)),D||f(_,W,o,0)),po(v,_),v.pendingBranch=null,v.isInFallback=!1;let R=v.parent,z=!1;for(;R;){if(R.pendingBranch){R.effects.push(...E),z=!0;break}R=R.parent}!z&&!D&&pc(E),v.effects=[],x&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!w&&t.resolve()),la(T,"onResolve")},fallback(A){if(!v.pendingBranch)return;const{vnode:w,activeBranch:T,parentComponent:S,container:_,namespace:B}=v;la(w,"onFallback");const E=p(T),I=()=>{v.isInFallback&&(h(null,A,_,E,S,null,B,s,l),po(v,A))},W=A.transition&&A.transition.mode==="out-in";W&&(T.transition.afterLeave=I),v.isInFallback=!0,d(T,S,null,!0),W||I()},move(A,w,T){v.activeBranch&&f(v.activeBranch,A,w,T),v.container=A},next(){return v.activeBranch&&p(v.activeBranch)},registerDep(A,w,T){const S=!!v.pendingBranch;S&&v.deps++;const _=A.vnode.el;A.asyncDep.catch(B=>{Lo(B,A,0)}).then(B=>{if(A.isUnmounted||v.isUnmounted||v.pendingId!==A.suspenseId)return;A.asyncResolved=!0;const{vnode:E}=A;kc(A,B),_&&(E.el=_);const I=!_&&A.subTree.el;w(A,E,m(_||A.subTree.el),_?null:p(A.subTree),v,a,T),I&&(E.placeholder=null,y(I)),rl(A,E.el),S&&--v.deps===0&&v.resolve()})},unmount(A,w){v.isUnmounted=!0,v.activeBranch&&d(v.activeBranch,r,A,w),v.pendingBranch&&d(v.pendingBranch,r,A,w)}};return v}function F2(e,t,r,n,i,o,a,s,l){const c=t.suspense=cp(t,n,r,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),u=l(e,c.pendingBranch=t.ssContent,r,c,o,a);return c.deps===0&&c.resolve(!1,!0),u}function I2(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=Th(n?r.default:r),e.ssFallback=n?Th(r.fallback):tt(Et)}function Th(e){let t;if(qe(e)){const r=Ni&&e._c;r&&(e._d=!1,j()),e=e(),r&&(e._d=!0,t=Kt,hp())}return ze(e)&&(e=b2(e)),e=Ar(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function up(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):pc(e)}function po(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;r.el=i,n&&n.subTree===r&&(n.vnode.el=i,rl(n,i))}function O2(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ke=Symbol.for("v-fgt"),Ei=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),ns=Symbol.for("v-stc"),Zo=[];let Kt=null;function j(e=!1){Zo.push(Kt=e?null:[])}function hp(){Zo.pop(),Kt=Zo[Zo.length-1]||null}let Ni=1;function Ss(e,t=!1){Ni+=e,e<0&&Kt&&t&&(Kt.hasOnce=!0)}function dp(e){return e.dynamicChildren=Ni>0?Kt||lo:null,hp(),Ni>0&&Kt&&Kt.push(e),e}function G(e,t,r,n,i,o){return dp(L(e,t,r,n,i,o,!0))}function ht(e,t,r,n,i){return dp(tt(e,t,r,n,i,!0))}function zi(e){return e?e.__v_isVNode===!0:!1}function qr(e,t){return e.type===t.type&&e.key===t.key}const fp=({key:e})=>e??null,is=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?xt(e)||Lt(e)||qe(e)?{i:Wt,r:e,k:t,f:!!r}:e:null);function L(e,t=null,r=null,n=0,i=null,o=e===Ke?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fp(t),ref:t&&is(t),scopeId:Ef,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Wt};return s?(ku(l,r),o&128&&e.normalize(l)):r&&(l.shapeFlag|=xt(r)?8:16),Ni>0&&!a&&Kt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Kt.push(l),l}const tt=R2;function R2(e,t=null,r=null,n=0,i=null,o=!1){if((!e||e===Wf)&&(e=Et),zi(e)){const s=Fn(e,t,!0);return r&&ku(s,r),Ni>0&&!o&&Kt&&(s.shapeFlag&6?Kt[Kt.indexOf(e)]=s:Kt.push(s)),s.patchFlag=-2,s}if(V2(e)&&(e=e.__vccOpts),t){t=N2(t);let{class:s,style:l}=t;s&&!xt(s)&&(t.class=Ae(s)),mt(l)&&(Ks(l)&&!ze(l)&&(l=$t({},l)),t.style=St(l))}const a=xt(e)?1:Cs(e)?128:$f(e)?64:mt(e)?4:qe(e)?2:0;return L(e,t,r,n,i,a,o,!0)}function N2(e){return e?Ks(e)||Jf(e)?$t({},e):e:null}function Fn(e,t,r=!1,n=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,c=t?Xr(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&fp(c),ref:t&&t.ref?r&&o?ze(o)?o.concat(is(t)):[o,is(t)]:is(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fn(e.ssContent),ssFallback:e.ssFallback&&Fn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&ci(u,l.clone(u)),u}function pp(e=" ",t=0){return tt(Ei,null,e,t)}function Qe(e="",t=!1){return t?(j(),ht(Et,null,e)):tt(Et,null,e)}function Ar(e){return e==null||typeof e=="boolean"?tt(Et):ze(e)?tt(Ke,null,e.slice()):zi(e)?ei(e):tt(Ei,null,String(e))}function ei(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Fn(e)}function ku(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ze(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),ku(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!Jf(t)?t._ctx=Wt:i===3&&Wt&&(Wt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else qe(t)?(t={default:t,_ctx:Wt},r=32):(t=String(t),n&64?(r=16,t=[pp(t)]):r=8);e.children=t,e.shapeFlag|=r}function Xr(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Ae([t.class,n.class]));else if(i==="style")t.style=St([t.style,n.style]);else if(va(i)){const o=t[i],a=n[i];a&&o!==a&&!(ze(o)&&o.includes(a))&&(t[i]=o?[].concat(o,a):a)}else i!==""&&(t[i]=n[i])}return t}function wr(e,t,r,n=null){Yr(e,t,7,[r,n])}const z2=Xf();let P2=0;function q2(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||z2,o={uid:P2++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new lf(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:tp(n,i),emitsOptions:Kf(n,i),emit:null,emitted:null,propsDefaults:pt,inheritAttrs:n.inheritAttrs,ctx:pt,data:pt,props:pt,attrs:pt,slots:pt,refs:pt,setupState:pt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=g2.bind(null,o),e.ce&&e.ce(o),o}let jt=null;const zn=()=>jt||Wt;let Ts,wc;{const e=Ys(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};Ts=t("__VUE_INSTANCE_SETTERS__",r=>jt=r),wc=t("__VUE_SSR_SETTERS__",r=>To=r)}const Ca=e=>{const t=jt;return Ts(e),e.scope.on(),()=>{e.scope.off(),Ts(t)}},Mh=()=>{jt&&jt.scope.off(),Ts(null)};function mp(e){return e.vnode.shapeFlag&4}let To=!1;function H2(e,t=!1,r=!1){t&&wc(t);const{props:n,children:i}=e.vnode,o=mp(e);k2(e,n,o,t),T2(e,i,r||t);const a=o?j2(e,t):void 0;return t&&wc(!1),a}function j2(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,o2);const{setup:n}=r;if(n){Bn();const i=e.setupContext=n.length>1?yp(e):null,o=Ca(e),a=wa(n,e,0,[e.props,i]),s=Jd(a);if(Ln(),o(),(s||e.sp)&&!An(e)&&yu(e),s){if(a.then(Mh,Mh),t)return a.then(l=>{kc(e,l)}).catch(l=>{Lo(l,e,0)});e.asyncDep=a}else kc(e,a)}else gp(e)}function kc(e,t,r){qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:mt(t)&&(e.setupState=Sf(t)),gp(e)}function gp(e,t,r){const n=e.type;e.render||(e.render=n.render||un);{const i=Ca(e);Bn();try{l2(e)}finally{Ln(),i()}}}const W2={get(e,t){return Xt(e,"get",""),e[t]}};function yp(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,W2),slots:e.slots,emit:e.emit,expose:t}}function nl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Sf(fc(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ko)return Ko[r](e)},has(t,r){return r in t||r in Ko}})):e.proxy}function _c(e,t=!0){return qe(e)?e.displayName||e.name:e.name||t&&e.__name}function V2(e){return qe(e)&&"__vccOpts"in e}const ue=(e,t)=>Fg(e,t,To);function Nr(e,t,r){try{Ss(-1);const n=arguments.length;return n===2?mt(t)&&!ze(t)?zi(t)?tt(e,null,[t]):tt(e,t):tt(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&zi(r)&&(r=[r]),tt(e,t,r))}finally{Ss(1)}}function $o(e,t,r,n){const i=r[n];if(i&&il(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=n,r[n]=o}function il(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n<r.length;n++)if(Mn(r[n],t[n]))return!1;return Ni>0&&Kt&&Kt.push(e),!0}const U2="3.5.27";let Cc;const Ah=typeof window<"u"&&window.trustedTypes;if(Ah)try{Cc=Ah.createPolicy("vue",{createHTML:e=>e})}catch{}const bp=Cc?e=>Cc.createHTML(e):e=>e,G2="http://www.w3.org/2000/svg",Y2="http://www.w3.org/1998/Math/MathML",kn=typeof document<"u"?document:null,Eh=kn&&kn.createElement("template"),X2={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?kn.createElementNS(G2,e):t==="mathml"?kn.createElementNS(Y2,e):r?kn.createElement(e,{is:r}):kn.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>kn.createTextNode(e),createComment:e=>kn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>kn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,o){const a=r?r.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===o||!(i=i.nextSibling)););else{Eh.innerHTML=bp(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const s=Eh.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[a?a.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Xn="transition",zo="animation",Mo=Symbol("_vtc"),vp={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},xp=$t({},Of,vp),K2=e=>(e.displayName="Transition",e.props=xp,e),Pn=K2((e,{slots:t})=>Nr(Vg,wp(e),t)),gi=(e,t=[])=>{ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},Bh=e=>e?ze(e)?e.some(t=>t.length>1):e.length>1:!1;function wp(e){const t={};for(const E in e)E in vp||(t[E]=e[E]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:o=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=o,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:h=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:d=`${r}-leave-to`}=e,p=Z2(i),m=p&&p[0],y=p&&p[1],{onBeforeEnter:C,onEnter:x,onEnterCancelled:g,onLeave:b,onLeaveCancelled:v,onBeforeAppear:A=C,onAppear:w=x,onAppearCancelled:T=g}=t,S=(E,I,W,F)=>{E._enterCancelled=F,Zn(E,I?u:s),Zn(E,I?c:a),W&&W()},_=(E,I)=>{E._isLeaving=!1,Zn(E,h),Zn(E,d),Zn(E,f),I&&I()},B=E=>(I,W)=>{const F=E?w:x,D=()=>S(I,E,W);gi(F,[I,D]),Lh(()=>{Zn(I,E?l:o),tn(I,E?u:s),Bh(F)||$h(I,n,m,D)})};return $t(t,{onBeforeEnter(E){gi(C,[E]),tn(E,o),tn(E,a)},onBeforeAppear(E){gi(A,[E]),tn(E,l),tn(E,c)},onEnter:B(!1),onAppear:B(!0),onLeave(E,I){E._isLeaving=!0;const W=()=>_(E,I);tn(E,h),E._enterCancelled?(tn(E,f),Sc(E)):(Sc(E),tn(E,f)),Lh(()=>{E._isLeaving&&(Zn(E,h),tn(E,d),Bh(b)||$h(E,n,y,W))}),gi(b,[E,W])},onEnterCancelled(E){S(E,!1,void 0,!0),gi(g,[E])},onAppearCancelled(E){S(E,!0,void 0,!0),gi(T,[E])},onLeaveCancelled(E){_(E),gi(v,[E])}})}function Z2(e){if(e==null)return null;if(mt(e))return[Ml(e.enter),Ml(e.leave)];{const t=Ml(e);return[t,t]}}function Ml(e){return nf(e)}function tn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Mo]||(e[Mo]=new Set)).add(t)}function Zn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Mo];r&&(r.delete(t),r.size||(e[Mo]=void 0))}function Lh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Q2=0;function $h(e,t,r,n){const i=e._endId=++Q2,o=()=>{i===e._endId&&n()};if(r!=null)return setTimeout(o,r);const{type:a,timeout:s,propCount:l}=kp(e,t);if(!a)return n();const c=a+"end";let u=0;const h=()=>{e.removeEventListener(c,f),o()},f=d=>{d.target===e&&++u>=l&&h()};setTimeout(()=>{u<l&&h()},s+1),e.addEventListener(c,f)}function kp(e,t){const r=window.getComputedStyle(e),n=p=>(r[p]||"").split(", "),i=n(`${Xn}Delay`),o=n(`${Xn}Duration`),a=Dh(i,o),s=n(`${zo}Delay`),l=n(`${zo}Duration`),c=Dh(s,l);let u=null,h=0,f=0;t===Xn?a>0&&(u=Xn,h=a,f=o.length):t===zo?c>0&&(u=zo,h=c,f=l.length):(h=Math.max(a,c),u=h>0?a>c?Xn:zo:null,f=u?u===Xn?o.length:l.length:0);const d=u===Xn&&/\b(?:transform|all)(?:,|$)/.test(n(`${Xn}Property`).toString());return{type:u,timeout:h,propCount:f,hasTransform:d}}function Dh(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>Fh(r)+Fh(e[n])))}function Fh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(e){return(e?e.ownerDocument:document).body.offsetHeight}function J2(e,t,r){const n=e[Mo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Ms=Symbol("_vod"),_p=Symbol("_vsh"),In={name:"show",beforeMount(e,{value:t},{transition:r}){e[Ms]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Po(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Po(e,!0),n.enter(e)):n.leave(e,()=>{Po(e,!1)}):Po(e,t))},beforeUnmount(e,{value:t}){Po(e,t)}};function Po(e,t){e.style.display=t?e[Ms]:"none",e[_p]=!t}const ey=Symbol(""),ty=/(?:^|;)\s*display\s*:/;function ry(e,t,r){const n=e.style,i=xt(r);let o=!1;if(r&&!i){if(t)if(xt(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();r[s]==null&&os(n,s,"")}else for(const a in t)r[a]==null&&os(n,a,"");for(const a in r)a==="display"&&(o=!0),os(n,a,r[a])}else if(i){if(t!==r){const a=n[ey];a&&(r+=";"+a),n.cssText=r,o=ty.test(r)}}else t&&e.removeAttribute("style");Ms in e&&(e[Ms]=o?n.display:"",e[_p]&&(n.display="none"))}const Ih=/\s*!important$/;function os(e,t,r){if(ze(r))r.forEach(n=>os(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=ny(e,t);Ih.test(r)?e.setProperty(ui(n),r.replace(Ih,""),"important"):e[n]=r}}const Oh=["Webkit","Moz","ms"],Al={};function ny(e,t){const r=Al[t];if(r)return r;let n=Rr(t);if(n!=="filter"&&n in e)return Al[t]=n;n=Gs(n);for(let i=0;i<Oh.length;i++){const o=Oh[i]+n;if(o in e)return Al[t]=o}return t}const Rh="http://www.w3.org/1999/xlink";function Nh(e,t,r,n,i,o=og(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Rh,t.slice(6,t.length)):e.setAttributeNS(Rh,t,r):r==null||o&&!of(r)?e.removeAttribute(t):e.setAttribute(t,o?"":Rn(r)?String(r):r)}function zh(e,t,r,n,i){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?bp(r):r);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const s=o==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(s!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let a=!1;if(r===""||r==null){const s=typeof e[t];s==="boolean"?r=of(r):r==null&&s==="string"?(r="",a=!0):s==="number"&&(r=0,a=!0)}try{e[t]=r}catch{}a&&e.removeAttribute(i||t)}function to(e,t,r,n){e.addEventListener(t,r,n)}function iy(e,t,r,n){e.removeEventListener(t,r,n)}const Ph=Symbol("_vei");function oy(e,t,r,n,i=null){const o=e[Ph]||(e[Ph]={}),a=o[t];if(n&&a)a.value=n;else{const[s,l]=ay(t);if(n){const c=o[t]=cy(n,i);to(e,s,c,l)}else a&&(iy(e,s,a,l),o[t]=void 0)}}const qh=/(?:Once|Passive|Capture)$/;function ay(e){let t;if(qh.test(e)){t={};let n;for(;n=e.match(qh);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ui(e.slice(2)),t]}let El=0;const sy=Promise.resolve(),ly=()=>El||(sy.then(()=>El=0),El=Date.now());function cy(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Yr(uy(n,r.value),t,5,[n])};return r.value=e,r.attached=ly(),r}function uy(e,t){if(ze(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Hh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hy=(e,t,r,n,i,o)=>{const a=i==="svg";t==="class"?J2(e,n,a):t==="style"?ry(e,r,n):va(t)?ou(t)||oy(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dy(e,t,n,a))?(zh(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Nh(e,t,n,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!xt(n))?zh(e,Rr(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Nh(e,t,n,a))};function dy(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Hh(t)&&qe(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Hh(t)&&xt(r)?!1:t in e}const Cp=new WeakMap,Sp=new WeakMap,As=Symbol("_moveCb"),jh=Symbol("_enterCb"),fy=e=>(delete e.props.mode,e),py=fy({name:"TransitionGroup",props:$t({},xp,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=zn(),n=If();let i,o;return bu(()=>{if(!i.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!by(i[0].el,r.vnode.el,a)){i=[];return}i.forEach(my),i.forEach(gy);const s=i.filter(yy);Sc(r.vnode.el),s.forEach(l=>{const c=l.el,u=c.style;tn(c,a),u.transform=u.webkitTransform=u.transitionDuration="";const h=c[As]=f=>{f&&f.target!==c||(!f||f.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",h),c[As]=null,Zn(c,a))};c.addEventListener("transitionend",h)}),i=[]}),()=>{const a=ot(e),s=wp(a);let l=a.tag||Ke;if(i=[],o)for(let c=0;c<o.length;c++){const u=o[c];u.el&&u.el instanceof Element&&(i.push(u),ci(u,sa(u,s,n,r)),Cp.set(u,{left:u.el.offsetLeft,top:u.el.offsetTop}))}o=t.default?gu(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&ci(u,sa(u,s,n,r))}return tt(l,null,o)}}}),B9=py;function my(e){const t=e.el;t[As]&&t[As](),t[jh]&&t[jh]()}function gy(e){Sp.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function yy(e){const t=Cp.get(e),r=Sp.get(e),n=t.left-r.left,i=t.top-r.top;if(n||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${n}px,${i}px)`,o.transitionDuration="0s",e}}function by(e,t,r){const n=e.cloneNode(),i=e[Mo];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(n);const{hasTransform:a}=kp(n);return o.removeChild(n),a}const Wh=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ze(t)?r=>uo(t,r):t};function vy(e){e.target.composing=!0}function Vh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Bl=Symbol("_assign");function Uh(e,t,r){return t&&(e=e.trim()),r&&(e=su(e)),e}const L9={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[Bl]=Wh(i);const o=n||i.props&&i.props.type==="number";to(e,t?"change":"input",a=>{a.target.composing||e[Bl](Uh(e.value,r,o))}),(r||o)&&to(e,"change",()=>{e.value=Uh(e.value,r,o)}),t||(to(e,"compositionstart",vy),to(e,"compositionend",Vh),to(e,"change",Vh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:o}},a){if(e[Bl]=Wh(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?su(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===l)||(e.value=l))}},xy=["ctrl","shift","alt","meta"],wy={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>xy.some(r=>e[`${r}Key`]&&!t.includes(r))},_u=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=((i,...o)=>{for(let a=0;a<t.length;a++){const s=wy[t[a]];if(s&&s(i,t))return}return e(i,...o)}))},ky={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$9=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=(i=>{if(!("key"in i))return;const o=ui(i.key);if(t.some(a=>a===o||ky[a]===o))return e(i)}))},Tp=$t({patchProp:hy},X2);let Qo,Gh=!1;function _y(){return Qo||(Qo=A2(Tp))}function Cy(){return Qo=Gh?Qo:E2(Tp),Gh=!0,Qo}const Sy=((...e)=>{const t=_y().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=Ap(n);if(!i)return;const o=t._component;!qe(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=r(i,!1,Mp(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t}),D9=((...e)=>{const t=Cy().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=Ap(n);if(i)return r(i,!0,Mp(i))},t});function Mp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ap(e){return xt(e)?document.querySelector(e):e}const Ty=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,My=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Ay=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Ey(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){By(e);return}return t}function By(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Ly(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Ay.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Ty.test(e)||My.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Ey)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const $y=/#/g,Dy=/&/g,Fy=/\//g,Iy=/=/g,Cu=/\+/g,Oy=/%5e/gi,Ry=/%60/gi,Ny=/%7c/gi,zy=/%20/gi,Py=/%2f/gi;function qy(e){return encodeURI(""+e).replace(Ny,"|")}function Tc(e){return qy(typeof e=="string"?e:JSON.stringify(e)).replace(Cu,"%2B").replace(zy,"+").replace($y,"%23").replace(Dy,"%26").replace(Ry,"`").replace(Oy,"^").replace(Fy,"%2F")}function Ll(e){return Tc(e).replace(Iy,"%3D")}function ca(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function F9(e){return ca(e.replace(Py,"%252F"))}function Hy(e){return ca(e.replace(Cu," "))}function jy(e){return ca(e.replace(Cu," "))}function Su(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const i=Hy(n[1]);if(i==="__proto__"||i==="constructor")continue;const o=jy(n[2]||"");t[i]===void 0?t[i]=o:Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]}return t}function Wy(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${Ll(e)}=${Tc(r)}`).join("&"):`${Ll(e)}=${Tc(t)}`:Ll(e)}function Vy(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Wy(t,e[t])).filter(Boolean).join("&")}const Uy=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Gy=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Yy=/^([/\\]\s*){2,}[^/\\]/,Xy=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Ky=/\/$|\/\?|\/#/,Zy=/^\.?\//;function Wi(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Uy.test(e):Gy.test(e)||(t.acceptRelative?Yy.test(e):!1)}function Qy(e){return!!e&&Xy.test(e)}function Mc(e="",t){return t?Ky.test(e):e.endsWith("/")}function ua(e="",t){if(!t)return(Mc(e)?e.slice(0,-1):e)||"/";if(!Mc(e,!0))return e||"/";let r=e,n="";const i=e.indexOf("#");i!==-1&&(r=e.slice(0,i),n=e.slice(i));const[o,...a]=r.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(a.length>0?`?${a.join("?")}`:"")+n}function Ep(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Mc(e,!0))return e||"/";let r=e,n="";const i=e.indexOf("#");if(i!==-1&&(r=e.slice(0,i),n=e.slice(i),!r))return n;const[o,...a]=r.split("?");return o+"/"+(a.length>0?`?${a.join("?")}`:"")+n}function I9(e,t){if(Bp(t)||Wi(e))return e;const r=ua(t);if(e.startsWith(r)){const n=e[r.length];if(!n||n==="/"||n==="?")return e}return Tu(r,e)}function O9(e,t){if(Bp(t))return e;const r=ua(t);if(!e.startsWith(r))return e;const n=e[r.length];if(n&&n!=="/"&&n!=="?")return e;const i=e.slice(r.length);return i[0]==="/"?i:"/"+i}function Jy(e,t){const r=Dp(e),n={...Su(r.search),...t};return r.search=Vy(n),t4(r)}function Bp(e){return!e||e==="/"}function e4(e){return e&&e!=="/"}function Tu(e,...t){let r=e||"";for(const n of t.filter(i=>e4(i)))if(r){const i=n.replace(Zy,"");r=Ep(r)+i}else r=n;return r}function Lp(...e){const t=/\/(?!\/)/,r=e.filter(Boolean),n=[];let i=0;for(const a of r)if(!(!a||a==="/")){for(const[s,l]of a.split(t).entries())if(!(!l||l===".")){if(l===".."){if(n.length===1&&Wi(n[0]))continue;n.pop(),i--;continue}if(s===1&&n[n.length-1]?.endsWith(":/")){n[n.length-1]+="/"+l;continue}n.push(l),i++}}let o=n.join("/");return i>=0?r[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:r[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*i)+o,r[r.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function R9(e,t){return ca(ua(e))===ca(ua(t))}const $p=Symbol.for("ufo:protocolRelative");function Dp(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,h,f=""]=r;return{protocol:h.toLowerCase(),pathname:f,href:h+f,auth:"",host:"",search:"",hash:""}}if(!Wi(e,{acceptRelative:!0}))return Yh(e);const[,n="",i,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,a="",s=""]=o.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(s=s.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=Yh(s);return{protocol:n.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:a,pathname:l,search:c,hash:u,[$p]:!n}}function Yh(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function t4(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",i=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[$p]?(e.protocol||"")+"//":"")+i+o+t+r+n}const r4=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Mu=()=>r4().app,N9=()=>Mu().baseURL,n4=()=>Mu().buildAssetsDir,Fp=(...e)=>Lp(Ip(),n4(),...e),Ip=(...e)=>{const t=Mu(),r=t.cdnURL||t.baseURL;return e.length?Lp(r,...e):r};globalThis.__buildAssetsURL=Fp,globalThis.__publicAssetsURL=Ip;function Ac(e,t={},r){for(const n in e){const i=e[n],o=r?`${r}:${n}`:n;typeof i=="object"&&i!==null?Ac(i,t,o):typeof i=="function"&&(t[o]=i)}return t}const i4={run:e=>e()},o4=()=>i4,Op=typeof console.createTask<"u"?console.createTask:o4;function a4(e,t){const r=t.shift(),n=Op(r);return e.reduce((i,o)=>i.then(()=>n.run(()=>o(...t))),Promise.resolve())}function s4(e,t){const r=t.shift(),n=Op(r);return Promise.all(e.map(i=>n.run(()=>i(...t))))}function $l(e,t){for(const r of[...e])r(t)}let l4=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,r,n={}){if(!t||typeof r!="function")return()=>{};const i=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!n.allowDeprecated){let a=o.message;a||(a=`${i} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let n,i=(...o)=>(typeof n=="function"&&n(),n=void 0,i=void 0,r(...o));return n=this.hook(t,i),n}removeHook(t,r){if(this._hooks[t]){const n=this._hooks[t].indexOf(r);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const n=this._hooks[t]||[];delete this._hooks[t];for(const i of n)this.hook(t,i)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=Ac(t),n=Object.keys(r).map(i=>this.hook(i,r[i]));return()=>{for(const i of n.splice(0,n.length))i()}}removeHooks(t){const r=Ac(t);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(a4,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(s4,t,...r)}callHookWith(t,r,...n){const i=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&$l(this._before,i);const o=t(r in this._hooks?[...this._hooks[r]]:[],n);return o instanceof Promise?o.finally(()=>{this._after&&i&&$l(this._after,i)}):(this._after&&i&&$l(this._after,i),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}};function c4(){return new l4}function u4(e={}){let t,r=!1;const n=a=>{if(t&&t!==a)throw new Error("Context conflict")};let i;if(e.asyncContext){const a=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;a?i=new a:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(i){const a=i.getStore();if(a!==void 0)return a}return t};return{use:()=>{const a=o();if(a===void 0)throw new Error("Context is not available");return a},tryUse:()=>o(),set:(a,s)=>{s||n(a),t=a,r=!0},unset:()=>{t=void 0,r=!1},call:(a,s)=>{n(a),t=a;try{return i?i.run(a,s):s()}finally{r||(t=void 0)}},async callAsync(a,s){t=a;const l=()=>{t=a},c=()=>t===a?l:void 0;Ec.add(c);try{const u=i?i.run(a,s):s();return r||(t=void 0),await u}finally{Ec.delete(c)}}}}function h4(e={}){const t={};return{get(r,n={}){return t[r]||(t[r]=u4({...e,...n})),t[r]}}}const Es=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Xh="__unctx__",d4=Es[Xh]||(Es[Xh]=h4()),f4=(e,t={})=>d4.get(e,t),Kh="__unctx_async_handlers__",Ec=Es[Kh]||(Es[Kh]=new Set);function P9(e){const t=[];for(const i of Ec){const o=i();o&&t.push(o)}const r=()=>{for(const i of t)i()};let n=e();return n&&typeof n=="object"&&"catch"in n&&(n=n.catch(i=>{throw r(),i})),[n,r]}const q9=!1,H9=!1,j9={id:"__nuxt-loader"},p4={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},W9="#__nuxt",Rp="nuxt-app",V9=36e5,m4="vite:preloadError";function Np(e=Rp){return f4(e,{asyncContext:!1})}const g4="__nuxt_plugin";function U9(e){let t=0;const r={_id:e.id||Rp||"nuxt-app",_scope:ag(),provide:void 0,versions:{get nuxt(){return"4.3.0"},get vue(){return r.vueApp.version}},payload:io({...e.ssrContext?.payload||{},data:io({}),state:ln({}),once:new Set,_errors:io({})}),static:{data:{}},runWithContext(i){return r._scope.active&&!cf()?r._scope.run(()=>Zh(r,i)):Zh(r,i)},isHydrating:!0,deferHydration(){if(!r.isHydrating)return()=>{};t++;let i=!1;return()=>{if(!i&&(i=!0,t--,t===0))return r.isHydrating=!1,r.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:io({}),_payloadRevivers:{},...e};{const i=window.__NUXT__;if(i)for(const o in i)switch(o){case"data":case"state":case"_errors":Object.assign(r.payload[o],i[o]);break;default:r.payload[o]=i[o]}}r.hooks=c4(),r.hook=r.hooks.hook,r.callHook=r.hooks.callHook,r.provide=(i,o)=>{const a="$"+i;za(r,a,o),za(r.vueApp.config.globalProperties,a,o)},za(r.vueApp,"$nuxt",r),za(r.vueApp.config.globalProperties,"$nuxt",r);{window.addEventListener(m4,o=>{r.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=It;const i=r.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});r.hook("app:mounted",i)}const n=r.payload.config;return r.provide("config",n),r}function y4(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function b4(e,t){if(typeof t=="function"){const{provide:r}=await e.runWithContext(()=>t(e))||{};if(r&&typeof r=="object")for(const n in r)e.provide(n,r[n])}}async function G9(e,t){const r=new Set,n=[],i=[];let o,a=0;async function s(l){const c=l.dependsOn?.filter(u=>t.some(h=>h._name===u)&&!r.has(u))??[];if(c.length>0)n.push([new Set(c),l]);else{const u=b4(e,l).then(async()=>{l._name&&(r.add(l._name),await Promise.all(n.map(async([h,f])=>{h.has(l._name)&&(h.delete(l._name),h.size===0&&(a++,await s(f)))})))}).catch(h=>{if(!l.parallel&&!e.payload.error)throw h;o||=h});l.parallel?i.push(u):await u}}for(const l of t)y4(e,l);for(const l of t)await s(l);if(await Promise.all(i),a)for(let l=0;l<a;l++)await Promise.all(i);if(o)throw e.payload.error||o}function v4(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[g4]:!0,_name:t})}function Zh(e,t,r){const n=()=>t();return Np(e._id).set(e),e.vueApp.runWithContext(n)}function x4(e){let t;return Qs()&&(t=zn()?.appContext.app.$nuxt),t||=Np(e).tryUse(),t||null}function It(e){const t=x4(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Au(e){return It().$config}function za(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function Dl(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Bc(e,t,r=".",n){if(!Dl(t))return Bc(e,{},r,n);const i=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const a=e[o];a!=null&&(n&&n(i,o,a,r)||(Array.isArray(a)&&Array.isArray(i[o])?i[o]=[...a,...i[o]]:Dl(a)&&Dl(i[o])?i[o]=Bc(a,i[o],(r?`${r}.`:"")+o.toString(),n):i[o]=a))}return i}function w4(e){return(...t)=>t.reduce((r,n)=>Bc(r,n,"",e),{})}const k4=w4();function _4(e,t){try{return t in e}catch{return!1}}class Qh extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,r={}){super(t,r),r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const t={message:this.message,statusCode:Lc(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=zp(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function C4(e){if(typeof e=="string")return new Qh(e);if(S4(e))return e;const t=new Qh(e.message??e.statusMessage??"",{cause:e.cause||e});if(_4(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Lc(e.statusCode,t.statusCode):e.status&&(t.statusCode=Lc(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const r=t.statusMessage;zp(t.statusMessage)!==r&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function S4(e){return e?.constructor?.__h3_error__===!0}const T4=/[^\u0009\u0020-\u007E]/g;function zp(e=""){return e.replace(T4,"")}function Lc(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Y9=Symbol("layout-meta"),M4=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Pi=()=>It()?.$router,Pp=()=>Qs()?$r(M4,It()._route):It()._route;function X9(e){return e}const A4=()=>{try{if(It()._processingMiddleware)return!0}catch{return!1}return!1},E4=(e,t)=>{e||="/";const r=typeof e=="string"?e:"path"in e?$c(e):Pi().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=[];for(const[h,f]of Object.entries(c))f!==void 0&&u.push(`${h.toLowerCase()}=${f}`);return open(r,l,u.join(", ")),Promise.resolve()}const n=Wi(r,{acceptRelative:!0}),i=t?.external||n;if(i){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(r,window.location.href);if(l&&Qy(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=A4();if(!i&&o){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:c,hash:u}=Dp(e);return{path:l,...c&&{query:Su(c)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const a=Pi(),s=It();return i?(s._scope.stop(),t?.replace?location.replace(r):location.href=r,o?s.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?a.replace(e):a.push(e)};function $c(e){return Jy(e.path||"",e.query||{})+(e.hash||"")}const qp="__nuxt_error",Hp=()=>Lg(It().payload,"error"),K9=e=>{const t=B4(e);try{const r=Hp();It().hooks.callHook("app:error",t),r.value||=t}catch{throw t}return t},Z9=async(e={})=>{const t=It(),r=Hp();t.callHook("app:error:cleared",e),e.redirect&&await Pi().replace(e.redirect),r.value=void 0},Q9=e=>!!e&&typeof e=="object"&&qp in e,B4=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=C4(e);return Object.defineProperty(t,qp,{value:!0,configurable:!1,writable:!1}),t};function L4(e){const t=D4(e),r=new ArrayBuffer(t.length),n=new DataView(r);for(let i=0;i<r.byteLength;i++)n.setUint8(i,t.charCodeAt(i));return r}const $4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function D4(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",r=0,n=0;for(let i=0;i<e.length;i++)r<<=6,r|=$4.indexOf(e[i]),n+=6,n===24&&(t+=String.fromCharCode((r&16711680)>>16),t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255),r=n=0);return n===12?(r>>=4,t+=String.fromCharCode(r)):n===18&&(r>>=2,t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255)),t}const F4=-1,I4=-2,O4=-3,R4=-4,N4=-5,z4=-6;function P4(e,t){return q4(JSON.parse(e),t)}function q4(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,n=Array(r.length);let i=null;function o(a,s=!1){if(a===F4)return;if(a===O4)return NaN;if(a===R4)return 1/0;if(a===N4)return-1/0;if(a===z4)return-0;if(s||typeof a!="number")throw new Error("Invalid input");if(a in n)return n[a];const l=r[a];if(!l||typeof l!="object")n[a]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const c=l[0],u=t&&Object.hasOwn(t,c)?t[c]:void 0;if(u){let h=l[1];if(typeof h!="number"&&(h=r.push(l[1])-1),i??=new Set,i.has(h))throw new Error("Invalid circular reference");return i.add(h),n[a]=u(o(h)),i.delete(h),n[a]}switch(c){case"Date":n[a]=new Date(l[1]);break;case"Set":const h=new Set;n[a]=h;for(let p=1;p<l.length;p+=1)h.add(o(l[p]));break;case"Map":const f=new Map;n[a]=f;for(let p=1;p<l.length;p+=2)f.set(o(l[p]),o(l[p+1]));break;case"RegExp":n[a]=new RegExp(l[1],l[2]);break;case"Object":n[a]=Object(l[1]);break;case"BigInt":n[a]=BigInt(l[1]);break;case"null":const d=Object.create(null);n[a]=d;for(let p=1;p<l.length;p+=2)d[l[p]]=o(l[p+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{if(r[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const p=globalThis[c],m=o(l[1]),y=new p(m);n[a]=l[2]!==void 0?y.subarray(l[2],l[3]):y;break}case"ArrayBuffer":{const p=l[1];if(typeof p!="string")throw new Error("Invalid ArrayBuffer encoding");const m=L4(p);n[a]=m;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":{const p=c.slice(9);n[a]=Temporal[p].from(l[1]);break}case"URL":{const p=new URL(l[1]);n[a]=p;break}case"URLSearchParams":{const p=new URLSearchParams(l[1]);n[a]=p;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(l.length);n[a]=c;for(let u=0;u<l.length;u+=1){const h=l[u];h!==I4&&(c[u]=o(h))}}else{const c={};n[a]=c;for(const u in l){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const h=l[u];c[u]=o(h)}}return n[a]}return o(0)}const H4=new Set(["link","style","script","noscript"]),j4=new Set(["title","titleTemplate","script","style","noscript"]),J9=new Set(["base","meta","link","style","script","noscript"]),W4=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),V4=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),U4=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),G4=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Y4=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function Dc(e,t={},r){for(const n in e){const i=e[n],o=r?`${r}:${n}`:n;typeof i=="object"&&i!==null?Dc(i,t,o):typeof i=="function"&&(t[o]=i)}return t}const jp=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function Wp(e,t,r,n){for(let i=r;i<e.length;i+=1)try{const o=n?n.run(()=>e[i](...t)):e[i](...t);if(o instanceof Promise)return o.then(()=>Wp(e,t,i+1,n))}catch(o){return Promise.reject(o)}}function X4(e,t,r){if(e.length>0)return Wp(e,t,0,jp(r))}function K4(e,t,r){if(e.length>0){const n=jp(r);return Promise.all(e.map(i=>n.run(()=>i(...t))))}}function Fl(e,t){for(const r of[...e])r(t)}var Z4=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,r={}){if(!e||typeof t!="function")return()=>{};const n=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${n} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let r,n=(...i)=>(typeof r=="function"&&r(),r=void 0,n=void 0,t(...i));return r=this.hook(e,n),r}removeHook(e,t){const r=this._hooks[e];if(r){const n=r.indexOf(t);n!==-1&&r.splice(n,1),r.length===0&&(this._hooks[e]=void 0)}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const r=this._hooks[e]||[];this._hooks[e]=void 0;for(const n of r)this.hook(e,n)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=Dc(e),r=Object.keys(t).map(n=>this.hook(n,t[n]));return()=>{for(const n of r)n();r.length=0}}removeHooks(e){const t=Dc(e);for(const r in t)this.removeHook(r,t[r])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(X4,e,t)}callHookParallel(e,...t){return this.callHookWith(K4,e,t)}callHookWith(e,t,r){const n=this._before||this._after?{name:t,args:r,context:{}}:void 0;this._before&&Fl(this._before,n);const i=e(this._hooks[t]?[...this._hooks[t]]:[],r,t);return i instanceof Promise?i.finally(()=>{this._after&&n&&Fl(this._after,n)}):(this._after&&n&&Fl(this._after,n),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function Q4(){return new Z4}const J4=["name","property","http-equiv"],e5=new Set(["viewport","description","keywords","robots"]);function t5(e){const t=e.split(":");return t.length?Y4.has(t[1]):!1}function Jh(e){const{props:t,tag:r}=e;if(V4.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of J4)if(t[n]!==void 0){const i=t[n],o=i&&typeof i=="string"&&i.includes(":"),a=i&&e5.has(i),l=!(o||a)&&e.key?`:key:${e.key}`:"";return`${r}:${i}${l}`}}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(j4.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function eC(e){const t=e._h||e._d;if(t)return t;const r=e.textContent||e.innerHTML;return r||`${e.tag}:${Object.entries(e.props).map(([n,i])=>`${n}:${String(i)}`).join(",")}`}function Bs(e,t,r){typeof e==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(e=e());const i=t?t(r,e):e;if(Array.isArray(i))return i.map(o=>Bs(o,t));if(i?.constructor===Object){const o={};for(const a of Object.keys(i))o[a]=Bs(i[a],t,a);return o}return i}function r5(e,t){const r=e==="style"?new Map:new Set;function n(i){if(i==null||i===void 0)return;const o=String(i).trim();if(o)if(e==="style"){const[a,...s]=o.split(":").map(l=>l?l.trim():"");a&&s.length&&r.set(a,s.join(":"))}else o.split(" ").filter(Boolean).forEach(a=>r.add(a))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(i=>n(i)):t&&typeof t=="object"&&Object.entries(t).forEach(([i,o])=>{o&&o!=="false"&&(e==="style"?r.set(String(i).trim(),String(o)):n(i))}),r}function n5(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([r,n])=>{if(n===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=r5(r,n);return}if(U4.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let s=t.type;if(t.type||(s="application/json"),!s?.endsWith("json")&&s!=="speculationrules")return;t.type=s,e.props.type=s,e[r]=JSON.stringify(n)}else e[r]=n;return}const i=String(n),o=r.startsWith("data-"),a=e.tag==="meta"&&r==="content";i==="true"||i===""?e.props[r]=o||a?i:!0:!n&&o&&i==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e):e}function i5(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=n5({tag:e,props:{}},r);return n.key&&H4.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(i=>({...n,props:{...n.props,content:i}})):n}function o5(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(i,o)=>{for(let a=0;a<t.length;a++)o=t[a](i,o);return o};e=r(void 0,e);const n=[];return e=Bs(e,r),Object.entries(e||{}).forEach(([i,o])=>{if(o!==void 0)for(const a of Array.isArray(o)?o:[o])n.push(i5(i,a))}),n.flat()}const e0=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,t0={base:-10,title:10},a5={critical:-8,high:-1,low:2},r0={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},s5=/@import/,qo=e=>e===""||e===!0;function l5(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=a5[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:r0;if(t.tag in t0)r=t0[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(r=r0.meta[o])}else if(t.tag==="link"&&t.props.rel)r=i.link[t.props.rel];else if(t.tag==="script"){const o=String(t.props.type);qo(t.props.async)?r=i.script.async:t.props.src&&!qo(t.props.defer)&&!qo(t.props.async)&&o!=="module"&&!o.endsWith("json")||t.innerHTML&&!o.endsWith("json")?r=i.script.sync:(qo(t.props.defer)&&t.props.src&&!qo(t.props.async)||o==="module")&&(r=i.script.defer)}else t.tag==="style"&&(r=t.innerHTML&&s5.test(t.innerHTML)?i.style.imported:i.style.sync);return(r||100)+n}function n0(e,t){const r=typeof t=="function"?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function tC(e={}){const t=Q4();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,i=new Map,o=new Set,a={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:s=>n0(a,s),push(s,l){const c={...l||{}};delete c.head;const u=c._index??a._entryCount++,h={_i:u,input:s,options:c},f={_poll(d=!1){a.dirty=!0,!d&&o.add(u),t.callHook("entries:updated",a)},dispose(){n.delete(u)&&a.invalidate()},patch(d){(!c.mode||c.mode==="server"&&r||c.mode==="client"&&!r)&&(h.input=d,n.set(u,h),f._poll())}};return f.patch(s),f},async resolveTags(){const s={tagMap:new Map,tags:[],entries:[...a.entries.values()]};for(await t.callHook("entries:resolve",s);o.size;){const f=o.values().next().value;o.delete(f);const d=n.get(f);if(d){const p={tags:o5(d.input,e.propResolvers||[]).map(m=>Object.assign(m,d.options)),entry:d};await t.callHook("entries:normalize",p),d._tags=p.tags.map((m,y)=>(m._w=l5(a,m),m._p=(d._i<<10)+y,m._d=Jh(m),m))}}let l=!1;s.entries.flatMap(f=>(f._tags||[]).map(d=>({...d,props:{...d.props}}))).sort(e0).reduce((f,d)=>{const p=String(d._d||d._p);if(!f.has(p))return f.set(p,d);const m=f.get(p);if((d?.tagDuplicateStrategy||(G4.has(d.tag)?"merge":null)||(d.key&&d.key===m.key?"merge":null))==="merge"){const C={...m.props};Object.entries(d.props).forEach(([x,g])=>C[x]=x==="style"?new Map([...m.props.style||new Map,...g]):x==="class"?new Set([...m.props.class||new Set,...g]):g),f.set(p,{...d,props:C})}else d._p>>10===m._p>>10&&d.tag==="meta"&&t5(p)?(f.set(p,Object.assign([...Array.isArray(m)?m:[m],d],d)),l=!0):(d._w===m._w?d._p>m._p:d?._w<m?._w)&&f.set(p,d);return f},s.tagMap);const c=s.tagMap.get("title"),u=s.tagMap.get("titleTemplate");if(a._title=c?.textContent,u){const f=u?.textContent;if(a._titleTemplate=f,f){let d=typeof f=="function"?f(c?.textContent):f;typeof d=="string"&&!a.plugins.has("template-params")&&(d=d.replace("%s",c?.textContent||"")),c?d===null?s.tagMap.delete("title"):s.tagMap.set("title",{...c,textContent:d}):(u.tag="title",u.textContent=d)}}s.tags=Array.from(s.tagMap.values()),l&&(s.tags=s.tags.flat().sort(e0)),await t.callHook("tags:beforeResolve",s),await t.callHook("tags:resolve",s),await t.callHook("tags:afterResolve",s);const h=[];for(const f of s.tags){const{innerHTML:d,tag:p,props:m}=f;if(W4.has(p)&&!(Object.keys(m).length===0&&!f.innerHTML&&!f.textContent)&&!(p==="meta"&&!m.content&&!m["http-equiv"]&&!m.charset)){if(p==="script"&&d){if(String(m.type).endsWith("json")){const y=typeof d=="string"?d:JSON.stringify(d);f.innerHTML=y.replace(/</g,"\\u003C")}else typeof d=="string"&&(f.innerHTML=d.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));f._d=Jh(f)}h.push(f)}}return h},invalidate(){for(const s of n.values())o.add(s._i);a.dirty=!0,t.callHook("entries:updated",a)}};return(e?.plugins||[]).forEach(s=>n0(a,s)),a.hooks.callHook("init",a),e.init?.forEach(s=>s&&a.push(s)),a}const c5=(e,t)=>Lt(t)?Mg(t):t,Eu="usehead";function rC(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(Eu,e)}}.install}function u5(){if(Qs()){const e=$r(Eu);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function h5(e,t={}){const r=t.head||u5();return r.ssr?r.push(e||{},t):d5(r,e,t)}function d5(e,t,r={}){const n=J(!1);let i;return qg(()=>{const a=n.value?{}:Bs(t,c5);i?i.patch(a):i=e.push(a,r)}),zn()&&(nr(()=>{i.dispose()}),qf(()=>{n.value=!0}),Pf(()=>{n.value=!1})),i}function f5(e){const t=e||It();return t.ssrContext?.head||t.runWithContext(()=>{if(Qs()){const r=$r(Eu);if(!r)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return r}})}function nC(e,t={}){const r=t.head||f5(t.nuxt);return h5(e,{head:r,...t})}const p5=(e,t)=>[],m5=e=>k4({},...p5().map(t=>t.data).reverse()),g5=m5;let as;function y5(){return as=$fetch(Fp(`builds/meta/${Au().app.buildId}.json`),{responseType:"json"}),as.catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),as}function b5(){return as||y5()}function Vp(e){const t=typeof e=="string"?e:e.path;try{return g5(t)}catch(r){return console.error("[nuxt] Error matching route rules.",r),{}}}async function iC(e,t={}){if(await w5(e)){const r=await x5(e,t);return await Up(r)||null}return null}const v5="_payload.json";async function x5(e,t={}){const r=new URL(e,"http://localhost");if(r.host!=="localhost"||Wi(r.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const n=Au(),i=t.hash||(t.fresh?Date.now():n.app.buildId),o=n.app.cdnURL,a=o&&await k5(e)?o:n.app.baseURL;return Tu(a,r.pathname,v5+(i?`?${i}`:""))}async function Up(e){const t=fetch(e,{cache:"force-cache"}).then(r=>r.text().then(Xp));try{return await t}catch(r){console.warn("[nuxt] Cannot load payload ",e,r)}return null}function Gp(e){if(e.redirect)return!1;if(e.prerender)return!0}async function Yp(e){return e=e==="/"?e:e.replace(/\/$/,""),(await b5()).prerendered.includes(e)}async function w5(e=Pp().path){const t=Vp({path:e}),r=Gp(t);return r!==void 0?r:t.payload?!0:await Yp(e)}async function k5(e=Pp().path){const t=Gp(Vp({path:e}));return t!==void 0?t:await Yp(e)}let yi=null;async function oC(){if(yi)return yi;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Xp(e.textContent||""),r=e.dataset.src?await Up(e.dataset.src):void 0;return yi={...t,...r,...window.__NUXT__},yi.config?.public&&(yi.config.public=ln(yi.config.public)),yi}async function Xp(e){return await P4(e,It()._payloadRevivers)}function aC(e,t){It()._payloadRevivers[e]=t}const ro=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function _5(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const lt=Object.assign;function Il(e,t){const r={};for(const n in t){const i=t[n];r[n]=Kr(i)?i.map(e):e(i)}return r}const Jo=()=>{},Kr=Array.isArray;function i0(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}const Zp=/#/g,C5=/&/g,S5=/\//g,T5=/=/g,M5=/\?/g,Qp=/\+/g,A5=/%5B/g,E5=/%5D/g,Jp=/%5E/g,B5=/%60/g,e1=/%7B/g,L5=/%7C/g,t1=/%7D/g,$5=/%20/g;function Bu(e){return e==null?"":encodeURI(""+e).replace(L5,"|").replace(A5,"[").replace(E5,"]")}function D5(e){return Bu(e).replace(e1,"{").replace(t1,"}").replace(Jp,"^")}function Fc(e){return Bu(e).replace(Qp,"%2B").replace($5,"+").replace(Zp,"%23").replace(C5,"%26").replace(B5,"`").replace(e1,"{").replace(t1,"}").replace(Jp,"^")}function F5(e){return Fc(e).replace(T5,"%3D")}function I5(e){return Bu(e).replace(Zp,"%23").replace(M5,"%3F")}function O5(e){return I5(e).replace(S5,"%2F")}function ha(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const R5=/\/$/,N5=e=>e.replace(R5,"");function Ol(e,t,r="/"){let n,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return l=s>=0&&l>s?-1:l,l>=0&&(n=t.slice(0,l),o=t.slice(l,s>0?s:t.length),i=e(o.slice(1))),s>=0&&(n=n||t.slice(0,s),a=t.slice(s,t.length)),n=H5(n??t,r),{fullPath:n+o+a,path:n,query:i,hash:ha(a)}}function z5(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function o0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function P5(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Ao(t.matched[n],r.matched[i])&&r1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Ao(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function r1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!q5(e[r],t[r]))return!1;return!0}function q5(e,t){return Kr(e)?a0(e,t):Kr(t)?a0(t,e):e?.valueOf()===t?.valueOf()}function a0(e,t){return Kr(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function H5(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=r.length-1,a,s;for(a=0;a<n.length;a++)if(s=n[a],s!==".")if(s==="..")o>1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(a).join("/")}const nn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ic=(function(e){return e.pop="pop",e.push="push",e})({}),Rl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function j5(e){if(!e)if(ro){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),N5(e)}const W5=/^[^#]+#/;function V5(e,t){return e.replace(W5,"#")+t}function U5(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const ol=()=>({left:window.scrollX,top:window.scrollY});function G5(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=U5(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function s0(e,t){return(history.state?history.state.position-t:-1)+e}const Oc=new Map;function Y5(e,t){Oc.set(e,t)}function X5(e){const t=Oc.get(e);return Oc.delete(e),t}function K5(e){return typeof e=="string"||e&&typeof e=="object"}function n1(e){return typeof e=="string"||typeof e=="symbol"}let kt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const i1=Symbol("");kt.MATCHER_NOT_FOUND+"",kt.NAVIGATION_GUARD_REDIRECT+"",kt.NAVIGATION_ABORTED+"",kt.NAVIGATION_CANCELLED+"",kt.NAVIGATION_DUPLICATED+"";function Eo(e,t){return lt(new Error,{type:e,[i1]:!0},t)}function vn(e,t){return e instanceof Error&&i1 in e&&(t==null||!!(e.type&t))}const Z5=["params","query","hash"];function Q5(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of Z5)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function J5(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<r.length;++n){const i=r[n].replace(Qp," "),o=i.indexOf("="),a=ha(o<0?i:i.slice(0,o)),s=o<0?null:ha(i.slice(o+1));if(a in t){let l=t[a];Kr(l)||(l=t[a]=[l]),l.push(s)}else t[a]=s}return t}function l0(e){let t="";for(let r in e){const n=e[r];if(r=F5(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Kr(n)?n.map(i=>i&&Fc(i)):[n&&Fc(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function eb(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Kr(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const tb=Symbol(""),c0=Symbol(""),Lu=Symbol(""),o1=Symbol(""),Rc=Symbol("");function Ho(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function ti(e,t,r,n,i,o=a=>a()){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const c=f=>{f===!1?l(Eo(kt.NAVIGATION_ABORTED,{from:r,to:t})):f instanceof Error?l(f):K5(f)?l(Eo(kt.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(a&&n.enterCallbacks[i]===a&&typeof f=="function"&&a.push(f),s())},u=o(()=>e.call(n&&n.instances[i],t,r,c));let h=Promise.resolve(u);e.length<3&&(h=h.then(c)),h.catch(f=>l(f))})}function Nl(e,t,r,n,i=o=>o()){const o=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(Kp(l)){const c=(l.__vccOpts||l)[t];c&&o.push(ti(c,r,n,a,s,i))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const h=_5(u)?u.default:u;a.mods[s]=u,a.components[s]=h;const f=(h.__vccOpts||h)[t];return f&&ti(f,r,n,a,s,i)()}))}}return o}function rb(e,t){const r=[],n=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const s=t.matched[a];s&&(e.matched.find(c=>Ao(c,s))?n.push(s):r.push(s));const l=e.matched[a];l&&(t.matched.find(c=>Ao(c,l))||i.push(l))}return[r,n,i]}let nb=()=>location.protocol+"//"+location.host;function a1(e,t){const{pathname:r,search:n,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,s=i.slice(a);return s[0]!=="/"&&(s="/"+s),o0(s,"")}return o0(r,e)+n+i}function ib(e,t,r,n){let i=[],o=[],a=null;const s=({state:f})=>{const d=a1(e,location),p=r.value,m=t.value;let y=0;if(f){if(r.value=d,t.value=f,a&&a===p){a=null;return}y=m?f.position-m.position:0}else n(d);i.forEach(C=>{C(r.value,p,{delta:y,type:Ic.pop,direction:y?y>0?Rl.forward:Rl.back:Rl.unknown})})};function l(){a=r.value}function c(f){i.push(f);const d=()=>{const p=i.indexOf(f);p>-1&&i.splice(p,1)};return o.push(d),d}function u(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(lt({},f.state,{scroll:ol()}),"")}}function h(){for(const f of o)f();o=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:c,destroy:h}}function u0(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?ol():null}}function ob(e){const{history:t,location:r}=window,n={value:a1(e,r)},i={value:t.state};i.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const h=e.indexOf("#"),f=h>-1?(r.host&&document.querySelector("base")?e:e.slice(h))+l:nb()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),i.value=c}catch(d){console.error(d),r[u?"replace":"assign"](f)}}function a(l,c){o(l,lt({},t.state,u0(i.value.back,l,i.value.forward,!0),c,{position:i.value.position}),!0),n.value=l}function s(l,c){const u=lt({},i.value,t.state,{forward:l,scroll:ol()});o(u.current,u,!0),o(l,lt({},u0(n.value,l,null),{position:u.position+1},c),!1),n.value=l}return{location:n,state:i,push:s,replace:a}}function sC(e){e=j5(e);const t=ob(e),r=ib(e,t.state,t.location,t.replace);function n(o,a=!0){a||r.pauseListeners(),history.go(o)}const i=lt({location:"",base:e,go:n,createHref:V5.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let Ci=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Dt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Dt||{});const ab={type:Ci.Static,value:""},sb=/[a-zA-Z0-9_]/;function lb(e){if(!e)return[[]];if(e==="/")return[[ab]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${r})/"${c}": ${d}`)}let r=Dt.Static,n=r;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,c="",u="";function h(){c&&(r===Dt.Static?o.push({type:Ci.Static,value:c}):r===Dt.Param||r===Dt.ParamRegExp||r===Dt.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Ci.Param,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==Dt.ParamRegExp){n=r,r=Dt.EscapeNext;continue}switch(r){case Dt.Static:l==="/"?(c&&h(),a()):l===":"?(h(),r=Dt.Param):f();break;case Dt.EscapeNext:f(),r=n;break;case Dt.Param:l==="("?r=Dt.ParamRegExp:sb.test(l)?f():(h(),r=Dt.Static,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case Dt.ParamRegExp:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:r=Dt.ParamRegExpEnd:u+=l;break;case Dt.ParamRegExpEnd:h(),r=Dt.Static,l!=="*"&&l!=="?"&&l!=="+"&&s--,u="";break;default:t("Unknown state");break}}return r===Dt.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),h(),a(),i}const h0="[^/]+?",cb={sensitive:!1,strict:!1,start:!0,end:!0};var sr=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(sr||{});const ub=/[.+*?^${}()[\]/\\]/g;function hb(e,t){const r=lt({},cb,t),n=[];let i=r.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[sr.Root];r.strict&&!c.length&&(i+="/");for(let h=0;h<c.length;h++){const f=c[h];let d=sr.Segment+(r.sensitive?sr.BonusCaseSensitive:0);if(f.type===Ci.Static)h||(i+="/"),i+=f.value.replace(ub,"\\$&"),d+=sr.Static;else if(f.type===Ci.Param){const{value:p,repeatable:m,optional:y,regexp:C}=f;o.push({name:p,repeatable:m,optional:y});const x=C||h0;if(x!==h0){d+=sr.BonusCustomRegExp;try{`${x}`}catch(b){throw new Error(`Invalid custom RegExp for param "${p}" (${x}): `+b.message)}}let g=m?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;h||(g=y&&c.length<2?`(?:/${g})`:"/"+g),y&&(g+="?"),i+=g,d+=sr.Dynamic,y&&(d+=sr.BonusOptional),m&&(d+=sr.BonusRepeatable),x===".*"&&(d+=sr.BonusWildcard)}u.push(d)}n.push(u)}if(r.strict&&r.end){const c=n.length-1;n[c][n[c].length-1]+=sr.BonusStrict}r.strict||(i+="/?"),r.end?i+="$":r.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const a=new RegExp(i,r.sensitive?"":"i");function s(c){const u=c.match(a),h={};if(!u)return null;for(let f=1;f<u.length;f++){const d=u[f]||"",p=o[f-1];h[p.name]=d&&p.repeatable?d.split("/"):d}return h}function l(c){let u="",h=!1;for(const f of e){(!h||!u.endsWith("/"))&&(u+="/"),h=!1;for(const d of f)if(d.type===Ci.Static)u+=d.value;else if(d.type===Ci.Param){const{value:p,repeatable:m,optional:y}=d,C=p in c?c[p]:"";if(Kr(C)&&!m)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const x=Kr(C)?C.join("/"):C;if(!x)if(y)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):h=!0);else throw new Error(`Missing required param "${p}"`);u+=x}}return u||"/"}return{re:a,score:n,keys:o,parse:s,stringify:l}}function db(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===sr.Static+sr.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===sr.Static+sr.Segment?1:-1:0}function s1(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const o=db(n[r],i[r]);if(o)return o;r++}if(Math.abs(i.length-n.length)===1){if(d0(n))return 1;if(d0(i))return-1}return i.length-n.length}function d0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const fb={strict:!1,end:!0,sensitive:!1};function pb(e,t,r){const n=hb(lb(e.path),r),i=lt(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function mb(e,t){const r=[],n=new Map;t=i0(fb,t);function i(h){return n.get(h)}function o(h,f,d){const p=!d,m=p0(h);m.aliasOf=d&&d.record;const y=i0(t,h),C=[m];if("alias"in h){const b=typeof h.alias=="string"?[h.alias]:h.alias;for(const v of b)C.push(p0(lt({},m,{components:d?d.record.components:m.components,path:v,aliasOf:d?d.record:m})))}let x,g;for(const b of C){const{path:v}=b;if(f&&v[0]!=="/"){const A=f.record.path,w=A[A.length-1]==="/"?"":"/";b.path=f.record.path+(v&&w+v)}if(x=pb(b,f,y),d?d.alias.push(x):(g=g||x,g!==x&&g.alias.push(x),p&&h.name&&!m0(x)&&a(h.name)),l1(x)&&l(x),m.children){const A=m.children;for(let w=0;w<A.length;w++)o(A[w],x,d&&d.children[w])}d=d||x}return g?()=>{a(g)}:Jo}function a(h){if(n1(h)){const f=n.get(h);f&&(n.delete(h),r.splice(r.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=r.indexOf(h);f>-1&&(r.splice(f,1),h.record.name&&n.delete(h.record.name),h.children.forEach(a),h.alias.forEach(a))}}function s(){return r}function l(h){const f=bb(h,r);r.splice(f,0,h),h.record.name&&!m0(h)&&n.set(h.record.name,h)}function c(h,f){let d,p={},m,y;if("name"in h&&h.name){if(d=n.get(h.name),!d)throw Eo(kt.MATCHER_NOT_FOUND,{location:h});y=d.record.name,p=lt(f0(f.params,d.keys.filter(g=>!g.optional).concat(d.parent?d.parent.keys.filter(g=>g.optional):[]).map(g=>g.name)),h.params&&f0(h.params,d.keys.map(g=>g.name))),m=d.stringify(p)}else if(h.path!=null)m=h.path,d=r.find(g=>g.re.test(m)),d&&(p=d.parse(m),y=d.record.name);else{if(d=f.name?n.get(f.name):r.find(g=>g.re.test(f.path)),!d)throw Eo(kt.MATCHER_NOT_FOUND,{location:h,currentLocation:f});y=d.record.name,p=lt({},f.params,h.params),m=d.stringify(p)}const C=[];let x=d;for(;x;)C.unshift(x.record),x=x.parent;return{name:y,path:m,params:p,matched:C,meta:yb(C)}}e.forEach(h=>o(h));function u(){r.length=0,n.clear()}return{addRoute:o,resolve:c,removeRoute:a,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function f0(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function p0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:gb(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function gb(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function m0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yb(e){return e.reduce((t,r)=>lt(t,r.meta),{})}function bb(e,t){let r=0,n=t.length;for(;r!==n;){const o=r+n>>1;s1(e,t[o])<0?n=o:r=o+1}const i=vb(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function vb(e){let t=e;for(;t=t.parent;)if(l1(t)&&s1(e,t)===0)return t}function l1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function g0(e){const t=$r(Lu),r=$r(o1),n=ue(()=>{const l=le(e.to);return t.resolve(l)}),i=ue(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],h=r.matched;if(!u||!h.length)return-1;const f=h.findIndex(Ao.bind(null,u));if(f>-1)return f;const d=y0(l[c-2]);return c>1&&y0(u)===d&&h[h.length-1].path!==d?h.findIndex(Ao.bind(null,l[c-2])):f}),o=ue(()=>i.value>-1&&Cb(r.params,n.value.params)),a=ue(()=>i.value>-1&&i.value===r.matched.length-1&&r1(r.params,n.value.params));function s(l={}){if(_b(l)){const c=t[le(e.replace)?"replace":"push"](le(e.to)).catch(Jo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:n,href:ue(()=>n.value.href),isActive:o,isExactActive:a,navigate:s}}function xb(e){return e.length===1?e[0]:e}const wb=Ve({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:g0,setup(e,{slots:t}){const r=ln(g0(e)),{options:n}=$r(Lu),i=ue(()=>({[b0(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[b0(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=t.default&&xb(t.default(r));return e.custom?o:Nr("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},o)}}}),kb=wb;function _b(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Cb(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Kr(i)||i.length!==n.length||n.some((o,a)=>o.valueOf()!==i[a].valueOf()))return!1}return!0}function y0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const b0=(e,t,r)=>e??t??r,Sb=Ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=$r(Rc),i=ue(()=>e.route||n.value),o=$r(c0,0),a=ue(()=>{let c=le(o);const{matched:u}=i.value;let h;for(;(h=u[c])&&!h.components;)c++;return c}),s=ue(()=>i.value.matched[a.value]);Yo(c0,ue(()=>a.value+1)),Yo(tb,s),Yo(Rc,i);const l=J();return Ne(()=>[l.value,s.value,e.name],([c,u,h],[f,d,p])=>{u&&(u.instances[h]=c,d&&d!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!Ao(u,d)||!f)&&(u.enterCallbacks[h]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=i.value,u=e.name,h=s.value,f=h&&h.components[u];if(!f)return v0(r.default,{Component:f,route:c});const d=h.props[u],p=d?d===!0?c.params:typeof d=="function"?d(c):d:null,y=Nr(f,lt({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(h.instances[u]=null)},ref:l}));return v0(r.default,{Component:y,route:c})||y}}});function v0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Tb=Sb;function lC(e){const t=mb(e.routes,e),r=e.parseQuery||J5,n=e.stringifyQuery||l0,i=e.history,o=Ho(),a=Ho(),s=Ho(),l=Zs(nn);let c=nn;ro&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Il.bind(null,N=>""+N),h=Il.bind(null,O5),f=Il.bind(null,ha);function d(N,me){let fe,Se;return n1(N)?(fe=t.getRecordMatcher(N),Se=me):Se=N,t.addRoute(Se,fe)}function p(N){const me=t.getRecordMatcher(N);me&&t.removeRoute(me)}function m(){return t.getRoutes().map(N=>N.record)}function y(N){return!!t.getRecordMatcher(N)}function C(N,me){if(me=lt({},me||l.value),typeof N=="string"){const M=Ol(r,N,me.path),H=t.resolve({path:M.path},me),te=i.createHref(M.fullPath);return lt(M,H,{params:f(H.params),hash:ha(M.hash),redirectedFrom:void 0,href:te})}let fe;if(N.path!=null)fe=lt({},N,{path:Ol(r,N.path,me.path).path});else{const M=lt({},N.params);for(const H in M)M[H]==null&&delete M[H];fe=lt({},N,{params:h(M)}),me.params=h(me.params)}const Se=t.resolve(fe,me),$e=N.hash||"";Se.params=u(f(Se.params));const K=z5(n,lt({},N,{hash:D5($e),path:Se.path})),k=i.createHref(K);return lt({fullPath:K,hash:$e,query:n===l0?eb(N.query):N.query||{}},Se,{redirectedFrom:void 0,href:k})}function x(N){return typeof N=="string"?Ol(r,N,l.value.path):lt({},N)}function g(N,me){if(c!==N)return Eo(kt.NAVIGATION_CANCELLED,{from:me,to:N})}function b(N){return w(N)}function v(N){return b(lt(x(N),{replace:!0}))}function A(N,me){const fe=N.matched[N.matched.length-1];if(fe&&fe.redirect){const{redirect:Se}=fe;let $e=typeof Se=="function"?Se(N,me):Se;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=x($e):{path:$e},$e.params={}),lt({query:N.query,hash:N.hash,params:$e.path!=null?{}:N.params},$e)}}function w(N,me){const fe=c=C(N),Se=l.value,$e=N.state,K=N.force,k=N.replace===!0,M=A(fe,Se);if(M)return w(lt(x(M),{state:typeof M=="object"?lt({},$e,M.state):$e,force:K,replace:k}),me||fe);const H=fe;H.redirectedFrom=me;let te;return!K&&P5(n,Se,fe)&&(te=Eo(kt.NAVIGATION_DUPLICATED,{to:H,from:Se}),de(Se,Se,!0,!1)),(te?Promise.resolve(te):_(H,Se)).catch(Z=>vn(Z)?vn(Z,kt.NAVIGATION_GUARD_REDIRECT)?Z:re(Z):z(Z,H,Se)).then(Z=>{if(Z){if(vn(Z,kt.NAVIGATION_GUARD_REDIRECT))return w(lt({replace:k},x(Z.to),{state:typeof Z.to=="object"?lt({},$e,Z.to.state):$e,force:K}),me||H)}else Z=E(H,Se,!0,k,$e);return B(H,Se,Z),Z})}function T(N,me){const fe=g(N,me);return fe?Promise.reject(fe):Promise.resolve()}function S(N){const me=ee.values().next().value;return me&&typeof me.runWithContext=="function"?me.runWithContext(N):N()}function _(N,me){let fe;const[Se,$e,K]=rb(N,me);fe=Nl(Se.reverse(),"beforeRouteLeave",N,me);for(const M of Se)M.leaveGuards.forEach(H=>{fe.push(ti(H,N,me))});const k=T.bind(null,N,me);return fe.push(k),be(fe).then(()=>{fe=[];for(const M of o.list())fe.push(ti(M,N,me));return fe.push(k),be(fe)}).then(()=>{fe=Nl($e,"beforeRouteUpdate",N,me);for(const M of $e)M.updateGuards.forEach(H=>{fe.push(ti(H,N,me))});return fe.push(k),be(fe)}).then(()=>{fe=[];for(const M of K)if(M.beforeEnter)if(Kr(M.beforeEnter))for(const H of M.beforeEnter)fe.push(ti(H,N,me));else fe.push(ti(M.beforeEnter,N,me));return fe.push(k),be(fe)}).then(()=>(N.matched.forEach(M=>M.enterCallbacks={}),fe=Nl(K,"beforeRouteEnter",N,me,S),fe.push(k),be(fe))).then(()=>{fe=[];for(const M of a.list())fe.push(ti(M,N,me));return fe.push(k),be(fe)}).catch(M=>vn(M,kt.NAVIGATION_CANCELLED)?M:Promise.reject(M))}function B(N,me,fe){s.list().forEach(Se=>S(()=>Se(N,me,fe)))}function E(N,me,fe,Se,$e){const K=g(N,me);if(K)return K;const k=me===nn,M=ro?history.state:{};fe&&(Se||k?i.replace(N.fullPath,lt({scroll:k&&M&&M.scroll},$e)):i.push(N.fullPath,$e)),l.value=N,de(N,me,fe,k),re()}let I;function W(){I||(I=i.listen((N,me,fe)=>{if(!pe.listening)return;const Se=C(N),$e=A(Se,pe.currentRoute.value);if($e){w(lt($e,{replace:!0,force:!0}),Se).catch(Jo);return}c=Se;const K=l.value;ro&&Y5(s0(K.fullPath,fe.delta),ol()),_(Se,K).catch(k=>vn(k,kt.NAVIGATION_ABORTED|kt.NAVIGATION_CANCELLED)?k:vn(k,kt.NAVIGATION_GUARD_REDIRECT)?(w(lt(x(k.to),{force:!0}),Se).then(M=>{vn(M,kt.NAVIGATION_ABORTED|kt.NAVIGATION_DUPLICATED)&&!fe.delta&&fe.type===Ic.pop&&i.go(-1,!1)}).catch(Jo),Promise.reject()):(fe.delta&&i.go(-fe.delta,!1),z(k,Se,K))).then(k=>{k=k||E(Se,K,!1),k&&(fe.delta&&!vn(k,kt.NAVIGATION_CANCELLED)?i.go(-fe.delta,!1):fe.type===Ic.pop&&vn(k,kt.NAVIGATION_ABORTED|kt.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),B(Se,K,k)}).catch(Jo)}))}let F=Ho(),D=Ho(),R;function z(N,me,fe){re(N);const Se=D.list();return Se.length?Se.forEach($e=>$e(N,me,fe)):console.error(N),Promise.reject(N)}function V(){return R&&l.value!==nn?Promise.resolve():new Promise((N,me)=>{F.add([N,me])})}function re(N){return R||(R=!N,W(),F.list().forEach(([me,fe])=>N?fe(N):me()),F.reset()),N}function de(N,me,fe,Se){const{scrollBehavior:$e}=e;if(!ro||!$e)return Promise.resolve();const K=!fe&&X5(s0(N.fullPath,0))||(Se||!fe)&&history.state&&history.state.scroll||null;return at().then(()=>$e(N,me,K)).then(k=>k&&G5(k)).catch(k=>z(k,N,me))}const Ce=N=>i.go(N);let ce;const ee=new Set,pe={currentRoute:l,listening:!0,addRoute:d,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:m,resolve:C,options:e,push:b,replace:v,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:D.add,isReady:V,install(N){N.component("RouterLink",kb),N.component("RouterView",Tb),N.config.globalProperties.$router=pe,Object.defineProperty(N.config.globalProperties,"$route",{enumerable:!0,get:()=>le(l)}),ro&&!ce&&l.value===nn&&(ce=!0,b(i.location).catch(Se=>{}));const me={};for(const Se in nn)Object.defineProperty(me,Se,{get:()=>l.value[Se],enumerable:!0});N.provide(Lu,pe),N.provide(o1,io(me)),N.provide(Rc,l);const fe=N.unmount;ee.add(N),N.unmount=function(){ee.delete(N),ee.size<1&&(c=nn,I&&I(),I=null,l.value=nn,ce=!1,R=!1),fe()}}};function be(N){return N.reduce((me,fe)=>me.then(()=>S(fe)),Promise.resolve())}return pe}const Mb="modulepreload",Ab=function(e,t){return new URL(e,t).href},x0={},dt=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let c=function(u){return Promise.all(u.map(h=>Promise.resolve(h).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");i=c(r.map(u=>{if(u=Ab(u,n),u in x0)return;x0[u]=!0;const h=u.endsWith(".css"),f=h?'[rel="stylesheet"]':"";if(n)for(let p=a.length-1;p>=0;p--){const m=a[p];if(m.href===u&&(!h||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const d=document.createElement("link");if(d.rel=h?"stylesheet":Mb,h||(d.as="script"),d.crossOrigin="",d.href=u,l&&d.setAttribute("nonce",l),document.head.appendChild(d),h)return new Promise((p,m)=>{d.addEventListener("load",p),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},cC=(e,t)=>({default:()=>e?Nr(Pn,e===!0?{}:e,t):t.default?.()}),Eb=/(:\w+)\([^)]+\)/g,Bb=/(:\w+)[?+*]/g,Lb=/:\w+/g;function w0(e){const t=e?.meta.key??e.path.replace(Eb,"$1").replace(Bb,"$1").replace(Lb,r=>e.params[r.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function $b(e,t){return e===t||t===nn?!1:w0(e)!==w0(t)?!0:!e.matched.every((n,i)=>n.components&&n.components.default===t.matched[i]?.components?.default)}const Db={scrollBehavior(e,t,r){const n=It(),i=Pi().options?.scrollBehaviorType??"auto";if(e.path.replace(/\/$/,"")===t.path.replace(/\/$/,""))return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:c1(e.hash),behavior:i}:!1;if((typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;const a=n._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(s=>{if(t===nn){s(k0(e,t,r,i));return}n.hooks.hookOnce(a,()=>{requestAnimationFrame(()=>s(k0(e,t,r,i)))})})}};function c1(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function k0(e,t,r,n){if(r)return r;const i=$b(e,t);return e.hash?{el:e.hash,top:c1(e.hash),behavior:i?n:"instant"}:{left:0,top:0}}const Fb={hashMode:!1,scrollBehaviorType:"auto"},uC={...Fb,...Db},Nc=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(r)},1)}),Ib=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Ob=e=>{const t=It();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Nc(()=>e())}):Nc(()=>e())};function hC(e={}){const t=e.path||window.location.pathname;let r={};try{r=Ly(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||r?.path!==t||r?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:It().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}function dC(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function u1(e,t=Pi()){const{path:r,matched:n}=t.resolve(e);if(!n.length||(t._routePreloaded||=new Set,t._routePreloaded.has(r)))return;const i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>u1(e,t));t._routePreloaded.add(r);for(const o of n){const a=o.components?.default;if(typeof a!="function")continue;const s=Promise.resolve(a()).catch(()=>{}).finally(()=>i.splice(i.indexOf(s)));i.push(s)}await Promise.all(i)}const Rb=(...e)=>e.find(t=>t!==void 0);function Nb(e){const t=e.componentName||"NuxtLink";function r(o){return typeof o=="string"&&o.startsWith("#")}function n(o,a,s){const l=s??e.trailingSlash;if(!o||l!=="append"&&l!=="remove")return o;if(typeof o=="string")return Pa(o,l);const c="path"in o&&o.path!==void 0?o.path:a(o).path;return{...o,name:void 0,path:Pa(c,l)}}function i(o){const a=Pi(),s=Au(),l=ue(()=>!!o.target&&o.target!=="_self"),c=ue(()=>{const y=o.to||o.href||"";return typeof y=="string"&&Wi(y,{acceptRelative:!0})}),u=yh("RouterLink"),h=u&&typeof u!="string"?u.useLink:void 0,f=ue(()=>{if(o.external)return!0;const y=o.to||o.href||"";return typeof y=="object"?!1:y===""||c.value}),d=ue(()=>{const y=o.to||o.href||"";return f.value?y:n(y,a.resolve,o.trailingSlash)}),p=f.value?void 0:h?.({...o,to:d}),m=ue(()=>{const y=o.trailingSlash??e.trailingSlash;if(!d.value||c.value||r(d.value))return d.value;if(f.value){const C=typeof d.value=="object"&&"path"in d.value?$c(d.value):d.value,x=typeof C=="object"?a.resolve(C).href:C;return Pa(x,y)}return typeof d.value=="object"?a.resolve(d.value)?.href??null:Pa(Tu(s.app.baseURL,d.value),y)});return{to:d,hasTarget:l,isAbsoluteUrl:c,isExternal:f,href:m,isActive:p?.isActive??ue(()=>d.value===a.currentRoute.value.path),isExactActive:p?.isExactActive??ue(()=>d.value===a.currentRoute.value.path),route:p?.route??ue(()=>a.resolve(d.value)),async navigate(y){await E4(m.value,{replace:o.replace,external:f.value||l.value})}}}return Ve({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:i,setup(o,{slots:a}){const s=Pi(),{to:l,href:c,navigate:u,isExternal:h,hasTarget:f,isAbsoluteUrl:d}=i(o),p=Zs(!1),m=J(null),y=g=>{m.value=o.custom?g?.$el?.nextElementSibling:g?.$el};function C(g){return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===g:o.prefetchOn?.[g]??e.prefetchOn?.[g])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!qb()}async function x(g=It()){if(p.value)return;p.value=!0;const b=typeof l.value=="string"?l.value:h.value?$c(l.value):s.resolve(l.value).fullPath,v=h.value?new URL(b,window.location.href).href:b;await Promise.all([g.hooks.callHook("link:prefetch",v).catch(()=>{}),!h.value&&!f.value&&u1(l.value,s).catch(()=>{})])}if(C("visibility")){const g=It();let b,v=null;Qr(()=>{const A=zb();Ob(()=>{b=Nc(()=>{m?.value?.tagName&&(v=A.observe(m.value,async()=>{v?.(),v=null,await x(g)}))})})}),nr(()=>{b&&Ib(b),v?.(),v=null})}return()=>{if(!h.value&&!f.value&&!r(l.value)){const v={ref:y,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(C("interaction")&&(v.onPointerenter=x.bind(null,void 0),v.onFocus=x.bind(null,void 0)),p.value&&(v.class=o.prefetchedClass||e.prefetchedClass),v.rel=o.rel||void 0),Nr(yh("RouterLink"),v,a.default)}const g=o.target||null,b=Rb(o.noRel?"":o.rel,e.externalRelAttribute,d.value||f.value?"noopener noreferrer":"")||null;return o.custom?a.default?a.default({href:c.value,navigate:u,prefetch:x,get route(){if(!c.value)return;const v=new URL(c.value,window.location.href);return{path:v.pathname,fullPath:v.pathname,get query(){return Su(v.search)},hash:v.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:b,target:g,isExternal:h.value||f.value,isActive:!1,isExactActive:!1}):null:Nr("a",{ref:m,href:c.value||null,rel:b,target:g,onClick:v=>{if(!(h.value||f.value))return v.preventDefault(),o.replace?s.replace(c.value):s.push(c.value)}},a.default?.())}}})}const fC=Nb(p4);function Pa(e,t){const r=t==="append"?Ep:ua;return Wi(e)&&!e.startsWith("http")?e:r(e,!0)}function zb(){const e=It();if(e._observer)return e._observer;let t=null;const r=new Map,n=(o,a)=>(t||=new IntersectionObserver(s=>{for(const l of s){const c=r.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}}),r.set(o,a),t.observe(o),()=>{r.delete(o),t?.unobserve(o),r.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:n}}const Pb=/2g/;function qb(){const e=navigator.connection;return!!(e&&(e.saveData||Pb.test(e.effectiveType)))}let qa=null,Ha=null,ja=null;async function Hb(){if(typeof window>"u")return;const e=globalThis;if(e.MonacoEnvironment?.getWorker)return;const[{default:t},{default:r},{default:n},{default:i},{default:o}]=await Promise.all([dt(()=>import("./Z6tloZ0k.js").then(h=>h.e),__vite__mapDeps([0,1]),import.meta.url),dt(()=>import("./Z6tloZ0k.js").then(h=>h.j),__vite__mapDeps([0,1]),import.meta.url),dt(()=>import("./Z6tloZ0k.js").then(h=>h.c),__vite__mapDeps([0,1]),import.meta.url),dt(()=>import("./Z6tloZ0k.js").then(h=>h.h),__vite__mapDeps([0,1]),import.meta.url),dt(()=>import("./Z6tloZ0k.js").then(h=>h.t),__vite__mapDeps([0,1]),import.meta.url)]),a=t,s=r,l=n,c=i,u=o;e.MonacoEnvironment={getWorker(h,f){return f==="json"?new s:f==="css"||f==="scss"||f==="less"?new l:f==="html"||f==="handlebars"||f==="razor"?new c:f==="typescript"||f==="javascript"?new u:new a}}}async function h1(){return qa||(qa=(async()=>{const[{enableMermaid:e,getUseMonaco:t,setKaTeXWorker:r,setMermaidWorker:n},{default:i},{default:o}]=await Promise.all([dt(()=>Promise.resolve().then(()=>rh),void 0,import.meta.url),dt(()=>Promise.resolve().then(()=>G8),void 0,import.meta.url),dt(()=>Promise.resolve().then(()=>X8),void 0,import.meta.url)]);await Hb(),e(()=>dt(()=>import("./B8T9Vkkp.js").then(a=>a.m),[],import.meta.url)),t(),r(new i),n(new o)})(),qa)}async function jb(){return Ha||(Ha=(async()=>(await h1(),(await dt(()=>Promise.resolve().then(()=>rh),void 0,import.meta.url)).default))(),Ha)}async function pC(){return ja||(ja=(async()=>(await h1(),(await dt(()=>Promise.resolve().then(()=>rh),void 0,import.meta.url)).CodeBlockNode))(),ja)}const mC=v4(e=>{const t=Wr({loader:jb,suspensible:!1});e.vueApp.component("MarkdownRender",t)});var Wb=Object.create,$u=Object.defineProperty,Vb=Object.getOwnPropertyDescriptor,d1=Object.getOwnPropertyNames,Ub=Object.getPrototypeOf,Gb=Object.prototype.hasOwnProperty,f1=(e,t)=>function(){return t||(0,e[d1(e)[0]])((t={exports:{}}).exports,t),t.exports},p1=e=>{let t={};for(var r in e)$u(t,r,{get:e[r],enumerable:!0});return t},Yb=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=d1(t),o=0,a=i.length,s;o<a;o++)s=i[o],!Gb.call(e,s)&&s!==r&&$u(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(n=Vb(t,s))||n.enumerable});return e},m1=(e,t,r)=>(r=e!=null?Wb(Ub(e)):{},Yb($u(r,"default",{value:e,enumerable:!0}),e));function Xb(e,t,r,n){const i=Number(e[t].meta.id+1).toString();let o="";return typeof n.docId=="string"&&(o=`-${n.docId}-`),o+i}function Kb(e,t){let r=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(r+=`:${e[t].meta.subId}`),`[${r}]`}function Zb(e,t,r,n,i){const o=i.rules.footnote_anchor_name(e,t,r,n,i),a=i.rules.footnote_caption(e,t,r,n,i);let s=o;return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`<sup class="footnote-ref"><a href="#fn${o}" id="fnref${s}">${a}</a></sup>`}function Qb(e,t,r){return(r.xhtmlOut?`<hr class="footnotes-sep" />
|
|
4
|
+
`)&&(Oa(g,0)||Ki(),g.textContent=b.children)}if(_){if(F||!T||B&48){const z=g.tagName.includes("-");for(const V in _)(F&&(V.endsWith("value")||V==="indeterminate")||va(V)&&!Ti(V)||V[0]==="."||z&&!Ti(V))&&n(g,V,null,_[V],void 0,v)}else if(_.onClick)n(g,"onClick",null,_.onClick,void 0,v);else if(B&4&&li(_.style))for(const z in _.style)_.style[z]}let R;(R=_&&_.onVnodeBeforeMount)&&wr(R,v,b),I&&on(b,null,v,"beforeMount"),((R=_&&_.onVnodeMounted)||I||D)&&up(()=>{R&&wr(R,v,b),D&&W.enter(g),I&&on(b,null,v,"mounted")},A)}return g.nextSibling},d=(g,b,v,A,w,T,S)=>{S=S||!!b.dynamicChildren;const _=b.children,B=_.length;for(let E=0;E<B;E++){const I=S?_[E]:_[E]=Ar(_[E]),W=I.type===Ei;g?(W&&!S&&E+1<B&&Ar(_[E+1]).type===Ei&&(l(i(g.data.slice(I.children.length)),v,o(g)),g.data=I.children),g=h(g,I,A,w,T,S)):W&&!I.children?l(I.el=i(""),v):(Oa(v,1)||Ki(),r(null,I,v,null,A,w,Ia(v),T))}return g},p=(g,b,v,A,w,T)=>{const{slotScopeIds:S}=b;S&&(w=w?w.concat(S):S);const _=a(g),B=d(o(g),b,_,v,A,w,T);return B&&oo(B)&&B.data==="]"?o(b.anchor=B):(Ki(),l(b.anchor=c("]"),_,B),B)},m=(g,b,v,A,w,T)=>{if(Oa(g.parentElement,1)||Ki(),b.el=null,T){const B=y(g);for(;;){const E=o(g);if(E&&E!==B)s(E);else break}}const S=o(g),_=a(g);return s(g),r(null,b,_,S,v,A,Ia(_),w),v&&(v.vnode.el=b.el,rl(v,b.el)),S},y=(g,b="[",v="]")=>{let A=0;for(;g;)if(g=o(g),g&&oo(g)&&(g.data===b&&A++,g.data===v)){if(A===0)return o(g);A--}return g},C=(g,b,v)=>{const A=b.parentNode;A&&A.replaceChild(g,b);let w=v;for(;w;)w.vnode.el===b&&(w.vnode.el=w.subTree.el=g),w=w.parent},x=g=>g.nodeType===1&&g.tagName==="TEMPLATE";return[u,h]}const gh="data-allow-mismatch",Xg={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Oa(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(gh);)e=e.parentElement;const r=e&&e.getAttribute(gh);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:n.includes(Xg[t])}}Ys().requestIdleCallback;Ys().cancelIdleCallback;function Kg(e,t){if(oo(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(oo(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const An=e=>!!e.type.__asyncLoader;function Wr(e){qe(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:i=200,hydrate:o,timeout:a,suspensible:s=!0,onError:l}=e;let c=null,u,h=0;const f=()=>(h++,c=null,d()),d=()=>{let p;return c||(p=c=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((y,C)=>{l(m,()=>y(f()),()=>C(m),h+1)});throw m}).then(m=>p!==c&&c?c:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),u=m,m)))};return Ve({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(p,m,y){let C=!1;(m.bu||(m.bu=[])).push(()=>C=!0);const x=()=>{C||y()},g=o?()=>{const b=o(x,v=>Kg(p,v));b&&(m.bum||(m.bum=[])).push(b)}:x;u?g():d().then(()=>!m.isUnmounted&&g())},get __asyncResolved(){return u},setup(){const p=jt;if(yu(p),u)return()=>Ra(u,p);const m=g=>{c=null,Lo(g,p,13,!n)};if(s&&p.suspense||To)return d().then(g=>()=>Ra(g,p)).catch(g=>(m(g),()=>n?tt(n,{error:g}):null));const y=J(!1),C=J(),x=J(!!i);return i&&setTimeout(()=>{x.value=!1},i),a!=null&&setTimeout(()=>{if(!y.value&&!C.value){const g=new Error(`Async component timed out after ${a}ms.`);m(g),C.value=g}},a),d().then(()=>{y.value=!0,p.parent&&ka(p.parent.vnode)&&p.parent.update()}).catch(g=>{m(g),C.value=g}),()=>{if(y.value&&u)return Ra(u,p);if(C.value&&n)return tt(n,{error:C.value});if(r&&!x.value)return Ra(r,p)}}})}function Ra(e,t){const{ref:r,props:n,children:i,ce:o}=t.vnode,a=tt(e,n,i);return a.ref=r,a.ce=o,delete t.vnode.ce,a}const ka=e=>e.type.__isKeepAlive,Zg={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=zn(),n=r.ctx;if(!n.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const i=new Map,o=new Set;let a=null;const s=r.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:h}}}=n,f=h("div");n.activate=(x,g,b,v,A)=>{const w=x.component;c(x,g,b,0,s),l(w.vnode,x,g,b,w,s,v,x.slotScopeIds,A),At(()=>{w.isDeactivated=!1,w.a&&uo(w.a);const T=x.props&&x.props.onVnodeMounted;T&&wr(T,w.parent,x)},s)},n.deactivate=x=>{const g=x.component;_s(g.m),_s(g.a),c(x,f,null,1,s),At(()=>{g.da&&uo(g.da);const b=x.props&&x.props.onVnodeUnmounted;b&&wr(b,g.parent,x),g.isDeactivated=!0},s)};function d(x){_l(x),u(x,r,s,!0)}function p(x){i.forEach((g,b)=>{const v=_c(An(g)?g.type.__asyncResolved||{}:g.type);v&&!x(v)&&m(b)})}function m(x){const g=i.get(x);g&&(!a||!qr(g,a))?d(g):a&&_l(a),i.delete(x),o.delete(x)}Ne(()=>[e.include,e.exclude],([x,g])=>{x&&p(b=>Wo(x,b)),g&&p(b=>!Wo(g,b))},{flush:"post",deep:!0});let y=null;const C=()=>{y!=null&&(Cs(r.subTree.type)?At(()=>{i.set(y,Na(r.subTree))},r.subTree.suspense):i.set(y,Na(r.subTree)))};return Qr(C),bu(C),nr(()=>{i.forEach(x=>{const{subTree:g,suspense:b}=r,v=Na(g);if(x.type===v.type&&x.key===v.key){_l(v);const A=v.component.da;A&&At(A,b);return}d(x)})}),()=>{if(y=null,!t.default)return a=null;const x=t.default(),g=x[0];if(x.length>1)return a=null,x;if(!zi(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return a=null,g;let b=Na(g);if(b.type===Et)return a=null,b;const v=b.type,A=_c(An(b)?b.type.__asyncResolved||{}:v),{include:w,exclude:T,max:S}=e;if(w&&(!A||!Wo(w,A))||T&&A&&Wo(T,A))return b.shapeFlag&=-257,a=b,g;const _=b.key==null?v:b.key,B=i.get(_);return b.el&&(b=Fn(b),g.shapeFlag&128&&(g.ssContent=b)),y=_,B?(b.el=B.el,b.component=B.component,b.transition&&ci(b,b.transition),b.shapeFlag|=512,o.delete(_),o.add(_)):(o.add(_),S&&o.size>parseInt(S,10)&&m(o.values().next().value)),b.shapeFlag|=256,a=b,Cs(g.type)?g:b}}},B9=Zg;function Wo(e,t){return ze(e)?e.some(r=>Wo(r,t)):xt(e)?e.split(",").includes(t):Km(e)?(e.lastIndex=0,e.test(t)):!1}function Pf(e,t){Hf(e,"a",t)}function qf(e,t){Hf(e,"da",t)}function Hf(e,t,r=jt){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(el(t,n,r),r){let i=r.parent;for(;i&&i.parent;)ka(i.parent.vnode)&&Qg(n,t,r,i),i=i.parent}}function Qg(e,t,r,n){const i=el(t,e,n,!0);_a(()=>{au(n[t],i)},r)}function _l(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Na(e){return e.shapeFlag&128?e.ssContent:e}function el(e,t,r=jt,n=!1){if(r){const i=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Bn();const s=Ca(r),l=Yr(t,r,e,a);return s(),Ln(),l});return n?i.unshift(o):i.push(o),o}}const Nn=e=>(t,r=jt)=>{(!To||e==="sp")&&el(e,(...n)=>t(...n),r)},Jg=Nn("bm"),Qr=Nn("m"),e2=Nn("bu"),bu=Nn("u"),nr=Nn("bum"),_a=Nn("um"),t2=Nn("sp"),r2=Nn("rtg"),n2=Nn("rtc");function i2(e,t=jt){el("ec",e,t)}const jf="components";function yh(e,t){return Vf(jf,e,!0,t)||e}const Wf=Symbol.for("v-ndc");function rr(e){return xt(e)?Vf(jf,e,!1)||e:e||Wf}function Vf(e,t,r=!0,n=!1){const i=Wt||jt;if(i){const o=i.type;{const s=_c(o,!1);if(s&&(s===t||s===Rr(t)||s===Gs(Rr(t))))return o}const a=bh(i[e]||o[e],t)||bh(i.appContext[e],t);return!a&&n?o:a}}function bh(e,t){return e&&(e[t]||e[Rr(t)]||e[Gs(Rr(t))])}function Vt(e,t,r,n){let i;const o=r&&r[n],a=ze(e);if(a||xt(e)){const s=a&&li(e);let l=!1,c=!1;s&&(l=!Lr(e),c=$n(e),e=Xs(e)),i=new Array(e.length);for(let u=0,h=e.length;u<h;u++)i[u]=t(l?c?So(Gr(e[u])):Gr(e[u]):e[u],u,void 0,o&&o[u])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,o&&o[s])}else if(mt(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,c=s.length;l<c;l++){const u=s[l];i[l]=t(e[u],u,l,o&&o[l])}}else i=[];return r&&(r[n]=i),i}function Ut(e,t,r={},n,i){if(Wt.ce||Wt.parent&&An(Wt.parent)&&Wt.parent.ce){const c=Object.keys(r).length>0;return t!=="default"&&(r.name=t),j(),ht(Ke,null,[tt("slot",r,n&&n())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),j();const a=o&&Uf(o(r)),s=r.key||a&&a.key,l=ht(Ke,{key:(s&&!Rn(s)?s:`_${t}`)+(!a&&n?"_fb":"")},a||(n?n():[]),a&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Uf(e){return e.some(t=>zi(t)?!(t.type===Et||t.type===Ke&&!Uf(t.children)):!0)?e:null}function vh(e,t){const r={};for(const n in e)r[/[A-Z]/.test(n)?`on:${n}`:ts(n)]=e[n];return r}const gc=e=>e?mp(e)?nl(e):gc(e.parent):null,Ko=$t(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gc(e.parent),$root:e=>gc(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Yf(e),$forceUpdate:e=>e.f||(e.f=()=>{pu(e.update)}),$nextTick:e=>e.n||(e.n=at.bind(e.proxy)),$watch:e=>Hg.bind(e)}),Cl=(e,t)=>e!==pt&&!e.__isScriptSetup&&ct(e,t),o2={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:o,accessCache:a,type:s,appContext:l}=e;if(t[0]!=="$"){const f=a[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return o[t]}else{if(Cl(n,t))return a[t]=1,n[t];if(i!==pt&&ct(i,t))return a[t]=2,i[t];if(ct(o,t))return a[t]=3,o[t];if(r!==pt&&ct(r,t))return a[t]=4,r[t];yc&&(a[t]=0)}}const c=Ko[t];let u,h;if(c)return t==="$attrs"&&Xt(e.attrs,"get",""),c(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(r!==pt&&ct(r,t))return a[t]=4,r[t];if(h=l.config.globalProperties,ct(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:o}=e;return Cl(i,t)?(i[t]=r,!0):n!==pt&&ct(n,t)?(n[t]=r,!0):ct(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,props:o,type:a}},s){let l;return!!(r[s]||e!==pt&&s[0]!=="$"&&ct(e,s)||Cl(t,s)||ct(o,s)||ct(n,s)||ct(Ko,s)||ct(i.config.globalProperties,s)||(l=a.__cssModules)&&l[s])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ct(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function a2(){return s2().attrs}function s2(e){const t=zn();return t.setupContext||(t.setupContext=yp(t))}function xh(e){return ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let yc=!0;function l2(e){const t=Yf(e),r=e.proxy,n=e.ctx;yc=!1,t.beforeCreate&&wh(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:d,updated:p,activated:m,deactivated:y,beforeDestroy:C,beforeUnmount:x,destroyed:g,unmounted:b,render:v,renderTracked:A,renderTriggered:w,errorCaptured:T,serverPrefetch:S,expose:_,inheritAttrs:B,components:E,directives:I,filters:W}=t;if(c&&c2(c,n,null),a)for(const R in a){const z=a[R];qe(z)&&(n[R]=z.bind(r))}if(i){const R=i.call(r,r);mt(R)&&(e.data=ln(R))}if(yc=!0,o)for(const R in o){const z=o[R],V=qe(z)?z.bind(r,r):qe(z.get)?z.get.bind(r,r):un,re=!qe(z)&&qe(z.set)?z.set.bind(r):un,de=ue({get:V,set:re});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>de.value,set:Ce=>de.value=Ce})}if(s)for(const R in s)Gf(s[R],n,r,R);if(l){const R=qe(l)?l.call(r):l;Reflect.ownKeys(R).forEach(z=>{Yo(z,R[z])})}u&&wh(u,e,"c");function D(R,z){ze(z)?z.forEach(V=>R(V.bind(r))):z&&R(z.bind(r))}if(D(Jg,h),D(Qr,f),D(e2,d),D(bu,p),D(Pf,m),D(qf,y),D(i2,T),D(n2,A),D(r2,w),D(nr,x),D(_a,b),D(t2,S),ze(_))if(_.length){const R=e.exposed||(e.exposed={});_.forEach(z=>{Object.defineProperty(R,z,{get:()=>r[z],set:V=>r[z]=V,enumerable:!0})})}else e.exposed||(e.exposed={});v&&e.render===un&&(e.render=v),B!=null&&(e.inheritAttrs=B),E&&(e.components=E),I&&(e.directives=I),S&&yu(e)}function c2(e,t,r=un){ze(e)&&(e=bc(e));for(const n in e){const i=e[n];let o;mt(i)?"default"in i?o=$r(i.from||n,i.default,!0):o=$r(i.from||n):o=$r(i),Lt(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[n]=o}}function wh(e,t,r){Yr(ze(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Gf(e,t,r,n){let i=n.includes(".")?Bf(r,n):()=>r[n];if(xt(e)){const o=t[e];qe(o)&&Ne(i,o)}else if(qe(e))Ne(i,e.bind(r));else if(mt(e))if(ze(e))e.forEach(o=>Gf(o,t,r,n));else{const o=qe(e.handler)?e.handler.bind(r):t[e.handler];qe(o)&&Ne(i,o,e)}}function Yf(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(c=>ks(l,c,a,!0)),ks(l,t,a)),mt(t)&&o.set(t,l),l}function ks(e,t,r,n=!1){const{mixins:i,extends:o}=t;o&&ks(e,o,r,!0),i&&i.forEach(a=>ks(e,a,r,!0));for(const a in t)if(!(n&&a==="expose")){const s=u2[a]||r&&r[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const u2={data:kh,props:_h,emits:_h,methods:Vo,computed:Vo,beforeCreate:ar,created:ar,beforeMount:ar,mounted:ar,beforeUpdate:ar,updated:ar,beforeDestroy:ar,beforeUnmount:ar,destroyed:ar,unmounted:ar,activated:ar,deactivated:ar,errorCaptured:ar,serverPrefetch:ar,components:Vo,directives:Vo,watch:d2,provide:kh,inject:h2};function kh(e,t){return t?e?function(){return $t(qe(e)?e.call(this,this):e,qe(t)?t.call(this,this):t)}:t:e}function h2(e,t){return Vo(bc(e),bc(t))}function bc(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function ar(e,t){return e?[...new Set([].concat(e,t))]:t}function Vo(e,t){return e?$t(Object.create(null),e,t):t}function _h(e,t){return e?ze(e)&&ze(t)?[...new Set([...e,...t])]:$t(Object.create(null),xh(e),xh(t??{})):t}function d2(e,t){if(!e)return t;if(!t)return e;const r=$t(Object.create(null),e);for(const n in t)r[n]=ar(e[n],t[n]);return r}function Xf(){return{app:null,config:{isNativeTag:Zd,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let f2=0;function p2(e,t){return function(n,i=null){qe(n)||(n=$t({},n)),i!=null&&!mt(i)&&(i=null);const o=Xf(),a=new WeakSet,s=[];let l=!1;const c=o.app={_uid:f2++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:U2,get config(){return o.config},set config(u){},use(u,...h){return a.has(u)||(u&&qe(u.install)?(a.add(u),u.install(c,...h)):qe(u)&&(a.add(u),u(c,...h))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,h){return h?(o.components[u]=h,c):o.components[u]},directive(u,h){return h?(o.directives[u]=h,c):o.directives[u]},mount(u,h,f){if(!l){const d=c._ceVNode||tt(n,i);return d.appContext=o,f===!0?f="svg":f===!1&&(f=void 0),h&&t?t(d,u):e(d,u,f),l=!0,c._container=u,u.__vue_app__=c,nl(d.component)}},onUnmount(u){s.push(u)},unmount(){l&&(Yr(s,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return o.provides[u]=h,c},runWithContext(u){const h=Ai;Ai=c;try{return u()}finally{Ai=h}}};return c}}let Ai=null;const m2=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Rr(t)}Modifiers`]||e[`${ui(t)}Modifiers`];function g2(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||pt;let i=r;const o=t.startsWith("update:"),a=o&&m2(n,t.slice(7));a&&(a.trim&&(i=r.map(u=>xt(u)?u.trim():u)),a.number&&(i=r.map(su)));let s,l=n[s=ts(t)]||n[s=ts(Rr(t))];!l&&o&&(l=n[s=ts(ui(t))]),l&&Yr(l,e,6,i);const c=n[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Yr(c,e,6,i)}}const y2=new WeakMap;function Kf(e,t,r=!1){const n=r?y2:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let a={},s=!1;if(!qe(e)){const l=c=>{const u=Kf(c,t,!0);u&&(s=!0,$t(a,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(mt(e)&&n.set(e,null),null):(ze(o)?o.forEach(l=>a[l]=null):$t(a,o),mt(e)&&n.set(e,a),a)}function tl(e,t){return!e||!va(t)?!1:(t=t.slice(2).replace(/Once$/,""),ct(e,t[0].toLowerCase()+t.slice(1))||ct(e,ui(t))||ct(e,t))}function Sl(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:h,data:f,setupState:d,ctx:p,inheritAttrs:m}=e,y=xs(e);let C,x;try{if(r.shapeFlag&4){const b=i||n,v=b;C=Ar(c.call(v,b,u,h,d,f,p)),x=s}else{const b=t;C=Ar(b.length>1?b(h,{attrs:s,slots:a,emit:l}):b(h,null)),x=t.props?s:v2(s)}}catch(b){Zo.length=0,Lo(b,e,1),C=tt(Et)}let g=C;if(x&&m!==!1){const b=Object.keys(x),{shapeFlag:v}=g;b.length&&v&7&&(o&&b.some(ou)&&(x=x2(x,o)),g=Fn(g,x,!1,!0))}return r.dirs&&(g=Fn(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(r.dirs):r.dirs),r.transition&&ci(g,r.transition),C=g,xs(y),C}function b2(e,t=!0){let r;for(let n=0;n<e.length;n++){const i=e[n];if(zi(i)){if(i.type!==Et||i.children==="v-if"){if(r)return;r=i}}else return}return r}const v2=e=>{let t;for(const r in e)(r==="class"||r==="style"||va(r))&&((t||(t={}))[r]=e[r]);return t},x2=(e,t)=>{const r={};for(const n in e)(!ou(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function w2(e,t,r){const{props:n,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Ch(n,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(a[f]!==n[f]&&!tl(c,f))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===a?!1:n?a?Ch(n,a,c):!0:!!a;return!1}function Ch(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const o=n[i];if(t[o]!==e[o]&&!tl(r,o))return!0}return!1}function rl({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const Zf={},Qf=()=>Object.create(Zf),Jf=e=>Object.getPrototypeOf(e)===Zf;function k2(e,t,r,n=!1){const i={},o=Qf();e.propsDefaults=Object.create(null),ep(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);r?e.props=n?i:io(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function _2(e,t,r,n){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=ot(i),[l]=e.propsOptions;let c=!1;if((n||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(tl(e.emitsOptions,f))continue;const d=t[f];if(l)if(ct(o,f))d!==o[f]&&(o[f]=d,c=!0);else{const p=Rr(f);i[p]=vc(l,s,p,d,e,!1)}else d!==o[f]&&(o[f]=d,c=!0)}}}else{ep(e,t,i,o)&&(c=!0);let u;for(const h in s)(!t||!ct(t,h)&&((u=ui(h))===h||!ct(t,u)))&&(l?r&&(r[h]!==void 0||r[u]!==void 0)&&(i[h]=vc(l,s,h,void 0,e,!0)):delete i[h]);if(o!==s)for(const h in o)(!t||!ct(t,h))&&(delete o[h],c=!0)}c&&Cn(e.attrs,"set","")}function ep(e,t,r,n){const[i,o]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(Ti(l))continue;const c=t[l];let u;i&&ct(i,u=Rr(l))?!o||!o.includes(u)?r[u]=c:(s||(s={}))[u]=c:tl(e.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,a=!0)}if(o){const l=ot(r),c=s||pt;for(let u=0;u<o.length;u++){const h=o[u];r[h]=vc(i,l,h,c[h],e,!ct(c,h))}}return a}function vc(e,t,r,n,i,o){const a=e[r];if(a!=null){const s=ct(a,"default");if(s&&n===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&qe(l)){const{propsDefaults:c}=i;if(r in c)n=c[r];else{const u=Ca(i);n=c[r]=l.call(null,t),u()}}else n=l;i.ce&&i.ce._setProp(r,n)}a[0]&&(o&&!s?n=!1:a[1]&&(n===""||n===ui(r))&&(n=!0))}return n}const C2=new WeakMap;function tp(e,t,r=!1){const n=r?C2:t.propsCache,i=n.get(e);if(i)return i;const o=e.props,a={},s=[];let l=!1;if(!qe(e)){const u=h=>{l=!0;const[f,d]=tp(h,t,!0);$t(a,f),d&&s.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return mt(e)&&n.set(e,lo),lo;if(ze(o))for(let u=0;u<o.length;u++){const h=Rr(o[u]);Sh(h)&&(a[h]=pt)}else if(o)for(const u in o){const h=Rr(u);if(Sh(h)){const f=o[u],d=a[h]=ze(f)||qe(f)?{type:f}:$t({},f),p=d.type;let m=!1,y=!0;if(ze(p))for(let C=0;C<p.length;++C){const x=p[C],g=qe(x)&&x.name;if(g==="Boolean"){m=!0;break}else g==="String"&&(y=!1)}else m=qe(p)&&p.name==="Boolean";d[0]=m,d[1]=y,(m||ct(d,"default"))&&s.push(h)}}const c=[a,s];return mt(e)&&n.set(e,c),c}function Sh(e){return e[0]!=="$"&&!Ti(e)}const vu=e=>e==="_"||e==="_ctx"||e==="$stable",xu=e=>ze(e)?e.map(Ar):[Ar(e)],S2=(e,t,r)=>{if(t._n)return t;const n=Zr((...i)=>xu(t(...i)),r);return n._c=!1,n},rp=(e,t,r)=>{const n=e._ctx;for(const i in e){if(vu(i))continue;const o=e[i];if(qe(o))t[i]=S2(i,o,n);else if(o!=null){const a=xu(o);t[i]=()=>a}}},np=(e,t)=>{const r=xu(t);e.slots.default=()=>r},ip=(e,t,r)=>{for(const n in t)(r||!vu(n))&&(e[n]=t[n])},T2=(e,t,r)=>{const n=e.slots=Qf();if(e.vnode.shapeFlag&32){const i=t._;i?(ip(n,t,r),r&&rf(n,"_",i,!0)):rp(t,n)}else t&&np(e,t)},M2=(e,t,r)=>{const{vnode:n,slots:i}=e;let o=!0,a=pt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?o=!1:ip(i,t,r):(o=!t.$stable,rp(t,i)),a=t}else t&&(np(e,t),a={default:1});if(o)for(const s in i)!vu(s)&&a[s]==null&&delete i[s]},At=up;function A2(e){return op(e)}function E2(e){return op(e,Yg)}function op(e,t){const r=Ys();r.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=un,insertStaticContent:p}=e,m=(k,M,H,te=null,Z=null,Q=null,he=void 0,ge=null,ye=!!M.dynamicChildren)=>{if(k===M)return;k&&!qr(k,M)&&(te=N(k),Ce(k,Z,Q,!0),k=null),M.patchFlag===-2&&(ye=!1,M.dynamicChildren=null);const{type:se,ref:Ie,shapeFlag:ke}=M;switch(se){case Ei:y(k,M,H,te);break;case Et:C(k,M,H,te);break;case ns:k==null&&x(M,H,te,he);break;case Ke:E(k,M,H,te,Z,Q,he,ge,ye);break;default:ke&1?v(k,M,H,te,Z,Q,he,ge,ye):ke&6?I(k,M,H,te,Z,Q,he,ge,ye):(ke&64||ke&128)&&se.process(k,M,H,te,Z,Q,he,ge,ye,Se)}Ie!=null&&Z?fo(Ie,k&&k.ref,Q,M||k,!M):Ie==null&&k&&k.ref!=null&&fo(k.ref,null,Q,k,!0)},y=(k,M,H,te)=>{if(k==null)n(M.el=s(M.children),H,te);else{const Z=M.el=k.el;M.children!==k.children&&c(Z,M.children)}},C=(k,M,H,te)=>{k==null?n(M.el=l(M.children||""),H,te):M.el=k.el},x=(k,M,H,te)=>{[k.el,k.anchor]=p(k.children,M,H,te,k.el,k.anchor)},g=({el:k,anchor:M},H,te)=>{let Z;for(;k&&k!==M;)Z=f(k),n(k,H,te),k=Z;n(M,H,te)},b=({el:k,anchor:M})=>{let H;for(;k&&k!==M;)H=f(k),i(k),k=H;i(M)},v=(k,M,H,te,Z,Q,he,ge,ye)=>{if(M.type==="svg"?he="svg":M.type==="math"&&(he="mathml"),k==null)A(M,H,te,Z,Q,he,ge,ye);else{const se=k.el&&k.el._isVueCE?k.el:null;try{se&&se._beginPatch(),S(k,M,Z,Q,he,ge,ye)}finally{se&&se._endPatch()}}},A=(k,M,H,te,Z,Q,he,ge)=>{let ye,se;const{props:Ie,shapeFlag:ke,transition:Ee,dirs:Te}=k;if(ye=k.el=a(k.type,Q,Ie&&Ie.is,Ie),ke&8?u(ye,k.children):ke&16&&T(k.children,ye,null,te,Z,Tl(k,Q),he,ge),Te&&on(k,null,te,"created"),w(ye,k,k.scopeId,he,te),Ie){for(const He in Ie)He!=="value"&&!Ti(He)&&o(ye,He,null,Ie[He],Q,te);"value"in Ie&&o(ye,"value",null,Ie.value,Q),(se=Ie.onVnodeBeforeMount)&&wr(se,te,k)}Te&&on(k,null,te,"beforeMount");const De=ap(Z,Ee);De&&Ee.beforeEnter(ye),n(ye,M,H),((se=Ie&&Ie.onVnodeMounted)||De||Te)&&At(()=>{se&&wr(se,te,k),De&&Ee.enter(ye),Te&&on(k,null,te,"mounted")},Z)},w=(k,M,H,te,Z)=>{if(H&&d(k,H),te)for(let Q=0;Q<te.length;Q++)d(k,te[Q]);if(Z){let Q=Z.subTree;if(M===Q||Cs(Q.type)&&(Q.ssContent===M||Q.ssFallback===M)){const he=Z.vnode;w(k,he,he.scopeId,he.slotScopeIds,Z.parent)}}},T=(k,M,H,te,Z,Q,he,ge,ye=0)=>{for(let se=ye;se<k.length;se++){const Ie=k[se]=ge?ei(k[se]):Ar(k[se]);m(null,Ie,M,H,te,Z,Q,he,ge)}},S=(k,M,H,te,Z,Q,he)=>{const ge=M.el=k.el;let{patchFlag:ye,dynamicChildren:se,dirs:Ie}=M;ye|=k.patchFlag&16;const ke=k.props||pt,Ee=M.props||pt;let Te;if(H&&mi(H,!1),(Te=Ee.onVnodeBeforeUpdate)&&wr(Te,H,M,k),Ie&&on(M,k,H,"beforeUpdate"),H&&mi(H,!0),(ke.innerHTML&&Ee.innerHTML==null||ke.textContent&&Ee.textContent==null)&&u(ge,""),se?_(k.dynamicChildren,se,ge,H,te,Tl(M,Z),Q):he||z(k,M,ge,null,H,te,Tl(M,Z),Q,!1),ye>0){if(ye&16)B(ge,ke,Ee,H,Z);else if(ye&2&&ke.class!==Ee.class&&o(ge,"class",null,Ee.class,Z),ye&4&&o(ge,"style",ke.style,Ee.style,Z),ye&8){const De=M.dynamicProps;for(let He=0;He<De.length;He++){const Ue=De[He],ft=ke[Ue],ut=Ee[Ue];(ut!==ft||Ue==="value")&&o(ge,Ue,ft,ut,Z,H)}}ye&1&&k.children!==M.children&&u(ge,M.children)}else!he&&se==null&&B(ge,ke,Ee,H,Z);((Te=Ee.onVnodeUpdated)||Ie)&&At(()=>{Te&&wr(Te,H,M,k),Ie&&on(M,k,H,"updated")},te)},_=(k,M,H,te,Z,Q,he)=>{for(let ge=0;ge<M.length;ge++){const ye=k[ge],se=M[ge],Ie=ye.el&&(ye.type===Ke||!qr(ye,se)||ye.shapeFlag&198)?h(ye.el):H;m(ye,se,Ie,null,te,Z,Q,he,!0)}},B=(k,M,H,te,Z)=>{if(M!==H){if(M!==pt)for(const Q in M)!Ti(Q)&&!(Q in H)&&o(k,Q,M[Q],null,Z,te);for(const Q in H){if(Ti(Q))continue;const he=H[Q],ge=M[Q];he!==ge&&Q!=="value"&&o(k,Q,ge,he,Z,te)}"value"in H&&o(k,"value",M.value,H.value,Z)}},E=(k,M,H,te,Z,Q,he,ge,ye)=>{const se=M.el=k?k.el:s(""),Ie=M.anchor=k?k.anchor:s("");let{patchFlag:ke,dynamicChildren:Ee,slotScopeIds:Te}=M;Te&&(ge=ge?ge.concat(Te):Te),k==null?(n(se,H,te),n(Ie,H,te),T(M.children||[],H,Ie,Z,Q,he,ge,ye)):ke>0&&ke&64&&Ee&&k.dynamicChildren&&k.dynamicChildren.length===Ee.length?(_(k.dynamicChildren,Ee,H,Z,Q,he,ge),(M.key!=null||Z&&M===Z.subTree)&&wu(k,M,!0)):z(k,M,H,Ie,Z,Q,he,ge,ye)},I=(k,M,H,te,Z,Q,he,ge,ye)=>{M.slotScopeIds=ge,k==null?M.shapeFlag&512?Z.ctx.activate(M,H,te,he,ye):W(M,H,te,Z,Q,he,ye):F(k,M,ye)},W=(k,M,H,te,Z,Q,he)=>{const ge=k.component=q2(k,te,Z);if(ka(k)&&(ge.ctx.renderer=Se),H2(ge,!1,he),ge.asyncDep){if(Z&&Z.registerDep(ge,D,he),!k.el){const ye=ge.subTree=tt(Et);C(null,ye,M,H),k.placeholder=ye.el}}else D(ge,k,M,H,Z,Q,he)},F=(k,M,H)=>{const te=M.component=k.component;if(w2(k,M,H))if(te.asyncDep&&!te.asyncResolved){R(te,M,H);return}else te.next=M,te.update();else M.el=k.el,te.vnode=M},D=(k,M,H,te,Z,Q,he)=>{const ge=()=>{if(k.isMounted){let{next:ke,bu:Ee,u:Te,parent:De,vnode:He}=k;{const wt=sp(k);if(wt){ke&&(ke.el=He.el,R(k,ke,he)),wt.asyncDep.then(()=>{k.isUnmounted||ge()});return}}let Ue=ke,ft;mi(k,!1),ke?(ke.el=He.el,R(k,ke,he)):ke=He,Ee&&uo(Ee),(ft=ke.props&&ke.props.onVnodeBeforeUpdate)&&wr(ft,De,ke,He),mi(k,!0);const ut=Sl(k),gt=k.subTree;k.subTree=ut,m(gt,ut,h(gt.el),N(gt),k,Z,Q),ke.el=ut.el,Ue===null&&rl(k,ut.el),Te&&At(Te,Z),(ft=ke.props&&ke.props.onVnodeUpdated)&&At(()=>wr(ft,De,ke,He),Z)}else{let ke;const{el:Ee,props:Te}=M,{bm:De,m:He,parent:Ue,root:ft,type:ut}=k,gt=An(M);if(mi(k,!1),De&&uo(De),!gt&&(ke=Te&&Te.onVnodeBeforeMount)&&wr(ke,Ue,M),mi(k,!0),Ee&&K){const wt=()=>{k.subTree=Sl(k),K(Ee,k.subTree,k,Z,null)};gt&&ut.__asyncHydrate?ut.__asyncHydrate(Ee,k,wt):wt()}else{ft.ce&&ft.ce._def.shadowRoot!==!1&&ft.ce._injectChildStyle(ut);const wt=k.subTree=Sl(k);m(null,wt,H,te,k,Z,Q),M.el=wt.el}if(He&&At(He,Z),!gt&&(ke=Te&&Te.onVnodeMounted)){const wt=M;At(()=>wr(ke,Ue,wt),Z)}(M.shapeFlag&256||Ue&&An(Ue.vnode)&&Ue.vnode.shapeFlag&256)&&k.a&&At(k.a,Z),k.isMounted=!0,M=H=te=null}};k.scope.on();const ye=k.effect=new uf(ge);k.scope.off();const se=k.update=ye.run.bind(ye),Ie=k.job=ye.runIfDirty.bind(ye);Ie.i=k,Ie.id=k.uid,ye.scheduler=()=>pu(Ie),mi(k,!0),se()},R=(k,M,H)=>{M.component=k;const te=k.vnode.props;k.vnode=M,k.next=null,_2(k,M.props,te,H),M2(k,M.children,H),Bn(),ch(k),Ln()},z=(k,M,H,te,Z,Q,he,ge,ye=!1)=>{const se=k&&k.children,Ie=k?k.shapeFlag:0,ke=M.children,{patchFlag:Ee,shapeFlag:Te}=M;if(Ee>0){if(Ee&128){re(se,ke,H,te,Z,Q,he,ge,ye);return}else if(Ee&256){V(se,ke,H,te,Z,Q,he,ge,ye);return}}Te&8?(Ie&16&&be(se,Z,Q),ke!==se&&u(H,ke)):Ie&16?Te&16?re(se,ke,H,te,Z,Q,he,ge,ye):be(se,Z,Q,!0):(Ie&8&&u(H,""),Te&16&&T(ke,H,te,Z,Q,he,ge,ye))},V=(k,M,H,te,Z,Q,he,ge,ye)=>{k=k||lo,M=M||lo;const se=k.length,Ie=M.length,ke=Math.min(se,Ie);let Ee;for(Ee=0;Ee<ke;Ee++){const Te=M[Ee]=ye?ei(M[Ee]):Ar(M[Ee]);m(k[Ee],Te,H,null,Z,Q,he,ge,ye)}se>Ie?be(k,Z,Q,!0,!1,ke):T(M,H,te,Z,Q,he,ge,ye,ke)},re=(k,M,H,te,Z,Q,he,ge,ye)=>{let se=0;const Ie=M.length;let ke=k.length-1,Ee=Ie-1;for(;se<=ke&&se<=Ee;){const Te=k[se],De=M[se]=ye?ei(M[se]):Ar(M[se]);if(qr(Te,De))m(Te,De,H,null,Z,Q,he,ge,ye);else break;se++}for(;se<=ke&&se<=Ee;){const Te=k[ke],De=M[Ee]=ye?ei(M[Ee]):Ar(M[Ee]);if(qr(Te,De))m(Te,De,H,null,Z,Q,he,ge,ye);else break;ke--,Ee--}if(se>ke){if(se<=Ee){const Te=Ee+1,De=Te<Ie?M[Te].el:te;for(;se<=Ee;)m(null,M[se]=ye?ei(M[se]):Ar(M[se]),H,De,Z,Q,he,ge,ye),se++}}else if(se>Ee)for(;se<=ke;)Ce(k[se],Z,Q,!0),se++;else{const Te=se,De=se,He=new Map;for(se=De;se<=Ee;se++){const Je=M[se]=ye?ei(M[se]):Ar(M[se]);Je.key!=null&&He.set(Je.key,se)}let Ue,ft=0;const ut=Ee-De+1;let gt=!1,wt=0;const Ot=new Array(ut);for(se=0;se<ut;se++)Ot[se]=0;for(se=Te;se<=ke;se++){const Je=k[se];if(ft>=ut){Ce(Je,Z,Q,!0);continue}let Y;if(Je.key!=null)Y=He.get(Je.key);else for(Ue=De;Ue<=Ee;Ue++)if(Ot[Ue-De]===0&&qr(Je,M[Ue])){Y=Ue;break}Y===void 0?Ce(Je,Z,Q,!0):(Ot[Y-De]=se+1,Y>=wt?wt=Y:gt=!0,m(Je,M[Y],H,null,Z,Q,he,ge,ye),ft++)}const yt=gt?B2(Ot):lo;for(Ue=yt.length-1,se=ut-1;se>=0;se--){const Je=De+se,Y=M[Je],q=M[Je+1],oe=Je+1<Ie?q.el||lp(q):te;Ot[se]===0?m(null,Y,H,oe,Z,Q,he,ge,ye):gt&&(Ue<0||se!==yt[Ue]?de(Y,H,oe,2):Ue--)}}},de=(k,M,H,te,Z=null)=>{const{el:Q,type:he,transition:ge,children:ye,shapeFlag:se}=k;if(se&6){de(k.component.subTree,M,H,te);return}if(se&128){k.suspense.move(M,H,te);return}if(se&64){he.move(k,M,H,Se);return}if(he===Ke){n(Q,M,H);for(let ke=0;ke<ye.length;ke++)de(ye[ke],M,H,te);n(k.anchor,M,H);return}if(he===ns){g(k,M,H);return}if(te!==2&&se&1&&ge)if(te===0)ge.beforeEnter(Q),n(Q,M,H),At(()=>ge.enter(Q),Z);else{const{leave:ke,delayLeave:Ee,afterLeave:Te}=ge,De=()=>{k.ctx.isUnmounted?i(Q):n(Q,M,H)},He=()=>{Q._isLeaving&&Q[_n](!0),ke(Q,()=>{De(),Te&&Te()})};Ee?Ee(Q,De,He):He()}else n(Q,M,H)},Ce=(k,M,H,te=!1,Z=!1)=>{const{type:Q,props:he,ref:ge,children:ye,dynamicChildren:se,shapeFlag:Ie,patchFlag:ke,dirs:Ee,cacheIndex:Te}=k;if(ke===-2&&(Z=!1),ge!=null&&(Bn(),fo(ge,null,H,k,!0),Ln()),Te!=null&&(M.renderCache[Te]=void 0),Ie&256){M.ctx.deactivate(k);return}const De=Ie&1&&Ee,He=!An(k);let Ue;if(He&&(Ue=he&&he.onVnodeBeforeUnmount)&&wr(Ue,M,k),Ie&6)pe(k.component,H,te);else{if(Ie&128){k.suspense.unmount(H,te);return}De&&on(k,null,M,"beforeUnmount"),Ie&64?k.type.remove(k,M,H,Se,te):se&&!se.hasOnce&&(Q!==Ke||ke>0&&ke&64)?be(se,M,H,!1,!0):(Q===Ke&&ke&384||!Z&&Ie&16)&&be(ye,M,H),te&&ce(k)}(He&&(Ue=he&&he.onVnodeUnmounted)||De)&&At(()=>{Ue&&wr(Ue,M,k),De&&on(k,null,M,"unmounted")},H)},ce=k=>{const{type:M,el:H,anchor:te,transition:Z}=k;if(M===Ke){ee(H,te);return}if(M===ns){b(k);return}const Q=()=>{i(H),Z&&!Z.persisted&&Z.afterLeave&&Z.afterLeave()};if(k.shapeFlag&1&&Z&&!Z.persisted){const{leave:he,delayLeave:ge}=Z,ye=()=>he(H,Q);ge?ge(k.el,Q,ye):ye()}else Q()},ee=(k,M)=>{let H;for(;k!==M;)H=f(k),i(k),k=H;i(M)},pe=(k,M,H)=>{const{bum:te,scope:Z,job:Q,subTree:he,um:ge,m:ye,a:se}=k;_s(ye),_s(se),te&&uo(te),Z.stop(),Q&&(Q.flags|=8,Ce(he,k,M,H)),ge&&At(ge,M),At(()=>{k.isUnmounted=!0},M)},be=(k,M,H,te=!1,Z=!1,Q=0)=>{for(let he=Q;he<k.length;he++)Ce(k[he],M,H,te,Z)},N=k=>{if(k.shapeFlag&6)return N(k.component.subTree);if(k.shapeFlag&128)return k.suspense.next();const M=f(k.anchor||k.el),H=M&&M[Lf];return H?f(H):M};let me=!1;const fe=(k,M,H)=>{let te;k==null?M._vnode&&(Ce(M._vnode,null,null,!0),te=M._vnode.component):m(M._vnode||null,k,M,null,null,null,H),M._vnode=k,me||(me=!0,ch(te),vs(),me=!1)},Se={p:m,um:Ce,m:de,r:ce,mt:W,mc:T,pc:z,pbc:_,n:N,o:e};let $e,K;return t&&([$e,K]=t(Se)),{render:fe,hydrate:$e,createApp:p2(fe,$e)}}function Tl({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function mi({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ap(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function wu(e,t,r=!1){const n=e.children,i=t.children;if(ze(n)&&ze(i))for(let o=0;o<n.length;o++){const a=n[o];let s=i[o];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[o]=ei(i[o]),s.el=a.el),!r&&s.patchFlag!==-2&&wu(a,s)),s.type===Ei&&(s.patchFlag!==-1?s.el=a.el:s.__elIndex=o+(e.type===Ke?1:0)),s.type===Et&&!s.el&&(s.el=a.el)}}function B2(e){const t=e.slice(),r=[0];let n,i,o,a,s;const l=e.length;for(n=0;n<l;n++){const c=e[n];if(c!==0){if(i=r[r.length-1],e[i]<c){t[n]=i,r.push(n);continue}for(o=0,a=r.length-1;o<a;)s=o+a>>1,e[r[s]]<c?o=s+1:a=s;c<e[r[o]]&&(o>0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,a=r[o-1];o-- >0;)r[o]=a,a=t[a];return r}function sp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:sp(t)}function _s(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function lp(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?lp(t.subTree):null}const Cs=e=>e.__isSuspense;let xc=0;const L2={name:"Suspense",__isSuspense:!0,process(e,t,r,n,i,o,a,s,l,c){if(e==null)$2(t,r,n,i,o,a,s,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}D2(e,t,r,n,i,a,s,l,c)}},hydrate:F2,normalize:I2},L9=L2;function la(e,t){const r=e.props&&e.props[t];qe(r)&&r()}function $2(e,t,r,n,i,o,a,s,l){const{p:c,o:{createElement:u}}=l,h=u("div"),f=e.suspense=cp(e,i,n,t,h,r,o,a,s,l);c(null,f.pendingBranch=e.ssContent,h,null,n,f,o,a),f.deps>0?(la(e,"onPending"),la(e,"onFallback"),c(null,e.ssFallback,t,r,n,null,o,a),po(f,e.ssFallback)):f.resolve(!1,!0)}function D2(e,t,r,n,i,o,a,s,{p:l,um:c,o:{createElement:u}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const f=t.ssContent,d=t.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:y,isHydrating:C}=h;if(m)h.pendingBranch=f,qr(m,f)?(l(m,f,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0?h.resolve():y&&(C||(l(p,d,r,n,i,null,o,a,s),po(h,d)))):(h.pendingId=xc++,C?(h.isHydrating=!1,h.activeBranch=m):c(m,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=u("div"),y?(l(null,f,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0?h.resolve():(l(p,d,r,n,i,null,o,a,s),po(h,d))):p&&qr(p,f)?(l(p,f,r,n,i,h,o,a,s),h.resolve(!0)):(l(null,f,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0&&h.resolve()));else if(p&&qr(p,f))l(p,f,r,n,i,h,o,a,s),po(h,f);else if(la(t,"onPending"),h.pendingBranch=f,f.shapeFlag&512?h.pendingId=f.component.suspenseId:h.pendingId=xc++,l(null,f,h.hiddenContainer,null,i,h,o,a,s),h.deps<=0)h.resolve();else{const{timeout:x,pendingId:g}=h;x>0?setTimeout(()=>{h.pendingId===g&&h.fallback(d)},x):x===0&&h.fallback(d)}}function cp(e,t,r,n,i,o,a,s,l,c,u=!1){const{p:h,m:f,um:d,n:p,o:{parentNode:m,remove:y}}=c;let C;const x=O2(e);x&&t&&t.pendingBranch&&(C=t.pendingId,t.deps++);const g=e.props?nf(e.props.timeout):void 0,b=o,v={vnode:e,parent:t,parentComponent:r,namespace:a,container:n,hiddenContainer:i,deps:0,pendingId:xc++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(A=!1,w=!1){const{vnode:T,activeBranch:S,pendingBranch:_,pendingId:B,effects:E,parentComponent:I,container:W,isInFallback:F}=v;let D=!1;v.isHydrating?v.isHydrating=!1:A||(D=S&&_.transition&&_.transition.mode==="out-in",D&&(S.transition.afterLeave=()=>{B===v.pendingId&&(f(_,W,o===b?p(S):o,0),pc(E),F&&T.ssFallback&&(T.ssFallback.el=null))}),S&&(m(S.el)===W&&(o=p(S)),d(S,I,v,!0),!D&&F&&T.ssFallback&&At(()=>T.ssFallback.el=null,v)),D||f(_,W,o,0)),po(v,_),v.pendingBranch=null,v.isInFallback=!1;let R=v.parent,z=!1;for(;R;){if(R.pendingBranch){R.effects.push(...E),z=!0;break}R=R.parent}!z&&!D&&pc(E),v.effects=[],x&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!w&&t.resolve()),la(T,"onResolve")},fallback(A){if(!v.pendingBranch)return;const{vnode:w,activeBranch:T,parentComponent:S,container:_,namespace:B}=v;la(w,"onFallback");const E=p(T),I=()=>{v.isInFallback&&(h(null,A,_,E,S,null,B,s,l),po(v,A))},W=A.transition&&A.transition.mode==="out-in";W&&(T.transition.afterLeave=I),v.isInFallback=!0,d(T,S,null,!0),W||I()},move(A,w,T){v.activeBranch&&f(v.activeBranch,A,w,T),v.container=A},next(){return v.activeBranch&&p(v.activeBranch)},registerDep(A,w,T){const S=!!v.pendingBranch;S&&v.deps++;const _=A.vnode.el;A.asyncDep.catch(B=>{Lo(B,A,0)}).then(B=>{if(A.isUnmounted||v.isUnmounted||v.pendingId!==A.suspenseId)return;A.asyncResolved=!0;const{vnode:E}=A;kc(A,B),_&&(E.el=_);const I=!_&&A.subTree.el;w(A,E,m(_||A.subTree.el),_?null:p(A.subTree),v,a,T),I&&(E.placeholder=null,y(I)),rl(A,E.el),S&&--v.deps===0&&v.resolve()})},unmount(A,w){v.isUnmounted=!0,v.activeBranch&&d(v.activeBranch,r,A,w),v.pendingBranch&&d(v.pendingBranch,r,A,w)}};return v}function F2(e,t,r,n,i,o,a,s,l){const c=t.suspense=cp(t,n,r,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),u=l(e,c.pendingBranch=t.ssContent,r,c,o,a);return c.deps===0&&c.resolve(!1,!0),u}function I2(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=Th(n?r.default:r),e.ssFallback=n?Th(r.fallback):tt(Et)}function Th(e){let t;if(qe(e)){const r=Ni&&e._c;r&&(e._d=!1,j()),e=e(),r&&(e._d=!0,t=Kt,hp())}return ze(e)&&(e=b2(e)),e=Ar(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function up(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):pc(e)}function po(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;r.el=i,n&&n.subTree===r&&(n.vnode.el=i,rl(n,i))}function O2(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ke=Symbol.for("v-fgt"),Ei=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),ns=Symbol.for("v-stc"),Zo=[];let Kt=null;function j(e=!1){Zo.push(Kt=e?null:[])}function hp(){Zo.pop(),Kt=Zo[Zo.length-1]||null}let Ni=1;function Ss(e,t=!1){Ni+=e,e<0&&Kt&&t&&(Kt.hasOnce=!0)}function dp(e){return e.dynamicChildren=Ni>0?Kt||lo:null,hp(),Ni>0&&Kt&&Kt.push(e),e}function G(e,t,r,n,i,o){return dp(L(e,t,r,n,i,o,!0))}function ht(e,t,r,n,i){return dp(tt(e,t,r,n,i,!0))}function zi(e){return e?e.__v_isVNode===!0:!1}function qr(e,t){return e.type===t.type&&e.key===t.key}const fp=({key:e})=>e??null,is=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?xt(e)||Lt(e)||qe(e)?{i:Wt,r:e,k:t,f:!!r}:e:null);function L(e,t=null,r=null,n=0,i=null,o=e===Ke?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fp(t),ref:t&&is(t),scopeId:Ef,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Wt};return s?(ku(l,r),o&128&&e.normalize(l)):r&&(l.shapeFlag|=xt(r)?8:16),Ni>0&&!a&&Kt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Kt.push(l),l}const tt=R2;function R2(e,t=null,r=null,n=0,i=null,o=!1){if((!e||e===Wf)&&(e=Et),zi(e)){const s=Fn(e,t,!0);return r&&ku(s,r),Ni>0&&!o&&Kt&&(s.shapeFlag&6?Kt[Kt.indexOf(e)]=s:Kt.push(s)),s.patchFlag=-2,s}if(V2(e)&&(e=e.__vccOpts),t){t=N2(t);let{class:s,style:l}=t;s&&!xt(s)&&(t.class=Ae(s)),mt(l)&&(Ks(l)&&!ze(l)&&(l=$t({},l)),t.style=St(l))}const a=xt(e)?1:Cs(e)?128:$f(e)?64:mt(e)?4:qe(e)?2:0;return L(e,t,r,n,i,a,o,!0)}function N2(e){return e?Ks(e)||Jf(e)?$t({},e):e:null}function Fn(e,t,r=!1,n=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,c=t?Xr(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&fp(c),ref:t&&t.ref?r&&o?ze(o)?o.concat(is(t)):[o,is(t)]:is(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fn(e.ssContent),ssFallback:e.ssFallback&&Fn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&ci(u,l.clone(u)),u}function pp(e=" ",t=0){return tt(Ei,null,e,t)}function Qe(e="",t=!1){return t?(j(),ht(Et,null,e)):tt(Et,null,e)}function Ar(e){return e==null||typeof e=="boolean"?tt(Et):ze(e)?tt(Ke,null,e.slice()):zi(e)?ei(e):tt(Ei,null,String(e))}function ei(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Fn(e)}function ku(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ze(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),ku(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!Jf(t)?t._ctx=Wt:i===3&&Wt&&(Wt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else qe(t)?(t={default:t,_ctx:Wt},r=32):(t=String(t),n&64?(r=16,t=[pp(t)]):r=8);e.children=t,e.shapeFlag|=r}function Xr(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Ae([t.class,n.class]));else if(i==="style")t.style=St([t.style,n.style]);else if(va(i)){const o=t[i],a=n[i];a&&o!==a&&!(ze(o)&&o.includes(a))&&(t[i]=o?[].concat(o,a):a)}else i!==""&&(t[i]=n[i])}return t}function wr(e,t,r,n=null){Yr(e,t,7,[r,n])}const z2=Xf();let P2=0;function q2(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||z2,o={uid:P2++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new lf(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:tp(n,i),emitsOptions:Kf(n,i),emit:null,emitted:null,propsDefaults:pt,inheritAttrs:n.inheritAttrs,ctx:pt,data:pt,props:pt,attrs:pt,slots:pt,refs:pt,setupState:pt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=g2.bind(null,o),e.ce&&e.ce(o),o}let jt=null;const zn=()=>jt||Wt;let Ts,wc;{const e=Ys(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};Ts=t("__VUE_INSTANCE_SETTERS__",r=>jt=r),wc=t("__VUE_SSR_SETTERS__",r=>To=r)}const Ca=e=>{const t=jt;return Ts(e),e.scope.on(),()=>{e.scope.off(),Ts(t)}},Mh=()=>{jt&&jt.scope.off(),Ts(null)};function mp(e){return e.vnode.shapeFlag&4}let To=!1;function H2(e,t=!1,r=!1){t&&wc(t);const{props:n,children:i}=e.vnode,o=mp(e);k2(e,n,o,t),T2(e,i,r||t);const a=o?j2(e,t):void 0;return t&&wc(!1),a}function j2(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,o2);const{setup:n}=r;if(n){Bn();const i=e.setupContext=n.length>1?yp(e):null,o=Ca(e),a=wa(n,e,0,[e.props,i]),s=Jd(a);if(Ln(),o(),(s||e.sp)&&!An(e)&&yu(e),s){if(a.then(Mh,Mh),t)return a.then(l=>{kc(e,l)}).catch(l=>{Lo(l,e,0)});e.asyncDep=a}else kc(e,a)}else gp(e)}function kc(e,t,r){qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:mt(t)&&(e.setupState=Sf(t)),gp(e)}function gp(e,t,r){const n=e.type;e.render||(e.render=n.render||un);{const i=Ca(e);Bn();try{l2(e)}finally{Ln(),i()}}}const W2={get(e,t){return Xt(e,"get",""),e[t]}};function yp(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,W2),slots:e.slots,emit:e.emit,expose:t}}function nl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Sf(fc(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ko)return Ko[r](e)},has(t,r){return r in t||r in Ko}})):e.proxy}function _c(e,t=!0){return qe(e)?e.displayName||e.name:e.name||t&&e.__name}function V2(e){return qe(e)&&"__vccOpts"in e}const ue=(e,t)=>Fg(e,t,To);function Nr(e,t,r){try{Ss(-1);const n=arguments.length;return n===2?mt(t)&&!ze(t)?zi(t)?tt(e,null,[t]):tt(e,t):tt(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&zi(r)&&(r=[r]),tt(e,t,r))}finally{Ss(1)}}function $o(e,t,r,n){const i=r[n];if(i&&il(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=n,r[n]=o}function il(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n<r.length;n++)if(Mn(r[n],t[n]))return!1;return Ni>0&&Kt&&Kt.push(e),!0}const U2="3.5.27";let Cc;const Ah=typeof window<"u"&&window.trustedTypes;if(Ah)try{Cc=Ah.createPolicy("vue",{createHTML:e=>e})}catch{}const bp=Cc?e=>Cc.createHTML(e):e=>e,G2="http://www.w3.org/2000/svg",Y2="http://www.w3.org/1998/Math/MathML",kn=typeof document<"u"?document:null,Eh=kn&&kn.createElement("template"),X2={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?kn.createElementNS(G2,e):t==="mathml"?kn.createElementNS(Y2,e):r?kn.createElement(e,{is:r}):kn.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>kn.createTextNode(e),createComment:e=>kn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>kn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,o){const a=r?r.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===o||!(i=i.nextSibling)););else{Eh.innerHTML=bp(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const s=Eh.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[a?a.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Xn="transition",zo="animation",Mo=Symbol("_vtc"),vp={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},xp=$t({},Of,vp),K2=e=>(e.displayName="Transition",e.props=xp,e),Pn=K2((e,{slots:t})=>Nr(Vg,wp(e),t)),gi=(e,t=[])=>{ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},Bh=e=>e?ze(e)?e.some(t=>t.length>1):e.length>1:!1;function wp(e){const t={};for(const E in e)E in vp||(t[E]=e[E]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:o=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=o,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:h=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:d=`${r}-leave-to`}=e,p=Z2(i),m=p&&p[0],y=p&&p[1],{onBeforeEnter:C,onEnter:x,onEnterCancelled:g,onLeave:b,onLeaveCancelled:v,onBeforeAppear:A=C,onAppear:w=x,onAppearCancelled:T=g}=t,S=(E,I,W,F)=>{E._enterCancelled=F,Zn(E,I?u:s),Zn(E,I?c:a),W&&W()},_=(E,I)=>{E._isLeaving=!1,Zn(E,h),Zn(E,d),Zn(E,f),I&&I()},B=E=>(I,W)=>{const F=E?w:x,D=()=>S(I,E,W);gi(F,[I,D]),Lh(()=>{Zn(I,E?l:o),tn(I,E?u:s),Bh(F)||$h(I,n,m,D)})};return $t(t,{onBeforeEnter(E){gi(C,[E]),tn(E,o),tn(E,a)},onBeforeAppear(E){gi(A,[E]),tn(E,l),tn(E,c)},onEnter:B(!1),onAppear:B(!0),onLeave(E,I){E._isLeaving=!0;const W=()=>_(E,I);tn(E,h),E._enterCancelled?(tn(E,f),Sc(E)):(Sc(E),tn(E,f)),Lh(()=>{E._isLeaving&&(Zn(E,h),tn(E,d),Bh(b)||$h(E,n,y,W))}),gi(b,[E,W])},onEnterCancelled(E){S(E,!1,void 0,!0),gi(g,[E])},onAppearCancelled(E){S(E,!0,void 0,!0),gi(T,[E])},onLeaveCancelled(E){_(E),gi(v,[E])}})}function Z2(e){if(e==null)return null;if(mt(e))return[Ml(e.enter),Ml(e.leave)];{const t=Ml(e);return[t,t]}}function Ml(e){return nf(e)}function tn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Mo]||(e[Mo]=new Set)).add(t)}function Zn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Mo];r&&(r.delete(t),r.size||(e[Mo]=void 0))}function Lh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Q2=0;function $h(e,t,r,n){const i=e._endId=++Q2,o=()=>{i===e._endId&&n()};if(r!=null)return setTimeout(o,r);const{type:a,timeout:s,propCount:l}=kp(e,t);if(!a)return n();const c=a+"end";let u=0;const h=()=>{e.removeEventListener(c,f),o()},f=d=>{d.target===e&&++u>=l&&h()};setTimeout(()=>{u<l&&h()},s+1),e.addEventListener(c,f)}function kp(e,t){const r=window.getComputedStyle(e),n=p=>(r[p]||"").split(", "),i=n(`${Xn}Delay`),o=n(`${Xn}Duration`),a=Dh(i,o),s=n(`${zo}Delay`),l=n(`${zo}Duration`),c=Dh(s,l);let u=null,h=0,f=0;t===Xn?a>0&&(u=Xn,h=a,f=o.length):t===zo?c>0&&(u=zo,h=c,f=l.length):(h=Math.max(a,c),u=h>0?a>c?Xn:zo:null,f=u?u===Xn?o.length:l.length:0);const d=u===Xn&&/\b(?:transform|all)(?:,|$)/.test(n(`${Xn}Property`).toString());return{type:u,timeout:h,propCount:f,hasTransform:d}}function Dh(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>Fh(r)+Fh(e[n])))}function Fh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(e){return(e?e.ownerDocument:document).body.offsetHeight}function J2(e,t,r){const n=e[Mo];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Ms=Symbol("_vod"),_p=Symbol("_vsh"),In={name:"show",beforeMount(e,{value:t},{transition:r}){e[Ms]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Po(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Po(e,!0),n.enter(e)):n.leave(e,()=>{Po(e,!1)}):Po(e,t))},beforeUnmount(e,{value:t}){Po(e,t)}};function Po(e,t){e.style.display=t?e[Ms]:"none",e[_p]=!t}const ey=Symbol(""),ty=/(?:^|;)\s*display\s*:/;function ry(e,t,r){const n=e.style,i=xt(r);let o=!1;if(r&&!i){if(t)if(xt(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();r[s]==null&&os(n,s,"")}else for(const a in t)r[a]==null&&os(n,a,"");for(const a in r)a==="display"&&(o=!0),os(n,a,r[a])}else if(i){if(t!==r){const a=n[ey];a&&(r+=";"+a),n.cssText=r,o=ty.test(r)}}else t&&e.removeAttribute("style");Ms in e&&(e[Ms]=o?n.display:"",e[_p]&&(n.display="none"))}const Ih=/\s*!important$/;function os(e,t,r){if(ze(r))r.forEach(n=>os(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=ny(e,t);Ih.test(r)?e.setProperty(ui(n),r.replace(Ih,""),"important"):e[n]=r}}const Oh=["Webkit","Moz","ms"],Al={};function ny(e,t){const r=Al[t];if(r)return r;let n=Rr(t);if(n!=="filter"&&n in e)return Al[t]=n;n=Gs(n);for(let i=0;i<Oh.length;i++){const o=Oh[i]+n;if(o in e)return Al[t]=o}return t}const Rh="http://www.w3.org/1999/xlink";function Nh(e,t,r,n,i,o=og(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Rh,t.slice(6,t.length)):e.setAttributeNS(Rh,t,r):r==null||o&&!of(r)?e.removeAttribute(t):e.setAttribute(t,o?"":Rn(r)?String(r):r)}function zh(e,t,r,n,i){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?bp(r):r);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const s=o==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(s!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let a=!1;if(r===""||r==null){const s=typeof e[t];s==="boolean"?r=of(r):r==null&&s==="string"?(r="",a=!0):s==="number"&&(r=0,a=!0)}try{e[t]=r}catch{}a&&e.removeAttribute(i||t)}function to(e,t,r,n){e.addEventListener(t,r,n)}function iy(e,t,r,n){e.removeEventListener(t,r,n)}const Ph=Symbol("_vei");function oy(e,t,r,n,i=null){const o=e[Ph]||(e[Ph]={}),a=o[t];if(n&&a)a.value=n;else{const[s,l]=ay(t);if(n){const c=o[t]=cy(n,i);to(e,s,c,l)}else a&&(iy(e,s,a,l),o[t]=void 0)}}const qh=/(?:Once|Passive|Capture)$/;function ay(e){let t;if(qh.test(e)){t={};let n;for(;n=e.match(qh);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ui(e.slice(2)),t]}let El=0;const sy=Promise.resolve(),ly=()=>El||(sy.then(()=>El=0),El=Date.now());function cy(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Yr(uy(n,r.value),t,5,[n])};return r.value=e,r.attached=ly(),r}function uy(e,t){if(ze(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Hh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hy=(e,t,r,n,i,o)=>{const a=i==="svg";t==="class"?J2(e,n,a):t==="style"?ry(e,r,n):va(t)?ou(t)||oy(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dy(e,t,n,a))?(zh(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Nh(e,t,n,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!xt(n))?zh(e,Rr(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Nh(e,t,n,a))};function dy(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Hh(t)&&qe(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Hh(t)&&xt(r)?!1:t in e}const Cp=new WeakMap,Sp=new WeakMap,As=Symbol("_moveCb"),jh=Symbol("_enterCb"),fy=e=>(delete e.props.mode,e),py=fy({name:"TransitionGroup",props:$t({},xp,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=zn(),n=If();let i,o;return bu(()=>{if(!i.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!by(i[0].el,r.vnode.el,a)){i=[];return}i.forEach(my),i.forEach(gy);const s=i.filter(yy);Sc(r.vnode.el),s.forEach(l=>{const c=l.el,u=c.style;tn(c,a),u.transform=u.webkitTransform=u.transitionDuration="";const h=c[As]=f=>{f&&f.target!==c||(!f||f.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",h),c[As]=null,Zn(c,a))};c.addEventListener("transitionend",h)}),i=[]}),()=>{const a=ot(e),s=wp(a);let l=a.tag||Ke;if(i=[],o)for(let c=0;c<o.length;c++){const u=o[c];u.el&&u.el instanceof Element&&(i.push(u),ci(u,sa(u,s,n,r)),Cp.set(u,{left:u.el.offsetLeft,top:u.el.offsetTop}))}o=t.default?gu(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&ci(u,sa(u,s,n,r))}return tt(l,null,o)}}}),$9=py;function my(e){const t=e.el;t[As]&&t[As](),t[jh]&&t[jh]()}function gy(e){Sp.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function yy(e){const t=Cp.get(e),r=Sp.get(e),n=t.left-r.left,i=t.top-r.top;if(n||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${n}px,${i}px)`,o.transitionDuration="0s",e}}function by(e,t,r){const n=e.cloneNode(),i=e[Mo];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(n);const{hasTransform:a}=kp(n);return o.removeChild(n),a}const Wh=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ze(t)?r=>uo(t,r):t};function vy(e){e.target.composing=!0}function Vh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Bl=Symbol("_assign");function Uh(e,t,r){return t&&(e=e.trim()),r&&(e=su(e)),e}const D9={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[Bl]=Wh(i);const o=n||i.props&&i.props.type==="number";to(e,t?"change":"input",a=>{a.target.composing||e[Bl](Uh(e.value,r,o))}),(r||o)&&to(e,"change",()=>{e.value=Uh(e.value,r,o)}),t||(to(e,"compositionstart",vy),to(e,"compositionend",Vh),to(e,"change",Vh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:o}},a){if(e[Bl]=Wh(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?su(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===l)||(e.value=l))}},xy=["ctrl","shift","alt","meta"],wy={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>xy.some(r=>e[`${r}Key`]&&!t.includes(r))},_u=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=((i,...o)=>{for(let a=0;a<t.length;a++){const s=wy[t[a]];if(s&&s(i,t))return}return e(i,...o)}))},ky={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},F9=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=(i=>{if(!("key"in i))return;const o=ui(i.key);if(t.some(a=>a===o||ky[a]===o))return e(i)}))},Tp=$t({patchProp:hy},X2);let Qo,Gh=!1;function _y(){return Qo||(Qo=A2(Tp))}function Cy(){return Qo=Gh?Qo:E2(Tp),Gh=!0,Qo}const Sy=((...e)=>{const t=_y().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=Ap(n);if(!i)return;const o=t._component;!qe(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=r(i,!1,Mp(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t}),I9=((...e)=>{const t=Cy().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=Ap(n);if(i)return r(i,!0,Mp(i))},t});function Mp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ap(e){return xt(e)?document.querySelector(e):e}const Ty=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,My=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Ay=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Ey(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){By(e);return}return t}function By(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Ly(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Ay.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Ty.test(e)||My.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Ey)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const $y=/#/g,Dy=/&/g,Fy=/\//g,Iy=/=/g,Cu=/\+/g,Oy=/%5e/gi,Ry=/%60/gi,Ny=/%7c/gi,zy=/%20/gi,Py=/%2f/gi;function qy(e){return encodeURI(""+e).replace(Ny,"|")}function Tc(e){return qy(typeof e=="string"?e:JSON.stringify(e)).replace(Cu,"%2B").replace(zy,"+").replace($y,"%23").replace(Dy,"%26").replace(Ry,"`").replace(Oy,"^").replace(Fy,"%2F")}function Ll(e){return Tc(e).replace(Iy,"%3D")}function ca(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function O9(e){return ca(e.replace(Py,"%252F"))}function Hy(e){return ca(e.replace(Cu," "))}function jy(e){return ca(e.replace(Cu," "))}function Su(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const i=Hy(n[1]);if(i==="__proto__"||i==="constructor")continue;const o=jy(n[2]||"");t[i]===void 0?t[i]=o:Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]}return t}function Wy(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${Ll(e)}=${Tc(r)}`).join("&"):`${Ll(e)}=${Tc(t)}`:Ll(e)}function Vy(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Wy(t,e[t])).filter(Boolean).join("&")}const Uy=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Gy=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Yy=/^([/\\]\s*){2,}[^/\\]/,Xy=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Ky=/\/$|\/\?|\/#/,Zy=/^\.?\//;function Wi(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Uy.test(e):Gy.test(e)||(t.acceptRelative?Yy.test(e):!1)}function Qy(e){return!!e&&Xy.test(e)}function Mc(e="",t){return t?Ky.test(e):e.endsWith("/")}function ua(e="",t){if(!t)return(Mc(e)?e.slice(0,-1):e)||"/";if(!Mc(e,!0))return e||"/";let r=e,n="";const i=e.indexOf("#");i!==-1&&(r=e.slice(0,i),n=e.slice(i));const[o,...a]=r.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(a.length>0?`?${a.join("?")}`:"")+n}function Ep(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Mc(e,!0))return e||"/";let r=e,n="";const i=e.indexOf("#");if(i!==-1&&(r=e.slice(0,i),n=e.slice(i),!r))return n;const[o,...a]=r.split("?");return o+"/"+(a.length>0?`?${a.join("?")}`:"")+n}function R9(e,t){if(Bp(t)||Wi(e))return e;const r=ua(t);if(e.startsWith(r)){const n=e[r.length];if(!n||n==="/"||n==="?")return e}return Tu(r,e)}function N9(e,t){if(Bp(t))return e;const r=ua(t);if(!e.startsWith(r))return e;const n=e[r.length];if(n&&n!=="/"&&n!=="?")return e;const i=e.slice(r.length);return i[0]==="/"?i:"/"+i}function Jy(e,t){const r=Dp(e),n={...Su(r.search),...t};return r.search=Vy(n),t4(r)}function Bp(e){return!e||e==="/"}function e4(e){return e&&e!=="/"}function Tu(e,...t){let r=e||"";for(const n of t.filter(i=>e4(i)))if(r){const i=n.replace(Zy,"");r=Ep(r)+i}else r=n;return r}function Lp(...e){const t=/\/(?!\/)/,r=e.filter(Boolean),n=[];let i=0;for(const a of r)if(!(!a||a==="/")){for(const[s,l]of a.split(t).entries())if(!(!l||l===".")){if(l===".."){if(n.length===1&&Wi(n[0]))continue;n.pop(),i--;continue}if(s===1&&n[n.length-1]?.endsWith(":/")){n[n.length-1]+="/"+l;continue}n.push(l),i++}}let o=n.join("/");return i>=0?r[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:r[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*i)+o,r[r.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function z9(e,t){return ca(ua(e))===ca(ua(t))}const $p=Symbol.for("ufo:protocolRelative");function Dp(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,h,f=""]=r;return{protocol:h.toLowerCase(),pathname:f,href:h+f,auth:"",host:"",search:"",hash:""}}if(!Wi(e,{acceptRelative:!0}))return Yh(e);const[,n="",i,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,a="",s=""]=o.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(s=s.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=Yh(s);return{protocol:n.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:a,pathname:l,search:c,hash:u,[$p]:!n}}function Yh(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function t4(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",i=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[$p]?(e.protocol||"")+"//":"")+i+o+t+r+n}const r4=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Mu=()=>r4().app,P9=()=>Mu().baseURL,n4=()=>Mu().buildAssetsDir,Fp=(...e)=>Lp(Ip(),n4(),...e),Ip=(...e)=>{const t=Mu(),r=t.cdnURL||t.baseURL;return e.length?Lp(r,...e):r};globalThis.__buildAssetsURL=Fp,globalThis.__publicAssetsURL=Ip;function Ac(e,t={},r){for(const n in e){const i=e[n],o=r?`${r}:${n}`:n;typeof i=="object"&&i!==null?Ac(i,t,o):typeof i=="function"&&(t[o]=i)}return t}const i4={run:e=>e()},o4=()=>i4,Op=typeof console.createTask<"u"?console.createTask:o4;function a4(e,t){const r=t.shift(),n=Op(r);return e.reduce((i,o)=>i.then(()=>n.run(()=>o(...t))),Promise.resolve())}function s4(e,t){const r=t.shift(),n=Op(r);return Promise.all(e.map(i=>n.run(()=>i(...t))))}function $l(e,t){for(const r of[...e])r(t)}let l4=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,r,n={}){if(!t||typeof r!="function")return()=>{};const i=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!n.allowDeprecated){let a=o.message;a||(a=`${i} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let n,i=(...o)=>(typeof n=="function"&&n(),n=void 0,i=void 0,r(...o));return n=this.hook(t,i),n}removeHook(t,r){if(this._hooks[t]){const n=this._hooks[t].indexOf(r);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const n=this._hooks[t]||[];delete this._hooks[t];for(const i of n)this.hook(t,i)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=Ac(t),n=Object.keys(r).map(i=>this.hook(i,r[i]));return()=>{for(const i of n.splice(0,n.length))i()}}removeHooks(t){const r=Ac(t);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(a4,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(s4,t,...r)}callHookWith(t,r,...n){const i=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&$l(this._before,i);const o=t(r in this._hooks?[...this._hooks[r]]:[],n);return o instanceof Promise?o.finally(()=>{this._after&&i&&$l(this._after,i)}):(this._after&&i&&$l(this._after,i),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}};function c4(){return new l4}function u4(e={}){let t,r=!1;const n=a=>{if(t&&t!==a)throw new Error("Context conflict")};let i;if(e.asyncContext){const a=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;a?i=new a:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(i){const a=i.getStore();if(a!==void 0)return a}return t};return{use:()=>{const a=o();if(a===void 0)throw new Error("Context is not available");return a},tryUse:()=>o(),set:(a,s)=>{s||n(a),t=a,r=!0},unset:()=>{t=void 0,r=!1},call:(a,s)=>{n(a),t=a;try{return i?i.run(a,s):s()}finally{r||(t=void 0)}},async callAsync(a,s){t=a;const l=()=>{t=a},c=()=>t===a?l:void 0;Ec.add(c);try{const u=i?i.run(a,s):s();return r||(t=void 0),await u}finally{Ec.delete(c)}}}}function h4(e={}){const t={};return{get(r,n={}){return t[r]||(t[r]=u4({...e,...n})),t[r]}}}const Es=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Xh="__unctx__",d4=Es[Xh]||(Es[Xh]=h4()),f4=(e,t={})=>d4.get(e,t),Kh="__unctx_async_handlers__",Ec=Es[Kh]||(Es[Kh]=new Set);function H9(e){const t=[];for(const i of Ec){const o=i();o&&t.push(o)}const r=()=>{for(const i of t)i()};let n=e();return n&&typeof n=="object"&&"catch"in n&&(n=n.catch(i=>{throw r(),i})),[n,r]}const j9=!1,W9=!1,V9={id:"__nuxt-loader"},p4={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},U9="#__nuxt",Rp="nuxt-app",G9=36e5,m4="vite:preloadError";function Np(e=Rp){return f4(e,{asyncContext:!1})}const g4="__nuxt_plugin";function Y9(e){let t=0;const r={_id:e.id||Rp||"nuxt-app",_scope:ag(),provide:void 0,versions:{get nuxt(){return"4.3.0"},get vue(){return r.vueApp.version}},payload:io({...e.ssrContext?.payload||{},data:io({}),state:ln({}),once:new Set,_errors:io({})}),static:{data:{}},runWithContext(i){return r._scope.active&&!cf()?r._scope.run(()=>Zh(r,i)):Zh(r,i)},isHydrating:!0,deferHydration(){if(!r.isHydrating)return()=>{};t++;let i=!1;return()=>{if(!i&&(i=!0,t--,t===0))return r.isHydrating=!1,r.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:io({}),_payloadRevivers:{},...e};{const i=window.__NUXT__;if(i)for(const o in i)switch(o){case"data":case"state":case"_errors":Object.assign(r.payload[o],i[o]);break;default:r.payload[o]=i[o]}}r.hooks=c4(),r.hook=r.hooks.hook,r.callHook=r.hooks.callHook,r.provide=(i,o)=>{const a="$"+i;za(r,a,o),za(r.vueApp.config.globalProperties,a,o)},za(r.vueApp,"$nuxt",r),za(r.vueApp.config.globalProperties,"$nuxt",r);{window.addEventListener(m4,o=>{r.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=It;const i=r.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});r.hook("app:mounted",i)}const n=r.payload.config;return r.provide("config",n),r}function y4(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function b4(e,t){if(typeof t=="function"){const{provide:r}=await e.runWithContext(()=>t(e))||{};if(r&&typeof r=="object")for(const n in r)e.provide(n,r[n])}}async function X9(e,t){const r=new Set,n=[],i=[];let o,a=0;async function s(l){const c=l.dependsOn?.filter(u=>t.some(h=>h._name===u)&&!r.has(u))??[];if(c.length>0)n.push([new Set(c),l]);else{const u=b4(e,l).then(async()=>{l._name&&(r.add(l._name),await Promise.all(n.map(async([h,f])=>{h.has(l._name)&&(h.delete(l._name),h.size===0&&(a++,await s(f)))})))}).catch(h=>{if(!l.parallel&&!e.payload.error)throw h;o||=h});l.parallel?i.push(u):await u}}for(const l of t)y4(e,l);for(const l of t)await s(l);if(await Promise.all(i),a)for(let l=0;l<a;l++)await Promise.all(i);if(o)throw e.payload.error||o}function v4(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[g4]:!0,_name:t})}function Zh(e,t,r){const n=()=>t();return Np(e._id).set(e),e.vueApp.runWithContext(n)}function x4(e){let t;return Qs()&&(t=zn()?.appContext.app.$nuxt),t||=Np(e).tryUse(),t||null}function It(e){const t=x4(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Au(e){return It().$config}function za(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function Dl(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Bc(e,t,r=".",n){if(!Dl(t))return Bc(e,{},r,n);const i=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const a=e[o];a!=null&&(n&&n(i,o,a,r)||(Array.isArray(a)&&Array.isArray(i[o])?i[o]=[...a,...i[o]]:Dl(a)&&Dl(i[o])?i[o]=Bc(a,i[o],(r?`${r}.`:"")+o.toString(),n):i[o]=a))}return i}function w4(e){return(...t)=>t.reduce((r,n)=>Bc(r,n,"",e),{})}const k4=w4();function _4(e,t){try{return t in e}catch{return!1}}class Qh extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,r={}){super(t,r),r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const t={message:this.message,statusCode:Lc(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=zp(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function C4(e){if(typeof e=="string")return new Qh(e);if(S4(e))return e;const t=new Qh(e.message??e.statusMessage??"",{cause:e.cause||e});if(_4(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Lc(e.statusCode,t.statusCode):e.status&&(t.statusCode=Lc(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const r=t.statusMessage;zp(t.statusMessage)!==r&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function S4(e){return e?.constructor?.__h3_error__===!0}const T4=/[^\u0009\u0020-\u007E]/g;function zp(e=""){return e.replace(T4,"")}function Lc(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const K9=Symbol("layout-meta"),M4=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Pi=()=>It()?.$router,Pp=()=>Qs()?$r(M4,It()._route):It()._route;function Z9(e){return e}const A4=()=>{try{if(It()._processingMiddleware)return!0}catch{return!1}return!1},E4=(e,t)=>{e||="/";const r=typeof e=="string"?e:"path"in e?$c(e):Pi().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=[];for(const[h,f]of Object.entries(c))f!==void 0&&u.push(`${h.toLowerCase()}=${f}`);return open(r,l,u.join(", ")),Promise.resolve()}const n=Wi(r,{acceptRelative:!0}),i=t?.external||n;if(i){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(r,window.location.href);if(l&&Qy(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=A4();if(!i&&o){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:c,hash:u}=Dp(e);return{path:l,...c&&{query:Su(c)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const a=Pi(),s=It();return i?(s._scope.stop(),t?.replace?location.replace(r):location.href=r,o?s.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?a.replace(e):a.push(e)};function $c(e){return Jy(e.path||"",e.query||{})+(e.hash||"")}const qp="__nuxt_error",Hp=()=>Lg(It().payload,"error"),Q9=e=>{const t=B4(e);try{const r=Hp();It().hooks.callHook("app:error",t),r.value||=t}catch{throw t}return t},J9=async(e={})=>{const t=It(),r=Hp();t.callHook("app:error:cleared",e),e.redirect&&await Pi().replace(e.redirect),r.value=void 0},eC=e=>!!e&&typeof e=="object"&&qp in e,B4=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=C4(e);return Object.defineProperty(t,qp,{value:!0,configurable:!1,writable:!1}),t};function L4(e){const t=D4(e),r=new ArrayBuffer(t.length),n=new DataView(r);for(let i=0;i<r.byteLength;i++)n.setUint8(i,t.charCodeAt(i));return r}const $4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function D4(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",r=0,n=0;for(let i=0;i<e.length;i++)r<<=6,r|=$4.indexOf(e[i]),n+=6,n===24&&(t+=String.fromCharCode((r&16711680)>>16),t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255),r=n=0);return n===12?(r>>=4,t+=String.fromCharCode(r)):n===18&&(r>>=2,t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255)),t}const F4=-1,I4=-2,O4=-3,R4=-4,N4=-5,z4=-6;function P4(e,t){return q4(JSON.parse(e),t)}function q4(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,n=Array(r.length);let i=null;function o(a,s=!1){if(a===F4)return;if(a===O4)return NaN;if(a===R4)return 1/0;if(a===N4)return-1/0;if(a===z4)return-0;if(s||typeof a!="number")throw new Error("Invalid input");if(a in n)return n[a];const l=r[a];if(!l||typeof l!="object")n[a]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const c=l[0],u=t&&Object.hasOwn(t,c)?t[c]:void 0;if(u){let h=l[1];if(typeof h!="number"&&(h=r.push(l[1])-1),i??=new Set,i.has(h))throw new Error("Invalid circular reference");return i.add(h),n[a]=u(o(h)),i.delete(h),n[a]}switch(c){case"Date":n[a]=new Date(l[1]);break;case"Set":const h=new Set;n[a]=h;for(let p=1;p<l.length;p+=1)h.add(o(l[p]));break;case"Map":const f=new Map;n[a]=f;for(let p=1;p<l.length;p+=2)f.set(o(l[p]),o(l[p+1]));break;case"RegExp":n[a]=new RegExp(l[1],l[2]);break;case"Object":n[a]=Object(l[1]);break;case"BigInt":n[a]=BigInt(l[1]);break;case"null":const d=Object.create(null);n[a]=d;for(let p=1;p<l.length;p+=2)d[l[p]]=o(l[p+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{if(r[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const p=globalThis[c],m=o(l[1]),y=new p(m);n[a]=l[2]!==void 0?y.subarray(l[2],l[3]):y;break}case"ArrayBuffer":{const p=l[1];if(typeof p!="string")throw new Error("Invalid ArrayBuffer encoding");const m=L4(p);n[a]=m;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":{const p=c.slice(9);n[a]=Temporal[p].from(l[1]);break}case"URL":{const p=new URL(l[1]);n[a]=p;break}case"URLSearchParams":{const p=new URLSearchParams(l[1]);n[a]=p;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(l.length);n[a]=c;for(let u=0;u<l.length;u+=1){const h=l[u];h!==I4&&(c[u]=o(h))}}else{const c={};n[a]=c;for(const u in l){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const h=l[u];c[u]=o(h)}}return n[a]}return o(0)}const H4=new Set(["link","style","script","noscript"]),j4=new Set(["title","titleTemplate","script","style","noscript"]),tC=new Set(["base","meta","link","style","script","noscript"]),W4=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),V4=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),U4=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),G4=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Y4=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function Dc(e,t={},r){for(const n in e){const i=e[n],o=r?`${r}:${n}`:n;typeof i=="object"&&i!==null?Dc(i,t,o):typeof i=="function"&&(t[o]=i)}return t}const jp=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function Wp(e,t,r,n){for(let i=r;i<e.length;i+=1)try{const o=n?n.run(()=>e[i](...t)):e[i](...t);if(o instanceof Promise)return o.then(()=>Wp(e,t,i+1,n))}catch(o){return Promise.reject(o)}}function X4(e,t,r){if(e.length>0)return Wp(e,t,0,jp(r))}function K4(e,t,r){if(e.length>0){const n=jp(r);return Promise.all(e.map(i=>n.run(()=>i(...t))))}}function Fl(e,t){for(const r of[...e])r(t)}var Z4=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,r={}){if(!e||typeof t!="function")return()=>{};const n=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${n} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let r,n=(...i)=>(typeof r=="function"&&r(),r=void 0,n=void 0,t(...i));return r=this.hook(e,n),r}removeHook(e,t){const r=this._hooks[e];if(r){const n=r.indexOf(t);n!==-1&&r.splice(n,1),r.length===0&&(this._hooks[e]=void 0)}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const r=this._hooks[e]||[];this._hooks[e]=void 0;for(const n of r)this.hook(e,n)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=Dc(e),r=Object.keys(t).map(n=>this.hook(n,t[n]));return()=>{for(const n of r)n();r.length=0}}removeHooks(e){const t=Dc(e);for(const r in t)this.removeHook(r,t[r])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(X4,e,t)}callHookParallel(e,...t){return this.callHookWith(K4,e,t)}callHookWith(e,t,r){const n=this._before||this._after?{name:t,args:r,context:{}}:void 0;this._before&&Fl(this._before,n);const i=e(this._hooks[t]?[...this._hooks[t]]:[],r,t);return i instanceof Promise?i.finally(()=>{this._after&&n&&Fl(this._after,n)}):(this._after&&n&&Fl(this._after,n),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function Q4(){return new Z4}const J4=["name","property","http-equiv"],e5=new Set(["viewport","description","keywords","robots"]);function t5(e){const t=e.split(":");return t.length?Y4.has(t[1]):!1}function Jh(e){const{props:t,tag:r}=e;if(V4.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of J4)if(t[n]!==void 0){const i=t[n],o=i&&typeof i=="string"&&i.includes(":"),a=i&&e5.has(i),l=!(o||a)&&e.key?`:key:${e.key}`:"";return`${r}:${i}${l}`}}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(j4.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function rC(e){const t=e._h||e._d;if(t)return t;const r=e.textContent||e.innerHTML;return r||`${e.tag}:${Object.entries(e.props).map(([n,i])=>`${n}:${String(i)}`).join(",")}`}function Bs(e,t,r){typeof e==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(e=e());const i=t?t(r,e):e;if(Array.isArray(i))return i.map(o=>Bs(o,t));if(i?.constructor===Object){const o={};for(const a of Object.keys(i))o[a]=Bs(i[a],t,a);return o}return i}function r5(e,t){const r=e==="style"?new Map:new Set;function n(i){if(i==null||i===void 0)return;const o=String(i).trim();if(o)if(e==="style"){const[a,...s]=o.split(":").map(l=>l?l.trim():"");a&&s.length&&r.set(a,s.join(":"))}else o.split(" ").filter(Boolean).forEach(a=>r.add(a))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(i=>n(i)):t&&typeof t=="object"&&Object.entries(t).forEach(([i,o])=>{o&&o!=="false"&&(e==="style"?r.set(String(i).trim(),String(o)):n(i))}),r}function n5(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([r,n])=>{if(n===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=r5(r,n);return}if(U4.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let s=t.type;if(t.type||(s="application/json"),!s?.endsWith("json")&&s!=="speculationrules")return;t.type=s,e.props.type=s,e[r]=JSON.stringify(n)}else e[r]=n;return}const i=String(n),o=r.startsWith("data-"),a=e.tag==="meta"&&r==="content";i==="true"||i===""?e.props[r]=o||a?i:!0:!n&&o&&i==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e):e}function i5(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=n5({tag:e,props:{}},r);return n.key&&H4.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(i=>({...n,props:{...n.props,content:i}})):n}function o5(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(i,o)=>{for(let a=0;a<t.length;a++)o=t[a](i,o);return o};e=r(void 0,e);const n=[];return e=Bs(e,r),Object.entries(e||{}).forEach(([i,o])=>{if(o!==void 0)for(const a of Array.isArray(o)?o:[o])n.push(i5(i,a))}),n.flat()}const e0=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,t0={base:-10,title:10},a5={critical:-8,high:-1,low:2},r0={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},s5=/@import/,qo=e=>e===""||e===!0;function l5(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=a5[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:r0;if(t.tag in t0)r=t0[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(r=r0.meta[o])}else if(t.tag==="link"&&t.props.rel)r=i.link[t.props.rel];else if(t.tag==="script"){const o=String(t.props.type);qo(t.props.async)?r=i.script.async:t.props.src&&!qo(t.props.defer)&&!qo(t.props.async)&&o!=="module"&&!o.endsWith("json")||t.innerHTML&&!o.endsWith("json")?r=i.script.sync:(qo(t.props.defer)&&t.props.src&&!qo(t.props.async)||o==="module")&&(r=i.script.defer)}else t.tag==="style"&&(r=t.innerHTML&&s5.test(t.innerHTML)?i.style.imported:i.style.sync);return(r||100)+n}function n0(e,t){const r=typeof t=="function"?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function nC(e={}){const t=Q4();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,i=new Map,o=new Set,a={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:s=>n0(a,s),push(s,l){const c={...l||{}};delete c.head;const u=c._index??a._entryCount++,h={_i:u,input:s,options:c},f={_poll(d=!1){a.dirty=!0,!d&&o.add(u),t.callHook("entries:updated",a)},dispose(){n.delete(u)&&a.invalidate()},patch(d){(!c.mode||c.mode==="server"&&r||c.mode==="client"&&!r)&&(h.input=d,n.set(u,h),f._poll())}};return f.patch(s),f},async resolveTags(){const s={tagMap:new Map,tags:[],entries:[...a.entries.values()]};for(await t.callHook("entries:resolve",s);o.size;){const f=o.values().next().value;o.delete(f);const d=n.get(f);if(d){const p={tags:o5(d.input,e.propResolvers||[]).map(m=>Object.assign(m,d.options)),entry:d};await t.callHook("entries:normalize",p),d._tags=p.tags.map((m,y)=>(m._w=l5(a,m),m._p=(d._i<<10)+y,m._d=Jh(m),m))}}let l=!1;s.entries.flatMap(f=>(f._tags||[]).map(d=>({...d,props:{...d.props}}))).sort(e0).reduce((f,d)=>{const p=String(d._d||d._p);if(!f.has(p))return f.set(p,d);const m=f.get(p);if((d?.tagDuplicateStrategy||(G4.has(d.tag)?"merge":null)||(d.key&&d.key===m.key?"merge":null))==="merge"){const C={...m.props};Object.entries(d.props).forEach(([x,g])=>C[x]=x==="style"?new Map([...m.props.style||new Map,...g]):x==="class"?new Set([...m.props.class||new Set,...g]):g),f.set(p,{...d,props:C})}else d._p>>10===m._p>>10&&d.tag==="meta"&&t5(p)?(f.set(p,Object.assign([...Array.isArray(m)?m:[m],d],d)),l=!0):(d._w===m._w?d._p>m._p:d?._w<m?._w)&&f.set(p,d);return f},s.tagMap);const c=s.tagMap.get("title"),u=s.tagMap.get("titleTemplate");if(a._title=c?.textContent,u){const f=u?.textContent;if(a._titleTemplate=f,f){let d=typeof f=="function"?f(c?.textContent):f;typeof d=="string"&&!a.plugins.has("template-params")&&(d=d.replace("%s",c?.textContent||"")),c?d===null?s.tagMap.delete("title"):s.tagMap.set("title",{...c,textContent:d}):(u.tag="title",u.textContent=d)}}s.tags=Array.from(s.tagMap.values()),l&&(s.tags=s.tags.flat().sort(e0)),await t.callHook("tags:beforeResolve",s),await t.callHook("tags:resolve",s),await t.callHook("tags:afterResolve",s);const h=[];for(const f of s.tags){const{innerHTML:d,tag:p,props:m}=f;if(W4.has(p)&&!(Object.keys(m).length===0&&!f.innerHTML&&!f.textContent)&&!(p==="meta"&&!m.content&&!m["http-equiv"]&&!m.charset)){if(p==="script"&&d){if(String(m.type).endsWith("json")){const y=typeof d=="string"?d:JSON.stringify(d);f.innerHTML=y.replace(/</g,"\\u003C")}else typeof d=="string"&&(f.innerHTML=d.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));f._d=Jh(f)}h.push(f)}}return h},invalidate(){for(const s of n.values())o.add(s._i);a.dirty=!0,t.callHook("entries:updated",a)}};return(e?.plugins||[]).forEach(s=>n0(a,s)),a.hooks.callHook("init",a),e.init?.forEach(s=>s&&a.push(s)),a}const c5=(e,t)=>Lt(t)?Mg(t):t,Eu="usehead";function iC(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(Eu,e)}}.install}function u5(){if(Qs()){const e=$r(Eu);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function h5(e,t={}){const r=t.head||u5();return r.ssr?r.push(e||{},t):d5(r,e,t)}function d5(e,t,r={}){const n=J(!1);let i;return qg(()=>{const a=n.value?{}:Bs(t,c5);i?i.patch(a):i=e.push(a,r)}),zn()&&(nr(()=>{i.dispose()}),qf(()=>{n.value=!0}),Pf(()=>{n.value=!1})),i}function f5(e){const t=e||It();return t.ssrContext?.head||t.runWithContext(()=>{if(Qs()){const r=$r(Eu);if(!r)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return r}})}function oC(e,t={}){const r=t.head||f5(t.nuxt);return h5(e,{head:r,...t})}const p5=(e,t)=>[],m5=e=>k4({},...p5().map(t=>t.data).reverse()),g5=m5;let as;function y5(){return as=$fetch(Fp(`builds/meta/${Au().app.buildId}.json`),{responseType:"json"}),as.catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),as}function b5(){return as||y5()}function Vp(e){const t=typeof e=="string"?e:e.path;try{return g5(t)}catch(r){return console.error("[nuxt] Error matching route rules.",r),{}}}async function aC(e,t={}){if(await w5(e)){const r=await x5(e,t);return await Up(r)||null}return null}const v5="_payload.json";async function x5(e,t={}){const r=new URL(e,"http://localhost");if(r.host!=="localhost"||Wi(r.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const n=Au(),i=t.hash||(t.fresh?Date.now():n.app.buildId),o=n.app.cdnURL,a=o&&await k5(e)?o:n.app.baseURL;return Tu(a,r.pathname,v5+(i?`?${i}`:""))}async function Up(e){const t=fetch(e,{cache:"force-cache"}).then(r=>r.text().then(Xp));try{return await t}catch(r){console.warn("[nuxt] Cannot load payload ",e,r)}return null}function Gp(e){if(e.redirect)return!1;if(e.prerender)return!0}async function Yp(e){return e=e==="/"?e:e.replace(/\/$/,""),(await b5()).prerendered.includes(e)}async function w5(e=Pp().path){const t=Vp({path:e}),r=Gp(t);return r!==void 0?r:t.payload?!0:await Yp(e)}async function k5(e=Pp().path){const t=Gp(Vp({path:e}));return t!==void 0?t:await Yp(e)}let yi=null;async function sC(){if(yi)return yi;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Xp(e.textContent||""),r=e.dataset.src?await Up(e.dataset.src):void 0;return yi={...t,...r,...window.__NUXT__},yi.config?.public&&(yi.config.public=ln(yi.config.public)),yi}async function Xp(e){return await P4(e,It()._payloadRevivers)}function lC(e,t){It()._payloadRevivers[e]=t}const ro=typeof document<"u";function Kp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function _5(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Kp(e.default)}const lt=Object.assign;function Il(e,t){const r={};for(const n in t){const i=t[n];r[n]=Kr(i)?i.map(e):e(i)}return r}const Jo=()=>{},Kr=Array.isArray;function i0(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}const Zp=/#/g,C5=/&/g,S5=/\//g,T5=/=/g,M5=/\?/g,Qp=/\+/g,A5=/%5B/g,E5=/%5D/g,Jp=/%5E/g,B5=/%60/g,e1=/%7B/g,L5=/%7C/g,t1=/%7D/g,$5=/%20/g;function Bu(e){return e==null?"":encodeURI(""+e).replace(L5,"|").replace(A5,"[").replace(E5,"]")}function D5(e){return Bu(e).replace(e1,"{").replace(t1,"}").replace(Jp,"^")}function Fc(e){return Bu(e).replace(Qp,"%2B").replace($5,"+").replace(Zp,"%23").replace(C5,"%26").replace(B5,"`").replace(e1,"{").replace(t1,"}").replace(Jp,"^")}function F5(e){return Fc(e).replace(T5,"%3D")}function I5(e){return Bu(e).replace(Zp,"%23").replace(M5,"%3F")}function O5(e){return I5(e).replace(S5,"%2F")}function ha(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const R5=/\/$/,N5=e=>e.replace(R5,"");function Ol(e,t,r="/"){let n,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return l=s>=0&&l>s?-1:l,l>=0&&(n=t.slice(0,l),o=t.slice(l,s>0?s:t.length),i=e(o.slice(1))),s>=0&&(n=n||t.slice(0,s),a=t.slice(s,t.length)),n=H5(n??t,r),{fullPath:n+o+a,path:n,query:i,hash:ha(a)}}function z5(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function o0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function P5(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Ao(t.matched[n],r.matched[i])&&r1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Ao(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function r1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!q5(e[r],t[r]))return!1;return!0}function q5(e,t){return Kr(e)?a0(e,t):Kr(t)?a0(t,e):e?.valueOf()===t?.valueOf()}function a0(e,t){return Kr(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function H5(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=r.length-1,a,s;for(a=0;a<n.length;a++)if(s=n[a],s!==".")if(s==="..")o>1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(a).join("/")}const nn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ic=(function(e){return e.pop="pop",e.push="push",e})({}),Rl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function j5(e){if(!e)if(ro){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),N5(e)}const W5=/^[^#]+#/;function V5(e,t){return e.replace(W5,"#")+t}function U5(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const ol=()=>({left:window.scrollX,top:window.scrollY});function G5(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=U5(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function s0(e,t){return(history.state?history.state.position-t:-1)+e}const Oc=new Map;function Y5(e,t){Oc.set(e,t)}function X5(e){const t=Oc.get(e);return Oc.delete(e),t}function K5(e){return typeof e=="string"||e&&typeof e=="object"}function n1(e){return typeof e=="string"||typeof e=="symbol"}let kt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const i1=Symbol("");kt.MATCHER_NOT_FOUND+"",kt.NAVIGATION_GUARD_REDIRECT+"",kt.NAVIGATION_ABORTED+"",kt.NAVIGATION_CANCELLED+"",kt.NAVIGATION_DUPLICATED+"";function Eo(e,t){return lt(new Error,{type:e,[i1]:!0},t)}function vn(e,t){return e instanceof Error&&i1 in e&&(t==null||!!(e.type&t))}const Z5=["params","query","hash"];function Q5(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of Z5)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function J5(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<r.length;++n){const i=r[n].replace(Qp," "),o=i.indexOf("="),a=ha(o<0?i:i.slice(0,o)),s=o<0?null:ha(i.slice(o+1));if(a in t){let l=t[a];Kr(l)||(l=t[a]=[l]),l.push(s)}else t[a]=s}return t}function l0(e){let t="";for(let r in e){const n=e[r];if(r=F5(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Kr(n)?n.map(i=>i&&Fc(i)):[n&&Fc(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function eb(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Kr(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const tb=Symbol(""),c0=Symbol(""),Lu=Symbol(""),o1=Symbol(""),Rc=Symbol("");function Ho(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function ti(e,t,r,n,i,o=a=>a()){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const c=f=>{f===!1?l(Eo(kt.NAVIGATION_ABORTED,{from:r,to:t})):f instanceof Error?l(f):K5(f)?l(Eo(kt.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(a&&n.enterCallbacks[i]===a&&typeof f=="function"&&a.push(f),s())},u=o(()=>e.call(n&&n.instances[i],t,r,c));let h=Promise.resolve(u);e.length<3&&(h=h.then(c)),h.catch(f=>l(f))})}function Nl(e,t,r,n,i=o=>o()){const o=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(Kp(l)){const c=(l.__vccOpts||l)[t];c&&o.push(ti(c,r,n,a,s,i))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const h=_5(u)?u.default:u;a.mods[s]=u,a.components[s]=h;const f=(h.__vccOpts||h)[t];return f&&ti(f,r,n,a,s,i)()}))}}return o}function rb(e,t){const r=[],n=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const s=t.matched[a];s&&(e.matched.find(c=>Ao(c,s))?n.push(s):r.push(s));const l=e.matched[a];l&&(t.matched.find(c=>Ao(c,l))||i.push(l))}return[r,n,i]}let nb=()=>location.protocol+"//"+location.host;function a1(e,t){const{pathname:r,search:n,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,s=i.slice(a);return s[0]!=="/"&&(s="/"+s),o0(s,"")}return o0(r,e)+n+i}function ib(e,t,r,n){let i=[],o=[],a=null;const s=({state:f})=>{const d=a1(e,location),p=r.value,m=t.value;let y=0;if(f){if(r.value=d,t.value=f,a&&a===p){a=null;return}y=m?f.position-m.position:0}else n(d);i.forEach(C=>{C(r.value,p,{delta:y,type:Ic.pop,direction:y?y>0?Rl.forward:Rl.back:Rl.unknown})})};function l(){a=r.value}function c(f){i.push(f);const d=()=>{const p=i.indexOf(f);p>-1&&i.splice(p,1)};return o.push(d),d}function u(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(lt({},f.state,{scroll:ol()}),"")}}function h(){for(const f of o)f();o=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:c,destroy:h}}function u0(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?ol():null}}function ob(e){const{history:t,location:r}=window,n={value:a1(e,r)},i={value:t.state};i.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const h=e.indexOf("#"),f=h>-1?(r.host&&document.querySelector("base")?e:e.slice(h))+l:nb()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),i.value=c}catch(d){console.error(d),r[u?"replace":"assign"](f)}}function a(l,c){o(l,lt({},t.state,u0(i.value.back,l,i.value.forward,!0),c,{position:i.value.position}),!0),n.value=l}function s(l,c){const u=lt({},i.value,t.state,{forward:l,scroll:ol()});o(u.current,u,!0),o(l,lt({},u0(n.value,l,null),{position:u.position+1},c),!1),n.value=l}return{location:n,state:i,push:s,replace:a}}function cC(e){e=j5(e);const t=ob(e),r=ib(e,t.state,t.location,t.replace);function n(o,a=!0){a||r.pauseListeners(),history.go(o)}const i=lt({location:"",base:e,go:n,createHref:V5.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let Ci=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Dt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Dt||{});const ab={type:Ci.Static,value:""},sb=/[a-zA-Z0-9_]/;function lb(e){if(!e)return[[]];if(e==="/")return[[ab]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${r})/"${c}": ${d}`)}let r=Dt.Static,n=r;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,c="",u="";function h(){c&&(r===Dt.Static?o.push({type:Ci.Static,value:c}):r===Dt.Param||r===Dt.ParamRegExp||r===Dt.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Ci.Param,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==Dt.ParamRegExp){n=r,r=Dt.EscapeNext;continue}switch(r){case Dt.Static:l==="/"?(c&&h(),a()):l===":"?(h(),r=Dt.Param):f();break;case Dt.EscapeNext:f(),r=n;break;case Dt.Param:l==="("?r=Dt.ParamRegExp:sb.test(l)?f():(h(),r=Dt.Static,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case Dt.ParamRegExp:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:r=Dt.ParamRegExpEnd:u+=l;break;case Dt.ParamRegExpEnd:h(),r=Dt.Static,l!=="*"&&l!=="?"&&l!=="+"&&s--,u="";break;default:t("Unknown state");break}}return r===Dt.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),h(),a(),i}const h0="[^/]+?",cb={sensitive:!1,strict:!1,start:!0,end:!0};var sr=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(sr||{});const ub=/[.+*?^${}()[\]/\\]/g;function hb(e,t){const r=lt({},cb,t),n=[];let i=r.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[sr.Root];r.strict&&!c.length&&(i+="/");for(let h=0;h<c.length;h++){const f=c[h];let d=sr.Segment+(r.sensitive?sr.BonusCaseSensitive:0);if(f.type===Ci.Static)h||(i+="/"),i+=f.value.replace(ub,"\\$&"),d+=sr.Static;else if(f.type===Ci.Param){const{value:p,repeatable:m,optional:y,regexp:C}=f;o.push({name:p,repeatable:m,optional:y});const x=C||h0;if(x!==h0){d+=sr.BonusCustomRegExp;try{`${x}`}catch(b){throw new Error(`Invalid custom RegExp for param "${p}" (${x}): `+b.message)}}let g=m?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;h||(g=y&&c.length<2?`(?:/${g})`:"/"+g),y&&(g+="?"),i+=g,d+=sr.Dynamic,y&&(d+=sr.BonusOptional),m&&(d+=sr.BonusRepeatable),x===".*"&&(d+=sr.BonusWildcard)}u.push(d)}n.push(u)}if(r.strict&&r.end){const c=n.length-1;n[c][n[c].length-1]+=sr.BonusStrict}r.strict||(i+="/?"),r.end?i+="$":r.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const a=new RegExp(i,r.sensitive?"":"i");function s(c){const u=c.match(a),h={};if(!u)return null;for(let f=1;f<u.length;f++){const d=u[f]||"",p=o[f-1];h[p.name]=d&&p.repeatable?d.split("/"):d}return h}function l(c){let u="",h=!1;for(const f of e){(!h||!u.endsWith("/"))&&(u+="/"),h=!1;for(const d of f)if(d.type===Ci.Static)u+=d.value;else if(d.type===Ci.Param){const{value:p,repeatable:m,optional:y}=d,C=p in c?c[p]:"";if(Kr(C)&&!m)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const x=Kr(C)?C.join("/"):C;if(!x)if(y)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):h=!0);else throw new Error(`Missing required param "${p}"`);u+=x}}return u||"/"}return{re:a,score:n,keys:o,parse:s,stringify:l}}function db(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===sr.Static+sr.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===sr.Static+sr.Segment?1:-1:0}function s1(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const o=db(n[r],i[r]);if(o)return o;r++}if(Math.abs(i.length-n.length)===1){if(d0(n))return 1;if(d0(i))return-1}return i.length-n.length}function d0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const fb={strict:!1,end:!0,sensitive:!1};function pb(e,t,r){const n=hb(lb(e.path),r),i=lt(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function mb(e,t){const r=[],n=new Map;t=i0(fb,t);function i(h){return n.get(h)}function o(h,f,d){const p=!d,m=p0(h);m.aliasOf=d&&d.record;const y=i0(t,h),C=[m];if("alias"in h){const b=typeof h.alias=="string"?[h.alias]:h.alias;for(const v of b)C.push(p0(lt({},m,{components:d?d.record.components:m.components,path:v,aliasOf:d?d.record:m})))}let x,g;for(const b of C){const{path:v}=b;if(f&&v[0]!=="/"){const A=f.record.path,w=A[A.length-1]==="/"?"":"/";b.path=f.record.path+(v&&w+v)}if(x=pb(b,f,y),d?d.alias.push(x):(g=g||x,g!==x&&g.alias.push(x),p&&h.name&&!m0(x)&&a(h.name)),l1(x)&&l(x),m.children){const A=m.children;for(let w=0;w<A.length;w++)o(A[w],x,d&&d.children[w])}d=d||x}return g?()=>{a(g)}:Jo}function a(h){if(n1(h)){const f=n.get(h);f&&(n.delete(h),r.splice(r.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=r.indexOf(h);f>-1&&(r.splice(f,1),h.record.name&&n.delete(h.record.name),h.children.forEach(a),h.alias.forEach(a))}}function s(){return r}function l(h){const f=bb(h,r);r.splice(f,0,h),h.record.name&&!m0(h)&&n.set(h.record.name,h)}function c(h,f){let d,p={},m,y;if("name"in h&&h.name){if(d=n.get(h.name),!d)throw Eo(kt.MATCHER_NOT_FOUND,{location:h});y=d.record.name,p=lt(f0(f.params,d.keys.filter(g=>!g.optional).concat(d.parent?d.parent.keys.filter(g=>g.optional):[]).map(g=>g.name)),h.params&&f0(h.params,d.keys.map(g=>g.name))),m=d.stringify(p)}else if(h.path!=null)m=h.path,d=r.find(g=>g.re.test(m)),d&&(p=d.parse(m),y=d.record.name);else{if(d=f.name?n.get(f.name):r.find(g=>g.re.test(f.path)),!d)throw Eo(kt.MATCHER_NOT_FOUND,{location:h,currentLocation:f});y=d.record.name,p=lt({},f.params,h.params),m=d.stringify(p)}const C=[];let x=d;for(;x;)C.unshift(x.record),x=x.parent;return{name:y,path:m,params:p,matched:C,meta:yb(C)}}e.forEach(h=>o(h));function u(){r.length=0,n.clear()}return{addRoute:o,resolve:c,removeRoute:a,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function f0(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function p0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:gb(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function gb(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function m0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yb(e){return e.reduce((t,r)=>lt(t,r.meta),{})}function bb(e,t){let r=0,n=t.length;for(;r!==n;){const o=r+n>>1;s1(e,t[o])<0?n=o:r=o+1}const i=vb(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function vb(e){let t=e;for(;t=t.parent;)if(l1(t)&&s1(e,t)===0)return t}function l1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function g0(e){const t=$r(Lu),r=$r(o1),n=ue(()=>{const l=le(e.to);return t.resolve(l)}),i=ue(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],h=r.matched;if(!u||!h.length)return-1;const f=h.findIndex(Ao.bind(null,u));if(f>-1)return f;const d=y0(l[c-2]);return c>1&&y0(u)===d&&h[h.length-1].path!==d?h.findIndex(Ao.bind(null,l[c-2])):f}),o=ue(()=>i.value>-1&&Cb(r.params,n.value.params)),a=ue(()=>i.value>-1&&i.value===r.matched.length-1&&r1(r.params,n.value.params));function s(l={}){if(_b(l)){const c=t[le(e.replace)?"replace":"push"](le(e.to)).catch(Jo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:n,href:ue(()=>n.value.href),isActive:o,isExactActive:a,navigate:s}}function xb(e){return e.length===1?e[0]:e}const wb=Ve({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:g0,setup(e,{slots:t}){const r=ln(g0(e)),{options:n}=$r(Lu),i=ue(()=>({[b0(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[b0(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=t.default&&xb(t.default(r));return e.custom?o:Nr("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},o)}}}),kb=wb;function _b(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Cb(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Kr(i)||i.length!==n.length||n.some((o,a)=>o.valueOf()!==i[a].valueOf()))return!1}return!0}function y0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const b0=(e,t,r)=>e??t??r,Sb=Ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=$r(Rc),i=ue(()=>e.route||n.value),o=$r(c0,0),a=ue(()=>{let c=le(o);const{matched:u}=i.value;let h;for(;(h=u[c])&&!h.components;)c++;return c}),s=ue(()=>i.value.matched[a.value]);Yo(c0,ue(()=>a.value+1)),Yo(tb,s),Yo(Rc,i);const l=J();return Ne(()=>[l.value,s.value,e.name],([c,u,h],[f,d,p])=>{u&&(u.instances[h]=c,d&&d!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!Ao(u,d)||!f)&&(u.enterCallbacks[h]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=i.value,u=e.name,h=s.value,f=h&&h.components[u];if(!f)return v0(r.default,{Component:f,route:c});const d=h.props[u],p=d?d===!0?c.params:typeof d=="function"?d(c):d:null,y=Nr(f,lt({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(h.instances[u]=null)},ref:l}));return v0(r.default,{Component:y,route:c})||y}}});function v0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Tb=Sb;function uC(e){const t=mb(e.routes,e),r=e.parseQuery||J5,n=e.stringifyQuery||l0,i=e.history,o=Ho(),a=Ho(),s=Ho(),l=Zs(nn);let c=nn;ro&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Il.bind(null,N=>""+N),h=Il.bind(null,O5),f=Il.bind(null,ha);function d(N,me){let fe,Se;return n1(N)?(fe=t.getRecordMatcher(N),Se=me):Se=N,t.addRoute(Se,fe)}function p(N){const me=t.getRecordMatcher(N);me&&t.removeRoute(me)}function m(){return t.getRoutes().map(N=>N.record)}function y(N){return!!t.getRecordMatcher(N)}function C(N,me){if(me=lt({},me||l.value),typeof N=="string"){const M=Ol(r,N,me.path),H=t.resolve({path:M.path},me),te=i.createHref(M.fullPath);return lt(M,H,{params:f(H.params),hash:ha(M.hash),redirectedFrom:void 0,href:te})}let fe;if(N.path!=null)fe=lt({},N,{path:Ol(r,N.path,me.path).path});else{const M=lt({},N.params);for(const H in M)M[H]==null&&delete M[H];fe=lt({},N,{params:h(M)}),me.params=h(me.params)}const Se=t.resolve(fe,me),$e=N.hash||"";Se.params=u(f(Se.params));const K=z5(n,lt({},N,{hash:D5($e),path:Se.path})),k=i.createHref(K);return lt({fullPath:K,hash:$e,query:n===l0?eb(N.query):N.query||{}},Se,{redirectedFrom:void 0,href:k})}function x(N){return typeof N=="string"?Ol(r,N,l.value.path):lt({},N)}function g(N,me){if(c!==N)return Eo(kt.NAVIGATION_CANCELLED,{from:me,to:N})}function b(N){return w(N)}function v(N){return b(lt(x(N),{replace:!0}))}function A(N,me){const fe=N.matched[N.matched.length-1];if(fe&&fe.redirect){const{redirect:Se}=fe;let $e=typeof Se=="function"?Se(N,me):Se;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=x($e):{path:$e},$e.params={}),lt({query:N.query,hash:N.hash,params:$e.path!=null?{}:N.params},$e)}}function w(N,me){const fe=c=C(N),Se=l.value,$e=N.state,K=N.force,k=N.replace===!0,M=A(fe,Se);if(M)return w(lt(x(M),{state:typeof M=="object"?lt({},$e,M.state):$e,force:K,replace:k}),me||fe);const H=fe;H.redirectedFrom=me;let te;return!K&&P5(n,Se,fe)&&(te=Eo(kt.NAVIGATION_DUPLICATED,{to:H,from:Se}),de(Se,Se,!0,!1)),(te?Promise.resolve(te):_(H,Se)).catch(Z=>vn(Z)?vn(Z,kt.NAVIGATION_GUARD_REDIRECT)?Z:re(Z):z(Z,H,Se)).then(Z=>{if(Z){if(vn(Z,kt.NAVIGATION_GUARD_REDIRECT))return w(lt({replace:k},x(Z.to),{state:typeof Z.to=="object"?lt({},$e,Z.to.state):$e,force:K}),me||H)}else Z=E(H,Se,!0,k,$e);return B(H,Se,Z),Z})}function T(N,me){const fe=g(N,me);return fe?Promise.reject(fe):Promise.resolve()}function S(N){const me=ee.values().next().value;return me&&typeof me.runWithContext=="function"?me.runWithContext(N):N()}function _(N,me){let fe;const[Se,$e,K]=rb(N,me);fe=Nl(Se.reverse(),"beforeRouteLeave",N,me);for(const M of Se)M.leaveGuards.forEach(H=>{fe.push(ti(H,N,me))});const k=T.bind(null,N,me);return fe.push(k),be(fe).then(()=>{fe=[];for(const M of o.list())fe.push(ti(M,N,me));return fe.push(k),be(fe)}).then(()=>{fe=Nl($e,"beforeRouteUpdate",N,me);for(const M of $e)M.updateGuards.forEach(H=>{fe.push(ti(H,N,me))});return fe.push(k),be(fe)}).then(()=>{fe=[];for(const M of K)if(M.beforeEnter)if(Kr(M.beforeEnter))for(const H of M.beforeEnter)fe.push(ti(H,N,me));else fe.push(ti(M.beforeEnter,N,me));return fe.push(k),be(fe)}).then(()=>(N.matched.forEach(M=>M.enterCallbacks={}),fe=Nl(K,"beforeRouteEnter",N,me,S),fe.push(k),be(fe))).then(()=>{fe=[];for(const M of a.list())fe.push(ti(M,N,me));return fe.push(k),be(fe)}).catch(M=>vn(M,kt.NAVIGATION_CANCELLED)?M:Promise.reject(M))}function B(N,me,fe){s.list().forEach(Se=>S(()=>Se(N,me,fe)))}function E(N,me,fe,Se,$e){const K=g(N,me);if(K)return K;const k=me===nn,M=ro?history.state:{};fe&&(Se||k?i.replace(N.fullPath,lt({scroll:k&&M&&M.scroll},$e)):i.push(N.fullPath,$e)),l.value=N,de(N,me,fe,k),re()}let I;function W(){I||(I=i.listen((N,me,fe)=>{if(!pe.listening)return;const Se=C(N),$e=A(Se,pe.currentRoute.value);if($e){w(lt($e,{replace:!0,force:!0}),Se).catch(Jo);return}c=Se;const K=l.value;ro&&Y5(s0(K.fullPath,fe.delta),ol()),_(Se,K).catch(k=>vn(k,kt.NAVIGATION_ABORTED|kt.NAVIGATION_CANCELLED)?k:vn(k,kt.NAVIGATION_GUARD_REDIRECT)?(w(lt(x(k.to),{force:!0}),Se).then(M=>{vn(M,kt.NAVIGATION_ABORTED|kt.NAVIGATION_DUPLICATED)&&!fe.delta&&fe.type===Ic.pop&&i.go(-1,!1)}).catch(Jo),Promise.reject()):(fe.delta&&i.go(-fe.delta,!1),z(k,Se,K))).then(k=>{k=k||E(Se,K,!1),k&&(fe.delta&&!vn(k,kt.NAVIGATION_CANCELLED)?i.go(-fe.delta,!1):fe.type===Ic.pop&&vn(k,kt.NAVIGATION_ABORTED|kt.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),B(Se,K,k)}).catch(Jo)}))}let F=Ho(),D=Ho(),R;function z(N,me,fe){re(N);const Se=D.list();return Se.length?Se.forEach($e=>$e(N,me,fe)):console.error(N),Promise.reject(N)}function V(){return R&&l.value!==nn?Promise.resolve():new Promise((N,me)=>{F.add([N,me])})}function re(N){return R||(R=!N,W(),F.list().forEach(([me,fe])=>N?fe(N):me()),F.reset()),N}function de(N,me,fe,Se){const{scrollBehavior:$e}=e;if(!ro||!$e)return Promise.resolve();const K=!fe&&X5(s0(N.fullPath,0))||(Se||!fe)&&history.state&&history.state.scroll||null;return at().then(()=>$e(N,me,K)).then(k=>k&&G5(k)).catch(k=>z(k,N,me))}const Ce=N=>i.go(N);let ce;const ee=new Set,pe={currentRoute:l,listening:!0,addRoute:d,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:m,resolve:C,options:e,push:b,replace:v,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:D.add,isReady:V,install(N){N.component("RouterLink",kb),N.component("RouterView",Tb),N.config.globalProperties.$router=pe,Object.defineProperty(N.config.globalProperties,"$route",{enumerable:!0,get:()=>le(l)}),ro&&!ce&&l.value===nn&&(ce=!0,b(i.location).catch(Se=>{}));const me={};for(const Se in nn)Object.defineProperty(me,Se,{get:()=>l.value[Se],enumerable:!0});N.provide(Lu,pe),N.provide(o1,io(me)),N.provide(Rc,l);const fe=N.unmount;ee.add(N),N.unmount=function(){ee.delete(N),ee.size<1&&(c=nn,I&&I(),I=null,l.value=nn,ce=!1,R=!1),fe()}}};function be(N){return N.reduce((me,fe)=>me.then(()=>S(fe)),Promise.resolve())}return pe}const Mb="modulepreload",Ab=function(e,t){return new URL(e,t).href},x0={},dt=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let c=function(u){return Promise.all(u.map(h=>Promise.resolve(h).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");i=c(r.map(u=>{if(u=Ab(u,n),u in x0)return;x0[u]=!0;const h=u.endsWith(".css"),f=h?'[rel="stylesheet"]':"";if(n)for(let p=a.length-1;p>=0;p--){const m=a[p];if(m.href===u&&(!h||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const d=document.createElement("link");if(d.rel=h?"stylesheet":Mb,h||(d.as="script"),d.crossOrigin="",d.href=u,l&&d.setAttribute("nonce",l),document.head.appendChild(d),h)return new Promise((p,m)=>{d.addEventListener("load",p),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},hC=(e,t)=>({default:()=>e?Nr(Pn,e===!0?{}:e,t):t.default?.()}),Eb=/(:\w+)\([^)]+\)/g,Bb=/(:\w+)[?+*]/g,Lb=/:\w+/g;function w0(e){const t=e?.meta.key??e.path.replace(Eb,"$1").replace(Bb,"$1").replace(Lb,r=>e.params[r.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function $b(e,t){return e===t||t===nn?!1:w0(e)!==w0(t)?!0:!e.matched.every((n,i)=>n.components&&n.components.default===t.matched[i]?.components?.default)}const Db={scrollBehavior(e,t,r){const n=It(),i=Pi().options?.scrollBehaviorType??"auto";if(e.path.replace(/\/$/,"")===t.path.replace(/\/$/,""))return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:c1(e.hash),behavior:i}:!1;if((typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;const a=n._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(s=>{if(t===nn){s(k0(e,t,r,i));return}n.hooks.hookOnce(a,()=>{requestAnimationFrame(()=>s(k0(e,t,r,i)))})})}};function c1(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function k0(e,t,r,n){if(r)return r;const i=$b(e,t);return e.hash?{el:e.hash,top:c1(e.hash),behavior:i?n:"instant"}:{left:0,top:0}}const Fb={hashMode:!1,scrollBehaviorType:"auto"},dC={...Fb,...Db},Nc=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(r)},1)}),Ib=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Ob=e=>{const t=It();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Nc(()=>e())}):Nc(()=>e())};function fC(e={}){const t=e.path||window.location.pathname;let r={};try{r=Ly(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||r?.path!==t||r?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:It().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}function pC(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function u1(e,t=Pi()){const{path:r,matched:n}=t.resolve(e);if(!n.length||(t._routePreloaded||=new Set,t._routePreloaded.has(r)))return;const i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>u1(e,t));t._routePreloaded.add(r);for(const o of n){const a=o.components?.default;if(typeof a!="function")continue;const s=Promise.resolve(a()).catch(()=>{}).finally(()=>i.splice(i.indexOf(s)));i.push(s)}await Promise.all(i)}const Rb=(...e)=>e.find(t=>t!==void 0);function Nb(e){const t=e.componentName||"NuxtLink";function r(o){return typeof o=="string"&&o.startsWith("#")}function n(o,a,s){const l=s??e.trailingSlash;if(!o||l!=="append"&&l!=="remove")return o;if(typeof o=="string")return Pa(o,l);const c="path"in o&&o.path!==void 0?o.path:a(o).path;return{...o,name:void 0,path:Pa(c,l)}}function i(o){const a=Pi(),s=Au(),l=ue(()=>!!o.target&&o.target!=="_self"),c=ue(()=>{const y=o.to||o.href||"";return typeof y=="string"&&Wi(y,{acceptRelative:!0})}),u=yh("RouterLink"),h=u&&typeof u!="string"?u.useLink:void 0,f=ue(()=>{if(o.external)return!0;const y=o.to||o.href||"";return typeof y=="object"?!1:y===""||c.value}),d=ue(()=>{const y=o.to||o.href||"";return f.value?y:n(y,a.resolve,o.trailingSlash)}),p=f.value?void 0:h?.({...o,to:d}),m=ue(()=>{const y=o.trailingSlash??e.trailingSlash;if(!d.value||c.value||r(d.value))return d.value;if(f.value){const C=typeof d.value=="object"&&"path"in d.value?$c(d.value):d.value,x=typeof C=="object"?a.resolve(C).href:C;return Pa(x,y)}return typeof d.value=="object"?a.resolve(d.value)?.href??null:Pa(Tu(s.app.baseURL,d.value),y)});return{to:d,hasTarget:l,isAbsoluteUrl:c,isExternal:f,href:m,isActive:p?.isActive??ue(()=>d.value===a.currentRoute.value.path),isExactActive:p?.isExactActive??ue(()=>d.value===a.currentRoute.value.path),route:p?.route??ue(()=>a.resolve(d.value)),async navigate(y){await E4(m.value,{replace:o.replace,external:f.value||l.value})}}}return Ve({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:i,setup(o,{slots:a}){const s=Pi(),{to:l,href:c,navigate:u,isExternal:h,hasTarget:f,isAbsoluteUrl:d}=i(o),p=Zs(!1),m=J(null),y=g=>{m.value=o.custom?g?.$el?.nextElementSibling:g?.$el};function C(g){return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===g:o.prefetchOn?.[g]??e.prefetchOn?.[g])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!qb()}async function x(g=It()){if(p.value)return;p.value=!0;const b=typeof l.value=="string"?l.value:h.value?$c(l.value):s.resolve(l.value).fullPath,v=h.value?new URL(b,window.location.href).href:b;await Promise.all([g.hooks.callHook("link:prefetch",v).catch(()=>{}),!h.value&&!f.value&&u1(l.value,s).catch(()=>{})])}if(C("visibility")){const g=It();let b,v=null;Qr(()=>{const A=zb();Ob(()=>{b=Nc(()=>{m?.value?.tagName&&(v=A.observe(m.value,async()=>{v?.(),v=null,await x(g)}))})})}),nr(()=>{b&&Ib(b),v?.(),v=null})}return()=>{if(!h.value&&!f.value&&!r(l.value)){const v={ref:y,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(C("interaction")&&(v.onPointerenter=x.bind(null,void 0),v.onFocus=x.bind(null,void 0)),p.value&&(v.class=o.prefetchedClass||e.prefetchedClass),v.rel=o.rel||void 0),Nr(yh("RouterLink"),v,a.default)}const g=o.target||null,b=Rb(o.noRel?"":o.rel,e.externalRelAttribute,d.value||f.value?"noopener noreferrer":"")||null;return o.custom?a.default?a.default({href:c.value,navigate:u,prefetch:x,get route(){if(!c.value)return;const v=new URL(c.value,window.location.href);return{path:v.pathname,fullPath:v.pathname,get query(){return Su(v.search)},hash:v.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:b,target:g,isExternal:h.value||f.value,isActive:!1,isExactActive:!1}):null:Nr("a",{ref:m,href:c.value||null,rel:b,target:g,onClick:v=>{if(!(h.value||f.value))return v.preventDefault(),o.replace?s.replace(c.value):s.push(c.value)}},a.default?.())}}})}const mC=Nb(p4);function Pa(e,t){const r=t==="append"?Ep:ua;return Wi(e)&&!e.startsWith("http")?e:r(e,!0)}function zb(){const e=It();if(e._observer)return e._observer;let t=null;const r=new Map,n=(o,a)=>(t||=new IntersectionObserver(s=>{for(const l of s){const c=r.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}}),r.set(o,a),t.observe(o),()=>{r.delete(o),t?.unobserve(o),r.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:n}}const Pb=/2g/;function qb(){const e=navigator.connection;return!!(e&&(e.saveData||Pb.test(e.effectiveType)))}let qa=null,Ha=null,ja=null;async function Hb(){if(typeof window>"u")return;const e=globalThis;if(e.MonacoEnvironment?.getWorker)return;const[{default:t},{default:r},{default:n},{default:i},{default:o}]=await Promise.all([dt(()=>import("./DzShUmTH.js").then(h=>h.e),[],import.meta.url),dt(()=>import("./DzShUmTH.js").then(h=>h.j),[],import.meta.url),dt(()=>import("./DzShUmTH.js").then(h=>h.c),[],import.meta.url),dt(()=>import("./DzShUmTH.js").then(h=>h.h),[],import.meta.url),dt(()=>import("./DzShUmTH.js").then(h=>h.t),[],import.meta.url)]),a=t,s=r,l=n,c=i,u=o;e.MonacoEnvironment={getWorker(h,f){return f==="json"?new s:f==="css"||f==="scss"||f==="less"?new l:f==="html"||f==="handlebars"||f==="razor"?new c:f==="typescript"||f==="javascript"?new u:new a}}}async function h1(){return qa||(qa=(async()=>{const[{enableMermaid:e,getUseMonaco:t,setKaTeXWorker:r,setMermaidWorker:n},{default:i},{default:o}]=await Promise.all([dt(()=>Promise.resolve().then(()=>rh),void 0,import.meta.url),dt(()=>Promise.resolve().then(()=>G8),void 0,import.meta.url),dt(()=>Promise.resolve().then(()=>X8),void 0,import.meta.url)]);await Hb(),e(()=>dt(()=>import("./ULB_ug-y.js").then(a=>a.m),[],import.meta.url)),t(),r(new i),n(new o)})(),qa)}async function jb(){return Ha||(Ha=(async()=>(await h1(),(await dt(()=>Promise.resolve().then(()=>rh),void 0,import.meta.url)).default))(),Ha)}async function gC(){return ja||(ja=(async()=>(await h1(),(await dt(()=>Promise.resolve().then(()=>rh),void 0,import.meta.url)).CodeBlockNode))(),ja)}const yC=v4(e=>{const t=Wr({loader:jb,suspensible:!1});e.vueApp.component("MarkdownRender",t)});var Wb=Object.create,$u=Object.defineProperty,Vb=Object.getOwnPropertyDescriptor,d1=Object.getOwnPropertyNames,Ub=Object.getPrototypeOf,Gb=Object.prototype.hasOwnProperty,f1=(e,t)=>function(){return t||(0,e[d1(e)[0]])((t={exports:{}}).exports,t),t.exports},p1=e=>{let t={};for(var r in e)$u(t,r,{get:e[r],enumerable:!0});return t},Yb=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=d1(t),o=0,a=i.length,s;o<a;o++)s=i[o],!Gb.call(e,s)&&s!==r&&$u(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(n=Vb(t,s))||n.enumerable});return e},m1=(e,t,r)=>(r=e!=null?Wb(Ub(e)):{},Yb($u(r,"default",{value:e,enumerable:!0}),e));function Xb(e,t,r,n){const i=Number(e[t].meta.id+1).toString();let o="";return typeof n.docId=="string"&&(o=`-${n.docId}-`),o+i}function Kb(e,t){let r=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(r+=`:${e[t].meta.subId}`),`[${r}]`}function Zb(e,t,r,n,i){const o=i.rules.footnote_anchor_name(e,t,r,n,i),a=i.rules.footnote_caption(e,t,r,n,i);let s=o;return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`<sup class="footnote-ref"><a href="#fn${o}" id="fnref${s}">${a}</a></sup>`}function Qb(e,t,r){return(r.xhtmlOut?`<hr class="footnotes-sep" />
|
|
5
5
|
`:`<hr class="footnotes-sep">
|
|
6
6
|
`)+`<section class="footnotes">
|
|
7
7
|
<ol class="footnotes-list">
|
|
@@ -105,7 +105,7 @@ ${m}`:u};let l="",c=0;for(;c<e.length;){const u=e.indexOf(`
|
|
|
105
105
|
<button class="copy-button" data-code="${p}">${i("common.copy")}</button>
|
|
106
106
|
</div>
|
|
107
107
|
<div class="code-editor"></div>
|
|
108
|
-
</div>`};const s=/^\[(\d+)\]/,l=(c,u)=>{const h=c;if(h.src[h.pos]!=="[")return!1;const f=s.exec(h.src.slice(h.pos));if(!f)return!1;const d=h.src.slice(Math.max(0,h.pos-120),h.pos);if(/"[^"\n]{1,80}"\s*:\s*$/.test(d))return!1;const p=h.src.slice(h.pos+f[0].length);if(p.startsWith("](")||p.startsWith("(")||p.startsWith("["))return!1;if(!u){const m=f[1],y=h.push("reference","span",0);y.content=m,y.markup=f[0]}return h.pos+=f[0].length,!0};return r.inline.ruler.before("escape","reference",l),r.renderer.rules.reference=(c,u)=>{const f=String(c[u].content??"");return`<span class="reference-link" data-reference-id="${f}" role="button" tabindex="0" title="Click to view reference">${f}</span>`},r}var x7=Object.defineProperty,w7=Object.defineProperties,k7=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,em=Object.prototype.hasOwnProperty,tm=Object.prototype.propertyIsEnumerable,bd=(e,t,r)=>t in e?x7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ge=(e,t)=>{for(var r in t||(t={}))em.call(t,r)&&bd(e,r,t[r]);if(Is)for(var r of Is(t))tm.call(t,r)&&bd(e,r,t[r]);return e},Bt=(e,t)=>w7(e,k7(t)),rm=(e,t)=>{var r={};for(var n in e)em.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Is)for(var n of Is(e))t.indexOf(n)<0&&tm.call(e,n)&&(r[n]=e[n]);return r},et=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});const _7=["cite"],rt=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},go=rt(Ve({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(r,n)=>(j(),G("blockquote",{class:"blockquote",dir:"auto",cite:e.node.cite},[$o([t.node.children],()=>tt(le(_r),{"index-key":`blockquote-${t.indexKey}`,nodes:t.node.children||[],"custom-id":t.customId,typewriter:t.typewriter,onCopy:n[0]||(n[0]=i=>r.$emit("copy",i))},null,8,["index-key","nodes","custom-id","typewriter"]),n,1)],8,_7))}}),[["__scopeId","data-v-eeadc8a3"]]);go.install=e=>{e.component(go.__name,go)};const C7={class:"checkbox-node"},S7=["checked"],Dr=rt(Ve({__name:"CheckboxNode",props:{node:{}},setup:e=>(t,r)=>(j(),G("span",C7,[L("input",{type:"checkbox",checked:e.node.checked,disabled:"",class:"checkbox-input"},null,8,S7)]))}),[["__scopeId","data-v-8dc6c46f"]]);Dr.install=e=>{e.component(Dr.__name,Dr)};const T7={class:"definition-list"},M7={class:"definition-term"},A7={class:"definition-desc"},yo=rt(Ve({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(r,n)=>(j(),G("dl",T7,[(j(!0),G(Ke,null,Vt(t.node.items,(i,o)=>(j(),G(Ke,{key:o},[L("dt",M7,[tt(le(_r),{"index-key":`definition-term-${t.indexKey}-${o}`,nodes:i.term,"custom-id":t.customId,typewriter:t.typewriter,onCopy:n[0]||(n[0]=a=>r.$emit("copy",a))},null,8,["index-key","nodes","custom-id","typewriter"])]),L("dd",A7,[tt(le(_r),{"index-key":`definition-desc-${t.indexKey}-${o}`,nodes:i.definition,"custom-id":t.customId,typewriter:t.typewriter,onCopy:n[1]||(n[1]=a=>r.$emit("copy",a))},null,8,["index-key","nodes","custom-id","typewriter"])])],64))),128))]))}}),[["__scopeId","data-v-f88691d6"]]);yo.install=e=>{e.component(yo.__name,yo)};const E7={class:"emoji-node"},ur=rt(Ve({__name:"EmojiNode",props:{node:{}},setup:e=>(t,r)=>(j(),G("span",E7,it(e.node.name),1))}),[["__scopeId","data-v-de55dc97"]]);ur.install=e=>{e.component(ur.__name,ur)};const fl="__global__",Yl="__MARKSTREAM_VUE_CUSTOM_COMPONENTS_STORE__",qi=(()=>{const e=globalThis;if(e[Yl])return e[Yl];const t={scopedCustomComponents:{},revision:Zs(0)};return e[Yl]=t,t})(),hi=qi.revision;function B7(e,t){typeof e=="string"?qi.scopedCustomComponents[e]=t||{}:qi.scopedCustomComponents[fl]=e||{},hi.value++}function ir(e){const t=qi.scopedCustomComponents[fl]||{};if(!e)return t;const r=qi.scopedCustomComponents[e]||{};return t&&Object.keys(t).length!==0?r&&Object.keys(r).length!==0?Ge(Ge({},t),r):t:r}function L7(e){if(e===fl)throw new Error("removeCustomComponents: use clearGlobalCustomComponents() to clear the global mapping");delete qi.scopedCustomComponents[e],hi.value++}function $7(){delete qi.scopedCustomComponents[fl],hi.value++}const D7=["id"],F7=["title"],hr=rt(Ve({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const t=`#footnote-${e.node.id}`;function r(){if(typeof document>"u")return;const n=document.querySelector(t);n?n.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${t} not found`)}return(n,i)=>(j(),G("sup",{id:`fnref-${e.node.id}`,class:"footnote-reference",onClick:r},[L("span",{href:t,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+it(e.node.id)+"]",9,F7)],8,D7))}}),[["__scopeId","data-v-01af0fee"]]);hr.install=e=>{e.component(hr.__name,hr)};const I7=new Set(["onclick","onerror","onload","onmouseover","onmouseout","onmousedown","onmouseup","onkeydown","onkeyup","onfocus","onblur","onsubmit","onreset","onchange","onselect","ondblclick","ontouchstart","ontouchend","ontouchmove","ontouchcancel","onwheel","onscroll","oncopy","oncut","onpaste","oninput","oninvalid","onreset","onsearch","onsubmit"]),O7=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),R7=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]),vd=/<([a-z][a-z0-9-]*)\b[^>]*>/gi,N7=new Set(["script"]),z7=new Set(["href","src","srcset","xlink:href","formaction"]),nm=(()=>{try{return!1}catch{}return!1})();function Xl(e){nm&&console.warn(e)}function P7(e){const t=(function(r){let n="";for(const i of r){const o=i.charCodeAt(0);o<=31||o===127||/\s/u.test(i)||(n+=i)}return n})(e).toLowerCase();return!(!t.startsWith("javascript:")&&!t.startsWith("vbscript:"))||!!t.startsWith("data:")&&!(t.startsWith("data:image/")||t.startsWith("data:video/")||t.startsWith("data:audio/"))}function xd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function im(e,t){const r=e.toLowerCase();return!R7.has(r)&&(xd(t,r)||xd(t,e))}function q7(e,t){const r=t.toLowerCase();if(["checked","disabled","readonly","required","autofocus","multiple","hidden"].includes(r))return e==="true"||e===""||e===t;if(["value","min","max","step","width","height","size","maxlength"].includes(r)){const n=Number(e);if(e!==""&&!Number.isNaN(n))return n}return e}function wd(e){return e.trim().length>0}function Kl(e,t,r,n,i){if(N7.has(e.toLowerCase()))return null;const o=(function(l){const c={};for(const[u,h]of Object.entries(l)){const f=u.toLowerCase();I7.has(f)||z7.has(f)&&h&&P7(h)||(c[u]=h)}return c})(t),a=o.key,s=a!=null&&a!==""?a:i;if(im(e,n)){const l=n[e]||n[e.toLowerCase()],c=(function(u){const h={};for(const[f,d]of Object.entries(u))h[f]=q7(d,f);return h})(o);return Nr(l,Bt(Ge({},c),{key:s}),r.length>0?r:void 0)}return Nr(e,Bt(Ge({},o),{innerHTML:void 0,key:s}),r.length>0?r:void 0)}function om(e,t){if(!e||!e.includes("<")||!t||Object.keys(t).length===0)return!1;let r;for(vd.lastIndex=0;(r=vd.exec(e))!==null;)if(im(r[1],t))return!0;return!1}function Os(e,t){if(!e)return[];try{return(function(i,o){let a=0;const s=[],l=[];for(const c of i)if(c.type==="text")(s.length>0?s[s.length-1].children:l).push(c.content);else if(c.type==="self_closing"){const u=Kl(c.tagName,c.attrs||{},[],o,"ms-html-"+a++),h=s.length>0?s[s.length-1].children:l;u!=null&&h.push(u)}else if(c.type==="tag_open")s.push({tagName:c.tagName,children:[],attrs:c.attrs,autoKey:"ms-html-"+a++});else if(c.type==="tag_close"){const u=c.tagName.toLowerCase();let h=-1;for(let f=s.length-1;f>=0;f--)if(s[f].tagName.toLowerCase()===u){h=f;break}if(h!==-1)for(;s.length>h;){const f=s.pop(),d=Kl(f.tagName,f.attrs||{},f.children,o,f.autoKey);s.length>0?d!=null&&s[s.length-1].children.push(d):d!=null&&l.push(d),f.tagName.toLowerCase()!==u&&s.length>h&&Xl(`Auto-closing unclosed tag: <${f.tagName}>`)}else Xl(`Ignoring closing tag with no matching opening tag: </${c.tagName}>`)}for(;s.length>0;){const c=s.pop(),u=Kl(c.tagName,c.attrs||{},c.children,o,c.autoKey);s.length>0?u!=null&&s[s.length-1].children.push(u):u!=null&&l.push(u),Xl(`Auto-closing unclosed tag: <${c.tagName}>`)}return l})((function(i){var o,a,s;const l=[];let c=0;for(;c<i.length;){if(i.startsWith("<!--",c)){const m=i.indexOf("-->",c);if(m!==-1){c=m+3;continue}break}const u=i.indexOf("<",c);if(u===-1){if(c<i.length){const m=i.slice(c);wd(m)&&l.push({type:"text",content:m})}break}if(u>c){const m=i.slice(c,u);wd(m)&&l.push({type:"text",content:m})}if(i.startsWith("![CDATA[",u+1)){const m=i.indexOf("]]>",u);if(m!==-1){l.push({type:"text",content:i.slice(u,m+3)}),c=m+3;continue}break}if(i.startsWith("!",u+1)){const m=i.indexOf(">",u);if(m!==-1){c=m+1;continue}break}const h=i.indexOf(">",u);if(h===-1)break;const f=i.slice(u+1,h).trim(),d=f.startsWith("/"),p=f.endsWith("/");if(d){const m=f.slice(1).trim();l.push({type:"tag_close",tagName:m})}else{const m=f.indexOf(" ");let y,C="";m===-1?y=p?f.slice(0,-1).trim():f.trim():(y=f.slice(0,m).trim(),C=f.slice(m+1));const x={};if(C){const g=/([^\s=]+)(?:=(?:"([^"]*)"|'([^']*)'|(\S*)))?/g;let b;for(;(b=g.exec(C))!==null;){const v=b[1],A=(s=(a=(o=b[2])!=null?o:b[3])!=null?a:b[4])!=null?s:"";v&&!v.endsWith("/")&&(x[v]=A)}}l.push({type:p||O7.has(y.toLowerCase())?"self_closing":"tag_open",tagName:y,attrs:x})}c=h+1}return l})(e),t)}catch(n){return r=n,nm&&console.error("Failed to parse HTML to VNodes:",r),null}var r}const dr=rt(Ve({__name:"HtmlInlineNode",props:{node:{},customId:{}},setup(e){const t=e,r=ue(()=>(hi.value,ir(t.customId))),n=Ve({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),i=ue(()=>{const f=t.node.content;if(!f)return{mode:"html",content:""};if(t.node.loading&&t.node.autoClosed){const p=Os(f,r.value);if(p!==null)return{mode:"dynamic",nodes:p}}if(!om(f,r.value))return{mode:"html",content:f};const d=Os(f,r.value);return d===null?{mode:"html",content:f}:{mode:"dynamic",nodes:d}}),o=J(null),a=typeof window<"u",s=J({mode:"",content:"",el:null});let l=null;function c(f,d){if(!a||!o.value)return;const p=o.value,m=s.value;if(m.el!==p||m.mode!==f||m.content!==d){if(f==="text")p.textContent=d;else{const y=(!l&&a&&(l=document.createElement("template")),l);if(y){y.innerHTML=d;const C=y.content.cloneNode(!0);typeof p.replaceChildren=="function"?p.replaceChildren(C):(p.innerHTML="",p.appendChild(C))}else p.innerHTML=d}s.value={mode:f,content:d,el:p}}}function u(){c("html",t.node.content)}function h(){c("text",t.node.content)}return Ne(()=>[t.node.content,t.node.loading,t.node.autoClosed,i.value.mode],()=>{i.value.mode==="html"&&(t.node.loading&&!t.node.autoClosed?h():u())}),Qr(()=>{i.value.mode==="html"&&(t.node.loading&&!t.node.autoClosed?h():u())}),nr(()=>{o.value&&(o.value.innerHTML="",s.value={mode:"",content:"",el:null})}),(f,d)=>i.value.mode==="dynamic"?(j(),G("span",{key:0,class:Ae(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},[tt(le(n),{nodes:i.value.nodes},null,8,["nodes"])],2)):(j(),G("span",{key:1,ref_key:"containerRef",ref:o,class:Ae(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},null,2))}}),[["__scopeId","data-v-4add5e85"]]);dr.install=e=>{e.component(dr.__name,dr)};const H7={class:"inline text-[85%] px-1 py-0.5 rounded font-mono bg-[hsl(var(--secondary))] whitespace-normal break-words max-w-full before:content-[''] after:content-['']"},Gt=Ve({__name:"InlineCodeNode",props:{node:{}},setup:e=>(t,r)=>(j(),G("code",H7,it(e.node.code),1))});Gt.install=e=>{e.component(Gt.__name,Gt)};const Yc=J(!1),kd=J(""),_d=J("top"),ea=J(null),ta=J(null),Xc=J(null),Kc=J(null),Cd=J(null);let ss=null,ls=null;function am(){ss&&(clearTimeout(ss),ss=null),ls&&(clearTimeout(ls),ls=null)}let Zl=!1,Ql=null;function On(e,t,r="top",n=!1,i,o){if(!e)return;Zl||typeof document<"u"&&(Ql||(Ql=Promise.resolve().then(()=>A8).then(({default:s})=>{Zl=!0;const l=document.createElement("div");l.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(l),Sy({setup:()=>()=>{var c;return Nr(s,{visible:Yc.value,"anchor-el":ea.value,content:kd.value,placement:_d.value,id:ta.value,originX:Xc.value,originY:Kc.value,isDark:(c=Cd.value)!=null?c:void 0})}}).mount(l)}).catch(s=>{Ql=null,Zl=!1,console.warn("[markstream-vue] Failed to load Tooltip component. Tooltips will be disabled.",s)}))),am();const a=()=>{var s,l;ta.value=`tooltip-${Date.now()}-${Math.floor(1e3*Math.random())}`,ea.value=e,kd.value=t,_d.value=r,Xc.value=(s=i?.x)!=null?s:null,Kc.value=(l=i?.y)!=null?l:null,Cd.value=typeof o=="boolean"?o:null,Yc.value=!0;try{e.setAttribute("aria-describedby",ta.value)}catch{}};n?a():ss=setTimeout(a,80)}function Sa(e=!1){am();const t=()=>{if(ea.value&&ta.value)try{ea.value.removeAttribute("aria-describedby")}catch{}Yc.value=!1,ea.value=null,ta.value=null,Xc.value=null,Kc.value=null};e?t():ls=setTimeout(t,120)}const sm={"common.copy":"Copy","common.copySuccess":"Copied","common.decrease":"Decrease","common.reset":"Reset","common.increase":"Increase","common.expand":"Expand","common.collapse":"Collapse","common.preview":"Preview","common.source":"Source","common.export":"Export","common.open":"Open","common.zoomIn":"Zoom in","common.zoomOut":"Zoom out","common.resetZoom":"Reset zoom","image.loadError":"Image failed to load","image.loading":"Loading image..."};function j7(e){Object.assign(sm,e)}function Io(){try{const e=globalThis.$vueI18nUse||null;if(e&&typeof e=="function")try{const t=e();if(t&&typeof t.t=="function")return{t:t.t.bind(t)}}catch{}}catch{}return et(null,null,function*(){try{const e=yield dt(()=>Promise.resolve().then(()=>Z8),void 0,import.meta.url),t=e.useI18n||e.default&&e.default.useI18n;if(t&&typeof t=="function")try{const r=t();if(r&&typeof r.t=="function")try{globalThis.$vueI18nUse=()=>r}catch{}}catch{}}catch{}}),{t:e=>{var t;return(t=sm[e])!=null?t:(function(r){return(r.split(".").pop()||r).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,n=>n.toUpperCase()).trim()})(e)}}}const lm=Symbol("ViewportPriority");function Oo(){const e=$r(lm,void 0);if(e)return e;const t=new WeakMap;let r=null;return n=>{const i=J(!1);let o,a=!1;const s=new Promise(u=>{o=()=>{a||(a=!0,u())}}),l=()=>{try{r?.unobserve(n)}catch{}t.delete(n)},c=r||(typeof window>"u"||typeof IntersectionObserver>"u"?null:(r=new IntersectionObserver(u=>{for(const h of u){const f=t.get(h.target);if(f&&(h.isIntersecting||h.intersectionRatio>0)){if(!f.visible.value){f.visible.value=!0;try{f.resolve()}catch{}}r?.unobserve(h.target),t.delete(h.target)}}},{root:null,rootMargin:"300px",threshold:0}),r));return c?(t.set(n,{resolve:o,visible:i}),c.observe(n),{isVisible:i,whenVisible:s,destroy:l}):(i.value=!0,o(),{isVisible:i,whenVisible:s,destroy:l})}}const W7={class:"relative inline-block"},V7=["src","alt","title","loading","tabindex","aria-label"],U7={class:"text-sm whitespace-nowrap"},G7={key:1,class:"text-sm text-gray-500"},Y7={key:"error",class:"px-4 py-2 bg-gray-100 flex items-center justify-center rounded-lg gap-2 text-red-500"},X7={class:"text-sm whitespace-nowrap"},K7={key:0,class:"mt-2 text-sm text-gray-500 italic"},hn=rt(Ve({__name:"ImageNode",props:{node:{},fallbackSrc:{default:""},showCaption:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},svgMinHeight:{default:"12rem"},usePlaceholder:{type:Boolean,default:!0}},emits:["load","error","click"],setup(e,{emit:t}){const r=e,n=t,i=J(!1),o=J(!1),a=J(!1),s=J(null),l=Oo(),c=J(null),u=J(typeof window>"u");typeof window<"u"&&Ne(()=>s.value,x=>{var g;if((g=c.value)==null||g.destroy(),c.value=null,!x)return void(u.value=!1);const b=l(x,{rootMargin:"400px"});c.value=b,u.value=b.isVisible.value,b.whenVisible.then(()=>{u.value=!0})},{immediate:!0}),nr(()=>{var x;(x=c.value)==null||x.destroy(),c.value=null});const h=ue(()=>o.value&&r.fallbackSrc?r.fallbackSrc:r.node.src),f=ue(()=>!r.lazy||u.value),d=ue(()=>/\.svg(?:\?|$)/i.test(h.value));function p(){r.fallbackSrc&&!a.value?(a.value=!0,o.value=!0):(o.value=!0,n("error",r.node.src))}function m(){i.value=!0,o.value=!1,n("load",h.value)}function y(x){x.preventDefault(),i.value&&!o.value&&n("click",[x,h.value])}const{t:C}=Io();return Ne(h,()=>{i.value=!1,o.value=!1}),(x,g)=>(j(),G("figure",{ref_key:"figureRef",ref:s,class:"text-center my-8"},[L("div",W7,[tt(Pn,{name:"img-switch",mode:"out-in"},{default:Zr(()=>{var b,v,A,w,T;return[e.node.loading||o.value||!f.value?o.value?e.node.loading||r.fallbackSrc?Qe("",!0):(j(),G("div",Y7,[Ut(x.$slots,"error",{node:r.node,displaySrc:h.value,imageLoaded:i.value,hasError:o.value,fallbackSrc:r.fallbackSrc,lazy:r.lazy,isSvg:d.value},()=>[g[1]||(g[1]=L("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[L("path",{fill:"currentColor",d:"M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z"})],-1)),L("span",X7,it(le(C)("image.loadError")),1)],!0)])):(j(),G("div",{key:"placeholder",class:"placeholder-layer max-w-96 inline-flex items-center justify-center gap-2",style:St(d.value?{minHeight:r.svgMinHeight,width:"100%"}:{minHeight:"6rem"})},[r.usePlaceholder?Ut(x.$slots,"placeholder",{key:0,node:r.node,displaySrc:h.value,imageLoaded:i.value,hasError:o.value,fallbackSrc:r.fallbackSrc,lazy:r.lazy,isSvg:d.value},()=>[g[0]||(g[0]=L("div",{class:"w-4 h-4 rounded-full border-2 border-solid border-current border-t-transparent animate-spin","aria-hidden":"true"},null,-1)),L("span",U7,it(le(C)("image.loading")),1)],!0):(j(),G("span",G7,it(e.node.raw),1))],4)):(j(),G("img",{key:"image",src:h.value,alt:String((v=(b=r.node.alt)!=null?b:r.node.title)!=null?v:""),title:String((w=(A=r.node.title)!=null?A:r.node.alt)!=null?w:""),class:Ae(["max-w-96 h-auto rounded-lg transition-opacity duration-200 ease-in-out",{"opacity-0":!i.value,"opacity-100":i.value,"cursor-pointer":i.value}]),style:St(d.value?{minHeight:r.svgMinHeight,width:"100%",height:"auto",objectFit:"contain"}:void 0),loading:r.lazy?"lazy":"eager",decoding:"async",tabindex:i.value?0:-1,"aria-label":(T=r.node.alt)!=null?T:le(C)("image.preview"),onError:p,onLoad:m,onClick:y},null,46,V7))]}),_:3})]),r.showCaption&&r.node.alt?(j(),G("figcaption",K7,it(r.node.alt),1)):Qe("",!0)],512))}}),[["__scopeId","data-v-7ca79b66"]]);hn.install=e=>{e.component(hn.__name,hn)};let ki=null,cs=!1,Wu=um;function Vu(e){var t;const r=(t=e?.default)!=null?t:e;return r&&typeof r.renderToString=="function"?r:null}function cm(){try{const e=globalThis;return Vu(e?.katex)}catch{return null}}function um(){return et(null,null,function*(){const e=cm();if(e)return e;const t=yield dt(()=>import("./DLcXGJ1M.js").then(r=>r.k),__vite__mapDeps([2,3]),import.meta.url);try{yield dt(()=>import("./DLcXGJ1M.js").then(r=>r.m),__vite__mapDeps([2,3]),import.meta.url)}catch{}return Vu(t)})}function Uu(e){Wu=e,ki=null,cs=!1}function Z7(e){Uu(e??um)}function Q7(){Uu(null)}function Gu(){return typeof Wu=="function"}function Ta(){return et(this,null,function*(){var e;const t=cm();if(t)return ki=t,ki;if(ki)return ki;if(cs)return null;const r=Wu;if(!r)return cs=!0,null;try{const n=yield r();if(n)return ki=(e=Vu(n))!=null?e:n,ki}catch{}return cs=!0,null})}const Jl=Zs(!1);let Sd=null;function hm(){return Sd||(Sd=Ta().then(e=>{Jl.value=!!e}).catch(()=>{Jl.value=!1})),gs(Jl)}const Ft=rt(Ve({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const t=hm();return(r,n)=>(j(),G("span",{class:Ae([[le(t)&&e.node.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},it(e.node.content),3))}}),[["__scopeId","data-v-56f30838"]]);Ft.install=e=>{e.component(Ft.__name,Ft)};const Jr=Wr(()=>et(null,null,function*(){var e,t;if(typeof globalThis<"u"&&globalThis.process!==void 0&&((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="test")return r=>{var n,i;return Nr(Ft,Bt(Ge({},r),{node:Bt(Ge({},r.node),{content:(i=r.node.raw)!=null?i:`$${(n=r.node.content)!=null?n:""}$`})}))};try{if(yield Ta())return(yield dt(()=>Promise.resolve().then(()=>Hm),void 0,import.meta.url)).default}catch(r){console.warn('[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',r)}return r=>{var n,i;return Nr(Ft,Bt(Ge({},r),{node:Bt(Ge({},r.node),{content:(i=r.node.raw)!=null?i:`$${(n=r.node.content)!=null?n:""}$`})}))}})),dm=Wr(()=>et(null,null,function*(){try{if(yield Ta())return(yield dt(()=>Promise.resolve().then(()=>jm),void 0,import.meta.url)).default}catch(e){console.warn('[markstream-vue] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',e)}return e=>{var t,r;return Nr(Ft,Bt(Ge({},e),{node:Bt(Ge({},e.node),{content:(r=e.node.raw)!=null?r:`$$${(t=e.node.content)!=null?t:""}$$`})}))}})),Zt=Ve({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup:e=>(t,r)=>(j(),G("span",{class:"reference-node cursor-pointer bg-[hsl(var(--muted))] text-xs rounded-md px-1.5 mx-0.5 hover:bg-[hsl(var(--secondary))]",role:"button",tabindex:"0",onClick:r[0]||(r[0]=n=>t.$emit("click",n,e.node.id,e.messageId,e.threadId)),onMouseenter:r[1]||(r[1]=n=>t.$emit("mouseEnter",n,e.node.id,e.messageId,e.threadId)),onMouseleave:r[2]||(r[2]=n=>t.$emit("mouseLeave",n,e.node.id,e.messageId,e.threadId))},it(e.node.id),33))});Zt.install=e=>{e.component(Zt.__name,Zt)};const J7={class:"superscript-node"},ek={key:1},fr=rt(Ve({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,strong:Qt,emphasis:tr,footnote_reference:hr,strikethrough:Jt,highlight:Cr,insert:mr,subscript:pr,emoji:ur,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("sup",J7,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),G(Ke,{key:`${e.indexKey||"superscript"}-${s}`},[n[a.type]?(j(),ht(rr(n[a.type]),{key:0,node:a,"custom-id":t.customId,"index-key":`${e.indexKey||"superscript"}-${s}`},null,8,["node","custom-id","index-key"])):(j(),G("span",ek,it(a.content||a.raw),1))],64))),128))]))}}),[["__scopeId","data-v-6dc1e3ba"]]);fr.install=e=>{e.component(fr.__name,fr)};const tk={class:"subscript-node"},rk={key:1},pr=rt(Ve({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,strong:Qt,emphasis:tr,footnote_reference:hr,strikethrough:Jt,highlight:Cr,insert:mr,superscript:fr,emoji:ur,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("sub",tk,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),G(Ke,{key:`${e.indexKey||"subscript"}-${s}`},[n[a.type]?(j(),ht(rr(n[a.type]),{key:0,node:a,"custom-id":t.customId,"index-key":`${e.indexKey||"subscript"}-${s}`},null,8,["node","custom-id","index-key"])):(j(),G("span",rk,it(a.content||a.raw),1))],64))),128))]))}}),[["__scopeId","data-v-69de9b81"]]);pr.install=e=>{e.component(pr.__name,pr)};const nk={class:"strong-node"},Qt=rt(Ve({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,emphasis:tr,strikethrough:Jt,highlight:Cr,insert:mr,subscript:pr,superscript:fr,emoji:ur,footnote_reference:hr,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("strong",nk,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),ht(rr(n[a.type]),{key:`${e.indexKey||"strong"}-${s}`,"index-key":`${e.indexKey||"strong"}-${s}`,node:a,"custom-id":t.customId},null,8,["index-key","node","custom-id"]))),128))]))}}),[["__scopeId","data-v-af3ce037"]]);Qt.install=e=>{e.component(Qt.__name,Qt)};const ik={class:"strikethrough-node"},Jt=rt(Ve({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,strong:Qt,emphasis:tr,highlight:Cr,insert:mr,subscript:pr,superscript:fr,emoji:ur,footnote_reference:hr,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("del",ik,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),ht(rr(n[a.type]),{key:`${e.indexKey||"strikethrough"}-${s}`,node:a,"custom-id":t.customId,"index-key":`${e.indexKey||"strikethrough"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-904d5bd1"]]);Jt.install=e=>{e.component(Jt.__name,Jt)};const ok=["href","title","aria-label","aria-hidden"],ak=["aria-hidden"],sk={class:"link-text-wrapper relative inline-flex"},lk={class:"leading-[normal] link-text"},ck={class:"leading-[normal] link-text"},er=rt(Ve({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const t=e,r=ue(()=>{var l,c,u,h,f,d;const p=t.underlineBottom!==void 0?typeof t.underlineBottom=="number"?`${t.underlineBottom}px`:String(t.underlineBottom):"-3px";return{"--link-color":(l=t.color)!=null?l:"#0366d6","--underline-height":`${(c=t.underlineHeight)!=null?c:2}px`,"--underline-bottom":p,"--underline-opacity":String((u=t.animationOpacity)!=null?u:.9),"--underline-duration":`${(h=t.animationDuration)!=null?h:.8}s`,"--underline-timing":(f=t.animationTiming)!=null?f:"linear","--underline-iteration":typeof t.animationIteration=="number"?String(t.animationIteration):(d=t.animationIteration)!=null?d:"infinite"}}),n={text:Ft,strong:Qt,strikethrough:Jt,emphasis:tr,image:hn,html_inline:dr,inline_code:Gt},i=ue(()=>(hi.value,ir(t.customId))),o=a2();function a(){t.showTooltip&&Sa()}const s=ue(()=>{var l,c;return String((c=(l=t.node.title)!=null?l:t.node.href)!=null?c:"")});return(l,c)=>e.node.loading?(j(),G("span",Xr({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},le(o),{style:r.value}),[L("span",sk,[L("span",lk,[L("span",ck,it(e.node.text),1)]),c[1]||(c[1]=L("span",{class:"underline-anim","aria-hidden":"true"},null,-1))])],16,ak)):(j(),G("a",Xr({key:0,class:"link-node",href:e.node.href,title:e.showTooltip?"":s.value,"aria-label":`Link: ${s.value}`,"aria-hidden":e.node.loading?"true":"false",target:"_blank",rel:"noopener noreferrer"},le(o),{style:r.value,onMouseenter:c[0]||(c[0]=u=>(function(h){var f,d,p;if(!t.showTooltip)return;const m=h,y=m?.clientX!=null&&m?.clientY!=null?{x:m.clientX,y:m.clientY}:void 0,C=((f=t.node)==null?void 0:f.title)||((d=t.node)==null?void 0:d.href)||((p=t.node)==null?void 0:p.text)||"";On(h.currentTarget,C,"top",!1,y)})(u)),onMouseleave:a}),[(j(!0),G(Ke,null,Vt(e.node.children,(u,h)=>(j(),ht(rr((function(f){return i.value[f.type]||n[f.type]||null})(u)),{key:`${e.indexKey||"emphasis"}-${h}`,node:u,"custom-id":t.customId,"index-key":`${e.indexKey||"link-text"}-${h}`},null,8,["node","custom-id","index-key"]))),128))],16,ok))}}),[["__scopeId","data-v-2ccf6f70"]]);er.install=e=>{e.component(er.__name,er)};const uk={class:"insert-node"},mr=rt(Ve({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,strong:Qt,emphasis:tr,strikethrough:Jt,highlight:Cr,subscript:pr,superscript:fr,emoji:ur,footnote_reference:hr,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("ins",uk,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),ht(rr(n[a.type]),{key:`${e.indexKey||"insert"}-${s}`,node:a,"custom-id":t.customId,"index-key":`${e.indexKey||"insert"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-ab1ec9bc"]]);mr.install=e=>{e.component(mr.__name,mr)};const hk={class:"highlight-node"},Cr=rt(Ve({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,strong:Qt,emphasis:tr,strikethrough:Jt,insert:mr,subscript:pr,superscript:fr,emoji:ur,footnote_reference:hr,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("mark",hk,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),ht(rr(n[a.type]),{key:`${e.indexKey||"highlight"}-${s}`,node:a,"custom-id":t.customId,"index-key":`${e.indexKey||"highlight"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-38e31bf6"]]);Cr.install=e=>{e.component(Cr.__name,Cr)};const dk={class:"emphasis-node"},tr=rt(Ve({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,strong:Qt,strikethrough:Jt,highlight:Cr,insert:mr,subscript:pr,superscript:fr,emoji:ur,footnote_reference:hr,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("em",dk,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),ht(rr(n[a.type]),{key:`${e.indexKey||"emphasis"}-${s}`,node:a,"custom-id":t.customId,"index-key":`${e.indexKey||"emphasis"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-8264674d"]]);tr.install=e=>{e.component(tr.__name,tr)};const fk=["href","title"],Bi=rt(Ve({__name:"FootnoteAnchorNode",props:{node:{}},setup(e){const t=e;function r(n){var i;if(n.preventDefault(),typeof document>"u")return;const o=`fnref-${String((i=t.node.id)!=null?i:"")}`,a=document.getElementById(o);a&&a.scrollIntoView({behavior:"smooth"})}return(n,i)=>(j(),G("a",{class:"footnote-anchor text-sm text-[#0366d6] hover:underline cursor-pointer",href:`#fnref-${e.node.id}`,title:`返回引用 ${e.node.id}`,onClick:r}," ↩︎ ",8,fk))}}),[["__scopeId","data-v-4756ce0d"]]);Bi.install=e=>{e.component(Bi.__name,Bi)};const pk=["id"],mk={class:"flex-1"},bo=Ve({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(r,n)=>(j(),G("div",{id:`fnref--${e.node.id}`,class:"flex mt-2 mb-2 text-sm leading-relaxed border-t border-[#eaecef] pt-2"},[L("div",mk,[$o([t.node.children],()=>tt(le(_r),{"index-key":`footnote-${t.indexKey}`,nodes:t.node.children,"custom-id":t.customId,typewriter:t.typewriter,onCopy:n[0]||(n[0]=i=>r.$emit("copy",i))},null,8,["index-key","nodes","custom-id","typewriter"]),n,1)])],8,pk))}});bo.install=e=>{e.component(bo.__name,bo)};const gk={class:"hard-break"},En=rt(Ve({__name:"HardBreakNode",props:{node:{}},setup:e=>(t,r)=>(j(),G("br",gk))}),[["__scopeId","data-v-50c58f70"]]);En.install=e=>{e.component(En.__name,En)};const Zc=rt(Ve({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,image:hn,strong:Qt,emphasis:tr,strikethrough:Jt,highlight:Cr,insert:mr,subscript:pr,superscript:fr,emoji:ur,checkbox:Dr,checkbox_input:Dr,footnote_reference:hr,hardbreak:En,math_inline:Jr,reference:Zt},r);return(i,o)=>$o([e.node.level,e.node.children,e.node.attrs],()=>(j(),ht(rr(`h${e.node.level}`),Xr({class:["heading-node",[`heading-${e.node.level}`]],dir:"auto"},e.node.attrs),{default:Zr(()=>[(j(!0),G(Ke,null,Vt(e.node.children,(a,s,l,c)=>{const u=[a];if(c&&c.key===`${e.indexKey||"heading"}-${s}`&&il(c,u))return c;const h=(j(),ht(rr(n[a.type]),{key:`${e.indexKey||"heading"}-${s}`,"custom-id":t.customId,node:a,"index-key":`${e.indexKey||"heading"}-${s}`},null,8,["custom-id","node","index-key"]));return h.memo=u,h},o,0),128))]),_:1},16,["class"])),o,2)}}),[["__scopeId","data-v-af2f957a"]]),Ma=Zc;Ma.install=e=>{e.component(Zc.__name,Zc)};const Li=rt(Ve({__name:"ListItemNode",props:{node:{},item:{},indexKey:{},value:{},customId:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){const t=e,r=ue(()=>{var i;return(i=t.node)!=null?i:t.item}),n=ue(()=>t.value==null?{}:{value:t.value});return(i,o)=>{var a;return j(),G("li",Xr({class:"list-item pl-1.5 my-2",dir:"auto"},n.value),[$o([(a=r.value)==null?void 0:a.children],()=>{var s,l;return tt(le(_r),{"index-key":`list-item-${t.indexKey}`,nodes:(l=(s=r.value)==null?void 0:s.children)!=null?l:[],"custom-id":t.customId,typewriter:t.typewriter,"batch-rendering":!1,onCopy:o[0]||(o[0]=c=>i.$emit("copy",c))},null,8,["index-key","nodes","custom-id","typewriter"])},o,1)],16)}}}),[["__scopeId","data-v-31a88b1f"]]);Li.install=e=>{e.component(Li.__name,Li)};const $i=rt(Ve({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){const t=ue(()=>(hi.value,ir(e.customId).list_item||Li));return(r,n)=>(j(),ht(rr(e.node.ordered?"ol":"ul"),{class:Ae(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:Zr(()=>[(j(!0),G(Ke,null,Vt(e.node.items,(i,o,a,s)=>{var l;const c=[i];if(s&&s.key===`${e.indexKey||"list"}-${o}`&&il(s,c))return s;const u=(j(),ht(rr(t.value),{key:`${e.indexKey||"list"}-${o}`,node:i,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${o}`,typewriter:e.typewriter,value:e.node.ordered?((l=e.node.start)!=null?l:1)+o:void 0,onCopy:n[0]||(n[0]=h=>r.$emit("copy",h))},null,40,["node","custom-id","index-key","typewriter","value"]));return u.memo=c,u},n,1),128))]),_:1},8,["class"]))}}),[["__scopeId","data-v-01209c2b"]]);$i.install=e=>{e.component($i.__name,$i)};const yk={key:1,class:"html-block-node__raw"},bk={key:1,class:"html-block-node__placeholder"},Di=rt(Ve({__name:"HtmlBlockNode",props:{node:{},customId:{}},setup(e){const t=e,r=ue(()=>{const f=t.node.attrs;if(f){if(Array.isArray(f)){const d={};for(const p of f){if(!p||p.length<2)continue;const[m,y]=p;m!=null&&(d[String(m)]=y==null?"":String(y))}return d}return f}}),n=ue(()=>(hi.value,ir(t.customId))),i=Ve({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),o=J(null),a=J(typeof window>"u"),s=J(t.node.content),l=ue(()=>{var f,d,p;if(!a.value)return{mode:"html",content:(f=s.value)!=null?f:""};const m=(d=s.value)!=null?d:t.node.content;if(!m)return{mode:"html",content:""};if(t.node.loading){const C=Os(m,n.value);return C===null?{mode:"text",content:(p=t.node.raw)!=null?p:m}:{mode:"dynamic",nodes:C}}if(!om(m,n.value))return{mode:"html",content:m};const y=Os(m,n.value);return y===null?{mode:"html",content:m}:{mode:"dynamic",nodes:y}}),c=Oo(),u=J(null),h=!!t.node.loading;return typeof window<"u"?(Ne(o,f=>{var d,p;if((p=(d=u.value)==null?void 0:d.destroy)==null||p.call(d),u.value=null,!h)return a.value=!0,void(s.value=t.node.content);if(!f)return void(a.value=!1);const m=c(f,{rootMargin:"400px"});u.value=m,a.value=m.isVisible.value,m.whenVisible.then(()=>{a.value=!0})},{immediate:!0}),Ne(()=>t.node.content,f=>{h&&!a.value||(s.value=f)})):a.value=!0,nr(()=>{var f,d;(d=(f=u.value)==null?void 0:f.destroy)==null||d.call(f),u.value=null}),(f,d)=>(j(),G("div",Xr({ref_key:"htmlRef",ref:o,class:"html-block-node"},r.value),[a.value?(j(),G(Ke,{key:0},[l.value.mode==="dynamic"?(j(),ht(le(i),{key:0,nodes:l.value.nodes},null,8,["nodes"])):l.value.mode==="text"?(j(),G("pre",yk,it(l.value.content),1)):$o([s.value],()=>(j(),G("div",{key:2,innerHTML:s.value},null,8,["innerHTML"])),d,0)],64)):(j(),G("div",bk,[Ut(f.$slots,"placeholder",{node:e.node},()=>[d[1]||(d[1]=L("span",{class:"html-block-node__placeholder-bar"},null,-1)),d[2]||(d[2]=L("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),d[3]||(d[3]=L("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))],16))}}),[["__scopeId","data-v-6797fa3c"]]);Di.install=e=>{e.component(Di.__name,Di)};const vk={dir:"auto",class:"paragraph-node"},Fi=rt(Ve({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({inline_code:Gt,image:hn,link:er,hardbreak:En,emphasis:tr,strong:Qt,strikethrough:Jt,highlight:Cr,insert:mr,subscript:pr,superscript:fr,html_inline:dr,html_block:Di,emoji:ur,checkbox:Dr,math_inline:Jr,checkbox_input:Dr,reference:Zt,footnote_anchor:Bi,footnote_reference:hr},r),i=hm();return(o,a)=>(j(),G("p",vk,[(j(!0),G(Ke,null,Vt(e.node.children,(s,l)=>(j(),G(Ke,{key:`${e.indexKey||"paragraph"}-${l}`},[s.type!=="text"?(j(),ht(rr(n[s.type]),{key:0,node:s,"index-key":`${e.indexKey}-${l}`,"custom-id":t.customId},null,8,["node","index-key","custom-id"])):(j(),G("span",{key:1,class:Ae([[le(i)&&s.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},it(s.content),3))],64))),128))]))}}),[["__scopeId","data-v-4e2afdbc"]]);Fi.install=e=>{e.component(Fi.__name,Fi)};const xk=["aria-busy","aria-label","data-language"],wk=["textContent"],Hr=Ve({__name:"PreCodeNode",props:{node:{}},setup(e){const t=e,r=ue(()=>{var o,a,s;const l=String((a=(o=t.node)==null?void 0:o.language)!=null?a:"");return String((s=String(l).split(/\s+/g)[0])!=null?s:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),n=ue(()=>`language-${r.value}`),i=ue(()=>{const o=r.value;return o?`Code block: ${o}`:"Code block"});return(o,a)=>(j(),G("pre",{class:Ae([n.value]),"aria-busy":e.node.loading===!0,"aria-label":i.value,"data-language":r.value,tabindex:"0"},[L("code",{translate:"no",textContent:it(e.node.code)},null,8,wk)],10,xk))}});Hr.install=e=>{e.component(Hr.__name,Hr)};const kk={class:"table-node-wrapper"},_k=["aria-busy"],Ck={class:"border-[var(--table-border,#cbd5e1)]"},Sk={class:"border-b"},Tk={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},Ii=rt(Ve({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e,r=ue(()=>{var i;return(i=t.node.loading)!=null&&i}),n=ue(()=>{var i;return(i=t.node.rows)!=null?i:[]});return(i,o)=>(j(),G("div",kk,[L("table",{class:Ae(["my-8 text-sm table-node",{"table-node--loading":r.value}]),"aria-busy":r.value},[L("thead",Ck,[L("tr",Sk,[(j(!0),G(Ke,null,Vt(e.node.header.cells,(a,s)=>(j(),G("th",{key:`header-${s}`,dir:"auto",class:Ae(["font-semibold p-[calc(4/7*1em)]",[a.align==="right"?"text-right":a.align==="center"?"text-center":"text-left"]])},[tt(le(_r),{nodes:a.children,"index-key":`table-th-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,onCopy:o[0]||(o[0]=l=>i.$emit("copy",l))},null,8,["nodes","index-key","custom-id","typewriter"])],2))),128))])]),L("tbody",null,[(j(!0),G(Ke,null,Vt(n.value,(a,s)=>(j(),G("tr",{key:`row-${s}`,class:Ae(["border-[var(--table-border,#cbd5e1)]",[s<n.value.length-1?"border-b":""]])},[(j(!0),G(Ke,null,Vt(a.cells,(l,c)=>(j(),G("td",{key:`cell-${s}-${c}`,class:Ae(["p-[calc(4/7*1em)]",[l.align==="right"?"text-right":l.align==="center"?"text-center":"text-left"]]),dir:"auto"},[tt(le(_r),{nodes:l.children,"index-key":`table-td-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,onCopy:o[1]||(o[1]=u=>i.$emit("copy",u))},null,8,["nodes","index-key","custom-id","typewriter"])],2))),128))],2))),128))])],10,_k),tt(Pn,{name:"table-node-fade"},{default:Zr(()=>[r.value?(j(),G("div",Tk,[Ut(i.$slots,"loading",{isLoading:r.value},()=>[o[2]||(o[2]=L("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),o[3]||(o[3]=L("span",{class:"sr-only"},"Loading",-1))],!0)])):Qe("",!0)]),_:3})]))}}),[["__scopeId","data-v-369096fa"]]);Ii.install=e=>{e.component(Ii.__name,Ii)};const Mk={class:"hr-node"},vo=rt({},[["render",function(e,t){return j(),G("hr",Mk)}],["__scopeId","data-v-639cbad9"]]);vo.install=e=>{e.component(vo.__name,vo)};const Ak={class:"unknown-node"},Qc=Ve({__name:"FallbackComponent",props:{node:{}},setup:e=>(t,r)=>(j(),G("div",Ak,it(e.node.raw),1))}),xo=rt(Ve({__name:"VmrContainerNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},setup(e){const t=e,r=ue(()=>`vmr-container vmr-container-${t.node.name}`),n=ir(t.customId),i=Ge({text:Ft,paragraph:Fi,heading:Ma,inline_code:Gt,link:er,image:hn,strong:Qt,emphasis:tr,strikethrough:Jt,insert:mr,subscript:pr,superscript:fr,checkbox:Dr,checkbox_input:Dr,hardbreak:En,math_inline:Jr,reference:Zt,list:$i,math_block:dm,table:Ii},n);return(o,a)=>(j(),G("div",Xr({class:r.value},e.node.attrs),[(j(!0),G(Ke,null,Vt(e.node.children,(s,l,c,u)=>{const h=[s];if(u&&u.key===`${e.indexKey||"vmr-container"}-${l}`&&il(u,h))return u;const f=(j(),ht(rr((d=s.type,i[d]||Qc)),{key:`${e.indexKey||"vmr-container"}-${l}`,"custom-id":t.customId,node:s,"index-key":`${e.indexKey||"vmr-container"}-${l}`},null,8,["custom-id","node","index-key"]));var d;return f.memo=h,f},a,0),128))],16))}}),[["__scopeId","data-v-fac7405d"]]);xo.install=e=>{e.component(xo.__name,xo)};const Ek=["data-custom-id"],Bk=["data-node-index","data-node-type"],_r=rt(Ve({__name:"NodeRenderer",props:{content:{},nodes:{},final:{type:Boolean},parseOptions:{},customMarkdownIt:{},debugPerformance:{type:Boolean,default:!1},customHtmlTags:{},viewportPriority:{type:Boolean},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},renderCodeBlocksAsPre:{type:Boolean},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},themes:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:Boolean,default:!0},batchRendering:{type:Boolean,default:!0},initialRenderBatchSize:{default:40},renderBatchSize:{default:80},renderBatchDelay:{default:16},renderBatchBudgetMs:{default:6},renderBatchIdleTimeoutMs:{default:120},deferNodesUntilVisible:{type:Boolean,default:!0},maxLiveNodes:{default:320},liveNodeBuffer:{default:60}},emits:["copy","handleArtifactClick","click","mouseover","mouseout"],setup(e,{emit:t}){var r,n,i;const o=e,a=t,s=J(),l=J(!1),c=/auto|scroll|overlay/i,u=typeof window<"u",h=ue(()=>o.debugPerformance&&u&&typeof console<"u");function f($,O){h.value&&console.info(`[markstream-vue][perf] ${$}`,O)}function d($){if(typeof window>"u")return null;const O=$??s.value;if(!O)return null;const X=O.ownerDocument||document,ie=X.scrollingElement||X.documentElement;let ae=O;for(;ae&&ae!==X.body&&ae!==ie;){const xe=window.getComputedStyle(ae),we=(xe.overflowY||"").toLowerCase(),Oe=(xe.overflow||"").toLowerCase();if(c.test(we)||c.test(Oe))return ae;ae=ae.parentElement}return null}const p=o.customId?`renderer-${o.customId}`:`renderer-${Date.now()}-${Math.random().toString(36).slice(2)}`,m=Gc(p),y=new Map,C=ue(()=>{const{key:$,tags:O}=(function(ae){if(!ae||ae.length===0)return{key:"",tags:[]};const xe=new Set,we=[];for(const Oe of ae){const Me=g(Oe);Me&&!xe.has(Me)&&(xe.add(Me),we.push(Me))}return we.length===0?{key:"",tags:[]}:{key:we.join(","),tags:we}})(o.customHtmlTags);if(!$)return m;const X=y.get($);if(X)return X;const ie=Gc(p,{customHtmlTags:O});return y.set($,ie),ie}),x=ue(()=>{const $=C.value;return o.customMarkdownIt?o.customMarkdownIt($):$});function g($){const O=String($??"").trim();if(!O)return"";const X=O.match(/^[<\s/]*([A-Z][\w-]*)/i);return X?X[1].toLowerCase():""}const b=ue(()=>{var $,O,X,ie;const ae=($=o.parseOptions)!=null?$:{},xe=(O=o.final)!=null?O:ae.final,we=[...(X=o.customHtmlTags)!=null?X:[],...(ie=ae.customHtmlTags)!=null?ie:[]].map(g).filter(Boolean),Oe=xe!=null,Me=we.length>0;return Oe||Me?Ge(Ge(Ge({},ae),Oe?{final:xe}:{}),Me?{customHtmlTags:Array.from(new Set(we))}:{}):ae}),v=ue(()=>{var $;if(($=o.nodes)!=null&&$.length)return fc(o.nodes.slice());if(o.content){const O=h.value?performance.now():0,X=J1(o.content,x.value,b.value);return h.value&&f("parse(sync)",{ms:Math.round(performance.now()-O),nodes:X.length,contentLength:o.content.length}),fc(X)}return[]}),A=ue(()=>{var $;return Math.max(1,($=o.maxLiveNodes)!=null?$:320)}),w=ue(()=>{var $;return!((($=o.maxLiveNodes)!=null?$:0)<=0)&&v.value.length>A.value}),T=ue(()=>o.viewportPriority!==!1&&!l.value),S=(function($,O){const X=typeof window<"u"&&typeof document<"u",ie=typeof O=="boolean"?J(O):O;let ae=null,xe=null;const we=new WeakMap,Oe=(Me,Pe)=>{const We=J(!1);let Re,nt=!1;const Ct=new Promise(Ir=>{Re=()=>{nt||(nt=!0,Ir())}}),Sr=()=>{try{ae?.unobserve(Me)}catch{}we.delete(Me)};if(!X||!ie.value)return We.value=!0,Re(),{isVisible:We,whenVisible:Ct,destroy:Sr};!xe&&Pe&&(xe=Ge({},Pe));const Vn=(function(Ir){var Tr,mn,Un;if(ae||!X)return ae;if(typeof IntersectionObserver>"u")return null;const br=(Tr=$?.(Ir??null))!=null?Tr:null,Mr=xe||{};return ae=new IntersectionObserver(Gn=>{for(const gn of Gn){const yn=we.get(gn.target);if(yn&&(gn.isIntersecting||gn.intersectionRatio>0)){if(!yn.visible.value){yn.visible.value=!0;try{yn.resolve()}catch{}}ae?.unobserve(gn.target),we.delete(gn.target)}}},{root:br,rootMargin:(mn=Mr.rootMargin)!=null?mn:"300px",threshold:(Un=Mr.threshold)!=null?Un:0}),ae})(Me);return Vn?(we.set(Me,{resolve:Re,visible:We}),Vn.observe(Me),{isVisible:We,whenVisible:Ct,destroy:Sr}):(We.value=!0,Re(),{isVisible:We,whenVisible:Ct,destroy:Sr})};return Yo(lm,Oe),Oe})($=>{var O;return d((O=$??s.value)!=null?O:null)},T),_=u&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,B=u&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,E=typeof globalThis<"u"&&globalThis.process!==void 0&&((n=(r=globalThis.process)==null?void 0:r.env)==null?void 0:n.NODE_ENV)==="test",I=u&&typeof window.requestIdleCallback=="function",W=ue(()=>{var $;const O=Math.trunc(($=o.renderBatchSize)!=null?$:80);return Number.isFinite(O)?Math.max(0,O):0}),F=ue(()=>{var $;const O=Math.trunc(($=o.initialRenderBatchSize)!=null?$:W.value);return Number.isFinite(O)?Math.max(0,O):W.value}),D=ue(()=>o.batchRendering!==!1&&W.value>0&&u&&!E),R=J(0),z=J({key:o.indexKey,total:0}),V=J(Math.max(1,W.value||1)),re=ln({}),de=new Map,Ce=new Map,ce=new Map,ee=J(0),pe=ue(()=>(ee.value,Array.from(ce.entries()).sort(($,O)=>$[0]-O[0]))),be=J(0),N=J([]),me=J([]),fe=J(null);let Se=null,$e=null;const K=ue(()=>{var $;return o.deferNodesUntilVisible!==!1&&!((($=o.maxLiveNodes)!=null?$:0)<=0)&&!w.value&&!(v.value.length>900)&&T.value}),k=ue(()=>{var $;return D.value&&(($=o.maxLiveNodes)!=null?$:0)<=0}),M=J({batchSize:W.value,initial:F.value,delay:(i=o.renderBatchDelay)!=null?i:16,enabled:k.value}),H=ue(()=>!!S&&(K.value||w.value)),te=ue(()=>{var $;return Math.max(0,($=o.liveNodeBuffer)!=null?$:60)}),Z=J(0),Q=ln({start:0,end:0}),he=new Map,ge=ue(()=>{if(!w.value)return v.value.length;const $=te.value,O=Math.max(Q.end+$,F.value),X=Math.min(v.value.length,O);return Math.max(R.value,X)});function ye($){var O,X,ie,ae;const xe=d((O=$??s.value)!=null?O:null);if(xe)return xe;const we=(ae=(ie=$?.ownerDocument)!=null?ie:(X=s.value)==null?void 0:X.ownerDocument)!=null?ae:typeof document<"u"?document:null;return we?.scrollingElement||we?.documentElement||null}function se($){if(!u)return!1;try{const O=window.getComputedStyle($);return!!(O.display||"").toLowerCase().includes("flex")&&(O.flexDirection||"").toLowerCase().endsWith("reverse")}catch{return!1}}function Ie(){Se&&(Se(),Se=null),fe.value=null}function ke(){if(!u||!w.value)return;const $=ye();if(!$||fe.value===$)return;Ie();const O=()=>Te();$.addEventListener("scroll",O,{passive:!0}),fe.value=$,Se=()=>{$.removeEventListener("scroll",O)}}function Ee(){var $,O,X;if(!$e)return;const ie=(X=(O=($=s.value)==null?void 0:$.ownerDocument)==null?void 0:O.defaultView)!=null?X:typeof window<"u"?window:null;$e.viaTimeout?ie?ie.clearTimeout($e.id):clearTimeout($e.id):B?.($e.id),$e=null}function Te($={}){var O,X,ie;if(!w.value)return;if(!u)return void De(!0);if($.immediate)return Ee(),void De(!0);if($e)return;const ae=()=>{$e=null,De()};if(_)$e={id:_(ae),viaTimeout:!1};else{const xe=(ie=(X=(O=s.value)==null?void 0:O.ownerDocument)==null?void 0:X.defaultView)!=null?ie:typeof window<"u"?window:null;$e={id:xe?xe.setTimeout(ae,16):setTimeout(ae,16),viaTimeout:!0}}}function De($=!1){var O,X,ie,ae,xe,we,Oe;if(!w.value)return;const Me=fe.value||ye();if(!Me)return;const Pe=Me.ownerDocument||((O=s.value)==null?void 0:O.ownerDocument)||document,We=Pe?.defaultView||(typeof window<"u"?window:null),Re=Me===Pe?.documentElement||Me===Pe?.body,nt=v.value.length;if(!Re&&nt>0&&se(Me)){const br=Me.clientHeight||0,Mr=Me.scrollTop,Gn=Mr<0?-Mr:Mr,gn=(function(Gi){var zr;const vr=v.value;if(!vr.length)return 0;if(Gi<=0)return Math.max(0,vr.length-1);if(be.value===vr.length){const or=yt(0,vr.length);return oe(Math.max(0,or-Gi))}let Yi=Gi;for(let or=vr.length-1;or>=0;or--){const Yn=(zr=Ue[or])!=null?zr:Ot.value;if(Yi<=Yn)return or;Yi-=Yn}return 0})(Math.max(0,Gn)+.5*Math.max(0,br)),yn=He(gn,0,Math.max(0,nt-1));return void(($||Math.abs(yn-Z.value)>1)&&(Z.value=yn))}const Ct=Re?null:Me.getBoundingClientRect(),Sr=Re?0:Ct.top,Vn=Re?(ie=(X=We?.innerHeight)!=null?X:Me.clientHeight)!=null?ie:0:Ct.bottom,Ir=pe.value;let Tr=null,mn=null;for(const[br,Mr]of Ir){if(!Mr)continue;const Gn=Mr.getBoundingClientRect();Gn.bottom<=Sr||Gn.top>=Vn||(Tr==null&&(Tr=br),mn=br)}if(Tr==null||mn==null){const br=s.value;if(!br)return;const Mr=Re?{top:0}:Me.getBoundingClientRect(),Gn=(function(zr,vr,Yi){var or,Yn,Aa,nh,ih,oh;if(Yi)return(nh=(Aa=(or=vr?.documentElement)==null?void 0:or.scrollTop)!=null?Aa:(Yn=vr?.body)==null?void 0:Yn.scrollTop)!=null?nh:0;const Ea=zr.scrollTop;if(!se(zr))return Ea;const Ym=Ea<0?-Ea:Ea;return Math.max(0,((ih=zr.scrollHeight)!=null?ih:0)-((oh=zr.clientHeight)!=null?oh:0))-Ym})(Me,Pe,Re),gn=Re?(()=>{const zr=br.getBoundingClientRect(),vr=(Re?0:Mr.top)-zr.top;return Math.max(0,vr)})():(()=>{const zr=(function(vr,Yi){let or=vr,Yn=0,Aa=0;for(;or&&or!==Yi&&Aa++<64;)Yn+=or.offsetTop||0,or=or.offsetParent;return Yn})(br,Me);return Math.max(0,Gn-zr)})(),yn=Re?(Oe=(we=(xe=We?.innerHeight)!=null?xe:(ae=Pe?.documentElement)==null?void 0:ae.clientHeight)!=null?we:Me.clientHeight)!=null?Oe:0:Me.clientHeight,Gi=oe(gn+.5*Math.max(0,yn));return void(Z.value=He(Gi,0,Math.max(0,v.value.length-1)))}const Un=Math.round((Tr+mn)/2);!$&&Math.abs(Un-Z.value)<=1||(Z.value=He(Un,0,Math.max(0,v.value.length-1)))}function He($,O,X){return Math.min(Math.max($,O),X)}const Ue=ln({}),ft=ln({total:0,count:0});function ut($,O,X){for(let ie=O+1;ie<$.length;ie+=ie&-ie)$[ie]+=X}function gt($,O){let X=0;for(let ie=O+1;ie>0;ie-=ie&-ie)X+=$[ie];return X}function wt($,O,X){if(X<=O)return 0;const ie=gt($,X-1);return O<=0?ie:ie-gt($,O-1)}const Ot=ue(()=>ft.count>0?Math.max(12,ft.total/ft.count):32);function yt($,O){var X,ie;if($>=O)return 0;if(be.value!==v.value.length){let we=0;for(let Oe=$;Oe<O;Oe++)we+=(X=Ue[Oe])!=null?X:Ot.value;return we}const ae=N.value,xe=me.value;if(!ae.length||!xe.length){let we=0;for(let Oe=$;Oe<O;Oe++)we+=(ie=Ue[Oe])!=null?ie:Ot.value;return we}return wt(ae,$,O)+(O-$-wt(xe,$,O))*Ot.value}Ne(()=>v.value.length,$=>{if($<=0)return be.value=0,N.value=[],void(me.value=[]);$!==be.value&&(function(O){be.value=O;const X=new Array(O+1).fill(0),ie=new Array(O+1).fill(0);for(const[ae,xe]of Object.entries(Ue)){const we=Number(ae),Oe=Number(xe);!Number.isFinite(we)||we<0||we>=O||!Number.isFinite(Oe)||Oe<=0||(ut(X,we,Oe),ut(ie,we,1))}N.value=X,me.value=ie})($)},{immediate:!0});const Je=ue(()=>{if(!w.value)return v.value.map((ie,ae)=>({node:ie,index:ae}));const $=v.value.length,O=He(Q.start,0,$),X=He(Q.end,O,$);return v.value.slice(O,X).map((ie,ae)=>({node:ie,index:O+ae}))}),Y=ue(()=>w.value?yt(0,Math.min(Q.start,v.value.length)):0),q=ue(()=>{if(!w.value)return 0;const $=v.value.length;return yt(Math.min(Q.end,$),$)});function oe($){var O;if($<=0)return 0;const X=v.value;if(be.value===X.length&&N.value.length&&me.value.length){const ae=Ot.value,xe=N.value,we=me.value,Oe=Re=>Re<=0?0:gt(xe,Re-1)+(Re-gt(we,Re-1))*ae;let Me=0,Pe=X.length-1,We=X.length-1;for(;Me<=Pe;){const Re=Me+Pe>>1;Oe(Re+1)>=$?(We=Re,Pe=Re-1):Me=Re+1}return We}let ie=$;for(let ae=0;ae<X.length;ae++){const xe=(O=Ue[ae])!=null?O:Ot.value;if(ie<=xe)return ae;ie-=xe}return Math.max(0,X.length-1)}function ve(){ee.value+=1}function _e($){if(!de.size||!w.value)return;let O=!1;for(const[X,ie]of de)X>=$&&(ie.destroy(),de.delete(X),K.value&&delete re[X],Ze(X),ce.delete(X)&&(O=!0));O&&ve()}function Le($,O){K.value&&(re[$]=O),O&&(w.value?Te():Z.value=He($,0,Math.max(0,v.value.length-1)))}function Ye($){const O=de.get($);O&&(O.destroy(),de.delete($)),Ze($)}function Fe($,O){let X=!1;if(O){const ae=ce.get($);ce.set($,O),ae!==O&&(X=!0)}else ce.delete($)&&(X=!0);if(X&&ve(),O||Ze($),!H.value||!S||!w.value&&K.value&&!l.value&&de.size>=640&&((function(){if(!l.value){l.value=!0;for(const ae of de.values())ae.destroy();if(de.clear(),u)for(const ae of Ce.values())window.clearTimeout(ae);Ce.clear();for(const ae of Object.keys(re))delete re[ae]}})(),!H.value||!S))return Ye($),void(O?Le($,!0):K.value&&delete re[$]);if($<F.value&&!w.value)return Ye($),void Le($,!0);if(!O)return Ye($),void(K.value&&delete re[$]);Ye($);const ie=S(O,{rootMargin:"400px"});ie&&(de.set($,ie),Le($,ie.isVisible.value),K.value&&(function(ae){if(!u||!K.value)return;Ze(ae);const xe=ae%17*23,we=window.setTimeout(()=>{var Oe,Me;if(Ce.delete(ae),!K.value||re[ae]===!0)return;const Pe=ce.get(ae);if(!Pe)return void delete re[ae];const We=ye(Pe),Re=Pe.ownerDocument||document,nt=Re.defaultView||window,Ct=!We||We===Re.documentElement||We===Re.body,Sr=!Ct&&We?We.getBoundingClientRect():null,Vn=Ct?0:Sr.top,Ir=Ct?(Me=(Oe=nt.innerHeight)!=null?Oe:We?.clientHeight)!=null?Me:0:Sr.bottom,Tr=Pe.getBoundingClientRect();Tr.bottom>=Vn-500&&Tr.top<=Ir+500&&Le(ae,!0)},1800+xe);Ce.set(ae,we)})($),ie.whenVisible.then(()=>{Ze($),Le($,!0)}).catch(()=>{}).finally(()=>{de.get($)===ie&&de.delete($);try{ie.destroy()}catch{}}),w.value&&Te())}let st=null,je=null,Xe=!1,Tt=null,qt=null;function vt(){u&&(st!=null&&(B?.(st),st=null),je!=null&&(window.clearTimeout(je),je=null),qt!=null&&typeof window.cancelIdleCallback=="function"&&(window.cancelIdleCallback(qt),qt=null),Xe=!1,Tt=null)}function Ze($){if(!u)return;const O=Ce.get($);O!=null&&(window.clearTimeout(O),Ce.delete($))}function Yt($,O={}){var X,ie;if(!k.value)return;const ae=ge.value;if(R.value>=ae)return;const xe=Math.max(1,$),we=Me=>{var Pe;st=null,je=null,qt=null,Xe=!1;const We=Tt??xe;Tt=null;const Re=Math.max(2,(Pe=o.renderBatchBudgetMs)!=null?Pe:6),nt=Sr=>{const Vn=typeof performance<"u"?performance.now():Date.now();R.value=Math.min(ae,R.value+Math.max(1,Sr)),_e(R.value);const Ir=(typeof performance<"u"?performance.now():Date.now())-Vn;return(function(Tr){var mn;if(!k.value)return;const Un=Math.max(2,(mn=o.renderBatchBudgetMs)!=null?mn:6),br=Math.max(1,W.value||1),Mr=Math.max(1,Math.floor(br/4));Tr>1.2*Un?V.value=Math.max(Mr,Math.floor(.7*V.value)):Tr<.5*Un&&V.value<br&&(V.value=Math.min(br,Math.ceil(1.2*V.value)))})(Ir),Ir};let Ct=We;for(;nt(Ct),!(R.value>=ae)&&Me&&!((typeof Me.timeRemaining=="function"?Me.timeRemaining():0)<=.5*Re);)Ct=Math.max(1,Math.round(V.value));R.value<ae&&gr()};if(!u||O.immediate)return void we();const Oe=Math.max(0,(X=o.renderBatchDelay)!=null?X:16);if(Tt=Tt!=null?Math.max(Tt,xe):xe,!Xe){if(Xe=!0,!E&&I&&window.requestIdleCallback){const Me=Math.max(0,(ie=o.renderBatchIdleTimeoutMs)!=null?ie:120);return void(qt=window.requestIdleCallback(Pe=>{we(Pe)},{timeout:Me}))}_&&!E?st=_(()=>{Oe!==0?je=window.setTimeout(()=>we(),Oe):we()}):je=window.setTimeout(()=>we(),Oe)}}function gr(){k.value&&Yt(D.value?Math.max(1,Math.round(V.value)):Math.max(1,W.value))}Ne([()=>v.value,()=>v.value.length,()=>k.value,()=>W.value,()=>F.value,()=>o.renderBatchDelay,()=>o.indexKey],()=>{var $;const O=v.value.length,X=z.value,ie=o.indexKey,ae=ie!==void 0&&ie!==X.key,xe=O!==X.total,we=ae||xe;z.value={key:ie,total:O};const Oe=M.value,Me=($=o.renderBatchDelay)!=null?$:16,Pe=Oe.batchSize!==W.value||Oe.initial!==F.value||Oe.delay!==Me||Oe.enabled!==k.value;M.value={batchSize:W.value,initial:F.value,delay:Me,enabled:k.value},(we||Pe||!k.value)&&vt(),(we||Pe)&&(V.value=Math.max(1,W.value||1)),we&&w.value&&Te({immediate:!0});const We=ge.value;if(!O)return R.value=0,void _e(0);if(!k.value)return R.value=We,void _e(R.value);const Re=ae||X.total===0;R.value=Re||Pe?Math.min(We,F.value):Math.min(R.value,We);const nt=Math.max(1,F.value||W.value||O);R.value<We?Yt(nt,{immediate:!u}):_e(R.value)},{immediate:!0}),Ne(()=>w.value,$=>{if(!$)return Ie(),void Ee();ke(),Te({immediate:!0})},{immediate:!0}),Ne([()=>v.value.length,()=>w.value],$=>et(null,[$],function*([O,X]){X&&O&&u&&(yield at(),Te({immediate:!0}))}),{flush:"post"}),Ne(()=>s.value,()=>{w.value&&(ke(),Te({immediate:!0}))}),Ne(()=>v.value.length,()=>{w.value&&Te({immediate:!0})}),Ne(()=>K.value,$=>{if($)for(const[O,X]of ce)Fe(O,X);else{for(const O of de.values())O.destroy();de.clear();for(const O of Array.from(Ce.keys()))Ze(O);for(const O of Object.keys(re))delete re[O];for(const[O,X]of ce)X&&Le(O,!0)}},{immediate:!1}),Ne([()=>o.viewportPriority,()=>v.value.length],([$,O])=>{$!==!1?l.value&&O<=200&&(l.value=!1):l.value=!1}),Ne(()=>R.value,()=>{w.value&&Te({immediate:!0})}),Ne([Z,A,te,()=>v.value.length,w],()=>{(function(){const $=v.value.length;if(!w.value||$===0)return Q.start=0,void(Q.end=$);const O=Math.min(A.value,$),X=te.value,ie=He(Z.value-X,0,Math.max(0,$-O));Q.start=ie,Q.end=Math.min($,ie+O)})()},{immediate:!0}),Ne([()=>v.value.length,w,A,te,()=>Q.start,()=>Q.end],([$,O,X,ie,ae,xe])=>{h.value&&f("virtualization",{nodes:$,virtualization:O,maxLiveNodes:X,buffer:ie,focusIndex:Z.value,scroll:O?(()=>{const we=fe.value||ye();return we?{reverse:se(we),scrollTop:Math.round(we.scrollTop),scrollTopAbs:Math.round(Math.abs(we.scrollTop)),scrollHeight:Math.round(we.scrollHeight),clientHeight:Math.round(we.clientHeight)}:null})():null,liveRange:{start:ae,end:xe},rendered:R.value})}),Ne(()=>ge.value,($,O)=>{k.value&&(typeof O=="number"&&$<=O||$>R.value&&gr())}),nr(()=>{vt();for(const $ of de.values())$.destroy();de.clear();for(const $ of Array.from(Ce.keys()))Ze($);Ie(),Ee()});const qn=Wr(()=>et(null,null,function*(){try{return(yield dt(()=>Promise.resolve().then(()=>Wm),void 0,import.meta.url)).default}catch($){return console.warn('[markstream-vue] Optional peer dependencies for CodeBlockNode are missing. Falling back to inline-code rendering (no Monaco). To enable full code block features, please install "stream-monaco".',$),Hr}})),Mt=Wr(()=>et(null,null,function*(){try{return(yield dt(()=>Promise.resolve().then(()=>Vm),void 0,import.meta.url)).default}catch($){return console.warn('[markstream-vue] Optional peer dependencies for MermaidBlockNode are missing. Falling back to preformatted code rendering. To enable Mermaid rendering, please install "mermaid".',$),Hr}})),Ht=Wr(()=>et(null,null,function*(){try{return(yield dt(()=>Promise.resolve().then(()=>Gm),void 0,import.meta.url)).default}catch($){return console.warn('[markstream-vue] Optional peer dependencies for InfographicBlockNode are missing. Falling back to preformatted code rendering. To enable Infographic rendering, please install "@antv/infographic".',$),Hr}})),Hn=ue(()=>o.renderCodeBlocksAsPre?Hr:qn),di={text:Ft,paragraph:Fi,heading:Ma,code_block:qn,list:$i,list_item:Li,blockquote:go,table:Ii,definition_list:yo,footnote:bo,footnote_reference:hr,footnote_anchor:Bi,admonition:wo,vmr_container:xo,hardbreak:En,link:er,image:hn,thematic_break:vo,math_inline:Jr,math_block:dm,strong:Qt,emphasis:tr,strikethrough:Jt,highlight:Cr,insert:mr,subscript:pr,superscript:fr,emoji:ur,checkbox:Dr,checkbox_input:Dr,inline_code:Gt,html_inline:dr,reference:Zt,html_block:Di},fi=ue(()=>(hi.value,ir(o.customId))),jn=ue(()=>o.indexKey!=null?String(o.indexKey):"markdown-renderer"),Vi={},yr=ue(()=>Ge({stream:o.codeBlockStream,darkTheme:o.codeBlockDarkTheme,lightTheme:o.codeBlockLightTheme,monacoOptions:o.codeBlockMonacoOptions,themes:o.themes,minWidth:o.codeBlockMinWidth,maxWidth:o.codeBlockMaxWidth},o.codeBlockProps||{})),Wn=ue(()=>({typewriter:o.typewriter})),Ro=ue(()=>Je.value.map($=>{const O=pi($.node);return Bt(Ge({},$),{component:Ui($.node,O),bindings:U($.node,O),isCodeBlock:$.node.type==="code_block",indexKey:`${jn.value}-${$.index}`})}));function pi($){var O;return $?.type==="code_block"?String((O=$.language)!=null?O:"").trim().toLowerCase():""}function Ui($,O){if(!$)return Qc;const X=fi.value,ie=X[String($.type)];if($.type==="code_block"){const ae=O??pi($);return ae==="mermaid"?X.mermaid||Mt:ae==="infographic"?X.infographic||Ht:ie||X.code_block||Hn.value}return ie||di[String($.type)]||Qc}function U($,O){const X=O??pi($);return X==="mermaid"||X==="infographic"?Vi:$.type==="code_block"?yr.value:Wn.value}function P($){a("click",$)}function ne($){var O;(O=$.target)!=null&&O.closest("[data-node-index]")&&a("mouseover",$)}function Be($){var O;(O=$.target)!=null&&O.closest("[data-node-index]")&&a("mouseout",$)}return($,O)=>(j(),G("div",{ref_key:"containerRef",ref:s,class:Ae(["markstream-vue markdown-renderer",[{dark:o.isDark},{virtualized:w.value}]]),"data-custom-id":o.customId,onClick:P,onMouseover:ne,onMouseout:Be},[w.value?(j(),G("div",{key:0,class:"node-spacer",style:St({height:`${Y.value}px`}),"aria-hidden":"true"},null,4)):Qe("",!0),(j(!0),G(Ke,null,Vt(Ro.value,X=>{var ie,ae;return j(),G("div",{key:X.index,ref_for:!0,ref:xe=>Fe(X.index,xe),class:"node-slot","data-node-index":X.index,"data-node-type":X.node.type},[(ae=X.index,k.value&&ae>=R.value||K.value&&!(ae<F.value)&&re[ae]!==!0?(j(),G("div",{key:1,class:"node-placeholder",style:St({height:`${(ie=Ue[X.index])!=null?ie:Ot.value}px`})},null,4)):(j(),G("div",{key:0,ref_for:!0,ref:xe=>(function(we,Oe){Oe?(he.set(we,Oe),queueMicrotask(()=>{(function(Me,Pe){if(!Number.isFinite(Pe)||Pe<=0)return;const We=Ue[Me];if(Ue[Me]=Pe,We?ft.total+=Pe-We:(ft.total+=Pe,ft.count++),be.value>Me){const Re=N.value,nt=me.value;if(Re.length&&nt.length)if(We){const Ct=Pe-We;Ct!==0&&ut(Re,Me,Ct)}else ut(Re,Me,Pe),ut(nt,Me,1)}})(we,Oe.offsetHeight)})):he.delete(we)})(X.index,xe),class:"node-content"},[X.isCodeBlock||o.typewriter===!1?(j(),ht(rr(X.component),Xr({key:1,node:X.node,loading:X.node.loading,"index-key":X.indexKey},{ref_for:!0},X.bindings,{"custom-id":o.customId,"is-dark":o.isDark,onCopy:O[2]||(O[2]=xe=>a("copy",xe)),onHandleArtifactClick:O[3]||(O[3]=xe=>a("handleArtifactClick",xe))}),null,16,["node","loading","index-key","custom-id","is-dark"])):(j(),ht(Pn,{key:0,name:"typewriter",appear:""},{default:Zr(()=>[(j(),ht(rr(X.component),Xr({node:X.node,loading:X.node.loading,"index-key":X.indexKey},{ref_for:!0},X.bindings,{"custom-id":o.customId,"is-dark":o.isDark,onCopy:O[0]||(O[0]=xe=>a("copy",xe)),onHandleArtifactClick:O[1]||(O[1]=xe=>a("handleArtifactClick",xe))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1024))],512)))],8,Bk)}),128)),w.value?(j(),G("div",{key:1,class:"node-spacer",style:St({height:`${q.value}px`}),"aria-hidden":"true"},null,4)):Qe("",!0)],42,Ek))}}),[["__scopeId","data-v-617f487c"]]);_r.install=e=>{var t,r;const n=(r=(t=_r.__name)!=null?t:_r.name)!=null?r:"NodeRenderer";e.component(n,_r)};const Lk={key:0,class:"admonition-icon"},$k={class:"admonition-title"},Dk=["aria-expanded","aria-controls","title"],Fk={key:0},Ik={key:1},Ok=["id"],wo=rt(Ve({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e,{emit:t}){var r;const n=e,i=t,o={note:"ℹ️",info:"ℹ️",tip:"💡",warning:"⚠️",danger:"❗",error:"⛔",caution:"⚠️"},a=ue(()=>{if(n.node.title&&n.node.title.trim().length)return n.node.title;const u=n.node.kind||"note";return u.charAt(0).toUpperCase()+u.slice(1)}),s=J(!!n.node.collapsible&&!((r=n.node.open)==null||r));function l(){n.node.collapsible&&(s.value=!s.value)}const c=`admonition-${Math.random().toString(36).slice(2,9)}`;return(u,h)=>(j(),G("div",{class:Ae(["admonition",[`admonition-${n.node.kind}`,n.isDark?"is-dark":""]])},[L("div",{id:c,class:"admonition-header"},[o[n.node.kind]?(j(),G("span",Lk,it(o[n.node.kind]),1)):Qe("",!0),L("span",$k,it(a.value),1),n.node.collapsible?(j(),G("button",{key:1,class:"admonition-toggle","aria-expanded":!s.value,"aria-controls":`${c}-content`,title:s.value?"Expand":"Collapse",onClick:l},[s.value?(j(),G("span",Fk,"▶")):(j(),G("span",Ik,"▼"))],8,Dk)):Qe("",!0)]),Dn(L("div",{id:`${c}-content`,class:"admonition-content","aria-labelledby":c},[$o([n.node.children],()=>tt(le(_r),{"index-key":`admonition-${e.indexKey}`,nodes:n.node.children,"custom-id":n.customId,typewriter:n.typewriter,onCopy:h[0]||(h[0]=f=>i("copy",f))},null,8,["index-key","nodes","custom-id","typewriter"]),h,1)],8,Ok),[[In,!s.value]])],2))}}),[["__scopeId","data-v-5e95c2b7"]]);wo.install=e=>{e.component(wo.__name,wo)};let Td=!1,xi=null,ec=!1;function fm(){return et(this,null,function*(){if(xi)return xi;if(ec)return null;try{return xi=yield dt(()=>import("./Z6tloZ0k.js").then(e=>e.i),__vite__mapDeps([0,1]),import.meta.url),yield(function(e){return et(this,null,function*(){if(Td)return;Td=!0;const t=globalThis?.MonacoEnvironment;return!t||typeof t.getWorker!="function"&&typeof t.getWorkerUrl!="function"?e.preloadMonacoWorkers():void 0})})(xi),(yield(function(e){return et(this,null,function*(){const t=e?.getOrCreateHighlighter;if(typeof t!="function")return!0;try{const r=yield t(["vitesse-dark","vitesse-light"],["plaintext","text","javascript"]);return r&&typeof r.codeToTokens=="function"&&r.codeToTokens("const a = 1",{lang:"javascript",theme:"vitesse-dark"}),!0}catch(r){return console.warn("[markstream-vue] Failed to warm up Shiki tokenizer; disabling stream-monaco for this session.",r),!1}})})(xi))?xi:(xi=null,ec=!0,null)}catch{return ec=!0,null}})}let Jc=null;function pm(e){Jc=e??null}const Rk={"":"",javascript:"javascript",js:"javascript",mjs:"javascript",cjs:"javascript",typescript:"typescript",ts:"typescript",jsx:"jsx",tsx:"tsx",golang:"go",py:"python",rb:"ruby",sh:"shell",bash:"shell",zsh:"shell",shellscript:"shell",bat:"shell",batch:"shell",ps1:"powershell",plaintext:"plain",text:"plain","c++":"cpp","c#":"csharp","objective-c":"objectivec","objective-c++":"objectivecpp",yml:"yaml",md:"markdown",rs:"rust",kt:"kotlin"};function ko(e){var t;const r=(function(n){if(!n)return"";const i=n.trim();if(!i)return"";const[o]=i.split(/\s+/),[a]=o.split(":");return a.toLowerCase()})(e);return(t=Rk[r])!=null?t:r}function mm(e){const t=ko(e);if(!t)return"plaintext";switch(t){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";default:return t}}function Yu(e){if(Jc){const t=Jc(e);if(t!=null&&t!=="")return t}switch(ko(e)){case"javascript":case"js":return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
108
|
+
</div>`};const s=/^\[(\d+)\]/,l=(c,u)=>{const h=c;if(h.src[h.pos]!=="[")return!1;const f=s.exec(h.src.slice(h.pos));if(!f)return!1;const d=h.src.slice(Math.max(0,h.pos-120),h.pos);if(/"[^"\n]{1,80}"\s*:\s*$/.test(d))return!1;const p=h.src.slice(h.pos+f[0].length);if(p.startsWith("](")||p.startsWith("(")||p.startsWith("["))return!1;if(!u){const m=f[1],y=h.push("reference","span",0);y.content=m,y.markup=f[0]}return h.pos+=f[0].length,!0};return r.inline.ruler.before("escape","reference",l),r.renderer.rules.reference=(c,u)=>{const f=String(c[u].content??"");return`<span class="reference-link" data-reference-id="${f}" role="button" tabindex="0" title="Click to view reference">${f}</span>`},r}var x7=Object.defineProperty,w7=Object.defineProperties,k7=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,em=Object.prototype.hasOwnProperty,tm=Object.prototype.propertyIsEnumerable,bd=(e,t,r)=>t in e?x7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ge=(e,t)=>{for(var r in t||(t={}))em.call(t,r)&&bd(e,r,t[r]);if(Is)for(var r of Is(t))tm.call(t,r)&&bd(e,r,t[r]);return e},Bt=(e,t)=>w7(e,k7(t)),rm=(e,t)=>{var r={};for(var n in e)em.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Is)for(var n of Is(e))t.indexOf(n)<0&&tm.call(e,n)&&(r[n]=e[n]);return r},et=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});const _7=["cite"],rt=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},go=rt(Ve({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(r,n)=>(j(),G("blockquote",{class:"blockquote",dir:"auto",cite:e.node.cite},[$o([t.node.children],()=>tt(le(_r),{"index-key":`blockquote-${t.indexKey}`,nodes:t.node.children||[],"custom-id":t.customId,typewriter:t.typewriter,onCopy:n[0]||(n[0]=i=>r.$emit("copy",i))},null,8,["index-key","nodes","custom-id","typewriter"]),n,1)],8,_7))}}),[["__scopeId","data-v-eeadc8a3"]]);go.install=e=>{e.component(go.__name,go)};const C7={class:"checkbox-node"},S7=["checked"],Dr=rt(Ve({__name:"CheckboxNode",props:{node:{}},setup:e=>(t,r)=>(j(),G("span",C7,[L("input",{type:"checkbox",checked:e.node.checked,disabled:"",class:"checkbox-input"},null,8,S7)]))}),[["__scopeId","data-v-8dc6c46f"]]);Dr.install=e=>{e.component(Dr.__name,Dr)};const T7={class:"definition-list"},M7={class:"definition-term"},A7={class:"definition-desc"},yo=rt(Ve({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(r,n)=>(j(),G("dl",T7,[(j(!0),G(Ke,null,Vt(t.node.items,(i,o)=>(j(),G(Ke,{key:o},[L("dt",M7,[tt(le(_r),{"index-key":`definition-term-${t.indexKey}-${o}`,nodes:i.term,"custom-id":t.customId,typewriter:t.typewriter,onCopy:n[0]||(n[0]=a=>r.$emit("copy",a))},null,8,["index-key","nodes","custom-id","typewriter"])]),L("dd",A7,[tt(le(_r),{"index-key":`definition-desc-${t.indexKey}-${o}`,nodes:i.definition,"custom-id":t.customId,typewriter:t.typewriter,onCopy:n[1]||(n[1]=a=>r.$emit("copy",a))},null,8,["index-key","nodes","custom-id","typewriter"])])],64))),128))]))}}),[["__scopeId","data-v-f88691d6"]]);yo.install=e=>{e.component(yo.__name,yo)};const E7={class:"emoji-node"},ur=rt(Ve({__name:"EmojiNode",props:{node:{}},setup:e=>(t,r)=>(j(),G("span",E7,it(e.node.name),1))}),[["__scopeId","data-v-de55dc97"]]);ur.install=e=>{e.component(ur.__name,ur)};const fl="__global__",Yl="__MARKSTREAM_VUE_CUSTOM_COMPONENTS_STORE__",qi=(()=>{const e=globalThis;if(e[Yl])return e[Yl];const t={scopedCustomComponents:{},revision:Zs(0)};return e[Yl]=t,t})(),hi=qi.revision;function B7(e,t){typeof e=="string"?qi.scopedCustomComponents[e]=t||{}:qi.scopedCustomComponents[fl]=e||{},hi.value++}function ir(e){const t=qi.scopedCustomComponents[fl]||{};if(!e)return t;const r=qi.scopedCustomComponents[e]||{};return t&&Object.keys(t).length!==0?r&&Object.keys(r).length!==0?Ge(Ge({},t),r):t:r}function L7(e){if(e===fl)throw new Error("removeCustomComponents: use clearGlobalCustomComponents() to clear the global mapping");delete qi.scopedCustomComponents[e],hi.value++}function $7(){delete qi.scopedCustomComponents[fl],hi.value++}const D7=["id"],F7=["title"],hr=rt(Ve({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const t=`#footnote-${e.node.id}`;function r(){if(typeof document>"u")return;const n=document.querySelector(t);n?n.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${t} not found`)}return(n,i)=>(j(),G("sup",{id:`fnref-${e.node.id}`,class:"footnote-reference",onClick:r},[L("span",{href:t,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+it(e.node.id)+"]",9,F7)],8,D7))}}),[["__scopeId","data-v-01af0fee"]]);hr.install=e=>{e.component(hr.__name,hr)};const I7=new Set(["onclick","onerror","onload","onmouseover","onmouseout","onmousedown","onmouseup","onkeydown","onkeyup","onfocus","onblur","onsubmit","onreset","onchange","onselect","ondblclick","ontouchstart","ontouchend","ontouchmove","ontouchcancel","onwheel","onscroll","oncopy","oncut","onpaste","oninput","oninvalid","onreset","onsearch","onsubmit"]),O7=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),R7=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]),vd=/<([a-z][a-z0-9-]*)\b[^>]*>/gi,N7=new Set(["script"]),z7=new Set(["href","src","srcset","xlink:href","formaction"]),nm=(()=>{try{return!1}catch{}return!1})();function Xl(e){nm&&console.warn(e)}function P7(e){const t=(function(r){let n="";for(const i of r){const o=i.charCodeAt(0);o<=31||o===127||/\s/u.test(i)||(n+=i)}return n})(e).toLowerCase();return!(!t.startsWith("javascript:")&&!t.startsWith("vbscript:"))||!!t.startsWith("data:")&&!(t.startsWith("data:image/")||t.startsWith("data:video/")||t.startsWith("data:audio/"))}function xd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function im(e,t){const r=e.toLowerCase();return!R7.has(r)&&(xd(t,r)||xd(t,e))}function q7(e,t){const r=t.toLowerCase();if(["checked","disabled","readonly","required","autofocus","multiple","hidden"].includes(r))return e==="true"||e===""||e===t;if(["value","min","max","step","width","height","size","maxlength"].includes(r)){const n=Number(e);if(e!==""&&!Number.isNaN(n))return n}return e}function wd(e){return e.trim().length>0}function Kl(e,t,r,n,i){if(N7.has(e.toLowerCase()))return null;const o=(function(l){const c={};for(const[u,h]of Object.entries(l)){const f=u.toLowerCase();I7.has(f)||z7.has(f)&&h&&P7(h)||(c[u]=h)}return c})(t),a=o.key,s=a!=null&&a!==""?a:i;if(im(e,n)){const l=n[e]||n[e.toLowerCase()],c=(function(u){const h={};for(const[f,d]of Object.entries(u))h[f]=q7(d,f);return h})(o);return Nr(l,Bt(Ge({},c),{key:s}),r.length>0?r:void 0)}return Nr(e,Bt(Ge({},o),{innerHTML:void 0,key:s}),r.length>0?r:void 0)}function om(e,t){if(!e||!e.includes("<")||!t||Object.keys(t).length===0)return!1;let r;for(vd.lastIndex=0;(r=vd.exec(e))!==null;)if(im(r[1],t))return!0;return!1}function Os(e,t){if(!e)return[];try{return(function(i,o){let a=0;const s=[],l=[];for(const c of i)if(c.type==="text")(s.length>0?s[s.length-1].children:l).push(c.content);else if(c.type==="self_closing"){const u=Kl(c.tagName,c.attrs||{},[],o,"ms-html-"+a++),h=s.length>0?s[s.length-1].children:l;u!=null&&h.push(u)}else if(c.type==="tag_open")s.push({tagName:c.tagName,children:[],attrs:c.attrs,autoKey:"ms-html-"+a++});else if(c.type==="tag_close"){const u=c.tagName.toLowerCase();let h=-1;for(let f=s.length-1;f>=0;f--)if(s[f].tagName.toLowerCase()===u){h=f;break}if(h!==-1)for(;s.length>h;){const f=s.pop(),d=Kl(f.tagName,f.attrs||{},f.children,o,f.autoKey);s.length>0?d!=null&&s[s.length-1].children.push(d):d!=null&&l.push(d),f.tagName.toLowerCase()!==u&&s.length>h&&Xl(`Auto-closing unclosed tag: <${f.tagName}>`)}else Xl(`Ignoring closing tag with no matching opening tag: </${c.tagName}>`)}for(;s.length>0;){const c=s.pop(),u=Kl(c.tagName,c.attrs||{},c.children,o,c.autoKey);s.length>0?u!=null&&s[s.length-1].children.push(u):u!=null&&l.push(u),Xl(`Auto-closing unclosed tag: <${c.tagName}>`)}return l})((function(i){var o,a,s;const l=[];let c=0;for(;c<i.length;){if(i.startsWith("<!--",c)){const m=i.indexOf("-->",c);if(m!==-1){c=m+3;continue}break}const u=i.indexOf("<",c);if(u===-1){if(c<i.length){const m=i.slice(c);wd(m)&&l.push({type:"text",content:m})}break}if(u>c){const m=i.slice(c,u);wd(m)&&l.push({type:"text",content:m})}if(i.startsWith("![CDATA[",u+1)){const m=i.indexOf("]]>",u);if(m!==-1){l.push({type:"text",content:i.slice(u,m+3)}),c=m+3;continue}break}if(i.startsWith("!",u+1)){const m=i.indexOf(">",u);if(m!==-1){c=m+1;continue}break}const h=i.indexOf(">",u);if(h===-1)break;const f=i.slice(u+1,h).trim(),d=f.startsWith("/"),p=f.endsWith("/");if(d){const m=f.slice(1).trim();l.push({type:"tag_close",tagName:m})}else{const m=f.indexOf(" ");let y,C="";m===-1?y=p?f.slice(0,-1).trim():f.trim():(y=f.slice(0,m).trim(),C=f.slice(m+1));const x={};if(C){const g=/([^\s=]+)(?:=(?:"([^"]*)"|'([^']*)'|(\S*)))?/g;let b;for(;(b=g.exec(C))!==null;){const v=b[1],A=(s=(a=(o=b[2])!=null?o:b[3])!=null?a:b[4])!=null?s:"";v&&!v.endsWith("/")&&(x[v]=A)}}l.push({type:p||O7.has(y.toLowerCase())?"self_closing":"tag_open",tagName:y,attrs:x})}c=h+1}return l})(e),t)}catch(n){return r=n,nm&&console.error("Failed to parse HTML to VNodes:",r),null}var r}const dr=rt(Ve({__name:"HtmlInlineNode",props:{node:{},customId:{}},setup(e){const t=e,r=ue(()=>(hi.value,ir(t.customId))),n=Ve({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),i=ue(()=>{const f=t.node.content;if(!f)return{mode:"html",content:""};if(t.node.loading&&t.node.autoClosed){const p=Os(f,r.value);if(p!==null)return{mode:"dynamic",nodes:p}}if(!om(f,r.value))return{mode:"html",content:f};const d=Os(f,r.value);return d===null?{mode:"html",content:f}:{mode:"dynamic",nodes:d}}),o=J(null),a=typeof window<"u",s=J({mode:"",content:"",el:null});let l=null;function c(f,d){if(!a||!o.value)return;const p=o.value,m=s.value;if(m.el!==p||m.mode!==f||m.content!==d){if(f==="text")p.textContent=d;else{const y=(!l&&a&&(l=document.createElement("template")),l);if(y){y.innerHTML=d;const C=y.content.cloneNode(!0);typeof p.replaceChildren=="function"?p.replaceChildren(C):(p.innerHTML="",p.appendChild(C))}else p.innerHTML=d}s.value={mode:f,content:d,el:p}}}function u(){c("html",t.node.content)}function h(){c("text",t.node.content)}return Ne(()=>[t.node.content,t.node.loading,t.node.autoClosed,i.value.mode],()=>{i.value.mode==="html"&&(t.node.loading&&!t.node.autoClosed?h():u())}),Qr(()=>{i.value.mode==="html"&&(t.node.loading&&!t.node.autoClosed?h():u())}),nr(()=>{o.value&&(o.value.innerHTML="",s.value={mode:"",content:"",el:null})}),(f,d)=>i.value.mode==="dynamic"?(j(),G("span",{key:0,class:Ae(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},[tt(le(n),{nodes:i.value.nodes},null,8,["nodes"])],2)):(j(),G("span",{key:1,ref_key:"containerRef",ref:o,class:Ae(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},null,2))}}),[["__scopeId","data-v-4add5e85"]]);dr.install=e=>{e.component(dr.__name,dr)};const H7={class:"inline text-[85%] px-1 py-0.5 rounded font-mono bg-[hsl(var(--secondary))] whitespace-normal break-words max-w-full before:content-[''] after:content-['']"},Gt=Ve({__name:"InlineCodeNode",props:{node:{}},setup:e=>(t,r)=>(j(),G("code",H7,it(e.node.code),1))});Gt.install=e=>{e.component(Gt.__name,Gt)};const Yc=J(!1),kd=J(""),_d=J("top"),ea=J(null),ta=J(null),Xc=J(null),Kc=J(null),Cd=J(null);let ss=null,ls=null;function am(){ss&&(clearTimeout(ss),ss=null),ls&&(clearTimeout(ls),ls=null)}let Zl=!1,Ql=null;function On(e,t,r="top",n=!1,i,o){if(!e)return;Zl||typeof document<"u"&&(Ql||(Ql=Promise.resolve().then(()=>A8).then(({default:s})=>{Zl=!0;const l=document.createElement("div");l.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(l),Sy({setup:()=>()=>{var c;return Nr(s,{visible:Yc.value,"anchor-el":ea.value,content:kd.value,placement:_d.value,id:ta.value,originX:Xc.value,originY:Kc.value,isDark:(c=Cd.value)!=null?c:void 0})}}).mount(l)}).catch(s=>{Ql=null,Zl=!1,console.warn("[markstream-vue] Failed to load Tooltip component. Tooltips will be disabled.",s)}))),am();const a=()=>{var s,l;ta.value=`tooltip-${Date.now()}-${Math.floor(1e3*Math.random())}`,ea.value=e,kd.value=t,_d.value=r,Xc.value=(s=i?.x)!=null?s:null,Kc.value=(l=i?.y)!=null?l:null,Cd.value=typeof o=="boolean"?o:null,Yc.value=!0;try{e.setAttribute("aria-describedby",ta.value)}catch{}};n?a():ss=setTimeout(a,80)}function Sa(e=!1){am();const t=()=>{if(ea.value&&ta.value)try{ea.value.removeAttribute("aria-describedby")}catch{}Yc.value=!1,ea.value=null,ta.value=null,Xc.value=null,Kc.value=null};e?t():ls=setTimeout(t,120)}const sm={"common.copy":"Copy","common.copySuccess":"Copied","common.decrease":"Decrease","common.reset":"Reset","common.increase":"Increase","common.expand":"Expand","common.collapse":"Collapse","common.preview":"Preview","common.source":"Source","common.export":"Export","common.open":"Open","common.zoomIn":"Zoom in","common.zoomOut":"Zoom out","common.resetZoom":"Reset zoom","image.loadError":"Image failed to load","image.loading":"Loading image..."};function j7(e){Object.assign(sm,e)}function Io(){try{const e=globalThis.$vueI18nUse||null;if(e&&typeof e=="function")try{const t=e();if(t&&typeof t.t=="function")return{t:t.t.bind(t)}}catch{}}catch{}return et(null,null,function*(){try{const e=yield dt(()=>Promise.resolve().then(()=>Z8),void 0,import.meta.url),t=e.useI18n||e.default&&e.default.useI18n;if(t&&typeof t=="function")try{const r=t();if(r&&typeof r.t=="function")try{globalThis.$vueI18nUse=()=>r}catch{}}catch{}}catch{}}),{t:e=>{var t;return(t=sm[e])!=null?t:(function(r){return(r.split(".").pop()||r).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,n=>n.toUpperCase()).trim()})(e)}}}const lm=Symbol("ViewportPriority");function Oo(){const e=$r(lm,void 0);if(e)return e;const t=new WeakMap;let r=null;return n=>{const i=J(!1);let o,a=!1;const s=new Promise(u=>{o=()=>{a||(a=!0,u())}}),l=()=>{try{r?.unobserve(n)}catch{}t.delete(n)},c=r||(typeof window>"u"||typeof IntersectionObserver>"u"?null:(r=new IntersectionObserver(u=>{for(const h of u){const f=t.get(h.target);if(f&&(h.isIntersecting||h.intersectionRatio>0)){if(!f.visible.value){f.visible.value=!0;try{f.resolve()}catch{}}r?.unobserve(h.target),t.delete(h.target)}}},{root:null,rootMargin:"300px",threshold:0}),r));return c?(t.set(n,{resolve:o,visible:i}),c.observe(n),{isVisible:i,whenVisible:s,destroy:l}):(i.value=!0,o(),{isVisible:i,whenVisible:s,destroy:l})}}const W7={class:"relative inline-block"},V7=["src","alt","title","loading","tabindex","aria-label"],U7={class:"text-sm whitespace-nowrap"},G7={key:1,class:"text-sm text-gray-500"},Y7={key:"error",class:"px-4 py-2 bg-gray-100 flex items-center justify-center rounded-lg gap-2 text-red-500"},X7={class:"text-sm whitespace-nowrap"},K7={key:0,class:"mt-2 text-sm text-gray-500 italic"},hn=rt(Ve({__name:"ImageNode",props:{node:{},fallbackSrc:{default:""},showCaption:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},svgMinHeight:{default:"12rem"},usePlaceholder:{type:Boolean,default:!0}},emits:["load","error","click"],setup(e,{emit:t}){const r=e,n=t,i=J(!1),o=J(!1),a=J(!1),s=J(null),l=Oo(),c=J(null),u=J(typeof window>"u");typeof window<"u"&&Ne(()=>s.value,x=>{var g;if((g=c.value)==null||g.destroy(),c.value=null,!x)return void(u.value=!1);const b=l(x,{rootMargin:"400px"});c.value=b,u.value=b.isVisible.value,b.whenVisible.then(()=>{u.value=!0})},{immediate:!0}),nr(()=>{var x;(x=c.value)==null||x.destroy(),c.value=null});const h=ue(()=>o.value&&r.fallbackSrc?r.fallbackSrc:r.node.src),f=ue(()=>!r.lazy||u.value),d=ue(()=>/\.svg(?:\?|$)/i.test(h.value));function p(){r.fallbackSrc&&!a.value?(a.value=!0,o.value=!0):(o.value=!0,n("error",r.node.src))}function m(){i.value=!0,o.value=!1,n("load",h.value)}function y(x){x.preventDefault(),i.value&&!o.value&&n("click",[x,h.value])}const{t:C}=Io();return Ne(h,()=>{i.value=!1,o.value=!1}),(x,g)=>(j(),G("figure",{ref_key:"figureRef",ref:s,class:"text-center my-8"},[L("div",W7,[tt(Pn,{name:"img-switch",mode:"out-in"},{default:Zr(()=>{var b,v,A,w,T;return[e.node.loading||o.value||!f.value?o.value?e.node.loading||r.fallbackSrc?Qe("",!0):(j(),G("div",Y7,[Ut(x.$slots,"error",{node:r.node,displaySrc:h.value,imageLoaded:i.value,hasError:o.value,fallbackSrc:r.fallbackSrc,lazy:r.lazy,isSvg:d.value},()=>[g[1]||(g[1]=L("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[L("path",{fill:"currentColor",d:"M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z"})],-1)),L("span",X7,it(le(C)("image.loadError")),1)],!0)])):(j(),G("div",{key:"placeholder",class:"placeholder-layer max-w-96 inline-flex items-center justify-center gap-2",style:St(d.value?{minHeight:r.svgMinHeight,width:"100%"}:{minHeight:"6rem"})},[r.usePlaceholder?Ut(x.$slots,"placeholder",{key:0,node:r.node,displaySrc:h.value,imageLoaded:i.value,hasError:o.value,fallbackSrc:r.fallbackSrc,lazy:r.lazy,isSvg:d.value},()=>[g[0]||(g[0]=L("div",{class:"w-4 h-4 rounded-full border-2 border-solid border-current border-t-transparent animate-spin","aria-hidden":"true"},null,-1)),L("span",U7,it(le(C)("image.loading")),1)],!0):(j(),G("span",G7,it(e.node.raw),1))],4)):(j(),G("img",{key:"image",src:h.value,alt:String((v=(b=r.node.alt)!=null?b:r.node.title)!=null?v:""),title:String((w=(A=r.node.title)!=null?A:r.node.alt)!=null?w:""),class:Ae(["max-w-96 h-auto rounded-lg transition-opacity duration-200 ease-in-out",{"opacity-0":!i.value,"opacity-100":i.value,"cursor-pointer":i.value}]),style:St(d.value?{minHeight:r.svgMinHeight,width:"100%",height:"auto",objectFit:"contain"}:void 0),loading:r.lazy?"lazy":"eager",decoding:"async",tabindex:i.value?0:-1,"aria-label":(T=r.node.alt)!=null?T:le(C)("image.preview"),onError:p,onLoad:m,onClick:y},null,46,V7))]}),_:3})]),r.showCaption&&r.node.alt?(j(),G("figcaption",K7,it(r.node.alt),1)):Qe("",!0)],512))}}),[["__scopeId","data-v-7ca79b66"]]);hn.install=e=>{e.component(hn.__name,hn)};let ki=null,cs=!1,Wu=um;function Vu(e){var t;const r=(t=e?.default)!=null?t:e;return r&&typeof r.renderToString=="function"?r:null}function cm(){try{const e=globalThis;return Vu(e?.katex)}catch{return null}}function um(){return et(null,null,function*(){const e=cm();if(e)return e;const t=yield dt(()=>import("./DLcXGJ1M.js").then(r=>r.k),__vite__mapDeps([0,1]),import.meta.url);try{yield dt(()=>import("./DLcXGJ1M.js").then(r=>r.m),__vite__mapDeps([0,1]),import.meta.url)}catch{}return Vu(t)})}function Uu(e){Wu=e,ki=null,cs=!1}function Z7(e){Uu(e??um)}function Q7(){Uu(null)}function Gu(){return typeof Wu=="function"}function Ta(){return et(this,null,function*(){var e;const t=cm();if(t)return ki=t,ki;if(ki)return ki;if(cs)return null;const r=Wu;if(!r)return cs=!0,null;try{const n=yield r();if(n)return ki=(e=Vu(n))!=null?e:n,ki}catch{}return cs=!0,null})}const Jl=Zs(!1);let Sd=null;function hm(){return Sd||(Sd=Ta().then(e=>{Jl.value=!!e}).catch(()=>{Jl.value=!1})),gs(Jl)}const Ft=rt(Ve({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const t=hm();return(r,n)=>(j(),G("span",{class:Ae([[le(t)&&e.node.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},it(e.node.content),3))}}),[["__scopeId","data-v-56f30838"]]);Ft.install=e=>{e.component(Ft.__name,Ft)};const Jr=Wr(()=>et(null,null,function*(){var e,t;if(typeof globalThis<"u"&&globalThis.process!==void 0&&((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="test")return r=>{var n,i;return Nr(Ft,Bt(Ge({},r),{node:Bt(Ge({},r.node),{content:(i=r.node.raw)!=null?i:`$${(n=r.node.content)!=null?n:""}$`})}))};try{if(yield Ta())return(yield dt(()=>Promise.resolve().then(()=>Hm),void 0,import.meta.url)).default}catch(r){console.warn('[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',r)}return r=>{var n,i;return Nr(Ft,Bt(Ge({},r),{node:Bt(Ge({},r.node),{content:(i=r.node.raw)!=null?i:`$${(n=r.node.content)!=null?n:""}$`})}))}})),dm=Wr(()=>et(null,null,function*(){try{if(yield Ta())return(yield dt(()=>Promise.resolve().then(()=>jm),void 0,import.meta.url)).default}catch(e){console.warn('[markstream-vue] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',e)}return e=>{var t,r;return Nr(Ft,Bt(Ge({},e),{node:Bt(Ge({},e.node),{content:(r=e.node.raw)!=null?r:`$$${(t=e.node.content)!=null?t:""}$$`})}))}})),Zt=Ve({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup:e=>(t,r)=>(j(),G("span",{class:"reference-node cursor-pointer bg-[hsl(var(--muted))] text-xs rounded-md px-1.5 mx-0.5 hover:bg-[hsl(var(--secondary))]",role:"button",tabindex:"0",onClick:r[0]||(r[0]=n=>t.$emit("click",n,e.node.id,e.messageId,e.threadId)),onMouseenter:r[1]||(r[1]=n=>t.$emit("mouseEnter",n,e.node.id,e.messageId,e.threadId)),onMouseleave:r[2]||(r[2]=n=>t.$emit("mouseLeave",n,e.node.id,e.messageId,e.threadId))},it(e.node.id),33))});Zt.install=e=>{e.component(Zt.__name,Zt)};const J7={class:"superscript-node"},ek={key:1},fr=rt(Ve({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,strong:Qt,emphasis:tr,footnote_reference:hr,strikethrough:Jt,highlight:Cr,insert:mr,subscript:pr,emoji:ur,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("sup",J7,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),G(Ke,{key:`${e.indexKey||"superscript"}-${s}`},[n[a.type]?(j(),ht(rr(n[a.type]),{key:0,node:a,"custom-id":t.customId,"index-key":`${e.indexKey||"superscript"}-${s}`},null,8,["node","custom-id","index-key"])):(j(),G("span",ek,it(a.content||a.raw),1))],64))),128))]))}}),[["__scopeId","data-v-6dc1e3ba"]]);fr.install=e=>{e.component(fr.__name,fr)};const tk={class:"subscript-node"},rk={key:1},pr=rt(Ve({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,strong:Qt,emphasis:tr,footnote_reference:hr,strikethrough:Jt,highlight:Cr,insert:mr,superscript:fr,emoji:ur,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("sub",tk,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),G(Ke,{key:`${e.indexKey||"subscript"}-${s}`},[n[a.type]?(j(),ht(rr(n[a.type]),{key:0,node:a,"custom-id":t.customId,"index-key":`${e.indexKey||"subscript"}-${s}`},null,8,["node","custom-id","index-key"])):(j(),G("span",rk,it(a.content||a.raw),1))],64))),128))]))}}),[["__scopeId","data-v-69de9b81"]]);pr.install=e=>{e.component(pr.__name,pr)};const nk={class:"strong-node"},Qt=rt(Ve({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,emphasis:tr,strikethrough:Jt,highlight:Cr,insert:mr,subscript:pr,superscript:fr,emoji:ur,footnote_reference:hr,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("strong",nk,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),ht(rr(n[a.type]),{key:`${e.indexKey||"strong"}-${s}`,"index-key":`${e.indexKey||"strong"}-${s}`,node:a,"custom-id":t.customId},null,8,["index-key","node","custom-id"]))),128))]))}}),[["__scopeId","data-v-af3ce037"]]);Qt.install=e=>{e.component(Qt.__name,Qt)};const ik={class:"strikethrough-node"},Jt=rt(Ve({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,strong:Qt,emphasis:tr,highlight:Cr,insert:mr,subscript:pr,superscript:fr,emoji:ur,footnote_reference:hr,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("del",ik,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),ht(rr(n[a.type]),{key:`${e.indexKey||"strikethrough"}-${s}`,node:a,"custom-id":t.customId,"index-key":`${e.indexKey||"strikethrough"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-904d5bd1"]]);Jt.install=e=>{e.component(Jt.__name,Jt)};const ok=["href","title","aria-label","aria-hidden"],ak=["aria-hidden"],sk={class:"link-text-wrapper relative inline-flex"},lk={class:"leading-[normal] link-text"},ck={class:"leading-[normal] link-text"},er=rt(Ve({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const t=e,r=ue(()=>{var l,c,u,h,f,d;const p=t.underlineBottom!==void 0?typeof t.underlineBottom=="number"?`${t.underlineBottom}px`:String(t.underlineBottom):"-3px";return{"--link-color":(l=t.color)!=null?l:"#0366d6","--underline-height":`${(c=t.underlineHeight)!=null?c:2}px`,"--underline-bottom":p,"--underline-opacity":String((u=t.animationOpacity)!=null?u:.9),"--underline-duration":`${(h=t.animationDuration)!=null?h:.8}s`,"--underline-timing":(f=t.animationTiming)!=null?f:"linear","--underline-iteration":typeof t.animationIteration=="number"?String(t.animationIteration):(d=t.animationIteration)!=null?d:"infinite"}}),n={text:Ft,strong:Qt,strikethrough:Jt,emphasis:tr,image:hn,html_inline:dr,inline_code:Gt},i=ue(()=>(hi.value,ir(t.customId))),o=a2();function a(){t.showTooltip&&Sa()}const s=ue(()=>{var l,c;return String((c=(l=t.node.title)!=null?l:t.node.href)!=null?c:"")});return(l,c)=>e.node.loading?(j(),G("span",Xr({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},le(o),{style:r.value}),[L("span",sk,[L("span",lk,[L("span",ck,it(e.node.text),1)]),c[1]||(c[1]=L("span",{class:"underline-anim","aria-hidden":"true"},null,-1))])],16,ak)):(j(),G("a",Xr({key:0,class:"link-node",href:e.node.href,title:e.showTooltip?"":s.value,"aria-label":`Link: ${s.value}`,"aria-hidden":e.node.loading?"true":"false",target:"_blank",rel:"noopener noreferrer"},le(o),{style:r.value,onMouseenter:c[0]||(c[0]=u=>(function(h){var f,d,p;if(!t.showTooltip)return;const m=h,y=m?.clientX!=null&&m?.clientY!=null?{x:m.clientX,y:m.clientY}:void 0,C=((f=t.node)==null?void 0:f.title)||((d=t.node)==null?void 0:d.href)||((p=t.node)==null?void 0:p.text)||"";On(h.currentTarget,C,"top",!1,y)})(u)),onMouseleave:a}),[(j(!0),G(Ke,null,Vt(e.node.children,(u,h)=>(j(),ht(rr((function(f){return i.value[f.type]||n[f.type]||null})(u)),{key:`${e.indexKey||"emphasis"}-${h}`,node:u,"custom-id":t.customId,"index-key":`${e.indexKey||"link-text"}-${h}`},null,8,["node","custom-id","index-key"]))),128))],16,ok))}}),[["__scopeId","data-v-2ccf6f70"]]);er.install=e=>{e.component(er.__name,er)};const uk={class:"insert-node"},mr=rt(Ve({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,strong:Qt,emphasis:tr,strikethrough:Jt,highlight:Cr,subscript:pr,superscript:fr,emoji:ur,footnote_reference:hr,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("ins",uk,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),ht(rr(n[a.type]),{key:`${e.indexKey||"insert"}-${s}`,node:a,"custom-id":t.customId,"index-key":`${e.indexKey||"insert"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-ab1ec9bc"]]);mr.install=e=>{e.component(mr.__name,mr)};const hk={class:"highlight-node"},Cr=rt(Ve({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,strong:Qt,emphasis:tr,strikethrough:Jt,insert:mr,subscript:pr,superscript:fr,emoji:ur,footnote_reference:hr,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("mark",hk,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),ht(rr(n[a.type]),{key:`${e.indexKey||"highlight"}-${s}`,node:a,"custom-id":t.customId,"index-key":`${e.indexKey||"highlight"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-38e31bf6"]]);Cr.install=e=>{e.component(Cr.__name,Cr)};const dk={class:"emphasis-node"},tr=rt(Ve({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,html_inline:dr,strong:Qt,strikethrough:Jt,highlight:Cr,insert:mr,subscript:pr,superscript:fr,emoji:ur,footnote_reference:hr,math_inline:Jr,reference:Zt},r);return(i,o)=>(j(),G("em",dk,[(j(!0),G(Ke,null,Vt(e.node.children,(a,s)=>(j(),ht(rr(n[a.type]),{key:`${e.indexKey||"emphasis"}-${s}`,node:a,"custom-id":t.customId,"index-key":`${e.indexKey||"emphasis"}-${s}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-8264674d"]]);tr.install=e=>{e.component(tr.__name,tr)};const fk=["href","title"],Bi=rt(Ve({__name:"FootnoteAnchorNode",props:{node:{}},setup(e){const t=e;function r(n){var i;if(n.preventDefault(),typeof document>"u")return;const o=`fnref-${String((i=t.node.id)!=null?i:"")}`,a=document.getElementById(o);a&&a.scrollIntoView({behavior:"smooth"})}return(n,i)=>(j(),G("a",{class:"footnote-anchor text-sm text-[#0366d6] hover:underline cursor-pointer",href:`#fnref-${e.node.id}`,title:`返回引用 ${e.node.id}`,onClick:r}," ↩︎ ",8,fk))}}),[["__scopeId","data-v-4756ce0d"]]);Bi.install=e=>{e.component(Bi.__name,Bi)};const pk=["id"],mk={class:"flex-1"},bo=Ve({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(r,n)=>(j(),G("div",{id:`fnref--${e.node.id}`,class:"flex mt-2 mb-2 text-sm leading-relaxed border-t border-[#eaecef] pt-2"},[L("div",mk,[$o([t.node.children],()=>tt(le(_r),{"index-key":`footnote-${t.indexKey}`,nodes:t.node.children,"custom-id":t.customId,typewriter:t.typewriter,onCopy:n[0]||(n[0]=i=>r.$emit("copy",i))},null,8,["index-key","nodes","custom-id","typewriter"]),n,1)])],8,pk))}});bo.install=e=>{e.component(bo.__name,bo)};const gk={class:"hard-break"},En=rt(Ve({__name:"HardBreakNode",props:{node:{}},setup:e=>(t,r)=>(j(),G("br",gk))}),[["__scopeId","data-v-50c58f70"]]);En.install=e=>{e.component(En.__name,En)};const Zc=rt(Ve({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({text:Ft,inline_code:Gt,link:er,image:hn,strong:Qt,emphasis:tr,strikethrough:Jt,highlight:Cr,insert:mr,subscript:pr,superscript:fr,emoji:ur,checkbox:Dr,checkbox_input:Dr,footnote_reference:hr,hardbreak:En,math_inline:Jr,reference:Zt},r);return(i,o)=>$o([e.node.level,e.node.children,e.node.attrs],()=>(j(),ht(rr(`h${e.node.level}`),Xr({class:["heading-node",[`heading-${e.node.level}`]],dir:"auto"},e.node.attrs),{default:Zr(()=>[(j(!0),G(Ke,null,Vt(e.node.children,(a,s,l,c)=>{const u=[a];if(c&&c.key===`${e.indexKey||"heading"}-${s}`&&il(c,u))return c;const h=(j(),ht(rr(n[a.type]),{key:`${e.indexKey||"heading"}-${s}`,"custom-id":t.customId,node:a,"index-key":`${e.indexKey||"heading"}-${s}`},null,8,["custom-id","node","index-key"]));return h.memo=u,h},o,0),128))]),_:1},16,["class"])),o,2)}}),[["__scopeId","data-v-af2f957a"]]),Ma=Zc;Ma.install=e=>{e.component(Zc.__name,Zc)};const Li=rt(Ve({__name:"ListItemNode",props:{node:{},item:{},indexKey:{},value:{},customId:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){const t=e,r=ue(()=>{var i;return(i=t.node)!=null?i:t.item}),n=ue(()=>t.value==null?{}:{value:t.value});return(i,o)=>{var a;return j(),G("li",Xr({class:"list-item pl-1.5 my-2",dir:"auto"},n.value),[$o([(a=r.value)==null?void 0:a.children],()=>{var s,l;return tt(le(_r),{"index-key":`list-item-${t.indexKey}`,nodes:(l=(s=r.value)==null?void 0:s.children)!=null?l:[],"custom-id":t.customId,typewriter:t.typewriter,"batch-rendering":!1,onCopy:o[0]||(o[0]=c=>i.$emit("copy",c))},null,8,["index-key","nodes","custom-id","typewriter"])},o,1)],16)}}}),[["__scopeId","data-v-31a88b1f"]]);Li.install=e=>{e.component(Li.__name,Li)};const $i=rt(Ve({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){const t=ue(()=>(hi.value,ir(e.customId).list_item||Li));return(r,n)=>(j(),ht(rr(e.node.ordered?"ol":"ul"),{class:Ae(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:Zr(()=>[(j(!0),G(Ke,null,Vt(e.node.items,(i,o,a,s)=>{var l;const c=[i];if(s&&s.key===`${e.indexKey||"list"}-${o}`&&il(s,c))return s;const u=(j(),ht(rr(t.value),{key:`${e.indexKey||"list"}-${o}`,node:i,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${o}`,typewriter:e.typewriter,value:e.node.ordered?((l=e.node.start)!=null?l:1)+o:void 0,onCopy:n[0]||(n[0]=h=>r.$emit("copy",h))},null,40,["node","custom-id","index-key","typewriter","value"]));return u.memo=c,u},n,1),128))]),_:1},8,["class"]))}}),[["__scopeId","data-v-01209c2b"]]);$i.install=e=>{e.component($i.__name,$i)};const yk={key:1,class:"html-block-node__raw"},bk={key:1,class:"html-block-node__placeholder"},Di=rt(Ve({__name:"HtmlBlockNode",props:{node:{},customId:{}},setup(e){const t=e,r=ue(()=>{const f=t.node.attrs;if(f){if(Array.isArray(f)){const d={};for(const p of f){if(!p||p.length<2)continue;const[m,y]=p;m!=null&&(d[String(m)]=y==null?"":String(y))}return d}return f}}),n=ue(()=>(hi.value,ir(t.customId))),i=Ve({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),o=J(null),a=J(typeof window>"u"),s=J(t.node.content),l=ue(()=>{var f,d,p;if(!a.value)return{mode:"html",content:(f=s.value)!=null?f:""};const m=(d=s.value)!=null?d:t.node.content;if(!m)return{mode:"html",content:""};if(t.node.loading){const C=Os(m,n.value);return C===null?{mode:"text",content:(p=t.node.raw)!=null?p:m}:{mode:"dynamic",nodes:C}}if(!om(m,n.value))return{mode:"html",content:m};const y=Os(m,n.value);return y===null?{mode:"html",content:m}:{mode:"dynamic",nodes:y}}),c=Oo(),u=J(null),h=!!t.node.loading;return typeof window<"u"?(Ne(o,f=>{var d,p;if((p=(d=u.value)==null?void 0:d.destroy)==null||p.call(d),u.value=null,!h)return a.value=!0,void(s.value=t.node.content);if(!f)return void(a.value=!1);const m=c(f,{rootMargin:"400px"});u.value=m,a.value=m.isVisible.value,m.whenVisible.then(()=>{a.value=!0})},{immediate:!0}),Ne(()=>t.node.content,f=>{h&&!a.value||(s.value=f)})):a.value=!0,nr(()=>{var f,d;(d=(f=u.value)==null?void 0:f.destroy)==null||d.call(f),u.value=null}),(f,d)=>(j(),G("div",Xr({ref_key:"htmlRef",ref:o,class:"html-block-node"},r.value),[a.value?(j(),G(Ke,{key:0},[l.value.mode==="dynamic"?(j(),ht(le(i),{key:0,nodes:l.value.nodes},null,8,["nodes"])):l.value.mode==="text"?(j(),G("pre",yk,it(l.value.content),1)):$o([s.value],()=>(j(),G("div",{key:2,innerHTML:s.value},null,8,["innerHTML"])),d,0)],64)):(j(),G("div",bk,[Ut(f.$slots,"placeholder",{node:e.node},()=>[d[1]||(d[1]=L("span",{class:"html-block-node__placeholder-bar"},null,-1)),d[2]||(d[2]=L("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),d[3]||(d[3]=L("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))],16))}}),[["__scopeId","data-v-6797fa3c"]]);Di.install=e=>{e.component(Di.__name,Di)};const vk={dir:"auto",class:"paragraph-node"},Fi=rt(Ve({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,r=ir(t.customId),n=Ge({inline_code:Gt,image:hn,link:er,hardbreak:En,emphasis:tr,strong:Qt,strikethrough:Jt,highlight:Cr,insert:mr,subscript:pr,superscript:fr,html_inline:dr,html_block:Di,emoji:ur,checkbox:Dr,math_inline:Jr,checkbox_input:Dr,reference:Zt,footnote_anchor:Bi,footnote_reference:hr},r),i=hm();return(o,a)=>(j(),G("p",vk,[(j(!0),G(Ke,null,Vt(e.node.children,(s,l)=>(j(),G(Ke,{key:`${e.indexKey||"paragraph"}-${l}`},[s.type!=="text"?(j(),ht(rr(n[s.type]),{key:0,node:s,"index-key":`${e.indexKey}-${l}`,"custom-id":t.customId},null,8,["node","index-key","custom-id"])):(j(),G("span",{key:1,class:Ae([[le(i)&&s.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},it(s.content),3))],64))),128))]))}}),[["__scopeId","data-v-4e2afdbc"]]);Fi.install=e=>{e.component(Fi.__name,Fi)};const xk=["aria-busy","aria-label","data-language"],wk=["textContent"],Hr=Ve({__name:"PreCodeNode",props:{node:{}},setup(e){const t=e,r=ue(()=>{var o,a,s;const l=String((a=(o=t.node)==null?void 0:o.language)!=null?a:"");return String((s=String(l).split(/\s+/g)[0])!=null?s:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),n=ue(()=>`language-${r.value}`),i=ue(()=>{const o=r.value;return o?`Code block: ${o}`:"Code block"});return(o,a)=>(j(),G("pre",{class:Ae([n.value]),"aria-busy":e.node.loading===!0,"aria-label":i.value,"data-language":r.value,tabindex:"0"},[L("code",{translate:"no",textContent:it(e.node.code)},null,8,wk)],10,xk))}});Hr.install=e=>{e.component(Hr.__name,Hr)};const kk={class:"table-node-wrapper"},_k=["aria-busy"],Ck={class:"border-[var(--table-border,#cbd5e1)]"},Sk={class:"border-b"},Tk={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},Ii=rt(Ve({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e,r=ue(()=>{var i;return(i=t.node.loading)!=null&&i}),n=ue(()=>{var i;return(i=t.node.rows)!=null?i:[]});return(i,o)=>(j(),G("div",kk,[L("table",{class:Ae(["my-8 text-sm table-node",{"table-node--loading":r.value}]),"aria-busy":r.value},[L("thead",Ck,[L("tr",Sk,[(j(!0),G(Ke,null,Vt(e.node.header.cells,(a,s)=>(j(),G("th",{key:`header-${s}`,dir:"auto",class:Ae(["font-semibold p-[calc(4/7*1em)]",[a.align==="right"?"text-right":a.align==="center"?"text-center":"text-left"]])},[tt(le(_r),{nodes:a.children,"index-key":`table-th-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,onCopy:o[0]||(o[0]=l=>i.$emit("copy",l))},null,8,["nodes","index-key","custom-id","typewriter"])],2))),128))])]),L("tbody",null,[(j(!0),G(Ke,null,Vt(n.value,(a,s)=>(j(),G("tr",{key:`row-${s}`,class:Ae(["border-[var(--table-border,#cbd5e1)]",[s<n.value.length-1?"border-b":""]])},[(j(!0),G(Ke,null,Vt(a.cells,(l,c)=>(j(),G("td",{key:`cell-${s}-${c}`,class:Ae(["p-[calc(4/7*1em)]",[l.align==="right"?"text-right":l.align==="center"?"text-center":"text-left"]]),dir:"auto"},[tt(le(_r),{nodes:l.children,"index-key":`table-td-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,onCopy:o[1]||(o[1]=u=>i.$emit("copy",u))},null,8,["nodes","index-key","custom-id","typewriter"])],2))),128))],2))),128))])],10,_k),tt(Pn,{name:"table-node-fade"},{default:Zr(()=>[r.value?(j(),G("div",Tk,[Ut(i.$slots,"loading",{isLoading:r.value},()=>[o[2]||(o[2]=L("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),o[3]||(o[3]=L("span",{class:"sr-only"},"Loading",-1))],!0)])):Qe("",!0)]),_:3})]))}}),[["__scopeId","data-v-369096fa"]]);Ii.install=e=>{e.component(Ii.__name,Ii)};const Mk={class:"hr-node"},vo=rt({},[["render",function(e,t){return j(),G("hr",Mk)}],["__scopeId","data-v-639cbad9"]]);vo.install=e=>{e.component(vo.__name,vo)};const Ak={class:"unknown-node"},Qc=Ve({__name:"FallbackComponent",props:{node:{}},setup:e=>(t,r)=>(j(),G("div",Ak,it(e.node.raw),1))}),xo=rt(Ve({__name:"VmrContainerNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},setup(e){const t=e,r=ue(()=>`vmr-container vmr-container-${t.node.name}`),n=ir(t.customId),i=Ge({text:Ft,paragraph:Fi,heading:Ma,inline_code:Gt,link:er,image:hn,strong:Qt,emphasis:tr,strikethrough:Jt,insert:mr,subscript:pr,superscript:fr,checkbox:Dr,checkbox_input:Dr,hardbreak:En,math_inline:Jr,reference:Zt,list:$i,math_block:dm,table:Ii},n);return(o,a)=>(j(),G("div",Xr({class:r.value},e.node.attrs),[(j(!0),G(Ke,null,Vt(e.node.children,(s,l,c,u)=>{const h=[s];if(u&&u.key===`${e.indexKey||"vmr-container"}-${l}`&&il(u,h))return u;const f=(j(),ht(rr((d=s.type,i[d]||Qc)),{key:`${e.indexKey||"vmr-container"}-${l}`,"custom-id":t.customId,node:s,"index-key":`${e.indexKey||"vmr-container"}-${l}`},null,8,["custom-id","node","index-key"]));var d;return f.memo=h,f},a,0),128))],16))}}),[["__scopeId","data-v-fac7405d"]]);xo.install=e=>{e.component(xo.__name,xo)};const Ek=["data-custom-id"],Bk=["data-node-index","data-node-type"],_r=rt(Ve({__name:"NodeRenderer",props:{content:{},nodes:{},final:{type:Boolean},parseOptions:{},customMarkdownIt:{},debugPerformance:{type:Boolean,default:!1},customHtmlTags:{},viewportPriority:{type:Boolean},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},renderCodeBlocksAsPre:{type:Boolean},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},themes:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:Boolean,default:!0},batchRendering:{type:Boolean,default:!0},initialRenderBatchSize:{default:40},renderBatchSize:{default:80},renderBatchDelay:{default:16},renderBatchBudgetMs:{default:6},renderBatchIdleTimeoutMs:{default:120},deferNodesUntilVisible:{type:Boolean,default:!0},maxLiveNodes:{default:320},liveNodeBuffer:{default:60}},emits:["copy","handleArtifactClick","click","mouseover","mouseout"],setup(e,{emit:t}){var r,n,i;const o=e,a=t,s=J(),l=J(!1),c=/auto|scroll|overlay/i,u=typeof window<"u",h=ue(()=>o.debugPerformance&&u&&typeof console<"u");function f($,O){h.value&&console.info(`[markstream-vue][perf] ${$}`,O)}function d($){if(typeof window>"u")return null;const O=$??s.value;if(!O)return null;const X=O.ownerDocument||document,ie=X.scrollingElement||X.documentElement;let ae=O;for(;ae&&ae!==X.body&&ae!==ie;){const xe=window.getComputedStyle(ae),we=(xe.overflowY||"").toLowerCase(),Oe=(xe.overflow||"").toLowerCase();if(c.test(we)||c.test(Oe))return ae;ae=ae.parentElement}return null}const p=o.customId?`renderer-${o.customId}`:`renderer-${Date.now()}-${Math.random().toString(36).slice(2)}`,m=Gc(p),y=new Map,C=ue(()=>{const{key:$,tags:O}=(function(ae){if(!ae||ae.length===0)return{key:"",tags:[]};const xe=new Set,we=[];for(const Oe of ae){const Me=g(Oe);Me&&!xe.has(Me)&&(xe.add(Me),we.push(Me))}return we.length===0?{key:"",tags:[]}:{key:we.join(","),tags:we}})(o.customHtmlTags);if(!$)return m;const X=y.get($);if(X)return X;const ie=Gc(p,{customHtmlTags:O});return y.set($,ie),ie}),x=ue(()=>{const $=C.value;return o.customMarkdownIt?o.customMarkdownIt($):$});function g($){const O=String($??"").trim();if(!O)return"";const X=O.match(/^[<\s/]*([A-Z][\w-]*)/i);return X?X[1].toLowerCase():""}const b=ue(()=>{var $,O,X,ie;const ae=($=o.parseOptions)!=null?$:{},xe=(O=o.final)!=null?O:ae.final,we=[...(X=o.customHtmlTags)!=null?X:[],...(ie=ae.customHtmlTags)!=null?ie:[]].map(g).filter(Boolean),Oe=xe!=null,Me=we.length>0;return Oe||Me?Ge(Ge(Ge({},ae),Oe?{final:xe}:{}),Me?{customHtmlTags:Array.from(new Set(we))}:{}):ae}),v=ue(()=>{var $;if(($=o.nodes)!=null&&$.length)return fc(o.nodes.slice());if(o.content){const O=h.value?performance.now():0,X=J1(o.content,x.value,b.value);return h.value&&f("parse(sync)",{ms:Math.round(performance.now()-O),nodes:X.length,contentLength:o.content.length}),fc(X)}return[]}),A=ue(()=>{var $;return Math.max(1,($=o.maxLiveNodes)!=null?$:320)}),w=ue(()=>{var $;return!((($=o.maxLiveNodes)!=null?$:0)<=0)&&v.value.length>A.value}),T=ue(()=>o.viewportPriority!==!1&&!l.value),S=(function($,O){const X=typeof window<"u"&&typeof document<"u",ie=typeof O=="boolean"?J(O):O;let ae=null,xe=null;const we=new WeakMap,Oe=(Me,Pe)=>{const We=J(!1);let Re,nt=!1;const Ct=new Promise(Ir=>{Re=()=>{nt||(nt=!0,Ir())}}),Sr=()=>{try{ae?.unobserve(Me)}catch{}we.delete(Me)};if(!X||!ie.value)return We.value=!0,Re(),{isVisible:We,whenVisible:Ct,destroy:Sr};!xe&&Pe&&(xe=Ge({},Pe));const Vn=(function(Ir){var Tr,mn,Un;if(ae||!X)return ae;if(typeof IntersectionObserver>"u")return null;const br=(Tr=$?.(Ir??null))!=null?Tr:null,Mr=xe||{};return ae=new IntersectionObserver(Gn=>{for(const gn of Gn){const yn=we.get(gn.target);if(yn&&(gn.isIntersecting||gn.intersectionRatio>0)){if(!yn.visible.value){yn.visible.value=!0;try{yn.resolve()}catch{}}ae?.unobserve(gn.target),we.delete(gn.target)}}},{root:br,rootMargin:(mn=Mr.rootMargin)!=null?mn:"300px",threshold:(Un=Mr.threshold)!=null?Un:0}),ae})(Me);return Vn?(we.set(Me,{resolve:Re,visible:We}),Vn.observe(Me),{isVisible:We,whenVisible:Ct,destroy:Sr}):(We.value=!0,Re(),{isVisible:We,whenVisible:Ct,destroy:Sr})};return Yo(lm,Oe),Oe})($=>{var O;return d((O=$??s.value)!=null?O:null)},T),_=u&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,B=u&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,E=typeof globalThis<"u"&&globalThis.process!==void 0&&((n=(r=globalThis.process)==null?void 0:r.env)==null?void 0:n.NODE_ENV)==="test",I=u&&typeof window.requestIdleCallback=="function",W=ue(()=>{var $;const O=Math.trunc(($=o.renderBatchSize)!=null?$:80);return Number.isFinite(O)?Math.max(0,O):0}),F=ue(()=>{var $;const O=Math.trunc(($=o.initialRenderBatchSize)!=null?$:W.value);return Number.isFinite(O)?Math.max(0,O):W.value}),D=ue(()=>o.batchRendering!==!1&&W.value>0&&u&&!E),R=J(0),z=J({key:o.indexKey,total:0}),V=J(Math.max(1,W.value||1)),re=ln({}),de=new Map,Ce=new Map,ce=new Map,ee=J(0),pe=ue(()=>(ee.value,Array.from(ce.entries()).sort(($,O)=>$[0]-O[0]))),be=J(0),N=J([]),me=J([]),fe=J(null);let Se=null,$e=null;const K=ue(()=>{var $;return o.deferNodesUntilVisible!==!1&&!((($=o.maxLiveNodes)!=null?$:0)<=0)&&!w.value&&!(v.value.length>900)&&T.value}),k=ue(()=>{var $;return D.value&&(($=o.maxLiveNodes)!=null?$:0)<=0}),M=J({batchSize:W.value,initial:F.value,delay:(i=o.renderBatchDelay)!=null?i:16,enabled:k.value}),H=ue(()=>!!S&&(K.value||w.value)),te=ue(()=>{var $;return Math.max(0,($=o.liveNodeBuffer)!=null?$:60)}),Z=J(0),Q=ln({start:0,end:0}),he=new Map,ge=ue(()=>{if(!w.value)return v.value.length;const $=te.value,O=Math.max(Q.end+$,F.value),X=Math.min(v.value.length,O);return Math.max(R.value,X)});function ye($){var O,X,ie,ae;const xe=d((O=$??s.value)!=null?O:null);if(xe)return xe;const we=(ae=(ie=$?.ownerDocument)!=null?ie:(X=s.value)==null?void 0:X.ownerDocument)!=null?ae:typeof document<"u"?document:null;return we?.scrollingElement||we?.documentElement||null}function se($){if(!u)return!1;try{const O=window.getComputedStyle($);return!!(O.display||"").toLowerCase().includes("flex")&&(O.flexDirection||"").toLowerCase().endsWith("reverse")}catch{return!1}}function Ie(){Se&&(Se(),Se=null),fe.value=null}function ke(){if(!u||!w.value)return;const $=ye();if(!$||fe.value===$)return;Ie();const O=()=>Te();$.addEventListener("scroll",O,{passive:!0}),fe.value=$,Se=()=>{$.removeEventListener("scroll",O)}}function Ee(){var $,O,X;if(!$e)return;const ie=(X=(O=($=s.value)==null?void 0:$.ownerDocument)==null?void 0:O.defaultView)!=null?X:typeof window<"u"?window:null;$e.viaTimeout?ie?ie.clearTimeout($e.id):clearTimeout($e.id):B?.($e.id),$e=null}function Te($={}){var O,X,ie;if(!w.value)return;if(!u)return void De(!0);if($.immediate)return Ee(),void De(!0);if($e)return;const ae=()=>{$e=null,De()};if(_)$e={id:_(ae),viaTimeout:!1};else{const xe=(ie=(X=(O=s.value)==null?void 0:O.ownerDocument)==null?void 0:X.defaultView)!=null?ie:typeof window<"u"?window:null;$e={id:xe?xe.setTimeout(ae,16):setTimeout(ae,16),viaTimeout:!0}}}function De($=!1){var O,X,ie,ae,xe,we,Oe;if(!w.value)return;const Me=fe.value||ye();if(!Me)return;const Pe=Me.ownerDocument||((O=s.value)==null?void 0:O.ownerDocument)||document,We=Pe?.defaultView||(typeof window<"u"?window:null),Re=Me===Pe?.documentElement||Me===Pe?.body,nt=v.value.length;if(!Re&&nt>0&&se(Me)){const br=Me.clientHeight||0,Mr=Me.scrollTop,Gn=Mr<0?-Mr:Mr,gn=(function(Gi){var zr;const vr=v.value;if(!vr.length)return 0;if(Gi<=0)return Math.max(0,vr.length-1);if(be.value===vr.length){const or=yt(0,vr.length);return oe(Math.max(0,or-Gi))}let Yi=Gi;for(let or=vr.length-1;or>=0;or--){const Yn=(zr=Ue[or])!=null?zr:Ot.value;if(Yi<=Yn)return or;Yi-=Yn}return 0})(Math.max(0,Gn)+.5*Math.max(0,br)),yn=He(gn,0,Math.max(0,nt-1));return void(($||Math.abs(yn-Z.value)>1)&&(Z.value=yn))}const Ct=Re?null:Me.getBoundingClientRect(),Sr=Re?0:Ct.top,Vn=Re?(ie=(X=We?.innerHeight)!=null?X:Me.clientHeight)!=null?ie:0:Ct.bottom,Ir=pe.value;let Tr=null,mn=null;for(const[br,Mr]of Ir){if(!Mr)continue;const Gn=Mr.getBoundingClientRect();Gn.bottom<=Sr||Gn.top>=Vn||(Tr==null&&(Tr=br),mn=br)}if(Tr==null||mn==null){const br=s.value;if(!br)return;const Mr=Re?{top:0}:Me.getBoundingClientRect(),Gn=(function(zr,vr,Yi){var or,Yn,Aa,nh,ih,oh;if(Yi)return(nh=(Aa=(or=vr?.documentElement)==null?void 0:or.scrollTop)!=null?Aa:(Yn=vr?.body)==null?void 0:Yn.scrollTop)!=null?nh:0;const Ea=zr.scrollTop;if(!se(zr))return Ea;const Ym=Ea<0?-Ea:Ea;return Math.max(0,((ih=zr.scrollHeight)!=null?ih:0)-((oh=zr.clientHeight)!=null?oh:0))-Ym})(Me,Pe,Re),gn=Re?(()=>{const zr=br.getBoundingClientRect(),vr=(Re?0:Mr.top)-zr.top;return Math.max(0,vr)})():(()=>{const zr=(function(vr,Yi){let or=vr,Yn=0,Aa=0;for(;or&&or!==Yi&&Aa++<64;)Yn+=or.offsetTop||0,or=or.offsetParent;return Yn})(br,Me);return Math.max(0,Gn-zr)})(),yn=Re?(Oe=(we=(xe=We?.innerHeight)!=null?xe:(ae=Pe?.documentElement)==null?void 0:ae.clientHeight)!=null?we:Me.clientHeight)!=null?Oe:0:Me.clientHeight,Gi=oe(gn+.5*Math.max(0,yn));return void(Z.value=He(Gi,0,Math.max(0,v.value.length-1)))}const Un=Math.round((Tr+mn)/2);!$&&Math.abs(Un-Z.value)<=1||(Z.value=He(Un,0,Math.max(0,v.value.length-1)))}function He($,O,X){return Math.min(Math.max($,O),X)}const Ue=ln({}),ft=ln({total:0,count:0});function ut($,O,X){for(let ie=O+1;ie<$.length;ie+=ie&-ie)$[ie]+=X}function gt($,O){let X=0;for(let ie=O+1;ie>0;ie-=ie&-ie)X+=$[ie];return X}function wt($,O,X){if(X<=O)return 0;const ie=gt($,X-1);return O<=0?ie:ie-gt($,O-1)}const Ot=ue(()=>ft.count>0?Math.max(12,ft.total/ft.count):32);function yt($,O){var X,ie;if($>=O)return 0;if(be.value!==v.value.length){let we=0;for(let Oe=$;Oe<O;Oe++)we+=(X=Ue[Oe])!=null?X:Ot.value;return we}const ae=N.value,xe=me.value;if(!ae.length||!xe.length){let we=0;for(let Oe=$;Oe<O;Oe++)we+=(ie=Ue[Oe])!=null?ie:Ot.value;return we}return wt(ae,$,O)+(O-$-wt(xe,$,O))*Ot.value}Ne(()=>v.value.length,$=>{if($<=0)return be.value=0,N.value=[],void(me.value=[]);$!==be.value&&(function(O){be.value=O;const X=new Array(O+1).fill(0),ie=new Array(O+1).fill(0);for(const[ae,xe]of Object.entries(Ue)){const we=Number(ae),Oe=Number(xe);!Number.isFinite(we)||we<0||we>=O||!Number.isFinite(Oe)||Oe<=0||(ut(X,we,Oe),ut(ie,we,1))}N.value=X,me.value=ie})($)},{immediate:!0});const Je=ue(()=>{if(!w.value)return v.value.map((ie,ae)=>({node:ie,index:ae}));const $=v.value.length,O=He(Q.start,0,$),X=He(Q.end,O,$);return v.value.slice(O,X).map((ie,ae)=>({node:ie,index:O+ae}))}),Y=ue(()=>w.value?yt(0,Math.min(Q.start,v.value.length)):0),q=ue(()=>{if(!w.value)return 0;const $=v.value.length;return yt(Math.min(Q.end,$),$)});function oe($){var O;if($<=0)return 0;const X=v.value;if(be.value===X.length&&N.value.length&&me.value.length){const ae=Ot.value,xe=N.value,we=me.value,Oe=Re=>Re<=0?0:gt(xe,Re-1)+(Re-gt(we,Re-1))*ae;let Me=0,Pe=X.length-1,We=X.length-1;for(;Me<=Pe;){const Re=Me+Pe>>1;Oe(Re+1)>=$?(We=Re,Pe=Re-1):Me=Re+1}return We}let ie=$;for(let ae=0;ae<X.length;ae++){const xe=(O=Ue[ae])!=null?O:Ot.value;if(ie<=xe)return ae;ie-=xe}return Math.max(0,X.length-1)}function ve(){ee.value+=1}function _e($){if(!de.size||!w.value)return;let O=!1;for(const[X,ie]of de)X>=$&&(ie.destroy(),de.delete(X),K.value&&delete re[X],Ze(X),ce.delete(X)&&(O=!0));O&&ve()}function Le($,O){K.value&&(re[$]=O),O&&(w.value?Te():Z.value=He($,0,Math.max(0,v.value.length-1)))}function Ye($){const O=de.get($);O&&(O.destroy(),de.delete($)),Ze($)}function Fe($,O){let X=!1;if(O){const ae=ce.get($);ce.set($,O),ae!==O&&(X=!0)}else ce.delete($)&&(X=!0);if(X&&ve(),O||Ze($),!H.value||!S||!w.value&&K.value&&!l.value&&de.size>=640&&((function(){if(!l.value){l.value=!0;for(const ae of de.values())ae.destroy();if(de.clear(),u)for(const ae of Ce.values())window.clearTimeout(ae);Ce.clear();for(const ae of Object.keys(re))delete re[ae]}})(),!H.value||!S))return Ye($),void(O?Le($,!0):K.value&&delete re[$]);if($<F.value&&!w.value)return Ye($),void Le($,!0);if(!O)return Ye($),void(K.value&&delete re[$]);Ye($);const ie=S(O,{rootMargin:"400px"});ie&&(de.set($,ie),Le($,ie.isVisible.value),K.value&&(function(ae){if(!u||!K.value)return;Ze(ae);const xe=ae%17*23,we=window.setTimeout(()=>{var Oe,Me;if(Ce.delete(ae),!K.value||re[ae]===!0)return;const Pe=ce.get(ae);if(!Pe)return void delete re[ae];const We=ye(Pe),Re=Pe.ownerDocument||document,nt=Re.defaultView||window,Ct=!We||We===Re.documentElement||We===Re.body,Sr=!Ct&&We?We.getBoundingClientRect():null,Vn=Ct?0:Sr.top,Ir=Ct?(Me=(Oe=nt.innerHeight)!=null?Oe:We?.clientHeight)!=null?Me:0:Sr.bottom,Tr=Pe.getBoundingClientRect();Tr.bottom>=Vn-500&&Tr.top<=Ir+500&&Le(ae,!0)},1800+xe);Ce.set(ae,we)})($),ie.whenVisible.then(()=>{Ze($),Le($,!0)}).catch(()=>{}).finally(()=>{de.get($)===ie&&de.delete($);try{ie.destroy()}catch{}}),w.value&&Te())}let st=null,je=null,Xe=!1,Tt=null,qt=null;function vt(){u&&(st!=null&&(B?.(st),st=null),je!=null&&(window.clearTimeout(je),je=null),qt!=null&&typeof window.cancelIdleCallback=="function"&&(window.cancelIdleCallback(qt),qt=null),Xe=!1,Tt=null)}function Ze($){if(!u)return;const O=Ce.get($);O!=null&&(window.clearTimeout(O),Ce.delete($))}function Yt($,O={}){var X,ie;if(!k.value)return;const ae=ge.value;if(R.value>=ae)return;const xe=Math.max(1,$),we=Me=>{var Pe;st=null,je=null,qt=null,Xe=!1;const We=Tt??xe;Tt=null;const Re=Math.max(2,(Pe=o.renderBatchBudgetMs)!=null?Pe:6),nt=Sr=>{const Vn=typeof performance<"u"?performance.now():Date.now();R.value=Math.min(ae,R.value+Math.max(1,Sr)),_e(R.value);const Ir=(typeof performance<"u"?performance.now():Date.now())-Vn;return(function(Tr){var mn;if(!k.value)return;const Un=Math.max(2,(mn=o.renderBatchBudgetMs)!=null?mn:6),br=Math.max(1,W.value||1),Mr=Math.max(1,Math.floor(br/4));Tr>1.2*Un?V.value=Math.max(Mr,Math.floor(.7*V.value)):Tr<.5*Un&&V.value<br&&(V.value=Math.min(br,Math.ceil(1.2*V.value)))})(Ir),Ir};let Ct=We;for(;nt(Ct),!(R.value>=ae)&&Me&&!((typeof Me.timeRemaining=="function"?Me.timeRemaining():0)<=.5*Re);)Ct=Math.max(1,Math.round(V.value));R.value<ae&&gr()};if(!u||O.immediate)return void we();const Oe=Math.max(0,(X=o.renderBatchDelay)!=null?X:16);if(Tt=Tt!=null?Math.max(Tt,xe):xe,!Xe){if(Xe=!0,!E&&I&&window.requestIdleCallback){const Me=Math.max(0,(ie=o.renderBatchIdleTimeoutMs)!=null?ie:120);return void(qt=window.requestIdleCallback(Pe=>{we(Pe)},{timeout:Me}))}_&&!E?st=_(()=>{Oe!==0?je=window.setTimeout(()=>we(),Oe):we()}):je=window.setTimeout(()=>we(),Oe)}}function gr(){k.value&&Yt(D.value?Math.max(1,Math.round(V.value)):Math.max(1,W.value))}Ne([()=>v.value,()=>v.value.length,()=>k.value,()=>W.value,()=>F.value,()=>o.renderBatchDelay,()=>o.indexKey],()=>{var $;const O=v.value.length,X=z.value,ie=o.indexKey,ae=ie!==void 0&&ie!==X.key,xe=O!==X.total,we=ae||xe;z.value={key:ie,total:O};const Oe=M.value,Me=($=o.renderBatchDelay)!=null?$:16,Pe=Oe.batchSize!==W.value||Oe.initial!==F.value||Oe.delay!==Me||Oe.enabled!==k.value;M.value={batchSize:W.value,initial:F.value,delay:Me,enabled:k.value},(we||Pe||!k.value)&&vt(),(we||Pe)&&(V.value=Math.max(1,W.value||1)),we&&w.value&&Te({immediate:!0});const We=ge.value;if(!O)return R.value=0,void _e(0);if(!k.value)return R.value=We,void _e(R.value);const Re=ae||X.total===0;R.value=Re||Pe?Math.min(We,F.value):Math.min(R.value,We);const nt=Math.max(1,F.value||W.value||O);R.value<We?Yt(nt,{immediate:!u}):_e(R.value)},{immediate:!0}),Ne(()=>w.value,$=>{if(!$)return Ie(),void Ee();ke(),Te({immediate:!0})},{immediate:!0}),Ne([()=>v.value.length,()=>w.value],$=>et(null,[$],function*([O,X]){X&&O&&u&&(yield at(),Te({immediate:!0}))}),{flush:"post"}),Ne(()=>s.value,()=>{w.value&&(ke(),Te({immediate:!0}))}),Ne(()=>v.value.length,()=>{w.value&&Te({immediate:!0})}),Ne(()=>K.value,$=>{if($)for(const[O,X]of ce)Fe(O,X);else{for(const O of de.values())O.destroy();de.clear();for(const O of Array.from(Ce.keys()))Ze(O);for(const O of Object.keys(re))delete re[O];for(const[O,X]of ce)X&&Le(O,!0)}},{immediate:!1}),Ne([()=>o.viewportPriority,()=>v.value.length],([$,O])=>{$!==!1?l.value&&O<=200&&(l.value=!1):l.value=!1}),Ne(()=>R.value,()=>{w.value&&Te({immediate:!0})}),Ne([Z,A,te,()=>v.value.length,w],()=>{(function(){const $=v.value.length;if(!w.value||$===0)return Q.start=0,void(Q.end=$);const O=Math.min(A.value,$),X=te.value,ie=He(Z.value-X,0,Math.max(0,$-O));Q.start=ie,Q.end=Math.min($,ie+O)})()},{immediate:!0}),Ne([()=>v.value.length,w,A,te,()=>Q.start,()=>Q.end],([$,O,X,ie,ae,xe])=>{h.value&&f("virtualization",{nodes:$,virtualization:O,maxLiveNodes:X,buffer:ie,focusIndex:Z.value,scroll:O?(()=>{const we=fe.value||ye();return we?{reverse:se(we),scrollTop:Math.round(we.scrollTop),scrollTopAbs:Math.round(Math.abs(we.scrollTop)),scrollHeight:Math.round(we.scrollHeight),clientHeight:Math.round(we.clientHeight)}:null})():null,liveRange:{start:ae,end:xe},rendered:R.value})}),Ne(()=>ge.value,($,O)=>{k.value&&(typeof O=="number"&&$<=O||$>R.value&&gr())}),nr(()=>{vt();for(const $ of de.values())$.destroy();de.clear();for(const $ of Array.from(Ce.keys()))Ze($);Ie(),Ee()});const qn=Wr(()=>et(null,null,function*(){try{return(yield dt(()=>Promise.resolve().then(()=>Wm),void 0,import.meta.url)).default}catch($){return console.warn('[markstream-vue] Optional peer dependencies for CodeBlockNode are missing. Falling back to inline-code rendering (no Monaco). To enable full code block features, please install "stream-monaco".',$),Hr}})),Mt=Wr(()=>et(null,null,function*(){try{return(yield dt(()=>Promise.resolve().then(()=>Vm),void 0,import.meta.url)).default}catch($){return console.warn('[markstream-vue] Optional peer dependencies for MermaidBlockNode are missing. Falling back to preformatted code rendering. To enable Mermaid rendering, please install "mermaid".',$),Hr}})),Ht=Wr(()=>et(null,null,function*(){try{return(yield dt(()=>Promise.resolve().then(()=>Gm),void 0,import.meta.url)).default}catch($){return console.warn('[markstream-vue] Optional peer dependencies for InfographicBlockNode are missing. Falling back to preformatted code rendering. To enable Infographic rendering, please install "@antv/infographic".',$),Hr}})),Hn=ue(()=>o.renderCodeBlocksAsPre?Hr:qn),di={text:Ft,paragraph:Fi,heading:Ma,code_block:qn,list:$i,list_item:Li,blockquote:go,table:Ii,definition_list:yo,footnote:bo,footnote_reference:hr,footnote_anchor:Bi,admonition:wo,vmr_container:xo,hardbreak:En,link:er,image:hn,thematic_break:vo,math_inline:Jr,math_block:dm,strong:Qt,emphasis:tr,strikethrough:Jt,highlight:Cr,insert:mr,subscript:pr,superscript:fr,emoji:ur,checkbox:Dr,checkbox_input:Dr,inline_code:Gt,html_inline:dr,reference:Zt,html_block:Di},fi=ue(()=>(hi.value,ir(o.customId))),jn=ue(()=>o.indexKey!=null?String(o.indexKey):"markdown-renderer"),Vi={},yr=ue(()=>Ge({stream:o.codeBlockStream,darkTheme:o.codeBlockDarkTheme,lightTheme:o.codeBlockLightTheme,monacoOptions:o.codeBlockMonacoOptions,themes:o.themes,minWidth:o.codeBlockMinWidth,maxWidth:o.codeBlockMaxWidth},o.codeBlockProps||{})),Wn=ue(()=>({typewriter:o.typewriter})),Ro=ue(()=>Je.value.map($=>{const O=pi($.node);return Bt(Ge({},$),{component:Ui($.node,O),bindings:U($.node,O),isCodeBlock:$.node.type==="code_block",indexKey:`${jn.value}-${$.index}`})}));function pi($){var O;return $?.type==="code_block"?String((O=$.language)!=null?O:"").trim().toLowerCase():""}function Ui($,O){if(!$)return Qc;const X=fi.value,ie=X[String($.type)];if($.type==="code_block"){const ae=O??pi($);return ae==="mermaid"?X.mermaid||Mt:ae==="infographic"?X.infographic||Ht:ie||X.code_block||Hn.value}return ie||di[String($.type)]||Qc}function U($,O){const X=O??pi($);return X==="mermaid"||X==="infographic"?Vi:$.type==="code_block"?yr.value:Wn.value}function P($){a("click",$)}function ne($){var O;(O=$.target)!=null&&O.closest("[data-node-index]")&&a("mouseover",$)}function Be($){var O;(O=$.target)!=null&&O.closest("[data-node-index]")&&a("mouseout",$)}return($,O)=>(j(),G("div",{ref_key:"containerRef",ref:s,class:Ae(["markstream-vue markdown-renderer",[{dark:o.isDark},{virtualized:w.value}]]),"data-custom-id":o.customId,onClick:P,onMouseover:ne,onMouseout:Be},[w.value?(j(),G("div",{key:0,class:"node-spacer",style:St({height:`${Y.value}px`}),"aria-hidden":"true"},null,4)):Qe("",!0),(j(!0),G(Ke,null,Vt(Ro.value,X=>{var ie,ae;return j(),G("div",{key:X.index,ref_for:!0,ref:xe=>Fe(X.index,xe),class:"node-slot","data-node-index":X.index,"data-node-type":X.node.type},[(ae=X.index,k.value&&ae>=R.value||K.value&&!(ae<F.value)&&re[ae]!==!0?(j(),G("div",{key:1,class:"node-placeholder",style:St({height:`${(ie=Ue[X.index])!=null?ie:Ot.value}px`})},null,4)):(j(),G("div",{key:0,ref_for:!0,ref:xe=>(function(we,Oe){Oe?(he.set(we,Oe),queueMicrotask(()=>{(function(Me,Pe){if(!Number.isFinite(Pe)||Pe<=0)return;const We=Ue[Me];if(Ue[Me]=Pe,We?ft.total+=Pe-We:(ft.total+=Pe,ft.count++),be.value>Me){const Re=N.value,nt=me.value;if(Re.length&&nt.length)if(We){const Ct=Pe-We;Ct!==0&&ut(Re,Me,Ct)}else ut(Re,Me,Pe),ut(nt,Me,1)}})(we,Oe.offsetHeight)})):he.delete(we)})(X.index,xe),class:"node-content"},[X.isCodeBlock||o.typewriter===!1?(j(),ht(rr(X.component),Xr({key:1,node:X.node,loading:X.node.loading,"index-key":X.indexKey},{ref_for:!0},X.bindings,{"custom-id":o.customId,"is-dark":o.isDark,onCopy:O[2]||(O[2]=xe=>a("copy",xe)),onHandleArtifactClick:O[3]||(O[3]=xe=>a("handleArtifactClick",xe))}),null,16,["node","loading","index-key","custom-id","is-dark"])):(j(),ht(Pn,{key:0,name:"typewriter",appear:""},{default:Zr(()=>[(j(),ht(rr(X.component),Xr({node:X.node,loading:X.node.loading,"index-key":X.indexKey},{ref_for:!0},X.bindings,{"custom-id":o.customId,"is-dark":o.isDark,onCopy:O[0]||(O[0]=xe=>a("copy",xe)),onHandleArtifactClick:O[1]||(O[1]=xe=>a("handleArtifactClick",xe))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1024))],512)))],8,Bk)}),128)),w.value?(j(),G("div",{key:1,class:"node-spacer",style:St({height:`${q.value}px`}),"aria-hidden":"true"},null,4)):Qe("",!0)],42,Ek))}}),[["__scopeId","data-v-617f487c"]]);_r.install=e=>{var t,r;const n=(r=(t=_r.__name)!=null?t:_r.name)!=null?r:"NodeRenderer";e.component(n,_r)};const Lk={key:0,class:"admonition-icon"},$k={class:"admonition-title"},Dk=["aria-expanded","aria-controls","title"],Fk={key:0},Ik={key:1},Ok=["id"],wo=rt(Ve({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e,{emit:t}){var r;const n=e,i=t,o={note:"ℹ️",info:"ℹ️",tip:"💡",warning:"⚠️",danger:"❗",error:"⛔",caution:"⚠️"},a=ue(()=>{if(n.node.title&&n.node.title.trim().length)return n.node.title;const u=n.node.kind||"note";return u.charAt(0).toUpperCase()+u.slice(1)}),s=J(!!n.node.collapsible&&!((r=n.node.open)==null||r));function l(){n.node.collapsible&&(s.value=!s.value)}const c=`admonition-${Math.random().toString(36).slice(2,9)}`;return(u,h)=>(j(),G("div",{class:Ae(["admonition",[`admonition-${n.node.kind}`,n.isDark?"is-dark":""]])},[L("div",{id:c,class:"admonition-header"},[o[n.node.kind]?(j(),G("span",Lk,it(o[n.node.kind]),1)):Qe("",!0),L("span",$k,it(a.value),1),n.node.collapsible?(j(),G("button",{key:1,class:"admonition-toggle","aria-expanded":!s.value,"aria-controls":`${c}-content`,title:s.value?"Expand":"Collapse",onClick:l},[s.value?(j(),G("span",Fk,"▶")):(j(),G("span",Ik,"▼"))],8,Dk)):Qe("",!0)]),Dn(L("div",{id:`${c}-content`,class:"admonition-content","aria-labelledby":c},[$o([n.node.children],()=>tt(le(_r),{"index-key":`admonition-${e.indexKey}`,nodes:n.node.children,"custom-id":n.customId,typewriter:n.typewriter,onCopy:h[0]||(h[0]=f=>i("copy",f))},null,8,["index-key","nodes","custom-id","typewriter"]),h,1)],8,Ok),[[In,!s.value]])],2))}}),[["__scopeId","data-v-5e95c2b7"]]);wo.install=e=>{e.component(wo.__name,wo)};let Td=!1,xi=null,ec=!1;function fm(){return et(this,null,function*(){if(xi)return xi;if(ec)return null;try{return xi=yield dt(()=>Promise.resolve().then(()=>C9),void 0,import.meta.url),yield(function(e){return et(this,null,function*(){if(Td)return;Td=!0;const t=globalThis?.MonacoEnvironment;return!t||typeof t.getWorker!="function"&&typeof t.getWorkerUrl!="function"?e.preloadMonacoWorkers():void 0})})(xi),(yield(function(e){return et(this,null,function*(){const t=e?.getOrCreateHighlighter;if(typeof t!="function")return!0;try{const r=yield t(["vitesse-dark","vitesse-light"],["plaintext","text","javascript"]);return r&&typeof r.codeToTokens=="function"&&r.codeToTokens("const a = 1",{lang:"javascript",theme:"vitesse-dark"}),!0}catch(r){return console.warn("[markstream-vue] Failed to warm up Shiki tokenizer; disabling stream-monaco for this session.",r),!1}})})(xi))?xi:(xi=null,ec=!0,null)}catch{return ec=!0,null}})}let Jc=null;function pm(e){Jc=e??null}const Rk={"":"",javascript:"javascript",js:"javascript",mjs:"javascript",cjs:"javascript",typescript:"typescript",ts:"typescript",jsx:"jsx",tsx:"tsx",golang:"go",py:"python",rb:"ruby",sh:"shell",bash:"shell",zsh:"shell",shellscript:"shell",bat:"shell",batch:"shell",ps1:"powershell",plaintext:"plain",text:"plain","c++":"cpp","c#":"csharp","objective-c":"objectivec","objective-c++":"objectivecpp",yml:"yaml",md:"markdown",rs:"rust",kt:"kotlin"};function ko(e){var t;const r=(function(n){if(!n)return"";const i=n.trim();if(!i)return"";const[o]=i.split(/\s+/),[a]=o.split(":");return a.toLowerCase()})(e);return(t=Rk[r])!=null?t:r}function mm(e){const t=ko(e);if(!t)return"plaintext";switch(t){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";default:return t}}function Yu(e){if(Jc){const t=Jc(e);if(t!=null&&t!=="")return t}switch(ko(e)){case"javascript":case"js":return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
109
109
|
<g fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round">
|
|
110
110
|
<path d="M4.5 11c0 .828427.6715729 1.5 1.5 1.5.8284271 0 1.5-.671573 1.5-1.5V7.5M12.5 8.75C12.5 8.05964406 11.9627417 7.5 11.3 7.5L10.7 7.5C10.0372583 7.5 9.5 8.05964406 9.5 8.75 9.5 9.44035594 10.0372583 10 10.7 10L11.3 10C11.9627417 10 12.5 10.5596441 12.5 11.25 12.5 11.9403559 11.9627417 12.5 11.3 12.5L10.7 12.5C10.0372583 12.5 9.5 11.9403559 9.5 11.25" />
|
|
111
111
|
<path d="m 4,1.5 h 8 c 1.385,0 2.5,1.115 2.5,2.5 v 8 c 0,1.385 -1.115,2.5 -2.5,2.5 H 4 C 2.615,14.5 1.5,13.385 1.5,12 V 4 C 1.5,2.615 2.615,1.5 4,1.5 Z" />
|
|
@@ -347,7 +347,7 @@ ${m}`:u};let l="",c=0;for(;c<e.length;){const u=e.indexOf(`
|
|
|
347
347
|
<path d="m8.5 1.5 5 5h-4a1 1 0 01-1-1zm-3 10h5m-5-3h5m-5-3h1" />
|
|
348
348
|
</g>
|
|
349
349
|
</svg>
|
|
350
|
-
`;default:return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m10 9l-3 3l3 3m4 0l3-3l-3-3"/><rect width="18" height="18" x="3" y="3" rx="2"/></g></svg>'}}const Rs={js:"JavaScript",javascript:"JavaScript",ts:"TypeScript",jsx:"JSX",tsx:"TSX",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",py:"Python",python:"Python",rb:"Ruby",go:"Go",java:"Java",c:"C",cpp:"C++",cs:"C#",php:"PHP",sh:"Shell",bash:"Bash",sql:"SQL",yaml:"YAML",md:"Markdown","":"Plain Text",plain:"Plain Text"},Nk={key:0,class:"code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5",style:{color:"var(--vscode-editor-foreground)","background-color":"var(--vscode-editor-background)"}},zk={class:"flex items-center gap-x-2"},Pk=["innerHTML"],qk={class:"text-sm font-medium font-mono"},Hk={class:"flex items-center gap-x-2"},jk=["aria-pressed"],Wk=["disabled"],Vk=["disabled"],Uk=["disabled"],Gk=["aria-label"],Yk={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Xk={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Kk=["aria-pressed"],Zk={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},Qk={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},Jk=["aria-label"],e8=["innerHTML"],t8={class:"code-loading-placeholder"},ra=rt(Ve({__name:"MarkdownCodeBlockNode",props:{node:{},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},darkTheme:{default:"vitesse-dark"},lightTheme:{default:"vitesse-light"},isDark:{type:Boolean,default:!1},isShowPreview:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0}},emits:["previewCode","copy"],setup(e,{emit:t}){var r;const n=e,i=t,{t:o}=Io(),a=J(String((r=n.node.language)!=null?r:"")),s=J(!1),l=J(!1),c=J(!1),u=J(null),h=J(null),f=J(""),d=J(!1);let p;const m=J(!0),y=J(0),C=J(14),x=J(C.value),g=ue(()=>{const K=C.value,k=x.value;return typeof K=="number"&&Number.isFinite(K)&&K>0&&typeof k=="number"&&Number.isFinite(k)&&k>0}),b=ue(()=>{const K=a.value.trim().toLowerCase();return Rs[K]||K.charAt(0).toUpperCase()+K.slice(1)}),v=ue(()=>Yu(a.value.trim().toLowerCase().split(":")[0])),A=ue(()=>{const K=a.value.trim().toLowerCase();return n.isShowPreview&&(K==="html"||K==="svg")}),w=ue(()=>{const K={},k=te=>{if(te!=null)return typeof te=="number"?`${te}px`:String(te)},M=k(n.minWidth),H=k(n.maxWidth);return M&&(K.minWidth=M),H&&(K.maxWidth=H),K}),T=ue(()=>({fontSize:`${x.value}px`}));function S(){return n.isDark?n.darkTheme:n.lightTheme}function _(K){if(p?.disconnect(),p=void 0,!K)return f.value="",void(d.value=!1);var k;f.value=`<pre class="shiki shiki-fallback"><code>${k=K,k.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}</code></pre>`,d.value=!1}function B(){f.value="",d.value=!0}function E(){var K;const k=h.value;return!!k&&(k.childNodes.length>0||!!((K=k.textContent)!=null&&K.trim().length))}function I(){return et(this,null,function*(){if(yield at(),E())return void B();const K=h.value;K&&(p?.disconnect(),p=new MutationObserver(()=>{E()&&(B(),p?.disconnect(),p=void 0)}),p.observe(K,{childList:!0,subtree:!0}))})}let W,F,D,R;const z=new Set,V=new Set,re=import.meta!==void 0&&!1;function de(K,k){return et(this,null,function*(){if(!W)return;const M=(function(H,te=!1){var Z;const[Q]=String(H??"").split(":"),he=(Z=Q?.trim().toLowerCase())!=null?Z:"";return he?!R||R.has(he)?he:(te&&re&&!z.has(he)&&(z.add(he),console.warn(`[MarkdownCodeBlockNode] Language "${he}" not preloaded in stream-markdown; falling back to plaintext.`)),"plaintext"):"plaintext"})(k,!!(K&&K.length));try{yield W.updateCode(K,M)}catch(H){M!=="plaintext"?(re&&!V.has(M)&&(V.add(M),console.warn(`[MarkdownCodeBlockNode] Failed to render language "${M}", retrying as plaintext.`,H)),yield W.updateCode(K,"plaintext")):re&&console.warn("[MarkdownCodeBlockNode] Failed to render code block even as plaintext.",H)}})}function Ce(){return et(this,null,function*(){yield(function(){return et(this,null,function*(){if(!F)try{const K=yield dt(()=>Promise.resolve().then(()=>C9),void 0,import.meta.url);F=K.createShikiStreamRenderer,D=K.registerHighlight;const k=Array.isArray(K.defaultLanguages)?K.defaultLanguages:void 0;R=k?new Set(k.map(M=>M.toLowerCase())):void 0,D?.({themes:n.themes})}catch(K){console.warn("[MarkdownCodeBlockNode] stream-markdown not available:",K)}})})(),u.value&&h.value?(D?.({themes:n.themes}),!W&&F&&(W=F(h.value,{theme:S()}),d.value=!0),W?n.stream===!1&&n.loading?_(n.node.code):(_(n.node.code),yield de(n.node.code,a.value),yield I()):_(n.node.code)):_(n.node.code)})}function ce(){const K=u.value;if(!K||l.value)return;const k=K.scrollTop;k<y.value?m.value=!1:(function(M,H=50){return M.scrollHeight-M.scrollTop-M.clientHeight<=H})(K)&&(m.value=!0),y.value=k}function ee(){return et(this,null,function*(){try{typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(n.node.code)),s.value=!0,i("copy",n.node.code),setTimeout(()=>{s.value=!1},1e3)}catch(K){console.error("Copy failed:",K)}})}function pe(K){return!K||K.disabled}function be(K,k,M="top"){if(pe(K.currentTarget))return;const H=K,te=H?.clientX!=null&&H?.clientY!=null?{x:H.clientX,y:H.clientY}:void 0;On(K.currentTarget,k,M,!1,te,n.isDark)}function N(){Sa()}function me(K){if(pe(K.currentTarget))return;const k=s.value?o("common.copied")||"Copied":o("common.copy")||"Copy",M=K,H=M?.clientX!=null&&M?.clientY!=null?{x:M.clientX,y:M.clientY}:void 0;On(K.currentTarget,k,"top",!1,H,n.isDark)}function fe(){l.value=!l.value;const K=u.value;K&&(l.value?(K.style.maxHeight="none",K.style["overflow-y"]="visible",K.style["overflow-x"]="auto"):(K.style.maxHeight="500px",K.style.overflow="auto",m.value=!0,at(()=>{K.scrollHeight>K.clientHeight&&(K.scrollTop=K.scrollHeight)})))}function Se(){c.value=!c.value}function $e(){if(!A.value)return;const K=(a.value||n.node.language).toLowerCase(),k=K==="html"?"HTML Preview":"SVG Preview";i("previewCode",{type:K==="html"?"text/html":"image/svg+xml",content:n.node.code,title:k})}return Ce(),Qr(()=>{Ce()}),nr(()=>{p?.disconnect(),p=void 0}),Ne(()=>n.themes,()=>et(null,null,function*(){D&&D({themes:n.themes})})),Ne(()=>n.loading,K=>{K||Ce()}),Ne(()=>[n.node.code,n.node.language],K=>et(null,[K],function*([k,M]){M!==a.value&&(a.value=M.trim()),u.value&&h.value?(W||(_(k),yield Ce()),W&&k&&(n.stream===!1&&n.loading||(_(k),yield de(k,M),yield I()))):_(k)})),Ne(()=>[n.darkTheme,n.lightTheme],()=>et(null,null,function*(){u.value&&h.value&&(W||(yield Ce()),W?.setTheme(S()))})),Ne(()=>n.node.code,()=>et(null,null,function*(){if(l.value||!m.value)return;yield at();const K=u.value;K&&K.scrollHeight>K.clientHeight&&(K.scrollTop=K.scrollHeight)})),(K,k)=>(j(),G("div",{style:St(w.value),class:Ae(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",n.isDark?"is-dark":""]])},[n.showHeader?(j(),G("div",Nk,[Ut(K.$slots,"header-left",{},()=>[L("div",zk,[L("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:v.value},null,8,Pk),L("span",qk,it(b.value),1)])],!0),Ut(K.$slots,"header-right",{},()=>[L("div",Hk,[L("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":c.value,onClick:Se,onMouseenter:k[0]||(k[0]=M=>be(M,c.value?le(o)("common.expand")||"Expand":le(o)("common.collapse")||"Collapse")),onFocus:k[1]||(k[1]=M=>be(M,c.value?le(o)("common.expand")||"Expand":le(o)("common.collapse")||"Collapse")),onMouseleave:N,onBlur:N},[(j(),G("svg",{style:St({rotate:c.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...k[17]||(k[17]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,jk),n.showFontSizeButtons&&n.enableFontSizeControl?(j(),G(Ke,{key:0},[L("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(x.value)&&x.value<=10,onClick:k[2]||(k[2]=M=>(function(){const H=Math.max(10,x.value-1);x.value=H})()),onMouseenter:k[3]||(k[3]=M=>be(M,le(o)("common.decrease")||"Decrease")),onFocus:k[4]||(k[4]=M=>be(M,le(o)("common.decrease")||"Decrease")),onMouseleave:N,onBlur:N},[...k[18]||(k[18]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,Wk),L("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!g.value||x.value===C.value,onClick:k[5]||(k[5]=M=>{x.value=C.value}),onMouseenter:k[6]||(k[6]=M=>be(M,le(o)("common.reset")||"Reset")),onFocus:k[7]||(k[7]=M=>be(M,le(o)("common.reset")||"Reset")),onMouseleave:N,onBlur:N},[...k[19]||(k[19]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),L("path",{d:"M3 3v5h5"})])],-1)])],40,Vk),L("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(x.value)&&x.value>=36,onClick:k[8]||(k[8]=M=>(function(){const H=Math.min(36,x.value+1);x.value=H})()),onMouseenter:k[9]||(k[9]=M=>be(M,le(o)("common.increase")||"Increase")),onFocus:k[10]||(k[10]=M=>be(M,le(o)("common.increase")||"Increase")),onMouseleave:N,onBlur:N},[...k[20]||(k[20]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,Uk)],64)):Qe("",!0),n.showCopyButton?(j(),G("button",{key:1,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":s.value?le(o)("common.copied")||"Copied":le(o)("common.copy")||"Copy",onClick:ee,onMouseenter:k[11]||(k[11]=M=>me(M)),onFocus:k[12]||(k[12]=M=>me(M)),onMouseleave:N,onBlur:N},[s.value?(j(),G("svg",Xk,[...k[22]||(k[22]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(j(),G("svg",Yk,[...k[21]||(k[21]=[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),L("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,Gk)):Qe("",!0),n.showExpandButton?(j(),G("button",{key:2,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":l.value,onClick:fe,onMouseenter:k[13]||(k[13]=M=>be(M,l.value?le(o)("common.collapse")||"Collapse":le(o)("common.expand")||"Expand")),onFocus:k[14]||(k[14]=M=>be(M,l.value?le(o)("common.collapse")||"Collapse":le(o)("common.expand")||"Expand")),onMouseleave:N,onBlur:N},[l.value?(j(),G("svg",Zk,[...k[23]||(k[23]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])):(j(),G("svg",Qk,[...k[24]||(k[24]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])]))],40,Kk)):Qe("",!0),A.value&&n.showPreviewButton?(j(),G("button",{key:3,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":le(o)("common.preview")||"Preview",onClick:$e,onMouseenter:k[15]||(k[15]=M=>be(M,le(o)("common.preview")||"Preview")),onFocus:k[16]||(k[16]=M=>be(M,le(o)("common.preview")||"Preview")),onMouseleave:N,onBlur:N},[...k[25]||(k[25]=[L("svg",{"data-v-3d59cc65":"",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),L("circle",{cx:"12",cy:"12",r:"3"})])],-1)])],40,Jk)):Qe("",!0)])],!0)])):Qe("",!0),Dn(L("div",{ref_key:"codeBlockContent",ref:u,class:"code-block-content",style:St(T.value),onScroll:ce},[L("div",{ref_key:"rendererTarget",ref:h,class:"code-block-render"},null,512),d.value?Qe("",!0):(j(),G("div",{key:0,class:"code-fallback-plain",innerHTML:f.value},null,8,e8))],36),[[In,!(c.value||!e.stream&&e.loading)]]),Dn(L("div",t8,[Ut(K.$slots,"loading",{loading:e.loading,stream:e.stream},()=>[k[26]||(k[26]=L("div",{class:"loading-skeleton"},[L("div",{class:"skeleton-line"}),L("div",{class:"skeleton-line"}),L("div",{class:"skeleton-line short"})],-1))],!0)],512),[[In,!e.stream&&e.loading]])],6))}}),[["__scopeId","data-v-9411928c"]]);ra.install=e=>{e.component(ra.__name,ra)};const Xu=()=>dt(()=>import("./B8T9Vkkp.js").then(e=>e.m),[],import.meta.url);let wn=null,Ku=Xu;function Zu(e){Ku=e,wn=null}function r8(e){Zu(e??Xu)}function n8(){Zu(null)}function gm(){return typeof Ku=="function"}function Md(e){if(!e)return e;const t=e&&e.default?e.default:e;if(t&&(typeof t.render=="function"||typeof t.parse=="function"||typeof t.initialize=="function"))return t;if(t&&t.mermaidAPI&&(typeof t.mermaidAPI.render=="function"||typeof t.mermaidAPI.parse=="function")){const r=t.mermaidAPI;return Bt(Ge({},t),{render:r.render.bind(r),parse:r.parse?r.parse.bind(r):void 0,initialize:n=>typeof t.initialize=="function"?t.initialize(n):r.initialize?r.initialize(n):void 0})}return e.mermaid&&typeof e.mermaid.render=="function"?e.mermaid:t}function Ad(e){if(e)try{const t=e?.initialize;e.initialize=r=>{const n=Ge({suppressErrorRendering:!0},r||{});return typeof t=="function"?t.call(e,n):e?.mermaidAPI&&typeof e.mermaidAPI.initialize=="function"?e.mermaidAPI.initialize(n):void 0}}catch{}}function i8(){return et(this,null,function*(){if(wn)return wn;const e=(function(){try{const n=globalThis;return Md(n?.mermaid)}catch{return null}})();if(e)return wn=e,Ad(wn),wn;const t=Ku;if(!t)return null;let r;try{r=yield t()}catch(n){throw t===Xu?new Error('Optional dependency "mermaid" is not installed. Please install it to enable mermaid diagrams.'):n}return r?(wn=Md(r),Ad(wn),wn):null})}const Ns=Math.min,Oi=Math.max,zs=Math.round,Za=Math.floor,dn=e=>({x:e,y:e}),o8={left:"right",right:"left",bottom:"top",top:"bottom"},a8={start:"end",end:"start"};function Ed(e,t,r){return Oi(e,Ns(t,r))}function pl(e,t){return typeof e=="function"?e(t):e}function Ri(e){return e.split("-")[0]}function Ps(e){return e.split("-")[1]}function ym(e){return e==="x"?"y":"x"}function bm(e){return e==="y"?"height":"width"}const s8=new Set(["top","bottom"]);function ai(e){return s8.has(Ri(e))?"y":"x"}function vm(e){return ym(ai(e))}function tc(e){return e.replace(/start|end/g,t=>a8[t])}const Bd=["left","right"],Ld=["right","left"],l8=["top","bottom"],c8=["bottom","top"];function Qa(e){return e.replace(/left|right|bottom|top/g,t=>o8[t])}function qs(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function $d(e,t,r){let{reference:n,floating:i}=e;const o=ai(t),a=vm(t),s=bm(a),l=Ri(t),c=o==="y",u=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,f=n[s]/2-i[s]/2;let d;switch(l){case"top":d={x:u,y:n.y-i.height};break;case"bottom":d={x:u,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:h};break;case"left":d={x:n.x-i.width,y:h};break;default:d={x:n.x,y:n.y}}switch(Ps(t)){case"start":d[a]-=f*(r&&c?-1:1);break;case"end":d[a]+=f*(r&&c?-1:1)}return d}function u8(e,t){return et(this,null,function*(){var r;t===void 0&&(t={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=pl(t,e),p=(function(v){return typeof v!="number"?(function(A){return Ge({top:0,right:0,bottom:0,left:0},A)})(v):{top:v,right:v,bottom:v,left:v}})(d),m=s[f?h==="floating"?"reference":"floating":h],y=qs(yield o.getClippingRect({element:(r=yield o.isElement==null?void 0:o.isElement(m))==null||r?m:m.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),C=h==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=yield o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating),g=(yield o.isElement==null?void 0:o.isElement(x))&&(yield o.getScale==null?void 0:o.getScale(x))||{x:1,y:1},b=qs(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:x,strategy:l}):C);return{top:(y.top-b.top+p.top)/g.y,bottom:(b.bottom-y.bottom+p.bottom)/g.y,left:(y.left-b.left+p.left)/g.x,right:(b.right-y.right+p.right)/g.x}})}const h8=new Set(["left","top"]);function ml(){return typeof window<"u"}function Bo(e){return xm(e)?(e.nodeName||"").toLowerCase():"#document"}function Br(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){var t;return(t=(xm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xm(e){return!!ml()&&(e instanceof Node||e instanceof Br(e).Node)}function Vr(e){return!!ml()&&(e instanceof Element||e instanceof Br(e).Element)}function pn(e){return!!ml()&&(e instanceof HTMLElement||e instanceof Br(e).HTMLElement)}function Dd(e){return!(!ml()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Br(e).ShadowRoot)}const d8=new Set(["inline","contents"]);function ga(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=Ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!d8.has(i)}const f8=new Set(["table","td","th"]);function p8(e){return f8.has(Bo(e))}const m8=[":popover-open",":modal"];function Hs(e){return m8.some(t=>{try{return e.matches(t)}catch{return!1}})}const g8=["transform","translate","scale","rotate","perspective"],y8=["transform","translate","scale","rotate","perspective","filter"],b8=["paint","layout","strict","content"];function eu(e){const t=Qu(),r=Vr(e)?Ur(e):e;return g8.some(n=>!!r[n]&&r[n]!=="none")||!!r.containerType&&r.containerType!=="normal"||!t&&!!r.backdropFilter&&r.backdropFilter!=="none"||!t&&!!r.filter&&r.filter!=="none"||y8.some(n=>(r.willChange||"").includes(n))||b8.some(n=>(r.contain||"").includes(n))}function Qu(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const v8=new Set(["html","body","#document"]);function _o(e){return v8.has(Bo(e))}function Ur(e){return Br(e).getComputedStyle(e)}function gl(e){return Vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function si(e){if(Bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dd(e)&&e.host||fn(e);return Dd(t)?t.host:t}function wm(e){const t=si(e);return _o(t)?e.ownerDocument?e.ownerDocument.body:e.body:pn(t)&&ga(t)?t:wm(t)}function ya(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=wm(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=Br(i);if(o){const s=tu(a);return t.concat(a,a.visualViewport||[],ga(i)?i:[],s&&r?ya(s):[])}return t.concat(i,ya(i,[],r))}function tu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function km(e){const t=Ur(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=pn(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=zs(r)!==o||zs(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function Ju(e){return Vr(e)?e:e.contextElement}function Co(e){const t=Ju(e);if(!pn(t))return dn(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=km(t);let a=(o?zs(r.width):r.width)/n,s=(o?zs(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const x8=dn(0);function _m(e){const t=Br(e);return Qu()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:x8}function Hi(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),o=Ju(e);let a=dn(1);t&&(n?Vr(n)&&(a=Co(n)):a=Co(e));const s=(function(f,d,p){return d===void 0&&(d=!1),!(!p||d&&p!==Br(f))&&d})(o,r,n)?_m(o):dn(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,h=i.height/a.y;if(o){const f=Br(o),d=n&&Vr(n)?Br(n):n;let p=f,m=tu(p);for(;m&&n&&d!==p;){const y=Co(m),C=m.getBoundingClientRect(),x=Ur(m),g=C.left+(m.clientLeft+parseFloat(x.paddingLeft))*y.x,b=C.top+(m.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,h*=y.y,l+=g,c+=b,p=Br(m),m=tu(p)}}return qs({width:u,height:h,x:l,y:c})}function js(e,t){const r=gl(e).scrollLeft;return t?t.left+r:Hi(fn(e)).left+r}function Cm(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-js(e,r),y:r.top+t.scrollTop}}const w8=new Set(["absolute","fixed"]);function Fd(e,t,r){let n;if(t==="viewport")n=(function(i,o){const a=Br(i),s=fn(i),l=a.visualViewport;let c=s.clientWidth,u=s.clientHeight,h=0,f=0;if(l){c=l.width,u=l.height;const p=Qu();(!p||p&&o==="fixed")&&(h=l.offsetLeft,f=l.offsetTop)}const d=js(s);if(d<=0){const p=s.ownerDocument,m=p.body,y=getComputedStyle(m),C=p.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,x=Math.abs(s.clientWidth-m.clientWidth-C);x<=25&&(c-=x)}else d<=25&&(c+=d);return{width:c,height:u,x:h,y:f}})(e,r);else if(t==="document")n=(function(i){const o=fn(i),a=gl(i),s=i.ownerDocument.body,l=Oi(o.scrollWidth,o.clientWidth,s.scrollWidth,s.clientWidth),c=Oi(o.scrollHeight,o.clientHeight,s.scrollHeight,s.clientHeight);let u=-a.scrollLeft+js(i);const h=-a.scrollTop;return Ur(s).direction==="rtl"&&(u+=Oi(o.clientWidth,s.clientWidth)-l),{width:l,height:c,x:u,y:h}})(fn(e));else if(Vr(t))n=(function(i,o){const a=Hi(i,!0,o==="fixed"),s=a.top+i.clientTop,l=a.left+i.clientLeft,c=pn(i)?Co(i):dn(1);return{width:i.clientWidth*c.x,height:i.clientHeight*c.y,x:l*c.x,y:s*c.y}})(t,r);else{const i=_m(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return qs(n)}function Sm(e,t){const r=si(e);return!(r===t||!Vr(r)||_o(r))&&(Ur(r).position==="fixed"||Sm(r,t))}function k8(e,t,r){const n=pn(t),i=fn(t),o=r==="fixed",a=Hi(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=dn(0);function c(){l.x=js(i)}if(n||!n&&!o)if((Bo(t)!=="body"||ga(i))&&(s=gl(t)),n){const h=Hi(t,!0,o,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&c();o&&!n&&i&&c();const u=!i||n||o?dn(0):Cm(i,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function rc(e){return Ur(e).position==="static"}function Id(e,t){if(!pn(e)||Ur(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return fn(e)===r&&(r=r.ownerDocument.body),r}function Od(e,t){const r=Br(e);if(Hs(e))return r;if(!pn(e)){let i=si(e);for(;i&&!_o(i);){if(Vr(i)&&!rc(i))return i;i=si(i)}return r}let n=Id(e,t);for(;n&&p8(n)&&rc(n);)n=Id(n,t);return n&&_o(n)&&rc(n)&&!eu(n)?r:n||(function(i){let o=si(i);for(;pn(o)&&!_o(o);){if(eu(o))return o;if(Hs(o))return null;o=si(o)}return null})(e)||r}const _8={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const o=i==="fixed",a=fn(n),s=!!t&&Hs(t.floating);if(n===a||s&&o)return r;let l={scrollLeft:0,scrollTop:0},c=dn(1);const u=dn(0),h=pn(n);if((h||!h&&!o)&&((Bo(n)!=="body"||ga(a))&&(l=gl(n)),pn(n))){const d=Hi(n);c=Co(n),u.x=d.x+n.clientLeft,u.y=d.y+n.clientTop}const f=!a||h||o?dn(0):Cm(a,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:fn,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?Hs(t)?[]:(function(l,c){const u=c.get(l);if(u)return u;let h=ya(l,[],!1).filter(m=>Vr(m)&&Bo(m)!=="body"),f=null;const d=Ur(l).position==="fixed";let p=d?si(l):l;for(;Vr(p)&&!_o(p);){const m=Ur(p),y=eu(p);y||m.position!=="fixed"||(f=null),(d?!y&&!f:!y&&m.position==="static"&&f&&w8.has(f.position)||ga(p)&&!y&&Sm(l,p))?h=h.filter(C=>C!==p):f=m,p=si(p)}return c.set(l,h),h})(t,this._c):[].concat(r),n],a=o[0],s=o.reduce((l,c)=>{const u=Fd(t,c,i);return l.top=Oi(u.top,l.top),l.right=Ns(u.right,l.right),l.bottom=Ns(u.bottom,l.bottom),l.left=Oi(u.left,l.left),l},Fd(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Od,getElementRects:function(e){return et(this,null,function*(){const t=this.getOffsetParent||Od,r=this.getDimensions,n=yield r(e.floating);return{reference:k8(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}})},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=km(e);return{width:t,height:r}},getScale:Co,isElement:Vr,isRTL:function(e){return Ur(e).direction==="rtl"}};function Rd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Nd(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Ju(e),u=i||o?[...c?ya(c):[],...ya(t)]:[];u.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),o&&y.addEventListener("resize",r)});const h=c&&s?(function(y,C){let x,g=null;const b=fn(y);function v(){var A;clearTimeout(x),(A=g)==null||A.disconnect(),g=null}return(function A(w,T){w===void 0&&(w=!1),T===void 0&&(T=1),v();const S=y.getBoundingClientRect(),{left:_,top:B,width:E,height:I}=S;if(w||C(),!E||!I)return;const W={rootMargin:-Za(B)+"px "+-Za(b.clientWidth-(_+E))+"px "+-Za(b.clientHeight-(B+I))+"px "+-Za(_)+"px",threshold:Oi(0,Ns(1,T))||1};let F=!0;function D(R){const z=R[0].intersectionRatio;if(z!==T){if(!F)return A();z?A(!1,z):x=setTimeout(()=>{A(!1,1e-7)},1e3)}z!==1||Rd(S,y.getBoundingClientRect())||A(),F=!1}try{g=new IntersectionObserver(D,Bt(Ge({},W),{root:b.ownerDocument}))}catch{g=new IntersectionObserver(D,W)}g.observe(y)})(!0),v})(c,r):null;let f,d=-1,p=null;a&&(p=new ResizeObserver(y=>{let[C]=y;C&&C.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let m=l?Hi(e):null;return l&&(function y(){const C=Hi(e);m&&!Rd(m,C)&&r(),m=C,f=requestAnimationFrame(y)})(),r(),()=>{var y;u.forEach(C=>{i&&C.removeEventListener("scroll",r),o&&C.removeEventListener("resize",r)}),h?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const C8=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(t){return et(this,null,function*(){const{x:r,y:n,placement:i,platform:o}=t,a=pl(e,t),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:x=>{let{x:g,y:b}=x;return{x:g,y:b}}}}=a,u=rm(a,["mainAxis","crossAxis","limiter"]),h={x:r,y:n},f=yield o.detectOverflow(t,u),d=ai(Ri(i)),p=ym(d);let m=h[p],y=h[d];if(s){const x=p==="y"?"bottom":"right";m=Ed(m+f[p==="y"?"top":"left"],m,m-f[x])}if(l){const x=d==="y"?"bottom":"right";y=Ed(y+f[d==="y"?"top":"left"],y,y-f[x])}const C=c.fn(Bt(Ge({},t),{[p]:m,[d]:y}));return Bt(Ge({},C),{data:{x:C.x-r,y:C.y-n,enabled:{[p]:s,[d]:l}}})})}}},S8=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(t){return et(this,null,function*(){var r,n;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,u=pl(e,t),{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0}=u,C=rm(u,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const x=Ri(i),g=ai(s),b=Ri(s)===s,v=yield l.isRTL==null?void 0:l.isRTL(c.floating),A=d||(b||!y?[Qa(s)]:(function(F){const D=Qa(F);return[tc(F),D,tc(D)]})(s)),w=m!=="none";!d&&w&&A.push(...(function(F,D,R,z){const V=Ps(F);let re=(function(de,Ce,ce){switch(de){case"top":case"bottom":return ce?Ce?Ld:Bd:Ce?Bd:Ld;case"left":case"right":return Ce?l8:c8;default:return[]}})(Ri(F),R==="start",z);return V&&(re=re.map(de=>de+"-"+V),D&&(re=re.concat(re.map(tc)))),re})(s,y,m,v));const T=[s,...A],S=yield l.detectOverflow(t,C),_=[];let B=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&_.push(S[x]),f){const F=(function(D,R,z){z===void 0&&(z=!1);const V=Ps(D),re=vm(D),de=bm(re);let Ce=re==="x"?V===(z?"end":"start")?"right":"left":V==="start"?"bottom":"top";return R.reference[de]>R.floating[de]&&(Ce=Qa(Ce)),[Ce,Qa(Ce)]})(i,a,v);_.push(S[F[0]],S[F[1]])}if(B=[...B,{placement:i,overflows:_}],!_.every(F=>F<=0)){var E,I;const F=(((E=o.flip)==null?void 0:E.index)||0)+1,D=T[F];if(D&&(f!=="alignment"||g===ai(D)||B.every(z=>ai(z.placement)!==g||z.overflows[0]>0)))return{data:{index:F,overflows:B},reset:{placement:D}};let R=(I=B.filter(z=>z.overflows[0]<=0).sort((z,V)=>z.overflows[1]-V.overflows[1])[0])==null?void 0:I.placement;if(!R)switch(p){case"bestFit":{var W;const z=(W=B.filter(V=>{if(w){const re=ai(V.placement);return re===g||re==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(re=>re>0).reduce((re,de)=>re+de,0)]).sort((V,re)=>V[1]-re[1])[0])==null?void 0:W[0];z&&(R=z);break}case"initialPlacement":R=s}if(i!==R)return{reset:{placement:R}}}return{}})}}},T8={class:"markstream-vue"},M8=["id"],na=rt(Ve({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(e){const t=e,r=ue(()=>{if(t.isDark!==void 0&&t.isDark!==null)return!!t.isDark;if(typeof document<"u")try{if(document.documentElement.classList.contains("dark")||window?.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return!0}catch{}return!1}),n=J(null),i=J({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),o=J(!1);let a=null;function s(){return et(this,null,function*(){var l,c;if(!t.anchorEl||!n.value)return;const u=[(d=(l=t.offset)!=null?l:8,d===void 0&&(d=0),{name:"offset",options:d,fn(p){return et(this,null,function*(){var m,y;const{x:C,y:x,placement:g,middlewareData:b}=p,v=yield(function(A,w){return et(this,null,function*(){const{placement:T,platform:S,elements:_}=A,B=yield S.isRTL==null?void 0:S.isRTL(_.floating),E=Ri(T),I=Ps(T),W=ai(T)==="y",F=h8.has(E)?-1:1,D=B&&W?-1:1,R=pl(w,A);let{mainAxis:z,crossAxis:V,alignmentAxis:re}=typeof R=="number"?{mainAxis:R,crossAxis:0,alignmentAxis:null}:{mainAxis:R.mainAxis||0,crossAxis:R.crossAxis||0,alignmentAxis:R.alignmentAxis};return I&&typeof re=="number"&&(V=I==="end"?-1*re:re),W?{x:V*D,y:z*F}:{x:z*F,y:V*D}})})(p,d);return g===((m=b.offset)==null?void 0:m.placement)&&(y=b.arrow)!=null&&y.alignmentOffset?{}:{x:C+v.x,y:x+v.y,data:Bt(Ge({},v),{placement:g})}})}}),S8(),C8({padding:8})],{x:h,y:f}=yield((p,m,y)=>{const C=new Map,x=Ge({platform:_8},y),g=Bt(Ge({},x.platform),{_c:C});return((b,v,A)=>et(null,null,function*(){const{placement:w="bottom",strategy:T="absolute",middleware:S=[],platform:_}=A,B=S.filter(Boolean),E=yield _.isRTL==null?void 0:_.isRTL(v);let I=yield _.getElementRects({reference:b,floating:v,strategy:T}),{x:W,y:F}=$d(I,w,E),D=w,R={},z=0;for(let re=0;re<B.length;re++){var V;const{name:de,fn:Ce}=B[re],{x:ce,y:ee,data:pe,reset:be}=yield Ce({x:W,y:F,initialPlacement:w,placement:D,strategy:T,middlewareData:R,rects:I,platform:Bt(Ge({},_),{detectOverflow:(V=_.detectOverflow)!=null?V:u8}),elements:{reference:b,floating:v}});W=ce??W,F=ee??F,R=Bt(Ge({},R),{[de]:Ge(Ge({},R[de]),pe)}),be&&z<=50&&(z++,typeof be=="object"&&(be.placement&&(D=be.placement),be.rects&&(I=be.rects===!0?yield _.getElementRects({reference:b,floating:v,strategy:T}):be.rects),{x:W,y:F}=$d(I,D,E)),re=-1)}return{x:W,y:F,placement:D,strategy:T,middlewareData:R}}))(p,m,Bt(Ge({},x),{platform:g}))})(t.anchorEl,n.value,{placement:(c=t.placement)!=null?c:"top",middleware:u,strategy:"fixed"});var d;i.value.transform=`translate3d(${Math.round(h)}px, ${Math.round(f)}px, 0)`,i.value.left="0px",i.value.top="0px"})}return Ne(()=>t.visible,l=>et(null,null,function*(){if(l)if(o.value=!1,yield at(),t.anchorEl&&n.value)try{const c=t.anchorEl.getBoundingClientRect();yield s();const u=i.value.transform;if(t.originX!=null&&t.originY!=null){const h=Math.abs(Number(t.originX)-c.left),f=Math.abs(Number(t.originY)-c.top);Math.hypot(h,f)>120?(i.value.transform=`translate3d(${Math.round(t.originX)}px, ${Math.round(t.originY)}px, 0)`,yield at(),o.value=!0,yield at(),i.value.transform=u):o.value=!0}else o.value=!0;a=Nd(t.anchorEl,n.value,s)}catch{yield s(),o.value=!0,a=Nd(t.anchorEl,n.value,s)}else o.value=!0;else o.value=!1,a&&(a(),a=null)})),Ne([()=>t.anchorEl,()=>t.placement,()=>t.content],()=>et(null,null,function*(){t.visible&&t.anchorEl&&n.value&&(yield at(),yield s())})),nr(()=>{a&&a()}),(l,c)=>(j(),ht(Js,{to:"body"},[L("div",T8,[tt(Pn,{name:"tooltip",appear:""},{default:Zr(()=>[Dn(L("div",{id:t.id,ref_key:"tooltip",ref:n,style:St({position:"fixed",left:i.value.left,top:i.value.top,transform:i.value.transform}),class:Ae(["z-[9999] inline-block text-base py-2 px-3 rounded-md shadow-md whitespace-nowrap pointer-events-none tooltip-element border",[r.value?"bg-gray-900 text-white border-gray-700 border is-dark":"bg-white text-gray-900 border-gray-200 border"]]),role:"tooltip"},it(e.content),15,M8),[[In,e.visible&&o.value]])]),_:1})])]))}}),[["__scopeId","data-v-d524cc01"]]),A8=Object.freeze(Object.defineProperty({__proto__:null,default:na},Symbol.toStringTag,{value:"Module"}));function nc(e){return JSON.stringify(e)}function Tm(e){var t;const r=(t=e.mode)!=null?t:"classic",n=e.katexUrl,i=e.mhchemUrl,o=nc(Ge({throwOnError:!0,displayMode:!0,output:"html",strict:"ignore"},e.renderOptions||{})),a=nc(n),s=i?nc(i):'""';return r==="module"?`
|
|
350
|
+
`;default:return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m10 9l-3 3l3 3m4 0l3-3l-3-3"/><rect width="18" height="18" x="3" y="3" rx="2"/></g></svg>'}}const Rs={js:"JavaScript",javascript:"JavaScript",ts:"TypeScript",jsx:"JSX",tsx:"TSX",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",py:"Python",python:"Python",rb:"Ruby",go:"Go",java:"Java",c:"C",cpp:"C++",cs:"C#",php:"PHP",sh:"Shell",bash:"Bash",sql:"SQL",yaml:"YAML",md:"Markdown","":"Plain Text",plain:"Plain Text"},Nk={key:0,class:"code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5",style:{color:"var(--vscode-editor-foreground)","background-color":"var(--vscode-editor-background)"}},zk={class:"flex items-center gap-x-2"},Pk=["innerHTML"],qk={class:"text-sm font-medium font-mono"},Hk={class:"flex items-center gap-x-2"},jk=["aria-pressed"],Wk=["disabled"],Vk=["disabled"],Uk=["disabled"],Gk=["aria-label"],Yk={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Xk={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Kk=["aria-pressed"],Zk={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},Qk={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},Jk=["aria-label"],e8=["innerHTML"],t8={class:"code-loading-placeholder"},ra=rt(Ve({__name:"MarkdownCodeBlockNode",props:{node:{},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},darkTheme:{default:"vitesse-dark"},lightTheme:{default:"vitesse-light"},isDark:{type:Boolean,default:!1},isShowPreview:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0}},emits:["previewCode","copy"],setup(e,{emit:t}){var r;const n=e,i=t,{t:o}=Io(),a=J(String((r=n.node.language)!=null?r:"")),s=J(!1),l=J(!1),c=J(!1),u=J(null),h=J(null),f=J(""),d=J(!1);let p;const m=J(!0),y=J(0),C=J(14),x=J(C.value),g=ue(()=>{const K=C.value,k=x.value;return typeof K=="number"&&Number.isFinite(K)&&K>0&&typeof k=="number"&&Number.isFinite(k)&&k>0}),b=ue(()=>{const K=a.value.trim().toLowerCase();return Rs[K]||K.charAt(0).toUpperCase()+K.slice(1)}),v=ue(()=>Yu(a.value.trim().toLowerCase().split(":")[0])),A=ue(()=>{const K=a.value.trim().toLowerCase();return n.isShowPreview&&(K==="html"||K==="svg")}),w=ue(()=>{const K={},k=te=>{if(te!=null)return typeof te=="number"?`${te}px`:String(te)},M=k(n.minWidth),H=k(n.maxWidth);return M&&(K.minWidth=M),H&&(K.maxWidth=H),K}),T=ue(()=>({fontSize:`${x.value}px`}));function S(){return n.isDark?n.darkTheme:n.lightTheme}function _(K){if(p?.disconnect(),p=void 0,!K)return f.value="",void(d.value=!1);var k;f.value=`<pre class="shiki shiki-fallback"><code>${k=K,k.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}</code></pre>`,d.value=!1}function B(){f.value="",d.value=!0}function E(){var K;const k=h.value;return!!k&&(k.childNodes.length>0||!!((K=k.textContent)!=null&&K.trim().length))}function I(){return et(this,null,function*(){if(yield at(),E())return void B();const K=h.value;K&&(p?.disconnect(),p=new MutationObserver(()=>{E()&&(B(),p?.disconnect(),p=void 0)}),p.observe(K,{childList:!0,subtree:!0}))})}let W,F,D,R;const z=new Set,V=new Set,re=import.meta!==void 0&&!1;function de(K,k){return et(this,null,function*(){if(!W)return;const M=(function(H,te=!1){var Z;const[Q]=String(H??"").split(":"),he=(Z=Q?.trim().toLowerCase())!=null?Z:"";return he?!R||R.has(he)?he:(te&&re&&!z.has(he)&&(z.add(he),console.warn(`[MarkdownCodeBlockNode] Language "${he}" not preloaded in stream-markdown; falling back to plaintext.`)),"plaintext"):"plaintext"})(k,!!(K&&K.length));try{yield W.updateCode(K,M)}catch(H){M!=="plaintext"?(re&&!V.has(M)&&(V.add(M),console.warn(`[MarkdownCodeBlockNode] Failed to render language "${M}", retrying as plaintext.`,H)),yield W.updateCode(K,"plaintext")):re&&console.warn("[MarkdownCodeBlockNode] Failed to render code block even as plaintext.",H)}})}function Ce(){return et(this,null,function*(){yield(function(){return et(this,null,function*(){if(!F)try{const K=yield dt(()=>Promise.resolve().then(()=>T9),void 0,import.meta.url);F=K.createShikiStreamRenderer,D=K.registerHighlight;const k=Array.isArray(K.defaultLanguages)?K.defaultLanguages:void 0;R=k?new Set(k.map(M=>M.toLowerCase())):void 0,D?.({themes:n.themes})}catch(K){console.warn("[MarkdownCodeBlockNode] stream-markdown not available:",K)}})})(),u.value&&h.value?(D?.({themes:n.themes}),!W&&F&&(W=F(h.value,{theme:S()}),d.value=!0),W?n.stream===!1&&n.loading?_(n.node.code):(_(n.node.code),yield de(n.node.code,a.value),yield I()):_(n.node.code)):_(n.node.code)})}function ce(){const K=u.value;if(!K||l.value)return;const k=K.scrollTop;k<y.value?m.value=!1:(function(M,H=50){return M.scrollHeight-M.scrollTop-M.clientHeight<=H})(K)&&(m.value=!0),y.value=k}function ee(){return et(this,null,function*(){try{typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(n.node.code)),s.value=!0,i("copy",n.node.code),setTimeout(()=>{s.value=!1},1e3)}catch(K){console.error("Copy failed:",K)}})}function pe(K){return!K||K.disabled}function be(K,k,M="top"){if(pe(K.currentTarget))return;const H=K,te=H?.clientX!=null&&H?.clientY!=null?{x:H.clientX,y:H.clientY}:void 0;On(K.currentTarget,k,M,!1,te,n.isDark)}function N(){Sa()}function me(K){if(pe(K.currentTarget))return;const k=s.value?o("common.copied")||"Copied":o("common.copy")||"Copy",M=K,H=M?.clientX!=null&&M?.clientY!=null?{x:M.clientX,y:M.clientY}:void 0;On(K.currentTarget,k,"top",!1,H,n.isDark)}function fe(){l.value=!l.value;const K=u.value;K&&(l.value?(K.style.maxHeight="none",K.style["overflow-y"]="visible",K.style["overflow-x"]="auto"):(K.style.maxHeight="500px",K.style.overflow="auto",m.value=!0,at(()=>{K.scrollHeight>K.clientHeight&&(K.scrollTop=K.scrollHeight)})))}function Se(){c.value=!c.value}function $e(){if(!A.value)return;const K=(a.value||n.node.language).toLowerCase(),k=K==="html"?"HTML Preview":"SVG Preview";i("previewCode",{type:K==="html"?"text/html":"image/svg+xml",content:n.node.code,title:k})}return Ce(),Qr(()=>{Ce()}),nr(()=>{p?.disconnect(),p=void 0}),Ne(()=>n.themes,()=>et(null,null,function*(){D&&D({themes:n.themes})})),Ne(()=>n.loading,K=>{K||Ce()}),Ne(()=>[n.node.code,n.node.language],K=>et(null,[K],function*([k,M]){M!==a.value&&(a.value=M.trim()),u.value&&h.value?(W||(_(k),yield Ce()),W&&k&&(n.stream===!1&&n.loading||(_(k),yield de(k,M),yield I()))):_(k)})),Ne(()=>[n.darkTheme,n.lightTheme],()=>et(null,null,function*(){u.value&&h.value&&(W||(yield Ce()),W?.setTheme(S()))})),Ne(()=>n.node.code,()=>et(null,null,function*(){if(l.value||!m.value)return;yield at();const K=u.value;K&&K.scrollHeight>K.clientHeight&&(K.scrollTop=K.scrollHeight)})),(K,k)=>(j(),G("div",{style:St(w.value),class:Ae(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",n.isDark?"is-dark":""]])},[n.showHeader?(j(),G("div",Nk,[Ut(K.$slots,"header-left",{},()=>[L("div",zk,[L("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:v.value},null,8,Pk),L("span",qk,it(b.value),1)])],!0),Ut(K.$slots,"header-right",{},()=>[L("div",Hk,[L("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":c.value,onClick:Se,onMouseenter:k[0]||(k[0]=M=>be(M,c.value?le(o)("common.expand")||"Expand":le(o)("common.collapse")||"Collapse")),onFocus:k[1]||(k[1]=M=>be(M,c.value?le(o)("common.expand")||"Expand":le(o)("common.collapse")||"Collapse")),onMouseleave:N,onBlur:N},[(j(),G("svg",{style:St({rotate:c.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...k[17]||(k[17]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,jk),n.showFontSizeButtons&&n.enableFontSizeControl?(j(),G(Ke,{key:0},[L("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(x.value)&&x.value<=10,onClick:k[2]||(k[2]=M=>(function(){const H=Math.max(10,x.value-1);x.value=H})()),onMouseenter:k[3]||(k[3]=M=>be(M,le(o)("common.decrease")||"Decrease")),onFocus:k[4]||(k[4]=M=>be(M,le(o)("common.decrease")||"Decrease")),onMouseleave:N,onBlur:N},[...k[18]||(k[18]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,Wk),L("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!g.value||x.value===C.value,onClick:k[5]||(k[5]=M=>{x.value=C.value}),onMouseenter:k[6]||(k[6]=M=>be(M,le(o)("common.reset")||"Reset")),onFocus:k[7]||(k[7]=M=>be(M,le(o)("common.reset")||"Reset")),onMouseleave:N,onBlur:N},[...k[19]||(k[19]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),L("path",{d:"M3 3v5h5"})])],-1)])],40,Vk),L("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(x.value)&&x.value>=36,onClick:k[8]||(k[8]=M=>(function(){const H=Math.min(36,x.value+1);x.value=H})()),onMouseenter:k[9]||(k[9]=M=>be(M,le(o)("common.increase")||"Increase")),onFocus:k[10]||(k[10]=M=>be(M,le(o)("common.increase")||"Increase")),onMouseleave:N,onBlur:N},[...k[20]||(k[20]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,Uk)],64)):Qe("",!0),n.showCopyButton?(j(),G("button",{key:1,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":s.value?le(o)("common.copied")||"Copied":le(o)("common.copy")||"Copy",onClick:ee,onMouseenter:k[11]||(k[11]=M=>me(M)),onFocus:k[12]||(k[12]=M=>me(M)),onMouseleave:N,onBlur:N},[s.value?(j(),G("svg",Xk,[...k[22]||(k[22]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(j(),G("svg",Yk,[...k[21]||(k[21]=[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),L("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,Gk)):Qe("",!0),n.showExpandButton?(j(),G("button",{key:2,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":l.value,onClick:fe,onMouseenter:k[13]||(k[13]=M=>be(M,l.value?le(o)("common.collapse")||"Collapse":le(o)("common.expand")||"Expand")),onFocus:k[14]||(k[14]=M=>be(M,l.value?le(o)("common.collapse")||"Collapse":le(o)("common.expand")||"Expand")),onMouseleave:N,onBlur:N},[l.value?(j(),G("svg",Zk,[...k[23]||(k[23]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])):(j(),G("svg",Qk,[...k[24]||(k[24]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])]))],40,Kk)):Qe("",!0),A.value&&n.showPreviewButton?(j(),G("button",{key:3,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":le(o)("common.preview")||"Preview",onClick:$e,onMouseenter:k[15]||(k[15]=M=>be(M,le(o)("common.preview")||"Preview")),onFocus:k[16]||(k[16]=M=>be(M,le(o)("common.preview")||"Preview")),onMouseleave:N,onBlur:N},[...k[25]||(k[25]=[L("svg",{"data-v-3d59cc65":"",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),L("circle",{cx:"12",cy:"12",r:"3"})])],-1)])],40,Jk)):Qe("",!0)])],!0)])):Qe("",!0),Dn(L("div",{ref_key:"codeBlockContent",ref:u,class:"code-block-content",style:St(T.value),onScroll:ce},[L("div",{ref_key:"rendererTarget",ref:h,class:"code-block-render"},null,512),d.value?Qe("",!0):(j(),G("div",{key:0,class:"code-fallback-plain",innerHTML:f.value},null,8,e8))],36),[[In,!(c.value||!e.stream&&e.loading)]]),Dn(L("div",t8,[Ut(K.$slots,"loading",{loading:e.loading,stream:e.stream},()=>[k[26]||(k[26]=L("div",{class:"loading-skeleton"},[L("div",{class:"skeleton-line"}),L("div",{class:"skeleton-line"}),L("div",{class:"skeleton-line short"})],-1))],!0)],512),[[In,!e.stream&&e.loading]])],6))}}),[["__scopeId","data-v-9411928c"]]);ra.install=e=>{e.component(ra.__name,ra)};const Xu=()=>dt(()=>import("./ULB_ug-y.js").then(e=>e.m),[],import.meta.url);let wn=null,Ku=Xu;function Zu(e){Ku=e,wn=null}function r8(e){Zu(e??Xu)}function n8(){Zu(null)}function gm(){return typeof Ku=="function"}function Md(e){if(!e)return e;const t=e&&e.default?e.default:e;if(t&&(typeof t.render=="function"||typeof t.parse=="function"||typeof t.initialize=="function"))return t;if(t&&t.mermaidAPI&&(typeof t.mermaidAPI.render=="function"||typeof t.mermaidAPI.parse=="function")){const r=t.mermaidAPI;return Bt(Ge({},t),{render:r.render.bind(r),parse:r.parse?r.parse.bind(r):void 0,initialize:n=>typeof t.initialize=="function"?t.initialize(n):r.initialize?r.initialize(n):void 0})}return e.mermaid&&typeof e.mermaid.render=="function"?e.mermaid:t}function Ad(e){if(e)try{const t=e?.initialize;e.initialize=r=>{const n=Ge({suppressErrorRendering:!0},r||{});return typeof t=="function"?t.call(e,n):e?.mermaidAPI&&typeof e.mermaidAPI.initialize=="function"?e.mermaidAPI.initialize(n):void 0}}catch{}}function i8(){return et(this,null,function*(){if(wn)return wn;const e=(function(){try{const n=globalThis;return Md(n?.mermaid)}catch{return null}})();if(e)return wn=e,Ad(wn),wn;const t=Ku;if(!t)return null;let r;try{r=yield t()}catch(n){throw t===Xu?new Error('Optional dependency "mermaid" is not installed. Please install it to enable mermaid diagrams.'):n}return r?(wn=Md(r),Ad(wn),wn):null})}const Ns=Math.min,Oi=Math.max,zs=Math.round,Za=Math.floor,dn=e=>({x:e,y:e}),o8={left:"right",right:"left",bottom:"top",top:"bottom"},a8={start:"end",end:"start"};function Ed(e,t,r){return Oi(e,Ns(t,r))}function pl(e,t){return typeof e=="function"?e(t):e}function Ri(e){return e.split("-")[0]}function Ps(e){return e.split("-")[1]}function ym(e){return e==="x"?"y":"x"}function bm(e){return e==="y"?"height":"width"}const s8=new Set(["top","bottom"]);function ai(e){return s8.has(Ri(e))?"y":"x"}function vm(e){return ym(ai(e))}function tc(e){return e.replace(/start|end/g,t=>a8[t])}const Bd=["left","right"],Ld=["right","left"],l8=["top","bottom"],c8=["bottom","top"];function Qa(e){return e.replace(/left|right|bottom|top/g,t=>o8[t])}function qs(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function $d(e,t,r){let{reference:n,floating:i}=e;const o=ai(t),a=vm(t),s=bm(a),l=Ri(t),c=o==="y",u=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,f=n[s]/2-i[s]/2;let d;switch(l){case"top":d={x:u,y:n.y-i.height};break;case"bottom":d={x:u,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:h};break;case"left":d={x:n.x-i.width,y:h};break;default:d={x:n.x,y:n.y}}switch(Ps(t)){case"start":d[a]-=f*(r&&c?-1:1);break;case"end":d[a]+=f*(r&&c?-1:1)}return d}function u8(e,t){return et(this,null,function*(){var r;t===void 0&&(t={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=pl(t,e),p=(function(v){return typeof v!="number"?(function(A){return Ge({top:0,right:0,bottom:0,left:0},A)})(v):{top:v,right:v,bottom:v,left:v}})(d),m=s[f?h==="floating"?"reference":"floating":h],y=qs(yield o.getClippingRect({element:(r=yield o.isElement==null?void 0:o.isElement(m))==null||r?m:m.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),C=h==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=yield o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating),g=(yield o.isElement==null?void 0:o.isElement(x))&&(yield o.getScale==null?void 0:o.getScale(x))||{x:1,y:1},b=qs(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:x,strategy:l}):C);return{top:(y.top-b.top+p.top)/g.y,bottom:(b.bottom-y.bottom+p.bottom)/g.y,left:(y.left-b.left+p.left)/g.x,right:(b.right-y.right+p.right)/g.x}})}const h8=new Set(["left","top"]);function ml(){return typeof window<"u"}function Bo(e){return xm(e)?(e.nodeName||"").toLowerCase():"#document"}function Br(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fn(e){var t;return(t=(xm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xm(e){return!!ml()&&(e instanceof Node||e instanceof Br(e).Node)}function Vr(e){return!!ml()&&(e instanceof Element||e instanceof Br(e).Element)}function pn(e){return!!ml()&&(e instanceof HTMLElement||e instanceof Br(e).HTMLElement)}function Dd(e){return!(!ml()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Br(e).ShadowRoot)}const d8=new Set(["inline","contents"]);function ga(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=Ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!d8.has(i)}const f8=new Set(["table","td","th"]);function p8(e){return f8.has(Bo(e))}const m8=[":popover-open",":modal"];function Hs(e){return m8.some(t=>{try{return e.matches(t)}catch{return!1}})}const g8=["transform","translate","scale","rotate","perspective"],y8=["transform","translate","scale","rotate","perspective","filter"],b8=["paint","layout","strict","content"];function eu(e){const t=Qu(),r=Vr(e)?Ur(e):e;return g8.some(n=>!!r[n]&&r[n]!=="none")||!!r.containerType&&r.containerType!=="normal"||!t&&!!r.backdropFilter&&r.backdropFilter!=="none"||!t&&!!r.filter&&r.filter!=="none"||y8.some(n=>(r.willChange||"").includes(n))||b8.some(n=>(r.contain||"").includes(n))}function Qu(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const v8=new Set(["html","body","#document"]);function _o(e){return v8.has(Bo(e))}function Ur(e){return Br(e).getComputedStyle(e)}function gl(e){return Vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function si(e){if(Bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dd(e)&&e.host||fn(e);return Dd(t)?t.host:t}function wm(e){const t=si(e);return _o(t)?e.ownerDocument?e.ownerDocument.body:e.body:pn(t)&&ga(t)?t:wm(t)}function ya(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=wm(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=Br(i);if(o){const s=tu(a);return t.concat(a,a.visualViewport||[],ga(i)?i:[],s&&r?ya(s):[])}return t.concat(i,ya(i,[],r))}function tu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function km(e){const t=Ur(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=pn(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=zs(r)!==o||zs(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function Ju(e){return Vr(e)?e:e.contextElement}function Co(e){const t=Ju(e);if(!pn(t))return dn(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=km(t);let a=(o?zs(r.width):r.width)/n,s=(o?zs(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const x8=dn(0);function _m(e){const t=Br(e);return Qu()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:x8}function Hi(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),o=Ju(e);let a=dn(1);t&&(n?Vr(n)&&(a=Co(n)):a=Co(e));const s=(function(f,d,p){return d===void 0&&(d=!1),!(!p||d&&p!==Br(f))&&d})(o,r,n)?_m(o):dn(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,h=i.height/a.y;if(o){const f=Br(o),d=n&&Vr(n)?Br(n):n;let p=f,m=tu(p);for(;m&&n&&d!==p;){const y=Co(m),C=m.getBoundingClientRect(),x=Ur(m),g=C.left+(m.clientLeft+parseFloat(x.paddingLeft))*y.x,b=C.top+(m.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,h*=y.y,l+=g,c+=b,p=Br(m),m=tu(p)}}return qs({width:u,height:h,x:l,y:c})}function js(e,t){const r=gl(e).scrollLeft;return t?t.left+r:Hi(fn(e)).left+r}function Cm(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-js(e,r),y:r.top+t.scrollTop}}const w8=new Set(["absolute","fixed"]);function Fd(e,t,r){let n;if(t==="viewport")n=(function(i,o){const a=Br(i),s=fn(i),l=a.visualViewport;let c=s.clientWidth,u=s.clientHeight,h=0,f=0;if(l){c=l.width,u=l.height;const p=Qu();(!p||p&&o==="fixed")&&(h=l.offsetLeft,f=l.offsetTop)}const d=js(s);if(d<=0){const p=s.ownerDocument,m=p.body,y=getComputedStyle(m),C=p.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,x=Math.abs(s.clientWidth-m.clientWidth-C);x<=25&&(c-=x)}else d<=25&&(c+=d);return{width:c,height:u,x:h,y:f}})(e,r);else if(t==="document")n=(function(i){const o=fn(i),a=gl(i),s=i.ownerDocument.body,l=Oi(o.scrollWidth,o.clientWidth,s.scrollWidth,s.clientWidth),c=Oi(o.scrollHeight,o.clientHeight,s.scrollHeight,s.clientHeight);let u=-a.scrollLeft+js(i);const h=-a.scrollTop;return Ur(s).direction==="rtl"&&(u+=Oi(o.clientWidth,s.clientWidth)-l),{width:l,height:c,x:u,y:h}})(fn(e));else if(Vr(t))n=(function(i,o){const a=Hi(i,!0,o==="fixed"),s=a.top+i.clientTop,l=a.left+i.clientLeft,c=pn(i)?Co(i):dn(1);return{width:i.clientWidth*c.x,height:i.clientHeight*c.y,x:l*c.x,y:s*c.y}})(t,r);else{const i=_m(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return qs(n)}function Sm(e,t){const r=si(e);return!(r===t||!Vr(r)||_o(r))&&(Ur(r).position==="fixed"||Sm(r,t))}function k8(e,t,r){const n=pn(t),i=fn(t),o=r==="fixed",a=Hi(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=dn(0);function c(){l.x=js(i)}if(n||!n&&!o)if((Bo(t)!=="body"||ga(i))&&(s=gl(t)),n){const h=Hi(t,!0,o,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&c();o&&!n&&i&&c();const u=!i||n||o?dn(0):Cm(i,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function rc(e){return Ur(e).position==="static"}function Id(e,t){if(!pn(e)||Ur(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return fn(e)===r&&(r=r.ownerDocument.body),r}function Od(e,t){const r=Br(e);if(Hs(e))return r;if(!pn(e)){let i=si(e);for(;i&&!_o(i);){if(Vr(i)&&!rc(i))return i;i=si(i)}return r}let n=Id(e,t);for(;n&&p8(n)&&rc(n);)n=Id(n,t);return n&&_o(n)&&rc(n)&&!eu(n)?r:n||(function(i){let o=si(i);for(;pn(o)&&!_o(o);){if(eu(o))return o;if(Hs(o))return null;o=si(o)}return null})(e)||r}const _8={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const o=i==="fixed",a=fn(n),s=!!t&&Hs(t.floating);if(n===a||s&&o)return r;let l={scrollLeft:0,scrollTop:0},c=dn(1);const u=dn(0),h=pn(n);if((h||!h&&!o)&&((Bo(n)!=="body"||ga(a))&&(l=gl(n)),pn(n))){const d=Hi(n);c=Co(n),u.x=d.x+n.clientLeft,u.y=d.y+n.clientTop}const f=!a||h||o?dn(0):Cm(a,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:fn,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?Hs(t)?[]:(function(l,c){const u=c.get(l);if(u)return u;let h=ya(l,[],!1).filter(m=>Vr(m)&&Bo(m)!=="body"),f=null;const d=Ur(l).position==="fixed";let p=d?si(l):l;for(;Vr(p)&&!_o(p);){const m=Ur(p),y=eu(p);y||m.position!=="fixed"||(f=null),(d?!y&&!f:!y&&m.position==="static"&&f&&w8.has(f.position)||ga(p)&&!y&&Sm(l,p))?h=h.filter(C=>C!==p):f=m,p=si(p)}return c.set(l,h),h})(t,this._c):[].concat(r),n],a=o[0],s=o.reduce((l,c)=>{const u=Fd(t,c,i);return l.top=Oi(u.top,l.top),l.right=Ns(u.right,l.right),l.bottom=Ns(u.bottom,l.bottom),l.left=Oi(u.left,l.left),l},Fd(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Od,getElementRects:function(e){return et(this,null,function*(){const t=this.getOffsetParent||Od,r=this.getDimensions,n=yield r(e.floating);return{reference:k8(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}})},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=km(e);return{width:t,height:r}},getScale:Co,isElement:Vr,isRTL:function(e){return Ur(e).direction==="rtl"}};function Rd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Nd(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Ju(e),u=i||o?[...c?ya(c):[],...ya(t)]:[];u.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),o&&y.addEventListener("resize",r)});const h=c&&s?(function(y,C){let x,g=null;const b=fn(y);function v(){var A;clearTimeout(x),(A=g)==null||A.disconnect(),g=null}return(function A(w,T){w===void 0&&(w=!1),T===void 0&&(T=1),v();const S=y.getBoundingClientRect(),{left:_,top:B,width:E,height:I}=S;if(w||C(),!E||!I)return;const W={rootMargin:-Za(B)+"px "+-Za(b.clientWidth-(_+E))+"px "+-Za(b.clientHeight-(B+I))+"px "+-Za(_)+"px",threshold:Oi(0,Ns(1,T))||1};let F=!0;function D(R){const z=R[0].intersectionRatio;if(z!==T){if(!F)return A();z?A(!1,z):x=setTimeout(()=>{A(!1,1e-7)},1e3)}z!==1||Rd(S,y.getBoundingClientRect())||A(),F=!1}try{g=new IntersectionObserver(D,Bt(Ge({},W),{root:b.ownerDocument}))}catch{g=new IntersectionObserver(D,W)}g.observe(y)})(!0),v})(c,r):null;let f,d=-1,p=null;a&&(p=new ResizeObserver(y=>{let[C]=y;C&&C.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let m=l?Hi(e):null;return l&&(function y(){const C=Hi(e);m&&!Rd(m,C)&&r(),m=C,f=requestAnimationFrame(y)})(),r(),()=>{var y;u.forEach(C=>{i&&C.removeEventListener("scroll",r),o&&C.removeEventListener("resize",r)}),h?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const C8=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(t){return et(this,null,function*(){const{x:r,y:n,placement:i,platform:o}=t,a=pl(e,t),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:x=>{let{x:g,y:b}=x;return{x:g,y:b}}}}=a,u=rm(a,["mainAxis","crossAxis","limiter"]),h={x:r,y:n},f=yield o.detectOverflow(t,u),d=ai(Ri(i)),p=ym(d);let m=h[p],y=h[d];if(s){const x=p==="y"?"bottom":"right";m=Ed(m+f[p==="y"?"top":"left"],m,m-f[x])}if(l){const x=d==="y"?"bottom":"right";y=Ed(y+f[d==="y"?"top":"left"],y,y-f[x])}const C=c.fn(Bt(Ge({},t),{[p]:m,[d]:y}));return Bt(Ge({},C),{data:{x:C.x-r,y:C.y-n,enabled:{[p]:s,[d]:l}}})})}}},S8=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(t){return et(this,null,function*(){var r,n;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,u=pl(e,t),{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0}=u,C=rm(u,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const x=Ri(i),g=ai(s),b=Ri(s)===s,v=yield l.isRTL==null?void 0:l.isRTL(c.floating),A=d||(b||!y?[Qa(s)]:(function(F){const D=Qa(F);return[tc(F),D,tc(D)]})(s)),w=m!=="none";!d&&w&&A.push(...(function(F,D,R,z){const V=Ps(F);let re=(function(de,Ce,ce){switch(de){case"top":case"bottom":return ce?Ce?Ld:Bd:Ce?Bd:Ld;case"left":case"right":return Ce?l8:c8;default:return[]}})(Ri(F),R==="start",z);return V&&(re=re.map(de=>de+"-"+V),D&&(re=re.concat(re.map(tc)))),re})(s,y,m,v));const T=[s,...A],S=yield l.detectOverflow(t,C),_=[];let B=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&_.push(S[x]),f){const F=(function(D,R,z){z===void 0&&(z=!1);const V=Ps(D),re=vm(D),de=bm(re);let Ce=re==="x"?V===(z?"end":"start")?"right":"left":V==="start"?"bottom":"top";return R.reference[de]>R.floating[de]&&(Ce=Qa(Ce)),[Ce,Qa(Ce)]})(i,a,v);_.push(S[F[0]],S[F[1]])}if(B=[...B,{placement:i,overflows:_}],!_.every(F=>F<=0)){var E,I;const F=(((E=o.flip)==null?void 0:E.index)||0)+1,D=T[F];if(D&&(f!=="alignment"||g===ai(D)||B.every(z=>ai(z.placement)!==g||z.overflows[0]>0)))return{data:{index:F,overflows:B},reset:{placement:D}};let R=(I=B.filter(z=>z.overflows[0]<=0).sort((z,V)=>z.overflows[1]-V.overflows[1])[0])==null?void 0:I.placement;if(!R)switch(p){case"bestFit":{var W;const z=(W=B.filter(V=>{if(w){const re=ai(V.placement);return re===g||re==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(re=>re>0).reduce((re,de)=>re+de,0)]).sort((V,re)=>V[1]-re[1])[0])==null?void 0:W[0];z&&(R=z);break}case"initialPlacement":R=s}if(i!==R)return{reset:{placement:R}}}return{}})}}},T8={class:"markstream-vue"},M8=["id"],na=rt(Ve({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(e){const t=e,r=ue(()=>{if(t.isDark!==void 0&&t.isDark!==null)return!!t.isDark;if(typeof document<"u")try{if(document.documentElement.classList.contains("dark")||window?.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return!0}catch{}return!1}),n=J(null),i=J({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),o=J(!1);let a=null;function s(){return et(this,null,function*(){var l,c;if(!t.anchorEl||!n.value)return;const u=[(d=(l=t.offset)!=null?l:8,d===void 0&&(d=0),{name:"offset",options:d,fn(p){return et(this,null,function*(){var m,y;const{x:C,y:x,placement:g,middlewareData:b}=p,v=yield(function(A,w){return et(this,null,function*(){const{placement:T,platform:S,elements:_}=A,B=yield S.isRTL==null?void 0:S.isRTL(_.floating),E=Ri(T),I=Ps(T),W=ai(T)==="y",F=h8.has(E)?-1:1,D=B&&W?-1:1,R=pl(w,A);let{mainAxis:z,crossAxis:V,alignmentAxis:re}=typeof R=="number"?{mainAxis:R,crossAxis:0,alignmentAxis:null}:{mainAxis:R.mainAxis||0,crossAxis:R.crossAxis||0,alignmentAxis:R.alignmentAxis};return I&&typeof re=="number"&&(V=I==="end"?-1*re:re),W?{x:V*D,y:z*F}:{x:z*F,y:V*D}})})(p,d);return g===((m=b.offset)==null?void 0:m.placement)&&(y=b.arrow)!=null&&y.alignmentOffset?{}:{x:C+v.x,y:x+v.y,data:Bt(Ge({},v),{placement:g})}})}}),S8(),C8({padding:8})],{x:h,y:f}=yield((p,m,y)=>{const C=new Map,x=Ge({platform:_8},y),g=Bt(Ge({},x.platform),{_c:C});return((b,v,A)=>et(null,null,function*(){const{placement:w="bottom",strategy:T="absolute",middleware:S=[],platform:_}=A,B=S.filter(Boolean),E=yield _.isRTL==null?void 0:_.isRTL(v);let I=yield _.getElementRects({reference:b,floating:v,strategy:T}),{x:W,y:F}=$d(I,w,E),D=w,R={},z=0;for(let re=0;re<B.length;re++){var V;const{name:de,fn:Ce}=B[re],{x:ce,y:ee,data:pe,reset:be}=yield Ce({x:W,y:F,initialPlacement:w,placement:D,strategy:T,middlewareData:R,rects:I,platform:Bt(Ge({},_),{detectOverflow:(V=_.detectOverflow)!=null?V:u8}),elements:{reference:b,floating:v}});W=ce??W,F=ee??F,R=Bt(Ge({},R),{[de]:Ge(Ge({},R[de]),pe)}),be&&z<=50&&(z++,typeof be=="object"&&(be.placement&&(D=be.placement),be.rects&&(I=be.rects===!0?yield _.getElementRects({reference:b,floating:v,strategy:T}):be.rects),{x:W,y:F}=$d(I,D,E)),re=-1)}return{x:W,y:F,placement:D,strategy:T,middlewareData:R}}))(p,m,Bt(Ge({},x),{platform:g}))})(t.anchorEl,n.value,{placement:(c=t.placement)!=null?c:"top",middleware:u,strategy:"fixed"});var d;i.value.transform=`translate3d(${Math.round(h)}px, ${Math.round(f)}px, 0)`,i.value.left="0px",i.value.top="0px"})}return Ne(()=>t.visible,l=>et(null,null,function*(){if(l)if(o.value=!1,yield at(),t.anchorEl&&n.value)try{const c=t.anchorEl.getBoundingClientRect();yield s();const u=i.value.transform;if(t.originX!=null&&t.originY!=null){const h=Math.abs(Number(t.originX)-c.left),f=Math.abs(Number(t.originY)-c.top);Math.hypot(h,f)>120?(i.value.transform=`translate3d(${Math.round(t.originX)}px, ${Math.round(t.originY)}px, 0)`,yield at(),o.value=!0,yield at(),i.value.transform=u):o.value=!0}else o.value=!0;a=Nd(t.anchorEl,n.value,s)}catch{yield s(),o.value=!0,a=Nd(t.anchorEl,n.value,s)}else o.value=!0;else o.value=!1,a&&(a(),a=null)})),Ne([()=>t.anchorEl,()=>t.placement,()=>t.content],()=>et(null,null,function*(){t.visible&&t.anchorEl&&n.value&&(yield at(),yield s())})),nr(()=>{a&&a()}),(l,c)=>(j(),ht(Js,{to:"body"},[L("div",T8,[tt(Pn,{name:"tooltip",appear:""},{default:Zr(()=>[Dn(L("div",{id:t.id,ref_key:"tooltip",ref:n,style:St({position:"fixed",left:i.value.left,top:i.value.top,transform:i.value.transform}),class:Ae(["z-[9999] inline-block text-base py-2 px-3 rounded-md shadow-md whitespace-nowrap pointer-events-none tooltip-element border",[r.value?"bg-gray-900 text-white border-gray-700 border is-dark":"bg-white text-gray-900 border-gray-200 border"]]),role:"tooltip"},it(e.content),15,M8),[[In,e.visible&&o.value]])]),_:1})])]))}}),[["__scopeId","data-v-d524cc01"]]),A8=Object.freeze(Object.defineProperty({__proto__:null,default:na},Symbol.toStringTag,{value:"Module"}));function nc(e){return JSON.stringify(e)}function Tm(e){var t;const r=(t=e.mode)!=null?t:"classic",n=e.katexUrl,i=e.mhchemUrl,o=nc(Ge({throwOnError:!0,displayMode:!0,output:"html",strict:"ignore"},e.renderOptions||{})),a=nc(n),s=i?nc(i):'""';return r==="module"?`
|
|
351
351
|
let DEBUG = false
|
|
352
352
|
let katex = null
|
|
353
353
|
let katexLoadError = null
|
|
@@ -954,4 +954,4 @@ l0,-\`+(t+144)+\`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
954
954
|
</html>`});function i(o){var a;o.key!=="Escape"&&o.key!=="Esc"||(a=t.onClose)==null||a.call(t)}return Qr(()=>{typeof window<"u"&&window.addEventListener("keydown",i)}),_a(()=>{typeof window<"u"&&window.removeEventListener("keydown",i)}),(o,a)=>(j(),ht(Js,{to:"body"},[L("div",o_,[L("div",{class:Ae(["html-preview-frame__backdrop",{"html-preview-frame__backdrop--dark":t.isDark}]),onClick:a[2]||(a[2]=s=>{var l;return(l=t.onClose)==null?void 0:l.call(t)})},[L("div",{class:Ae(["html-preview-frame",{"html-preview-frame--dark":t.isDark}]),onClick:a[1]||(a[1]=_u(()=>{},["stop"]))},[L("div",a_,[L("div",s_,[a[3]||(a[3]=L("span",{class:"html-preview-frame__dot"},null,-1)),L("span",l_,it(t.title||le(r)("common.preview")||"Preview"),1)]),L("button",{type:"button",class:Ae(["html-preview-frame__close",{"html-preview-frame__close--dark":t.isDark}]),onClick:a[0]||(a[0]=s=>{var l;return(l=t.onClose)==null?void 0:l.call(t)})}," × ",2)]),L("iframe",{class:"html-preview-frame__iframe",sandbox:"allow-scripts allow-same-origin",srcdoc:n.value},null,8,c_)],2)],2)])]))}}),[["__scopeId","data-v-296dd89d"]]);let Qi=null,oc=null,jo=null,Ji=null,ac=null,sc=null;const lc=new WeakMap;let h_=0;const d_={key:0,class:"code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5",style:{color:"var(--vscode-editor-foreground, var(--markstream-code-fallback-fg))","background-color":"var(--vscode-editor-background, var(--markstream-code-fallback-bg))"}},f_={class:"flex items-center gap-x-2 flex-1 overflow-hidden"},p_=["innerHTML"],m_={class:"text-sm font-medium font-mono truncate"},g_={class:"flex items-center gap-x-2"},y_=["aria-pressed"],b_=["disabled"],v_=["disabled"],x_=["disabled"],w_=["aria-label"],k_={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},__={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},C_=["aria-pressed"],S_={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},T_={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},M_=["aria-label"],A_={class:"code-editor-layer"},E_={class:"code-loading-placeholder"},B_={class:"sr-only","aria-live":"polite",role:"status"},Yd="__markstreamMonacoPassiveTouch__",ds=rt(Ve({__name:"CodeBlockNode",props:{node:{},isDark:{type:Boolean},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},darkTheme:{default:void 0},lightTheme:{default:void 0},isShowPreview:{type:Boolean,default:!0},monacoOptions:{},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0},customId:{}},emits:["previewCode","copy"],setup(e,{emit:t}){var r;const n=e,i=t;typeof window<"u"&&(function(){var Y;try{const q=window;if(q[Yd])return;const oe=(Y=window.Element)==null?void 0:Y.prototype,ve=oe?.addEventListener;if(!oe||!ve)return;oe.addEventListener=function(_e,Le,Ye){return _e==="touchstart"&&(function(Fe,st){if(!Fe)return!1;const je=Fe;return!(typeof je.closest!="function"||!je.closest(".monaco-editor, .monaco-diff-editor")||st&&typeof st=="object"&&"passive"in st)})(this,Ye)?ve.call(this,_e,Le,(function(Fe){return Fe==null?{passive:!0}:typeof Fe=="boolean"?{capture:Fe,passive:!0}:typeof Fe=="object"?"passive"in Fe?Fe:Gd(ic({},Fe),{passive:!0}):{passive:!0}})(Ye)):ve.call(this,_e,Le,Ye)},q[Yd]=!0}catch{}})();const o=zn(),a=ue(()=>{const Y=o?.vnode.props;return!(!Y||!Y.onPreviewCode&&!Y.onPreviewCode)}),{t:s}=Io(),l=J(null),c=J(null),u=J(!1),h=J(ko(n.node.language)),f=ue(()=>mm(h.value)),d=J(!1),p=J(!1),m=J(!1),y=J(!1),C=J(!1),x=J(null);let g=0;const b=Oo(),v=J(null),A=J(typeof window>"u");typeof window<"u"&&Ne(()=>c.value,Y=>{var q;if((q=v.value)==null||q.destroy(),v.value=null,!Y)return void(A.value=!1);const oe=b(Y,{rootMargin:"400px"});v.value=oe,A.value=oe.isVisible.value,oe.whenVisible.then(()=>{A.value=!0})},{immediate:!0}),nr(()=>{var Y;(Y=v.value)==null||Y.destroy(),v.value=null});let w=null,T=null,S=()=>{},_=()=>{},B=()=>null,E=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),I=()=>({getModel:()=>({getLineCount:()=>1}),getOption:()=>14,updateOptions:()=>{}}),W=()=>{},F=()=>{},D=null,R=()=>{var Y;return String((Y=n.node.language)!=null?Y:"plaintext")},z=()=>en(null,null,function*(){});const V=ue(()=>n.node.diff),re=ue(()=>V.value?"diff":"single"),de=J(re.value),Ce=J(!1),ce=ue(()=>{var Y;const q=(Y=n.monacoOptions)==null?void 0:Y.wordWrap;return q==null||String(q)!=="off"}),ee=ue(()=>typeof window<"u"&&!Ce.value&&!y.value),pe=J(!1);typeof window<"u"&&en(null,null,function*(){try{const Y=yield fm();if(!Y)return void(Ce.value=!0);const q=Y.useMonaco,oe=Y.detectLanguage;if(typeof oe=="function"&&(R=oe),typeof q=="function"){const ve=yt();if(ve&&n.themes&&Array.isArray(n.themes)&&!n.themes.includes(ve))throw new Error("Preferred theme not in provided themes array");const _e=q(Gd(ic({wordWrap:"on",wrappingIndent:"same",themes:n.themes,theme:ve},n.monacoOptions||{}),{onThemeChange(){Z()}}));w=_e.createEditor||w,T=_e.createDiffEditor||T,S=_e.updateCode||S,_=_e.updateDiff||_,B=_e.getEditor||B,E=_e.getEditorView||E,I=_e.getDiffEditorView||I,W=_e.cleanupEditor||W,F=_e.safeClean||_e.cleanupEditor||F,z=_e.setTheme||z,C.value=!0,l.value&&(yield wt(l.value))}}catch{Ce.value=!0}});const be=J(typeof((r=n.monacoOptions)==null?void 0:r.fontSize)=="number"?n.monacoOptions.fontSize:Number.NaN),N=J(be.value),me=ue(()=>{const Y=be.value,q=N.value;return typeof Y=="number"&&Number.isFinite(Y)&&Y>0&&typeof q=="number"&&Number.isFinite(q)&&q>0}),fe=ue(()=>{var Y;const q=(Y=n.monacoOptions)==null?void 0:Y.fontSize;if(typeof q=="number"&&Number.isFinite(q)&&q>0)return q;const oe=N.value;return typeof oe=="number"&&Number.isFinite(oe)&&oe>0?oe:12}),Se=ue(()=>{var Y;const q=(Y=n.monacoOptions)==null?void 0:Y.lineHeight;return typeof q=="number"&&Number.isFinite(q)&&q>0?q:Math.round(1.5*fe.value)}),$e=ue(()=>{var Y;const q=(Y=n.monacoOptions)==null?void 0:Y.tabSize;return typeof q=="number"&&Number.isFinite(q)&&q>0?q:4}),K=ue(()=>{var Y;const q=(Y=n.monacoOptions)==null?void 0:Y.fontFamily;return ic({fontSize:`${fe.value}px`,lineHeight:`${Se.value}px`,tabSize:$e.value},typeof q=="string"&&q.trim()?{"--markstream-code-font-family":q.trim()}:{})});function k(){var Y,q,oe,ve,_e;try{const Le=V.value?(oe=(q=(Y=I())==null?void 0:Y.getModifiedEditor)==null?void 0:q.call(Y))!=null?oe:I():E(),Ye=B(),Fe=(ve=Ye?.EditorOption)==null?void 0:ve.fontInfo;if(Le&&Fe!=null){const st=(_e=Le.getOption)==null?void 0:_e.call(Le,Fe),je=st?.fontSize;if(typeof je=="number"&&Number.isFinite(je)&&je>0)return je}}catch{}try{const Le=l.value;if(Le){const Ye=Le.querySelector(".view-lines .view-line");if(Ye)try{if(typeof window<"u"&&typeof window.getComputedStyle=="function"){const Fe=window.getComputedStyle(Ye).fontSize,st=Fe&&Fe.match(/^(\d+(?:\.\d+)?)/);if(st)return Number.parseFloat(st[1])}}catch{}}}catch{}return null}function M(Y){var q,oe;try{const Le=B(),Ye=(q=Le?.EditorOption)==null?void 0:q.lineHeight;if(Ye!=null){const Fe=(oe=Y?.getOption)==null?void 0:oe.call(Y,Ye);if(typeof Fe=="number"&&Fe>0)return Fe}}catch{}const ve=(function(){try{const Le=l.value;if(!Le)return null;const Ye=Le.querySelector(".view-lines .view-line");if(Ye){const Fe=Math.ceil(Ye.getBoundingClientRect().height);if(Fe>0)return Fe}}catch{}return null})();if(ve&&ve>0)return ve;const _e=Number.isFinite(N.value)&&N.value>0?N.value:12;return Math.max(12,Math.round(1.35*_e))}function H(){var Y;if(Number.isFinite(N.value)&&N.value>0&&Number.isFinite(be.value))return N.value;const q=k();return typeof((Y=n.monacoOptions)==null?void 0:Y.fontSize)=="number"?(be.value=n.monacoOptions.fontSize,N.value=n.monacoOptions.fontSize,N.value):q&&q>0?(be.value=q,N.value=q,q):(be.value=12,N.value=12,12)}function te(){var Y,q,oe,ve,_e,Le,Ye,Fe,st,je,Xe,Tt,qt,vt;try{const Ze=V.value?I():E();if(!Ze)return null;if(V.value&&Ze?.getOriginalEditor&&Ze?.getModifiedEditor){const Mt=(Y=Ze.getOriginalEditor)==null?void 0:Y.call(Ze),Ht=(q=Ze.getModifiedEditor)==null?void 0:q.call(Ze);(oe=Mt?.layout)==null||oe.call(Mt),(ve=Ht?.layout)==null||ve.call(Ht);const Hn=((_e=Mt?.getContentHeight)==null?void 0:_e.call(Mt))||0,di=((Le=Ht?.getContentHeight)==null?void 0:Le.call(Ht))||0,fi=Math.max(Hn,di);if(fi>0)return Math.ceil(fi+1);const jn=((st=(Fe=(Ye=Mt?.getModel)==null?void 0:Ye.call(Mt))==null?void 0:Fe.getLineCount)==null?void 0:st.call(Fe))||1,Vi=((Tt=(Xe=(je=Ht?.getModel)==null?void 0:je.call(Ht))==null?void 0:Xe.getLineCount)==null?void 0:Tt.call(Xe))||1,yr=Math.max(jn,Vi),Wn=Math.max(M(Mt),M(Ht));return Math.ceil(yr*(Wn+1.5)+0+1)}if(Ze?.getContentHeight){(qt=Ze?.layout)==null||qt.call(Ze);const Mt=Ze.getContentHeight();if(Mt>0)return Math.ceil(Mt+1)}const Yt=(vt=Ze?.getModel)==null?void 0:vt.call(Ze);let gr=1;Yt&&typeof Yt.getLineCount=="function"&&(gr=Yt.getLineCount());const qn=M(Ze);return Math.ceil(gr*(qn+1.5)+0+1)}catch{return null}}function Z(){var Y,q,oe,ve,_e,Le,Ye,Fe;const st=l.value,je=c.value;if(!st||!je)return;const Xe=st.querySelector(".monaco-editor")||st,Tt=Xe.querySelector(".monaco-editor-background")||Xe,qt=Xe.querySelector(".view-lines")||Xe;let vt=null,Ze=null,Yt=null;try{typeof window<"u"&&typeof window.getComputedStyle=="function"&&(vt=window.getComputedStyle(Xe),Ze=Tt===Xe?vt:window.getComputedStyle(Tt),Yt=qt===Xe?vt:window.getComputedStyle(qt))}catch{vt=null,Ze=null,Yt=null}const gr=String((Y=vt?.getPropertyValue("--vscode-editor-foreground"))!=null?Y:"").trim(),qn=String((q=vt?.getPropertyValue("--vscode-editor-background"))!=null?q:"").trim(),Mt=String((ve=(oe=vt?.getPropertyValue("--vscode-editor-selectionBackground"))!=null?oe:vt?.getPropertyValue("--vscode-editor-hoverHighlightBackground"))!=null?ve:"").trim(),Ht=gr||String((Le=(_e=Yt?.color)!=null?_e:vt?.color)!=null?Le:"").trim(),Hn=qn||String((Fe=(Ye=Ze?.backgroundColor)!=null?Ye:vt?.backgroundColor)!=null?Fe:"").trim();Ht&&je.style.setProperty("--vscode-editor-foreground",Ht),Hn&&je.style.setProperty("--vscode-editor-background",Hn),Mt&&je.style.setProperty("--vscode-editor-selectionBackground",Mt)}function Q(){try{const Y=l.value;if(!Y)return;const q=Y.getBoundingClientRect(),oe=window.scrollY+q.top,ve=te();if(ve!=null&&ve>0){const _e=q.height;Y.style.height=`${Math.ceil(ve)}px`,Y.style.maxHeight="none";const Le=Math.ceil(ve)-_e;Le!==0&&oe<window.scrollY&&window.scrollBy(0,Le)}}catch{}}function he(){var Y;try{const q=l.value;if(!q)return;const oe=q.getBoundingClientRect(),ve=window.scrollY+oe.top,_e=oe.height,Le=(function(){var je,Xe;const Tt=(Xe=(je=n.monacoOptions)==null?void 0:je.MAX_HEIGHT)!=null?Xe:500;if(typeof Tt=="number")return Tt;const qt=String(Tt).match(/^(\d+(?:\.\d+)?)/);return qt?Number.parseFloat(qt[1]):500})();if(g>0&&(g--,x.value!=null)){const je=Math.min(x.value,Le);q.style.height=`${Math.ceil(je)}px`,q.style.maxHeight=`${Math.ceil(Le)}px`,q.style.overflow="auto";const Xe=Math.ceil(je)-_e;return void(Xe!==0&&ve<window.scrollY&&window.scrollBy(0,Xe))}const Ye=te();if(Ye!=null&&Ye>0){const je=Math.min(Ye,Le);q.style.height=`${Math.ceil(je)}px`,q.style.maxHeight=`${Math.ceil(Le)}px`,q.style.overflow="auto";const Xe=Math.ceil(je)-_e;return void(Xe!==0&&ve<window.scrollY&&window.scrollBy(0,Xe))}if(x.value!=null){const je=Math.min(x.value,Le);q.style.height=`${Math.ceil(je)}px`,q.style.maxHeight=`${Math.ceil(Le)}px`,q.style.overflow="auto";const Xe=Math.ceil(je)-_e;return void(Xe!==0&&ve<window.scrollY&&window.scrollBy(0,Xe))}const Fe=Math.ceil(((Y=q.getBoundingClientRect)==null?void 0:Y.call(q).height)||0);if(Fe>0){const je=Math.min(Fe,Le);q.style.height=`${Math.ceil(je)}px`,q.style.maxHeight=`${Math.ceil(Le)}px`,q.style.overflow="auto";const Xe=Math.ceil(je)-_e;return void(Xe!==0&&ve<window.scrollY&&window.scrollBy(0,Xe))}const st=Number.parseFloat(q.style.height);if(!Number.isNaN(st)&&st>0){const je=Math.ceil(Math.min(st,Le));q.style.height=`${je}px`;const Xe=je-_e;Xe!==0&&ve<window.scrollY&&window.scrollBy(0,Xe)}else{const je=Math.ceil(Le);q.style.height=`${je}px`;const Xe=je-_e;Xe!==0&&ve<window.scrollY&&window.scrollBy(0,Xe)}q.style.maxHeight=`${Math.ceil(Le)}px`,q.style.overflow="auto"}catch{}}const ge=ue(()=>n.isShowPreview&&(h.value==="html"||h.value==="svg"));Ne(()=>n.node.language,Y=>{h.value=ko(Y)}),Ne(()=>n.node.code,Y=>en(null,null,function*(){var q,oe;if(n.stream!==!1){if(h.value||(h.value=ko(R(Y))),w&&!m.value&&l.value)try{yield wt(l.value)}catch{}V.value?_(String((q=n.node.originalCode)!=null?q:""),String((oe=n.node.updatedCode)!=null?oe:""),f.value):S(Y,f.value),d.value&&no(()=>Q())}}));const ye=ue(()=>{const Y=h.value;return Y?Rs[Y]||Y.charAt(0).toUpperCase()+Y.slice(1):Rs[""]||"Plain Text"}),se=ue(()=>Yu(h.value||"")),Ie=ue(()=>{const Y={},q=_e=>{if(_e!=null)return typeof _e=="number"?`${_e}px`:String(_e)},oe=q(n.minWidth),ve=q(n.maxWidth);return oe&&(Y.minWidth=oe),ve&&(Y.maxWidth=ve),Y});function ke(){return en(this,null,function*(){try{typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(n.node.code)),u.value=!0,i("copy",n.node.code),setTimeout(()=>{u.value=!1},1e3)}catch(Y){console.error("复制失败:",Y)}})}function Ee(Y){return!Y||Y.disabled}function Te(Y,q,oe="top"){if(Ee(Y.currentTarget))return;const ve=Y,_e=ve?.clientX!=null&&ve?.clientY!=null?{x:ve.clientX,y:ve.clientY}:void 0;On(Y.currentTarget,q,oe,!1,_e,n.isDark)}function De(){Sa()}function He(Y){if(Ee(Y.currentTarget))return;const q=u.value?s("common.copied")||"Copied":s("common.copy")||"Copy",oe=Y,ve=oe?.clientX!=null&&oe?.clientY!=null?{x:oe.clientX,y:oe.clientY}:void 0;On(Y.currentTarget,q,"top",!1,ve,n.isDark)}function Ue(){d.value=!d.value;const Y=V.value?I():E(),q=l.value;Y&&q&&(d.value?(gt(!0),q.style.maxHeight="none",q.style.overflow="visible",Q()):(gt(!1),q.style.overflow="auto",he()))}function ft(){var Y,q,oe;if(p.value=!p.value,p.value){if(l.value){const ve=Math.ceil(((q=(Y=l.value).getBoundingClientRect)==null?void 0:q.call(Y).height)||0);ve>0&&(x.value=ve)}gt(!1)}else{d.value&>(!0),l.value&&x.value!=null&&(l.value.style.height=`${x.value}px`);const ve=V.value?I():E();try{(oe=ve?.layout)==null||oe.call(ve)}catch{}g=2,no(()=>{d.value?Q():he()})}}function ut(){if(!ge.value)return;const Y=h.value;if(a.value){const q=Y==="html"?"text/html":"image/svg+xml",oe=Y==="html"?s("artifacts.htmlPreviewTitle")||"HTML Preview":s("artifacts.svgPreviewTitle")||"SVG Preview";return void i("previewCode",{node:n.node,artifactType:q,artifactTitle:oe,id:`temp-${Y}-${Date.now()}`})}Y==="html"&&(pe.value=!pe.value)}function gt(Y){var q,oe;try{if(V.value){const ve=I();(q=ve?.updateOptions)==null||q.call(ve,{automaticLayout:Y})}else{const ve=E();(oe=ve?.updateOptions)==null||oe.call(ve,{automaticLayout:Y})}}catch{}}function wt(Y){return w?D||(m.value=!0,D=en(null,null,function*(){yield(function(oe){return en(this,null,function*(){var ve,_e,Le;if(!w)return;V.value?(F(),T?yield T(oe,String((ve=n.node.originalCode)!=null?ve:""),String((_e=n.node.updatedCode)!=null?_e:""),f.value):yield w(oe,n.node.code,f.value)):yield w(oe,n.node.code,f.value);const Ye=V.value?I():E();if(typeof((Le=n.monacoOptions)==null?void 0:Le.fontSize)=="number")Ye?.updateOptions({fontSize:n.monacoOptions.fontSize,automaticLayout:!1}),be.value=n.monacoOptions.fontSize,N.value=n.monacoOptions.fontSize;else{const Fe=k();Fe&&Fe>0?(be.value=Fe,N.value=Fe):(be.value=12,N.value=12)}d.value||p.value||he(),n.loading===!1&&(yield at(),no(()=>{d.value&&!p.value?Q():p.value||he()})),yield at(),y.value=!0,Z()})})(Y)}).finally(()=>{D=null}),D):null}Ne(()=>N.value,(Y,q)=>{const oe=V.value?I():E();oe&&typeof Y=="number"&&Number.isFinite(Y)&&Y>0&&(oe.updateOptions({fontSize:Y}),d.value&&!p.value&&Q())},{flush:"post",immediate:!1});const Ot=Ne(()=>[l.value,V.value,n.stream,n.loading,C.value,A.value],Y=>en(null,[Y],function*([q,oe,ve,_e,Le,Ye]){if(!q||!w||!Ye||ve===!1&&_e!==!1)return;const Fe=wt(q);if(Fe){try{yield Fe}catch{y.value=!1}Ot()}}));function yt(){return n.isDark?n.darkTheme:n.lightTheme}Ne(re,(Y,q)=>en(null,null,function*(){if(Y!==q&&(de.value=Y,w&&l.value&&m.value&&(n.stream!==!1||n.loading===!1)&&A.value))try{y.value=!1,m.value=!1,D=null,F(),yield at(),yield wt(l.value)}catch{y.value=!1}})),Ne(()=>[n.isDark,n.darkTheme,n.lightTheme,C.value],()=>{C.value&&(function(){const Y=yt();Y&&(function(q,oe){const ve=(function(_e){if(_e==null)return null;if(typeof _e=="string")return _e;if(typeof _e=="object"&&_e&&"name"in _e)return String(_e.name);if(typeof _e=="object"){const Le=lc.get(_e);if(Le)return Le;try{const Fe=JSON.stringify(_e);if(Fe)return lc.set(_e,Fe),Fe}catch{}const Ye="__theme_"+ ++h_;return lc.set(_e,Ye),Ye}return String(_e)})(oe);return ve?(sc=q,Qi||ac!==ve?Qi?(Ji===ve||oc===ve||(jo=oe,Ji=ve),Qi):(jo=oe,Ji=ve,Qi=en(null,null,function*(){for(;Ji&&jo!=null;){const _e=jo,Le=Ji;if(jo=null,Ji=null,ac!==Le)try{oc=Le,yield(sc??q)(_e),ac=Le}catch{}}}).finally(()=>{Qi=null,oc=null}),Qi):Promise.resolve()):Promise.resolve()})(z,Y).then(()=>{y.value&&no(()=>Z())})})()}),Ne(()=>[n.monacoOptions,A.value],()=>{var Y,q;if(!w||!A.value)return;const oe=V.value?I():E(),ve=typeof((Y=n.monacoOptions)==null?void 0:Y.fontSize)=="number"?n.monacoOptions.fontSize:Number.isFinite(N.value)?N.value:void 0;typeof ve=="number"&&Number.isFinite(ve)&&ve>0&&((q=oe?.updateOptions)==null||q.call(oe,{fontSize:ve})),d.value&&!p.value?Q():p.value||he()},{deep:!0});const Je=Ne(()=>[n.loading,A.value],Y=>en(null,[Y],function*([q,oe]){oe&&(q||(yield at(),no(()=>{p.value||(d.value?Q():he()),Je()})))}),{immediate:!0,flush:"post"});return _a(()=>{W()}),(Y,q)=>Ce.value?(j(),ht(le(Hr),{key:0,node:e.node,loading:n.loading},null,8,["node","loading"])):(j(),G("div",{key:1,ref_key:"container",ref:c,style:St(Ie.value),class:Ae(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",{"is-rendering":n.loading,"is-dark":n.isDark}]])},[n.showHeader?(j(),G("div",d_,[Ut(Y.$slots,"header-left",{},()=>[L("div",f_,[L("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:se.value},null,8,p_),L("span",m_,it(ye.value),1)])],!0),Ut(Y.$slots,"header-right",{},()=>[L("div",g_,[L("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":p.value,onClick:ft,onMouseenter:q[0]||(q[0]=oe=>Te(oe,p.value?le(s)("common.expand")||"Expand":le(s)("common.collapse")||"Collapse")),onFocus:q[1]||(q[1]=oe=>Te(oe,p.value?le(s)("common.expand")||"Expand":le(s)("common.collapse")||"Collapse")),onMouseleave:De,onBlur:De},[(j(),G("svg",{style:St({rotate:p.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...q[17]||(q[17]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,y_),n.showFontSizeButtons&&n.enableFontSizeControl?(j(),G(Ke,{key:0},[L("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(N.value)&&N.value<=10,onClick:q[2]||(q[2]=oe=>(function(){const ve=H(),_e=Math.max(10,ve-1);N.value=_e})()),onMouseenter:q[3]||(q[3]=oe=>Te(oe,le(s)("common.decrease")||"Decrease")),onFocus:q[4]||(q[4]=oe=>Te(oe,le(s)("common.decrease")||"Decrease")),onMouseleave:De,onBlur:De},[...q[18]||(q[18]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,b_),L("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!me.value||N.value===be.value,onClick:q[5]||(q[5]=oe=>(H(),void(Number.isFinite(be.value)&&(N.value=be.value)))),onMouseenter:q[6]||(q[6]=oe=>Te(oe,le(s)("common.reset")||"Reset")),onFocus:q[7]||(q[7]=oe=>Te(oe,le(s)("common.reset")||"Reset")),onMouseleave:De,onBlur:De},[...q[19]||(q[19]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),L("path",{d:"M3 3v5h5"})])],-1)])],40,v_),L("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(N.value)&&N.value>=36,onClick:q[8]||(q[8]=oe=>(function(){const ve=H(),_e=Math.min(36,ve+1);N.value=_e})()),onMouseenter:q[9]||(q[9]=oe=>Te(oe,le(s)("common.increase")||"Increase")),onFocus:q[10]||(q[10]=oe=>Te(oe,le(s)("common.increase")||"Increase")),onMouseleave:De,onBlur:De},[...q[20]||(q[20]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,x_)],64)):Qe("",!0),n.showCopyButton?(j(),G("button",{key:1,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":u.value?le(s)("common.copied")||"Copied":le(s)("common.copy")||"Copy",onClick:ke,onMouseenter:q[11]||(q[11]=oe=>He(oe)),onFocus:q[12]||(q[12]=oe=>He(oe)),onMouseleave:De,onBlur:De},[u.value?(j(),G("svg",__,[...q[22]||(q[22]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(j(),G("svg",k_,[...q[21]||(q[21]=[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),L("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,w_)):Qe("",!0),n.showExpandButton?(j(),G("button",{key:2,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":d.value,onClick:Ue,onMouseenter:q[13]||(q[13]=oe=>Te(oe,d.value?le(s)("common.collapse")||"Collapse":le(s)("common.expand")||"Expand")),onFocus:q[14]||(q[14]=oe=>Te(oe,d.value?le(s)("common.collapse")||"Collapse":le(s)("common.expand")||"Expand")),onMouseleave:De,onBlur:De},[d.value?(j(),G("svg",S_,[...q[23]||(q[23]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])):(j(),G("svg",T_,[...q[24]||(q[24]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])]))],40,C_)):Qe("",!0),ge.value&&n.showPreviewButton?(j(),G("button",{key:3,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":le(s)("common.preview")||"Preview",onClick:ut,onMouseenter:q[15]||(q[15]=oe=>Te(oe,le(s)("common.preview")||"Preview")),onFocus:q[16]||(q[16]=oe=>Te(oe,le(s)("common.preview")||"Preview")),onMouseleave:De,onBlur:De},[...q[25]||(q[25]=[L("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24"},[L("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},[L("path",{d:"M23.628 7.41c-.12-1.172-.08-3.583-.9-4.233c-1.921-1.51-6.143-1.11-8.815-1.19c-3.481-.15-7.193.14-10.625.24a.34.34 0 0 0 0 .67c3.472-.05 7.074-.29 10.575-.09c2.471.15 6.653-.14 8.254 1.16c.4.33.41 2.732.49 3.582a42 42 0 0 1 .08 9.005a13.8 13.8 0 0 1-.45 3.001c-2.42 1.4-19.69 2.381-20.72.55a21 21 0 0 1-.65-4.632a41.5 41.5 0 0 1 .12-7.964c.08 0 7.334.33 12.586.24c2.331 0 4.682-.13 6.764-.21a.33.33 0 0 0 0-.66c-7.714-.16-12.897-.43-19.31.05c.11-1.38.48-3.922.38-4.002a.3.3 0 0 0-.42 0c-.37.41-.29 1.77-.36 2.251s-.14 1.07-.2 1.6a45 45 0 0 0-.36 8.645a21.8 21.8 0 0 0 .66 5.002c1.46 2.702 17.248 1.461 20.95.43c1.45-.4 1.69-.8 1.871-1.95c.575-3.809.602-7.68.08-11.496"}),L("path",{d:"M4.528 5.237a.84.84 0 0 0-.21-1c-.77-.41-1.71.39-1 1.1a.83.83 0 0 0 1.21-.1m2.632-.25c.14-.14.19-.84-.2-1c-.77-.41-1.71.39-1 1.09a.82.82 0 0 0 1.2-.09m2.88 0a.83.83 0 0 0-.21-1c-.77-.41-1.71.39-1 1.09a.82.82 0 0 0 1.21-.09m-4.29 8.735c0 .08.23 2.471.31 2.561a.371.371 0 0 0 .63-.14c0-.09 0 0 .15-1.72a10 10 0 0 0-.11-2.232a5.3 5.3 0 0 1-.26-1.37a.3.3 0 0 0-.54-.24a6.8 6.8 0 0 0-.2 2.33c-1.281-.38-1.121.13-1.131-.42a15 15 0 0 0-.19-1.93c-.16-.17-.36-.17-.51.14a20 20 0 0 0-.43 3.471c.04.773.18 1.536.42 2.272c.26.4.7.22.7-.1c0-.09-.16-.09 0-1.862c.06-1.18-.23-.3 1.16-.76m5.033-2.552c.32-.07.41-.28.39-.37c0-.55-3.322-.34-3.462-.24s-.2.18-.18.28s0 .11 0 .16a3.8 3.8 0 0 0 1.591.361v.82a15 15 0 0 0-.13 3.132c0 .2-.09.94.17 1.16a.34.34 0 0 0 .48 0c.125-.35.196-.718.21-1.09a8 8 0 0 0 .14-3.232c0-.13.05-.7-.1-.89a8 8 0 0 0 .89-.09m5.544-.181a.69.69 0 0 0-.89-.44a2.8 2.8 0 0 0-1.252 1.001a2.3 2.3 0 0 0-.41-.83a1 1 0 0 0-1.6.27a7 7 0 0 0-.35 2.07c0 .571 0 2.642.06 2.762c.14 1.09 1 .51.63.13a17.6 17.6 0 0 1 .38-3.962c.32-1.18.32.2.39.51s.11 1.081.73 1.081s.48-.93 1.401-1.78q.075 1.345 0 2.69a15 15 0 0 0 0 1.811a.34.34 0 0 0 .68 0q.112-.861.11-1.73a16.7 16.7 0 0 0 .12-3.582m1.441-.201c-.05.16-.3 3.002-.31 3.202a6.3 6.3 0 0 0 .21 1.741c.33 1 1.21 1.07 2.291.82a3.7 3.7 0 0 0 1.14-.23c.21-.22.10-.59-.41-.64q-.817.096-1.64.07c-.44-.07-.34 0-.67-4.442q.015-.185 0-.37a.316.316 0 0 0-.23-.38a.316.316 0 0 0-.38.23"})])],-1)])],40,M_)):Qe("",!0)])],!0)])):Qe("",!0),Dn(L("div",A_,[L("div",{ref_key:"codeEditor",ref:l,class:Ae(["code-editor-container",[e.stream?"":"code-height-placeholder",{"is-hidden":ee.value}]])},null,2),ee.value?(j(),ht(le(Hr),{key:0,class:Ae(["code-pre-fallback",{"is-wrap":ce.value}]),style:St(K.value),node:e.node},null,8,["class","style","node"])):Qe("",!0)],512),[[In,!(p.value||!e.stream&&e.loading)]]),pe.value&&!a.value&&ge.value&&h.value==="html"?(j(),ht(u_,{key:1,code:e.node.code,"is-dark":n.isDark,"on-close":()=>pe.value=!1},null,8,["code","is-dark","on-close"])):Qe("",!0),Dn(L("div",E_,[Ut(Y.$slots,"loading",{loading:e.loading,stream:e.stream},()=>[q[26]||(q[26]=L("div",{class:"loading-skeleton"},[L("div",{class:"skeleton-line"}),L("div",{class:"skeleton-line"}),L("div",{class:"skeleton-line short"})],-1))],!0)],512),[[In,!e.stream&&e.loading]]),L("span",B_,it(u.value?le(s)("common.copied")||"Copied":""),1)],6))}}),[["__scopeId","data-v-bf41db7f"]]);ds.install=e=>{e.component(ds.__name,ds)};const Wm=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"}));var L_=Object.defineProperty,$_=Object.defineProperties,D_=Object.getOwnPropertyDescriptors,Xd=Object.getOwnPropertySymbols,F_=Object.prototype.hasOwnProperty,I_=Object.prototype.propertyIsEnumerable,Kd=(e,t,r)=>t in e?L_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cc=(e,t)=>{for(var r in t||(t={}))F_.call(t,r)&&Kd(e,r,t[r]);if(Xd)for(var r of Xd(t))I_.call(t,r)&&Kd(e,r,t[r]);return e},Rt=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});const O_={key:0},R_={key:1,class:"flex items-center gap-x-2 overflow-hidden"},N_=["src"],z_={key:2},P_={class:"flex items-center gap-x-1"},q_={class:"flex items-center gap-x-1"},H_={key:4},j_={key:5,class:"flex items-center gap-x-1"},W_=["aria-pressed"],V_={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},U_={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},G_=["disabled"],Y_=["disabled"],X_={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},K_={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},Z_={key:1,class:"relative"},Q_={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},J_={class:"flex items-center gap-2 backdrop-blur rounded-lg"},e9={class:"markstream-vue"},t9={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},fs=rt(Ve({__name:"MermaidBlockNode",props:{node:{},maxHeight:{default:"500px"},loading:{type:Boolean,default:!0},isDark:{type:Boolean},workerTimeoutMs:{default:1400},parseTimeoutMs:{default:1800},renderTimeoutMs:{default:2500},fullRenderTimeoutMs:{default:4e3},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0},enableWheelZoom:{type:Boolean,default:!1},isStrict:{type:Boolean,default:!1}},emits:["copy","export","openModal","toggleMode"],setup(e,{emit:t}){var r,n;const i=e,o=t,a={USE_PROFILES:{svg:!0},FORBID_TAGS:["script"],FORBID_ATTR:[/^on/i],ADD_TAGS:["style"],ADD_ATTR:["style"],SAFE_FOR_TEMPLATES:!0},s=J(!1),l=ue(()=>i.isStrict?"strict":"loose"),c=ue(()=>({startOnLoad:!1,securityLevel:l.value,dompurifyConfig:l.value==="strict"?a:void 0,flowchart:l.value==="strict"?{htmlLabels:!1}:void 0})),u=[/javascript:/i,/expression\s*\(/i,/url\s*\(\s*javascript:/i,/@import/i],h=/^(?:https?:|mailto:|tel:|#|\/|data:image\/(?:png|gif|jpe?g|webp);)/i;function f(U){if(!U)return"";const P=U.trim();return h.test(P)?P:""}function d(U){if(U)try{U.replaceChildren()}catch{U.innerHTML=""}}function p(U,P){if(!U)return"";if(l.value==="strict")return(function(ne,Be){if(!ne)return"";try{ne.replaceChildren()}catch{ne.innerHTML=""}const $=(function(O){if(typeof window>"u"||typeof DOMParser>"u"||!O)return null;const X=O.replace(/["']\s*javascript:/gi,"#").replace(/\bjavascript:/gi,"#").replace(/["']\s*vbscript:/gi,"#").replace(/\bvbscript:/gi,"#").replace(/\bdata:text\/html/gi,"#"),ie=new DOMParser().parseFromString(X,"image/svg+xml").documentElement;if(!ie||ie.nodeName.toLowerCase()!=="svg")return null;const ae=ie;return(function(xe){const we=new Set(["script"]),Oe=[xe,...Array.from(xe.querySelectorAll("*"))];for(const Me of Oe){if(we.has(Me.tagName.toLowerCase())){Me.remove();continue}const Pe=Array.from(Me.attributes);for(const We of Pe){const Re=We.name;if(/^on/i.test(Re))Me.removeAttribute(Re);else{if(Re==="style"&&We.value){const nt=We.value;if(u.some(Ct=>Ct.test(nt))){Me.removeAttribute(Re);continue}}if((Re==="href"||Re==="xlink:href")&&We.value){const nt=f(We.value);if(!nt){Me.removeAttribute(Re);continue}nt!==We.value&&Me.setAttribute(Re,nt)}}}}})(ae),ae})(Be);return $?(ne.appendChild($),ne.innerHTML):""})(U,P);try{U.replaceChildren()}catch{U.innerHTML=""}if(P)try{U.insertAdjacentHTML("afterbegin",P)}catch{U.innerHTML=P}return U.innerHTML}const{t:m}=Io();function y(){return Rt(this,null,function*(){try{const U=yield i8();return s.value=!!U,U}catch(U){throw s.value=!1,U}})}typeof window<"u"&&Rt(null,null,function*(){var U;try{const P=yield y();if(!P)return;(U=P?.initialize)==null||U.call(P,cc({},c.value))}catch(P){s.value=!1,console.warn("[markstream-vue] Failed to initialize mermaid renderer. Call enableMermaid() to configure a loader.",P)}});const C=J(!1),x=J(!1),g=J(),b=J(),v=J(),A=J(null),w=Oo(),T=J(null),S=J(typeof window>"u"),_=J(),B=ue(()=>i.node.code.replace(/\]::([^:])/g,"]:::$1").replace(/:::subgraphNode$/gm,"::subgraphNode")),E=J(1),I=J(0),W=J(0),F=J(!1),D=J({x:0,y:0}),R=J(!1),z=J(!1),V=J(!1),re=J(null),de=J(0),Ce=J(!1);let ce=null,ee=null,pe=0;const be=(r=globalThis.requestIdleCallback)!=null?r:(U,P)=>setTimeout(()=>U({didTimeout:!0}),16),N=(function(){let U=null;return(...P)=>{U&&clearTimeout(U),U=setTimeout(()=>(()=>{be(()=>{Vi()},{timeout:500})})(...P),300)}})();function me(){ee!=null&&(globalThis.clearTimeout(ee),ee=null)}function fe(U=600){if(typeof globalThis>"u")return;const P=Math.max(0,U);me(),ee=globalThis.setTimeout(()=>{ee=null,i.loading||V.value||!S.value?fe(Math.min(1200,Math.max(300,1.2*P))):N()},P)}const Se=J("360px");let $e=null;const K=J(!1),k=J(!1),M=J({}),H=J(null),te=J(""),Z=J(0);let Q=null;const he=J(!1),ge=J({zoom:1,translateX:0,translateY:0,containerHeight:"360px"}),ye=ue(()=>i.enableWheelZoom?{wheel:qn}:{}),se=ue(()=>{var U,P,ne,Be;return{worker:(U=i.workerTimeoutMs)!=null?U:1400,parse:(P=i.parseTimeoutMs)!=null?P:1800,render:(ne=i.renderTimeoutMs)!=null?ne:2500,fullRender:(Be=i.fullRenderTimeoutMs)!=null?Be:4e3}}),Ie=(n=globalThis.cancelIdleCallback)!=null?n:U=>clearTimeout(U);let ke=null,Ee=null,Te=!1,De=800,He=null,Ue=0,ft=!0,ut=0;function gt(U,P){const ne=P?.timeoutMs,Be=P?.signal;if(Be?.aborted)return Promise.reject(new DOMException("Aborted","AbortError"));let $=null,O=!1,X=null;return new Promise((ie,ae)=>{const xe=()=>{$!=null&&clearTimeout($),X&&Be&&Be.removeEventListener("abort",X)};ne&&ne>0&&($=globalThis.setTimeout(()=>{O||(O=!0,xe(),ae(new Error("Operation timed out")))},ne)),Be&&(X=()=>{O||(O=!0,xe(),ae(new DOMException("Aborted","AbortError")))},Be.addEventListener("abort",X)),U().then(we=>{O||(O=!0,xe(),ie(we))}).catch(we=>{O||(O=!0,xe(),ae(we))})})}function wt(U){if(typeof document>"u"||!b.value)return;const P=document.createElement("div");P.className="text-red-500 p-4",P.textContent="Failed to render diagram: ";const ne=document.createElement("span");ne.textContent=U instanceof Error?U.message:"Unknown error",P.appendChild(ne),d(b.value),b.value.appendChild(P),Se.value="360px",he.value=!0,yr()}function Ot(U){return!U||U.disabled}function yt(U,P,ne="top"){if(Ot(U.currentTarget))return;const Be=U,$=Be?.clientX!=null&&Be?.clientY!=null?{x:Be.clientX,y:Be.clientY}:void 0;On(U.currentTarget,P,ne,!1,$,i.isDark)}function Je(){Sa()}function Y(U){if(Ot(U.currentTarget))return;const P=C.value?m("common.copied")||"Copied":m("common.copy")||"Copy",ne=U,Be=ne?.clientX!=null&&ne?.clientY!=null?{x:ne.clientX,y:ne.clientY}:void 0;On(U.currentTarget,P,"top",!1,Be,i.isDark)}function q(U,P){const ne=`%%{init: {"theme": "${P==="dark"?"dark":"default"}"}}%%
|
|
955
955
|
`;return U.trimStart().startsWith("%%{")?U:ne+U}function oe(){return ft&&!R.value&&!K.value&&!he.value}function ve(U){const P=U.split(/\r?\n/);for(;P.length>0;){const ne=P[P.length-1].trimEnd();if(ne!==""){if(!(/^[-=~>|<\s]+$/.test(ne.trim())||/(?:--|==|~~|->|<-|-\||-\)|-x|o-|\|-|\.-)\s*$/.test(ne)||/[-|><]$/.test(ne)||/(?:graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|gantt)\s*$/i.test(ne)))break;P.pop()}else P.pop()}return P.join(`
|
|
956
956
|
`)}function _e(U,P,ne){return Rt(this,null,function*(){var Be;try{return yield Dm(U,P,(Be=ne?.timeoutMs)!=null?Be:se.value.worker)}catch{return yield(function(O,X,ie){return Rt(this,null,function*(){var ae,xe;const we=yield y();if(!we)return;const Oe=we,Me=q(O,X);if(typeof Oe.parse=="function")return yield gt(()=>Oe.parse(Me),{timeoutMs:(ae=ie?.timeoutMs)!=null?ae:se.value.parse,signal:ie?.signal}),!0;const Pe=`mermaid-parse-${Math.random().toString(36).slice(2,9)}`;return yield gt(()=>we.render(Pe,Me),{timeoutMs:(xe=ie?.timeoutMs)!=null?xe:se.value.render,signal:ie?.signal}),!0})})(U,P,ne)}})}typeof window<"u"&&Ne(()=>g.value,U=>{var P;if((P=T.value)==null||P.destroy(),T.value=null,!U)return void(S.value=!1);const ne=w(U,{rootMargin:"400px"});T.value=ne,S.value=ne.isVisible.value,ne.whenVisible.then(()=>{S.value=!0})},{immediate:!0}),nr(()=>{var U;(U=T.value)==null||U.destroy(),T.value=null});const Le=ue(()=>R.value||V.value||x.value);function Ye(U){if(!g.value||!b.value)return;const P=b.value.querySelector("svg");if(!P)return;let ne=0,Be=0;const $=P.getAttribute("viewBox"),O=P.getAttribute("width"),X=P.getAttribute("height");if($){const ie=$.split(" ");ie.length===4&&(ne=Number.parseFloat(ie[2]),Be=Number.parseFloat(ie[3]))}if(ne&&Be||O&&X&&(ne=Number.parseFloat(O),Be=Number.parseFloat(X)),Number.isNaN(ne)||Number.isNaN(Be)||ne<=0||Be<=0)try{const ie=P.getBBox();ie&&ie.width>0&&ie.height>0&&(ne=ie.width,Be=ie.height)}catch(ie){return void console.error("Failed to get SVG BBox:",ie)}if(ne>0&&Be>0){const ie=Be/ne;let ae=(U??g.value.clientWidth)*ie;ae>Be&&(ae=Be),Se.value=`${ae}px`}}const Fe=J(!1),st=ue(()=>({transform:`translate(${I.value}px, ${W.value}px) scale(${E.value})`}));function je(U){U.key==="Escape"&&Fe.value&&Xe()}function Xe(){if(Fe.value=!1,v.value&&d(v.value),A.value=null,typeof document<"u")try{document.body.style.overflow=""}catch{}if(typeof window<"u")try{window.removeEventListener("keydown",je)}catch{}}function Tt(){E.value<3&&(E.value+=.1)}function qt(){E.value>.5&&(E.value-=.1)}function vt(){E.value=1,I.value=0,W.value=0}function Ze(U){F.value=!0,U instanceof MouseEvent?D.value={x:U.clientX-I.value,y:U.clientY-W.value}:D.value={x:U.touches[0].clientX-I.value,y:U.touches[0].clientY-W.value}}function Yt(U){if(!F.value)return;let P,ne;U instanceof MouseEvent?(P=U.clientX,ne=U.clientY):(P=U.touches[0].clientX,ne=U.touches[0].clientY),I.value=P-D.value.x,W.value=ne-D.value.y}function gr(){F.value=!1}function qn(U){if(i.enableWheelZoom&&(U.ctrlKey||U.metaKey)){if(U.preventDefault(),!g.value)return;const P=g.value.getBoundingClientRect(),ne=U.clientX-P.left,Be=U.clientY-P.top,$=ne-P.width/2,O=Be-P.height/2,X=($-I.value)/E.value,ie=(O-W.value)/E.value,ae=.01,xe=-U.deltaY*ae,we=Math.min(Math.max(E.value+xe,.5),3);we!==E.value&&(I.value=$-X*we,W.value=O-ie*we,E.value=we)}}function Mt(){return Rt(this,null,function*(){try{const U=B.value,P={payload:{type:"copy",text:U},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0}};if(o("copy",P),P.defaultPrevented)return;typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(U)),C.value=!0,setTimeout(()=>{C.value=!1},1e3)}catch(U){console.error("Failed to copy:",U)}})}function Ht(){var U;const P=(U=b.value)==null?void 0:U.querySelector("svg");if(!P)return void console.error("SVG element not found");const ne=new XMLSerializer().serializeToString(P),Be={payload:{type:"export"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:P,svgString:ne};o("export",Be),Be.defaultPrevented||(function($,O=null){Rt(this,null,function*(){try{const X=O??new XMLSerializer().serializeToString($),ie=new Blob([X],{type:"image/svg+xml;charset=utf-8"}),ae=URL.createObjectURL(ie);if(typeof document<"u"){const xe=document.createElement("a");xe.href=ae,xe.download=`mermaid-diagram-${Date.now()}.svg`;try{document.body.appendChild(xe),xe.click(),document.body.removeChild(xe)}catch{}URL.revokeObjectURL(ae)}}catch(X){console.error("Failed to export SVG:",X)}})})(P,ne)}function Hn(){var U,P;const ne=(P=(U=b.value)==null?void 0:U.querySelector("svg"))!=null?P:null,Be=ne?new XMLSerializer().serializeToString(ne):null,$={payload:{type:"open-modal"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:ne,svgString:Be};o("openModal",$),$.defaultPrevented||(function(){if(Fe.value=!0,typeof document<"u")try{document.body.style.overflow="hidden"}catch{}if(typeof window<"u")try{window.addEventListener("keydown",je)}catch{}at(()=>{if(g.value&&v.value){const O=g.value.cloneNode(!0);O.classList.add("fullscreen");const X=O.querySelector("[data-mermaid-wrapper]");X&&(A.value=X,X.style.transform=st.value.transform),d(v.value),v.value.appendChild(O)}})})()}function di(U){const P={payload:{type:"toggle-mode",target:U},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0}};o("toggleMode",U,P),P.defaultPrevented||fi(U)}function fi(U){return Rt(this,null,function*(){const P=_.value;if(!P)return z.value=!0,void(R.value=U==="source");const ne=P.getBoundingClientRect().height;P.style.height=`${ne}px`,P.style.overflow="hidden",z.value=!0,R.value=U==="source",yield at();const Be=P.scrollHeight;P.style.transition="height 180ms ease",P.offsetHeight,P.style.height=`${Be}px`;const $=()=>{P.style.transition="",P.style.height="",P.style.overflow="",P.removeEventListener("transitionend",O)};function O(){$()}P.addEventListener("transitionend",O),setTimeout(()=>$(),220)})}function jn(){return Rt(this,null,function*(){return V.value?re.value:b.value||(yield at(),b.value)?(V.value=!0,re.value=Rt(null,null,function*(){var U,P,ne;b.value&&(b.value.style.opacity="0");try{const Be=yield y();if(!Be)return;const $=`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;K.value||k.value||(U=Be.initialize)==null||U.call(Be,(P=cc({},c.value),ne={dompurifyConfig:cc({},a)},$_(P,D_(ne))));const O=(function(ae,xe=B.value){const we=xe,Oe=`%%{init: {"theme": "${ae==="dark"?"dark":"default"}"}}%%
|
|
957
|
-
`;return we.trim().startsWith("%%{")?we:Oe+we})(i.isDark?"dark":"light"),X=yield gt(()=>Be.render($,O),{timeoutMs:se.value.fullRender}),ie=X?.svg;if(b.value){const ae=p(b.value,ie);K.value||k.value||(Ye(),K.value=!0,ge.value={zoom:E.value,translateX:I.value,translateY:W.value,containerHeight:Se.value});const xe=i.isDark?"dark":"light";ae&&(M.value[xe]=ae),k.value&&(k.value=!1),he.value=!1,pe=0,me()}}catch(Be){const $=(function(X){const ie=typeof X=="string"?X:typeof X?.message=="string"?X.message:"";return typeof ie=="string"&&/timed out/i.test(ie)})(Be),O=pe+1;$&&O<=3?(pe=O,fe(Math.min(1200,600*O))):(pe=0,me(),console.error("Failed to render mermaid diagram:",Be),i.loading===!1&&wt(Be))}finally{yield at(),b.value&&(b.value.style.opacity="1"),V.value=!1,re.value=null}}),re.value):void console.warn("Mermaid container not ready")})}function Vi(){return Rt(this,null,function*(){var U,P;const ne=Date.now(),Be=++Z.value;Q&&Q.abort(),Q=new AbortController;const $=Q.signal,O=i.isDark?"dark":"light",X=B.value,ie=X.replace(/\s+/g,"");if(!X.trim())return b.value&&d(b.value),H.value=null,te.value="",void(he.value=!1);if(ie===te.value)return;try{const xe=yield(function(Oe,Me,Pe){return Rt(this,null,function*(){var We;try{if(yield _e(Oe,Me,Pe))return{fullOk:!0,prefixOk:!1}}catch(nt){if(nt?.name==="AbortError")throw nt}let Re=ve(Oe);if(Re&&Re.trim()&&Re!==Oe)try{try{const nt=yield Fm(Oe,Me,(We=Pe?.timeoutMs)!=null?We:se.value.worker);nt&&nt.trim()&&(Re=nt)}catch{}if(yield _e(Re,Me,Pe))return{fullOk:!1,prefixOk:!0,prefix:Re}}catch(nt){if(nt?.name==="AbortError")throw nt}return{fullOk:!1,prefixOk:!1}})})(X,O,{signal:$,timeoutMs:se.value.worker});if(xe.fullOk)return yield jn(),void(Z.value===Be&&(H.value=(P=(U=b.value)==null?void 0:U.innerHTML)!=null?P:null,te.value=ie,he.value=!1));const we=Ue&&ne<=Ue;if(xe.prefixOk&&xe.prefix&&oe()&&!we)return void(yield(function(Oe){return Rt(this,null,function*(){if(oe()&&(b.value||(yield at(),b.value))&&!V.value){V.value=!0;try{const Me=yield y();if(!Me)return;const Pe=`mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,We=i.isDark?"dark":"light",Re=ve(Oe),nt=q(Re&&Re.trim()?Re:Oe,We);b.value&&(b.value.style.opacity="0");const Ct=yield gt(()=>Me.render(Pe,nt),{timeoutMs:se.value.render}),Sr=Ct?.svg;b.value&&Sr&&(p(b.value,Sr),Ye())}catch{}finally{yield at(),b.value&&(b.value.style.opacity="1"),V.value=!1}}})})(xe.prefix))}catch(xe){if(xe?.name==="AbortError")return}if(Z.value!==Be||he.value)return;const ae=M.value[O];ae&&b.value&&p(b.value,ae)})}function yr(){Te&&(Te=!1,De=800,ft=!1,He&&(He.abort(),He=null),ke&&(globalThis.clearTimeout(ke),ke=null),Ee&&(Ie(Ee),Ee=null),Ue=Date.now())}function Wn(){if(yr(),Q){try{Q.abort()}catch{}Q=null}if(He){try{He.abort()}catch{}He=null}nu(),me(),pe=0}function Ro(U=800){Te&&(ut>=12?yr():(ke&&globalThis.clearTimeout(ke),ke=globalThis.setTimeout(()=>{Ee=be(()=>Rt(null,null,function*(){if(!Te)return;if(R.value||K.value)return void yr();const P=i.isDark?"dark":"light",ne=B.value;if(!ne.trim())return i.loading===!1?void yr():void Ro(De);if(ut++,ut>12)yr();else{He&&He.abort(),He=new AbortController;try{if((yield _e(ne,P,{signal:He.signal,timeoutMs:se.value.worker}))&&(yield jn(),K.value))return void yr()}catch{}De=Math.min(Math.floor(1.5*De),4e3),Ro(De)}}),{timeout:500})},U)))}function pi(){Te||R.value||K.value||(Te=!0,Ue=0,ft=!0,ut=0,Ro(500))}Ne(st,U=>{Fe.value&&A.value&&(A.value.style.transform=U.transform)},{immediate:!0}),Ne(()=>B.value,()=>{K.value=!1,M.value={},N(),!R.value&&s.value&&pi(),(function(){if(!R.value||!s.value)return;const U=B.value.length;U!==de.value&&(Ce.value=!0,de.value=U,ce&&clearTimeout(ce),ce=setTimeout(()=>{Ce.value&&R.value&&B.value.trim()&&(Ce.value=!1,fi("preview"))},500))})()}),Ne(()=>i.isDark,()=>Rt(null,null,function*(){if(!K.value||he.value)return;const U=i.isDark?"dark":"light",P=M.value[U];if(P)return void(b.value&&p(b.value,P));const ne={zoom:E.value,translateX:I.value,translateY:W.value,containerHeight:Se.value},Be=E.value!==1||I.value!==0||W.value!==0;k.value=!0,Be&&(E.value=1,I.value=0,W.value=0,yield at()),yield jn(),Be&&(yield at(),E.value=ne.zoom,I.value=ne.translateX,W.value=ne.translateY,Se.value=ne.containerHeight,ge.value=ne)})),Ne(()=>R.value,U=>Rt(null,null,function*(){if(U)yr(),K.value&&(ge.value={zoom:E.value,translateX:I.value,translateY:W.value,containerHeight:Se.value});else{if(he.value)return;const P=i.isDark?"dark":"light";if(K.value&&M.value[P])return yield at(),b.value&&p(b.value,M.value[P]),E.value=ge.value.zoom,I.value=ge.value.translateX,W.value=ge.value.translateY,void(Se.value=ge.value.containerHeight);if(yield at(),!s.value)return;yield Vi(),pi()}})),Ne(()=>i.loading,(U,P)=>Rt(null,null,function*(){if(P===!0&&U===!1){const ne=B.value.trim();if(!ne)return Wn();const Be=i.isDark?"dark":"light",$=ne.replace(/\s+/g,"");if(K.value&&$===te.value)return yield at(),b.value&&!b.value.querySelector("svg")&&M.value[Be]&&p(b.value,M.value[Be]),void Wn();try{yield _e(ne,Be,{timeoutMs:se.value.worker}),yield jn(),te.value=$,he.value=!1,Wn()}catch(O){Wn(),wt(O)}}})),Ne(g,U=>{$e&&$e.disconnect(),!U||K.value||k.value||($e=new ResizeObserver(P=>{P&&P.length>0&&!K.value&&!k.value&&no(()=>{Ye(P[0].contentRect.width)})}),$e.observe(U))},{immediate:!0}),Qr(()=>Rt(null,null,function*(){yield at(),z.value||(R.value=!s.value),S.value&&(N(),de.value=B.value.length)})),Ne(()=>s.value,U=>{z.value||(R.value=!U)}),Ne(()=>S.value,U=>{U&&(K.value||(N(),de.value=B.value.length),i.loading||K.value||N())},{immediate:!1}),_a(()=>{ce&&clearTimeout(ce),$e&&$e.disconnect(),Q&&(Q.abort(),Q=null),nu(),yr(),me()}),Ne(()=>x.value,U=>Rt(null,null,function*(){U?(yr(),Q&&Q.abort()):K.value||(yield at(),N(),R.value||pi())}),{immediate:!1});const Ui=ue(()=>i.isDark?"mermaid-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200":"mermaid-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700");return(U,P)=>(j(),G("div",{class:Ae(["my-4 rounded-lg border overflow-hidden shadow-sm",[i.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":i.loading}]])},[i.showHeader?(j(),G("div",{key:0,class:Ae(["mermaid-block-header flex justify-between items-center px-4 py-2.5 border-b",i.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[U.$slots["header-left"]?(j(),G("div",O_,[Ut(U.$slots,"header-left",{},void 0,!0)])):(j(),G("div",R_,[L("img",{src:le("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%3e%3cpath%20fill='none'%20stroke='%23ca9ee6'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M1.5%202.5c0%206%202.25%205.75%204%207%20.83.67%201.17%202%201%204h3c-.17-2%20.17-3.33%201-4%201.75-1.25%204-1%204-7C12%202.5%2010%203%208%207%206%203%204%202.5%201.5%202.5'%20/%3e%3c/svg%3e"),class:"w-4 h-4 my-0",alt:"Mermaid"},null,8,N_),L("span",{class:Ae(["text-sm font-medium font-mono truncate",i.isDark?"text-gray-400":"text-gray-600"])},"Mermaid",2)])),U.$slots["header-center"]?(j(),G("div",z_,[Ut(U.$slots,"header-center",{},void 0,!0)])):i.showModeToggle&&s.value?(j(),G("div",{key:3,class:Ae(["flex items-center gap-x-1 rounded-md p-0.5",i.isDark?"bg-gray-700":"bg-gray-100"])},[L("button",{class:Ae(["px-2.5 py-1 text-xs rounded transition-colors",[R.value?i.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":i.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:P[0]||(P[0]=()=>di("preview")),onMouseenter:P[1]||(P[1]=ne=>yt(ne,le(m)("common.preview")||"Preview")),onFocus:P[2]||(P[2]=ne=>yt(ne,le(m)("common.preview")||"Preview")),onMouseleave:Je,onBlur:Je},[L("div",P_,[P[21]||(P[21]=L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),L("circle",{cx:"12",cy:"12",r:"3"})])],-1)),L("span",null,it(le(m)("common.preview")||"Preview"),1)])],34),L("button",{class:Ae(["px-2.5 py-1 text-xs rounded transition-colors",[R.value?i.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":i.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:P[3]||(P[3]=()=>di("source")),onMouseenter:P[4]||(P[4]=ne=>yt(ne,le(m)("common.source")||"Source")),onFocus:P[5]||(P[5]=ne=>yt(ne,le(m)("common.source")||"Source")),onMouseleave:Je,onBlur:Je},[L("div",q_,[P[22]||(P[22]=L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),L("span",null,it(le(m)("common.source")||"Source"),1)])],34)],2)):Qe("",!0),U.$slots["header-right"]?(j(),G("div",H_,[Ut(U.$slots,"header-right",{},void 0,!0)])):(j(),G("div",j_,[i.showCollapseButton?(j(),G("button",{key:0,class:Ae(Ui.value),"aria-pressed":x.value,onClick:P[6]||(P[6]=ne=>x.value=!x.value),onMouseenter:P[7]||(P[7]=ne=>yt(ne,x.value?le(m)("common.expand")||"Expand":le(m)("common.collapse")||"Collapse")),onFocus:P[8]||(P[8]=ne=>yt(ne,x.value?le(m)("common.expand")||"Expand":le(m)("common.collapse")||"Collapse")),onMouseleave:Je,onBlur:Je},[(j(),G("svg",{style:St({rotate:x.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...P[23]||(P[23]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,W_)):Qe("",!0),i.showCopyButton?(j(),G("button",{key:1,class:Ae(Ui.value),onClick:Mt,onMouseenter:P[9]||(P[9]=ne=>Y(ne)),onFocus:P[10]||(P[10]=ne=>Y(ne)),onMouseleave:Je,onBlur:Je},[C.value?(j(),G("svg",U_,[...P[25]||(P[25]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(j(),G("svg",V_,[...P[24]||(P[24]=[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),L("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],34)):Qe("",!0),i.showExportButton&&s.value?(j(),G("button",{key:2,class:Ae(`${Ui.value} ${Le.value?"opacity-50 cursor-not-allowed":""}`),disabled:Le.value,onClick:Ht,onMouseenter:P[11]||(P[11]=ne=>yt(ne,le(m)("common.export")||"Export")),onFocus:P[12]||(P[12]=ne=>yt(ne,le(m)("common.export")||"Export")),onMouseleave:Je,onBlur:Je},[...P[26]||(P[26]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),L("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,G_)):Qe("",!0),i.showFullscreenButton&&s.value?(j(),G("button",{key:3,class:Ae(`${Ui.value} ${Le.value?"opacity-50 cursor-not-allowed":""}`),disabled:Le.value,onClick:Hn,onMouseenter:P[13]||(P[13]=ne=>yt(ne,Fe.value?le(m)("common.minimize")||"Minimize":le(m)("common.open")||"Open")),onFocus:P[14]||(P[14]=ne=>yt(ne,Fe.value?le(m)("common.minimize")||"Minimize":le(m)("common.open")||"Open")),onMouseleave:Je,onBlur:Je},[Fe.value?(j(),G("svg",K_,[...P[28]||(P[28]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(j(),G("svg",X_,[...P[27]||(P[27]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,Y_)):Qe("",!0)]))],2)):Qe("",!0),Dn(L("div",{ref_key:"modeContainerRef",ref:_},[R.value?(j(),G("div",{key:0,class:Ae(["p-4",i.isDark?"bg-gray-900":"bg-gray-50"])},[L("pre",{class:Ae(["text-sm font-mono whitespace-pre-wrap",i.isDark?"text-gray-300":"text-gray-700"])},it(B.value),3)],2)):(j(),G("div",Z_,[i.showZoomControls?(j(),G("div",Q_,[L("div",J_,[L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Tt,onMouseenter:P[15]||(P[15]=ne=>yt(ne,le(m)("common.zoomIn")||"Zoom in")),onFocus:P[16]||(P[16]=ne=>yt(ne,le(m)("common.zoomIn")||"Zoom in")),onMouseleave:Je,onBlur:Je},[...P[29]||(P[29]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:qt,onMouseenter:P[17]||(P[17]=ne=>yt(ne,le(m)("common.zoomOut")||"Zoom out")),onFocus:P[18]||(P[18]=ne=>yt(ne,le(m)("common.zoomOut")||"Zoom out")),onMouseleave:Je,onBlur:Je},[...P[30]||(P[30]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:vt,onMouseenter:P[19]||(P[19]=ne=>yt(ne,le(m)("common.resetZoom")||"Reset zoom")),onFocus:P[20]||(P[20]=ne=>yt(ne,le(m)("common.resetZoom")||"Reset zoom")),onMouseleave:Je,onBlur:Je},it(Math.round(100*E.value))+"% ",35)])])):Qe("",!0),L("div",Xr({ref_key:"mermaidContainer",ref:g,class:["min-h-[360px] relative transition-all duration-100 overflow-hidden block",i.isDark?"bg-gray-900":"bg-gray-50"],style:{height:Se.value}},vh(ye.value),{onMousedown:Ze,onMousemove:Yt,onMouseup:gr,onMouseleave:gr,onTouchstartPassive:Ze,onTouchmovePassive:Yt,onTouchendPassive:gr}),[L("div",{"data-mermaid-wrapper":"",class:Ae(["absolute inset-0 cursor-grab",{"cursor-grabbing":F.value}]),style:St(st.value)},[L("div",{ref_key:"mermaidContent",ref:b,class:"_mermaid w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],16),(j(),ht(Js,{to:"body"},[L("div",e9,[tt(Pn,{name:"mermaid-dialog",appear:""},{default:Zr(()=>[Fe.value?(j(),G("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:_u(Xe,["self"])},[L("div",{class:Ae(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",i.isDark?"bg-gray-900":"bg-white"])},[L("div",t9,[L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Tt},[...P[31]||(P[31]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:qt},[...P[32]||(P[32]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:vt},it(Math.round(100*E.value))+"% ",3),L("button",{class:Ae(["inline-flex items-center justify-center p-2 rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Xe},[...P[33]||(P[33]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),L("div",Xr({ref_key:"modalContent",ref:v,class:"w-full h-full flex items-center justify-center p-4 overflow-hidden"},vh(ye.value,!0),{onMousedown:Ze,onMousemove:Yt,onMouseup:gr,onMouseleave:gr,onTouchstartPassive:Ze,onTouchmovePassive:Yt,onTouchendPassive:gr}),null,16)],2)])):Qe("",!0)]),_:1})])]))]))],512),[[In,!x.value]])],2))}}),[["__scopeId","data-v-2ff46cc8"]]);fs.install=e=>{e.component(fs.__name,fs)};const Vm=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"}));var Ja=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});const Um=()=>dt(()=>Promise.resolve().then(()=>T9),void 0,import.meta.url);let es=null,r9=Um;const n9={key:0},i9={key:1,class:"flex items-center gap-x-2 overflow-hidden"},o9=["src"],a9={key:2},s9={class:"flex items-center gap-x-1"},l9={class:"flex items-center gap-x-1"},c9={key:4},u9={key:5,class:"flex items-center gap-x-1"},h9=["aria-pressed"],d9={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},f9={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},p9=["disabled"],m9=["disabled"],g9={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},y9={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},b9={key:1,class:"relative"},v9={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},x9={class:"flex items-center gap-2 backdrop-blur rounded-lg"},w9={class:"markstream-vue"},k9={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},ps=rt(Ve({__name:"InfographicBlockNode",props:{node:{},maxHeight:{default:"500px"},loading:{type:Boolean,default:!0},isDark:{type:Boolean},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0}},emits:["copy","export","openModal"],setup(e,{emit:t}){const r=e,{t:n}=Io(),i=J(!1),o=J(!1),a=J(),s=J(!1),l=J("360px"),c=J(!1),u=J(),h=J(null),f=J(1),d=J(0),p=J(0),m=J(!1),y=J({x:0,y:0}),C=ue(()=>r.node.code);function x(ce){return!ce||ce.disabled}function g(ce,ee,pe="top"){if(x(ce.currentTarget))return;const be=ce,N=be?.clientX!=null&&be?.clientY!=null?{x:be.clientX,y:be.clientY}:void 0;On(ce.currentTarget,ee,pe,!1,N,r.isDark)}function b(){Sa()}function v(ce){if(x(ce.currentTarget))return;const ee=i.value?n("common.copied")||"Copied":n("common.copy")||"Copy",pe=ce,be=pe?.clientX!=null&&pe?.clientY!=null?{x:pe.clientX,y:pe.clientY}:void 0;On(ce.currentTarget,ee,"top",!1,be,r.isDark)}function A(){return Ja(this,null,function*(){try{const ce=C.value;typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(ce)),i.value=!0,setTimeout(()=>{i.value=!1},1e3)}catch(ce){console.error("Failed to copy:",ce)}})}function w(ce){s.value=ce==="source"}function T(){var ce;const ee=(ce=a.value)==null?void 0:ce.querySelector("svg");ee?(function(pe){Ja(this,null,function*(){try{const be=new XMLSerializer().serializeToString(pe),N=new Blob([be],{type:"image/svg+xml;charset=utf-8"}),me=URL.createObjectURL(N);if(typeof document<"u"){const fe=document.createElement("a");fe.href=me,fe.download=`infographic-${Date.now()}.svg`;try{document.body.appendChild(fe),fe.click(),document.body.removeChild(fe)}catch{}URL.revokeObjectURL(me)}}catch(be){console.error("Failed to export SVG:",be)}})})(ee):console.error("SVG element not found")}function S(ce){ce.key==="Escape"&&c.value&&_()}function _(){if(c.value=!1,u.value&&(u.value.innerHTML=""),h.value=null,typeof document<"u")try{document.body.style.overflow=""}catch{}if(typeof window<"u")try{window.removeEventListener("keydown",S)}catch{}}function B(){(function(){if(c.value=!0,typeof document<"u")try{document.body.style.overflow="hidden"}catch{}if(typeof window<"u")try{window.addEventListener("keydown",S)}catch{}at(()=>{if(a.value&&u.value){u.value.innerHTML="";const ce=document.createElement("div");ce.style.transition="transform 0.1s ease",ce.style.transformOrigin="center center",ce.style.width="100%",ce.style.height="100%",ce.style.display="flex",ce.style.alignItems="center",ce.style.justifyContent="center";const ee=a.value.cloneNode(!0);ee.classList.add("fullscreen"),ee.style.height="auto",ce.appendChild(ee),u.value.appendChild(ce),h.value=ce,ce.style.transform=`translate(${d.value}px, ${p.value}px) scale(${f.value})`}})})()}function E(){f.value<3&&(f.value+=.1)}function I(){f.value>.5&&(f.value-=.1)}function W(){f.value=1,d.value=0,p.value=0}function F(ce){m.value=!0,ce instanceof MouseEvent?y.value={x:ce.clientX-d.value,y:ce.clientY-p.value}:y.value={x:ce.touches[0].clientX-d.value,y:ce.touches[0].clientY-p.value}}function D(ce){if(!m.value)return;let ee,pe;ce instanceof MouseEvent?(ee=ce.clientX,pe=ce.clientY):(ee=ce.touches[0].clientX,pe=ce.touches[0].clientY),d.value=ee-y.value.x,p.value=pe-y.value.y}function R(){m.value=!1}let z=null;function V(){return Ja(this,null,function*(){var ce;if(a.value)try{const ee=yield(function(){return Ja(this,null,function*(){if(es)return es;const pe=r9;if(!pe)return null;let be;try{be=yield pe()}catch(me){throw pe===Um?new Error('Optional dependency "@antv/infographic" is not installed. Please install it to enable infographic diagrams.'):me}if(!be)return null;const N=be&&be.default?be.default:be;return es=typeof N=="function"&&N.prototype&&N.prototype.render?N:be.Infographic?be.Infographic:N&&N.Infographic?N.Infographic:N,es})})();if(!ee)return void console.warn("Infographic library failed to load.");z&&((ce=z.destroy)==null||ce.call(z),z=null),a.value.innerHTML="",z=new ee({container:a.value,width:"100%",height:"100%"}),z.render(C.value),at(()=>{if(a.value){const pe=a.value.scrollHeight;pe>0&&(l.value=`${Math.min(pe,800)}px`)}})}catch(ee){console.error("Failed to render infographic:",ee),a.value&&(a.value.innerHTML=`<div class="text-red-500 p-4">Failed to render infographic: ${ee instanceof Error?ee.message:"Unknown error"}</div>`)}})}Ne(()=>C.value,()=>{s.value||o.value||at(()=>{V()})}),Ne(()=>s.value,ce=>{ce||o.value||at(()=>{V()})}),Ne(()=>o.value,ce=>{ce||s.value||at(()=>{V()})}),Qr(()=>{s.value||o.value||at(()=>{V()})}),nr(()=>{var ce;if(z&&((ce=z.destroy)==null||ce.call(z),z=null),typeof window<"u")try{window.removeEventListener("keydown",S)}catch{}});const re=ue(()=>r.isDark?"infographic-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200":"infographic-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700"),de=ue(()=>s.value||o.value),Ce=ue(()=>({transform:`translate(${d.value}px, ${p.value}px) scale(${f.value})`}));return Ne(Ce,ce=>{c.value&&h.value&&(h.value.style.transform=ce.transform)}),(ce,ee)=>(j(),G("div",{class:Ae(["my-4 rounded-lg border overflow-hidden shadow-sm",[r.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":r.loading}]])},[r.showHeader?(j(),G("div",{key:0,class:Ae(["infographic-block-header flex justify-between items-center px-4 py-2.5 border-b",r.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[ce.$slots["header-left"]?(j(),G("div",n9,[Ut(ce.$slots,"header-left",{},void 0,!0)])):(j(),G("div",i9,[L("img",{src:le("data:image/svg+xml,%3csvg%20width='15.52'%20height='16'%20viewBox='0%200%20291%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='M140.904%20239.376C128.83%20239.683%20119.675%20239.299%20115.448%20243.843C110.902%20248.07%20111.288%20257.227%20110.979%20269.302C111.118%20274.675%20111.118%20279.478%20111.472%20283.52C111.662%20285.638%20111.95%20287.547%20112.406%20289.224C112.411%20289.243%20112.416%20289.259%20112.422%20289.28C112.462%20289.419%20112.496%20289.558%20112.539%20289.691C113.168%20291.787%20114.088%20293.491%20115.446%20294.758C116.662%20296.064%20118.283%20296.963%20120.264%20297.59C120.36%20297.614%20120.464%20297.646%20120.555%20297.675C120.56%20297.68%20120.56%20297.68%20120.566%20297.68C120.848%20297.768%20121.142%20297.846%20121.443%20297.923C121.454%20297.923%20121.464%20297.928%20121.478%20297.934C122.875%20298.272%20124.424%20298.507%20126.11%20298.678C126.326%20298.696%20126.542%20298.718%20126.763%20298.739C130.79%20299.086%20135.558%20299.088%20140.904%20299.222C152.974%20298.912%20162.128%20299.302%20166.36%20294.758C170.904%20290.526%20170.515%20281.371%20170.824%20269.302C170.515%20257.227%20170.907%20248.07%20166.36%20243.843C162.131%20239.299%20152.974%20239.683%20140.904%20239.376Z'%20fill='%23FF6376'%3e%3c/path%3e%3cpath%20d='M21.2155%20128.398C12.6555%20128.616%206.16484%20128.339%203.16751%20131.56C-0.0538222%20134.56%200.218178%20141.054%20-0.000488281%20149.608C0.218178%20158.168%20-0.0538222%20164.659%203.16751%20167.656C6.16484%20170.878%2012.6555%20170.606%2021.2155%20170.824C25.0262%20170.726%2028.4288%20170.726%2031.2955%20170.475C32.7968%20170.342%2034.1488%20170.136%2035.3382%20169.814C35.3542%20169.811%2035.3648%20169.806%2035.3782%20169.803C35.4768%20169.774%2035.5755%20169.747%2035.6688%20169.718C37.1568%20169.272%2038.3648%20168.622%2039.2635%20167.656C40.1915%20166.795%2040.8262%20165.646%2041.2715%20164.243C41.2875%20164.174%2041.3115%20164.102%2041.3328%20164.035C41.3328%20164.035%2041.3355%20164.032%2041.3355%20164.027C41.3968%20163.827%2041.4529%20163.622%2041.5062%20163.406C41.5062%20163.398%2041.5115%20163.392%2041.5142%20163.382C41.7542%20162.392%2041.9222%20161.294%2042.0422%20160.096C42.0555%20159.944%2042.0715%20159.792%2042.0848%20159.635C42.3328%20156.779%2042.3328%20153.398%2042.4262%20149.608C42.2075%20141.054%2042.4848%20134.56%2039.2635%20131.56C36.2635%20128.339%2029.7728%20128.616%2021.2155%20128.398Z'%20fill='%23FFCCCC'%3e%3c/path%3e%3cpath%20d='M81.0595%20184.171C70.8568%20184.433%2063.1208%20184.102%2059.5475%20187.942C55.7075%20191.518%2056.0328%20199.254%2055.7742%20209.454C56.0328%20219.657%2055.7075%20227.393%2059.5475%20230.963C63.1208%20234.803%2070.8568%20234.478%2081.0595%20234.739C85.6008%20234.622%2089.6595%20234.622%2093.0728%20234.323C94.8648%20234.163%2096.4755%20233.921%2097.8942%20233.534C97.9102%20233.529%2097.9235%20233.526%2097.9422%20233.521C98.0568%20233.486%2098.1742%20233.457%2098.2888%20233.422C100.06%20232.889%20101.5%20232.113%20102.569%20230.963C103.676%20229.937%20104.433%20228.566%20104.964%20226.894C104.985%20226.811%20105.012%20226.726%20105.036%20226.646C105.041%20226.643%20105.041%20226.643%20105.041%20226.638C105.116%20226.401%20105.18%20226.153%20105.244%20225.897C105.244%20225.889%20105.249%20225.881%20105.254%20225.867C105.54%20224.689%20105.74%20223.379%20105.881%20221.953C105.9%20221.771%20105.916%20221.59%20105.934%20221.403C106.228%20218.001%20106.228%20213.969%20106.342%20209.454C106.081%20199.254%20106.412%20191.518%20102.572%20187.942C98.9955%20184.102%2091.2568%20184.433%2081.0595%20184.171Z'%20fill='%23FF939F'%3e%3c/path%3e%3cpath%20d='M260.591%20151.87C215.652%20151.87%20203.02%20164.523%20203.02%20209.462H198.476C198.476%20164.523%20185.836%20151.881%20140.895%20151.881V147.337C185.836%20147.337%20198.487%20134.705%20198.487%2089.7659H203.02C203.02%20134.705%20215.652%20147.337%20260.591%20147.337V151.87ZM286.052%20124.158C281.82%20119.614%20272.66%20120.001%20260.591%20119.689C248.521%20119.385%20239.361%20119.771%20235.129%20115.227C230.585%20110.995%20230.983%20101.846%20230.671%2089.7659C230.513%2083.7312%20230.535%2078.4272%20230.023%2074.1019C229.513%2069.7659%20228.481%2066.4219%20226.209%2064.3046C221.967%2059.7606%20212.817%2060.1472%20200.748%2059.8459C188.681%2060.1472%20179.519%2059.7606%20175.287%2064.3046C170.753%2068.5366%20171.129%2077.6966%20170.828%2089.7659C170.516%20101.835%20170.9%20110.995%20166.356%20115.227C162.124%20119.771%20152.985%20119.374%20140.905%20119.689C138.873%20119.739%20136.924%20119.771%20135.071%20119.811C119.313%20118.697%20106.337%20112.318%20106.337%2089.7659C106.212%2084.6699%20106.233%2080.1792%20105.807%2076.5206C105.367%2072.8726%20104.492%2070.0379%20102.575%2068.2566C99.0013%2064.4112%2091.2573%2064.7446%2081.0653%2064.4832C70.86%2064.7446%2063.1186%2064.4112%2059.5533%2068.2566C55.708%2071.8299%2056.0306%2079.5632%2055.7693%2089.7659C56.0306%2099.9686%2055.708%20107.702%2059.5533%20111.278C63.1186%20115.113%2070.86%20114.79%2081.0653%20115.049C103.617%20115.049%20109.996%20128.035%20111.1%20143.803C111.068%20145.659%20111.028%20147.587%20110.975%20149.619C111.121%20154.987%20111.121%20159.79%20111.476%20163.835C111.663%20165.95%20111.945%20167.857%20112.404%20169.534C112.412%20169.555%20112.412%20169.566%20112.423%20169.598C112.465%20169.734%20112.497%20169.867%20112.537%20170.003C113.164%20172.099%20114.092%20173.809%20115.447%20175.07C116.665%20176.371%20118.281%20177.278%20120.271%20177.905C120.364%20177.934%20120.46%20177.955%20120.564%20177.987C120.855%20178.081%20121.145%20178.153%20121.439%20178.238C121.46%20178.238%20121.471%20178.238%20121.479%20178.249C122.876%20178.582%20124.42%20178.822%20126.108%20178.987C126.327%20179.009%20126.545%20179.03%20126.764%20179.051C130.788%20179.395%20135.559%20179.395%20140.905%20179.529C152.975%20179.843%20162.124%20179.457%20166.356%20184.001C170.9%20188.233%20170.516%20197.371%20170.828%20209.451C171.129%20221.529%20170.743%20230.681%20175.287%20234.91C179.519%20239.454%20188.681%20239.07%20200.748%20239.371C206.127%20239.235%20210.921%20239.235%20214.975%20238.881C217.079%20238.694%20218.985%20238.403%20220.676%20237.955C220.695%20237.945%20220.705%20237.934%20220.727%20237.934C220.873%20237.891%20220.999%20237.859%20221.135%20237.819C223.228%20237.193%20224.937%20236.265%20226.209%20234.91C227.511%20233.691%20228.409%20232.065%20229.044%20230.097C229.065%20230.003%20229.095%20229.899%20229.127%20229.803V229.793C229.22%20229.513%20229.295%20229.222%20229.367%20228.918C229.367%20228.897%20229.377%20228.897%20229.377%20228.878C229.721%20227.481%20229.951%20225.937%20230.127%20224.249C230.137%20224.03%20230.169%20223.811%20230.191%20223.593C230.535%20219.571%20230.535%20214.798%20230.671%20209.451C230.972%20197.371%20230.585%20188.233%20235.129%20184.001C239.361%20179.457%20248.511%20179.843%20260.591%20179.529C272.66%20179.227%20281.82%20179.614%20286.052%20175.07C290.596%20170.838%20290.209%20161.689%20290.511%20149.619C290.209%20137.539%20290.596%20128.379%20286.052%20124.158Z'%20fill='%23FF356A'%3e%3c/path%3e%3cpath%20d='M112.405%2049.848C112.411%2049.8694%20112.416%2049.8827%20112.421%2049.904C112.461%2050.0427%20112.499%2050.1814%20112.539%2050.3147C113.171%2052.4134%20114.088%2054.1147%20115.448%2055.384C116.661%2056.6907%20118.283%2057.5894%20120.264%2058.2134C120.36%2058.24%20120.464%2058.2694%20120.555%2058.3014C120.56%2058.3067%20120.56%2058.3067%20120.565%2058.3067C120.848%2058.3947%20121.141%2058.4694%20121.443%2058.5467C121.453%2058.5467%20121.464%2058.552%20121.48%2058.5574C122.875%2058.896%20124.424%2059.1334%20126.112%2059.3014C126.325%2059.3227%20126.541%2059.3414%20126.763%2059.3627C130.789%2059.712%20135.56%2059.712%20140.904%2059.8454C152.973%2059.5387%20162.128%2059.928%20166.36%2055.384C170.907%2051.152%20170.515%2041.9947%20170.824%2029.9254C170.517%2017.8507%20170.907%208.69602%20166.363%204.46935C162.131%20-0.0746511%20152.973%200.309349%20140.904%201.52588e-05C128.829%200.309349%20119.675%20-0.0746511%20115.448%204.46935C110.904%208.69602%20111.288%2017.8507%20110.979%2029.9254C111.117%2035.3014%20111.117%2040.1014%20111.472%2044.144C111.661%2046.2614%20111.949%2048.1707%20112.405%2049.848Z'%20fill='%23FF6376'%3e%3c/path%3e%3c/g%3e%3c/svg%3e"),class:"w-4 h-4 my-0",alt:"Infographic"},null,8,o9),L("span",{class:Ae(["text-sm font-medium font-mono truncate",r.isDark?"text-gray-400":"text-gray-600"])},"Infographic",2)])),ce.$slots["header-center"]?(j(),G("div",a9,[Ut(ce.$slots,"header-center",{},void 0,!0)])):r.showModeToggle?(j(),G("div",{key:3,class:Ae(["flex items-center gap-x-1 rounded-md p-0.5",r.isDark?"bg-gray-700":"bg-gray-100"])},[L("button",{class:Ae(["px-2.5 py-1 text-xs rounded transition-colors",[s.value?r.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":r.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:ee[0]||(ee[0]=()=>w("preview")),onMouseenter:ee[1]||(ee[1]=pe=>g(pe,le(n)("common.preview")||"Preview")),onFocus:ee[2]||(ee[2]=pe=>g(pe,le(n)("common.preview")||"Preview")),onMouseleave:b,onBlur:b},[L("div",s9,[ee[21]||(ee[21]=L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),L("circle",{cx:"12",cy:"12",r:"3"})])],-1)),L("span",null,it(le(n)("common.preview")||"Preview"),1)])],34),L("button",{class:Ae(["px-2.5 py-1 text-xs rounded transition-colors",[s.value?r.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":r.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:ee[3]||(ee[3]=()=>w("source")),onMouseenter:ee[4]||(ee[4]=pe=>g(pe,le(n)("common.source")||"Source")),onFocus:ee[5]||(ee[5]=pe=>g(pe,le(n)("common.source")||"Source")),onMouseleave:b,onBlur:b},[L("div",l9,[ee[22]||(ee[22]=L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),L("span",null,it(le(n)("common.source")||"Source"),1)])],34)],2)):Qe("",!0),ce.$slots["header-right"]?(j(),G("div",c9,[Ut(ce.$slots,"header-right",{},void 0,!0)])):(j(),G("div",u9,[r.showCollapseButton?(j(),G("button",{key:0,class:Ae(re.value),"aria-pressed":o.value,onClick:ee[6]||(ee[6]=pe=>o.value=!o.value),onMouseenter:ee[7]||(ee[7]=pe=>g(pe,o.value?le(n)("common.expand")||"Expand":le(n)("common.collapse")||"Collapse")),onFocus:ee[8]||(ee[8]=pe=>g(pe,o.value?le(n)("common.expand")||"Expand":le(n)("common.collapse")||"Collapse")),onMouseleave:b,onBlur:b},[(j(),G("svg",{style:St({rotate:o.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...ee[23]||(ee[23]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,h9)):Qe("",!0),r.showCopyButton?(j(),G("button",{key:1,class:Ae(re.value),onClick:A,onMouseenter:ee[9]||(ee[9]=pe=>v(pe)),onFocus:ee[10]||(ee[10]=pe=>v(pe)),onMouseleave:b,onBlur:b},[i.value?(j(),G("svg",f9,[...ee[25]||(ee[25]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(j(),G("svg",d9,[...ee[24]||(ee[24]=[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),L("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],34)):Qe("",!0),r.showExportButton?(j(),G("button",{key:2,class:Ae(`${re.value} ${de.value?"opacity-50 cursor-not-allowed":""}`),disabled:de.value,onClick:T,onMouseenter:ee[11]||(ee[11]=pe=>g(pe,le(n)("common.export")||"Export")),onFocus:ee[12]||(ee[12]=pe=>g(pe,le(n)("common.export")||"Export")),onMouseleave:b,onBlur:b},[...ee[26]||(ee[26]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),L("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,p9)):Qe("",!0),r.showFullscreenButton?(j(),G("button",{key:3,class:Ae(`${re.value} ${de.value?"opacity-50 cursor-not-allowed":""}`),disabled:de.value,onClick:B,onMouseenter:ee[13]||(ee[13]=pe=>g(pe,c.value?le(n)("common.minimize")||"Minimize":le(n)("common.open")||"Open")),onFocus:ee[14]||(ee[14]=pe=>g(pe,c.value?le(n)("common.minimize")||"Minimize":le(n)("common.open")||"Open")),onMouseleave:b,onBlur:b},[c.value?(j(),G("svg",y9,[...ee[28]||(ee[28]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(j(),G("svg",g9,[...ee[27]||(ee[27]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,m9)):Qe("",!0)]))],2)):Qe("",!0),Dn(L("div",null,[s.value?(j(),G("div",{key:0,class:Ae(["p-4",r.isDark?"bg-gray-900":"bg-gray-50"])},[L("pre",{class:Ae(["text-sm font-mono whitespace-pre-wrap",r.isDark?"text-gray-300":"text-gray-700"])},it(C.value),3)],2)):(j(),G("div",b9,[r.showZoomControls?(j(),G("div",v9,[L("div",x9,[L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:E,onMouseenter:ee[15]||(ee[15]=pe=>g(pe,le(n)("common.zoomIn")||"Zoom in")),onFocus:ee[16]||(ee[16]=pe=>g(pe,le(n)("common.zoomIn")||"Zoom in")),onMouseleave:b,onBlur:b},[...ee[29]||(ee[29]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:I,onMouseenter:ee[17]||(ee[17]=pe=>g(pe,le(n)("common.zoomOut")||"Zoom out")),onFocus:ee[18]||(ee[18]=pe=>g(pe,le(n)("common.zoomOut")||"Zoom out")),onMouseleave:b,onBlur:b},[...ee[30]||(ee[30]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:W,onMouseenter:ee[19]||(ee[19]=pe=>g(pe,le(n)("common.resetZoom")||"Reset zoom")),onFocus:ee[20]||(ee[20]=pe=>g(pe,le(n)("common.resetZoom")||"Reset zoom")),onMouseleave:b,onBlur:b},it(Math.round(100*f.value))+"% ",35)])])):Qe("",!0),L("div",{class:Ae(["min-h-[360px] relative transition-all duration-100 overflow-hidden block",r.isDark?"bg-gray-900":"bg-gray-50"]),style:St({height:l.value}),onMousedown:F,onMousemove:D,onMouseup:R,onMouseleave:R,onTouchstartPassive:F,onTouchmovePassive:D,onTouchendPassive:R},[L("div",{class:Ae(["absolute inset-0 cursor-grab",{"cursor-grabbing":m.value}]),style:St(Ce.value)},[L("div",{ref_key:"infographicContainer",ref:a,class:"w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],38)]))],512),[[In,!o.value]]),(j(),ht(Js,{to:"body"},[L("div",w9,[tt(Pn,{name:"infographic-dialog",appear:""},{default:Zr(()=>[c.value?(j(),G("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:_u(_,["self"])},[L("div",{class:Ae(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",r.isDark?"bg-gray-900":"bg-white"])},[L("div",k9,[L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:E},[...ee[31]||(ee[31]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:I},[...ee[32]||(ee[32]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:W},it(Math.round(100*f.value))+"% ",3),L("button",{class:Ae(["inline-flex items-center justify-center p-2 rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:_},[...ee[33]||(ee[33]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),L("div",{ref_key:"modalContent",ref:u,class:Ae(["w-full h-full flex items-center justify-center p-4 overflow-hidden",{"cursor-grab":!m.value,"cursor-grabbing":m.value}]),onMousedown:F,onMousemove:D,onMouseup:R,onMouseleave:R,onTouchstartPassive:F,onTouchmovePassive:D,onTouchendPassive:R},null,34)],2)])):Qe("",!0)]),_:1})])]))],2))}}),[["__scopeId","data-v-811a9bef"]]);ps.install=e=>{e.component(ps.__name,ps)};const Gm=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"})),_9={};throw new Error('Could not resolve "stream-markdown" imported by "markstream-vue".');const C9=Object.freeze(Object.defineProperty({__proto__:null,default:_9},Symbol.toStringTag,{value:"Module"})),S9={};throw new Error('Could not resolve "@antv/infographic" imported by "markstream-vue".');const T9=Object.freeze(Object.defineProperty({__proto__:null,default:S9},Symbol.toStringTag,{value:"Module"}));export{Jh as $,Ne as A,nr as B,Dn as C,L9 as D,St as E,Ke as F,Js as G,ln as H,at as I,Qr as J,I9 as K,Ly as L,Jy as M,N9 as N,v4 as O,B4 as P,Zs as Q,io as R,aC as S,Pn as T,P9 as U,oC as V,eC as W,t5 as X,J9 as Y,n5 as Z,dt as _,L as a,tC as a0,rC as a1,Nr as a2,A9 as a3,X9 as a4,Vp as a5,Wi as a6,Au as a7,uC as a8,sC as a9,H9 as aA,cC as aB,E9 as aC,Tb as aD,k4 as aE,M9 as aF,N2 as aG,Pp as aH,i2 as aI,rr as aJ,D9 as aK,Sy as aL,U9 as aM,j9 as aN,G9 as aO,W9 as aP,lC as aa,Hp as ab,Z9 as ac,$n as ad,K9 as ae,Q9 as af,nn as ag,F9 as ah,O9 as ai,R9 as aj,Pi as ak,iC as al,Ob as am,b5 as an,V9 as ao,Fp as ap,Tu as aq,hC as ar,dC as as,mC as at,Yo as au,M4 as av,It as aw,$r as ax,Y9 as ay,q9 as az,tt as b,G as c,pp as d,fC as e,Ve as f,Qe as g,Vt as h,$9 as i,_u as j,a2 as k,Ut as l,Xr as m,ue as n,j as o,le as p,Ae as q,J as r,yh as s,it as t,nC as u,ht as v,Zr as w,Wr as x,pC as y,B9 as z};
|
|
957
|
+
`;return we.trim().startsWith("%%{")?we:Oe+we})(i.isDark?"dark":"light"),X=yield gt(()=>Be.render($,O),{timeoutMs:se.value.fullRender}),ie=X?.svg;if(b.value){const ae=p(b.value,ie);K.value||k.value||(Ye(),K.value=!0,ge.value={zoom:E.value,translateX:I.value,translateY:W.value,containerHeight:Se.value});const xe=i.isDark?"dark":"light";ae&&(M.value[xe]=ae),k.value&&(k.value=!1),he.value=!1,pe=0,me()}}catch(Be){const $=(function(X){const ie=typeof X=="string"?X:typeof X?.message=="string"?X.message:"";return typeof ie=="string"&&/timed out/i.test(ie)})(Be),O=pe+1;$&&O<=3?(pe=O,fe(Math.min(1200,600*O))):(pe=0,me(),console.error("Failed to render mermaid diagram:",Be),i.loading===!1&&wt(Be))}finally{yield at(),b.value&&(b.value.style.opacity="1"),V.value=!1,re.value=null}}),re.value):void console.warn("Mermaid container not ready")})}function Vi(){return Rt(this,null,function*(){var U,P;const ne=Date.now(),Be=++Z.value;Q&&Q.abort(),Q=new AbortController;const $=Q.signal,O=i.isDark?"dark":"light",X=B.value,ie=X.replace(/\s+/g,"");if(!X.trim())return b.value&&d(b.value),H.value=null,te.value="",void(he.value=!1);if(ie===te.value)return;try{const xe=yield(function(Oe,Me,Pe){return Rt(this,null,function*(){var We;try{if(yield _e(Oe,Me,Pe))return{fullOk:!0,prefixOk:!1}}catch(nt){if(nt?.name==="AbortError")throw nt}let Re=ve(Oe);if(Re&&Re.trim()&&Re!==Oe)try{try{const nt=yield Fm(Oe,Me,(We=Pe?.timeoutMs)!=null?We:se.value.worker);nt&&nt.trim()&&(Re=nt)}catch{}if(yield _e(Re,Me,Pe))return{fullOk:!1,prefixOk:!0,prefix:Re}}catch(nt){if(nt?.name==="AbortError")throw nt}return{fullOk:!1,prefixOk:!1}})})(X,O,{signal:$,timeoutMs:se.value.worker});if(xe.fullOk)return yield jn(),void(Z.value===Be&&(H.value=(P=(U=b.value)==null?void 0:U.innerHTML)!=null?P:null,te.value=ie,he.value=!1));const we=Ue&&ne<=Ue;if(xe.prefixOk&&xe.prefix&&oe()&&!we)return void(yield(function(Oe){return Rt(this,null,function*(){if(oe()&&(b.value||(yield at(),b.value))&&!V.value){V.value=!0;try{const Me=yield y();if(!Me)return;const Pe=`mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,We=i.isDark?"dark":"light",Re=ve(Oe),nt=q(Re&&Re.trim()?Re:Oe,We);b.value&&(b.value.style.opacity="0");const Ct=yield gt(()=>Me.render(Pe,nt),{timeoutMs:se.value.render}),Sr=Ct?.svg;b.value&&Sr&&(p(b.value,Sr),Ye())}catch{}finally{yield at(),b.value&&(b.value.style.opacity="1"),V.value=!1}}})})(xe.prefix))}catch(xe){if(xe?.name==="AbortError")return}if(Z.value!==Be||he.value)return;const ae=M.value[O];ae&&b.value&&p(b.value,ae)})}function yr(){Te&&(Te=!1,De=800,ft=!1,He&&(He.abort(),He=null),ke&&(globalThis.clearTimeout(ke),ke=null),Ee&&(Ie(Ee),Ee=null),Ue=Date.now())}function Wn(){if(yr(),Q){try{Q.abort()}catch{}Q=null}if(He){try{He.abort()}catch{}He=null}nu(),me(),pe=0}function Ro(U=800){Te&&(ut>=12?yr():(ke&&globalThis.clearTimeout(ke),ke=globalThis.setTimeout(()=>{Ee=be(()=>Rt(null,null,function*(){if(!Te)return;if(R.value||K.value)return void yr();const P=i.isDark?"dark":"light",ne=B.value;if(!ne.trim())return i.loading===!1?void yr():void Ro(De);if(ut++,ut>12)yr();else{He&&He.abort(),He=new AbortController;try{if((yield _e(ne,P,{signal:He.signal,timeoutMs:se.value.worker}))&&(yield jn(),K.value))return void yr()}catch{}De=Math.min(Math.floor(1.5*De),4e3),Ro(De)}}),{timeout:500})},U)))}function pi(){Te||R.value||K.value||(Te=!0,Ue=0,ft=!0,ut=0,Ro(500))}Ne(st,U=>{Fe.value&&A.value&&(A.value.style.transform=U.transform)},{immediate:!0}),Ne(()=>B.value,()=>{K.value=!1,M.value={},N(),!R.value&&s.value&&pi(),(function(){if(!R.value||!s.value)return;const U=B.value.length;U!==de.value&&(Ce.value=!0,de.value=U,ce&&clearTimeout(ce),ce=setTimeout(()=>{Ce.value&&R.value&&B.value.trim()&&(Ce.value=!1,fi("preview"))},500))})()}),Ne(()=>i.isDark,()=>Rt(null,null,function*(){if(!K.value||he.value)return;const U=i.isDark?"dark":"light",P=M.value[U];if(P)return void(b.value&&p(b.value,P));const ne={zoom:E.value,translateX:I.value,translateY:W.value,containerHeight:Se.value},Be=E.value!==1||I.value!==0||W.value!==0;k.value=!0,Be&&(E.value=1,I.value=0,W.value=0,yield at()),yield jn(),Be&&(yield at(),E.value=ne.zoom,I.value=ne.translateX,W.value=ne.translateY,Se.value=ne.containerHeight,ge.value=ne)})),Ne(()=>R.value,U=>Rt(null,null,function*(){if(U)yr(),K.value&&(ge.value={zoom:E.value,translateX:I.value,translateY:W.value,containerHeight:Se.value});else{if(he.value)return;const P=i.isDark?"dark":"light";if(K.value&&M.value[P])return yield at(),b.value&&p(b.value,M.value[P]),E.value=ge.value.zoom,I.value=ge.value.translateX,W.value=ge.value.translateY,void(Se.value=ge.value.containerHeight);if(yield at(),!s.value)return;yield Vi(),pi()}})),Ne(()=>i.loading,(U,P)=>Rt(null,null,function*(){if(P===!0&&U===!1){const ne=B.value.trim();if(!ne)return Wn();const Be=i.isDark?"dark":"light",$=ne.replace(/\s+/g,"");if(K.value&&$===te.value)return yield at(),b.value&&!b.value.querySelector("svg")&&M.value[Be]&&p(b.value,M.value[Be]),void Wn();try{yield _e(ne,Be,{timeoutMs:se.value.worker}),yield jn(),te.value=$,he.value=!1,Wn()}catch(O){Wn(),wt(O)}}})),Ne(g,U=>{$e&&$e.disconnect(),!U||K.value||k.value||($e=new ResizeObserver(P=>{P&&P.length>0&&!K.value&&!k.value&&no(()=>{Ye(P[0].contentRect.width)})}),$e.observe(U))},{immediate:!0}),Qr(()=>Rt(null,null,function*(){yield at(),z.value||(R.value=!s.value),S.value&&(N(),de.value=B.value.length)})),Ne(()=>s.value,U=>{z.value||(R.value=!U)}),Ne(()=>S.value,U=>{U&&(K.value||(N(),de.value=B.value.length),i.loading||K.value||N())},{immediate:!1}),_a(()=>{ce&&clearTimeout(ce),$e&&$e.disconnect(),Q&&(Q.abort(),Q=null),nu(),yr(),me()}),Ne(()=>x.value,U=>Rt(null,null,function*(){U?(yr(),Q&&Q.abort()):K.value||(yield at(),N(),R.value||pi())}),{immediate:!1});const Ui=ue(()=>i.isDark?"mermaid-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200":"mermaid-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700");return(U,P)=>(j(),G("div",{class:Ae(["my-4 rounded-lg border overflow-hidden shadow-sm",[i.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":i.loading}]])},[i.showHeader?(j(),G("div",{key:0,class:Ae(["mermaid-block-header flex justify-between items-center px-4 py-2.5 border-b",i.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[U.$slots["header-left"]?(j(),G("div",O_,[Ut(U.$slots,"header-left",{},void 0,!0)])):(j(),G("div",R_,[L("img",{src:le("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%3e%3cpath%20fill='none'%20stroke='%23ca9ee6'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M1.5%202.5c0%206%202.25%205.75%204%207%20.83.67%201.17%202%201%204h3c-.17-2%20.17-3.33%201-4%201.75-1.25%204-1%204-7C12%202.5%2010%203%208%207%206%203%204%202.5%201.5%202.5'%20/%3e%3c/svg%3e"),class:"w-4 h-4 my-0",alt:"Mermaid"},null,8,N_),L("span",{class:Ae(["text-sm font-medium font-mono truncate",i.isDark?"text-gray-400":"text-gray-600"])},"Mermaid",2)])),U.$slots["header-center"]?(j(),G("div",z_,[Ut(U.$slots,"header-center",{},void 0,!0)])):i.showModeToggle&&s.value?(j(),G("div",{key:3,class:Ae(["flex items-center gap-x-1 rounded-md p-0.5",i.isDark?"bg-gray-700":"bg-gray-100"])},[L("button",{class:Ae(["px-2.5 py-1 text-xs rounded transition-colors",[R.value?i.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":i.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:P[0]||(P[0]=()=>di("preview")),onMouseenter:P[1]||(P[1]=ne=>yt(ne,le(m)("common.preview")||"Preview")),onFocus:P[2]||(P[2]=ne=>yt(ne,le(m)("common.preview")||"Preview")),onMouseleave:Je,onBlur:Je},[L("div",P_,[P[21]||(P[21]=L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),L("circle",{cx:"12",cy:"12",r:"3"})])],-1)),L("span",null,it(le(m)("common.preview")||"Preview"),1)])],34),L("button",{class:Ae(["px-2.5 py-1 text-xs rounded transition-colors",[R.value?i.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":i.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:P[3]||(P[3]=()=>di("source")),onMouseenter:P[4]||(P[4]=ne=>yt(ne,le(m)("common.source")||"Source")),onFocus:P[5]||(P[5]=ne=>yt(ne,le(m)("common.source")||"Source")),onMouseleave:Je,onBlur:Je},[L("div",q_,[P[22]||(P[22]=L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),L("span",null,it(le(m)("common.source")||"Source"),1)])],34)],2)):Qe("",!0),U.$slots["header-right"]?(j(),G("div",H_,[Ut(U.$slots,"header-right",{},void 0,!0)])):(j(),G("div",j_,[i.showCollapseButton?(j(),G("button",{key:0,class:Ae(Ui.value),"aria-pressed":x.value,onClick:P[6]||(P[6]=ne=>x.value=!x.value),onMouseenter:P[7]||(P[7]=ne=>yt(ne,x.value?le(m)("common.expand")||"Expand":le(m)("common.collapse")||"Collapse")),onFocus:P[8]||(P[8]=ne=>yt(ne,x.value?le(m)("common.expand")||"Expand":le(m)("common.collapse")||"Collapse")),onMouseleave:Je,onBlur:Je},[(j(),G("svg",{style:St({rotate:x.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...P[23]||(P[23]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,W_)):Qe("",!0),i.showCopyButton?(j(),G("button",{key:1,class:Ae(Ui.value),onClick:Mt,onMouseenter:P[9]||(P[9]=ne=>Y(ne)),onFocus:P[10]||(P[10]=ne=>Y(ne)),onMouseleave:Je,onBlur:Je},[C.value?(j(),G("svg",U_,[...P[25]||(P[25]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(j(),G("svg",V_,[...P[24]||(P[24]=[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),L("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],34)):Qe("",!0),i.showExportButton&&s.value?(j(),G("button",{key:2,class:Ae(`${Ui.value} ${Le.value?"opacity-50 cursor-not-allowed":""}`),disabled:Le.value,onClick:Ht,onMouseenter:P[11]||(P[11]=ne=>yt(ne,le(m)("common.export")||"Export")),onFocus:P[12]||(P[12]=ne=>yt(ne,le(m)("common.export")||"Export")),onMouseleave:Je,onBlur:Je},[...P[26]||(P[26]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),L("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,G_)):Qe("",!0),i.showFullscreenButton&&s.value?(j(),G("button",{key:3,class:Ae(`${Ui.value} ${Le.value?"opacity-50 cursor-not-allowed":""}`),disabled:Le.value,onClick:Hn,onMouseenter:P[13]||(P[13]=ne=>yt(ne,Fe.value?le(m)("common.minimize")||"Minimize":le(m)("common.open")||"Open")),onFocus:P[14]||(P[14]=ne=>yt(ne,Fe.value?le(m)("common.minimize")||"Minimize":le(m)("common.open")||"Open")),onMouseleave:Je,onBlur:Je},[Fe.value?(j(),G("svg",K_,[...P[28]||(P[28]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(j(),G("svg",X_,[...P[27]||(P[27]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,Y_)):Qe("",!0)]))],2)):Qe("",!0),Dn(L("div",{ref_key:"modeContainerRef",ref:_},[R.value?(j(),G("div",{key:0,class:Ae(["p-4",i.isDark?"bg-gray-900":"bg-gray-50"])},[L("pre",{class:Ae(["text-sm font-mono whitespace-pre-wrap",i.isDark?"text-gray-300":"text-gray-700"])},it(B.value),3)],2)):(j(),G("div",Z_,[i.showZoomControls?(j(),G("div",Q_,[L("div",J_,[L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Tt,onMouseenter:P[15]||(P[15]=ne=>yt(ne,le(m)("common.zoomIn")||"Zoom in")),onFocus:P[16]||(P[16]=ne=>yt(ne,le(m)("common.zoomIn")||"Zoom in")),onMouseleave:Je,onBlur:Je},[...P[29]||(P[29]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:qt,onMouseenter:P[17]||(P[17]=ne=>yt(ne,le(m)("common.zoomOut")||"Zoom out")),onFocus:P[18]||(P[18]=ne=>yt(ne,le(m)("common.zoomOut")||"Zoom out")),onMouseleave:Je,onBlur:Je},[...P[30]||(P[30]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:vt,onMouseenter:P[19]||(P[19]=ne=>yt(ne,le(m)("common.resetZoom")||"Reset zoom")),onFocus:P[20]||(P[20]=ne=>yt(ne,le(m)("common.resetZoom")||"Reset zoom")),onMouseleave:Je,onBlur:Je},it(Math.round(100*E.value))+"% ",35)])])):Qe("",!0),L("div",Xr({ref_key:"mermaidContainer",ref:g,class:["min-h-[360px] relative transition-all duration-100 overflow-hidden block",i.isDark?"bg-gray-900":"bg-gray-50"],style:{height:Se.value}},vh(ye.value),{onMousedown:Ze,onMousemove:Yt,onMouseup:gr,onMouseleave:gr,onTouchstartPassive:Ze,onTouchmovePassive:Yt,onTouchendPassive:gr}),[L("div",{"data-mermaid-wrapper":"",class:Ae(["absolute inset-0 cursor-grab",{"cursor-grabbing":F.value}]),style:St(st.value)},[L("div",{ref_key:"mermaidContent",ref:b,class:"_mermaid w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],16),(j(),ht(Js,{to:"body"},[L("div",e9,[tt(Pn,{name:"mermaid-dialog",appear:""},{default:Zr(()=>[Fe.value?(j(),G("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:_u(Xe,["self"])},[L("div",{class:Ae(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",i.isDark?"bg-gray-900":"bg-white"])},[L("div",t9,[L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Tt},[...P[31]||(P[31]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:qt},[...P[32]||(P[32]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:vt},it(Math.round(100*E.value))+"% ",3),L("button",{class:Ae(["inline-flex items-center justify-center p-2 rounded transition-colors",[i.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Xe},[...P[33]||(P[33]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),L("div",Xr({ref_key:"modalContent",ref:v,class:"w-full h-full flex items-center justify-center p-4 overflow-hidden"},vh(ye.value,!0),{onMousedown:Ze,onMousemove:Yt,onMouseup:gr,onMouseleave:gr,onTouchstartPassive:Ze,onTouchmovePassive:Yt,onTouchendPassive:gr}),null,16)],2)])):Qe("",!0)]),_:1})])]))]))],512),[[In,!x.value]])],2))}}),[["__scopeId","data-v-2ff46cc8"]]);fs.install=e=>{e.component(fs.__name,fs)};const Vm=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"}));var Ja=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});const Um=()=>dt(()=>Promise.resolve().then(()=>A9),void 0,import.meta.url);let es=null,r9=Um;const n9={key:0},i9={key:1,class:"flex items-center gap-x-2 overflow-hidden"},o9=["src"],a9={key:2},s9={class:"flex items-center gap-x-1"},l9={class:"flex items-center gap-x-1"},c9={key:4},u9={key:5,class:"flex items-center gap-x-1"},h9=["aria-pressed"],d9={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},f9={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},p9=["disabled"],m9=["disabled"],g9={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},y9={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},b9={key:1,class:"relative"},v9={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},x9={class:"flex items-center gap-2 backdrop-blur rounded-lg"},w9={class:"markstream-vue"},k9={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},ps=rt(Ve({__name:"InfographicBlockNode",props:{node:{},maxHeight:{default:"500px"},loading:{type:Boolean,default:!0},isDark:{type:Boolean},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0}},emits:["copy","export","openModal"],setup(e,{emit:t}){const r=e,{t:n}=Io(),i=J(!1),o=J(!1),a=J(),s=J(!1),l=J("360px"),c=J(!1),u=J(),h=J(null),f=J(1),d=J(0),p=J(0),m=J(!1),y=J({x:0,y:0}),C=ue(()=>r.node.code);function x(ce){return!ce||ce.disabled}function g(ce,ee,pe="top"){if(x(ce.currentTarget))return;const be=ce,N=be?.clientX!=null&&be?.clientY!=null?{x:be.clientX,y:be.clientY}:void 0;On(ce.currentTarget,ee,pe,!1,N,r.isDark)}function b(){Sa()}function v(ce){if(x(ce.currentTarget))return;const ee=i.value?n("common.copied")||"Copied":n("common.copy")||"Copy",pe=ce,be=pe?.clientX!=null&&pe?.clientY!=null?{x:pe.clientX,y:pe.clientY}:void 0;On(ce.currentTarget,ee,"top",!1,be,r.isDark)}function A(){return Ja(this,null,function*(){try{const ce=C.value;typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(ce)),i.value=!0,setTimeout(()=>{i.value=!1},1e3)}catch(ce){console.error("Failed to copy:",ce)}})}function w(ce){s.value=ce==="source"}function T(){var ce;const ee=(ce=a.value)==null?void 0:ce.querySelector("svg");ee?(function(pe){Ja(this,null,function*(){try{const be=new XMLSerializer().serializeToString(pe),N=new Blob([be],{type:"image/svg+xml;charset=utf-8"}),me=URL.createObjectURL(N);if(typeof document<"u"){const fe=document.createElement("a");fe.href=me,fe.download=`infographic-${Date.now()}.svg`;try{document.body.appendChild(fe),fe.click(),document.body.removeChild(fe)}catch{}URL.revokeObjectURL(me)}}catch(be){console.error("Failed to export SVG:",be)}})})(ee):console.error("SVG element not found")}function S(ce){ce.key==="Escape"&&c.value&&_()}function _(){if(c.value=!1,u.value&&(u.value.innerHTML=""),h.value=null,typeof document<"u")try{document.body.style.overflow=""}catch{}if(typeof window<"u")try{window.removeEventListener("keydown",S)}catch{}}function B(){(function(){if(c.value=!0,typeof document<"u")try{document.body.style.overflow="hidden"}catch{}if(typeof window<"u")try{window.addEventListener("keydown",S)}catch{}at(()=>{if(a.value&&u.value){u.value.innerHTML="";const ce=document.createElement("div");ce.style.transition="transform 0.1s ease",ce.style.transformOrigin="center center",ce.style.width="100%",ce.style.height="100%",ce.style.display="flex",ce.style.alignItems="center",ce.style.justifyContent="center";const ee=a.value.cloneNode(!0);ee.classList.add("fullscreen"),ee.style.height="auto",ce.appendChild(ee),u.value.appendChild(ce),h.value=ce,ce.style.transform=`translate(${d.value}px, ${p.value}px) scale(${f.value})`}})})()}function E(){f.value<3&&(f.value+=.1)}function I(){f.value>.5&&(f.value-=.1)}function W(){f.value=1,d.value=0,p.value=0}function F(ce){m.value=!0,ce instanceof MouseEvent?y.value={x:ce.clientX-d.value,y:ce.clientY-p.value}:y.value={x:ce.touches[0].clientX-d.value,y:ce.touches[0].clientY-p.value}}function D(ce){if(!m.value)return;let ee,pe;ce instanceof MouseEvent?(ee=ce.clientX,pe=ce.clientY):(ee=ce.touches[0].clientX,pe=ce.touches[0].clientY),d.value=ee-y.value.x,p.value=pe-y.value.y}function R(){m.value=!1}let z=null;function V(){return Ja(this,null,function*(){var ce;if(a.value)try{const ee=yield(function(){return Ja(this,null,function*(){if(es)return es;const pe=r9;if(!pe)return null;let be;try{be=yield pe()}catch(me){throw pe===Um?new Error('Optional dependency "@antv/infographic" is not installed. Please install it to enable infographic diagrams.'):me}if(!be)return null;const N=be&&be.default?be.default:be;return es=typeof N=="function"&&N.prototype&&N.prototype.render?N:be.Infographic?be.Infographic:N&&N.Infographic?N.Infographic:N,es})})();if(!ee)return void console.warn("Infographic library failed to load.");z&&((ce=z.destroy)==null||ce.call(z),z=null),a.value.innerHTML="",z=new ee({container:a.value,width:"100%",height:"100%"}),z.render(C.value),at(()=>{if(a.value){const pe=a.value.scrollHeight;pe>0&&(l.value=`${Math.min(pe,800)}px`)}})}catch(ee){console.error("Failed to render infographic:",ee),a.value&&(a.value.innerHTML=`<div class="text-red-500 p-4">Failed to render infographic: ${ee instanceof Error?ee.message:"Unknown error"}</div>`)}})}Ne(()=>C.value,()=>{s.value||o.value||at(()=>{V()})}),Ne(()=>s.value,ce=>{ce||o.value||at(()=>{V()})}),Ne(()=>o.value,ce=>{ce||s.value||at(()=>{V()})}),Qr(()=>{s.value||o.value||at(()=>{V()})}),nr(()=>{var ce;if(z&&((ce=z.destroy)==null||ce.call(z),z=null),typeof window<"u")try{window.removeEventListener("keydown",S)}catch{}});const re=ue(()=>r.isDark?"infographic-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200":"infographic-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700"),de=ue(()=>s.value||o.value),Ce=ue(()=>({transform:`translate(${d.value}px, ${p.value}px) scale(${f.value})`}));return Ne(Ce,ce=>{c.value&&h.value&&(h.value.style.transform=ce.transform)}),(ce,ee)=>(j(),G("div",{class:Ae(["my-4 rounded-lg border overflow-hidden shadow-sm",[r.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":r.loading}]])},[r.showHeader?(j(),G("div",{key:0,class:Ae(["infographic-block-header flex justify-between items-center px-4 py-2.5 border-b",r.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[ce.$slots["header-left"]?(j(),G("div",n9,[Ut(ce.$slots,"header-left",{},void 0,!0)])):(j(),G("div",i9,[L("img",{src:le("data:image/svg+xml,%3csvg%20width='15.52'%20height='16'%20viewBox='0%200%20291%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='M140.904%20239.376C128.83%20239.683%20119.675%20239.299%20115.448%20243.843C110.902%20248.07%20111.288%20257.227%20110.979%20269.302C111.118%20274.675%20111.118%20279.478%20111.472%20283.52C111.662%20285.638%20111.95%20287.547%20112.406%20289.224C112.411%20289.243%20112.416%20289.259%20112.422%20289.28C112.462%20289.419%20112.496%20289.558%20112.539%20289.691C113.168%20291.787%20114.088%20293.491%20115.446%20294.758C116.662%20296.064%20118.283%20296.963%20120.264%20297.59C120.36%20297.614%20120.464%20297.646%20120.555%20297.675C120.56%20297.68%20120.56%20297.68%20120.566%20297.68C120.848%20297.768%20121.142%20297.846%20121.443%20297.923C121.454%20297.923%20121.464%20297.928%20121.478%20297.934C122.875%20298.272%20124.424%20298.507%20126.11%20298.678C126.326%20298.696%20126.542%20298.718%20126.763%20298.739C130.79%20299.086%20135.558%20299.088%20140.904%20299.222C152.974%20298.912%20162.128%20299.302%20166.36%20294.758C170.904%20290.526%20170.515%20281.371%20170.824%20269.302C170.515%20257.227%20170.907%20248.07%20166.36%20243.843C162.131%20239.299%20152.974%20239.683%20140.904%20239.376Z'%20fill='%23FF6376'%3e%3c/path%3e%3cpath%20d='M21.2155%20128.398C12.6555%20128.616%206.16484%20128.339%203.16751%20131.56C-0.0538222%20134.56%200.218178%20141.054%20-0.000488281%20149.608C0.218178%20158.168%20-0.0538222%20164.659%203.16751%20167.656C6.16484%20170.878%2012.6555%20170.606%2021.2155%20170.824C25.0262%20170.726%2028.4288%20170.726%2031.2955%20170.475C32.7968%20170.342%2034.1488%20170.136%2035.3382%20169.814C35.3542%20169.811%2035.3648%20169.806%2035.3782%20169.803C35.4768%20169.774%2035.5755%20169.747%2035.6688%20169.718C37.1568%20169.272%2038.3648%20168.622%2039.2635%20167.656C40.1915%20166.795%2040.8262%20165.646%2041.2715%20164.243C41.2875%20164.174%2041.3115%20164.102%2041.3328%20164.035C41.3328%20164.035%2041.3355%20164.032%2041.3355%20164.027C41.3968%20163.827%2041.4529%20163.622%2041.5062%20163.406C41.5062%20163.398%2041.5115%20163.392%2041.5142%20163.382C41.7542%20162.392%2041.9222%20161.294%2042.0422%20160.096C42.0555%20159.944%2042.0715%20159.792%2042.0848%20159.635C42.3328%20156.779%2042.3328%20153.398%2042.4262%20149.608C42.2075%20141.054%2042.4848%20134.56%2039.2635%20131.56C36.2635%20128.339%2029.7728%20128.616%2021.2155%20128.398Z'%20fill='%23FFCCCC'%3e%3c/path%3e%3cpath%20d='M81.0595%20184.171C70.8568%20184.433%2063.1208%20184.102%2059.5475%20187.942C55.7075%20191.518%2056.0328%20199.254%2055.7742%20209.454C56.0328%20219.657%2055.7075%20227.393%2059.5475%20230.963C63.1208%20234.803%2070.8568%20234.478%2081.0595%20234.739C85.6008%20234.622%2089.6595%20234.622%2093.0728%20234.323C94.8648%20234.163%2096.4755%20233.921%2097.8942%20233.534C97.9102%20233.529%2097.9235%20233.526%2097.9422%20233.521C98.0568%20233.486%2098.1742%20233.457%2098.2888%20233.422C100.06%20232.889%20101.5%20232.113%20102.569%20230.963C103.676%20229.937%20104.433%20228.566%20104.964%20226.894C104.985%20226.811%20105.012%20226.726%20105.036%20226.646C105.041%20226.643%20105.041%20226.643%20105.041%20226.638C105.116%20226.401%20105.18%20226.153%20105.244%20225.897C105.244%20225.889%20105.249%20225.881%20105.254%20225.867C105.54%20224.689%20105.74%20223.379%20105.881%20221.953C105.9%20221.771%20105.916%20221.59%20105.934%20221.403C106.228%20218.001%20106.228%20213.969%20106.342%20209.454C106.081%20199.254%20106.412%20191.518%20102.572%20187.942C98.9955%20184.102%2091.2568%20184.433%2081.0595%20184.171Z'%20fill='%23FF939F'%3e%3c/path%3e%3cpath%20d='M260.591%20151.87C215.652%20151.87%20203.02%20164.523%20203.02%20209.462H198.476C198.476%20164.523%20185.836%20151.881%20140.895%20151.881V147.337C185.836%20147.337%20198.487%20134.705%20198.487%2089.7659H203.02C203.02%20134.705%20215.652%20147.337%20260.591%20147.337V151.87ZM286.052%20124.158C281.82%20119.614%20272.66%20120.001%20260.591%20119.689C248.521%20119.385%20239.361%20119.771%20235.129%20115.227C230.585%20110.995%20230.983%20101.846%20230.671%2089.7659C230.513%2083.7312%20230.535%2078.4272%20230.023%2074.1019C229.513%2069.7659%20228.481%2066.4219%20226.209%2064.3046C221.967%2059.7606%20212.817%2060.1472%20200.748%2059.8459C188.681%2060.1472%20179.519%2059.7606%20175.287%2064.3046C170.753%2068.5366%20171.129%2077.6966%20170.828%2089.7659C170.516%20101.835%20170.9%20110.995%20166.356%20115.227C162.124%20119.771%20152.985%20119.374%20140.905%20119.689C138.873%20119.739%20136.924%20119.771%20135.071%20119.811C119.313%20118.697%20106.337%20112.318%20106.337%2089.7659C106.212%2084.6699%20106.233%2080.1792%20105.807%2076.5206C105.367%2072.8726%20104.492%2070.0379%20102.575%2068.2566C99.0013%2064.4112%2091.2573%2064.7446%2081.0653%2064.4832C70.86%2064.7446%2063.1186%2064.4112%2059.5533%2068.2566C55.708%2071.8299%2056.0306%2079.5632%2055.7693%2089.7659C56.0306%2099.9686%2055.708%20107.702%2059.5533%20111.278C63.1186%20115.113%2070.86%20114.79%2081.0653%20115.049C103.617%20115.049%20109.996%20128.035%20111.1%20143.803C111.068%20145.659%20111.028%20147.587%20110.975%20149.619C111.121%20154.987%20111.121%20159.79%20111.476%20163.835C111.663%20165.95%20111.945%20167.857%20112.404%20169.534C112.412%20169.555%20112.412%20169.566%20112.423%20169.598C112.465%20169.734%20112.497%20169.867%20112.537%20170.003C113.164%20172.099%20114.092%20173.809%20115.447%20175.07C116.665%20176.371%20118.281%20177.278%20120.271%20177.905C120.364%20177.934%20120.46%20177.955%20120.564%20177.987C120.855%20178.081%20121.145%20178.153%20121.439%20178.238C121.46%20178.238%20121.471%20178.238%20121.479%20178.249C122.876%20178.582%20124.42%20178.822%20126.108%20178.987C126.327%20179.009%20126.545%20179.03%20126.764%20179.051C130.788%20179.395%20135.559%20179.395%20140.905%20179.529C152.975%20179.843%20162.124%20179.457%20166.356%20184.001C170.9%20188.233%20170.516%20197.371%20170.828%20209.451C171.129%20221.529%20170.743%20230.681%20175.287%20234.91C179.519%20239.454%20188.681%20239.07%20200.748%20239.371C206.127%20239.235%20210.921%20239.235%20214.975%20238.881C217.079%20238.694%20218.985%20238.403%20220.676%20237.955C220.695%20237.945%20220.705%20237.934%20220.727%20237.934C220.873%20237.891%20220.999%20237.859%20221.135%20237.819C223.228%20237.193%20224.937%20236.265%20226.209%20234.91C227.511%20233.691%20228.409%20232.065%20229.044%20230.097C229.065%20230.003%20229.095%20229.899%20229.127%20229.803V229.793C229.22%20229.513%20229.295%20229.222%20229.367%20228.918C229.367%20228.897%20229.377%20228.897%20229.377%20228.878C229.721%20227.481%20229.951%20225.937%20230.127%20224.249C230.137%20224.03%20230.169%20223.811%20230.191%20223.593C230.535%20219.571%20230.535%20214.798%20230.671%20209.451C230.972%20197.371%20230.585%20188.233%20235.129%20184.001C239.361%20179.457%20248.511%20179.843%20260.591%20179.529C272.66%20179.227%20281.82%20179.614%20286.052%20175.07C290.596%20170.838%20290.209%20161.689%20290.511%20149.619C290.209%20137.539%20290.596%20128.379%20286.052%20124.158Z'%20fill='%23FF356A'%3e%3c/path%3e%3cpath%20d='M112.405%2049.848C112.411%2049.8694%20112.416%2049.8827%20112.421%2049.904C112.461%2050.0427%20112.499%2050.1814%20112.539%2050.3147C113.171%2052.4134%20114.088%2054.1147%20115.448%2055.384C116.661%2056.6907%20118.283%2057.5894%20120.264%2058.2134C120.36%2058.24%20120.464%2058.2694%20120.555%2058.3014C120.56%2058.3067%20120.56%2058.3067%20120.565%2058.3067C120.848%2058.3947%20121.141%2058.4694%20121.443%2058.5467C121.453%2058.5467%20121.464%2058.552%20121.48%2058.5574C122.875%2058.896%20124.424%2059.1334%20126.112%2059.3014C126.325%2059.3227%20126.541%2059.3414%20126.763%2059.3627C130.789%2059.712%20135.56%2059.712%20140.904%2059.8454C152.973%2059.5387%20162.128%2059.928%20166.36%2055.384C170.907%2051.152%20170.515%2041.9947%20170.824%2029.9254C170.517%2017.8507%20170.907%208.69602%20166.363%204.46935C162.131%20-0.0746511%20152.973%200.309349%20140.904%201.52588e-05C128.829%200.309349%20119.675%20-0.0746511%20115.448%204.46935C110.904%208.69602%20111.288%2017.8507%20110.979%2029.9254C111.117%2035.3014%20111.117%2040.1014%20111.472%2044.144C111.661%2046.2614%20111.949%2048.1707%20112.405%2049.848Z'%20fill='%23FF6376'%3e%3c/path%3e%3c/g%3e%3c/svg%3e"),class:"w-4 h-4 my-0",alt:"Infographic"},null,8,o9),L("span",{class:Ae(["text-sm font-medium font-mono truncate",r.isDark?"text-gray-400":"text-gray-600"])},"Infographic",2)])),ce.$slots["header-center"]?(j(),G("div",a9,[Ut(ce.$slots,"header-center",{},void 0,!0)])):r.showModeToggle?(j(),G("div",{key:3,class:Ae(["flex items-center gap-x-1 rounded-md p-0.5",r.isDark?"bg-gray-700":"bg-gray-100"])},[L("button",{class:Ae(["px-2.5 py-1 text-xs rounded transition-colors",[s.value?r.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":r.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:ee[0]||(ee[0]=()=>w("preview")),onMouseenter:ee[1]||(ee[1]=pe=>g(pe,le(n)("common.preview")||"Preview")),onFocus:ee[2]||(ee[2]=pe=>g(pe,le(n)("common.preview")||"Preview")),onMouseleave:b,onBlur:b},[L("div",s9,[ee[21]||(ee[21]=L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),L("circle",{cx:"12",cy:"12",r:"3"})])],-1)),L("span",null,it(le(n)("common.preview")||"Preview"),1)])],34),L("button",{class:Ae(["px-2.5 py-1 text-xs rounded transition-colors",[s.value?r.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":r.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:ee[3]||(ee[3]=()=>w("source")),onMouseenter:ee[4]||(ee[4]=pe=>g(pe,le(n)("common.source")||"Source")),onFocus:ee[5]||(ee[5]=pe=>g(pe,le(n)("common.source")||"Source")),onMouseleave:b,onBlur:b},[L("div",l9,[ee[22]||(ee[22]=L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),L("span",null,it(le(n)("common.source")||"Source"),1)])],34)],2)):Qe("",!0),ce.$slots["header-right"]?(j(),G("div",c9,[Ut(ce.$slots,"header-right",{},void 0,!0)])):(j(),G("div",u9,[r.showCollapseButton?(j(),G("button",{key:0,class:Ae(re.value),"aria-pressed":o.value,onClick:ee[6]||(ee[6]=pe=>o.value=!o.value),onMouseenter:ee[7]||(ee[7]=pe=>g(pe,o.value?le(n)("common.expand")||"Expand":le(n)("common.collapse")||"Collapse")),onFocus:ee[8]||(ee[8]=pe=>g(pe,o.value?le(n)("common.expand")||"Expand":le(n)("common.collapse")||"Collapse")),onMouseleave:b,onBlur:b},[(j(),G("svg",{style:St({rotate:o.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...ee[23]||(ee[23]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,h9)):Qe("",!0),r.showCopyButton?(j(),G("button",{key:1,class:Ae(re.value),onClick:A,onMouseenter:ee[9]||(ee[9]=pe=>v(pe)),onFocus:ee[10]||(ee[10]=pe=>v(pe)),onMouseleave:b,onBlur:b},[i.value?(j(),G("svg",f9,[...ee[25]||(ee[25]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(j(),G("svg",d9,[...ee[24]||(ee[24]=[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),L("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],34)):Qe("",!0),r.showExportButton?(j(),G("button",{key:2,class:Ae(`${re.value} ${de.value?"opacity-50 cursor-not-allowed":""}`),disabled:de.value,onClick:T,onMouseenter:ee[11]||(ee[11]=pe=>g(pe,le(n)("common.export")||"Export")),onFocus:ee[12]||(ee[12]=pe=>g(pe,le(n)("common.export")||"Export")),onMouseleave:b,onBlur:b},[...ee[26]||(ee[26]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),L("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,p9)):Qe("",!0),r.showFullscreenButton?(j(),G("button",{key:3,class:Ae(`${re.value} ${de.value?"opacity-50 cursor-not-allowed":""}`),disabled:de.value,onClick:B,onMouseenter:ee[13]||(ee[13]=pe=>g(pe,c.value?le(n)("common.minimize")||"Minimize":le(n)("common.open")||"Open")),onFocus:ee[14]||(ee[14]=pe=>g(pe,c.value?le(n)("common.minimize")||"Minimize":le(n)("common.open")||"Open")),onMouseleave:b,onBlur:b},[c.value?(j(),G("svg",y9,[...ee[28]||(ee[28]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(j(),G("svg",g9,[...ee[27]||(ee[27]=[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,m9)):Qe("",!0)]))],2)):Qe("",!0),Dn(L("div",null,[s.value?(j(),G("div",{key:0,class:Ae(["p-4",r.isDark?"bg-gray-900":"bg-gray-50"])},[L("pre",{class:Ae(["text-sm font-mono whitespace-pre-wrap",r.isDark?"text-gray-300":"text-gray-700"])},it(C.value),3)],2)):(j(),G("div",b9,[r.showZoomControls?(j(),G("div",v9,[L("div",x9,[L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:E,onMouseenter:ee[15]||(ee[15]=pe=>g(pe,le(n)("common.zoomIn")||"Zoom in")),onFocus:ee[16]||(ee[16]=pe=>g(pe,le(n)("common.zoomIn")||"Zoom in")),onMouseleave:b,onBlur:b},[...ee[29]||(ee[29]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:I,onMouseenter:ee[17]||(ee[17]=pe=>g(pe,le(n)("common.zoomOut")||"Zoom out")),onFocus:ee[18]||(ee[18]=pe=>g(pe,le(n)("common.zoomOut")||"Zoom out")),onMouseleave:b,onBlur:b},[...ee[30]||(ee[30]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:W,onMouseenter:ee[19]||(ee[19]=pe=>g(pe,le(n)("common.resetZoom")||"Reset zoom")),onFocus:ee[20]||(ee[20]=pe=>g(pe,le(n)("common.resetZoom")||"Reset zoom")),onMouseleave:b,onBlur:b},it(Math.round(100*f.value))+"% ",35)])])):Qe("",!0),L("div",{class:Ae(["min-h-[360px] relative transition-all duration-100 overflow-hidden block",r.isDark?"bg-gray-900":"bg-gray-50"]),style:St({height:l.value}),onMousedown:F,onMousemove:D,onMouseup:R,onMouseleave:R,onTouchstartPassive:F,onTouchmovePassive:D,onTouchendPassive:R},[L("div",{class:Ae(["absolute inset-0 cursor-grab",{"cursor-grabbing":m.value}]),style:St(Ce.value)},[L("div",{ref_key:"infographicContainer",ref:a,class:"w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],38)]))],512),[[In,!o.value]]),(j(),ht(Js,{to:"body"},[L("div",w9,[tt(Pn,{name:"infographic-dialog",appear:""},{default:Zr(()=>[c.value?(j(),G("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:_u(_,["self"])},[L("div",{class:Ae(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",r.isDark?"bg-gray-900":"bg-white"])},[L("div",k9,[L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:E},[...ee[31]||(ee[31]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:I},[...ee[32]||(ee[32]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[L("circle",{cx:"11",cy:"11",r:"8"}),L("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),L("button",{class:Ae(["p-2 text-xs rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:W},it(Math.round(100*f.value))+"% ",3),L("button",{class:Ae(["inline-flex items-center justify-center p-2 rounded transition-colors",[r.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:_},[...ee[33]||(ee[33]=[L("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[L("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),L("div",{ref_key:"modalContent",ref:u,class:Ae(["w-full h-full flex items-center justify-center p-4 overflow-hidden",{"cursor-grab":!m.value,"cursor-grabbing":m.value}]),onMousedown:F,onMousemove:D,onMouseup:R,onMouseleave:R,onTouchstartPassive:F,onTouchmovePassive:D,onTouchendPassive:R},null,34)],2)])):Qe("",!0)]),_:1})])]))],2))}}),[["__scopeId","data-v-811a9bef"]]);ps.install=e=>{e.component(ps.__name,ps)};const Gm=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"})),_9={};throw new Error('Could not resolve "stream-monaco" imported by "markstream-vue".');const C9=Object.freeze(Object.defineProperty({__proto__:null,default:_9},Symbol.toStringTag,{value:"Module"})),S9={};throw new Error('Could not resolve "stream-markdown" imported by "markstream-vue".');const T9=Object.freeze(Object.defineProperty({__proto__:null,default:S9},Symbol.toStringTag,{value:"Module"})),M9={};throw new Error('Could not resolve "@antv/infographic" imported by "markstream-vue".');const A9=Object.freeze(Object.defineProperty({__proto__:null,default:M9},Symbol.toStringTag,{value:"Module"}));export{Jh as $,Ne as A,nr as B,Dn as C,D9 as D,St as E,Ke as F,Js as G,ln as H,at as I,Qr as J,R9 as K,Ly as L,Jy as M,P9 as N,v4 as O,B4 as P,Zs as Q,io as R,lC as S,Pn as T,H9 as U,sC as V,rC as W,t5 as X,tC as Y,n5 as Z,dt as _,L as a,nC as a0,iC as a1,Nr as a2,B9 as a3,Z9 as a4,Vp as a5,Wi as a6,Au as a7,dC as a8,cC as a9,W9 as aA,hC as aB,L9 as aC,Tb as aD,k4 as aE,E9 as aF,N2 as aG,Pp as aH,i2 as aI,rr as aJ,I9 as aK,Sy as aL,Y9 as aM,V9 as aN,X9 as aO,U9 as aP,uC as aa,Hp as ab,J9 as ac,$n as ad,Q9 as ae,eC as af,nn as ag,O9 as ah,N9 as ai,z9 as aj,Pi as ak,aC as al,Ob as am,b5 as an,G9 as ao,Fp as ap,Tu as aq,fC as ar,pC as as,yC as at,Yo as au,M4 as av,It as aw,$r as ax,K9 as ay,j9 as az,tt as b,G as c,pp as d,mC as e,Ve as f,Qe as g,Vt as h,F9 as i,_u as j,a2 as k,Ut as l,Xr as m,ue as n,j as o,le as p,Ae as q,J as r,yh as s,it as t,oC as u,ht as v,Zr as w,Wr as x,gC as y,$9 as z};
|