@hina114514/chaite 1.9.3
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/README.md +143 -0
- package/dist/__dirname-xAmdQ8wE.mjs +13 -0
- package/dist/__dirname.d.ts +4 -0
- package/dist/__dirname.mjs +4 -0
- package/dist/adapters-BeZFg37c.mjs +30 -0
- package/dist/chunks/@anthropic-ai/sdk/index.mjs-BBdoshoG.mjs +44887 -0
- package/dist/chunks/@google/genai/index.mjs-CJMm4uh0.mjs +25136 -0
- package/dist/chunks/@karinjs/node-schedule/index.mjs-UoPXNUgp.mjs +8403 -0
- package/dist/chunks/@xmldom/xmldom/index.mjs-BARr5-gb.mjs +4280 -0
- package/dist/chunks/accepts/index.mjs-BpfWQu4-.mjs +8009 -0
- package/dist/chunks/agent-base/index.mjs-BZ87hIEB.mjs +199 -0
- package/dist/chunks/array-flatten/index.mjs-CFicqOhD.mjs +54 -0
- package/dist/chunks/bluebird/index.mjs-D4zFjek8.mjs +4094 -0
- package/dist/chunks/body-parser/index.mjs-BrUY71SQ.mjs +13756 -0
- package/dist/chunks/chokidar/index.mjs-BvSuth5p.mjs +1537 -0
- package/dist/chunks/content-disposition/index.mjs-DqMQ6Fbz.mjs +307 -0
- package/dist/chunks/cookie/index.mjs-CTmQWCqd.mjs +243 -0
- package/dist/chunks/cookie-signature/index.mjs-CIA1F6JJ.mjs +46 -0
- package/dist/chunks/core-util-is/index.mjs-C0h_2dGX.mjs +69 -0
- package/dist/chunks/cors/index.mjs-DGt6p49t.mjs +311 -0
- package/dist/chunks/data-uri-to-buffer/index.mjs-CLj4bast.mjs +44 -0
- package/dist/chunks/debug/index.mjs-BgKBSuIO.mjs +703 -0
- package/dist/chunks/dingbat-to-unicode/index.mjs-DjR5pQCM.mjs +7481 -0
- package/dist/chunks/encodeurl/index.mjs-CvPRUh2S.mjs +105 -0
- package/dist/chunks/escape-html/index.mjs-CeA_Z7EO.mjs +65 -0
- package/dist/chunks/etag/index.mjs-D58ziXwz.mjs +80 -0
- package/dist/chunks/express/index.mjs-CHnhA_pr.mjs +6787 -0
- package/dist/chunks/fetch-blob/index.mjs-Pm1zUh3g.mjs +3803 -0
- package/dist/chunks/formdata-node/index.mjs-B2Ji6hC0.mjs +92 -0
- package/dist/chunks/formdata-polyfill/index.mjs-BTkafjCT.mjs +87 -0
- package/dist/chunks/https-proxy-agent/index.mjs-DTZuZn-J.mjs +239 -0
- package/dist/chunks/immediate/index.mjs-CkWjI_b-.mjs +59 -0
- package/dist/chunks/isarray/index.mjs-DaT02uUW.mjs +12 -0
- package/dist/chunks/jszip/index.mjs-CvfsTniy.mjs +8599 -0
- package/dist/chunks/lop/index.mjs-BWbOMJZv.mjs +3540 -0
- package/dist/chunks/mammoth/index.mjs-C9xwBIgf.mjs +5081 -0
- package/dist/chunks/node-fetch/index.mjs-Cdihbb0Q.mjs +1446 -0
- package/dist/chunks/openai/index.mjs-M-HPLtaS.mjs +6691 -0
- package/dist/dist-C0tgywA-.mjs +8 -0
- package/dist/fileFromPath-CJ_N7wA9.mjs +6 -0
- package/dist/index.d.ts +1579 -0
- package/dist/index.mjs +30 -0
- package/dist/multipart-parser-CCl_4A7w.mjs +6 -0
- package/dist/rolldown-runtime-DVriDoez.mjs +43 -0
- package/dist/src-BjDIhdKO.mjs +5179 -0
- package/dist/src-DmcKtGy2.mjs +7 -0
- package/dist/types-6jzst6Q4.mjs +30 -0
- package/frontend/build/assets/ChannelFormModal-1GO2eD4m.css +1 -0
- package/frontend/build/assets/ChannelFormModal-B6e7ZIO6.js +5 -0
- package/frontend/build/assets/ChannelFormModal-CV7fs6-7.js +5 -0
- package/frontend/build/assets/ChannelFormModal-DBZyhZDI.css +1 -0
- package/frontend/build/assets/ChannelFormModal-DL0qkZX-.js +5 -0
- package/frontend/build/assets/ChannelFormModal-DuAAlw-8.js +5 -0
- package/frontend/build/assets/ChannelFormModal-Hp6Y4QBc.js +5 -0
- package/frontend/build/assets/ChannelFormModal-xPhm1bZd.js +5 -0
- package/frontend/build/assets/Checkbox-BvK-NJJX.js +105 -0
- package/frontend/build/assets/Checkbox-CNMr2-eQ.js +105 -0
- package/frontend/build/assets/Checkbox-DOJuZG8N.js +105 -0
- package/frontend/build/assets/Checkbox-DWREbqxa.js +105 -0
- package/frontend/build/assets/Checkbox-HPhUtTKu.js +105 -0
- package/frontend/build/assets/Checkbox-gNUlkipW.js +105 -0
- package/frontend/build/assets/CollapseItem-7YFuTj31.js +41 -0
- package/frontend/build/assets/CollapseItem-BVnC3pah.js +41 -0
- package/frontend/build/assets/CollapseItem-Bk7f5wCb.js +41 -0
- package/frontend/build/assets/CollapseItem-Calq76Jj.js +41 -0
- package/frontend/build/assets/CollapseItem-DOnuDO5j.js +41 -0
- package/frontend/build/assets/CollapseItem-fWJBGjAw.js +41 -0
- package/frontend/build/assets/ConversationDetailDrawer-BYG2DS4S.js +1 -0
- package/frontend/build/assets/ConversationDetailDrawer-BYZeaeoF.js +1 -0
- package/frontend/build/assets/ConversationDetailDrawer-gVn82fSx.js +1 -0
- package/frontend/build/assets/ConversationDetailDrawer-jtT8U08c.js +1 -0
- package/frontend/build/assets/ConversationDetailDrawer-m-rNIWZj.js +1 -0
- package/frontend/build/assets/ConversationDetailDrawer-xbhamnIs.js +1 -0
- package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-BRZBnJxg.js +97 -0
- package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-BnR3ffRY.js +97 -0
- package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-C0KA87GQ.js +97 -0
- package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-CnLM8_TJ.js +97 -0
- package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-CzZvhLM_.js +97 -0
- package/frontend/build/assets/ConversationDetailDrawer.vue_vue_type_script_setup_true_lang-U0BsqrL8.js +97 -0
- package/frontend/build/assets/DataTable-4ViTZyB6.js +457 -0
- package/frontend/build/assets/DataTable-B8zZmlji.js +457 -0
- package/frontend/build/assets/DataTable-BNjopWG3.js +457 -0
- package/frontend/build/assets/DataTable-CZyItGh5.js +457 -0
- package/frontend/build/assets/DataTable-DJj26Pzn.js +454 -0
- package/frontend/build/assets/DataTable-DoEbD9LL.js +457 -0
- package/frontend/build/assets/DynamicTags-BccLo-fc.js +1 -0
- package/frontend/build/assets/DynamicTags-Bmg43ONH.js +1 -0
- package/frontend/build/assets/DynamicTags-CyLbZ9I2.js +1 -0
- package/frontend/build/assets/DynamicTags-DNTdDdGA.js +1 -0
- package/frontend/build/assets/DynamicTags-VCyQf17w.js +1 -0
- package/frontend/build/assets/DynamicTags-rIgGdrL5.js +1 -0
- package/frontend/build/assets/Ellipsis-BST77ylS.js +187 -0
- package/frontend/build/assets/Ellipsis-BTz09kpN.js +187 -0
- package/frontend/build/assets/Ellipsis-BbsLqJtK.js +187 -0
- package/frontend/build/assets/Ellipsis-BdMplm4D.js +187 -0
- package/frontend/build/assets/Ellipsis-C3lHtvjF.js +187 -0
- package/frontend/build/assets/Ellipsis-CEbBdn2n.js +187 -0
- package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-B5o0iz7y.js +1 -0
- package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-BTf_XpHq.js +1 -0
- package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-DFWrNfDB.js +1 -0
- package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-DTFtcs8p.js +1 -0
- package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-QKywH0iL.js +1 -0
- package/frontend/build/assets/ErrorTip.vue_vue_type_script_setup_true_lang-q7wMY1La.js +1 -0
- package/frontend/build/assets/FormItem-BFYeYoTE.js +110 -0
- package/frontend/build/assets/FormItem-B_V_gknG.js +110 -0
- package/frontend/build/assets/FormItem-C2ziP3u7.js +110 -0
- package/frontend/build/assets/FormItem-CDsgx_ab.js +110 -0
- package/frontend/build/assets/FormItem-D5nKwNGe.js +110 -0
- package/frontend/build/assets/FormItem-DcKuwtDH.js +110 -0
- package/frontend/build/assets/FormItemGridItem-BiRqZE_B.js +1 -0
- package/frontend/build/assets/FormItemGridItem-CEbJWTJd.js +1 -0
- package/frontend/build/assets/FormItemGridItem-DaKl8_2L.js +1 -0
- package/frontend/build/assets/FormItemGridItem-DkQ8mrOt.js +1 -0
- package/frontend/build/assets/FormItemGridItem-YEC3z4HO.js +1 -0
- package/frontend/build/assets/FormItemGridItem-cjYQS3d8.js +1 -0
- package/frontend/build/assets/Grid-0zzIexHr.js +1 -0
- package/frontend/build/assets/Grid-BNlPkf-g.js +1 -0
- package/frontend/build/assets/Grid-CmLEm3vL.js +1 -0
- package/frontend/build/assets/Grid-CqcXqV8U.js +1 -0
- package/frontend/build/assets/Grid-DmeNHOJx.js +1 -0
- package/frontend/build/assets/Grid-WK2vuhLP.js +1 -0
- package/frontend/build/assets/Image-CMvlvuJp.js +132 -0
- package/frontend/build/assets/Image-CbdTV78X.js +132 -0
- package/frontend/build/assets/Image-Cf2fbKtf.js +132 -0
- package/frontend/build/assets/Image-Crg2QYhk.js +132 -0
- package/frontend/build/assets/Image-D53Xywez.js +132 -0
- package/frontend/build/assets/Image-tNy1v7mL.js +132 -0
- package/frontend/build/assets/InputNumber-BjfLyebn.js +13 -0
- package/frontend/build/assets/InputNumber-BtSrvYnH.js +13 -0
- package/frontend/build/assets/InputNumber-BxeR-3jl.js +13 -0
- package/frontend/build/assets/InputNumber-C7hKPk7P.js +13 -0
- package/frontend/build/assets/InputNumber-CbRGvPDs.js +13 -0
- package/frontend/build/assets/InputNumber-qiteD5Uu.js +13 -0
- package/frontend/build/assets/MessageContentCard-333YPcPx.js +1 -0
- package/frontend/build/assets/MessageContentCard-B0-LvWuB.js +1 -0
- package/frontend/build/assets/MessageContentCard-C2uRLdgO.js +1 -0
- package/frontend/build/assets/MessageContentCard-CjL6sc3W.js +1 -0
- package/frontend/build/assets/MessageContentCard-D3wLdleV.css +1 -0
- package/frontend/build/assets/MessageContentCard-DQ6w5avD.css +1 -0
- package/frontend/build/assets/MessageContentCard-DRoS4fsn.js +1 -0
- package/frontend/build/assets/MessageContentCard-DRsw0lK-.js +1 -0
- package/frontend/build/assets/Popconfirm-DsC1UchR.js +16 -0
- package/frontend/build/assets/Popconfirm-wmBfNL4Y.js +16 -0
- package/frontend/build/assets/PresetFormModal-B87TaT8J.js +1 -0
- package/frontend/build/assets/PresetFormModal-BpleAL8Z.js +1 -0
- package/frontend/build/assets/PresetFormModal-BrNCyqXq.css +1 -0
- package/frontend/build/assets/PresetFormModal-D6bXLlH2.css +1 -0
- package/frontend/build/assets/PresetFormModal-D8RNddGW.css +1 -0
- package/frontend/build/assets/PresetFormModal-DZlJ1Vcp.css +1 -0
- package/frontend/build/assets/PresetFormModal-Dah-5WHj.js +1 -0
- package/frontend/build/assets/PresetFormModal-DepNynU1.js +1 -0
- package/frontend/build/assets/PresetFormModal-Diebn4cS.js +1 -0
- package/frontend/build/assets/PresetFormModal-Dol9eToM.js +1 -0
- package/frontend/build/assets/PresetFormModal-ah6zWfbB.css +1 -0
- package/frontend/build/assets/ProcessorFormModal-BLiL3tFS.js +1 -0
- package/frontend/build/assets/ProcessorFormModal-C4rqrypu.js +1 -0
- package/frontend/build/assets/ProcessorFormModal-D9X5zzKG.js +1 -0
- package/frontend/build/assets/ProcessorFormModal-Ik7zSGUU.js +1 -0
- package/frontend/build/assets/ProcessorFormModal-Q5ARXwwU.js +1 -0
- package/frontend/build/assets/ProcessorFormModal-vpoqf_VP.js +1 -0
- package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-BK03vxpt.js +42 -0
- package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-D8NYnQ0b.js +42 -0
- package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-DKnpVb21.js +42 -0
- package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-DQayqXcu.js +42 -0
- package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-EUAgxSFF.js +42 -0
- package/frontend/build/assets/ProcessorFormModal.vue_vue_type_script_setup_true_lang-HZQFntw0.js +42 -0
- package/frontend/build/assets/Spin-BP0yPWNS.js +43 -0
- package/frontend/build/assets/Spin-C2G3wcnB.js +43 -0
- package/frontend/build/assets/Spin-C7sqRNqw.js +43 -0
- package/frontend/build/assets/Spin-Cy3cVx8W.js +43 -0
- package/frontend/build/assets/Spin-UrFjnOlY.js +43 -0
- package/frontend/build/assets/Spin-yYcNW-yl.js +43 -0
- package/frontend/build/assets/ToolFormModal-CVZFxPxz.js +1 -0
- package/frontend/build/assets/ToolFormModal-CgHH9Bbh.js +1 -0
- package/frontend/build/assets/ToolFormModal-D7NFHjzM.js +1 -0
- package/frontend/build/assets/ToolFormModal-DpVk5ooz.js +1 -0
- package/frontend/build/assets/ToolFormModal-DsS34Jdc.js +1 -0
- package/frontend/build/assets/ToolFormModal-hx-a_w1d.js +1 -0
- package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-Biq3KQMr.js +51 -0
- package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-DAbXNKv-.js +51 -0
- package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-DGdJ6txC.js +51 -0
- package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-QIhGuSJV.js +51 -0
- package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-sVSPLzuy.js +51 -0
- package/frontend/build/assets/ToolFormModal.vue_vue_type_script_setup_true_lang-yH3HeP81.js +51 -0
- package/frontend/build/assets/ToolGroupFormModal-2uJQDkUz.js +1 -0
- package/frontend/build/assets/ToolGroupFormModal-B-OxsC_e.js +1 -0
- package/frontend/build/assets/ToolGroupFormModal-CXbSBPSI.js +1 -0
- package/frontend/build/assets/ToolGroupFormModal-CeF3hW-I.js +1 -0
- package/frontend/build/assets/ToolGroupFormModal-DfEZcYi7.js +1 -0
- package/frontend/build/assets/ToolGroupFormModal-DvGS2rQd.js +1 -0
- package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-AsEJ8jCe.js +146 -0
- package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-B5V2XNND.js +146 -0
- package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-BYmI5807.js +146 -0
- package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-C32gc6LQ.js +146 -0
- package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-CRwhppLH.js +146 -0
- package/frontend/build/assets/ToolGroupFormModal.vue_vue_type_script_setup_true_lang-Cz49lSiC.js +146 -0
- package/frontend/build/assets/TriggerFormModal-B9hL6DT2.js +1 -0
- package/frontend/build/assets/TriggerFormModal-D6tlqZPa.js +1 -0
- package/frontend/build/assets/TriggerFormModal-DngyRFuZ.js +1 -0
- package/frontend/build/assets/TriggerFormModal-jUjJ3cpY.js +1 -0
- package/frontend/build/assets/TriggerFormModal-zyHfq9gk.js +1 -0
- package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-65eiY_Fl.js +15 -0
- package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-BDVxuECo.js +15 -0
- package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-BGdRzXOm.js +15 -0
- package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-Bq6N6Y6d.js +15 -0
- package/frontend/build/assets/TriggerFormModal.vue_vue_type_script_setup_true_lang-DPcB1irn.js +15 -0
- package/frontend/build/assets/add-one-BaGYp8TD.js +1 -0
- package/frontend/build/assets/add-one-CTqCiftQ.js +1 -0
- package/frontend/build/assets/add-one-DBohvXa7.js +1 -0
- package/frontend/build/assets/add-one-DQqaMb3g.js +1 -0
- package/frontend/build/assets/add-one-DT3qGnwW.js +1 -0
- package/frontend/build/assets/add-one-DenQ1X6U.js +1 -0
- package/frontend/build/assets/channels-5BB_92I-.js +1 -0
- package/frontend/build/assets/channels-C2i9C4LP.js +1 -0
- package/frontend/build/assets/channels-C53UiHV8.js +1 -0
- package/frontend/build/assets/channels-Cm8UM1Z7.js +1 -0
- package/frontend/build/assets/channels-DdlEEU3s.js +1 -0
- package/frontend/build/assets/channels-DzKbsjiA.js +1 -0
- package/frontend/build/assets/cloudy-BnletBC6.js +1 -0
- package/frontend/build/assets/cloudy-C02z4bvP.js +1 -0
- package/frontend/build/assets/cloudy-DCLcLr7j.js +1 -0
- package/frontend/build/assets/cloudy-DEHW5vHA.js +1 -0
- package/frontend/build/assets/cloudy-MrNAszHw.js +1 -0
- package/frontend/build/assets/cloudy-zp1Y9L1v.js +1 -0
- package/frontend/build/assets/default-resource.png +0 -0
- package/frontend/build/assets/download-C2161hUv.js +1 -0
- package/frontend/build/assets/error-403-VPEqmg7m.svg +1 -0
- package/frontend/build/assets/error-404-DLMSXL2R.svg +1 -0
- package/frontend/build/assets/error-500-C1R4JvdT.svg +1 -0
- package/frontend/build/assets/gemini-full-DjWArg1A.png +0 -0
- package/frontend/build/assets/headers-CYAAtr6C.js +16 -0
- package/frontend/build/assets/headers-CiEBSHa2.js +16 -0
- package/frontend/build/assets/headers-D9Kcnpmr.js +16 -0
- package/frontend/build/assets/headers-PaTXxtPR.js +16 -0
- package/frontend/build/assets/headers-UoeXy2eZ.js +16 -0
- package/frontend/build/assets/headers-VVIzblQ_.js +16 -0
- package/frontend/build/assets/index--eQYnbum.js +1 -0
- package/frontend/build/assets/index-03UGSOxl.js +3022 -0
- package/frontend/build/assets/index-2VSakRqN.js +1 -0
- package/frontend/build/assets/index-2WhMzyiQ.js +1 -0
- package/frontend/build/assets/index-2_Tj01eS.js +1 -0
- package/frontend/build/assets/index-2ds3nwBz.js +1 -0
- package/frontend/build/assets/index-5HLgPZyA.js +1 -0
- package/frontend/build/assets/index-A-Nxva_P.js +1 -0
- package/frontend/build/assets/index-AOaD5c69.css +1 -0
- package/frontend/build/assets/index-AxmlVWLb.js +88 -0
- package/frontend/build/assets/index-B1vc1sYC.js +88 -0
- package/frontend/build/assets/index-B2xcn1Zp.js +88 -0
- package/frontend/build/assets/index-B3vwplQQ.js +1 -0
- package/frontend/build/assets/index-B3xgRJTP.js +1 -0
- package/frontend/build/assets/index-B5DOGUIX.js +1 -0
- package/frontend/build/assets/index-B6OH0R7T.js +1 -0
- package/frontend/build/assets/index-B84-YkMr.js +1 -0
- package/frontend/build/assets/index-BEeRPoRP.css +1 -0
- package/frontend/build/assets/index-BG6BPhzo.js +1 -0
- package/frontend/build/assets/index-BITQakTn.js +1 -0
- package/frontend/build/assets/index-BMLd3diZ.js +1 -0
- package/frontend/build/assets/index-BVn0o2ft.js +1 -0
- package/frontend/build/assets/index-BWa7FUv_.css +1 -0
- package/frontend/build/assets/index-BX8jlXqW.js +1 -0
- package/frontend/build/assets/index-BfkNMt-Z.js +4 -0
- package/frontend/build/assets/index-BiTjEGM3.js +1 -0
- package/frontend/build/assets/index-BjIbFF1J.css +1 -0
- package/frontend/build/assets/index-BjlhqqjK.js +1 -0
- package/frontend/build/assets/index-BnFsJO-x.css +1 -0
- package/frontend/build/assets/index-BnLYNBvb.js +34 -0
- package/frontend/build/assets/index-BpyNu5uz.css +1 -0
- package/frontend/build/assets/index-Bq8g4Sjx.js +34 -0
- package/frontend/build/assets/index-BqnNVMWz.js +1 -0
- package/frontend/build/assets/index-BqvhG25P.js +1 -0
- package/frontend/build/assets/index-BxVOuJCR.js +88 -0
- package/frontend/build/assets/index-C0cu-RWI.js +1 -0
- package/frontend/build/assets/index-C3PU0-pz.js +1 -0
- package/frontend/build/assets/index-C6PGuM0W.js +1 -0
- package/frontend/build/assets/index-C8kC4vgj.js +73 -0
- package/frontend/build/assets/index-C929_ci3.js +1 -0
- package/frontend/build/assets/index-CAvXXNvC.js +4 -0
- package/frontend/build/assets/index-CH4h1wcf.js +1 -0
- package/frontend/build/assets/index-CIJ6rjR4.js +1 -0
- package/frontend/build/assets/index-CIr65QIJ.js +88 -0
- package/frontend/build/assets/index-CJIWqxBN.js +3022 -0
- package/frontend/build/assets/index-CK1nPYvM.js +1 -0
- package/frontend/build/assets/index-CKrf6ZAU.js +1 -0
- package/frontend/build/assets/index-CLfO7Gf6.js +1 -0
- package/frontend/build/assets/index-C_X4kJPv.js +1 -0
- package/frontend/build/assets/index-C_Y4E6cV.js +1 -0
- package/frontend/build/assets/index-Cb7i0EbW.js +1 -0
- package/frontend/build/assets/index-CbWw_OnJ.js +1 -0
- package/frontend/build/assets/index-CbeMIVMe.js +1 -0
- package/frontend/build/assets/index-CdNjPHZ4.css +1 -0
- package/frontend/build/assets/index-CeFBXiHy.js +34 -0
- package/frontend/build/assets/index-CfqNGf3J.js +1 -0
- package/frontend/build/assets/index-Cgw3BtX5.js +1 -0
- package/frontend/build/assets/index-Ci64noNy.js +4 -0
- package/frontend/build/assets/index-CpE2LZf6.js +88 -0
- package/frontend/build/assets/index-CqKFcCqq.js +1 -0
- package/frontend/build/assets/index-CrbhbDn6.js +1 -0
- package/frontend/build/assets/index-Csi2jHp6.js +1 -0
- package/frontend/build/assets/index-CuRn3Zj6.js +1 -0
- package/frontend/build/assets/index-Cvb6isPu.js +34 -0
- package/frontend/build/assets/index-D1keqYcn.js +1 -0
- package/frontend/build/assets/index-D4yD21Ii.js +1 -0
- package/frontend/build/assets/index-D60uSbJs.css +1 -0
- package/frontend/build/assets/index-D6ESmTyE.js +51 -0
- package/frontend/build/assets/index-D81JopND.js +1 -0
- package/frontend/build/assets/index-D8Ea2ZYj.js +1 -0
- package/frontend/build/assets/index-D8GATqgc.js +88 -0
- package/frontend/build/assets/index-DAP5yTaX.js +1 -0
- package/frontend/build/assets/index-DBBLpo8h.js +73 -0
- package/frontend/build/assets/index-DBaGV7UL.js +1 -0
- package/frontend/build/assets/index-DEVf6CSD.css +1 -0
- package/frontend/build/assets/index-DG-8CbiW.css +1 -0
- package/frontend/build/assets/index-DGBf1FIP.js +1 -0
- package/frontend/build/assets/index-DGJCAKZq.js +1 -0
- package/frontend/build/assets/index-DGyDjezP.js +1 -0
- package/frontend/build/assets/index-DJdQ0nV5.js +3022 -0
- package/frontend/build/assets/index-DK0t9ttf.js +51 -0
- package/frontend/build/assets/index-DNH9PMk-.js +1 -0
- package/frontend/build/assets/index-DOSf5RcO.css +1 -0
- package/frontend/build/assets/index-DOpBnx1_.js +3 -0
- package/frontend/build/assets/index-DOpZxAwZ.js +1 -0
- package/frontend/build/assets/index-DPHVwNRA.js +1 -0
- package/frontend/build/assets/index-DSzihJo9.js +1 -0
- package/frontend/build/assets/index-DVJZAGXg.js +1 -0
- package/frontend/build/assets/index-DXr1ddHm.js +3 -0
- package/frontend/build/assets/index-DamztouA.js +1 -0
- package/frontend/build/assets/index-Dd2IZqLs.js +1 -0
- package/frontend/build/assets/index-DfOc9UlB.js +1 -0
- package/frontend/build/assets/index-DgVSxPXN.css +1 -0
- package/frontend/build/assets/index-Dhp8dh5v.js +1 -0
- package/frontend/build/assets/index-DlqpxOQl.css +1 -0
- package/frontend/build/assets/index-DlvxwSxx.js +1 -0
- package/frontend/build/assets/index-Dn5ZzrRm.css +1 -0
- package/frontend/build/assets/index-Dp1faHeH.js +3020 -0
- package/frontend/build/assets/index-DsLf2ZDE.js +1 -0
- package/frontend/build/assets/index-DsUl8Ptm.js +1 -0
- package/frontend/build/assets/index-Dw0tLRur.js +1 -0
- package/frontend/build/assets/index-DwXVBZsv.js +1 -0
- package/frontend/build/assets/index-DyaHYcgL.js +1 -0
- package/frontend/build/assets/index-DzBQLoNi.js +3022 -0
- package/frontend/build/assets/index-GrVsVGKe.js +1 -0
- package/frontend/build/assets/index-IzGzRXKT.js +1 -0
- package/frontend/build/assets/index-MHTC5Jaf.js +1 -0
- package/frontend/build/assets/index-PDPwUSMg.js +34 -0
- package/frontend/build/assets/index-QYahACFP.css +1 -0
- package/frontend/build/assets/index-QkZPwKD6.js +88 -0
- package/frontend/build/assets/index-Tg84pa9I.js +88 -0
- package/frontend/build/assets/index-UL4MAKLb.js +88 -0
- package/frontend/build/assets/index-aa34KBYr.js +34 -0
- package/frontend/build/assets/index-ajvK6t0Y.js +1 -0
- package/frontend/build/assets/index-b5SryupN.js +1 -0
- package/frontend/build/assets/index-d3LI8LJL.js +4 -0
- package/frontend/build/assets/index-e1kUgjjO.js +1 -0
- package/frontend/build/assets/index-jTalI0G5.js +1 -0
- package/frontend/build/assets/index-jZroxcSG.js +1 -0
- package/frontend/build/assets/index-kLEe-31q.js +3022 -0
- package/frontend/build/assets/index-nxD1J_1U.js +1 -0
- package/frontend/build/assets/index-qD9Q6D9I.js +1 -0
- package/frontend/build/assets/index-uBZFl8l2.js +1 -0
- package/frontend/build/assets/index-wr8bxnDK.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-B4NwmABd.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-B4oNPU3q.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-BBmwAav-.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-BOOc15c_.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-BY9Af5Nc.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-Bej651CN.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-C2vb4Dqf.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CL2618tE.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CLxSBkmO.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-C_JTuf1y.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CcJN846R.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CijuxZr1.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-CmP-e403.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-Cs16N-Xd.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-D06MdY7a.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-DdgjuITP.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-DuLmC4Hy.js +1 -0
- package/frontend/build/assets/index.vue_vue_type_script_setup_true_lang-i_-VJTVk.js +1 -0
- package/frontend/build/assets/logo-B8LLnbYy.jpg +0 -0
- package/frontend/build/assets/memory-C4zB60HJ.js +1 -0
- package/frontend/build/assets/memory-DHzPXs82.js +1 -0
- package/frontend/build/assets/presets-8ZEu20ZL.js +1 -0
- package/frontend/build/assets/presets-Bbyt0PjB.js +1 -0
- package/frontend/build/assets/presets-DGMnsFyv.js +1 -0
- package/frontend/build/assets/presets-DqF27psW.js +1 -0
- package/frontend/build/assets/presets-N8YNqfPr.js +1 -0
- package/frontend/build/assets/presets-cCI64Dxi.js +1 -0
- package/frontend/build/assets/preview-close-one-BtVZjDje.js +1 -0
- package/frontend/build/assets/preview-close-one-CduaZ9go.js +1 -0
- package/frontend/build/assets/preview-close-one-DQdsMFNB.js +1 -0
- package/frontend/build/assets/preview-close-one-DZiBTyj3.js +1 -0
- package/frontend/build/assets/preview-close-one-ZEGMXVTp.js +1 -0
- package/frontend/build/assets/preview-close-one-vOfiPsm0.js +1 -0
- package/frontend/build/assets/preview-open--FMuWVpI.js +1 -0
- package/frontend/build/assets/preview-open-5axv2eoi.js +1 -0
- package/frontend/build/assets/preview-open-BwhyOZZZ.js +1 -0
- package/frontend/build/assets/preview-open-CEgCXCaz.js +1 -0
- package/frontend/build/assets/preview-open-CIsmwiay.js +1 -0
- package/frontend/build/assets/preview-open-DqXcn0Io.js +1 -0
- package/frontend/build/assets/processors-0_RUgaZm.js +1 -0
- package/frontend/build/assets/processors-BGAbvhSk.js +1 -0
- package/frontend/build/assets/processors-CJsyXjR7.js +1 -0
- package/frontend/build/assets/processors-CmJ007yb.js +1 -0
- package/frontend/build/assets/processors-CsDJer4R.js +1 -0
- package/frontend/build/assets/processors-on-PUe_q.js +1 -0
- package/frontend/build/assets/prop-BjyUHhTu.js +1 -0
- package/frontend/build/assets/text-BU3n8x_S.js +21 -0
- package/frontend/build/assets/text-BdCfEojD.js +21 -0
- package/frontend/build/assets/text-BfkuQm58.js +21 -0
- package/frontend/build/assets/text-BhKp8kwX.js +21 -0
- package/frontend/build/assets/text-C8WlRvWq.js +21 -0
- package/frontend/build/assets/text-Dm8ZXeiW.js +21 -0
- package/frontend/build/assets/toolGroup-BpThfFxc.js +1 -0
- package/frontend/build/assets/toolGroup-C7yi3DD-.js +1 -0
- package/frontend/build/assets/toolGroup-Cl_28ogB.js +1 -0
- package/frontend/build/assets/toolGroup-CvTMJceG.js +1 -0
- package/frontend/build/assets/toolGroup-DIZrVG-u.js +1 -0
- package/frontend/build/assets/toolGroup-YtViuyrx.js +1 -0
- package/frontend/build/assets/tools-BWpxaWcy.js +1 -0
- package/frontend/build/assets/tools-CivF5Y63.js +1 -0
- package/frontend/build/assets/tools-ClM2lWje.js +1 -0
- package/frontend/build/assets/tools-DlNqOoYG.js +1 -0
- package/frontend/build/assets/tools-DrffVcid.js +1 -0
- package/frontend/build/assets/tools-VKwjF6eb.js +1 -0
- package/frontend/build/favicon.jpg +0 -0
- package/frontend/build/index.html +537 -0
- package/package.json +71 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-Cs16N-Xd.js";import"./index-DzBQLoNi.js";import"./headers-CYAAtr6C.js";import"./FormItem-B_V_gknG.js";import"./text-C8WlRvWq.js";export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as r}from"./ErrorTip.vue_vue_type_script_setup_true_lang-BTf_XpHq.js";import{k as c,b as e,o as n}from"./index-CJIWqxBN.js";const t={};function _(s,a){const o=r;return n(),e(o,{type:"403"})}const i=c(t,[["render",_]]);export{i as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{m as L,c as h,o as k,a as o,X as Z,U as _,d as O,L as F,r as B,M as q,s as E,v as X,e as a,w as t,Y,i as S,u as l,t as N,Z as J,$ as C,y as p,C as U,E as i,V as x,g as w,F as Q,A as ee,a0 as I,B as R,z as le,p as W,k as ae}from"./index-DJdQ0nV5.js";import{f as te}from"./presets-8ZEu20ZL.js";import{_ as f}from"./FormItem-D5nKwNGe.js";import{N as v}from"./Grid-BNlPkf-g.js";import{_ as r}from"./FormItemGridItem-DaKl8_2L.js";import{N as c}from"./InputNumber-BjfLyebn.js";import{N as m}from"./DynamicTags-Bmg43ONH.js";import"./prop-BjyUHhTu.js";const se={style:{display:"inline-block"},viewBox:"0 0 48 48",width:"1.2em",height:"1.2em"};function ne(y,u){return k(),h("svg",se,u[0]||(u[0]=[o("path",{fill:"currentColor","fill-rule":"evenodd",d:"m16.871 33.044l-.873 11.66c-.062.82.667 1.383 1.318 1.018c4.613-2.584 19.062-12.074 26.386-32.932c.336-.957-.567-1.82-1.337-1.28c-4.326 3.03-13.78 9.29-19.623 10.484c0 0 3.742-2.6 5.981-6.588a1.2 1.2 0 0 0-.043-1.245L20.513 2.389c-.484-.697-1.478-.408-1.652.481l-2.543 12.937L4.384 26.223c-.598.522-.476 1.577.215 1.856zm21.104-4.596c-.756 1.055-2.384 3.224-3.887 4.55c-.3.265-.26.709.084.925l7.943 4.986c.478.3 1.123-.056 1.043-.576c-.37-2.383-1.434-7.351-4.125-9.959c-.3-.29-.819-.26-1.059.074","clip-rule":"evenodd"},null,-1)]))}const oe=L({name:"icon-park-outline-star-one",render:ne}),re={style:{display:"inline-block"},viewBox:"0 0 48 48",width:"1.2em",height:"1.2em"};function de(y,u){return k(),h("svg",re,u[0]||(u[0]=[o("path",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4",d:"M18 6H8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2Zm0 22H8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V30a2 2 0 0 0-2-2Zm17-8a7 7 0 1 0 0-14a7 7 0 0 0 0 14Zm5 8H30a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V30a2 2 0 0 0-2-2Z"},null,-1)]))}const ue=L({name:"icon-park-outline-system",render:de}),ie={style:{display:"inline-block"},viewBox:"0 0 48 48",width:"1.2em",height:"1.2em"};function pe(y,u){return k(),h("svg",ie,u[0]||(u[0]=[Z('<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="4"><path stroke-linejoin="round" d="M20 10H6a2 2 0 0 0-2 2v26a2 2 0 0 0 2 2h36a2 2 0 0 0 2-2v-2.5"></path><path d="M10 23h8m-8 8h24"></path><circle cx="34" cy="16" r="6" stroke-linejoin="round"></circle><path stroke-linejoin="round" d="M44 28.419C42.047 24.602 38 22 34 22s-5.993 1.133-8.05 3"></path></g>',1)]))}const me=L({name:"icon-park-outline-permissions",render:pe}),fe={style:{display:"inline-block"},viewBox:"0 0 48 48",width:"1.2em",height:"1.2em"};function ve(y,u){return k(),h("svg",fe,u[0]||(u[0]=[o("g",{fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"4"},[o("rect",{width:"24",height:"18",x:"12",y:"20",rx:"2"}),o("path",{"stroke-linecap":"round",d:"M18 20v-6c0-3.682 2.686-6 6-6c1.85 0 3.503.722 4.604 2a5.6 5.6 0 0 1 1.102 2M24 28v2M6 18v12m36-12v12"})],-1)]))}const be=L({name:"icon-park-outline-electronic-locks-open",render:ve});function ce(){return _.Get("/api/config/")}function ge(y){return _.Post("/api/config/",y)}const he={class:"config-container"},ke={class:"layout-container"},ye={class:"sidebar"},xe={class:"version-info"},we={class:"content-area"},Ue={class:"preset-map-container"},Pe={class:"preset-map-keyword-container"},Ce={class:"action-bar"},Le=O({__name:"index",setup(y){const u=F(),g=B("basic"),G=B(null);function P(d){return()=>W(I,null,{default:()=>W(d)})}const A=[{label:"基础设置",key:"basic",icon:P(ue)},{label:"模型与对话",key:"llm",icon:P(me)},{label:"权限管理",key:"management",icon:P(be)},{label:"Chaite配置",key:"chaite",icon:P(oe)}];function K(d){g.value=d}const s=q({version:"3.0.0",basic:{toggleMode:"at",togglePrefix:"#chat",debug:!1,commandPrefix:"^#chatgpt"},bym:{enable:!1,hit:["bym"],probability:.02,defaultPreset:"",presetPrefix:"",presetMap:[],maxTokens:0,temperature:-1,sendReasoning:!1},llm:{defaultModel:"",embeddingModel:"gemini-embedding-exp-03-07",dimensions:0,defaultChatPresetId:"",enableCustomPreset:!1,customPresetUserWhiteList:[],customPresetUserBlackList:[],promptBlockWords:[],responseBlockWords:[],blockStrategy:"full",blockWordMask:"**",enableGroupContext:!1,groupContextLength:20,groupContextTemplatePrefix:`Latest several messages in the group chat:
|
|
2
|
+
| sender.card | sender.nickname | sender.user_id | sender.role | sender.title | time | messageId | raw_message |
|
|
3
|
+
|---|---|---|---|---|---|---|---|`,groupContextTemplateMessage:"| ${message.sender.card} | ${message.sender.nickname} | ${message.sender.user_id} | ${message.sender.role} | ${message.sender.title} | ${message.time} | ${message.messageId} | ${message.raw_message} |",groupContextTemplateSuffix:`
|
|
4
|
+
`},management:{blackGroups:[],whiteGroups:[],blackUsers:[],whiteUsers:[],defaultRateLimit:0},chaite:{dataDir:"data",processorsDirPath:"utils/processors",toolsDirPath:"utils/tools",cloudBaseUrl:"",cloudApiKey:"",authKey:"",host:"",port:48370}});async function z(){const d=await ce();return d.isSuccess?u.success("配置保存成功"):u.error("配置保存失败"),Object.assign(s,d.data),Array.isArray(s.bym.presetMap)||(s.bym.presetMap=[]),d.data}async function V(){(await ge(s)).isSuccess?u.success("配置保存成功"):u.error("配置保存失败")}const T=B([]);function j(){te({}).then(d=>{T.value=d.data}).catch(d=>{console.error(d)})}const M=E(()=>T.value.map(d=>({label:d.name,value:d.id})));function $(d,e){return e.label.toLowerCase().includes(d.toLowerCase())}return X(async()=>{try{await z(),j()}catch(d){console.error("加载配置失败:",d),u.error("配置加载失败")}}),(d,e)=>{const H=Y;return k(),h("div",he,[a(l(p),{title:"系统配置",class:"main-card"},{default:t(()=>[o("div",ke,[o("div",ye,[a(H,{value:l(g),"onUpdate:value":[e[0]||(e[0]=n=>S(g)?g.value=n:null),K],options:A},null,8,["value"]),o("div",xe,[o("span",null,"版本: "+N(s.version),1)])]),o("div",we,[a(l(J),{ref_key:"tabsRef",ref:G,value:l(g),"onUpdate:value":e[42]||(e[42]=n=>S(g)?g.value=n:null),type:"line",animated:"",class:"responsive-tabs"},{default:t(()=>[a(l(C),{name:"basic",tab:"基础设置"},{default:t(()=>[a(l(p),{class:"inner-card"},{header:t(()=>e[43]||(e[43]=[o("div",{class:"card-header"},[o("div",{class:"card-header"},[o("div",{class:"card-title"}," 触发与命令 "),o("div",{class:"card-subtitle"}," 设置机器人的触发方式和基本命令 ")])],-1)])),default:t(()=>[a(l(f),{"label-placement":"left","label-width":"auto",model:s.basic},{default:t(()=>[a(l(v),{cols:24,"x-gap":12,"y-gap":16},{default:t(()=>[a(l(r),{span:"24 s:24 m:12",label:"触发方式",path:"toggleMode"},{default:t(()=>[a(l(U),{value:s.basic.toggleMode,"onUpdate:value":e[1]||(e[1]=n=>s.basic.toggleMode=n),options:[{label:"@ 触发",value:"at"},{label:"前缀触发",value:"prefix"}]},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"触发前缀",path:"togglePrefix"},{default:t(()=>[a(l(i),{value:s.basic.togglePrefix,"onUpdate:value":e[2]||(e[2]=n=>s.basic.togglePrefix=n),placeholder:"仅前缀触发时有效",disabled:s.basic.toggleMode!=="prefix"},null,8,["value","disabled"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"命令前缀",path:"commandPrefix"},{default:t(()=>[a(l(i),{value:s.basic.commandPrefix,"onUpdate:value":e[3]||(e[3]=n=>s.basic.commandPrefix=n),placeholder:"例如: ^#chatgpt"},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"调试模式",path:"debug"},{default:t(()=>[a(l(x),{value:s.basic.debug,"onUpdate:value":e[4]||(e[4]=n=>s.basic.debug=n)},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),a(l(C),{name:"llm",tab:"模型与对话"},{default:t(()=>[a(l(p),{class:"inner-card mb-4"},{header:t(()=>e[44]||(e[44]=[o("div",{class:"card-header"},[o("div",{class:"card-title"}," 模型配置 "),o("div",{class:"card-subtitle"}," 设置默认使用的模型和嵌入模型 ")],-1)])),default:t(()=>[a(l(f),{"label-placement":"left","label-width":"auto",model:s.llm},{default:t(()=>[a(l(v),{cols:24,"x-gap":12,"y-gap":16},{default:t(()=>[a(l(r),{span:"24 s:24 m:12",label:"嵌入模型",path:"embeddingModel"},{default:t(()=>[a(l(i),{value:s.llm.embeddingModel,"onUpdate:value":e[5]||(e[5]=n=>s.llm.embeddingModel=n),placeholder:"输入嵌入模型名称"},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"嵌入维度",path:"dimensions"},{default:t(()=>[a(l(c),{value:s.llm.dimensions,"onUpdate:value":e[6]||(e[6]=n=>s.llm.dimensions=n),clearable:"",placeholder:"0表示自动",min:0,style:{width:"100%"}},null,8,["value"])]),_:1}),a(l(r),{span:"24",label:"默认对话预设",path:"defaultChatPresetId"},{default:t(()=>[a(l(U),{value:s.llm.defaultChatPresetId,"onUpdate:value":e[7]||(e[7]=n=>s.llm.defaultChatPresetId=n),options:l(M),filterable:"",placeholder:"选择默认对话预设",clearable:""},null,8,["value","options"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(l(p),{class:"inner-card mb-4"},{header:t(()=>e[45]||(e[45]=[o("div",{class:"card-header"},[o("div",{class:"card-title"}," 预设控制 "),o("div",{class:"card-subtitle"}," 设置用户预设切换权限 ")],-1)])),default:t(()=>[a(l(f),{"label-placement":"left","label-width":"auto",model:s.llm},{default:t(()=>[a(l(v),{cols:24,"x-gap":12,"y-gap":16},{default:t(()=>[a(l(r),{span:"24 s:24 m:12",label:"允许切换预设",path:"enableCustomPreset"},{default:t(()=>[a(l(x),{value:s.llm.enableCustomPreset,"onUpdate:value":e[8]||(e[8]=n=>s.llm.enableCustomPreset=n)},null,8,["value"])]),_:1}),a(l(r),{span:"24",label:"预设白名单用户",path:"customPresetUserWhiteList"},{default:t(()=>[a(l(m),{value:s.llm.customPresetUserWhiteList,"onUpdate:value":e[9]||(e[9]=n=>s.llm.customPresetUserWhiteList=n),placeholder:"输入用户ID并按回车添加"},null,8,["value"])]),_:1}),a(l(r),{span:"24",label:"预设黑名单用户",path:"customPresetUserBlackList"},{default:t(()=>[a(l(m),{value:s.llm.customPresetUserBlackList,"onUpdate:value":e[10]||(e[10]=n=>s.llm.customPresetUserBlackList=n),placeholder:"输入用户ID并按回车添加"},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(l(p),{class:"inner-card"},{header:t(()=>e[46]||(e[46]=[o("div",{class:"card-header"},[o("div",{class:"card-title"}," 伪人模式 "),o("div",{class:"card-subtitle"}," 设置和管理伪人模式配置 ")],-1)])),default:t(()=>[a(l(f),{"label-placement":"left","label-width":"auto",model:s.bym},{default:t(()=>[a(l(v),{cols:24,"x-gap":12,"y-gap":16},{default:t(()=>[a(l(r),{span:"24 s:24 m:12",label:"启用伪人模式",path:"enable"},{default:t(()=>[a(l(x),{value:s.bym.enable,"onUpdate:value":e[11]||(e[11]=n=>s.bym.enable=n)},null,8,["value"])]),_:1}),a(l(r),{span:"24",label:"伪人触发词",path:"hit","span-feedback":24},{feedback:t(()=>e[47]||(e[47]=[o("span",{class:"form-hint"},"包含这些词时将必定触发伪人模式",-1)])),default:t(()=>[a(l(m),{value:s.bym.hit,"onUpdate:value":e[12]||(e[12]=n=>s.bym.hit=n),placeholder:"输入触发词并按回车添加"},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"随机触发概率",path:"probability","span-feedback":24},{feedback:t(()=>e[48]||(e[48]=[o("span",{class:"form-hint"},"不包含触发词时随机触发的概率",-1)])),default:t(()=>[a(l(c),{value:s.bym.probability,"onUpdate:value":e[13]||(e[13]=n=>s.bym.probability=n),min:0,max:1,step:.01,style:{width:"100%"}},{suffix:t(()=>[w(N((s.bym.probability*100).toFixed(0))+"% ",1)]),_:1},8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"默认预设",path:"defaultPreset","span-feedback":24},{feedback:t(()=>e[49]||(e[49]=[o("span",{class:"form-hint"},"伪人模式的默认预设",-1)])),default:t(()=>[a(l(U),{value:s.bym.defaultPreset,"onUpdate:value":e[14]||(e[14]=n=>s.bym.defaultPreset=n),options:l(M),filterable:"","filter-option":$,placeholder:"选择默认预设",clearable:""},null,8,["value","options"])]),_:1}),a(l(r),{span:"24",label:"预设前缀",path:"presetPrefix","span-feedback":24},{feedback:t(()=>e[50]||(e[50]=[o("span",{class:"form-hint"},"会加在所有伪人模式预设前的通用前缀,可用于配置通用的伪人发言风格",-1)])),default:t(()=>[a(l(i),{value:s.bym.presetPrefix,"onUpdate:value":e[15]||(e[15]=n=>s.bym.presetPrefix=n),type:"textarea",placeholder:"输入预设前缀",autosize:{minRows:3,maxRows:6}},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"最大Token数",path:"maxTokens","span-feedback":24},{feedback:t(()=>e[51]||(e[51]=[o("span",{class:"form-hint"},"大于0时会覆盖预设中的maxToken值",-1)])),default:t(()=>[a(l(c),{value:s.bym.maxTokens,"onUpdate:value":e[16]||(e[16]=n=>s.bym.maxTokens=n),min:0,placeholder:"0表示不限制",style:{width:"100%"}},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"温度",path:"temperature","span-feedback":24},{feedback:t(()=>e[52]||(e[52]=[o("span",{class:"form-hint"},"大于等于0时会覆盖预设中的temperature值,-1表示使用预设值",-1)])),default:t(()=>[a(l(c),{value:s.bym.temperature,"onUpdate:value":e[17]||(e[17]=n=>s.bym.temperature=n),min:-1,max:2,step:.1,placeholder:"-1表示使用预设值",style:{width:"100%"}},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"发送思考过程",path:"sendReasoning"},{default:t(()=>[a(l(x),{value:s.bym.sendReasoning,"onUpdate:value":e[18]||(e[18]=n=>s.bym.sendReasoning=n)},null,8,["value"])]),_:1}),a(l(r),{span:"24",label:"预设映射",path:"presetMap","span-feedback":24},{feedback:t(()=>e[58]||(e[58]=[o("span",{class:"form-hint"},"按优先级排序,消息包含特定关键词时使用对应的预设",-1)])),default:t(()=>[o("div",Ue,[(k(!0),h(Q,null,ee(s.bym.presetMap,(n,D)=>(k(),h("div",{key:D,class:"preset-map-item"},[o("div",Pe,[a(l(m),{value:n.keywords,"onUpdate:value":b=>n.keywords=b,placeholder:"添加关键词",class:"preset-map-keywords"},null,8,["value","onUpdate:value"])]),a(l(I),{class:"preset-map-arrow"},{default:t(()=>e[53]||(e[53]=[o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},[o("path",{fill:"currentColor",d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"})],-1)])),_:1}),a(l(U),{value:n.presetId,"onUpdate:value":b=>n.presetId=b,class:"preset-map-preset",options:l(M),filterable:"","filter-option":$,placeholder:"选择预设",clearable:""},null,8,["value","onUpdate:value","options"]),a(l(c),{value:n.priority,"onUpdate:value":b=>n.priority=b,class:"preset-map-priority",min:0,placeholder:"优先级"},null,8,["value","onUpdate:value"]),a(l(x),{value:n.recall,"onUpdate:value":b=>n.recall=b,class:"preset-map-recall","default-value":!1},{checked:t(()=>e[54]||(e[54]=[w(" 撤回 ")])),unchecked:t(()=>e[55]||(e[55]=[w(" 保留 ")])),_:2},1032,["value","onUpdate:value"]),a(l(R),{type:"error",quaternary:"",circle:"",class:"preset-map-delete",onClick:b=>s.bym.presetMap.splice(D,1)},{default:t(()=>[a(l(I),null,{default:t(()=>e[56]||(e[56]=[o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},[o("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"})],-1)])),_:1})]),_:2},1032,["onClick"])]))),128)),a(l(R),{type:"primary",dashed:"",class:"preset-map-add",onClick:e[19]||(e[19]=n=>s.bym.presetMap.push({keywords:[],presetId:"",priority:0,recall:!1}))},{default:t(()=>e[57]||(e[57]=[w(" 添加关键词预设映射 ")])),_:1})])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(l(p),{class:"inner-card"},{header:t(()=>e[59]||(e[59]=[o("div",{class:"card-header"},[o("div",{class:"card-title"}," 内容过滤 "),o("div",{class:"card-subtitle"}," 设置敏感词过滤规则 ")],-1)])),default:t(()=>[a(l(f),{"label-placement":"left","label-width":"auto",model:s.llm},{default:t(()=>[a(l(v),{cols:24,"x-gap":12,"y-gap":16},{default:t(()=>[a(l(r),{span:"24",label:"用户输入屏蔽词",path:"promptBlockWords"},{default:t(()=>[a(l(m),{value:s.llm.promptBlockWords,"onUpdate:value":e[20]||(e[20]=n=>s.llm.promptBlockWords=n),placeholder:"输入屏蔽词并按回车添加"},null,8,["value"])]),_:1}),a(l(r),{span:"24",label:"回复屏蔽词",path:"responseBlockWords"},{default:t(()=>[a(l(m),{value:s.llm.responseBlockWords,"onUpdate:value":e[21]||(e[21]=n=>s.llm.responseBlockWords=n),placeholder:"输入屏蔽词并按回车添加"},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"屏蔽策略",path:"blockStrategy"},{default:t(()=>[a(l(U),{value:s.llm.blockStrategy,"onUpdate:value":e[22]||(e[22]=n=>s.llm.blockStrategy=n),options:[{label:"完全屏蔽消息",value:"full"},{label:"仅屏蔽关键词",value:"mask"}]},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"屏蔽替换字符",path:"blockWordMask",disabled:s.llm.blockStrategy!=="mask"},{default:t(()=>[a(l(i),{value:s.llm.blockWordMask,"onUpdate:value":e[23]||(e[23]=n=>s.llm.blockWordMask=n),placeholder:"例如: ***",disabled:s.llm.blockStrategy!=="mask"},null,8,["value","disabled"])]),_:1},8,["disabled"])]),_:1})]),_:1},8,["model"])]),_:1}),a(l(p),{class:"inner-card mb-4"},{header:t(()=>e[60]||(e[60]=[o("div",{class:"card-header"},[o("div",{class:"card-title"}," 群聊上下文 "),o("div",{class:"card-subtitle"}," 配置群组上下文相关参数 ")],-1)])),default:t(()=>[a(l(f),{"label-placement":"left","label-width":"auto",model:s.llm},{default:t(()=>[a(l(v),{cols:24,"x-gap":12,"y-gap":16},{default:t(()=>[a(l(r),{span:"24 s:24 m:12",label:"启用群组上下文",path:"enableGroupContext"},{default:t(()=>[a(l(x),{value:s.llm.enableGroupContext,"onUpdate:value":e[24]||(e[24]=n=>s.llm.enableGroupContext=n)},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"上下文长度",path:"groupContextLength","span-feedback":24},{feedback:t(()=>e[61]||(e[61]=[o("span",{class:"form-hint"},"保留的群聊消息数量",-1)])),default:t(()=>[a(l(c),{value:s.llm.groupContextLength,"onUpdate:value":e[25]||(e[25]=n=>s.llm.groupContextLength=n),min:0,max:100,style:{width:"100%"},placeholder:"群组上下文保留的消息数"},null,8,["value"])]),_:1}),a(l(r),{span:"24",label:"上下文模板前缀",path:"groupContextTemplatePrefix","span-feedback":24},{feedback:t(()=>e[62]||(e[62]=[o("span",{class:"form-hint"},"用于组装群聊上下文提示词的模板前缀",-1)])),default:t(()=>[a(l(i),{value:s.llm.groupContextTemplatePrefix,"onUpdate:value":e[26]||(e[26]=n=>s.llm.groupContextTemplatePrefix=n),type:"textarea",placeholder:"输入上下文模板前缀",autosize:{minRows:3,maxRows:6}},null,8,["value"])]),_:1}),a(l(r),{span:"24",label:"上下文消息模板",path:"groupContextTemplateMessage","span-feedback":24},{feedback:t(()=>e[63]||(e[63]=[o("span",{class:"form-hint"},"用于组装群聊上下文提示词的模板内容部分,使用${message.xxx}引用消息属性",-1)])),default:t(()=>[a(l(i),{value:s.llm.groupContextTemplateMessage,"onUpdate:value":e[27]||(e[27]=n=>s.llm.groupContextTemplateMessage=n),type:"textarea",placeholder:"输入上下文消息模板",autosize:{minRows:3,maxRows:6}},null,8,["value"])]),_:1}),a(l(r),{span:"24",label:"上下文模板后缀",path:"groupContextTemplateSuffix","span-feedback":24},{feedback:t(()=>e[64]||(e[64]=[o("span",{class:"form-hint"},"用于组装群聊上下文提示词的模板后缀",-1)])),default:t(()=>[a(l(i),{value:s.llm.groupContextTemplateSuffix,"onUpdate:value":e[28]||(e[28]=n=>s.llm.groupContextTemplateSuffix=n),type:"textarea",placeholder:"输入上下文模板后缀",autosize:{minRows:2,maxRows:4}},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),a(l(C),{name:"management",tab:"权限管理"},{default:t(()=>[a(l(p),{class:"inner-card mb-4"},{header:t(()=>e[65]||(e[65]=[o("div",{class:"card-header"},[o("div",{class:"card-title"}," 访问控制 "),o("div",{class:"card-subtitle"}," 设置黑白名单控制机器人访问权限 ")],-1)])),default:t(()=>[a(l(f),{"label-placement":"left","label-width":"auto",model:s.management},{default:t(()=>[a(l(v),{cols:24,"x-gap":12,"y-gap":16},{default:t(()=>[a(l(r),{span:"24 s:24 m:12",label:"黑名单群组",path:"blackGroups"},{default:t(()=>[a(l(m),{value:s.management.blackGroups,"onUpdate:value":e[29]||(e[29]=n=>s.management.blackGroups=n),placeholder:"输入群号并按回车添加"},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"白名单群组",path:"whiteGroups"},{default:t(()=>[a(l(m),{value:s.management.whiteGroups,"onUpdate:value":e[30]||(e[30]=n=>s.management.whiteGroups=n),placeholder:"输入群号并按回车添加"},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"黑名单用户",path:"blackUsers"},{default:t(()=>[a(l(m),{value:s.management.blackUsers,"onUpdate:value":e[31]||(e[31]=n=>s.management.blackUsers=n),placeholder:"输入用户ID并按回车添加"},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"白名单用户",path:"whiteUsers"},{default:t(()=>[a(l(m),{value:s.management.whiteUsers,"onUpdate:value":e[32]||(e[32]=n=>s.management.whiteUsers=n),placeholder:"输入用户ID并按回车添加"},null,8,["value"])]),_:1}),a(l(r),{span:"24",label:"对话速率限制",path:"defaultRateLimit"},{default:t(()=>[a(l(c),{value:s.management.defaultRateLimit,"onUpdate:value":e[33]||(e[33]=n=>s.management.defaultRateLimit=n),placeholder:"0表示不限制",min:0,style:{width:"100%"}},{suffix:t(()=>e[66]||(e[66]=[w(" 次/分钟 ")])),_:1},8,["value"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1}),a(l(C),{name:"chaite",tab:"Chaite配置"},{default:t(()=>[a(l(p),{class:"inner-card mb-4"},{header:t(()=>e[67]||(e[67]=[o("div",{class:"card-header"},[o("div",{class:"card-title"}," 文件与目录 "),o("div",{class:"card-subtitle"}," 设置Chaite相关文件目录 ")],-1)])),default:t(()=>[a(l(f),{"label-placement":"left","label-width":"auto",model:s.chaite},{default:t(()=>[a(l(v),{cols:24,"x-gap":12,"y-gap":16},{default:t(()=>[a(l(r),{span:"24 s:24 m:12",label:"数据目录",path:"dataDir"},{default:t(()=>[a(l(i),{value:s.chaite.dataDir,"onUpdate:value":e[34]||(e[34]=n=>s.chaite.dataDir=n),placeholder:"相对于插件目录"},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"处理器目录",path:"processorsDirPath"},{default:t(()=>[a(l(i),{value:s.chaite.processorsDirPath,"onUpdate:value":e[35]||(e[35]=n=>s.chaite.processorsDirPath=n),placeholder:"相对于插件目录"},null,8,["value"])]),_:1}),a(l(r),{span:"24",label:"工具目录",path:"toolsDirPath"},{default:t(()=>[a(l(i),{value:s.chaite.toolsDirPath,"onUpdate:value":e[36]||(e[36]=n=>s.chaite.toolsDirPath=n),placeholder:"相对于插件目录"},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(l(p),{class:"inner-card"},{header:t(()=>e[68]||(e[68]=[o("div",{class:"card-header"},[o("div",{class:"card-title"}," API与管理面板 "),o("div",{class:"card-subtitle"}," 设置云端API和管理面板配置 ")],-1)])),default:t(()=>[a(l(f),{"label-placement":"left","label-width":"auto",model:s.chaite},{default:t(()=>[a(l(v),{cols:24,"x-gap":12,"y-gap":16},{default:t(()=>[a(l(r),{span:"24",label:"云端API URL",path:"cloudBaseUrl"},{default:t(()=>[a(l(i),{value:s.chaite.cloudBaseUrl,"onUpdate:value":e[37]||(e[37]=n=>s.chaite.cloudBaseUrl=n),placeholder:"输入云端API URL"},null,8,["value"])]),_:1}),a(l(r),{span:"24",label:"云端API Key",path:"cloudApiKey"},{default:t(()=>[a(l(i),{value:s.chaite.cloudApiKey,"onUpdate:value":e[38]||(e[38]=n=>s.chaite.cloudApiKey=n),type:"password","show-password-on":"click",placeholder:"输入云端API Key"},null,8,["value"])]),_:1}),a(l(r),{span:"24",label:"认证密钥",path:"authKey"},{default:t(()=>[a(l(i),{value:s.chaite.authKey,"onUpdate:value":e[39]||(e[39]=n=>s.chaite.authKey=n),type:"password","show-password-on":"click",placeholder:"非必要勿修改"},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"监听地址",path:"host"},{default:t(()=>[a(l(i),{value:s.chaite.host,"onUpdate:value":e[40]||(e[40]=n=>s.chaite.host=n),placeholder:"管理面板监听地址"},null,8,["value"])]),_:1}),a(l(r),{span:"24 s:24 m:12",label:"监听端口",path:"port"},{default:t(()=>[a(l(c),{value:s.chaite.port,"onUpdate:value":e[41]||(e[41]=n=>s.chaite.port=n),min:1,max:65535,style:{width:"100%"},placeholder:"输入监听端口"},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})]),_:1},8,["value"]),o("div",Ce,[a(l(le),null,{default:t(()=>[a(l(R),{type:"primary",onClick:V},{default:t(()=>e[69]||(e[69]=[w(" 保存配置 ")])),_:1})]),_:1})])])])]),_:1})])}}}),Ne=ae(Le,[["__scopeId","data-v-ade6bc4b"]]);export{Ne as default};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import{p as S,a0 as Le,a1 as St,d as U,a8 as ps,ae as hs,af as Dn,aD as fs,s as ot,ai as Ke,aj as ds,a9 as gs,aa as ms,ac as ks,ab as ws,U as xs,c as C,o as y,a as c,ak as Nn,l as _s,aE as bs,r as ne,v as Ts,aF as ys,t as z,g as fe,n as K,F as Qe,A as Je,e as P,u as v,ap as oe,b as _e,w as X,N as At,aG as Et,B as et,I as _n,y as Rt,aH as vs,k as Ss}from"./index-kLEe-31q.js";import{N as As}from"./Spin-C7sqRNqw.js";function Es(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},S("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),S("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"}))}function Rs(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},S("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),S("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),S("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),S("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),S("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),S("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"}))}function Cs(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},S("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),S("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),S("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),S("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),S("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),S("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"}))}function Ls(){return S("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},S("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),S("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),S("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"}))}const Is=Le("result",`
|
|
2
|
+
color: var(--n-text-color);
|
|
3
|
+
line-height: var(--n-line-height);
|
|
4
|
+
font-size: var(--n-font-size);
|
|
5
|
+
transition:
|
|
6
|
+
color .3s var(--n-bezier);
|
|
7
|
+
`,[Le("result-icon",`
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
transition: color .3s var(--n-bezier);
|
|
11
|
+
`,[St("status-image",`
|
|
12
|
+
font-size: var(--n-icon-size);
|
|
13
|
+
width: 1em;
|
|
14
|
+
height: 1em;
|
|
15
|
+
`),Le("base-icon",`
|
|
16
|
+
color: var(--n-icon-color);
|
|
17
|
+
font-size: var(--n-icon-size);
|
|
18
|
+
`)]),Le("result-content",{marginTop:"24px"}),Le("result-footer",`
|
|
19
|
+
margin-top: 24px;
|
|
20
|
+
text-align: center;
|
|
21
|
+
`),Le("result-header",[St("title",`
|
|
22
|
+
margin-top: 16px;
|
|
23
|
+
font-weight: var(--n-title-font-weight);
|
|
24
|
+
transition: color .3s var(--n-bezier);
|
|
25
|
+
text-align: center;
|
|
26
|
+
color: var(--n-title-text-color);
|
|
27
|
+
font-size: var(--n-title-font-size);
|
|
28
|
+
`),St("description",`
|
|
29
|
+
margin-top: 4px;
|
|
30
|
+
text-align: center;
|
|
31
|
+
font-size: var(--n-font-size);
|
|
32
|
+
`)])]),zs={403:Es,404:Rs,418:Cs,500:Ls,info:()=>S(ws,null),success:()=>S(ks,null),warning:()=>S(ms,null),error:()=>S(gs,null)},Os=Object.assign(Object.assign({},Dn.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),Ms=U({name:"Result",props:Os,slots:Object,setup(l){const{mergedClsPrefixRef:e,inlineThemeDisabled:t}=hs(l),n=Dn("Result","-result",Is,fs,l,e),s=ot(()=>{const{size:r,status:a}=l,{common:{cubicBezierEaseInOut:p},self:{textColor:h,lineHeight:f,titleTextColor:k,titleFontWeight:w,[Ke("iconColor",a)]:b,[Ke("fontSize",r)]:L,[Ke("titleFontSize",r)]:A,[Ke("iconSize",r)]:O}}=n.value;return{"--n-bezier":p,"--n-font-size":L,"--n-icon-size":O,"--n-line-height":f,"--n-text-color":h,"--n-title-font-size":A,"--n-title-font-weight":w,"--n-title-text-color":k,"--n-icon-color":b||""}}),i=t?ds("result",ot(()=>{const{size:r,status:a}=l;let p="";return r&&(p+=r[0]),a&&(p+=a[0]),p}),s,l):void 0;return{mergedClsPrefix:e,cssVars:t?void 0:s,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var l;const{status:e,$slots:t,mergedClsPrefix:n,onRender:s}=this;return s?.(),S("div",{class:[`${n}-result`,this.themeClass],style:this.cssVars},S("div",{class:`${n}-result-icon`},((l=t.icon)===null||l===void 0?void 0:l.call(t))||S(ps,{clsPrefix:n},{default:()=>zs[e]()})),S("div",{class:`${n}-result-header`},this.title?S("div",{class:`${n}-result-header__title`},this.title):null,this.description?S("div",{class:`${n}-result-header__description`},this.description):null),t.default&&S("div",{class:`${n}-result-content`},t),t.footer&&S("div",{class:`${n}-result-footer`},t.footer()))}});function Ds(){return xs.Get("/api/system/info")}const Ns={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},$s=U({name:"BrushOutline",render:function(e,t){return y(),C("svg",Ns,t[0]||(t[0]=[c("path",{d:"M452.37 59.63h0a40.49 40.49 0 0 0-57.26 0L184 294.74c23.08 4.7 46.12 27.29 49.26 49.26l219.11-227.11a40.49 40.49 0 0 0 0-57.26z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("path",{d:"M138 336c-29.88 0-54 24.5-54 54.86c0 23.95-20.88 36.57-36 36.57C64.56 449.74 92.82 464 120 464c39.78 0 72-32.73 72-73.14c0-30.36-24.12-54.86-54-54.86z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),Ps={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Bs=U({name:"ChatbubblesOutline",render:function(e,t){return y(),C("svg",Ps,t[0]||(t[0]=[c("path",{d:"M431 320.6c-1-3.6 1.2-8.6 3.3-12.2a33.68 33.68 0 0 1 2.1-3.1A162 162 0 0 0 464 215c.3-92.2-77.5-167-173.7-167c-83.9 0-153.9 57.1-170.3 132.9a160.7 160.7 0 0 0-3.7 34.2c0 92.3 74.8 169.1 171 169.1c15.3 0 35.9-4.6 47.2-7.7s22.5-7.2 25.4-8.3a26.44 26.44 0 0 1 9.3-1.7a26 26 0 0 1 10.1 2l56.7 20.1a13.52 13.52 0 0 0 3.9 1a8 8 0 0 0 8-8a12.85 12.85 0 0 0-.5-2.7z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{d:"M66.46 232a146.23 146.23 0 0 0 6.39 152.67c2.31 3.49 3.61 6.19 3.21 8s-11.93 61.87-11.93 61.87a8 8 0 0 0 2.71 7.68A8.17 8.17 0 0 0 72 464a7.26 7.26 0 0 0 2.91-.6l56.21-22a15.7 15.7 0 0 1 12 .2c18.94 7.38 39.88 12 60.83 12A159.21 159.21 0 0 0 284 432.11",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Fs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Us=U({name:"CodeSlashOutline",render:function(e,t){return y(),C("svg",Fs,t[0]||(t[0]=[c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M160 368L32 256l128-112"},null,-1),c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M352 368l128-112l-128-112"},null,-1),c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M304 96l-96 320"},null,-1)]))}}),Hs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Gs=U({name:"EyeOutline",render:function(e,t){return y(),C("svg",Hs,t[0]||(t[0]=[c("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),js={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ws=U({name:"FlaskOutline",render:function(e,t){return y(),C("svg",js,t[0]||(t[0]=[c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M176 48h160"},null,-1),c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M118 304h276"},null,-1),c("path",{d:"M208 48v93.48a64.09 64.09 0 0 1-9.88 34.18L73.21 373.49C48.4 412.78 76.63 464 123.08 464h265.84c46.45 0 74.68-51.22 49.87-90.51L313.87 175.66a64.09 64.09 0 0 1-9.87-34.18V48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),qs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Vs=U({name:"GitBranchOutline",render:function(e,t){return y(),C("svg",qs,t[0]||(t[0]=[Nn('<circle cx="160" cy="96" r="48" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></circle><circle cx="160" cy="416" r="48" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></circle><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M160 368V144"></path><circle cx="352" cy="160" r="48" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></circle><path d="M352 208c0 128-192 48-192 160" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path>',5)]))}}),Zs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ys=U({name:"LogoGithub",render:function(e,t){return y(),C("svg",Zs,t[0]||(t[0]=[c("path",{d:"M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9a17.56 17.56 0 0 0 3.8.4c8.3 0 11.5-6.1 11.5-11.4c0-5.5-.2-19.9-.3-39.1a102.4 102.4 0 0 1-22.6 2.7c-43.1 0-52.9-33.5-52.9-33.5c-10.2-26.5-24.9-33.6-24.9-33.6c-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8c11.2 19.6 26.2 25.1 39.6 25.1a63 63 0 0 0 25.6-6c2-14.8 7.8-24.9 14.2-30.7c-49.7-5.8-102-25.5-102-113.5c0-25.1 8.7-45.6 23-61.6c-2.3-5.8-10-29.2 2.2-60.8a18.64 18.64 0 0 1 5-.5c8.1 0 26.4 3.1 56.6 24.1a208.21 208.21 0 0 1 112.2 0c30.2-21 48.5-24.1 56.6-24.1a18.64 18.64 0 0 1 5 .5c12.2 31.6 4.5 55 2.2 60.8c14.3 16.1 23 36.6 23 61.6c0 88.2-52.4 107.6-102.3 113.3c8 7.1 15.2 21.1 15.2 42.5c0 30.7-.3 55.5-.3 63c0 5.4 3.1 11.5 11.4 11.5a19.35 19.35 0 0 0 4-.4C415.9 449.2 480 363.1 480 261.7C480 134.9 379.7 32 256 32z",fill:"currentColor"},null,-1)]))}}),Xs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ks=U({name:"PeopleOutline",render:function(e,t){return y(),C("svg",Xs,t[0]||(t[0]=[c("path",{d:"M402 168c-2.93 40.67-33.1 72-66 72s-63.12-31.32-66-72c-3-42.31 26.37-72 66-72s69 30.46 66 72z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("path",{d:"M336 304c-65.17 0-127.84 32.37-143.54 95.41c-2.08 8.34 3.15 16.59 11.72 16.59h263.65c8.57 0 13.77-8.25 11.72-16.59C463.85 335.36 401.18 304 336 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{d:"M200 185.94c-2.34 32.48-26.72 58.06-53 58.06s-50.7-25.57-53-58.06C91.61 152.15 115.34 128 147 128s55.39 24.77 53 57.94z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("path",{d:"M206 306c-18.05-8.27-37.93-11.45-59-11.45c-52 0-102.1 25.85-114.65 76.2c-1.65 6.66 2.53 13.25 9.37 13.25H154",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),Qs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Js=U({name:"PricetagOutline",render:function(e,t){return y(),C("svg",Qs,t[0]||(t[0]=[c("path",{d:"M435.25 48h-122.9a14.46 14.46 0 0 0-10.2 4.2L56.45 297.9a28.85 28.85 0 0 0 0 40.7l117 117a28.85 28.85 0 0 0 40.7 0L459.75 210a14.46 14.46 0 0 0 4.2-10.2v-123a28.66 28.66 0 0 0-28.7-28.8z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("path",{d:"M384 160a32 32 0 1 1 32-32a32 32 0 0 1-32 32z",fill:"currentColor"},null,-1)]))}}),er={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},tr=U({name:"RefreshOutline",render:function(e,t){return y(),C("svg",er,t[0]||(t[0]=[c("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)]))}}),nr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},sr=U({name:"ServerOutline",render:function(e,t){return y(),C("svg",nr,t[0]||(t[0]=[c("ellipse",{cx:"256",cy:"128",rx:"192",ry:"80",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{d:"M448 214c0 44.18-86 80-192 80S64 258.18 64 214",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{d:"M448 300c0 44.18-86 80-192 80S64 344.18 64 300",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{d:"M64 127.24v257.52C64 428.52 150 464 256 464s192-35.48 192-79.24V127.24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),rr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ir=U({name:"SettingsOutline",render:function(e,t){return y(),C("svg",rr,t[0]||(t[0]=[c("path",{d:"M262.29 192.31a64 64 0 1 0 57.4 57.4a64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22a155.3 155.3 0 0 1-21.46-12.57a16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22a155.3 155.3 0 0 1 21.46 12.57a16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),or={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},lr=U({name:"StarOutline",render:function(e,t){return y(),C("svg",or,t[0]||(t[0]=[c("path",{d:"M480 208H308L256 48l-52 160H32l140 96l-54 160l138-100l138 100l-54-160z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),ar={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},cr=U({name:"StatsChartOutline",render:function(e,t){return y(),C("svg",ar,t[0]||(t[0]=[c("rect",{x:"64",y:"320",width:"48",height:"160",rx:"8",ry:"8",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("rect",{x:"288",y:"224",width:"48",height:"256",rx:"8",ry:"8",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("rect",{x:"400",y:"112",width:"48",height:"368",rx:"8",ry:"8",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),c("rect",{x:"176",y:"32",width:"48",height:"448",rx:"8",ry:"8",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),ur={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},pr=U({name:"TimeOutline",render:function(e,t){return y(),C("svg",ur,t[0]||(t[0]=[c("path",{d:"M256 64C150 64 64 150 64 256s86 192 192 192s192-86 192-192S362 64 256 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),c("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 128v144h96"},null,-1)]))}});function $t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let ye=$t();function $n(l){ye=l}const He={exec:()=>null};function E(l,e=""){let t=typeof l=="string"?l:l.source;const n={replace:(s,i)=>{let r=typeof i=="string"?i:i.source;return r=r.replace(W.caret,"$1"),t=t.replace(s,r),n},getRegex:()=>new RegExp(t,e)};return n}const W={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:l=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}#`),htmlBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}<(?:[a-z].*>|!--)`,"i")},hr=/^(?:[ \t]*(?:\n|$))+/,fr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,dr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ge=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,gr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Pt=/(?:[*+-]|\d{1,9}[.)])/,Pn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Bn=E(Pn).replace(/bull/g,Pt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),mr=E(Pn).replace(/bull/g,Pt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Bt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,kr=/^[^\n]+/,Ft=/(?!\s*\])(?:\\.|[^\[\]\\])+/,wr=E(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ft).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xr=E(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Pt).getRegex(),ut="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ut=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_r=E("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ut).replace("tag",ut).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Fn=E(Bt).replace("hr",Ge).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ut).getRegex(),br=E(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Fn).getRegex(),Ht={blockquote:br,code:fr,def:wr,fences:dr,heading:gr,hr:Ge,html:_r,lheading:Bn,list:xr,newline:hr,paragraph:Fn,table:He,text:kr},bn=E("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ge).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ut).getRegex(),Tr={...Ht,lheading:mr,table:bn,paragraph:E(Bt).replace("hr",Ge).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",bn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ut).getRegex()},yr={...Ht,html:E(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ut).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:He,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:E(Bt).replace("hr",Ge).replace("heading",` *#{1,6} *[^
|
|
33
|
+
]`).replace("lheading",Bn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},vr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Sr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Un=/^( {2,}|\\)\n(?!\s*$)/,Ar=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,pt=/[\p{P}\p{S}]/u,Gt=/[\s\p{P}\p{S}]/u,Hn=/[^\s\p{P}\p{S}]/u,Er=E(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Gt).getRegex(),Gn=/(?!~)[\p{P}\p{S}]/u,Rr=/(?!~)[\s\p{P}\p{S}]/u,Cr=/(?:[^\s\p{P}\p{S}]|~)/u,Lr=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,jn=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ir=E(jn,"u").replace(/punct/g,pt).getRegex(),zr=E(jn,"u").replace(/punct/g,Gn).getRegex(),Wn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Or=E(Wn,"gu").replace(/notPunctSpace/g,Hn).replace(/punctSpace/g,Gt).replace(/punct/g,pt).getRegex(),Mr=E(Wn,"gu").replace(/notPunctSpace/g,Cr).replace(/punctSpace/g,Rr).replace(/punct/g,Gn).getRegex(),Dr=E("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Hn).replace(/punctSpace/g,Gt).replace(/punct/g,pt).getRegex(),Nr=E(/\\(punct)/,"gu").replace(/punct/g,pt).getRegex(),$r=E(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Pr=E(Ut).replace("(?:-->|$)","-->").getRegex(),Br=E("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Pr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),lt=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Fr=E(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",lt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qn=E(/^!?\[(label)\]\[(ref)\]/).replace("label",lt).replace("ref",Ft).getRegex(),Vn=E(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ft).getRegex(),Ur=E("reflink|nolink(?!\\()","g").replace("reflink",qn).replace("nolink",Vn).getRegex(),jt={_backpedal:He,anyPunctuation:Nr,autolink:$r,blockSkip:Lr,br:Un,code:Sr,del:He,emStrongLDelim:Ir,emStrongRDelimAst:Or,emStrongRDelimUnd:Dr,escape:vr,link:Fr,nolink:Vn,punctuation:Er,reflink:qn,reflinkSearch:Ur,tag:Br,text:Ar,url:He},Hr={...jt,link:E(/^!?\[(label)\]\((.*?)\)/).replace("label",lt).getRegex(),reflink:E(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",lt).getRegex()},Mt={...jt,emStrongRDelimAst:Mr,emStrongLDelim:zr,url:E(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Gr={...Mt,br:E(Un).replace("{2,}","*").getRegex(),text:E(Mt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},tt={normal:Ht,gfm:Tr,pedantic:yr},De={normal:jt,gfm:Mt,breaks:Gr,pedantic:Hr},jr={"&":"&","<":"<",">":">",'"':""","'":"'"},Tn=l=>jr[l];function le(l,e){if(e){if(W.escapeTest.test(l))return l.replace(W.escapeReplace,Tn)}else if(W.escapeTestNoEncode.test(l))return l.replace(W.escapeReplaceNoEncode,Tn);return l}function yn(l){try{l=encodeURI(l).replace(W.percentDecode,"%")}catch{return null}return l}function vn(l,e){const t=l.replace(W.findPipe,(i,r,a)=>{let p=!1,h=r;for(;--h>=0&&a[h]==="\\";)p=!p;return p?"|":" |"}),n=t.split(W.splitPipe);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(W.slashPipe,"|");return n}function Ne(l,e,t){const n=l.length;if(n===0)return"";let s=0;for(;s<n&&l.charAt(n-s-1)===e;)s++;return l.slice(0,n-s)}function Wr(l,e){if(l.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<l.length;n++)if(l[n]==="\\")n++;else if(l[n]===e[0])t++;else if(l[n]===e[1]&&(t--,t<0))return n;return-1}function Sn(l,e,t,n,s){const i=e.href,r=e.title||null,a=l[1].replace(s.other.outputLinkReplace,"$1");if(l[0].charAt(0)!=="!"){n.state.inLink=!0;const p={type:"link",raw:t,href:i,title:r,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,p}return{type:"image",raw:t,href:i,title:r,text:a}}function qr(l,e,t){const n=l.match(t.other.indentCodeCompensation);if(n===null)return e;const s=n[1];return e.split(`
|
|
34
|
+
`).map(i=>{const r=i.match(t.other.beginningSpace);if(r===null)return i;const[a]=r;return a.length>=s.length?i.slice(s.length):i}).join(`
|
|
35
|
+
`)}class at{options;rules;lexer;constructor(e){this.options=e||ye}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Ne(n,`
|
|
36
|
+
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],s=qr(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){const s=Ne(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ne(t[0],`
|
|
37
|
+
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let n=Ne(t[0],`
|
|
38
|
+
`).split(`
|
|
39
|
+
`),s="",i="";const r=[];for(;n.length>0;){let a=!1;const p=[];let h;for(h=0;h<n.length;h++)if(this.rules.other.blockquoteStart.test(n[h]))p.push(n[h]),a=!0;else if(!a)p.push(n[h]);else break;n=n.slice(h);const f=p.join(`
|
|
40
|
+
`),k=f.replace(this.rules.other.blockquoteSetextReplace,`
|
|
41
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
42
|
+
${f}`:f,i=i?`${i}
|
|
43
|
+
${k}`:k;const w=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(k,r,!0),this.lexer.state.top=w,n.length===0)break;const b=r.at(-1);if(b?.type==="code")break;if(b?.type==="blockquote"){const L=b,A=L.raw+`
|
|
44
|
+
`+n.join(`
|
|
45
|
+
`),O=this.blockquote(A);r[r.length-1]=O,s=s.substring(0,s.length-L.raw.length)+O.raw,i=i.substring(0,i.length-L.text.length)+O.text;break}else if(b?.type==="list"){const L=b,A=L.raw+`
|
|
46
|
+
`+n.join(`
|
|
47
|
+
`),O=this.list(A);r[r.length-1]=O,s=s.substring(0,s.length-b.raw.length)+O.raw,i=i.substring(0,i.length-L.raw.length)+O.raw,n=A.substring(r.at(-1).raw.length).split(`
|
|
48
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:r,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const s=n.length>1,i={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");const r=this.rules.other.listItemRegex(n);let a=!1;for(;e;){let h=!1,f="",k="";if(!(t=r.exec(e))||this.rules.block.hr.test(e))break;f=t[0],e=e.substring(f.length);let w=t[2].split(`
|
|
49
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,de=>" ".repeat(3*de.length)),b=e.split(`
|
|
50
|
+
`,1)[0],L=!w.trim(),A=0;if(this.options.pedantic?(A=2,k=w.trimStart()):L?A=t[1].length+1:(A=t[2].search(this.rules.other.nonSpaceChar),A=A>4?1:A,k=w.slice(A),A+=t[1].length),L&&this.rules.other.blankLine.test(b)&&(f+=b+`
|
|
51
|
+
`,e=e.substring(b.length+1),h=!0),!h){const de=this.rules.other.nextBulletRegex(A),ae=this.rules.other.hrRegex(A),D=this.rules.other.fencesBeginRegex(A),te=this.rules.other.headingBeginRegex(A),ke=this.rules.other.htmlBeginRegex(A);for(;e;){const ge=e.split(`
|
|
52
|
+
`,1)[0];let ce;if(b=ge,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),ce=b):ce=b.replace(this.rules.other.tabCharGlobal," "),D.test(b)||te.test(b)||ke.test(b)||de.test(b)||ae.test(b))break;if(ce.search(this.rules.other.nonSpaceChar)>=A||!b.trim())k+=`
|
|
53
|
+
`+ce.slice(A);else{if(L||w.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||D.test(w)||te.test(w)||ae.test(w))break;k+=`
|
|
54
|
+
`+b}!L&&!b.trim()&&(L=!0),f+=ge+`
|
|
55
|
+
`,e=e.substring(ge.length+1),w=ce.slice(A)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(a=!0));let O=null,me;this.options.gfm&&(O=this.rules.other.listIsTask.exec(k),O&&(me=O[0]!=="[ ] ",k=k.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:f,task:!!O,checked:me,loose:!1,text:k,tokens:[]}),i.raw+=f}const p=i.items.at(-1);if(p)p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let h=0;h<i.items.length;h++)if(this.lexer.state.top=!1,i.items[h].tokens=this.lexer.blockTokens(i.items[h].text,[]),!i.loose){const f=i.items[h].tokens.filter(w=>w.type==="space"),k=f.length>0&&f.some(w=>this.rules.other.anyLine.test(w.raw));i.loose=k}if(i.loose)for(let h=0;h<i.items.length;h++)i.items[h].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:s,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const n=vn(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
56
|
+
`):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===s.length){for(const a of s)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<n.length;a++)r.header.push({text:n[a],tokens:this.lexer.inline(n[a]),header:!0,align:r.align[a]});for(const a of i)r.rows.push(vn(a,r.header.length).map((p,h)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:r.align[h]})));return r}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===`
|
|
57
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const r=Ne(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else{const r=Wr(t[2],"()");if(r>-1){const p=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,p).trim(),t[3]=""}}let s=t[2],i="";if(this.options.pedantic){const r=this.rules.other.pedanticHrefTitle.exec(s);r&&(s=r[1],i=r[3])}else i=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),Sn(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const s=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[s.toLowerCase()];if(!i){const r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return Sn(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s||s[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const r=[...s[0]].length-1;let a,p,h=r,f=0;const k=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(k.lastIndex=0,t=t.slice(-1*e.length+r);(s=k.exec(t))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(p=[...a].length,s[3]||s[4]){h+=p;continue}else if((s[5]||s[6])&&r%3&&!((r+p)%3)){f+=p;continue}if(h-=p,h>0)continue;p=Math.min(p,p+h+f);const w=[...s[0]][0].length,b=e.slice(0,r+s.index+w+p);if(Math.min(r,p)%2){const A=b.slice(1,-1);return{type:"em",raw:b,text:A,tokens:this.lexer.inlineTokens(A)}}const L=b.slice(2,-2);return{type:"strong",raw:b,text:L,tokens:this.lexer.inlineTokens(L)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," ");const s=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let n,s;return t[2]==="@"?(n=t[1],s="mailto:"+n):(n=t[1],s=n),{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,s;if(t[2]==="@")n=t[0],s="mailto:"+n;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);n=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}}class Q{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ye,this.options.tokenizer=this.options.tokenizer||new at,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:W,block:tt.normal,inline:De.normal};this.options.pedantic?(t.block=tt.pedantic,t.inline=De.pedantic):this.options.gfm&&(t.block=tt.gfm,this.options.breaks?t.inline=De.breaks:t.inline=De.gfm),this.tokenizer.rules=t}static get rules(){return{block:tt,inline:De}}static lex(e,t){return new Q(t).lex(e)}static lexInline(e,t){return new Q(t).inlineTokens(e)}lex(e){e=e.replace(W.carriageReturn,`
|
|
58
|
+
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(W.tabCharGlobal," ").replace(W.spaceLine,""));e;){let s;if(this.options.extensions?.block?.some(r=>(s=r.call({lexer:this},e,t))?(e=e.substring(s.raw.length),t.push(s),!0):!1))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);const r=t.at(-1);s.raw.length===1&&r!==void 0?r.raw+=`
|
|
59
|
+
`:t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);const r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=`
|
|
60
|
+
`+s.raw,r.text+=`
|
|
61
|
+
`+s.text,this.inlineQueue.at(-1).src=r.text):t.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);const r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=`
|
|
62
|
+
`+s.raw,r.text+=`
|
|
63
|
+
`+s.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),t.push(s);continue}let i=e;if(this.options.extensions?.startBlock){let r=1/0;const a=e.slice(1);let p;this.options.extensions.startBlock.forEach(h=>{p=h.call({lexer:this},a),typeof p=="number"&&p>=0&&(r=Math.min(r,p))}),r<1/0&&r>=0&&(i=e.substring(0,r+1))}if(this.state.top&&(s=this.tokenizer.paragraph(i))){const r=t.at(-1);n&&r?.type==="paragraph"?(r.raw+=`
|
|
64
|
+
`+s.raw,r.text+=`
|
|
65
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(s),n=i.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);const r=t.at(-1);r?.type==="text"?(r.raw+=`
|
|
66
|
+
`+s.raw,r.text+=`
|
|
67
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(s);continue}if(e){const r="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(r);break}else throw new Error(r)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,s=null;if(this.tokens.links){const a=Object.keys(this.tokens.links);if(a.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)a.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,s.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i=!1,r="";for(;e;){i||(r=""),i=!1;let a;if(this.options.extensions?.inline?.some(h=>(a=h.call({lexer:this},e,t))?(e=e.substring(a.raw.length),t.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);const h=t.at(-1);a.type==="text"&&h?.type==="text"?(h.raw+=a.raw,h.text+=a.text):t.push(a);continue}if(a=this.tokenizer.emStrong(e,n,r)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.del(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),t.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),t.push(a);continue}let p=e;if(this.options.extensions?.startInline){let h=1/0;const f=e.slice(1);let k;this.options.extensions.startInline.forEach(w=>{k=w.call({lexer:this},f),typeof k=="number"&&k>=0&&(h=Math.min(h,k))}),h<1/0&&h>=0&&(p=e.substring(0,h+1))}if(a=this.tokenizer.inlineText(p)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(r=a.raw.slice(-1)),i=!0;const h=t.at(-1);h?.type==="text"?(h.raw+=a.raw,h.text+=a.text):t.push(a);continue}if(e){const h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return t}}class ct{options;parser;constructor(e){this.options=e||ye}space(e){return""}code({text:e,lang:t,escaped:n}){const s=(t||"").match(W.notSpaceStart)?.[0],i=e.replace(W.endingNewline,"")+`
|
|
68
|
+
`;return s?'<pre><code class="language-'+le(s)+'">'+(n?i:le(i,!0))+`</code></pre>
|
|
69
|
+
`:"<pre><code>"+(n?i:le(i,!0))+`</code></pre>
|
|
70
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
71
|
+
${this.parser.parse(e)}</blockquote>
|
|
72
|
+
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
73
|
+
`}hr(e){return`<hr>
|
|
74
|
+
`}list(e){const t=e.ordered,n=e.start;let s="";for(let a=0;a<e.items.length;a++){const p=e.items[a];s+=this.listitem(p)}const i=t?"ol":"ul",r=t&&n!==1?' start="'+n+'"':"";return"<"+i+r+`>
|
|
75
|
+
`+s+"</"+i+`>
|
|
76
|
+
`}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+le(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
77
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
78
|
+
`}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let s="";for(let i=0;i<e.rows.length;i++){const r=e.rows[i];n="";for(let a=0;a<r.length;a++)n+=this.tablecell(r[a]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
79
|
+
<thead>
|
|
80
|
+
`+t+`</thead>
|
|
81
|
+
`+s+`</table>
|
|
82
|
+
`}tablerow({text:e}){return`<tr>
|
|
83
|
+
${e}</tr>
|
|
84
|
+
`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
85
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${le(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const s=this.parser.parseInline(n),i=yn(e);if(i===null)return s;e=i;let r='<a href="'+e+'"';return t&&(r+=' title="'+le(t)+'"'),r+=">"+s+"</a>",r}image({href:e,title:t,text:n}){const s=yn(e);if(s===null)return le(n);e=s;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${le(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:le(e.text)}}class Wt{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class J{options;renderer;textRenderer;constructor(e){this.options=e||ye,this.options.renderer=this.options.renderer||new ct,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Wt}static parse(e,t){return new J(t).parse(e)}static parseInline(e,t){return new J(t).parseInline(e)}parse(e,t=!0){let n="";for(let s=0;s<e.length;s++){const i=e[s];if(this.options.extensions?.renderers?.[i.type]){const a=i,p=this.options.extensions.renderers[a.type].call({parser:this},a);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){n+=p||"";continue}}const r=i;switch(r.type){case"space":{n+=this.renderer.space(r);continue}case"hr":{n+=this.renderer.hr(r);continue}case"heading":{n+=this.renderer.heading(r);continue}case"code":{n+=this.renderer.code(r);continue}case"table":{n+=this.renderer.table(r);continue}case"blockquote":{n+=this.renderer.blockquote(r);continue}case"list":{n+=this.renderer.list(r);continue}case"html":{n+=this.renderer.html(r);continue}case"paragraph":{n+=this.renderer.paragraph(r);continue}case"text":{let a=r,p=this.renderer.text(a);for(;s+1<e.length&&e[s+1].type==="text";)a=e[++s],p+=`
|
|
86
|
+
`+this.renderer.text(a);t?n+=this.renderer.paragraph({type:"paragraph",raw:p,text:p,tokens:[{type:"text",raw:p,text:p,escaped:!0}]}):n+=p;continue}default:{const a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(e,t=this.renderer){let n="";for(let s=0;s<e.length;s++){const i=e[s];if(this.options.extensions?.renderers?.[i.type]){const a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=a||"";continue}}const r=i;switch(r.type){case"escape":{n+=t.text(r);break}case"html":{n+=t.html(r);break}case"link":{n+=t.link(r);break}case"image":{n+=t.image(r);break}case"strong":{n+=t.strong(r);break}case"em":{n+=t.em(r);break}case"codespan":{n+=t.codespan(r);break}case"br":{n+=t.br(r);break}case"del":{n+=t.del(r);break}case"text":{n+=t.text(r);break}default:{const a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}}class rt{options;block;constructor(e){this.options=e||ye}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Q.lex:Q.lexInline}provideParser(){return this.block?J.parse:J.parseInline}}class Vr{defaults=$t();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=J;Renderer=ct;TextRenderer=Wt;Lexer=Q;Tokenizer=at;Hooks=rt;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{const i=s;for(const r of i.header)n=n.concat(this.walkTokens(r.tokens,t));for(const r of i.rows)for(const a of r)n=n.concat(this.walkTokens(a.tokens,t));break}case"list":{const i=s;n=n.concat(this.walkTokens(i.items,t));break}default:{const i=s;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(r=>{const a=i[r].flat(1/0);n=n.concat(this.walkTokens(a,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const r=t.renderers[i.name];r?t.renderers[i.name]=function(...a){let p=i.renderer.apply(this,a);return p===!1&&(p=r.apply(this,a)),p}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const r=t[i.level];r?r.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),s.extensions=t),n.renderer){const i=this.defaults.renderer||new ct(this.defaults);for(const r in n.renderer){if(!(r in i))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;const a=r,p=n.renderer[a],h=i[a];i[a]=(...f)=>{let k=p.apply(i,f);return k===!1&&(k=h.apply(i,f)),k||""}}s.renderer=i}if(n.tokenizer){const i=this.defaults.tokenizer||new at(this.defaults);for(const r in n.tokenizer){if(!(r in i))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;const a=r,p=n.tokenizer[a],h=i[a];i[a]=(...f)=>{let k=p.apply(i,f);return k===!1&&(k=h.apply(i,f)),k}}s.tokenizer=i}if(n.hooks){const i=this.defaults.hooks||new rt;for(const r in n.hooks){if(!(r in i))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;const a=r,p=n.hooks[a],h=i[a];rt.passThroughHooks.has(r)?i[a]=f=>{if(this.defaults.async)return Promise.resolve(p.call(i,f)).then(w=>h.call(i,w));const k=p.call(i,f);return h.call(i,k)}:i[a]=(...f)=>{let k=p.apply(i,f);return k===!1&&(k=h.apply(i,f)),k}}s.hooks=i}if(n.walkTokens){const i=this.defaults.walkTokens,r=n.walkTokens;s.walkTokens=function(a){let p=[];return p.push(r.call(this,a)),i&&(p=p.concat(i.call(this,a))),p}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Q.lex(e,t??this.defaults)}parser(e,t){return J.parse(e,t??this.defaults)}parseMarkdown(e){return(n,s)=>{const i={...s},r={...this.defaults,...i},a=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&i.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=e);const p=r.hooks?r.hooks.provideLexer():e?Q.lex:Q.lexInline,h=r.hooks?r.hooks.provideParser():e?J.parse:J.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(f=>p(f,r)).then(f=>r.hooks?r.hooks.processAllTokens(f):f).then(f=>r.walkTokens?Promise.all(this.walkTokens(f,r.walkTokens)).then(()=>f):f).then(f=>h(f,r)).then(f=>r.hooks?r.hooks.postprocess(f):f).catch(a);try{r.hooks&&(n=r.hooks.preprocess(n));let f=p(n,r);r.hooks&&(f=r.hooks.processAllTokens(f)),r.walkTokens&&this.walkTokens(f,r.walkTokens);let k=h(f,r);return r.hooks&&(k=r.hooks.postprocess(k)),k}catch(f){return a(f)}}}onError(e,t){return n=>{if(n.message+=`
|
|
87
|
+
Please report this to https://github.com/markedjs/marked.`,e){const s="<p>An error occurred:</p><pre>"+le(n.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(n);throw n}}}const Te=new Vr;function R(l,e){return Te.parse(l,e)}R.options=R.setOptions=function(l){return Te.setOptions(l),R.defaults=Te.defaults,$n(R.defaults),R};R.getDefaults=$t;R.defaults=ye;R.use=function(...l){return Te.use(...l),R.defaults=Te.defaults,$n(R.defaults),R};R.walkTokens=function(l,e){return Te.walkTokens(l,e)};R.parseInline=Te.parseInline;R.Parser=J;R.parser=J.parse;R.Renderer=ct;R.TextRenderer=Wt;R.Lexer=Q;R.lexer=Q.lex;R.Tokenizer=at;R.Hooks=rt;R.parse=R;R.options;R.setOptions;R.use;R.walkTokens;R.parseInline;J.parse;Q.lex;const Zr=60*60*1e3,ht="github_data_";function qt(l,e){const t={data:e,timestamp:Date.now()};localStorage.setItem(l,JSON.stringify(t))}function Vt(l){const e=localStorage.getItem(l);if(!e)return null;try{const{data:t,timestamp:n}=JSON.parse(e);return Date.now()-n>Zr?null:t}catch{return null}}function Yr(l){const e=localStorage.getItem(l);if(!e)return"实时数据";try{const{timestamp:t}=JSON.parse(e),n=Date.now()-t,s=Math.floor(n/6e4);return s<1?"刚刚更新":s<60?`${s} 分钟前更新`:`${Math.floor(s/60)} 小时前更新`}catch{return"实时数据"}}async function Xr(l,e=!1){const t=`${ht}repo_${l.owner}_${l.name}`;if(!e){const i=Vt(t);if(i)return i}const n=await fetch(`https://api.github.com/repos/${l.owner}/${l.name}`);if(!n.ok)throw new Error(`Failed to fetch ${l.name} repository data`);const s=await n.json();return qt(t,s),s}async function Zn(l,e=!1){const t=`${ht}commits_${l.owner}_${l.name}_${l.branch}`;if(!e){const r=Vt(t);if(r)return r}let n=`https://api.github.com/repos/${l.owner}/${l.name}/commits?per_page=5`;l.branch&&(n+=`&sha=${l.branch}`);const s=await fetch(n);if(!s.ok)throw new Error(`Failed to fetch ${l.name} commits`);const i=await s.json();return qt(t,i),i}async function Kr(l,e=!1){const t=`${ht}releases_${l.owner}_${l.name}`;if(!e){const i=Vt(t);if(i)return i}const n=await fetch(`https://api.github.com/repos/${l.owner}/${l.name}/releases?per_page=3`);if(!n.ok)throw new Error(`Failed to fetch ${l.name} releases`);const s=await n.json();return qt(t,s),s}function Qr(l){const e=`${ht}repo_${l.owner}_${l.name}`;return Yr(e)}async function Jr(l,e=!1){try{const[t,n,s]=await Promise.all([Xr(l,e),Zn(l,e),Kr(l,e)]);return{repository:t,commits:n,releases:s}}catch(t){throw console.error(`Error fetching data for ${l.name}:`,t),t}}/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:Yn,setPrototypeOf:An,isFrozen:ei,getPrototypeOf:ti,getOwnPropertyDescriptor:ni}=Object;let{freeze:q,seal:ee,create:Xn}=Object,{apply:Dt,construct:Nt}=typeof Reflect<"u"&&Reflect;q||(q=function(e){return e});ee||(ee=function(e){return e});Dt||(Dt=function(e,t,n){return e.apply(t,n)});Nt||(Nt=function(e,t){return new e(...t)});const nt=V(Array.prototype.forEach),si=V(Array.prototype.lastIndexOf),En=V(Array.prototype.pop),$e=V(Array.prototype.push),ri=V(Array.prototype.splice),it=V(String.prototype.toLowerCase),Ct=V(String.prototype.toString),Rn=V(String.prototype.match),Pe=V(String.prototype.replace),ii=V(String.prototype.indexOf),oi=V(String.prototype.trim),se=V(Object.prototype.hasOwnProperty),j=V(RegExp.prototype.test),Be=li(TypeError);function V(l){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return Dt(l,e,n)}}function li(l){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Nt(l,t)}}function T(l,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:it;An&&An(l,null);let n=e.length;for(;n--;){let s=e[n];if(typeof s=="string"){const i=t(s);i!==s&&(ei(e)||(e[n]=i),s=i)}l[s]=!0}return l}function ai(l){for(let e=0;e<l.length;e++)se(l,e)||(l[e]=null);return l}function be(l){const e=Xn(null);for(const[t,n]of Yn(l))se(l,t)&&(Array.isArray(n)?e[t]=ai(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=be(n):e[t]=n);return e}function Fe(l,e){for(;l!==null;){const n=ni(l,e);if(n){if(n.get)return V(n.get);if(typeof n.value=="function")return V(n.value)}l=ti(l)}function t(){return null}return t}const Cn=q(["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","section","select","shadow","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"]),Lt=q(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),It=q(["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"]),ci=q(["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"]),zt=q(["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"]),ui=q(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ln=q(["#text"]),In=q(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ot=q(["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","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","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-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"]),zn=q(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),st=q(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pi=ee(/\{\{[\w\W]*|[\w\W]*\}\}/gm),hi=ee(/<%[\w\W]*|[\w\W]*%>/gm),fi=ee(/\$\{[\w\W]*/gm),di=ee(/^data-[\-\w.\u00B7-\uFFFF]+$/),gi=ee(/^aria-[\-\w]+$/),Kn=ee(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mi=ee(/^(?:\w+script|data):/i),ki=ee(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qn=ee(/^html$/i),wi=ee(/^[a-z][.\w]*(-[.\w]+)+$/i);var On=Object.freeze({__proto__:null,ARIA_ATTR:gi,ATTR_WHITESPACE:ki,CUSTOM_ELEMENT:wi,DATA_ATTR:di,DOCTYPE_NAME:Qn,ERB_EXPR:hi,IS_ALLOWED_URI:Kn,IS_SCRIPT_OR_DATA:mi,MUSTACHE_EXPR:pi,TMPLIT_EXPR:fi});const Ue={element:1,text:3,progressingInstruction:7,comment:8,document:9},xi=function(){return typeof window>"u"?null:window},_i=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(n=t.getAttribute(s));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(r){return r},createScriptURL(r){return r}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Mn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Jn(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xi();const e=m=>Jn(m);if(e.version="3.2.4",e.removed=[],!l||!l.document||l.document.nodeType!==Ue.document||!l.Element)return e.isSupported=!1,e;let{document:t}=l;const n=t,s=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:r,Node:a,Element:p,NodeFilter:h,NamedNodeMap:f=l.NamedNodeMap||l.MozNamedAttrMap,HTMLFormElement:k,DOMParser:w,trustedTypes:b}=l,L=p.prototype,A=Fe(L,"cloneNode"),O=Fe(L,"remove"),me=Fe(L,"nextSibling"),de=Fe(L,"childNodes"),ae=Fe(L,"parentNode");if(typeof r=="function"){const m=t.createElement("template");m.content&&m.content.ownerDocument&&(t=m.content.ownerDocument)}let D,te="";const{implementation:ke,createNodeIterator:ge,createDocumentFragment:ce,getElementsByTagName:we}=t,{importNode:ft}=n;let x=Mn();e.isSupported=typeof Yn=="function"&&typeof ae=="function"&&ke&&ke.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:d,ERB_EXPR:_,TMPLIT_EXPR:Z,DATA_ATTR:ue,ARIA_ATTR:es,IS_SCRIPT_OR_DATA:ts,ATTR_WHITESPACE:Zt,CUSTOM_ELEMENT:ns}=On;let{IS_ALLOWED_URI:Yt}=On,N=null;const Xt=T({},[...Cn,...Lt,...It,...zt,...Ln]);let B=null;const Kt=T({},[...In,...Ot,...zn,...st]);let M=Object.seal(Xn(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}})),Ie=null,dt=null,Qt=!0,gt=!0,Jt=!1,en=!0,ve=!1,mt=!0,xe=!1,kt=!1,wt=!1,Se=!1,je=!1,We=!1,tn=!0,nn=!1;const ss="user-content-";let xt=!0,ze=!1,Ae={},Ee=null;const sn=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let rn=null;const on=T({},["audio","video","img","source","image","track"]);let _t=null;const ln=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",Ve="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml";let Re=pe,bt=!1,Tt=null;const rs=T({},[qe,Ve,pe],Ct);let Ze=T({},["mi","mo","mn","ms","mtext"]),Ye=T({},["annotation-xml"]);const is=T({},["title","style","font","a","script"]);let Oe=null;const os=["application/xhtml+xml","text/html"],ls="text/html";let $=null,Ce=null;const as=t.createElement("form"),an=function(o){return o instanceof RegExp||o instanceof Function},yt=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ce&&Ce===o)){if((!o||typeof o!="object")&&(o={}),o=be(o),Oe=os.indexOf(o.PARSER_MEDIA_TYPE)===-1?ls:o.PARSER_MEDIA_TYPE,$=Oe==="application/xhtml+xml"?Ct:it,N=se(o,"ALLOWED_TAGS")?T({},o.ALLOWED_TAGS,$):Xt,B=se(o,"ALLOWED_ATTR")?T({},o.ALLOWED_ATTR,$):Kt,Tt=se(o,"ALLOWED_NAMESPACES")?T({},o.ALLOWED_NAMESPACES,Ct):rs,_t=se(o,"ADD_URI_SAFE_ATTR")?T(be(ln),o.ADD_URI_SAFE_ATTR,$):ln,rn=se(o,"ADD_DATA_URI_TAGS")?T(be(on),o.ADD_DATA_URI_TAGS,$):on,Ee=se(o,"FORBID_CONTENTS")?T({},o.FORBID_CONTENTS,$):sn,Ie=se(o,"FORBID_TAGS")?T({},o.FORBID_TAGS,$):{},dt=se(o,"FORBID_ATTR")?T({},o.FORBID_ATTR,$):{},Ae=se(o,"USE_PROFILES")?o.USE_PROFILES:!1,Qt=o.ALLOW_ARIA_ATTR!==!1,gt=o.ALLOW_DATA_ATTR!==!1,Jt=o.ALLOW_UNKNOWN_PROTOCOLS||!1,en=o.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ve=o.SAFE_FOR_TEMPLATES||!1,mt=o.SAFE_FOR_XML!==!1,xe=o.WHOLE_DOCUMENT||!1,Se=o.RETURN_DOM||!1,je=o.RETURN_DOM_FRAGMENT||!1,We=o.RETURN_TRUSTED_TYPE||!1,wt=o.FORCE_BODY||!1,tn=o.SANITIZE_DOM!==!1,nn=o.SANITIZE_NAMED_PROPS||!1,xt=o.KEEP_CONTENT!==!1,ze=o.IN_PLACE||!1,Yt=o.ALLOWED_URI_REGEXP||Kn,Re=o.NAMESPACE||pe,Ze=o.MATHML_TEXT_INTEGRATION_POINTS||Ze,Ye=o.HTML_INTEGRATION_POINTS||Ye,M=o.CUSTOM_ELEMENT_HANDLING||{},o.CUSTOM_ELEMENT_HANDLING&&an(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(M.tagNameCheck=o.CUSTOM_ELEMENT_HANDLING.tagNameCheck),o.CUSTOM_ELEMENT_HANDLING&&an(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(M.attributeNameCheck=o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),o.CUSTOM_ELEMENT_HANDLING&&typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(M.allowCustomizedBuiltInElements=o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve&&(gt=!1),je&&(Se=!0),Ae&&(N=T({},Ln),B=[],Ae.html===!0&&(T(N,Cn),T(B,In)),Ae.svg===!0&&(T(N,Lt),T(B,Ot),T(B,st)),Ae.svgFilters===!0&&(T(N,It),T(B,Ot),T(B,st)),Ae.mathMl===!0&&(T(N,zt),T(B,zn),T(B,st))),o.ADD_TAGS&&(N===Xt&&(N=be(N)),T(N,o.ADD_TAGS,$)),o.ADD_ATTR&&(B===Kt&&(B=be(B)),T(B,o.ADD_ATTR,$)),o.ADD_URI_SAFE_ATTR&&T(_t,o.ADD_URI_SAFE_ATTR,$),o.FORBID_CONTENTS&&(Ee===sn&&(Ee=be(Ee)),T(Ee,o.FORBID_CONTENTS,$)),xt&&(N["#text"]=!0),xe&&T(N,["html","head","body"]),N.table&&(T(N,["tbody"]),delete Ie.tbody),o.TRUSTED_TYPES_POLICY){if(typeof o.TRUSTED_TYPES_POLICY.createHTML!="function")throw Be('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof o.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Be('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=o.TRUSTED_TYPES_POLICY,te=D.createHTML("")}else D===void 0&&(D=_i(b,s)),D!==null&&typeof te=="string"&&(te=D.createHTML(""));q&&q(o),Ce=o}},cn=T({},[...Lt,...It,...ci]),un=T({},[...zt,...ui]),cs=function(o){let u=ae(o);(!u||!u.tagName)&&(u={namespaceURI:Re,tagName:"template"});const g=it(o.tagName),I=it(u.tagName);return Tt[o.namespaceURI]?o.namespaceURI===Ve?u.namespaceURI===pe?g==="svg":u.namespaceURI===qe?g==="svg"&&(I==="annotation-xml"||Ze[I]):!!cn[g]:o.namespaceURI===qe?u.namespaceURI===pe?g==="math":u.namespaceURI===Ve?g==="math"&&Ye[I]:!!un[g]:o.namespaceURI===pe?u.namespaceURI===Ve&&!Ye[I]||u.namespaceURI===qe&&!Ze[I]?!1:!un[g]&&(is[g]||!cn[g]):!!(Oe==="application/xhtml+xml"&&Tt[o.namespaceURI]):!1},re=function(o){$e(e.removed,{element:o});try{ae(o).removeChild(o)}catch{O(o)}},Xe=function(o,u){try{$e(e.removed,{attribute:u.getAttributeNode(o),from:u})}catch{$e(e.removed,{attribute:null,from:u})}if(u.removeAttribute(o),o==="is")if(Se||je)try{re(u)}catch{}else try{u.setAttribute(o,"")}catch{}},pn=function(o){let u=null,g=null;if(wt)o="<remove></remove>"+o;else{const F=Rn(o,/^[\r\n\t ]+/);g=F&&F[0]}Oe==="application/xhtml+xml"&&Re===pe&&(o='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+o+"</body></html>");const I=D?D.createHTML(o):o;if(Re===pe)try{u=new w().parseFromString(I,Oe)}catch{}if(!u||!u.documentElement){u=ke.createDocument(Re,"template",null);try{u.documentElement.innerHTML=bt?te:I}catch{}}const H=u.body||u.documentElement;return o&&g&&H.insertBefore(t.createTextNode(g),H.childNodes[0]||null),Re===pe?we.call(u,xe?"html":"body")[0]:xe?u.documentElement:H},hn=function(o){return ge.call(o.ownerDocument||o,o,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},vt=function(o){return o instanceof k&&(typeof o.nodeName!="string"||typeof o.textContent!="string"||typeof o.removeChild!="function"||!(o.attributes instanceof f)||typeof o.removeAttribute!="function"||typeof o.setAttribute!="function"||typeof o.namespaceURI!="string"||typeof o.insertBefore!="function"||typeof o.hasChildNodes!="function")},fn=function(o){return typeof a=="function"&&o instanceof a};function he(m,o,u){nt(m,g=>{g.call(e,o,u,Ce)})}const dn=function(o){let u=null;if(he(x.beforeSanitizeElements,o,null),vt(o))return re(o),!0;const g=$(o.nodeName);if(he(x.uponSanitizeElement,o,{tagName:g,allowedTags:N}),o.hasChildNodes()&&!fn(o.firstElementChild)&&j(/<[/\w]/g,o.innerHTML)&&j(/<[/\w]/g,o.textContent)||o.nodeType===Ue.progressingInstruction||mt&&o.nodeType===Ue.comment&&j(/<[/\w]/g,o.data))return re(o),!0;if(!N[g]||Ie[g]){if(!Ie[g]&&mn(g)&&(M.tagNameCheck instanceof RegExp&&j(M.tagNameCheck,g)||M.tagNameCheck instanceof Function&&M.tagNameCheck(g)))return!1;if(xt&&!Ee[g]){const I=ae(o)||o.parentNode,H=de(o)||o.childNodes;if(H&&I){const F=H.length;for(let Y=F-1;Y>=0;--Y){const ie=A(H[Y],!0);ie.__removalCount=(o.__removalCount||0)+1,I.insertBefore(ie,me(o))}}}return re(o),!0}return o instanceof p&&!cs(o)||(g==="noscript"||g==="noembed"||g==="noframes")&&j(/<\/no(script|embed|frames)/i,o.innerHTML)?(re(o),!0):(ve&&o.nodeType===Ue.text&&(u=o.textContent,nt([d,_,Z],I=>{u=Pe(u,I," ")}),o.textContent!==u&&($e(e.removed,{element:o.cloneNode()}),o.textContent=u)),he(x.afterSanitizeElements,o,null),!1)},gn=function(o,u,g){if(tn&&(u==="id"||u==="name")&&(g in t||g in as))return!1;if(!(gt&&!dt[u]&&j(ue,u))){if(!(Qt&&j(es,u))){if(!B[u]||dt[u]){if(!(mn(o)&&(M.tagNameCheck instanceof RegExp&&j(M.tagNameCheck,o)||M.tagNameCheck instanceof Function&&M.tagNameCheck(o))&&(M.attributeNameCheck instanceof RegExp&&j(M.attributeNameCheck,u)||M.attributeNameCheck instanceof Function&&M.attributeNameCheck(u))||u==="is"&&M.allowCustomizedBuiltInElements&&(M.tagNameCheck instanceof RegExp&&j(M.tagNameCheck,g)||M.tagNameCheck instanceof Function&&M.tagNameCheck(g))))return!1}else if(!_t[u]){if(!j(Yt,Pe(g,Zt,""))){if(!((u==="src"||u==="xlink:href"||u==="href")&&o!=="script"&&ii(g,"data:")===0&&rn[o])){if(!(Jt&&!j(ts,Pe(g,Zt,"")))){if(g)return!1}}}}}}return!0},mn=function(o){return o!=="annotation-xml"&&Rn(o,ns)},kn=function(o){he(x.beforeSanitizeAttributes,o,null);const{attributes:u}=o;if(!u||vt(o))return;const g={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let I=u.length;for(;I--;){const H=u[I],{name:F,namespaceURI:Y,value:ie}=H,Me=$(F);let G=F==="value"?ie:oi(ie);if(g.attrName=Me,g.attrValue=G,g.keepAttr=!0,g.forceKeepAttr=void 0,he(x.uponSanitizeAttribute,o,g),G=g.attrValue,nn&&(Me==="id"||Me==="name")&&(Xe(F,o),G=ss+G),mt&&j(/((--!?|])>)|<\/(style|title)/i,G)){Xe(F,o);continue}if(g.forceKeepAttr||(Xe(F,o),!g.keepAttr))continue;if(!en&&j(/\/>/i,G)){Xe(F,o);continue}ve&&nt([d,_,Z],xn=>{G=Pe(G,xn," ")});const wn=$(o.nodeName);if(gn(wn,Me,G)){if(D&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!Y)switch(b.getAttributeType(wn,Me)){case"TrustedHTML":{G=D.createHTML(G);break}case"TrustedScriptURL":{G=D.createScriptURL(G);break}}try{Y?o.setAttributeNS(Y,F,G):o.setAttribute(F,G),vt(o)?re(o):En(e.removed)}catch{}}}he(x.afterSanitizeAttributes,o,null)},us=function m(o){let u=null;const g=hn(o);for(he(x.beforeSanitizeShadowDOM,o,null);u=g.nextNode();)he(x.uponSanitizeShadowNode,u,null),dn(u),kn(u),u.content instanceof i&&m(u.content);he(x.afterSanitizeShadowDOM,o,null)};return e.sanitize=function(m){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=null,g=null,I=null,H=null;if(bt=!m,bt&&(m="<!-->"),typeof m!="string"&&!fn(m))if(typeof m.toString=="function"){if(m=m.toString(),typeof m!="string")throw Be("dirty is not a string, aborting")}else throw Be("toString is not a function");if(!e.isSupported)return m;if(kt||yt(o),e.removed=[],typeof m=="string"&&(ze=!1),ze){if(m.nodeName){const ie=$(m.nodeName);if(!N[ie]||Ie[ie])throw Be("root node is forbidden and cannot be sanitized in-place")}}else if(m instanceof a)u=pn("<!---->"),g=u.ownerDocument.importNode(m,!0),g.nodeType===Ue.element&&g.nodeName==="BODY"||g.nodeName==="HTML"?u=g:u.appendChild(g);else{if(!Se&&!ve&&!xe&&m.indexOf("<")===-1)return D&&We?D.createHTML(m):m;if(u=pn(m),!u)return Se?null:We?te:""}u&&wt&&re(u.firstChild);const F=hn(ze?m:u);for(;I=F.nextNode();)dn(I),kn(I),I.content instanceof i&&us(I.content);if(ze)return m;if(Se){if(je)for(H=ce.call(u.ownerDocument);u.firstChild;)H.appendChild(u.firstChild);else H=u;return(B.shadowroot||B.shadowrootmode)&&(H=ft.call(n,H,!0)),H}let Y=xe?u.outerHTML:u.innerHTML;return xe&&N["!doctype"]&&u.ownerDocument&&u.ownerDocument.doctype&&u.ownerDocument.doctype.name&&j(Qn,u.ownerDocument.doctype.name)&&(Y="<!DOCTYPE "+u.ownerDocument.doctype.name+`>
|
|
88
|
+
`+Y),ve&&nt([d,_,Z],ie=>{Y=Pe(Y,ie," ")}),D&&We?D.createHTML(Y):Y},e.setConfig=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yt(m),kt=!0},e.clearConfig=function(){Ce=null,kt=!1},e.isValidAttribute=function(m,o,u){Ce||yt({});const g=$(m),I=$(o);return gn(g,I,u)},e.addHook=function(m,o){typeof o=="function"&&$e(x[m],o)},e.removeHook=function(m,o){if(o!==void 0){const u=si(x[m],o);return u===-1?void 0:ri(x[m],u,1)[0]}return En(x[m])},e.removeHooks=function(m){x[m]=[]},e.removeAllHooks=function(){x=Mn()},e}var bi=Jn();const Ti={class:"dashboard-container"},yi={class:"welcome-header"},vi={class:"time-container"},Si={class:"time"},Ai={class:"date"},Ei={class:"greeting-container"},Ri={class:"greeting"},Ci={class:"welcome-message"},Li={key:0,class:"version-badge"},Ii={class:"content-container"},zi={class:"nav-panel"},Oi={class:"nav-grid"},Mi={class:"nav-icon"},Di={class:"nav-title"},Ni={class:"nav-description"},$i={class:"status-section"},Pi={class:"status-card online"},Bi={class:"status-icon"},Fi={class:"status-card version"},Ui={class:"status-icon"},Hi={class:"status-text"},Gi={class:"content-panel"},ji={class:"repo-tabs"},Wi=["onClick"],qi={key:1,class:"repo-container"},Vi={class:"repo-header"},Zi=["href"],Yi={class:"cache-indicator"},Xi={class:"repo-stats"},Ki={class:"repo-stat"},Qi={class:"repo-stat"},Ji={class:"repo-stat"},eo={class:"repo-description"},to={class:"commit-section"},no={class:"section-header"},so={class:"commit-header"},ro={class:"commit-author"},io={class:"author-name"},oo={class:"commit-date"},lo={class:"commit-message"},ao=["href"],co={class:"commit-stats"},uo={key:0,class:"stats-item"},po={class:"stats-value addition"},ho={key:1,class:"stats-item"},fo={class:"stats-value deletion"},go={key:0,class:"empty-state"},mo={class:"release-section"},ko={class:"release-name"},wo=["href"],xo={class:"release-date"},_o=["innerHTML"],bo={key:0,class:"empty-state"},To={key:2,class:"error-message"},yo=U({__name:"index",setup(l){const e=_s(),t=bs(),n=ot(()=>t.userInfo?.userName||"管理员"),s=[{owner:"ikechan8370",name:"chatgpt-plugin",displayName:"ChatGPT Plugin",branch:"v3"},{owner:"ikechan8370",name:"node-chaite",displayName:"Chaite",branch:"main"}],i=ne(!1),r=ne(""),a=ne(0),p=ne({}),h=ne({}),f=ne(!1),k=ne({}),w=ot(()=>{const x=s[a.value];return x?k.value[x.name]:null});function b(x){if(!x)return"";const d=R.parse(x);return bi.sanitize(d)}const L=ne(""),A=ne(""),O=ne("");let me;function de(){const x=new Date,d=x.getHours();L.value=x.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}),L.value=x.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}),A.value=x.toLocaleDateString("zh-CN",{year:"numeric",month:"long",day:"numeric",weekday:"long"}),d<12?O.value="早上好":d<18?O.value="下午好":O.value="晚上好"}const ae=[{title:"系统配置",description:"配置系统参数和行为",route:"/config",icon:ir,primary:!0},{title:"渠道管理",description:"查看和管理模型渠道",route:"/channels",icon:Bs},{title:"工具管理",description:"管理工具Agent",route:"/tools",icon:Ks},{title:"预设管理",description:"创建和编辑对话预设",route:"/chat-preset",icon:$s},{title:"处理器管理",description:"配置和管理前后处理器",route:"/processors",icon:Ws},{title:"适配器管理",description:"配置和管理适配器",route:"/adapters",icon:cr}];function D(x){e.push(x)}function te(x){const d=new Date(x),Z=new Date().getTime()-d.getTime(),ue=24*60*60*1e3;return Z<ue?`今天 ${d.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"})}`:Z<2*ue?`昨天 ${d.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"})}`:Z<7*ue?`${Math.floor(Z/ue)}天前`:d.toLocaleDateString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit"})}async function ke(){if(f.value)return;f.value=!0;const x=s[a.value];try{const d=await Zn(x,!0);p.value[x.name]=d}catch(d){console.error("Failed to refresh commits:",d)}finally{f.value=!1}}async function ge(x=!1){i.value=!0,r.value="";try{for(const d of s){const{repository:_,commits:Z,releases:ue}=await Jr(d,x);k.value[d.name]=_,p.value[d.name]=Z,h.value[d.name]=ue}}catch(d){r.value=d instanceof Error?d.message:"Unknown error occurred"}finally{i.value=!1}}function ce(){const x=s[a.value];return x?Qr(x):""}const we=ne();async function ft(){const x=await Ds();x.isSuccess&&(we.value=x.data)}return Ts(()=>{de(),ft(),me=window.setInterval(de,1e3),ge()}),ys(()=>{clearInterval(me)}),(x,d)=>(y(),C("div",Ti,[c("div",yi,[c("div",vi,[c("div",Si,z(L.value),1),c("div",Ai,z(A.value),1)]),c("div",Ei,[c("h1",Ri,z(O.value)+", "+z(we.value?.user?.username||n.value),1),c("p",Ci,[d[1]||(d[1]=fe(" 欢迎回到 ChatGPT 管理系统 ")),we.value?.version?(y(),C("span",Li,"v"+z(we.value.version),1)):K("",!0)])])]),c("div",Ii,[c("div",zi,[d[3]||(d[3]=c("h2",{class:"panel-title"}," 快捷导航 ",-1)),c("div",Oi,[(y(),C(Qe,null,Je(ae,_=>P(v(Rt),{key:_.title,class:Et(["nav-card",{primary:_.primary}]),hoverable:"",onClick:Z=>D(_.route)},{default:X(()=>[c("div",Mi,[P(v(oe),{component:_.icon,size:"28"},null,8,["component"])]),c("div",Di,z(_.title),1),c("div",Ni,z(_.description),1)]),_:2},1032,["class","onClick"])),64))]),c("div",$i,[c("div",Pi,[c("div",Bi,[P(v(oe),{component:v(sr),size:"20"},null,8,["component"])]),d[2]||(d[2]=c("div",{class:"status-text"}," 系统状态: 在线 ",-1))]),c("div",Fi,[c("div",Ui,[P(v(oe),{component:v(Us),size:"20"},null,8,["component"])]),c("div",Hi," 当前版本: "+z(we.value?.version||"3.0.0"),1)])])]),c("div",Gi,[d[15]||(d[15]=c("h2",{class:"panel-title"}," GitHub 项目动态 ",-1)),c("div",ji,[(y(),C(Qe,null,Je(s,(_,Z)=>c("div",{key:_.name,class:Et(["repo-tab",{active:a.value===Z}]),onClick:ue=>a.value=Z},z(_.displayName),11,Wi)),64))]),i.value?(y(),_e(v(As),{key:0,show:i.value,class:"repo-spinner"},{description:X(()=>d[4]||(d[4]=[fe(" 加载中... ")])),_:1},8,["show"])):K("",!0),!i.value&&w.value?(y(),C("div",qi,[c("div",Vi,[P(v(oe),{component:v(Ys),size:"24",class:"repo-icon"},null,8,["component"]),c("a",{href:w.value.html_url,target:"_blank",class:"repo-title"},z(w.value.full_name),9,Zi),P(v(At),{type:w.value.private?"warning":"success",size:"small",class:"repo-tag"},{default:X(()=>[fe(z(w.value.private?"私有":"公开"),1)]),_:1},8,["type"]),c("div",Yi,[P(v(oe),{component:v(pr),size:"14",class:"cache-icon"},null,8,["component"]),c("span",null,z(ce()),1)]),c("div",Xi,[c("div",Ki,[P(v(oe),{component:v(lr),size:"16"},null,8,["component"]),c("span",null,z(w.value.stargazers_count),1)]),c("div",Qi,[P(v(oe),{component:v(Vs),size:"16"},null,8,["component"]),c("span",null,z(w.value.forks_count),1)]),c("div",Ji,[P(v(oe),{component:v(Gs),size:"16"},null,8,["component"]),c("span",null,z(w.value.watchers_count),1)])])]),c("p",eo,z(w.value.description||"暂无描述"),1),c("div",to,[c("div",no,[d[6]||(d[6]=c("h3",null,"最新提交",-1)),P(v(et),{text:"",size:"small",disabled:f.value,onClick:ke},{icon:X(()=>[P(v(oe),{component:v(tr),class:Et({"icon-spin":f.value})},null,8,["component","class"])]),default:X(()=>[d[5]||(d[5]=fe(" 刷新 "))]),_:1},8,["disabled"])]),(y(!0),C(Qe,null,Je(p.value[w.value.name]||[],_=>(y(),_e(v(Rt),{key:_.sha,class:"commit-card"},{default:X(()=>[c("div",so,[P(v(vs),{round:"",size:"small",src:_.author?.avatar_url,"fallback-src":"https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"},null,8,["src"]),c("div",ro,[c("div",io,z(_.author?.login||_.commit.author.name),1),c("div",oo,z(te(_.commit.author.date)),1)])]),c("div",lo,[c("a",{href:_.html_url,target:"_blank"},z(_.commit.message),9,ao)]),c("div",co,[_.stats?(y(),C("div",uo,[d[7]||(d[7]=c("div",{class:"stats-label"}," 新增 ",-1)),c("div",po," +"+z(_.stats.additions),1)])):K("",!0),_.stats?(y(),C("div",ho,[d[8]||(d[8]=c("div",{class:"stats-label"}," 删除 ",-1)),c("div",fo," -"+z(_.stats.deletions),1)])):K("",!0)])]),_:2},1024))),128)),(p.value[w.value.name]||[]).length===0?(y(),C("div",go,[P(v(_n),{description:"暂无提交记录"})])):K("",!0),(p.value[w.value.name]||[]).length>0?(y(),_e(v(et),{key:1,class:"view-more-btn",text:"",type:"primary",block:"",tag:"a",href:`${w.value.html_url}/commits`,target:"_blank"},{default:X(()=>d[9]||(d[9]=[fe(" 查看更多提交记录 ")])),_:1},8,["href"])):K("",!0)]),c("div",mo,[d[13]||(d[13]=c("div",{class:"section-header"},[c("h3",null,"最新发布")],-1)),(y(!0),C(Qe,null,Je(h.value[w.value.name]?.slice(0,2)||[],_=>(y(),_e(v(Rt),{key:_.id,class:"release-card"},{default:X(()=>[c("div",ko,[P(v(oe),{component:v(Js),size:"16"},null,8,["component"]),c("a",{href:_.html_url,target:"_blank"},z(_.name||_.tag_name),9,wo),_.prerelease?(y(),_e(v(At),{key:0,size:"small",type:"warning"},{default:X(()=>d[10]||(d[10]=[fe(" 预发布 ")])),_:1})):_.draft?(y(),_e(v(At),{key:1,size:"small",type:"info"},{default:X(()=>d[11]||(d[11]=[fe(" 草稿 ")])),_:1})):K("",!0)]),c("div",xo," 发布于 "+z(te(_.published_at)),1),_.body?(y(),C("div",{key:0,class:"release-body",innerHTML:b(_.body)},null,8,_o)):K("",!0)]),_:2},1024))),128)),(h.value[w.value.name]||[]).length===0?(y(),C("div",bo,[P(v(_n),{description:"暂无发布记录"})])):K("",!0),(h.value[w.value.name]||[]).length>0?(y(),_e(v(et),{key:1,class:"view-more-btn",text:"",type:"primary",block:"",tag:"a",href:`${w.value.html_url}/releases`,target:"_blank"},{default:X(()=>d[12]||(d[12]=[fe(" 查看更多发布 ")])),_:1},8,["href"])):K("",!0)])])):K("",!0),!i.value&&r.value?(y(),C("div",To,[P(v(Ms),{status:"error",title:"获取数据失败",description:r.value},{footer:X(()=>[P(v(et),{onClick:d[0]||(d[0]=_=>ge(!0))},{default:X(()=>d[14]||(d[14]=[fe(" 重试 ")])),_:1})]),_:1},8,["description"])])):K("",!0)])]),d[16]||(d[16]=Nn('<div class="decorative-circle circle-1" data-v-a2caf83f></div><div class="decorative-circle circle-2" data-v-a2caf83f></div><div class="decorative-dots" data-v-a2caf83f></div><div class="floating-shape shape-1" data-v-a2caf83f></div><div class="floating-shape shape-2" data-v-a2caf83f></div>',5))]))}}),Ao=Ss(yo,[["__scopeId","data-v-a2caf83f"]]);export{Ao as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as r}from"./ErrorTip.vue_vue_type_script_setup_true_lang-B5o0iz7y.js";import{k as c,b as e,o as n}from"./index-DzBQLoNi.js";const t={};function _(s,a){const o=r;return n(),e(o,{type:"403"})}const i=c(t,[["render",_]]);export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-B4oNPU3q.js";import"./index-DJdQ0nV5.js";import"./preview-open-CIsmwiay.js";import"./preview-close-one-DQdsMFNB.js";import"./headers-CiEBSHa2.js";import"./FormItem-D5nKwNGe.js";import"./Checkbox-BvK-NJJX.js";import"./text-BhKp8kwX.js";export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as V}from"./add-one-DBohvXa7.js";import{U as v,d as A,L as F,M as x,r as f,v as L,b as R,o as q,w as a,e as t,y as E,u as i,E as Q,C as j,O as H,B as c,g as k,P as K,Q as W,z as w,a as X,p}from"./index-CJIWqxBN.js";import{_ as Y}from"./TriggerFormModal.vue_vue_type_script_setup_true_lang-65eiY_Fl.js";import{_ as Z}from"./FormItem-CDsgx_ab.js";import{N as ee,_ as te}from"./Grid-DmeNHOJx.js";import{_ as ae}from"./FormItemGridItem-CEbJWTJd.js";import{N as ne}from"./DataTable-CZyItGh5.js";import"./index-CeFBXiHy.js";import"./Checkbox-gNUlkipW.js";import"./Ellipsis-BbsLqJtK.js";import"./prop-BjyUHhTu.js";import"./download-C2161hUv.js";function oe(s){return v.Get("/api/triggers/list",{params:s})}function le(s){return v.Post("/api/triggers/",s)}function se(s){return v.Delete(`/api/triggers/${s}`)}function re(s){return v.Post("/api/triggers/upload",s)}const ie={class:"flex gap-4"},he=A({__name:"index",setup(s){function z({upload:o,edit:e,remove:b}){return[{title:"ID",key:"id",resizable:!0},{title:"名称",key:"name",render(n){return p("div",{},n.name)},resizable:!0},{title:"描述",key:"description",width:300},{title:"状态",key:"status",width:100,render(n){return p("div",{class:n.status==="enabled"?"text-success":"text-error"},n.status==="enabled"?"启用":"禁用")}},{title:"一次性触发",key:"once",width:100,render(n){return p("div",{},n.once?"是":"否")}},{title:"创建日期",key:"createdAt",resizable:!0},{title:"操作",key:"actions",render(n){return[p(c,{type:"primary",strong:!0,tertiary:!0,size:"small",onClick:()=>o(n)},{default:()=>"上传"}),p(c,{type:"info",strong:!0,tertiary:!0,size:"small",onClick:()=>e(n)},{default:()=>"修改"}),p(c,{type:"error",strong:!0,tertiary:!0,size:"small",onClick:()=>b(n)},{default:()=>"删除"})]}}]}const g=F(),h=x({value:[]}),_=f(!1),m=f(!1),N={modelType:"settings",name:"",code:"",description:"",status:"enabled",once:!1,uploader:void 0},y=f(JSON.parse(JSON.stringify(N))),u=f(!1);function d(o){u.value=!0,oe(o).then(e=>{h.value=e.data,u.value=!1}).catch(()=>{u.value=!1})}function S(o){window.$dialog.warning({title:"确认删除",content:`确定要删除触发器 "${o.name}" 吗?此操作不可恢复`,positiveText:"确认删除",onPositiveClick:()=>{se(o.id).then(e=>{e.code===0&&(g.success("删除成功"),d())}).finally(()=>u.value=!1)}})}function M(o){u.value=!0,le(o).then(e=>{e.code===0&&(g.success(m.value?"修改成功":"创建成功"),d())}).finally(()=>{u.value=!1,_.value=!1})}const B=z({upload(o){re(o).then(e=>{e.code===0&&(g.success("上传成功"),d())})},edit(o){m.value=!0,y.value={...o},_.value=!0},remove:S});function O(){m.value=!1,y.value=JSON.parse(JSON.stringify(N)),_.value=!0}L(()=>{d()});const l=x({name:void 0,status:void 0,once:void 0});function U(){l.name=void 0,l.status=void 0,l.once=void 0,d(l)}return(o,e)=>{const b=Q,n=ae,T=j,$=K,G=W,I=te,J=Z,C=E,P=V,D=ne;return q(),R(i(w),{vertical:"",size:"large"},{default:a(()=>[t(C,null,{default:a(()=>[t(J,{model:l,"label-placement":"left",inline:"","show-feedback":!1},{default:a(()=>[t(i(ee),{cols:"1 s:2 m:3 l:6","x-gap":12,"y-gap":16,responsive:"screen","item-responsive":""},{default:a(()=>[t(n,{span:"1",label:"名称",path:"name"},{default:a(()=>[t(b,{value:l.name,"onUpdate:value":e[0]||(e[0]=r=>l.name=r),placeholder:"请输入要搜索的名称关键词"},null,8,["value"])]),_:1}),t(n,{span:"1",label:"状态",path:"status"},{default:a(()=>[t(T,{value:l.status,"onUpdate:value":e[1]||(e[1]=r=>l.status=r),placeholder:"请选择状态",options:[{label:"启用",value:"enabled"},{label:"禁用",value:"disabled"}],clearable:""},null,8,["value"])]),_:1}),t(n,{span:"1",label:"一次性",path:"once"},{default:a(()=>[t(T,{value:l.once,"onUpdate:value":e[2]||(e[2]=r=>l.once=r),placeholder:"请选择是否一次性",options:[{label:"是",value:!0},{label:"否",value:!1}],clearable:""},null,8,["value"])]),_:1}),t(I,{span:"1"},{default:a(()=>[t(i(H),{class:"ml-auto"},{default:a(()=>[t(i(c),{type:"primary",onClick:e[3]||(e[3]=r=>d(l))},{icon:a(()=>[t($)]),default:a(()=>[e[5]||(e[5]=k(" 搜索 "))]),_:1}),t(i(c),{strong:"",secondary:"",onClick:U},{icon:a(()=>[t(G)]),default:a(()=>[e[6]||(e[6]=k(" 重置 "))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(C,null,{default:a(()=>[t(i(w),{vertical:"",size:"large"},{default:a(()=>[X("div",ie,[t(i(c),{type:"primary",onClick:O},{icon:a(()=>[t(P)]),default:a(()=>[e[7]||(e[7]=k(" 新建触发器 "))]),_:1})]),t(D,{columns:i(B),data:h.value,loading:u.value},null,8,["columns","data","loading"])]),_:1})]),_:1}),t(Y,{show:_.value,"onUpdate:show":e[4]||(e[4]=r=>_.value=r),"edit-mode":m.value,"initial-data":y.value,onSubmit:M},null,8,["show","edit-mode","initial-data"])]),_:1})}}});export{he as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as r}from"./ErrorTip.vue_vue_type_script_setup_true_lang-q7wMY1La.js";import{k as c,b as e,o as n}from"./index-03UGSOxl.js";const t={};function _(s,a){const o=r;return n(),e(o,{type:"403"})}const i=c(t,[["render",_]]);export{i as default};
|