@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,1537 @@
|
|
|
1
|
+
import { n as __esm } from "../../rolldown-runtime-DVriDoez.mjs";
|
|
2
|
+
import { lstat, open, readdir, realpath, stat } from "fs/promises";
|
|
3
|
+
import * as sysPath from "path";
|
|
4
|
+
import { EventEmitter } from "events";
|
|
5
|
+
import { stat as stat$1, unwatchFile, watch, watchFile } from "fs";
|
|
6
|
+
import { type } from "os";
|
|
7
|
+
import { join, relative, resolve, sep } from "node:path";
|
|
8
|
+
import { lstat as lstat$1, readdir as readdir$1, realpath as realpath$1, stat as stat$2 } from "node:fs/promises";
|
|
9
|
+
import { Readable } from "node:stream";
|
|
10
|
+
|
|
11
|
+
//#region node_modules/.pnpm/readdirp@4.1.2/node_modules/readdirp/esm/index.js
|
|
12
|
+
/**
|
|
13
|
+
* Streaming version: Reads all files and directories in given root recursively.
|
|
14
|
+
* Consumes ~constant small amount of RAM.
|
|
15
|
+
* @param root Root directory
|
|
16
|
+
* @param options Options to specify root (start directory), filters and recursion depth
|
|
17
|
+
*/
|
|
18
|
+
function readdirp(root, options = {}) {
|
|
19
|
+
let type$1 = options.entryType || options.type;
|
|
20
|
+
if (type$1 === "both") type$1 = EntryTypes.FILE_DIR_TYPE;
|
|
21
|
+
if (type$1) options.type = type$1;
|
|
22
|
+
if (!root) throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");
|
|
23
|
+
else if (typeof root !== "string") throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");
|
|
24
|
+
else if (type$1 && !ALL_TYPES.includes(type$1)) throw new Error(`readdirp: Invalid type passed. Use one of ${ALL_TYPES.join(", ")}`);
|
|
25
|
+
options.root = root;
|
|
26
|
+
return new ReaddirpStream(options);
|
|
27
|
+
}
|
|
28
|
+
var EntryTypes, defaultOptions, RECURSIVE_ERROR_CODE, NORMAL_FLOW_ERRORS, ALL_TYPES, DIR_TYPES, FILE_TYPES, isNormalFlowError, wantBigintFsStats, emptyFn, normalizeFilter, ReaddirpStream;
|
|
29
|
+
var init_esm$1 = __esm({ "node_modules/.pnpm/readdirp@4.1.2/node_modules/readdirp/esm/index.js": (() => {
|
|
30
|
+
EntryTypes = {
|
|
31
|
+
FILE_TYPE: "files",
|
|
32
|
+
DIR_TYPE: "directories",
|
|
33
|
+
FILE_DIR_TYPE: "files_directories",
|
|
34
|
+
EVERYTHING_TYPE: "all"
|
|
35
|
+
};
|
|
36
|
+
defaultOptions = {
|
|
37
|
+
root: ".",
|
|
38
|
+
fileFilter: (_entryInfo) => true,
|
|
39
|
+
directoryFilter: (_entryInfo) => true,
|
|
40
|
+
type: EntryTypes.FILE_TYPE,
|
|
41
|
+
lstat: false,
|
|
42
|
+
depth: 2147483648,
|
|
43
|
+
alwaysStat: false,
|
|
44
|
+
highWaterMark: 4096
|
|
45
|
+
};
|
|
46
|
+
Object.freeze(defaultOptions);
|
|
47
|
+
RECURSIVE_ERROR_CODE = "READDIRP_RECURSIVE_ERROR";
|
|
48
|
+
NORMAL_FLOW_ERRORS = new Set([
|
|
49
|
+
"ENOENT",
|
|
50
|
+
"EPERM",
|
|
51
|
+
"EACCES",
|
|
52
|
+
"ELOOP",
|
|
53
|
+
RECURSIVE_ERROR_CODE
|
|
54
|
+
]);
|
|
55
|
+
ALL_TYPES = [
|
|
56
|
+
EntryTypes.DIR_TYPE,
|
|
57
|
+
EntryTypes.EVERYTHING_TYPE,
|
|
58
|
+
EntryTypes.FILE_DIR_TYPE,
|
|
59
|
+
EntryTypes.FILE_TYPE
|
|
60
|
+
];
|
|
61
|
+
DIR_TYPES = new Set([
|
|
62
|
+
EntryTypes.DIR_TYPE,
|
|
63
|
+
EntryTypes.EVERYTHING_TYPE,
|
|
64
|
+
EntryTypes.FILE_DIR_TYPE
|
|
65
|
+
]);
|
|
66
|
+
FILE_TYPES = new Set([
|
|
67
|
+
EntryTypes.EVERYTHING_TYPE,
|
|
68
|
+
EntryTypes.FILE_DIR_TYPE,
|
|
69
|
+
EntryTypes.FILE_TYPE
|
|
70
|
+
]);
|
|
71
|
+
isNormalFlowError = (error) => NORMAL_FLOW_ERRORS.has(error.code);
|
|
72
|
+
wantBigintFsStats = process.platform === "win32";
|
|
73
|
+
emptyFn = (_entryInfo) => true;
|
|
74
|
+
normalizeFilter = (filter) => {
|
|
75
|
+
if (filter === void 0) return emptyFn;
|
|
76
|
+
if (typeof filter === "function") return filter;
|
|
77
|
+
if (typeof filter === "string") {
|
|
78
|
+
const fl = filter.trim();
|
|
79
|
+
return (entry) => entry.basename === fl;
|
|
80
|
+
}
|
|
81
|
+
if (Array.isArray(filter)) {
|
|
82
|
+
const trItems = filter.map((item) => item.trim());
|
|
83
|
+
return (entry) => trItems.some((f) => entry.basename === f);
|
|
84
|
+
}
|
|
85
|
+
return emptyFn;
|
|
86
|
+
};
|
|
87
|
+
ReaddirpStream = class extends Readable {
|
|
88
|
+
constructor(options = {}) {
|
|
89
|
+
super({
|
|
90
|
+
objectMode: true,
|
|
91
|
+
autoDestroy: true,
|
|
92
|
+
highWaterMark: options.highWaterMark
|
|
93
|
+
});
|
|
94
|
+
const opts = {
|
|
95
|
+
...defaultOptions,
|
|
96
|
+
...options
|
|
97
|
+
};
|
|
98
|
+
const { root, type: type$1 } = opts;
|
|
99
|
+
this._fileFilter = normalizeFilter(opts.fileFilter);
|
|
100
|
+
this._directoryFilter = normalizeFilter(opts.directoryFilter);
|
|
101
|
+
const statMethod = opts.lstat ? lstat$1 : stat$2;
|
|
102
|
+
if (wantBigintFsStats) this._stat = (path$2) => statMethod(path$2, { bigint: true });
|
|
103
|
+
else this._stat = statMethod;
|
|
104
|
+
this._maxDepth = opts.depth ?? defaultOptions.depth;
|
|
105
|
+
this._wantsDir = type$1 ? DIR_TYPES.has(type$1) : false;
|
|
106
|
+
this._wantsFile = type$1 ? FILE_TYPES.has(type$1) : false;
|
|
107
|
+
this._wantsEverything = type$1 === EntryTypes.EVERYTHING_TYPE;
|
|
108
|
+
this._root = resolve(root);
|
|
109
|
+
this._isDirent = !opts.alwaysStat;
|
|
110
|
+
this._statsProp = this._isDirent ? "dirent" : "stats";
|
|
111
|
+
this._rdOptions = {
|
|
112
|
+
encoding: "utf8",
|
|
113
|
+
withFileTypes: this._isDirent
|
|
114
|
+
};
|
|
115
|
+
this.parents = [this._exploreDir(root, 1)];
|
|
116
|
+
this.reading = false;
|
|
117
|
+
this.parent = void 0;
|
|
118
|
+
}
|
|
119
|
+
async _read(batch) {
|
|
120
|
+
if (this.reading) return;
|
|
121
|
+
this.reading = true;
|
|
122
|
+
try {
|
|
123
|
+
while (!this.destroyed && batch > 0) {
|
|
124
|
+
const par = this.parent;
|
|
125
|
+
const fil = par && par.files;
|
|
126
|
+
if (fil && fil.length > 0) {
|
|
127
|
+
const { path: path$2, depth } = par;
|
|
128
|
+
const slice = fil.splice(0, batch).map((dirent) => this._formatEntry(dirent, path$2));
|
|
129
|
+
const awaited = await Promise.all(slice);
|
|
130
|
+
for (const entry of awaited) {
|
|
131
|
+
if (!entry) continue;
|
|
132
|
+
if (this.destroyed) return;
|
|
133
|
+
const entryType = await this._getEntryType(entry);
|
|
134
|
+
if (entryType === "directory" && this._directoryFilter(entry)) {
|
|
135
|
+
if (depth <= this._maxDepth) this.parents.push(this._exploreDir(entry.fullPath, depth + 1));
|
|
136
|
+
if (this._wantsDir) {
|
|
137
|
+
this.push(entry);
|
|
138
|
+
batch--;
|
|
139
|
+
}
|
|
140
|
+
} else if ((entryType === "file" || this._includeAsFile(entry)) && this._fileFilter(entry)) {
|
|
141
|
+
if (this._wantsFile) {
|
|
142
|
+
this.push(entry);
|
|
143
|
+
batch--;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
} else {
|
|
148
|
+
const parent = this.parents.pop();
|
|
149
|
+
if (!parent) {
|
|
150
|
+
this.push(null);
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
this.parent = await parent;
|
|
154
|
+
if (this.destroyed) return;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
} catch (error) {
|
|
158
|
+
this.destroy(error);
|
|
159
|
+
} finally {
|
|
160
|
+
this.reading = false;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
async _exploreDir(path$2, depth) {
|
|
164
|
+
let files;
|
|
165
|
+
try {
|
|
166
|
+
files = await readdir$1(path$2, this._rdOptions);
|
|
167
|
+
} catch (error) {
|
|
168
|
+
this._onError(error);
|
|
169
|
+
}
|
|
170
|
+
return {
|
|
171
|
+
files,
|
|
172
|
+
depth,
|
|
173
|
+
path: path$2
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
async _formatEntry(dirent, path$2) {
|
|
177
|
+
let entry;
|
|
178
|
+
const basename$1 = this._isDirent ? dirent.name : dirent;
|
|
179
|
+
try {
|
|
180
|
+
const fullPath = resolve(join(path$2, basename$1));
|
|
181
|
+
entry = {
|
|
182
|
+
path: relative(this._root, fullPath),
|
|
183
|
+
fullPath,
|
|
184
|
+
basename: basename$1
|
|
185
|
+
};
|
|
186
|
+
entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);
|
|
187
|
+
} catch (err) {
|
|
188
|
+
this._onError(err);
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
return entry;
|
|
192
|
+
}
|
|
193
|
+
_onError(err) {
|
|
194
|
+
if (isNormalFlowError(err) && !this.destroyed) this.emit("warn", err);
|
|
195
|
+
else this.destroy(err);
|
|
196
|
+
}
|
|
197
|
+
async _getEntryType(entry) {
|
|
198
|
+
if (!entry && this._statsProp in entry) return "";
|
|
199
|
+
const stats = entry[this._statsProp];
|
|
200
|
+
if (stats.isFile()) return "file";
|
|
201
|
+
if (stats.isDirectory()) return "directory";
|
|
202
|
+
if (stats && stats.isSymbolicLink()) {
|
|
203
|
+
const full = entry.fullPath;
|
|
204
|
+
try {
|
|
205
|
+
const entryRealPath = await realpath$1(full);
|
|
206
|
+
const entryRealPathStats = await lstat$1(entryRealPath);
|
|
207
|
+
if (entryRealPathStats.isFile()) return "file";
|
|
208
|
+
if (entryRealPathStats.isDirectory()) {
|
|
209
|
+
const len = entryRealPath.length;
|
|
210
|
+
if (full.startsWith(entryRealPath) && full.substr(len, 1) === sep) {
|
|
211
|
+
const recursiveError = /* @__PURE__ */ new Error(`Circular symlink detected: "${full}" points to "${entryRealPath}"`);
|
|
212
|
+
recursiveError.code = RECURSIVE_ERROR_CODE;
|
|
213
|
+
return this._onError(recursiveError);
|
|
214
|
+
}
|
|
215
|
+
return "directory";
|
|
216
|
+
}
|
|
217
|
+
} catch (error) {
|
|
218
|
+
this._onError(error);
|
|
219
|
+
return "";
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
_includeAsFile(entry) {
|
|
224
|
+
const stats = entry && entry[this._statsProp];
|
|
225
|
+
return stats && this._wantsEverything && !stats.isDirectory();
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
}) });
|
|
229
|
+
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region node_modules/.pnpm/chokidar@4.0.3/node_modules/chokidar/esm/handler.js
|
|
232
|
+
/**
|
|
233
|
+
* Instantiates the fs_watch interface
|
|
234
|
+
* @param path to be watched
|
|
235
|
+
* @param options to be passed to fs_watch
|
|
236
|
+
* @param listener main event handler
|
|
237
|
+
* @param errHandler emits info about errors
|
|
238
|
+
* @param emitRaw emits raw event data
|
|
239
|
+
* @returns {NativeFsWatcher}
|
|
240
|
+
*/
|
|
241
|
+
function createFsWatchInstance(path$2, options, listener, errHandler, emitRaw) {
|
|
242
|
+
const handleEvent = (rawEvent, evPath) => {
|
|
243
|
+
listener(path$2);
|
|
244
|
+
emitRaw(rawEvent, evPath, { watchedPath: path$2 });
|
|
245
|
+
if (evPath && path$2 !== evPath) fsWatchBroadcast(sysPath.resolve(path$2, evPath), KEY_LISTENERS, sysPath.join(path$2, evPath));
|
|
246
|
+
};
|
|
247
|
+
try {
|
|
248
|
+
return watch(path$2, { persistent: options.persistent }, handleEvent);
|
|
249
|
+
} catch (error) {
|
|
250
|
+
errHandler(error);
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
var STR_DATA, STR_END, STR_CLOSE, EMPTY_FN, pl, isWindows, isMacos, isLinux, isFreeBSD, isIBMi, EVENTS, EV, THROTTLE_MODE_WATCH, statMethods, KEY_LISTENERS, KEY_ERR, KEY_RAW, HANDLER_KEYS, binaryExtensions, isBinaryPath, foreach, addAndConvert, clearItem, delFromSet, isEmptySet, FsWatchInstances, fsWatchBroadcast, setFsWatchListener, FsWatchFileInstances, setFsWatchFileListener, NodeFsHandler;
|
|
255
|
+
var init_handler = __esm({ "node_modules/.pnpm/chokidar@4.0.3/node_modules/chokidar/esm/handler.js": (() => {
|
|
256
|
+
STR_DATA = "data";
|
|
257
|
+
STR_END = "end";
|
|
258
|
+
STR_CLOSE = "close";
|
|
259
|
+
EMPTY_FN = () => {};
|
|
260
|
+
pl = process.platform;
|
|
261
|
+
isWindows = pl === "win32";
|
|
262
|
+
isMacos = pl === "darwin";
|
|
263
|
+
isLinux = pl === "linux";
|
|
264
|
+
isFreeBSD = pl === "freebsd";
|
|
265
|
+
isIBMi = type() === "OS400";
|
|
266
|
+
EVENTS = {
|
|
267
|
+
ALL: "all",
|
|
268
|
+
READY: "ready",
|
|
269
|
+
ADD: "add",
|
|
270
|
+
CHANGE: "change",
|
|
271
|
+
ADD_DIR: "addDir",
|
|
272
|
+
UNLINK: "unlink",
|
|
273
|
+
UNLINK_DIR: "unlinkDir",
|
|
274
|
+
RAW: "raw",
|
|
275
|
+
ERROR: "error"
|
|
276
|
+
};
|
|
277
|
+
EV = EVENTS;
|
|
278
|
+
THROTTLE_MODE_WATCH = "watch";
|
|
279
|
+
statMethods = {
|
|
280
|
+
lstat,
|
|
281
|
+
stat
|
|
282
|
+
};
|
|
283
|
+
KEY_LISTENERS = "listeners";
|
|
284
|
+
KEY_ERR = "errHandlers";
|
|
285
|
+
KEY_RAW = "rawEmitters";
|
|
286
|
+
HANDLER_KEYS = [
|
|
287
|
+
KEY_LISTENERS,
|
|
288
|
+
KEY_ERR,
|
|
289
|
+
KEY_RAW
|
|
290
|
+
];
|
|
291
|
+
binaryExtensions = new Set([
|
|
292
|
+
"3dm",
|
|
293
|
+
"3ds",
|
|
294
|
+
"3g2",
|
|
295
|
+
"3gp",
|
|
296
|
+
"7z",
|
|
297
|
+
"a",
|
|
298
|
+
"aac",
|
|
299
|
+
"adp",
|
|
300
|
+
"afdesign",
|
|
301
|
+
"afphoto",
|
|
302
|
+
"afpub",
|
|
303
|
+
"ai",
|
|
304
|
+
"aif",
|
|
305
|
+
"aiff",
|
|
306
|
+
"alz",
|
|
307
|
+
"ape",
|
|
308
|
+
"apk",
|
|
309
|
+
"appimage",
|
|
310
|
+
"ar",
|
|
311
|
+
"arj",
|
|
312
|
+
"asf",
|
|
313
|
+
"au",
|
|
314
|
+
"avi",
|
|
315
|
+
"bak",
|
|
316
|
+
"baml",
|
|
317
|
+
"bh",
|
|
318
|
+
"bin",
|
|
319
|
+
"bk",
|
|
320
|
+
"bmp",
|
|
321
|
+
"btif",
|
|
322
|
+
"bz2",
|
|
323
|
+
"bzip2",
|
|
324
|
+
"cab",
|
|
325
|
+
"caf",
|
|
326
|
+
"cgm",
|
|
327
|
+
"class",
|
|
328
|
+
"cmx",
|
|
329
|
+
"cpio",
|
|
330
|
+
"cr2",
|
|
331
|
+
"cur",
|
|
332
|
+
"dat",
|
|
333
|
+
"dcm",
|
|
334
|
+
"deb",
|
|
335
|
+
"dex",
|
|
336
|
+
"djvu",
|
|
337
|
+
"dll",
|
|
338
|
+
"dmg",
|
|
339
|
+
"dng",
|
|
340
|
+
"doc",
|
|
341
|
+
"docm",
|
|
342
|
+
"docx",
|
|
343
|
+
"dot",
|
|
344
|
+
"dotm",
|
|
345
|
+
"dra",
|
|
346
|
+
"DS_Store",
|
|
347
|
+
"dsk",
|
|
348
|
+
"dts",
|
|
349
|
+
"dtshd",
|
|
350
|
+
"dvb",
|
|
351
|
+
"dwg",
|
|
352
|
+
"dxf",
|
|
353
|
+
"ecelp4800",
|
|
354
|
+
"ecelp7470",
|
|
355
|
+
"ecelp9600",
|
|
356
|
+
"egg",
|
|
357
|
+
"eol",
|
|
358
|
+
"eot",
|
|
359
|
+
"epub",
|
|
360
|
+
"exe",
|
|
361
|
+
"f4v",
|
|
362
|
+
"fbs",
|
|
363
|
+
"fh",
|
|
364
|
+
"fla",
|
|
365
|
+
"flac",
|
|
366
|
+
"flatpak",
|
|
367
|
+
"fli",
|
|
368
|
+
"flv",
|
|
369
|
+
"fpx",
|
|
370
|
+
"fst",
|
|
371
|
+
"fvt",
|
|
372
|
+
"g3",
|
|
373
|
+
"gh",
|
|
374
|
+
"gif",
|
|
375
|
+
"graffle",
|
|
376
|
+
"gz",
|
|
377
|
+
"gzip",
|
|
378
|
+
"h261",
|
|
379
|
+
"h263",
|
|
380
|
+
"h264",
|
|
381
|
+
"icns",
|
|
382
|
+
"ico",
|
|
383
|
+
"ief",
|
|
384
|
+
"img",
|
|
385
|
+
"ipa",
|
|
386
|
+
"iso",
|
|
387
|
+
"jar",
|
|
388
|
+
"jpeg",
|
|
389
|
+
"jpg",
|
|
390
|
+
"jpgv",
|
|
391
|
+
"jpm",
|
|
392
|
+
"jxr",
|
|
393
|
+
"key",
|
|
394
|
+
"ktx",
|
|
395
|
+
"lha",
|
|
396
|
+
"lib",
|
|
397
|
+
"lvp",
|
|
398
|
+
"lz",
|
|
399
|
+
"lzh",
|
|
400
|
+
"lzma",
|
|
401
|
+
"lzo",
|
|
402
|
+
"m3u",
|
|
403
|
+
"m4a",
|
|
404
|
+
"m4v",
|
|
405
|
+
"mar",
|
|
406
|
+
"mdi",
|
|
407
|
+
"mht",
|
|
408
|
+
"mid",
|
|
409
|
+
"midi",
|
|
410
|
+
"mj2",
|
|
411
|
+
"mka",
|
|
412
|
+
"mkv",
|
|
413
|
+
"mmr",
|
|
414
|
+
"mng",
|
|
415
|
+
"mobi",
|
|
416
|
+
"mov",
|
|
417
|
+
"movie",
|
|
418
|
+
"mp3",
|
|
419
|
+
"mp4",
|
|
420
|
+
"mp4a",
|
|
421
|
+
"mpeg",
|
|
422
|
+
"mpg",
|
|
423
|
+
"mpga",
|
|
424
|
+
"mxu",
|
|
425
|
+
"nef",
|
|
426
|
+
"npx",
|
|
427
|
+
"numbers",
|
|
428
|
+
"nupkg",
|
|
429
|
+
"o",
|
|
430
|
+
"odp",
|
|
431
|
+
"ods",
|
|
432
|
+
"odt",
|
|
433
|
+
"oga",
|
|
434
|
+
"ogg",
|
|
435
|
+
"ogv",
|
|
436
|
+
"otf",
|
|
437
|
+
"ott",
|
|
438
|
+
"pages",
|
|
439
|
+
"pbm",
|
|
440
|
+
"pcx",
|
|
441
|
+
"pdb",
|
|
442
|
+
"pdf",
|
|
443
|
+
"pea",
|
|
444
|
+
"pgm",
|
|
445
|
+
"pic",
|
|
446
|
+
"png",
|
|
447
|
+
"pnm",
|
|
448
|
+
"pot",
|
|
449
|
+
"potm",
|
|
450
|
+
"potx",
|
|
451
|
+
"ppa",
|
|
452
|
+
"ppam",
|
|
453
|
+
"ppm",
|
|
454
|
+
"pps",
|
|
455
|
+
"ppsm",
|
|
456
|
+
"ppsx",
|
|
457
|
+
"ppt",
|
|
458
|
+
"pptm",
|
|
459
|
+
"pptx",
|
|
460
|
+
"psd",
|
|
461
|
+
"pya",
|
|
462
|
+
"pyc",
|
|
463
|
+
"pyo",
|
|
464
|
+
"pyv",
|
|
465
|
+
"qt",
|
|
466
|
+
"rar",
|
|
467
|
+
"ras",
|
|
468
|
+
"raw",
|
|
469
|
+
"resources",
|
|
470
|
+
"rgb",
|
|
471
|
+
"rip",
|
|
472
|
+
"rlc",
|
|
473
|
+
"rmf",
|
|
474
|
+
"rmvb",
|
|
475
|
+
"rpm",
|
|
476
|
+
"rtf",
|
|
477
|
+
"rz",
|
|
478
|
+
"s3m",
|
|
479
|
+
"s7z",
|
|
480
|
+
"scpt",
|
|
481
|
+
"sgi",
|
|
482
|
+
"shar",
|
|
483
|
+
"snap",
|
|
484
|
+
"sil",
|
|
485
|
+
"sketch",
|
|
486
|
+
"slk",
|
|
487
|
+
"smv",
|
|
488
|
+
"snk",
|
|
489
|
+
"so",
|
|
490
|
+
"stl",
|
|
491
|
+
"suo",
|
|
492
|
+
"sub",
|
|
493
|
+
"swf",
|
|
494
|
+
"tar",
|
|
495
|
+
"tbz",
|
|
496
|
+
"tbz2",
|
|
497
|
+
"tga",
|
|
498
|
+
"tgz",
|
|
499
|
+
"thmx",
|
|
500
|
+
"tif",
|
|
501
|
+
"tiff",
|
|
502
|
+
"tlz",
|
|
503
|
+
"ttc",
|
|
504
|
+
"ttf",
|
|
505
|
+
"txz",
|
|
506
|
+
"udf",
|
|
507
|
+
"uvh",
|
|
508
|
+
"uvi",
|
|
509
|
+
"uvm",
|
|
510
|
+
"uvp",
|
|
511
|
+
"uvs",
|
|
512
|
+
"uvu",
|
|
513
|
+
"viv",
|
|
514
|
+
"vob",
|
|
515
|
+
"war",
|
|
516
|
+
"wav",
|
|
517
|
+
"wax",
|
|
518
|
+
"wbmp",
|
|
519
|
+
"wdp",
|
|
520
|
+
"weba",
|
|
521
|
+
"webm",
|
|
522
|
+
"webp",
|
|
523
|
+
"whl",
|
|
524
|
+
"wim",
|
|
525
|
+
"wm",
|
|
526
|
+
"wma",
|
|
527
|
+
"wmv",
|
|
528
|
+
"wmx",
|
|
529
|
+
"woff",
|
|
530
|
+
"woff2",
|
|
531
|
+
"wrm",
|
|
532
|
+
"wvx",
|
|
533
|
+
"xbm",
|
|
534
|
+
"xif",
|
|
535
|
+
"xla",
|
|
536
|
+
"xlam",
|
|
537
|
+
"xls",
|
|
538
|
+
"xlsb",
|
|
539
|
+
"xlsm",
|
|
540
|
+
"xlsx",
|
|
541
|
+
"xlt",
|
|
542
|
+
"xltm",
|
|
543
|
+
"xltx",
|
|
544
|
+
"xm",
|
|
545
|
+
"xmind",
|
|
546
|
+
"xpi",
|
|
547
|
+
"xpm",
|
|
548
|
+
"xwd",
|
|
549
|
+
"xz",
|
|
550
|
+
"z",
|
|
551
|
+
"zip",
|
|
552
|
+
"zipx"
|
|
553
|
+
]);
|
|
554
|
+
isBinaryPath = (filePath) => binaryExtensions.has(sysPath.extname(filePath).slice(1).toLowerCase());
|
|
555
|
+
foreach = (val, fn) => {
|
|
556
|
+
if (val instanceof Set) val.forEach(fn);
|
|
557
|
+
else fn(val);
|
|
558
|
+
};
|
|
559
|
+
addAndConvert = (main, prop, item) => {
|
|
560
|
+
let container = main[prop];
|
|
561
|
+
if (!(container instanceof Set)) main[prop] = container = new Set([container]);
|
|
562
|
+
container.add(item);
|
|
563
|
+
};
|
|
564
|
+
clearItem = (cont) => (key) => {
|
|
565
|
+
const set = cont[key];
|
|
566
|
+
if (set instanceof Set) set.clear();
|
|
567
|
+
else delete cont[key];
|
|
568
|
+
};
|
|
569
|
+
delFromSet = (main, prop, item) => {
|
|
570
|
+
const container = main[prop];
|
|
571
|
+
if (container instanceof Set) container.delete(item);
|
|
572
|
+
else if (container === item) delete main[prop];
|
|
573
|
+
};
|
|
574
|
+
isEmptySet = (val) => val instanceof Set ? val.size === 0 : !val;
|
|
575
|
+
FsWatchInstances = /* @__PURE__ */ new Map();
|
|
576
|
+
fsWatchBroadcast = (fullPath, listenerType, val1, val2, val3) => {
|
|
577
|
+
const cont = FsWatchInstances.get(fullPath);
|
|
578
|
+
if (!cont) return;
|
|
579
|
+
foreach(cont[listenerType], (listener) => {
|
|
580
|
+
listener(val1, val2, val3);
|
|
581
|
+
});
|
|
582
|
+
};
|
|
583
|
+
setFsWatchListener = (path$2, fullPath, options, handlers) => {
|
|
584
|
+
const { listener, errHandler, rawEmitter } = handlers;
|
|
585
|
+
let cont = FsWatchInstances.get(fullPath);
|
|
586
|
+
let watcher;
|
|
587
|
+
if (!options.persistent) {
|
|
588
|
+
watcher = createFsWatchInstance(path$2, options, listener, errHandler, rawEmitter);
|
|
589
|
+
if (!watcher) return;
|
|
590
|
+
return watcher.close.bind(watcher);
|
|
591
|
+
}
|
|
592
|
+
if (cont) {
|
|
593
|
+
addAndConvert(cont, KEY_LISTENERS, listener);
|
|
594
|
+
addAndConvert(cont, KEY_ERR, errHandler);
|
|
595
|
+
addAndConvert(cont, KEY_RAW, rawEmitter);
|
|
596
|
+
} else {
|
|
597
|
+
watcher = createFsWatchInstance(path$2, options, fsWatchBroadcast.bind(null, fullPath, KEY_LISTENERS), errHandler, fsWatchBroadcast.bind(null, fullPath, KEY_RAW));
|
|
598
|
+
if (!watcher) return;
|
|
599
|
+
watcher.on(EV.ERROR, async (error) => {
|
|
600
|
+
const broadcastErr = fsWatchBroadcast.bind(null, fullPath, KEY_ERR);
|
|
601
|
+
if (cont) cont.watcherUnusable = true;
|
|
602
|
+
if (isWindows && error.code === "EPERM") try {
|
|
603
|
+
await (await open(path$2, "r")).close();
|
|
604
|
+
broadcastErr(error);
|
|
605
|
+
} catch (err) {}
|
|
606
|
+
else broadcastErr(error);
|
|
607
|
+
});
|
|
608
|
+
cont = {
|
|
609
|
+
listeners: listener,
|
|
610
|
+
errHandlers: errHandler,
|
|
611
|
+
rawEmitters: rawEmitter,
|
|
612
|
+
watcher
|
|
613
|
+
};
|
|
614
|
+
FsWatchInstances.set(fullPath, cont);
|
|
615
|
+
}
|
|
616
|
+
return () => {
|
|
617
|
+
delFromSet(cont, KEY_LISTENERS, listener);
|
|
618
|
+
delFromSet(cont, KEY_ERR, errHandler);
|
|
619
|
+
delFromSet(cont, KEY_RAW, rawEmitter);
|
|
620
|
+
if (isEmptySet(cont.listeners)) {
|
|
621
|
+
cont.watcher.close();
|
|
622
|
+
FsWatchInstances.delete(fullPath);
|
|
623
|
+
HANDLER_KEYS.forEach(clearItem(cont));
|
|
624
|
+
cont.watcher = void 0;
|
|
625
|
+
Object.freeze(cont);
|
|
626
|
+
}
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
FsWatchFileInstances = /* @__PURE__ */ new Map();
|
|
630
|
+
setFsWatchFileListener = (path$2, fullPath, options, handlers) => {
|
|
631
|
+
const { listener, rawEmitter } = handlers;
|
|
632
|
+
let cont = FsWatchFileInstances.get(fullPath);
|
|
633
|
+
const copts = cont && cont.options;
|
|
634
|
+
if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) {
|
|
635
|
+
unwatchFile(fullPath);
|
|
636
|
+
cont = void 0;
|
|
637
|
+
}
|
|
638
|
+
if (cont) {
|
|
639
|
+
addAndConvert(cont, KEY_LISTENERS, listener);
|
|
640
|
+
addAndConvert(cont, KEY_RAW, rawEmitter);
|
|
641
|
+
} else {
|
|
642
|
+
cont = {
|
|
643
|
+
listeners: listener,
|
|
644
|
+
rawEmitters: rawEmitter,
|
|
645
|
+
options,
|
|
646
|
+
watcher: watchFile(fullPath, options, (curr, prev) => {
|
|
647
|
+
foreach(cont.rawEmitters, (rawEmitter$1) => {
|
|
648
|
+
rawEmitter$1(EV.CHANGE, fullPath, {
|
|
649
|
+
curr,
|
|
650
|
+
prev
|
|
651
|
+
});
|
|
652
|
+
});
|
|
653
|
+
const currmtime = curr.mtimeMs;
|
|
654
|
+
if (curr.size !== prev.size || currmtime > prev.mtimeMs || currmtime === 0) foreach(cont.listeners, (listener$1) => listener$1(path$2, curr));
|
|
655
|
+
})
|
|
656
|
+
};
|
|
657
|
+
FsWatchFileInstances.set(fullPath, cont);
|
|
658
|
+
}
|
|
659
|
+
return () => {
|
|
660
|
+
delFromSet(cont, KEY_LISTENERS, listener);
|
|
661
|
+
delFromSet(cont, KEY_RAW, rawEmitter);
|
|
662
|
+
if (isEmptySet(cont.listeners)) {
|
|
663
|
+
FsWatchFileInstances.delete(fullPath);
|
|
664
|
+
unwatchFile(fullPath);
|
|
665
|
+
cont.options = cont.watcher = void 0;
|
|
666
|
+
Object.freeze(cont);
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
NodeFsHandler = class {
|
|
671
|
+
constructor(fsW) {
|
|
672
|
+
this.fsw = fsW;
|
|
673
|
+
this._boundHandleError = (error) => fsW._handleError(error);
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Watch file for changes with fs_watchFile or fs_watch.
|
|
677
|
+
* @param path to file or dir
|
|
678
|
+
* @param listener on fs change
|
|
679
|
+
* @returns closer for the watcher instance
|
|
680
|
+
*/
|
|
681
|
+
_watchWithNodeFs(path$2, listener) {
|
|
682
|
+
const opts = this.fsw.options;
|
|
683
|
+
const directory = sysPath.dirname(path$2);
|
|
684
|
+
const basename$1 = sysPath.basename(path$2);
|
|
685
|
+
this.fsw._getWatchedDir(directory).add(basename$1);
|
|
686
|
+
const absolutePath = sysPath.resolve(path$2);
|
|
687
|
+
const options = { persistent: opts.persistent };
|
|
688
|
+
if (!listener) listener = EMPTY_FN;
|
|
689
|
+
let closer;
|
|
690
|
+
if (opts.usePolling) {
|
|
691
|
+
options.interval = opts.interval !== opts.binaryInterval && isBinaryPath(basename$1) ? opts.binaryInterval : opts.interval;
|
|
692
|
+
closer = setFsWatchFileListener(path$2, absolutePath, options, {
|
|
693
|
+
listener,
|
|
694
|
+
rawEmitter: this.fsw._emitRaw
|
|
695
|
+
});
|
|
696
|
+
} else closer = setFsWatchListener(path$2, absolutePath, options, {
|
|
697
|
+
listener,
|
|
698
|
+
errHandler: this._boundHandleError,
|
|
699
|
+
rawEmitter: this.fsw._emitRaw
|
|
700
|
+
});
|
|
701
|
+
return closer;
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* Watch a file and emit add event if warranted.
|
|
705
|
+
* @returns closer for the watcher instance
|
|
706
|
+
*/
|
|
707
|
+
_handleFile(file, stats, initialAdd) {
|
|
708
|
+
if (this.fsw.closed) return;
|
|
709
|
+
const dirname = sysPath.dirname(file);
|
|
710
|
+
const basename$1 = sysPath.basename(file);
|
|
711
|
+
const parent = this.fsw._getWatchedDir(dirname);
|
|
712
|
+
let prevStats = stats;
|
|
713
|
+
if (parent.has(basename$1)) return;
|
|
714
|
+
const listener = async (path$2, newStats) => {
|
|
715
|
+
if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5)) return;
|
|
716
|
+
if (!newStats || newStats.mtimeMs === 0) try {
|
|
717
|
+
const newStats$1 = await stat(file);
|
|
718
|
+
if (this.fsw.closed) return;
|
|
719
|
+
const at = newStats$1.atimeMs;
|
|
720
|
+
const mt = newStats$1.mtimeMs;
|
|
721
|
+
if (!at || at <= mt || mt !== prevStats.mtimeMs) this.fsw._emit(EV.CHANGE, file, newStats$1);
|
|
722
|
+
if ((isMacos || isLinux || isFreeBSD) && prevStats.ino !== newStats$1.ino) {
|
|
723
|
+
this.fsw._closeFile(path$2);
|
|
724
|
+
prevStats = newStats$1;
|
|
725
|
+
const closer$1 = this._watchWithNodeFs(file, listener);
|
|
726
|
+
if (closer$1) this.fsw._addPathCloser(path$2, closer$1);
|
|
727
|
+
} else prevStats = newStats$1;
|
|
728
|
+
} catch (error) {
|
|
729
|
+
this.fsw._remove(dirname, basename$1);
|
|
730
|
+
}
|
|
731
|
+
else if (parent.has(basename$1)) {
|
|
732
|
+
const at = newStats.atimeMs;
|
|
733
|
+
const mt = newStats.mtimeMs;
|
|
734
|
+
if (!at || at <= mt || mt !== prevStats.mtimeMs) this.fsw._emit(EV.CHANGE, file, newStats);
|
|
735
|
+
prevStats = newStats;
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
const closer = this._watchWithNodeFs(file, listener);
|
|
739
|
+
if (!(initialAdd && this.fsw.options.ignoreInitial) && this.fsw._isntIgnored(file)) {
|
|
740
|
+
if (!this.fsw._throttle(EV.ADD, file, 0)) return;
|
|
741
|
+
this.fsw._emit(EV.ADD, file, stats);
|
|
742
|
+
}
|
|
743
|
+
return closer;
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Handle symlinks encountered while reading a dir.
|
|
747
|
+
* @param entry returned by readdirp
|
|
748
|
+
* @param directory path of dir being read
|
|
749
|
+
* @param path of this item
|
|
750
|
+
* @param item basename of this item
|
|
751
|
+
* @returns true if no more processing is needed for this entry.
|
|
752
|
+
*/
|
|
753
|
+
async _handleSymlink(entry, directory, path$2, item) {
|
|
754
|
+
if (this.fsw.closed) return;
|
|
755
|
+
const full = entry.fullPath;
|
|
756
|
+
const dir = this.fsw._getWatchedDir(directory);
|
|
757
|
+
if (!this.fsw.options.followSymlinks) {
|
|
758
|
+
this.fsw._incrReadyCount();
|
|
759
|
+
let linkPath;
|
|
760
|
+
try {
|
|
761
|
+
linkPath = await realpath(path$2);
|
|
762
|
+
} catch (e) {
|
|
763
|
+
this.fsw._emitReady();
|
|
764
|
+
return true;
|
|
765
|
+
}
|
|
766
|
+
if (this.fsw.closed) return;
|
|
767
|
+
if (dir.has(item)) {
|
|
768
|
+
if (this.fsw._symlinkPaths.get(full) !== linkPath) {
|
|
769
|
+
this.fsw._symlinkPaths.set(full, linkPath);
|
|
770
|
+
this.fsw._emit(EV.CHANGE, path$2, entry.stats);
|
|
771
|
+
}
|
|
772
|
+
} else {
|
|
773
|
+
dir.add(item);
|
|
774
|
+
this.fsw._symlinkPaths.set(full, linkPath);
|
|
775
|
+
this.fsw._emit(EV.ADD, path$2, entry.stats);
|
|
776
|
+
}
|
|
777
|
+
this.fsw._emitReady();
|
|
778
|
+
return true;
|
|
779
|
+
}
|
|
780
|
+
if (this.fsw._symlinkPaths.has(full)) return true;
|
|
781
|
+
this.fsw._symlinkPaths.set(full, true);
|
|
782
|
+
}
|
|
783
|
+
_handleRead(directory, initialAdd, wh, target, dir, depth, throttler) {
|
|
784
|
+
directory = sysPath.join(directory, "");
|
|
785
|
+
throttler = this.fsw._throttle("readdir", directory, 1e3);
|
|
786
|
+
if (!throttler) return;
|
|
787
|
+
const previous = this.fsw._getWatchedDir(wh.path);
|
|
788
|
+
const current = /* @__PURE__ */ new Set();
|
|
789
|
+
let stream = this.fsw._readdirp(directory, {
|
|
790
|
+
fileFilter: (entry) => wh.filterPath(entry),
|
|
791
|
+
directoryFilter: (entry) => wh.filterDir(entry)
|
|
792
|
+
});
|
|
793
|
+
if (!stream) return;
|
|
794
|
+
stream.on(STR_DATA, async (entry) => {
|
|
795
|
+
if (this.fsw.closed) {
|
|
796
|
+
stream = void 0;
|
|
797
|
+
return;
|
|
798
|
+
}
|
|
799
|
+
const item = entry.path;
|
|
800
|
+
let path$2 = sysPath.join(directory, item);
|
|
801
|
+
current.add(item);
|
|
802
|
+
if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path$2, item)) return;
|
|
803
|
+
if (this.fsw.closed) {
|
|
804
|
+
stream = void 0;
|
|
805
|
+
return;
|
|
806
|
+
}
|
|
807
|
+
if (item === target || !target && !previous.has(item)) {
|
|
808
|
+
this.fsw._incrReadyCount();
|
|
809
|
+
path$2 = sysPath.join(dir, sysPath.relative(dir, path$2));
|
|
810
|
+
this._addToNodeFs(path$2, initialAdd, wh, depth + 1);
|
|
811
|
+
}
|
|
812
|
+
}).on(EV.ERROR, this._boundHandleError);
|
|
813
|
+
return new Promise((resolve$1, reject) => {
|
|
814
|
+
if (!stream) return reject();
|
|
815
|
+
stream.once(STR_END, () => {
|
|
816
|
+
if (this.fsw.closed) {
|
|
817
|
+
stream = void 0;
|
|
818
|
+
return;
|
|
819
|
+
}
|
|
820
|
+
const wasThrottled = throttler ? throttler.clear() : false;
|
|
821
|
+
resolve$1(void 0);
|
|
822
|
+
previous.getChildren().filter((item) => {
|
|
823
|
+
return item !== directory && !current.has(item);
|
|
824
|
+
}).forEach((item) => {
|
|
825
|
+
this.fsw._remove(directory, item);
|
|
826
|
+
});
|
|
827
|
+
stream = void 0;
|
|
828
|
+
if (wasThrottled) this._handleRead(directory, false, wh, target, dir, depth, throttler);
|
|
829
|
+
});
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
* Read directory to add / remove files from `@watched` list and re-read it on change.
|
|
834
|
+
* @param dir fs path
|
|
835
|
+
* @param stats
|
|
836
|
+
* @param initialAdd
|
|
837
|
+
* @param depth relative to user-supplied path
|
|
838
|
+
* @param target child path targeted for watch
|
|
839
|
+
* @param wh Common watch helpers for this path
|
|
840
|
+
* @param realpath
|
|
841
|
+
* @returns closer for the watcher instance.
|
|
842
|
+
*/
|
|
843
|
+
async _handleDir(dir, stats, initialAdd, depth, target, wh, realpath$2) {
|
|
844
|
+
const parentDir = this.fsw._getWatchedDir(sysPath.dirname(dir));
|
|
845
|
+
const tracked = parentDir.has(sysPath.basename(dir));
|
|
846
|
+
if (!(initialAdd && this.fsw.options.ignoreInitial) && !target && !tracked) this.fsw._emit(EV.ADD_DIR, dir, stats);
|
|
847
|
+
parentDir.add(sysPath.basename(dir));
|
|
848
|
+
this.fsw._getWatchedDir(dir);
|
|
849
|
+
let throttler;
|
|
850
|
+
let closer;
|
|
851
|
+
const oDepth = this.fsw.options.depth;
|
|
852
|
+
if ((oDepth == null || depth <= oDepth) && !this.fsw._symlinkPaths.has(realpath$2)) {
|
|
853
|
+
if (!target) {
|
|
854
|
+
await this._handleRead(dir, initialAdd, wh, target, dir, depth, throttler);
|
|
855
|
+
if (this.fsw.closed) return;
|
|
856
|
+
}
|
|
857
|
+
closer = this._watchWithNodeFs(dir, (dirPath, stats$1) => {
|
|
858
|
+
if (stats$1 && stats$1.mtimeMs === 0) return;
|
|
859
|
+
this._handleRead(dirPath, false, wh, target, dir, depth, throttler);
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
return closer;
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* Handle added file, directory, or glob pattern.
|
|
866
|
+
* Delegates call to _handleFile / _handleDir after checks.
|
|
867
|
+
* @param path to file or ir
|
|
868
|
+
* @param initialAdd was the file added at watch instantiation?
|
|
869
|
+
* @param priorWh depth relative to user-supplied path
|
|
870
|
+
* @param depth Child path actually targeted for watch
|
|
871
|
+
* @param target Child path actually targeted for watch
|
|
872
|
+
*/
|
|
873
|
+
async _addToNodeFs(path$2, initialAdd, priorWh, depth, target) {
|
|
874
|
+
const ready = this.fsw._emitReady;
|
|
875
|
+
if (this.fsw._isIgnored(path$2) || this.fsw.closed) {
|
|
876
|
+
ready();
|
|
877
|
+
return false;
|
|
878
|
+
}
|
|
879
|
+
const wh = this.fsw._getWatchHelpers(path$2);
|
|
880
|
+
if (priorWh) {
|
|
881
|
+
wh.filterPath = (entry) => priorWh.filterPath(entry);
|
|
882
|
+
wh.filterDir = (entry) => priorWh.filterDir(entry);
|
|
883
|
+
}
|
|
884
|
+
try {
|
|
885
|
+
const stats = await statMethods[wh.statMethod](wh.watchPath);
|
|
886
|
+
if (this.fsw.closed) return;
|
|
887
|
+
if (this.fsw._isIgnored(wh.watchPath, stats)) {
|
|
888
|
+
ready();
|
|
889
|
+
return false;
|
|
890
|
+
}
|
|
891
|
+
const follow = this.fsw.options.followSymlinks;
|
|
892
|
+
let closer;
|
|
893
|
+
if (stats.isDirectory()) {
|
|
894
|
+
const absPath = sysPath.resolve(path$2);
|
|
895
|
+
const targetPath = follow ? await realpath(path$2) : path$2;
|
|
896
|
+
if (this.fsw.closed) return;
|
|
897
|
+
closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
|
|
898
|
+
if (this.fsw.closed) return;
|
|
899
|
+
if (absPath !== targetPath && targetPath !== void 0) this.fsw._symlinkPaths.set(absPath, targetPath);
|
|
900
|
+
} else if (stats.isSymbolicLink()) {
|
|
901
|
+
const targetPath = follow ? await realpath(path$2) : path$2;
|
|
902
|
+
if (this.fsw.closed) return;
|
|
903
|
+
const parent = sysPath.dirname(wh.watchPath);
|
|
904
|
+
this.fsw._getWatchedDir(parent).add(wh.watchPath);
|
|
905
|
+
this.fsw._emit(EV.ADD, wh.watchPath, stats);
|
|
906
|
+
closer = await this._handleDir(parent, stats, initialAdd, depth, path$2, wh, targetPath);
|
|
907
|
+
if (this.fsw.closed) return;
|
|
908
|
+
if (targetPath !== void 0) this.fsw._symlinkPaths.set(sysPath.resolve(path$2), targetPath);
|
|
909
|
+
} else closer = this._handleFile(wh.watchPath, stats, initialAdd);
|
|
910
|
+
ready();
|
|
911
|
+
if (closer) this.fsw._addPathCloser(path$2, closer);
|
|
912
|
+
return false;
|
|
913
|
+
} catch (error) {
|
|
914
|
+
if (this.fsw._handleError(error)) {
|
|
915
|
+
ready();
|
|
916
|
+
return path$2;
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
};
|
|
921
|
+
}) });
|
|
922
|
+
|
|
923
|
+
//#endregion
|
|
924
|
+
//#region node_modules/.pnpm/chokidar@4.0.3/node_modules/chokidar/esm/index.js
|
|
925
|
+
/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */
|
|
926
|
+
function arrify(item) {
|
|
927
|
+
return Array.isArray(item) ? item : [item];
|
|
928
|
+
}
|
|
929
|
+
function createPattern(matcher) {
|
|
930
|
+
if (typeof matcher === "function") return matcher;
|
|
931
|
+
if (typeof matcher === "string") return (string) => matcher === string;
|
|
932
|
+
if (matcher instanceof RegExp) return (string) => matcher.test(string);
|
|
933
|
+
if (typeof matcher === "object" && matcher !== null) return (string) => {
|
|
934
|
+
if (matcher.path === string) return true;
|
|
935
|
+
if (matcher.recursive) {
|
|
936
|
+
const relative$1 = sysPath.relative(matcher.path, string);
|
|
937
|
+
if (!relative$1) return false;
|
|
938
|
+
return !relative$1.startsWith("..") && !sysPath.isAbsolute(relative$1);
|
|
939
|
+
}
|
|
940
|
+
return false;
|
|
941
|
+
};
|
|
942
|
+
return () => false;
|
|
943
|
+
}
|
|
944
|
+
function normalizePath(path$2) {
|
|
945
|
+
if (typeof path$2 !== "string") throw new Error("string expected");
|
|
946
|
+
path$2 = sysPath.normalize(path$2);
|
|
947
|
+
path$2 = path$2.replace(/\\/g, "/");
|
|
948
|
+
let prepend = false;
|
|
949
|
+
if (path$2.startsWith("//")) prepend = true;
|
|
950
|
+
const DOUBLE_SLASH_RE$1 = /\/\//;
|
|
951
|
+
while (path$2.match(DOUBLE_SLASH_RE$1)) path$2 = path$2.replace(DOUBLE_SLASH_RE$1, "/");
|
|
952
|
+
if (prepend) path$2 = "/" + path$2;
|
|
953
|
+
return path$2;
|
|
954
|
+
}
|
|
955
|
+
function matchPatterns(patterns, testString, stats) {
|
|
956
|
+
const path$2 = normalizePath(testString);
|
|
957
|
+
for (let index = 0; index < patterns.length; index++) {
|
|
958
|
+
const pattern = patterns[index];
|
|
959
|
+
if (pattern(path$2, stats)) return true;
|
|
960
|
+
}
|
|
961
|
+
return false;
|
|
962
|
+
}
|
|
963
|
+
function anymatch(matchers, testString) {
|
|
964
|
+
if (matchers == null) throw new TypeError("anymatch: specify first argument");
|
|
965
|
+
const patterns = arrify(matchers).map((matcher) => createPattern(matcher));
|
|
966
|
+
if (testString == null) return (testString$1, stats) => {
|
|
967
|
+
return matchPatterns(patterns, testString$1, stats);
|
|
968
|
+
};
|
|
969
|
+
return matchPatterns(patterns, testString);
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* Instantiates watcher with paths to be tracked.
|
|
973
|
+
* @param paths file / directory paths
|
|
974
|
+
* @param options opts, such as `atomic`, `awaitWriteFinish`, `ignored`, and others
|
|
975
|
+
* @returns an instance of FSWatcher for chaining.
|
|
976
|
+
* @example
|
|
977
|
+
* const watcher = watch('.').on('all', (event, path) => { console.log(event, path); });
|
|
978
|
+
* watch('.', { atomic: true, awaitWriteFinish: true, ignored: (f, stats) => stats?.isFile() && !f.endsWith('.js') })
|
|
979
|
+
*/
|
|
980
|
+
function watch$1(paths, options = {}) {
|
|
981
|
+
const watcher = new FSWatcher(options);
|
|
982
|
+
watcher.add(paths);
|
|
983
|
+
return watcher;
|
|
984
|
+
}
|
|
985
|
+
var SLASH, SLASH_SLASH, ONE_DOT, TWO_DOTS, STRING_TYPE, BACK_SLASH_RE, DOUBLE_SLASH_RE, DOT_RE, REPLACER_RE, isMatcherObject, unifyPaths, toUnix, normalizePathToUnix, normalizeIgnored, getAbsolutePath, EMPTY_SET, DirEntry, STAT_METHOD_F, STAT_METHOD_L, WatchHelper, FSWatcher, esm_default;
|
|
986
|
+
var init_esm = __esm({ "node_modules/.pnpm/chokidar@4.0.3/node_modules/chokidar/esm/index.js": (() => {
|
|
987
|
+
init_esm$1();
|
|
988
|
+
init_handler();
|
|
989
|
+
SLASH = "/";
|
|
990
|
+
SLASH_SLASH = "//";
|
|
991
|
+
ONE_DOT = ".";
|
|
992
|
+
TWO_DOTS = "..";
|
|
993
|
+
STRING_TYPE = "string";
|
|
994
|
+
BACK_SLASH_RE = /\\/g;
|
|
995
|
+
DOUBLE_SLASH_RE = /\/\//;
|
|
996
|
+
DOT_RE = /\..*\.(sw[px])$|~$|\.subl.*\.tmp/;
|
|
997
|
+
REPLACER_RE = /^\.[/\\]/;
|
|
998
|
+
isMatcherObject = (matcher) => typeof matcher === "object" && matcher !== null && !(matcher instanceof RegExp);
|
|
999
|
+
unifyPaths = (paths_) => {
|
|
1000
|
+
const paths = arrify(paths_).flat();
|
|
1001
|
+
if (!paths.every((p) => typeof p === STRING_TYPE)) throw new TypeError(`Non-string provided as watch path: ${paths}`);
|
|
1002
|
+
return paths.map(normalizePathToUnix);
|
|
1003
|
+
};
|
|
1004
|
+
toUnix = (string) => {
|
|
1005
|
+
let str = string.replace(BACK_SLASH_RE, SLASH);
|
|
1006
|
+
let prepend = false;
|
|
1007
|
+
if (str.startsWith(SLASH_SLASH)) prepend = true;
|
|
1008
|
+
while (str.match(DOUBLE_SLASH_RE)) str = str.replace(DOUBLE_SLASH_RE, SLASH);
|
|
1009
|
+
if (prepend) str = SLASH + str;
|
|
1010
|
+
return str;
|
|
1011
|
+
};
|
|
1012
|
+
normalizePathToUnix = (path$2) => toUnix(sysPath.normalize(toUnix(path$2)));
|
|
1013
|
+
normalizeIgnored = (cwd = "") => (path$2) => {
|
|
1014
|
+
if (typeof path$2 === "string") return normalizePathToUnix(sysPath.isAbsolute(path$2) ? path$2 : sysPath.join(cwd, path$2));
|
|
1015
|
+
else return path$2;
|
|
1016
|
+
};
|
|
1017
|
+
getAbsolutePath = (path$2, cwd) => {
|
|
1018
|
+
if (sysPath.isAbsolute(path$2)) return path$2;
|
|
1019
|
+
return sysPath.join(cwd, path$2);
|
|
1020
|
+
};
|
|
1021
|
+
EMPTY_SET = Object.freeze(/* @__PURE__ */ new Set());
|
|
1022
|
+
DirEntry = class {
|
|
1023
|
+
constructor(dir, removeWatcher) {
|
|
1024
|
+
this.path = dir;
|
|
1025
|
+
this._removeWatcher = removeWatcher;
|
|
1026
|
+
this.items = /* @__PURE__ */ new Set();
|
|
1027
|
+
}
|
|
1028
|
+
add(item) {
|
|
1029
|
+
const { items } = this;
|
|
1030
|
+
if (!items) return;
|
|
1031
|
+
if (item !== ONE_DOT && item !== TWO_DOTS) items.add(item);
|
|
1032
|
+
}
|
|
1033
|
+
async remove(item) {
|
|
1034
|
+
const { items } = this;
|
|
1035
|
+
if (!items) return;
|
|
1036
|
+
items.delete(item);
|
|
1037
|
+
if (items.size > 0) return;
|
|
1038
|
+
const dir = this.path;
|
|
1039
|
+
try {
|
|
1040
|
+
await readdir(dir);
|
|
1041
|
+
} catch (err) {
|
|
1042
|
+
if (this._removeWatcher) this._removeWatcher(sysPath.dirname(dir), sysPath.basename(dir));
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
has(item) {
|
|
1046
|
+
const { items } = this;
|
|
1047
|
+
if (!items) return;
|
|
1048
|
+
return items.has(item);
|
|
1049
|
+
}
|
|
1050
|
+
getChildren() {
|
|
1051
|
+
const { items } = this;
|
|
1052
|
+
if (!items) return [];
|
|
1053
|
+
return [...items.values()];
|
|
1054
|
+
}
|
|
1055
|
+
dispose() {
|
|
1056
|
+
this.items.clear();
|
|
1057
|
+
this.path = "";
|
|
1058
|
+
this._removeWatcher = EMPTY_FN;
|
|
1059
|
+
this.items = EMPTY_SET;
|
|
1060
|
+
Object.freeze(this);
|
|
1061
|
+
}
|
|
1062
|
+
};
|
|
1063
|
+
STAT_METHOD_F = "stat";
|
|
1064
|
+
STAT_METHOD_L = "lstat";
|
|
1065
|
+
WatchHelper = class {
|
|
1066
|
+
constructor(path$2, follow, fsw) {
|
|
1067
|
+
this.fsw = fsw;
|
|
1068
|
+
const watchPath = path$2;
|
|
1069
|
+
this.path = path$2 = path$2.replace(REPLACER_RE, "");
|
|
1070
|
+
this.watchPath = watchPath;
|
|
1071
|
+
this.fullWatchPath = sysPath.resolve(watchPath);
|
|
1072
|
+
this.dirParts = [];
|
|
1073
|
+
this.dirParts.forEach((parts) => {
|
|
1074
|
+
if (parts.length > 1) parts.pop();
|
|
1075
|
+
});
|
|
1076
|
+
this.followSymlinks = follow;
|
|
1077
|
+
this.statMethod = follow ? STAT_METHOD_F : STAT_METHOD_L;
|
|
1078
|
+
}
|
|
1079
|
+
entryPath(entry) {
|
|
1080
|
+
return sysPath.join(this.watchPath, sysPath.relative(this.watchPath, entry.fullPath));
|
|
1081
|
+
}
|
|
1082
|
+
filterPath(entry) {
|
|
1083
|
+
const { stats } = entry;
|
|
1084
|
+
if (stats && stats.isSymbolicLink()) return this.filterDir(entry);
|
|
1085
|
+
const resolvedPath = this.entryPath(entry);
|
|
1086
|
+
return this.fsw._isntIgnored(resolvedPath, stats) && this.fsw._hasReadPermissions(stats);
|
|
1087
|
+
}
|
|
1088
|
+
filterDir(entry) {
|
|
1089
|
+
return this.fsw._isntIgnored(this.entryPath(entry), entry.stats);
|
|
1090
|
+
}
|
|
1091
|
+
};
|
|
1092
|
+
FSWatcher = class extends EventEmitter {
|
|
1093
|
+
constructor(_opts = {}) {
|
|
1094
|
+
super();
|
|
1095
|
+
this.closed = false;
|
|
1096
|
+
this._closers = /* @__PURE__ */ new Map();
|
|
1097
|
+
this._ignoredPaths = /* @__PURE__ */ new Set();
|
|
1098
|
+
this._throttled = /* @__PURE__ */ new Map();
|
|
1099
|
+
this._streams = /* @__PURE__ */ new Set();
|
|
1100
|
+
this._symlinkPaths = /* @__PURE__ */ new Map();
|
|
1101
|
+
this._watched = /* @__PURE__ */ new Map();
|
|
1102
|
+
this._pendingWrites = /* @__PURE__ */ new Map();
|
|
1103
|
+
this._pendingUnlinks = /* @__PURE__ */ new Map();
|
|
1104
|
+
this._readyCount = 0;
|
|
1105
|
+
this._readyEmitted = false;
|
|
1106
|
+
const awf = _opts.awaitWriteFinish;
|
|
1107
|
+
const DEF_AWF = {
|
|
1108
|
+
stabilityThreshold: 2e3,
|
|
1109
|
+
pollInterval: 100
|
|
1110
|
+
};
|
|
1111
|
+
const opts = {
|
|
1112
|
+
persistent: true,
|
|
1113
|
+
ignoreInitial: false,
|
|
1114
|
+
ignorePermissionErrors: false,
|
|
1115
|
+
interval: 100,
|
|
1116
|
+
binaryInterval: 300,
|
|
1117
|
+
followSymlinks: true,
|
|
1118
|
+
usePolling: false,
|
|
1119
|
+
atomic: true,
|
|
1120
|
+
..._opts,
|
|
1121
|
+
ignored: _opts.ignored ? arrify(_opts.ignored) : arrify([]),
|
|
1122
|
+
awaitWriteFinish: awf === true ? DEF_AWF : typeof awf === "object" ? {
|
|
1123
|
+
...DEF_AWF,
|
|
1124
|
+
...awf
|
|
1125
|
+
} : false
|
|
1126
|
+
};
|
|
1127
|
+
if (isIBMi) opts.usePolling = true;
|
|
1128
|
+
if (opts.atomic === void 0) opts.atomic = !opts.usePolling;
|
|
1129
|
+
const envPoll = process.env.CHOKIDAR_USEPOLLING;
|
|
1130
|
+
if (envPoll !== void 0) {
|
|
1131
|
+
const envLower = envPoll.toLowerCase();
|
|
1132
|
+
if (envLower === "false" || envLower === "0") opts.usePolling = false;
|
|
1133
|
+
else if (envLower === "true" || envLower === "1") opts.usePolling = true;
|
|
1134
|
+
else opts.usePolling = !!envLower;
|
|
1135
|
+
}
|
|
1136
|
+
const envInterval = process.env.CHOKIDAR_INTERVAL;
|
|
1137
|
+
if (envInterval) opts.interval = Number.parseInt(envInterval, 10);
|
|
1138
|
+
let readyCalls = 0;
|
|
1139
|
+
this._emitReady = () => {
|
|
1140
|
+
readyCalls++;
|
|
1141
|
+
if (readyCalls >= this._readyCount) {
|
|
1142
|
+
this._emitReady = EMPTY_FN;
|
|
1143
|
+
this._readyEmitted = true;
|
|
1144
|
+
process.nextTick(() => this.emit(EVENTS.READY));
|
|
1145
|
+
}
|
|
1146
|
+
};
|
|
1147
|
+
this._emitRaw = (...args) => this.emit(EVENTS.RAW, ...args);
|
|
1148
|
+
this._boundRemove = this._remove.bind(this);
|
|
1149
|
+
this.options = opts;
|
|
1150
|
+
this._nodeFsHandler = new NodeFsHandler(this);
|
|
1151
|
+
Object.freeze(opts);
|
|
1152
|
+
}
|
|
1153
|
+
_addIgnoredPath(matcher) {
|
|
1154
|
+
if (isMatcherObject(matcher)) {
|
|
1155
|
+
for (const ignored of this._ignoredPaths) if (isMatcherObject(ignored) && ignored.path === matcher.path && ignored.recursive === matcher.recursive) return;
|
|
1156
|
+
}
|
|
1157
|
+
this._ignoredPaths.add(matcher);
|
|
1158
|
+
}
|
|
1159
|
+
_removeIgnoredPath(matcher) {
|
|
1160
|
+
this._ignoredPaths.delete(matcher);
|
|
1161
|
+
if (typeof matcher === "string") {
|
|
1162
|
+
for (const ignored of this._ignoredPaths) if (isMatcherObject(ignored) && ignored.path === matcher) this._ignoredPaths.delete(ignored);
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* Adds paths to be watched on an existing FSWatcher instance.
|
|
1167
|
+
* @param paths_ file or file list. Other arguments are unused
|
|
1168
|
+
*/
|
|
1169
|
+
add(paths_, _origAdd, _internal) {
|
|
1170
|
+
const { cwd } = this.options;
|
|
1171
|
+
this.closed = false;
|
|
1172
|
+
this._closePromise = void 0;
|
|
1173
|
+
let paths = unifyPaths(paths_);
|
|
1174
|
+
if (cwd) paths = paths.map((path$2) => {
|
|
1175
|
+
return getAbsolutePath(path$2, cwd);
|
|
1176
|
+
});
|
|
1177
|
+
paths.forEach((path$2) => {
|
|
1178
|
+
this._removeIgnoredPath(path$2);
|
|
1179
|
+
});
|
|
1180
|
+
this._userIgnored = void 0;
|
|
1181
|
+
if (!this._readyCount) this._readyCount = 0;
|
|
1182
|
+
this._readyCount += paths.length;
|
|
1183
|
+
Promise.all(paths.map(async (path$2) => {
|
|
1184
|
+
const res = await this._nodeFsHandler._addToNodeFs(path$2, !_internal, void 0, 0, _origAdd);
|
|
1185
|
+
if (res) this._emitReady();
|
|
1186
|
+
return res;
|
|
1187
|
+
})).then((results) => {
|
|
1188
|
+
if (this.closed) return;
|
|
1189
|
+
results.forEach((item) => {
|
|
1190
|
+
if (item) this.add(sysPath.dirname(item), sysPath.basename(_origAdd || item));
|
|
1191
|
+
});
|
|
1192
|
+
});
|
|
1193
|
+
return this;
|
|
1194
|
+
}
|
|
1195
|
+
/**
|
|
1196
|
+
* Close watchers or start ignoring events from specified paths.
|
|
1197
|
+
*/
|
|
1198
|
+
unwatch(paths_) {
|
|
1199
|
+
if (this.closed) return this;
|
|
1200
|
+
const paths = unifyPaths(paths_);
|
|
1201
|
+
const { cwd } = this.options;
|
|
1202
|
+
paths.forEach((path$2) => {
|
|
1203
|
+
if (!sysPath.isAbsolute(path$2) && !this._closers.has(path$2)) {
|
|
1204
|
+
if (cwd) path$2 = sysPath.join(cwd, path$2);
|
|
1205
|
+
path$2 = sysPath.resolve(path$2);
|
|
1206
|
+
}
|
|
1207
|
+
this._closePath(path$2);
|
|
1208
|
+
this._addIgnoredPath(path$2);
|
|
1209
|
+
if (this._watched.has(path$2)) this._addIgnoredPath({
|
|
1210
|
+
path: path$2,
|
|
1211
|
+
recursive: true
|
|
1212
|
+
});
|
|
1213
|
+
this._userIgnored = void 0;
|
|
1214
|
+
});
|
|
1215
|
+
return this;
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* Close watchers and remove all listeners from watched paths.
|
|
1219
|
+
*/
|
|
1220
|
+
close() {
|
|
1221
|
+
if (this._closePromise) return this._closePromise;
|
|
1222
|
+
this.closed = true;
|
|
1223
|
+
this.removeAllListeners();
|
|
1224
|
+
const closers = [];
|
|
1225
|
+
this._closers.forEach((closerList) => closerList.forEach((closer) => {
|
|
1226
|
+
const promise = closer();
|
|
1227
|
+
if (promise instanceof Promise) closers.push(promise);
|
|
1228
|
+
}));
|
|
1229
|
+
this._streams.forEach((stream) => stream.destroy());
|
|
1230
|
+
this._userIgnored = void 0;
|
|
1231
|
+
this._readyCount = 0;
|
|
1232
|
+
this._readyEmitted = false;
|
|
1233
|
+
this._watched.forEach((dirent) => dirent.dispose());
|
|
1234
|
+
this._closers.clear();
|
|
1235
|
+
this._watched.clear();
|
|
1236
|
+
this._streams.clear();
|
|
1237
|
+
this._symlinkPaths.clear();
|
|
1238
|
+
this._throttled.clear();
|
|
1239
|
+
this._closePromise = closers.length ? Promise.all(closers).then(() => void 0) : Promise.resolve();
|
|
1240
|
+
return this._closePromise;
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Expose list of watched paths
|
|
1244
|
+
* @returns for chaining
|
|
1245
|
+
*/
|
|
1246
|
+
getWatched() {
|
|
1247
|
+
const watchList = {};
|
|
1248
|
+
this._watched.forEach((entry, dir) => {
|
|
1249
|
+
const index = (this.options.cwd ? sysPath.relative(this.options.cwd, dir) : dir) || ONE_DOT;
|
|
1250
|
+
watchList[index] = entry.getChildren().sort();
|
|
1251
|
+
});
|
|
1252
|
+
return watchList;
|
|
1253
|
+
}
|
|
1254
|
+
emitWithAll(event, args) {
|
|
1255
|
+
this.emit(event, ...args);
|
|
1256
|
+
if (event !== EVENTS.ERROR) this.emit(EVENTS.ALL, event, ...args);
|
|
1257
|
+
}
|
|
1258
|
+
/**
|
|
1259
|
+
* Normalize and emit events.
|
|
1260
|
+
* Calling _emit DOES NOT MEAN emit() would be called!
|
|
1261
|
+
* @param event Type of event
|
|
1262
|
+
* @param path File or directory path
|
|
1263
|
+
* @param stats arguments to be passed with event
|
|
1264
|
+
* @returns the error if defined, otherwise the value of the FSWatcher instance's `closed` flag
|
|
1265
|
+
*/
|
|
1266
|
+
async _emit(event, path$2, stats) {
|
|
1267
|
+
if (this.closed) return;
|
|
1268
|
+
const opts = this.options;
|
|
1269
|
+
if (isWindows) path$2 = sysPath.normalize(path$2);
|
|
1270
|
+
if (opts.cwd) path$2 = sysPath.relative(opts.cwd, path$2);
|
|
1271
|
+
const args = [path$2];
|
|
1272
|
+
if (stats != null) args.push(stats);
|
|
1273
|
+
const awf = opts.awaitWriteFinish;
|
|
1274
|
+
let pw;
|
|
1275
|
+
if (awf && (pw = this._pendingWrites.get(path$2))) {
|
|
1276
|
+
pw.lastChange = /* @__PURE__ */ new Date();
|
|
1277
|
+
return this;
|
|
1278
|
+
}
|
|
1279
|
+
if (opts.atomic) {
|
|
1280
|
+
if (event === EVENTS.UNLINK) {
|
|
1281
|
+
this._pendingUnlinks.set(path$2, [event, ...args]);
|
|
1282
|
+
setTimeout(() => {
|
|
1283
|
+
this._pendingUnlinks.forEach((entry, path$3) => {
|
|
1284
|
+
this.emit(...entry);
|
|
1285
|
+
this.emit(EVENTS.ALL, ...entry);
|
|
1286
|
+
this._pendingUnlinks.delete(path$3);
|
|
1287
|
+
});
|
|
1288
|
+
}, typeof opts.atomic === "number" ? opts.atomic : 100);
|
|
1289
|
+
return this;
|
|
1290
|
+
}
|
|
1291
|
+
if (event === EVENTS.ADD && this._pendingUnlinks.has(path$2)) {
|
|
1292
|
+
event = EVENTS.CHANGE;
|
|
1293
|
+
this._pendingUnlinks.delete(path$2);
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
if (awf && (event === EVENTS.ADD || event === EVENTS.CHANGE) && this._readyEmitted) {
|
|
1297
|
+
const awfEmit = (err, stats$1) => {
|
|
1298
|
+
if (err) {
|
|
1299
|
+
event = EVENTS.ERROR;
|
|
1300
|
+
args[0] = err;
|
|
1301
|
+
this.emitWithAll(event, args);
|
|
1302
|
+
} else if (stats$1) {
|
|
1303
|
+
if (args.length > 1) args[1] = stats$1;
|
|
1304
|
+
else args.push(stats$1);
|
|
1305
|
+
this.emitWithAll(event, args);
|
|
1306
|
+
}
|
|
1307
|
+
};
|
|
1308
|
+
this._awaitWriteFinish(path$2, awf.stabilityThreshold, event, awfEmit);
|
|
1309
|
+
return this;
|
|
1310
|
+
}
|
|
1311
|
+
if (event === EVENTS.CHANGE) {
|
|
1312
|
+
if (!this._throttle(EVENTS.CHANGE, path$2, 50)) return this;
|
|
1313
|
+
}
|
|
1314
|
+
if (opts.alwaysStat && stats === void 0 && (event === EVENTS.ADD || event === EVENTS.ADD_DIR || event === EVENTS.CHANGE)) {
|
|
1315
|
+
const fullPath = opts.cwd ? sysPath.join(opts.cwd, path$2) : path$2;
|
|
1316
|
+
let stats$1;
|
|
1317
|
+
try {
|
|
1318
|
+
stats$1 = await stat(fullPath);
|
|
1319
|
+
} catch (err) {}
|
|
1320
|
+
if (!stats$1 || this.closed) return;
|
|
1321
|
+
args.push(stats$1);
|
|
1322
|
+
}
|
|
1323
|
+
this.emitWithAll(event, args);
|
|
1324
|
+
return this;
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Common handler for errors
|
|
1328
|
+
* @returns The error if defined, otherwise the value of the FSWatcher instance's `closed` flag
|
|
1329
|
+
*/
|
|
1330
|
+
_handleError(error) {
|
|
1331
|
+
const code = error && error.code;
|
|
1332
|
+
if (error && code !== "ENOENT" && code !== "ENOTDIR" && (!this.options.ignorePermissionErrors || code !== "EPERM" && code !== "EACCES")) this.emit(EVENTS.ERROR, error);
|
|
1333
|
+
return error || this.closed;
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* Helper utility for throttling
|
|
1337
|
+
* @param actionType type being throttled
|
|
1338
|
+
* @param path being acted upon
|
|
1339
|
+
* @param timeout duration of time to suppress duplicate actions
|
|
1340
|
+
* @returns tracking object or false if action should be suppressed
|
|
1341
|
+
*/
|
|
1342
|
+
_throttle(actionType, path$2, timeout) {
|
|
1343
|
+
if (!this._throttled.has(actionType)) this._throttled.set(actionType, /* @__PURE__ */ new Map());
|
|
1344
|
+
const action = this._throttled.get(actionType);
|
|
1345
|
+
if (!action) throw new Error("invalid throttle");
|
|
1346
|
+
const actionPath = action.get(path$2);
|
|
1347
|
+
if (actionPath) {
|
|
1348
|
+
actionPath.count++;
|
|
1349
|
+
return false;
|
|
1350
|
+
}
|
|
1351
|
+
let timeoutObject;
|
|
1352
|
+
const clear = () => {
|
|
1353
|
+
const item = action.get(path$2);
|
|
1354
|
+
const count = item ? item.count : 0;
|
|
1355
|
+
action.delete(path$2);
|
|
1356
|
+
clearTimeout(timeoutObject);
|
|
1357
|
+
if (item) clearTimeout(item.timeoutObject);
|
|
1358
|
+
return count;
|
|
1359
|
+
};
|
|
1360
|
+
timeoutObject = setTimeout(clear, timeout);
|
|
1361
|
+
const thr = {
|
|
1362
|
+
timeoutObject,
|
|
1363
|
+
clear,
|
|
1364
|
+
count: 0
|
|
1365
|
+
};
|
|
1366
|
+
action.set(path$2, thr);
|
|
1367
|
+
return thr;
|
|
1368
|
+
}
|
|
1369
|
+
_incrReadyCount() {
|
|
1370
|
+
return this._readyCount++;
|
|
1371
|
+
}
|
|
1372
|
+
/**
|
|
1373
|
+
* Awaits write operation to finish.
|
|
1374
|
+
* Polls a newly created file for size variations. When files size does not change for 'threshold' milliseconds calls callback.
|
|
1375
|
+
* @param path being acted upon
|
|
1376
|
+
* @param threshold Time in milliseconds a file size must be fixed before acknowledging write OP is finished
|
|
1377
|
+
* @param event
|
|
1378
|
+
* @param awfEmit Callback to be called when ready for event to be emitted.
|
|
1379
|
+
*/
|
|
1380
|
+
_awaitWriteFinish(path$2, threshold, event, awfEmit) {
|
|
1381
|
+
const awf = this.options.awaitWriteFinish;
|
|
1382
|
+
if (typeof awf !== "object") return;
|
|
1383
|
+
const pollInterval = awf.pollInterval;
|
|
1384
|
+
let timeoutHandler;
|
|
1385
|
+
let fullPath = path$2;
|
|
1386
|
+
if (this.options.cwd && !sysPath.isAbsolute(path$2)) fullPath = sysPath.join(this.options.cwd, path$2);
|
|
1387
|
+
const now = /* @__PURE__ */ new Date();
|
|
1388
|
+
const writes = this._pendingWrites;
|
|
1389
|
+
function awaitWriteFinishFn(prevStat) {
|
|
1390
|
+
stat$1(fullPath, (err, curStat) => {
|
|
1391
|
+
if (err || !writes.has(path$2)) {
|
|
1392
|
+
if (err && err.code !== "ENOENT") awfEmit(err);
|
|
1393
|
+
return;
|
|
1394
|
+
}
|
|
1395
|
+
const now$1 = Number(/* @__PURE__ */ new Date());
|
|
1396
|
+
if (prevStat && curStat.size !== prevStat.size) writes.get(path$2).lastChange = now$1;
|
|
1397
|
+
if (now$1 - writes.get(path$2).lastChange >= threshold) {
|
|
1398
|
+
writes.delete(path$2);
|
|
1399
|
+
awfEmit(void 0, curStat);
|
|
1400
|
+
} else timeoutHandler = setTimeout(awaitWriteFinishFn, pollInterval, curStat);
|
|
1401
|
+
});
|
|
1402
|
+
}
|
|
1403
|
+
if (!writes.has(path$2)) {
|
|
1404
|
+
writes.set(path$2, {
|
|
1405
|
+
lastChange: now,
|
|
1406
|
+
cancelWait: () => {
|
|
1407
|
+
writes.delete(path$2);
|
|
1408
|
+
clearTimeout(timeoutHandler);
|
|
1409
|
+
return event;
|
|
1410
|
+
}
|
|
1411
|
+
});
|
|
1412
|
+
timeoutHandler = setTimeout(awaitWriteFinishFn, pollInterval);
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* Determines whether user has asked to ignore this path.
|
|
1417
|
+
*/
|
|
1418
|
+
_isIgnored(path$2, stats) {
|
|
1419
|
+
if (this.options.atomic && DOT_RE.test(path$2)) return true;
|
|
1420
|
+
if (!this._userIgnored) {
|
|
1421
|
+
const { cwd } = this.options;
|
|
1422
|
+
const ignored = (this.options.ignored || []).map(normalizeIgnored(cwd));
|
|
1423
|
+
this._userIgnored = anymatch([...[...this._ignoredPaths].map(normalizeIgnored(cwd)), ...ignored], void 0);
|
|
1424
|
+
}
|
|
1425
|
+
return this._userIgnored(path$2, stats);
|
|
1426
|
+
}
|
|
1427
|
+
_isntIgnored(path$2, stat$3) {
|
|
1428
|
+
return !this._isIgnored(path$2, stat$3);
|
|
1429
|
+
}
|
|
1430
|
+
/**
|
|
1431
|
+
* Provides a set of common helpers and properties relating to symlink handling.
|
|
1432
|
+
* @param path file or directory pattern being watched
|
|
1433
|
+
*/
|
|
1434
|
+
_getWatchHelpers(path$2) {
|
|
1435
|
+
return new WatchHelper(path$2, this.options.followSymlinks, this);
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
* Provides directory tracking objects
|
|
1439
|
+
* @param directory path of the directory
|
|
1440
|
+
*/
|
|
1441
|
+
_getWatchedDir(directory) {
|
|
1442
|
+
const dir = sysPath.resolve(directory);
|
|
1443
|
+
if (!this._watched.has(dir)) this._watched.set(dir, new DirEntry(dir, this._boundRemove));
|
|
1444
|
+
return this._watched.get(dir);
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* Check for read permissions: https://stackoverflow.com/a/11781404/1358405
|
|
1448
|
+
*/
|
|
1449
|
+
_hasReadPermissions(stats) {
|
|
1450
|
+
if (this.options.ignorePermissionErrors) return true;
|
|
1451
|
+
return Boolean(Number(stats.mode) & 256);
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
* Handles emitting unlink events for
|
|
1455
|
+
* files and directories, and via recursion, for
|
|
1456
|
+
* files and directories within directories that are unlinked
|
|
1457
|
+
* @param directory within which the following item is located
|
|
1458
|
+
* @param item base path of item/directory
|
|
1459
|
+
*/
|
|
1460
|
+
_remove(directory, item, isDirectory) {
|
|
1461
|
+
const path$2 = sysPath.join(directory, item);
|
|
1462
|
+
const fullPath = sysPath.resolve(path$2);
|
|
1463
|
+
isDirectory = isDirectory != null ? isDirectory : this._watched.has(path$2) || this._watched.has(fullPath);
|
|
1464
|
+
if (!this._throttle("remove", path$2, 100)) return;
|
|
1465
|
+
if (!isDirectory && this._watched.size === 1) this.add(directory, item, true);
|
|
1466
|
+
this._getWatchedDir(path$2).getChildren().forEach((nested) => this._remove(path$2, nested));
|
|
1467
|
+
const parent = this._getWatchedDir(directory);
|
|
1468
|
+
const wasTracked = parent.has(item);
|
|
1469
|
+
parent.remove(item);
|
|
1470
|
+
if (this._symlinkPaths.has(fullPath)) this._symlinkPaths.delete(fullPath);
|
|
1471
|
+
let relPath = path$2;
|
|
1472
|
+
if (this.options.cwd) relPath = sysPath.relative(this.options.cwd, path$2);
|
|
1473
|
+
if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) {
|
|
1474
|
+
if (this._pendingWrites.get(relPath).cancelWait() === EVENTS.ADD) return;
|
|
1475
|
+
}
|
|
1476
|
+
this._watched.delete(path$2);
|
|
1477
|
+
this._watched.delete(fullPath);
|
|
1478
|
+
const eventName = isDirectory ? EVENTS.UNLINK_DIR : EVENTS.UNLINK;
|
|
1479
|
+
if (wasTracked && !this._isIgnored(path$2)) this._emit(eventName, path$2);
|
|
1480
|
+
this._closePath(path$2);
|
|
1481
|
+
}
|
|
1482
|
+
/**
|
|
1483
|
+
* Closes all watchers for a path
|
|
1484
|
+
*/
|
|
1485
|
+
_closePath(path$2) {
|
|
1486
|
+
this._closeFile(path$2);
|
|
1487
|
+
const dir = sysPath.dirname(path$2);
|
|
1488
|
+
this._getWatchedDir(dir).remove(sysPath.basename(path$2));
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* Closes only file-specific watchers
|
|
1492
|
+
*/
|
|
1493
|
+
_closeFile(path$2) {
|
|
1494
|
+
const closers = this._closers.get(path$2);
|
|
1495
|
+
if (!closers) return;
|
|
1496
|
+
closers.forEach((closer) => closer());
|
|
1497
|
+
this._closers.delete(path$2);
|
|
1498
|
+
}
|
|
1499
|
+
_addPathCloser(path$2, closer) {
|
|
1500
|
+
if (!closer) return;
|
|
1501
|
+
let list = this._closers.get(path$2);
|
|
1502
|
+
if (!list) {
|
|
1503
|
+
list = [];
|
|
1504
|
+
this._closers.set(path$2, list);
|
|
1505
|
+
}
|
|
1506
|
+
list.push(closer);
|
|
1507
|
+
}
|
|
1508
|
+
_readdirp(root, opts) {
|
|
1509
|
+
if (this.closed) return;
|
|
1510
|
+
let stream = readdirp(root, {
|
|
1511
|
+
type: EVENTS.ALL,
|
|
1512
|
+
alwaysStat: true,
|
|
1513
|
+
lstat: true,
|
|
1514
|
+
...opts,
|
|
1515
|
+
depth: 0
|
|
1516
|
+
});
|
|
1517
|
+
this._streams.add(stream);
|
|
1518
|
+
stream.once(STR_CLOSE, () => {
|
|
1519
|
+
stream = void 0;
|
|
1520
|
+
});
|
|
1521
|
+
stream.once(STR_END, () => {
|
|
1522
|
+
if (stream) {
|
|
1523
|
+
this._streams.delete(stream);
|
|
1524
|
+
stream = void 0;
|
|
1525
|
+
}
|
|
1526
|
+
});
|
|
1527
|
+
return stream;
|
|
1528
|
+
}
|
|
1529
|
+
};
|
|
1530
|
+
esm_default = {
|
|
1531
|
+
watch: watch$1,
|
|
1532
|
+
FSWatcher
|
|
1533
|
+
};
|
|
1534
|
+
}) });
|
|
1535
|
+
|
|
1536
|
+
//#endregion
|
|
1537
|
+
export { init_esm as n, esm_default as t };
|