spec-cat 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +15 -0
- package/.output/public/_nuxt/2EtD6e53.js +1 -0
- package/.output/public/_nuxt/2UxHyX5q.js +1 -0
- package/.output/public/_nuxt/3e1v2bzS.js +1 -0
- package/.output/public/_nuxt/4A_iFExJ.js +1 -0
- package/.output/public/_nuxt/5FxpIoe_.js +1 -0
- package/.output/public/_nuxt/5X7smno1.js +1 -0
- package/.output/public/_nuxt/5i3qLPDT.js +1 -0
- package/.output/public/_nuxt/83L43bj1.js +1 -0
- package/.output/public/_nuxt/85-TOEBH.js +1 -0
- package/.output/public/_nuxt/B0m2ddpp.js +1 -0
- package/.output/public/_nuxt/B1dDrJ26.js +1 -0
- package/.output/public/_nuxt/B1yitclQ.js +1 -0
- package/.output/public/_nuxt/B2wdmh_w.js +126 -0
- package/.output/public/_nuxt/B6aJPvgy.js +1 -0
- package/.output/public/_nuxt/B7c-h3xW.js +1 -0
- package/.output/public/_nuxt/B7mTdjB0.js +1 -0
- package/.output/public/_nuxt/B93PlW-d.js +1 -0
- package/.output/public/_nuxt/BBf5iR-q.js +1 -0
- package/.output/public/_nuxt/BEDo0Tqx.js +1 -0
- package/.output/public/_nuxt/BERRCDM3.js +1 -0
- package/.output/public/_nuxt/BETggiCN.js +1 -0
- package/.output/public/_nuxt/BEwlwnbL.js +1 -0
- package/.output/public/_nuxt/BFfxhgS-.js +1 -0
- package/.output/public/_nuxt/BGHnOYBU.js +1 -0
- package/.output/public/_nuxt/BGJmEYvX.js +1 -0
- package/.output/public/_nuxt/BH7IYjvW.js +1 -0
- package/.output/public/_nuxt/BIGW1oBm.js +1 -0
- package/.output/public/_nuxt/BJDFO7_C.js +1 -0
- package/.output/public/_nuxt/BLmx8bSh.js +1 -0
- package/.output/public/_nuxt/BLtJtn59.js +1 -0
- package/.output/public/_nuxt/BM1_JUlF.js +1 -0
- package/.output/public/_nuxt/BMWR74SV.js +1 -0
- package/.output/public/_nuxt/BPQ3VLAy.js +1 -0
- package/.output/public/_nuxt/BQ8w6xss.js +1 -0
- package/.output/public/_nuxt/BR5kRUq4.js +1 -0
- package/.output/public/_nuxt/BRHolxvo.js +1 -0
- package/.output/public/_nuxt/BRZ36xJF.js +1 -0
- package/.output/public/_nuxt/BTJTHyun.js +1 -0
- package/.output/public/_nuxt/BTifaqeh.js +1 -0
- package/.output/public/_nuxt/BUOk7wkI.js +1 -0
- package/.output/public/_nuxt/BUw7H-hv.js +1 -0
- package/.output/public/_nuxt/BV7otONQ.js +1 -0
- package/.output/public/_nuxt/BVQ-GDCI.js +1 -0
- package/.output/public/_nuxt/BWvSN4gD.js +1 -0
- package/.output/public/_nuxt/BXkSAIEj.js +1 -0
- package/.output/public/_nuxt/BYV0-3_D.js +1 -0
- package/.output/public/_nuxt/BYunw83y.js +1 -0
- package/.output/public/_nuxt/BZvkOJ9d.js +1 -0
- package/.output/public/_nuxt/B_m7g4N7.js +1 -0
- package/.output/public/_nuxt/Ba13S78F.js +1 -0
- package/.output/public/_nuxt/BcOcwvcX.js +1 -0
- package/.output/public/_nuxt/BcVCzyr7.js +1 -0
- package/.output/public/_nuxt/BdImnpbu.js +1 -0
- package/.output/public/_nuxt/BdnUsdx6.js +1 -0
- package/.output/public/_nuxt/BfHTSMKl.js +1 -0
- package/.output/public/_nuxt/BfjtVDDH.js +1 -0
- package/.output/public/_nuxt/BgDCqdQA.js +1 -0
- package/.output/public/_nuxt/BhOHFoWU.js +1 -0
- package/.output/public/_nuxt/BhRPY-oY.js +1 -0
- package/.output/public/_nuxt/Bhrxn6JZ.js +1 -0
- package/.output/public/_nuxt/BkioyH1T.js +1 -0
- package/.output/public/_nuxt/Bkuqu6BP.js +1 -0
- package/.output/public/_nuxt/BmXAJ9_W.js +1 -0
- package/.output/public/_nuxt/Bmn6On1c.js +1 -0
- package/.output/public/_nuxt/Bp3cYrEr.js +1 -0
- package/.output/public/_nuxt/Bp6g37R7.js +1 -0
- package/.output/public/_nuxt/BqTXFGrv.js +1 -0
- package/.output/public/_nuxt/BqYA7rlc.js +1 -0
- package/.output/public/_nuxt/Bqlz6CoK.js +1 -0
- package/.output/public/_nuxt/Br6cN0cg.js +1 -0
- package/.output/public/_nuxt/BrzmwbiE.js +1 -0
- package/.output/public/_nuxt/BsS91CYL.js +1 -0
- package/.output/public/_nuxt/BspZqrRM.js +1 -0
- package/.output/public/_nuxt/BtCnVYZw.js +1 -0
- package/.output/public/_nuxt/BtOb2qkB.js +1 -0
- package/.output/public/_nuxt/BthQWCQV.js +1 -0
- package/.output/public/_nuxt/BtqSS_iP.js +1 -0
- package/.output/public/_nuxt/BtvRca6l.js +1 -0
- package/.output/public/_nuxt/Buea-lGh.js +1 -0
- package/.output/public/_nuxt/Bv_4Rxtq.js +1 -0
- package/.output/public/_nuxt/BvosqTnx.js +1 -0
- package/.output/public/_nuxt/BvzEVeQv.js +1 -0
- package/.output/public/_nuxt/Bw305WKR.js +1 -0
- package/.output/public/_nuxt/BwcbSlWF.js +4 -0
- package/.output/public/_nuxt/BxgE0vQu.js +1 -0
- package/.output/public/_nuxt/BzJJZx-M.js +1 -0
- package/.output/public/_nuxt/BzTr9Aqm.js +1 -0
- package/.output/public/_nuxt/C-HG3fhB.js +1 -0
- package/.output/public/_nuxt/C-SQnVFl.js +1 -0
- package/.output/public/_nuxt/C-sUppwS.js +1 -0
- package/.output/public/_nuxt/C0HS_06l.js +1 -0
- package/.output/public/_nuxt/C0hk2d4L.js +1 -0
- package/.output/public/_nuxt/C151Ov-r.js +1 -0
- package/.output/public/_nuxt/C2t-YnRu.js +1 -0
- package/.output/public/_nuxt/C39BiMTA.js +1 -0
- package/.output/public/_nuxt/C3B-1QV4.js +1 -0
- package/.output/public/_nuxt/C3Wv6jpd.js +1 -0
- package/.output/public/_nuxt/C3mMm8J8.js +1 -0
- package/.output/public/_nuxt/C47S-Tmv.js +1 -0
- package/.output/public/_nuxt/C4EeE6gA.js +1 -0
- package/.output/public/_nuxt/C4IJs8-o.js +1 -0
- package/.output/public/_nuxt/C4gqWexZ.js +1 -0
- package/.output/public/_nuxt/C5YyOfLZ.js +1 -0
- package/.output/public/_nuxt/C5wk2twv.js +1 -0
- package/.output/public/_nuxt/C7zT0LnQ.js +1 -0
- package/.output/public/_nuxt/C8M2exoo.js +1 -0
- package/.output/public/_nuxt/C8lEn-DE.js +1 -0
- package/.output/public/_nuxt/C98Dy4si.js +1 -0
- package/.output/public/_nuxt/C9XAeP06.js +1 -0
- package/.output/public/_nuxt/C9dUb6Cb.js +1 -0
- package/.output/public/_nuxt/C9oPPf7i.js +1 -0
- package/.output/public/_nuxt/C9tS-k6U.js +1 -0
- package/.output/public/_nuxt/CDVJQ6XC.js +1 -0
- package/.output/public/_nuxt/CDx5xZoG.js +1 -0
- package/.output/public/_nuxt/CEL-wOlO.js +1 -0
- package/.output/public/_nuxt/CEu0bR-o.js +1 -0
- package/.output/public/_nuxt/CF10PKvl.js +1 -0
- package/.output/public/_nuxt/CFHQjOhq.js +1 -0
- package/.output/public/_nuxt/CG6Dc4jp.js +1 -0
- package/.output/public/_nuxt/CG8Ifv2g.js +1 -0
- package/.output/public/_nuxt/CGscLIrv.js +1 -0
- package/.output/public/_nuxt/CH1njM8p.js +1 -0
- package/.output/public/_nuxt/CHLpvVh8.js +1 -0
- package/.output/public/_nuxt/CHM0blh-.js +1 -0
- package/.output/public/_nuxt/CJc9bBzg.js +1 -0
- package/.output/public/_nuxt/CKIfxQSi.js +1 -0
- package/.output/public/_nuxt/CLZrNe3w.js +1 -0
- package/.output/public/_nuxt/CLxacb5B.js +1 -0
- package/.output/public/_nuxt/CMTm3GFP.js +1 -0
- package/.output/public/_nuxt/CMjwMIkn.js +1 -0
- package/.output/public/_nuxt/CO1LY3CK.js +1 -0
- package/.output/public/_nuxt/COTT6rNZ.js +1 -0
- package/.output/public/_nuxt/COcwbKMJ.js +1 -0
- package/.output/public/_nuxt/COkxafJQ.js +1 -0
- package/.output/public/_nuxt/COt5Ahok.js +1 -0
- package/.output/public/_nuxt/CQ8jqdy-.js +1 -0
- package/.output/public/_nuxt/CS3Unz2-.js +1 -0
- package/.output/public/_nuxt/CSXwinHm.js +1 -0
- package/.output/public/_nuxt/CTRr51gU.js +1 -0
- package/.output/public/_nuxt/CVO1_9PV.js +1 -0
- package/.output/public/_nuxt/CVdnzihN.js +1 -0
- package/.output/public/_nuxt/CW8IKDeL.js +1 -0
- package/.output/public/_nuxt/CXZktZb0.js +1 -0
- package/.output/public/_nuxt/CXtECtnM.js +1 -0
- package/.output/public/_nuxt/CYsAdtH9.js +1 -0
- package/.output/public/_nuxt/CZhp0h8q.js +1 -0
- package/.output/public/_nuxt/CafNBF8u.js +1 -0
- package/.output/public/_nuxt/CbFg5uaA.js +1 -0
- package/.output/public/_nuxt/CbfX1IO0.js +1 -0
- package/.output/public/_nuxt/CeAyd5Ju.js +1 -0
- package/.output/public/_nuxt/CeZK1NFH.js +1 -0
- package/.output/public/_nuxt/CenWIFCC.js +1 -0
- package/.output/public/_nuxt/CfQXZHmo.js +1 -0
- package/.output/public/_nuxt/Cg-RD9OK.js +1 -0
- package/.output/public/_nuxt/ChMvpjG-.js +1 -0
- package/.output/public/_nuxt/Cj5Yp3dK.js +1 -0
- package/.output/public/_nuxt/CjoLj4QM.js +1 -0
- package/.output/public/_nuxt/CkByrt1z.js +1 -0
- package/.output/public/_nuxt/CkXjmgJE.js +1 -0
- package/.output/public/_nuxt/CklMAg4u.js +1 -0
- package/.output/public/_nuxt/Cl0AqbOI.js +1 -0
- package/.output/public/_nuxt/Cm3UrAx6.js +1 -0
- package/.output/public/_nuxt/CmIQRyeF.js +1 -0
- package/.output/public/_nuxt/Cmh6b_Ma.js +1 -0
- package/.output/public/_nuxt/Cn7AkR1O.js +1 -0
- package/.output/public/_nuxt/CnnebwVN.js +1 -0
- package/.output/public/_nuxt/CnnmHF94.js +1 -0
- package/.output/public/_nuxt/CnsnAmq5.js +1 -0
- package/.output/public/_nuxt/Co6uUVPk.js +1 -0
- package/.output/public/_nuxt/CoDkCxhg.js +1 -0
- package/.output/public/_nuxt/Cp-IABpG.js +1 -0
- package/.output/public/_nuxt/CpOuai2O.js +1 -0
- package/.output/public/_nuxt/Cq5zzVJU.js +1 -0
- package/.output/public/_nuxt/CquLrc37.js +1 -0
- package/.output/public/_nuxt/CsfeWuGM.js +1 -0
- package/.output/public/_nuxt/Csfq5Kiy.js +1 -0
- package/.output/public/_nuxt/CuPHTKiy.js +1 -0
- package/.output/public/_nuxt/CufHLc7y.js +1 -0
- package/.output/public/_nuxt/Cuk6v7N8.js +1 -0
- package/.output/public/_nuxt/Cvjx9yec.js +1 -0
- package/.output/public/_nuxt/CwoSXNpI.js +1 -0
- package/.output/public/_nuxt/CxGSJlkm.js +1 -0
- package/.output/public/_nuxt/CxLEBnE3.js +1 -0
- package/.output/public/_nuxt/CxbxFI8M.js +1 -0
- package/.output/public/_nuxt/CyktbL80.js +1 -0
- package/.output/public/_nuxt/CylS5w8V.js +1 -0
- package/.output/public/_nuxt/CzTSHFRz.js +1 -0
- package/.output/public/_nuxt/D-2ljcwZ.js +1 -0
- package/.output/public/_nuxt/D0YGMca9.js +1 -0
- package/.output/public/_nuxt/D0r3Knsf.js +1 -0
- package/.output/public/_nuxt/D17OF-Vu.js +1 -0
- package/.output/public/_nuxt/D1j8_8rp.js +1 -0
- package/.output/public/_nuxt/D3lLCCz7.js +1 -0
- package/.output/public/_nuxt/D4_iv3hh.js +1 -0
- package/.output/public/_nuxt/D4h5O-jR.js +1 -0
- package/.output/public/_nuxt/D5-asLiD.js +1 -0
- package/.output/public/_nuxt/D53aC0YG.js +1 -0
- package/.output/public/_nuxt/D5KoaKCx.js +1 -0
- package/.output/public/_nuxt/D7o27uSR.js +1 -0
- package/.output/public/_nuxt/D7oLnXFd.js +1 -0
- package/.output/public/_nuxt/D82EKSYY.js +1 -0
- package/.output/public/_nuxt/D87Tk5Gz.js +1 -0
- package/.output/public/_nuxt/D8_7TLub.js +1 -0
- package/.output/public/_nuxt/D93ZcfNL.js +1 -0
- package/.output/public/_nuxt/D97Zzqfu.js +1 -0
- package/.output/public/_nuxt/DAi9KRSo.js +1 -0
- package/.output/public/_nuxt/DBab5Zcv.js +153 -0
- package/.output/public/_nuxt/DEthMvLe.js +1 -0
- package/.output/public/_nuxt/DFQXde-d.js +1 -0
- package/.output/public/_nuxt/DFWUc33u.js +1 -0
- package/.output/public/_nuxt/DFXneXwc.js +1 -0
- package/.output/public/_nuxt/DGP4VlC8.js +1 -0
- package/.output/public/_nuxt/DGztddWO.js +1 -0
- package/.output/public/_nuxt/DH5Ifo-i.js +1 -0
- package/.output/public/_nuxt/DHCkPAjA.js +1 -0
- package/.output/public/_nuxt/DHJKELXO.js +1 -0
- package/.output/public/_nuxt/DHQR4-dF.js +1 -0
- package/.output/public/_nuxt/DJjDtW9f.js +1 -0
- package/.output/public/_nuxt/DM8c43g1.js +1 -0
- package/.output/public/_nuxt/DMwsHuHA.js +1 -0
- package/.output/public/_nuxt/DMzUqQB5.js +1 -0
- package/.output/public/_nuxt/DPfMkruS.js +1 -0
- package/.output/public/_nuxt/DQwYQDb2.js +1 -0
- package/.output/public/_nuxt/DQyhUUbL.js +1 -0
- package/.output/public/_nuxt/DRg8JJMk.js +1 -0
- package/.output/public/_nuxt/DRw_LuNl.js +1 -0
- package/.output/public/_nuxt/DU1UobuO.js +1 -0
- package/.output/public/_nuxt/DUszq2jm.js +1 -0
- package/.output/public/_nuxt/DV7GczEv.js +1 -0
- package/.output/public/_nuxt/DVFEvuxE.js +1 -0
- package/.output/public/_nuxt/DVMEJ2y_.js +1 -0
- package/.output/public/_nuxt/DVxCFoDh.js +1 -0
- package/.output/public/_nuxt/DWedfzmr.js +1 -0
- package/.output/public/_nuxt/DWrx1Km3.js +1 -0
- package/.output/public/_nuxt/DXbdFlpD.js +1 -0
- package/.output/public/_nuxt/DXmwc3jG.js +1 -0
- package/.output/public/_nuxt/DXvB9xmW.js +1 -0
- package/.output/public/_nuxt/DYoxhk2S.js +1 -0
- package/.output/public/_nuxt/DZf3V79B.js +1 -0
- package/.output/public/_nuxt/DZu-aV2c.js +1 -0
- package/.output/public/_nuxt/DZxFcAj9.js +1 -0
- package/.output/public/_nuxt/D_Q5rh1f.js +1 -0
- package/.output/public/_nuxt/Da5cRb03.js +1 -0
- package/.output/public/_nuxt/DcaNXYhu.js +1 -0
- package/.output/public/_nuxt/Dd19v3D-.js +1 -0
- package/.output/public/_nuxt/DdkO51Og.js +1 -0
- package/.output/public/_nuxt/Ddv68eIx.js +1 -0
- package/.output/public/_nuxt/Des-eS-w.js +1 -0
- package/.output/public/_nuxt/Df6bDoY_.js +1 -0
- package/.output/public/_nuxt/Dg5xB15N.js +1 -0
- package/.output/public/_nuxt/DhmSosst.js +1 -0
- package/.output/public/_nuxt/DkFqJrB1.js +1 -0
- package/.output/public/_nuxt/DkwncUOv.js +1 -0
- package/.output/public/_nuxt/DlAUqK2U.js +1 -0
- package/.output/public/_nuxt/DnULxvSX.js +1 -0
- package/.output/public/_nuxt/Dpen1YoG.js +1 -0
- package/.output/public/_nuxt/Dph4kLrZ.js +1 -0
- package/.output/public/_nuxt/DqQDbK_p.js +1 -0
- package/.output/public/_nuxt/DqwNpetd.js +1 -0
- package/.output/public/_nuxt/DsOJ9woJ.js +1 -0
- package/.output/public/_nuxt/Dspwwk_N.js +1 -0
- package/.output/public/_nuxt/DsumFeuD.js +1 -0
- package/.output/public/_nuxt/Dv7Oe6Be.js +1 -0
- package/.output/public/_nuxt/Dx-B1_4e.js +1 -0
- package/.output/public/_nuxt/DxNHbxmM.js +1 -0
- package/.output/public/_nuxt/DxSwrfjg.js +1 -0
- package/.output/public/_nuxt/DyxjwDmM.js +1 -0
- package/.output/public/_nuxt/Dzze3sRP.js +1 -0
- package/.output/public/_nuxt/E3gJ1_iC.js +1 -0
- package/.output/public/_nuxt/GsRaNv29.js +1 -0
- package/.output/public/_nuxt/IF9eRakj.js +1 -0
- package/.output/public/_nuxt/IeuSbFQv.js +1 -0
- package/.output/public/_nuxt/KNuzSjk0.js +1 -0
- package/.output/public/_nuxt/L9t79GZl.js +1 -0
- package/.output/public/_nuxt/MzD3tlZU.js +1 -0
- package/.output/public/_nuxt/P80f7IUj.js +1 -0
- package/.output/public/_nuxt/Pmp26Uib.js +1 -0
- package/.output/public/_nuxt/QIJgUcNo.js +1 -0
- package/.output/public/_nuxt/RNghxpo_.js +1 -0
- package/.output/public/_nuxt/TsXTqZ29.js +1 -0
- package/.output/public/_nuxt/VCDPK7BO.js +1 -0
- package/.output/public/_nuxt/VOosw3JB.js +1 -0
- package/.output/public/_nuxt/W9tJ9s81.js +1 -0
- package/.output/public/_nuxt/YqXBG_HV.js +1 -0
- package/.output/public/_nuxt/Yzrsuije.js +1 -0
- package/.output/public/_nuxt/_ykCGR6B.js +1 -0
- package/.output/public/_nuxt/bCR0ucgS.js +1 -0
- package/.output/public/_nuxt/bN70gL4F.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/21578a05-1b7e-4847-a8ff-7480800ea4a6.json +1 -0
- package/.output/public/_nuxt/default.DcjOo57q.css +1 -0
- package/.output/public/_nuxt/dwOrl1Do.js +1 -0
- package/.output/public/_nuxt/entry.CFLOfmis.css +1 -0
- package/.output/public/_nuxt/error-404.DuOyHzDc.css +1 -0
- package/.output/public/_nuxt/error-500.MhEffcqa.css +1 -0
- package/.output/public/_nuxt/fKv21gyL.js +1 -0
- package/.output/public/_nuxt/fuZLfV_i.js +1 -0
- package/.output/public/_nuxt/g9-lgVsj.js +1 -0
- package/.output/public/_nuxt/gcz8RCvz.js +1 -0
- package/.output/public/_nuxt/hJgmCMqR.js +1 -0
- package/.output/public/_nuxt/hegEt444.js +1 -0
- package/.output/public/_nuxt/k_qm7-4y.js +1 -0
- package/.output/public/_nuxt/lXgVvXCa.js +1 -0
- package/.output/public/_nuxt/m17aaUwq.js +1 -0
- package/.output/public/_nuxt/mWjccvbQ.js +1 -0
- package/.output/public/_nuxt/mjskCLCv.js +1 -0
- package/.output/public/_nuxt/n2N0HUVH.js +1 -0
- package/.output/public/_nuxt/qdsjHGoJ.js +1 -0
- package/.output/public/_nuxt/rGO070M0.js +1 -0
- package/.output/public/_nuxt/u5AG7uiY.js +1 -0
- package/.output/public/_nuxt/uYugtg8r.js +1 -0
- package/.output/public/_nuxt/vGWfd6FD.js +1 -0
- package/.output/public/_nuxt/wDzz0qaB.js +1 -0
- package/.output/public/_nuxt/yv6CvBhz.js +1 -0
- package/.output/public/app-logo.svg +1 -0
- package/.output/server/chunks/_/chat.mjs +9 -0
- package/.output/server/chunks/_/chat.mjs.map +1 -0
- package/.output/server/chunks/_/claudeProvider.mjs +159 -0
- package/.output/server/chunks/_/claudeProvider.mjs.map +1 -0
- package/.output/server/chunks/_/codexProvider.mjs +757 -0
- package/.output/server/chunks/_/codexProvider.mjs.map +1 -0
- package/.output/server/chunks/_/error-500.mjs +19 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/git.mjs +707 -0
- package/.output/server/chunks/_/git.mjs.map +1 -0
- package/.output/server/chunks/_/git2.mjs +33 -0
- package/.output/server/chunks/_/git2.mjs.map +1 -0
- package/.output/server/chunks/_/providerProcessError.mjs +119 -0
- package/.output/server/chunks/_/providerProcessError.mjs.map +1 -0
- package/.output/server/chunks/_/validateWorktree.mjs +19 -0
- package/.output/server/chunks/_/validateWorktree.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +15584 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/_ws.mjs +575 -0
- package/.output/server/chunks/routes/_ws.mjs.map +1 -0
- package/.output/server/chunks/routes/api/ai/providers.get.mjs +34 -0
- package/.output/server/chunks/routes/api/ai/providers.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auto-mode/status.get.mjs +35 -0
- package/.output/server/chunks/routes/api/auto-mode/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auto-mode/toggle.post.mjs +45 -0
- package/.output/server/chunks/routes/api/auto-mode/toggle.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/compare.get.mjs +70 -0
- package/.output/server/chunks/routes/api/chat/compare.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/context.get.mjs +147 -0
- package/.output/server/chunks/routes/api/chat/context.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/finalize.post.mjs +173 -0
- package/.output/server/chunks/routes/api/chat/finalize.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/generate-commit-message.post.mjs +92 -0
- package/.output/server/chunks/routes/api/chat/generate-commit-message.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/preview-sync.post.mjs +59 -0
- package/.output/server/chunks/routes/api/chat/preview-sync.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/preview.delete.mjs +63 -0
- package/.output/server/chunks/routes/api/chat/preview.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/preview.post.mjs +91 -0
- package/.output/server/chunks/routes/api/chat/preview.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/rebase.post.mjs +109 -0
- package/.output/server/chunks/routes/api/chat/rebase.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/worktree-commit.post.mjs +69 -0
- package/.output/server/chunks/routes/api/chat/worktree-commit.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/worktree.delete.mjs +72 -0
- package/.output/server/chunks/routes/api/chat/worktree.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/worktree.post.mjs +99 -0
- package/.output/server/chunks/routes/api/chat/worktree.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat.post.mjs +217 -0
- package/.output/server/chunks/routes/api/chat.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations/_conversationId/archive.post.mjs +119 -0
- package/.output/server/chunks/routes/api/conversations/_conversationId/archive.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId/restore.post.mjs +125 -0
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId/restore.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId_.delete.mjs +56 -0
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations/archives.get.mjs +54 -0
- package/.output/server/chunks/routes/api/conversations/archives.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations.get.mjs +33 -0
- package/.output/server/chunks/routes/api/conversations.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations.post.mjs +45 -0
- package/.output/server/chunks/routes/api/conversations.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/cwd.get.mjs +34 -0
- package/.output/server/chunks/routes/api/cwd.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/branch-rename.post.mjs +91 -0
- package/.output/server/chunks/routes/api/git/branch-rename.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/branch.delete.mjs +108 -0
- package/.output/server/chunks/routes/api/git/branch.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/branches.get.mjs +115 -0
- package/.output/server/chunks/routes/api/git/branches.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/checkout.post.mjs +110 -0
- package/.output/server/chunks/routes/api/git/checkout.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/cherry-pick.post.mjs +79 -0
- package/.output/server/chunks/routes/api/git/cherry-pick.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/clean.post.mjs +65 -0
- package/.output/server/chunks/routes/api/git/clean.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/commit/_id_.get.mjs +63 -0
- package/.output/server/chunks/routes/api/git/commit/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/commit.post.mjs +95 -0
- package/.output/server/chunks/routes/api/git/commit.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/diff.get.mjs +83 -0
- package/.output/server/chunks/routes/api/git/diff.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/fetch.post.mjs +82 -0
- package/.output/server/chunks/routes/api/git/fetch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/file-diff.get.mjs +84 -0
- package/.output/server/chunks/routes/api/git/file-diff.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/graph.get.mjs +146 -0
- package/.output/server/chunks/routes/api/git/graph.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/log.get.mjs +166 -0
- package/.output/server/chunks/routes/api/git/log.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/merge-base.get.mjs +105 -0
- package/.output/server/chunks/routes/api/git/merge-base.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/merge.post.mjs +91 -0
- package/.output/server/chunks/routes/api/git/merge.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/pull.post.mjs +86 -0
- package/.output/server/chunks/routes/api/git/pull.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/push.post.mjs +91 -0
- package/.output/server/chunks/routes/api/git/push.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/rebase.post.mjs +82 -0
- package/.output/server/chunks/routes/api/git/rebase.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/remote.delete.mjs +70 -0
- package/.output/server/chunks/routes/api/git/remote.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/remote.post.mjs +76 -0
- package/.output/server/chunks/routes/api/git/remote.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/remote.put.mjs +79 -0
- package/.output/server/chunks/routes/api/git/remote.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/remotes.get.mjs +63 -0
- package/.output/server/chunks/routes/api/git/remotes.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/reset.post.mjs +83 -0
- package/.output/server/chunks/routes/api/git/reset.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/revert.post.mjs +76 -0
- package/.output/server/chunks/routes/api/git/revert.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/show.get.mjs +82 -0
- package/.output/server/chunks/routes/api/git/show.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stage.post.mjs +73 -0
- package/.output/server/chunks/routes/api/git/stage.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash-apply.post.mjs +74 -0
- package/.output/server/chunks/routes/api/git/stash-apply.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash-branch.post.mjs +80 -0
- package/.output/server/chunks/routes/api/git/stash-branch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash-drop.post.mjs +71 -0
- package/.output/server/chunks/routes/api/git/stash-drop.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash-pop.post.mjs +74 -0
- package/.output/server/chunks/routes/api/git/stash-pop.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash.get.mjs +62 -0
- package/.output/server/chunks/routes/api/git/stash.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash.post.mjs +71 -0
- package/.output/server/chunks/routes/api/git/stash.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/state.get.mjs +70 -0
- package/.output/server/chunks/routes/api/git/state.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/status.get.mjs +121 -0
- package/.output/server/chunks/routes/api/git/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/tag/_name_.get.mjs +70 -0
- package/.output/server/chunks/routes/api/git/tag/_name_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/tag-push.post.mjs +73 -0
- package/.output/server/chunks/routes/api/git/tag-push.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/tag.delete.mjs +76 -0
- package/.output/server/chunks/routes/api/git/tag.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/tag.post.mjs +87 -0
- package/.output/server/chunks/routes/api/git/tag.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/unstage.post.mjs +74 -0
- package/.output/server/chunks/routes/api/git/unstage.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get.mjs +41 -0
- package/.output/server/chunks/routes/api/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get2.mjs +168 -0
- package/.output/server/chunks/routes/api/index.get2.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.post.mjs +150 -0
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/abort.post.mjs +49 -0
- package/.output/server/chunks/routes/api/rebase/abort.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/ai-resolve.post.mjs +79 -0
- package/.output/server/chunks/routes/api/rebase/ai-resolve.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/conflicts.get.mjs +69 -0
- package/.output/server/chunks/routes/api/rebase/conflicts.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/continue-sync.post.mjs +76 -0
- package/.output/server/chunks/routes/api/rebase/continue-sync.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/continue.post.mjs +136 -0
- package/.output/server/chunks/routes/api/rebase/continue.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/resolve.put.mjs +52 -0
- package/.output/server/chunks/routes/api/rebase/resolve.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repository/status.get.mjs +132 -0
- package/.output/server/chunks/routes/api/repository/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/settings.get.mjs +54 -0
- package/.output/server/chunks/routes/api/settings.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/settings.post.mjs +49 -0
- package/.output/server/chunks/routes/api/settings.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/skills/_skillId/prompt.post.mjs +64 -0
- package/.output/server/chunks/routes/api/skills/_skillId/prompt.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.get.mjs +61 -0
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.put.mjs +65 -0
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/features.get.mjs +110 -0
- package/.output/server/chunks/routes/api/specs/features.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/reindex.post.mjs +43 -0
- package/.output/server/chunks/routes/api/specs/reindex.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/search.get.mjs +72 -0
- package/.output/server/chunks/routes/api/specs/search.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/status.get.mjs +32 -0
- package/.output/server/chunks/routes/api/specs/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/worktrees/_name/switch.post.mjs +77 -0
- package/.output/server/chunks/routes/api/worktrees/_name/switch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/worktrees/_name_.delete.mjs +99 -0
- package/.output/server/chunks/routes/api/worktrees/_name_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/auto-mode-ws.mjs +65 -0
- package/.output/server/chunks/routes/auto-mode-ws.mjs.map +1 -0
- package/.output/server/chunks/routes/git-watcher-ws.mjs +155 -0
- package/.output/server/chunks/routes/git-watcher-ws.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +417 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +26 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14582 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1868 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6770 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1732 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +879 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/chokidar/handler.js +632 -0
- package/.output/server/node_modules/chokidar/index.js +822 -0
- package/.output/server/node_modules/chokidar/package.json +63 -0
- package/.output/server/node_modules/devalue/index.js +4 -0
- package/.output/server/node_modules/devalue/package.json +37 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +6 -0
- package/.output/server/node_modules/devalue/src/parse.js +234 -0
- package/.output/server/node_modules/devalue/src/stringify.js +265 -0
- package/.output/server/node_modules/devalue/src/uneval.js +407 -0
- package/.output/server/node_modules/devalue/src/utils.js +118 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +266 -0
- package/.output/server/node_modules/hookable/package.json +52 -0
- package/.output/server/node_modules/readdirp/index.js +272 -0
- package/.output/server/node_modules/readdirp/package.json +66 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CGCfDSEL.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CYpwL2hc.mjs +194 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.ckV6dpEQ.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +105 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-node.js +105 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/.output/server/node_modules/yaml/dist/compose/composer.js +222 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/.output/server/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/.output/server/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/.output/server/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/.output/server/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/.output/server/node_modules/yaml/dist/doc/Document.js +337 -0
- package/.output/server/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/.output/server/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/.output/server/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/.output/server/node_modules/yaml/dist/doc/directives.js +178 -0
- package/.output/server/node_modules/yaml/dist/errors.js +62 -0
- package/.output/server/node_modules/yaml/dist/index.js +50 -0
- package/.output/server/node_modules/yaml/dist/log.js +19 -0
- package/.output/server/node_modules/yaml/dist/nodes/Alias.js +116 -0
- package/.output/server/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/.output/server/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/.output/server/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/.output/server/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/.output/server/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/.output/server/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/.output/server/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/.output/server/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/.output/server/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/.output/server/node_modules/yaml/dist/parse/cst.js +112 -0
- package/.output/server/node_modules/yaml/dist/parse/lexer.js +719 -0
- package/.output/server/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/.output/server/node_modules/yaml/dist/parse/parser.js +972 -0
- package/.output/server/node_modules/yaml/dist/public-api.js +107 -0
- package/.output/server/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/.output/server/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/.output/server/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/.output/server/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/.output/server/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/.output/server/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/.output/server/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/.output/server/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/.output/server/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/.output/server/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/.output/server/node_modules/yaml/dist/schema/tags.js +99 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/.output/server/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringify.js +131 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyCollection.js +145 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/.output/server/node_modules/yaml/dist/visit.js +236 -0
- package/.output/server/node_modules/yaml/package.json +97 -0
- package/.output/server/package.json +29 -0
- package/README.md +136 -0
- package/bin/spec-cat.js +80 -0
- package/package.json +82 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DxNHbxmM.js","./CnnebwVN.js","./wDzz0qaB.js","./DPfMkruS.js","./Cl0AqbOI.js","./2EtD6e53.js","./Cn7AkR1O.js","./BGJmEYvX.js","./CylS5w8V.js","./Cp-IABpG.js","./DxSwrfjg.js","./BPQ3VLAy.js","./CXtECtnM.js","./COt5Ahok.js","./5X7smno1.js","./DGP4VlC8.js","./BLtJtn59.js","./CquLrc37.js","./DVxCFoDh.js","./CO1LY3CK.js","./B6aJPvgy.js","./BYV0-3_D.js","./CxbxFI8M.js","./Bp3cYrEr.js","./CDVJQ6XC.js","./DZxFcAj9.js","./BIGW1oBm.js","./fKv21gyL.js","./Yzrsuije.js","./DZu-aV2c.js","./CpOuai2O.js","./CeZK1NFH.js","./CGscLIrv.js","./Bhrxn6JZ.js","./CmIQRyeF.js","./C9oPPf7i.js","./g9-lgVsj.js","./CnsnAmq5.js","./Buea-lGh.js","./CuPHTKiy.js","./Cvjx9yec.js","./B7c-h3xW.js","./BxgE0vQu.js","./BTifaqeh.js","./CenWIFCC.js","./DkwncUOv.js","./C5YyOfLZ.js","./CxGSJlkm.js","./D97Zzqfu.js","./CSXwinHm.js","./YqXBG_HV.js","./BR5kRUq4.js","./CLZrNe3w.js","./m17aaUwq.js","./CufHLc7y.js","./CYsAdtH9.js","./fuZLfV_i.js","./DWrx1Km3.js","./CzTSHFRz.js","./CXZktZb0.js","./Br6cN0cg.js","./W9tJ9s81.js","./Dspwwk_N.js","./DMwsHuHA.js","./CQ8jqdy-.js","./mjskCLCv.js","./83L43bj1.js","./B1dDrJ26.js","./TsXTqZ29.js","./Dph4kLrZ.js","./DhmSosst.js","./BzTr9Aqm.js","./DJjDtW9f.js","./BLmx8bSh.js","./BVQ-GDCI.js","./DsumFeuD.js","./COcwbKMJ.js","./DQwYQDb2.js","./D1j8_8rp.js","./CG8Ifv2g.js","./BqTXFGrv.js","./D3lLCCz7.js","./Cq5zzVJU.js","./Dzze3sRP.js","./BRZ36xJF.js","./BsS91CYL.js","./DM8c43g1.js","./BH7IYjvW.js","./DYoxhk2S.js","./CZhp0h8q.js","./CxLEBnE3.js","./Cm3UrAx6.js","./RNghxpo_.js","./DEthMvLe.js","./DqQDbK_p.js","./CW8IKDeL.js","./BEDo0Tqx.js","./yv6CvBhz.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a1 as c}from"./BwcbSlWF.js";let R=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function fi(t){return Xt(t)}function Xt(t){return Array.isArray(t)?gi(t):t instanceof RegExp?t:typeof t=="object"?_i(t):t}function gi(t){let e=[];for(let r=0,n=t.length;r<n;r++)e[r]=Xt(t[r]);return e}function _i(t){let e={};for(let r in t)e[r]=Xt(t[r]);return e}function Zr(t,...e){return e.forEach(r=>{for(let n in r)t[n]=r[n]}),t}function en(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?en(t.substring(0,t.length-1)):t.substr(~e+1)}var ft=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ge=class{static hasCaptures(t){return t===null?!1:(ft.lastIndex=0,ft.test(t))}static replaceCaptures(t,e,r){return t.replace(ft,(n,i,o,a)=>{let l=r[parseInt(i||o,10)];if(l){let s=e.substring(l.start,l.end);for(;s[0]===".";)s=s.substring(1);switch(a){case"downcase":return s.toLowerCase();case"upcase":return s.toUpperCase();default:return s}}else return n})}};function tn(t,e){return t<e?-1:t>e?1:0}function rn(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let r=t.length,n=e.length;if(r===n){for(let i=0;i<r;i++){let o=tn(t[i],e[i]);if(o!==0)return o}return 0}return r-n}function pr(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function nn(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var on=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},Qe=class{constructor(t,e,r){this._colorMap=t,this._defaults=e,this._root=r}static createFromRawTheme(t,e){return this.createFromParsedTheme(bi(t),e)}static createFromParsedTheme(t,e){return vi(t,e)}_cachedMatchRoot=new on(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find(i=>yi(t.parent,i.parentScopes));return n?new an(n.fontStyle,n.foreground,n.background):null}},gt=class ze{constructor(e,r){this.parent=e,this.scopeName=r}static push(e,r){for(const n of r)e=new ze(e,n);return e}static from(...e){let r=null;for(let n=0;n<e.length;n++)r=new ze(r,e[n]);return r}push(e){return new ze(this,e)}getSegments(){let e=this;const r=[];for(;e;)r.push(e.scopeName),e=e.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push(n.scopeName),n=n.parent;return n===e?r.reverse():void 0}};function yi(t,e){if(e.length===0)return!0;for(let r=0;r<e.length;r++){let n=e[r],i=!1;if(n===">"){if(r===e.length-1)return!1;n=e[++r],i=!0}for(;t&&!Ei(t.scopeName,n);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function Ei(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var an=class{constructor(t,e,r){this.fontStyle=t,this.foregroundId=e,this.backgroundId=r}};function bi(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,r=[],n=0;for(let i=0,o=e.length;i<o;i++){let a=e[i];if(!a.settings)continue;let l;if(typeof a.scope=="string"){let m=a.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),l=m.split(",")}else Array.isArray(a.scope)?l=a.scope:l=[""];let s=-1;if(typeof a.settings.fontStyle=="string"){s=0;let m=a.settings.fontStyle.split(" ");for(let d=0,h=m.length;d<h;d++)switch(m[d]){case"italic":s=s|1;break;case"bold":s=s|2;break;case"underline":s=s|4;break;case"strikethrough":s=s|8;break}}let u=null;typeof a.settings.foreground=="string"&&pr(a.settings.foreground)&&(u=a.settings.foreground);let p=null;typeof a.settings.background=="string"&&pr(a.settings.background)&&(p=a.settings.background);for(let m=0,d=l.length;m<d;m++){let f=l[m].trim().split(" "),E=f[f.length-1],b=null;f.length>1&&(b=f.slice(0,f.length-1),b.reverse()),r[n++]=new wi(E,b,i,s,u,p)}}return r}var wi=class{constructor(t,e,r,n,i,o){this.scope=t,this.parentScopes=e,this.index=r,this.fontStyle=n,this.foreground=i,this.background=o}},V=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(V||{});function vi(t,e){t.sort((s,u)=>{let p=tn(s.scope,u.scope);return p!==0||(p=rn(s.parentScopes,u.parentScopes),p!==0)?p:s.index-u.index});let r=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let s=t.shift();s.fontStyle!==-1&&(r=s.fontStyle),s.foreground!==null&&(n=s.foreground),s.background!==null&&(i=s.background)}let o=new Ci(e),a=new an(r,o.getId(n),o.getId(i)),l=new ki(new Tt(0,null,-1,0,0),[]);for(let s=0,u=t.length;s<u;s++){let p=t[s];l.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new Qe(o,a,l)}var Ci=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,r=t.length;e<r;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},Ai=Object.freeze([]),Tt=class sn{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,r,n,i,o){this.scopeDepth=e,this.parentScopes=r||Ai,this.fontStyle=n,this.foreground=i,this.background=o}clone(){return new sn(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let r=[];for(let n=0,i=e.length;n<i;n++)r[n]=e[n].clone();return r}acceptOverwrite(e,r,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},ki=class Pt{constructor(e,r=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(e,r){if(e.scopeDepth!==r.scopeDepth)return r.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=r.parentScopes.length);){const o=r.parentScopes[i].length-e.parentScopes[n].length;if(o!==0)return o;n++,i++}return r.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,o;if(n===-1?(i=e,o=""):(i=e.substring(0,n),o=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Pt._cmpBySpecificity),r}insert(e,r,n,i,o,a){if(r===""){this._doInsertHere(e,n,i,o,a);return}let l=r.indexOf("."),s,u;l===-1?(s=r,u=""):(s=r.substring(0,l),u=r.substring(l+1));let p;this._children.hasOwnProperty(s)?p=this._children[s]:(p=new Pt(this._mainRule.clone(),Tt.cloneArr(this._rulesWithParentScopes)),this._children[s]=p),p.insert(e+1,u,n,i,o,a)}_doInsertHere(e,r,n,i,o){if(r===null){this._mainRule.acceptOverwrite(e,n,i,o);return}for(let a=0,l=this._rulesWithParentScopes.length;a<l;a++){let s=this._rulesWithParentScopes[a];if(rn(s.parentScopes,r)===0){s.acceptOverwrite(e,n,i,o);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Tt(e,r,n,i,o))}},ye=class U{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const r=U.getLanguageId(e),n=U.getTokenType(e),i=U.getFontStyle(e),o=U.getForeground(e),a=U.getBackground(e);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:o,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,r,n,i,o,a,l){let s=U.getLanguageId(e),u=U.getTokenType(e),p=U.containsBalancedBrackets(e)?1:0,m=U.getFontStyle(e),d=U.getForeground(e),h=U.getBackground(e);return r!==0&&(s=r),n!==8&&(u=n),i!==null&&(p=i?1:0),o!==-1&&(m=o),a!==0&&(d=a),l!==0&&(h=l),(s<<0|u<<8|p<<10|m<<11|d<<15|h<<24)>>>0}};function Je(t,e){const r=[],n=Si(t);let i=n.next();for(;i!==null;){let s=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":s=1;break;case"L":s=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let u=a();if(r.push({matcher:u,priority:s}),i!==",")break;i=n.next()}return r;function o(){if(i==="-"){i=n.next();const s=o();return u=>!!s&&!s(u)}if(i==="("){i=n.next();const s=l();return i===")"&&(i=n.next()),s}if(mr(i)){const s=[];do s.push(i),i=n.next();while(mr(i));return u=>e(s,u)}return null}function a(){const s=[];let u=o();for(;u;)s.push(u),u=o();return p=>s.every(m=>m(p))}function l(){const s=[];let u=a();for(;u&&(s.push(u),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");u=a()}return p=>s.some(m=>m(p))}}function mr(t){return!!t&&!!t.match(/[\w\.:]+/)}function Si(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=e.exec(t);return{next:()=>{if(!r)return null;const n=r[0];return r=e.exec(t),n}}}function ln(t){typeof t.dispose=="function"&&t.dispose()}var Ie=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},Li=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Ii=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},Ri=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ie(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const e=new Ii;for(const r of t)Ti(r,this.initialScopeName,this.repo,e);for(const r of e.references)if(r instanceof Ie){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function Ti(t,e,r,n){const i=r.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=r.lookup(e);t instanceof Ie?qe({baseGrammar:o,selfGrammar:i},n):Ot(t.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const a=r.injections(t.scopeName);if(a)for(const l of a)n.add(new Ie(l))}function Ot(t,e,r){if(e.repository&&e.repository[t]){const n=e.repository[t];Ye([n],e,r)}}function qe(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&Ye(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&Ye(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function Ye(t,e,r){for(const n of t){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?Zr({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&Ye(n.patterns,{...e,repository:i},r);const o=n.include;if(!o)continue;const a=un(o);switch(a.kind){case 0:qe({...e,selfGrammar:e.baseGrammar},r);break;case 1:qe(e,r);break;case 2:Ot(a.ruleName,{...e,repository:i},r);break;case 3:case 4:const l=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const s={baseGrammar:e.baseGrammar,selfGrammar:l,repository:i};a.kind===4?Ot(a.ruleName,s,r):qe(s,r)}else a.kind===4?r.add(new Li(a.scopeName,a.ruleName)):r.add(new Ie(a.scopeName));break}}}var Pi=class{kind=0},Oi=class{kind=1},xi=class{constructor(t){this.ruleName=t}kind=2},Di=class{constructor(t){this.scopeName=t}kind=3},Ni=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function un(t){if(t==="$base")return new Pi;if(t==="$self")return new Oi;const e=t.indexOf("#");if(e===-1)return new Di(t);if(e===0)return new xi(t.substring(1));{const r=t.substring(0,e),n=t.substring(e+1);return new Ni(r,n)}}var $i=/\\(\d+)/,dr=/\\(\d+)/g,Vi=-1,cn=-2;var Ne=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,r,n){this.$location=t,this.id=e,this._name=r||null,this._nameIsCapturing=Ge.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Ge.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${en(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Ge.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ge.replaceCaptures(this._contentName,t,e)}},Mi=class extends Ne{retokenizeCapturedWithRuleId;constructor(t,e,r,n,i){super(t,e,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,r,n){throw new Error("Not supported!")}},Gi=class extends Ne{_match;captures;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,null),this._match=new Re(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Te,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},hr=class extends Ne{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const r of this.patterns)t.getRule(r).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Te,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},xt=class extends Ne{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i,o,a,l,s,u){super(t,e,r,n),this._begin=new Re(i,this.id),this.beginCaptures=o,this._end=new Re(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=s||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t,e).compileAG(t,r,n)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Te;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Ze=class extends Ne{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,r,n,i,o,a,l,s){super(t,e,r,n),this._begin=new Re(i,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new Re(a,cn),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Te;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,r,n){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,r,n)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Te,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},pn=class ${static createCaptureRule(e,r,n,i,o){return e.registerRule(a=>new Mi(r,a,n,i,o))}static getCompiledRuleId(e,r,n){return e.id||r.registerRule(i=>{if(e.id=i,e.match)return new Gi(e.$vscodeTextmateLocation,e.id,e.name,e.match,$._compileCaptures(e.captures,r,n));if(typeof e.begin>"u"){e.repository&&(n=Zr({},n,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new hr(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,$._compilePatterns(o,r,n))}return e.while?new Ze(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,$._compileCaptures(e.beginCaptures||e.captures,r,n),e.while,$._compileCaptures(e.whileCaptures||e.captures,r,n),$._compilePatterns(e.patterns,r,n)):new xt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,$._compileCaptures(e.beginCaptures||e.captures,r,n),e.end,$._compileCaptures(e.endCaptures||e.captures,r,n),e.applyEndPatternLast,$._compilePatterns(e.patterns,r,n))}),e.id}static _compileCaptures(e,r,n){let i=[];if(e){let o=0;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const l=parseInt(a,10);l>o&&(o=l)}for(let a=0;a<=o;a++)i[a]=null;for(const a in e){if(a==="$vscodeTextmateLocation")continue;const l=parseInt(a,10);let s=0;e[a].patterns&&(s=$.getCompiledRuleId(e[a],r,n)),i[l]=$.createCaptureRule(r,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,s)}}return i}static _compilePatterns(e,r,n){let i=[];if(e)for(let o=0,a=e.length;o<a;o++){const l=e[o];let s=-1;if(l.include){const u=un(l.include);switch(u.kind){case 0:case 1:s=$.getCompiledRuleId(n[l.include],r,n);break;case 2:let p=n[u.ruleName];p&&(s=$.getCompiledRuleId(p,r,n));break;case 3:case 4:const m=u.scopeName,d=u.kind===4?u.ruleName:null,h=r.getExternalGrammar(m,n);if(h)if(d){let f=h.repository[d];f&&(s=$.getCompiledRuleId(f,r,h.repository))}else s=$.getCompiledRuleId(h.repository.$self,r,h.repository);break}}else s=$.getCompiledRuleId(l,r,n);if(s!==-1){const u=r.getRule(s);let p=!1;if((u instanceof hr||u instanceof xt||u instanceof Ze)&&u.hasMissingPatterns&&u.patterns.length===0&&(p=!0),p)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},Re=class mn{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,r){if(e&&typeof e=="string"){const n=e.length;let i=0,o=[],a=!1;for(let l=0;l<n;l++)if(e.charAt(l)==="\\"&&l+1<n){const u=e.charAt(l+1);u==="z"?(o.push(e.substring(i,l)),o.push("$(?!\\n)(?<!\\n)"),i=l+2):(u==="A"||u==="G")&&(a=!0),l++}this.hasAnchor=a,i===0?this.source=e:(o.push(e.substring(i,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=$i.test(this.source):this.hasBackReferences=!1}clone(){return new mn(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>e.substring(i.start,i.end));return dr.lastIndex=0,this.source.replace(dr,(i,o)=>nn(n[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],r=[],n=[],i=[],o,a,l,s;for(o=0,a=this.source.length;o<a;o++)l=this.source.charAt(o),e[o]=l,r[o]=l,n[o]=l,i[o]=l,l==="\\"&&o+1<a&&(s=this.source.charAt(o+1),s==="A"?(e[o+1]="",r[o+1]="",n[o+1]="A",i[o+1]="A"):s==="G"?(e[o+1]="",r[o+1]="G",n[o+1]="",i[o+1]="G"):(e[o+1]=s,r[o+1]=s,n[o+1]=s,i[o+1]=s),o++);return{A0_G0:e.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Te=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(r=>r.source);this._cached=new fr(t,e,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,e,r){return this._hasAnchors?e?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,r){let n=this._items.map(i=>i.resolveAnchors(e,r));return new fr(t,n,this._items.map(i=>i.ruleId))}},fr=class{constructor(t,e,r){this.regExps=e,this.rules=r,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,r=this.rules.length;e<r;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
3
|
+
`)}findNextMatchSync(t,e,r){const n=this.scanner.findNextMatchSync(t,e,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},_t=class{constructor(t,e){this.languageId=t,this.tokenType=e}},Bi=class Dt{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,r){this._defaultAttributes=new _t(e,8),this._embeddedLanguagesMatcher=new Ui(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Dt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new _t(0,0);_getBasicScopeAttributes=new on(e=>{const r=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new _t(r,n)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const r=e.match(Dt.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Ui=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([r,n])=>nn(r));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},gr=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function dn(t,e,r,n,i,o,a,l){const s=e.content.length;let u=!1,p=-1;if(a){const h=Fi(t,e,r,n,i,o);i=h.stack,n=h.linePos,r=h.isFirstLine,p=h.anchorPosition}const m=Date.now();for(;!u;){if(l!==0&&Date.now()-m>l)return new gr(i,!0);d()}return new gr(i,!1);function d(){const h=ji(t,e,r,n,i,p);if(!h){o.produce(i,s),u=!0;return}const f=h.captureIndices,E=h.matchedRuleId,b=f&&f.length>0?f[0].end>n:!1;if(E===Vi){const g=i.getRule(t);o.produce(i,f[0].start),i=i.withContentNameScopesList(i.nameScopesList),ke(t,e,r,i,o,g.endCaptures,f),o.produce(i,f[0].end);const w=i;if(i=i.parent,p=w.getAnchorPos(),!b&&w.getEnterPos()===n){i=w,o.produce(i,s),u=!0;return}}else{const g=t.getRule(E);o.produce(i,f[0].start);const w=i,_=g.getName(e.content,f),v=i.contentNameScopesList.pushAttributed(_,t);if(i=i.push(E,n,p,f[0].end===s,null,v,v),g instanceof xt){const k=g;ke(t,e,r,i,o,k.beginCaptures,f),o.produce(i,f[0].end),p=f[0].end;const x=k.getContentName(e.content,f),M=v.pushAttributed(x,t);if(i=i.withContentNameScopesList(M),k.endHasBackReferences&&(i=i.withEndRule(k.getEndWithResolvedBackReferences(e.content,f))),!b&&w.hasSameRuleAs(i)){i=i.pop(),o.produce(i,s),u=!0;return}}else if(g instanceof Ze){const k=g;ke(t,e,r,i,o,k.beginCaptures,f),o.produce(i,f[0].end),p=f[0].end;const x=k.getContentName(e.content,f),M=v.pushAttributed(x,t);if(i=i.withContentNameScopesList(M),k.whileHasBackReferences&&(i=i.withEndRule(k.getWhileWithResolvedBackReferences(e.content,f))),!b&&w.hasSameRuleAs(i)){i=i.pop(),o.produce(i,s),u=!0;return}}else if(ke(t,e,r,i,o,g.captures,f),o.produce(i,f[0].end),i=i.pop(),!b){i=i.safePop(),o.produce(i,s),u=!0;return}}f[0].end>n&&(n=f[0].end,r=!1)}}function Fi(t,e,r,n,i,o){let a=i.beginRuleCapturedEOL?0:-1;const l=[];for(let s=i;s;s=s.pop()){const u=s.getRule(t);u instanceof Ze&&l.push({rule:u,stack:s})}for(let s=l.pop();s;s=l.pop()){const{ruleScanner:u,findOptions:p}=zi(s.rule,t,s.stack.endRule,r,n===a),m=u.findNextMatchSync(e,n,p);if(m){if(m.ruleId!==cn){i=s.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(o.produce(s.stack,m.captureIndices[0].start),ke(t,e,r,s.stack,o,s.rule.whileCaptures,m.captureIndices),o.produce(s.stack,m.captureIndices[0].end),a=m.captureIndices[0].end,m.captureIndices[0].end>n&&(n=m.captureIndices[0].end,r=!1))}else{i=s.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:a,isFirstLine:r}}function ji(t,e,r,n,i,o){const a=Hi(t,e,r,n,i,o),l=t.getInjections();if(l.length===0)return a;const s=Wi(l,t,e,r,n,i,o);if(!s)return a;if(!a)return s;const u=a.captureIndices[0].start,p=s.captureIndices[0].start;return p<u||s.priorityMatch&&p===u?s:a}function Hi(t,e,r,n,i,o){const a=i.getRule(t),{ruleScanner:l,findOptions:s}=hn(a,t,i.endRule,r,n===o),u=l.findNextMatchSync(e,n,s);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function Wi(t,e,r,n,i,o,a){let l=Number.MAX_VALUE,s=null,u,p=0;const m=o.contentNameScopesList.getScopeNames();for(let d=0,h=t.length;d<h;d++){const f=t[d];if(!f.matcher(m))continue;const E=e.getRule(f.ruleId),{ruleScanner:b,findOptions:g}=hn(E,e,null,n,i===a),w=b.findNextMatchSync(r,i,g);if(!w)continue;const _=w.captureIndices[0].start;if(!(_>=l)&&(l=_,s=w.captureIndices,u=w.ruleId,p=f.priority,l===i))break}return s?{priorityMatch:p===-1,captureIndices:s,matchedRuleId:u}:null}function hn(t,e,r,n,i){return{ruleScanner:t.compileAG(e,r,n,i),findOptions:0}}function zi(t,e,r,n,i){return{ruleScanner:t.compileWhileAG(e,r,n,i),findOptions:0}}function ke(t,e,r,n,i,o,a){if(o.length===0)return;const l=e.content,s=Math.min(o.length,a.length),u=[],p=a[0].end;for(let m=0;m<s;m++){const d=o[m];if(d===null)continue;const h=a[m];if(h.length===0)continue;if(h.start>p)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,h.start):i.produce(n,h.start),d.retokenizeCapturedWithRuleId){const E=d.getName(l,a),b=n.contentNameScopesList.pushAttributed(E,t),g=d.getContentName(l,a),w=b.pushAttributed(g,t),_=n.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,b,w),v=t.createOnigString(l.substring(0,h.end));dn(t,v,r&&h.start===0,h.start,_,i,!1,0),ln(v);continue}const f=d.getName(l,a);if(f!==null){const b=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(f,t);u.push(new qi(b,h.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var qi=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function Xi(t,e,r,n,i,o,a,l){return new Qi(t,e,r,n,i,o,a,l)}function _r(t,e,r,n,i){const o=Je(e,et),a=pn.getCompiledRuleId(r,n,i.repository);for(const l of o)t.push({debugSelector:e,matcher:l.matcher,ruleId:a,grammar:i,priority:l.priority})}function et(t,e){if(e.length<t.length)return!1;let r=0;return t.every(n=>{for(let i=r;i<e.length;i++)if(Ki(e[i],n))return r=i+1,!0;return!1})}function Ki(t,e){if(!t)return!1;if(t===e)return!0;const r=e.length;return t.length>r&&t.substr(0,r)===e&&t[r]==="."}var Qi=class{constructor(t,e,r,n,i,o,a,l){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new Bi(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=yr(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const s of Object.keys(i)){const u=Je(s,et);for(const p of u)this._tokenTypeMatchers.push({matcher:p.matcher,type:i[s]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],r=this._rootScopeName,n=t.lookup(r);if(n){const i=n.injections;if(i)for(let a in i)_r(e,a,i[a],this,n);const o=this._grammarRepository.injections(r);o&&o.forEach(a=>{const l=this.getExternalGrammar(a);if(l){const s=l.injectionSelector;s&&_r(e,s,l,this,l)}})}return e.sort((i,o)=>i.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,r=t(e);return this._ruleId2desc[e]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=yr(r,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,r=0){const n=this._tokenize(t,e,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(t,e,r=0){const n=this._tokenize(t,e,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(t,e,r,n){this._rootId===-1&&(this._rootId=pn.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===Nt.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),m=ye.set(0,u.languageId,u.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),d=this.getRule(this._rootId).getName(null,null);let h;d?h=Se.createRootAndLookUpScopeName(d,m,this):h=Se.createRoot("unknown",m),e=new Nt(null,this._rootId,-1,-1,!1,null,h,h)}else i=!1,e.reset();t=t+`
|
|
4
|
+
`;const o=this.createOnigString(t),a=o.content.length,l=new Yi(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),s=dn(this,o,i,0,e,l,!0,n);return ln(o),{lineLength:a,lineTokens:l,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function yr(t,e){return t=fi(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var Se=class W{constructor(e,r,n){this.parent=e,this.scopePath=r,this.tokenAttributes=n}static fromExtension(e,r){let n=e,i=e?.scopePath??null;for(const o of r)i=gt.push(i,o.scopeNames),n=new W(n,i,o.encodedTokenAttributes);return n}static createRoot(e,r){return new W(null,new gt(null,e),r)}static createRootAndLookUpScopeName(e,r,n){const i=n.getMetadataForScope(e),o=new gt(null,e),a=n.themeProvider.themeMatch(o),l=W.mergeAttributes(r,i,a);return new W(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return W.equals(this,e)}static equals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.scopeName!==r.scopeName||e.tokenAttributes!==r.tokenAttributes)return!1;e=e.parent,r=r.parent}while(!0)}static mergeAttributes(e,r,n){let i=-1,o=0,a=0;return n!==null&&(i=n.fontStyle,o=n.foregroundId,a=n.backgroundId),ye.set(e,r.languageId,r.tokenType,null,i,o,a)}pushAttributed(e,r){if(e===null)return this;if(e.indexOf(" ")===-1)return W._pushAttributed(this,e,r);const n=e.split(/ /g);let i=this;for(const o of n)i=W._pushAttributed(i,o,r);return i}static _pushAttributed(e,r,n){const i=n.getMetadataForScope(r),o=e.scopePath.push(r),a=n.themeProvider.themeMatch(o),l=W.mergeAttributes(e.tokenAttributes,i,a);return new W(e,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?r.reverse():void 0}},Nt=class ie{constructor(e,r,n,i,o,a,l,s){this.parent=e,this.ruleId=r,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=l,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new ie(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:ie._equals(this,e)}static _equals(e,r){return e===r?!0:this._structuralEquals(e,r)?Se.equals(e.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.depth!==r.depth||e.ruleId!==r.ruleId||e.endRule!==r.endRule)return!1;e=e.parent,r=r.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){ie._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,r,n,i,o,a,l){return new ie(this,e,r,n,i,o,a,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,r){return this.parent&&(r=this.parent._writeString(e,r)),e[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new ie(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let r=this;for(;r&&r._enterPos===e._enterPos;){if(r.ruleId===e.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,r){const n=Se.fromExtension(e?.nameScopesList??null,r.nameScopesList);return new ie(e,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,Se.fromExtension(n,r.contentNameScopesList))}},Ji=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Je(r,et).map(n=>n.matcher)),this.unbalancedBracketScopes=e.flatMap(r=>Je(r,et).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},Yi=class{constructor(t,e,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=t?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=t?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(o)&&(n=ye.set(n,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(n=ye.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:r}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}},Zi=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,r,n,i){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,Xi(t,o,e,r,n,i,this,this._onigLib))}return this._grammars.get(t)}},eo=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Zi(Qe.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,r){this._syncRegistry.setTheme(Qe.createFromRawTheme(e,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,r,n){return this.loadGrammarWithConfiguration(e,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,r,n){return this._loadGrammar(e,r,n.embeddedLanguages,n.tokenTypes,new Ji(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,r,n,i,o){const a=new Ri(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(l=>this._loadSingleGrammar(l.scopeName)),a.processQueue();return this._grammarForScopeName(e,r,n,i,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const r=this._options.loadGrammar(e);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(e,r=[],n=0,i=null){return this._syncRegistry.addGrammar(e,r),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,r=0,n=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(e,r,n,i,o)}},$t=Nt.NULL;const to=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class $e{constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}}$e.prototype.normal={};$e.prototype.property={};$e.prototype.space=void 0;function fn(t,e){const r={},n={};for(const i of t)Object.assign(r,i.property),Object.assign(n,i.normal);return new $e(r,n,e)}function Vt(t){return t.toLowerCase()}class G{constructor(e,r){this.attribute=r,this.property=e}}G.prototype.attribute="";G.prototype.booleanish=!1;G.prototype.boolean=!1;G.prototype.commaOrSpaceSeparated=!1;G.prototype.commaSeparated=!1;G.prototype.defined=!1;G.prototype.mustUseProperty=!1;G.prototype.number=!1;G.prototype.overloadedBoolean=!1;G.prototype.property="";G.prototype.spaceSeparated=!1;G.prototype.space=void 0;let ro=0;const A=ue(),I=ue(),Mt=ue(),y=ue(),S=ue(),ge=ue(),B=ue();function ue(){return 2**++ro}const Gt=Object.freeze(Object.defineProperty({__proto__:null,boolean:A,booleanish:I,commaOrSpaceSeparated:B,commaSeparated:ge,number:y,overloadedBoolean:Mt,spaceSeparated:S},Symbol.toStringTag,{value:"Module"})),yt=Object.keys(Gt);class Kt extends G{constructor(e,r,n,i){let o=-1;if(super(e,r),Er(this,"space",i),typeof n=="number")for(;++o<yt.length;){const a=yt[o];Er(this,yt[o],(n&Gt[a])===Gt[a])}}}Kt.prototype.defined=!0;function Er(t,e,r){r&&(t[e]=r)}function Ee(t){const e={},r={};for(const[n,i]of Object.entries(t.properties)){const o=new Kt(n,t.transform(t.attributes||{},n),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),e[n]=o,r[Vt(n)]=n,r[Vt(o.attribute)]=n}return new $e(e,r,t.space)}const gn=Ee({properties:{ariaActiveDescendant:null,ariaAtomic:I,ariaAutoComplete:null,ariaBusy:I,ariaChecked:I,ariaColCount:y,ariaColIndex:y,ariaColSpan:y,ariaControls:S,ariaCurrent:null,ariaDescribedBy:S,ariaDetails:null,ariaDisabled:I,ariaDropEffect:S,ariaErrorMessage:null,ariaExpanded:I,ariaFlowTo:S,ariaGrabbed:I,ariaHasPopup:null,ariaHidden:I,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:S,ariaLevel:y,ariaLive:null,ariaModal:I,ariaMultiLine:I,ariaMultiSelectable:I,ariaOrientation:null,ariaOwns:S,ariaPlaceholder:null,ariaPosInSet:y,ariaPressed:I,ariaReadOnly:I,ariaRelevant:null,ariaRequired:I,ariaRoleDescription:S,ariaRowCount:y,ariaRowIndex:y,ariaRowSpan:y,ariaSelected:I,ariaSetSize:y,ariaSort:null,ariaValueMax:y,ariaValueMin:y,ariaValueNow:y,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function _n(t,e){return e in t?t[e]:e}function yn(t,e){return _n(t,e.toLowerCase())}const no=Ee({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ge,acceptCharset:S,accessKey:S,action:null,allow:null,allowFullScreen:A,allowPaymentRequest:A,allowUserMedia:A,alt:null,as:null,async:A,autoCapitalize:null,autoComplete:S,autoFocus:A,autoPlay:A,blocking:S,capture:null,charSet:null,checked:A,cite:null,className:S,cols:y,colSpan:null,content:null,contentEditable:I,controls:A,controlsList:S,coords:y|ge,crossOrigin:null,data:null,dateTime:null,decoding:null,default:A,defer:A,dir:null,dirName:null,disabled:A,download:Mt,draggable:I,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:A,formTarget:null,headers:S,height:y,hidden:Mt,high:y,href:null,hrefLang:null,htmlFor:S,httpEquiv:S,id:null,imageSizes:null,imageSrcSet:null,inert:A,inputMode:null,integrity:null,is:null,isMap:A,itemId:null,itemProp:S,itemRef:S,itemScope:A,itemType:S,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:A,low:y,manifest:null,max:null,maxLength:y,media:null,method:null,min:null,minLength:y,multiple:A,muted:A,name:null,nonce:null,noModule:A,noValidate:A,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:A,optimum:y,pattern:null,ping:S,placeholder:null,playsInline:A,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:A,referrerPolicy:null,rel:S,required:A,reversed:A,rows:y,rowSpan:y,sandbox:S,scope:null,scoped:A,seamless:A,selected:A,shadowRootClonable:A,shadowRootDelegatesFocus:A,shadowRootMode:null,shape:null,size:y,sizes:null,slot:null,span:y,spellCheck:I,src:null,srcDoc:null,srcLang:null,srcSet:null,start:y,step:null,style:null,tabIndex:y,target:null,title:null,translate:null,type:null,typeMustMatch:A,useMap:null,value:I,width:y,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:S,axis:null,background:null,bgColor:null,border:y,borderColor:null,bottomMargin:y,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:A,declare:A,event:null,face:null,frame:null,frameBorder:null,hSpace:y,leftMargin:y,link:null,longDesc:null,lowSrc:null,marginHeight:y,marginWidth:y,noResize:A,noHref:A,noShade:A,noWrap:A,object:null,profile:null,prompt:null,rev:null,rightMargin:y,rules:null,scheme:null,scrolling:I,standby:null,summary:null,text:null,topMargin:y,valueType:null,version:null,vAlign:null,vLink:null,vSpace:y,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:A,disableRemotePlayback:A,prefix:null,property:null,results:y,security:null,unselectable:null},space:"html",transform:yn}),io=Ee({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:B,accentHeight:y,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:y,amplitude:y,arabicForm:null,ascent:y,attributeName:null,attributeType:null,azimuth:y,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:y,by:null,calcMode:null,capHeight:y,className:S,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:y,diffuseConstant:y,direction:null,display:null,dur:null,divisor:y,dominantBaseline:null,download:A,dx:null,dy:null,edgeMode:null,editable:null,elevation:y,enableBackground:null,end:null,event:null,exponent:y,externalResourcesRequired:null,fill:null,fillOpacity:y,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ge,g2:ge,glyphName:ge,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:y,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:y,horizOriginX:y,horizOriginY:y,id:null,ideographic:y,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:y,k:y,k1:y,k2:y,k3:y,k4:y,kernelMatrix:B,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:y,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:y,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:y,overlineThickness:y,paintOrder:null,panose1:null,path:null,pathLength:y,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:S,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:y,pointsAtY:y,pointsAtZ:y,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:B,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:B,rev:B,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:B,requiredFeatures:B,requiredFonts:B,requiredFormats:B,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:y,specularExponent:y,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:y,strikethroughThickness:y,string:null,stroke:null,strokeDashArray:B,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:y,strokeOpacity:y,strokeWidth:null,style:null,surfaceScale:y,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:B,tabIndex:y,tableValues:null,target:null,targetX:y,targetY:y,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:B,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:y,underlineThickness:y,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:y,values:null,vAlphabetic:y,vMathematical:y,vectorEffect:null,vHanging:y,vIdeographic:y,version:null,vertAdvY:y,vertOriginX:y,vertOriginY:y,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:y,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_n}),En=Ee({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),bn=Ee({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yn}),wn=Ee({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),oo=/[A-Z]/g,br=/-[a-z]/g,ao=/^data[-\w.:]+$/i;function so(t,e){const r=Vt(e);let n=e,i=G;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ao.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(br,uo);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!br.test(o)){let a=o.replace(oo,lo);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=Kt}return new i(n,e)}function lo(t){return"-"+t.toLowerCase()}function uo(t){return t.charAt(1).toUpperCase()}const co=fn([gn,no,En,bn,wn],"html"),vn=fn([gn,io,En,bn,wn],"svg"),wr={}.hasOwnProperty;function po(t,e){const r=e||{};function n(i,...o){let a=n.invalid;const l=n.handlers;if(i&&wr.call(i,t)){const s=String(i[t]);a=wr.call(l,s)?l[s]:n.unknown}if(a)return a.call(this,i,...o)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const mo=/["&'<>`]/g,ho=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fo=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,go=/[|\\{}()[\]^$+*?.]/g,vr=new WeakMap;function _o(t,e){if(t=t.replace(e.subset?yo(e.subset):mo,n),e.subset||e.escapeOnly)return t;return t.replace(ho,r).replace(fo,n);function r(i,o,a){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),e)}function n(i,o,a){return e.format(i.charCodeAt(0),a.charCodeAt(o+1),e)}}function yo(t){let e=vr.get(t);return e||(e=Eo(t),vr.set(t,e)),e}function Eo(t){const e=[];let r=-1;for(;++r<t.length;)e.push(t[r].replace(go,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const bo=/[\dA-Fa-f]/;function wo(t,e,r){const n="&#x"+t.toString(16).toUpperCase();return r&&e&&!bo.test(String.fromCharCode(e))?n:n+";"}const vo=/\d/;function Co(t,e,r){const n="&#"+String(t);return r&&e&&!vo.test(String.fromCharCode(e))?n:n+";"}const Ao=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Et={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},ko=["cent","copy","divide","gt","lt","not","para","times"],Cn={}.hasOwnProperty,Bt={};let Be;for(Be in Et)Cn.call(Et,Be)&&(Bt[Et[Be]]=Be);const So=/[^\dA-Za-z]/;function Lo(t,e,r,n){const i=String.fromCharCode(t);if(Cn.call(Bt,i)){const o=Bt[i],a="&"+o;return r&&Ao.includes(o)&&!ko.includes(o)&&(!n||e&&e!==61&&So.test(String.fromCharCode(e)))?a:a+";"}return""}function Io(t,e,r){let n=wo(t,e,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=Lo(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const o=Co(t,e,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function _e(t,e){return _o(t,Object.assign({format:Io},e))}const Ro=/^>|^->|<!--|-->|--!>|<!-$/g,To=[">"],Po=["<",">"];function Oo(t,e,r,n){return n.settings.bogusComments?"<?"+_e(t.value,Object.assign({},n.settings.characterReferences,{subset:To}))+">":"<!--"+t.value.replace(Ro,i)+"-->";function i(o){return _e(o,Object.assign({},n.settings.characterReferences,{subset:Po}))}}function xo(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Cr(t,e){const r=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(e);for(;i!==-1;)n++,i=r.indexOf(e,i+e.length);return n}function Do(t,e){const r=e||{};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function No(t){return t.join(" ").trim()}const $o=/[ \t\n\f\r]/g;function Qt(t){return typeof t=="object"?t.type==="text"?Ar(t.value):!1:Ar(t)}function Ar(t){return t.replace($o,"")===""}const O=kn(1),An=kn(-1),Vo=[];function kn(t){return e;function e(r,n,i){const o=r?r.children:Vo;let a=(n||0)+t,l=o[a];if(!i)for(;l&&Qt(l);)a+=t,l=o[a];return l}}const Mo={}.hasOwnProperty;function Sn(t){return e;function e(r,n,i){return Mo.call(t,r.tagName)&&t[r.tagName](r,n,i)}}const Jt=Sn({body:Bo,caption:bt,colgroup:bt,dd:Ho,dt:jo,head:bt,html:Go,li:Fo,optgroup:Wo,option:zo,p:Uo,rp:kr,rt:kr,tbody:Xo,td:Sr,tfoot:Ko,th:Sr,thead:qo,tr:Qo});function bt(t,e,r){const n=O(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Qt(n.value.charAt(0)))}function Go(t,e,r){const n=O(r,e);return!n||n.type!=="comment"}function Bo(t,e,r){const n=O(r,e);return!n||n.type!=="comment"}function Uo(t,e,r){const n=O(r,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function Fo(t,e,r){const n=O(r,e);return!n||n.type==="element"&&n.tagName==="li"}function jo(t,e,r){const n=O(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Ho(t,e,r){const n=O(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function kr(t,e,r){const n=O(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function Wo(t,e,r){const n=O(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function zo(t,e,r){const n=O(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function qo(t,e,r){const n=O(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Xo(t,e,r){const n=O(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function Ko(t,e,r){return!O(r,e)}function Qo(t,e,r){const n=O(r,e);return!n||n.type==="element"&&n.tagName==="tr"}function Sr(t,e,r){const n=O(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const Jo=Sn({body:ea,colgroup:ta,head:Zo,html:Yo,tbody:ra});function Yo(t){const e=O(t,-1);return!e||e.type!=="comment"}function Zo(t){const e=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const r=t.children[0];return!r||r.type==="element"}function ea(t){const e=O(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Qt(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function ta(t,e,r){const n=An(r,e),i=O(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Jt(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function ra(t,e,r){const n=An(r,e),i=O(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Jt(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Ue={name:[[`
|
|
5
|
+
\f\r &/=>`.split(""),`
|
|
6
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
7
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
8
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
9
|
+
\f\r &>`.split(""),`\0
|
|
10
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
11
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
12
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function na(t,e,r,n){const i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags;let a=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(t.tagName.toLowerCase());const l=[];let s;i.space==="html"&&t.tagName==="svg"&&(n.schema=vn);const u=ia(n,t.properties),p=n.all(i.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=i,p&&(a=!1),(u||!o||!Jo(t,e,r))&&(l.push("<",t.tagName,u?" "+u:""),a&&(i.space==="svg"||n.settings.closeSelfClosing)&&(s=u.charAt(u.length-1),(!n.settings.tightSelfClosing||s==="/"||s&&s!=='"'&&s!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(p),!a&&(!o||!Jt(t,e,r))&&l.push("</"+t.tagName+">"),l.join("")}function ia(t,e){const r=[];let n=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const o=oa(t,i,e[i]);o&&r.push(o)}}for(;++n<r.length;){const o=t.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&o!=='"'&&o!=="'"&&(r[n]+=" ")}return r.join("")}function oa(t,e,r){const n=so(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1;let a=t.quote,l;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const s=_e(n.attribute,Object.assign({},t.settings.characterReferences,{subset:Ue.name[i][o]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?Do:No)(r,{padLeft:!t.settings.tightCommaSeparatedLists}):String(r),t.settings.collapseEmptyAttributes&&!r)?s:(t.settings.preferUnquoted&&(l=_e(r,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:Ue.unquoted[i][o]}))),l!==r&&(t.settings.quoteSmart&&Cr(r,a)>Cr(r,t.alternative)&&(a=t.alternative),l=a+_e(r,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?Ue.single:Ue.double)[i][o],attribute:!0}))+a),s+(l&&"="+l))}const aa=["<","&"];function Ln(t,e,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?t.value:_e(t.value,Object.assign({},n.settings.characterReferences,{subset:aa}))}function sa(t,e,r,n){return n.settings.allowDangerousHtml?t.value:Ln(t,e,r,n)}function la(t,e,r,n){return n.all(t)}const ua=po("type",{invalid:ca,unknown:pa,handlers:{comment:Oo,doctype:xo,element:na,raw:sa,root:la,text:Ln}});function ca(t){throw new Error("Expected node, not `"+t+"`")}function pa(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const ma={},da={},ha=[];function fa(t,e){const r=e||ma,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:ga,all:_a,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||to,characterReferences:r.characterReferences||da,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?vn:co,quote:n,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function ga(t,e,r){return ua(t,e,r,this)}function _a(t){const e=[],r=t&&t.children||ha;let n=-1;for(;++n<r.length;)e[n]=this.one(r[n],n,t);return e.join("")}function tt(t,e){const r=typeof t=="string"?{}:{...t.colorReplacements},n=typeof t=="string"?t:t.name;for(const[i,o]of Object.entries(e?.colorReplacements||{}))typeof o=="string"?r[i]=o:i===n&&Object.assign(r,o);return r}function re(t,e){return t&&(e?.[t?.toLowerCase()]||t)}function ya(t){return Array.isArray(t)?t:[t]}async function In(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function Yt(t){return!t||["plaintext","txt","text","plain"].includes(t)}function Rn(t){return t==="ansi"||Yt(t)}function Zt(t){return t==="none"}function Tn(t){return Zt(t)}function Pn(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const r=Array.isArray(e)?e:e.split(/\s+/g);for(const n of r)n&&!t.properties.class.includes(n)&&t.properties.class.push(n);return t}function ot(t,e=!1){if(t.length===0)return[["",0]];const r=t.split(/(\r?\n)/g);let n=0;const i=[];for(let o=0;o<r.length;o+=2){const a=e?r[o]+(r[o+1]||""):r[o];i.push([a,n]),n+=r[o].length,n+=r[o+1]?.length||0}return i}function Ea(t){const e=ot(t,!0).map(([i])=>i);function r(i){if(i===t.length)return{line:e.length-1,character:e[e.length-1].length};let o=i,a=0;for(const l of e){if(o<l.length)break;o-=l.length,a++}return{line:a,character:o}}function n(i,o){let a=0;for(let l=0;l<i;l++)a+=e[l].length;return a+=o,a}return{lines:e,indexToPos:r,posToIndex:n}}function ba(t,e,r){const n=new Set;for(const o of t.matchAll(/:?lang=["']([^"']+)["']/g)){const a=o[1].toLowerCase().trim();a&&n.add(a)}for(const o of t.matchAll(/(?:```|~~~)([\w-]+)/g)){const a=o[1].toLowerCase().trim();a&&n.add(a)}for(const o of t.matchAll(/\\begin\{([\w-]+)\}/g)){const a=o[1].toLowerCase().trim();a&&n.add(a)}for(const o of t.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const a=o[1].toLowerCase().trim(),l=a.includes("/")?a.split("/").pop():a;l&&n.add(l)}if(!r)return Array.from(n);const i=r.getBundledLanguages();return Array.from(n).filter(o=>o&&i[o])}const er="light-dark()",wa=["color","background-color"];function va(t,e){let r=0;const n=[];for(const i of e)i>r&&n.push({...t,content:t.content.slice(r,i),offset:t.offset+r}),r=i;return r<t.content.length&&n.push({...t,content:t.content.slice(r),offset:t.offset+r}),n}function Ca(t,e){const r=Array.from(e instanceof Set?e:new Set(e)).sort((n,i)=>n-i);return r.length?t.map(n=>n.flatMap(i=>{const o=r.filter(a=>i.offset<a&&a<i.offset+i.content.length).map(a=>a-i.offset).sort((a,l)=>a-l);return o.length?va(i,o):i})):t}function Aa(t,e,r,n,i="css-vars"){const o={content:t.content,explanation:t.explanation,offset:t.offset},a=e.map(p=>rt(t.variants[p])),l=new Set(a.flatMap(p=>Object.keys(p))),s={},u=(p,m)=>{const d=m==="color"?"":m==="background-color"?"-bg":`-${m}`;return r+e[p]+(m==="color"?"":d)};return a.forEach((p,m)=>{for(const d of l){const h=p[d]||"inherit";if(m===0&&n&&wa.includes(d))if(n===er&&a.length>1){const f=e.findIndex(w=>w==="light"),E=e.findIndex(w=>w==="dark");if(f===-1||E===-1)throw new R('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const b=a[f][d]||"inherit",g=a[E][d]||"inherit";s[d]=`light-dark(${b}, ${g})`,i==="css-vars"&&(s[u(m,d)]=h)}else s[d]=h;else i==="css-vars"&&(s[u(m,d)]=h)}}),o.htmlStyle=s,o}function rt(t){const e={};if(t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&V.Italic&&(e["font-style"]="italic"),t.fontStyle&V.Bold&&(e["font-weight"]="bold");const r=[];t.fontStyle&V.Underline&&r.push("underline"),t.fontStyle&V.Strikethrough&&r.push("line-through"),r.length&&(e["text-decoration"]=r.join(" "))}return e}function Ut(t){return typeof t=="string"?t:Object.entries(t).map(([e,r])=>`${e}:${r}`).join(";")}const On=new WeakMap;function at(t,e){On.set(t,e)}function Pe(t){return On.get(t)}class be{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,r){return new be(Object.fromEntries(ya(r).map(n=>[n,$t])),e)}constructor(...e){if(e.length===2){const[r,n]=e;this.lang=n,this._stacks=r}else{const[r,n,i]=e;this.lang=n,this._stacks={[i]:r}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return ka(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function ka(t){const e=[],r=new Set;function n(i){if(r.has(i))return;r.add(i);const o=i?.nameScopesList?.scopeName;o&&e.push(o),i.parent&&n(i.parent)}return n(t),e}function Sa(t,e){if(!(t instanceof be))throw new R("Invalid grammar state");return t.getInternalStack(e)}function La(){const t=new WeakMap;function e(r){if(!t.has(r.meta)){let n=function(a){if(typeof a=="number"){if(a<0||a>r.source.length)throw new R(`Invalid decoration offset: ${a}. Code length: ${r.source.length}`);return{...i.indexToPos(a),offset:a}}else{const l=i.lines[a.line];if(l===void 0)throw new R(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${i.lines.length}`);let s=a.character;if(s<0&&(s=l.length+s),s<0||s>l.length)throw new R(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${l.length}`);return{...a,character:s,offset:i.posToIndex(a.line,s)}}};const i=Ea(r.source),o=(r.options.decorations||[]).map(a=>({...a,start:n(a.start),end:n(a.end)}));Ia(o),t.set(r.meta,{decorations:o,converter:i,source:r.source})}return t.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(!this.options.decorations?.length)return;const i=e(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return Ca(r,i)},code(r){if(!this.options.decorations?.length)return;const n=e(this),i=Array.from(r.children).filter(p=>p.type==="element"&&p.tagName==="span");if(i.length!==n.converter.lines.length)throw new R(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(p,m,d,h){const f=i[p];let E="",b=-1,g=-1;if(m===0&&(b=0),d===0&&(g=0),d===Number.POSITIVE_INFINITY&&(g=f.children.length),b===-1||g===-1)for(let _=0;_<f.children.length;_++)E+=xn(f.children[_]),b===-1&&E.length===m&&(b=_+1),g===-1&&E.length===d&&(g=_+1);if(b===-1)throw new R(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(g===-1)throw new R(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const w=f.children.slice(b,g);if(!h.alwaysWrap&&w.length===f.children.length)l(f,h,"line");else if(!h.alwaysWrap&&w.length===1&&w[0].type==="element")l(w[0],h,"token");else{const _={type:"element",tagName:"span",properties:{},children:w};l(_,h,"wrapper"),f.children.splice(b,w.length,_)}}function a(p,m){i[p]=l(i[p],m,"line")}function l(p,m,d){const h=m.properties||{},f=m.transform||(E=>E);return p.tagName=m.tagName||"span",p.properties={...p.properties,...h,class:p.properties.class},m.properties?.class&&Pn(p,m.properties.class),p=f(p,d)||p,p}const s=[],u=n.decorations.sort((p,m)=>m.start.offset-p.start.offset||p.end.offset-m.end.offset);for(const p of u){const{start:m,end:d}=p;if(m.line===d.line)o(m.line,m.character,d.character,p);else if(m.line<d.line){o(m.line,m.character,Number.POSITIVE_INFINITY,p);for(let h=m.line+1;h<d.line;h++)s.unshift(()=>a(h,p));o(d.line,0,d.character,p)}}s.forEach(p=>p())}}}function Ia(t){for(let e=0;e<t.length;e++){const r=t[e];if(r.start.offset>r.end.offset)throw new R(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=e+1;n<t.length;n++){const i=t[n],o=r.start.offset<=i.start.offset&&i.start.offset<r.end.offset,a=r.start.offset<i.end.offset&&i.end.offset<=r.end.offset,l=i.start.offset<=r.start.offset&&r.start.offset<i.end.offset,s=i.start.offset<r.end.offset&&r.end.offset<=i.end.offset;if(o||a||l||s){if(o&&a||l&&s||l&&r.start.offset===r.end.offset||a&&i.start.offset===i.end.offset)continue;throw new R(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function xn(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(xn).join(""):""}const Ra=[La()];function nt(t){const e=Ta(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...Ra]}function Ta(t){const e=[],r=[],n=[];for(const i of t)switch(i.enforce){case"pre":e.push(i);break;case"post":r.push(i);break;default:n.push(i)}return{pre:e,post:r,normal:n}}var ae=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],wt={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Pa(t,e){const r=t.indexOf("\x1B",e);if(r!==-1&&t[r+1]==="["){const n=t.indexOf("m",r);if(n!==-1)return{sequence:t.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:t.length}}function Lr(t){const e=t.shift();if(e==="2"){const r=t.splice(0,3).map(n=>Number.parseInt(n));return r.length!==3||r.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:r}}else if(e==="5"){const r=t.shift();if(r)return{type:"table",index:Number(r)}}}function Oa(t){const e=[];for(;t.length>0;){const r=t.shift();if(!r)continue;const n=Number.parseInt(r);if(!Number.isNaN(n))if(n===0)e.push({type:"resetAll"});else if(n<=9)wt[n]&&e.push({type:"setDecoration",value:wt[n]});else if(n<=29){const i=wt[n-20];i&&(e.push({type:"resetDecoration",value:i}),i==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)e.push({type:"setForegroundColor",value:{type:"named",name:ae[n-30]}});else if(n===38){const i=Lr(t);i&&e.push({type:"setForegroundColor",value:i})}else if(n===39)e.push({type:"resetForegroundColor"});else if(n<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:ae[n-40]}});else if(n===48){const i=Lr(t);i&&e.push({type:"setBackgroundColor",value:i})}else n===49?e.push({type:"resetBackgroundColor"}):n===53?e.push({type:"setDecoration",value:"overline"}):n===55?e.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?e.push({type:"setForegroundColor",value:{type:"named",name:ae[n-90+8]}}):n>=100&&n<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:ae[n-100+8]}})}return e}function xa(){let t=null,e=null,r=new Set;return{parse(n){const i=[];let o=0;do{const a=Pa(n,o),l=a.sequence?n.substring(o,a.startPosition):n.substring(o);if(l.length>0&&i.push({value:l,foreground:t,background:e,decorations:new Set(r)}),a.sequence){const s=Oa(a.sequence);for(const u of s)u.type==="resetAll"?(t=null,e=null,r.clear()):u.type==="resetForegroundColor"?t=null:u.type==="resetBackgroundColor"?e=null:u.type==="resetDecoration"&&r.delete(u.value);for(const u of s)u.type==="setForegroundColor"?t=u.value:u.type==="setBackgroundColor"?e=u.value:u.type==="setDecoration"&&r.add(u.value)}o=a.position}while(o<n.length);return i}}}var Da={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Na(t=Da){function e(l){return t[l]}function r(l){return`#${l.map(s=>Math.max(0,Math.min(s,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(){if(n)return n;n=[];for(let u=0;u<ae.length;u++)n.push(e(ae[u]));let l=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let p=0;p<6;p++)for(let m=0;m<6;m++)n.push(r([l[u],l[p],l[m]]));let s=8;for(let u=0;u<24;u++,s+=10)n.push(r([s,s,s]));return n}function o(l){return i()[l]}function a(l){switch(l.type){case"named":return e(l.name);case"rgb":return r(l.rgb);case"table":return o(l.index)}}return{value:a}}const $a={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Va(t,e,r){const n=tt(t,r),i=ot(e),o=Object.fromEntries(ae.map(s=>{const u=`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`,p=t.colors?.[u];return[s,p||$a[s]]})),a=Na(o),l=xa();return i.map(s=>l.parse(s[0]).map(u=>{let p,m;u.decorations.has("reverse")?(p=u.background?a.value(u.background):t.bg,m=u.foreground?a.value(u.foreground):t.fg):(p=u.foreground?a.value(u.foreground):t.fg,m=u.background?a.value(u.background):void 0),p=re(p,n),m=re(m,n),u.decorations.has("dim")&&(p=Ma(p));let d=V.None;return u.decorations.has("bold")&&(d|=V.Bold),u.decorations.has("italic")&&(d|=V.Italic),u.decorations.has("underline")&&(d|=V.Underline),u.decorations.has("strikethrough")&&(d|=V.Strikethrough),{content:u.value,offset:s[1],color:p,bgColor:m,fontStyle:d}}))}function Ma(t){const e=t.match(/#([0-9a-f]{3,8})/i);if(e){const n=e[1];if(n.length===8){const i=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${i}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){const i=n[0],o=n[1],a=n[2],l=n[3],s=Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0");return`#${i}${i}${o}${o}${a}${a}${s}`}else if(n.length===3){const i=n[0],o=n[1],a=n[2];return`#${i}${i}${o}${o}${a}${a}80`}}}const r=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:t}function st(t,e,r={}){const{theme:n=t.getLoadedThemes()[0]}=r,i=t.resolveLangAlias(r.lang||"text");if(Yt(i)||Zt(n))return ot(e).map(s=>[{content:s[0],offset:s[1]}]);const{theme:o,colorMap:a}=t.setTheme(n);if(i==="ansi")return Va(o,e,r);const l=t.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==l.name)throw new R(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${l.name}"`);if(!r.grammarState.themes.includes(o.name))throw new R(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return Ga(e,l,o,a,r)}function Dn(...t){if(t.length===2)return Pe(t[1]);const[e,r,n={}]=t,{lang:i="text",theme:o=e.getLoadedThemes()[0]}=n;if(Yt(i)||Zt(o))throw new R("Plain language does not have grammar state");if(i==="ansi")throw new R("ANSI language does not have grammar state");const{theme:a,colorMap:l}=e.setTheme(o),s=e.getLanguage(i);return new be(tr(r,s,a,l,n).stateStack,s.name,a.name)}function Ga(t,e,r,n,i){const o=tr(t,e,r,n,i),a=new be(o.stateStack,e.name,r.name);return at(o.tokens,a),o.tokens}function tr(t,e,r,n,i){const o=tt(r,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:l=500}=i,s=ot(t);let u=i.grammarState?Sa(i.grammarState,r.name)??$t:i.grammarContextCode!=null?tr(i.grammarContextCode,e,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:$t,p=[];const m=[];for(let d=0,h=s.length;d<h;d++){const[f,E]=s[d];if(f===""){p=[],m.push([]);continue}if(a>0&&f.length>=a){p=[],m.push([{content:f,offset:E,color:"",fontStyle:0}]);continue}let b,g,w;i.includeExplanation&&(b=e.tokenizeLine(f,u,l),g=b.tokens,w=0);const _=e.tokenizeLine2(f,u,l),v=_.tokens.length/2;for(let k=0;k<v;k++){const x=_.tokens[2*k],M=k+1<v?_.tokens[2*k+2]:f.length;if(x===M)continue;const q=_.tokens[2*k+1],Me=re(n[ye.getForeground(q)],o),dt=ye.getFontStyle(q),Ce={content:f.substring(x,M),offset:E+x,color:Me,fontStyle:dt};if(i.includeExplanation){const Z=[];if(i.includeExplanation!=="scopeName")for(const X of r.settings){let ce;switch(typeof X.scope){case"string":ce=X.scope.split(/,/).map(ht=>ht.trim());break;case"object":ce=X.scope;break;default:continue}Z.push({settings:X,selectors:ce.map(ht=>ht.split(/ /))})}Ce.explanation=[];let cr=0;for(;x+cr<M;){const X=g[w],ce=f.substring(X.startIndex,X.endIndex);cr+=ce.length,Ce.explanation.push({content:ce,scopes:i.includeExplanation==="scopeName"?Ba(X.scopes):Ua(Z,X.scopes)}),w+=1}}p.push(Ce)}m.push(p),p=[],u=_.ruleStack}return{tokens:m,stateStack:u}}function Ba(t){return t.map(e=>({scopeName:e}))}function Ua(t,e){const r=[];for(let n=0,i=e.length;n<i;n++){const o=e[n];r[n]={scopeName:o,themeMatches:ja(t,o,e.slice(0,n))}}return r}function Ir(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function Fa(t,e,r){if(!Ir(t[t.length-1],e))return!1;let n=t.length-2,i=r.length-1;for(;n>=0&&i>=0;)Ir(t[n],r[i])&&(n-=1),i-=1;return n===-1}function ja(t,e,r){const n=[];for(const{selectors:i,settings:o}of t)for(const a of i)if(Fa(a,e,r)){n.push(o);break}return n}function rr(t,e,r){const n=Object.entries(r.themes).filter(s=>s[1]).map(s=>({color:s[0],theme:s[1]})),i=n.map(s=>{const u=st(t,e,{...r,theme:s.theme}),p=Pe(u),m=typeof s.theme=="string"?s.theme:s.theme.name;return{tokens:u,state:p,theme:m}}),o=Ha(...i.map(s=>s.tokens)),a=o[0].map((s,u)=>s.map((p,m)=>{const d={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in r&&r.includeExplanation&&(d.explanation=p.explanation),o.forEach((h,f)=>{const{content:E,explanation:b,offset:g,...w}=h[u][m];d.variants[n[f].color]=w}),d})),l=i[0].state?new be(Object.fromEntries(i.map(s=>[s.theme,s.state?.getInternalStack(s.theme)])),i[0].state.lang):void 0;return l&&at(a,l),a}function Ha(...t){const e=t.map(()=>[]),r=t.length;for(let n=0;n<t[0].length;n++){const i=t.map(s=>s[n]),o=e.map(()=>[]);e.forEach((s,u)=>s.push(o[u]));const a=i.map(()=>0),l=i.map(s=>s[0]);for(;l.every(s=>s);){const s=Math.min(...l.map(u=>u.content.length));for(let u=0;u<r;u++){const p=l[u];p.content.length===s?(o[u].push(p),a[u]+=1,l[u]=i[u][a[u]]):(o[u].push({...p,content:p.content.slice(0,s)}),l[u]={...p,content:p.content.slice(s),offset:p.offset+s})}}}return e}function Oe(t,e,r){let n,i,o,a,l,s;if("themes"in r){const{defaultColor:u="light",cssVariablePrefix:p="--shiki-",colorsRendering:m="css-vars"}=r,d=Object.entries(r.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,w)=>g.color===u?-1:w.color===u?1:0);if(d.length===0)throw new R("`themes` option must not be empty");const h=rr(t,e,r);if(s=Pe(h),u&&er!==u&&!d.find(g=>g.color===u))throw new R(`\`themes\` option must contain the defaultColor key \`${u}\``);const f=d.map(g=>t.getTheme(g.theme)),E=d.map(g=>g.color);o=h.map(g=>g.map(w=>Aa(w,E,p,u,m))),s&&at(o,s);const b=d.map(g=>tt(g.theme,r));i=Rr(d,f,b,p,u,"fg",m),n=Rr(d,f,b,p,u,"bg",m),a=`shiki-themes ${f.map(g=>g.name).join(" ")}`,l=u?void 0:[i,n].join(";")}else if("theme"in r){const u=tt(r.theme,r);o=st(t,e,r);const p=t.getTheme(r.theme);n=re(p.bg,u),i=re(p.fg,u),a=p.name,s=Pe(o)}else throw new R("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:n,themeName:a,rootStyle:l,grammarState:s}}function Rr(t,e,r,n,i,o,a){return t.map((l,s)=>{const u=re(e[s][o],r[s])||"inherit",p=`${n+l.color}${o==="bg"?"-bg":""}:${u}`;if(s===0&&i){if(i===er&&t.length>1){const m=t.findIndex(E=>E.color==="light"),d=t.findIndex(E=>E.color==="dark");if(m===-1||d===-1)throw new R('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const h=re(e[m][o],r[m])||"inherit",f=re(e[d][o],r[d])||"inherit";return`light-dark(${h}, ${f});${p}`}return u}return a==="css-vars"?p:null}).filter(l=>!!l).join(";")}function xe(t,e,r,n={meta:{},options:r,codeToHast:(i,o)=>xe(t,i,o),codeToTokens:(i,o)=>Oe(t,i,o)}){let i=e;for(const f of nt(r))i=f.preprocess?.call(n,i,r)||i;let{tokens:o,fg:a,bg:l,themeName:s,rootStyle:u,grammarState:p}=Oe(t,i,r);const{mergeWhitespaces:m=!0,mergeSameStyleTokens:d=!1}=r;m===!0?o=za(o):m==="never"&&(o=qa(o)),d&&(o=Xa(o));const h={...n,get source(){return i}};for(const f of nt(r))o=f.tokens?.call(h,o)||o;return Wa(o,{...r,fg:a,bg:l,themeName:s,rootStyle:r.rootStyle===!1?!1:r.rootStyle??u},h,p)}function Wa(t,e,r,n=Pe(t)){const i=nt(e),o=[],a={type:"root",children:[]},{structure:l="classic",tabindex:s="0"}=e,u={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?u.style=e.rootStyle:u.style=`background-color:${e.bg};color:${e.fg}`),s!==!1&&s!=null&&(u.tabindex=s.toString());for(const[E,b]of Object.entries(e.meta||{}))E.startsWith("_")||(u[E]=b);let p={type:"element",tagName:"pre",properties:u,children:[],data:e.data},m={type:"element",tagName:"code",properties:{},children:o};const d=[],h={...r,structure:l,addClassToHast:Pn,get source(){return r.source},get tokens(){return t},get options(){return e},get root(){return a},get pre(){return p},get code(){return m},get lines(){return d}};if(t.forEach((E,b)=>{b&&(l==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:`
|
|
13
|
+
`}));let g={type:"element",tagName:"span",properties:{class:"line"},children:[]},w=0;for(const _ of E){let v={type:"element",tagName:"span",properties:{..._.htmlAttrs},children:[{type:"text",value:_.content}]};const k=Ut(_.htmlStyle||rt(_));k&&(v.properties.style=k);for(const x of i)v=x?.span?.call(h,v,b+1,w,g,_)||v;l==="inline"?a.children.push(v):l==="classic"&&g.children.push(v),w+=_.content.length}if(l==="classic"){for(const _ of i)g=_?.line?.call(h,g,b+1)||g;d.push(g),o.push(g)}else l==="inline"&&d.push(g)}),l==="classic"){for(const E of i)m=E?.code?.call(h,m)||m;p.children.push(m);for(const E of i)p=E?.pre?.call(h,p)||p;a.children.push(p)}else if(l==="inline"){const E=[];let b={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const _ of a.children)_.type==="element"&&_.tagName==="br"?(E.push(b),b={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(_.type==="element"||_.type==="text")&&b.children.push(_);E.push(b);let w={type:"element",tagName:"code",properties:{},children:E};for(const _ of i)w=_?.code?.call(h,w)||w;a.children=[];for(let _=0;_<w.children.length;_++){_>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});const v=w.children[_];v.type==="element"&&a.children.push(...v.children)}}let f=a;for(const E of i)f=E?.root?.call(h,f)||f;return n&&at(f,n),f}function za(t){return t.map(e=>{const r=[];let n="",i;return e.forEach((o,a)=>{const s=!(o.fontStyle&&(o.fontStyle&V.Underline||o.fontStyle&V.Strikethrough));s&&o.content.match(/^\s+$/)&&e[a+1]?(i===void 0&&(i=o.offset),n+=o.content):n?(s?r.push({...o,offset:i,content:n+o.content}):r.push({content:n,offset:i},o),i=void 0,n=""):r.push(o)}),r})}function qa(t){return t.map(e=>e.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const n=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return r;const[,i,o,a]=n;if(!i&&!a)return r;const l=[{...r,offset:r.offset+i.length,content:o}];return i&&l.unshift({content:i,offset:r.offset}),a&&l.push({content:a,offset:r.offset+i.length+o.length}),l}))}function Xa(t){return t.map(e=>{const r=[];for(const n of e){if(r.length===0){r.push({...n});continue}const i=r[r.length-1],o=Ut(i.htmlStyle||rt(i)),a=Ut(n.htmlStyle||rt(n)),l=i.fontStyle&&(i.fontStyle&V.Underline||i.fontStyle&V.Strikethrough),s=n.fontStyle&&(n.fontStyle&V.Underline||n.fontStyle&V.Strikethrough);!l&&!s&&o===a?i.content+=n.content:r.push({...n})}return r})}const Ka=fa;function Nn(t,e,r){const n={meta:{},options:r,codeToHast:(o,a)=>xe(t,o,a),codeToTokens:(o,a)=>Oe(t,o,a)};let i=Ka(xe(t,e,r,n));for(const o of nt(r))i=o.postprocess?.call(n,i,r)||i;return i}const Tr={light:"#333333",dark:"#bbbbbb"},Pr={light:"#fffffe",dark:"#1e1e1e"},Or="__shiki_resolved";function nr(t){if(t?.[Or])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:r,fg:n}=e;if(!r||!n){const l=e.settings?e.settings.find(s=>!s.name&&!s.scope):void 0;l?.settings?.foreground&&(n=l.settings.foreground),l?.settings?.background&&(r=l.settings.background),!n&&e?.colors?.["editor.foreground"]&&(n=e.colors["editor.foreground"]),!r&&e?.colors?.["editor.background"]&&(r=e.colors["editor.background"]),n||(n=e.type==="light"?Tr.light:Tr.dark),r||(r=e.type==="light"?Pr.light:Pr.dark),e.fg=n,e.bg=r}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const o=new Map;function a(l){if(o.has(l))return o.get(l);i+=1;const s=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${s}`]?a(l):(o.set(l,s),s)}e.settings=e.settings.map(l=>{const s=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),u=l.settings?.background&&!l.settings.background.startsWith("#");if(!s&&!u)return l;const p={...l,settings:{...l.settings}};if(s){const m=a(l.settings.foreground);e.colorReplacements[m]=l.settings.foreground,p.settings.foreground=m}if(u){const m=a(l.settings.background);e.colorReplacements[m]=l.settings.background,p.settings.background=m}return p});for(const l of Object.keys(e.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!e.colors[l]?.startsWith("#")){const s=a(e.colors[l]);e.colorReplacements[s]=e.colors[l],e.colors[l]=s}return Object.defineProperty(e,Or,{enumerable:!1,writable:!1,value:!0}),e}async function $n(t){return Array.from(new Set((await Promise.all(t.filter(e=>!Rn(e)).map(async e=>await In(e).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function Vn(t){return(await Promise.all(t.map(async r=>Tn(r)?null:nr(await In(r))))).filter(r=>!!r)}let Xe=3,Mn=!1;function hu(t=!0,e=!1){Xe=t,Mn=e}function Qa(t,e=3){if(Xe&&!(typeof Xe=="number"&&e>Xe)){if(Mn)throw new Error(`[SHIKI DEPRECATE]: ${t}`);console.trace(`[SHIKI DEPRECATE]: ${t}`)}}let fe=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Gn(t,e){if(!e)return t;if(e[t]){const r=new Set([t]);for(;e[t];){if(t=e[t],r.has(t))throw new fe(`Circular alias \`${Array.from(r).join(" -> ")} -> ${t}\``);r.add(t)}}return t}class Ja extends eo{constructor(e,r,n,i={}){super(e),this._resolver=e,this._themes=r,this._langs=n,this._alias=i,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const r=nr(e);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let r=this._textmateThemeCache.get(e);r||(r=Qe.createFromRawTheme(e),this._textmateThemeCache.set(e,r)),this._syncRegistry.setTheme(r)}getGrammar(e){return e=Gn(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const r=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(o=>{this._alias[o]=e.name}),this._loadedLanguagesCache=null,r.size)for(const o of r)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const r=Array.from(this._langGraph.entries()),n=r.filter(([i,o])=>!o);if(n.length){const i=r.filter(([o,a])=>a?(a.embeddedLanguages||a.embeddedLangs)?.some(s=>n.map(([u])=>u).includes(s)):!1).filter(o=>!n.includes(o));throw new fe(`Missing languages ${n.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[i,o]of r)this._resolver.addLanguage(o);for(const[i,o]of r)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const r=e.embeddedLanguages??e.embeddedLangs;if(r)for(const n of r)this._langGraph.set(n,this._langMap.get(n))}}class Ya{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,r){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},r.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(r=>{this._langs.set(r,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(e.scopeName)})}getInjections(e){const r=e.split(".");let n=[];for(let i=1;i<=r.length;i++){const o=r.slice(0,i).join(".");n=[...n,...this._injections.get(o)||[]]}return n}}let Ae=0;function Bn(t){Ae+=1,t.warnings!==!1&&Ae>=10&&Ae%10===0&&console.warn(`[Shiki] ${Ae} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!t.engine)throw new fe("`engine` option is required for synchronous mode");const r=(t.langs||[]).flat(1),n=(t.themes||[]).flat(1).map(nr),i=new Ya(t.engine,r),o=new Ja(i,n,r,t.langAlias);let a;function l(_){return Gn(_,t.langAlias)}function s(_){g();const v=o.getGrammar(typeof _=="string"?_:_.name);if(!v)throw new fe(`Language \`${_}\` not found, you may need to load it first`);return v}function u(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};g();const v=o.getTheme(_);if(!v)throw new fe(`Theme \`${_}\` not found, you may need to load it first`);return v}function p(_){g();const v=u(_);a!==_&&(o.setTheme(v),a=_);const k=o.getColorMap();return{theme:v,colorMap:k}}function m(){return g(),o.getLoadedThemes()}function d(){return g(),o.getLoadedLanguages()}function h(..._){g(),o.loadLanguages(_.flat(1))}async function f(..._){return h(await $n(_))}function E(..._){g();for(const v of _.flat(1))o.loadTheme(v)}async function b(..._){return g(),E(await Vn(_))}function g(){if(e)throw new fe("Shiki instance has been disposed")}function w(){e||(e=!0,o.dispose(),Ae-=1)}return{setTheme:p,getTheme:u,getLanguage:s,getLoadedThemes:m,getLoadedLanguages:d,resolveLangAlias:l,loadLanguage:f,loadLanguageSync:h,loadTheme:b,loadThemeSync:E,dispose:w,[Symbol.dispose]:w}}async function Za(t){t.engine||Qa("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,r,n]=await Promise.all([Vn(t.themes||[]),$n(t.langs||[]),t.engine]);return Bn({...t,themes:e,langs:r,engine:n})}async function Un(t){const e=await Za(t);return{getLastGrammarState:(...r)=>Dn(e,...r),codeToTokensBase:(r,n)=>st(e,r,n),codeToTokensWithThemes:(r,n)=>rr(e,r,n),codeToTokens:(r,n)=>Oe(e,r,n),codeToHast:(r,n)=>xe(e,r,n),codeToHtml:(r,n)=>Nn(e,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function gu(t){const e=Bn(t);return{getLastGrammarState:(...r)=>Dn(e,...r),codeToTokensBase:(r,n)=>st(e,r,n),codeToTokensWithThemes:(r,n)=>rr(e,r,n),codeToTokens:(r,n)=>Oe(e,r,n),codeToHast:(r,n)=>xe(e,r,n),codeToHtml:(r,n)=>Nn(e,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function es(t){let e;async function r(n){if(e){const i=await e;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}else return e=t({...n,themes:n.themes||[],langs:n.langs||[]}),e}return r}const _u=es(Un);function Fn(t){const e=t.langs,r=t.themes,n=t.engine;async function i(o){function a(m){if(typeof m=="string"){if(m=o.langAlias?.[m]||m,Rn(m))return[];const d=e[m];if(!d)throw new R(`Language \`${m}\` is not included in this bundle. You may want to load it from external source.`);return d}return m}function l(m){if(Tn(m))return"none";if(typeof m=="string"){const d=r[m];if(!d)throw new R(`Theme \`${m}\` is not included in this bundle. You may want to load it from external source.`);return d}return m}const s=(o.themes??[]).map(m=>l(m)),u=(o.langs??[]).map(m=>a(m)),p=await Un({engine:o.engine??n(),...o,themes:s,langs:u});return{...p,loadLanguage(...m){return p.loadLanguage(...m.map(a))},loadTheme(...m){return p.loadTheme(...m.map(l))},getBundledLanguages(){return e},getBundledThemes(){return r}}}return i}function ts(t){let e;async function r(n={}){if(e){const i=await e;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}else{e=t({...n,themes:[],langs:[]});const i=await e;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}}return r}function rs(t,e){const r=ts(t);async function n(i,o){const a=await r({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),l=await e?.guessEmbeddedLanguages?.(i,o.lang,a);return l&&await a.loadLanguage(...l),a}return{getSingletonHighlighter(i){return r(i)},async codeToHtml(i,o){return(await n(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await n(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await n(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await n(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await n(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await r({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}const yu=Fn;function Eu(t={}){const{name:e="css-variables",variablePrefix:r="--shiki-",fontStyle:n=!0}=t,i=a=>t.variableDefaults?.[a]?`var(${r}${a}, ${t.variableDefaults[a]})`:`var(${r}${a})`,o={name:e,type:"dark",colors:{"editor.foreground":i("foreground"),"editor.background":i("background"),"terminal.ansiBlack":i("ansi-black"),"terminal.ansiRed":i("ansi-red"),"terminal.ansiGreen":i("ansi-green"),"terminal.ansiYellow":i("ansi-yellow"),"terminal.ansiBlue":i("ansi-blue"),"terminal.ansiMagenta":i("ansi-magenta"),"terminal.ansiCyan":i("ansi-cyan"),"terminal.ansiWhite":i("ansi-white"),"terminal.ansiBrightBlack":i("ansi-bright-black"),"terminal.ansiBrightRed":i("ansi-bright-red"),"terminal.ansiBrightGreen":i("ansi-bright-green"),"terminal.ansiBrightYellow":i("ansi-bright-yellow"),"terminal.ansiBrightBlue":i("ansi-bright-blue"),"terminal.ansiBrightMagenta":i("ansi-bright-magenta"),"terminal.ansiBrightCyan":i("ansi-bright-cyan"),"terminal.ansiBrightWhite":i("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:i("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:i("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:i("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:i("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:i("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:i("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:i("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:i("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:i("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:i("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:i("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:i("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:i("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:i("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:i("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:i("token-changed")}}]};return n||(o.tokenColors=o.tokenColors?.map(a=>(a.settings?.fontStyle&&delete a.settings.fontStyle,a))),o}const jn=[{id:"abap",name:"ABAP",import:(()=>c(()=>import("./BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",import:(()=>c(()=>import("./CoDkCxhg.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>c(()=>import("./bCR0ucgS.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>c(()=>import("./DxNHbxmM.js").then(t=>t.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>c(()=>import("./Cl0AqbOI.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>c(()=>import("./Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>c(()=>import("./D8_7TLub.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>c(()=>import("./Cn7AkR1O.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>c(()=>import("./Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>c(()=>import("./BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>c(()=>import("./Dv7Oe6Be.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>c(()=>import("./D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>c(()=>import("./DxSwrfjg.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>c(()=>import("./DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>c(()=>import("./BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>c(()=>import("./BkioyH1T.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>c(()=>import("./k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>c(()=>import("./uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>c(()=>import("./CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>c(()=>import("./Bmn6On1c.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>c(()=>import("./5X7smno1.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>c(()=>import("./CquLrc37.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>c(()=>import("./BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>c(()=>import("./VCDPK7BO.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>c(()=>import("./Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>c(()=>import("./CO1LY3CK.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>c(()=>import("./D53aC0YG.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>c(()=>import("./P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>c(()=>import("./D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>c(()=>import("./BYV0-3_D.js"),__vite__mapDeps([21,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>c(()=>import("./Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>c(()=>import("./DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>c(()=>import("./CxbxFI8M.js"),__vite__mapDeps([22,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>c(()=>import("./Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Coq",import:(()=>c(()=>import("./DkFqJrB1.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>c(()=>import("./Bp3cYrEr.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>c(()=>import("./fKv21gyL.js"),__vite__mapDeps([27,1,2,3,16,26,28]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>c(()=>import("./COcwbKMJ.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>c(()=>import("./DPfMkruS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>c(()=>import("./fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>c(()=>import("./D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>c(()=>import("./COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>c(()=>import("./85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>c(()=>import("./CF10PKvl.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>c(()=>import("./CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>c(()=>import("./BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>c(()=>import("./D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>c(()=>import("./BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>c(()=>import("./Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>c(()=>import("./BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>c(()=>import("./DZu-aV2c.js"),__vite__mapDeps([29,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>c(()=>import("./CpOuai2O.js"),__vite__mapDeps([30,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>c(()=>import("./CeZK1NFH.js"),__vite__mapDeps([31,25,26]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>c(()=>import("./C9XAeP06.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>c(()=>import("./CGscLIrv.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>c(()=>import("./CuPHTKiy.js"),__vite__mapDeps([39,40]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>c(()=>import("./BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>c(()=>import("./BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>c(()=>import("./C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>c(()=>import("./B7c-h3xW.js"),__vite__mapDeps([41,42]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>c(()=>import("./BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>c(()=>import("./BTifaqeh.js"),__vite__mapDeps([43,40]),import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>c(()=>import("./CenWIFCC.js"),__vite__mapDeps([44,45,46]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>c(()=>import("./C5YyOfLZ.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>c(()=>import("./DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>c(()=>import("./D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>c(()=>import("./DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>c(()=>import("./CxGSJlkm.js"),__vite__mapDeps([47,48]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>c(()=>import("./CSXwinHm.js"),__vite__mapDeps([49,28]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>c(()=>import("./BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>c(()=>import("./YqXBG_HV.js"),__vite__mapDeps([50,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>c(()=>import("./BR5kRUq4.js"),__vite__mapDeps([51,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>c(()=>import("./DZxFcAj9.js"),__vite__mapDeps([25,26]),import.meta.url))},{id:"gn",name:"GN",import:(()=>c(()=>import("./n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>c(()=>import("./DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>c(()=>import("./CxLEBnE3.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>c(()=>import("./C9oPPf7i.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>c(()=>import("./gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>c(()=>import("./CLZrNe3w.js"),__vite__mapDeps([52,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>c(()=>import("./CmIQRyeF.js"),__vite__mapDeps([34,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>c(()=>import("./m17aaUwq.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>c(()=>import("./Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>c(()=>import("./CzTSHFRz.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>c(()=>import("./BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>c(()=>import("./D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>c(()=>import("./D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>c(()=>import("./CnnebwVN.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>c(()=>import("./DGP4VlC8.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>c(()=>import("./CufHLc7y.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>c(()=>import("./CYsAdtH9.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>c(()=>import("./DWrx1Km3.js"),__vite__mapDeps([57,58]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>c(()=>import("./DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>c(()=>import("./DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>c(()=>import("./BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>c(()=>import("./CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>c(()=>import("./wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>c(()=>import("./CXZktZb0.js"),__vite__mapDeps([59,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>c(()=>import("./Br6cN0cg.js"),__vite__mapDeps([60,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>c(()=>import("./Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>c(()=>import("./C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>c(()=>import("./Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>c(()=>import("./DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>c(()=>import("./DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>c(()=>import("./C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>c(()=>import("./g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>c(()=>import("./W9tJ9s81.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>c(()=>import("./DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>c(()=>import("./BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>c(()=>import("./DZf3V79B.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>c(()=>import("./DMwsHuHA.js"),__vite__mapDeps([63,64,62]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>c(()=>import("./BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>c(()=>import("./B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>c(()=>import("./mjskCLCv.js"),__vite__mapDeps([65,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>c(()=>import("./BtvRca6l.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>c(()=>import("./2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>c(()=>import("./BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>c(()=>import("./CnsnAmq5.js"),__vite__mapDeps([37,26]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>c(()=>import("./C-HG3fhB.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>c(()=>import("./CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>c(()=>import("./Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>c(()=>import("./83L43bj1.js"),__vite__mapDeps([66,3,67,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>c(()=>import("./D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>c(()=>import("./TsXTqZ29.js"),__vite__mapDeps([68,40,38,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>c(()=>import("./Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>c(()=>import("./mWjccvbQ.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>c(()=>import("./CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>c(()=>import("./B93PlW-d.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>c(()=>import("./Ba13S78F.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>c(()=>import("./IF9eRakj.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>c(()=>import("./DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>c(()=>import("./BrzmwbiE.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>c(()=>import("./Dph4kLrZ.js"),__vite__mapDeps([69,37,26]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>c(()=>import("./DhmSosst.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>c(()=>import("./CwoSXNpI.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>c(()=>import("./C-sUppwS.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>c(()=>import("./DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>c(()=>import("./CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>c(()=>import("./C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>c(()=>import("./BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>c(()=>import("./C4EeE6gA.js"),[],import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>c(()=>import("./D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>c(()=>import("./BzTr9Aqm.js"),__vite__mapDeps([71,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>c(()=>import("./DJjDtW9f.js"),__vite__mapDeps([72,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>c(()=>import("./u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>c(()=>import("./ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>c(()=>import("./BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>c(()=>import("./C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>c(()=>import("./CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>c(()=>import("./CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>c(()=>import("./Dpen1YoG.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>c(()=>import("./Dd19v3D-.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>c(()=>import("./CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>c(()=>import("./C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>c(()=>import("./BLmx8bSh.js"),__vite__mapDeps([73,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>c(()=>import("./BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>c(()=>import("./CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>c(()=>import("./B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>c(()=>import("./BVQ-GDCI.js"),__vite__mapDeps([74,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>c(()=>import("./C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>c(()=>import("./IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>c(()=>import("./Dspwwk_N.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>c(()=>import("./BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>c(()=>import("./DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>c(()=>import("./DsumFeuD.js"),__vite__mapDeps([75,1,2,3,76]),import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>c(()=>import("./C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>c(()=>import("./CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>c(()=>import("./C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>c(()=>import("./BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>c(()=>import("./BhRPY-oY.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>c(()=>import("./BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>c(()=>import("./DQwYQDb2.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>c(()=>import("./Bhrxn6JZ.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>c(()=>import("./B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>c(()=>import("./CG8Ifv2g.js"),__vite__mapDeps([79,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>c(()=>import("./Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>c(()=>import("./C151Ov-r.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>c(()=>import("./C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>c(()=>import("./2EtD6e53.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>c(()=>import("./DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>c(()=>import("./BqTXFGrv.js"),__vite__mapDeps([80,81]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>c(()=>import("./Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>c(()=>import("./Cq5zzVJU.js"),__vite__mapDeps([82,28]),import.meta.url))},{id:"smalltalk",name:"Smalltalk",import:(()=>c(()=>import("./BERRCDM3.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>c(()=>import("./rGO070M0.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>c(()=>import("./Dzze3sRP.js"),__vite__mapDeps([83,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>c(()=>import("./BRZ36xJF.js"),__vite__mapDeps([84,85]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>c(()=>import("./BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>c(()=>import("./BLtJtn59.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>c(()=>import("./_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>c(()=>import("./DM8c43g1.js"),__vite__mapDeps([86,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>c(()=>import("./BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>c(()=>import("./BH7IYjvW.js"),__vite__mapDeps([87,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>c(()=>import("./DYoxhk2S.js"),__vite__mapDeps([88,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>c(()=>import("./Dg5xB15N.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>c(()=>import("./CnnmHF94.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>c(()=>import("./4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>c(()=>import("./CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>c(()=>import("./QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>c(()=>import("./dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>c(()=>import("./CZhp0h8q.js"),__vite__mapDeps([89,90,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>c(()=>import("./BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>c(()=>import("./CQ8jqdy-.js"),__vite__mapDeps([64,62]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>c(()=>import("./vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>c(()=>import("./Cm3UrAx6.js"),__vite__mapDeps([91,11,3,2,25,26,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>c(()=>import("./B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>c(()=>import("./COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>c(()=>import("./BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>c(()=>import("./RNghxpo_.js"),__vite__mapDeps([92,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>c(()=>import("./BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>c(()=>import("./BGHnOYBU.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>c(()=>import("./DHCkPAjA.js"),[],import.meta.url))},{id:"v",name:"V",import:(()=>c(()=>import("./BcVCzyr7.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>c(()=>import("./CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>c(()=>import("./D17OF-Vu.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>c(()=>import("./BQ8w6xss.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>c(()=>import("./CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>c(()=>import("./CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>c(()=>import("./DEthMvLe.js"),__vite__mapDeps([93,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>c(()=>import("./DqQDbK_p.js"),__vite__mapDeps([94,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>c(()=>import("./CW8IKDeL.js"),__vite__mapDeps([95,3,5,67,96,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>c(()=>import("./CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>c(()=>import("./MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>c(()=>import("./BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>c(()=>import("./Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>c(()=>import("./BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>c(()=>import("./5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>c(()=>import("./lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>c(()=>import("./BGJmEYvX.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>c(()=>import("./yv6CvBhz.js"),__vite__mapDeps([97,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>c(()=>import("./Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>c(()=>import("./DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>c(()=>import("./VOosw3JB.js"),[],import.meta.url))}],ns=Object.fromEntries(jn.map(t=>[t.id,t.import])),is=Object.fromEntries(jn.flatMap(t=>t.aliases?.map(e=>[e,t.import])||[])),os={...ns,...is},as=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>c(()=>import("./C4gqWexZ.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>c(()=>import("./D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>c(()=>import("./CMjwMIkn.js"),[],import.meta.url))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>c(()=>import("./C47S-Tmv.js"),[],import.meta.url))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>c(()=>import("./CjoLj4QM.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>c(()=>import("./DFWUc33u.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>c(()=>import("./C9dUb6Cb.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>c(()=>import("./DQyhUUbL.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>c(()=>import("./D87Tk5Gz.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>c(()=>import("./C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>c(()=>import("./BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>c(()=>import("./BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>c(()=>import("./BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>c(()=>import("./C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>c(()=>import("./DHJKELXO.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>c(()=>import("./Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>c(()=>import("./DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>c(()=>import("./E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>c(()=>import("./DAi9KRSo.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>c(()=>import("./D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>c(()=>import("./BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>c(()=>import("./CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>c(()=>import("./GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>c(()=>import("./CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>c(()=>import("./CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>c(()=>import("./DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>c(()=>import("./hJgmCMqR.js"),[],import.meta.url))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>c(()=>import("./BUw7H-hv.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>c(()=>import("./DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>c(()=>import("./CkXjmgJE.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>c(()=>import("./CfQXZHmo.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>c(()=>import("./DWedfzmr.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>c(()=>import("./DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>c(()=>import("./B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>c(()=>import("./D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>c(()=>import("./BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>c(()=>import("./B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>c(()=>import("./CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>c(()=>import("./Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>c(()=>import("./CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>c(()=>import("./CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>c(()=>import("./D4h5O-jR.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>c(()=>import("./C39BiMTA.js"),[],import.meta.url))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>c(()=>import("./CMTm3GFP.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>c(()=>import("./Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>c(()=>import("./DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>c(()=>import("./C3Wv6jpd.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>c(()=>import("./3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>c(()=>import("./CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>c(()=>import("./bN70gL4F.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>c(()=>import("./qdsjHGoJ.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>c(()=>import("./DHQR4-dF.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>c(()=>import("./D4_iv3hh.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>c(()=>import("./BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>c(()=>import("./DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>c(()=>import("./Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>c(()=>import("./DXbdFlpD.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>c(()=>import("./L9t79GZl.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>c(()=>import("./CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>c(()=>import("./hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>c(()=>import("./DU1UobuO.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>c(()=>import("./Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>c(()=>import("./D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>c(()=>import("./CVO1_9PV.js"),[],import.meta.url))}],ss=Object.fromEntries(as.map(t=>[t.id,t.import]));class ir extends Error{constructor(e){super(e),this.name="ShikiError"}}function ls(){return 2147483648}function us(){return typeof performance<"u"?performance.now():Date.now()}const cs=(t,e)=>t+(e-t%e)%e;async function ps(t){let e,r;const n={};function i(h){r=h,n.HEAPU8=new Uint8Array(h),n.HEAPU32=new Uint32Array(h)}function o(h,f,E){n.HEAPU8.copyWithin(h,f,f+E)}function a(h){try{return e.grow(h-r.byteLength+65535>>>16),i(e.buffer),1}catch{}}function l(h){const f=n.HEAPU8.length;h=h>>>0;const E=ls();if(h>E)return!1;for(let b=1;b<=4;b*=2){let g=f*(1+.2/b);g=Math.min(g,h+100663296);const w=Math.min(E,cs(Math.max(h,g),65536));if(a(w))return!0}return!1}const s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(h,f,E=1024){const b=f+E;let g=f;for(;h[g]&&!(g>=b);)++g;if(g-f>16&&h.buffer&&s)return s.decode(h.subarray(f,g));let w="";for(;f<g;){let _=h[f++];if(!(_&128)){w+=String.fromCharCode(_);continue}const v=h[f++]&63;if((_&224)===192){w+=String.fromCharCode((_&31)<<6|v);continue}const k=h[f++]&63;if((_&240)===224?_=(_&15)<<12|v<<6|k:_=(_&7)<<18|v<<12|k<<6|h[f++]&63,_<65536)w+=String.fromCharCode(_);else{const x=_-65536;w+=String.fromCharCode(55296|x>>10,56320|x&1023)}}return w}function p(h,f){return h?u(n.HEAPU8,h,f):""}const m={emscripten_get_now:us,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function d(){const f=await t({env:m,wasi_snapshot_preview1:m});e=f.memory,i(e.buffer),Object.assign(n,f),n.UTF8ToString=p}return await d(),n}var ms=Object.defineProperty,ds=(t,e,r)=>e in t?ms(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T=(t,e,r)=>ds(t,typeof e!="symbol"?e+"":e,r);let D=null;function hs(t){throw new ir(t.UTF8ToString(t.getLastOnigError()))}class lt{constructor(e){T(this,"utf16Length"),T(this,"utf8Length"),T(this,"utf16Value"),T(this,"utf8Value"),T(this,"utf16OffsetToUtf8"),T(this,"utf8OffsetToUtf16");const r=e.length,n=lt._utf8ByteLength(e),i=n!==r,o=i?new Uint32Array(r+1):null;i&&(o[r]=n);const a=i?new Uint32Array(n+1):null;i&&(a[n]=r);const l=new Uint8Array(n);let s=0;for(let u=0;u<r;u++){const p=e.charCodeAt(u);let m=p,d=!1;if(p>=55296&&p<=56319&&u+1<r){const h=e.charCodeAt(u+1);h>=56320&&h<=57343&&(m=(p-55296<<10)+65536|h-56320,d=!0)}i&&(o[u]=s,d&&(o[u+1]=s),m<=127?a[s+0]=u:m<=2047?(a[s+0]=u,a[s+1]=u):m<=65535?(a[s+0]=u,a[s+1]=u,a[s+2]=u):(a[s+0]=u,a[s+1]=u,a[s+2]=u,a[s+3]=u)),m<=127?l[s++]=m:m<=2047?(l[s++]=192|(m&1984)>>>6,l[s++]=128|(m&63)>>>0):m<=65535?(l[s++]=224|(m&61440)>>>12,l[s++]=128|(m&4032)>>>6,l[s++]=128|(m&63)>>>0):(l[s++]=240|(m&1835008)>>>18,l[s++]=128|(m&258048)>>>12,l[s++]=128|(m&4032)>>>6,l[s++]=128|(m&63)>>>0),d&&u++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let r=0;for(let n=0,i=e.length;n<i;n++){const o=e.charCodeAt(n);let a=o,l=!1;if(o>=55296&&o<=56319&&n+1<i){const s=e.charCodeAt(n+1);s>=56320&&s<=57343&&(a=(o-55296<<10)+65536|s-56320,l=!0)}a<=127?r+=1:a<=2047?r+=2:a<=65535?r+=3:r+=4,l&&n++}return r}createString(e){const r=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,r),r}}const ut=class z{constructor(e){if(T(this,"id",++z.LAST_ID),T(this,"_onigBinding"),T(this,"content"),T(this,"utf16Length"),T(this,"utf8Length"),T(this,"utf16OffsetToUtf8"),T(this,"utf8OffsetToUtf16"),T(this,"ptr"),!D)throw new ir("Must invoke loadWasm first.");this._onigBinding=D,this.content=e;const r=new lt(e);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!z._sharedPtrInUse?(z._sharedPtr||(z._sharedPtr=D.omalloc(1e4)),z._sharedPtrInUse=!0,D.HEAPU8.set(r.utf8Value,z._sharedPtr),this.ptr=z._sharedPtr):this.ptr=r.createString(D)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===z._sharedPtr?z._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};T(ut,"LAST_ID",0);T(ut,"_sharedPtr",0);T(ut,"_sharedPtrInUse",!1);let Hn=ut;class fs{constructor(e){if(T(this,"_onigBinding"),T(this,"_ptr"),!D)throw new ir("Must invoke loadWasm first.");const r=[],n=[];for(let l=0,s=e.length;l<s;l++){const u=new lt(e[l]);r[l]=u.createString(D),n[l]=u.utf8Length}const i=D.omalloc(4*e.length);D.HEAPU32.set(r,i/4);const o=D.omalloc(4*e.length);D.HEAPU32.set(n,o/4);const a=D.createOnigScanner(i,o,e.length);for(let l=0,s=e.length;l<s;l++)D.ofree(r[l]);D.ofree(o),D.ofree(i),a===0&&hs(D),this._onigBinding=D,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,r,n){let i=0;if(typeof n=="number"&&(i=n),typeof e=="string"){e=new Hn(e);const o=this._findNextMatchSync(e,r,!1,i);return e.dispose(),o}return this._findNextMatchSync(e,r,!1,i)}_findNextMatchSync(e,r,n,i){const o=this._onigBinding,a=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(r),i);if(a===0)return null;const l=o.HEAPU32;let s=a/4;const u=l[s++],p=l[s++],m=[];for(let d=0;d<p;d++){const h=e.convertUtf8OffsetToUtf16(l[s++]),f=e.convertUtf8OffsetToUtf16(l[s++]);m[d]={start:h,end:f,length:f-h}}return{index:u,captureIndices:m}}}function gs(t){return typeof t.instantiator=="function"}function _s(t){return typeof t.default=="function"}function ys(t){return typeof t.data<"u"}function Es(t){return typeof Response<"u"&&t instanceof Response}function bs(t){return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&Buffer.isBuffer?.(t)||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let Fe;function ws(t){if(Fe)return Fe;async function e(){D=await ps(async r=>{let n=t;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),gs(n)?n=await n.instantiator(r):_s(n)?n=await n.default(r):(ys(n)&&(n=n.data),Es(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await vs(n)(r):n=await Cs(n)(r):bs(n)?n=await vt(n)(r):n instanceof WebAssembly.Module?n=await vt(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await vt(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return Fe=e(),Fe}function vt(t){return e=>WebAssembly.instantiate(t,e)}function vs(t){return e=>WebAssembly.instantiateStreaming(t,e)}function Cs(t){return async e=>{const r=await t.arrayBuffer();return WebAssembly.instantiate(r,e)}}async function As(t){return t&&await ws(t),{createScanner(e){return new fs(e.map(r=>typeof r=="string"?r:r.source))},createString(e){return new Hn(e)}}}const ks=Fn({langs:os,themes:ss,engine:()=>As(c(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:bu,codeToHast:wu,codeToTokens:vu,codeToTokensBase:Cu,codeToTokensWithThemes:Au,getSingletonHighlighter:ku,getLastGrammarState:Su}=rs(ks,{guessEmbeddedLanguages:ba});function we(t){if([...t].length!==1)throw new Error(`Expected "${t}" to be a single code point`);return t.codePointAt(0)}function Ss(t,e,r){return t.has(e)||t.set(e,r),t.get(e)}const or=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),N=String.raw;function ve(t,e){if(t==null)throw new Error(e??"Value expected");return t}const Wn=N`\[\^?`,zn=`c.? | C(?:-.?)?|${N`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${N`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${N`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${N`o\{[^\}]*\}?`}|${N`\d{1,3}`}`,ar=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,je=new RegExp(N`
|
|
14
|
+
\\ (?:
|
|
15
|
+
${zn}
|
|
16
|
+
| [gk]<[^>]*>?
|
|
17
|
+
| [gk]'[^']*'?
|
|
18
|
+
| .
|
|
19
|
+
)
|
|
20
|
+
| \( (?:
|
|
21
|
+
\? (?:
|
|
22
|
+
[:=!>({]
|
|
23
|
+
| <[=!]
|
|
24
|
+
| <[^>]*>
|
|
25
|
+
| '[^']*'
|
|
26
|
+
| ~\|?
|
|
27
|
+
| #(?:[^)\\]|\\.?)*
|
|
28
|
+
| [^:)]*[:)]
|
|
29
|
+
)?
|
|
30
|
+
| \*[^\)]*\)?
|
|
31
|
+
)?
|
|
32
|
+
| (?:${ar.source})+
|
|
33
|
+
| ${Wn}
|
|
34
|
+
| .
|
|
35
|
+
`.replace(/\s+/g,""),"gsu"),Ct=new RegExp(N`
|
|
36
|
+
\\ (?:
|
|
37
|
+
${zn}
|
|
38
|
+
| .
|
|
39
|
+
)
|
|
40
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
41
|
+
| ${Wn}
|
|
42
|
+
| &&
|
|
43
|
+
| .
|
|
44
|
+
`.replace(/\s+/g,""),"gsu");function Ls(t,e={}){const r={flags:"",...e,rules:{captureGroup:!1,singleline:!1,...e.rules}};if(typeof t!="string")throw new Error("String expected as pattern");const n=zs(r.flags),i=[n.extended],o={captureGroup:r.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(m){i.push(m)},replaceCurrentModX(m){i[i.length-1]=m},singleline:r.rules.singleline};let a=[],l;for(je.lastIndex=0;l=je.exec(t);){const m=Is(o,t,l[0],je.lastIndex);m.tokens?a.push(...m.tokens):m.token&&a.push(m.token),m.lastIndex!==void 0&&(je.lastIndex=m.lastIndex)}const s=[];let u=0;a.filter(m=>m.type==="GroupOpen").forEach(m=>{m.kind==="capturing"?m.number=++u:m.raw==="("&&s.push(m)}),u||s.forEach((m,d)=>{m.kind="capturing",m.number=d+1});const p=u||s.length;return{tokens:a.map(m=>m.type==="EscapedNumber"?Xs(m,p):m).flat(),flags:n}}function Is(t,e,r,n){const[i,o]=r;if(r==="["||r==="[^"){const a=Rs(e,r,n);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(o))return{token:xr(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:Gs(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:Xn(r)}}if(o==="K")return{token:Kn("keep",r)};if(o==="N"||o==="R")return{token:se("newline",r,{negate:o==="N"})};if(o==="O")return{token:se("any",r)};if(o==="X")return{token:se("text_segment",r)};const a=qn(r,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(i==="("){if(o==="*")return{token:js(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(e[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:Fs(r,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,r==="("&&!t.captureGroup||r==="(?:")return{token:de("group",r)};if(r==="(?>")return{token:de("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:de(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&t.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:de("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:de("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:$s(r)}}if(t.getCurrentModX()){if(r==="#"){const a=e.indexOf(`
|
|
45
|
+
`,n);return{lastIndex:a===-1?e.length:a}}if(/^\s$/.test(r)){const a=/\s+/y;return a.lastIndex=n,{lastIndex:a.exec(e)?a.lastIndex:n}}}if(r===".")return{token:se("dot",r)};if(r==="^"||r==="$"){const a=t.singleline?{"^":N`\A`,$:N`\Z`}[r]:r;return{token:xr(a,r)}}return r==="|"?{token:Ps(r)}:ar.test(r)?{tokens:Ks(r)}:{token:J(we(r),r)}}function Rs(t,e,r){const n=[Dr(e[1]==="^",e)];let i=1,o;for(Ct.lastIndex=r;o=Ct.exec(t);){const a=o[0];if(a[0]==="["&&a[1]!==":")i++,n.push(Dr(a[1]==="^",a));else if(a==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(J(93,a));else if(i--,n.push(Os(a)),!i)break}else{const l=Ts(a);Array.isArray(l)?n.push(...l):n.push(l)}}return{tokens:n,lastIndex:Ct.lastIndex||t.length}}function Ts(t){if(t[0]==="\\")return qn(t,{inCharClass:!0});if(t[0]==="["){const e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!or.has(e.groups.name))throw new Error(`Invalid POSIX class "${t}"`);return se("posix",t,{value:e.groups.name,negate:!!e.groups.negate})}return t==="-"?xs(t):t==="&&"?Ds(t):J(we(t),t)}function qn(t,{inCharClass:e}){const r=t[1];if(r==="c"||r==="C")return Us(t);if("dDhHsSwW".includes(r))return Hs(t);if(t.startsWith(N`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw new Error(`Incomplete or invalid Unicode property "${t}"`);return Ws(t)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(t))try{const n=t.split(/\\x/).slice(1).map(a=>parseInt(a,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),o=new TextEncoder;return[...i].map(a=>{const l=[...o.encode(a)].map(s=>`\\x${s.toString(16)}`).join("");return J(we(a),l)})}catch{throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return J(qs(t),t);if(Nr.has(r))return J(Nr.get(r),t);if(/\d/.test(r))return Ns(e,t);if(t==="\\")throw new Error(N`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${t}"`);if([...t].length===2)return J(t.codePointAt(1),t);throw new Error(`Unexpected escape "${t}"`)}function Ps(t){return{type:"Alternator",raw:t}}function xr(t,e){return{type:"Assertion",kind:t,raw:e}}function Xn(t){return{type:"Backreference",raw:t}}function J(t,e){return{type:"Character",value:t,raw:e}}function Os(t){return{type:"CharacterClassClose",raw:t}}function xs(t){return{type:"CharacterClassHyphen",raw:t}}function Ds(t){return{type:"CharacterClassIntersector",raw:t}}function Dr(t,e){return{type:"CharacterClassOpen",negate:t,raw:e}}function se(t,e,r={}){return{type:"CharacterSet",kind:t,...r,raw:e}}function Kn(t,e,r={}){return t==="keep"?{type:"Directive",kind:t,raw:e}:{type:"Directive",kind:t,flags:ve(r.flags),raw:e}}function Ns(t,e){return{type:"EscapedNumber",inCharClass:t,raw:e}}function $s(t){return{type:"GroupClose",raw:t}}function de(t,e,r={}){return{type:"GroupOpen",kind:t,...r,raw:e}}function Vs(t,e,r,n){return{type:"NamedCallout",kind:t,tag:e,arguments:r,raw:n}}function Ms(t,e,r,n){return{type:"Quantifier",kind:t,min:e,max:r,raw:n}}function Gs(t){return{type:"Subroutine",raw:t}}const Bs=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Nr=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Us(t){const e=t[1]==="c"?t[2]:t[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${t}"`);return J(we(e.toUpperCase())-64,t)}function Fs(t,e){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(t).groups;n??="";const i=(e.getCurrentModX()||r.includes("x"))&&!n.includes("x"),o=Vr(r),a=Vr(n),l={};if(o&&(l.enable=o),a&&(l.disable=a),t.endsWith(")"))return e.replaceCurrentModX(i),Kn("flags",t,{flags:l});if(t.endsWith(":"))return e.pushModX(i),e.numOpenGroups++,de("group",t,{...(o||a)&&{flags:l}});throw new Error(`Unexpected flag modifier "${t}"`)}function js(t){const e=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(t);if(!e)throw new Error(`Incomplete or invalid named callout "${t}"`);const{name:r,tag:n,args:i}=e.groups;if(!r)throw new Error(`Invalid named callout "${t}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${t}"`);const o=i?i.split(",").filter(p=>p!=="").map(p=>/^[+-]?\d+$/.test(p)?+p:p):[],[a,l,s]=o,u=Bs.has(r)?r.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(o.length===2&&(typeof l=="number"||!/^[<>X]$/.test(l)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${l}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof l=="number"||!/^(?:[<>!=]=|[<>])$/.test(l))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${l}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument three must be a tag or number "${s}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${u}"`)}return Vs(u,n??null,i?.split(",")??null,t)}function $r(t){let e=null,r,n;if(t[0]==="{"){const{minStr:i,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(t).groups,a=1e5;if(+i>a||o&&+o>a)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+i,n=o===void 0?+i:o===""?1/0:+o,r>n&&(e="possessive",[r,n]=[n,r]),t.endsWith("?")){if(e==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');e="lazy"}else e||(e="greedy")}else r=t[0]==="+"?1:0,n=t[0]==="?"?1:1/0,e=t[1]==="+"?"possessive":t[1]==="?"?"lazy":"greedy";return Ms(e,r,n,t)}function Hs(t){const e=t[1].toLowerCase();return se({d:"digit",h:"hex",s:"space",w:"word"}[e],t,{negate:t[1]!==e})}function Ws(t){const{p:e,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(t).groups;return se("property",t,{value:n,negate:e==="P"&&!r||e==="p"&&!!r})}function Vr(t){const e={};return t.includes("i")&&(e.ignoreCase=!0),t.includes("m")&&(e.dotAll=!0),t.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function zs(t){const e={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<t.length;r++){const n=t[r];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(t.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');e.textSegmentMode=t[r+2]==="g"?"grapheme":"word",r+=3;continue}e[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return e}function qs(t){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(t))throw new Error(`Incomplete or invalid escape "${t}"`);const e=t[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(t).groups.hex:t.slice(2);return parseInt(e,16)}function Xs(t,e){const{raw:r,inCharClass:n}=t,i=r.slice(1);if(!n&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=e))return[Xn(r)];const o=[],a=i.match(/^[0-7]+|\d/g);for(let l=0;l<a.length;l++){const s=a[l];let u;if(l===0&&s!=="8"&&s!=="9"){if(u=parseInt(s,8),u>127)throw new Error(N`Octal encoded byte above 177 unsupported "${r}"`)}else u=we(s);o.push(J(u,(l===0?"\\":"")+s))}return o}function Ks(t){const e=[],r=new RegExp(ar,"gy");let n;for(;n=r.exec(t);){const i=n[0];if(i[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(o){const{min:a,max:l}=o.groups;if(+a>+l&&i.endsWith("?")){r.lastIndex--,e.push($r(i.slice(0,-1)));continue}}}e.push($r(i))}return e}function Qn(t,e){if(!Array.isArray(t.body))throw new Error("Expected node with body array");if(t.body.length!==1)return!1;const r=t.body[0];return!e||Object.keys(e).every(n=>e[n]===r[n])}function Qs(t){return Js.has(t.type)}const Js=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Jn(t,e={}){const r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e,rules:{captureGroup:!1,singleline:!1,...e.rules}},n=Ls(t,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),i=(d,h)=>{const f=n.tokens[o.nextIndex];switch(o.parent=d,o.nextIndex++,f.type){case"Alternator":return le();case"Assertion":return Ys(f);case"Backreference":return Zs(f,o);case"Character":return ct(f.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return el(f,o,h);case"CharacterClassOpen":return tl(f,o,h);case"CharacterSet":return rl(f,o);case"Directive":return ll(f.kind,{flags:f.flags});case"GroupOpen":return nl(f,o,h);case"NamedCallout":return cl(f.kind,f.tag,f.arguments);case"Quantifier":return il(f,o);case"Subroutine":return ol(f,o);default:throw new Error(`Unexpected token type "${f.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:i},a=ml(ul(n.flags));let l=a.body[0];for(;o.nextIndex<n.tokens.length;){const d=i(l,{});d.type==="Alternative"?(a.body.push(d),l=d):l.body.push(d)}const{capturingGroups:s,hasNumberedRef:u,namedGroupsByName:p,subroutines:m}=o;if(u&&p.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:d}of m)if(typeof d=="number"){if(d>s.length)throw new Error("Subroutine uses a group number that's not defined");d&&(s[d-1].isSubroutined=!0)}else if(p.has(d)){if(p.get(d).length>1)throw new Error(N`Subroutine uses a duplicate group name "\g<${d}>"`);p.get(d)[0].isSubroutined=!0}else throw new Error(N`Subroutine uses a group name that's not defined "\g<${d}>"`);return a}function Ys({kind:t}){return Ft(ve({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[t],`Unexpected assertion kind "${t}"`),{negate:t===N`\B`||t===N`\Y`})}function Zs({raw:t},e){const r=/^\\k[<']/.test(t),n=r?t.slice(3,-1):t.slice(1),i=(o,a=!1)=>{const l=e.capturingGroups.length;let s=!1;if(o>l)if(e.skipBackrefValidation)s=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,jt(a?l+1-o:o,{orphan:s})};if(r){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(o)return i(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${t}"`);return jt(n)}return i(+n)}function el(t,e,r){const{tokens:n,walk:i}=e,o=e.parent,a=o.body.at(-1),l=n[e.nextIndex];if(!r.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&l&&l.type!=="CharacterClassOpen"&&l.type!=="CharacterClassClose"&&l.type!=="CharacterClassIntersector"){const s=i(o,{...r,isCheckingRangeEnd:!0});if(a.type==="Character"&&s.type==="Character")return o.body.pop(),sl(a,s);throw new Error("Invalid character class range")}return ct(we("-"))}function tl({negate:t},e,r){const{tokens:n,walk:i}=e,o=n[e.nextIndex],a=[Ke()];let l=Br(o);for(;l.type!=="CharacterClassClose";){if(l.type==="CharacterClassIntersector")a.push(Ke()),e.nextIndex++;else{const u=a.at(-1);u.body.push(i(u,r))}l=Br(n[e.nextIndex],o)}const s=Ke({negate:t});return a.length===1?s.body=a[0].body:(s.kind="intersection",s.body=a.map(u=>u.body.length===1?u.body[0]:u)),e.nextIndex++,s}function rl({kind:t,negate:e,value:r},n){const{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:a}=n;if(t==="property"){const l=pt(r);if(or.has(l)&&!a?.has(l))t="posix",r=l;else return he(r,{negate:e,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:a})}return t==="posix"?pl(r,{negate:e}):Ht(t,{negate:e})}function nl(t,e,r){const{tokens:n,capturingGroups:i,namedGroupsByName:o,skipLookbehindValidation:a,walk:l}=e,s=dl(t),u=s.type==="AbsenceFunction",p=Gr(s),m=p&&s.negate;if(s.type==="CapturingGroup"&&(i.push(s),s.name&&Ss(o,s.name,[]).push(s)),u&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=Ur(n[e.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")s.body.push(le()),e.nextIndex++;else{const h=s.body.at(-1),f=l(h,{...r,isInAbsenceFunction:r.isInAbsenceFunction||u,isInLookbehind:r.isInLookbehind||p,isInNegLookbehind:r.isInNegLookbehind||m});if(h.body.push(f),(p||r.isInLookbehind)&&!a){const E="Lookbehind includes a pattern not allowed by Oniguruma";if(m||r.isInNegLookbehind){if(Mr(f)||f.type==="CapturingGroup")throw new Error(E)}else if(Mr(f)||Gr(f)&&f.negate)throw new Error(E)}}d=Ur(n[e.nextIndex])}return e.nextIndex++,s}function il({kind:t,min:e,max:r},n){const i=n.parent,o=i.body.at(-1);if(!o||!Qs(o))throw new Error("Quantifier requires a repeatable token");const a=Zn(t,e,r,o);return i.body.pop(),a}function ol({raw:t},e){const{capturingGroups:r,subroutines:n}=e;let i=t.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(o){const l=+o.groups.num,s=r.length;if(e.hasNumberedRef=!0,i={"":l,"+":s+l,"-":s+1-l}[o.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const a=ei(i);return n.push(a),a}function al(t,e){return{type:"AbsenceFunction",kind:t,body:Ve(e?.body)}}function le(t){return{type:"Alternative",body:ti(t?.body)}}function Ft(t,e){const r={type:"Assertion",kind:t};return(t==="word_boundary"||t==="text_segment_boundary")&&(r.negate=!!e?.negate),r}function jt(t,e){const r=!!e?.orphan;return{type:"Backreference",ref:t,...r&&{orphan:r}}}function Yn(t,e){const r={name:void 0,isSubroutined:!1,...e};if(r.name!==void 0&&!hl(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:t,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:Ve(e?.body)}}function ct(t,e){const r={useLastValid:!1,...e};if(t>1114111){const n=t.toString(16);if(r.useLastValid)t=1114111;else throw t>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:t}}function Ke(t){const e={kind:"union",negate:!1,...t};return{type:"CharacterClass",kind:e.kind,negate:e.negate,body:ti(t?.body)}}function sl(t,e){if(e.value<t.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:t,max:e}}function Ht(t,e){const r=!!e?.negate,n={type:"CharacterSet",kind:t};return(t==="digit"||t==="hex"||t==="newline"||t==="space"||t==="word")&&(n.negate=r),(t==="text_segment"||t==="newline"&&!r)&&(n.variableLength=!0),n}function ll(t,e={}){if(t==="keep")return{type:"Directive",kind:t};if(t==="flags")return{type:"Directive",kind:t,flags:ve(e.flags)};throw new Error(`Unexpected directive kind "${t}"`)}function ul(t){return{type:"Flags",...t}}function H(t){const e=t?.atomic,r=t?.flags;if(e&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...e&&{atomic:e},...r&&{flags:r},body:Ve(t?.body)}}function oe(t){const e={behind:!1,negate:!1,...t};return{type:"LookaroundAssertion",kind:e.behind?"lookbehind":"lookahead",negate:e.negate,body:Ve(t?.body)}}function cl(t,e,r){return{type:"NamedCallout",kind:t,tag:e,arguments:r}}function pl(t,e){const r=!!e?.negate;if(!or.has(t))throw new Error(`Invalid POSIX class "${t}"`);return{type:"CharacterSet",kind:"posix",value:t,negate:r}}function Zn(t,e,r,n){if(e>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:t,min:e,max:r,body:n}}function ml(t,e){return{type:"Regex",body:Ve(e?.body),flags:t}}function ei(t){return{type:"Subroutine",ref:t}}function he(t,e){const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e};let n=r.unicodePropertyMap?.get(pt(t));if(!n){if(r.normalizeUnknownPropertyNames)n=fl(t);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(N`Invalid Unicode property "\p{${t}}"`)}return{type:"CharacterSet",kind:"property",value:n??t,negate:r.negate}}function dl({flags:t,kind:e,name:r,negate:n,number:i}){switch(e){case"absence_repeater":return al("repeater");case"atomic":return H({atomic:!0});case"capturing":return Yn(i,{name:r});case"group":return H({flags:t});case"lookahead":case"lookbehind":return oe({behind:e==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${e}"`)}}function Ve(t){if(t===void 0)t=[le()];else if(!Array.isArray(t)||!t.length||!t.every(e=>e.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return t}function ti(t){if(t===void 0)t=[];else if(!Array.isArray(t)||!t.every(e=>!!e.type))throw new Error("Invalid body; expected array of nodes");return t}function Mr(t){return t.type==="LookaroundAssertion"&&t.kind==="lookahead"}function Gr(t){return t.type==="LookaroundAssertion"&&t.kind==="lookbehind"}function hl(t){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(t)}function fl(t){return t.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function pt(t){return t.replace(/[- _]+/g,"").toLowerCase()}function Br(t,e){return ve(t,`${e?.type==="Character"&&e.value===93?"Empty":"Unclosed"} character class`)}function Ur(t){return ve(t,"Unclosed group")}function Le(t,e,r=null){function n(o,a){for(let l=0;l<o.length;l++){const s=i(o[l],a,l,o);l=Math.max(-1,l+s)}}function i(o,a=null,l=null,s=null){let u=0,p=!1;const m={node:o,parent:a,key:l,container:s,root:t,remove(){He(s).splice(Math.max(0,pe(l)+u),1),u--,p=!0},removeAllNextSiblings(){return He(s).splice(pe(l)+1)},removeAllPrevSiblings(){const g=pe(l)+u;return u-=g,He(s).splice(0,Math.max(0,g))},replaceWith(g,w={}){const _=!!w.traverse;s?s[Math.max(0,pe(l)+u)]=g:ve(a,"Can't replace root node")[l]=g,_&&i(g,a,l,s),p=!0},replaceWithMultiple(g,w={}){const _=!!w.traverse;if(He(s).splice(Math.max(0,pe(l)+u),1,...g),u+=g.length-1,_){let v=0;for(let k=0;k<g.length;k++)v+=i(g[k],a,pe(l)+k+v,s)}p=!0},skip(){p=!0}},{type:d}=o,h=e["*"],f=e[d],E=typeof h=="function"?h:h?.enter,b=typeof f=="function"?f:f?.enter;if(E?.(m,r),b?.(m,r),!p)switch(d){case"AbsenceFunction":case"CapturingGroup":case"Group":n(o.body,o);break;case"Alternative":case"CharacterClass":n(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(o.min,o,"min"),i(o.max,o,"max");break;case"LookaroundAssertion":n(o.body,o);break;case"Quantifier":i(o.body,o,"body");break;case"Regex":n(o.body,o),i(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${d}"`)}return f?.exit?.(m,r),h?.exit?.(m,r),u}return i(t),t}function He(t){if(!Array.isArray(t))throw new Error("Container expected");return t}function pe(t){if(typeof t!="number")throw new Error("Numeric key expected");return t}const gl=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function _l(t,e){for(let r=0;r<t.length;r++)t[r]>=e&&t[r]++}function yl(t,e,r,n){return t.slice(0,e)+n+t.slice(e+r.length)}const j=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function sr(t,e,r,n){const i=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let a=0,l="";for(const s of t.matchAll(i)){const{0:u,groups:{$skip:p}}=s;if(!p&&(!n||n===j.DEFAULT==!a)){r instanceof Function?l+=r(s,{context:a?j.CHAR_CLASS:j.DEFAULT,negated:o[o.length-1]}):l+=r;continue}u[0]==="["?(a++,o.push(u[1]==="^")):u==="]"&&a&&(a--,o.pop()),l+=u}return l}function ri(t,e,r,n){sr(t,e,r,n)}function El(t,e,r=0,n){if(!new RegExp(e,"su").test(t))return null;const i=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=r;let o=0,a;for(;a=i.exec(t);){const{0:l,groups:{$skip:s}}=a;if(!s&&(!n||n===j.DEFAULT==!o))return a;l==="["?o++:l==="]"&&o&&o--,i.lastIndex==a.index&&i.lastIndex++}return null}function We(t,e,r){return!!El(t,e,0,r)}function bl(t,e){const r=/\\?./gsu;r.lastIndex=e;let n=t.length,i=0,o=1,a;for(;a=r.exec(t);){const[l]=a;if(l==="[")i++;else if(i)l==="]"&&i--;else if(l==="(")o++;else if(l===")"&&(o--,!o)){n=a.index;break}}return t.slice(e,n)}const Fr=new RegExp(String.raw`(?<noncapturingStart>${gl})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function wl(t,e){const r=e?.hiddenCaptures??[];let n=e?.captureTransfers??new Map;if(!/\(\?>/.test(t))return{pattern:t,captureTransfers:n,hiddenCaptures:r};const i="(?>",o="(?:(?=(",a=[0],l=[];let s=0,u=0,p=NaN,m;do{m=!1;let d=0,h=0,f=!1,E;for(Fr.lastIndex=Number.isNaN(p)?0:p+o.length;E=Fr.exec(t);){const{0:b,index:g,groups:{capturingStart:w,noncapturingStart:_}}=E;if(b==="[")d++;else if(d)b==="]"&&d--;else if(b===i&&!f)p=g,f=!0;else if(f&&_)h++;else if(w)f?h++:(s++,a.push(s+u));else if(b===")"&&f){if(!h){u++;const v=s+u;if(t=`${t.slice(0,p)}${o}${t.slice(p+i.length,g)}))<$$${v}>)${t.slice(g+1)}`,m=!0,l.push(v),_l(r,v),n.size){const k=new Map;n.forEach((x,M)=>{k.set(M>=v?M+1:M,x.map(q=>q>=v?q+1:q))}),n=k}break}h--}}}while(m);return r.push(...l),t=sr(t,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:h,wrappedBackrefNum:f}})=>{if(h){const E=+h;if(E>a.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${a[E]}`}return`\\${f}`},j.DEFAULT),{pattern:t,captureTransfers:n,hiddenCaptures:r}}const ni=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,At=new RegExp(String.raw`
|
|
46
|
+
\\(?: \d+
|
|
47
|
+
| c[A-Za-z]
|
|
48
|
+
| [gk]<[^>]+>
|
|
49
|
+
| [pPu]\{[^\}]+\}
|
|
50
|
+
| u[A-Fa-f\d]{4}
|
|
51
|
+
| x[A-Fa-f\d]{2}
|
|
52
|
+
)
|
|
53
|
+
| \((?: \? (?: [:=!>]
|
|
54
|
+
| <(?:[=!]|[^>]+>)
|
|
55
|
+
| [A-Za-z\-]+:
|
|
56
|
+
| \(DEFINE\)
|
|
57
|
+
))?
|
|
58
|
+
| (?<qBase>${ni})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
59
|
+
| \\?.
|
|
60
|
+
`.replace(/\s+/g,""),"gsu");function vl(t){if(!new RegExp(`${ni}\\+`).test(t))return{pattern:t};const e=[];let r=null,n=null,i="",o=0,a;for(At.lastIndex=0;a=At.exec(t);){const{0:l,index:s,groups:{qBase:u,qMod:p,invalidQ:m}}=a;if(l==="[")o||(n=s),o++;else if(l==="]")o?o--:n=null;else if(!o)if(p==="+"&&i&&!i.startsWith("(")){if(m)throw new Error(`Invalid quantifier "${l}"`);let d=-1;if(/^\{\d+\}$/.test(u))t=yl(t,s+u.length,p,"");else{if(i===")"||i==="]"){const h=i===")"?r:n;if(h===null)throw new Error(`Invalid unmatched "${i}"`);t=`${t.slice(0,h)}(?>${t.slice(h,s)}${u})${t.slice(s+l.length)}`}else t=`${t.slice(0,s-i.length)}(?>${i}${u})${t.slice(s+l.length)}`;d+=4}At.lastIndex+=d}else l[0]==="("?e.push(s):l===")"&&(r=e.length?e.pop():null);i=l}return{pattern:t}}const F=String.raw,Cl=F`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Wt=F`\(\?R=(?<rDepth>[^\)]+)\)|${Cl}`,mt=F`\(\?<(?![=!])(?<captureName>[^>]+)>`,ii=F`${mt}|(?<unnamed>\()(?!\?)`,ne=new RegExp(F`${mt}|${Wt}|\(\?|\\?.`,"gsu"),kt="Cannot use multiple overlapping recursions";function Al(t,e){const{hiddenCaptures:r,mode:n}={hiddenCaptures:[],mode:"plugin",...e};let i=e?.captureTransfers??new Map;if(!new RegExp(Wt,"su").test(t))return{pattern:t,captureTransfers:i,hiddenCaptures:r};if(n==="plugin"&&We(t,F`\(\?\(DEFINE\)`,j.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],a=We(t,F`\\[1-9]`,j.DEFAULT),l=new Map,s=[];let u=!1,p=0,m=0,d;for(ne.lastIndex=0;d=ne.exec(t);){const{0:h,groups:{captureName:f,rDepth:E,gRNameOrNum:b,gRDepth:g}}=d;if(h==="[")p++;else if(p)h==="]"&&p--;else if(E){if(jr(E),u)throw new Error(kt);if(a)throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const w=t.slice(0,d.index),_=t.slice(ne.lastIndex);if(We(_,Wt,j.DEFAULT))throw new Error(kt);const v=+E-1;t=Hr(w,_,v,!1,r,o,m),i=zr(i,w,v,o.length,0,m);break}else if(b){jr(g);let w=!1;for(const Z of s)if(Z.name===b||Z.num===+b){if(w=!0,Z.hasRecursedWithin)throw new Error(kt);break}if(!w)throw new Error(F`Recursive \g cannot be used outside the referenced group "${n==="external"?b:F`\g<${b}&R=${g}>`}"`);const _=l.get(b),v=bl(t,_);if(a&&We(v,F`${mt}|\((?!\?)`,j.DEFAULT))throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const k=t.slice(_,d.index),x=v.slice(k.length+h.length),M=o.length,q=+g-1,Me=Hr(k,x,q,!0,r,o,m);i=zr(i,k,q,o.length-M,M,m);const dt=t.slice(0,_),Ce=t.slice(_+v.length);t=`${dt}${Me}${Ce}`,ne.lastIndex+=Me.length-h.length-k.length-x.length,s.forEach(Z=>Z.hasRecursedWithin=!0),u=!0}else if(f)m++,l.set(String(m),ne.lastIndex),l.set(f,ne.lastIndex),s.push({num:m,name:f});else if(h[0]==="("){const w=h==="(";w&&(m++,l.set(String(m),ne.lastIndex)),s.push(w?{num:m}:{})}else h===")"&&s.pop()}return r.push(...o),{pattern:t,captureTransfers:i,hiddenCaptures:r}}function jr(t){const e=`Max depth must be integer between 2 and 100; used ${t}`;if(!/^[1-9]\d*$/.test(t))throw new Error(e);if(t=+t,t<2||t>100)throw new Error(e)}function Hr(t,e,r,n,i,o,a){const l=new Set;n&&ri(t+e,mt,({groups:{captureName:u}})=>{l.add(u)},j.DEFAULT);const s=[r,n?l:null,i,o,a];return`${t}${Wr(`(?:${t}`,"forward",...s)}(?:)${Wr(`${e})`,"backward",...s)}${e}`}function Wr(t,e,r,n,i,o,a){const s=p=>e==="forward"?p+2:r-p+2-1;let u="";for(let p=0;p<r;p++){const m=s(p);u+=sr(t,F`${ii}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:h,unnamed:f,backref:E}})=>{if(E&&n&&!n.has(E))return d;const b=`_$${m}`;if(f||h){const g=a+o.length+1;return o.push(g),kl(i,g),f?d:`(?<${h}${b}>`}return F`\k<${E}${b}>`},j.DEFAULT)}return u}function kl(t,e){for(let r=0;r<t.length;r++)t[r]>=e&&t[r]++}function zr(t,e,r,n,i,o){if(t.size&&n){let a=0;ri(e,ii,()=>a++,j.DEFAULT);const l=o-a+i,s=new Map;return t.forEach((u,p)=>{const m=(n-a*r)/r,d=a*r,h=p>l+a?p+n:p,f=[];for(const E of u)if(E<=l)f.push(E);else if(E>l+a+m)f.push(E+n);else if(E<=l+a)for(let b=0;b<=r;b++)f.push(E+a*b);else for(let b=0;b<=r;b++)f.push(E+d+m*b);s.set(h,f)}),s}return t}var P=String.fromCodePoint,C=String.raw,Y={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};Y.bugFlagVLiteralHyphenIsRange=Y.unicodeSets?(()=>{try{new RegExp(C`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Y.bugNestedClassIgnoresNegation=Y.unicodeSets&&new RegExp("[[^a]]","v").test("a");function it(t,{enable:e,disable:r}){return{dotAll:!r?.dotAll&&!!(e?.dotAll||t.dotAll),ignoreCase:!r?.ignoreCase&&!!(e?.ignoreCase||t.ignoreCase)}}function De(t,e,r){return t.has(e)||t.set(e,r),t.get(e)}function zt(t,e){return qr[t]>=qr[e]}function Sl(t,e){if(t==null)throw new Error(e??"Value expected");return t}var qr={ES2025:2025,ES2024:2024,ES2018:2018},Ll={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function oi(t={}){if({}.toString.call(t)!=="[object Object]")throw new Error("Unexpected options");if(t.target!==void 0&&!Ll[t.target])throw new Error(`Unexpected target "${t.target}"`);const e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...t,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...t.rules}};return e.target==="auto"&&(e.target=Y.flagGroups?"ES2025":Y.unicodeSets?"ES2024":"ES2018"),e}var Il="[ -\r ]",Rl=new Set([P(304),P(305)]),K=C`[\p{L}\p{M}\p{N}\p{Pc}]`;function ai(t){if(Rl.has(t))return[t];const e=new Set,r=t.toLowerCase(),n=r.toUpperCase(),i=Ol.get(r),o=Tl.get(r),a=Pl.get(r);return[...n].length===1&&e.add(n),a&&e.add(a),i&&e.add(i),e.add(r),o&&e.add(o),[...e]}var lr=new Map(`C Other
|
|
61
|
+
Cc Control cntrl
|
|
62
|
+
Cf Format
|
|
63
|
+
Cn Unassigned
|
|
64
|
+
Co Private_Use
|
|
65
|
+
Cs Surrogate
|
|
66
|
+
L Letter
|
|
67
|
+
LC Cased_Letter
|
|
68
|
+
Ll Lowercase_Letter
|
|
69
|
+
Lm Modifier_Letter
|
|
70
|
+
Lo Other_Letter
|
|
71
|
+
Lt Titlecase_Letter
|
|
72
|
+
Lu Uppercase_Letter
|
|
73
|
+
M Mark Combining_Mark
|
|
74
|
+
Mc Spacing_Mark
|
|
75
|
+
Me Enclosing_Mark
|
|
76
|
+
Mn Nonspacing_Mark
|
|
77
|
+
N Number
|
|
78
|
+
Nd Decimal_Number digit
|
|
79
|
+
Nl Letter_Number
|
|
80
|
+
No Other_Number
|
|
81
|
+
P Punctuation punct
|
|
82
|
+
Pc Connector_Punctuation
|
|
83
|
+
Pd Dash_Punctuation
|
|
84
|
+
Pe Close_Punctuation
|
|
85
|
+
Pf Final_Punctuation
|
|
86
|
+
Pi Initial_Punctuation
|
|
87
|
+
Po Other_Punctuation
|
|
88
|
+
Ps Open_Punctuation
|
|
89
|
+
S Symbol
|
|
90
|
+
Sc Currency_Symbol
|
|
91
|
+
Sk Modifier_Symbol
|
|
92
|
+
Sm Math_Symbol
|
|
93
|
+
So Other_Symbol
|
|
94
|
+
Z Separator
|
|
95
|
+
Zl Line_Separator
|
|
96
|
+
Zp Paragraph_Separator
|
|
97
|
+
Zs Space_Separator
|
|
98
|
+
ASCII
|
|
99
|
+
ASCII_Hex_Digit AHex
|
|
100
|
+
Alphabetic Alpha
|
|
101
|
+
Any
|
|
102
|
+
Assigned
|
|
103
|
+
Bidi_Control Bidi_C
|
|
104
|
+
Bidi_Mirrored Bidi_M
|
|
105
|
+
Case_Ignorable CI
|
|
106
|
+
Cased
|
|
107
|
+
Changes_When_Casefolded CWCF
|
|
108
|
+
Changes_When_Casemapped CWCM
|
|
109
|
+
Changes_When_Lowercased CWL
|
|
110
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
111
|
+
Changes_When_Titlecased CWT
|
|
112
|
+
Changes_When_Uppercased CWU
|
|
113
|
+
Dash
|
|
114
|
+
Default_Ignorable_Code_Point DI
|
|
115
|
+
Deprecated Dep
|
|
116
|
+
Diacritic Dia
|
|
117
|
+
Emoji
|
|
118
|
+
Emoji_Component EComp
|
|
119
|
+
Emoji_Modifier EMod
|
|
120
|
+
Emoji_Modifier_Base EBase
|
|
121
|
+
Emoji_Presentation EPres
|
|
122
|
+
Extended_Pictographic ExtPict
|
|
123
|
+
Extender Ext
|
|
124
|
+
Grapheme_Base Gr_Base
|
|
125
|
+
Grapheme_Extend Gr_Ext
|
|
126
|
+
Hex_Digit Hex
|
|
127
|
+
IDS_Binary_Operator IDSB
|
|
128
|
+
IDS_Trinary_Operator IDST
|
|
129
|
+
ID_Continue IDC
|
|
130
|
+
ID_Start IDS
|
|
131
|
+
Ideographic Ideo
|
|
132
|
+
Join_Control Join_C
|
|
133
|
+
Logical_Order_Exception LOE
|
|
134
|
+
Lowercase Lower
|
|
135
|
+
Math
|
|
136
|
+
Noncharacter_Code_Point NChar
|
|
137
|
+
Pattern_Syntax Pat_Syn
|
|
138
|
+
Pattern_White_Space Pat_WS
|
|
139
|
+
Quotation_Mark QMark
|
|
140
|
+
Radical
|
|
141
|
+
Regional_Indicator RI
|
|
142
|
+
Sentence_Terminal STerm
|
|
143
|
+
Soft_Dotted SD
|
|
144
|
+
Terminal_Punctuation Term
|
|
145
|
+
Unified_Ideograph UIdeo
|
|
146
|
+
Uppercase Upper
|
|
147
|
+
Variation_Selector VS
|
|
148
|
+
White_Space space
|
|
149
|
+
XID_Continue XIDC
|
|
150
|
+
XID_Start XIDS`.split(/\s/).map(t=>[pt(t),t])),Tl=new Map([["s",P(383)],[P(383),"s"]]),Pl=new Map([[P(223),P(7838)],[P(107),P(8490)],[P(229),P(8491)],[P(969),P(8486)]]),Ol=new Map([ee(453),ee(456),ee(459),ee(498),...St(8072,8079),...St(8088,8095),...St(8104,8111),ee(8124),ee(8140),ee(8188)]),xl=new Map([["alnum",C`[\p{Alpha}\p{Nd}]`],["alpha",C`\p{Alpha}`],["ascii",C`\p{ASCII}`],["blank",C`[\p{Zs}\t]`],["cntrl",C`\p{Cc}`],["digit",C`\p{Nd}`],["graph",C`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",C`\p{Lower}`],["print",C`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",C`[\p{P}\p{S}]`],["space",C`\p{space}`],["upper",C`\p{Upper}`],["word",C`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",C`\p{AHex}`]]);function Dl(t,e){const r=[];for(let n=t;n<=e;n++)r.push(n);return r}function ee(t){const e=P(t);return[e.toLowerCase(),e]}function St(t,e){return Dl(t,e).map(r=>ee(r))}var si=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Nl(t,e){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e};li(t);const n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:zt(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};Le(t,$l,n);const i={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},o={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};Le(t,Vl,o);const a={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Le(t,Ml,a),t._originMap=o.groupOriginByCopy,t._strategy=n.strategy,t}var $l={AbsenceFunction({node:t,parent:e,replaceWith:r}){const{body:n,kind:i}=t;if(i==="repeater"){const o=H();o.body[0].body.push(oe({negate:!0,body:n}),he("Any"));const a=H();a.body[0].body.push(Zn("greedy",0,1/0,o)),r(L(a,e),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:t,parent:e,key:r},{flagDirectivesByAlt:n}){const i=t.body.filter(o=>o.kind==="flags");for(let o=r+1;o<e.body.length;o++){const a=e.body[o];De(n,a,[]).push(...i)}},exit({node:t},{flagDirectivesByAlt:e}){if(e.get(t)?.length){const r=ci(e.get(t));if(r){const n=H({flags:r});n.body[0].body=t.body,t.body=[L(n,t)]}}}},Assertion({node:t,parent:e,key:r,container:n,root:i,remove:o,replaceWith:a},l){const{kind:s,negate:u}=t,{asciiWordBoundaries:p,avoidSubclass:m,supportedGNodes:d,wordIsAscii:h}=l;if(s==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if(s==="line_end")a(L(oe({body:[le({body:[Ft("string_end")]}),le({body:[ct(10)]})]}),e));else if(s==="line_start")a(L(Q(C`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),e));else if(s==="search_start")if(d.has(t))i.flags.sticky=!0,o();else{const f=n[r-1];if(f&&Hl(f))a(L(oe({negate:!0}),e));else{if(m)throw new Error(C`Uses "\G" in a way that requires a subclass`);a(te(Ft("string_start"),e)),l.strategy="clip_search"}}else if(!(s==="string_end"||s==="string_start"))if(s==="string_end_newline")a(L(Q(C`(?=\n?\z)`),e));else if(s==="word_boundary"){if(!h&&!p){const f=`(?:(?<=${K})(?!${K})|(?<!${K})(?=${K}))`,E=`(?:(?<=${K})(?=${K})|(?<!${K})(?!${K}))`;a(L(Q(u?E:f),e))}}else throw new Error(`Unexpected assertion kind "${s}"`)},Backreference({node:t},{jsGroupNameMap:e}){let{ref:r}=t;typeof r=="string"&&!It(r)&&(r=Lt(r,e),t.ref=r)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:r}){let{name:n}=t;n&&!It(n)&&(n=Lt(n,e),t.name=n),r.set(t.number,t),n&&r.set(n,t)},CharacterClassRange({node:t,parent:e,replaceWith:r}){if(e.kind==="intersection"){const n=Ke({body:[t]});r(L(n,e),{traverse:!0})}},CharacterSet({node:t,parent:e,replaceWith:r},{accuracy:n,minTargetEs2024:i,digitIsAscii:o,spaceIsAscii:a,wordIsAscii:l}){const{kind:s,negate:u,value:p}=t;if(o&&(s==="digit"||p==="digit")){r(te(Ht("digit",{negate:u}),e));return}if(a&&(s==="space"||p==="space")){r(L(Rt(Q(Il),u),e));return}if(l&&(s==="word"||p==="word")){r(te(Ht("word",{negate:u}),e));return}if(s==="any")r(te(he("Any"),e));else if(s==="digit")r(te(he("Nd",{negate:u}),e));else if(s!=="dot")if(s==="text_segment"){if(n==="strict")throw new Error(C`Use of "\X" requires non-strict accuracy`);const m="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=C`\p{RI}{2}|${m}(?:\u200D${m})*`;r(L(Q(C`(?>\r\n|${i?C`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),e))}else if(s==="hex")r(te(he("AHex",{negate:u}),e));else if(s==="newline")r(L(Q(u?`[^
|
|
151
|
+
]`:`(?>\r
|
|
152
|
+
?|[
|
|
153
|
+
\v\f
\u2028\u2029])`),e));else if(s==="posix")if(!i&&(p==="graph"||p==="print")){if(n==="strict")throw new Error(`POSIX class "${p}" requires min target ES2024 or non-strict accuracy`);let m={graph:"!-~",print:" -~"}[p];u&&(m=`\0-${P(m.codePointAt(0)-1)}${P(m.codePointAt(2)+1)}-`),r(L(Q(`[${m}]`),e))}else r(L(Rt(Q(xl.get(p)),u),e));else if(s==="property")lr.has(pt(p))||(t.key="sc");else if(s==="space")r(te(he("space",{negate:u}),e));else if(s==="word")r(L(Rt(Q(K),u),e));else throw new Error(`Unexpected character set kind "${s}"`)},Directive({node:t,parent:e,root:r,remove:n,replaceWith:i,removeAllPrevSiblings:o,removeAllNextSiblings:a}){const{kind:l,flags:s}=t;if(l==="flags")if(!s.enable&&!s.disable)n();else{const u=H({flags:s});u.body[0].body=a(),i(L(u,e),{traverse:!0})}else if(l==="keep"){const u=r.body[0],m=r.body.length===1&&Qn(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:r;if(e.parent!==m||m.body.length>1)throw new Error(C`Uses "\K" in a way that's unsupported`);const d=oe({behind:!0});d.body[0].body=o(),i(L(d,e))}else throw new Error(`Unexpected directive kind "${l}"`)},Flags({node:t,parent:e}){if(t.posixIsAscii)throw new Error('Unsupported flag "P"');if(t.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete t[r]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;const{enable:e,disable:r}=t.flags;e?.extended&&delete e.extended,r?.extended&&delete r.extended,e?.dotAll&&r?.dotAll&&delete e.dotAll,e?.ignoreCase&&r?.ignoreCase&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,r&&!Object.keys(r).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},LookaroundAssertion({node:t},e){const{kind:r}=t;r==="lookbehind"&&(e.passedLookbehind=!0)},NamedCallout({node:t,parent:e,replaceWith:r}){const{kind:n}=t;if(n==="fail")r(L(oe({negate:!0}),e));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:t}){if(t.body.type==="Quantifier"){const e=H();e.body[0].body.push(t.body),t.body=L(e,t)}},Regex:{enter({node:t},{supportedGNodes:e}){const r=[];let n=!1,i=!1;for(const o of t.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const a=mi(o.body);a?(n=!0,Array.isArray(a)?r.push(...a):r.push(a)):i=!0}n&&!i&&r.forEach(o=>e.add(o))},exit(t,{accuracy:e,passedLookbehind:r,strategy:n}){if(e==="strict"&&r&&n)throw new Error(C`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:r}=t;typeof r=="string"&&!It(r)&&(r=Lt(r,e),t.ref=r)}},Vl={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:r}){const{orphan:n,ref:i}=t;n||r.set(t,[...e.get(i).map(({node:o})=>o)])},CapturingGroup:{enter({node:t,parent:e,replaceWith:r,skip:n},{groupOriginByCopy:i,groupsByName:o,multiplexCapturesToLeftByRef:a,openRefs:l,reffedNodesByReferencer:s}){const u=i.get(t);if(u&&l.has(t.number)){const m=te(Xr(t.number),e);s.set(m,l.get(t.number)),r(m);return}l.set(t.number,t),a.set(t.number,[]),t.name&&De(a,t.name,[]);const p=a.get(t.name??t.number);for(let m=0;m<p.length;m++){const d=p[m];if(u===d.node||u&&u===d.origin||t===d.origin){p.splice(m,1);break}}if(a.get(t.number).push({node:t,origin:u}),t.name&&a.get(t.name).push({node:t,origin:u}),t.name){const m=De(o,t.name,new Map);let d=!1;if(u)d=!0;else for(const h of m.values())if(!h.hasDuplicateNameToRemove){d=!0;break}o.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:d})}},exit({node:t},{openRefs:e}){e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=it(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Subroutine({node:t,parent:e,replaceWith:r},n){const{isRecursive:i,ref:o}=t;if(i){let p=e;for(;(p=p.parent)&&!(p.type==="CapturingGroup"&&(p.name===o||p.number===o)););n.reffedNodesByReferencer.set(t,p);return}const a=n.subroutineRefMap.get(o),l=o===0,s=l?Xr(0):ui(a,n.groupOriginByCopy,null);let u=s;if(!l){const p=ci(Ul(a,d=>d.type==="Group"&&!!d.flags)),m=p?it(n.globalFlags,p):n.globalFlags;Gl(m,n.currentFlags)||(u=H({flags:Fl(m)}),u.body[0].body.push(s))}r(L(u,e),{traverse:!l})}},Ml={Backreference({node:t,parent:e,replaceWith:r},n){if(t.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,t.ref);return}const o=n.reffedNodesByReferencer.get(t).filter(a=>Bl(a,t));if(!o.length)r(L(oe({negate:!0}),e));else if(o.length>1){const a=H({atomic:!0,body:o.reverse().map(l=>le({body:[jt(l.number)]}))});r(L(a,e))}else t.ref=o[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Regex:{exit({node:t},e){const r=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let n=0;n<r;n++){const i=Yn();t.body.at(-1).body.push(i)}}},Subroutine({node:t},e){!t.isRecursive||t.ref===0||(t.ref=e.reffedNodesByReferencer.get(t).number)}};function li(t){Le(t,{"*"({node:e,parent:r}){e.parent=r}})}function Gl(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function Bl(t,e){let r=e;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===t)return!1;const n=pi(r.parent);for(const i of n){if(i===r)break;if(i===t||di(i,t))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function ui(t,e,r,n){const i=Array.isArray(t)?[]:{};for(const[o,a]of Object.entries(t))o==="parent"?i.parent=Array.isArray(r)?n:r:a&&typeof a=="object"?i[o]=ui(a,e,i,r):(o==="type"&&a==="CapturingGroup"&&e.set(i,e.get(t)??t),i[o]=a);return i}function Xr(t){const e=ei(t);return e.isRecursive=!0,e}function Ul(t,e){const r=[];for(;t=t.parent;)(!e||e(t))&&r.push(t);return r}function Lt(t,e){if(e.has(t))return e.get(t);const r=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,r),r}function ci(t){const e=["dotAll","ignoreCase"],r={enable:{},disable:{}};return t.forEach(({flags:n})=>{e.forEach(i=>{n.enable?.[i]&&(delete r.disable[i],r.enable[i]=!0),n.disable?.[i]&&(r.disable[i]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function Fl({dotAll:t,ignoreCase:e}){const r={};return(t||e)&&(r.enable={},t&&(r.enable.dotAll=!0),e&&(r.enable.ignoreCase=!0)),(!t||!e)&&(r.disable={},!t&&(r.disable.dotAll=!0),!e&&(r.disable.ignoreCase=!0)),r}function pi(t){if(!t)throw new Error("Node expected");const{body:e}=t;return Array.isArray(e)?e:e?[e]:null}function mi(t){const e=t.find(r=>r.kind==="search_start"||Wl(r,{negate:!1})||!jl(r));if(!e)return null;if(e.kind==="search_start")return e;if(e.type==="LookaroundAssertion")return e.body[0].body[0];if(e.type==="CapturingGroup"||e.type==="Group"){const r=[];for(const n of e.body){const i=mi(n.body);if(!i)return null;Array.isArray(i)?r.push(...i):r.push(i)}return r}return null}function di(t,e){const r=pi(t)??[];for(const n of r)if(n===e||di(n,e))return!0;return!1}function jl({type:t}){return t==="Assertion"||t==="Directive"||t==="LookaroundAssertion"}function Hl(t){const e=["Character","CharacterClass","CharacterSet"];return e.includes(t.type)||t.type==="Quantifier"&&t.min&&e.includes(t.body.type)}function Wl(t,e){const r={negate:null,...e};return t.type==="LookaroundAssertion"&&(r.negate===null||t.negate===r.negate)&&t.body.length===1&&Qn(t.body[0],{type:"Assertion",kind:"search_start"})}function It(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function Q(t,e){const n=Jn(t,{...e,unicodePropertyMap:lr}).body;return n.length>1||n[0].body.length>1?H({body:n}):n[0].body[0]}function Rt(t,e){return t.negate=e,t}function te(t,e){return t.parent=e,t}function L(t,e){return li(t),t.parent=e,t}function zl(t,e){const r=oi(e),n=zt(r.target,"ES2024"),i=zt(r.target,"ES2025"),o=r.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,l=null;if(!i){const h=[t.flags.ignoreCase];Le(t,ql,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(f){h.push(f)},setHasCasedChar(){h.at(-1)?a=!0:l=!0}})}const s={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||a)&&!l)};let u=t;const p={accuracy:r.accuracy,appliedGlobalFlags:s,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:t._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!i&&a&&l),useFlagMods:i,useFlagV:n,verbose:r.verbose};function m(h){return p.lastNode=u,u=h,Sl(Xl[h.type],`Unexpected node type "${h.type}"`)(h,p,m)}const d={pattern:t.body.map(m).join("|"),flags:m(t.flags),options:{...t.options}};return n||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],p.captureMap.forEach((h,f)=>{h.hidden&&d._hiddenCaptures.push(f),h.transferTo&&De(d._captureTransfers,h.transferTo,[]).push(f)}),d}var ql={"*":{enter({node:t},e){if(Qr(t)){const r=e.getCurrentModI();e.pushModI(t.flags?it({ignoreCase:r},t.flags).ignoreCase:r)}},exit({node:t},e){Qr(t)&&e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){ur(P(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},r){e(),hi(t,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:t},e){t.kind==="property"&&si.has(t.value)&&e.setHasCasedChar()}},Xl={Alternative({body:t},e,r){return t.map(r).join("")},Assertion({kind:t,negate:e}){if(t==="string_end")return"$";if(t==="string_start")return"^";if(t==="word_boundary")return e?C`\B`:C`\b`;throw new Error(`Unexpected assertion kind "${t}"`)},Backreference({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t},CapturingGroup(t,e,r){const{body:n,name:i,number:o}=t,a={ignoreCase:e.currentFlags.ignoreCase},l=e.originMap.get(t);return l&&(a.hidden=!0,o>l.number&&(a.transferTo=l.number)),e.captureMap.set(o,a),`(${i?`?<${i}>`:""}${n.map(r).join("|")})`},Character({value:t},e){const r=P(t),n=me(t,{escDigit:e.lastNode.type==="Backreference",inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(n!==r)return n;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&ur(r)){const i=ai(r);return e.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return r},CharacterClass(t,e,r){const{kind:n,negate:i,parent:o}=t;let{body:a}=t;if(n==="intersection"&&!e.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Y.bugFlagVLiteralHyphenIsRange&&e.useFlagV&&a.some(Jr)&&(a=[ct(45),...a.filter(u=>!Jr(u))]);const l=()=>`[${i?"^":""}${a.map(r).join(n==="intersection"?"&&":"")}]`;if(!e.inCharClass){if((!e.useFlagV||Y.bugNestedClassIgnoresNegation)&&!i){const p=a.filter(m=>m.type==="CharacterClass"&&m.kind==="union"&&m.negate);if(p.length){const m=H(),d=m.body[0];return m.parent=o,d.parent=m,a=a.filter(h=>!p.includes(h)),t.body=a,a.length?(t.parent=d,d.body.push(t)):m.body.pop(),p.forEach(h=>{const f=le({body:[h]});h.parent=f,f.parent=m,m.body.push(f)}),r(m)}}e.inCharClass=!0;const u=l();return e.inCharClass=!1,u}const s=a[0];if(n==="union"&&!i&&s&&((!e.useFlagV||!e.verbose)&&o.kind==="union"&&!(Y.bugFlagVLiteralHyphenIsRange&&e.useFlagV)||!e.verbose&&o.kind==="intersection"&&a.length===1&&s.type!=="CharacterClassRange"))return a.map(r).join("");if(!e.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return l()},CharacterClassRange(t,e){const r=t.min.value,n=t.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:e.useFlagV},o=me(r,i),a=me(n,i),l=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){const s=hi(t);Zl(s).forEach(p=>{l.add(Array.isArray(p)?`${me(p[0],i)}-${me(p[1],i)}`:me(p,i))})}return`${o}-${a}${[...l].join("")}`},CharacterSet({kind:t,negate:e,value:r,key:n},i){if(t==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":C`[^\n]`;if(t==="digit")return e?C`\D`:C`\d`;if(t==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&si.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${e?C`\P`:C`\p`}{${n?`${n}=`:""}${r}}`}if(t==="word")return e?C`\W`:C`\w`;throw new Error(`Unexpected character set kind "${t}"`)},Flags(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")},Group({atomic:t,body:e,flags:r,parent:n},i,o){const a=i.currentFlags;r&&(i.currentFlags=it(a,r));const l=e.map(o).join("|"),s=!i.verbose&&e.length===1&&n.type!=="Quantifier"&&!t&&(!i.useFlagMods||!r)?l:`(?${eu(t,r,i.useFlagMods)}${l})`;return i.currentFlags=a,s},LookaroundAssertion({body:t,kind:e,negate:r},n,i){return`(?${`${e==="lookahead"?"":"<"}${r?"!":"="}`}${t.map(i).join("|")})`},Quantifier(t,e,r){return r(t.body)+tu(t)},Subroutine({isRecursive:t,ref:e},r){if(!t)throw new Error("Unexpected non-recursive subroutine in transformed AST");const n=r.recursionLimit;return e===0?`(?R=${n})`:C`\g<${e}&R=${n}>`}},Kl=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Ql=new Set(["-","\\","]","^","["]),Jl=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Kr=new Map([[9,C`\t`],[10,C`\n`],[11,C`\v`],[12,C`\f`],[13,C`\r`],[8232,C`\u2028`],[8233,C`\u2029`],[65279,C`\uFEFF`]]),Yl=new RegExp("^\\p{Cased}$","u");function ur(t){return Yl.test(t)}function hi(t,e){const r=!!e?.firstOnly,n=t.min.value,i=t.max.value,o=[];if(n<65&&(i===65535||i>=131071)||n===65536&&i>=131071)return o;for(let a=n;a<=i;a++){const l=P(a);if(!ur(l))continue;const s=ai(l).filter(u=>{const p=u.codePointAt(0);return p<n||p>i});if(s.length&&(o.push(...s),r))break}return o}function me(t,{escDigit:e,inCharClass:r,useFlagV:n}){if(Kr.has(t))return Kr.get(t);if(t<32||t>126&&t<160||t>262143||e&&ru(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;const i=r?n?Jl:Ql:Kl,o=P(t);return(i.has(o)?"\\":"")+o}function Zl(t){const e=t.map(i=>i.codePointAt(0)).sort((i,o)=>i-o),r=[];let n=null;for(let i=0;i<e.length;i++)e[i+1]===e[i]+1?n??=e[i]:n===null?r.push(e[i]):(r.push([n,e[i]]),n=null);return r}function eu(t,e,r){if(t)return">";let n="";if(e&&r){const{enable:i,disable:o}=e;n=(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${n}:`}function tu({kind:t,max:e,min:r}){let n;return!r&&e===1?n="?":!r&&e===1/0?n="*":r===1&&e===1/0?n="+":r===e?n=`{${r}}`:n=`{${r},${e===1/0?"":e}}`,n+{greedy:"",lazy:"?",possessive:"+"}[t]}function Qr({type:t}){return t==="CapturingGroup"||t==="Group"||t==="LookaroundAssertion"}function ru(t){return t>47&&t<58}function Jr({type:t,value:e}){return t==="Character"&&e===45}var nu=class qt extends RegExp{#t=new Map;#e=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(e,r,n){const i=!!n?.lazyCompile;if(e instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");const o=e;super(o,r),this.#n=o.source,o instanceof qt&&(this.#t=o.#t,this.#r=o.#r,this.#i=o.#i,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...n};super(i?"":e,r),this.#n=e,this.#t=ou(o.hiddenCaptures,o.transfers),this.#i=o.strategy,this.rawOptions=n??{}}i||(this.#e=this)}exec(e){if(!this.#e){const{lazyCompile:i,...o}=this.rawOptions;this.#e=new qt(this.#n,this.flags,o)}const r=this.global||this.sticky,n=this.lastIndex;if(this.#i==="clip_search"&&r&&n){this.lastIndex=0;const i=this.#o(e.slice(n));return i&&(iu(i,n,e,this.hasIndices),this.lastIndex+=n),i}return this.#o(e)}#o(e){this.#e.lastIndex=this.lastIndex;const r=super.exec.call(this.#e,e);if(this.lastIndex=this.#e.lastIndex,!r||!this.#t.size)return r;const n=[...r];r.length=1;let i;this.hasIndices&&(i=[...r.indices],r.indices.length=1);const o=[0];for(let a=1;a<n.length;a++){const{hidden:l,transferTo:s}=this.#t.get(a)??{};if(l?o.push(null):(o.push(r.length),r.push(n[a]),this.hasIndices&&r.indices.push(i[a])),s&&n[a]!==void 0){const u=o[s];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(r[u]=n[a],this.hasIndices&&(r.indices[u]=i[a]),r.groups){this.#r||(this.#r=au(this.source));const p=this.#r.get(s);p&&(r.groups[p]=n[a],this.hasIndices&&(r.indices.groups[p]=i[a]))}}}return r}};function iu(t,e,r,n){if(t.index+=e,t.input=r,n){const i=t.indices;for(let a=0;a<i.length;a++){const l=i[a];l&&(i[a]=[l[0]+e,l[1]+e])}const o=i.groups;o&&Object.keys(o).forEach(a=>{const l=o[a];l&&(o[a]=[l[0]+e,l[1]+e])})}}function ou(t,e){const r=new Map;for(const n of t)r.set(n,{hidden:!0});for(const[n,i]of e)for(const o of i)De(r,o,{}).transferTo=n;return r}function au(t){const e=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let n=0,i=0,o;for(;o=e.exec(t);){const{0:a,groups:{capture:l,name:s}}=o;a==="["?n++:n?a==="]"&&n--:l&&(i++,s&&r.set(i,s))}return r}function su(t,e){const r=lu(t,e);return r.options?new nu(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function lu(t,e){const r=oi(e),n=Jn(t,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:lr}),i=Nl(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),o=zl(i,r),a=Al(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),l=vl(a.pattern),s=wl(l.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),u={pattern:s.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const p=s.hiddenCaptures.sort((f,E)=>f-E),m=Array.from(s.captureTransfers),d=i._strategy,h=u.pattern.length>=r.lazyCompileLength;(p.length||m.length||d||h)&&(u.options={...p.length&&{hiddenCaptures:p},...m.length&&{transfers:m},...d&&{strategy:d},...h&&{lazyCompile:h}})}return u}const Yr=4294967295;class uu{constructor(e,r={}){this.patterns=e,this.options=r;const{forgiving:n=!1,cache:i,regexConstructor:o}=r;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(a=>{if(typeof a!="string")return a;const l=i?.get(a);if(l){if(l instanceof RegExp)return l;if(n)return null;throw l}try{const s=o(a);return i?.set(a,s),s}catch(s){if(i?.set(a,s),n)return null;throw s}})}regexps;findNextMatchSync(e,r,n){const i=typeof e=="string"?e:e.content,o=[];function a(l,s,u=0){return{index:l,captureIndices:s.indices.map(p=>p==null?{start:Yr,end:Yr,length:0}:{start:p[0]+u,end:p[1]+u,length:p[1]-p[0]})}}for(let l=0;l<this.regexps.length;l++){const s=this.regexps[l];if(s)try{s.lastIndex=r;const u=s.exec(i);if(!u)continue;if(u.index===r)return a(l,u,0);o.push([l,u,0])}catch(u){if(this.options.forgiving)continue;throw u}}if(o.length){const l=Math.min(...o.map(s=>s[1].index));for(const[s,u,p]of o)if(u.index===l)return a(s,u,p)}return null}}function cu(t,e){return su(t,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function Lu(t={}){const e=Object.assign({target:"auto",cache:new Map},t);return e.regexConstructor||=r=>cu(r,{target:e.target}),{createScanner(r){return new uu(r,e)},createString(r){return{content:r}}}}export{R as ShikiError,Pn as addClassToHast,re as applyColorReplacements,os as bundledLanguages,is as bundledLanguagesAlias,ns as bundledLanguagesBase,jn as bundledLanguagesInfo,ss as bundledThemes,as as bundledThemesInfo,wu as codeToHast,bu as codeToHtml,vu as codeToTokens,Cu as codeToTokensBase,Au as codeToTokensWithThemes,Fn as createBundledHighlighter,Eu as createCssVariablesTheme,ks as createHighlighter,Un as createHighlighterCore,gu as createHighlighterCoreSync,Lu as createJavaScriptRegexEngine,As as createOnigurumaEngine,Ea as createPositionConverter,Za as createShikiInternal,Bn as createShikiInternalSync,rs as createSingletonShorthands,yu as createdBundledHighlighter,cu as defaultJavaScriptRegexConstructor,hu as enableDeprecationWarnings,Aa as flatTokenVariants,Su as getLastGrammarState,ku as getSingletonHighlighter,_u as getSingletonHighlighterCore,rt as getTokenStyleObject,ba as guessEmbeddedLanguages,Ka as hastToHtml,Zt as isNoneTheme,Yt as isPlainLang,Rn as isSpecialLang,Tn as isSpecialTheme,ws as loadWasm,ts as makeSingletonHighlighter,es as makeSingletonHighlighterCore,In as normalizeGetter,nr as normalizeTheme,tt as resolveColorReplacements,ot as splitLines,va as splitToken,Ca as splitTokens,Ut as stringifyTokenStyle,ya as toArray,Va as tokenizeAnsiWithTheme,Ga as tokenizeWithTheme,Wa as tokensToHast,La as transformerDecorations,Qa as warnDeprecated};
|