@inkeep/open-knowledge 0.50.0-beta.11 → 0.50.0-beta.13
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/dist/{abnfDiagram-VRR7QNED-DWDzSKGM.mjs → abnfDiagram-VRR7QNED-CifY53Cb.mjs} +2 -2
- package/dist/{acp-harness-probe-DRAaVrjf.mjs → acp-harness-probe-BRzTGQPW.mjs} +3 -3
- package/dist/alias-JE7RI5QX-D4n6ct-s.mjs +1 -0
- package/dist/{arc-DXUbbcxK.mjs → arc-CXI7xUjm.mjs} +2 -2
- package/dist/architecture-TIHT7OUA-BE8plkIy.mjs +1 -0
- package/dist/{architectureDiagram-ZJ3FMSHR-HYEpY7T3.mjs → architectureDiagram-ZJ3FMSHR-bIjZfWqc.mjs} +2 -2
- package/dist/{array-BbgQa93P.mjs → array-BxvVYvCD.mjs} +1 -1
- package/dist/{awk2-BBAGSFUB-Dq-YdAGA.mjs → awk2-BBAGSFUB-mmQuqryx.mjs} +1 -1
- package/dist/{banner-Be20aAVc.mjs → banner-B6HYYw6k.mjs} +1 -1
- package/dist/{base64-4YMZCVJ5-dXz6vbV-.mjs → base64-4YMZCVJ5-CMwa-nV5.mjs} +1 -1
- package/dist/{basename-AA2KJYZQ-BhoOTAHi.mjs → basename-AA2KJYZQ-qOuF7yJE.mjs} +1 -1
- package/dist/bash-IJWYRKFO-Dv3tavm3.mjs +1 -0
- package/dist/{blockDiagram-677ZJIJ3-yJugV29e.mjs → blockDiagram-677ZJIJ3-CpbM3epf.mjs} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-BFQQLctA.mjs → c4Diagram-LMCZKHZV-BD6yUjvB.mjs} +2 -2
- package/dist/{cat-RDUMLXKC-DFuXWxVq.mjs → cat-RDUMLXKC-CDX9zihc.mjs} +1 -1
- package/dist/channel-C1EZ3Cv_.mjs +2 -0
- package/dist/{chmod-SYMGL4JA-ByMUk130.mjs → chmod-SYMGL4JA-D0kGSLaV.mjs} +1 -1
- package/dist/{chokidar-dh8zokRd.mjs → chokidar-CMbOXikG.mjs} +1 -1
- package/dist/{chunk-2Q5K7J3B-Ck8oGqYt.mjs → chunk-2Q5K7J3B-DqdLeGRA.mjs} +2 -2
- package/dist/{chunk-2TRDZQLB-AH-I_6yN.mjs → chunk-2TRDZQLB-gp_t9c4Y.mjs} +1 -1
- package/dist/{chunk-32BRIVSS-Dwq69mnI.mjs → chunk-32BRIVSS-XYZfTStz.mjs} +2 -2
- package/dist/{chunk-3BS5SKQH-DpdUzS0R.mjs → chunk-3BS5SKQH-HZ6z6wVG.mjs} +3 -3
- package/dist/{chunk-3H6UQG3A-BWCaN15a.mjs → chunk-3H6UQG3A-BMHA6cy_.mjs} +2 -2
- package/dist/{chunk-3ZUFRYJ4-H1A1hWy1.mjs → chunk-3ZUFRYJ4-dXTnHXJv.mjs} +1 -1
- package/dist/{chunk-4GTNDTRF-Cx89i2Y1.mjs → chunk-4GTNDTRF-C_jTvQe4.mjs} +2 -2
- package/dist/{chunk-4HHKTUW3-Dk2l1S8J.mjs → chunk-4HHKTUW3-C0THzwCu.mjs} +1 -1
- package/dist/{chunk-4Q4SM6WR-CGuvvBWe.mjs → chunk-4Q4SM6WR-PC7l8Nw6.mjs} +2 -2
- package/dist/{chunk-52WLFC77-Cn-qt8h-.mjs → chunk-52WLFC77-Dx0kOaIq.mjs} +2 -2
- package/dist/{chunk-55VFSPNA-D2U7n2ka.mjs → chunk-55VFSPNA-C6Zy4paq.mjs} +2 -2
- package/dist/{chunk-5FCAYU7R-DszODYLe.mjs → chunk-5FCAYU7R-DtUYK8N7.mjs} +2 -2
- package/dist/{chunk-5HE753X5-DDnyF29o.mjs → chunk-5HE753X5-BOOWBZ0m.mjs} +2 -2
- package/dist/{chunk-5JV3BV7I-BkeVAZnj.mjs → chunk-5JV3BV7I-CkhohPJD.mjs} +2 -2
- package/dist/{chunk-5QVNJEHU-DS9zA_YV.mjs → chunk-5QVNJEHU-Y4vDIIOv.mjs} +2 -2
- package/dist/{chunk-5TONJI2A-CzUNHQPX.mjs → chunk-5TONJI2A-CH5pkTrL.mjs} +2 -2
- package/dist/{chunk-5V6VZH6T-DBFenjXz.mjs → chunk-5V6VZH6T-DOa3BRZD.mjs} +2 -2
- package/dist/{chunk-5VM5RSS4-C8vNNqW0.mjs → chunk-5VM5RSS4-D8VF3oKI.mjs} +2 -2
- package/dist/{chunk-62RKD26F-C4qK_fA-.mjs → chunk-62RKD26F-8hloI0L5.mjs} +2 -2
- package/dist/{chunk-64BAICW3-BupSxcu5.mjs → chunk-64BAICW3-DBXBwSOH.mjs} +2 -2
- package/dist/{chunk-6Z5SFZXK-Cz0C4bhB.mjs → chunk-6Z5SFZXK-C075dOUN.mjs} +2 -2
- package/dist/{chunk-74CEPOFO-BUVWiXkJ.mjs → chunk-74CEPOFO-CukBzgc1.mjs} +1 -1
- package/dist/{chunk-7BUUIJ7U-D7hE25H9.mjs → chunk-7BUUIJ7U-f1elfo77.mjs} +2 -2
- package/dist/{chunk-7L36YK2X-CGwYuotX.mjs → chunk-7L36YK2X-BGJaUmS5.mjs} +1 -1
- package/dist/{chunk-7TSDKFEO-DBB10vPw.mjs → chunk-7TSDKFEO-CNjAbA1P.mjs} +1 -1
- package/dist/{chunk-A4HU7SVR-BZJ8xDMo.mjs → chunk-A4HU7SVR-CCTrKdQB.mjs} +1 -1
- package/dist/{chunk-A4JSPFCI-Dej71yGP.mjs → chunk-A4JSPFCI-DajVdKHH.mjs} +2 -2
- package/dist/{chunk-A65PWWJC-C-0S-s_f.mjs → chunk-A65PWWJC-C-hcxfZo.mjs} +2 -2
- package/dist/{chunk-A7A2DBEE-DCXJ1xmx.mjs → chunk-A7A2DBEE-qSQcWS6a.mjs} +1 -1
- package/dist/{chunk-A7ICOL4V-BQZ9JZ1A.mjs → chunk-A7ICOL4V-BnS48daC.mjs} +2 -2
- package/dist/{chunk-ALLTKNUZ-D2ZOfcEz.mjs → chunk-ALLTKNUZ-h3DkPQr7.mjs} +2 -2
- package/dist/{chunk-APT7OOP2-D-DaFB7K.mjs → chunk-APT7OOP2-D4fQkI0I.mjs} +2 -2
- package/dist/{chunk-BIQX33UG-Bmho6v3L.mjs → chunk-BIQX33UG-COfXMiTJ.mjs} +2 -2
- package/dist/{chunk-C7G6YPKG-BAX_SClW.mjs → chunk-C7G6YPKG-OX__HWxf.mjs} +2 -2
- package/dist/{chunk-CQNSW5MT-FekKjn0i.mjs → chunk-CQNSW5MT-Cb1cqQRt.mjs} +2 -2
- package/dist/{chunk-CYSBUYHQ-BftsYwRW.mjs → chunk-CYSBUYHQ-B4-ppab8.mjs} +2 -2
- package/dist/{chunk-D4J545R4-Br_5qOnE.mjs → chunk-D4J545R4-BSSyYhq_.mjs} +2 -2
- package/dist/{chunk-D6CWQ5DW-3AWPydfx.mjs → chunk-D6CWQ5DW-CfOJMdG6.mjs} +2 -2
- package/dist/{chunk-D7MEQ3VN-Df6An2jd.mjs → chunk-D7MEQ3VN-t7WGQTJn.mjs} +2 -2
- package/dist/{chunk-DBKNVD4L-DNQP2COw.mjs → chunk-DBKNVD4L-n6jYSppo.mjs} +2 -2
- package/dist/{chunk-DCAAORBQ-BDLVpBG2.mjs → chunk-DCAAORBQ-Csr_bach.mjs} +2 -2
- package/dist/{chunk-EEXR5ZDP-CE452hsE.mjs → chunk-EEXR5ZDP-DHDSM8Cg.mjs} +1 -1
- package/dist/{chunk-EIZGF4BS-CSFp0aUh.mjs → chunk-EIZGF4BS-CQom3CXw.mjs} +2 -2
- package/dist/{chunk-EMLP6XTP-C2yfLzVC.mjs → chunk-EMLP6XTP-B9HJTcgK.mjs} +2 -2
- package/dist/{chunk-EX3LRPZG-Chp9b-Lc.mjs → chunk-EX3LRPZG-CJXUIqRR.mjs} +2 -2
- package/dist/{chunk-F23WWYKW-qKke1WqP.mjs → chunk-F23WWYKW-CqmJHfs_.mjs} +2 -2
- package/dist/{chunk-FWX5IMBZ-Cn1xNcn5.mjs → chunk-FWX5IMBZ-BZ5TJEkl.mjs} +2 -2
- package/dist/{chunk-GCTKCWKD-D0obXRun.mjs → chunk-GCTKCWKD-DaM9S1AG.mjs} +1 -1
- package/dist/{chunk-GOV5EKKI-CDovwI7Z.mjs → chunk-GOV5EKKI-C-RQSVxu.mjs} +2 -2
- package/dist/{chunk-GXVXFKBA-D-BGCybM.mjs → chunk-GXVXFKBA-RIRyJGvt.mjs} +2 -2
- package/dist/{chunk-HDQ56CKY-CI8IkhlS.mjs → chunk-HDQ56CKY-CREcvui6.mjs} +2 -2
- package/dist/{chunk-HJQJAYMS-BHzb4Ncl.mjs → chunk-HJQJAYMS-B-JtedZb.mjs} +1 -1
- package/dist/{chunk-HJWBQKYG-B-KESSoV.mjs → chunk-HJWBQKYG-LHJ71_Q6.mjs} +2 -2
- package/dist/{chunk-HKLCLINH-Bgw53oZd.mjs → chunk-HKLCLINH-BpO-uXL1.mjs} +3 -3
- package/dist/{chunk-HL6NGDO2-CftrHAlX.mjs → chunk-HL6NGDO2-BrwBzY5D.mjs} +2 -2
- package/dist/{chunk-HOUHSVGY-C3h3PdhC.mjs → chunk-HOUHSVGY-q17cYlbE.mjs} +2 -2
- package/dist/{chunk-HWKDQ44K-CGcvROg-.mjs → chunk-HWKDQ44K-Ca2TjRi7.mjs} +2 -2
- package/dist/{chunk-I57KEIP3-iiTO2OC-.mjs → chunk-I57KEIP3-D7P1gGRR.mjs} +1 -1
- package/dist/{chunk-ICXQ74PX-DbJy3VdO.mjs → chunk-ICXQ74PX-DL0eOUe3.mjs} +2 -2
- package/dist/{chunk-JG7HCLWE-lUInQ_44.mjs → chunk-JG7HCLWE-OAdm-dOX.mjs} +2 -2
- package/dist/{chunk-JVPRLUMK-FzUEFQw9.mjs → chunk-JVPRLUMK-D4dgC-kP.mjs} +2 -2
- package/dist/{chunk-JWPE2WC7-iDbhfJR-.mjs → chunk-JWPE2WC7-DdfpL_yU.mjs} +2 -2
- package/dist/{chunk-K6LIBGJA-BXxOXTjI.mjs → chunk-K6LIBGJA-BjeUsobh.mjs} +2 -2
- package/dist/{chunk-KEIR6QF5-BLwvtFl6.mjs → chunk-KEIR6QF5-CSQn6Mqu.mjs} +1 -1
- package/dist/{chunk-KMEYNNUA-1KiUKBQV.mjs → chunk-KMEYNNUA-C8NOqwuc.mjs} +2 -2
- package/dist/{chunk-KRBPSX3W-YDdgrCmf.mjs → chunk-KRBPSX3W-CA3be-GR.mjs} +2 -2
- package/dist/{chunk-LL3S3NLB-D0lLKwVi.mjs → chunk-LL3S3NLB-CVMnLnle.mjs} +2 -2
- package/dist/{chunk-LTZRCH7N-DpPs5vSq.mjs → chunk-LTZRCH7N-BVgQX7ys.mjs} +2 -2
- package/dist/{chunk-LWEGUNWT-DOK-XWMd.mjs → chunk-LWEGUNWT-BHyAIqRk.mjs} +2 -2
- package/dist/{chunk-MDDMCKUK-CTA6qEdN.mjs → chunk-MDDMCKUK-VSIrKrD6.mjs} +2 -2
- package/dist/{chunk-MDLLFABN-B2tA3LLA.mjs → chunk-MDLLFABN-DQ3dWAHi.mjs} +2 -2
- package/dist/{chunk-MHTUABJP-CrR3MfDw.mjs → chunk-MHTUABJP-CHc_qsDr.mjs} +1 -1
- package/dist/{chunk-MIZPJHVH-d3bhRfh4.mjs → chunk-MIZPJHVH-C_BrXHPW.mjs} +2 -2
- package/dist/{chunk-MLXIYONF-C0S_CKb1.mjs → chunk-MLXIYONF-B-vm9fnI.mjs} +1 -1
- package/dist/{chunk-MOJQB5TN-CUt4IiNv.mjs → chunk-MOJQB5TN-Da31nYdf.mjs} +2 -2
- package/dist/{chunk-MOZMSUNE-DCxwDKn7.mjs → chunk-MOZMSUNE-B5kgHl3e.mjs} +2 -2
- package/dist/{chunk-MYE6AGBJ-CMoRJzYM.mjs → chunk-MYE6AGBJ-B1nnJTrG.mjs} +2 -2
- package/dist/{chunk-NAERJDUW-Ck-SZ2Ps.mjs → chunk-NAERJDUW-Br68-Rrx.mjs} +2 -2
- package/dist/{chunk-NCNPKYJZ-BxqfYu6d.mjs → chunk-NCNPKYJZ-BoPSvcFt.mjs} +2 -2
- package/dist/{chunk-NUYSJFDK-DfaBzW-k.mjs → chunk-NUYSJFDK-D3fW0z8Y.mjs} +2 -2
- package/dist/{chunk-OCLXQMOG-DC3689MV.mjs → chunk-OCLXQMOG-jjXsGHS6.mjs} +2 -2
- package/dist/{chunk-OCS6LSEM-BY3_3dNt.mjs → chunk-OCS6LSEM-O_xWB45H.mjs} +2 -2
- package/dist/{chunk-OGEWGWER-DgPAesMA.mjs → chunk-OGEWGWER-DogLxEmQ.mjs} +2 -2
- package/dist/{chunk-OSBZ3O6U-BVpvamr7.mjs → chunk-OSBZ3O6U-BL69ZkWc.mjs} +2 -2
- package/dist/{chunk-PBXLG62G-C12xrBbG.mjs → chunk-PBXLG62G-DHYP3zNq.mjs} +2 -2
- package/dist/{chunk-PP6PSHAB-tlM6YKyg.mjs → chunk-PP6PSHAB-DJdfqM0M.mjs} +1 -1
- package/dist/{chunk-PUDLZKDR-CIWYIjrF.mjs → chunk-PUDLZKDR-C6_GL-hZ.mjs} +2 -2
- package/dist/{chunk-PXTK5WE2-DNbfUrIy.mjs → chunk-PXTK5WE2-BjypHZuZ.mjs} +1 -1
- package/dist/{chunk-PYSFUGCK-DqdcBhD4.mjs → chunk-PYSFUGCK-1wyQjjIa.mjs} +2 -2
- package/dist/{chunk-Q4XR5HBZ-jWirJQsj.mjs → chunk-Q4XR5HBZ-CmIyTunu.mjs} +2 -2
- package/dist/{chunk-QBLGF6JB-hMrl9lGc.mjs → chunk-QBLGF6JB-Chmqe3JT.mjs} +2 -2
- package/dist/{chunk-QCDB2VPH-Cv7mIZWG.mjs → chunk-QCDB2VPH-DeT7iDe9.mjs} +2 -2
- package/dist/{chunk-QJ7O6ZN3-BRN048sn.mjs → chunk-QJ7O6ZN3-pLJnBWb_.mjs} +2 -2
- package/dist/{chunk-R6QSAL5T-CxzbKF59.mjs → chunk-R6QSAL5T-FbTgG420.mjs} +1 -1
- package/dist/{chunk-R7FJI6CG-bmCS8vOS.mjs → chunk-R7FJI6CG-DtnOBvxJ.mjs} +2 -2
- package/dist/{chunk-RPNGRAAP-BTpXCNpb.mjs → chunk-RPNGRAAP-zk52I-x5.mjs} +2 -2
- package/dist/{chunk-RYQCIY6F-Dt7I2-Oy.mjs → chunk-RYQCIY6F-BhxDRSmm.mjs} +2 -2
- package/dist/{chunk-SDNKECQQ-BNRfy-15.mjs → chunk-SDNKECQQ-Ba_9RHGh.mjs} +2 -2
- package/dist/{chunk-SNN4IESC-oXVGT9qo.mjs → chunk-SNN4IESC-WFycXHLb.mjs} +1 -1
- package/dist/{chunk-T56QNPHK-lY6QjpkL.mjs → chunk-T56QNPHK-ziWY7afD.mjs} +2 -2
- package/dist/{chunk-TLSUDHID-BP7dARSe.mjs → chunk-TLSUDHID-KzcTune6.mjs} +2 -2
- package/dist/{chunk-TOMNU26N-BFsBBT9j.mjs → chunk-TOMNU26N-GYFcPoRs.mjs} +2 -2
- package/dist/{chunk-TP4BZANS-C6KGxaUf.mjs → chunk-TP4BZANS-DGEEtypx.mjs} +2 -2
- package/dist/{chunk-TXBZCHCQ-DxPX5PCF.mjs → chunk-TXBZCHCQ-DnLUMlQb.mjs} +2 -2
- package/dist/{chunk-U6XO7XAA-BHty90wb.mjs → chunk-U6XO7XAA-CAV8Xz4u.mjs} +2 -2
- package/dist/{chunk-V5MWI2OL-DApVl_z4.mjs → chunk-V5MWI2OL-CVoVr5km.mjs} +1 -1
- package/dist/{chunk-V7JOEXUC-DNM56rwe.mjs → chunk-V7JOEXUC-CY4XfSMA.mjs} +2 -2
- package/dist/{chunk-V7TAPXDL-CrGsULIH.mjs → chunk-V7TAPXDL-C2FVL1Cc.mjs} +2 -2
- package/dist/chunk-VAUOI2AC-jixxcqz-.mjs +2 -0
- package/dist/{chunk-VJFXDYWH-DXnppZsu.mjs → chunk-VJFXDYWH-CsNcAcBk.mjs} +2 -2
- package/dist/{chunk-VOBGTVA6-_4QbVbSJ.mjs → chunk-VOBGTVA6-C9eHBVbd.mjs} +2 -2
- package/dist/{chunk-VR4S4FIN-RUJ5PgRH.mjs → chunk-VR4S4FIN-C_LXRmnl.mjs} +2 -2
- package/dist/{chunk-VYOJP4TV-DG_cm0JM.mjs → chunk-VYOJP4TV-BUWMbzbv.mjs} +2 -2
- package/dist/{chunk-WKFATFPP-DygaP6No.mjs → chunk-WKFATFPP-BENmMUsK.mjs} +2 -2
- package/dist/{chunk-WYO6CB5R-DN1R0VLx.mjs → chunk-WYO6CB5R-Brxa0zhE.mjs} +2 -2
- package/dist/{chunk-X2AJGDEF-BXjUENXL.mjs → chunk-X2AJGDEF-Bub3T_lz.mjs} +1 -1
- package/dist/{chunk-XKQRETAK-CYJSOFLN.mjs → chunk-XKQRETAK-DHeM48F0.mjs} +2 -2
- package/dist/{chunk-XKWWSDBF-BTj39eCO.mjs → chunk-XKWWSDBF-ni5TCqSh.mjs} +2 -2
- package/dist/{chunk-XVDPCNWR-BSVT7Ttz.mjs → chunk-XVDPCNWR-DoK2rHj9.mjs} +2 -2
- package/dist/chunk-XXDRQBXY-CQXT_9AZ.mjs +2 -0
- package/dist/{chunk-Y2CYZVJY-acXC9Sbb.mjs → chunk-Y2CYZVJY-BW8wJnWV.mjs} +1 -1
- package/dist/{chunk-YMMW5UAP-CE-EQ2Is.mjs → chunk-YMMW5UAP-BQm_v5Kl.mjs} +2 -2
- package/dist/{chunk-YOTPTUD7-63S9b4Z2.mjs → chunk-YOTPTUD7-DNauVPQF.mjs} +2 -2
- package/dist/{chunk-YTNYSM6T-DFPh_641.mjs → chunk-YTNYSM6T-C3I3Zko5.mjs} +2 -2
- package/dist/{chunk-YULBWSET-B6FKJjk9.mjs → chunk-YULBWSET-CkTpBwtE.mjs} +2 -2
- package/dist/{chunk-Z6LRHWXI-BCgawaNX.mjs → chunk-Z6LRHWXI-BACRBvOV.mjs} +1 -1
- package/dist/{chunk-Z7JVV2SM-CTUpikzI.mjs → chunk-Z7JVV2SM-BtK-_LmQ.mjs} +2 -2
- package/dist/{chunk-ZGVPDNZ5-CyyHBEs2.mjs → chunk-ZGVPDNZ5-UmSUWBQJ.mjs} +2 -2
- package/dist/{chunk-ZIRB5QZD-K23GvNu-.mjs → chunk-ZIRB5QZD-CmUycQw3.mjs} +2 -2
- package/dist/{chunk-ZZO3UDB3-MiEiJy8J.mjs → chunk-ZZO3UDB3-Cz8Gdrsy.mjs} +2 -2
- package/dist/classDiagram-OUVF2IWQ-DkvHcHg8.mjs +2 -0
- package/dist/classDiagram-v2-EOCWNBFH-C9xEWxX3.mjs +2 -0
- package/dist/{clear-5CZ5X4YR-BICGLF_r.mjs → clear-5CZ5X4YR-BiAnnKkP.mjs} +1 -1
- package/dist/cli.mjs +61 -62
- package/dist/{column-WLPMMSTS-D0I9TpQ2.mjs → column-WLPMMSTS-B-DDJ8BB.mjs} +1 -1
- package/dist/{comm-5SLSESQG-D2Rs9Jmo.mjs → comm-5SLSESQG-Bra_WoCJ.mjs} +1 -1
- package/dist/constants-COPfVWti.mjs +2 -0
- package/dist/{cose-bilkent-JH36ORCC-B1gjUwU3.mjs → cose-bilkent-JH36ORCC-BfqwRENl.mjs} +2 -2
- package/dist/{du-WO2ENHXQ-oQRVbsEF.mjs → cp-XOYR4ABJ-DngaDNNP.mjs} +1 -1
- package/dist/{curl-47BFPSFW-Ko1BcK_R.mjs → curl-47BFPSFW-eHCZdiPu.mjs} +2 -2
- package/dist/{cut-OPC3VAGB-BAhJz0Qh.mjs → cut-OPC3VAGB-CivcnWkF.mjs} +1 -1
- package/dist/cynefin-VYW2F7L2-DPwh86oV.mjs +1 -0
- package/dist/{cynefinDiagram-TSTJHNR4-CoESbhp4.mjs → cynefinDiagram-TSTJHNR4-CpOWwyYe.mjs} +2 -2
- package/dist/{cytoscape.esm-D6l9Lhue.mjs → cytoscape.esm-S8jaq1C7.mjs} +1 -1
- package/dist/{dagre-BkPA5x_w.mjs → dagre-BaMkyuee.mjs} +2 -2
- package/dist/{dagre-VKFMJZFB-BhCtWAkc.mjs → dagre-VKFMJZFB-DwCCM0Xp.mjs} +2 -2
- package/dist/{head-HT2B6D2J-CHIR76LI.mjs → date-DD7FVA2V-jnHsShFZ.mjs} +1 -1
- package/dist/{defaultLocale-DN4qDyCE.mjs → defaultLocale-BWtuB8BB.mjs} +1 -1
- package/dist/{diagram-FQU43EPY-BdshpOzp.mjs → diagram-FQU43EPY-BQAC9zdy.mjs} +2 -2
- package/dist/{diagram-G47NLZAW-Lw1fB9_w.mjs → diagram-G47NLZAW-CuvDx6FS.mjs} +2 -2
- package/dist/{diagram-NH7WQ7WH-DnzwFaQq.mjs → diagram-NH7WQ7WH-C_jC8qIM.mjs} +2 -2
- package/dist/{diagram-OA4YK3LP-BXU-URV1.mjs → diagram-OA4YK3LP-Bn50iqJR.mjs} +2 -2
- package/dist/{diagram-WEI45ONY-CD_Zpcvk.mjs → diagram-WEI45ONY-BDhDmqvX.mjs} +2 -2
- package/dist/diff-HJF2MPDN-4GoCoHUK.mjs +1 -0
- package/dist/{dirname-LEMTZZFS-BG01-R4_.mjs → dirname-LEMTZZFS-BOmi4y1i.mjs} +1 -1
- package/dist/{dist-CMZz8-Ge.mjs → dist-C-LC4jV0.mjs} +1 -1
- package/dist/{cp-XOYR4ABJ-OfwEEWhR.mjs → du-WO2ENHXQ-B55Wl_Sp.mjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-D-647A1u.mjs → ebnfDiagram-CCIWWBDH-BrF0vS_c.mjs} +2 -2
- package/dist/echo-O45JWWI2-BQH9Rbvo.mjs +1 -0
- package/dist/env-5EPCWSXR-Dw_d1C_s.mjs +1 -0
- package/dist/{erDiagram-Q63AITRT-DviwoNdm.mjs → erDiagram-Q63AITRT-ke2iIs_t.mjs} +2 -2
- package/dist/esm-DmX1RzAi.mjs +20 -0
- package/dist/eventmodeling-45OFAUF4-DGzNexs8.mjs +1 -0
- package/dist/{execAsync-BLKHjfg7.mjs → execAsync-BA_C-_A9.mjs} +1 -1
- package/dist/{execAsync-C5ympCkf.mjs → execAsync-BqpCoDXT.mjs} +1 -1
- package/dist/{expand-DTNXU4LQ-XU44HrWp.mjs → expand-DTNXU4LQ-HW95aAXH.mjs} +1 -1
- package/dist/expr-YYCVMXE3-S1QPzhwP.mjs +1 -0
- package/dist/{date-DD7FVA2V-BGJ9-l0O.mjs → file-IGDTDPLG-Bs0TzVWz.mjs} +1 -1
- package/dist/find-DH2ALKQS-Ds4UmE23.mjs +1 -0
- package/dist/flag-coverage-6JEX67RU-BwjLnPN2.mjs +2 -0
- package/dist/flowDiagram-23GEKE2U-CP46dUl2.mjs +1 -0
- package/dist/{fold-LDSORVYE-DumfsCQO.mjs → fold-LDSORVYE-D3m5AEML.mjs} +1 -1
- package/dist/{fs-traced-DJHV_QPy.mjs → fs-traced-BUirY9_X.mjs} +3 -3
- package/dist/fs-traced-CDdByB1Z.mjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-DnN5cTGV.mjs → ganttDiagram-NO4QXBWP-COgIprWR.mjs} +2 -2
- package/dist/{getMachineId-bsd-B_NuwbXS.mjs → getMachineId-bsd-CIJruWed.mjs} +2 -2
- package/dist/{getMachineId-bsd-neTWr-l3.mjs → getMachineId-bsd-CR6ADOtk.mjs} +2 -2
- package/dist/{getMachineId-darwin-BP4aVKkL.mjs → getMachineId-darwin-CsjV7rRA.mjs} +2 -2
- package/dist/{getMachineId-darwin-DKDl-xYO.mjs → getMachineId-darwin-DfwRihra.mjs} +2 -2
- package/dist/{getMachineId-linux-Bexb2iRT.mjs → getMachineId-linux-BFZntue3.mjs} +1 -1
- package/dist/{getMachineId-linux-YTb5epZX.mjs → getMachineId-linux-Db26oBf8.mjs} +1 -1
- package/dist/{getMachineId-unsupported-Ddv20ynQ.mjs → getMachineId-unsupported-D0viNi1R.mjs} +1 -1
- package/dist/{getMachineId-unsupported-DdwXS_Q3.mjs → getMachineId-unsupported-DprC99Fl.mjs} +1 -1
- package/dist/{getMachineId-win-BNx0EbPq.mjs → getMachineId-win-51ZBNzaO.mjs} +2 -2
- package/dist/{getMachineId-win-D8cNuBNk.mjs → getMachineId-win-BK2WTxBT.mjs} +2 -2
- package/dist/gitGraph-TEB2WS4Q-BmT0y88b.mjs +1 -0
- package/dist/{gitGraphDiagram-IHSO6WYX-Bs2N855t.mjs → gitGraphDiagram-IHSO6WYX-Dii-ToNc.mjs} +2 -2
- package/dist/{graphlib-DXQPHTiH.mjs → graphlib-BDAowsct.mjs} +1 -1
- package/dist/grep-2HUTXO5U-xFL26YrS.mjs +1 -0
- package/dist/gzip-AQXSGOVS-CSmJK8Rj.mjs +1 -0
- package/dist/{file-IGDTDPLG-sPfWVy9T.mjs → head-HT2B6D2J-CfgVUXjv.mjs} +1 -1
- package/dist/help-VVWX7SA5-DOWLYy0x.mjs +1 -0
- package/dist/history-J4QRNGRO-Dche7T8E.mjs +1 -0
- package/dist/{hostname-BK6HG2DE-Clwz043m.mjs → hostname-BK6HG2DE-DQrUsDdl.mjs} +1 -1
- package/dist/html-to-markdown-TFCECAGV-CS2kaY1h.mjs +1 -0
- package/dist/index.mjs +1 -1
- package/dist/info-DKCQHKI2-svktUZ6l.mjs +1 -0
- package/dist/{infoDiagram-FWYZ7A6U-CD5T72Pd.mjs → infoDiagram-FWYZ7A6U-DPvNkkYe.mjs} +2 -2
- package/dist/init-BvRbf5jC.mjs +1 -0
- package/dist/{init-D8OKme52.mjs → init-DRQyOUkz.mjs} +1 -1
- package/dist/{init-Bi1d2uLD.mjs → init-pIJddeyG.mjs} +43 -43
- package/dist/{ishikawaDiagram-FXEZZL3T-CzHEtbdq.mjs → ishikawaDiagram-FXEZZL3T-B1d77HdO.mjs} +2 -2
- package/dist/{join-GG2LDHE5-BIH_-8vD.mjs → join-GG2LDHE5-D3-YSo2O.mjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-BywkQV2b.mjs → journeyDiagram-5HDEW3XC-DE8I99vn.mjs} +2 -2
- package/dist/jq-LYZFFBZB-BPcTXH--.mjs +1 -0
- package/dist/{js-exec-VXN6TZ7U-BrugyKqi.mjs → js-exec-VXN6TZ7U-14kXJVQY.mjs} +2 -2
- package/dist/{kanban-definition-HUTT4EX6-DIgH0tMg.mjs → kanban-definition-HUTT4EX6-Cw3CuKcg.mjs} +2 -2
- package/dist/{launch-json-removal-BUYuUwT_.mjs → launch-json-removal-CnIk3WE-.mjs} +2 -2
- package/dist/{lib-DuDqLKFD.mjs → lib-DD6URxCv.mjs} +1 -1
- package/dist/{lib-ozx_WsjS.mjs → lib-GfyUqUMQ.mjs} +1 -1
- package/dist/{line-eTDW_zUy.mjs → line-CJOWyLcQ.mjs} +2 -2
- package/dist/{linear-Cn1royVQ.mjs → linear-B98AeboV.mjs} +2 -2
- package/dist/{ln-4TRFBYAT-B0hi-FAf.mjs → ln-4TRFBYAT-DDI4VC8k.mjs} +1 -1
- package/dist/loader-B2V-uVIv.mjs +1 -0
- package/dist/{loader-DXsqPNjF.mjs → loader-BeDgboJk.mjs} +2 -2
- package/dist/{logger-DFxEUjvj.mjs → logger-CnfEoHs1.mjs} +2 -2
- package/dist/ls-KSXFZCWH-DtBVxnlG.mjs +1 -0
- package/dist/{lzma-CD6C2vYw.mjs → lzma-BHUlFqhy.mjs} +1 -1
- package/dist/{map-bDB3k8vA.mjs → map--Gi5y9ID.mjs} +2 -2
- package/dist/{mcp-migrate-event-B1gJf6bG.mjs → mcp-migrate-event-BsswfOLm.mjs} +1 -1
- package/dist/md5sum-INMIK4DX-6QMuVHyp.mjs +1 -0
- package/dist/{mermaid-parser.core-uwQfwzUX.mjs → mermaid-parser.core-l2oLJb5a.mjs} +2 -2
- package/dist/{mermaid.core-BgpKViY0.mjs → mermaid.core-BW-ojLzZ.mjs} +3 -3
- package/dist/{mindmap-definition-LN4V7U3C-H3p7uT-G.mjs → mindmap-definition-LN4V7U3C-DszaH9jw.mjs} +2 -2
- package/dist/mkdir-TDEMSB6C-B7FUPgJT.mjs +1 -0
- package/dist/mv-Z6MORUFL-CiC5IjMZ.mjs +1 -0
- package/dist/{nl-U5YJDM32-BO1kUpkn.mjs → nl-U5YJDM32-D0P18t46.mjs} +1 -1
- package/dist/{od-VJEF2UR5-DxUGtlve.mjs → od-VJEF2UR5-CVvpPv2t.mjs} +1 -1
- package/dist/{open-browser-CHq05YCN.mjs → open-browser-OsCLGa-m.mjs} +2 -2
- package/dist/{ordinal-BFK2XMXf.mjs → ordinal-BAodviWw.mjs} +2 -2
- package/dist/packet-7NZHBO7P-Bwz73sSr.mjs +1 -0
- package/dist/paste-7N6AFSDS-wGVGynNz.mjs +1 -0
- package/dist/{path-CIoCsClp.mjs → path-BHIKZp6_.mjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-PBU61CXk.mjs → pegDiagram-2B236MQR-BWcVFngN.mjs} +2 -2
- package/dist/pie-RZYD4A2V-CE38luFp.mjs +1 -0
- package/dist/{pieDiagram-ENE6RG2P-ClZWrO6e.mjs → pieDiagram-ENE6RG2P-C3vtfksj.mjs} +2 -2
- package/dist/preview-B9gSOFlh.mjs +1 -0
- package/dist/{preview-BENkmrSy.mjs → preview-hjy0gI0i.mjs} +2 -2
- package/dist/printf-CX64KX2P-CaJGJKBk.mjs +1 -0
- package/dist/pwd-D4OZ7N27-BSUHCKp6.mjs +1 -0
- package/dist/{python3-DNGS4G3E-OzxoFG34.mjs → python3-DNGS4G3E-B2EbGP6l.mjs} +2 -2
- package/dist/{quadrantDiagram-ABIIQ3AL-Z4PbVL1N.mjs → quadrantDiagram-ABIIQ3AL-CiO_sFTm.mjs} +2 -2
- package/dist/radar-I7S5WNFK-pz955tjg.mjs +1 -0
- package/dist/railroad-3IZDKUUU-AFlm6w4m.mjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-BTUueThU.mjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-BUaSAE_y.mjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-WqmNlxVP.mjs +1 -0
- package/dist/{railroadDiagram-RFXS5EU6-ZSRYpY_p.mjs → railroadDiagram-RFXS5EU6-DkLolDmi.mjs} +2 -2
- package/dist/readlink-MI4GCHJF-jTt0vAz9.mjs +1 -0
- package/dist/{repair-launch-json-D_fCoitG.mjs → repair-launch-json-BocgwEI5.mjs} +2 -2
- package/dist/repair-mcp-configs-BrBkt_hT.mjs +2 -0
- package/dist/repair-skills-BMZ7VleT.mjs +1 -0
- package/dist/repair-skills-C-3CmI5S.mjs +4 -0
- package/dist/{requirementDiagram-TGXJPOKE-H6OWjjJE.mjs → requirementDiagram-TGXJPOKE-DIdD7wig.mjs} +2 -2
- package/dist/{rev-XOSYPP45-BYe7prl1.mjs → rev-XOSYPP45-BSIdnqPx.mjs} +1 -1
- package/dist/rg-XNF3R3II-C4OSm0Dp.mjs +1 -0
- package/dist/rm-RTZG23RL--LfClUwt.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-Dfu2C4rD.mjs +1 -0
- package/dist/{rough.cjs-BGkc0Naf.mjs → rough.cjs-CV0Ml7Xq.mjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-CtBVJJox.mjs → sankeyDiagram-HTMAVEWB-BCm3ffYX.mjs} +2 -2
- package/dist/{sed-JAPPVBEU-D9bYEx2I.mjs → sed-JAPPVBEU-CDtlHkuH.mjs} +1 -1
- package/dist/seq-RN5ZUASB-C9jABiAl.mjs +1 -0
- package/dist/{sequenceDiagram-DBY2YBRQ-DDLm4Ak_.mjs → sequenceDiagram-DBY2YBRQ-ytgs0V7Z.mjs} +2 -2
- package/dist/server-lock-C_lebUd3.mjs +1 -0
- package/dist/{server-lock-qqJQphTS.mjs → server-lock-DbS4Uxaj.mjs} +2 -2
- package/dist/sha1sum-VJPNLNU6-DxVErSr_.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-EG_naFg1.mjs +1 -0
- package/dist/{sizeCapture-X5ZJPWSS-Izaz24Pi.mjs → sizeCapture-X5ZJPWSS-ChxCz8k2.mjs} +2 -2
- package/dist/{skill-teardown-B4kT3Fxa.mjs → skill-teardown-CH2C4nmj.mjs} +2 -2
- package/dist/{sleep-VZFPZFWA-5fZFI3Vy.mjs → sleep-VZFPZFWA-B7Ffcstc.mjs} +1 -1
- package/dist/sort-DCNRDA7U-BysvX8_9.mjs +1 -0
- package/dist/{split-SITCSYCZ-BdATfTxU.mjs → split-SITCSYCZ-BplA1_68.mjs} +1 -1
- package/dist/{sqlite3-TE5AIOTF-BIRMe0xz.mjs → sqlite3-TE5AIOTF-BbzgGp0m.mjs} +1 -1
- package/dist/{src-BPVU4Y0o.mjs → src-BbZVR6qh.mjs} +2 -2
- package/dist/src-BxyYlbvx.mjs +1 -0
- package/dist/src-DFKvCzqo.mjs +20 -0
- package/dist/{src-n7camJHB.mjs → src-Dg0jHVcz.mjs} +1 -1
- package/dist/src-y0X27yQX.mjs +2032 -0
- package/dist/start-C9fu-159.mjs +1 -0
- package/dist/start-Dtt8oak3.mjs +10 -0
- package/dist/stat-BT5A227F-CXXodVC_.mjs +1 -0
- package/dist/{stateDiagram-2N3HPSRC-pAn2bDnn.mjs → stateDiagram-2N3HPSRC-BL08Hdlz.mjs} +2 -2
- package/dist/stateDiagram-v2-6OUMAXLB-DWhomgSq.mjs +2 -0
- package/dist/strings-7PLOGTPD-Nwy6Xrva.mjs +1 -0
- package/dist/{swimlanes-5IMT3BWC-nSsjdSnj.mjs → swimlanes-5IMT3BWC-BLoq7OFB.mjs} +2 -2
- package/dist/swimlanesDiagram-G3AALYLV-Cv2Skneu.mjs +9 -0
- package/dist/{tac-SJGXQ4T2-DphHfCAY.mjs → tac-SJGXQ4T2-CDjky8wm.mjs} +1 -1
- package/dist/tail-S5ULNTJU-BeMiY4Ip.mjs +1 -0
- package/dist/{tar-MZQD7NO4-oAQoyk28.mjs → tar-MZQD7NO4-CvmpRV6c.mjs} +1 -1
- package/dist/tee-O7VXZDCO-DvqoGhss.mjs +1 -0
- package/dist/time-DEUO3QV2-wD_Yk1Gc.mjs +1 -0
- package/dist/{timeline-definition-FHXFAJF6-CnTXJoEq.mjs → timeline-definition-FHXFAJF6-B04TQQaT.mjs} +2 -2
- package/dist/{timeout-VRKMCG72-jeMAkAMc.mjs → timeout-VRKMCG72-0jgK5Ox1.mjs} +1 -1
- package/dist/touch-DX2IJOQ4-DJPgV9CW.mjs +1 -0
- package/dist/tr-2HXZRDSW-sXW7fivD.mjs +1 -0
- package/dist/tree-LYXBS7DC-CvV2g1Ry.mjs +1 -0
- package/dist/treeView-QDETBFTQ-c4b9tG2O.mjs +1 -0
- package/dist/treemap-6X3UGDF4-DrpuzrWt.mjs +1 -0
- package/dist/true-WHJNXCHG-BZzpC6GD.mjs +1 -0
- package/dist/ui-B35mCBIN.mjs +3 -0
- package/dist/ui-D9Vnv2aH.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-DNf7-ZPk.mjs +1 -0
- package/dist/uniq-SUNANL47-B-K7MChP.mjs +1 -0
- package/dist/{vennDiagram-L72KCM5P-CqTzYRfa.mjs → vennDiagram-L72KCM5P-Ceol1qSg.mjs} +2 -2
- package/dist/wardley-OPB4EBWU-B4h8UV8p.mjs +1 -0
- package/dist/{wardleyDiagram-EHGQE667-WhxG-nRT.mjs → wardleyDiagram-EHGQE667-DNEGm0iK.mjs} +2 -2
- package/dist/wc-TQB3VNOX-BSm-v72n.mjs +1 -0
- package/dist/which-XZHEH76L-BOgRrNLi.mjs +1 -0
- package/dist/whoami-DGKU3D2X-BsXYdCHU.mjs +1 -0
- package/dist/write-project-skill-BP9EVRr-.mjs +38 -0
- package/dist/xan-UD7JYIL2-BXWuwgCX.mjs +1 -0
- package/dist/xan-view-OW2TB7Z3-BGaBgg3C.mjs +1 -0
- package/dist/xargs-I6EZUCYF-DFS4BAln.mjs +1 -0
- package/dist/{xychartDiagram-FW5EYKEG-DDE7TRrw.mjs → xychartDiagram-FW5EYKEG-D7BmnN1n.mjs} +2 -2
- package/dist/yq-OAKYHSXH-T6sHAYIQ.mjs +1 -0
- package/package.json +4 -4
- package/dist/alias-JE7RI5QX-VxEqWoTW.mjs +0 -1
- package/dist/architecture-TIHT7OUA-Bl3hpxt3.mjs +0 -1
- package/dist/bash-IJWYRKFO-jaJEvAZe.mjs +0 -1
- package/dist/channel-Cjp51EO_.mjs +0 -2
- package/dist/chunk-VAUOI2AC-BdotBBDE.mjs +0 -2
- package/dist/chunk-XXDRQBXY-D1gFTzjI.mjs +0 -2
- package/dist/classDiagram-OUVF2IWQ-0ApI9cDS.mjs +0 -2
- package/dist/classDiagram-v2-EOCWNBFH-DfQYJWNe.mjs +0 -2
- package/dist/constants-DLJSo46_.mjs +0 -2
- package/dist/cynefin-VYW2F7L2-C-aICrN-.mjs +0 -1
- package/dist/diff-HJF2MPDN-CQAaA8lM.mjs +0 -1
- package/dist/echo-O45JWWI2-BPosfKdD.mjs +0 -1
- package/dist/env-5EPCWSXR-DygzVPiG.mjs +0 -1
- package/dist/eventmodeling-45OFAUF4-CJqJ2hnR.mjs +0 -1
- package/dist/expr-YYCVMXE3-DI2glLwn.mjs +0 -1
- package/dist/find-DH2ALKQS-CEKaRkgJ.mjs +0 -1
- package/dist/flag-coverage-6JEX67RU-QmoBigPs.mjs +0 -2
- package/dist/flowDiagram-23GEKE2U-Dhi3SNHm.mjs +0 -1
- package/dist/fs-traced-GKhfy5ua.mjs +0 -1
- package/dist/gitGraph-TEB2WS4Q-_V7TMkJv.mjs +0 -1
- package/dist/grep-2HUTXO5U-DG5Ulinc.mjs +0 -1
- package/dist/gzip-AQXSGOVS-D6UYmM0C.mjs +0 -1
- package/dist/help-VVWX7SA5-BbK0QLPX.mjs +0 -1
- package/dist/history-J4QRNGRO-5XgHJL_Q.mjs +0 -1
- package/dist/html-to-markdown-TFCECAGV-BsVwcc4T.mjs +0 -1
- package/dist/info-DKCQHKI2-DIsEz1l_.mjs +0 -1
- package/dist/init-CqUUUDta.mjs +0 -1
- package/dist/jq-LYZFFBZB-Dlyx6Y7w.mjs +0 -1
- package/dist/loader-DAMg0xnL.mjs +0 -1
- package/dist/ls-KSXFZCWH-C_kbnNdU.mjs +0 -1
- package/dist/md5sum-INMIK4DX-DGvi_A-E.mjs +0 -1
- package/dist/mkdir-TDEMSB6C-CMOt1jIT.mjs +0 -1
- package/dist/mv-Z6MORUFL-CqyCV_Ze.mjs +0 -1
- package/dist/packet-7NZHBO7P-B64OS2eJ.mjs +0 -1
- package/dist/paste-7N6AFSDS-BJHZcYXH.mjs +0 -1
- package/dist/pie-RZYD4A2V-B313HDTA.mjs +0 -1
- package/dist/preview-aNluJ6KN.mjs +0 -1
- package/dist/printf-CX64KX2P-841sNxew.mjs +0 -1
- package/dist/pwd-D4OZ7N27-C41v1g3B.mjs +0 -1
- package/dist/radar-I7S5WNFK-BdiwGd2_.mjs +0 -1
- package/dist/railroad-3IZDKUUU-O4nBw7jb.mjs +0 -1
- package/dist/railroad-abnf-AHOZXSZD-CDaO5Dcu.mjs +0 -1
- package/dist/railroad-ebnf-EBAXGLYW-CS4l_gpR.mjs +0 -1
- package/dist/railroad-peg-LSFZ7HO6-bbLhALeS.mjs +0 -1
- package/dist/readlink-MI4GCHJF-CQlQ03aa.mjs +0 -1
- package/dist/repair-mcp-configs-C3cLZGEE.mjs +0 -2
- package/dist/repair-skills-BKjhKhUN.mjs +0 -4
- package/dist/repair-skills-DN4OicpR.mjs +0 -1
- package/dist/rg-XNF3R3II-CmxxmmUf.mjs +0 -1
- package/dist/rm-RTZG23RL-Bl5s9ltJ.mjs +0 -1
- package/dist/rmdir-XTQXT7RK-C1ccje2_.mjs +0 -1
- package/dist/seq-RN5ZUASB-CFySG-xk.mjs +0 -1
- package/dist/server-lock-rwNc7NVh.mjs +0 -1
- package/dist/sha1sum-VJPNLNU6-DgLJCjAg.mjs +0 -1
- package/dist/sha256sum-PI32XWXY-DZ42pgY3.mjs +0 -1
- package/dist/sort-DCNRDA7U-RFl0HYBr.mjs +0 -1
- package/dist/src-BB2_Ksle.mjs +0 -2032
- package/dist/src-DyAkipH8.mjs +0 -1
- package/dist/src-Joe5Ft2d.mjs +0 -20
- package/dist/start-BUeLlQd8.mjs +0 -1
- package/dist/start-CYM9hyHf.mjs +0 -4
- package/dist/stat-BT5A227F-Dd-OyLQQ.mjs +0 -1
- package/dist/stateDiagram-v2-6OUMAXLB-DCmVVpGm.mjs +0 -2
- package/dist/strings-7PLOGTPD-v3qEuUEm.mjs +0 -1
- package/dist/swimlanesDiagram-G3AALYLV-CdQlHesp.mjs +0 -9
- package/dist/tail-S5ULNTJU-D6qRQZwV.mjs +0 -1
- package/dist/tee-O7VXZDCO-odVO6Wjw.mjs +0 -1
- package/dist/time-DEUO3QV2-CviQF55F.mjs +0 -1
- package/dist/touch-DX2IJOQ4-CyiMRd7b.mjs +0 -1
- package/dist/tr-2HXZRDSW-CCce6lU_.mjs +0 -1
- package/dist/tree-LYXBS7DC-pAC77Hbt.mjs +0 -1
- package/dist/treeView-QDETBFTQ-BCAjffnq.mjs +0 -1
- package/dist/treemap-6X3UGDF4-Dv-54pyt.mjs +0 -1
- package/dist/true-WHJNXCHG-Dzdq7R5f.mjs +0 -1
- package/dist/unexpand-RGTMIGZM-B06mOUPB.mjs +0 -1
- package/dist/uniq-SUNANL47-BIgIOFSf.mjs +0 -1
- package/dist/wardley-OPB4EBWU-DSvo57UC.mjs +0 -1
- package/dist/wc-TQB3VNOX-9RyJlZXB.mjs +0 -1
- package/dist/which-XZHEH76L-SMFjHhz2.mjs +0 -1
- package/dist/whoami-DGKU3D2X-BIUooLXE.mjs +0 -1
- package/dist/write-project-skill-BD0rO6kN.mjs +0 -56
- package/dist/xan-UD7JYIL2-DAuAMQ0H.mjs +0 -1
- package/dist/xan-view-OW2TB7Z3-CwG0zS53.mjs +0 -1
- package/dist/xargs-I6EZUCYF-INAdKqnR.mjs +0 -1
- package/dist/yq-OAKYHSXH-C1fFFHD4.mjs +0 -1
- /package/dist/{expansion-VBDYWVZR-CpX0YZMb.mjs → expansion-VBDYWVZR-C0SApT6U.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{t as n}from"./chunk-HWKDQ44K-CGcvROg-.mjs";const r=(e,t,n)=>{let r=e instanceof RegExp?i(e,n):e,o=t instanceof RegExp?i(t,n):t,s=r!==null&&o!=null&&a(r,o,n);return s&&{start:s[0],end:s[1],pre:n.slice(0,s[0]),body:n.slice(s[0]+r.length,s[1]),post:n.slice(s[1]+o.length)}},i=(e,t)=>{let n=t.match(e);return n?n[0]:null},a=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},o=`\0SLASH`+Math.random()+`\0`,s=`\0OPEN`+Math.random()+`\0`,c=`\0CLOSE`+Math.random()+`\0`,l=`\0COMMA`+Math.random()+`\0`,u=`\0PERIOD`+Math.random()+`\0`,d=new RegExp(o,`g`),f=new RegExp(s,`g`),p=new RegExp(c,`g`),m=new RegExp(l,`g`),h=new RegExp(u,`g`),g=/\\\\/g,_=/\\{/g,v=/\\}/g,ee=/\\,/g,te=/\\\./g;function y(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function ne(e){return e.replace(g,o).replace(_,s).replace(v,c).replace(ee,l).replace(te,u)}function re(e){return e.replace(d,`\\`).replace(f,`{`).replace(p,`}`).replace(m,`,`).replace(h,`.`)}function b(e){if(!e)return[``];let t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:i,body:a,post:o}=n,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;let c=b(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function ie(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),S(ne(e),n,!0).map(re)}function ae(e){return`{`+e+`}`}function x(e){return/^-?0\d/.test(e)}function oe(e,t){return e<=t}function se(e,t){return e>=t}function S(e,t,n){let i=[];for(;;){let a=r(`{`,`}`,e);if(!a)return[e];let o=a.pre;if(/\$$/.test(a.pre)){let e=a.post.length?S(a.post,t,!1):[``];for(let n=0;n<e.length&&n<t;n++){let t=o+`{`+a.body+`}`+e[n];i.push(t)}return i}let s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),u=s||l,d=a.body.indexOf(`,`)>=0;if(!u&&!d){if(a.post.match(/,(?!,).*\}/)){e=a.pre+`{`+a.body+c+a.post,n=!0;continue}return[e]}let f=a.post.length?S(a.post,t,!1):[``],p;if(u)p=a.body.split(/\.\./);else if(p=b(a.body),p.length===1&&p[0]!==void 0&&(p=S(p[0],t,!1).map(ae),p.length===1))return f.map(e=>a.pre+p[0]+e);let m;if(u&&p[0]!==void 0&&p[1]!==void 0){let e=y(p[0]),n=y(p[1]),r=Math.max(p[0].length,p[1].length),i=p.length===3&&p[2]!==void 0?Math.max(Math.abs(y(p[2])),1):1,a=oe;n<e&&(i*=-1,a=se);let o=p.some(x);m=[];for(let s=e;a(s,n)&&m.length<t;s+=i){let e;if(l)e=String.fromCharCode(s),e===`\\`&&(e=``);else if(e=String(s),o){let t=r-e.length;if(t>0){let n=Array(t+1).join(`0`);e=s<0?`-`+n+e.slice(1):n+e}}m.push(e)}}else{m=[];for(let e=0;e<p.length;e++)m.push.apply(m,S(p[e],t,!1))}for(let e=0;e<m.length;e++)for(let r=0;r<f.length&&i.length<t;r++){let t=o+m[e]+f[r];(!n||u||t)&&i.push(t)}return i}}const C=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},ce={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},w=e=>e.replace(/[[\]\\-]/g,`\\$&`),le=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),T=e=>e.join(``),ue=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;a<e.length;){let t=e.charAt(a);if((t===`!`||t===`^`)&&a===n+1){l=!0,a++;continue}if(t===`]`&&o&&!c){u=a+1;break}if(o=!0,t===`\\`&&!c){c=!0,a++;continue}if(t===`[`&&!c){for(let[t,[o,c,l]]of Object.entries(ce))if(e.startsWith(t,a)){if(d)return[`$.`,!1,e.length-n,!0];a+=t.length,l?i.push(o):r.push(o),s||=c;continue WHILE}}if(c=!1,d){t>d?r.push(w(d)+`-`+w(t)):t===d&&r.push(w(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(w(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(w(t)),a++}if(u<a)return[``,!1,0,!1];if(!r.length&&!i.length)return[`$.`,!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l)return[le(r[0].length===2?r[0].slice(-1):r[0]),!1,u-n,!1];let f=`[`+(l?`^`:``)+T(r)+`]`,p=`[`+(l?``:`^`)+T(i)+`]`;return[r.length&&i.length?`(`+f+`|`+p+`)`:r.length?f:p,s,u-n,!0]},E=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`);var D;const O=new Set([`!`,`?`,`+`,`*`,`@`]),k=e=>O.has(e),A=e=>k(e.type),j=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),de=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),fe=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),M=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),N=`(?!\\.)`,pe=new Set([`[`,`.`]),me=new Set([`..`,`.`]),he=new Set(`().*{}+?[]^$\\!`),ge=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),P=`[^/]`,F=P+`*?`,I=P+`+?`;let L=0;var R=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++L;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...e){for(let t of e)if(t!==``){if(typeof t!=`string`&&!(t instanceof D&&t.#i===this))throw Error(`invalid part: `+t);this.#r.push(t)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;t<this.#a;t++){let n=e.#r[t];if(!(n instanceof D&&n.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(e){let t=new D(this.type,e);for(let e of this.#r)t.copyIn(e);return t}static#f(e,t,n,r,i){let a=r.maxExtglobRecursion??2,o=!1,s=!1,c=-1,l=!1;if(t.type===null){let u=n,d=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,d+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),d+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,d+=n;continue}if(!r.noext&&k(n)&&e.charAt(u)===`(`&&i<=a){t.push(d),d=``;let a=new D(n,t);u=D.#f(e,a,u,r,i+1),t.push(a);continue}d+=n}return t.push(d),u}let u=n+1,d=new D(null,t),f=[],p=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,p+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),p+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,p+=n;continue}if(!r.noext&&k(n)&&e.charAt(u)===`(`&&(i<=a||t&&t.#h(n))){let a=t&&t.#h(n)?0:1;d.push(p),p=``;let o=new D(n,d);d.push(o),u=D.#f(e,o,u,r,i+a);continue}if(n===`|`){d.push(p),p=``,f.push(d),d=new D(null,t);continue}if(n===`)`)return p===``&&t.#r.length===0&&(t.#u=!0),d.push(p),p=``,t.push(...f,d),u;p+=n}return t.type=null,t.#t=void 0,t.#r=[e.substring(n-1)],u}#p(e){return this.#m(e,de)}#m(e,t=j){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null)return!1;let n=e.#r[0];return!n||typeof n!=`object`||n.type===null?!1:this.#h(n.type,t)}#h(e,t=fe){return!!t.get(this.type)?.includes(e)}#g(e,t){let n=e.#r[0],r=new D(null,n,this.options);r.#r.push(``),n.push(r),this.#_(e,t)}#_(e,t){let n=e.#r[0];this.#r.splice(t,1,...n.#r);for(let e of n.#r)typeof e==`object`&&(e.#i=this);this.#l=void 0}#v(e){return!!M.get(this.type)?.has(e)}#y(e){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null||this.#r.length!==1)return!1;let t=e.#r[0];return!t||typeof t!=`object`||t.type===null?!1:this.#v(t.type)}#b(e){let t=M.get(this.type),n=e.#r[0],r=t?.get(n.type);if(!r)return!1;this.#r=n.#r;for(let e of this.#r)typeof e==`object`&&(e.#i=this);this.type=r,this.#l=void 0,this.#u=!1}static fromGlob(e,t={}){let n=new D(null,void 0,t);return D.#f(e,n,0,t,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(e){let t=e??!!this.#c.dot;if(this.#e===this&&(this.#x(),this.#d()),!A(this)){let n=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?D.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&me.has(this.#r[0]))){let n=pe,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?N:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,E(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,E(this.toString()),!1,!1]}let a=!n||e||t?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?N:``)+I;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?N:``)+F+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,E(i),this.#t=!!this.#t,this.#n]}#x(){if(A(this)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#r.length;e++){let n=this.#r[e];typeof n==`object`&&(n.#x(),this.#m(n)?(t=!1,this.#_(n,e)):this.#p(n)?(t=!1,this.#g(n,e)):this.#y(n)&&(t=!1,this.#b(n)))}}while(!t&&++e<10)}else for(let e of this.#r)typeof e==`object`&&e.#x();this.#l=void 0}#S(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;s<e.length;s++){let c=e.charAt(s);if(r){r=!1,i+=(he.has(c)?`\\`:``)+c;continue}if(c===`*`){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?I:F,t=!0;continue}else o=!1;if(c===`\\`){s===e.length-1?i+=`\\\\`:r=!0;continue}if(c===`[`){let[n,r,o,c]=ue(e,s);if(o){i+=n,a||=r,s+=o-1,t||=c;continue}}if(c===`?`){i+=P,t=!0;continue}i+=ge(c)}return[i,E(e),!!t,a]}};D=R;const _e=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),z=(e,t,n={})=>(C(t),!n.nocomment&&t.charAt(0)===`#`?!1:new Y(t,n).match(e)),ve=/^\*+([^+@!?*[(]*)$/,ye=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),be=e=>t=>t.endsWith(e),xe=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),Se=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Ce=/^\*+\.\*+$/,we=e=>!e.startsWith(`.`)&&e.includes(`.`),B=e=>e!==`.`&&e!==`..`&&e.includes(`.`),Te=/^\.\*+$/,Ee=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),De=/^\*+$/,Oe=e=>e.length!==0&&!e.startsWith(`.`),ke=e=>e.length!==0&&e!==`.`&&e!==`..`,Ae=/^\?+([^+@!?*[(]*)?$/,je=([e,t=``])=>{let n=V([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},Me=([e,t=``])=>{let n=H([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},Ne=([e,t=``])=>{let n=H([e]);return t?e=>n(e)&&e.endsWith(t):n},Pe=([e,t=``])=>{let n=V([e]);return t?e=>n(e)&&e.endsWith(t):n},V=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},H=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},U=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,W={win32:{sep:`\\`},posix:{sep:`/`}};z.sep=U===`win32`?W.win32.sep:W.posix.sep;const G=Symbol(`globstar **`);z.GLOBSTAR=G,z.filter=(e,t={})=>n=>z(n,e,t);const K=(e,t={})=>Object.assign({},e,t);z.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return z;let t=z;return Object.assign((n,r,i={})=>t(n,r,K(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,K(e,n))}static defaults(n){return t.defaults(K(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,K(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,K(e,r))}},unescape:(n,r={})=>t.unescape(n,K(e,r)),escape:(n,r={})=>t.escape(n,K(e,r)),filter:(n,r={})=>t.filter(n,K(e,r)),defaults:n=>t.defaults(K(e,n)),makeRe:(n,r={})=>t.makeRe(n,K(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,K(e,r)),match:(n,r,i={})=>t.match(n,r,K(e,i)),sep:t.sep,GLOBSTAR:G})};const q=(e,t={})=>(C(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:ie(e,{max:t.braceExpandMax}));z.braceExpand=q,z.makeRe=(e,t={})=>new Y(e,t).makeRe(),z.match=(e,t,n={})=>{let r=new Y(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const J=/[?*]|[+@!]\(.*?\)|\[|\]/,Fe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var Y=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){C(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||U,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!J.test(e[2]))&&!J.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t of e)for(let e=0;e<t.length;e++)t[e]===`**`&&(t[e]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&!(this.isWindows&&/^[a-z]:$/i.test(r))&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=0,i=0;if(this.isWindows){let n=typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]),a=!n&&e[0]===``&&e[1]===``&&e[2]===`?`&&/^[a-z]:$/i.test(e[3]),o=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),s=!o&&t[0]===``&&t[1]===``&&t[2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3]),c=a?3:n?0:void 0,l=s?3:o?0:void 0;if(typeof c==`number`&&typeof l==`number`){let[n,a]=[e[c],t[l]];n.toLowerCase()===a.toLowerCase()&&(t[l]=n,i=l,r=c)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(G)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(G,i),o=t.lastIndexOf(G),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n<e.length-u;n++){let r=String(e[n]);if(t=!0,r===`.`||r===`..`||!this.options.dot&&r.startsWith(`.`))return!1}return n||t}let d=[[[],0]],f=d[0],p=0,m=[0];for(let e of c)e===G?(m.push(p),f=[[],0],d.push(f)):(f[0].push(e),p++);let h=d.length-1,g=e.length-u;for(let e of d)e[1]=g-(m[h--]+e[0].length);return!!this.#t(e,d,r,0,n,0,!!u)}#t(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if(n===`.`||n===`..`||!this.options.dot&&n.startsWith(`.`))return!1}return o}let[c,l]=s;for(;n<=l;){if(this.#n(e.slice(0,n+c.length),c,i,n,0)&&a<this.maxGlobstarRecursion){let s=this.#t(e,t,n+c.length,r+1,i,a+1,o);if(s!==!1)return s}let s=e[n];if(s===`.`||s===`..`||!this.options.dot&&s.startsWith(`.`))return!1;n++}return i||null}#n(e,t,n,r,i){let a,o,s,c;for(a=r,o=i,c=e.length,s=t.length;a<c&&o<s;a++,o++){this.debug(`matchOne loop`);let n=t[o],r=e[a];if(this.debug(t,n,r),n===!1||n===G)return!1;let i;if(typeof n==`string`?(i=r===n,this.debug(`string match`,n,r,i)):(i=n.test(r),this.debug(`pattern match`,n,r,i)),!i)return!1}if(a===c&&o===s)return!0;if(a===c)return n;if(o===s)return a===c-1&&e[a]===``;throw Error(`wtf?`)}braceExpand(){return q(this.pattern,this.options)}parse(e){C(e);let t=this.options;if(e===`**`)return G;if(e===``)return``;let n,r=null;(n=e.match(De))?r=t.dot?ke:Oe:(n=e.match(ve))?r=(t.nocase?t.dot?Se:xe:t.dot?be:ye)(n[1]):(n=e.match(Ae))?r=(t.nocase?t.dot?Me:je:t.dot?Ne:Pe)(n):(n=e.match(Ce))?r=t.dot?B:we:(n=e.match(Te))&&(r=Ee);let i=R.fromGlob(e,this.options).toMMPattern();return r&&typeof i==`object`&&Reflect.defineProperty(i,`test`,{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?`[^/]*?`:t.dot?`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`:`(?:(?!(?:\\/|^)\\.).)*?`,r=new Set(t.nocase?[`i`]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?Fe(e):e===G?G:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==G||a===G||(a===void 0?i!==void 0&&i!==G?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==G&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=G))});let i=t.filter(e=>e!==G);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return z.defaults(e).Minimatch}};z.AST=R,z.Minimatch=Y,z.escape=_e,z.unescape=E;function X(e){if(e<1024)return String(e);if(e<1024*1024){let t=e/1024;return t<10?`${t.toFixed(1)}K`:`${Math.round(t)}K`}if(e<1024*1024*1024){let t=e/1048576;return t<10?`${t.toFixed(1)}M`:`${Math.round(t)}M`}let t=e/(1024*1024*1024);return t<10?`${t.toFixed(1)}G`:`${Math.round(t)}G`}function Z(e){let t=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`][e.getMonth()],n=String(e.getDate()).padStart(2,` `);return e>new Date(new Date().getTime()-4320*60*60*1e3)?`${t} ${n} ${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`:`${t} ${n} ${e.getFullYear()}`}function Q(e){return e.isDirectory?`/`:e.isSymbolicLink?`@`:e.mode&73?`*`:``}var Ie={name:`ls`,summary:`list directory contents`,usage:`ls [OPTION]... [FILE]...`,options:[`-a, --all do not ignore entries starting with .`,`-A, --almost-all do not list . and ..`,`-d, --directory list directories themselves, not their contents`,`-F, --classify append indicator (one of */=>@) to entries`,`-h, --human-readable with -l, print sizes like 1K 234M 2G etc.`,`-l use a long listing format`,`-r, --reverse reverse order while sorting`,`-R, --recursive list subdirectories recursively`,`-S sort by file size, largest first`,`-t sort by time, newest first`,`-1 list one file per line`,` --help display this help and exit`]},Le={showAll:{short:`a`,long:`all`,type:`boolean`},showAlmostAll:{short:`A`,long:`almost-all`,type:`boolean`},longFormat:{short:`l`,type:`boolean`},humanReadable:{short:`h`,long:`human-readable`,type:`boolean`},recursive:{short:`R`,long:`recursive`,type:`boolean`},reverse:{short:`r`,long:`reverse`,type:`boolean`},sortBySize:{short:`S`,type:`boolean`},classifyFiles:{short:`F`,long:`classify`,type:`boolean`},directoryOnly:{short:`d`,long:`directory`,type:`boolean`},sortByTime:{short:`t`,type:`boolean`},onePerLine:{short:`1`,type:`boolean`}},Re={name:`ls`,async execute(r,i){if(t(r))return e(Ie);let a=n(`ls`,r,Le);if(!a.ok)return a.error;let o=a.result.flags.showAll,s=a.result.flags.showAlmostAll,c=a.result.flags.longFormat,l=a.result.flags.humanReadable,u=a.result.flags.recursive,d=a.result.flags.reverse,f=a.result.flags.sortBySize,p=a.result.flags.classifyFiles,m=a.result.flags.directoryOnly;a.result.flags.sortByTime,a.result.flags.onePerLine;let h=a.result.positional;h.length===0&&h.push(`.`);let g=``,_=``,v=0;for(let e=0;e<h.length;e++){let t=h[e];if(e>0&&g&&!g.endsWith(`
|
|
1
|
+
import{r as e,t}from"./chunk-74CEPOFO-CukBzgc1.mjs";import{t as n}from"./chunk-HWKDQ44K-Ca2TjRi7.mjs";const r=(e,t,n)=>{let r=e instanceof RegExp?i(e,n):e,o=t instanceof RegExp?i(t,n):t,s=r!==null&&o!=null&&a(r,o,n);return s&&{start:s[0],end:s[1],pre:n.slice(0,s[0]),body:n.slice(s[0]+r.length,s[1]),post:n.slice(s[1]+o.length)}},i=(e,t)=>{let n=t.match(e);return n?n[0]:null},a=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},o=`\0SLASH`+Math.random()+`\0`,s=`\0OPEN`+Math.random()+`\0`,c=`\0CLOSE`+Math.random()+`\0`,l=`\0COMMA`+Math.random()+`\0`,u=`\0PERIOD`+Math.random()+`\0`,d=new RegExp(o,`g`),f=new RegExp(s,`g`),p=new RegExp(c,`g`),m=new RegExp(l,`g`),h=new RegExp(u,`g`),g=/\\\\/g,_=/\\{/g,v=/\\}/g,ee=/\\,/g,te=/\\\./g;function y(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function ne(e){return e.replace(g,o).replace(_,s).replace(v,c).replace(ee,l).replace(te,u)}function re(e){return e.replace(d,`\\`).replace(f,`{`).replace(p,`}`).replace(m,`,`).replace(h,`.`)}function b(e){if(!e)return[``];let t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:i,body:a,post:o}=n,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;let c=b(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function ie(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),S(ne(e),n,!0).map(re)}function ae(e){return`{`+e+`}`}function x(e){return/^-?0\d/.test(e)}function oe(e,t){return e<=t}function se(e,t){return e>=t}function S(e,t,n){let i=[];for(;;){let a=r(`{`,`}`,e);if(!a)return[e];let o=a.pre;if(/\$$/.test(a.pre)){let e=a.post.length?S(a.post,t,!1):[``];for(let n=0;n<e.length&&n<t;n++){let t=o+`{`+a.body+`}`+e[n];i.push(t)}return i}let s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),u=s||l,d=a.body.indexOf(`,`)>=0;if(!u&&!d){if(a.post.match(/,(?!,).*\}/)){e=a.pre+`{`+a.body+c+a.post,n=!0;continue}return[e]}let f=a.post.length?S(a.post,t,!1):[``],p;if(u)p=a.body.split(/\.\./);else if(p=b(a.body),p.length===1&&p[0]!==void 0&&(p=S(p[0],t,!1).map(ae),p.length===1))return f.map(e=>a.pre+p[0]+e);let m;if(u&&p[0]!==void 0&&p[1]!==void 0){let e=y(p[0]),n=y(p[1]),r=Math.max(p[0].length,p[1].length),i=p.length===3&&p[2]!==void 0?Math.max(Math.abs(y(p[2])),1):1,a=oe;n<e&&(i*=-1,a=se);let o=p.some(x);m=[];for(let s=e;a(s,n)&&m.length<t;s+=i){let e;if(l)e=String.fromCharCode(s),e===`\\`&&(e=``);else if(e=String(s),o){let t=r-e.length;if(t>0){let n=Array(t+1).join(`0`);e=s<0?`-`+n+e.slice(1):n+e}}m.push(e)}}else{m=[];for(let e=0;e<p.length;e++)m.push.apply(m,S(p[e],t,!1))}for(let e=0;e<m.length;e++)for(let r=0;r<f.length&&i.length<t;r++){let t=o+m[e]+f[r];(!n||u||t)&&i.push(t)}return i}}const C=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},ce={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},w=e=>e.replace(/[[\]\\-]/g,`\\$&`),le=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),T=e=>e.join(``),ue=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;a<e.length;){let t=e.charAt(a);if((t===`!`||t===`^`)&&a===n+1){l=!0,a++;continue}if(t===`]`&&o&&!c){u=a+1;break}if(o=!0,t===`\\`&&!c){c=!0,a++;continue}if(t===`[`&&!c){for(let[t,[o,c,l]]of Object.entries(ce))if(e.startsWith(t,a)){if(d)return[`$.`,!1,e.length-n,!0];a+=t.length,l?i.push(o):r.push(o),s||=c;continue WHILE}}if(c=!1,d){t>d?r.push(w(d)+`-`+w(t)):t===d&&r.push(w(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(w(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(w(t)),a++}if(u<a)return[``,!1,0,!1];if(!r.length&&!i.length)return[`$.`,!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l)return[le(r[0].length===2?r[0].slice(-1):r[0]),!1,u-n,!1];let f=`[`+(l?`^`:``)+T(r)+`]`,p=`[`+(l?``:`^`)+T(i)+`]`;return[r.length&&i.length?`(`+f+`|`+p+`)`:r.length?f:p,s,u-n,!0]},E=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`);var D;const O=new Set([`!`,`?`,`+`,`*`,`@`]),k=e=>O.has(e),A=e=>k(e.type),j=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),de=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),fe=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),M=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),N=`(?!\\.)`,pe=new Set([`[`,`.`]),me=new Set([`..`,`.`]),he=new Set(`().*{}+?[]^$\\!`),ge=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),P=`[^/]`,F=P+`*?`,I=P+`+?`;let L=0;var R=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++L;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...e){for(let t of e)if(t!==``){if(typeof t!=`string`&&!(t instanceof D&&t.#i===this))throw Error(`invalid part: `+t);this.#r.push(t)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;t<this.#a;t++){let n=e.#r[t];if(!(n instanceof D&&n.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(e){let t=new D(this.type,e);for(let e of this.#r)t.copyIn(e);return t}static#f(e,t,n,r,i){let a=r.maxExtglobRecursion??2,o=!1,s=!1,c=-1,l=!1;if(t.type===null){let u=n,d=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,d+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),d+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,d+=n;continue}if(!r.noext&&k(n)&&e.charAt(u)===`(`&&i<=a){t.push(d),d=``;let a=new D(n,t);u=D.#f(e,a,u,r,i+1),t.push(a);continue}d+=n}return t.push(d),u}let u=n+1,d=new D(null,t),f=[],p=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,p+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),p+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,p+=n;continue}if(!r.noext&&k(n)&&e.charAt(u)===`(`&&(i<=a||t&&t.#h(n))){let a=t&&t.#h(n)?0:1;d.push(p),p=``;let o=new D(n,d);d.push(o),u=D.#f(e,o,u,r,i+a);continue}if(n===`|`){d.push(p),p=``,f.push(d),d=new D(null,t);continue}if(n===`)`)return p===``&&t.#r.length===0&&(t.#u=!0),d.push(p),p=``,t.push(...f,d),u;p+=n}return t.type=null,t.#t=void 0,t.#r=[e.substring(n-1)],u}#p(e){return this.#m(e,de)}#m(e,t=j){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null)return!1;let n=e.#r[0];return!n||typeof n!=`object`||n.type===null?!1:this.#h(n.type,t)}#h(e,t=fe){return!!t.get(this.type)?.includes(e)}#g(e,t){let n=e.#r[0],r=new D(null,n,this.options);r.#r.push(``),n.push(r),this.#_(e,t)}#_(e,t){let n=e.#r[0];this.#r.splice(t,1,...n.#r);for(let e of n.#r)typeof e==`object`&&(e.#i=this);this.#l=void 0}#v(e){return!!M.get(this.type)?.has(e)}#y(e){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null||this.#r.length!==1)return!1;let t=e.#r[0];return!t||typeof t!=`object`||t.type===null?!1:this.#v(t.type)}#b(e){let t=M.get(this.type),n=e.#r[0],r=t?.get(n.type);if(!r)return!1;this.#r=n.#r;for(let e of this.#r)typeof e==`object`&&(e.#i=this);this.type=r,this.#l=void 0,this.#u=!1}static fromGlob(e,t={}){let n=new D(null,void 0,t);return D.#f(e,n,0,t,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(e){let t=e??!!this.#c.dot;if(this.#e===this&&(this.#x(),this.#d()),!A(this)){let n=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?D.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&me.has(this.#r[0]))){let n=pe,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?N:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,E(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,E(this.toString()),!1,!1]}let a=!n||e||t?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?N:``)+I;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?N:``)+F+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,E(i),this.#t=!!this.#t,this.#n]}#x(){if(A(this)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#r.length;e++){let n=this.#r[e];typeof n==`object`&&(n.#x(),this.#m(n)?(t=!1,this.#_(n,e)):this.#p(n)?(t=!1,this.#g(n,e)):this.#y(n)&&(t=!1,this.#b(n)))}}while(!t&&++e<10)}else for(let e of this.#r)typeof e==`object`&&e.#x();this.#l=void 0}#S(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;s<e.length;s++){let c=e.charAt(s);if(r){r=!1,i+=(he.has(c)?`\\`:``)+c;continue}if(c===`*`){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?I:F,t=!0;continue}else o=!1;if(c===`\\`){s===e.length-1?i+=`\\\\`:r=!0;continue}if(c===`[`){let[n,r,o,c]=ue(e,s);if(o){i+=n,a||=r,s+=o-1,t||=c;continue}}if(c===`?`){i+=P,t=!0;continue}i+=ge(c)}return[i,E(e),!!t,a]}};D=R;const _e=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),z=(e,t,n={})=>(C(t),!n.nocomment&&t.charAt(0)===`#`?!1:new Y(t,n).match(e)),ve=/^\*+([^+@!?*[(]*)$/,ye=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),be=e=>t=>t.endsWith(e),xe=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),Se=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Ce=/^\*+\.\*+$/,we=e=>!e.startsWith(`.`)&&e.includes(`.`),B=e=>e!==`.`&&e!==`..`&&e.includes(`.`),Te=/^\.\*+$/,Ee=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),De=/^\*+$/,Oe=e=>e.length!==0&&!e.startsWith(`.`),ke=e=>e.length!==0&&e!==`.`&&e!==`..`,Ae=/^\?+([^+@!?*[(]*)?$/,je=([e,t=``])=>{let n=V([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},Me=([e,t=``])=>{let n=H([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},Ne=([e,t=``])=>{let n=H([e]);return t?e=>n(e)&&e.endsWith(t):n},Pe=([e,t=``])=>{let n=V([e]);return t?e=>n(e)&&e.endsWith(t):n},V=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},H=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},U=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,W={win32:{sep:`\\`},posix:{sep:`/`}};z.sep=U===`win32`?W.win32.sep:W.posix.sep;const G=Symbol(`globstar **`);z.GLOBSTAR=G,z.filter=(e,t={})=>n=>z(n,e,t);const K=(e,t={})=>Object.assign({},e,t);z.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return z;let t=z;return Object.assign((n,r,i={})=>t(n,r,K(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,K(e,n))}static defaults(n){return t.defaults(K(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,K(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,K(e,r))}},unescape:(n,r={})=>t.unescape(n,K(e,r)),escape:(n,r={})=>t.escape(n,K(e,r)),filter:(n,r={})=>t.filter(n,K(e,r)),defaults:n=>t.defaults(K(e,n)),makeRe:(n,r={})=>t.makeRe(n,K(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,K(e,r)),match:(n,r,i={})=>t.match(n,r,K(e,i)),sep:t.sep,GLOBSTAR:G})};const q=(e,t={})=>(C(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:ie(e,{max:t.braceExpandMax}));z.braceExpand=q,z.makeRe=(e,t={})=>new Y(e,t).makeRe(),z.match=(e,t,n={})=>{let r=new Y(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const J=/[?*]|[+@!]\(.*?\)|\[|\]/,Fe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var Y=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){C(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||U,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!J.test(e[2]))&&!J.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t of e)for(let e=0;e<t.length;e++)t[e]===`**`&&(t[e]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&!(this.isWindows&&/^[a-z]:$/i.test(r))&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=0,i=0;if(this.isWindows){let n=typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]),a=!n&&e[0]===``&&e[1]===``&&e[2]===`?`&&/^[a-z]:$/i.test(e[3]),o=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),s=!o&&t[0]===``&&t[1]===``&&t[2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3]),c=a?3:n?0:void 0,l=s?3:o?0:void 0;if(typeof c==`number`&&typeof l==`number`){let[n,a]=[e[c],t[l]];n.toLowerCase()===a.toLowerCase()&&(t[l]=n,i=l,r=c)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(G)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(G,i),o=t.lastIndexOf(G),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n<e.length-u;n++){let r=String(e[n]);if(t=!0,r===`.`||r===`..`||!this.options.dot&&r.startsWith(`.`))return!1}return n||t}let d=[[[],0]],f=d[0],p=0,m=[0];for(let e of c)e===G?(m.push(p),f=[[],0],d.push(f)):(f[0].push(e),p++);let h=d.length-1,g=e.length-u;for(let e of d)e[1]=g-(m[h--]+e[0].length);return!!this.#t(e,d,r,0,n,0,!!u)}#t(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if(n===`.`||n===`..`||!this.options.dot&&n.startsWith(`.`))return!1}return o}let[c,l]=s;for(;n<=l;){if(this.#n(e.slice(0,n+c.length),c,i,n,0)&&a<this.maxGlobstarRecursion){let s=this.#t(e,t,n+c.length,r+1,i,a+1,o);if(s!==!1)return s}let s=e[n];if(s===`.`||s===`..`||!this.options.dot&&s.startsWith(`.`))return!1;n++}return i||null}#n(e,t,n,r,i){let a,o,s,c;for(a=r,o=i,c=e.length,s=t.length;a<c&&o<s;a++,o++){this.debug(`matchOne loop`);let n=t[o],r=e[a];if(this.debug(t,n,r),n===!1||n===G)return!1;let i;if(typeof n==`string`?(i=r===n,this.debug(`string match`,n,r,i)):(i=n.test(r),this.debug(`pattern match`,n,r,i)),!i)return!1}if(a===c&&o===s)return!0;if(a===c)return n;if(o===s)return a===c-1&&e[a]===``;throw Error(`wtf?`)}braceExpand(){return q(this.pattern,this.options)}parse(e){C(e);let t=this.options;if(e===`**`)return G;if(e===``)return``;let n,r=null;(n=e.match(De))?r=t.dot?ke:Oe:(n=e.match(ve))?r=(t.nocase?t.dot?Se:xe:t.dot?be:ye)(n[1]):(n=e.match(Ae))?r=(t.nocase?t.dot?Me:je:t.dot?Ne:Pe)(n):(n=e.match(Ce))?r=t.dot?B:we:(n=e.match(Te))&&(r=Ee);let i=R.fromGlob(e,this.options).toMMPattern();return r&&typeof i==`object`&&Reflect.defineProperty(i,`test`,{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?`[^/]*?`:t.dot?`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`:`(?:(?!(?:\\/|^)\\.).)*?`,r=new Set(t.nocase?[`i`]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?Fe(e):e===G?G:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==G||a===G||(a===void 0?i!==void 0&&i!==G?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==G&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=G))});let i=t.filter(e=>e!==G);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return z.defaults(e).Minimatch}};z.AST=R,z.Minimatch=Y,z.escape=_e,z.unescape=E;function X(e){if(e<1024)return String(e);if(e<1024*1024){let t=e/1024;return t<10?`${t.toFixed(1)}K`:`${Math.round(t)}K`}if(e<1024*1024*1024){let t=e/1048576;return t<10?`${t.toFixed(1)}M`:`${Math.round(t)}M`}let t=e/(1024*1024*1024);return t<10?`${t.toFixed(1)}G`:`${Math.round(t)}G`}function Z(e){let t=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`][e.getMonth()],n=String(e.getDate()).padStart(2,` `);return e>new Date(new Date().getTime()-4320*60*60*1e3)?`${t} ${n} ${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`:`${t} ${n} ${e.getFullYear()}`}function Q(e){return e.isDirectory?`/`:e.isSymbolicLink?`@`:e.mode&73?`*`:``}var Ie={name:`ls`,summary:`list directory contents`,usage:`ls [OPTION]... [FILE]...`,options:[`-a, --all do not ignore entries starting with .`,`-A, --almost-all do not list . and ..`,`-d, --directory list directories themselves, not their contents`,`-F, --classify append indicator (one of */=>@) to entries`,`-h, --human-readable with -l, print sizes like 1K 234M 2G etc.`,`-l use a long listing format`,`-r, --reverse reverse order while sorting`,`-R, --recursive list subdirectories recursively`,`-S sort by file size, largest first`,`-t sort by time, newest first`,`-1 list one file per line`,` --help display this help and exit`]},Le={showAll:{short:`a`,long:`all`,type:`boolean`},showAlmostAll:{short:`A`,long:`almost-all`,type:`boolean`},longFormat:{short:`l`,type:`boolean`},humanReadable:{short:`h`,long:`human-readable`,type:`boolean`},recursive:{short:`R`,long:`recursive`,type:`boolean`},reverse:{short:`r`,long:`reverse`,type:`boolean`},sortBySize:{short:`S`,type:`boolean`},classifyFiles:{short:`F`,long:`classify`,type:`boolean`},directoryOnly:{short:`d`,long:`directory`,type:`boolean`},sortByTime:{short:`t`,type:`boolean`},onePerLine:{short:`1`,type:`boolean`}},Re={name:`ls`,async execute(r,i){if(t(r))return e(Ie);let a=n(`ls`,r,Le);if(!a.ok)return a.error;let o=a.result.flags.showAll,s=a.result.flags.showAlmostAll,c=a.result.flags.longFormat,l=a.result.flags.humanReadable,u=a.result.flags.recursive,d=a.result.flags.reverse,f=a.result.flags.sortBySize,p=a.result.flags.classifyFiles,m=a.result.flags.directoryOnly;a.result.flags.sortByTime,a.result.flags.onePerLine;let h=a.result.positional;h.length===0&&h.push(`.`);let g=``,_=``,v=0;for(let e=0;e<h.length;e++){let t=h[e];if(e>0&&g&&!g.endsWith(`
|
|
2
2
|
|
|
3
3
|
`)&&(g+=`
|
|
4
4
|
`),m){let e=i.fs.resolvePath(i.cwd,t);try{let n=await i.fs.stat(e);if(c){let r=n.isDirectory?`drwxr-xr-x`:`-rw-r--r--`,a=p?Q(await i.fs.lstat(e)):n.isDirectory?`/`:``,o=n.size??0,s=l?X(o).padStart(5):String(o).padStart(5),c=Z(n.mtime??new Date(0));g+=`${r} 1 user user ${s} ${c} ${t}${a}
|
|
@@ -25,4 +25,4 @@ import{r as e,t}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{t as n}from"./chunk-H
|
|
|
25
25
|
`:``);if(a){let o=m.filter(e=>e!==`.`&&e!==`..`),d=[];if(t.fs.readdirWithFileTypes)d=(await t.fs.readdirWithFileTypes(p)).filter(e=>e.isDirectory&&o.includes(e.name)).map(e=>({name:e.name,isDirectory:!0}));else for(let e=0;e<o.length;e+=100){let n=o.slice(e,e+100),r=await Promise.all(n.map(async e=>{let n=p===`/`?`/${e}`:`${p}/${e}`;try{return{name:e,isDirectory:(await t.fs.stat(n)).isDirectory}}catch{return{name:e,isDirectory:!1}}}));d.push(...r.filter(e=>e.isDirectory))}d.sort((e,t)=>e.name.localeCompare(t.name)),s&&d.reverse();let f=[];for(let o=0;o<d.length;o+=100){let p=d.slice(o,o+100),m=await Promise.all(p.map(async o=>{let d=await $(e===`.`?`./${o.name}`:`${e}/${o.name}`,t,n,r,i,a,!1,s,c,l,u,!0);return{name:o.name,result:d}}));f.push(...m)}f.sort((e,t)=>e.name.localeCompare(t.name)),s&&f.reverse();for(let{result:e}of f)h+=`
|
|
26
26
|
`,h+=e.stdout}return{stdout:h,stderr:``,exitCode:0}}catch{return{stdout:``,stderr:`ls: ${e}: No such file or directory
|
|
27
27
|
`,exitCode:2}}}var Be={name:`ls`,flags:[{flag:`-a`,type:`boolean`},{flag:`-A`,type:`boolean`},{flag:`-l`,type:`boolean`},{flag:`-h`,type:`boolean`},{flag:`-R`,type:`boolean`},{flag:`-r`,type:`boolean`},{flag:`-S`,type:`boolean`},{flag:`-F`,type:`boolean`},{flag:`-d`,type:`boolean`},{flag:`-t`,type:`boolean`},{flag:`-1`,type:`boolean`}],needsFiles:!0};export{Be as n,Re as t};
|
|
28
|
-
//# sourceMappingURL=chunk-V7TAPXDL-
|
|
28
|
+
//# sourceMappingURL=chunk-V7TAPXDL-C2FVL1Cc.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-BW8wJnWV.mjs";import{p as t}from"./src-BbZVR6qh.mjs";import{x as n}from"./chunk-WYO6CB5R-Brxa0zhE.mjs";var r=e(e=>{let{securityLevel:r}=n(),i=t(`body`);return r===`sandbox`&&(i=t((t(`#i${e}`).node()?.contentDocument??document).body)),i.select(`#${e}`)},`selectSvgElement`);export{r as t};
|
|
2
|
+
//# sourceMappingURL=chunk-VAUOI2AC-jixxcqz-.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-
|
|
1
|
+
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-CukBzgc1.mjs";var r={name:`expand`,summary:`convert tabs to spaces`,usage:`expand [OPTION]... [FILE]...`,description:`Convert TABs in each FILE to spaces, writing to standard output. If no FILE is specified, standard input is read.`,options:[`-t N Use N spaces per tab (default: 8)`,`-t LIST Use comma-separated list of tab stops`,`-i Only convert leading tabs on each line`],examples:[`expand file.txt # Convert all tabs to 8 spaces`,`expand -t 4 file.txt # Use 4-space tabs`,`expand -t 4,8,12 file.txt # Custom tab stops`]};function i(e){let t=e.split(`,`).map(e=>e.trim()),n=[];for(let e of t){let t=parseInt(e,10);if(Number.isNaN(t)||t<1)return null;n.push(t)}for(let e=1;e<n.length;e++)if(n[e]<=n[e-1])return null;return n}function a(e,t){if(t.length===1){let n=t[0];return n-e%n}for(let n of t)if(n>e)return n-e;if(t.length>=2){let n=t[t.length-1]-t[t.length-2],r=t[t.length-1];return r+(Math.floor((e-r)/n)+1)*n-e}return 1}function o(e,t){let{tabStops:n,leadingOnly:r}=t,i=``,o=0,s=!0;for(let t of e)if(t===` `)if(r&&!s)i+=t,o++;else{let e=a(o,n);i+=` `.repeat(e),o+=e}else t!==` `&&t!==` `&&(s=!1),i+=t,o++;return i}function s(e,t){if(e===``)return``;let n=e.split(`
|
|
2
2
|
`),r=e.endsWith(`
|
|
3
3
|
`)&&n[n.length-1]===``;return r&&n.pop(),n.map(e=>o(e,t)).join(`
|
|
4
4
|
`)+(r?`
|
|
@@ -8,4 +8,4 @@ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";var r={name:`exp
|
|
|
8
8
|
`};c.tabStops=e,u+=2}else if(t.startsWith(`--tabs=`)){let e=i(t.slice(7));if(!e)return{exitCode:1,stdout:``,stderr:`expand: invalid tab size: '${t.slice(7)}'
|
|
9
9
|
`};c.tabStops=e,u++}else if(t===`-i`||t===`--initial`)c.leadingOnly=!0,u++;else if(t===`--`){l.push(...a.slice(u+1));break}else{if(t.startsWith(`-`)&&t!==`-`)return e(`expand`,t);l.push(t),u++}}let d=``;if(l.length===0)d=s(o.stdin??``,c);else for(let e of l){let t=o.fs.resolvePath(o.cwd,e),n=await o.fs.readFile(t);if(n===null)return{exitCode:1,stdout:d,stderr:`expand: ${e}: No such file or directory
|
|
10
10
|
`};d+=s(n,c)}return{exitCode:0,stdout:d,stderr:``}}},l={name:`expand`,flags:[{flag:`-t`,type:`value`,valueHint:`number`},{flag:`-i`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{l as n,c as t};
|
|
11
|
-
//# sourceMappingURL=chunk-VJFXDYWH-
|
|
11
|
+
//# sourceMappingURL=chunk-VJFXDYWH-CsNcAcBk.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-74CEPOFO-
|
|
1
|
+
import{r as e,t}from"./chunk-74CEPOFO-CukBzgc1.mjs";var n={name:`alias`,summary:`define or display aliases`,usage:`alias [name[=value] ...]`,options:[` --help display this help and exit`]},r=`BASH_ALIAS_`,i={name:`alias`,async execute(i,a){if(t(i))return e(n);if(i.length===0){let e=``;for(let[t,n]of a.env)if(t.startsWith(r)){let i=t.slice(r.length);e+=`alias ${i}='${n}'
|
|
2
2
|
`}return{stdout:e,stderr:``,exitCode:0}}let o=i[0]===`--`?i.slice(1):i;for(let e of o){let t=e.indexOf(`=`);if(t===-1){let t=r+e;return a.env.get(t)?{stdout:`alias ${e}='${a.env.get(t)}'
|
|
3
3
|
`,stderr:``,exitCode:0}:{stdout:``,stderr:`alias: ${e}: not found
|
|
4
4
|
`,exitCode:1}}else{let n=e.slice(0,t),i=e.slice(t+1);(i.startsWith(`'`)&&i.endsWith(`'`)||i.startsWith(`"`)&&i.endsWith(`"`))&&(i=i.slice(1,-1)),a.env.set(r+n,i)}}return{stdout:``,stderr:``,exitCode:0}}},a={name:`unalias`,async execute(n,i){if(t(n))return e({name:`unalias`,summary:`remove alias definitions`,usage:`unalias name [name ...]`,options:[`-a remove all aliases`,` --help display this help and exit`]});if(n.length===0)return{stdout:``,stderr:`unalias: usage: unalias [-a] name [name ...]
|
|
5
5
|
`,exitCode:1};if(n[0]===`-a`){for(let e of i.env.keys())e.startsWith(r)&&i.env.delete(e);return{stdout:``,stderr:``,exitCode:0}}let a=n[0]===`--`?n.slice(1):n,o=!1,s=``;for(let e of a){let t=r+e;i.env.get(t)?i.env.delete(t):(s+=`unalias: ${e}: not found
|
|
6
6
|
`,o=!0)}return{stdout:``,stderr:s,exitCode:+!!o}}},o={name:`alias`,flags:[]},s={name:`unalias`,flags:[{flag:`-a`,type:`boolean`}]};export{o as i,s as n,i as r,a as t};
|
|
7
|
-
//# sourceMappingURL=chunk-VOBGTVA6-
|
|
7
|
+
//# sourceMappingURL=chunk-VOBGTVA6-C9eHBVbd.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-
|
|
2
|
-
//# sourceMappingURL=chunk-VR4S4FIN-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-BW8wJnWV.mjs";import{m as t}from"./src-BbZVR6qh.mjs";import{c as n}from"./chunk-WYO6CB5R-Brxa0zhE.mjs";var r=e((e,r,o,s)=>{e.attr(`class`,o);let{width:c,height:l,x:u,y:d}=i(e,r);n(e,l,c,s);let f=a(u,d,c,l,r);e.attr(`viewBox`,f),t.debug(`viewBox configured: ${f} with padding: ${r}`)},`setupViewPortForSVG`),i=e((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),a=e((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`);export{r as t};
|
|
2
|
+
//# sourceMappingURL=chunk-VR4S4FIN-C_LXRmnl.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-
|
|
1
|
+
import{n as e,r as t,t as n}from"./chunk-74CEPOFO-CukBzgc1.mjs";var r={name:`strings`,summary:`print the sequences of printable characters in files`,usage:`strings [OPTION]... [FILE]...`,description:`For each FILE, print the printable character sequences that are at least MIN characters long. If no FILE is specified, standard input is read.`,options:[`-n MIN Print sequences of at least MIN characters (default: 4)`,`-t FORMAT Print offset before each string (o=octal, x=hex, d=decimal)`,`-a Scan the entire file (default behavior)`,`-e ENCODING Select character encoding (s=7-bit, S=8-bit)`],examples:[`strings file.bin # Extract strings (min 4 chars)`,`strings -n 8 file.bin # Extract strings (min 8 chars)`,`strings -t x file.bin # Show hex offset`,`echo 'hello' | strings # Read from stdin`]};function i(e){return e>=32&&e<=126||e===9}function a(e,t){if(t===null)return``;switch(t){case`o`:return`${e.toString(8).padStart(7,` `)} `;case`x`:return`${e.toString(16).padStart(7,` `)} `;case`d`:return`${e.toString(10).padStart(7,` `)} `;default:return t}}function o(e,t){let n=[],r=``,o=0,s=typeof e==`string`?new TextEncoder().encode(e):e;for(let e=0;e<s.length;e++){let c=s[e];if(i(c))r.length===0&&(o=e),r+=String.fromCharCode(c);else{if(r.length>=t.minLength){let e=a(o,t.offsetFormat);n.push(`${e}${r}`)}r=``}}if(r.length>=t.minLength){let e=a(o,t.offsetFormat);n.push(`${e}${r}`)}return n}var s={name:`strings`,execute:async(i,a)=>{if(n(i))return t(r);let s={minLength:4,offsetFormat:null},c=[],l=0;for(;l<i.length;){let t=i[l];if(t===`-n`&&l+1<i.length){let e=Number.parseInt(i[l+1],10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:``,stderr:`strings: invalid minimum string length: '${i[l+1]}'
|
|
2
2
|
`};s.minLength=e,l+=2}else if(t.match(/^-n\d+$/)){let e=Number.parseInt(t.slice(2),10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:``,stderr:`strings: invalid minimum string length: '${t.slice(2)}'
|
|
3
3
|
`};s.minLength=e,l++}else if(t.match(/^-\d+$/)){let e=Number.parseInt(t.slice(1),10);if(Number.isNaN(e)||e<1)return{exitCode:1,stdout:``,stderr:`strings: invalid minimum string length: '${t.slice(1)}'
|
|
4
4
|
`};s.minLength=e,l++}else if(t===`-t`&&l+1<i.length){let e=i[l+1];if(e!==`o`&&e!==`x`&&e!==`d`)return{exitCode:1,stdout:``,stderr:`strings: invalid radix: '${e}'
|
|
@@ -11,4 +11,4 @@ import{n as e,r as t,t as n}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";var r={name:`str
|
|
|
11
11
|
`}}let n=o(t,s);n.length>0&&(u+=`${n.join(`
|
|
12
12
|
`)}
|
|
13
13
|
`)}return{exitCode:0,stdout:u,stderr:``}}},c={name:`strings`,flags:[{flag:`-n`,type:`value`,valueHint:`number`},{flag:`-t`,type:`value`,valueHint:`string`},{flag:`-a`,type:`boolean`},{flag:`-e`,type:`value`,valueHint:`string`}],stdinType:`text`,needsFiles:!0};export{s as n,c as t};
|
|
14
|
-
//# sourceMappingURL=chunk-VYOJP4TV-
|
|
14
|
+
//# sourceMappingURL=chunk-VYOJP4TV-BUWMbzbv.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-74CEPOFO-
|
|
1
|
+
import{r as e,t}from"./chunk-74CEPOFO-CukBzgc1.mjs";import{t as n}from"./chunk-HWKDQ44K-Ca2TjRi7.mjs";import{t as r}from"./chunk-7L36YK2X-BGJaUmS5.mjs";var i={name:`uniq`,summary:`report or omit repeated lines`,usage:`uniq [OPTION]... [INPUT [OUTPUT]]`,options:[`-c, --count prefix lines by the number of occurrences`,`-d, --repeated only print duplicate lines`,`-i, --ignore-case ignore case when comparing`,`-u, --unique only print unique lines`,` --help display this help and exit`]},a={count:{short:`c`,long:`count`,type:`boolean`},duplicatesOnly:{short:`d`,long:`repeated`,type:`boolean`},uniqueOnly:{short:`u`,long:`unique`,type:`boolean`},ignoreCase:{short:`i`,long:`ignore-case`,type:`boolean`}},o={name:`uniq`,async execute(o,s){if(t(o))return e(i);let c=n(`uniq`,o,a);if(!c.ok)return c.error;let{count:l,duplicatesOnly:u,uniqueOnly:d,ignoreCase:f}=c.result.flags,p=c.result.positional,m=await r(s,p,{cmdName:`uniq`});if(!m.ok)return m.error;let h=m.content.split(`
|
|
2
2
|
`);if(h.length>0&&h[h.length-1]===``&&h.pop(),h.length===0)return{stdout:``,stderr:``,exitCode:0};let g=[],_=h[0],v=1,y=(e,t)=>f?e.toLowerCase()===t.toLowerCase():e===t;for(let e=1;e<h.length;e++)y(h[e],_)?v++:(g.push({line:_,count:v}),_=h[e],v=1);g.push({line:_,count:v});let b=g;u?b=g.filter(e=>e.count>1):d&&(b=g.filter(e=>e.count===1));let x=``;for(let{line:e,count:t}of b)l?x+=`${String(t).padStart(4)} ${e}
|
|
3
3
|
`:x+=`${e}
|
|
4
4
|
`;return{stdout:x,stderr:``,exitCode:0,stdoutEncoding:`binary`}}},s={name:`uniq`,flags:[{flag:`-c`,type:`boolean`},{flag:`-d`,type:`boolean`},{flag:`-u`,type:`boolean`},{flag:`-i`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{s as n,o as t};
|
|
5
|
-
//# sourceMappingURL=chunk-WKFATFPP-
|
|
5
|
+
//# sourceMappingURL=chunk-WKFATFPP-BENmMUsK.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,t}from"./chunk-Y2CYZVJY-acXC9Sbb.mjs";import{h as n,m as r}from"./src-BPVU4Y0o.mjs";const i={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?((t+.055)/1.055)**2.4:t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;let a=n<.5?n*(1+t):n+t-n*t,o=2*n-a;switch(r){case`r`:return i.hue2rgb(o,a,e+1/3)*255;case`g`:return i.hue2rgb(o,a,e)*255;case`b`:return i.hue2rgb(o,a,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;let i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if(r===`l`)return o*100;if(i===a)return 0;let s=i-a,c=o>.5?s/(2-i-a):s/(i+a);if(r===`s`)return c*100;switch(i){case e:return((t-n)/s+(t<n?6:0))*60;case t:return((n-e)/s+2)*60;case n:return((e-t)/s+4)*60;default:return-1}}},a={channel:i,lang:{clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},unit:{dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}},o={};for(let e=0;e<=255;e++)o[e]=a.unit.dec2hex(e);const s={ALL:0,RGB:1,HSL:2};var c=class{constructor(){this.type=s.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error(`Cannot change both RGB and HSL channels at the same time`);this.type=e}reset(){this.type=s.ALL}is(e){return this.type===e}};const l=new class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new c}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=s.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:r}=e;t===void 0&&(e.h=a.channel.rgb2hsl(e,`h`)),n===void 0&&(e.s=a.channel.rgb2hsl(e,`s`)),r===void 0&&(e.l=a.channel.rgb2hsl(e,`l`))}_ensureRGB(){let e=this.data,{r:t,g:n,b:r}=e;t===void 0&&(e.r=a.channel.hsl2rgb(e,`r`)),n===void 0&&(e.g=a.channel.hsl2rgb(e,`g`)),r===void 0&&(e.b=a.channel.hsl2rgb(e,`b`))}get r(){let e=this.data,t=e.r;return!this.type.is(s.HSL)&&t!==void 0?t:(this._ensureHSL(),a.channel.hsl2rgb(e,`r`))}get g(){let e=this.data,t=e.g;return!this.type.is(s.HSL)&&t!==void 0?t:(this._ensureHSL(),a.channel.hsl2rgb(e,`g`))}get b(){let e=this.data,t=e.b;return!this.type.is(s.HSL)&&t!==void 0?t:(this._ensureHSL(),a.channel.hsl2rgb(e,`b`))}get h(){let e=this.data,t=e.h;return!this.type.is(s.RGB)&&t!==void 0?t:(this._ensureRGB(),a.channel.rgb2hsl(e,`h`))}get s(){let e=this.data,t=e.s;return!this.type.is(s.RGB)&&t!==void 0?t:(this._ensureRGB(),a.channel.rgb2hsl(e,`s`))}get l(){let e=this.data,t=e.l;return!this.type.is(s.RGB)&&t!==void 0?t:(this._ensureRGB(),a.channel.rgb2hsl(e,`l`))}get a(){return this.data.a}set r(e){this.type.set(s.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(s.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(s.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(s.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(s.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(s.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}({r:0,g:0,b:0,a:0},`transparent`),u={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(u.re);if(!t)return;let n=t[1],r=parseInt(n,16),i=n.length,a=i%4==0,o=i>4,s=o?1:17,c=o?8:4,d=a?0:-1,f=o?255:15;return l.set({r:(r>>c*(d+3)&f)*s,g:(r>>c*(d+2)&f)*s,b:(r>>c*(d+1)&f)*s,a:a?(r&f)*s/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}${o[Math.round(i*255)]}`:`#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}`}},d={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{let t=e.match(d.hueRe);if(t){let[,e,n]=t;switch(n){case`grad`:return a.channel.clamp.h(parseFloat(e)*.9);case`rad`:return a.channel.clamp.h(parseFloat(e)*180/Math.PI);case`turn`:return a.channel.clamp.h(parseFloat(e)*360)}}return a.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let n=e.match(d.re);if(!n)return;let[,r,i,o,s,c]=n;return l.set({h:d._hue2deg(r),s:a.channel.clamp.s(parseFloat(i)),l:a.channel.clamp.l(parseFloat(o)),a:s?a.channel.clamp.a(c?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%, ${i})`:`hsl(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%)`}},f={colors:{aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyanaqua:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,transparent:`#00000000`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`},parse:e=>{e=e.toLowerCase();let t=f.colors[e];if(t)return u.parse(t)},stringify:e=>{let t=u.stringify(e);for(let e in f.colors)if(f.colors[e]===t)return e}},p={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let n=e.match(p.re);if(!n)return;let[,r,i,o,s,c,u,d,f]=n;return l.set({r:a.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:a.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:a.channel.clamp.b(u?parseFloat(c)*2.55:parseFloat(c)),a:d?a.channel.clamp.a(f?parseFloat(d)/100:parseFloat(d)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)}, ${a.lang.round(i)})`:`rgb(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)})`}},m={format:{keyword:f,hex:u,rgb:p,rgba:p,hsl:d,hsla:d},parse:e=>{if(typeof e!=`string`)return e;let t=u.parse(e)||p.parse(e)||d.parse(e)||f.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(s.HSL)||e.data.r===void 0?d.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?p.stringify(e):u.stringify(e)},h=(e,t)=>{let n=m.parse(e);for(let e in t)n[e]=a.channel.clamp[e](t[e]);return m.stringify(n)},g=(e,t,n=0,r=1)=>{if(typeof e!=`number`)return h(e,{a:t});let i=l.set({r:a.channel.clamp.r(e),g:a.channel.clamp.g(t),b:a.channel.clamp.b(n),a:a.channel.clamp.a(r)});return m.stringify(i)},ee=e=>{let{r:t,g:n,b:r}=m.parse(e),i=.2126*a.channel.toLinear(t)+.7152*a.channel.toLinear(n)+.0722*a.channel.toLinear(r);return a.lang.round(i)},te=e=>ee(e)>=.5,_=e=>!te(e),v=(e,t,n)=>{let r=m.parse(e),i=r[t],o=a.channel.clamp[t](i+n);return i!==o&&(r[t]=o),m.stringify(r)},y=(e,t)=>v(e,`l`,t),b=(e,t)=>v(e,`l`,-t),x=(e,t)=>{let n=m.parse(e),r={};for(let e in t)t[e]&&(r[e]=n[e]+t[e]);return h(e,r)},ne=(e,t,n=50)=>{let{r,g:i,b:a,a:o}=m.parse(e),{r:s,g:c,b:l,a:u}=m.parse(t),d=n/100,f=d*2-1,p=o-u,h=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,ee=1-h;return g(r*h+s*ee,i*h+c*ee,a*h+l*ee,o*d+u*(1-d))},S=(e,t=100)=>{let n=m.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,ne(n,e,t)};
|
|
1
|
+
import{n as e,t}from"./chunk-Y2CYZVJY-BW8wJnWV.mjs";import{h as n,m as r}from"./src-BbZVR6qh.mjs";const i={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?((t+.055)/1.055)**2.4:t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;let a=n<.5?n*(1+t):n+t-n*t,o=2*n-a;switch(r){case`r`:return i.hue2rgb(o,a,e+1/3)*255;case`g`:return i.hue2rgb(o,a,e)*255;case`b`:return i.hue2rgb(o,a,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;let i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if(r===`l`)return o*100;if(i===a)return 0;let s=i-a,c=o>.5?s/(2-i-a):s/(i+a);if(r===`s`)return c*100;switch(i){case e:return((t-n)/s+(t<n?6:0))*60;case t:return((n-e)/s+2)*60;case n:return((e-t)/s+4)*60;default:return-1}}},a={channel:i,lang:{clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},unit:{dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}},o={};for(let e=0;e<=255;e++)o[e]=a.unit.dec2hex(e);const s={ALL:0,RGB:1,HSL:2};var c=class{constructor(){this.type=s.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error(`Cannot change both RGB and HSL channels at the same time`);this.type=e}reset(){this.type=s.ALL}is(e){return this.type===e}};const l=new class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new c}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=s.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:r}=e;t===void 0&&(e.h=a.channel.rgb2hsl(e,`h`)),n===void 0&&(e.s=a.channel.rgb2hsl(e,`s`)),r===void 0&&(e.l=a.channel.rgb2hsl(e,`l`))}_ensureRGB(){let e=this.data,{r:t,g:n,b:r}=e;t===void 0&&(e.r=a.channel.hsl2rgb(e,`r`)),n===void 0&&(e.g=a.channel.hsl2rgb(e,`g`)),r===void 0&&(e.b=a.channel.hsl2rgb(e,`b`))}get r(){let e=this.data,t=e.r;return!this.type.is(s.HSL)&&t!==void 0?t:(this._ensureHSL(),a.channel.hsl2rgb(e,`r`))}get g(){let e=this.data,t=e.g;return!this.type.is(s.HSL)&&t!==void 0?t:(this._ensureHSL(),a.channel.hsl2rgb(e,`g`))}get b(){let e=this.data,t=e.b;return!this.type.is(s.HSL)&&t!==void 0?t:(this._ensureHSL(),a.channel.hsl2rgb(e,`b`))}get h(){let e=this.data,t=e.h;return!this.type.is(s.RGB)&&t!==void 0?t:(this._ensureRGB(),a.channel.rgb2hsl(e,`h`))}get s(){let e=this.data,t=e.s;return!this.type.is(s.RGB)&&t!==void 0?t:(this._ensureRGB(),a.channel.rgb2hsl(e,`s`))}get l(){let e=this.data,t=e.l;return!this.type.is(s.RGB)&&t!==void 0?t:(this._ensureRGB(),a.channel.rgb2hsl(e,`l`))}get a(){return this.data.a}set r(e){this.type.set(s.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(s.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(s.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(s.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(s.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(s.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}({r:0,g:0,b:0,a:0},`transparent`),u={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(u.re);if(!t)return;let n=t[1],r=parseInt(n,16),i=n.length,a=i%4==0,o=i>4,s=o?1:17,c=o?8:4,d=a?0:-1,f=o?255:15;return l.set({r:(r>>c*(d+3)&f)*s,g:(r>>c*(d+2)&f)*s,b:(r>>c*(d+1)&f)*s,a:a?(r&f)*s/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}${o[Math.round(i*255)]}`:`#${o[Math.round(t)]}${o[Math.round(n)]}${o[Math.round(r)]}`}},d={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{let t=e.match(d.hueRe);if(t){let[,e,n]=t;switch(n){case`grad`:return a.channel.clamp.h(parseFloat(e)*.9);case`rad`:return a.channel.clamp.h(parseFloat(e)*180/Math.PI);case`turn`:return a.channel.clamp.h(parseFloat(e)*360)}}return a.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let n=e.match(d.re);if(!n)return;let[,r,i,o,s,c]=n;return l.set({h:d._hue2deg(r),s:a.channel.clamp.s(parseFloat(i)),l:a.channel.clamp.l(parseFloat(o)),a:s?a.channel.clamp.a(c?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%, ${i})`:`hsl(${a.lang.round(t)}, ${a.lang.round(n)}%, ${a.lang.round(r)}%)`}},f={colors:{aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyanaqua:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,transparent:`#00000000`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`},parse:e=>{e=e.toLowerCase();let t=f.colors[e];if(t)return u.parse(t)},stringify:e=>{let t=u.stringify(e);for(let e in f.colors)if(f.colors[e]===t)return e}},p={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let n=e.match(p.re);if(!n)return;let[,r,i,o,s,c,u,d,f]=n;return l.set({r:a.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:a.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:a.channel.clamp.b(u?parseFloat(c)*2.55:parseFloat(c)),a:d?a.channel.clamp.a(f?parseFloat(d)/100:parseFloat(d)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)}, ${a.lang.round(i)})`:`rgb(${a.lang.round(t)}, ${a.lang.round(n)}, ${a.lang.round(r)})`}},m={format:{keyword:f,hex:u,rgb:p,rgba:p,hsl:d,hsla:d},parse:e=>{if(typeof e!=`string`)return e;let t=u.parse(e)||p.parse(e)||d.parse(e)||f.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(s.HSL)||e.data.r===void 0?d.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?p.stringify(e):u.stringify(e)},h=(e,t)=>{let n=m.parse(e);for(let e in t)n[e]=a.channel.clamp[e](t[e]);return m.stringify(n)},g=(e,t,n=0,r=1)=>{if(typeof e!=`number`)return h(e,{a:t});let i=l.set({r:a.channel.clamp.r(e),g:a.channel.clamp.g(t),b:a.channel.clamp.b(n),a:a.channel.clamp.a(r)});return m.stringify(i)},ee=e=>{let{r:t,g:n,b:r}=m.parse(e),i=.2126*a.channel.toLinear(t)+.7152*a.channel.toLinear(n)+.0722*a.channel.toLinear(r);return a.lang.round(i)},te=e=>ee(e)>=.5,_=e=>!te(e),v=(e,t,n)=>{let r=m.parse(e),i=r[t],o=a.channel.clamp[t](i+n);return i!==o&&(r[t]=o),m.stringify(r)},y=(e,t)=>v(e,`l`,t),b=(e,t)=>v(e,`l`,-t),x=(e,t)=>{let n=m.parse(e),r={};for(let e in t)t[e]&&(r[e]=n[e]+t[e]);return h(e,r)},ne=(e,t,n=50)=>{let{r,g:i,b:a,a:o}=m.parse(e),{r:s,g:c,b:l,a:u}=m.parse(t),d=n/100,f=d*2-1,p=o-u,h=((f*p===-1?f:(f+p)/(1+f*p))+1)/2,ee=1-h;return g(r*h+s*ee,i*h+c*ee,a*h+l*ee,o*d+u*(1-d))},S=(e,t=100)=>{let n=m.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,ne(n,e,t)};
|
|
2
2
|
/*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */
|
|
3
3
|
function re(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ie(e){if(Array.isArray(e))return e}function ae(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function oe(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function se(e,t){return ie(e)||ae(e,t)||ce(e,t)||oe()}function ce(e,t){if(e){if(typeof e==`string`)return re(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(e,t):void 0}}const le=Object.entries,ue=Object.setPrototypeOf,de=Object.isFrozen,fe=Object.getPrototypeOf,pe=Object.getOwnPropertyDescriptor;let C=Object.freeze,w=Object.seal,me=Object.create,T=typeof Reflect<`u`&&Reflect,he=T.apply,ge=T.construct;C||=function(e){return e},w||=function(e){return e},he||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},ge||=function(e){return new e(...[...arguments].slice(1))};const _e=O(Array.prototype.forEach),ve=O(Array.prototype.lastIndexOf),ye=O(Array.prototype.pop),be=O(Array.prototype.push),xe=O(Array.prototype.splice),Se=Array.isArray,Ce=O(String.prototype.toLowerCase),we=O(String.prototype.toString),Te=O(String.prototype.match),Ee=O(String.prototype.replace),De=O(String.prototype.indexOf),Oe=O(String.prototype.trim),ke=O(Number.prototype.toString),Ae=O(Boolean.prototype.toString),je=typeof BigInt>`u`?null:O(BigInt.prototype.toString),Me=typeof Symbol>`u`?null:O(Symbol.prototype.toString),E=O(Object.prototype.hasOwnProperty),Ne=O(Object.prototype.toString),D=O(RegExp.prototype.test),Pe=Fe(TypeError);function O(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return he(e,t,n)}}function Fe(e){return function(){return ge(e,[...arguments])}}function k(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ce;if(ue&&ue(e,null),!Se(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(de(t)||(t[r]=e),i=e)}e[i]=!0}return e}function A(e){for(let t=0;t<e.length;t++)E(e,t)||(e[t]=null);return e}function j(e){let t=me(null);for(let r of le(e)){var n=se(r,2);let i=n[0],a=n[1];E(e,i)&&(Se(a)?t[i]=A(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=j(a):t[i]=a)}return t}function Ie(e){switch(typeof e){case`string`:return e;case`number`:return ke(e);case`boolean`:return Ae(e);case`bigint`:return je?je(e):`0`;case`symbol`:return Me?Me(e):`Symbol()`;case`undefined`:return Ne(e);case`function`:case`object`:{if(e===null)return Ne(e);let t=e,n=M(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Ne(e)}return Ne(e)}default:return Ne(e)}}function M(e,t){for(;e!==null;){let n=pe(e,t);if(n){if(n.get)return O(n.get);if(typeof n.value==`function`)return O(n.value)}e=fe(e)}function n(){return null}return n}function Le(e){try{return D(e,``),!0}catch{return!1}}const Re=C(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),ze=C(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Be=C([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Ve=C([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),He=C(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Ue=C([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),We=C([`#text`]),Ge=C(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Ke=C(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),qe=C(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Je=C([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Ye=w(/{{[\w\W]*|^[\w\W]*}}/g),Xe=w(/<%[\w\W]*|^[\w\W]*%>/g),Ze=w(/\${[\w\W]*/g),Qe=w(/^data-[\-\w.\u00B7-\uFFFF]+$/),$e=w(/^aria-[\-\w]+$/),et=w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tt=w(/^(?:\w+script|data):/i),nt=w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rt=w(/^html$/i),it=w(/^[a-z][.\w]*(-[.\w]+)+$/i),at=w(/<[/\w!]/g),ot=w(/<[/\w]/g),st=w(/<\/no(script|embed|frames)/i),ct=w(/\/>/i),N={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},lt=function(){return typeof window>`u`?null:window},ut=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},dt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},P=function(e,t,n,r){return E(e,t)&&Se(e[t])?k(r.base?j(r.base):{},e[t],r.transform):n};function ft(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lt(),t=e=>ft(e);if(t.version=`3.4.12`,t.removed=[],!e||!e.document||e.document.nodeType!==N.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=M(d,`cloneNode`),p=M(d,`remove`),m=M(d,`nextSibling`),h=M(d,`childNodes`),g=M(d,`parentNode`),ee=M(d,`shadowRoot`),te=M(d,`attributes`),_=o&&o.prototype?M(o.prototype,`nodeType`):null,v=o&&o.prototype?M(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let y,b=``,x,ne=!1,S=0,re=function(){if(S>0)throw Pe(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ie=function(e){re(),S++;try{return y.createHTML(e)}finally{S--}},ae=function(e){re(),S++;try{return y.createScriptURL(e)}finally{S--}},oe=function(){return ne||=(x=ut(u,i),!0),x},se=n,ce=se.implementation,ue=se.createNodeIterator,de=se.createDocumentFragment,fe=se.getElementsByTagName,pe=r.importNode,T=dt();t.isSupported=typeof le==`function`&&typeof g==`function`&&ce&&ce.createHTMLDocument!==void 0;let he=Ye,ge=Xe,ke=Ze,Ae=Qe,je=$e,Me=tt,Ne=nt,O=it,Fe=et,A=null,pt=k({},[...Re,...ze,...Be,...He,...We]),F=null,I=k({},[...Ge,...Ke,...qe,...Je]),L=Object.seal(me(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),R=null,z=null,B=Object.seal(me(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),mt=!0,ht=!0,gt=!1,_t=!0,V=!1,H=!0,vt=!1,yt=!1,bt=null,xt=null,St=!1,Ct=!1,wt=!1,Tt=!1,Et=!0,Dt=!1,Ot=`user-content-`,kt=!0,At=!1,jt={},U=null,W=k({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Mt=null,Nt=k({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Pt=null,Ft=k({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),It=`http://www.w3.org/1998/Math/MathML`,Lt=`http://www.w3.org/2000/svg`,G=`http://www.w3.org/1999/xhtml`,Rt=G,zt=!1,Bt=null,K=k({},[It,Lt,G],we),Vt=C([`mi`,`mo`,`mn`,`ms`,`mtext`]),q=k({},Vt),Ht=C([`annotation-xml`]),Ut=k({},Ht),Wt=k({},[`title`,`style`,`font`,`a`,`script`]),Gt=null,Kt=[`application/xhtml+xml`,`text/html`],J=null,qt=null,Jt=n.createElement(`form`),Yt=function(e){return e instanceof RegExp||e instanceof Function},Xt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(qt&&qt===e)return;(!e||typeof e!=`object`)&&(e={}),e=j(e),Gt=Kt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,J=Gt===`application/xhtml+xml`?we:Ce,A=P(e,`ALLOWED_TAGS`,pt,{transform:J}),F=P(e,`ALLOWED_ATTR`,I,{transform:J}),Bt=P(e,`ALLOWED_NAMESPACES`,K,{transform:we}),Pt=P(e,`ADD_URI_SAFE_ATTR`,Ft,{transform:J,base:Ft}),Mt=P(e,`ADD_DATA_URI_TAGS`,Nt,{transform:J,base:Nt}),U=P(e,`FORBID_CONTENTS`,W,{transform:J}),R=P(e,`FORBID_TAGS`,j({}),{transform:J}),z=P(e,`FORBID_ATTR`,j({}),{transform:J}),jt=E(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?j(e.USE_PROFILES):e.USE_PROFILES:!1,mt=e.ALLOW_ARIA_ATTR!==!1,ht=e.ALLOW_DATA_ATTR!==!1,gt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,_t=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,V=e.SAFE_FOR_TEMPLATES||!1,H=e.SAFE_FOR_XML!==!1,vt=e.WHOLE_DOCUMENT||!1,Ct=e.RETURN_DOM||!1,wt=e.RETURN_DOM_FRAGMENT||!1,Tt=e.RETURN_TRUSTED_TYPE||!1,St=e.FORCE_BODY||!1,Et=e.SANITIZE_DOM!==!1,Dt=e.SANITIZE_NAMED_PROPS||!1,kt=e.KEEP_CONTENT!==!1,At=e.IN_PLACE||!1,Fe=Le(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:et,Rt=typeof e.NAMESPACE==`string`?e.NAMESPACE:G,q=E(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?j(e.MATHML_TEXT_INTEGRATION_POINTS):k({},Vt),Ut=E(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?j(e.HTML_INTEGRATION_POINTS):k({},Ht);let t=E(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?j(e.CUSTOM_ELEMENT_HANDLING):me(null);if(L=me(null),E(t,`tagNameCheck`)&&Yt(t.tagNameCheck)&&(L.tagNameCheck=t.tagNameCheck),E(t,`attributeNameCheck`)&&Yt(t.attributeNameCheck)&&(L.attributeNameCheck=t.attributeNameCheck),E(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(L.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),w(L),V&&(ht=!1),wt&&(Ct=!0),jt&&(A=k({},We),F=me(null),jt.html===!0&&(k(A,Re),k(F,Ge)),jt.svg===!0&&(k(A,ze),k(F,Ke),k(F,Je)),jt.svgFilters===!0&&(k(A,Be),k(F,Ke),k(F,Je)),jt.mathMl===!0&&(k(A,He),k(F,qe),k(F,Je))),B.tagCheck=null,B.attributeCheck=null,E(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?B.tagCheck=e.ADD_TAGS:Se(e.ADD_TAGS)&&(A===pt&&(A=j(A)),k(A,e.ADD_TAGS,J))),E(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?B.attributeCheck=e.ADD_ATTR:Se(e.ADD_ATTR)&&(F===I&&(F=j(F)),k(F,e.ADD_ATTR,J))),E(e,`ADD_URI_SAFE_ATTR`)&&Se(e.ADD_URI_SAFE_ATTR)&&k(Pt,e.ADD_URI_SAFE_ATTR,J),E(e,`FORBID_CONTENTS`)&&Se(e.FORBID_CONTENTS)&&(U===W&&(U=j(U)),k(U,e.FORBID_CONTENTS,J)),E(e,`ADD_FORBID_CONTENTS`)&&Se(e.ADD_FORBID_CONTENTS)&&(U===W&&(U=j(U)),k(U,e.ADD_FORBID_CONTENTS,J)),kt&&(A[`#text`]=!0),vt&&k(A,[`html`,`head`,`body`]),A.table&&(k(A,[`tbody`]),delete R.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Pe(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Pe(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=y;y=e.TRUSTED_TYPES_POLICY;try{b=ie(``)}catch(e){throw y=t,e}}else e.TRUSTED_TYPES_POLICY===null?(y=void 0,b=``):(y===void 0&&(y=oe()),y&&typeof b==`string`&&(b=ie(``)));C&&C(e),qt=e},Zt=k({},[...ze,...Be,...Ve]),Qt=k({},[...He,...Ue]),$t=function(e,t,n){return t.namespaceURI===G?e===`svg`:t.namespaceURI===It?e===`svg`&&(n===`annotation-xml`||q[n]):!!Zt[e]},en=function(e,t,n){return t.namespaceURI===G?e===`math`:t.namespaceURI===Lt?e===`math`&&Ut[n]:!!Qt[e]},tn=function(e,t,n){return t.namespaceURI===Lt&&!Ut[n]||t.namespaceURI===It&&!q[n]?!1:!Qt[e]&&(Wt[e]||!Zt[e])},nn=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:Rt,tagName:`template`});let n=Ce(e.tagName),r=Ce(t.tagName);return Bt[e.namespaceURI]?e.namespaceURI===Lt?$t(n,t,r):e.namespaceURI===It?en(n,t,r):e.namespaceURI===G?tn(n,t,r):!!(Gt===`application/xhtml+xml`&&Bt[e.namespaceURI]):!1},Y=function(e){be(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw Pe(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},rn=function(e){on(e);let t=h(e);if(t){let e=[];_e(t,t=>{be(e,t)}),_e(e,e=>{try{p(e)}catch{}})}let n=te(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},X=function(e,n){try{be(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{be(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Ct||wt)try{Y(n)}catch{}else try{n.setAttribute(e,``)}catch{}},an=function(e){let t=te(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||F[J(i)]))try{e.removeAttribute(i)}catch{}}},on=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(_?_(e):e.nodeType)===N.element&&an(e);let n=h(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},sn=function(e){if(!H)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=_?_(e):e.nodeType;if(n===N.processingInstruction||n===N.comment&&D(ot,e.data)){try{p(e)}catch{}continue}if(n===N.element){let t=e,n=J(v?v(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=h(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},cn=function(e){let t=null,r=null;if(St)e=`<remove></remove>`+e;else{let t=Te(e,/^[\r\n\t ]+/);r=t&&t[0]}Gt===`application/xhtml+xml`&&Rt===G&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=y?ie(e):e;if(Rt===G)try{t=new l().parseFromString(i,Gt)}catch{}if(!t||!t.documentElement){t=ce.createDocument(Rt,`template`,null);try{t.documentElement.innerHTML=zt?b:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Rt===G?fe.call(t,vt?`html`:`body`)[0]:vt?t.documentElement:a},ln=function(e){return ue.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},un=function(e){return e=Ee(e,he,` `),e=Ee(e,ge,` `),e=Ee(e,ke,` `),e},dn=function(e){e.normalize();let t=ue.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;)n.data=un(n.data),n=t.nextNode();let r=e.querySelectorAll?.call(e,`template`);r&&_e(r,e=>{fn(e.content)&&dn(e.content)})},Z=function(e){let t=v?v(e):null;return typeof t!=`string`||J(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==te(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==_(e)||e.childNodes!==h(e)},fn=function(e){if(!_||typeof e!=`object`||!e)return!1;try{return _(e)===N.documentFragment}catch{return!1}},pn=function(e){if(!_||typeof e!=`object`||!e)return!1;try{return typeof _(e)==`number`}catch{return!1}};function Q(e,n,r){e.length!==0&&_e(e,e=>{e.call(t,n,r,qt)})}let mn=function(e,t){return!!(H&&e.hasChildNodes()&&!pn(e.firstElementChild)&&D(at,e.textContent)&&D(at,e.innerHTML)||H&&e.namespaceURI===G&&t===`style`&&pn(e.firstElementChild)||e.nodeType===N.processingInstruction||H&&e.nodeType===N.comment&&D(ot,e.data))},hn=function(e,t){if(!R[t]&&vn(t)&&(L.tagNameCheck instanceof RegExp&&D(L.tagNameCheck,t)||L.tagNameCheck instanceof Function&&L.tagNameCheck(t)))return!1;if(kt&&!U[t]){let t=g(e),n=h(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=At?n[i]:f(n[i],!0);t.insertBefore(r,m(e))}}}return Y(e),!0},$=function(e,n){if(Q(T.beforeSanitizeElements,e,null),e!==n&&g(e)===null)return!0;if(Z(e))return Y(e),!0;let r=J(v?v(e):e.nodeName);if(Q(T.uponSanitizeElement,e,{tagName:r,allowedTags:A}),e!==n&&g(e)===null)return!0;if(mn(e,r))return Y(e),!0;if(R[r]||!(B.tagCheck instanceof Function&&B.tagCheck(r))&&!A[r]){let t=hn(e,r);return t===!1&&Q(T.afterSanitizeElements,e,null),t}if((_?_(e):e.nodeType)===N.element&&!nn(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&D(st,e.innerHTML))return Y(e),!0;if(V&&e.nodeType===N.text){let n=un(e.textContent);e.textContent!==n&&(be(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Q(T.afterSanitizeElements,e,null),!1},gn=function(e,t,r){if(z[t]||H&&t===`patchsrc`||H&&t===`for`&&e!==`label`&&e!==`output`||Et&&(t===`id`||t===`name`)&&(r in n||r in Jt))return!1;let i=F[t]||B.attributeCheck instanceof Function&&B.attributeCheck(t,e);if(!(ht&&D(Ae,t))&&!(mt&&D(je,t))){if(!i){if(!(vn(e)&&(L.tagNameCheck instanceof RegExp&&D(L.tagNameCheck,e)||L.tagNameCheck instanceof Function&&L.tagNameCheck(e))&&(L.attributeNameCheck instanceof RegExp&&D(L.attributeNameCheck,t)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(t,e))||t===`is`&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&D(L.tagNameCheck,r)||L.tagNameCheck instanceof Function&&L.tagNameCheck(r))))return!1}else if(!Pt[t]&&!D(Fe,Ee(r,Ne,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&De(r,`data:`)===0&&Mt[e])&&!(gt&&!D(Me,Ee(r,Ne,``)))&&r)return!1}return!0},_n=k({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),vn=function(e){return!_n[Ce(e)]&&D(O,e)},yn=function(e,t,n,r){if(y&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ie(r);case`TrustedScriptURL`:return ae(r)}return r},bn=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),Z(e)?Y(e):ye(t.removed)}catch{X(n,e)}},xn=function(e){Q(T.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||Z(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0},r=t.length,i=J(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=J(o),u=c,d=o===`value`?u:Oe(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,Q(T.uponSanitizeAttribute,e,n),d=n.attrValue,Dt&&(l===`id`||l===`name`)&&De(d,Ot)!==0&&(X(o,e),d=Ot+d),H&&D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){X(o,e);continue}if(l===`attributename`&&Te(d,`href`)){X(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){X(o,e);continue}if(!_t&&D(ct,d)){X(o,e);continue}if(V&&(d=un(d)),!gn(i,l,d)){X(o,e);continue}d=yn(i,l,s,d),d!==u&&bn(e,o,s,d)}}Q(T.afterSanitizeAttributes,e,null)},Sn=function(e){let t=null,n=ln(e);for(Q(T.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Q(T.uponSanitizeShadowNode,t,null),$(t,e),xn(t),fn(t.content)&&Sn(t.content),(_?_(t):t.nodeType)===N.element){let e=ee(t);fn(e)&&(Cn(e),Sn(e))}Q(T.afterSanitizeShadowDOM,e,null)},Cn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Sn(e.shadow);continue}let n=e.node,r=(_?_(n):n.nodeType)===N.element,i=h(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=v?v(n):null;if(typeof e==`string`&&J(e)===`template`){let e=n.content;fn(e)&&t.push({node:e,shadow:null})}}if(r){let e=ee(n);fn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(zt=!e,zt&&(e=`<!-->`),typeof e!=`string`&&!pn(e)&&(e=Ie(e),typeof e!=`string`))throw Pe(`dirty is not a string, aborting`);if(!t.isSupported)return e;yt?(A=bt,F=xt):Xt(n),(T.uponSanitizeElement.length>0||T.uponSanitizeAttribute.length>0)&&(A=j(A)),T.uponSanitizeAttribute.length>0&&(F=j(F)),t.removed=[];let c=At&&typeof e!=`string`&&pn(e);if(c){sn(e);let t=v?v(e):e.nodeName;if(typeof t==`string`){let n=J(t);if(!A[n]||R[n])throw rn(e),Pe(`root node is forbidden and cannot be sanitized in-place`)}if(Z(e))throw rn(e),Pe(`root node is clobbered and cannot be sanitized in-place`);try{Cn(e)}catch(t){throw rn(e),t}}else if(pn(e))i=cn(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===N.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Cn(a);else{if(!Ct&&!V&&!vt&&e.indexOf(`<`)===-1)return y&&Tt?ie(e):e;if(i=cn(e),!i)return Ct?null:Tt?b:``}i&&St&&Y(i.firstChild);let l=c?e:i,u=ln(l);try{for(;o=u.nextNode();)$(o,l),xn(o),fn(o.content)&&Sn(o.content)}catch(n){throw c&&(rn(e),_e(t.removed,e=>{e.element&&on(e.element)})),n}if(c)return _e(t.removed,e=>{e.element&&on(e.element)}),V&&dn(e),e;if(Ct){if(V&&dn(i),wt)for(s=de.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(F.shadowroot||F.shadowrootmode)&&(s=pe.call(r,s,!0)),s}let d=vt?i.outerHTML:i.innerHTML;return vt&&A[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&D(rt,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
@@ -127,4 +127,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
127
127
|
${t}
|
|
128
128
|
`},`getStyles`),Hn=e((e,t)=>{t!==void 0&&(zn[e]=t)},`addStylesForDiagram`),Un=Vn,Wn={};t(Wn,{clear:()=>Yn,getAccDescription:()=>$n,getAccTitle:()=>Zn,getDiagramTitle:()=>tr,setAccDescription:()=>Qn,setAccTitle:()=>Xn,setDiagramTitle:()=>er});var Gn=``,Kn=``,qn=``,Jn=e(e=>$(e,Jt()),`sanitizeText`),Yn=e(()=>{Gn=``,qn=``,Kn=``},`clear`),Xn=e(e=>{Gn=Jn(e).replace(/^\s+/g,``)},`setAccTitle`),Zn=e(()=>Gn,`getAccTitle`),Qn=e(e=>{qn=Jn(e).replace(/\n\s+/g,`
|
|
129
129
|
`)},`setAccDescription`),$n=e(()=>qn,`getAccDescription`),er=e(e=>{Kn=Jn(e)},`setDiagramTitle`),tr=e(()=>Kn,`getDiagramTitle`),nr=r,rr=n,ir=Jt,ar=qt,or=zt,sr=e(e=>$(e,ir()),`sanitizeText`),cr=Rn,lr=e(()=>Wn,`getCommonDb`),ur={},dr=e((e,t,n)=>{ur[e]&&nr.warn(`Diagram with id ${e} already registered. Overwriting.`),ur[e]=t,n&&un(e,n),Hn(e,t.styles),t.injectUtils?.(nr,rr,ir,sr,cr,lr(),()=>{})},`registerDiagram`),fr=e(e=>{if(e in ur)return ur[e];throw new pr(e)},`getDiagram`),pr=class extends Error{static{e(this,`DiagramNotFoundError`)}constructor(e){super(`Diagram ${e} not found.`)}};export{pt as $,An as A,sr as B,dn as C,V as D,J as E,Nn as F,ar as G,Qn as H,Zt as I,Rn as J,er as K,Rt as L,wn as M,dr as N,xn as O,ln as P,Kt as Q,G as R,fr as S,Y as T,Xn as U,Gt as V,qt as W,Un as X,cr as Y,U as Z,rn as _,Yn as a,m as at,Jt as b,Ln as c,or as d,b as et,Ft as f,Bt as g,X as h,jn as i,g as it,Z as j,nn as k,Bn as l,sn as m,Xt as n,v as nt,Wn as o,a as ot,cn as p,Wt as q,I as r,_ as rt,Pn as s,on as t,y as tt,zt as u,$n as v,tr as w,ir as x,Zn as y,$ as z};
|
|
130
|
-
//# sourceMappingURL=chunk-WYO6CB5R-
|
|
130
|
+
//# sourceMappingURL=chunk-WYO6CB5R-Brxa0zhE.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
function e(e,t){return(t?`d`:`-`)+[e&256?`r`:`-`,e&128?`w`:`-`,e&64?`x`:`-`,e&32?`r`:`-`,e&16?`w`:`-`,e&8?`x`:`-`,e&4?`r`:`-`,e&2?`w`:`-`,e&1?`x`:`-`].join(``)}export{e as t};
|
|
2
|
-
//# sourceMappingURL=chunk-X2AJGDEF-
|
|
2
|
+
//# sourceMappingURL=chunk-X2AJGDEF-Bub3T_lz.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./chunk-EIZGF4BS-
|
|
2
|
-
//# sourceMappingURL=chunk-XKQRETAK-
|
|
1
|
+
import{t as e}from"./chunk-EIZGF4BS-CQom3CXw.mjs";var t=e(`sha1sum`,`sha1`,`compute SHA1 message digest`),n={name:`sha1sum`,flags:[{flag:`-c`,type:`boolean`}],needsFiles:!0};export{n,t};
|
|
2
|
+
//# sourceMappingURL=chunk-XKQRETAK-DHeM48F0.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,o as t,t as n}from"./chunk-DTipWd-i.mjs";import{t as r}from"./chunk-5QMZ5MUS-D8tv8KWc.mjs";import{n as i,t as a}from"./chunk-A5O5YHGN-C27iG4wY.mjs";import{n as o}from"./chunk-24IMIIXA-BQtWA2ag.mjs";import{n as s,t as c}from"./chunk-3THT3N7L-DcPtGCSm.mjs";import{r as l,t as u}from"./chunk-74CEPOFO-BUVWiXkJ.mjs";import{dirname as d,join as f,sep as p}from"node:path";import{fileURLToPath as m}from"node:url";import{existsSync as h}from"node:fs";import{randomBytes as g}from"node:crypto";import{Worker as _}from"node:worker_threads";var v=t(n(((t,n)=>{var r=void 0,i=function(t){return r||(r=new Promise(function(r,i){var a=t===void 0?{}:t,o=a.onAbort;a.onAbort=function(e){i(Error(e)),o&&o(e)},a.postRun=a.postRun||[],a.postRun.push(function(){r(a)}),n=void 0;var s;s||=a===void 0?{}:a;var c=!!globalThis.window,l=!!globalThis.WorkerGlobalScope,u=globalThis.process?.versions?.node&&globalThis.process?.type!=`renderer`;s.onRuntimeInitialized=function(){function e(e,t){switch(typeof t){case`boolean`:pe(e,+!!t);break;case`number`:de(e,t);break;case`string`:A(e,t,-1,-1);break;case`object`:if(t===null)fe(e);else if(t.length!=null){var n=Mt(t.length);C.set(t,n),j(e,n,t.length,-1),Nt(n)}else P(e,`Wrong API use : tried to return a value of an unknown type (`+t+`).`,-1);break;default:fe(e)}}function t(e,t){for(var n=[],r=0;r<e;r+=1){var i=M(t+4*r,`i32`),a=oe(i);if(a===1||a===2)i=ue(i);else if(a===3)i=ce(i);else if(a===4){a=i,i=se(a),a=le(a);for(var o=new Uint8Array(i),s=0;s<i;s+=1)o[s]=C[a+s];i=o}else i=null;n.push(i)}return n}function n(e,t){this.Qa=e,this.db=t,this.Oa=1,this.mb=[]}function r(e,t){if(this.db=t,this.fb=Et(e),this.fb===null)throw Error(`Unable to allocate memory for the SQL string`);this.lb=this.fb,this.$a=this.sb=null}function i(e){if(this.filename=`dbfile_`+(4294967295*Math.random()>>>0),e!=null){var t=this.filename,n=`/`,r=t;if(n&&(n=typeof n==`string`?n:Le(n),r=t?ge(n+`/`+t):n),t=ke(!0,!0),r=Qe(r,t),e){if(typeof e==`string`){n=Array(e.length);for(var i=0,o=e.length;i<o;++i)n[i]=e.charCodeAt(i);e=n}at(r,t|146),n=st(r,577),dt(n,e,0,e.length,0),ct(n),at(r,t)}}this.handleError(c(this.filename,a)),this.db=M(a,`i32`),he(this.db),this.gb={},this.Sa={}}var a=Q(4),o=s.cwrap,c=o(`sqlite3_open`,`number`,[`string`,`number`]),l=o(`sqlite3_close_v2`,`number`,[`number`]),u=o(`sqlite3_exec`,`number`,[`number`,`string`,`number`,`number`,`number`]),d=o(`sqlite3_changes`,`number`,[`number`]),f=o(`sqlite3_prepare_v2`,`number`,[`number`,`string`,`number`,`number`,`number`]),p=o(`sqlite3_sql`,`string`,[`number`]),m=o(`sqlite3_normalized_sql`,`string`,[`number`]),h=o(`sqlite3_prepare_v2`,`number`,[`number`,`number`,`number`,`number`,`number`]),g=o(`sqlite3_bind_text`,`number`,[`number`,`number`,`number`,`number`,`number`]),_=o(`sqlite3_bind_blob`,`number`,[`number`,`number`,`number`,`number`,`number`]),v=o(`sqlite3_bind_double`,`number`,[`number`,`number`,`number`]),y=o(`sqlite3_bind_int`,`number`,[`number`,`number`,`number`]),b=o(`sqlite3_bind_parameter_index`,`number`,[`number`,`string`]),x=o(`sqlite3_step`,`number`,[`number`]),ee=o(`sqlite3_errmsg`,`string`,[`number`]),S=o(`sqlite3_column_count`,`number`,[`number`]),w=o(`sqlite3_data_count`,`number`,[`number`]),T=o(`sqlite3_column_double`,`number`,[`number`,`number`]),E=o(`sqlite3_column_text`,`string`,[`number`,`number`]),D=o(`sqlite3_column_blob`,`number`,[`number`,`number`]),te=o(`sqlite3_column_bytes`,`number`,[`number`,`number`]),ne=o(`sqlite3_column_type`,`number`,[`number`,`number`]),O=o(`sqlite3_column_name`,`string`,[`number`,`number`]),re=o(`sqlite3_reset`,`number`,[`number`]),k=o(`sqlite3_clear_bindings`,`number`,[`number`]),ie=o(`sqlite3_finalize`,`number`,[`number`]),ae=o(`sqlite3_create_function_v2`,`number`,`number string number number number number number number number`.split(` `)),oe=o(`sqlite3_value_type`,`number`,[`number`]),se=o(`sqlite3_value_bytes`,`number`,[`number`]),ce=o(`sqlite3_value_text`,`string`,[`number`]),le=o(`sqlite3_value_blob`,`number`,[`number`]),ue=o(`sqlite3_value_double`,`number`,[`number`]),de=o(`sqlite3_result_double`,``,[`number`,`number`]),fe=o(`sqlite3_result_null`,``,[`number`]),A=o(`sqlite3_result_text`,``,[`number`,`string`,`number`,`number`]),j=o(`sqlite3_result_blob`,``,[`number`,`number`,`number`,`number`]),pe=o(`sqlite3_result_int`,``,[`number`,`number`]),P=o(`sqlite3_result_error`,``,[`number`,`string`,`number`]),me=o(`sqlite3_aggregate_context`,`number`,[`number`,`number`]),he=o(`RegisterExtensionFunctions`,`number`,[`number`]),_e=o(`sqlite3_update_hook`,`number`,[`number`,`number`,`number`]);n.prototype.bind=function(e){if(!this.Qa)throw`Statement closed`;return this.reset(),Array.isArray(e)?this.Gb(e):typeof e==`object`&&e?this.Hb(e):!0},n.prototype.step=function(){if(!this.Qa)throw`Statement closed`;this.Oa=1;var e=x(this.Qa);switch(e){case 100:return!0;case 101:return!1;default:throw this.db.handleError(e)}},n.prototype.Ab=function(e){return e??(e=this.Oa,this.Oa+=1),T(this.Qa,e)},n.prototype.Ob=function(e){if(e??(e=this.Oa,this.Oa+=1),e=E(this.Qa,e),typeof BigInt!=`function`)throw Error(`BigInt is not supported`);return BigInt(e)},n.prototype.Tb=function(e){return e??(e=this.Oa,this.Oa+=1),E(this.Qa,e)},n.prototype.getBlob=function(e){e??(e=this.Oa,this.Oa+=1);var t=te(this.Qa,e);e=D(this.Qa,e);for(var n=new Uint8Array(t),r=0;r<t;r+=1)n[r]=C[e+r];return n},n.prototype.get=function(e,t){t||={},e!=null&&this.bind(e)&&this.step(),e=[];for(var n=w(this.Qa),r=0;r<n;r+=1)switch(ne(this.Qa,r)){case 1:var i=t.useBigInt?this.Ob(r):this.Ab(r);e.push(i);break;case 2:e.push(this.Ab(r));break;case 3:e.push(this.Tb(r));break;case 4:e.push(this.getBlob(r));break;default:e.push(null)}return e},n.prototype.qb=function(){for(var e=[],t=S(this.Qa),n=0;n<t;n+=1)e.push(O(this.Qa,n));return e},n.prototype.zb=function(e,t){e=this.get(e,t),t=this.qb();for(var n={},r=0;r<t.length;r+=1)n[t[r]]=e[r];return n},n.prototype.Sb=function(){return p(this.Qa)},n.prototype.Pb=function(){return m(this.Qa)},n.prototype.run=function(e){return e!=null&&this.bind(e),this.step(),this.reset()},n.prototype.wb=function(e,t){t??(t=this.Oa,this.Oa+=1),e=Et(e),this.mb.push(e),this.db.handleError(g(this.Qa,t,e,-1,0))},n.prototype.Fb=function(e,t){t??(t=this.Oa,this.Oa+=1);var n=Mt(e.length);C.set(e,n),this.mb.push(n),this.db.handleError(_(this.Qa,t,n,e.length,0))},n.prototype.vb=function(e,t){t??(t=this.Oa,this.Oa+=1),this.db.handleError((e===(e|0)?y:v)(this.Qa,t,e))},n.prototype.Ib=function(e){e??(e=this.Oa,this.Oa+=1),_(this.Qa,e,0,0,0)},n.prototype.xb=function(e,t){switch(t??(t=this.Oa,this.Oa+=1),typeof e){case`string`:this.wb(e,t);return;case`number`:this.vb(e,t);return;case`bigint`:this.wb(e.toString(),t);return;case`boolean`:this.vb(e+0,t);return;case`object`:if(e===null){this.Ib(t);return}if(e.length!=null){this.Fb(e,t);return}}throw`Wrong API use : tried to bind a value of an unknown type (`+e+`).`},n.prototype.Hb=function(e){var t=this;return Object.keys(e).forEach(function(n){var r=b(t.Qa,n);r!==0&&t.xb(e[n],r)}),!0},n.prototype.Gb=function(e){for(var t=0;t<e.length;t+=1)this.xb(e[t],t+1);return!0},n.prototype.reset=function(){return this.freemem(),k(this.Qa)===0&&re(this.Qa)===0},n.prototype.freemem=function(){for(var e;(e=this.mb.pop())!==void 0;)Nt(e)},n.prototype.Ya=function(){this.freemem();var e=ie(this.Qa)===0;return delete this.db.gb[this.Qa],this.Qa=0,e},r.prototype.next=function(){if(this.fb===null)return{done:!0};if(this.$a!==null&&(this.$a.Ya(),this.$a=null),!this.db.db)throw this.ob(),Error(`Database closed`);var e=Lt(),t=Q(4);N(a),N(t);try{this.db.handleError(h(this.db.db,this.lb,-1,a,t)),this.lb=M(t,`i32`);var r=M(a,`i32`);return r===0?(this.ob(),{done:!0}):(this.$a=new n(r,this.db),this.db.gb[r]=this.$a,{value:this.$a,done:!1})}catch(e){throw this.sb=F(this.lb),this.ob(),e}finally{It(e)}},r.prototype.ob=function(){Nt(this.fb),this.fb=null},r.prototype.Qb=function(){return this.sb===null?F(this.lb):this.sb},typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`&&(r.prototype[Symbol.iterator]=function(){return this}),i.prototype.run=function(e,t){if(!this.db)throw`Database closed`;if(t){e=this.tb(e,t);try{e.step()}finally{e.Ya()}}else this.handleError(u(this.db,e,0,0,a));return this},i.prototype.exec=function(e,t,r){if(!this.db)throw`Database closed`;var i=null,o=null,s=null;try{s=o=Et(e);var c=Q(4);for(e=[];M(s,`i8`)!==0;){N(a),N(c),this.handleError(h(this.db,s,-1,a,c));var l=M(a,`i32`);if(s=M(c,`i32`),l!==0){var u=null;for(i=new n(l,this),t!=null&&i.bind(t);i.step();)u===null&&(u={columns:i.qb(),values:[]},e.push(u)),u.values.push(i.get(null,r));i.Ya()}}return e}catch(e){throw i&&i.Ya(),e}finally{o&&Nt(o)}},i.prototype.Mb=function(e,t,n,r,i){typeof t==`function`&&(r=n,n=t,t=void 0),e=this.tb(e,t);try{for(;e.step();)n(e.zb(null,i))}finally{e.Ya()}if(typeof r==`function`)return r()},i.prototype.tb=function(e,t){if(N(a),this.handleError(f(this.db,e,-1,a,0)),e=M(a,`i32`),e===0)throw`Nothing to prepare`;var r=new n(e,this);return t!=null&&r.bind(t),this.gb[e]=r},i.prototype.Ub=function(e){return new r(e,this)},i.prototype.Nb=function(){Object.values(this.gb).forEach(function(e){e.Ya()}),Object.values(this.Sa).forEach(Z),this.Sa={},this.handleError(l(this.db));var e=ft(this.filename);return this.handleError(c(this.filename,a)),this.db=M(a,`i32`),he(this.db),e},i.prototype.close=function(){this.db!==null&&(Object.values(this.gb).forEach(function(e){e.Ya()}),Object.values(this.Sa).forEach(Z),this.Sa={},this.Za&&=(Z(this.Za),void 0),this.handleError(l(this.db)),nt(`/`+this.filename),this.db=null)},i.prototype.handleError=function(e){if(e===0)return null;throw e=ee(this.db),Error(e)},i.prototype.Rb=function(){return d(this.db)},i.prototype.Kb=function(n,r){Object.prototype.hasOwnProperty.call(this.Sa,n)&&(Z(this.Sa[n]),delete this.Sa[n]);var i=jt(function(n,i,a){i=t(i,a);try{var o=r.apply(null,i)}catch(e){P(n,e,-1);return}e(n,o)},`viii`);return this.Sa[n]=i,this.handleError(ae(this.db,n,r.length,1,0,i,0,0,0)),this},i.prototype.Jb=function(n,r){var i=r.init||function(){return null},a=r.finalize||function(e){return e},o=r.step;if(!o)throw`An aggregate function must have a step function in `+n;var s={};Object.hasOwnProperty.call(this.Sa,n)&&(Z(this.Sa[n]),delete this.Sa[n]),r=n+`__finalize`,Object.hasOwnProperty.call(this.Sa,r)&&(Z(this.Sa[r]),delete this.Sa[r]);var c=jt(function(e,n,r){var a=me(e,1);Object.hasOwnProperty.call(s,a)||(s[a]=i()),n=t(n,r),n=[s[a]].concat(n);try{s[a]=o.apply(null,n)}catch(t){delete s[a],P(e,t,-1)}},`viii`),l=jt(function(t){var n=me(t,1);try{var r=a(s[n])}catch(e){delete s[n],P(t,e,-1);return}e(t,r),delete s[n]},`vi`);return this.Sa[n]=c,this.Sa[r]=l,this.handleError(ae(this.db,n,o.length-1,1,0,0,c,l,0)),this},i.prototype.Zb=function(e){return this.Za&&=(_e(this.db,0,0),Z(this.Za),void 0),e?(this.Za=jt(function(t,n,r,i,a){switch(n){case 18:t=`insert`;break;case 23:t=`update`;break;case 9:t=`delete`;break;default:throw`unknown operationCode in updateHook callback: `+n}if(r=F(r),i=F(i),a>2**53-1)throw`rowId too big to fit inside a Number`;e(t,r,i,Number(a))},`viiiij`),_e(this.db,this.Za,0),this):this},n.prototype.bind=n.prototype.bind,n.prototype.step=n.prototype.step,n.prototype.get=n.prototype.get,n.prototype.getColumnNames=n.prototype.qb,n.prototype.getAsObject=n.prototype.zb,n.prototype.getSQL=n.prototype.Sb,n.prototype.getNormalizedSQL=n.prototype.Pb,n.prototype.run=n.prototype.run,n.prototype.reset=n.prototype.reset,n.prototype.freemem=n.prototype.freemem,n.prototype.free=n.prototype.Ya,r.prototype.next=r.prototype.next,r.prototype.getRemainingSQL=r.prototype.Qb,i.prototype.run=i.prototype.run,i.prototype.exec=i.prototype.exec,i.prototype.each=i.prototype.Mb,i.prototype.prepare=i.prototype.tb,i.prototype.iterateStatements=i.prototype.Ub,i.prototype.export=i.prototype.Nb,i.prototype.close=i.prototype.close,i.prototype.handleError=i.prototype.handleError,i.prototype.getRowsModified=i.prototype.Rb,i.prototype.create_function=i.prototype.Kb,i.prototype.create_aggregate=i.prototype.Jb,i.prototype.updateHook=i.prototype.Zb,s.Database=i};var d=`./this.program`,f=(e,t)=>{throw t},p=globalThis.document?.currentScript?.src;typeof __filename<`u`?p=__filename:l&&(p=self.location.href);var m=``,h,g;if(u){var _=e(`node:fs`);m=__dirname+`/`,g=e=>(e=S(e)?new URL(e):e,_.readFileSync(e)),h=async e=>(e=S(e)?new URL(e):e,_.readFileSync(e,void 0)),1<process.argv.length&&(d=process.argv[1].replace(/\\/g,`/`)),process.argv.slice(2),n!==void 0&&(n.exports=s),f=(e,t)=>{throw process.exitCode=e,t}}else if(c||l){try{m=new URL(`.`,p).href}catch{}l&&(g=e=>{var t=new XMLHttpRequest;return t.open(`GET`,e,!1),t.responseType=`arraybuffer`,t.send(null),new Uint8Array(t.response)}),h=async e=>{if(S(e))return new Promise((t,n)=>{var r=new XMLHttpRequest;r.open(`GET`,e,!0),r.responseType=`arraybuffer`,r.onload=()=>{r.status==200||r.status==0&&r.response?t(r.response):n(r.status)},r.onerror=n,r.send(null)});var t=await fetch(e,{credentials:`same-origin`});if(t.ok)return t.arrayBuffer();throw Error(t.status+` : `+t.url)}}var v=console.log.bind(console),y=console.error.bind(console),b,x=!1,ee,S=e=>e.startsWith(`file://`),C,w,T,E,D,te,ne,O;function re(){var e=Rt.buffer;C=new Int8Array(e),T=new Int16Array(e),w=new Uint8Array(e),new Uint16Array(e),E=new Int32Array(e),D=new Uint32Array(e),te=new Float32Array(e),ne=new Float64Array(e),O=new BigInt64Array(e),new BigUint64Array(e)}function k(e){throw s.onAbort?.(e),e=`Aborted(`+e+`)`,y(e),x=!0,new WebAssembly.RuntimeError(e+`. Build with -sASSERTIONS for more info.`)}var ie;async function ae(e){if(!b)try{var t=await h(e);return new Uint8Array(t)}catch{}if(e==ie&&b)e=new Uint8Array(b);else if(g)e=g(e);else throw`both async and sync fetching of the wasm failed`;return e}async function oe(e,t){try{var n=await ae(e);return await WebAssembly.instantiate(n,t)}catch(e){y(`failed to asynchronously prepare wasm: ${e}`),k(e)}}async function se(e){var t=ie;if(!b&&!S(t)&&!u)try{var n=fetch(t,{credentials:`same-origin`});return await WebAssembly.instantiateStreaming(n,e)}catch(e){y(`wasm streaming compile failed: ${e}`),y(`falling back to ArrayBuffer instantiation`)}return oe(t,e)}class ce{name=`ExitStatus`;constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var le=e=>{for(;0<e.length;)e.shift()(s)},ue=[],de=[],fe=()=>{var e=s.preRun.shift();de.push(e)},A=0,j=null;function M(e,t=`i8`){switch(t.endsWith(`*`)&&(t=`*`),t){case`i1`:return C[e];case`i8`:return C[e];case`i16`:return T[e>>1];case`i32`:return E[e>>2];case`i64`:return O[e>>3];case`float`:return te[e>>2];case`double`:return ne[e>>3];case`*`:return D[e>>2];default:k(`invalid type for getValue: ${t}`)}}var pe=!0;function N(e){var t=`i32`;switch(t.endsWith(`*`)&&(t=`*`),t){case`i1`:C[e]=0;break;case`i8`:C[e]=0;break;case`i16`:T[e>>1]=0;break;case`i32`:E[e>>2]=0;break;case`i64`:O[e>>3]=BigInt(0);break;case`float`:te[e>>2]=0;break;case`double`:ne[e>>3]=0;break;case`*`:D[e>>2]=0;break;default:k(`invalid type for setValue: ${t}`)}}var P=new TextDecoder,me=(e,t,n,r)=>{if(n=t+n,r)return n;for(;e[t]&&!(t>=n);)++t;return t},F=(e,t,n)=>e?P.decode(w.subarray(e,me(w,e,t,n))):``,he=(e,t)=>{for(var n=0,r=e.length-1;0<=r;r--){var i=e[r];i===`.`?e.splice(r,1):i===`..`?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n;n--)e.unshift(`..`);return e},ge=e=>{var t=e.charAt(0)===`/`,n=e.slice(-1)===`/`;return(e=he(e.split(`/`).filter(e=>!!e),!t).join(`/`))||t||(e=`.`),e&&n&&(e+=`/`),(t?`/`:``)+e},_e=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],!e&&!t?`.`:(t&&=t.slice(0,-1),e+t)},ve=e=>e&&e.match(/([^\/]+|\/)\/*$/)[1],ye=()=>{if(u){var t=e(`node:crypto`);return e=>t.randomFillSync(e)}return e=>crypto.getRandomValues(e)},be=e=>{(be=ye())(e)},xe=(...e)=>{for(var t=``,n=!1,r=e.length-1;-1<=r&&!n;r--){if(n=0<=r?e[r]:`/`,typeof n!=`string`)throw TypeError(`Arguments to path.resolve must be strings`);if(!n)return``;t=n+`/`+t,n=n.charAt(0)===`/`}return t=he(t.split(`/`).filter(e=>!!e),!n).join(`/`),(n?`/`:``)+t||`.`},Se=e=>{var t=me(e,0);return P.decode(e.buffer?e.subarray(0,t):new Uint8Array(e.slice(0,t)))},Ce=[],I=e=>{for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);127>=r?t++:2047>=r?t+=2:55296<=r&&57343>=r?(t+=4,++n):t+=3}return t},L=(e,t,n,r)=>{if(!(0<r))return 0;var i=n;r=n+r-1;for(var a=0;a<e.length;++a){var o=e.codePointAt(a);if(127>=o){if(n>=r)break;t[n++]=o}else if(2047>=o){if(n+1>=r)break;t[n++]=192|o>>6,t[n++]=128|o&63}else if(65535>=o){if(n+2>=r)break;t[n++]=224|o>>12,t[n++]=128|o>>6&63,t[n++]=128|o&63}else{if(n+3>=r)break;t[n++]=240|o>>18,t[n++]=128|o>>12&63,t[n++]=128|o>>6&63,t[n++]=128|o&63,a++}}return t[n]=0,n-i},we=[];function Te(e,t){we[e]={input:[],output:[],eb:t},Ye(e,Ee)}var Ee={open(e){var t=we[e.node.rdev];if(!t)throw new V(43);e.tty=t,e.seekable=!1},close(e){e.tty.eb.fsync(e.tty)},fsync(e){e.tty.eb.fsync(e.tty)},read(e,t,n,r){if(!e.tty||!e.tty.eb.Bb)throw new V(60);for(var i=0,a=0;a<r;a++){try{var o=e.tty.eb.Bb(e.tty)}catch{throw new V(29)}if(o===void 0&&i===0)throw new V(6);if(o==null)break;i++,t[n+a]=o}return i&&(e.node.atime=Date.now()),i},write(e,t,n,r){if(!e.tty||!e.tty.eb.ub)throw new V(60);try{for(var i=0;i<r;i++)e.tty.eb.ub(e.tty,t[n+i])}catch{throw new V(29)}return r&&(e.node.mtime=e.node.ctime=Date.now()),i}},De={Bb(){a:{if(!Ce.length){var e=null;if(u){var t=Buffer.alloc(256),n=0,r=process.stdin.fd;try{n=_.readSync(r,t,0,256)}catch(e){if(e.toString().includes(`EOF`))n=0;else throw e}0<n&&(e=t.slice(0,n).toString(`utf-8`))}else globalThis.window?.prompt&&(e=window.prompt(`Input: `),e!==null&&(e+=`
|
|
1
|
+
import{i as e,o as t,t as n}from"./chunk-DTipWd-i.mjs";import{t as r}from"./chunk-5QMZ5MUS-D8tv8KWc.mjs";import{n as i,t as a}from"./chunk-A5O5YHGN-C27iG4wY.mjs";import{n as o}from"./chunk-24IMIIXA-BQtWA2ag.mjs";import{n as s,t as c}from"./chunk-3THT3N7L-DcPtGCSm.mjs";import{r as l,t as u}from"./chunk-74CEPOFO-CukBzgc1.mjs";import{dirname as d,join as f,sep as p}from"node:path";import{fileURLToPath as m}from"node:url";import{existsSync as h}from"node:fs";import{randomBytes as g}from"node:crypto";import{Worker as _}from"node:worker_threads";var v=t(n(((t,n)=>{var r=void 0,i=function(t){return r||(r=new Promise(function(r,i){var a=t===void 0?{}:t,o=a.onAbort;a.onAbort=function(e){i(Error(e)),o&&o(e)},a.postRun=a.postRun||[],a.postRun.push(function(){r(a)}),n=void 0;var s;s||=a===void 0?{}:a;var c=!!globalThis.window,l=!!globalThis.WorkerGlobalScope,u=globalThis.process?.versions?.node&&globalThis.process?.type!=`renderer`;s.onRuntimeInitialized=function(){function e(e,t){switch(typeof t){case`boolean`:pe(e,+!!t);break;case`number`:de(e,t);break;case`string`:A(e,t,-1,-1);break;case`object`:if(t===null)fe(e);else if(t.length!=null){var n=Mt(t.length);C.set(t,n),j(e,n,t.length,-1),Nt(n)}else P(e,`Wrong API use : tried to return a value of an unknown type (`+t+`).`,-1);break;default:fe(e)}}function t(e,t){for(var n=[],r=0;r<e;r+=1){var i=M(t+4*r,`i32`),a=oe(i);if(a===1||a===2)i=ue(i);else if(a===3)i=ce(i);else if(a===4){a=i,i=se(a),a=le(a);for(var o=new Uint8Array(i),s=0;s<i;s+=1)o[s]=C[a+s];i=o}else i=null;n.push(i)}return n}function n(e,t){this.Qa=e,this.db=t,this.Oa=1,this.mb=[]}function r(e,t){if(this.db=t,this.fb=Et(e),this.fb===null)throw Error(`Unable to allocate memory for the SQL string`);this.lb=this.fb,this.$a=this.sb=null}function i(e){if(this.filename=`dbfile_`+(4294967295*Math.random()>>>0),e!=null){var t=this.filename,n=`/`,r=t;if(n&&(n=typeof n==`string`?n:Le(n),r=t?ge(n+`/`+t):n),t=ke(!0,!0),r=Qe(r,t),e){if(typeof e==`string`){n=Array(e.length);for(var i=0,o=e.length;i<o;++i)n[i]=e.charCodeAt(i);e=n}at(r,t|146),n=st(r,577),dt(n,e,0,e.length,0),ct(n),at(r,t)}}this.handleError(c(this.filename,a)),this.db=M(a,`i32`),he(this.db),this.gb={},this.Sa={}}var a=Q(4),o=s.cwrap,c=o(`sqlite3_open`,`number`,[`string`,`number`]),l=o(`sqlite3_close_v2`,`number`,[`number`]),u=o(`sqlite3_exec`,`number`,[`number`,`string`,`number`,`number`,`number`]),d=o(`sqlite3_changes`,`number`,[`number`]),f=o(`sqlite3_prepare_v2`,`number`,[`number`,`string`,`number`,`number`,`number`]),p=o(`sqlite3_sql`,`string`,[`number`]),m=o(`sqlite3_normalized_sql`,`string`,[`number`]),h=o(`sqlite3_prepare_v2`,`number`,[`number`,`number`,`number`,`number`,`number`]),g=o(`sqlite3_bind_text`,`number`,[`number`,`number`,`number`,`number`,`number`]),_=o(`sqlite3_bind_blob`,`number`,[`number`,`number`,`number`,`number`,`number`]),v=o(`sqlite3_bind_double`,`number`,[`number`,`number`,`number`]),y=o(`sqlite3_bind_int`,`number`,[`number`,`number`,`number`]),b=o(`sqlite3_bind_parameter_index`,`number`,[`number`,`string`]),x=o(`sqlite3_step`,`number`,[`number`]),ee=o(`sqlite3_errmsg`,`string`,[`number`]),S=o(`sqlite3_column_count`,`number`,[`number`]),w=o(`sqlite3_data_count`,`number`,[`number`]),T=o(`sqlite3_column_double`,`number`,[`number`,`number`]),E=o(`sqlite3_column_text`,`string`,[`number`,`number`]),D=o(`sqlite3_column_blob`,`number`,[`number`,`number`]),te=o(`sqlite3_column_bytes`,`number`,[`number`,`number`]),ne=o(`sqlite3_column_type`,`number`,[`number`,`number`]),O=o(`sqlite3_column_name`,`string`,[`number`,`number`]),re=o(`sqlite3_reset`,`number`,[`number`]),k=o(`sqlite3_clear_bindings`,`number`,[`number`]),ie=o(`sqlite3_finalize`,`number`,[`number`]),ae=o(`sqlite3_create_function_v2`,`number`,`number string number number number number number number number`.split(` `)),oe=o(`sqlite3_value_type`,`number`,[`number`]),se=o(`sqlite3_value_bytes`,`number`,[`number`]),ce=o(`sqlite3_value_text`,`string`,[`number`]),le=o(`sqlite3_value_blob`,`number`,[`number`]),ue=o(`sqlite3_value_double`,`number`,[`number`]),de=o(`sqlite3_result_double`,``,[`number`,`number`]),fe=o(`sqlite3_result_null`,``,[`number`]),A=o(`sqlite3_result_text`,``,[`number`,`string`,`number`,`number`]),j=o(`sqlite3_result_blob`,``,[`number`,`number`,`number`,`number`]),pe=o(`sqlite3_result_int`,``,[`number`,`number`]),P=o(`sqlite3_result_error`,``,[`number`,`string`,`number`]),me=o(`sqlite3_aggregate_context`,`number`,[`number`,`number`]),he=o(`RegisterExtensionFunctions`,`number`,[`number`]),_e=o(`sqlite3_update_hook`,`number`,[`number`,`number`,`number`]);n.prototype.bind=function(e){if(!this.Qa)throw`Statement closed`;return this.reset(),Array.isArray(e)?this.Gb(e):typeof e==`object`&&e?this.Hb(e):!0},n.prototype.step=function(){if(!this.Qa)throw`Statement closed`;this.Oa=1;var e=x(this.Qa);switch(e){case 100:return!0;case 101:return!1;default:throw this.db.handleError(e)}},n.prototype.Ab=function(e){return e??(e=this.Oa,this.Oa+=1),T(this.Qa,e)},n.prototype.Ob=function(e){if(e??(e=this.Oa,this.Oa+=1),e=E(this.Qa,e),typeof BigInt!=`function`)throw Error(`BigInt is not supported`);return BigInt(e)},n.prototype.Tb=function(e){return e??(e=this.Oa,this.Oa+=1),E(this.Qa,e)},n.prototype.getBlob=function(e){e??(e=this.Oa,this.Oa+=1);var t=te(this.Qa,e);e=D(this.Qa,e);for(var n=new Uint8Array(t),r=0;r<t;r+=1)n[r]=C[e+r];return n},n.prototype.get=function(e,t){t||={},e!=null&&this.bind(e)&&this.step(),e=[];for(var n=w(this.Qa),r=0;r<n;r+=1)switch(ne(this.Qa,r)){case 1:var i=t.useBigInt?this.Ob(r):this.Ab(r);e.push(i);break;case 2:e.push(this.Ab(r));break;case 3:e.push(this.Tb(r));break;case 4:e.push(this.getBlob(r));break;default:e.push(null)}return e},n.prototype.qb=function(){for(var e=[],t=S(this.Qa),n=0;n<t;n+=1)e.push(O(this.Qa,n));return e},n.prototype.zb=function(e,t){e=this.get(e,t),t=this.qb();for(var n={},r=0;r<t.length;r+=1)n[t[r]]=e[r];return n},n.prototype.Sb=function(){return p(this.Qa)},n.prototype.Pb=function(){return m(this.Qa)},n.prototype.run=function(e){return e!=null&&this.bind(e),this.step(),this.reset()},n.prototype.wb=function(e,t){t??(t=this.Oa,this.Oa+=1),e=Et(e),this.mb.push(e),this.db.handleError(g(this.Qa,t,e,-1,0))},n.prototype.Fb=function(e,t){t??(t=this.Oa,this.Oa+=1);var n=Mt(e.length);C.set(e,n),this.mb.push(n),this.db.handleError(_(this.Qa,t,n,e.length,0))},n.prototype.vb=function(e,t){t??(t=this.Oa,this.Oa+=1),this.db.handleError((e===(e|0)?y:v)(this.Qa,t,e))},n.prototype.Ib=function(e){e??(e=this.Oa,this.Oa+=1),_(this.Qa,e,0,0,0)},n.prototype.xb=function(e,t){switch(t??(t=this.Oa,this.Oa+=1),typeof e){case`string`:this.wb(e,t);return;case`number`:this.vb(e,t);return;case`bigint`:this.wb(e.toString(),t);return;case`boolean`:this.vb(e+0,t);return;case`object`:if(e===null){this.Ib(t);return}if(e.length!=null){this.Fb(e,t);return}}throw`Wrong API use : tried to bind a value of an unknown type (`+e+`).`},n.prototype.Hb=function(e){var t=this;return Object.keys(e).forEach(function(n){var r=b(t.Qa,n);r!==0&&t.xb(e[n],r)}),!0},n.prototype.Gb=function(e){for(var t=0;t<e.length;t+=1)this.xb(e[t],t+1);return!0},n.prototype.reset=function(){return this.freemem(),k(this.Qa)===0&&re(this.Qa)===0},n.prototype.freemem=function(){for(var e;(e=this.mb.pop())!==void 0;)Nt(e)},n.prototype.Ya=function(){this.freemem();var e=ie(this.Qa)===0;return delete this.db.gb[this.Qa],this.Qa=0,e},r.prototype.next=function(){if(this.fb===null)return{done:!0};if(this.$a!==null&&(this.$a.Ya(),this.$a=null),!this.db.db)throw this.ob(),Error(`Database closed`);var e=Lt(),t=Q(4);N(a),N(t);try{this.db.handleError(h(this.db.db,this.lb,-1,a,t)),this.lb=M(t,`i32`);var r=M(a,`i32`);return r===0?(this.ob(),{done:!0}):(this.$a=new n(r,this.db),this.db.gb[r]=this.$a,{value:this.$a,done:!1})}catch(e){throw this.sb=F(this.lb),this.ob(),e}finally{It(e)}},r.prototype.ob=function(){Nt(this.fb),this.fb=null},r.prototype.Qb=function(){return this.sb===null?F(this.lb):this.sb},typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`&&(r.prototype[Symbol.iterator]=function(){return this}),i.prototype.run=function(e,t){if(!this.db)throw`Database closed`;if(t){e=this.tb(e,t);try{e.step()}finally{e.Ya()}}else this.handleError(u(this.db,e,0,0,a));return this},i.prototype.exec=function(e,t,r){if(!this.db)throw`Database closed`;var i=null,o=null,s=null;try{s=o=Et(e);var c=Q(4);for(e=[];M(s,`i8`)!==0;){N(a),N(c),this.handleError(h(this.db,s,-1,a,c));var l=M(a,`i32`);if(s=M(c,`i32`),l!==0){var u=null;for(i=new n(l,this),t!=null&&i.bind(t);i.step();)u===null&&(u={columns:i.qb(),values:[]},e.push(u)),u.values.push(i.get(null,r));i.Ya()}}return e}catch(e){throw i&&i.Ya(),e}finally{o&&Nt(o)}},i.prototype.Mb=function(e,t,n,r,i){typeof t==`function`&&(r=n,n=t,t=void 0),e=this.tb(e,t);try{for(;e.step();)n(e.zb(null,i))}finally{e.Ya()}if(typeof r==`function`)return r()},i.prototype.tb=function(e,t){if(N(a),this.handleError(f(this.db,e,-1,a,0)),e=M(a,`i32`),e===0)throw`Nothing to prepare`;var r=new n(e,this);return t!=null&&r.bind(t),this.gb[e]=r},i.prototype.Ub=function(e){return new r(e,this)},i.prototype.Nb=function(){Object.values(this.gb).forEach(function(e){e.Ya()}),Object.values(this.Sa).forEach(Z),this.Sa={},this.handleError(l(this.db));var e=ft(this.filename);return this.handleError(c(this.filename,a)),this.db=M(a,`i32`),he(this.db),e},i.prototype.close=function(){this.db!==null&&(Object.values(this.gb).forEach(function(e){e.Ya()}),Object.values(this.Sa).forEach(Z),this.Sa={},this.Za&&=(Z(this.Za),void 0),this.handleError(l(this.db)),nt(`/`+this.filename),this.db=null)},i.prototype.handleError=function(e){if(e===0)return null;throw e=ee(this.db),Error(e)},i.prototype.Rb=function(){return d(this.db)},i.prototype.Kb=function(n,r){Object.prototype.hasOwnProperty.call(this.Sa,n)&&(Z(this.Sa[n]),delete this.Sa[n]);var i=jt(function(n,i,a){i=t(i,a);try{var o=r.apply(null,i)}catch(e){P(n,e,-1);return}e(n,o)},`viii`);return this.Sa[n]=i,this.handleError(ae(this.db,n,r.length,1,0,i,0,0,0)),this},i.prototype.Jb=function(n,r){var i=r.init||function(){return null},a=r.finalize||function(e){return e},o=r.step;if(!o)throw`An aggregate function must have a step function in `+n;var s={};Object.hasOwnProperty.call(this.Sa,n)&&(Z(this.Sa[n]),delete this.Sa[n]),r=n+`__finalize`,Object.hasOwnProperty.call(this.Sa,r)&&(Z(this.Sa[r]),delete this.Sa[r]);var c=jt(function(e,n,r){var a=me(e,1);Object.hasOwnProperty.call(s,a)||(s[a]=i()),n=t(n,r),n=[s[a]].concat(n);try{s[a]=o.apply(null,n)}catch(t){delete s[a],P(e,t,-1)}},`viii`),l=jt(function(t){var n=me(t,1);try{var r=a(s[n])}catch(e){delete s[n],P(t,e,-1);return}e(t,r),delete s[n]},`vi`);return this.Sa[n]=c,this.Sa[r]=l,this.handleError(ae(this.db,n,o.length-1,1,0,0,c,l,0)),this},i.prototype.Zb=function(e){return this.Za&&=(_e(this.db,0,0),Z(this.Za),void 0),e?(this.Za=jt(function(t,n,r,i,a){switch(n){case 18:t=`insert`;break;case 23:t=`update`;break;case 9:t=`delete`;break;default:throw`unknown operationCode in updateHook callback: `+n}if(r=F(r),i=F(i),a>2**53-1)throw`rowId too big to fit inside a Number`;e(t,r,i,Number(a))},`viiiij`),_e(this.db,this.Za,0),this):this},n.prototype.bind=n.prototype.bind,n.prototype.step=n.prototype.step,n.prototype.get=n.prototype.get,n.prototype.getColumnNames=n.prototype.qb,n.prototype.getAsObject=n.prototype.zb,n.prototype.getSQL=n.prototype.Sb,n.prototype.getNormalizedSQL=n.prototype.Pb,n.prototype.run=n.prototype.run,n.prototype.reset=n.prototype.reset,n.prototype.freemem=n.prototype.freemem,n.prototype.free=n.prototype.Ya,r.prototype.next=r.prototype.next,r.prototype.getRemainingSQL=r.prototype.Qb,i.prototype.run=i.prototype.run,i.prototype.exec=i.prototype.exec,i.prototype.each=i.prototype.Mb,i.prototype.prepare=i.prototype.tb,i.prototype.iterateStatements=i.prototype.Ub,i.prototype.export=i.prototype.Nb,i.prototype.close=i.prototype.close,i.prototype.handleError=i.prototype.handleError,i.prototype.getRowsModified=i.prototype.Rb,i.prototype.create_function=i.prototype.Kb,i.prototype.create_aggregate=i.prototype.Jb,i.prototype.updateHook=i.prototype.Zb,s.Database=i};var d=`./this.program`,f=(e,t)=>{throw t},p=globalThis.document?.currentScript?.src;typeof __filename<`u`?p=__filename:l&&(p=self.location.href);var m=``,h,g;if(u){var _=e(`node:fs`);m=__dirname+`/`,g=e=>(e=S(e)?new URL(e):e,_.readFileSync(e)),h=async e=>(e=S(e)?new URL(e):e,_.readFileSync(e,void 0)),1<process.argv.length&&(d=process.argv[1].replace(/\\/g,`/`)),process.argv.slice(2),n!==void 0&&(n.exports=s),f=(e,t)=>{throw process.exitCode=e,t}}else if(c||l){try{m=new URL(`.`,p).href}catch{}l&&(g=e=>{var t=new XMLHttpRequest;return t.open(`GET`,e,!1),t.responseType=`arraybuffer`,t.send(null),new Uint8Array(t.response)}),h=async e=>{if(S(e))return new Promise((t,n)=>{var r=new XMLHttpRequest;r.open(`GET`,e,!0),r.responseType=`arraybuffer`,r.onload=()=>{r.status==200||r.status==0&&r.response?t(r.response):n(r.status)},r.onerror=n,r.send(null)});var t=await fetch(e,{credentials:`same-origin`});if(t.ok)return t.arrayBuffer();throw Error(t.status+` : `+t.url)}}var v=console.log.bind(console),y=console.error.bind(console),b,x=!1,ee,S=e=>e.startsWith(`file://`),C,w,T,E,D,te,ne,O;function re(){var e=Rt.buffer;C=new Int8Array(e),T=new Int16Array(e),w=new Uint8Array(e),new Uint16Array(e),E=new Int32Array(e),D=new Uint32Array(e),te=new Float32Array(e),ne=new Float64Array(e),O=new BigInt64Array(e),new BigUint64Array(e)}function k(e){throw s.onAbort?.(e),e=`Aborted(`+e+`)`,y(e),x=!0,new WebAssembly.RuntimeError(e+`. Build with -sASSERTIONS for more info.`)}var ie;async function ae(e){if(!b)try{var t=await h(e);return new Uint8Array(t)}catch{}if(e==ie&&b)e=new Uint8Array(b);else if(g)e=g(e);else throw`both async and sync fetching of the wasm failed`;return e}async function oe(e,t){try{var n=await ae(e);return await WebAssembly.instantiate(n,t)}catch(e){y(`failed to asynchronously prepare wasm: ${e}`),k(e)}}async function se(e){var t=ie;if(!b&&!S(t)&&!u)try{var n=fetch(t,{credentials:`same-origin`});return await WebAssembly.instantiateStreaming(n,e)}catch(e){y(`wasm streaming compile failed: ${e}`),y(`falling back to ArrayBuffer instantiation`)}return oe(t,e)}class ce{name=`ExitStatus`;constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var le=e=>{for(;0<e.length;)e.shift()(s)},ue=[],de=[],fe=()=>{var e=s.preRun.shift();de.push(e)},A=0,j=null;function M(e,t=`i8`){switch(t.endsWith(`*`)&&(t=`*`),t){case`i1`:return C[e];case`i8`:return C[e];case`i16`:return T[e>>1];case`i32`:return E[e>>2];case`i64`:return O[e>>3];case`float`:return te[e>>2];case`double`:return ne[e>>3];case`*`:return D[e>>2];default:k(`invalid type for getValue: ${t}`)}}var pe=!0;function N(e){var t=`i32`;switch(t.endsWith(`*`)&&(t=`*`),t){case`i1`:C[e]=0;break;case`i8`:C[e]=0;break;case`i16`:T[e>>1]=0;break;case`i32`:E[e>>2]=0;break;case`i64`:O[e>>3]=BigInt(0);break;case`float`:te[e>>2]=0;break;case`double`:ne[e>>3]=0;break;case`*`:D[e>>2]=0;break;default:k(`invalid type for setValue: ${t}`)}}var P=new TextDecoder,me=(e,t,n,r)=>{if(n=t+n,r)return n;for(;e[t]&&!(t>=n);)++t;return t},F=(e,t,n)=>e?P.decode(w.subarray(e,me(w,e,t,n))):``,he=(e,t)=>{for(var n=0,r=e.length-1;0<=r;r--){var i=e[r];i===`.`?e.splice(r,1):i===`..`?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n;n--)e.unshift(`..`);return e},ge=e=>{var t=e.charAt(0)===`/`,n=e.slice(-1)===`/`;return(e=he(e.split(`/`).filter(e=>!!e),!t).join(`/`))||t||(e=`.`),e&&n&&(e+=`/`),(t?`/`:``)+e},_e=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],!e&&!t?`.`:(t&&=t.slice(0,-1),e+t)},ve=e=>e&&e.match(/([^\/]+|\/)\/*$/)[1],ye=()=>{if(u){var t=e(`node:crypto`);return e=>t.randomFillSync(e)}return e=>crypto.getRandomValues(e)},be=e=>{(be=ye())(e)},xe=(...e)=>{for(var t=``,n=!1,r=e.length-1;-1<=r&&!n;r--){if(n=0<=r?e[r]:`/`,typeof n!=`string`)throw TypeError(`Arguments to path.resolve must be strings`);if(!n)return``;t=n+`/`+t,n=n.charAt(0)===`/`}return t=he(t.split(`/`).filter(e=>!!e),!n).join(`/`),(n?`/`:``)+t||`.`},Se=e=>{var t=me(e,0);return P.decode(e.buffer?e.subarray(0,t):new Uint8Array(e.slice(0,t)))},Ce=[],I=e=>{for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);127>=r?t++:2047>=r?t+=2:55296<=r&&57343>=r?(t+=4,++n):t+=3}return t},L=(e,t,n,r)=>{if(!(0<r))return 0;var i=n;r=n+r-1;for(var a=0;a<e.length;++a){var o=e.codePointAt(a);if(127>=o){if(n>=r)break;t[n++]=o}else if(2047>=o){if(n+1>=r)break;t[n++]=192|o>>6,t[n++]=128|o&63}else if(65535>=o){if(n+2>=r)break;t[n++]=224|o>>12,t[n++]=128|o>>6&63,t[n++]=128|o&63}else{if(n+3>=r)break;t[n++]=240|o>>18,t[n++]=128|o>>12&63,t[n++]=128|o>>6&63,t[n++]=128|o&63,a++}}return t[n]=0,n-i},we=[];function Te(e,t){we[e]={input:[],output:[],eb:t},Ye(e,Ee)}var Ee={open(e){var t=we[e.node.rdev];if(!t)throw new V(43);e.tty=t,e.seekable=!1},close(e){e.tty.eb.fsync(e.tty)},fsync(e){e.tty.eb.fsync(e.tty)},read(e,t,n,r){if(!e.tty||!e.tty.eb.Bb)throw new V(60);for(var i=0,a=0;a<r;a++){try{var o=e.tty.eb.Bb(e.tty)}catch{throw new V(29)}if(o===void 0&&i===0)throw new V(6);if(o==null)break;i++,t[n+a]=o}return i&&(e.node.atime=Date.now()),i},write(e,t,n,r){if(!e.tty||!e.tty.eb.ub)throw new V(60);try{for(var i=0;i<r;i++)e.tty.eb.ub(e.tty,t[n+i])}catch{throw new V(29)}return r&&(e.node.mtime=e.node.ctime=Date.now()),i}},De={Bb(){a:{if(!Ce.length){var e=null;if(u){var t=Buffer.alloc(256),n=0,r=process.stdin.fd;try{n=_.readSync(r,t,0,256)}catch(e){if(e.toString().includes(`EOF`))n=0;else throw e}0<n&&(e=t.slice(0,n).toString(`utf-8`))}else globalThis.window?.prompt&&(e=window.prompt(`Input: `),e!==null&&(e+=`
|
|
2
2
|
`));if(!e){e=null;break a}t=Array(I(e)+1),e=L(e,t,0,t.length),t.length=e,Ce=t}e=Ce.shift()}return e},ub(e,t){t===null||t===10?(v(Se(e.output)),e.output=[]):t!=0&&e.output.push(t)},fsync(e){0<e.output?.length&&(v(Se(e.output)),e.output=[])},hc(){return{bc:25856,dc:5,ac:191,cc:35387,$b:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ic(){return 0},jc(){return[24,80]}},Oe={ub(e,t){t===null||t===10?(y(Se(e.output)),e.output=[]):t!=0&&e.output.push(t)},fsync(e){0<e.output?.length&&(y(Se(e.output)),e.output=[])}},R={Wa:null,Xa(){return R.createNode(null,`/`,16895,0)},createNode(e,t,n,r){if((n&61440)==24576||(n&61440)==4096)throw new V(63);return R.Wa||={dir:{node:{Ta:R.La.Ta,Ua:R.La.Ua,lookup:R.La.lookup,ib:R.La.ib,rename:R.La.rename,unlink:R.La.unlink,rmdir:R.La.rmdir,readdir:R.La.readdir,symlink:R.La.symlink},stream:{Va:R.Ma.Va}},file:{node:{Ta:R.La.Ta,Ua:R.La.Ua},stream:{Va:R.Ma.Va,read:R.Ma.read,write:R.Ma.write,jb:R.Ma.jb,kb:R.Ma.kb}},link:{node:{Ta:R.La.Ta,Ua:R.La.Ua,readlink:R.La.readlink},stream:{}},yb:{node:{Ta:R.La.Ta,Ua:R.La.Ua},stream:Je}},n=Be(e,t,n,r),W(n.mode)?(n.La=R.Wa.dir.node,n.Ma=R.Wa.dir.stream,n.Na={}):(n.mode&61440)==32768?(n.La=R.Wa.file.node,n.Ma=R.Wa.file.stream,n.Ra=0,n.Na=null):(n.mode&61440)==40960?(n.La=R.Wa.link.node,n.Ma=R.Wa.link.stream):(n.mode&61440)==8192&&(n.La=R.Wa.yb.node,n.Ma=R.Wa.yb.stream),n.atime=n.mtime=n.ctime=Date.now(),e&&(e.Na[t]=n,e.atime=e.mtime=e.ctime=n.atime),n},fc(e){return e.Na?e.Na.subarray?e.Na.subarray(0,e.Ra):new Uint8Array(e.Na):new Uint8Array},La:{Ta(e){var t={};return t.dev=(e.mode&61440)==8192?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,W(e.mode)?t.size=4096:(e.mode&61440)==32768?t.size=e.Ra:(e.mode&61440)==40960?t.size=e.link.length:t.size=0,t.atime=new Date(e.atime),t.mtime=new Date(e.mtime),t.ctime=new Date(e.ctime),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},Ua(e,t){for(var n of[`mode`,`atime`,`mtime`,`ctime`])t[n]!=null&&(e[n]=t[n]);t.size!==void 0&&(t=t.size,e.Ra!=t&&(t==0?(e.Na=null,e.Ra=0):(n=e.Na,e.Na=new Uint8Array(t),n&&e.Na.set(n.subarray(0,Math.min(t,e.Ra))),e.Ra=t)))},lookup(){throw R.nb||(R.nb=new V(44),R.nb.stack=`<generic error, no stack>`),R.nb},ib(e,t,n,r){return R.createNode(e,t,n,r)},rename(e,t,n){try{var r=U(t,n)}catch{}if(r){if(W(e.mode))for(var i in r.Na)throw new V(55);ze(r)}delete e.parent.Na[e.name],t.Na[n]=e,e.name=n,t.ctime=t.mtime=e.parent.ctime=e.parent.mtime=Date.now()},unlink(e,t){delete e.Na[t],e.ctime=e.mtime=Date.now()},rmdir(e,t){var n=U(e,t),r;for(r in n.Na)throw new V(55);delete e.Na[t],e.ctime=e.mtime=Date.now()},readdir(e){return[`.`,`..`,...Object.keys(e.Na)]},symlink(e,t,n){return e=R.createNode(e,t,41471,0),e.link=n,e},readlink(e){if((e.mode&61440)!=40960)throw new V(28);return e.link}},Ma:{read(e,t,n,r,i){var a=e.node.Na;if(i>=e.node.Ra)return 0;if(e=Math.min(e.node.Ra-i,r),8<e&&a.subarray)t.set(a.subarray(i,i+e),n);else for(r=0;r<e;r++)t[n+r]=a[i+r];return e},write(e,t,n,r,i,a){if(t.buffer===C.buffer&&(a=!1),!r)return 0;if(e=e.node,e.mtime=e.ctime=Date.now(),t.subarray&&(!e.Na||e.Na.subarray)){if(a)return e.Na=t.subarray(n,n+r),e.Ra=r;if(e.Ra===0&&i===0)return e.Na=t.slice(n,n+r),e.Ra=r;if(i+r<=e.Ra)return e.Na.set(t.subarray(n,n+r),i),r}a=i+r;var o=e.Na?e.Na.length:0;if(o>=a||(a=Math.max(a,o*(1048576>o?2:1.125)>>>0),o!=0&&(a=Math.max(a,256)),o=e.Na,e.Na=new Uint8Array(a),0<e.Ra&&e.Na.set(o.subarray(0,e.Ra),0)),e.Na.subarray&&t.subarray)e.Na.set(t.subarray(n,n+r),i);else for(a=0;a<r;a++)e.Na[i+a]=t[n+a];return e.Ra=Math.max(e.Ra,i+r),r},Va(e,t,n){if(n===1?t+=e.position:n===2&&(e.node.mode&61440)==32768&&(t+=e.node.Ra),0>t)throw new V(28);return t},jb(e,t,n,r,i){if((e.node.mode&61440)!=32768)throw new V(43);if(e=e.node.Na,i&2||!e||e.buffer!==C.buffer){i=!0,r=65536*Math.ceil(t/65536);var a=Pt(65536,r);if(a&&w.fill(0,a,a+r),r=a,!r)throw new V(48);e&&((0<n||n+t<e.length)&&(e=e.subarray?e.subarray(n,n+t):Array.prototype.slice.call(e,n,n+t)),C.set(e,r))}else i=!1,r=e.byteOffset;return{Xb:r,Eb:i}},kb(e,t,n,r){return R.Ma.write(e,t,0,r,n,!1),0}}},ke=(e,t)=>{var n=0;return e&&(n|=365),t&&(n|=146),n},Ae=null,je={},z=[],Me=1,B=null,Ne=!1,Pe=!0,V=class{name=`ErrnoError`;constructor(e){this.Pa=e}},Fe=class{hb={};node=null;get flags(){return this.hb.flags}set flags(e){this.hb.flags=e}get position(){return this.hb.position}set position(e){this.hb.position=e}},Ie=class{La={};Ma={};bb=null;constructor(e,t,n,r){e||=this,this.parent=e,this.Xa=e.Xa,this.id=Me++,this.name=t,this.mode=n,this.rdev=r,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&365)==365}set read(e){e?this.mode|=365:this.mode&=-366}get write(){return(this.mode&146)==146}set write(e){e?this.mode|=146:this.mode&=-147}};function H(e,t={}){if(!e)throw new V(44);t.pb??=!0,e.charAt(0)===`/`||(e=`//`+e);var n=0;a:for(;40>n;n++){e=e.split(`/`).filter(e=>!!e);for(var r=Ae,i=`/`,a=0;a<e.length;a++){var o=a===e.length-1;if(o&&t.parent)break;if(e[a]!==`.`)if(e[a]===`..`)if(i=_e(i),r===r.parent){e=i+`/`+e.slice(a+1).join(`/`),n--;continue a}else r=r.parent;else{i=ge(i+`/`+e[a]);try{r=U(r,e[a])}catch(e){if(e?.Pa===44&&o&&t.Wb)return{path:i};throw e}if(!r.bb||o&&!t.pb||(r=r.bb.root),(r.mode&61440)==40960&&(!o||t.ab)){if(!r.La.readlink)throw new V(52);r=r.La.readlink(r),r.charAt(0)===`/`||(r=_e(i)+`/`+r),e=r+`/`+e.slice(a+1).join(`/`);continue a}}}return{path:i,node:r}}throw new V(32)}function Le(e){for(var t;;){if(e===e.parent)return e=e.Xa.Db,t?e[e.length-1]===`/`?e+t:`${e}/${t}`:e;t=t?`${e.name}/${t}`:e.name,e=e.parent}}function Re(e,t){for(var n=0,r=0;r<t.length;r++)n=(n<<5)-n+t.charCodeAt(r)|0;return(e+n>>>0)%B.length}function ze(e){var t=Re(e.parent.id,e.name);if(B[t]===e)B[t]=e.cb;else for(t=B[t];t;){if(t.cb===e){t.cb=e.cb;break}t=t.cb}}function U(e,t){var n=W(e.mode)?(n=Ve(e,`x`))?n:e.La.lookup?0:2:54;if(n)throw new V(n);for(n=B[Re(e.id,t)];n;n=n.cb){var r=n.name;if(n.parent.id===e.id&&r===t)return n}return e.La.lookup(e,t)}function Be(e,t,n,r){return e=new Ie(e,t,n,r),t=Re(e.parent.id,e.name),e.cb=B[t],B[t]=e}function W(e){return(e&61440)==16384}function Ve(e,t){return Pe?0:t.includes(`r`)&&!(e.mode&292)||t.includes(`w`)&&!(e.mode&146)||t.includes(`x`)&&!(e.mode&73)?2:0}function He(e,t){if(!W(e.mode))return 54;try{return U(e,t),20}catch{}return Ve(e,`wx`)}function Ue(e,t,n){try{var r=U(e,t)}catch(e){return e.Pa}if(e=Ve(e,`wx`))return e;if(n){if(!W(r.mode))return 54;if(r===r.parent||Le(r)===`/`)return 10}else if(W(r.mode))return 31;return 0}function We(e){if(!e)throw new V(63);return e}function G(e){if(e=z[e],!e)throw new V(8);return e}function Ge(e,t=-1){if(e=Object.assign(new Fe,e),t==-1)a:{for(t=0;4096>=t;t++)if(!z[t])break a;throw new V(33)}return e.fd=t,z[t]=e}function Ke(e,t=-1){return e=Ge(e,t),e.Ma?.ec?.(e),e}function qe(e,t,n){var r=e?.Ma.Ua;e=r?e:t,r??=t.La.Ua,We(r),r(e,n)}var Je={open(e){e.Ma=je[e.node.rdev].Ma,e.Ma.open?.(e)},Va(){throw new V(70)}};function Ye(e,t){je[e]={Ma:t}}function Xe(e,t){var n=t===`/`;if(n&&Ae)throw new V(10);if(!n&&t){var r=H(t,{pb:!1});if(t=r.path,r=r.node,r.bb)throw new V(10);if(!W(r.mode))throw new V(54)}t={type:e,kc:{},Db:t,Vb:[]},e=e.Xa(t),e.Xa=t,t.root=e,n?Ae=e:r&&(r.bb=t,r.Xa&&r.Xa.Vb.push(t))}function Ze(e,t,n){var r=H(e,{parent:!0}).node;if(e=ve(e),!e)throw new V(28);if(e===`.`||e===`..`)throw new V(20);var i=He(r,e);if(i)throw new V(i);if(!r.La.ib)throw new V(63);return r.La.ib(r,e,t,n)}function Qe(e,t=438){return Ze(e,t&4095|32768,0)}function K(e,t=511){return Ze(e,t&1023|16384,0)}function $e(e,t,n){n===void 0&&(n=t,t=438),Ze(e,t|8192,n)}function et(e,t){if(!xe(e))throw new V(44);var n=H(t,{parent:!0}).node;if(!n)throw new V(44);t=ve(t);var r=He(n,t);if(r)throw new V(r);if(!n.La.symlink)throw new V(63);n.La.symlink(n,t,e)}function tt(e){var t=H(e,{parent:!0}).node;e=ve(e);var n=U(t,e),r=Ue(t,e,!0);if(r)throw new V(r);if(!t.La.rmdir)throw new V(63);if(n.bb)throw new V(10);t.La.rmdir(t,e),ze(n)}function nt(e){var t=H(e,{parent:!0}).node;if(!t)throw new V(44);e=ve(e);var n=U(t,e),r=Ue(t,e,!1);if(r)throw new V(r);if(!t.La.unlink)throw new V(63);if(n.bb)throw new V(10);t.La.unlink(t,e),ze(n)}function rt(e,t){return e=H(e,{ab:!t}).node,We(e.La.Ta)(e)}function it(e,t,n,r){qe(e,t,{mode:n&4095|t.mode&-4096,ctime:Date.now(),Lb:r})}function at(e,t){e=typeof e==`string`?H(e,{ab:!0}).node:e,it(null,e,t)}function ot(e,t,n){if(W(t.mode))throw new V(31);if((t.mode&61440)!=32768)throw new V(28);var r=Ve(t,`w`);if(r)throw new V(r);qe(e,t,{size:n,timestamp:Date.now()})}function st(e,t,n=438){if(e===``)throw new V(44);if(typeof t==`string`){var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(r===void 0)throw Error(`Unknown file open mode: ${t}`);t=r}if(n=t&64?n&4095|32768:0,typeof e==`object`)r=e;else{var i=e.endsWith(`/`),a=H(e,{ab:!(t&131072),Wb:!0});r=a.node,e=a.path}if(a=!1,t&64)if(r){if(t&128)throw new V(20)}else{if(i)throw new V(31);r=Ze(e,n|511,0),a=!0}if(!r)throw new V(44);if((r.mode&61440)==8192&&(t&=-513),t&65536&&!W(r.mode))throw new V(54);if(!a&&(r?(r.mode&61440)==40960?i=32:(i=[`r`,`w`,`rw`][t&3],t&512&&(i+=`w`),i=W(r.mode)&&(i!==`r`||t&576)?31:Ve(r,i)):i=44,i))throw new V(i);return t&512&&!a&&(i=r,i=typeof i==`string`?H(i,{ab:!0}).node:i,ot(null,i,0)),t=Ge({node:r,path:Le(r),flags:t&-131713,seekable:!0,position:0,Ma:r.Ma,Yb:[],error:!1}),t.Ma.open&&t.Ma.open(t),a&&at(r,n&511),t}function ct(e){if(e.fd===null)throw new V(8);e.rb&&=null;try{e.Ma.close&&e.Ma.close(e)}catch(e){throw e}finally{z[e.fd]=null}e.fd=null}function lt(e,t,n){if(e.fd===null)throw new V(8);if(!e.seekable||!e.Ma.Va)throw new V(70);if(n!=0&&n!=1&&n!=2)throw new V(28);e.position=e.Ma.Va(e,t,n),e.Yb=[]}function ut(e,t,n,r,i){if(0>r||0>i)throw new V(28);if(e.fd===null||(e.flags&2097155)==1)throw new V(8);if(W(e.node.mode))throw new V(31);if(!e.Ma.read)throw new V(28);var a=i!==void 0;if(!a)i=e.position;else if(!e.seekable)throw new V(70);return t=e.Ma.read(e,t,n,r,i),a||(e.position+=t),t}function dt(e,t,n,r,i){if(0>r||0>i)throw new V(28);if(e.fd===null||!(e.flags&2097155))throw new V(8);if(W(e.node.mode))throw new V(31);if(!e.Ma.write)throw new V(28);e.seekable&&e.flags&1024&<(e,0,2);var a=i!==void 0;if(!a)i=e.position;else if(!e.seekable)throw new V(70);return t=e.Ma.write(e,t,n,r,i,void 0),a||(e.position+=t),t}function ft(e){var t=t||0,n=`binary`;n!==`utf8`&&n!==`binary`&&k(`Invalid encoding type "${n}"`),t=st(e,t),e=rt(e).size;var r=new Uint8Array(e);return ut(t,r,0,e,0),n===`utf8`&&(r=Se(r)),ct(t),r}function q(e,t,n){e=ge(`/dev/`+e);var r=ke(!!t,!!n);q.Cb??=64;var i=q.Cb++<<8|0;Ye(i,{open(e){e.seekable=!1},close(){n?.buffer?.length&&n(10)},read(e,n,r,i){for(var a=0,o=0;o<i;o++){try{var s=t()}catch{throw new V(29)}if(s===void 0&&a===0)throw new V(6);if(s==null)break;a++,n[r+o]=s}return a&&(e.node.atime=Date.now()),a},write(e,t,r,i){for(var a=0;a<i;a++)try{n(t[r+a])}catch{throw new V(29)}return i&&(e.node.mtime=e.node.ctime=Date.now()),a}}),$e(e,r,i)}var J={};function Y(e,t,n){if(t.charAt(0)===`/`)return t;if(e=e===-100?`/`:G(e).path,t.length==0){if(!n)throw new V(44);return e}return e+`/`+t}function pt(e,t){D[e>>2]=t.dev,D[e+4>>2]=t.mode,D[e+8>>2]=t.nlink,D[e+12>>2]=t.uid,D[e+16>>2]=t.gid,D[e+20>>2]=t.rdev,O[e+24>>3]=BigInt(t.size),E[e+32>>2]=4096,E[e+36>>2]=t.blocks;var n=t.atime.getTime(),r=t.mtime.getTime(),i=t.ctime.getTime();return O[e+40>>3]=BigInt(Math.floor(n/1e3)),D[e+48>>2]=n%1e3*1e6,O[e+56>>3]=BigInt(Math.floor(r/1e3)),D[e+64>>2]=r%1e3*1e6,O[e+72>>3]=BigInt(Math.floor(i/1e3)),D[e+80>>2]=i%1e3*1e6,O[e+88>>3]=BigInt(t.ino),0}var mt=void 0,ht=()=>{var e=E[mt>>2];return mt+=4,e},gt=0,_t=[0,31,60,91,121,152,182,213,244,274,305,335],vt=[0,31,59,90,120,151,181,212,243,273,304,334],yt={},bt=e=>{ee=e,pe||0<gt||(s.onExit?.(e),x=!0),f(e,new ce(e))},xt=e=>{if(!x)try{e()}catch(e){e instanceof ce||e==`unwind`||f(1,e)}finally{if(!(pe||0<gt))try{ee=e=ee,bt(e)}catch(e){e instanceof ce||e==`unwind`||f(1,e)}}},St={},Ct=()=>{if(!wt){var e={USER:`web_user`,LOGNAME:`web_user`,PATH:`/`,PWD:`/`,HOME:`/home/web_user`,LANG:(globalThis.navigator?.language??`C`).replace(`-`,`_`)+`.UTF-8`,_:d||`./this.program`},t;for(t in St)St[t]===void 0?delete e[t]:e[t]=St[t];var n=[];for(t in e)n.push(`${t}=${e[t]}`);wt=n}return wt},wt,Tt=(e,t,n,r)=>{var i={string:e=>{var t=0;if(e!=null&&e!==0){t=I(e)+1;var n=Q(t);L(e,w,n,t),t=n}return t},array:e=>{var t=Q(e.length);return C.set(e,t),t}};e=s[`_`+e];var a=[],o=0;if(r)for(var c=0;c<r.length;c++){var l=i[n[c]];l?(o===0&&(o=Lt()),a[c]=l(r[c])):a[c]=r[c]}return n=e(...a),n=function(e){return o!==0&&It(o),t===`string`?F(e):t===`boolean`?!!e:e}(n)},Et=e=>{var t=I(e)+1,n=Mt(t);return n&&L(e,w,n,t),n},X,Dt=[],Z=e=>{X.delete($.get(e)),$.set(e,null),Dt.push(e)},Ot=e=>{let t=e.length;return[t%128|128,t>>7,...e]},kt={i:127,p:127,j:126,f:125,d:124,e:111},At=e=>Ot(Array.from(e,e=>kt[e])),jt=(e,t)=>{if(!X){X=new WeakMap;var n=$.length;if(X)for(var r=0;r<0+n;r++){var i=$.get(r);i&&X.set(i,r)}}if(n=X.get(e)||0)return n;n=Dt.length?Dt.pop():$.grow(1);try{$.set(n,e)}catch(r){if(!(r instanceof TypeError))throw r;t=Uint8Array.of(0,97,115,109,1,0,0,0,1,...Ot([1,96,...At(t.slice(1)),...At(t[0]===`v`?``:t[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),t=new WebAssembly.Module(t),t=new WebAssembly.Instance(t,{e:{f:e}}).exports.f,$.set(n,t)}return X.set(e,n),n};if(B=Array(4096),Xe(R,`/`),K(`/tmp`),K(`/home`),K(`/home/web_user`),(function(){K(`/dev`),Ye(259,{read:()=>0,write:(e,t,n,r)=>r,Va:()=>0}),$e(`/dev/null`,259),Te(1280,De),Te(1536,Oe),$e(`/dev/tty`,1280),$e(`/dev/tty1`,1536);var e=new Uint8Array(1024),t=0,n=()=>(t===0&&(be(e),t=e.byteLength),e[--t]);q(`random`,n),q(`urandom`,n),K(`/dev/shm`),K(`/dev/shm/tmp`)})(),(function(){K(`/proc`);var e=K(`/proc/self`);K(`/proc/self/fd`),Xe({Xa(){var t=Be(e,`fd`,16895,73);return t.Ma={Va:R.Ma.Va},t.La={lookup(e,t){e=+t;var n=G(e);return e={parent:null,Xa:{Db:`fake`},La:{readlink:()=>n.path},id:e+1},e.parent=e},readdir(){return Array.from(z.entries()).filter(([,e])=>e).map(([e])=>e.toString())}},t}},`/proc/self/fd`)})(),s.noExitRuntime&&(pe=s.noExitRuntime),s.print&&(v=s.print),s.printErr&&(y=s.printErr),s.wasmBinary&&(b=s.wasmBinary),s.thisProgram&&(d=s.thisProgram),s.preInit)for(typeof s.preInit==`function`&&(s.preInit=[s.preInit]);0<s.preInit.length;)s.preInit.shift()();s.stackSave=()=>Lt(),s.stackRestore=e=>It(e),s.stackAlloc=e=>Q(e),s.cwrap=(e,t,n,r)=>{var i=!n||n.every(e=>e===`number`||e===`boolean`);return t!==`string`&&i&&!r?s[`_`+e]:(...r)=>Tt(e,t,n,r)},s.addFunction=jt,s.removeFunction=Z,s.UTF8ToString=F,s.stringToNewUTF8=Et,s.writeArrayToMemory=(e,t)=>{C.set(e,t)};var Mt,Nt,Pt,Ft,It,Q,Lt,Rt,$,zt={a:(e,t,n,r)=>k(`Assertion failed: ${F(e)}, at: `+[t?F(t):`unknown filename`,n,r?F(r):`unknown function`]),i:function(e,t){try{return e=F(e),at(e,t),0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},L:function(e,t,n){try{if(t=F(t),t=Y(e,t),n&-8)return-28;var r=H(t,{ab:!0}).node;return r?(e=``,n&4&&(e+=`r`),n&2&&(e+=`w`),n&1&&(e+=`x`),e&&Ve(r,e)?-2:0):-44}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},j:function(e,t){try{var n=G(e);return it(n,n.node,t,!1),0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},h:function(e){try{var t=G(e);return qe(t,t.node,{timestamp:Date.now(),Lb:!1}),0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},b:function(e,t,n){mt=n;try{var r=G(e);switch(t){case 0:var i=ht();if(0>i)break;for(;z[i];)i++;return Ke(r,i).fd;case 1:case 2:return 0;case 3:return r.flags;case 4:return i=ht(),r.flags|=i,0;case 12:return i=ht(),T[i+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},g:function(e,t){try{var n=G(e),r=n.node,i=n.Ma.Ta;return e=i?n:r,i??=r.La.Ta,We(i),pt(t,i(e))}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},H:function(e,t){t=-9007199254740992>t||9007199254740992<t?NaN:Number(t);try{if(isNaN(t))return-61;var n=G(e);if(0>t||!(n.flags&2097155))throw new V(28);return ot(n,n.node,t),0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},G:function(e,t){try{if(t===0)return-28;var n=I(`/`)+1;return t<n?-68:(L(`/`,w,e,t),n)}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},K:function(e,t){try{return e=F(e),pt(t,rt(e,!0))}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},C:function(e,t,n){try{return t=F(t),t=Y(e,t),K(t,n),0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},J:function(e,t,n,r){try{t=F(t);var i=r&256;return t=Y(e,t,r&4096),pt(n,i?rt(t,!0):rt(t))}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},x:function(e,t,n,r){mt=r;try{t=F(t),t=Y(e,t);var i=r?ht():0;return st(t,n,i).fd}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},v:function(e,t,n,r){try{if(t=F(t),t=Y(e,t),0>=r)return-28;var i=H(t).node;if(!i)throw new V(44);if(!i.La.readlink)throw new V(28);var a=i.La.readlink(i),o=Math.min(r,I(a)),s=C[n+o];return L(a,w,n,r+1),C[n+o]=s,o}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},u:function(e){try{return e=F(e),tt(e),0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},f:function(e,t){try{return e=F(e),pt(t,rt(e))}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},r:function(e,t,n){try{if(t=F(t),t=Y(e,t),n)if(n===512)tt(t);else return-28;else nt(t);return 0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},q:function(e,t,n){try{t=F(t),t=Y(e,t,!0);var r=Date.now(),i,a;if(n){var o=D[n>>2]+4294967296*E[n+4>>2],s=E[n+8>>2];i=s==1073741823?r:s==1073741822?null:1e3*o+s/1e6,n+=16,o=D[n>>2]+4294967296*E[n+4>>2],s=E[n+8>>2],a=s==1073741823?r:s==1073741822?null:1e3*o+s/1e6}else a=i=r;if((a??i)!==null){e=i;var c=H(t,{ab:!0}).node;We(c.La.Ua)(c,{atime:e,mtime:a})}return 0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},m:()=>k(``),l:()=>{pe=!1,gt=0},A:function(e,t){e=-9007199254740992>e||9007199254740992<e?NaN:Number(e),e=new Date(1e3*e),E[t>>2]=e.getSeconds(),E[t+4>>2]=e.getMinutes(),E[t+8>>2]=e.getHours(),E[t+12>>2]=e.getDate(),E[t+16>>2]=e.getMonth(),E[t+20>>2]=e.getFullYear()-1900,E[t+24>>2]=e.getDay();var n=e.getFullYear();E[t+28>>2]=(n%4!=0||n%100==0&&n%400!=0?vt:_t)[e.getMonth()]+e.getDate()-1|0,E[t+36>>2]=-(60*e.getTimezoneOffset()),n=new Date(e.getFullYear(),6,1).getTimezoneOffset();var r=new Date(e.getFullYear(),0,1).getTimezoneOffset();E[t+32>>2]=(n!=r&&e.getTimezoneOffset()==Math.min(r,n))|0},y:function(e,t,n,r,i,a,o){i=-9007199254740992>i||9007199254740992<i?NaN:Number(i);try{var s=G(r);if(t&2&&!(n&2)&&(s.flags&2097155)!=2||(s.flags&2097155)==1)throw new V(2);if(!s.Ma.jb)throw new V(43);if(!e)throw new V(28);var c=s.Ma.jb(s,e,i,t,n),l=c.Xb;return E[a>>2]=c.Eb,D[o>>2]=l,0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},z:function(e,t,n,r,i,a){a=-9007199254740992>a||9007199254740992<a?NaN:Number(a);try{var o=G(i);if(n&2){if(n=a,(o.node.mode&61440)!=32768)throw new V(43);if(!(r&2)){var s=w.slice(e,e+t);o.Ma.kb&&o.Ma.kb(o,s,n,t,r)}}}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return-e.Pa}},n:(e,t)=>(yt[e]&&(clearTimeout(yt[e].id),delete yt[e]),t&&(yt[e]={id:setTimeout(()=>{delete yt[e],xt(()=>Ft(e,performance.now()))},t),lc:t}),0),B:(e,t,n,r)=>{var i=new Date().getFullYear(),a=new Date(i,0,1).getTimezoneOffset();i=new Date(i,6,1).getTimezoneOffset(),D[e>>2]=60*Math.max(a,i),E[t>>2]=Number(a!=i),t=e=>{var t=Math.abs(e);return`UTC${0<=e?`-`:`+`}${String(Math.floor(t/60)).padStart(2,`0`)}${String(t%60).padStart(2,`0`)}`},e=t(a),t=t(i),i<a?(L(e,w,n,17),L(t,w,r,17)):(L(e,w,r,17),L(t,w,n,17))},d:()=>Date.now(),s:()=>2147483648,c:()=>performance.now(),o:e=>{var t=w.length;if(e>>>=0,2147483648<e)return!1;for(var n=1;4>=n;n*=2){var r=t*(1+.2/n);r=Math.min(r,e+100663296);a:{r=(Math.min(2147483648,65536*Math.ceil(Math.max(e,r)/65536))-Rt.buffer.byteLength+65535)/65536|0;try{Rt.grow(r),re();var i=1;break a}catch{}i=void 0}if(i)return!0}return!1},E:(e,t)=>{var n=0,r=0,i;for(i of Ct()){var a=t+n;D[e+r>>2]=a,n+=L(i,w,a,1/0)+1,r+=4}return 0},F:(e,t)=>{var n=Ct();D[e>>2]=n.length,e=0;for(var r of n)e+=I(r)+1;return D[t>>2]=e,0},e:function(e){try{return ct(G(e)),0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return e.Pa}},p:function(e,t){try{var n=G(e);return C[t]=n.tty?2:W(n.mode)?3:(n.mode&61440)==40960?7:4,T[t+2>>1]=0,O[t+8>>3]=BigInt(0),O[t+16>>3]=BigInt(0),0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return e.Pa}},w:function(e,t,n,r){try{a:{var i=G(e);e=t;for(var a,o=t=0;o<n;o++){var s=D[e>>2],c=D[e+4>>2];e+=8;var l=ut(i,C,s,c,a);if(0>l){var u=-1;break a}if(t+=l,l<c)break;a!==void 0&&(a+=l)}u=t}return D[r>>2]=u,0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return e.Pa}},D:function(e,t,n,r){t=-9007199254740992>t||9007199254740992<t?NaN:Number(t);try{if(isNaN(t))return 61;var i=G(e);return lt(i,t,n),O[r>>3]=BigInt(i.position),i.rb&&t===0&&n===0&&(i.rb=null),0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return e.Pa}},I:function(e){try{var t=G(e);return t.Ma?.fsync?.(t)}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return e.Pa}},t:function(e,t,n,r){try{a:{var i=G(e);e=t;for(var a,o=t=0;o<n;o++){var s=D[e>>2],c=D[e+4>>2];e+=8;var l=dt(i,C,s,c,a);if(0>l){var u=-1;break a}if(t+=l,l<c)break;a!==void 0&&(a+=l)}u=t}return D[r>>2]=u,0}catch(e){if(J===void 0||e.name!==`ErrnoError`)throw e;return e.Pa}},k:bt};function Bt(){function e(){if(s.calledRun=!0,!x){if(!s.noFSInit&&!Ne){var e,t;Ne=!0,e??=s.stdin,t??=s.stdout,n??=s.stderr,e?q(`stdin`,e):et(`/dev/tty`,`/dev/stdin`),t?q(`stdout`,null,t):et(`/dev/tty`,`/dev/stdout`),n?q(`stderr`,null,n):et(`/dev/tty1`,`/dev/stderr`),st(`/dev/stdin`,0),st(`/dev/stdout`,1),st(`/dev/stderr`,1)}if(Vt.N(),Pe=!1,s.onRuntimeInitialized?.(),s.postRun)for(typeof s.postRun==`function`&&(s.postRun=[s.postRun]);s.postRun.length;){var n=s.postRun.shift();ue.push(n)}le(ue)}}if(0<A)j=Bt;else{if(s.preRun)for(typeof s.preRun==`function`&&(s.preRun=[s.preRun]);s.preRun.length;)fe();le(de),0<A?j=Bt:s.setStatus?(s.setStatus(`Running...`),setTimeout(()=>{setTimeout(()=>s.setStatus(``),1),e()},1)):e()}}var Vt;return(async function(){function e(e){return e=Vt=e.exports,s._sqlite3_free=e.P,s._sqlite3_value_text=e.Q,s._sqlite3_prepare_v2=e.R,s._sqlite3_step=e.S,s._sqlite3_reset=e.T,s._sqlite3_exec=e.U,s._sqlite3_finalize=e.V,s._sqlite3_column_name=e.W,s._sqlite3_column_text=e.X,s._sqlite3_column_type=e.Y,s._sqlite3_errmsg=e.Z,s._sqlite3_clear_bindings=e._,s._sqlite3_value_blob=e.$,s._sqlite3_value_bytes=e.aa,s._sqlite3_value_double=e.ba,s._sqlite3_value_int=e.ca,s._sqlite3_value_type=e.da,s._sqlite3_result_blob=e.ea,s._sqlite3_result_double=e.fa,s._sqlite3_result_error=e.ga,s._sqlite3_result_int=e.ha,s._sqlite3_result_int64=e.ia,s._sqlite3_result_null=e.ja,s._sqlite3_result_text=e.ka,s._sqlite3_aggregate_context=e.la,s._sqlite3_column_count=e.ma,s._sqlite3_data_count=e.na,s._sqlite3_column_blob=e.oa,s._sqlite3_column_bytes=e.pa,s._sqlite3_column_double=e.qa,s._sqlite3_bind_blob=e.ra,s._sqlite3_bind_double=e.sa,s._sqlite3_bind_int=e.ta,s._sqlite3_bind_text=e.ua,s._sqlite3_bind_parameter_index=e.va,s._sqlite3_sql=e.wa,s._sqlite3_normalized_sql=e.xa,s._sqlite3_changes=e.ya,s._sqlite3_close_v2=e.za,s._sqlite3_create_function_v2=e.Aa,s._sqlite3_update_hook=e.Ba,s._sqlite3_open=e.Ca,Mt=s._malloc=e.Da,Nt=s._free=e.Ea,s._RegisterExtensionFunctions=e.Fa,Pt=e.Ga,Ft=e.Ha,It=e.Ia,Q=e.Ja,Lt=e.Ka,Rt=e.M,$=e.O,re(),A--,s.monitorRunDependencies?.(A),A==0&&j&&(e=j,j=null,e()),Vt}A++,s.monitorRunDependencies?.(A);var t={a:zt};return s.instantiateWasm?new Promise(n=>{s.instantiateWasm(t,(t,r)=>{n(e(t,r))})}):(ie??=s.locateFile?s.locateFile(`sql-wasm.wasm`,m):m+`sql-wasm.wasm`,e((await se(t)).instance))})(),Bt(),a}),r)};typeof t==`object`&&typeof n==`object`?(n.exports=i,n.exports.default=i):typeof define==`function`&&define.amd?define([],function(){return i}):typeof t==`object`&&(t.Module=i)}))(),1);function y(e,t,n){switch(n.mode){case`list`:return x(e,t,n);case`csv`:return ee(e,t,n);case`json`:return T(e,t);case`line`:return E(e,t,n);case`column`:return D(e,t,n);case`table`:return te(e,t,n);case`markdown`:return ne(e,t,n);case`tabs`:return O(e,t,n);case`box`:return re(e,t,n);case`quote`:return k(e,t,n);case`html`:return ie(e,t,n);case`ascii`:return oe(e,t,n)}}function b(e,t){return e==null?t:e instanceof Uint8Array||Buffer.isBuffer(e)?Buffer.from(e).toString(`utf8`):typeof e==`number`&&!Number.isInteger(e)?e.toPrecision(17).replace(/\.?0+$/,``):String(e)}function x(e,t,n){let r=[];n.header&&e.length>0&&r.push(e.join(n.separator));for(let e of t)r.push(e.map(e=>b(e,n.nullValue)).join(n.separator));return r.length>0?`${r.join(n.newline)}${n.newline}`:``}function ee(e,t,n){let r=[];n.header&&e.length>0&&r.push(e.map(S).join(`,`));for(let e of t)r.push(e.map(e=>S(b(e,n.nullValue))).join(`,`));return r.length>0?`${r.join(`
|
|
3
3
|
`)}
|
|
4
4
|
`:``}function S(e){return e.includes(`,`)||e.includes(`"`)||e.includes(`'`)||e.includes(`
|
|
@@ -34,4 +34,4 @@ Use -help for a list of options.
|
|
|
34
34
|
`,exitCode:1};b+=`Error: ${e.error}
|
|
35
35
|
`,x=!0}else e.columns&&e.rows&&(e.rows.length>0||r.header)&&(b+=y(e.columns,e.rows,v));if(_.hasModifications&&!r.readonly&&!f&&p&&_.dbBuffer)try{await t.fs.writeFile(p,_.dbBuffer)}catch(e){let t=s(e.message);return{stdout:b,stderr:`sqlite3: failed to write database: ${t}
|
|
36
36
|
`,exitCode:1}}return{stdout:b,stderr:``,exitCode:x&&r.bail?1:0}}},N={name:`sqlite3`,flags:[],needsArgs:!0};export{fe as n,N as r,pe as t};
|
|
37
|
-
//# sourceMappingURL=chunk-XKWWSDBF-
|
|
37
|
+
//# sourceMappingURL=chunk-XKWWSDBF-ni5TCqSh.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-74CEPOFO-
|
|
1
|
+
import{r as e,t}from"./chunk-74CEPOFO-CukBzgc1.mjs";import{t as n}from"./chunk-HWKDQ44K-Ca2TjRi7.mjs";var r={name:`tree`,summary:`list contents of directories in a tree-like format`,usage:`tree [OPTION]... [DIRECTORY]...`,options:[`-a include hidden files`,`-d list directories only`,`-L LEVEL limit depth of directory tree`,`-f print full path prefix for each file`,` --help display this help and exit`]},i={showHidden:{short:`a`,type:`boolean`},directoriesOnly:{short:`d`,type:`boolean`},fullPath:{short:`f`,type:`boolean`},maxDepth:{short:`L`,type:`number`}},a={name:`tree`,async execute(a,s){if(t(a))return e(r);let c=n(`tree`,a,i);if(!c.ok)return c.error;let l={showHidden:c.result.flags.showHidden,directoriesOnly:c.result.flags.directoriesOnly,maxDepth:c.result.flags.maxDepth??null,fullPath:c.result.flags.fullPath},u=c.result.positional;u.length===0&&u.push(`.`);let d=``,f=``,p=0,m=0;for(let e of u){let t=await o(s,e,l,``,0);d+=t.output,f+=t.stderr,p+=t.dirCount,m+=t.fileCount}return d+=`
|
|
2
2
|
${p} director${p===1?`y`:`ies`}`,l.directoriesOnly||(d+=`, ${m} file${m===1?``:`s`}`),d+=`
|
|
3
3
|
`,{stdout:d,stderr:f,exitCode:+!!f}}};async function o(e,t,n,r,i){let a={output:``,stderr:``,dirCount:0,fileCount:0},o=e.fs.resolvePath(e.cwd,t);try{if(!(await e.fs.stat(o)).isDirectory)return a.output=`${t}
|
|
4
4
|
`,a.fileCount=1,a}catch{return a.stderr=`tree: ${t}: No such file or directory
|
|
@@ -9,4 +9,4 @@ ${p} director${p===1?`y`:`ies`}`,l.directoriesOnly||(d+=`, ${m} file${m===1?``:`
|
|
|
9
9
|
`}return a}async function s(e,t,n,r,i){let a={output:``,stderr:``,dirCount:0,fileCount:0};if(n.maxDepth!==null&&i>=n.maxDepth)return a;try{let o=[];if(e.fs.readdirWithFileTypes)o=(await e.fs.readdirWithFileTypes(t)).map(e=>({name:e.name,isDirectory:e.isDirectory}));else{let n=await e.fs.readdir(t);for(let r=0;r<n.length;r+=100){let i=n.slice(r,r+100),a=await Promise.all(i.map(async n=>{let r=t===`/`?`/${n}`:`${t}/${n}`;try{return{name:n,isDirectory:(await e.fs.stat(r)).isDirectory}}catch{return null}}));o.push(...a.filter(e=>e!==null))}}let c=o.filter(e=>!(!n.showHidden&&e.name.startsWith(`.`)||n.directoriesOnly&&!e.isDirectory));c.sort((e,t)=>e.name.localeCompare(t.name));for(let o=0;o<c.length;o++){let l=c[o],u=t===`/`?`/${l.name}`:`${t}/${l.name}`,d=o===c.length-1,f=d?"`-- ":`|-- `,p=r+(d?` `:`| `);if(l.isDirectory){a.dirCount++;let t=n.fullPath?u:l.name;a.output+=`${r+f+t}
|
|
10
10
|
`;let o=await s(e,u,n,p,i+1);a.output+=o.output,a.dirCount+=o.dirCount,a.fileCount+=o.fileCount}else{a.fileCount++;let e=n.fullPath?u:l.name;a.output+=`${r+f+e}
|
|
11
11
|
`}}}catch{}return a}var c={name:`tree`,flags:[{flag:`-a`,type:`boolean`},{flag:`-d`,type:`boolean`},{flag:`-f`,type:`boolean`},{flag:`-L`,type:`value`,valueHint:`number`}],needsFiles:!0};export{a as n,c as t};
|
|
12
|
-
//# sourceMappingURL=chunk-XVDPCNWR-
|
|
12
|
+
//# sourceMappingURL=chunk-XVDPCNWR-DoK2rHj9.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-BW8wJnWV.mjs";import{p as t}from"./src-BbZVR6qh.mjs";var n=e((e,n)=>{let r;return n===`sandbox`&&(r=t(`#i`+e)),t(n===`sandbox`?r.nodes()[0].contentDocument.body:`body`).select(`[id="${e}"]`)},`getDiagramElement`);export{n as t};
|
|
2
|
+
//# sourceMappingURL=chunk-XXDRQBXY-CQXT_9AZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var e=Object.defineProperty,t=(t,n)=>e(t,`name`,{value:n,configurable:!0}),n=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})};export{t as n,n as t};
|
|
2
|
-
//# sourceMappingURL=chunk-Y2CYZVJY-
|
|
2
|
+
//# sourceMappingURL=chunk-Y2CYZVJY-BW8wJnWV.mjs.map
|