From 7ece3fed4029be9e2387b4a6e12cc23434db86b5 Mon Sep 17 00:00:00 2001 From: ShanYi-Hui Date: Wed, 26 Jun 2024 03:28:23 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20syh-micr?= =?UTF-8?q?o-build/mb-admin@71b38f8ea8225785ebe9296d998358dc65cd8e73=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{403-_8dyrmpq.js => 403-DnhwZjvt.js} | 2 +- assets/{404-EYOB4ZDb.js => 404-CG2A4mzm.js} | 2 +- assets/{500-BeNiIRKt.js => 500-DxSyrmt3.js} | 2 +- assets/AddButtonPermission-DCIk97_V.js | 1 + assets/AddButtonPermission-DKnOyfh5.js | 1 - ....vue_vue_type_script_setup_true_lang-wVzKuO8R.js} | 2 +- .../{Analysis-CiSR2fge.js => Analysis-o1g9mDRc.js} | 2 +- ....vue_vue_type_script_setup_true_lang-CpeHQm5f.js} | 2 +- .../{CardTable-DpMqGHeS.js => CardTable-CF9tCZ-U.js} | 2 +- ...CodeEditor-IM9M_0kv.js => CodeEditor-SFUUr4rV.js} | 12 ++++++------ ....vue_vue_type_script_setup_true_lang-BkeNJGQ5.js} | 2 +- ....vue_vue_type_script_setup_true_lang-DYZxC2R9.js} | 2 +- assets/{CountTo--P_0rIXC.js => CountTo-BfciFB2t.js} | 2 +- ....vue_vue_type_script_setup_true_lang-BAvgPMEO.js} | 2 +- ...faultForm-BLKW_hvw.js => DefaultForm-Dg_j11XR.js} | 2 +- ...ultTable-DD-ttn4d.js => DefaultTable-B8Notva-.js} | 2 +- ...Department-DvKnpeco.js => Department-CZqBro4N.js} | 2 +- ...riptions-BYYy1K3P.js => Descriptions-CnAOhWOB.js} | 2 +- ...riptions-BT1fJoNu.js => Descriptions-DWGDe9Sc.js} | 2 +- assets/Detail-B8euQaAi.js | 1 - assets/Detail-BAi8VKs2.js | 1 + assets/Detail-BByS0cmq.js | 1 - assets/Detail-BVAhsvq2.js | 1 + assets/Detail-BkgGU8cH.js | 1 + assets/Detail-CZeRNZkD.js | 1 + assets/Detail-CbKODdnp.js | 1 - assets/Detail-DWDVTDCD.js | 1 + assets/Detail-DZ18W84S.js | 1 - assets/Detail-MWpdxpAN.js | 1 - assets/Detail-mdLYTz1q.js | 1 + assets/Detail-tms56V5N.js | 1 - ....vue_vue_type_script_setup_true_lang-BCv-Qvj2.js} | 2 +- ....vue_vue_type_script_setup_true_lang-BVf-bmvt.js} | 2 +- ....vue_vue_type_script_setup_true_lang-BoRUl_Lf.js} | 2 +- ....vue_vue_type_script_setup_true_lang-Cjk_uBWB.js} | 2 +- ....vue_vue_type_script_setup_true_lang-D0pWjFAb.js} | 2 +- ....vue_vue_type_script_setup_true_lang-DrZMk85_.js} | 2 +- assets/{Dialog-glyMF7CJ.js => Dialog-4Q3xWqi7.js} | 2 +- ...alog.vue_vue_type_style_index_0_lang-DkCU3loB.js} | 2 +- assets/Echart-Cvjj3_Ce.js | 1 + assets/Echart-DWoquW8N.js | 1 - ....vue_vue_type_script_setup_true_lang-B_EbGjXk.js} | 2 +- ....vue_vue_type_script_setup_true_lang-CrfDnuqg.js} | 2 +- assets/{Editor-Dsk6YOTY.js => Editor-DwMwBmXe.js} | 2 +- ....vue_vue_type_script_setup_true_lang-pT3BQnse.js} | 2 +- ...ExampleAdd-DqNbWzzi.js => ExampleAdd-DDDh0jHD.js} | 2 +- ...eDetail-jiL-SQgj.js => ExampleDetail-CDVh2zLz.js} | 2 +- ...eDialog-DBkSQIQ9.js => ExampleDialog-B5zK_Laf.js} | 2 +- ...ampleEdit-BXGV8wDF.js => ExampleEdit-BL7D4Qzc.js} | 2 +- ...amplePage-4ttf5cy2.js => ExamplePage-Bo3S62UP.js} | 2 +- assets/{Form-DJ57xbBt.js => Form-B3fdtaFM.js} | 2 +- assets/{Guide-lGAC_uwB.js => Guide-Co5cadxk.js} | 2 +- .../{Highlight-iwtyyVdW.js => Highlight-CtDwwxo1.js} | 2 +- ...> Highlight.vue_vue_type_script_lang-BkEaAxMF.js} | 2 +- .../{HomeView-B6WrtAkf.js => HomeView-D20k5K9M.js} | 2 +- assets/{Icon-Bwi9LaBZ.js => Icon-B-0CON7P.js} | 2 +- assets/{Icon-Bx7yon6V.js => Icon-BntWs4Mz.js} | 2 +- ...IconPicker-Cl9U2e9G.js => IconPicker-CNS-lt2r.js} | 2 +- ...IconPicker-Cmmw5lYe.js => IconPicker-WxbdLOo_.js} | 2 +- ...ropping-CbTeg8LQ.js => ImageCropping-Dcjg4sBX.js} | 2 +- ...ageViewer-CtL_2_lz.js => ImageViewer-CV4-P-He.js} | 2 +- assets/{Infotip-Dr88umKP.js => Infotip-BlieaFoW.js} | 2 +- ....vue_vue_type_script_setup_true_lang-Bi8BypLc.js} | 2 +- ...assword-CNXQUYTW.js => InputPassword-BOsN6yJd.js} | 2 +- ...assword-D5o-63rw.js => InputPassword-C8AimXzj.js} | 2 +- ...JsonEditor-9dP1ziEk.js => JsonEditor-_UH9V21N.js} | 2 +- ....vue_vue_type_script_setup_true_lang-CsPr_qJJ.js} | 2 +- assets/{Layout-CL8owWwX.js => Layout-B5JiSUXZ.js} | 2 +- assets/{Login-VAckGz8o.js => Login-xvfsYS1e.js} | 2 +- assets/LoginForm-B04P81XP.js | 1 - assets/LoginForm-Bs9L3ZxU.js | 1 + ....vue_vue_type_script_setup_true_lang-DvGn1PBc.js} | 2 +- assets/{Menu-CQ_jfTEj.js => Menu-BhIIVxms.js} | 2 +- assets/{Menu111-BqoTAiIX.js => Menu111-_Qdpt9MO.js} | 2 +- assets/{Menu12-BCBy8PfP.js => Menu12-b7-BY7Ge.js} | 2 +- assets/{Menu2-BjbdK-7b.js => Menu2-DX4lEJ0Q.js} | 2 +- ...ipleTabs-j8VcrQgb.js => MultipleTabs-BYc9VCj9.js} | 2 +- ...Demo-D5XLE6u4.js => MultipleTabsDemo-B1qrIdt2.js} | 2 +- ...PanelGroup-CJuS-ais.js => PanelGroup-SOpNPnD6.js} | 2 +- assets/{Qrcode-nadB2KpN.js => Qrcode-TFgtIK2a.js} | 2 +- assets/RegisterForm-8a74KfzE.js | 1 - assets/RegisterForm-DWC1NxJI.js | 1 + ....vue_vue_type_script_setup_true_lang-3yLcY2Dh.js} | 2 +- assets/{Request-Cz1XJXHj.js => Request-9HlOJKyN.js} | 2 +- assets/{Role-AGhOb_l3.js => Role-Dyb9E-YN.js} | 2 +- assets/{Search-DilF6krF.js => Search-1xjpGPv-.js} | 2 +- ....vue_vue_type_script_setup_true_lang-ClF9XpoI.js} | 2 +- ...js => Table.vue_vue_type_script_lang-BzBmZLp9.js} | 4 ++-- ...iew-fZ9lNUzY.js => TableImagePreview-aDFKG0ny.js} | 2 +- ...iew-BLFGgLVF.js => TableVideoPreview-uIFu_zG-.js} | 2 +- assets/{Test-CjWai9x0.js => Test-DaedM19Y.js} | 2 +- ...emeSwitch-INxyZ6i5.js => ThemeSwitch-Dfovu-Fl.js} | 2 +- .../{TreeTable-MkFKx_LP.js => TreeTable-B2gHEPX4.js} | 2 +- ...eFormDemo-mwmvv6Aa.js => UseFormDemo-Bw7a92Lx.js} | 2 +- ...ableDemo-DfFWz8wl.js => UseTableDemo-CG_waIQy.js} | 2 +- assets/UseTableDemo-CXtMJCFC.css | 1 - assets/UseTableDemo-DRKt3uVJ.css | 1 + assets/{User-CRVmhTky.js => User-__ht-I-y.js} | 2 +- ...deoPlayer-42kfXaMf.js => VideoPlayer-CSRu1lzL.js} | 2 +- .../{Waterfall-CBrUbcOg.js => Waterfall-BQjrg7ql.js} | 2 +- .../{Workplace-CLr6af66.js => Workplace-BIupU6-s.js} | 2 +- assets/Write-C4MdhBEG.js | 1 + assets/Write-C60S3lqk.js | 1 + assets/Write-CMLvD6PZ.js | 1 - assets/Write-D1Qaqcxi.js | 1 + assets/Write-D4uWemfC.js | 1 - assets/Write-DFUzDWxn.js | 1 + assets/Write-DHYggKqv.js | 1 - assets/Write-DLh0tahb.js | 1 + assets/Write-DmcObcsQ.js | 1 - assets/Write-DpyumCnR.js | 1 - assets/Write-tgoSuZxw.js | 1 - assets/Write-x8NPtotc.js | 1 + ....vue_vue_type_script_setup_true_lang-BBz-bjD1.js} | 2 +- ....vue_vue_type_script_setup_true_lang-CIiSGwSL.js} | 2 +- ....vue_vue_type_script_setup_true_lang-CdW4xsT_.js} | 2 +- ....vue_vue_type_script_setup_true_lang-Ce1mcWoJ.js} | 2 +- ....vue_vue_type_script_setup_true_lang-DgvKX96v.js} | 2 +- ....vue_vue_type_script_setup_true_lang-uIkHTRx6.js} | 2 +- assets/{cssMode-DMmLTgYz.js => cssMode-CHypgTRD.js} | 2 +- ...utton-DWJU-_1D.js => el-radio-button-BbBORUw9.js} | 2 +- ...eemarker2-83QMiYqq.js => freemarker2-BWzI7mAH.js} | 2 +- ...handlebars-DwojGJVl.js => handlebars-DX89cqjN.js} | 2 +- assets/{html-BC731uhf.js => html--fkJPfQt.js} | 2 +- .../{htmlMode-DWeSdq1n.js => htmlMode-7kuxxI3s.js} | 2 +- assets/{index-DlX4pwja.js => index-2gFf0KW4.js} | 2 +- assets/{index-CA0d6hyI.js => index-B5z15nYm.js} | 4 ++-- assets/index-BYcZ39zx.js | 1 + assets/index-CA5sn5Y0.js | 1 + assets/index-CRNzobZS.js | 1 - assets/index-CxKCqm97.js | 1 - assets/{index-DVoP4cjT.js => index-DB50Cmmr.js} | 2 +- assets/{index-C2-F2Fy9.js => index-DI3UHSfz.js} | 2 +- assets/{index-DxxgNbTS.js => index-Dt71D4p1.js} | 2 +- ...javascript-C7292Sh6.js => javascript-BGybM7Bs.js} | 2 +- .../{jsonMode--87pAiWn.js => jsonMode-BL1JchM7.js} | 2 +- assets/{liquid-B1IR3wXj.js => liquid-Dc_NUFs-.js} | 2 +- assets/{mdx-DIkCJeLb.js => mdx-DXzRoGiO.js} | 2 +- assets/{python-Zo-tP2hE.js => python-C6c0ImSs.js} | 2 +- assets/{razor-DF_V0cbB.js => razor-Dbp-tt-8.js} | 2 +- ...vue_type_style_index_0_src_true_lang-DOwGsii-.js} | 2 +- assets/{tsMode-DgE4K8Op.js => tsMode-Kd0Ur8yF.js} | 2 +- ...typescript-CWsNTno6.js => typescript-CmRccRO2.js} | 2 +- ...lipboard-BP8y4td2.js => useClipboard-Cu6jxoh0.js} | 2 +- ...chemas-CCmfjfoL.js => useCrudSchemas-B0mS9v28.js} | 2 +- assets/{useForm-CbOF_UB2.js => useForm-BIADJKAv.js} | 2 +- assets/useIcon-Bk4x_lwM.js | 1 - assets/useIcon-Dzh8BHEZ.js | 1 + ...useNetwork-CMuHkkRX.js => useNetwork-CJjsr591.js} | 2 +- .../{useTable-BTK3WtdF.js => useTable-B7CCRTD1.js} | 2 +- ...eTagsView-yfN3e7pq.js => useTagsView-BLw3Jy7r.js} | 2 +- ...eTagsView-BzxN2HZN.js => useTagsView-Dn5Mz9ts.js} | 2 +- ...alidator-BeCBBrXu.js => useValidator-DdhWBLrm.js} | 2 +- ...atermark-CPkIKVZd.js => useWatermark-CEKtVccT.js} | 2 +- assets/{xml-V1f6_0Ts.js => xml-DuoFp11i.js} | 2 +- assets/{yaml-5FzXFp3g.js => yaml-CxJ23TtR.js} | 2 +- index.html | 2 +- 157 files changed, 144 insertions(+), 144 deletions(-) rename assets/{403-_8dyrmpq.js => 403-DnhwZjvt.js} (60%) rename assets/{404-EYOB4ZDb.js => 404-CG2A4mzm.js} (59%) rename assets/{500-BeNiIRKt.js => 500-DxSyrmt3.js} (60%) create mode 100644 assets/AddButtonPermission-DCIk97_V.js delete mode 100644 assets/AddButtonPermission-DKnOyfh5.js rename assets/{AddButtonPermission.vue_vue_type_script_setup_true_lang-C9agW6Rw.js => AddButtonPermission.vue_vue_type_script_setup_true_lang-wVzKuO8R.js} (84%) rename assets/{Analysis-CiSR2fge.js => Analysis-o1g9mDRc.js} (89%) rename assets/{Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js => Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js} (96%) rename assets/{CardTable-DpMqGHeS.js => CardTable-CF9tCZ-U.js} (80%) rename assets/{CodeEditor-IM9M_0kv.js => CodeEditor-SFUUr4rV.js} (99%) rename assets/{ContentDetailWrap.vue_vue_type_script_setup_true_lang-CZbjH80x.js => ContentDetailWrap.vue_vue_type_script_setup_true_lang-BkeNJGQ5.js} (90%) rename assets/{ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js => ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js} (87%) rename assets/{CountTo--P_0rIXC.js => CountTo-BfciFB2t.js} (90%) rename assets/{CountTo.vue_vue_type_script_setup_true_lang-BYxn9PUH.js => CountTo.vue_vue_type_script_setup_true_lang-BAvgPMEO.js} (97%) rename assets/{DefaultForm-BLKW_hvw.js => DefaultForm-Dg_j11XR.js} (96%) rename assets/{DefaultTable-DD-ttn4d.js => DefaultTable-B8Notva-.js} (74%) rename assets/{Department-DvKnpeco.js => Department-CZqBro4N.js} (80%) rename assets/{Descriptions-BYYy1K3P.js => Descriptions-CnAOhWOB.js} (96%) rename assets/{Descriptions-BT1fJoNu.js => Descriptions-DWGDe9Sc.js} (81%) delete mode 100644 assets/Detail-B8euQaAi.js create mode 100644 assets/Detail-BAi8VKs2.js delete mode 100644 assets/Detail-BByS0cmq.js create mode 100644 assets/Detail-BVAhsvq2.js create mode 100644 assets/Detail-BkgGU8cH.js create mode 100644 assets/Detail-CZeRNZkD.js delete mode 100644 assets/Detail-CbKODdnp.js create mode 100644 assets/Detail-DWDVTDCD.js delete mode 100644 assets/Detail-DZ18W84S.js delete mode 100644 assets/Detail-MWpdxpAN.js create mode 100644 assets/Detail-mdLYTz1q.js delete mode 100644 assets/Detail-tms56V5N.js rename assets/{Detail.vue_vue_type_script_setup_true_lang-BtRfuAAj.js => Detail.vue_vue_type_script_setup_true_lang-BCv-Qvj2.js} (81%) rename assets/{Detail.vue_vue_type_script_setup_true_lang-CFcBVm_Z.js => Detail.vue_vue_type_script_setup_true_lang-BVf-bmvt.js} (85%) rename assets/{Detail.vue_vue_type_script_setup_true_lang-Cs2MfJUl.js => Detail.vue_vue_type_script_setup_true_lang-BoRUl_Lf.js} (93%) rename assets/{Detail.vue_vue_type_script_setup_true_lang-BBBBUkw6.js => Detail.vue_vue_type_script_setup_true_lang-Cjk_uBWB.js} (90%) rename assets/{Detail.vue_vue_type_script_setup_true_lang--UJssbLv.js => Detail.vue_vue_type_script_setup_true_lang-D0pWjFAb.js} (82%) rename assets/{Detail.vue_vue_type_script_setup_true_lang-CPaYQRpk.js => Detail.vue_vue_type_script_setup_true_lang-DrZMk85_.js} (82%) rename assets/{Dialog-glyMF7CJ.js => Dialog-4Q3xWqi7.js} (68%) rename assets/{Dialog.vue_vue_type_style_index_0_lang-BLWveiSq.js => Dialog.vue_vue_type_style_index_0_lang-DkCU3loB.js} (97%) create mode 100644 assets/Echart-Cvjj3_Ce.js delete mode 100644 assets/Echart-DWoquW8N.js rename assets/{Echart.vue_vue_type_script_setup_true_lang-D4wuPzaf.js => Echart.vue_vue_type_script_setup_true_lang-B_EbGjXk.js} (86%) rename assets/{Echart.vue_vue_type_script_setup_true_lang-B--3X1Iw.js => Echart.vue_vue_type_script_setup_true_lang-CrfDnuqg.js} (97%) rename assets/{Editor-Dsk6YOTY.js => Editor-DwMwBmXe.js} (83%) rename assets/{Error.vue_vue_type_script_setup_true_lang-Yi9a7IcZ.js => Error.vue_vue_type_script_setup_true_lang-pT3BQnse.js} (88%) rename assets/{ExampleAdd-DqNbWzzi.js => ExampleAdd-DDDh0jHD.js} (64%) rename assets/{ExampleDetail-jiL-SQgj.js => ExampleDetail-CDVh2zLz.js} (65%) rename assets/{ExampleDialog-DBkSQIQ9.js => ExampleDialog-B5zK_Laf.js} (80%) rename assets/{ExampleEdit-BXGV8wDF.js => ExampleEdit-BL7D4Qzc.js} (66%) rename assets/{ExamplePage-4ttf5cy2.js => ExamplePage-Bo3S62UP.js} (82%) rename assets/{Form-DJ57xbBt.js => Form-B3fdtaFM.js} (95%) rename assets/{Guide-lGAC_uwB.js => Guide-Co5cadxk.js} (98%) rename assets/{Highlight-iwtyyVdW.js => Highlight-CtDwwxo1.js} (72%) rename assets/{Highlight.vue_vue_type_script_lang-DogC43qc.js => Highlight.vue_vue_type_script_lang-BkEaAxMF.js} (91%) rename assets/{HomeView-B6WrtAkf.js => HomeView-D20k5K9M.js} (85%) rename assets/{Icon-Bwi9LaBZ.js => Icon-B-0CON7P.js} (99%) rename assets/{Icon-Bx7yon6V.js => Icon-BntWs4Mz.js} (80%) rename assets/{IconPicker-Cl9U2e9G.js => IconPicker-CNS-lt2r.js} (64%) rename assets/{IconPicker-Cmmw5lYe.js => IconPicker-WxbdLOo_.js} (99%) rename assets/{ImageCropping-CbTeg8LQ.js => ImageCropping-Dcjg4sBX.js} (99%) rename assets/{ImageViewer-CtL_2_lz.js => ImageViewer-CV4-P-He.js} (88%) rename assets/{Infotip-Dr88umKP.js => Infotip-BlieaFoW.js} (67%) rename assets/{Infotip.vue_vue_type_script_setup_true_lang-C9SjmiOy.js => Infotip.vue_vue_type_script_setup_true_lang-Bi8BypLc.js} (85%) rename assets/{InputPassword-CNXQUYTW.js => InputPassword-BOsN6yJd.js} (79%) rename assets/{InputPassword-D5o-63rw.js => InputPassword-C8AimXzj.js} (99%) rename assets/{JsonEditor-9dP1ziEk.js => JsonEditor-_UH9V21N.js} (77%) rename assets/{JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js => JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js} (99%) rename assets/{Layout-CL8owWwX.js => Layout-B5JiSUXZ.js} (98%) rename assets/{Login-VAckGz8o.js => Login-xvfsYS1e.js} (79%) delete mode 100644 assets/LoginForm-B04P81XP.js create mode 100644 assets/LoginForm-Bs9L3ZxU.js rename assets/{LoginForm.vue_vue_type_script_setup_true_lang-XZcXgUiw.js => LoginForm.vue_vue_type_script_setup_true_lang-DvGn1PBc.js} (90%) rename assets/{Menu-CQ_jfTEj.js => Menu-BhIIVxms.js} (72%) rename assets/{Menu111-BqoTAiIX.js => Menu111-_Qdpt9MO.js} (72%) rename assets/{Menu12-BCBy8PfP.js => Menu12-b7-BY7Ge.js} (72%) rename assets/{Menu2-BjbdK-7b.js => Menu2-DX4lEJ0Q.js} (71%) rename assets/{MultipleTabs-j8VcrQgb.js => MultipleTabs-BYc9VCj9.js} (74%) rename assets/{MultipleTabsDemo-D5XLE6u4.js => MultipleTabsDemo-B1qrIdt2.js} (73%) rename assets/{PanelGroup-CJuS-ais.js => PanelGroup-SOpNPnD6.js} (95%) rename assets/{Qrcode-nadB2KpN.js => Qrcode-TFgtIK2a.js} (99%) delete mode 100644 assets/RegisterForm-8a74KfzE.js create mode 100644 assets/RegisterForm-DWC1NxJI.js rename assets/{RegisterForm.vue_vue_type_script_setup_true_lang-CBzM5vQS.js => RegisterForm.vue_vue_type_script_setup_true_lang-3yLcY2Dh.js} (92%) rename assets/{Request-Cz1XJXHj.js => Request-9HlOJKyN.js} (92%) rename assets/{Role-AGhOb_l3.js => Role-Dyb9E-YN.js} (73%) rename assets/{Search-DilF6krF.js => Search-1xjpGPv-.js} (85%) rename assets/{Search.vue_vue_type_script_setup_true_lang-CJ6bt3cN.js => Search.vue_vue_type_script_setup_true_lang-ClF9XpoI.js} (96%) rename assets/{Table.vue_vue_type_script_lang-DOZk-BCG.js => Table.vue_vue_type_script_lang-BzBmZLp9.js} (98%) rename assets/{TableImagePreview-fZ9lNUzY.js => TableImagePreview-aDFKG0ny.js} (75%) rename assets/{TableVideoPreview-BLFGgLVF.js => TableVideoPreview-uIFu_zG-.js} (69%) rename assets/{Test-CjWai9x0.js => Test-DaedM19Y.js} (91%) rename assets/{ThemeSwitch-INxyZ6i5.js => ThemeSwitch-Dfovu-Fl.js} (78%) rename assets/{TreeTable-MkFKx_LP.js => TreeTable-B2gHEPX4.js} (76%) rename assets/{UseFormDemo-mwmvv6Aa.js => UseFormDemo-Bw7a92Lx.js} (88%) rename assets/{UseTableDemo-DfFWz8wl.js => UseTableDemo-CG_waIQy.js} (67%) delete mode 100644 assets/UseTableDemo-CXtMJCFC.css create mode 100644 assets/UseTableDemo-DRKt3uVJ.css rename assets/{User-CRVmhTky.js => User-__ht-I-y.js} (84%) rename assets/{VideoPlayer-42kfXaMf.js => VideoPlayer-CSRu1lzL.js} (65%) rename assets/{Waterfall-CBrUbcOg.js => Waterfall-BQjrg7ql.js} (97%) rename assets/{Workplace-CLr6af66.js => Workplace-BIupU6-s.js} (95%) create mode 100644 assets/Write-C4MdhBEG.js create mode 100644 assets/Write-C60S3lqk.js delete mode 100644 assets/Write-CMLvD6PZ.js create mode 100644 assets/Write-D1Qaqcxi.js delete mode 100644 assets/Write-D4uWemfC.js create mode 100644 assets/Write-DFUzDWxn.js delete mode 100644 assets/Write-DHYggKqv.js create mode 100644 assets/Write-DLh0tahb.js delete mode 100644 assets/Write-DmcObcsQ.js delete mode 100644 assets/Write-DpyumCnR.js delete mode 100644 assets/Write-tgoSuZxw.js create mode 100644 assets/Write-x8NPtotc.js rename assets/{Write.vue_vue_type_script_setup_true_lang-C9laaz9C.js => Write.vue_vue_type_script_setup_true_lang-BBz-bjD1.js} (94%) rename assets/{Write.vue_vue_type_script_setup_true_lang-B0H_2X2p.js => Write.vue_vue_type_script_setup_true_lang-CIiSGwSL.js} (88%) rename assets/{Write.vue_vue_type_script_setup_true_lang-BCm2J1Ks.js => Write.vue_vue_type_script_setup_true_lang-CdW4xsT_.js} (93%) rename assets/{Write.vue_vue_type_script_setup_true_lang-PCxcjRLC.js => Write.vue_vue_type_script_setup_true_lang-Ce1mcWoJ.js} (91%) rename assets/{Write.vue_vue_type_script_setup_true_lang-_SFmF5k8.js => Write.vue_vue_type_script_setup_true_lang-DgvKX96v.js} (87%) rename assets/{Write.vue_vue_type_script_setup_true_lang-XLSypuqk.js => Write.vue_vue_type_script_setup_true_lang-uIkHTRx6.js} (87%) rename assets/{cssMode-DMmLTgYz.js => cssMode-CHypgTRD.js} (99%) rename assets/{el-radio-button-DWJU-_1D.js => el-radio-button-BbBORUw9.js} (70%) rename assets/{freemarker2-83QMiYqq.js => freemarker2-BWzI7mAH.js} (98%) rename assets/{handlebars-DwojGJVl.js => handlebars-DX89cqjN.js} (96%) rename assets/{html-BC731uhf.js => html--fkJPfQt.js} (95%) rename assets/{htmlMode-DWeSdq1n.js => htmlMode-7kuxxI3s.js} (99%) rename assets/{index-DlX4pwja.js => index-2gFf0KW4.js} (99%) rename assets/{index-CA0d6hyI.js => index-B5z15nYm.js} (96%) create mode 100644 assets/index-BYcZ39zx.js create mode 100644 assets/index-CA5sn5Y0.js delete mode 100644 assets/index-CRNzobZS.js delete mode 100644 assets/index-CxKCqm97.js rename assets/{index-DVoP4cjT.js => index-DB50Cmmr.js} (83%) rename assets/{index-C2-F2Fy9.js => index-DI3UHSfz.js} (86%) rename assets/{index-DxxgNbTS.js => index-Dt71D4p1.js} (81%) rename assets/{javascript-C7292Sh6.js => javascript-BGybM7Bs.js} (80%) rename assets/{jsonMode--87pAiWn.js => jsonMode-BL1JchM7.js} (99%) rename assets/{liquid-B1IR3wXj.js => liquid-Dc_NUFs-.js} (94%) rename assets/{mdx-DIkCJeLb.js => mdx-DXzRoGiO.js} (95%) rename assets/{python-Zo-tP2hE.js => python-C6c0ImSs.js} (94%) rename assets/{razor-DF_V0cbB.js => razor-Dbp-tt-8.js} (97%) rename assets/{style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js => style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js} (96%) rename assets/{tsMode-DgE4K8Op.js => tsMode-Kd0Ur8yF.js} (98%) rename assets/{typescript-CWsNTno6.js => typescript-CmRccRO2.js} (95%) rename assets/{useClipboard-BP8y4td2.js => useClipboard-Cu6jxoh0.js} (85%) rename assets/{useCrudSchemas-CCmfjfoL.js => useCrudSchemas-B0mS9v28.js} (91%) rename assets/{useForm-CbOF_UB2.js => useForm-BIADJKAv.js} (96%) delete mode 100644 assets/useIcon-Bk4x_lwM.js create mode 100644 assets/useIcon-Dzh8BHEZ.js rename assets/{useNetwork-CMuHkkRX.js => useNetwork-CJjsr591.js} (84%) rename assets/{useTable-BTK3WtdF.js => useTable-B7CCRTD1.js} (93%) rename assets/{useTagsView-yfN3e7pq.js => useTagsView-BLw3Jy7r.js} (92%) rename assets/{useTagsView-BzxN2HZN.js => useTagsView-Dn5Mz9ts.js} (80%) rename assets/{useValidator-BeCBBrXu.js => useValidator-DdhWBLrm.js} (73%) rename assets/{useWatermark-CPkIKVZd.js => useWatermark-CEKtVccT.js} (83%) rename assets/{xml-V1f6_0Ts.js => xml-DuoFp11i.js} (91%) rename assets/{yaml-5FzXFp3g.js => yaml-CxJ23TtR.js} (94%) diff --git a/assets/403-_8dyrmpq.js b/assets/403-DnhwZjvt.js similarity index 60% rename from assets/403-_8dyrmpq.js rename to assets/403-DnhwZjvt.js index 34ce6314..5f736a41 100644 --- a/assets/403-_8dyrmpq.js +++ b/assets/403-DnhwZjvt.js @@ -1 +1 @@ -import{_ as t}from"./Error.vue_vue_type_script_setup_true_lang-Yi9a7IcZ.js";import{c as a}from"./index-CA0d6hyI.js";import{q as n,aA as c,t as p,T as i,u as m}from"./vue-chunks-DOWhatC1.js";import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import"./element-plus-6v3c1uXT.js";const C=n({__name:"403",setup(u){const{push:r}=c(),e=a(),s=()=>{var o;r((o=e.addRouters[0])==null?void 0:o.path)};return(o,_)=>(p(),i(m(t),{type:"403",onErrorClick:s}))}});export{C as default}; +import{_ as t}from"./Error.vue_vue_type_script_setup_true_lang-pT3BQnse.js";import{c as a}from"./index-B5z15nYm.js";import{q as n,aA as c,t as p,T as i,u as m}from"./vue-chunks-DOWhatC1.js";import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import"./element-plus-6v3c1uXT.js";const C=n({__name:"403",setup(u){const{push:r}=c(),e=a(),s=()=>{var o;r((o=e.addRouters[0])==null?void 0:o.path)};return(o,_)=>(p(),i(m(t),{type:"403",onErrorClick:s}))}});export{C as default}; diff --git a/assets/404-EYOB4ZDb.js b/assets/404-CG2A4mzm.js similarity index 59% rename from assets/404-EYOB4ZDb.js rename to assets/404-CG2A4mzm.js index b4e65dfb..648311dc 100644 --- a/assets/404-EYOB4ZDb.js +++ b/assets/404-CG2A4mzm.js @@ -1 +1 @@ -import{_ as t}from"./Error.vue_vue_type_script_setup_true_lang-Yi9a7IcZ.js";import{c as a}from"./index-CA0d6hyI.js";import{q as n,aA as c,t as i,T as m,u as p}from"./vue-chunks-DOWhatC1.js";import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import"./element-plus-6v3c1uXT.js";const C=n({__name:"404",setup(u){const{push:r}=c(),s=a(),e=()=>{var o;r((o=s.addRouters[0])==null?void 0:o.path)};return(o,_)=>(i(),m(p(t),{onErrorClick:e}))}});export{C as default}; +import{_ as t}from"./Error.vue_vue_type_script_setup_true_lang-pT3BQnse.js";import{c as a}from"./index-B5z15nYm.js";import{q as n,aA as c,t as i,T as m,u as p}from"./vue-chunks-DOWhatC1.js";import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import"./element-plus-6v3c1uXT.js";const C=n({__name:"404",setup(u){const{push:r}=c(),s=a(),e=()=>{var o;r((o=s.addRouters[0])==null?void 0:o.path)};return(o,_)=>(i(),m(p(t),{onErrorClick:e}))}});export{C as default}; diff --git a/assets/500-BeNiIRKt.js b/assets/500-DxSyrmt3.js similarity index 60% rename from assets/500-BeNiIRKt.js rename to assets/500-DxSyrmt3.js index f269c292..0bf37ad2 100644 --- a/assets/500-BeNiIRKt.js +++ b/assets/500-DxSyrmt3.js @@ -1 +1 @@ -import{_ as t}from"./Error.vue_vue_type_script_setup_true_lang-Yi9a7IcZ.js";import{c as a}from"./index-CA0d6hyI.js";import{q as n,aA as c,t as p,T as i,u as m}from"./vue-chunks-DOWhatC1.js";import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import"./element-plus-6v3c1uXT.js";const C=n({__name:"500",setup(u){const{push:r}=c(),e=a(),s=()=>{var o;r((o=e.addRouters[0])==null?void 0:o.path)};return(o,_)=>(p(),i(m(t),{type:"500",onErrorClick:s}))}});export{C as default}; +import{_ as t}from"./Error.vue_vue_type_script_setup_true_lang-pT3BQnse.js";import{c as a}from"./index-B5z15nYm.js";import{q as n,aA as c,t as p,T as i,u as m}from"./vue-chunks-DOWhatC1.js";import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import"./element-plus-6v3c1uXT.js";const C=n({__name:"500",setup(u){const{push:r}=c(),e=a(),s=()=>{var o;r((o=e.addRouters[0])==null?void 0:o.path)};return(o,_)=>(p(),i(m(t),{type:"500",onErrorClick:s}))}});export{C as default}; diff --git a/assets/AddButtonPermission-DCIk97_V.js b/assets/AddButtonPermission-DCIk97_V.js new file mode 100644 index 00000000..e1ba5f45 --- /dev/null +++ b/assets/AddButtonPermission-DCIk97_V.js @@ -0,0 +1 @@ +import{_ as o}from"./AddButtonPermission.vue_vue_type_script_setup_true_lang-wVzKuO8R.js";import"./Form-B3fdtaFM.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./Icon-B-0CON7P.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css *//* empty css */import"./useForm-BIADJKAv.js";import"./useValidator-Nt61Jv1p.js";import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";export{o as default}; diff --git a/assets/AddButtonPermission-DKnOyfh5.js b/assets/AddButtonPermission-DKnOyfh5.js deleted file mode 100644 index 66d4a49f..00000000 --- a/assets/AddButtonPermission-DKnOyfh5.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./AddButtonPermission.vue_vue_type_script_setup_true_lang-C9agW6Rw.js";import"./Form-DJ57xbBt.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./Icon-Bwi9LaBZ.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css *//* empty css */import"./useForm-CbOF_UB2.js";import"./useValidator-Nt61Jv1p.js";import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";export{o as default}; diff --git a/assets/AddButtonPermission.vue_vue_type_script_setup_true_lang-C9agW6Rw.js b/assets/AddButtonPermission.vue_vue_type_script_setup_true_lang-wVzKuO8R.js similarity index 84% rename from assets/AddButtonPermission.vue_vue_type_script_setup_true_lang-C9agW6Rw.js rename to assets/AddButtonPermission.vue_vue_type_script_setup_true_lang-wVzKuO8R.js index 778e97b0..3333b648 100644 --- a/assets/AddButtonPermission.vue_vue_type_script_setup_true_lang-C9agW6Rw.js +++ b/assets/AddButtonPermission.vue_vue_type_script_setup_true_lang-wVzKuO8R.js @@ -1 +1 @@ -var V=(c,d,e)=>new Promise((m,n)=>{var f=a=>{try{o(e.next(a))}catch(t){n(t)}},p=a=>{try{o(e.throw(a))}catch(t){n(t)}},o=a=>a.done?m(a.value):Promise.resolve(a.value).then(f,p);o((e=e.apply(c,d)).next())});import{F as B}from"./Form-DJ57xbBt.js";import"./index-CA0d6hyI.js";/* empty css */import{u as F}from"./useForm-CbOF_UB2.js";import{u as k}from"./useValidator-Nt61Jv1p.js";import{_}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{a9 as y}from"./element-plus-6v3c1uXT.js";import{q as C,aG as M,aF as P,K as g,t as h,T as D,S as u,P as v,u as s,x as N,W as b}from"./vue-chunks-DOWhatC1.js";const U=C({__name:"AddButtonPermission",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:M(["confirm"],["update:modelValue"]),setup(c,{emit:d}){const e=P(c,"modelValue"),{required:m}=k(),n=g([{field:"label",label:"label",component:"Input",colProps:{span:24}},{field:"value",label:"value",component:"Input",colProps:{span:24}}]),{formRegister:f,formMethods:p}=F(),{getFormData:o,getElFormExpose:a}=p,t=d,w=g({label:[m()],value:[m()]}),x=()=>V(this,null,function*(){const l=yield a();if(!l)return;if(yield l==null?void 0:l.validate().catch(i=>{})){const i=yield o();t("confirm",i),e.value=!1}});return(l,r)=>(h(),D(s(y),{modelValue:e.value,"onUpdate:modelValue":r[1]||(r[1]=i=>e.value=i),title:"新增按钮权限"},{default:u(()=>[v(s(B),{rules:w,onRegister:s(f),schema:n},null,8,["rules","onRegister","schema"])]),footer:u(()=>[N("div",null,[v(s(_),{onClick:r[0]||(r[0]=()=>e.value=!1)},{default:u(()=>[b("取消")]),_:1}),v(s(_),{type:"primary",onClick:x},{default:u(()=>[b("确认")]),_:1})])]),_:1},8,["modelValue"]))}});export{U as _}; +var V=(c,d,e)=>new Promise((m,n)=>{var f=a=>{try{o(e.next(a))}catch(t){n(t)}},p=a=>{try{o(e.throw(a))}catch(t){n(t)}},o=a=>a.done?m(a.value):Promise.resolve(a.value).then(f,p);o((e=e.apply(c,d)).next())});import{F as B}from"./Form-B3fdtaFM.js";import"./index-B5z15nYm.js";/* empty css */import{u as F}from"./useForm-BIADJKAv.js";import{u as k}from"./useValidator-Nt61Jv1p.js";import{_}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{a9 as y}from"./element-plus-6v3c1uXT.js";import{q as C,aG as M,aF as P,K as g,t as h,T as D,S as u,P as v,u as s,x as N,W as b}from"./vue-chunks-DOWhatC1.js";const U=C({__name:"AddButtonPermission",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:M(["confirm"],["update:modelValue"]),setup(c,{emit:d}){const e=P(c,"modelValue"),{required:m}=k(),n=g([{field:"label",label:"label",component:"Input",colProps:{span:24}},{field:"value",label:"value",component:"Input",colProps:{span:24}}]),{formRegister:f,formMethods:p}=F(),{getFormData:o,getElFormExpose:a}=p,t=d,w=g({label:[m()],value:[m()]}),x=()=>V(this,null,function*(){const l=yield a();if(!l)return;if(yield l==null?void 0:l.validate().catch(i=>{})){const i=yield o();t("confirm",i),e.value=!1}});return(l,r)=>(h(),D(s(y),{modelValue:e.value,"onUpdate:modelValue":r[1]||(r[1]=i=>e.value=i),title:"新增按钮权限"},{default:u(()=>[v(s(B),{rules:w,onRegister:s(f),schema:n},null,8,["rules","onRegister","schema"])]),footer:u(()=>[N("div",null,[v(s(_),{onClick:r[0]||(r[0]=()=>e.value=!1)},{default:u(()=>[b("取消")]),_:1}),v(s(_),{type:"primary",onClick:x},{default:u(()=>[b("确认")]),_:1})])]),_:1},8,["modelValue"]))}});export{U as _}; diff --git a/assets/Analysis-CiSR2fge.js b/assets/Analysis-o1g9mDRc.js similarity index 89% rename from assets/Analysis-CiSR2fge.js rename to assets/Analysis-o1g9mDRc.js index 1e5215a0..2db7ce35 100644 --- a/assets/Analysis-CiSR2fge.js +++ b/assets/Analysis-o1g9mDRc.js @@ -1 +1 @@ -var c=(A,l,i)=>new Promise((u,r)=>{var g=o=>{try{p(i.next(o))}catch(a){r(a)}},m=o=>{try{p(i.throw(o))}catch(a){r(a)}},p=o=>o.done?u(o.value):Promise.resolve(o.value).then(g,m);p((i=i.apply(A,l)).next())});import{P as v,g as w,a as b,b as O}from"./PanelGroup-CJuS-ais.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css */import{p as E,b as S,l as k,_ as f}from"./Echart.vue_vue_type_script_setup_true_lang-B--3X1Iw.js";import"./echarts-VT2A7KjM.js";import{k as h,l as _,m as y,n as D,s as d}from"./element-plus-6v3c1uXT.js";import{q as C,r as P,K as x,t as U,v as q,P as e,S as n,u as s,Q as B}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";import"./CountTo.vue_vue_type_script_setup_true_lang-BYxn9PUH.js";const z=C({__name:"Analysis",setup(A){const l=P(!0),i=x(E),u=()=>c(this,null,function*(){const a=yield w().catch(()=>{});a&&(d(i,"legend.data",a.data.map(t=>t.name)),i.series[0].data=a.data.map(t=>({name:t.name,value:t.value})))}),r=x(S),g=()=>c(this,null,function*(){const a=yield b().catch(()=>{});a&&(d(r,"xAxis.data",a.data.map(t=>t.name)),d(r,"series",[{name:"活跃量",data:a.data.map(t=>t.value),type:"bar"}]))}),m=x(k),p=()=>c(this,null,function*(){const a=yield O().catch(()=>{});a&&(d(m,"xAxis.data",a.data.map(t=>t.name)),d(m,"series",[{name:"预计",smooth:!0,type:"line",data:a.data.map(t=>t.estimate),animationDuration:2800,animationEasing:"cubicInOut"},{name:"实际",smooth:!0,type:"line",itemStyle:{},data:a.data.map(t=>t.actual),animationDuration:2800,animationEasing:"quadraticOut"}]))});return c(this,null,function*(){yield Promise.all([u(),g(),p()]),l.value=!1}),(a,t)=>(U(),q(B,null,[e(v),e(s(D),{gutter:20,justify:"space-between"},{default:n(()=>[e(s(h),{xl:10,lg:10,md:24,sm:24,xs:24},{default:n(()=>[e(s(_),{shadow:"hover",class:"mb-20px"},{default:n(()=>[e(s(y),{loading:l.value,animated:""},{default:n(()=>[e(s(f),{options:i,height:300},null,8,["options"])]),_:1},8,["loading"])]),_:1})]),_:1}),e(s(h),{xl:14,lg:14,md:24,sm:24,xs:24},{default:n(()=>[e(s(_),{shadow:"hover",class:"mb-20px"},{default:n(()=>[e(s(y),{loading:l.value,animated:""},{default:n(()=>[e(s(f),{options:r,height:300},null,8,["options"])]),_:1},8,["loading"])]),_:1})]),_:1}),e(s(h),{span:24},{default:n(()=>[e(s(_),{shadow:"hover",class:"mb-20px"},{default:n(()=>[e(s(y),{loading:l.value,animated:"",rows:4},{default:n(()=>[e(s(f),{options:m,height:350},null,8,["options"])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})],64))}});export{z as default}; +var c=(A,l,i)=>new Promise((u,r)=>{var g=o=>{try{p(i.next(o))}catch(a){r(a)}},m=o=>{try{p(i.throw(o))}catch(a){r(a)}},p=o=>o.done?u(o.value):Promise.resolve(o.value).then(g,m);p((i=i.apply(A,l)).next())});import{P as v,g as w,a as b,b as O}from"./PanelGroup-SOpNPnD6.js";import"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css */import{p as E,b as S,l as k,_ as f}from"./Echart.vue_vue_type_script_setup_true_lang-CrfDnuqg.js";import"./echarts-VT2A7KjM.js";import{k as h,l as _,m as y,n as D,s as d}from"./element-plus-6v3c1uXT.js";import{q as C,r as P,K as x,t as U,v as q,P as e,S as n,u as s,Q as B}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";import"./CountTo.vue_vue_type_script_setup_true_lang-BAvgPMEO.js";const z=C({__name:"Analysis",setup(A){const l=P(!0),i=x(E),u=()=>c(this,null,function*(){const a=yield w().catch(()=>{});a&&(d(i,"legend.data",a.data.map(t=>t.name)),i.series[0].data=a.data.map(t=>({name:t.name,value:t.value})))}),r=x(S),g=()=>c(this,null,function*(){const a=yield b().catch(()=>{});a&&(d(r,"xAxis.data",a.data.map(t=>t.name)),d(r,"series",[{name:"活跃量",data:a.data.map(t=>t.value),type:"bar"}]))}),m=x(k),p=()=>c(this,null,function*(){const a=yield O().catch(()=>{});a&&(d(m,"xAxis.data",a.data.map(t=>t.name)),d(m,"series",[{name:"预计",smooth:!0,type:"line",data:a.data.map(t=>t.estimate),animationDuration:2800,animationEasing:"cubicInOut"},{name:"实际",smooth:!0,type:"line",itemStyle:{},data:a.data.map(t=>t.actual),animationDuration:2800,animationEasing:"quadraticOut"}]))});return c(this,null,function*(){yield Promise.all([u(),g(),p()]),l.value=!1}),(a,t)=>(U(),q(B,null,[e(v),e(s(D),{gutter:20,justify:"space-between"},{default:n(()=>[e(s(h),{xl:10,lg:10,md:24,sm:24,xs:24},{default:n(()=>[e(s(_),{shadow:"hover",class:"mb-20px"},{default:n(()=>[e(s(y),{loading:l.value,animated:""},{default:n(()=>[e(s(f),{options:i,height:300},null,8,["options"])]),_:1},8,["loading"])]),_:1})]),_:1}),e(s(h),{xl:14,lg:14,md:24,sm:24,xs:24},{default:n(()=>[e(s(_),{shadow:"hover",class:"mb-20px"},{default:n(()=>[e(s(y),{loading:l.value,animated:""},{default:n(()=>[e(s(f),{options:r,height:300},null,8,["options"])]),_:1},8,["loading"])]),_:1})]),_:1}),e(s(h),{span:24},{default:n(()=>[e(s(_),{shadow:"hover",class:"mb-20px"},{default:n(()=>[e(s(y),{loading:l.value,animated:"",rows:4},{default:n(()=>[e(s(f),{options:m,height:350},null,8,["options"])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})],64))}});export{z as default}; diff --git a/assets/Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js b/assets/Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js similarity index 96% rename from assets/Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js rename to assets/Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js index 0ea26edb..0a676bdb 100644 --- a/assets/Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js +++ b/assets/Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js @@ -1 +1 @@ -var g=Object.defineProperty;var f=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var u=(o,e,t)=>e in o?g(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,p=(o,e)=>{for(var t in e||(e={}))B.call(e,t)&&u(o,t,e[t]);if(f)for(var t of f(e))S.call(e,t)&&u(o,t,e[t]);return o};import{u as b}from"./index-CA0d6hyI.js";import{a3 as k}from"./element-plus-6v3c1uXT.js";import{q as v,d as n,t as C,T,S as h,H as r,I as j,u as i}from"./vue-chunks-DOWhatC1.js";const $=v({__name:"Button",props:{size:{type:String,default:void 0},type:{type:String,default:"default"},disabled:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},text:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},link:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{type:[String,Object],default:void 0},icon:{type:[String,Object],default:void 0},autofocus:{type:Boolean,default:!1},nativeType:{type:String,default:"button"},autoInsertSpace:{type:Boolean,default:!1},color:{type:String,default:""},darker:{type:Boolean,default:!1},tag:{type:[String,Object],default:"button"}},emits:["click"],setup(o,{emit:e}){const t=b(),d=n(()=>t.getTheme),a=o,c=e,y=n(()=>{const{type:l}=a;return l==="primary"?i(d).elColorPrimary:""}),m=n(()=>{const{type:l}=a;return l==="primary"?"--el-button-text-color: #fff; --el-button-hover-text-color: #fff":""});return(l,s)=>(C(),T(i(k),j({class:"button color-#fff"},p({},a),{color:y.value,style:m.value,onClick:s[0]||(s[0]=()=>c("click"))}),{default:h(()=>[r(l.$slots,"default"),r(l.$slots,"icon"),r(l.$slots,"loading")]),_:3},16,["color","style"]))}});export{$ as _}; +var g=Object.defineProperty;var f=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var u=(o,e,t)=>e in o?g(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,p=(o,e)=>{for(var t in e||(e={}))B.call(e,t)&&u(o,t,e[t]);if(f)for(var t of f(e))S.call(e,t)&&u(o,t,e[t]);return o};import{u as b}from"./index-B5z15nYm.js";import{a3 as k}from"./element-plus-6v3c1uXT.js";import{q as v,d as n,t as C,T,S as h,H as r,I as j,u as i}from"./vue-chunks-DOWhatC1.js";const $=v({__name:"Button",props:{size:{type:String,default:void 0},type:{type:String,default:"default"},disabled:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},text:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},link:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{type:[String,Object],default:void 0},icon:{type:[String,Object],default:void 0},autofocus:{type:Boolean,default:!1},nativeType:{type:String,default:"button"},autoInsertSpace:{type:Boolean,default:!1},color:{type:String,default:""},darker:{type:Boolean,default:!1},tag:{type:[String,Object],default:"button"}},emits:["click"],setup(o,{emit:e}){const t=b(),d=n(()=>t.getTheme),a=o,c=e,y=n(()=>{const{type:l}=a;return l==="primary"?i(d).elColorPrimary:""}),m=n(()=>{const{type:l}=a;return l==="primary"?"--el-button-text-color: #fff; --el-button-hover-text-color: #fff":""});return(l,s)=>(C(),T(i(k),j({class:"button color-#fff"},p({},a),{color:y.value,style:m.value,onClick:s[0]||(s[0]=()=>c("click"))}),{default:h(()=>[r(l.$slots,"default"),r(l.$slots,"icon"),r(l.$slots,"loading")]),_:3},16,["color","style"]))}});export{$ as _}; diff --git a/assets/CardTable-DpMqGHeS.js b/assets/CardTable-CF9tCZ-U.js similarity index 80% rename from assets/CardTable-DpMqGHeS.js rename to assets/CardTable-CF9tCZ-U.js index cc483db8..ce23f8a4 100644 --- a/assets/CardTable-DpMqGHeS.js +++ b/assets/CardTable-CF9tCZ-U.js @@ -1 +1 @@ -var f=(m,l,o)=>new Promise((_,n)=>{var s=i=>{try{t(o.next(i))}catch(d){n(d)}},r=i=>{try{t(o.throw(i))}catch(d){n(d)}},t=i=>i.done?_(i.value):Promise.resolve(i.value).then(s,r);t((o=o.apply(m,l)).next())});import{_ as v}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as C}from"./Table.vue_vue_type_script_lang-DOZk-BCG.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css */import{b as k}from"./index-DVoP4cjT.js";/* empty css *//* empty css */import{r as u,q as b}from"./element-plus-6v3c1uXT.js";import{q as T,r as x,t as y,T as L,S as c,P as p,u as a,x as e,X as g,W as h}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import"./index-DlX4pwja.js";const B={class:"flex cursor-pointer"},w={class:"pr-16px"},z=["src"],D={class:"mb-12px font-700 font-size-16px"},N={class:"line-clamp-3 font-size-12px"},S={class:"flex justify-center items-center"},V=["onClick"],q=["onClick"],it=T({__name:"CardTable",setup(m){const l=x(!0);let o=x([]);(s=>f(this,null,function*(){const r=yield k(s||{pageIndex:1,pageSize:10}).catch(()=>{}).finally(()=>{l.value=!1});r&&(o.value=r.data.list)}))();const n=s=>{};return(s,r)=>(y(),L(a(v),{title:"卡片表格"},{default:c(()=>[p(a(C),{columns:[],data:a(o),loading:l.value,"custom-content":"","card-wrap-style":{width:"200px",marginBottom:"20px",marginRight:"20px"}},{content:c(t=>[e("div",B,[e("div",w,[e("img",{src:t.logo,class:"w-48px h-48px rounded-[50%]",alt:""},null,8,z)]),e("div",null,[e("div",D,g(t.name),1),e("div",N,g(t.desc),1)])])]),"content-footer":c(t=>[e("div",S,[e("div",{class:"flex-1 text-center",onClick:()=>n(t)},[p(a(u),{underline:!1},{default:c(()=>[h("操作一")]),_:1})],8,V),p(a(b),{direction:"vertical"}),e("div",{class:"flex-1 text-center",onClick:()=>n(t)},[p(a(u),{underline:!1},{default:c(()=>[h("操作二")]),_:1})],8,q)])]),_:1},8,["data","loading"])]),_:1}))}});export{it as default}; +var f=(m,l,o)=>new Promise((_,n)=>{var s=i=>{try{t(o.next(i))}catch(d){n(d)}},r=i=>{try{t(o.throw(i))}catch(d){n(d)}},t=i=>i.done?_(i.value):Promise.resolve(i.value).then(s,r);t((o=o.apply(m,l)).next())});import{_ as v}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as C}from"./Table.vue_vue_type_script_lang-BzBmZLp9.js";import"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css */import{b as k}from"./index-DB50Cmmr.js";/* empty css *//* empty css */import{r as u,q as b}from"./element-plus-6v3c1uXT.js";import{q as T,r as x,t as y,T as L,S as c,P as p,u as a,x as e,X as g,W as h}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import"./index-2gFf0KW4.js";const B={class:"flex cursor-pointer"},w={class:"pr-16px"},z=["src"],D={class:"mb-12px font-700 font-size-16px"},N={class:"line-clamp-3 font-size-12px"},S={class:"flex justify-center items-center"},V=["onClick"],q=["onClick"],it=T({__name:"CardTable",setup(m){const l=x(!0);let o=x([]);(s=>f(this,null,function*(){const r=yield k(s||{pageIndex:1,pageSize:10}).catch(()=>{}).finally(()=>{l.value=!1});r&&(o.value=r.data.list)}))();const n=s=>{};return(s,r)=>(y(),L(a(v),{title:"卡片表格"},{default:c(()=>[p(a(C),{columns:[],data:a(o),loading:l.value,"custom-content":"","card-wrap-style":{width:"200px",marginBottom:"20px",marginRight:"20px"}},{content:c(t=>[e("div",B,[e("div",w,[e("img",{src:t.logo,class:"w-48px h-48px rounded-[50%]",alt:""},null,8,z)]),e("div",null,[e("div",D,g(t.name),1),e("div",N,g(t.desc),1)])])]),"content-footer":c(t=>[e("div",S,[e("div",{class:"flex-1 text-center",onClick:()=>n(t)},[p(a(u),{underline:!1},{default:c(()=>[h("操作一")]),_:1})],8,V),p(a(b),{direction:"vertical"}),e("div",{class:"flex-1 text-center",onClick:()=>n(t)},[p(a(u),{underline:!1},{default:c(()=>[h("操作二")]),_:1})],8,q)])]),_:1},8,["data","loading"])]),_:1}))}});export{it as default}; diff --git a/assets/CodeEditor-IM9M_0kv.js b/assets/CodeEditor-SFUUr4rV.js similarity index 99% rename from assets/CodeEditor-IM9M_0kv.js rename to assets/CodeEditor-SFUUr4rV.js index 1aae6dfa..ebcc27a7 100644 --- a/assets/CodeEditor-IM9M_0kv.js +++ b/assets/CodeEditor-SFUUr4rV.js @@ -1,10 +1,10 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/freemarker2-83QMiYqq.js","assets/index-CA0d6hyI.js","assets/vue-chunks-DOWhatC1.js","assets/element-plus-6v3c1uXT.js","assets/index-GZYK5gHU.css","assets/ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js","assets/Icon-Bwi9LaBZ.js","assets/Icon-DleAP3Zh.css","assets/el-card-BRs6t4Sx.css","assets/el-popper-Dp4T8EOK.css","assets/Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js","assets/el-tag-GlP_X63n.css","assets/el-select-Cy_sckyo.css","assets/el-form-item-DeFBUyhQ.css","assets/el-divider-Ca8J-BER.css","assets/handlebars-DwojGJVl.js","assets/html-BC731uhf.js","assets/javascript-C7292Sh6.js","assets/typescript-CWsNTno6.js","assets/liquid-B1IR3wXj.js","assets/mdx-DIkCJeLb.js","assets/python-Zo-tP2hE.js","assets/razor-DF_V0cbB.js","assets/xml-V1f6_0Ts.js","assets/yaml-5FzXFp3g.js","assets/cssMode-DMmLTgYz.js","assets/htmlMode-DWeSdq1n.js","assets/jsonMode--87pAiWn.js","assets/tsMode-DgE4K8Op.js"] + __vite__mapDeps.viteFileDeps = ["assets/freemarker2-BWzI7mAH.js","assets/index-B5z15nYm.js","assets/vue-chunks-DOWhatC1.js","assets/element-plus-6v3c1uXT.js","assets/index-GZYK5gHU.css","assets/ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js","assets/Icon-B-0CON7P.js","assets/Icon-DleAP3Zh.css","assets/el-card-BRs6t4Sx.css","assets/el-popper-Dp4T8EOK.css","assets/Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js","assets/el-tag-GlP_X63n.css","assets/el-select-Cy_sckyo.css","assets/el-form-item-DeFBUyhQ.css","assets/el-divider-Ca8J-BER.css","assets/handlebars-DX89cqjN.js","assets/html--fkJPfQt.js","assets/javascript-BGybM7Bs.js","assets/typescript-CmRccRO2.js","assets/liquid-Dc_NUFs-.js","assets/mdx-DXzRoGiO.js","assets/python-C6c0ImSs.js","assets/razor-Dbp-tt-8.js","assets/xml-DuoFp11i.js","assets/yaml-CxJ23TtR.js","assets/cssMode-CHypgTRD.js","assets/htmlMode-7kuxxI3s.js","assets/jsonMode-BL1JchM7.js","assets/tsMode-Kd0Ur8yF.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -var t$=Object.defineProperty,i$=Object.defineProperties;var n$=Object.getOwnPropertyDescriptors;var bC=Object.getOwnPropertySymbols,s$=Object.getPrototypeOf,fO=Object.prototype.hasOwnProperty,mO=Object.prototype.propertyIsEnumerable,o$=Reflect.get;var Yp=(o,e)=>(e=Symbol[o])?e:Symbol.for("Symbol."+o),hc=Math.pow,gO=(o,e,t)=>e in o?t$(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,K=(o,e)=>{for(var t in e||(e={}))fO.call(e,t)&&gO(o,t,e[t]);if(bC)for(var t of bC(e))mO.call(e,t)&&gO(o,t,e[t]);return o},ue=(o,e)=>i$(o,n$(e));var pO=(o,e)=>{var t={};for(var i in o)fO.call(o,i)&&e.indexOf(i)<0&&(t[i]=o[i]);if(o!=null&&bC)for(var i of bC(o))e.indexOf(i)<0&&mO.call(o,i)&&(t[i]=o[i]);return t};var _O=(o,e,t)=>o$(s$(o),t,e);var M=(o,e,t)=>new Promise((i,n)=>{var s=l=>{try{a(t.next(l))}catch(d){n(d)}},r=l=>{try{a(t.throw(l))}catch(d){n(d)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,r);a((t=t.apply(o,e)).next())}),r$=function(o,e){this[0]=o,this[1]=e};var CC=o=>{var e=o[Yp("asyncIterator")],t=!1,i,n={};return e==null?(e=o[Yp("iterator")](),i=s=>n[s]=r=>e[s](r)):(e=e.call(o),i=s=>n[s]=r=>{if(t){if(t=!1,s==="throw")throw r;return r}return t=!0,{done:!1,value:new r$(new Promise(a=>{var l=e[s](r);if(!(l instanceof Object))throw TypeError("Object expected");a(l)}),1)}}),n[Yp("iterator")]=()=>n,i("next"),"throw"in e?i("throw"):n.throw=s=>{throw s},"return"in e&&i("return"),n},Ul=(o,e,t)=>(e=o[Yp("asyncIterator")])?e.call(o):(o=o[Yp("iterator")](),e={},t=(i,n)=>(n=o[i])&&(e[i]=s=>new Promise((r,a,l)=>(s=n.call(o,s),l=s.done,Promise.resolve(s.value).then(d=>r({value:d,done:l}),a)))),t("next"),t("return"),e);import{_ as ye}from"./index-CA0d6hyI.js";import{r as Fv,C as a$,n as l$,q as z9,d as d$,o as c$,w as sx,t as bc,v as ox,P as im,S as xu,T as E_,u as zo,Q as rx,a8 as vO,Y as bO,x as U9,V as h$,W as u$}from"./vue-chunks-DOWhatC1.js";/* empty css *//* empty css *//* empty css *//* empty css */import{D as CO,F as wO,t as SO,G as g$,q as f$}from"./element-plus-6v3c1uXT.js";import{_ as m$}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as p$}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css */function Vo(o,e=0){return o[o.length-(1+e)]}function _$(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function ci(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function b$(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function fI(o,e,t){if(o=o|0,o>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function LO(o){let e=0;for(let t=0;t0}function Ud(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function WR(o,e){return o.length>0?o[0]:e}function Ps(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function Oy(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function ax(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function wC(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function mI(o,e){for(const t of e)o.push(t)}function VR(o){return Array.isArray(o)?o:[o]}function w$(o,e,t){const i=K9(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=i;function n(s){return s===0}o.isNeitherLessOrGreaterThan=n,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(Wv||(Wv={}));function er(o,e){return(t,i)=>e(o(t),o(i))}function S$(...o){return(e,t)=>{for(const i of o){const n=i(e,t);if(!Wv.isNeitherLessOrGreaterThan(n))return n}return Wv.neitherLessOrGreaterThan}}const Md=(o,e)=>o-e,y$=(o,e)=>Md(o?1:0,e?1:0);function q9(o){return(e,t)=>-o(e,t)}class $d{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class _l{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new _l(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new _l(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Wv.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}_l.empty=new _l(o=>{});class Tw{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((n,s)=>t(e[n],e[s]));return new Tw(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t{e[t]=i&&typeof i=="object"?sd(i):i}),e}function k$(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(Z9.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!L$(n)&&e.push(n)}}return o}const Z9=Object.prototype.hasOwnProperty;function Y9(o,e){return pI(o,e,new Set)}function pI(o,e,t){if(Co(o))return o;const i=e(o);if(typeof i!="undefined")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(pI(s,e,t));return n}if(bs(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)Z9.call(o,s)&&(n[s]=pI(o[s],e,t));return t.delete(o),n}return o}function Fy(o,e,t=!0){return bs(o)?(bs(e)&&Object.keys(e).forEach(i=>{i in o?t&&(bs(o[i])&&bs(e[i])?Fy(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function xo(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;tfunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}let N$=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function X9(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),N$&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function m(o,e,...t){return X9(e,t)}function pt(o,e,...t){const i=X9(e,t);return{value:i,original:i}}var lx,dx;const Tf="en";let Mw=!1,Rw=!1,j1=!1,Q9=!1,zR=!1,UR=!1,J9=!1,SC,K1=Tf,kO=Tf,T$,$r;const Rd=globalThis;let hs;typeof Rd.vscode!="undefined"&&typeof Rd.vscode.process!="undefined"?hs=Rd.vscode.process:typeof process!="undefined"&&typeof((lx=process==null?void 0:process.versions)===null||lx===void 0?void 0:lx.node)=="string"&&(hs=process);const M$=typeof((dx=hs==null?void 0:hs.versions)===null||dx===void 0?void 0:dx.electron)=="string",R$=M$&&(hs==null?void 0:hs.type)==="renderer";if(typeof hs=="object"){Mw=hs.platform==="win32",Rw=hs.platform==="darwin",j1=hs.platform==="linux",j1&&hs.env.SNAP&&hs.env.SNAP_REVISION,hs.env.CI||hs.env.BUILD_ARTIFACTSTAGINGDIRECTORY,SC=Tf,K1=Tf;const o=hs.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];SC=e.locale,kO=e.osLocale,K1=t||Tf,T$=e._translationsConfigFile}catch(e){}Q9=!0}else typeof navigator=="object"&&!R$?($r=navigator.userAgent,Mw=$r.indexOf("Windows")>=0,Rw=$r.indexOf("Macintosh")>=0,UR=($r.indexOf("Macintosh")>=0||$r.indexOf("iPad")>=0||$r.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,j1=$r.indexOf("Linux")>=0,J9=($r==null?void 0:$r.indexOf("Mobi"))>=0,zR=!0,m({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),SC=Tf,K1=SC,kO=navigator.language):console.error("Unable to resolve platform.");const Fn=Mw,ot=Rw,xs=j1,ha=Q9,Uh=zR,A$=zR&&typeof Rd.importScripts=="function",P$=A$?Rd.origin:void 0,ba=UR,eB=J9,Ll=$r,O$=K1,F$=typeof Rd.postMessage=="function"&&!Rd.importScripts,tB=(()=>{if(F$){const o=[];Rd.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),Rd.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),eo=Rw||UR?2:Mw?1:3;let IO=!0,EO=!1;function iB(){if(!EO){EO=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,IO=new Uint16Array(o.buffer)[0]===513}return IO}const nB=!!(Ll&&Ll.indexOf("Chrome")>=0),B$=!!(Ll&&Ll.indexOf("Firefox")>=0),W$=!!(!nB&&Ll&&Ll.indexOf("Safari")>=0),V$=!!(Ll&&Ll.indexOf("Edg/")>=0),H$=!!(Ll&&Ll.indexOf("Android")>=0),zn={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var ht;(function(o){function e(C){return C&&typeof C=="object"&&typeof C[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(C){yield C}o.single=n;function s(C){return e(C)?C:n(C)}o.wrap=s;function r(C){return C||t}o.from=r;function*a(C){for(let w=C.length-1;w>=0;w--)yield C[w]}o.reverse=a;function l(C){return!C||C[Symbol.iterator]().next().done===!0}o.isEmpty=l;function d(C){return C[Symbol.iterator]().next().value}o.first=d;function c(C,w){for(const S of C)if(w(S))return!0;return!1}o.some=c;function h(C,w){for(const S of C)if(w(S))return S}o.find=h;function*u(C,w){for(const S of C)w(S)&&(yield S)}o.filter=u;function*g(C,w){let S=0;for(const L of C)yield w(L,S++)}o.map=g;function*f(...C){for(const w of C)yield*CC(w)}o.concat=f;function p(C,w,S){let L=S;for(const x of C)L=w(L,x);return L}o.reduce=p;function*_(C,w,S=C.length){for(w<0&&(w+=C.length),S<0?S+=C.length:S>C.length&&(S=C.length);w{n||(n=!0,this._remove(i))}}shift(){if(this._first!==$i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==$i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==$i.Undefined&&e.next!==$i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===$i.Undefined&&e.next===$i.Undefined?(this._first=$i.Undefined,this._last=$i.Undefined):e.next===$i.Undefined?(this._last=this._last.prev,this._last.next=$i.Undefined):e.prev===$i.Undefined&&(this._first=this._first.next,this._first.prev=$i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==$i.Undefined;)yield e.element,e=e.next}}const sB="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function z$(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of sB)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const $R=z$();function jR(o){let e=$R;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const oB=new Cs;oB.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Hv(o,e,t,i,n){if(e=jR(e),n||(n=ht.first(oB)),t.length>n.maxLen){let d=o-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,o+n.maxLen/2),Hv(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-s>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const h=U$(e,t,r,a);if(!h&&l||(l=h,c<=0))break;a=c}if(l){const d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function U$(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}const $a=8;class rB{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class aB{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class oi{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return By(e,t)}compute(e,t,i){return i}}class iv{constructor(e,t){this.newValue=e,this.didChange=t}}function By(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new iv(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&ci(o,e);return new iv(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=By(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new iv(o,t)}class S0{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return By(e,t)}validate(e){return this.defaultValue}}class yp{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return By(e,t)}validate(e){return typeof e=="undefined"?this.defaultValue:e}compute(e,t,i){return i}}function we(o,e){return typeof o=="undefined"?e:o==="false"?!1:!!o}class _t extends yp{constructor(e,t,i,n=void 0){typeof n!="undefined"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return we(e,this.defaultValue)}}function vu(o,e,t,i){if(typeof o=="undefined")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Wt extends yp{static clampedInt(e,t,i,n){return vu(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r!="undefined"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return Wt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function $$(o,e,t,i){if(typeof o=="undefined")return e;const n=Zo.float(o,e);return Zo.clamp(n,t,i)}class Zo extends yp{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e=="undefined")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s!="undefined"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(Zo.float(e,this.defaultValue))}}class fs extends yp{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n!="undefined"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return fs.string(e,this.defaultValue)}}function bi(o,e,t,i){return typeof o!="string"?e:i&&o in i?i[o]:t.indexOf(o)===-1?e:o}class gi extends yp{constructor(e,t,i,n,s=void 0){typeof s!="undefined"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return bi(e,this.defaultValue,this._allowedValues)}}class yC extends oi{constructor(e,t,i,n,s,r,a=void 0){typeof a!="undefined"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function j$(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class K$ extends oi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[m("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),m("accessibilitySupport.on","Optimize for usage with a Screen Reader."),m("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:m("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class q$ extends oi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:m("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:m("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:we(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:we(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function G$(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Ln;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Ln||(Ln={}));function Z$(o){switch(o){case"line":return Ln.Line;case"block":return Ln.Block;case"underline":return Ln.Underline;case"line-thin":return Ln.LineThin;case"block-outline":return Ln.BlockOutline;case"underline-thin":return Ln.UnderlineThin}}class Y$ extends S0{constructor(){super(142)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(140)&&n.push("showDeprecated"),n.join(" ")}}class X$ extends _t{constructor(){super(37,"emptySelectionClipboard",!0,{description:m("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class Q$ extends oi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:m("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[m("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),m("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),m("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:m("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[m("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),m("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),m("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:m("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:m("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:ot},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:m("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:m("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:we(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":bi(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":bi(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:we(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:we(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:we(t.loop,this.defaultValue.loop)}}}class wo extends oi{constructor(){super(51,"fontLigatures",wo.OFF,{anyOf:[{type:"boolean",description:m("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:m("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:m("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e=="undefined"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?wo.OFF:e==="true"?wo.ON:e:e?wo.ON:wo.OFF}}wo.OFF='"liga" off, "calt" off';wo.ON='"liga" on, "calt" on';class oa extends oi{constructor(){super(54,"fontVariations",oa.OFF,{anyOf:[{type:"boolean",description:m("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:m("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:m("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e=="undefined"?this.defaultValue:typeof e=="string"?e==="false"?oa.OFF:e==="true"?oa.TRANSLATE:e:e?oa.TRANSLATE:oa.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}oa.OFF="normal";oa.TRANSLATE="translate";class J$ extends S0{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class ej extends yp{constructor(){super(52,"fontSize",Vs.fontSize,{type:"number",minimum:6,maximum:100,default:Vs.fontSize,description:m("fontSize","Controls the font size in pixels.")})}validate(e){const t=Zo.float(e,this.defaultValue);return t===0?Vs.fontSize:Zo.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class tl extends oi{constructor(){super(53,"fontWeight",Vs.fontWeight,{anyOf:[{type:"number",minimum:tl.MINIMUM_VALUE,maximum:tl.MAXIMUM_VALUE,errorMessage:m("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:tl.SUGGESTION_VALUES}],default:Vs.fontWeight,description:m("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Wt.clampedInt(e,Vs.fontWeight,tl.MINIMUM_VALUE,tl.MAXIMUM_VALUE))}}tl.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];tl.MINIMUM_VALUE=1;tl.MAXIMUM_VALUE=1e3;class tj extends oi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[m("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),m("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),m("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:m("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":K({description:m("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":K({description:m("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":K({description:m("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":K({description:m("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":K({description:m("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:m("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:m("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:m("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:m("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:m("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:bi(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:bi(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:bi(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:bi(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:bi(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:bi(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:fs.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:fs.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:fs.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:fs.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:fs.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class ij extends oi{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:m("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:m("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:m("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:m("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:m("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),delay:Wt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:we(t.sticky,this.defaultValue.sticky),hidingDelay:Wt.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:we(t.above,this.defaultValue.above)}}}class nm extends S0{constructor(){super(145)}compute(e,t,i){return nm.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,p=e.minimap.side,_=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,C=e.isViewportWrapping,w=h?2:3;let S=Math.floor(s*n);const L=S/s;let x=!1,I=!1,N=w*u,V=u/s,O=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:Re,extraLinesBeforeFirstLine:_e,extraLinesBeyondLastLine:He,desiredRatio:$e,minimapLineCount:Ee}=nm.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(v/Ee>1)x=!0,I=!0,u=1,N=1,V=u/s;else{let Ai=!1,ls=u+1;if(f==="fit"){const Zi=Math.ceil((_e+v+He)*N);C&&a&&b<=t.stableFitRemainingWidth?(Ai=!0,ls=t.stableFitMaxMinimapScale):Ai=Zi>S}if(f==="fill"||Ai){x=!0;const Zi=u;N=Math.min(l*s,Math.max(1,Math.floor(1/$e))),C&&a&&b<=t.stableFitRemainingWidth&&(ls=t.stableFitMaxMinimapScale),u=Math.min(ls,Math.max(1,Math.floor(N/w))),u>Zi&&(O=Math.min(2,u/Zi)),V=u/s/O,S=Math.ceil(Math.max(Re,_e+v+He)*N),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const P=Math.floor(g*V),W=Math.min(P,Math.max(0,Math.floor((b-_-2)*V/(d+V)))+$a);let q=Math.floor(s*W);const te=q/s;q=Math.floor(q*O);const ve=h?1:2,Se=p==="left"?0:i-W-_;return{renderMinimap:ve,minimapLeft:Se,minimapWidth:W,minimapHeightIsEditorHeight:x,minimapIsSampling:I,minimapScale:u,minimapLineHeight:N,minimapCanvasInnerWidth:q,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:te,minimapCanvasOuterHeight:L}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,c=t.viewLineCount,h=e.get(137),u=h==="inherit"?e.get(136):h,g=u==="inherit"?e.get(132):u,f=e.get(135),p=t.isDominatedByLongLines,_=e.get(57),v=e.get(68).renderType!==0,b=e.get(69),C=e.get(105),w=e.get(84),S=e.get(73),L=e.get(103),x=L.verticalScrollbarSize,I=L.verticalHasArrows,N=L.arrowSize,V=L.horizontalScrollbarSize,O=e.get(43),P=e.get(110)!=="never";let W=e.get(66);O&&P&&(W+=16);let q=0;if(v){const nn=Math.max(r,b);q=Math.round(nn*l)}let te=0;_&&(te=s*t.glyphMarginDecorationLaneCount);let ve=0,Se=ve+te,Re=Se+q,_e=Re+W;const He=i-te-q-W;let $e=!1,Ee=!1,pe=-1;u==="inherit"&&p?($e=!0,Ee=!0):g==="on"||g==="bounded"?Ee=!0:g==="wordWrapColumn"&&(pe=f);const Ai=nm._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:C,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:x,viewLineCount:c,remainingWidth:He,isViewportWrapping:Ee},t.memory||new aB);Ai.renderMinimap!==0&&Ai.minimapLeft===0&&(ve+=Ai.minimapWidth,Se+=Ai.minimapWidth,Re+=Ai.minimapWidth,_e+=Ai.minimapWidth);const ls=He-Ai.minimapWidth,Zi=Math.max(1,Math.floor((ls-x-2)/a)),kt=I?N:0;return Ee&&(pe=Math.max(1,Zi),g==="bounded"&&(pe=Math.min(pe,f))),{width:i,height:n,glyphMarginLeft:ve,glyphMarginWidth:te,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:Se,lineNumbersWidth:q,decorationsLeft:Re,decorationsWidth:W,contentLeft:_e,contentWidth:ls,minimap:Ai,viewportColumn:Zi,isWordWrapMinified:$e,isViewportWrapping:Ee,wrappingColumn:pe,verticalScrollbarWidth:x,horizontalScrollbarHeight:V,overviewRuler:{top:kt,width:x,height:n-2*kt,right:0}}}}class nj extends oi{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[m("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),m("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:m("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return bi(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var Dr;(function(o){o.Off="off",o.OnCode="onCode",o.On="on"})(Dr||(Dr={}));class sj extends oi{constructor(){const e={enabled:Dr.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Dr.Off,Dr.OnCode,Dr.On],default:e.enabled,enumDescriptions:[m("editor.lightbulb.enabled.off","Disable the code action menu."),m("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),m("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:m("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:bi(e.enabled,this.defaultValue.enabled,[Dr.Off,Dr.OnCode,Dr.On])}}}class oj extends oi{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:m("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:m("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:m("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:m("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),maxLineCount:Wt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:bi(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:we(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class rj extends oi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:m("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[m("editor.inlayHints.on","Inlay hints are enabled"),m("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",ot?"Ctrl+Option":"Ctrl+Alt"),m("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",ot?"Ctrl+Option":"Ctrl+Alt"),m("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:m("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:m("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:m("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:bi(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Wt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:fs.string(t.fontFamily,this.defaultValue.fontFamily),padding:we(t.padding,this.defaultValue.padding)}}}class aj extends oi{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Wt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Wt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class lj extends Zo{constructor(){super(67,"lineHeight",Vs.lineHeight,e=>Zo.clamp(e,0,150),{markdownDescription:m("lineHeight",`Controls the line height. +var t$=Object.defineProperty,i$=Object.defineProperties;var n$=Object.getOwnPropertyDescriptors;var bC=Object.getOwnPropertySymbols,s$=Object.getPrototypeOf,fO=Object.prototype.hasOwnProperty,mO=Object.prototype.propertyIsEnumerable,o$=Reflect.get;var Yp=(o,e)=>(e=Symbol[o])?e:Symbol.for("Symbol."+o),hc=Math.pow,gO=(o,e,t)=>e in o?t$(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,K=(o,e)=>{for(var t in e||(e={}))fO.call(e,t)&&gO(o,t,e[t]);if(bC)for(var t of bC(e))mO.call(e,t)&&gO(o,t,e[t]);return o},ue=(o,e)=>i$(o,n$(e));var pO=(o,e)=>{var t={};for(var i in o)fO.call(o,i)&&e.indexOf(i)<0&&(t[i]=o[i]);if(o!=null&&bC)for(var i of bC(o))e.indexOf(i)<0&&mO.call(o,i)&&(t[i]=o[i]);return t};var _O=(o,e,t)=>o$(s$(o),t,e);var M=(o,e,t)=>new Promise((i,n)=>{var s=l=>{try{a(t.next(l))}catch(d){n(d)}},r=l=>{try{a(t.throw(l))}catch(d){n(d)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,r);a((t=t.apply(o,e)).next())}),r$=function(o,e){this[0]=o,this[1]=e};var CC=o=>{var e=o[Yp("asyncIterator")],t=!1,i,n={};return e==null?(e=o[Yp("iterator")](),i=s=>n[s]=r=>e[s](r)):(e=e.call(o),i=s=>n[s]=r=>{if(t){if(t=!1,s==="throw")throw r;return r}return t=!0,{done:!1,value:new r$(new Promise(a=>{var l=e[s](r);if(!(l instanceof Object))throw TypeError("Object expected");a(l)}),1)}}),n[Yp("iterator")]=()=>n,i("next"),"throw"in e?i("throw"):n.throw=s=>{throw s},"return"in e&&i("return"),n},Ul=(o,e,t)=>(e=o[Yp("asyncIterator")])?e.call(o):(o=o[Yp("iterator")](),e={},t=(i,n)=>(n=o[i])&&(e[i]=s=>new Promise((r,a,l)=>(s=n.call(o,s),l=s.done,Promise.resolve(s.value).then(d=>r({value:d,done:l}),a)))),t("next"),t("return"),e);import{_ as ye}from"./index-B5z15nYm.js";import{r as Fv,C as a$,n as l$,q as z9,d as d$,o as c$,w as sx,t as bc,v as ox,P as im,S as xu,T as E_,u as zo,Q as rx,a8 as vO,Y as bO,x as U9,V as h$,W as u$}from"./vue-chunks-DOWhatC1.js";/* empty css *//* empty css *//* empty css *//* empty css */import{D as CO,F as wO,t as SO,G as g$,q as f$}from"./element-plus-6v3c1uXT.js";import{_ as m$}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as p$}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css */function Vo(o,e=0){return o[o.length-(1+e)]}function _$(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function ci(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function b$(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function fI(o,e,t){if(o=o|0,o>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function LO(o){let e=0;for(let t=0;t0}function Ud(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function WR(o,e){return o.length>0?o[0]:e}function Ps(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function Oy(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function ax(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function wC(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function mI(o,e){for(const t of e)o.push(t)}function VR(o){return Array.isArray(o)?o:[o]}function w$(o,e,t){const i=K9(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=i;function n(s){return s===0}o.isNeitherLessOrGreaterThan=n,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(Wv||(Wv={}));function er(o,e){return(t,i)=>e(o(t),o(i))}function S$(...o){return(e,t)=>{for(const i of o){const n=i(e,t);if(!Wv.isNeitherLessOrGreaterThan(n))return n}return Wv.neitherLessOrGreaterThan}}const Md=(o,e)=>o-e,y$=(o,e)=>Md(o?1:0,e?1:0);function q9(o){return(e,t)=>-o(e,t)}class $d{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class _l{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new _l(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new _l(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Wv.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}_l.empty=new _l(o=>{});class Tw{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((n,s)=>t(e[n],e[s]));return new Tw(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t{e[t]=i&&typeof i=="object"?sd(i):i}),e}function k$(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(Z9.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!L$(n)&&e.push(n)}}return o}const Z9=Object.prototype.hasOwnProperty;function Y9(o,e){return pI(o,e,new Set)}function pI(o,e,t){if(Co(o))return o;const i=e(o);if(typeof i!="undefined")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(pI(s,e,t));return n}if(bs(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)Z9.call(o,s)&&(n[s]=pI(o[s],e,t));return t.delete(o),n}return o}function Fy(o,e,t=!0){return bs(o)?(bs(e)&&Object.keys(e).forEach(i=>{i in o?t&&(bs(o[i])&&bs(e[i])?Fy(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function xo(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;tfunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}let N$=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function X9(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),N$&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function m(o,e,...t){return X9(e,t)}function pt(o,e,...t){const i=X9(e,t);return{value:i,original:i}}var lx,dx;const Tf="en";let Mw=!1,Rw=!1,j1=!1,Q9=!1,zR=!1,UR=!1,J9=!1,SC,K1=Tf,kO=Tf,T$,$r;const Rd=globalThis;let hs;typeof Rd.vscode!="undefined"&&typeof Rd.vscode.process!="undefined"?hs=Rd.vscode.process:typeof process!="undefined"&&typeof((lx=process==null?void 0:process.versions)===null||lx===void 0?void 0:lx.node)=="string"&&(hs=process);const M$=typeof((dx=hs==null?void 0:hs.versions)===null||dx===void 0?void 0:dx.electron)=="string",R$=M$&&(hs==null?void 0:hs.type)==="renderer";if(typeof hs=="object"){Mw=hs.platform==="win32",Rw=hs.platform==="darwin",j1=hs.platform==="linux",j1&&hs.env.SNAP&&hs.env.SNAP_REVISION,hs.env.CI||hs.env.BUILD_ARTIFACTSTAGINGDIRECTORY,SC=Tf,K1=Tf;const o=hs.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];SC=e.locale,kO=e.osLocale,K1=t||Tf,T$=e._translationsConfigFile}catch(e){}Q9=!0}else typeof navigator=="object"&&!R$?($r=navigator.userAgent,Mw=$r.indexOf("Windows")>=0,Rw=$r.indexOf("Macintosh")>=0,UR=($r.indexOf("Macintosh")>=0||$r.indexOf("iPad")>=0||$r.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,j1=$r.indexOf("Linux")>=0,J9=($r==null?void 0:$r.indexOf("Mobi"))>=0,zR=!0,m({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),SC=Tf,K1=SC,kO=navigator.language):console.error("Unable to resolve platform.");const Fn=Mw,ot=Rw,xs=j1,ha=Q9,Uh=zR,A$=zR&&typeof Rd.importScripts=="function",P$=A$?Rd.origin:void 0,ba=UR,eB=J9,Ll=$r,O$=K1,F$=typeof Rd.postMessage=="function"&&!Rd.importScripts,tB=(()=>{if(F$){const o=[];Rd.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),Rd.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),eo=Rw||UR?2:Mw?1:3;let IO=!0,EO=!1;function iB(){if(!EO){EO=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,IO=new Uint16Array(o.buffer)[0]===513}return IO}const nB=!!(Ll&&Ll.indexOf("Chrome")>=0),B$=!!(Ll&&Ll.indexOf("Firefox")>=0),W$=!!(!nB&&Ll&&Ll.indexOf("Safari")>=0),V$=!!(Ll&&Ll.indexOf("Edg/")>=0),H$=!!(Ll&&Ll.indexOf("Android")>=0),zn={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var ht;(function(o){function e(C){return C&&typeof C=="object"&&typeof C[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(C){yield C}o.single=n;function s(C){return e(C)?C:n(C)}o.wrap=s;function r(C){return C||t}o.from=r;function*a(C){for(let w=C.length-1;w>=0;w--)yield C[w]}o.reverse=a;function l(C){return!C||C[Symbol.iterator]().next().done===!0}o.isEmpty=l;function d(C){return C[Symbol.iterator]().next().value}o.first=d;function c(C,w){for(const S of C)if(w(S))return!0;return!1}o.some=c;function h(C,w){for(const S of C)if(w(S))return S}o.find=h;function*u(C,w){for(const S of C)w(S)&&(yield S)}o.filter=u;function*g(C,w){let S=0;for(const L of C)yield w(L,S++)}o.map=g;function*f(...C){for(const w of C)yield*CC(w)}o.concat=f;function p(C,w,S){let L=S;for(const x of C)L=w(L,x);return L}o.reduce=p;function*_(C,w,S=C.length){for(w<0&&(w+=C.length),S<0?S+=C.length:S>C.length&&(S=C.length);w{n||(n=!0,this._remove(i))}}shift(){if(this._first!==$i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==$i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==$i.Undefined&&e.next!==$i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===$i.Undefined&&e.next===$i.Undefined?(this._first=$i.Undefined,this._last=$i.Undefined):e.next===$i.Undefined?(this._last=this._last.prev,this._last.next=$i.Undefined):e.prev===$i.Undefined&&(this._first=this._first.next,this._first.prev=$i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==$i.Undefined;)yield e.element,e=e.next}}const sB="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function z$(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of sB)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const $R=z$();function jR(o){let e=$R;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const oB=new Cs;oB.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Hv(o,e,t,i,n){if(e=jR(e),n||(n=ht.first(oB)),t.length>n.maxLen){let d=o-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,o+n.maxLen/2),Hv(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-s>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const h=U$(e,t,r,a);if(!h&&l||(l=h,c<=0))break;a=c}if(l){const d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function U$(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}const $a=8;class rB{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class aB{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class oi{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return By(e,t)}compute(e,t,i){return i}}class iv{constructor(e,t){this.newValue=e,this.didChange=t}}function By(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new iv(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&ci(o,e);return new iv(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=By(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new iv(o,t)}class S0{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return By(e,t)}validate(e){return this.defaultValue}}class yp{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return By(e,t)}validate(e){return typeof e=="undefined"?this.defaultValue:e}compute(e,t,i){return i}}function we(o,e){return typeof o=="undefined"?e:o==="false"?!1:!!o}class _t extends yp{constructor(e,t,i,n=void 0){typeof n!="undefined"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return we(e,this.defaultValue)}}function vu(o,e,t,i){if(typeof o=="undefined")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Wt extends yp{static clampedInt(e,t,i,n){return vu(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r!="undefined"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return Wt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function $$(o,e,t,i){if(typeof o=="undefined")return e;const n=Zo.float(o,e);return Zo.clamp(n,t,i)}class Zo extends yp{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e=="undefined")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s!="undefined"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(Zo.float(e,this.defaultValue))}}class fs extends yp{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n!="undefined"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return fs.string(e,this.defaultValue)}}function bi(o,e,t,i){return typeof o!="string"?e:i&&o in i?i[o]:t.indexOf(o)===-1?e:o}class gi extends yp{constructor(e,t,i,n,s=void 0){typeof s!="undefined"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return bi(e,this.defaultValue,this._allowedValues)}}class yC extends oi{constructor(e,t,i,n,s,r,a=void 0){typeof a!="undefined"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function j$(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class K$ extends oi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[m("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),m("accessibilitySupport.on","Optimize for usage with a Screen Reader."),m("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:m("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class q$ extends oi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:m("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:m("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:we(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:we(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function G$(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Ln;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Ln||(Ln={}));function Z$(o){switch(o){case"line":return Ln.Line;case"block":return Ln.Block;case"underline":return Ln.Underline;case"line-thin":return Ln.LineThin;case"block-outline":return Ln.BlockOutline;case"underline-thin":return Ln.UnderlineThin}}class Y$ extends S0{constructor(){super(142)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(140)&&n.push("showDeprecated"),n.join(" ")}}class X$ extends _t{constructor(){super(37,"emptySelectionClipboard",!0,{description:m("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class Q$ extends oi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:m("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[m("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),m("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),m("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:m("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[m("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),m("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),m("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:m("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:m("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:ot},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:m("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:m("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:we(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":bi(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":bi(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:we(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:we(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:we(t.loop,this.defaultValue.loop)}}}class wo extends oi{constructor(){super(51,"fontLigatures",wo.OFF,{anyOf:[{type:"boolean",description:m("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:m("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:m("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e=="undefined"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?wo.OFF:e==="true"?wo.ON:e:e?wo.ON:wo.OFF}}wo.OFF='"liga" off, "calt" off';wo.ON='"liga" on, "calt" on';class oa extends oi{constructor(){super(54,"fontVariations",oa.OFF,{anyOf:[{type:"boolean",description:m("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:m("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:m("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e=="undefined"?this.defaultValue:typeof e=="string"?e==="false"?oa.OFF:e==="true"?oa.TRANSLATE:e:e?oa.TRANSLATE:oa.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}oa.OFF="normal";oa.TRANSLATE="translate";class J$ extends S0{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class ej extends yp{constructor(){super(52,"fontSize",Vs.fontSize,{type:"number",minimum:6,maximum:100,default:Vs.fontSize,description:m("fontSize","Controls the font size in pixels.")})}validate(e){const t=Zo.float(e,this.defaultValue);return t===0?Vs.fontSize:Zo.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class tl extends oi{constructor(){super(53,"fontWeight",Vs.fontWeight,{anyOf:[{type:"number",minimum:tl.MINIMUM_VALUE,maximum:tl.MAXIMUM_VALUE,errorMessage:m("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:tl.SUGGESTION_VALUES}],default:Vs.fontWeight,description:m("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Wt.clampedInt(e,Vs.fontWeight,tl.MINIMUM_VALUE,tl.MAXIMUM_VALUE))}}tl.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];tl.MINIMUM_VALUE=1;tl.MAXIMUM_VALUE=1e3;class tj extends oi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[m("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),m("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),m("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:m("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":K({description:m("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":K({description:m("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":K({description:m("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":K({description:m("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":K({description:m("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:m("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:m("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:m("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:m("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:m("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:bi(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:bi(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:bi(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:bi(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:bi(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:bi(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:fs.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:fs.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:fs.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:fs.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:fs.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class ij extends oi{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:m("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:m("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:m("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:m("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:m("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),delay:Wt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:we(t.sticky,this.defaultValue.sticky),hidingDelay:Wt.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:we(t.above,this.defaultValue.above)}}}class nm extends S0{constructor(){super(145)}compute(e,t,i){return nm.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,p=e.minimap.side,_=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,C=e.isViewportWrapping,w=h?2:3;let S=Math.floor(s*n);const L=S/s;let x=!1,I=!1,N=w*u,V=u/s,O=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:Re,extraLinesBeforeFirstLine:_e,extraLinesBeyondLastLine:He,desiredRatio:$e,minimapLineCount:Ee}=nm.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(v/Ee>1)x=!0,I=!0,u=1,N=1,V=u/s;else{let Ai=!1,ls=u+1;if(f==="fit"){const Zi=Math.ceil((_e+v+He)*N);C&&a&&b<=t.stableFitRemainingWidth?(Ai=!0,ls=t.stableFitMaxMinimapScale):Ai=Zi>S}if(f==="fill"||Ai){x=!0;const Zi=u;N=Math.min(l*s,Math.max(1,Math.floor(1/$e))),C&&a&&b<=t.stableFitRemainingWidth&&(ls=t.stableFitMaxMinimapScale),u=Math.min(ls,Math.max(1,Math.floor(N/w))),u>Zi&&(O=Math.min(2,u/Zi)),V=u/s/O,S=Math.ceil(Math.max(Re,_e+v+He)*N),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const P=Math.floor(g*V),W=Math.min(P,Math.max(0,Math.floor((b-_-2)*V/(d+V)))+$a);let q=Math.floor(s*W);const te=q/s;q=Math.floor(q*O);const ve=h?1:2,Se=p==="left"?0:i-W-_;return{renderMinimap:ve,minimapLeft:Se,minimapWidth:W,minimapHeightIsEditorHeight:x,minimapIsSampling:I,minimapScale:u,minimapLineHeight:N,minimapCanvasInnerWidth:q,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:te,minimapCanvasOuterHeight:L}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,c=t.viewLineCount,h=e.get(137),u=h==="inherit"?e.get(136):h,g=u==="inherit"?e.get(132):u,f=e.get(135),p=t.isDominatedByLongLines,_=e.get(57),v=e.get(68).renderType!==0,b=e.get(69),C=e.get(105),w=e.get(84),S=e.get(73),L=e.get(103),x=L.verticalScrollbarSize,I=L.verticalHasArrows,N=L.arrowSize,V=L.horizontalScrollbarSize,O=e.get(43),P=e.get(110)!=="never";let W=e.get(66);O&&P&&(W+=16);let q=0;if(v){const nn=Math.max(r,b);q=Math.round(nn*l)}let te=0;_&&(te=s*t.glyphMarginDecorationLaneCount);let ve=0,Se=ve+te,Re=Se+q,_e=Re+W;const He=i-te-q-W;let $e=!1,Ee=!1,pe=-1;u==="inherit"&&p?($e=!0,Ee=!0):g==="on"||g==="bounded"?Ee=!0:g==="wordWrapColumn"&&(pe=f);const Ai=nm._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:C,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:x,viewLineCount:c,remainingWidth:He,isViewportWrapping:Ee},t.memory||new aB);Ai.renderMinimap!==0&&Ai.minimapLeft===0&&(ve+=Ai.minimapWidth,Se+=Ai.minimapWidth,Re+=Ai.minimapWidth,_e+=Ai.minimapWidth);const ls=He-Ai.minimapWidth,Zi=Math.max(1,Math.floor((ls-x-2)/a)),kt=I?N:0;return Ee&&(pe=Math.max(1,Zi),g==="bounded"&&(pe=Math.min(pe,f))),{width:i,height:n,glyphMarginLeft:ve,glyphMarginWidth:te,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:Se,lineNumbersWidth:q,decorationsLeft:Re,decorationsWidth:W,contentLeft:_e,contentWidth:ls,minimap:Ai,viewportColumn:Zi,isWordWrapMinified:$e,isViewportWrapping:Ee,wrappingColumn:pe,verticalScrollbarWidth:x,horizontalScrollbarHeight:V,overviewRuler:{top:kt,width:x,height:n-2*kt,right:0}}}}class nj extends oi{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[m("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),m("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:m("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return bi(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var Dr;(function(o){o.Off="off",o.OnCode="onCode",o.On="on"})(Dr||(Dr={}));class sj extends oi{constructor(){const e={enabled:Dr.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Dr.Off,Dr.OnCode,Dr.On],default:e.enabled,enumDescriptions:[m("editor.lightbulb.enabled.off","Disable the code action menu."),m("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),m("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:m("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:bi(e.enabled,this.defaultValue.enabled,[Dr.Off,Dr.OnCode,Dr.On])}}}class oj extends oi{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:m("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:m("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:m("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:m("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),maxLineCount:Wt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:bi(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:we(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class rj extends oi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:m("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[m("editor.inlayHints.on","Inlay hints are enabled"),m("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",ot?"Ctrl+Option":"Ctrl+Alt"),m("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",ot?"Ctrl+Option":"Ctrl+Alt"),m("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:m("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:m("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:m("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:bi(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Wt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:fs.string(t.fontFamily,this.defaultValue.fontFamily),padding:we(t.padding,this.defaultValue.padding)}}}class aj extends oi{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Wt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Wt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class lj extends Zo{constructor(){super(67,"lineHeight",Vs.lineHeight,e=>Zo.clamp(e,0,150),{markdownDescription:m("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class dj extends oi{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:m("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:m("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[m("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),m("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),m("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:m("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:m("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:m("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:m("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:m("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:m("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:m("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:m("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:m("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")}})}validate(e){var t;if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:we(i.enabled,this.defaultValue.enabled),autohide:we(i.autohide,this.defaultValue.autohide),size:bi(i.size,this.defaultValue.size,["proportional","fill","fit"]),side:bi(i.side,this.defaultValue.side,["right","left"]),showSlider:bi(i.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:we(i.renderCharacters,this.defaultValue.renderCharacters),scale:Wt.clampedInt(i.scale,1,1,3),maxColumn:Wt.clampedInt(i.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:we(i.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:we(i.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:Zo.clamp((t=i.sectionHeaderFontSize)!==null&&t!==void 0?t:this.defaultValue.sectionHeaderFontSize,4,32)}}}function cj(o){return o==="ctrlCmd"?ot?"metaKey":"ctrlKey":"altKey"}class hj extends oi{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:m("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:m("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Wt.clampedInt(t.top,0,0,1e3),bottom:Wt.clampedInt(t.bottom,0,0,1e3)}}}class uj extends oi{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:m("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:m("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),cycle:we(t.cycle,this.defaultValue.cycle)}}}class gj extends S0{constructor(){super(143)}compute(e,t,i){return e.pixelRatio}}class fj extends oi{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[m("on","Quick suggestions show inside the suggest widget"),m("inline","Quick suggestions show as ghost text"),m("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:m("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:m("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:m("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:m("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const d=e?"on":"off";return{comments:d,strings:d,other:d}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=bi(t,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=bi(i,this.defaultValue.comments,s),typeof n=="boolean"?l=n?"on":"off":l=bi(n,this.defaultValue.strings,s),{other:r,comments:a,strings:l}}}class mj extends oi{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[m("lineNumbers.off","Line numbers are not rendered."),m("lineNumbers.on","Line numbers are rendered as absolute number."),m("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),m("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:m("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e!="undefined"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function Aw(o){const e=o.get(98);return e==="editable"?o.get(91):e!=="on"}class pj extends oi{constructor(){const e=[],t={type:"number",description:m("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:m("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:m("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:Wt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:Wt.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}class _j extends oi{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function NO(o,e){if(typeof o!="string")return e;switch(o){case"hidden":return 2;case"visible":return 3;default:return 1}}let vj=class extends oi{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),m("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),m("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:m("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[m("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),m("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),m("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:m("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:m("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:m("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:m("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:m("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=Wt.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=Wt.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Wt.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:NO(t.vertical,this.defaultValue.vertical),horizontal:NO(t.horizontal,this.defaultValue.horizontal),useShadows:we(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:we(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:we(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:we(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:we(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Wt.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:Wt.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:we(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:we(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}};const fo="inUntrustedWorkspace",Fs={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class bj extends oi{constructor(){const e={nonBasicASCII:fo,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:fo,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[Fs.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,fo],default:e.nonBasicASCII,description:m("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Fs.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:m("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Fs.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:m("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Fs.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,fo],default:e.includeComments,description:m("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[Fs.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,fo],default:e.includeStrings,description:m("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Fs.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:m("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Fs.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:m("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(xo(e.allowedCharacters,t.allowedCharacters)||(e=ue(K({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&e&&(xo(e.allowedLocales,t.allowedLocales)||(e=ue(K({},e),{allowedLocales:t.allowedLocales}),i=!0));const n=super.applyUpdate(e,t);return i?new iv(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:sm(t.nonBasicASCII,fo,[!0,!1,fo]),invisibleCharacters:we(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:we(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:sm(t.includeComments,fo,[!0,!1,fo]),includeStrings:sm(t.includeStrings,fo,[!0,!1,fo]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,s]of Object.entries(e))s===!0&&(i[n]=!0);return i}}class Cj extends oi{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:m("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[m("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),m("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),m("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:m("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:m("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:m("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),mode:bi(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:bi(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:we(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:we(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:fs.string(t.fontFamily,this.defaultValue.fontFamily)}}}class wj extends oi{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:m("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[m("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),m("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),m("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:m("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:m("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:m("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),showToolbar:bi(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:fs.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:we(t.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:we(t.backgroundColoring,this.defaultValue.backgroundColoring)}}}class Sj extends oi{constructor(){const e={enabled:zn.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:zn.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:m("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:m("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:we(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class yj extends oi{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m("editor.guides.bracketPairs.true","Enables bracket pair guides."),m("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),m("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:m("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[m("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),m("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),m("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:m("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:m("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:m("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[m("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),m("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),m("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:m("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:sm(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:sm(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:we(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:we(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:sm(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function sm(o,e,t){const i=t.indexOf(o);return i===-1?e:t[i]}class Lj extends oi{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[m("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),m("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:m("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:m("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:m("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:m("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[m("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),m("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),m("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),m("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:m("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:m("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:m("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:m("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:m("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:m("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:m("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:m("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:m("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:bi(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:we(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:we(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:we(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:we(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:bi(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:we(t.showIcons,this.defaultValue.showIcons),showStatusBar:we(t.showStatusBar,this.defaultValue.showStatusBar),preview:we(t.preview,this.defaultValue.preview),previewMode:bi(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:we(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:we(t.showMethods,this.defaultValue.showMethods),showFunctions:we(t.showFunctions,this.defaultValue.showFunctions),showConstructors:we(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:we(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:we(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:we(t.showFields,this.defaultValue.showFields),showVariables:we(t.showVariables,this.defaultValue.showVariables),showClasses:we(t.showClasses,this.defaultValue.showClasses),showStructs:we(t.showStructs,this.defaultValue.showStructs),showInterfaces:we(t.showInterfaces,this.defaultValue.showInterfaces),showModules:we(t.showModules,this.defaultValue.showModules),showProperties:we(t.showProperties,this.defaultValue.showProperties),showEvents:we(t.showEvents,this.defaultValue.showEvents),showOperators:we(t.showOperators,this.defaultValue.showOperators),showUnits:we(t.showUnits,this.defaultValue.showUnits),showValues:we(t.showValues,this.defaultValue.showValues),showConstants:we(t.showConstants,this.defaultValue.showConstants),showEnums:we(t.showEnums,this.defaultValue.showEnums),showEnumMembers:we(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:we(t.showKeywords,this.defaultValue.showKeywords),showWords:we(t.showWords,this.defaultValue.showWords),showColors:we(t.showColors,this.defaultValue.showColors),showFiles:we(t.showFiles,this.defaultValue.showFiles),showReferences:we(t.showReferences,this.defaultValue.showReferences),showFolders:we(t.showFolders,this.defaultValue.showFolders),showTypeParameters:we(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:we(t.showSnippets,this.defaultValue.showSnippets),showUsers:we(t.showUsers,this.defaultValue.showUsers),showIssues:we(t.showIssues,this.defaultValue.showIssues)}}}class Dj extends oi{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:m("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:m("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:we(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:we(e.selectSubwords,this.defaultValue.selectSubwords)}}}class xj extends oi{constructor(){const e=[];super(130,"wordSegmenterLocales",e,{anyOf:[{description:m("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:m("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="string")try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch(n){}return t}return this.defaultValue}}class kj extends oi{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[m("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),m("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),m("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),m("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:m("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class Ij extends S0{constructor(){super(146)}compute(e,t,i){const n=t.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class Ej extends oi{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:m("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:m("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[m("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),m("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),showDropSelector:bi(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class Nj extends oi{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:m("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:m("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[m("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),m("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),showPasteSelector:bi(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const Tj="Consolas, 'Courier New', monospace",Mj="Menlo, Monaco, 'Courier New', monospace",Rj="'Droid Sans Mono', 'monospace', monospace",Vs={fontFamily:ot?Mj:xs?Rj:Tj,fontWeight:"normal",fontSize:ot?12:14,lineHeight:0,letterSpacing:0},Mf=[];function se(o){return Mf[o.id]=o,o}const Ia={acceptSuggestionOnCommitCharacter:se(new _t(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:m("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:se(new gi(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",m("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:m("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:se(new K$),accessibilityPageSize:se(new Wt(3,"accessibilityPageSize",10,1,1073741824,{description:m("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:se(new fs(4,"ariaLabel",m("editorViewAccessibleLabel","Editor content"))),ariaRequired:se(new _t(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:se(new _t(8,"screenReaderAnnounceInlineSuggestion",!0,{description:m("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:se(new gi(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),m("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:m("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:se(new gi(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),m("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:m("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:se(new gi(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",m("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:m("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:se(new gi(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",m("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:m("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:se(new gi(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",m("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),m("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:m("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:se(new yC(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],j$,{enumDescriptions:[m("editor.autoIndent.none","The editor will not insert indentation automatically."),m("editor.autoIndent.keep","The editor will keep the current line's indentation."),m("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),m("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),m("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:m("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:se(new _t(13,"automaticLayout",!1)),autoSurround:se(new gi(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[m("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),m("editor.autoSurround.quotes","Surround with quotes but not brackets."),m("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:m("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:se(new Sj),bracketPairGuides:se(new yj),stickyTabStops:se(new _t(116,"stickyTabStops",!1,{description:m("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:se(new _t(17,"codeLens",!0,{description:m("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:se(new fs(18,"codeLensFontFamily","",{description:m("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:se(new Wt(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:m("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:se(new _t(20,"colorDecorators",!0,{description:m("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:se(new gi(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[m("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),m("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),m("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:m("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:se(new Wt(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:m("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:se(new _t(22,"columnSelection",!1,{description:m("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:se(new q$),contextmenu:se(new _t(24,"contextmenu",!0)),copyWithSyntaxHighlighting:se(new _t(25,"copyWithSyntaxHighlighting",!0,{description:m("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:se(new yC(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],G$,{description:m("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:se(new gi(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[m("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),m("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),m("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:m("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:se(new yC(28,"cursorStyle",Ln.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],Z$,{description:m("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:se(new Wt(29,"cursorSurroundingLines",0,0,1073741824,{description:m("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:se(new gi(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[m("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),m("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:m("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:se(new Wt(31,"cursorWidth",0,0,1073741824,{markdownDescription:m("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:se(new _t(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:se(new _t(33,"disableMonospaceOptimizations",!1)),domReadOnly:se(new _t(34,"domReadOnly",!1)),dragAndDrop:se(new _t(35,"dragAndDrop",!0,{description:m("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:se(new X$),dropIntoEditor:se(new Ej),stickyScroll:se(new oj),experimentalWhitespaceRendering:se(new gi(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[m("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),m("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),m("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:m("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:se(new fs(39,"extraEditorClassName","")),fastScrollSensitivity:se(new Zo(40,"fastScrollSensitivity",5,o=>o<=0?5:o,{markdownDescription:m("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:se(new Q$),fixedOverflowWidgets:se(new _t(42,"fixedOverflowWidgets",!1)),folding:se(new _t(43,"folding",!0,{description:m("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:se(new gi(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[m("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),m("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:m("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:se(new _t(45,"foldingHighlight",!0,{description:m("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:se(new _t(46,"foldingImportsByDefault",!1,{description:m("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:se(new Wt(47,"foldingMaximumRegions",5e3,10,65e3,{description:m("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:se(new _t(48,"unfoldOnClickAfterEndOfLine",!1,{description:m("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:se(new fs(49,"fontFamily",Vs.fontFamily,{description:m("fontFamily","Controls the font family.")})),fontInfo:se(new J$),fontLigatures2:se(new wo),fontSize:se(new ej),fontWeight:se(new tl),fontVariations:se(new oa),formatOnPaste:se(new _t(55,"formatOnPaste",!1,{description:m("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:se(new _t(56,"formatOnType",!1,{description:m("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:se(new _t(57,"glyphMargin",!0,{description:m("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:se(new tj),hideCursorInOverviewRuler:se(new _t(59,"hideCursorInOverviewRuler",!1,{description:m("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:se(new ij),inDiffEditor:se(new _t(61,"inDiffEditor",!1)),letterSpacing:se(new Zo(64,"letterSpacing",Vs.letterSpacing,o=>Zo.clamp(o,-5,20),{description:m("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:se(new sj),lineDecorationsWidth:se(new aj),lineHeight:se(new lj),lineNumbers:se(new mj),lineNumbersMinChars:se(new Wt(69,"lineNumbersMinChars",5,1,300)),linkedEditing:se(new _t(70,"linkedEditing",!1,{description:m("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:se(new _t(71,"links",!0,{description:m("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:se(new gi(72,"matchBrackets","always",["always","near","never"],{description:m("matchBrackets","Highlight matching brackets.")})),minimap:se(new dj),mouseStyle:se(new gi(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:se(new Zo(75,"mouseWheelScrollSensitivity",1,o=>o===0?1:o,{markdownDescription:m("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:se(new _t(76,"mouseWheelZoom",!1,{markdownDescription:ot?m("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):m("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:se(new _t(77,"multiCursorMergeOverlapping",!0,{description:m("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:se(new yC(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],cj,{markdownEnumDescriptions:[m("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),m("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:m({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:se(new gi(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[m("multiCursorPaste.spread","Each cursor pastes a single line of the text."),m("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:m("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:se(new Wt(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:m("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:se(new gi(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[m("occurrencesHighlight.off","Does not highlight occurrences."),m("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),m("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:m("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:se(new _t(82,"overviewRulerBorder",!0,{description:m("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:se(new Wt(83,"overviewRulerLanes",3,0,3)),padding:se(new hj),pasteAs:se(new Nj),parameterHints:se(new uj),peekWidgetDefaultFocus:se(new gi(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[m("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),m("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:m("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:se(new _t(88,"definitionLinkOpensInPeek",!1,{description:m("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:se(new fj),quickSuggestionsDelay:se(new Wt(90,"quickSuggestionsDelay",10,0,1073741824,{description:m("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:se(new _t(91,"readOnly",!1)),readOnlyMessage:se(new _j),renameOnType:se(new _t(93,"renameOnType",!1,{description:m("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:m("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:se(new _t(94,"renderControlCharacters",!0,{description:m("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:se(new gi(95,"renderFinalNewline",xs?"dimmed":"on",["off","on","dimmed"],{description:m("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:se(new gi(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",m("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:m("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:se(new _t(97,"renderLineHighlightOnlyWhenFocus",!1,{description:m("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:se(new gi(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:se(new gi(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",m("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),m("renderWhitespace.selection","Render whitespace characters only on selected text."),m("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:m("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:se(new Wt(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:se(new _t(101,"roundedSelection",!0,{description:m("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:se(new pj),scrollbar:se(new vj),scrollBeyondLastColumn:se(new Wt(104,"scrollBeyondLastColumn",4,0,1073741824,{description:m("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:se(new _t(105,"scrollBeyondLastLine",!0,{description:m("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:se(new _t(106,"scrollPredominantAxis",!0,{description:m("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:se(new _t(107,"selectionClipboard",!0,{description:m("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:xs})),selectionHighlight:se(new _t(108,"selectionHighlight",!0,{description:m("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:se(new _t(109,"selectOnLineNumbers",!0)),showFoldingControls:se(new gi(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[m("showFoldingControls.always","Always show the folding controls."),m("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),m("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:m("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:se(new _t(111,"showUnused",!0,{description:m("showUnused","Controls fading out of unused code.")})),showDeprecated:se(new _t(140,"showDeprecated",!0,{description:m("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:se(new rj),snippetSuggestions:se(new gi(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[m("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),m("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),m("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),m("snippetSuggestions.none","Do not show snippet suggestions.")],description:m("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:se(new Dj),smoothScrolling:se(new _t(114,"smoothScrolling",!1,{description:m("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:se(new Wt(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:se(new Lj),inlineSuggest:se(new Cj),inlineEdit:se(new wj),inlineCompletionsAccessibilityVerbose:se(new _t(149,"inlineCompletionsAccessibilityVerbose",!1,{description:m("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:se(new Wt(119,"suggestFontSize",0,0,1e3,{markdownDescription:m("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:se(new Wt(120,"suggestLineHeight",0,0,1e3,{markdownDescription:m("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:se(new _t(121,"suggestOnTriggerCharacters",!0,{description:m("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:se(new gi(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[m("suggestSelection.first","Always select the first suggestion."),m("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),m("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:m("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:se(new gi(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[m("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),m("tabCompletion.off","Disable tab completions."),m("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:m("tabCompletion","Enables tab completions.")})),tabIndex:se(new Wt(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:se(new bj),unusualLineTerminators:se(new gi(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[m("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),m("unusualLineTerminators.off","Unusual line terminators are ignored."),m("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:m("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:se(new _t(127,"useShadowDOM",!0)),useTabStops:se(new _t(128,"useTabStops",!0,{description:m("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:se(new gi(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[m("wordBreak.normal","Use the default line break rule."),m("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:m("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:se(new xj),wordSeparators:se(new fs(131,"wordSeparators",sB,{description:m("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:se(new gi(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[m("wordWrap.off","Lines will never wrap."),m("wordWrap.on","Lines will wrap at the viewport width."),m({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),m({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:m({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:se(new fs(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:se(new fs(134,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:se(new Wt(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:m({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:se(new gi(136,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:se(new gi(137,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:se(new Y$),defaultColorDecorators:se(new _t(147,"defaultColorDecorators",!1,{markdownDescription:m("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:se(new gj),tabFocusMode:se(new _t(144,"tabFocusMode",!1,{markdownDescription:m("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:se(new nm),wrappingInfo:se(new Ij),wrappingIndent:se(new kj),wrappingStrategy:se(new nj)};class Aj{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Rm.isErrorNoTelemetry(e)?new Rm(e.message+` @@ -656,22 +656,22 @@ ${e.toString()}`}}class iy{constructor(e=new z0,t=!1,i,n=yce){var s;this._servic * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Fge=Object.defineProperty,Bge=Object.getOwnPropertyDescriptor,Wge=Object.getOwnPropertyNames,Vge=Object.prototype.hasOwnProperty,o7=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wge(e))!Vge.call(o,n)&&n!==t&&Fge(o,n,{get:()=>e[n],enumerable:!(i=Bge(e,n))||i.enumerable});return o},Hge=(o,e,t)=>(o7(o,e,"default"),t&&o7(t,e,"default")),G_={};Hge(G_,sD);var tH={},Ok={},zge=class iH{static getOrCreate(e){return Ok[e]||(Ok[e]=new iH(e)),Ok[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,tH[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function Ie(o){const e=o.id;tH[e]=o,G_.languages.register(o);const t=zge.getOrCreate(e);G_.languages.registerTokensProviderFactory(e,{create:()=>M(this,null,function*(){return(yield t.load()).language})}),G_.languages.onLanguageEncountered(e,()=>M(this,null,function*(){const i=yield t.load();G_.languages.setLanguageConfiguration(e,i.conf)}))}Ie({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>ye(()=>import("./abap-D_AlL1At.js"),__vite__mapDeps([]))});Ie({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>ye(()=>import("./apex-CmxtnpeZ.js"),__vite__mapDeps([]))});Ie({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>ye(()=>import("./azcli-C2vBA31i.js"),__vite__mapDeps([]))});Ie({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>ye(()=>import("./bat-BAKJxmMu.js"),__vite__mapDeps([]))});Ie({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>ye(()=>import("./bicep-DKtM9ezo.js"),__vite__mapDeps([]))});Ie({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>ye(()=>import("./cameligo-DzurU_SJ.js"),__vite__mapDeps([]))});Ie({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>ye(()=>import("./clojure-COTUvZem.js"),__vite__mapDeps([]))});Ie({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>ye(()=>import("./coffee-Bux12N06.js"),__vite__mapDeps([]))});Ie({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>ye(()=>import("./cpp-DkOsvrPi.js"),__vite__mapDeps([]))});Ie({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>ye(()=>import("./cpp-DkOsvrPi.js"),__vite__mapDeps([]))});Ie({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>ye(()=>import("./csharp-DKqJBhJO.js"),__vite__mapDeps([]))});Ie({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>ye(()=>import("./csp-CqIl6iSx.js"),__vite__mapDeps([]))});Ie({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>ye(()=>import("./css-CGpWsIrG.js"),__vite__mapDeps([]))});Ie({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>ye(()=>import("./cypher-C0NOBBnI.js"),__vite__mapDeps([]))});Ie({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>ye(()=>import("./dart-DRkxg4lA.js"),__vite__mapDeps([]))});Ie({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>ye(()=>import("./dockerfile-BgOGWaCf.js"),__vite__mapDeps([]))});Ie({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>ye(()=>import("./ecl-DnJ8rW3U.js"),__vite__mapDeps([]))});Ie({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>ye(()=>import("./elixir-B7YTO__p.js"),__vite__mapDeps([]))});Ie({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>ye(()=>import("./flow9-wLXmeo6b.js"),__vite__mapDeps([]))});Ie({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>ye(()=>import("./fsharp-CEbfBfAU.js"),__vite__mapDeps([]))});Ie({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>ye(()=>import("./freemarker2-83QMiYqq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagAutoInterpolationDollar)});Ie({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>ye(()=>import("./freemarker2-83QMiYqq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagAngleInterpolationDollar)});Ie({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>ye(()=>import("./freemarker2-83QMiYqq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagBracketInterpolationDollar)});Ie({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>ye(()=>import("./freemarker2-83QMiYqq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagAngleInterpolationBracket)});Ie({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>ye(()=>import("./freemarker2-83QMiYqq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagBracketInterpolationBracket)});Ie({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>ye(()=>import("./freemarker2-83QMiYqq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagAutoInterpolationDollar)});Ie({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>ye(()=>import("./freemarker2-83QMiYqq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagAutoInterpolationBracket)});Ie({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>ye(()=>import("./go-CQdGEiqo.js"),__vite__mapDeps([]))});Ie({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>ye(()=>import("./graphql-uScX0mLr.js"),__vite__mapDeps([]))});Ie({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>ye(()=>import("./handlebars-DwojGJVl.js"),__vite__mapDeps([15,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>ye(()=>import("./hcl-CLUKkYLV.js"),__vite__mapDeps([]))});Ie({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>ye(()=>import("./html-BC731uhf.js"),__vite__mapDeps([16,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>ye(()=>import("./ini-yF59P7jx.js"),__vite__mapDeps([]))});Ie({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>ye(()=>import("./java-B4nVP7zA.js"),__vite__mapDeps([]))});Ie({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>ye(()=>import("./javascript-C7292Sh6.js"),__vite__mapDeps([17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>ye(()=>import("./julia-BuzzKf8T.js"),__vite__mapDeps([]))});Ie({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>ye(()=>import("./kotlin-C3T34NxZ.js"),__vite__mapDeps([]))});Ie({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>ye(()=>import("./less-_0mhvbjD.js"),__vite__mapDeps([]))});Ie({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>ye(()=>import("./lexon-BMz0APkk.js"),__vite__mapDeps([]))});Ie({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>ye(()=>import("./lua-FbLRz07w.js"),__vite__mapDeps([]))});Ie({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>ye(()=>import("./liquid-B1IR3wXj.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>ye(()=>import("./m3-F3MR2vpL.js"),__vite__mapDeps([]))});Ie({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>ye(()=>import("./markdown-BpaYHsZh.js"),__vite__mapDeps([]))});Ie({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>ye(()=>import("./mdx-DIkCJeLb.js"),__vite__mapDeps([20,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>ye(()=>import("./mips-D2BB_tA0.js"),__vite__mapDeps([]))});Ie({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>ye(()=>import("./msdax-Dbqax-4H.js"),__vite__mapDeps([]))});Ie({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>ye(()=>import("./mysql-BlazkCxF.js"),__vite__mapDeps([]))});Ie({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>ye(()=>import("./objective-c-DBolmLrR.js"),__vite__mapDeps([]))});Ie({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>ye(()=>import("./pascal-C4E8LjYg.js"),__vite__mapDeps([]))});Ie({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>ye(()=>import("./pascaligo-Z17T2ccY.js"),__vite__mapDeps([]))});Ie({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>ye(()=>import("./perl-COEbQRNw.js"),__vite__mapDeps([]))});Ie({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>ye(()=>import("./pgsql-Dy_Aa0h1.js"),__vite__mapDeps([]))});Ie({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>ye(()=>import("./php-DZgQod0H.js"),__vite__mapDeps([]))});Ie({id:"pla",extensions:[".pla"],loader:()=>ye(()=>import("./pla-Cp8kinq6.js"),__vite__mapDeps([]))});Ie({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>ye(()=>import("./postiats-Cc2rLWR_.js"),__vite__mapDeps([]))});Ie({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>ye(()=>import("./powerquery-0Oii_npw.js"),__vite__mapDeps([]))});Ie({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>ye(()=>import("./powershell-DUtNlkbn.js"),__vite__mapDeps([]))});Ie({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>ye(()=>import("./protobuf-YVfST0Lp.js"),__vite__mapDeps([]))});Ie({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>ye(()=>import("./pug-Cof0Wj-Z.js"),__vite__mapDeps([]))});Ie({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>ye(()=>import("./python-Zo-tP2hE.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>ye(()=>import("./qsharp-iGC6f2xL.js"),__vite__mapDeps([]))});Ie({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>ye(()=>import("./r-DgOh-GpK.js"),__vite__mapDeps([]))});Ie({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>ye(()=>import("./razor-DF_V0cbB.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>ye(()=>import("./redis-CUjHknjG.js"),__vite__mapDeps([]))});Ie({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>ye(()=>import("./redshift-DpiWUl_b.js"),__vite__mapDeps([]))});Ie({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>ye(()=>import("./restructuredtext-DoYnpR8y.js"),__vite__mapDeps([]))});Ie({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>ye(()=>import("./ruby-8Ngq79DM.js"),__vite__mapDeps([]))});Ie({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>ye(()=>import("./rust-E66qEhVJ.js"),__vite__mapDeps([]))});Ie({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>ye(()=>import("./sb-NROjXV9s.js"),__vite__mapDeps([]))});Ie({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>ye(()=>import("./scala-DNKydVIG.js"),__vite__mapDeps([]))});Ie({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>ye(()=>import("./scheme-gDjqwtwY.js"),__vite__mapDeps([]))});Ie({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>ye(()=>import("./scss-Nrac8q0b.js"),__vite__mapDeps([]))});Ie({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>ye(()=>import("./shell-CHwqnE9N.js"),__vite__mapDeps([]))});Ie({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>ye(()=>import("./solidity-DzvweBVM.js"),__vite__mapDeps([]))});Ie({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>ye(()=>import("./sophia-LwATRHaW.js"),__vite__mapDeps([]))});Ie({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>ye(()=>import("./sparql-5hUL7dXb.js"),__vite__mapDeps([]))});Ie({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>ye(()=>import("./sql-CVxjL13O.js"),__vite__mapDeps([]))});Ie({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>ye(()=>import("./st-Cc39erT-.js"),__vite__mapDeps([]))});Ie({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>ye(()=>import("./swift-C8fNz67c.js"),__vite__mapDeps([]))});Ie({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>ye(()=>import("./systemverilog-BFUzWeNg.js"),__vite__mapDeps([]))});Ie({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>ye(()=>import("./systemverilog-BFUzWeNg.js"),__vite__mapDeps([]))});Ie({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>ye(()=>import("./tcl-CtpYBwaD.js"),__vite__mapDeps([]))});Ie({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>ye(()=>import("./twig-CbPmbPKL.js"),__vite__mapDeps([]))});Ie({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>ye(()=>import("./typescript-CWsNTno6.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>ye(()=>import("./vb-DqkExfjG.js"),__vite__mapDeps([]))});Ie({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>ye(()=>import("./wgsl-BkzIWQci.js"),__vite__mapDeps([]))});Ie({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\ye(()=>import("./xml-V1f6_0Ts.js"),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>ye(()=>import("./yaml-5FzXFp3g.js"),__vite__mapDeps([24,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var Fge=Object.defineProperty,Bge=Object.getOwnPropertyDescriptor,Wge=Object.getOwnPropertyNames,Vge=Object.prototype.hasOwnProperty,o7=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wge(e))!Vge.call(o,n)&&n!==t&&Fge(o,n,{get:()=>e[n],enumerable:!(i=Bge(e,n))||i.enumerable});return o},Hge=(o,e,t)=>(o7(o,e,"default"),t&&o7(t,e,"default")),G_={};Hge(G_,sD);var tH={},Ok={},zge=class iH{static getOrCreate(e){return Ok[e]||(Ok[e]=new iH(e)),Ok[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,tH[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function Ie(o){const e=o.id;tH[e]=o,G_.languages.register(o);const t=zge.getOrCreate(e);G_.languages.registerTokensProviderFactory(e,{create:()=>M(this,null,function*(){return(yield t.load()).language})}),G_.languages.onLanguageEncountered(e,()=>M(this,null,function*(){const i=yield t.load();G_.languages.setLanguageConfiguration(e,i.conf)}))}Ie({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>ye(()=>import("./abap-D_AlL1At.js"),__vite__mapDeps([]))});Ie({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>ye(()=>import("./apex-CmxtnpeZ.js"),__vite__mapDeps([]))});Ie({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>ye(()=>import("./azcli-C2vBA31i.js"),__vite__mapDeps([]))});Ie({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>ye(()=>import("./bat-BAKJxmMu.js"),__vite__mapDeps([]))});Ie({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>ye(()=>import("./bicep-DKtM9ezo.js"),__vite__mapDeps([]))});Ie({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>ye(()=>import("./cameligo-DzurU_SJ.js"),__vite__mapDeps([]))});Ie({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>ye(()=>import("./clojure-COTUvZem.js"),__vite__mapDeps([]))});Ie({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>ye(()=>import("./coffee-Bux12N06.js"),__vite__mapDeps([]))});Ie({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>ye(()=>import("./cpp-DkOsvrPi.js"),__vite__mapDeps([]))});Ie({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>ye(()=>import("./cpp-DkOsvrPi.js"),__vite__mapDeps([]))});Ie({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>ye(()=>import("./csharp-DKqJBhJO.js"),__vite__mapDeps([]))});Ie({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>ye(()=>import("./csp-CqIl6iSx.js"),__vite__mapDeps([]))});Ie({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>ye(()=>import("./css-CGpWsIrG.js"),__vite__mapDeps([]))});Ie({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>ye(()=>import("./cypher-C0NOBBnI.js"),__vite__mapDeps([]))});Ie({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>ye(()=>import("./dart-DRkxg4lA.js"),__vite__mapDeps([]))});Ie({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>ye(()=>import("./dockerfile-BgOGWaCf.js"),__vite__mapDeps([]))});Ie({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>ye(()=>import("./ecl-DnJ8rW3U.js"),__vite__mapDeps([]))});Ie({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>ye(()=>import("./elixir-B7YTO__p.js"),__vite__mapDeps([]))});Ie({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>ye(()=>import("./flow9-wLXmeo6b.js"),__vite__mapDeps([]))});Ie({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>ye(()=>import("./fsharp-CEbfBfAU.js"),__vite__mapDeps([]))});Ie({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>ye(()=>import("./freemarker2-BWzI7mAH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagAutoInterpolationDollar)});Ie({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>ye(()=>import("./freemarker2-BWzI7mAH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagAngleInterpolationDollar)});Ie({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>ye(()=>import("./freemarker2-BWzI7mAH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagBracketInterpolationDollar)});Ie({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>ye(()=>import("./freemarker2-BWzI7mAH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagAngleInterpolationBracket)});Ie({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>ye(()=>import("./freemarker2-BWzI7mAH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagBracketInterpolationBracket)});Ie({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>ye(()=>import("./freemarker2-BWzI7mAH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagAutoInterpolationDollar)});Ie({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>ye(()=>import("./freemarker2-BWzI7mAH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(o=>o.TagAutoInterpolationBracket)});Ie({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>ye(()=>import("./go-CQdGEiqo.js"),__vite__mapDeps([]))});Ie({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>ye(()=>import("./graphql-uScX0mLr.js"),__vite__mapDeps([]))});Ie({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>ye(()=>import("./handlebars-DX89cqjN.js"),__vite__mapDeps([15,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>ye(()=>import("./hcl-CLUKkYLV.js"),__vite__mapDeps([]))});Ie({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>ye(()=>import("./html--fkJPfQt.js"),__vite__mapDeps([16,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>ye(()=>import("./ini-yF59P7jx.js"),__vite__mapDeps([]))});Ie({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>ye(()=>import("./java-B4nVP7zA.js"),__vite__mapDeps([]))});Ie({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>ye(()=>import("./javascript-BGybM7Bs.js"),__vite__mapDeps([17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>ye(()=>import("./julia-BuzzKf8T.js"),__vite__mapDeps([]))});Ie({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>ye(()=>import("./kotlin-C3T34NxZ.js"),__vite__mapDeps([]))});Ie({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>ye(()=>import("./less-_0mhvbjD.js"),__vite__mapDeps([]))});Ie({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>ye(()=>import("./lexon-BMz0APkk.js"),__vite__mapDeps([]))});Ie({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>ye(()=>import("./lua-FbLRz07w.js"),__vite__mapDeps([]))});Ie({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>ye(()=>import("./liquid-Dc_NUFs-.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>ye(()=>import("./m3-F3MR2vpL.js"),__vite__mapDeps([]))});Ie({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>ye(()=>import("./markdown-BpaYHsZh.js"),__vite__mapDeps([]))});Ie({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>ye(()=>import("./mdx-DXzRoGiO.js"),__vite__mapDeps([20,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>ye(()=>import("./mips-D2BB_tA0.js"),__vite__mapDeps([]))});Ie({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>ye(()=>import("./msdax-Dbqax-4H.js"),__vite__mapDeps([]))});Ie({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>ye(()=>import("./mysql-BlazkCxF.js"),__vite__mapDeps([]))});Ie({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>ye(()=>import("./objective-c-DBolmLrR.js"),__vite__mapDeps([]))});Ie({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>ye(()=>import("./pascal-C4E8LjYg.js"),__vite__mapDeps([]))});Ie({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>ye(()=>import("./pascaligo-Z17T2ccY.js"),__vite__mapDeps([]))});Ie({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>ye(()=>import("./perl-COEbQRNw.js"),__vite__mapDeps([]))});Ie({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>ye(()=>import("./pgsql-Dy_Aa0h1.js"),__vite__mapDeps([]))});Ie({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>ye(()=>import("./php-DZgQod0H.js"),__vite__mapDeps([]))});Ie({id:"pla",extensions:[".pla"],loader:()=>ye(()=>import("./pla-Cp8kinq6.js"),__vite__mapDeps([]))});Ie({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>ye(()=>import("./postiats-Cc2rLWR_.js"),__vite__mapDeps([]))});Ie({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>ye(()=>import("./powerquery-0Oii_npw.js"),__vite__mapDeps([]))});Ie({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>ye(()=>import("./powershell-DUtNlkbn.js"),__vite__mapDeps([]))});Ie({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>ye(()=>import("./protobuf-YVfST0Lp.js"),__vite__mapDeps([]))});Ie({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>ye(()=>import("./pug-Cof0Wj-Z.js"),__vite__mapDeps([]))});Ie({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>ye(()=>import("./python-C6c0ImSs.js"),__vite__mapDeps([21,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>ye(()=>import("./qsharp-iGC6f2xL.js"),__vite__mapDeps([]))});Ie({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>ye(()=>import("./r-DgOh-GpK.js"),__vite__mapDeps([]))});Ie({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>ye(()=>import("./razor-Dbp-tt-8.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>ye(()=>import("./redis-CUjHknjG.js"),__vite__mapDeps([]))});Ie({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>ye(()=>import("./redshift-DpiWUl_b.js"),__vite__mapDeps([]))});Ie({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>ye(()=>import("./restructuredtext-DoYnpR8y.js"),__vite__mapDeps([]))});Ie({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>ye(()=>import("./ruby-8Ngq79DM.js"),__vite__mapDeps([]))});Ie({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>ye(()=>import("./rust-E66qEhVJ.js"),__vite__mapDeps([]))});Ie({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>ye(()=>import("./sb-NROjXV9s.js"),__vite__mapDeps([]))});Ie({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>ye(()=>import("./scala-DNKydVIG.js"),__vite__mapDeps([]))});Ie({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>ye(()=>import("./scheme-gDjqwtwY.js"),__vite__mapDeps([]))});Ie({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>ye(()=>import("./scss-Nrac8q0b.js"),__vite__mapDeps([]))});Ie({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>ye(()=>import("./shell-CHwqnE9N.js"),__vite__mapDeps([]))});Ie({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>ye(()=>import("./solidity-DzvweBVM.js"),__vite__mapDeps([]))});Ie({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>ye(()=>import("./sophia-LwATRHaW.js"),__vite__mapDeps([]))});Ie({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>ye(()=>import("./sparql-5hUL7dXb.js"),__vite__mapDeps([]))});Ie({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>ye(()=>import("./sql-CVxjL13O.js"),__vite__mapDeps([]))});Ie({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>ye(()=>import("./st-Cc39erT-.js"),__vite__mapDeps([]))});Ie({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>ye(()=>import("./swift-C8fNz67c.js"),__vite__mapDeps([]))});Ie({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>ye(()=>import("./systemverilog-BFUzWeNg.js"),__vite__mapDeps([]))});Ie({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>ye(()=>import("./systemverilog-BFUzWeNg.js"),__vite__mapDeps([]))});Ie({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>ye(()=>import("./tcl-CtpYBwaD.js"),__vite__mapDeps([]))});Ie({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>ye(()=>import("./twig-CbPmbPKL.js"),__vite__mapDeps([]))});Ie({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>ye(()=>import("./typescript-CmRccRO2.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>ye(()=>import("./vb-DqkExfjG.js"),__vite__mapDeps([]))});Ie({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>ye(()=>import("./wgsl-BkzIWQci.js"),__vite__mapDeps([]))});Ie({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\ye(()=>import("./xml-DuoFp11i.js"),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});Ie({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>ye(()=>import("./yaml-CxJ23TtR.js"),__vite__mapDeps([24,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Uge=Object.defineProperty,$ge=Object.getOwnPropertyDescriptor,jge=Object.getOwnPropertyNames,Kge=Object.prototype.hasOwnProperty,r7=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of jge(e))!Kge.call(o,n)&&n!==t&&Uge(o,n,{get:()=>e[n],enumerable:!(i=$ge(e,n))||i.enumerable});return o},qge=(o,e,t)=>(r7(o,e,"default"),t&&r7(t,e,"default")),Fp={};qge(Fp,sD);var hP=class{constructor(e,t,i){this._onDidChange=new Fp.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},uP={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},gP={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},nH=new hP("css",uP,gP),sH=new hP("scss",uP,gP),oH=new hP("less",uP,gP);Fp.languages.css={cssDefaults:nH,lessDefaults:oH,scssDefaults:sH};function fP(){return ye(()=>import("./cssMode-DMmLTgYz.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))}Fp.languages.onLanguage("less",()=>{fP().then(o=>o.setupMode(oH))});Fp.languages.onLanguage("scss",()=>{fP().then(o=>o.setupMode(sH))});Fp.languages.onLanguage("css",()=>{fP().then(o=>o.setupMode(nH))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var Uge=Object.defineProperty,$ge=Object.getOwnPropertyDescriptor,jge=Object.getOwnPropertyNames,Kge=Object.prototype.hasOwnProperty,r7=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of jge(e))!Kge.call(o,n)&&n!==t&&Uge(o,n,{get:()=>e[n],enumerable:!(i=$ge(e,n))||i.enumerable});return o},qge=(o,e,t)=>(r7(o,e,"default"),t&&r7(t,e,"default")),Fp={};qge(Fp,sD);var hP=class{constructor(e,t,i){this._onDidChange=new Fp.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},uP={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},gP={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},nH=new hP("css",uP,gP),sH=new hP("scss",uP,gP),oH=new hP("less",uP,gP);Fp.languages.css={cssDefaults:nH,lessDefaults:oH,scssDefaults:sH};function fP(){return ye(()=>import("./cssMode-CHypgTRD.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))}Fp.languages.onLanguage("less",()=>{fP().then(o=>o.setupMode(oH))});Fp.languages.onLanguage("scss",()=>{fP().then(o=>o.setupMode(sH))});Fp.languages.onLanguage("css",()=>{fP().then(o=>o.setupMode(nH))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Gge=Object.defineProperty,Zge=Object.getOwnPropertyDescriptor,Yge=Object.getOwnPropertyNames,Xge=Object.prototype.hasOwnProperty,a7=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Yge(e))!Xge.call(o,n)&&n!==t&&Gge(o,n,{get:()=>e[n],enumerable:!(i=Zge(e,n))||i.enumerable});return o},Qge=(o,e,t)=>(a7(o,e,"default"),t&&a7(t,e,"default")),oD={};Qge(oD,sD);var Jge=class{constructor(e,t,i){this._onDidChange=new oD.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},efe={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},rD={format:efe,suggest:{},data:{useDefaultDataProvider:!0}};function aD(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===xv,documentFormattingEdits:o===xv,documentRangeFormattingEdits:o===xv}}var xv="html",l7="handlebars",d7="razor",rH=lD(xv,rD,aD(xv)),tfe=rH.defaults,aH=lD(l7,rD,aD(l7)),ife=aH.defaults,lH=lD(d7,rD,aD(d7)),nfe=lH.defaults;oD.languages.html={htmlDefaults:tfe,razorDefaults:nfe,handlebarDefaults:ife,htmlLanguageService:rH,handlebarLanguageService:aH,razorLanguageService:lH,registerHTMLLanguageService:lD};function sfe(){return ye(()=>import("./htmlMode-DWeSdq1n.js"),__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))}function lD(o,e=rD,t=aD(o)){const i=new Jge(o,e,t);let n;const s=oD.languages.onLanguage(o,()=>M(this,null,function*(){n=(yield sfe()).setupMode(i)}));return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}var ofe=class{constructor(e,t,i){this._onDidChange=new eH,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},rfe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},afe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},dH=new ofe("json",rfe,afe),lfe=()=>cH().then(o=>o.getWorker());nD.json={jsonDefaults:dH,getWorker:lfe};function cH(){return ye(()=>import("./jsonMode--87pAiWn.js"),__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))}nD.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});nD.onLanguage("json",()=>{cH().then(o=>o.setupMode(dH))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var Gge=Object.defineProperty,Zge=Object.getOwnPropertyDescriptor,Yge=Object.getOwnPropertyNames,Xge=Object.prototype.hasOwnProperty,a7=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Yge(e))!Xge.call(o,n)&&n!==t&&Gge(o,n,{get:()=>e[n],enumerable:!(i=Zge(e,n))||i.enumerable});return o},Qge=(o,e,t)=>(a7(o,e,"default"),t&&a7(t,e,"default")),oD={};Qge(oD,sD);var Jge=class{constructor(e,t,i){this._onDidChange=new oD.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},efe={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},rD={format:efe,suggest:{},data:{useDefaultDataProvider:!0}};function aD(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===xv,documentFormattingEdits:o===xv,documentRangeFormattingEdits:o===xv}}var xv="html",l7="handlebars",d7="razor",rH=lD(xv,rD,aD(xv)),tfe=rH.defaults,aH=lD(l7,rD,aD(l7)),ife=aH.defaults,lH=lD(d7,rD,aD(d7)),nfe=lH.defaults;oD.languages.html={htmlDefaults:tfe,razorDefaults:nfe,handlebarDefaults:ife,htmlLanguageService:rH,handlebarLanguageService:aH,razorLanguageService:lH,registerHTMLLanguageService:lD};function sfe(){return ye(()=>import("./htmlMode-7kuxxI3s.js"),__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))}function lD(o,e=rD,t=aD(o)){const i=new Jge(o,e,t);let n;const s=oD.languages.onLanguage(o,()=>M(this,null,function*(){n=(yield sfe()).setupMode(i)}));return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}var ofe=class{constructor(e,t,i){this._onDidChange=new eH,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},rfe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},afe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},dH=new ofe("json",rfe,afe),lfe=()=>cH().then(o=>o.getWorker());nD.json={jsonDefaults:dH,getWorker:lfe};function cH(){return ye(()=>import("./jsonMode-BL1JchM7.js"),__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))}nD.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});nD.onLanguage("json",()=>{cH().then(o=>o.setupMode(dH))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var dfe=Object.defineProperty,cfe=Object.getOwnPropertyDescriptor,hfe=Object.getOwnPropertyNames,ufe=Object.prototype.hasOwnProperty,c7=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of hfe(e))!ufe.call(o,n)&&n!==t&&dfe(o,n,{get:()=>e[n],enumerable:!(i=cfe(e,n))||i.enumerable});return o},gfe=(o,e,t)=>(c7(o,e,"default"),t&&c7(t,e,"default")),ffe="5.0.2",up={};gfe(up,sD);var hH=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(hH||{}),uH=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(uH||{}),gH=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(gH||{}),fH=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(fH||{}),mH=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(mH||{}),pH=class{constructor(o,e,t,i,n){this._onDidChange=new up.Emitter,this._onDidExtraLibsChange=new up.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e=="undefined"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},mfe=ffe,_H={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},vH=new pH({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},_H),bH=new pH({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},_H),pfe=()=>dD().then(o=>o.getTypeScriptWorker()),_fe=()=>dD().then(o=>o.getJavaScriptWorker());up.languages.typescript={ModuleKind:hH,JsxEmit:uH,NewLineKind:gH,ScriptTarget:fH,ModuleResolutionKind:mH,typescriptVersion:mfe,typescriptDefaults:vH,javascriptDefaults:bH,getTypeScriptWorker:pfe,getJavaScriptWorker:_fe};function dD(){return ye(()=>import("./tsMode-DgE4K8Op.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))}up.languages.onLanguage("typescript",()=>dD().then(o=>o.setupTypeScript(vH)));up.languages.onLanguage("javascript",()=>dD().then(o=>o.setupJavaScript(bH)));class vfe extends Es{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:pt("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:ae.map,toggled:Z.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Z.has("isInDiffEditor"),menu:{when:Z.has("isInDiffEditor"),id:k.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(it),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class CH extends Es{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:pt("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Z.has("isInDiffEditor")})}run(e,...t){const i=e.get(it),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class wH extends Es{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:pt("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Z.has("isInDiffEditor")})}run(e,...t){const i=e.get(it),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const iC=pt("diffEditor","Diff Editor");class bfe extends Ta{constructor(){super({id:"diffEditor.switchSide",title:pt("switchSide","Switch Side"),icon:ae.arrowSwap,precondition:Z.has("isInDiffEditor"),f1:!0,category:iC})}runEditorCommand(e,t,i){const n=Wp(e);if(n instanceof Yd){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class Cfe extends Ta{constructor(){super({id:"diffEditor.exitCompareMove",title:pt("exitCompareMove","Exit Compare Move"),icon:ae.close,precondition:E.comparingMovedCode,f1:!1,category:iC,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=Wp(e);n instanceof Yd&&n.exitCompareMove()}}class wfe extends Ta{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:pt("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:ae.fold,precondition:Z.has("isInDiffEditor"),f1:!0,category:iC})}runEditorCommand(e,t,...i){const n=Wp(e);n instanceof Yd&&n.collapseAllUnchangedRegions()}}class Sfe extends Ta{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:pt("showAllUnchangedRegions","Show All Unchanged Regions"),icon:ae.unfold,precondition:Z.has("isInDiffEditor"),f1:!0,category:iC})}runEditorCommand(e,t,...i){const n=Wp(e);n instanceof Yd&&n.showAllUnchangedRegions()}}class QT extends Es{constructor(){super({id:"diffEditor.revert",title:pt("revert","Revert"),f1:!1,category:iC})}run(e,t){var i;const n=yfe(e,t.originalUri,t.modifiedUri);n instanceof Yd&&n.revertRangeMappings((i=t.mapping.innerChanges)!==null&&i!==void 0?i:[])}}const SH=pt("accessibleDiffViewer","Accessible Diff Viewer");class Bp extends Es{constructor(){super({id:Bp.id,title:pt("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:SH,precondition:Z.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=Wp(e);t==null||t.accessibleDiffViewerNext()}}Bp.id="editor.action.accessibleDiffViewer.next";class nC extends Es{constructor(){super({id:nC.id,title:pt("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:SH,precondition:Z.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=Wp(e);t==null||t.accessibleDiffViewerPrev()}}nC.id="editor.action.accessibleDiffViewer.prev";function yfe(o,e,t){return o.get(bt).listDiffEditors().find(s=>{var r,a;const l=s.getModifiedEditor(),d=s.getOriginalEditor();return l&&((r=l.getModel())===null||r===void 0?void 0:r.uri.toString())===t.toString()&&d&&((a=d.getModel())===null||a===void 0?void 0:a.uri.toString())===e.toString()})||null}function Wp(o){const t=o.get(bt).listDiffEditors(),i=Pn();if(i)for(const n of t){const s=n.getContainerDomNode();if(Lfe(s,i))return n}return null}function Lfe(o,e){let t=e;for(;t;){if(t===o)return!0;t=t.parentElement}return!1}Ht(vfe);Ht(CH);Ht(wH);ln.appendMenuItem(k.EditorTitle,{command:{id:new wH().desc.id,title:m("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Z.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Z.has("isInDiffEditor")},order:11,group:"1_diff",when:Z.and(E.diffEditorRenderSideBySideInlineBreakpointReached,Z.has("isInDiffEditor"))});ln.appendMenuItem(k.EditorTitle,{command:{id:new CH().desc.id,title:m("showMoves","Show Moved Code Blocks"),icon:ae.move,toggled:xp.create("config.diffEditor.experimental.showMoves",!0),precondition:Z.has("isInDiffEditor")},order:10,group:"1_diff",when:Z.has("isInDiffEditor")});Ht(QT);for(const o of[{icon:ae.arrowRight,key:E.diffEditorInlineMode.toNegated()},{icon:ae.discard,key:E.diffEditorInlineMode}])ln.appendMenuItem(k.DiffEditorHunkToolbar,{command:{id:new QT().desc.id,title:m("revertHunk","Revert Block"),icon:o.icon},when:Z.and(E.diffEditorModifiedWritable,o.key),order:5,group:"primary"}),ln.appendMenuItem(k.DiffEditorSelectionToolbar,{command:{id:new QT().desc.id,title:m("revertSelection","Revert Selection"),icon:o.icon},when:Z.and(E.diffEditorModifiedWritable,o.key),order:5,group:"primary"});Ht(bfe);Ht(Cfe);Ht(wfe);Ht(Sfe);ln.appendMenuItem(k.EditorTitle,{command:{id:Bp.id,title:m("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Z.has("isInDiffEditor")},order:10,group:"2_diff",when:Z.and(E.accessibleDiffViewerVisible.negate(),Z.has("isInDiffEditor"))});gt.registerCommandAlias("editor.action.diffReview.next",Bp.id);Ht(Bp);gt.registerCommandAlias("editor.action.diffReview.prev",nC.id);Ht(nC);var Dfe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xfe=function(o,e){return function(t,i){e(t,i,o)}},JT;const cD=new he("selectionAnchorSet",!1);let Xd=JT=class{static get(e){return e.getContribution(JT.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=cD.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(Ce.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Un().appendText(m("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Us(m("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(Ce.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};Xd.ID="editor.contrib.selectionAnchorController";Xd=JT=Dfe([xfe(1,Oe)],Xd);class kfe extends fe{constructor(){super({id:"editor.action.setSelectionAnchor",label:m("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:Gi(2089,2080),weight:100}})}run(e,t){return M(this,null,function*(){var i;(i=Xd.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Ife extends fe{constructor(){super({id:"editor.action.goToSelectionAnchor",label:m("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:cD})}run(e,t){return M(this,null,function*(){var i;(i=Xd.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class Efe extends fe{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:m("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:cD,kbOpts:{kbExpr:E.editorTextFocus,primary:Gi(2089,2089),weight:100}})}run(e,t){return M(this,null,function*(){var i;(i=Xd.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class Nfe extends fe{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:m("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:cD,kbOpts:{kbExpr:E.editorTextFocus,primary:9,weight:100}})}run(e,t){return M(this,null,function*(){var i;(i=Xd.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}Ct(Xd.ID,Xd,4);ee(kfe);ee(Ife);ee(Efe);ee(Nfe);const Tfe=T("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},m("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Mfe extends fe{constructor(){super({id:"editor.action.jumpToBracket",label:m("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=Rr.get(t))===null||i===void 0||i.jumpToBracket()}}class Rfe extends fe{constructor(){super({id:"editor.action.selectToBracket",label:m("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:pt("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=Rr.get(t))===null||n===void 0||n.selectToBracket(s)}}class Afe extends fe{constructor(){super({id:"editor.action.removeBrackets",label:m("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=Rr.get(t))===null||i===void 0||i.removeBrackets(this.id)}}class Pfe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Rr extends H{static get(e){return e.getContribution(Rr.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Pt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new Ce(r.lineNumber,r.column,r.lineNumber,r.column):new Ce(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const d=t.bracketPairs.findNextBracket(s);d&&d.range&&(r=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(D.compareRangesUsingStarts);const[d,c]=r;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new Ce(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(B.compare);const a=[];let l=0,d=0;const c=n.length;for(let h=0,u=s.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ee(Wfe);const hD=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;nM(this,null,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function Vfe(o,e,t){const i={id:hD(),name:o,uri:e,data:t};return{asString:()=>M(this,null,function*(){return""}),asFile:()=>i,value:void 0}}class LH{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return ht.some(this,([i,n])=>n.asFile())&&t.push("files"),xH(hy(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return hy(e)}}function hy(o){return o.toLowerCase()}function DH(o,e){return xH(hy(o),e.map(hy))}function xH(o,e){if(o==="*/*")return e.length>0;if(e.includes(o))return!0;const t=o.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return s==="*"?e.some(r=>r.startsWith(n+"/")):!1}const uD=Object.freeze({create:o=>Ud(o.map(e=>e.toString())).join(`\r + *-----------------------------------------------------------------------------*/var dfe=Object.defineProperty,cfe=Object.getOwnPropertyDescriptor,hfe=Object.getOwnPropertyNames,ufe=Object.prototype.hasOwnProperty,c7=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of hfe(e))!ufe.call(o,n)&&n!==t&&dfe(o,n,{get:()=>e[n],enumerable:!(i=cfe(e,n))||i.enumerable});return o},gfe=(o,e,t)=>(c7(o,e,"default"),t&&c7(t,e,"default")),ffe="5.0.2",up={};gfe(up,sD);var hH=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(hH||{}),uH=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(uH||{}),gH=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(gH||{}),fH=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(fH||{}),mH=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(mH||{}),pH=class{constructor(o,e,t,i,n){this._onDidChange=new up.Emitter,this._onDidExtraLibsChange=new up.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e=="undefined"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},mfe=ffe,_H={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},vH=new pH({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},_H),bH=new pH({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},_H),pfe=()=>dD().then(o=>o.getTypeScriptWorker()),_fe=()=>dD().then(o=>o.getJavaScriptWorker());up.languages.typescript={ModuleKind:hH,JsxEmit:uH,NewLineKind:gH,ScriptTarget:fH,ModuleResolutionKind:mH,typescriptVersion:mfe,typescriptDefaults:vH,javascriptDefaults:bH,getTypeScriptWorker:pfe,getJavaScriptWorker:_fe};function dD(){return ye(()=>import("./tsMode-Kd0Ur8yF.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))}up.languages.onLanguage("typescript",()=>dD().then(o=>o.setupTypeScript(vH)));up.languages.onLanguage("javascript",()=>dD().then(o=>o.setupJavaScript(bH)));class vfe extends Es{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:pt("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:ae.map,toggled:Z.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:Z.has("isInDiffEditor"),menu:{when:Z.has("isInDiffEditor"),id:k.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(it),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class CH extends Es{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:pt("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:Z.has("isInDiffEditor")})}run(e,...t){const i=e.get(it),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class wH extends Es{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:pt("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:Z.has("isInDiffEditor")})}run(e,...t){const i=e.get(it),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const iC=pt("diffEditor","Diff Editor");class bfe extends Ta{constructor(){super({id:"diffEditor.switchSide",title:pt("switchSide","Switch Side"),icon:ae.arrowSwap,precondition:Z.has("isInDiffEditor"),f1:!0,category:iC})}runEditorCommand(e,t,i){const n=Wp(e);if(n instanceof Yd){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class Cfe extends Ta{constructor(){super({id:"diffEditor.exitCompareMove",title:pt("exitCompareMove","Exit Compare Move"),icon:ae.close,precondition:E.comparingMovedCode,f1:!1,category:iC,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=Wp(e);n instanceof Yd&&n.exitCompareMove()}}class wfe extends Ta{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:pt("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:ae.fold,precondition:Z.has("isInDiffEditor"),f1:!0,category:iC})}runEditorCommand(e,t,...i){const n=Wp(e);n instanceof Yd&&n.collapseAllUnchangedRegions()}}class Sfe extends Ta{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:pt("showAllUnchangedRegions","Show All Unchanged Regions"),icon:ae.unfold,precondition:Z.has("isInDiffEditor"),f1:!0,category:iC})}runEditorCommand(e,t,...i){const n=Wp(e);n instanceof Yd&&n.showAllUnchangedRegions()}}class QT extends Es{constructor(){super({id:"diffEditor.revert",title:pt("revert","Revert"),f1:!1,category:iC})}run(e,t){var i;const n=yfe(e,t.originalUri,t.modifiedUri);n instanceof Yd&&n.revertRangeMappings((i=t.mapping.innerChanges)!==null&&i!==void 0?i:[])}}const SH=pt("accessibleDiffViewer","Accessible Diff Viewer");class Bp extends Es{constructor(){super({id:Bp.id,title:pt("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:SH,precondition:Z.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=Wp(e);t==null||t.accessibleDiffViewerNext()}}Bp.id="editor.action.accessibleDiffViewer.next";class nC extends Es{constructor(){super({id:nC.id,title:pt("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:SH,precondition:Z.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=Wp(e);t==null||t.accessibleDiffViewerPrev()}}nC.id="editor.action.accessibleDiffViewer.prev";function yfe(o,e,t){return o.get(bt).listDiffEditors().find(s=>{var r,a;const l=s.getModifiedEditor(),d=s.getOriginalEditor();return l&&((r=l.getModel())===null||r===void 0?void 0:r.uri.toString())===t.toString()&&d&&((a=d.getModel())===null||a===void 0?void 0:a.uri.toString())===e.toString()})||null}function Wp(o){const t=o.get(bt).listDiffEditors(),i=Pn();if(i)for(const n of t){const s=n.getContainerDomNode();if(Lfe(s,i))return n}return null}function Lfe(o,e){let t=e;for(;t;){if(t===o)return!0;t=t.parentElement}return!1}Ht(vfe);Ht(CH);Ht(wH);ln.appendMenuItem(k.EditorTitle,{command:{id:new wH().desc.id,title:m("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:Z.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:Z.has("isInDiffEditor")},order:11,group:"1_diff",when:Z.and(E.diffEditorRenderSideBySideInlineBreakpointReached,Z.has("isInDiffEditor"))});ln.appendMenuItem(k.EditorTitle,{command:{id:new CH().desc.id,title:m("showMoves","Show Moved Code Blocks"),icon:ae.move,toggled:xp.create("config.diffEditor.experimental.showMoves",!0),precondition:Z.has("isInDiffEditor")},order:10,group:"1_diff",when:Z.has("isInDiffEditor")});Ht(QT);for(const o of[{icon:ae.arrowRight,key:E.diffEditorInlineMode.toNegated()},{icon:ae.discard,key:E.diffEditorInlineMode}])ln.appendMenuItem(k.DiffEditorHunkToolbar,{command:{id:new QT().desc.id,title:m("revertHunk","Revert Block"),icon:o.icon},when:Z.and(E.diffEditorModifiedWritable,o.key),order:5,group:"primary"}),ln.appendMenuItem(k.DiffEditorSelectionToolbar,{command:{id:new QT().desc.id,title:m("revertSelection","Revert Selection"),icon:o.icon},when:Z.and(E.diffEditorModifiedWritable,o.key),order:5,group:"primary"});Ht(bfe);Ht(Cfe);Ht(wfe);Ht(Sfe);ln.appendMenuItem(k.EditorTitle,{command:{id:Bp.id,title:m("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:Z.has("isInDiffEditor")},order:10,group:"2_diff",when:Z.and(E.accessibleDiffViewerVisible.negate(),Z.has("isInDiffEditor"))});gt.registerCommandAlias("editor.action.diffReview.next",Bp.id);Ht(Bp);gt.registerCommandAlias("editor.action.diffReview.prev",nC.id);Ht(nC);var Dfe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},xfe=function(o,e){return function(t,i){e(t,i,o)}},JT;const cD=new he("selectionAnchorSet",!1);let Xd=JT=class{static get(e){return e.getContribution(JT.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=cD.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(Ce.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Un().appendText(m("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Us(m("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(Ce.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};Xd.ID="editor.contrib.selectionAnchorController";Xd=JT=Dfe([xfe(1,Oe)],Xd);class kfe extends fe{constructor(){super({id:"editor.action.setSelectionAnchor",label:m("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:Gi(2089,2080),weight:100}})}run(e,t){return M(this,null,function*(){var i;(i=Xd.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class Ife extends fe{constructor(){super({id:"editor.action.goToSelectionAnchor",label:m("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:cD})}run(e,t){return M(this,null,function*(){var i;(i=Xd.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class Efe extends fe{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:m("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:cD,kbOpts:{kbExpr:E.editorTextFocus,primary:Gi(2089,2089),weight:100}})}run(e,t){return M(this,null,function*(){var i;(i=Xd.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class Nfe extends fe{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:m("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:cD,kbOpts:{kbExpr:E.editorTextFocus,primary:9,weight:100}})}run(e,t){return M(this,null,function*(){var i;(i=Xd.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}Ct(Xd.ID,Xd,4);ee(kfe);ee(Ife);ee(Efe);ee(Nfe);const Tfe=T("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},m("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Mfe extends fe{constructor(){super({id:"editor.action.jumpToBracket",label:m("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=Rr.get(t))===null||i===void 0||i.jumpToBracket()}}class Rfe extends fe{constructor(){super({id:"editor.action.selectToBracket",label:m("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:pt("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=Rr.get(t))===null||n===void 0||n.selectToBracket(s)}}class Afe extends fe{constructor(){super({id:"editor.action.removeBrackets",label:m("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=Rr.get(t))===null||i===void 0||i.removeBrackets(this.id)}}class Pfe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class Rr extends H{static get(e){return e.getContribution(Rr.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Pt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new Ce(r.lineNumber,r.column,r.lineNumber,r.column):new Ce(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const d=t.bracketPairs.findNextBracket(s);d&&d.range&&(r=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(D.compareRangesUsingStarts);const[d,c]=r;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new Ce(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let h=0,u=e.length;h1&&s.sort(B.compare);const a=[];let l=0,d=0;const c=n.length;for(let h=0,u=s.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ee(Wfe);const hD=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;nM(this,null,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function Vfe(o,e,t){const i={id:hD(),name:o,uri:e,data:t};return{asString:()=>M(this,null,function*(){return""}),asFile:()=>i,value:void 0}}class LH{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return ht.some(this,([i,n])=>n.asFile())&&t.push("files"),xH(hy(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return hy(e)}}function hy(o){return o.toLowerCase()}function DH(o,e){return xH(hy(o),e.map(hy))}function xH(o,e){if(o==="*/*")return e.length>0;if(e.includes(o))return!0;const t=o.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return s==="*"?e.some(r=>r.startsWith(n+"/")):!1}const uD=Object.freeze({create:o=>Ud(o.map(e=>e.toString())).join(`\r `),split:o=>o.split(`\r `),parse:o=>uD.split(o).filter(e=>!e.startsWith("#"))});class At{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+At.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new At((this.value?[this.value,...e]:e).join(At.sep))}}At.sep=".";At.None=new At("@@none@@");At.Empty=new At("");const h7={EDITORS:"CodeEditors",FILES:"CodeFiles"};class Hfe{}const zfe={DragAndDropContribution:"workbench.contributions.dragAndDrop"};ui.add(zfe.DragAndDropContribution,new Hfe);class Gb{constructor(){}static getInstance(){return Gb.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}Gb.INSTANCE=new Gb;function kH(o){const e=new LH;for(const t of o.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,mP(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,Ufe(n))}}return e}function Ufe(o){const e=o.path?Me.parse(o.path):void 0;return Vfe(o.name,e,()=>M(this,null,function*(){return new Uint8Array(yield o.arrayBuffer())}))}const $fe=Object.freeze([h7.EDITORS,h7.FILES,Ib.RESOURCES,Ib.INTERNAL_URI_LIST]);function IH(o,e=!1){const t=kH(o),i=t.get(Ib.INTERNAL_URI_LIST);if(i)t.replace(Ci.uriList,i);else if(e||!t.has(Ci.uriList)){const n=[];for(const s of o.items){const r=s.getAsFile();if(r){const a=r.path;try{a?n.push(Me.file(a).toString()):n.push(Me.parse(r.name,!0).toString())}catch(l){}}}n.length&&t.replace(Ci.uriList,mP(uD.create(n)))}for(const n of $fe)t.delete(n);return t}var pP=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zb=function(o,e){return function(t,i){e(t,i,o)}};class _P{provideDocumentPasteEdits(e,t,i,n,s){return M(this,null,function*(){const r=yield this.getEdit(i,s);if(r)return{dispose(){},edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}]}})}provideDocumentOnDropEdits(e,t,i,n){return M(this,null,function*(){const s=yield this.getEdit(i,n);return s?[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}]:void 0})}}class Qd extends _P{constructor(){super(...arguments),this.kind=Qd.kind,this.dropMimeTypes=[Ci.text],this.pasteMimeTypes=[Ci.text]}getEdit(e,t){return M(this,null,function*(){const i=e.get(Ci.text);if(!i||e.has(Ci.uriList))return;const n=yield i.asString();return{handledMimeType:Ci.text,title:m("text.label","Insert Plain Text"),insertText:n,kind:this.kind}})}}Qd.id="text";Qd.kind=new At("text.plain");class EH extends _P{constructor(){super(...arguments),this.kind=new At("uri.absolute"),this.dropMimeTypes=[Ci.uriList],this.pasteMimeTypes=[Ci.uriList]}getEdit(e,t){return M(this,null,function*(){const i=yield NH(e);if(!i.length||t.isCancellationRequested)return;let n=0;const s=i.map(({uri:a,originalText:l})=>a.scheme===qe.file?a.fsPath:(n++,l)).join(" ");let r;return n>0?r=i.length>1?m("defaultDropProvider.uriList.uris","Insert Uris"):m("defaultDropProvider.uriList.uri","Insert Uri"):r=i.length>1?m("defaultDropProvider.uriList.paths","Insert Paths"):m("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:Ci.uriList,insertText:s,title:r,kind:this.kind}})}}let uy=class extends _P{constructor(e){super(),this._workspaceContextService=e,this.kind=new At("uri.relative"),this.dropMimeTypes=[Ci.uriList],this.pasteMimeTypes=[Ci.uriList]}getEdit(e,t){return M(this,null,function*(){const i=yield NH(e);if(!i.length||t.isCancellationRequested)return;const n=va(i.map(({uri:s})=>{const r=this._workspaceContextService.getWorkspaceFolder(s);return r?bie(r.uri,s):void 0}));if(n.length)return{handledMimeType:Ci.uriList,insertText:n.join(" "),title:i.length>1?m("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):m("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}})}};uy=pP([Zb(0,_g)],uy);class jfe{constructor(){this.kind=new At("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:Ci.text}]}provideDocumentPasteEdits(e,t,i,n,s){return M(this,null,function*(){var r;if(n.triggerKind!==$v.PasteAs&&!(!((r=n.only)===null||r===void 0)&&r.contains(this.kind)))return;const a=i.get("text/html"),l=yield a==null?void 0:a.asString();if(!(!l||s.isCancellationRequested))return{dispose(){},edits:[{insertText:l,yieldTo:this._yieldTo,title:m("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}})}}function NH(o){return M(this,null,function*(){const e=o.get(Ci.uriList);if(!e)return[];const t=yield e.asString(),i=[];for(const n of uD.parse(t))try{i.push({uri:Me.parse(n),originalText:n})}catch(s){}return i})}let eM=class extends H{constructor(e,t){super(),this._register(e.documentOnDropEditProvider.register("*",new Qd)),this._register(e.documentOnDropEditProvider.register("*",new EH)),this._register(e.documentOnDropEditProvider.register("*",new uy(t)))}};eM=pP([Zb(0,be),Zb(1,_g)],eM);let tM=class extends H{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new Qd)),this._register(e.documentPasteEditProvider.register("*",new EH)),this._register(e.documentPasteEditProvider.register("*",new uy(t))),this._register(e.documentPasteEditProvider.register("*",new jfe))}};tM=pP([Zb(0,be),Zb(1,_g)],tM);class yr{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=yr._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(yr.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(yr.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(yr.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(yr.isVariableCharacter(i)||yr.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof yr._table[i]=="undefined"&&!yr.isDigitCharacter(i)&&!yr.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}yr._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class Vp{constructor(){this._children=[]}appendChild(e){return e instanceof _s&&this._children[this._children.length-1]instanceof _s?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const d of a)d.parent=l,r(d.children,d)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof sC)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class _s extends Vp{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new _s(this.value)}}class TH extends Vp{}class $o extends TH{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Hp?this._children[0]:void 0}clone(){const e=new $o(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Hp extends Vp{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof _s&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Hp;return this.options.forEach(e.appendChild,e),e}}class vP extends Vp{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Qr&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Qr){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new vP;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Qr extends Vp{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Qr(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class Yb extends TH{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new _s(t)],!0):!1}clone(){const e=new Yb(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function u7(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class sC extends Vp{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof $o&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return u7([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof $o&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof Yb&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new sC;return this._children=this.children.map(t=>t.clone()),e}walk(e){u7(this.children,e)}}class yg{constructor(){this._scanner=new yr,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new sC;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i!=null?i:!1,t!=null?t:!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof $o&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const r=(l,d)=>{const c=n.get(l.index);if(!c)return;const h=new $o(l.index);h.transform=l.transform;for(const u of c){const g=u.clone();h.appendChild(g),g instanceof $o&&n.has(g.index)&&!d.has(g.index)&&(d.add(g.index),r(g,d),d.delete(g.index))}t.replace(l,[h])},a=new Set;for(const l of s)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new $o(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new _s(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new $o(Number(t)):new Yb(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new $o(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new _s("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new Hp;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new _s(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new Yb(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new _s("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new vP;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new _s(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch(s){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Qr(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Qr(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Qr(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Qr(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Qr(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Qr(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Qr(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new _s(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function MH(o,e,t){var i,n,s,r;return(typeof t.insertText=="string"?t.insertText==="":t.insertText.snippet==="")?{edits:(n=(i=t.additionalEdit)===null||i===void 0?void 0:i.edits)!==null&&n!==void 0?n:[]}:{edits:[...e.map(a=>new ah(o,{range:a,text:typeof t.insertText=="string"?yg.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...(r=(s=t.additionalEdit)===null||s===void 0?void 0:s.edits)!==null&&r!==void 0?r:[]]}}function RH(o){var e;function t(a,l){return"mimeType"in a?a.mimeType===l.handledMimeType:!!l.kind&&a.kind.contains(l.kind)}const i=new Map;for(const a of o)for(const l of(e=a.yieldTo)!==null&&e!==void 0?e:[])for(const d of o)if(d!==a&&t(l,d)){let c=i.get(a);c||(c=[],i.set(a,c)),c.push(d)}if(!i.size)return Array.from(o);const n=new Set,s=[];function r(a){if(!a.length)return[];const l=a[0];if(s.includes(l))return console.warn("Yield to cycle detected",l),a;if(n.has(l))return r(a.slice(1));let d=[];const c=i.get(l);return c&&(s.push(l),d=r(c),s.pop()),n.add(l),[...d,l,...r(a.slice(1))]}return r(Array.from(o))}var Kfe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},qfe=function(o,e){return function(t,i){e(t,i,o)}};const Gfe=je.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:NB,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class gD extends H{constructor(e,t,i,n,s){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=ie(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=ie("span.icon");this.domNode.append(t),t.classList.add(...Ae.asClassNameArray(ae.loading),"codicon-modifier-spin");const i=()=>{const n=this.editor.getOption(67);this.domNode.style.height=`${n}px`,this.domNode.style.width=`${Math.ceil(.8*n)}px`};i(),this._register(this.editor.onDidChangeConfiguration(n=>{(n.hasChanged(52)||n.hasChanged(67))&&i()})),this._register(j(this.domNode,re.CLICK,n=>{this.delegate.cancel()}))}getId(){return gD.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}gD.baseId="editor.widget.inlineProgressWidget";let gy=class extends H{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new hn),this._currentWidget=new hn,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}showWhile(e,t,i){return M(this,null,function*(){const n=this._operationIdPool++;this._currentOperation=n,this.clear(),this._showPromise.value=wh(()=>{const s=D.fromPositions(e);this._currentDecorations.set([{range:s,options:Gfe}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(gD,this.id,this._editor,s,t,i))},this._showDelay);try{return yield i}finally{this._currentOperation===n&&(this.clear(),this._currentOperation=void 0)}})}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};gy=Kfe([qfe(2,ke)],gy);var Zfe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},g7=function(o,e){return function(t,i){e(t,i,o)}},Cw;let Ds=Cw=class{static get(e){return e.getContribution(Cw.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new hn,this._messageListeners=new Q,this._mouseOverMessage=!1,this._editor=e,this._visible=Cw.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;(e=this._message)===null||e===void 0||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Us(_a(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=_a(e)?EL(e,{actionHandler:{callback:n=>{this.closeMessage(),xA(this._openerService,n,_a(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new f7(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(le.debounce(this._editor.onDidBlurEditorText,(n,s)=>s,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&_n(Pn(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(j(this._messageWidget.value.getDomNode(),re.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(j(this._messageWidget.value.getDomNode(),re.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new D(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(f7.fadeOut(this._messageWidget.value))}};Ds.ID="editor.contrib.messageController";Ds.MESSAGE_VISIBLE=new he("messageVisible",!1,m("messageVisible","Whether the editor is currently showing an inline message"));Ds=Cw=Zfe([g7(1,Oe),g7(2,qs)],Ds);const Yfe=en.bindToContribution(Ds.get);ce(new Yfe({id:"leaveEditorMessage",precondition:Ds.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:130,primary:9}}));let f7=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");typeof n=="string"?(r.classList.add("message"),r.textContent=n):(n.classList.add("message"),r.appendChild(n)),this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};Ct(Ds.ID,Ds,4);var AH=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},kv=function(o,e){return function(t,i){e(t,i,o)}},iM;let fy=iM=class extends H{constructor(e,t,i,n,s,r,a,l,d,c){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=s,this.edits=r,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=c,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(d),this.visibleContext.set(!0),this._register(xe(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(xe(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(h=>{s.containsPosition(h.position)||this.dispose()})),this._register(le.runAndSubscribe(c.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var e;const t=(e=this._keybindingService.lookupKeybinding(this.showCommand.id))===null||e===void 0?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=ie(".post-edit-widget"),this.button=this._register(new QS(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(j(this.domNode,re.CLICK,()=>this.showSelector()))}getId(){return iM.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=Fi(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>rm({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};fy.baseId="editor.widget.postEditWidget";fy=iM=AH([kv(7,co),kv(8,Oe),kv(9,Tt)],fy);let my=class extends H{constructor(e,t,i,n,s,r){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=s,this._bulkEditService=r,this._currentWidget=this._register(new hn),this._register(le.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}applyEditAndShowIfNeeded(e,t,i,n,s){return M(this,null,function*(){const r=this._editor.getModel();if(!r||!e.length)return;const a=t.allEdits.at(t.activeEditIndex);if(!a)return;const l=yield n(a,s),d=MH(r.uri,e,l),c=e[0],h=r.deltaDecorations([],[{range:c,options:{description:"paste-line-suffix",stickiness:0}}]);let u,g;try{u=yield this._bulkEditService.apply(d,{editor:this._editor,token:s}),g=r.getDecorationRange(h[0])}finally{r.deltaDecorations(h,[])}i&&u.isApplied&&t.allEdits.length>1&&this.show(g!=null?g:c,t,f=>M(this,null,function*(){const p=this._editor.getModel();p&&(yield p.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:f,allEdits:t.allEdits},i,n,s))}))})}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(fy,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;(e=this._currentWidget.value)===null||e===void 0||e.showSelector()}};my=AH([kv(4,ke),kv(5,j0)],my);var Xfe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},gf=function(o,e){return function(t,i){e(t,i,o)}},Lu;const PH="editor.changePasteType",bP=new he("pasteWidgetVisible",!1,m("pasteWidgetVisible","Whether the paste widget is showing")),Fk="application/vnd.code.copyMetadata";let Al=Lu=class extends H{static get(e){return e.getContribution(Lu.ID)}constructor(e,t,i,n,s,r,a){super(),this._bulkEditService=i,this._clipboardService=n,this._languageFeaturesService=s,this._quickInputService=r,this._progressService=a,this._editor=e;const l=e.getContainerDomNode();this._register(j(l,"copy",d=>this.handleCopy(d))),this._register(j(l,"cut",d=>this.handleCopy(d))),this._register(j(l,"paste",d=>this.handlePaste(d),!0)),this._pasteProgressManager=this._register(new gy("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(my,"pasteIntoEditor",e,bP,{id:PH,label:m("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferred:e},Dp().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled&&!this._editor.getOption(91)}finishedPaste(){return M(this,null,function*(){yield this._currentPasteOperation})}handleCopy(e){var t,i;if(!this._editor.hasTextFocus()||(Uh&&this._clipboardService.writeResources([]),!e.clipboardData||!this.isPasteAsEnabled()))return;const n=this._editor.getModel(),s=this._editor.getSelections();if(!n||!(s!=null&&s.length))return;const r=this._editor.getOption(37);let a=s;const l=s.length===1&&s[0].isEmpty();if(l){if(!r)return;a=[new D(a[0].startLineNumber,1,a[0].startLineNumber,1+n.getLineLength(a[0].startLineNumber))]}const d=(t=this._editor._getViewModel())===null||t===void 0?void 0:t.getPlainTextToCopy(s,r,Fn),h={multicursorText:Array.isArray(d)?d:null,pasteOnNewLine:l,mode:null},u=this._languageFeaturesService.documentPasteEditProvider.ordered(n).filter(v=>!!v.prepareDocumentPaste);if(!u.length){this.setCopyMetadata(e.clipboardData,{defaultPastePayload:h});return}const g=kH(e.clipboardData),f=u.flatMap(v=>{var b;return(b=v.copyMimeTypes)!==null&&b!==void 0?b:[]}),p=hD();this.setCopyMetadata(e.clipboardData,{id:p,providerCopyMimeTypes:f,defaultPastePayload:h});const _=cn(v=>M(this,null,function*(){const b=va(yield Promise.all(u.map(C=>M(this,null,function*(){try{return yield C.prepareDocumentPaste(n,a,g,v)}catch(w){console.error(w);return}}))));b.reverse();for(const C of b)for(const[w,S]of C)g.replace(w,S);return g}));(i=Lu._currentCopyOperation)===null||i===void 0||i.dataTransferPromise.cancel(),Lu._currentCopyOperation={handle:p,dataTransferPromise:_}}handlePaste(e){return M(this,null,function*(){var t,i,n,s;if(!e.clipboardData||!this._editor.hasTextFocus())return;(t=Ds.get(this._editor))===null||t===void 0||t.closeMessage(),(i=this._currentPasteOperation)===null||i===void 0||i.cancel(),this._currentPasteOperation=void 0;const r=this._editor.getModel(),a=this._editor.getSelections();if(!(a!=null&&a.length)||!r||!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const l=this.fetchCopyMetadata(e),d=IH(e.clipboardData);d.delete(Fk);const c=[...e.clipboardData.types,...(n=l==null?void 0:l.providerCopyMimeTypes)!==null&&n!==void 0?n:[],Ci.uriList],h=this._languageFeaturesService.documentPasteEditProvider.ordered(r).filter(u=>{var g,f;const p=(g=this._pasteAsActionContext)===null||g===void 0?void 0:g.preferred;return p&&u.providedPasteEditKinds&&!this.providerMatchesPreference(u,p)?!1:(f=u.pasteMimeTypes)===null||f===void 0?void 0:f.some(_=>DH(_,c))});if(!h.length){!((s=this._pasteAsActionContext)===null||s===void 0)&&s.preferred&&this.showPasteAsNoEditMessage(a,this._pasteAsActionContext.preferred);return}e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,h,a,d,l):this.doPasteInline(h,a,d,l,e)})}showPasteAsNoEditMessage(e,t){var i;(i=Ds.get(this._editor))===null||i===void 0||i.showMessage(m("pasteAsError","No paste edits for '{0}' found",t instanceof At?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,n,s){const r=cn(a=>M(this,null,function*(){const l=this._editor;if(!l.hasModel())return;const d=l.getModel(),c=new Nh(l,3,void 0,a);try{if(yield this.mergeInDataFromCopy(i,n,c.token),c.token.isCancellationRequested)return;const h=e.filter(f=>this.isSupportedPasteProvider(f,i));if(!h.length||h.length===1&&h[0]instanceof Qd)return this.applyDefaultPasteHandler(i,n,c.token,s);const u={triggerKind:$v.Automatic},g=yield this.getPasteEdits(h,i,d,t,u,c.token);if(c.token.isCancellationRequested)return;if(g.length===1&&g[0].provider instanceof Qd)return this.applyDefaultPasteHandler(i,n,c.token,s);if(g.length){const f=l.getOption(85).showPasteSelector==="afterPaste";return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:g},f,(p,_)=>M(this,null,function*(){var v,b;const C=yield(b=(v=p.provider).resolveDocumentPasteEdit)===null||b===void 0?void 0:b.call(v,p,_);return C&&(p.additionalEdit=C.additionalEdit),p}),c.token)}yield this.applyDefaultPasteHandler(i,n,c.token,s)}finally{c.dispose(),this._currentPasteOperation===r&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),m("pasteIntoEditorProgress","Running paste handlers. Click to cancel"),r),this._currentPasteOperation=r}showPasteAsPick(e,t,i,n,s){const r=cn(a=>M(this,null,function*(){const l=this._editor;if(!l.hasModel())return;const d=l.getModel(),c=new Nh(l,3,void 0,a);try{if(yield this.mergeInDataFromCopy(n,s,c.token),c.token.isCancellationRequested)return;let h=t.filter(_=>this.isSupportedPasteProvider(_,n,e));e&&(h=h.filter(_=>this.providerMatchesPreference(_,e)));const u={triggerKind:$v.PasteAs,only:e&&e instanceof At?e:void 0};let g=yield this.getPasteEdits(h,n,d,i,u,c.token);if(c.token.isCancellationRequested)return;if(e&&(g=g.filter(_=>e instanceof At?e.contains(_.kind):e.providerId===_.provider.id)),!g.length){u.only&&this.showPasteAsNoEditMessage(i,u.only);return}let f;if(e)f=g.at(0);else{const _=yield this._quickInputService.pick(g.map(v=>{var b;return{label:v.title,description:(b=v.kind)===null||b===void 0?void 0:b.value,edit:v}}),{placeHolder:m("pasteAsPickerPlaceholder","Select Paste Action")});f=_==null?void 0:_.edit}if(!f)return;const p=MH(d.uri,i,f);yield this._bulkEditService.apply(p,{editor:this._editor})}finally{c.dispose(),this._currentPasteOperation===r&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:m("pasteAsProgress","Running paste handlers")},()=>r)}setCopyMetadata(e,t){e.setData(Fk,JSON.stringify(t))}fetchCopyMetadata(e){var t;if(!e.clipboardData)return;const i=e.clipboardData.getData(Fk);if(i)try{return JSON.parse(i)}catch(r){return}const[n,s]=YE.getTextData(e.clipboardData);if(s)return{defaultPastePayload:{mode:s.mode,multicursorText:(t=s.multicursorText)!==null&&t!==void 0?t:null,pasteOnNewLine:!!s.isFromEmptySelection}}}mergeInDataFromCopy(e,t,i){return M(this,null,function*(){var n;if(t!=null&&t.id&&((n=Lu._currentCopyOperation)===null||n===void 0?void 0:n.handle)===t.id){const s=yield Lu._currentCopyOperation.dataTransferPromise;if(i.isCancellationRequested)return;for(const[r,a]of s)e.replace(r,a)}if(!e.has(Ci.uriList)){const s=yield this._clipboardService.readResources();if(i.isCancellationRequested)return;s.length&&e.append(Ci.uriList,mP(uD.create(s)))}})}getPasteEdits(e,t,i,n,s,r){return M(this,null,function*(){const a=yield I0(Promise.all(e.map(d=>M(this,null,function*(){var c,h;try{const u=yield(c=d.provideDocumentPasteEdits)===null||c===void 0?void 0:c.call(d,i,n,t,s,r);return(h=u==null?void 0:u.edits)===null||h===void 0?void 0:h.map(g=>ue(K({},g),{provider:d}))}catch(u){console.error(u)}}))),r),l=va(a!=null?a:[]).flat().filter(d=>!s.only||s.only.contains(d.kind));return RH(l)})}applyDefaultPasteHandler(e,t,i,n){return M(this,null,function*(){var s,r,a,l;const d=(s=e.get(Ci.text))!==null&&s!==void 0?s:e.get("text"),c=(r=yield d==null?void 0:d.asString())!==null&&r!==void 0?r:"";if(i.isCancellationRequested)return;const h={clipboardEvent:n,text:c,pasteOnNewLine:(a=t==null?void 0:t.defaultPastePayload.pasteOnNewLine)!==null&&a!==void 0?a:!1,multicursorText:(l=t==null?void 0:t.defaultPastePayload.multicursorText)!==null&&l!==void 0?l:null,mode:null};this._editor.trigger("keyboard","paste",h)})}isSupportedPasteProvider(e,t,i){var n;return!((n=e.pasteMimeTypes)===null||n===void 0)&&n.some(s=>t.matches(s))?!i||this.providerMatchesPreference(e,i):!1}providerMatchesPreference(e,t){return t instanceof At?e.providedPasteEditKinds?e.providedPasteEditKinds.some(i=>t.contains(i)):!0:e.id===t.providerId}};Al.ID="editor.contrib.copyPasteActionController";Al=Lu=Xfe([gf(1,ke),gf(2,j0),gf(3,ac),gf(4,be),gf(5,Aa),gf(6,k6)],Al);const Lg="9_cutcopypaste",Qfe=ha||document.queryCommandSupported("cut"),OH=ha||document.queryCommandSupported("copy"),Jfe=typeof navigator.clipboard=="undefined"||sr?document.queryCommandSupported("paste"):!0;function CP(o){return o.register(),o}const eme=Qfe?CP(new kp({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:ha?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:k.MenubarEditMenu,group:"2_ccp",title:m({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:k.EditorContext,group:Lg,title:m("actions.clipboard.cutLabel","Cut"),when:E.writable,order:1},{menuId:k.CommandPalette,group:"",title:m("actions.clipboard.cutLabel","Cut"),order:1},{menuId:k.SimpleEditorContext,group:Lg,title:m("actions.clipboard.cutLabel","Cut"),when:E.writable,order:1}]})):void 0,tme=OH?CP(new kp({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:ha?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:k.MenubarEditMenu,group:"2_ccp",title:m({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:k.EditorContext,group:Lg,title:m("actions.clipboard.copyLabel","Copy"),order:2},{menuId:k.CommandPalette,group:"",title:m("actions.clipboard.copyLabel","Copy"),order:1},{menuId:k.SimpleEditorContext,group:Lg,title:m("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;ln.appendMenuItem(k.MenubarEditMenu,{submenu:k.MenubarCopy,title:pt("copy as","Copy As"),group:"2_ccp",order:3});ln.appendMenuItem(k.EditorContext,{submenu:k.EditorContextCopy,title:pt("copy as","Copy As"),group:Lg,order:3});ln.appendMenuItem(k.EditorContext,{submenu:k.EditorContextShare,title:pt("share","Share"),group:"11_share",order:-1,when:Z.and(Z.notEquals("resourceScheme","output"),E.editorTextFocus)});ln.appendMenuItem(k.EditorTitleContext,{submenu:k.EditorTitleContextShare,title:pt("share","Share"),group:"11_share",order:-1});ln.appendMenuItem(k.ExplorerContext,{submenu:k.ExplorerContextShare,title:pt("share","Share"),group:"11_share",order:-1});const Bk=Jfe?CP(new kp({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:ha?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:k.MenubarEditMenu,group:"2_ccp",title:m({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:k.EditorContext,group:Lg,title:m("actions.clipboard.pasteLabel","Paste"),when:E.writable,order:4},{menuId:k.CommandPalette,group:"",title:m("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:k.SimpleEditorContext,group:Lg,title:m("actions.clipboard.pasteLabel","Paste"),when:E.writable,order:4}]})):void 0;class ime extends fe{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:m("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(37)&&t.getSelection().isEmpty()||(GE.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),GE.forceCopyWithSyntaxHighlighting=!1)}}function FH(o,e){o&&(o.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(bt).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const s=n.getOption(37),r=n.getSelection();return r&&r.isEmpty()&&!s||n.getContainerDomNode().ownerDocument.execCommand(e),!0}return!1}),o.addImplementation(0,"generic-dom",(t,i)=>(Dp().execCommand(e),!0)))}FH(eme,"cut");FH(tme,"copy");Bk&&(Bk.addImplementation(1e4,"code-editor",(o,e)=>{var t,i;const n=o.get(bt),s=o.get(ac),r=n.getFocusedCodeEditor();return r&&r.hasTextFocus()?r.getContainerDomNode().ownerDocument.execCommand("paste")?(i=(t=Al.get(r))===null||t===void 0?void 0:t.finishedPaste())!==null&&i!==void 0?i:Promise.resolve():Uh?M(void 0,null,function*(){const l=yield s.readText();if(l!==""){const d=ub.INSTANCE.get(l);let c=!1,h=null,u=null;d&&(c=r.getOption(37)&&!!d.isFromEmptySelection,h=typeof d.multicursorText!="undefined"?d.multicursorText:null,u=d.mode),r.trigger("keyboard","paste",{text:l,pasteOnNewLine:c,multicursorText:h,mode:u})}}):!0:!1}),Bk.addImplementation(0,"generic-dom",(o,e)=>(Dp().execCommand("paste"),!0)));OH&&ee(ime);const ai=new class{constructor(){this.QuickFix=new At("quickfix"),this.Refactor=new At("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new At("notebook"),this.Source=new At("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var ro;(function(o){o.Refactor="refactor",o.RefactorPreview="refactor preview",o.Lightbulb="lightbulb",o.Default="other (default)",o.SourceAction="source action",o.QuickFix="quick fix action",o.FixAll="fix all",o.OrganizeImports="organize imports",o.AutoFix="auto fix",o.QuickFixHover="quick fix hover window",o.OnSave="save participants",o.ProblemsView="problems view"})(ro||(ro={}));function nme(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>BH(e,t,o.include))||!o.includeSourceActions&&ai.Source.contains(e))}function sme(o,e){const t=e.kind?new At(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>BH(t,i,o.include))||!o.includeSourceActions&&t&&ai.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function BH(o,e,t){return!(!e.contains(o)||t&&e.contains(t))}class dl{static fromUser(e,t){return!e||typeof e!="object"?new dl(t.kind,t.apply,!1):new dl(dl.getKindFromUser(e,t.kind),dl.getApplyFromUser(e,t.apply),dl.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new At(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class ome{constructor(e,t,i){this.action=e,this.provider=t,this.highlightRange=i}resolve(e){return M(this,null,function*(){var t;if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Ti(n)}i&&(this.action.edit=i.edit)}return this})}}const WH="editor.action.codeAction",wP="editor.action.quickFix",VH="editor.action.autoFix",HH="editor.action.refactor",zH="editor.action.sourceAction",SP="editor.action.organizeImports",yP="editor.action.fixAll";class Iv extends H{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return e.isAI&&!t.isAI?1:!e.isAI&&t.isAI?-1:jn(e.diagnostics)?jn(t.diagnostics)?Iv.codeActionsPreferredComparator(e,t):-1:jn(t.diagnostics)?1:Iv.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(Iv.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&ai.QuickFix.contains(new At(e.kind))&&!!e.isPreferred)}get hasAIFix(){return this.validActions.some(({action:e})=>!!e.isAI)}get allAIFixes(){return this.validActions.every(({action:e})=>!!e.isAI)}}const m7={actions:[],documentation:void 0};function Ev(o,e,t,i,n,s){return M(this,null,function*(){var r;const a=i.filter||{},l=ue(K({},a),{excludes:[...a.excludes||[],ai.Notebook]}),d={only:(r=a.include)===null||r===void 0?void 0:r.value,trigger:i.type},c=new dP(e,s),h=i.type===2,u=rme(o,e,h?l:a),g=new Q,f=u.map(_=>M(this,null,function*(){try{n.report(_);const v=yield _.provideCodeActions(e,t,d,c.token);if(v&&g.add(v),c.token.isCancellationRequested)return m7;const b=((v==null?void 0:v.actions)||[]).filter(w=>w&&sme(a,w)),C=lme(_,b,a.include);return{actions:b.map(w=>new ome(w,_)),documentation:C}}catch(v){if(Ea(v))throw v;return Ti(v),m7}})),p=o.onDidChange(()=>{const _=o.all(e);ci(_,u)||c.cancel()});try{const _=yield Promise.all(f),v=_.map(C=>C.actions).flat(),b=[...va(_.map(C=>C.documentation)),...ame(o,e,i,v)];return new Iv(v,b,g)}finally{p.dispose(),c.dispose()}})}function rme(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>nme(t,new At(n))):!0)}function*ame(o,e,t,i){var n,s,r;if(e&&i.length)for(const a of o.all(e))a._getAdditionalMenuItems&&(yield*CC((n=a._getAdditionalMenuItems)===null||n===void 0?void 0:n.call(a,{trigger:t.type,only:(r=(s=t.filter)===null||s===void 0?void 0:s.include)===null||r===void 0?void 0:r.value},i.map(l=>l.action))))}function lme(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new At(n.kind),command:n.command}));if(t){let n;for(const s of i)s.kind.contains(t)&&(n?n.kind.contains(s.kind)&&(n=s):n=s);if(n)return n==null?void 0:n.command}for(const n of e)if(n.kind){for(const s of i)if(s.kind.contains(new At(n.kind)))return s.command}}var Im;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions",o.FromAILightbulb="fromAILightbulb"})(Im||(Im={}));function dme(s,r,a,l){return M(this,arguments,function*(o,e,t,i,n=at.None){var d;const c=o.get(j0),h=o.get(hi),u=o.get(os),g=o.get(Bi);if(u.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(n),!n.isCancellationRequested&&!(!((d=e.action.edit)===null||d===void 0)&&d.edits.length&&!(yield c.apply(e.action.edit,{editor:i==null?void 0:i.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==Im.OnSave,showPreview:i==null?void 0:i.preview})).isApplied)&&e.action.command)try{yield h.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(f){const p=cme(f);g.error(typeof p=="string"?p:m("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function cme(o){return typeof o=="string"?o:o instanceof Error&&typeof o.message=="string"?o.message:void 0}gt.registerCommand("_executeCodeActionProvider",function(o,e,t,i,n){return M(this,null,function*(){if(!(e instanceof Me))throw tr();const{codeActionProvider:s}=o.get(be),r=o.get(li).getModel(e);if(!r)throw tr();const a=Ce.isISelection(t)?Ce.liftSelection(t):D.isIRange(t)?r.validateRange(t):void 0;if(!a)throw tr();const l=typeof i=="string"?new At(i):void 0,d=yield Ev(s,r,a,{type:1,triggerAction:ro.Default,filter:{includeSourceActions:!0,include:l}},Bd.None,at.None),c=[],h=Math.min(d.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>d.dispose(),100)}})});var hme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ume=function(o,e){return function(t,i){e(t,i,o)}},nM;let py=nM=class{constructor(e){this.keybindingService=e}getResolver(){const e=new Na(()=>this.keybindingService.getKeybindings().filter(t=>nM.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===SP?i={kind:ai.SourceOrganizeImports.value}:t.command===yP&&(i={kind:ai.SourceFixAll.value}),K({resolvedKeybinding:t.resolvedKeybinding},dl.fromUser(i,{kind:At.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new At(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,s)=>n?n.kind.contains(s.kind)?s:n:s,void 0)}};py.codeActionCommands=[HH,WH,zH,SP,yP];py=nM=hme([ume(0,Tt)],py);T("symbolIcon.arrayForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.booleanForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},m("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.colorForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.constantForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},m("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},m("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},m("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},m("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},m("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.fileForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.folderForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},m("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},m("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.keyForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.keywordForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},m("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.moduleForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.namespaceForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.nullForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.numberForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.objectForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.operatorForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.packageForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.propertyForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.referenceForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.snippetForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.stringForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.structForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.textForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.typeParameterForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.unitForeground",{dark:de,light:de,hcDark:de,hcLight:de},m("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));T("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},m("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const UH=Object.freeze({kind:At.Empty,title:m("codeAction.widget.id.more","More Actions...")}),gme=Object.freeze([{kind:ai.QuickFix,title:m("codeAction.widget.id.quickfix","Quick Fix")},{kind:ai.RefactorExtract,title:m("codeAction.widget.id.extract","Extract"),icon:ae.wrench},{kind:ai.RefactorInline,title:m("codeAction.widget.id.inline","Inline"),icon:ae.wrench},{kind:ai.RefactorRewrite,title:m("codeAction.widget.id.convert","Rewrite"),icon:ae.wrench},{kind:ai.RefactorMove,title:m("codeAction.widget.id.move","Move"),icon:ae.wrench},{kind:ai.SurroundWith,title:m("codeAction.widget.id.surround","Surround With"),icon:ae.surroundWith},{kind:ai.Source,title:m("codeAction.widget.id.source","Source Action"),icon:ae.symbolFile},UH]);function fme(o,e,t){if(!e)return o.map(s=>{var r;return{kind:"action",item:s,group:UH,disabled:!!s.action.disabled,label:s.action.disabled||s.action.title,canPreview:!!(!((r=s.action.edit)===null||r===void 0)&&r.edits.length)}});const i=gme.map(s=>({group:s,actions:[]}));for(const s of o){const r=s.action.kind?new At(s.action.kind):At.None;for(const a of i)if(a.group.kind.contains(r)){a.actions.push(s);break}}const n=[];for(const s of i)if(s.actions.length){n.push({kind:"header",group:s.group});for(const r of s.actions){const a=s.group;n.push({kind:"action",item:r,group:r.action.isAI?{title:a.title,kind:a.kind,icon:ae.sparkle}:a,label:r.action.title,disabled:!!r.action.disabled,keybinding:t(r.action)})}}return n}var mme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},p7=function(o,e){return function(t,i){e(t,i,o)}},sM,Qf;(function(o){o.Hidden={type:0};class e{constructor(i,n,s,r){this.actions=i,this.trigger=n,this.editorPosition=s,this.widgetPosition=r,this.type=1}}o.Showing=e})(Qf||(Qf={}));let Dg=sM=class extends H{constructor(e,t,i){super(),this._editor=e,this._keybindingService=t,this._onClick=this._register(new F),this.onClick=this._onClick.event,this._state=Qf.Hidden,this._iconClasses=[],this._domNode=ie("div.lightBulbWidget"),this._register(zt.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(n=>{const s=this._editor.getModel();(this.state.type!==1||!s||this.state.editorPosition.lineNumber>=s.getLineCount())&&this.hide()})),this._register(Pq(this._domNode,n=>{if(this.state.type!==1)return;this._editor.focus(),n.preventDefault();const{top:s,height:r}=Fi(this._domNode),a=this._editor.getOption(67);let l=Math.floor(a/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(n.buttons&1)===1&&this.hide()})),this._register(le.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,()=>{var n,s,r,a;this._preferredKbLabel=(s=(n=this._keybindingService.lookupKeybinding(VH))===null||n===void 0?void 0:n.getLabel())!==null&&s!==void 0?s:void 0,this._quickFixKbLabel=(a=(r=this._keybindingService.lookupKeybinding(wP))===null||r===void 0?void 0:r.getLabel())!==null&&a!==void 0?a:void 0,this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();if(!this._editor.getOptions().get(65).enabled)return this.hide();const s=this._editor.getModel();if(!s)return this.hide();const{lineNumber:r,column:a}=s.validatePosition(i),l=s.getOptions().tabSize,d=this._editor.getOptions().get(50),c=s.getLineContent(r),h=CL(c,l),u=d.spaceWidth*h>22,g=_=>_>2&&this._editor.getTopForLineNumber(_)===this._editor.getTopForLineNumber(_-1);let f=r,p=1;if(!u){if(r>1&&!g(r-1))f-=1;else if(r=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},oM=function(o,e){return function(t,i){e(t,i,o)}};const jH="acceptSelectedCodeAction",KH="previewSelectedCodeAction";class pme{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,s;i.text.textContent=(s=(n=e.group)===null||n===void 0?void 0:n.title)!==null&&s!==void 0?s:""}disposeTemplate(e){}}let rM=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");i.className="title",e.append(i);const n=new Op(e,eo);return{container:e,icon:t,text:i,keybinding:n}}renderElement(e,t,i){var n,s,r;if(!((n=e.group)===null||n===void 0)&&n.icon?(i.icon.className=Ae.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=ge(e.group.icon.color.id))):(i.icon.className=Ae.asClassName(ae.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=qH(e.label),i.keybinding.set(e.keybinding),Yq(!!e.keybinding,i.keybinding.element);const a=(s=this._keybindingService.lookupKeybinding(jH))===null||s===void 0?void 0:s.getLabel(),l=(r=this._keybindingService.lookupKeybinding(KH))===null||r===void 0?void 0:r.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview&&e.canPreview?i.container.title=m({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",a,l):i.container.title=m({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",a):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};rM=$H([oM(1,Tt)],rM);class _me extends UIEvent{constructor(){super("acceptSelectedAction")}}class _7 extends UIEvent{constructor(){super("previewSelectedAction")}}function vme(o){if(o.kind==="action")return o.label}let aM=class extends H{constructor(e,t,i,n,s,r){super(),this._delegate=n,this._contextViewService=s,this._keybindingService=r,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new Si),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new Bo(e,this.domNode,a,[new rM(t,this._keybindingService),new pme],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:vme},accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let d=l.label?qH(l==null?void 0:l.label):"";return l.disabled&&(d=m({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",d,l.disabled)),d}return null},getWidgetAriaLabel:()=>m({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(jg),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this.onFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter(l=>l.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);let s=e;if(this._allMenuItems.length>=50)s=380;else{const l=this._allMenuItems.map((d,c)=>{const h=this.domNode.ownerDocument.getElementById(this._list.getElementID(c));if(h){h.style.width="auto";const u=h.getBoundingClientRect().width;return h.style.width="",u}return 0});s=Math.max(...l,e)}const a=Math.min(n,this.domNode.ownerDocument.body.clientHeight*.7);return this._list.layout(a,s),this.domNode.style.height=`${a}px`,this._list.domFocus(),s}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(t.length===0)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const s=e?new _7:new _me;this._list.setSelection([i],s)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof _7):this._list.setSelection([])}onFocus(){var e,t;const i=this._list.getFocus();if(i.length===0)return;const n=i[0],s=this._list.element(n);(t=(e=this._delegate).onFocus)===null||t===void 0||t.call(e,s.item)}onListHover(e){return M(this,null,function*(){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&t.kind==="action"){const i=yield this._delegate.onHover(t.item,this.cts.token);t.canPreview=i?i.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus(typeof e.index=="number"?[e.index]:[])})}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};aM=$H([oM(4,sc),oM(5,Tt)],aM);function qH(o){return o.replace(/\r\n|\r|\n/g," ")}var bme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Wk=function(o,e){return function(t,i){e(t,i,o)}};T("actionBar.toggledBackground",{dark:Wu,light:Wu,hcDark:Wu,hcLight:Wu},m("actionBar.toggledBackground","Background color for toggled action items in action bar."));const xg={Visible:new he("codeActionMenuVisible",!1,m("codeActionMenuVisible","Whether the action widget list is visible"))},Yg=lt("actionWidgetService");let kg=class extends H{get isVisible(){return xg.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new hn)}show(e,t,i,n,s,r,a){const l=xg.Visible.bindTo(this._contextKeyService),d=this._instantiationService.createInstance(aM,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:c=>(l.set(!0),this._renderWidget(c,d,a!=null?a:[])),onHide:c=>{l.reset(),this._onWidgetClosed(c)}},r,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,i){var n;const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,this._list.value)s.appendChild(this._list.value.domNode);else throw new Error("List has no value");const r=new Q,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),r.add(j(l,re.MOUSE_DOWN,f=>f.stopPropagation()));const d=document.createElement("div"),c=e.appendChild(d);c.classList.add("context-view-pointerBlock"),r.add(j(c,re.POINTER_MOVE,()=>c.remove())),r.add(j(c,re.MOUSE_DOWN,()=>c.remove()));let h=0;if(i.length){const f=this._createActionBar(".action-widget-action-bar",i);f&&(s.appendChild(f.getContainer().parentElement),r.add(f),h=f.getContainer().offsetWidth)}const u=(n=this._list.value)===null||n===void 0?void 0:n.layout(h);s.style.width=`${u}px`;const g=r.add(wa(e));return r.add(g.onDidBlur(()=>this.hide())),r}_createActionBar(e,t){if(!t.length)return;const i=ie(e),n=new lr(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};kg=bme([Wk(0,sc),Wk(1,Oe),Wk(2,ke)],kg);ft(Yg,kg,1);const oC=1100;Ht(class extends Es{constructor(){super({id:"hideCodeActionWidget",title:pt("hideCodeActionWidget.title","Hide action widget"),precondition:xg.Visible,keybinding:{weight:oC,primary:9,secondary:[1033]}})}run(o){o.get(Yg).hide()}});Ht(class extends Es{constructor(){super({id:"selectPrevCodeAction",title:pt("selectPrevCodeAction.title","Select previous action"),precondition:xg.Visible,keybinding:{weight:oC,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(o){const e=o.get(Yg);e instanceof kg&&e.focusPrevious()}});Ht(class extends Es{constructor(){super({id:"selectNextCodeAction",title:pt("selectNextCodeAction.title","Select next action"),precondition:xg.Visible,keybinding:{weight:oC,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(o){const e=o.get(Yg);e instanceof kg&&e.focusNext()}});Ht(class extends Es{constructor(){super({id:jH,title:pt("acceptSelected.title","Accept selected action"),precondition:xg.Visible,keybinding:{weight:oC,primary:3,secondary:[2137]}})}run(o){const e=o.get(Yg);e instanceof kg&&e.acceptSelected()}});Ht(class extends Es{constructor(){super({id:KH,title:pt("previewSelected.title","Preview selected action"),precondition:xg.Visible,keybinding:{weight:oC,primary:2051}})}run(o){const e=o.get(Yg);e instanceof kg&&e.acceptSelected(!0)}});const GH=new he("supportedCodeAction",""),v7="_typescript.applyFixAllCodeAction";class Cme extends H{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new Fr),this._register(this._markerService.onMarkerChanged(s=>this._onMarkerChanges(s))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(i=>X2(i,t.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:ro.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(e.type===1)return t;const i=this._editor.getOption(65).enabled;if(i!==Dr.Off){{if(i===Dr.On)return t;if(i===Dr.OnCode){if(!t.isEmpty())return t;const s=this._editor.getModel(),{lineNumber:r,column:a}=t.getPosition(),l=s.getLineContent(r);if(l.length===0)return;if(a===1){if(/\s/.test(l[0]))return}else if(a===s.getLineMaxColumn(r)){if(/\s/.test(l[l.length-1]))return}else if(/\s/.test(l[a-2])&&/\s/.test(l[a-1]))return}}return t}}}var Fu;(function(o){o.Empty={type:0};class e{constructor(i,n,s){this.trigger=i,this.position=n,this._cancellablePromise=s,this.type=1,this.actions=s.catch(r=>{if(Ea(r))return ZH;throw r})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(Fu||(Fu={}));const ZH=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class wme extends H{constructor(e,t,i,n,s,r){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=s,this._configurationService=r,this._codeActionOracle=this._register(new hn),this._state=Fu.Empty,this._onDidChangeState=this._register(new F),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=GH.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._register(this._editor.onDidChangeConfiguration(a=>{a.hasChanged(65)&&this._update()})),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(Fu.Empty,!0))}_settingEnabledNearbyQuickfixes(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService?this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:t==null?void 0:t.uri}):!1}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(Fu.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(91)){const t=this._registry.all(e).flatMap(i=>{var n;return(n=i.providedCodeActionKinds)!==null&&n!==void 0?n:[]});this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new Cme(this._editor,this._markerService,i=>{var n;if(!i){this.setState(Fu.Empty);return}const s=i.selection.getStartPosition(),r=cn(d=>M(this,null,function*(){var c,h,u,g,f,p,_,v,b,C;if(this._settingEnabledNearbyQuickfixes()&&i.trigger.type===1&&(i.trigger.triggerAction===ro.QuickFix||!((h=(c=i.trigger.filter)===null||c===void 0?void 0:c.include)===null||h===void 0)&&h.contains(ai.QuickFix))){const w=yield Ev(this._registry,e,i.selection,i.trigger,Bd.None,d),S=[...w.allActions];if(d.isCancellationRequested)return ZH;const L=(u=w.validActions)===null||u===void 0?void 0:u.some(I=>I.action.kind?ai.QuickFix.contains(new At(I.action.kind)):!1),x=this._markerService.read({resource:e.uri});if(L){for(const I of w.validActions)!((f=(g=I.action.command)===null||g===void 0?void 0:g.arguments)===null||f===void 0)&&f.some(N=>typeof N=="string"&&N.includes(v7))&&(I.action.diagnostics=[...x.filter(N=>N.relatedInformation)]);return{validActions:w.validActions,allActions:S,documentation:w.documentation,hasAutoFix:w.hasAutoFix,hasAIFix:w.hasAIFix,allAIFixes:w.allAIFixes,dispose:()=>{w.dispose()}}}else if(!L&&x.length>0){const I=i.selection.getPosition();let N=I,V=Number.MAX_VALUE;const O=[...w.validActions];for(const W of x){const q=W.endColumn,te=W.endLineNumber,ve=W.startLineNumber;if(te===I.lineNumber||ve===I.lineNumber){N=new B(te,q);const Se={type:i.trigger.type,triggerAction:i.trigger.triggerAction,filter:{include:!((p=i.trigger.filter)===null||p===void 0)&&p.include?(_=i.trigger.filter)===null||_===void 0?void 0:_.include:ai.QuickFix},autoApply:i.trigger.autoApply,context:{notAvailableMessage:((v=i.trigger.context)===null||v===void 0?void 0:v.notAvailableMessage)||"",position:N}},Re=new Ce(N.lineNumber,N.column,N.lineNumber,N.column),_e=yield Ev(this._registry,e,Re,Se,Bd.None,d);if(_e.validActions.length!==0){for(const He of _e.validActions)!((C=(b=He.action.command)===null||b===void 0?void 0:b.arguments)===null||C===void 0)&&C.some($e=>typeof $e=="string"&&$e.includes(v7))&&(He.action.diagnostics=[...x.filter($e=>$e.relatedInformation)]);w.allActions.length===0&&S.push(..._e.allActions),Math.abs(I.column-q)te.findIndex(ve=>ve.action.title===W.action.title)===q);return P.sort((W,q)=>W.action.isPreferred&&!q.action.isPreferred?-1:!W.action.isPreferred&&q.action.isPreferred||W.action.isAI&&!q.action.isAI?1:!W.action.isAI&&q.action.isAI?-1:0),{validActions:P,allActions:S,documentation:w.documentation,hasAutoFix:w.hasAutoFix,hasAIFix:w.hasAIFix,allAIFixes:w.allAIFixes,dispose:()=>{w.dispose()}}}}return Ev(this._registry,e,i.selection,i.trigger,Bd.None,d)}));i.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(r,250));const a=new Fu.Triggered(i.trigger,s,r);let l=!1;this._state.type===1&&(l=this._state.trigger.type===1&&a.type===1&&a.trigger.type===2&&this._state.position!==a.position),l||this.setState(a)},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:ro.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!this._disposed&&this._onDidChangeState.fire(e))}}var Sme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Gl=function(o,e){return function(t,i){e(t,i,o)}},xf;const yme="quickfix-edit-highlight";let Th=xf=class extends H{static get(e){return e.getContribution(xf.ID)}constructor(e,t,i,n,s,r,a,l,d,c){super(),this._commandService=a,this._configurationService=l,this._actionWidgetService=d,this._instantiationService=c,this._activeCodeActions=this._register(new hn),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new wme(this._editor,s.codeActionProvider,t,i,r,l)),this._register(this._model.onDidChangeState(h=>this.update(h))),this._lightBulbWidget=new Na(()=>{const h=this._editor.getContribution(Dg.ID);return h&&this._register(h.onClick(u=>this.showCodeActionsFromLightbulb(u.actions,u))),h}),this._resolver=n.createInstance(py),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){this._disposed=!0,super.dispose()}showCodeActionsFromLightbulb(e,t){return M(this,null,function*(){if(e.allAIFixes&&e.validActions.length===1){const i=e.validActions[0],n=i.action.command;n&&n.id==="inlineChat.start"&&n.arguments&&n.arguments.length>=1&&(n.arguments[0]=ue(K({},n.arguments[0]),{autoSend:!1})),yield this._applyCodeAction(i,!1,!1,Im.FromAILightbulb);return}yield this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})})}showCodeActions(e,t,i){return this.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n){var s;if(!this._editor.hasModel())return;(s=Ds.get(this._editor))===null||s===void 0||s.closeMessage();const r=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:r}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t,i,n){return M(this,null,function*(){try{yield this._instantiationService.invokeFunction(dme,e,n,{preview:i,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:ro.QuickFix,filter:{}})}})}update(e){return M(this,null,function*(){var t,i,n,s,r,a,l;if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let d;try{d=yield e.actions}catch(c){Ue(c);return}if(!this._disposed)if((i=this._lightBulbWidget.value)===null||i===void 0||i.update(d,e.trigger,e.position),e.trigger.type===1){if(!((n=e.trigger.filter)===null||n===void 0)&&n.include){const h=this.tryGetValidActionToApply(e.trigger,d);if(h){try{(s=this._lightBulbWidget.value)===null||s===void 0||s.hide(),yield this._applyCodeAction(h,!1,!1,Im.FromCodeActions)}finally{d.dispose()}return}if(e.trigger.context){const u=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,d);if(u&&u.action.disabled){(r=Ds.get(this._editor))===null||r===void 0||r.showMessage(u.action.disabled,e.trigger.context.position),d.dispose();return}}}const c=!!(!((a=e.trigger.filter)===null||a===void 0)&&a.include);if(e.trigger.context&&(!d.allActions.length||!c&&!d.validActions.length)){(l=Ds.get(this._editor))===null||l===void 0||l.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=d,d.dispose();return}this._activeCodeActions.value=d,this.showCodeActionList(d,this.toCoords(e.position),{includeDisabledActions:c,fromLightbulb:!1})}else this._actionWidgetService.isVisible?d.dispose():this._activeCodeActions.value=d})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:i})=>i.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,i){return M(this,null,function*(){const n=this._editor.createDecorationsCollection(),s=this._editor.getDomNode();if(!s)return;const r=i.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!r.length)return;const a=B.isIPosition(t)?this.toCoords(t):t,l={onSelect:(d,c)=>M(this,null,function*(){this._applyCodeAction(d,!0,!!c,Im.FromCodeActions),this._actionWidgetService.hide(),n.clear()}),onHide:()=>{var d;(d=this._editor)===null||d===void 0||d.focus(),n.clear()},onHover:(d,c)=>M(this,null,function*(){var h;if(c.isCancellationRequested)return;let u=!1;const g=d.action.kind;if(g){const f=new At(g);u=[ai.RefactorExtract,ai.RefactorInline,ai.RefactorRewrite].some(_=>_.contains(f))}return{canPreview:u||!!(!((h=d.action.edit)===null||h===void 0)&&h.edits.length)}}),onFocus:d=>{var c,h;if(d&&d.action){const u=d.action.ranges,g=d.action.diagnostics;if(n.clear(),u&&u.length>0){const f=g&&(g==null?void 0:g.length)>1?g.map(p=>({range:p,options:xf.DECORATION})):u.map(p=>({range:p,options:xf.DECORATION}));n.set(f)}else if(g&&g.length>0){const f=g.map(_=>({range:_,options:xf.DECORATION}));n.set(f);const p=g[0];if(p.startLineNumber&&p.startColumn){const _=(h=(c=this._editor.getModel())===null||c===void 0?void 0:c.getWordAtPosition({lineNumber:p.startLineNumber,column:p.startColumn}))===null||h===void 0?void 0:h.word;xl(m("editingNewSelection","Context: {0} at line {1} and column {2}.",_,p.startLineNumber,p.startColumn))}}}else n.clear()}};this._actionWidgetService.show("codeActionWidget",!0,fme(r,this._shouldShowHeaders(),this._resolver.getResolver()),l,a,s,this._getActionBarActions(e,t,i))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=Fi(this._editor.getDomNode()),n=i.left+t.left,s=i.top+t.top+t.height;return{x:n,y:s}}_shouldShowHeaders(){var e;const t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map(s=>{var r;return{id:s.id,label:s.title,tooltip:(r=s.tooltip)!==null&&r!==void 0?r:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(s.id,...(a=s.arguments)!==null&&a!==void 0?a:[])}}});return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:m("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:m("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};Th.ID="editor.contrib.codeActionController";Th.DECORATION=je.register({description:"quickfix-highlight",className:yme});Th=xf=Sme([Gl(1,Vl),Gl(2,Oe),Gl(3,ke),Gl(4,be),Gl(5,Gh),Gl(6,hi),Gl(7,it),Gl(8,Yg),Gl(9,ke)],Th);cr((o,e)=>{((n,s)=>{s&&e.addRule(`.monaco-editor ${n} { background-color: ${s}; }`)})(".quickfix-edit-highlight",o.getColor(wd));const i=o.getColor(zc);i&&e.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${ma(o.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`)});function rC(o){return Z.regex(GH.keys()[0],new RegExp("(\\s|^)"+Eo(o.value)+"\\b"))}const LP={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:m("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:m("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[m("args.schema.apply.first","Always apply the first returned code action."),m("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),m("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:m("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function Xg(o,e,t,i,n=ro.Default){if(o.hasModel()){const s=Th.get(o);s==null||s.manualTriggerAtCurrentPosition(e,n,t,i)}}class Lme extends fe{constructor(){super({id:wP,label:m("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:Z.and(E.writable,E.hasCodeActionsProvider),kbOpts:{kbExpr:E.textInputFocus,primary:2137,weight:100}})}run(e,t){return Xg(t,m("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,ro.QuickFix)}}class Dme extends en{constructor(){super({id:WH,precondition:Z.and(E.writable,E.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:LP}]}})}runEditorCommand(e,t,i){const n=dl.fromUser(i,{kind:At.Empty,apply:"ifSingle"});return Xg(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?m("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):m("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?m("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):m("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class xme extends fe{constructor(){super({id:HH,label:m("refactor.label","Refactor..."),alias:"Refactor...",precondition:Z.and(E.writable,E.hasCodeActionsProvider),kbOpts:{kbExpr:E.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:Z.and(E.writable,rC(ai.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:LP}]}})}run(e,t,i){const n=dl.fromUser(i,{kind:ai.Refactor,apply:"never"});return Xg(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?m("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):m("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):n.preferred?m("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):m("editor.action.refactor.noneMessage","No refactorings available"),{include:ai.Refactor.contains(n.kind)?n.kind:At.None,onlyIncludePreferredActions:n.preferred},n.apply,ro.Refactor)}}class kme extends fe{constructor(){super({id:zH,label:m("source.label","Source Action..."),alias:"Source Action...",precondition:Z.and(E.writable,E.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:Z.and(E.writable,rC(ai.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:LP}]}})}run(e,t,i){const n=dl.fromUser(i,{kind:ai.Source,apply:"never"});return Xg(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?m("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):m("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?m("editor.action.source.noneMessage.preferred","No preferred source actions available"):m("editor.action.source.noneMessage","No source actions available"),{include:ai.Source.contains(n.kind)?n.kind:At.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,ro.SourceAction)}}class Ime extends fe{constructor(){super({id:SP,label:m("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:Z.and(E.writable,rC(ai.SourceOrganizeImports)),kbOpts:{kbExpr:E.textInputFocus,primary:1581,weight:100}})}run(e,t){return Xg(t,m("editor.action.organize.noneMessage","No organize imports action available"),{include:ai.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",ro.OrganizeImports)}}class Eme extends fe{constructor(){super({id:yP,label:m("fixAll.label","Fix All"),alias:"Fix All",precondition:Z.and(E.writable,rC(ai.SourceFixAll))})}run(e,t){return Xg(t,m("fixAll.noneMessage","No fix all action available"),{include:ai.SourceFixAll,includeSourceActions:!0},"ifSingle",ro.FixAll)}}class Nme extends fe{constructor(){super({id:VH,label:m("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:Z.and(E.writable,rC(ai.QuickFix)),kbOpts:{kbExpr:E.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return Xg(t,m("editor.action.autoFix.noneMessage","No auto fixes available"),{include:ai.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",ro.AutoFix)}}Ct(Th.ID,Th,3);Ct(Dg.ID,Dg,4);ee(Lme);ee(xme);ee(kme);ee(Ime);ee(Nme);ee(Eme);ce(new Dme);ui.as(Ma.Configuration).registerConfiguration(ue(K({},NL),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:m("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}));ui.as(Ma.Configuration).registerConfiguration(ue(K({},NL),{properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:m("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}}));class lM{constructor(){this.lenses=[],this._disposables=new Q}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function YH(o,e,t){return M(this,null,function*(){const i=o.ordered(e),n=new Map,s=new lM,r=i.map((a,l)=>M(this,null,function*(){n.set(a,l);try{const d=yield Promise.resolve(a.provideCodeLenses(e,t));d&&s.add(d,a)}catch(d){Ti(d)}}));return yield Promise.all(r),s.lenses=s.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),s})}gt.registerCommand("_executeCodeLensProvider",function(o,...e){let[t,i]=e;wt(Me.isUri(t)),wt(typeof i=="number"||!i);const{codeLensProvider:n}=o.get(be),s=o.get(li).getModel(t);if(!s)throw tr();const r=[],a=new Q;return YH(n,s,at.None).then(l=>{a.add(l);const d=[];for(const c of l.lenses)i==null||c.symbol.command?r.push(c.symbol):i-- >0&&c.provider.resolveCodeLens&&d.push(Promise.resolve(c.provider.resolveCodeLens(s,c.symbol,at.None)).then(h=>r.push(h||c.symbol)));return Promise.all(d)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var Tme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Mme=function(o,e){return function(t,i){e(t,i,o)}};const XH=lt("ICodeLensCache");class b7{constructor(e,t){this.lineCount=e,this.data=t}}let dM=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Wl(20,.75);const t="codelens/cache";N_(Rt,()=>e.remove(t,1));const i="codelens/cache2",n=e.get(i,1,"{}");this._deserialize(n),le.once(e.onWillSaveState)(s=>{s.reason===Mb.SHUTDOWN&&e.store(i,this._serialize(),1,1)})}put(e,t){const i=t.lenses.map(r=>{var a;return{range:r.symbol.range,command:r.symbol.command&&{id:"",title:(a=r.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new lM;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new b7(e.getLineCount(),n);this._cache.set(e.uri.toString(),s)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const s of i.data.lenses)n.add(s.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const i in t){const n=t[i],s=[];for(const a of n.lines)s.push({range:new D(a,1,a,11)});const r=new lM;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new b7(n.lineCount,r))}}catch(t){}}};dM=Tme([Mme(0,Wr)],dM);ft(XH,dM,1);class Rme{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class Xb{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${Xb._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let s=0;s{d.symbol.command&&l.push(d.symbol),i.addDecoration({range:d.symbol.range,options:C7},h=>this._decorationIds[c]=h),a?a=D.plusRange(a,d.symbol.range):a=D.lift(d.symbol.range)}),this._viewZone=new Rme(a.startLineNumber-1,s,r),this._viewZoneId=n.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new Xb(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(i&&D.isEmpty(n.range)===i.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((i,n)=>{t.addDecoration({range:i.symbol.range,options:C7},s=>this._decorationIds[n]=s)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},b_=function(o,e){return function(t,i){e(t,i,o)}};let gp=class{constructor(e,t,i,n,s,r){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=s,this._codeLensCache=r,this._disposables=new Q,this._localToDispose=new Q,this._lenses=[],this._oldCodeLensModels=new Q,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new Pt(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(50)||a.hasChanged(19)||a.hasChanged(18))&&this._updateLensStyle(),a.hasChanged(17)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let t=this._editor.getOption(19);return(!t||t<5)&&(t=this._editor.getOption(52)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),n=this._editor.getOption(50),{style:s}=this._editor.getContainerDomNode();s.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),s.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),s.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(s.setProperty("--vscode-editorCodeLens-fontFamily",i),s.setProperty("--vscode-editorCodeLens-fontFamilyDefault",Vs.fontFamily)),this._editor.changeViewZones(r=>{for(const a of this._lenses)a.updateHeight(e,r)})}_localDispose(){var e,t,i;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(i=this._currentCodeLensModel)===null||i===void 0||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e||!this._editor.getOption(17)||e.isTooLargeForTokenization())return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&wh(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3,this._localToDispose);return}for(const n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){const s=n.onDidChange(()=>i.schedule());this._localToDispose.add(s)}const i=new Pt(()=>{var n;const s=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=cn(r=>YH(this._languageFeaturesService.codeLensProvider,e,r)),this._getCodeLensModelPromise.then(r=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=r,this._codeLensCache.put(e,r);const a=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=a,this._renderCodeLensSymbols(r),this._resolveCodeLensesInViewportSoon()},Ue)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add(xe(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{var n;this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{const a=[];let l=-1;this._lenses.forEach(c=>{!c.isValid()||l===c.getLineNumber()?a.push(c):(c.update(r),l=c.getLineNumber())});const d=new Vk;a.forEach(c=>{c.dispose(d,r),this._lenses.splice(this._lenses.indexOf(c),1)}),d.commit(s)})}),i.schedule(),this._resolveCodeLensesScheduler.cancel(),(n=this._resolveCodeLensesPromise)===null||n===void 0||n.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidBlurEditorText(()=>{i.cancel()})),this._localToDispose.add(this._editor.onDidScrollChange(n=>{n.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(xe(()=>{if(this._editor.getModel()){const n=ka.capture(this._editor);this._editor.changeDecorations(s=>{this._editor.changeViewZones(r=>{this._disposeAllLenses(s,r)})}),n.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(n=>{if(n.target.type!==9)return;let s=n.target.element;if((s==null?void 0:s.tagName)==="SPAN"&&(s=s.parentElement),(s==null?void 0:s.tagName)==="A")for(const r of this._lenses){const a=r.getCommand(s);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),i.schedule()}_disposeAllLenses(e,t){const i=new Vk;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const a of e.lenses){const l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],i.push(n)))}if(!i.length&&!this._lenses.length)return;const s=ka.capture(this._editor),r=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{const d=new Vk;let c=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),c++,h++)}for(;cthis._resolveCodeLensesInViewportSoon())),h++;d.commit(a)})}),s.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],n=[];if(this._lenses.forEach(a=>{const l=a.computeIfNecessary(t);l&&(i.push(l),n.push(a))}),i.length===0)return;const s=Date.now(),r=cn(a=>{const l=i.map((d,c)=>{const h=new Array(d.length),u=d.map((g,f)=>!g.symbol.command&&typeof g.provider.resolveCodeLens=="function"?Promise.resolve(g.provider.resolveCodeLens(t,g.symbol,a)).then(p=>{h[f]=p},Ti):(h[f]=g.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[c].isDisposed()&&n[c].updateCommands(h)})});return Promise.all(l)});this._resolveCodeLensesPromise=r,this._resolveCodeLensesPromise.then(()=>{const a=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{Ue(a),r===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return M(this,null,function*(){var e;return yield this._getCodeLensModelPromise,yield this._resolveCodeLensesPromise,!((e=this._currentCodeLensModel)===null||e===void 0)&&e.isDisposed?void 0:this._currentCodeLensModel})}};gp.ID="css.editor.codeLens";gp=Ame([b_(1,be),b_(2,hr),b_(3,hi),b_(4,Bi),b_(5,XH)],gp);Ct(gp.ID,gp,1);ee(class extends fe{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:E.hasCodeLensProvider,label:m("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return M(this,null,function*(){if(!t.hasModel())return;const i=e.get(Aa),n=e.get(hi),s=e.get(Bi),r=t.getSelection().positionLineNumber,a=t.getContribution(gp.ID);if(!a)return;const l=yield a.getModel();if(!l)return;const d=[];for(const u of l.lenses)u.symbol.command&&u.symbol.range.startLineNumber===r&&d.push({label:u.symbol.command.title,command:u.symbol.command});if(d.length===0)return;const c=yield i.pick(d,{canPickMany:!1,placeHolder:m("placeHolder","Select a command")});if(!c)return;let h=c.command;if(l.isDisposed){const u=yield a.getModel(),g=u==null?void 0:u.lenses.find(f=>{var p;return f.symbol.range.startLineNumber===r&&((p=f.symbol.command)===null||p===void 0?void 0:p.title)===h.title});if(!g||!g.symbol.command)return;h=g.symbol.command}try{yield n.executeCommand(h.id,...h.arguments||[])}catch(u){s.error(u)}})}});var Pme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Hk=function(o,e){return function(t,i){e(t,i,o)}};class DP{constructor(e,t){this._editorWorkerClient=new I2(e,!1,"editorWorkerService",t)}provideDocumentColors(e,t){return M(this,null,function*(){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)})}provideColorPresentations(e,t,i){const n=t.range,s=t.color,r=s.alpha,a=new U(new mt(Math.round(255*s.red),Math.round(255*s.green),Math.round(255*s.blue),r)),l=r?U.Format.CSS.formatRGB(a):U.Format.CSS.formatRGBA(a),d=r?U.Format.CSS.formatHSL(a):U.Format.CSS.formatHSLA(a),c=r?U.Format.CSS.formatHex(a):U.Format.CSS.formatHexA(a),h=[];return h.push({label:l,textEdit:{range:n,text:l}}),h.push({label:d,textEdit:{range:n,text:d}}),h.push({label:c,textEdit:{range:n,text:c}}),h}}let cM=class extends H{constructor(e,t,i){super(),this._register(i.colorProvider.register("*",new DP(e,t)))}};cM=Pme([Hk(0,li),Hk(1,jt),Hk(2,be)],cM);tC(cM);function QH(o,e,t,i=!0){return M(this,null,function*(){return xP(new Ome,o,e,t,i)})}function JH(o,e,t,i){return Promise.resolve(t.provideColorPresentations(o,e,i))}class Ome{constructor(){}compute(e,t,i,n){return M(this,null,function*(){const s=yield e.provideDocumentColors(t,i);if(Array.isArray(s))for(const r of s)n.push({colorInfo:r,provider:e});return Array.isArray(s)})}}class Fme{constructor(){}compute(e,t,i,n){return M(this,null,function*(){const s=yield e.provideDocumentColors(t,i);if(Array.isArray(s))for(const r of s)n.push({range:r.range,color:[r.color.red,r.color.green,r.color.blue,r.color.alpha]});return Array.isArray(s)})}}class Bme{constructor(e){this.colorInfo=e}compute(e,t,i,n){return M(this,null,function*(){const s=yield e.provideColorPresentations(t,this.colorInfo,at.None);return Array.isArray(s)&&n.push(...s),Array.isArray(s)})}}function xP(o,e,t,i,n){return M(this,null,function*(){let s=!1,r;const a=[],l=e.ordered(t);for(let d=l.length-1;d>=0;d--){const c=l[d];if(c instanceof DP)r=c;else try{(yield o.compute(c,t,i,a))&&(s=!0)}catch(h){Ti(h)}}return s?a:r&&n?(yield o.compute(r,t,i,a),a):[]})}function ez(o,e){const{colorProvider:t}=o.get(be),i=o.get(li).getModel(e);if(!i)throw tr();const n=o.get(it).getValue("editor.defaultColorDecorators",{resource:e});return{model:i,colorProviderRegistry:t,isDefaultColorDecoratorsEnabled:n}}gt.registerCommand("_executeDocumentColorProvider",function(o,...e){const[t]=e;if(!(t instanceof Me))throw tr();const{model:i,colorProviderRegistry:n,isDefaultColorDecoratorsEnabled:s}=ez(o,t);return xP(new Fme,n,i,at.None,s)});gt.registerCommand("_executeColorPresentationProvider",function(o,...e){const[t,i]=e,{uri:n,range:s}=i;if(!(n instanceof Me)||!Array.isArray(t)||t.length!==4||!D.isIRange(s))throw tr();const{model:r,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:l}=ez(o,n),[d,c,h,u]=t;return xP(new Bme({range:s,color:{red:d,green:c,blue:h,alpha:u}}),a,r,at.None,l)});var Wme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},zk=function(o,e){return function(t,i){e(t,i,o)}},hM;const tz=Object.create({});let Mh=hM=class extends H{constructor(e,t,i,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new Q),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new P0(this._editor),this._decoratorLimitReporter=new Vme,this._colorDecorationClassRefs=this._register(new Q),this._debounceInformation=n.for(i.colorProvider,"Document Colors",{min:hM.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()})),this._register(e.onDidChangeModelLanguage(()=>this.updateColors())),this._register(i.colorProvider.onDidChange(()=>this.updateColors())),this._register(e.onDidChangeConfiguration(s=>{const r=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147);const a=r!==this._isColorDecoratorsEnabled||s.hasChanged(21),l=s.hasChanged(147);(a||l)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&typeof i=="object"){const n=i.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new Fr,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){return M(this,null,function*(){this._computePromise=cn(e=>M(this,null,function*(){const t=this._editor.getModel();if(!t)return[];const i=new Bn(!1),n=yield QH(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),n}));try{const e=yield this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){Ue(e)}})}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(i=>({range:{startLineNumber:i.colorInfo.range.startLineNumber,startColumn:i.colorInfo.range.startColumn,endLineNumber:i.colorInfo.range.endLineNumber,endColumn:i.colorInfo.range.endColumn},options:je.EMPTY}));this._editor.changeDecorations(i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,s)=>this._colorDatas.set(n,e[s]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(21);for(let s=0;sthis._colorDatas.has(n.id));return i.length===0?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};Mh.ID="editor.contrib.colorDetector";Mh.RECOMPUTE_TIME=1e3;Mh=hM=Wme([zk(1,it),zk(2,be),zk(3,hr)],Mh);class Vme{constructor(){this._onDidChange=new F,this._computed=0,this._limited=!1}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}}Ct(Mh.ID,Mh,1);class Hme{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new F,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new F,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new F,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let n=0;n{this.backgroundColor=r.getColor(rS)||U.white})),this._register(j(this._pickedColorNode,re.CLICK,()=>this.model.selectNextColorPresentation())),this._register(j(this._originalColorNode,re.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=U.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new Ume(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=U.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class Ume extends H{constructor(e){super(),this._onClicked=this._register(new F),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),J(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),J(this._button,t),J(t,yo(".button"+Ae.asCSSSelector(Ri("color-picker-close",ae.close,m("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(j(this._button,re.CLICK,()=>{this._onClicked.fire()}))}}class $me extends H{constructor(e,t,i,n=!1){super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=yo(".colorpicker-body"),J(e,this._domNode),this._saturationBox=new jme(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new Kme(this._domNode,this.model,n),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new qme(this._domNode,this.model,n),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),n&&(this._insertButton=this._register(new Gme(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new U(new cl(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new U(new cl(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=(1-e)*360;this.model.color=new U(new cl(i===360?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class jme extends H{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new F,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new F,this.onColorFlushed=this._onColorFlushed.event,this._domNode=yo(".saturation-wrap"),J(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",J(this._domNode,this._canvas),this.selection=yo(".saturation-selection"),J(this._domNode,this.selection),this.layout(),this._register(j(this._domNode,re.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new Np);const t=Fi(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>this.onDidChangePosition(n.pageX-t.left,n.pageY-t.top),()=>null);const i=j(e.target.ownerDocument,re.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new U(new cl(e.h,1,1,1)),i=this._canvas.getContext("2d"),n=i.createLinearGradient(0,0,this._canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const s=i.createLinearGradient(0,0,0,this._canvas.height);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=U.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=s,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}}class iz extends H{constructor(e,t,i=!1){super(),this.model=t,this._onDidChange=new F,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new F,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=J(e,yo(".standalone-strip")),this.overlay=J(this.domNode,yo(".standalone-overlay"))):(this.domNode=J(e,yo(".strip")),this.overlay=J(this.domNode,yo(".overlay"))),this.slider=J(this.domNode,yo(".slider")),this.slider.style.top="0px",this._register(j(this.domNode,re.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;const t=this._register(new Np),i=Fi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,s=>this.onDidChangeTop(s.pageY-i.top),()=>null);const n=j(e.target.ownerDocument,re.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class Kme extends iz{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:i,b:n}=e.rgba,s=new U(new mt(t,i,n,1)),r=new U(new mt(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${s} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class qme extends iz{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Gme extends H{constructor(e){super(),this._onClicked=this._register(new F),this.onClicked=this._onClicked.event,this._button=J(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(j(this._button,re.CLICK,()=>{this._onClicked.fire()}))}get button(){return this._button}}class Zme extends Fo{constructor(e,t,i,n,s=!1){super(),this.model=t,this.pixelRatio=i,this._register(Zv.getInstance(Ne(e)).onDidChange(()=>this.layout()));const r=yo(".colorpicker-widget");e.appendChild(r),this.header=this._register(new zme(r,this.model,n,s)),this.body=this._register(new $me(r,this.model,this.pixelRatio,s))}layout(){this.body.layout()}}var nz=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sz=function(o,e){return function(t,i){e(t,i,o)}};class Yme{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let _y=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return Vi.fromPromise(this._computeAsync(e,t,i))}_computeAsync(e,t,i){return M(this,null,function*(){if(!this._editor.hasModel())return[];const n=Mh.get(this._editor);if(!n)return[];for(const s of t){if(!n.isColorDecoration(s))continue;const r=n.getColorData(s.range.getStartPosition());if(r)return[yield oz(this,this._editor.getModel(),r.colorInfo,r.provider)]}return[]})}renderHoverParts(e,t){return rz(this,this._editor,this._themeService,t,e)}};_y=nz([sz(1,tn)],_y);class Xme{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n}}let Qb=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}createColorHover(e,t,i){return M(this,null,function*(){if(!this._editor.hasModel()||!Mh.get(this._editor))return null;const s=yield QH(i,this._editor.getModel(),at.None);let r=null,a=null;for(const h of s){const u=h.colorInfo;D.containsRange(u.range,e.range)&&(r=u,a=h.provider)}const l=r!=null?r:e,d=a!=null?a:t,c=!!r;return{colorHover:yield oz(this,this._editor.getModel(),l,d),foundInEditor:c}})}updateEditorModel(e){return M(this,null,function*(){if(!this._editor.hasModel())return;const t=e.model;let i=new D(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(yield ww(this._editor.getModel(),t,this._color,i,e),i=az(this._editor,i,t))})}renderHoverParts(e,t){return rz(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};Qb=nz([sz(1,tn)],Qb);function oz(o,e,t,i){return M(this,null,function*(){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,d=new mt(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),c=new U(d),h=yield JH(e,t,i,at.None),u=new Hme(c,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(c,n),o instanceof _y?new Yme(o,D.lift(t.range),u,i):new Xme(o,D.lift(t.range),u,i)})}function rz(o,e,t,i,n){if(i.length===0||!e.hasModel())return H.None;if(n.setMinimumDimensions){const u=e.getOption(67)+8;n.setMinimumDimensions(new St(302,u))}const s=new Q,r=i[0],a=e.getModel(),l=r.model,d=s.add(new Zme(n.fragment,l,e.getOption(143),t,o instanceof Qb));n.setColorPicker(d);let c=!1,h=new D(r.range.startLineNumber,r.range.startColumn,r.range.endLineNumber,r.range.endColumn);if(o instanceof Qb){const u=i[0].model.color;o.color=u,ww(a,l,u,h,r),s.add(l.onColorFlushed(g=>{o.color=g}))}else s.add(l.onColorFlushed(u=>M(this,null,function*(){yield ww(a,l,u,h,r),c=!0,h=az(e,h,l)})));return s.add(l.onDidChangeColor(u=>{ww(a,l,u,h,r)})),s.add(e.onDidChangeModelContent(u=>{c?c=!1:(n.hide(),e.focus())})),s}function az(o,e,t){var i,n;const s=[],r=(i=t.presentation.textEdit)!==null&&i!==void 0?i:{range:e,text:t.presentation.label,forceMoveMarkers:!1};s.push(r),t.presentation.additionalTextEdits&&s.push(...t.presentation.additionalTextEdits);const a=D.lift(r.range),l=o.getModel()._setTrackedRange(null,a,3);return o.executeEdits("colorpicker",s),o.pushUndoStop(),(n=o.getModel()._getTrackedRange(l))!==null&&n!==void 0?n:a}function ww(o,e,t,i,n){return M(this,null,function*(){const s=yield JH(o,{range:i,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},n.provider,at.None);e.colorPresentations=s||[]})}function uM(o,e){return!!o[e]}class Uk{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=uM(e.event,t.triggerModifier),this.hasSideBySideModifier=uM(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class S7{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=uM(e,t.triggerModifier)}}class p1{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function y7(o){return o==="altKey"?ot?new p1(57,"metaKey",6,"altKey"):new p1(5,"ctrlKey",6,"altKey"):ot?new p1(6,"altKey",57,"metaKey"):new p1(6,"altKey",5,"ctrlKey")}class fD extends H{constructor(e,t){var i;super(),this._onMouseMoveOrRelevantKeyDown=this._register(new F),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new F),this.onExecute=this._onExecute.event,this._onCancel=this._register(new F),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=(i=t==null?void 0:t.extractLineNumberFromMouseEvent)!==null&&i!==void 0?i:n=>n.target.position?n.target.position.lineNumber:0,this._opts=y7(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(n=>{if(n.hasChanged(78)){const s=y7(this._editor.getOption(78));if(this._opts.equals(s))return;this._opts=s,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(n=>this._onEditorMouseMove(new Uk(n,this._opts)))),this._register(this._editor.onMouseDown(n=>this._onEditorMouseDown(new Uk(n,this._opts)))),this._register(this._editor.onMouseUp(n=>this._onEditorMouseUp(new Uk(n,this._opts)))),this._register(this._editor.onKeyDown(n=>this._onEditorKeyDown(new S7(n,this._opts)))),this._register(this._editor.onKeyUp(n=>this._onEditorKeyUp(new S7(n,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(n=>this._onDidChangeCursorSelection(n))),this._register(this._editor.onDidChangeModel(n=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(n=>{(n.scrollTopChanged||n.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}var Qme=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Zl=function(o,e){return function(t,i){e(t,i,o)}};let Rh=class extends Xm{constructor(e,t,i,n,s,r,a,l,d,c,h,u,g){super(e,ue(K({},n.getRawOptions()),{overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()}),i,s,r,a,l,d,c,h,u,g),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration(f=>this._onParentConfigurationChanged(f)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){Fy(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Rh=Qme([Zl(4,ke),Zl(5,bt),Zl(6,hi),Zl(7,Oe),Zl(8,tn),Zl(9,Bi),Zl(10,dr),Zl(11,jt),Zl(12,be)],Rh);const L7=new U(new mt(0,122,204)),Jme={showArrow:!0,showFrame:!0,className:"",frameColor:L7,arrowColor:L7,keepEditorSelection:!1},epe="vs.editor.contrib.zoneWidget";class tpe{constructor(e,t,i,n,s,r,a,l){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this.showInHiddenAreas=a,this.ordinal=l,this._onDomNodeTop=s,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class ipe{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class mD{constructor(e){this._editor=e,this._ruleName=mD._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),LE(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){LE(this._ruleName),Zw(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:D.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}mD._IdGenerator=new LA(".arrow-decoration-");class npe{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new Q,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=sd(t),Fy(this.options,Jme,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(i=>{const n=this._getWidth(i);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(i)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new mD(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const i=e-this._decoratingElementsHeight();this.container.style.height=`${i}px`;const n=this.editor.getLayoutInfo();this._doLayout(i,this._getWidth(n))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=D.isIRange(e)?D.lift(e):D.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:je.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(67);let t=0;if(this.options.showArrow){const i=Math.round(e/3);t+=2*i}if(this.options.showFrame){const i=Math.round(e/9);t+=2*i}return t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),s=this._getWidth(n);this.domNode.style.width=`${s}px`,this.domNode.style.left=this._getLeft(n)+"px";const r=document.createElement("div");r.style.overflow="hidden";const a=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const u=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,u)}let l=0,d=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(d=Math.round(a/9)),this.editor.changeViewZones(u=>{this._viewZone&&u.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new tpe(r,i.lineNumber,i.column,t,g=>this._onViewZoneTop(g),g=>this._onViewZoneHeight(g),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=u.addZone(this._viewZone),this._overlayWidget=new ipe(epe+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const u=this.options.frameWidth?this.options.frameWidth:d;this.container.style.borderTopWidth=u+"px",this.container.style.borderBottomWidth=u+"px"}const c=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=c+"px",this.container.style.overflow="hidden"),this._doLayout(c,s),this.options.keepEditorSelection||this.editor.setSelection(e);const h=this.editor.getModel();if(h){const u=h.validateRange(new D(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(u,u.startLineNumber===h.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new Hn(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(67),n=i<0?Math.ceil(i):Math.floor(i),s=e.heightInLines+n;s>5&&s<35&&this._relayout(s)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var lz=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},dz=function(o,e){return function(t,i){e(t,i,o)}};const cz=lt("IPeekViewService");ft(cz,class{constructor(){this._widgets=new Map}addExclusiveWidget(o,e){const t=this._widgets.get(o);t&&(t.listener.dispose(),t.widget.dispose());const i=()=>{const n=this._widgets.get(o);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(o))};this._widgets.set(o,{widget:e,listener:e.onDidClose(i)})}},1);var $s;(function(o){o.inPeekEditor=new he("inReferenceSearchEditor",!0,m("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})($s||($s={}));let Jb=class{constructor(e,t){e instanceof Rh&&$s.inPeekEditor.bindTo(t)}dispose(){}};Jb.ID="editor.contrib.referenceController";Jb=lz([dz(1,Oe)],Jb);Ct(Jb.ID,Jb,0);function spe(o){const e=o.get(bt).getFocusedCodeEditor();return e instanceof Rh?e.getParentEditor():e}const ope={headerBackgroundColor:U.white,primaryHeadingColor:U.fromHex("#333333"),secondaryHeadingColor:U.fromHex("#6c6c6cb3")};let vy=class extends npe{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new F,this.onDidClose=this._onDidClose.event,Fy(this.options,ope,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=ie(".head"),this._bodyElement=ie(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=ie(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),wi(this._titleElement,"click",s=>this._onTitleClick(s))),J(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=ie("span.filename"),this._secondaryHeading=ie("span.dirname"),this._metaHeading=ie("span.meta"),J(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=ie(".peekview-actions");J(this._headElement,i);const n=this._getActionBarOptions();this._actionbarWidget=new lr(i,n),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new io("peekview.close",m("label.close","Close"),Ae.asClassName(ae.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:U6.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:Kn(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,Qs(this._metaHeading)):ms(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}const i=Math.ceil(this.editor.getOption(67)*1.2),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};vy=lz([dz(2,ke)],vy);const rpe=T("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:U.black,hcLight:U.white},m("peekViewTitleBackground","Background color of the peek view title area.")),hz=T("peekViewTitleLabel.foreground",{dark:U.white,light:U.black,hcDark:U.white,hcLight:Qo},m("peekViewTitleForeground","Color of the peek view title.")),uz=T("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},m("peekViewTitleInfoForeground","Color of the peek view title info.")),ape=T("peekView.border",{dark:Ws,light:Ws,hcDark:ct,hcLight:ct},m("peekViewBorder","Color of the peek view borders and arrow.")),lpe=T("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:U.black,hcLight:U.white},m("peekViewResultsBackground","Background color of the peek view result list."));T("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:U.white,hcLight:Qo},m("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));T("peekViewResult.fileForeground",{dark:U.white,light:"#1E1E1E",hcDark:U.white,hcLight:Qo},m("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));T("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},m("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list."));T("peekViewResult.selectionForeground",{dark:U.white,light:"#6C6C6C",hcDark:U.white,hcLight:Qo},m("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const Xc=T("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:U.black,hcLight:U.white},m("peekViewEditorBackground","Background color of the peek view editor."));T("peekViewEditorGutter.background",{dark:Xc,light:Xc,hcDark:Xc,hcLight:Xc},m("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));T("peekViewEditorStickyScroll.background",{dark:Xc,light:Xc,hcDark:Xc,hcLight:Xc},m("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));T("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},m("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));T("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},m("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));T("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:ei,hcLight:ei},m("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));class Ah{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=EN.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?m({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",t.value,rr(this.uri),this.range.startLineNumber,this.range.startColumn):m("aria.oneReference","in {0} on line {1} at column {2}",rr(this.uri),this.range.startLineNumber,this.range.startColumn)}}class dpe{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:s,endLineNumber:r,endColumn:a}=e,l=i.getWordUntilPosition({lineNumber:n,column:s-t}),d=new D(n,l.startColumn,n,s),c=new D(r,a,r,1073741824),h=i.getValueInRange(d).replace(/^\s+/,""),u=i.getValueInRange(e),g=i.getValueInRange(c).replace(/\s+$/,"");return{value:h+u+g,highlight:{start:h.length,end:h.length+u.length}}}}class e0{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new Ei}dispose(){$t(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?m("aria.fileReferences.1","1 symbol in {0}, full path {1}",rr(this.uri),this.uri.fsPath):m("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,rr(this.uri),this.uri.fsPath)}resolve(e){return M(this,null,function*(){if(this._previews.size!==0)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new dpe(i))}catch(i){Ue(i)}return this})}}class no{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new F,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;e.sort(no._compareReferences);let n;for(const s of e)if((!n||!ti.isEqual(n.uri,s.uri,!0))&&(n=new e0(this,s.uri),this.groups.push(n)),n.children.length===0||no._compareReferences(s,n.children[n.children.length-1])!==0){const r=new Ah(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){$t(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new no(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?m("aria.result.0","No results found"):this.references.length===1?m("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?m("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):m("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const s=i.children.length,r=i.parent.groups.length;return r===1||t&&n+10?(t?n=(n+1)%s:n=(n+s-1)%s,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((n,s)=>({idx:s,prefixLen:vh(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,s)=>n.prefixLen>s.prefixLen?-1:n.prefixLens.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&D.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return ti.compare(e.uri,t.uri)||D.compareRangesUsingStarts(e.range,t.range)}}var pD=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},_D=function(o,e){return function(t,i){e(t,i,o)}},gM;let fM=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof no||e instanceof e0}getChildren(e){if(e instanceof no)return e.groups;if(e instanceof e0)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};fM=pD([_D(0,Ks)],fM);class cpe{getHeight(){return 23}getTemplateId(e){return e instanceof e0?t0.id:aC.id}}let mM=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Ah){const i=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(i)return i.value}return rr(e.uri)}};mM=pD([_D(0,Tt)],mM);class hpe{getId(e){return e instanceof Ah?e.id:e.uri}}let pM=class extends H{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new XS(i,{supportHighlights:!0})),this.badge=new fT(J(i,ie(".count")),{},H6),e.appendChild(i)}set(e,t){const i=SL(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(m("referencesCount","{0} references",n)):this.badge.setTitleFormat(m("referenceCount","{0} reference",n))}};pM=pD([_D(1,ep)],pM);let t0=gM=class{constructor(e){this._instantiationService=e,this.templateId=gM.id}renderTemplate(e){return this._instantiationService.createInstance(pM,e)}renderElement(e,t,i){i.set(e.element,$0(e.filterData))}disposeTemplate(e){e.dispose()}};t0.id="FileReferencesRenderer";t0=gM=pD([_D(0,ke)],t0);class upe extends H{constructor(e){super(),this.label=this._register(new dh(e))}set(e,t){var i;const n=(i=e.parent.getPreview(e))===null||i===void 0?void 0:i.preview(e.range);if(!n||!n.value)this.label.set(`${rr(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{const{value:s,highlight:r}=n;t&&!pa.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(s,$0(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class aC{constructor(){this.templateId=aC.id}renderTemplate(e){return new upe(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}aC.id="OneReferenceRenderer";class gpe{getWidgetAriaLabel(){return m("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var fpe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Yl=function(o,e){return function(t,i){e(t,i,o)}};class vD{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new Q,this._callOnModelChange=new Q,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e){for(const t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],i=[];for(let n=0,s=e.children.length;n{const s=n.deltaDecorations([],t);for(let r=0;r{s.equals(9)&&(this._keybindingService.dispatchEvent(s,s.target),s.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(ppe,"ReferencesWidget",this._treeContainer,new cpe,[this._instantiationService.createInstance(t0),this._instantiationService.createInstance(aC)],this._instantiationService.createInstance(fM),i),this._splitView.addView({onDidChange:le.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:s=>{this._preview.layout({height:this._dim.height,width:s})}},jS.Distribute),this._splitView.addView({onDidChange:le.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:s=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${s}px`,this._tree.layout(this._dim.height,s)}},jS.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const n=(s,r)=>{s instanceof Ah&&(r==="show"&&this._revealReference(s,!1),this._onDidSelectReference.fire({element:s,kind:r,source:"tree"}))};this._tree.onDidOpen(s=>{s.sideBySide?n(s.element,"side"):s.editorOptions.pinned?n(s.element,"goto"):n(s.element,"show")}),ms(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new St(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=m("noResults","No results"),Qs(this._messageContainer),Promise.resolve(void 0)):(ms(this._messageContainer),this._decorationsManager=new vD(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:i}=e;if(t.detail!==2)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),Qs(this._treeContainer),Qs(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();if(e instanceof Ah)return e;if(e instanceof e0&&e.children.length>0)return e.children[0]}revealReference(e){return M(this,null,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return M(this,null,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==qe.inMemory?this.setTitle(mie(e.uri),this._uriLabel.getUriLabel(SL(e.uri))):this.setTitle(m("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const n=yield i;if(!this._model){n.dispose();return}$t(this._previewModelReference);const s=n.object;if(s){const r=this._preview.getModel()===s.textEditorModel?0:1,a=D.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(s.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,r)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};_M=fpe([Yl(3,tn),Yl(4,Ks),Yl(5,ke),Yl(6,cz),Yl(7,ep),Yl(8,yL),Yl(9,Tt),Yl(10,ii),Yl(11,jt)],_M);var _pe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ff=function(o,e){return function(t,i){e(t,i,o)}},Sw;const Qg=new he("referenceSearchVisible",!1,m("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Ph=Sw=class{static get(e){return e.getContribution(Sw.ID)}constructor(e,t,i,n,s,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=s,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new Q,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Qg.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const s="peekViewLayout",r=mpe.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(_M,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(m("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(s,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{const{element:d,kind:c}=l;if(d)switch(c){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(d,!1,!1);break;case"side":this.openReference(d,!0,!1);break;case"goto":i?this._gotoReference(d,!0):this.openReference(d,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var d;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(d=this._model)===null||d===void 0||d.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(m("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const c=this._editor.getModel().uri,h=new B(e.startLineNumber,e.startColumn),u=this._model.nearestReference(c,h);if(u)return this._widget.setSelection(u).then(()=>{this._widget&&this._editor.getOption(87)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return M(this,null,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),s=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n,!1),s?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()})}revealReference(e){return M(this,null,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,i;(t=this._widget)===null||t===void 0||t.dispose(),(i=this._model)===null||i===void 0||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;(i=this._widget)===null||i===void 0||i.hide(),this._ignoreModelChangeEvent=!0;const n=D.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then(s=>{var r;if(this._ignoreModelChangeEvent=!1,!s||!this._widget){this.closeWidget();return}if(this._editor===s)this._widget.show(n),this._widget.focusOnReferenceTree();else{const a=Sw.get(s),l=this._model.clone();this.closeWidget(),s.focus(),a==null||a.toggleWidget(n,cn(d=>Promise.resolve(l)),(r=this._peekMode)!==null&&r!==void 0?r:!1)}},s=>{this._ignoreModelChangeEvent=!1,Ue(s)})}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:s}=e;this._editorService.openCodeEditor({resource:n,options:{selection:s,selectionSource:"code.jump",pinned:i}},this._editor,t)}};Ph.ID="editor.contrib.referencesController";Ph=Sw=_pe([ff(2,Oe),ff(3,bt),ff(4,Bi),ff(5,ke),ff(6,Wr),ff(7,it)],Ph);function Jg(o,e){const t=spe(o);if(!t)return;const i=Ph.get(t);i&&e(i)}zs.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Gi(2089,60),when:Z.or(Qg,$s.inPeekEditor),handler(o){Jg(o,e=>{e.changeFocusBetweenPreviewAndReferences()})}});zs.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:Z.or(Qg,$s.inPeekEditor),handler(o){Jg(o,e=>{e.goToNextOrPreviousReference(!0)})}});zs.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:Z.or(Qg,$s.inPeekEditor),handler(o){Jg(o,e=>{e.goToNextOrPreviousReference(!1)})}});gt.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");gt.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");gt.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");gt.registerCommand("closeReferenceSearch",o=>Jg(o,e=>e.closeWidget()));zs.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:Z.and($s.inPeekEditor,Z.not("config.editor.stablePeek"))});zs.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:Z.and(Qg,Z.not("config.editor.stablePeek"),Z.or(E.editorTextFocus,vde.negate()))});zs.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:Z.and(Qg,cV,$A.negate(),jA.negate()),handler(o){var e;const i=(e=o.get(fr).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Ah&&Jg(o,n=>n.revealReference(i[0]))}});zs.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:Z.and(Qg,cV,$A.negate(),jA.negate()),handler(o){var e;const i=(e=o.get(fr).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Ah&&Jg(o,n=>n.openReference(i[0],!0,!0))}});gt.registerCommand("openReference",o=>{var e;const i=(e=o.get(fr).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(i)&&i[0]instanceof Ah&&Jg(o,n=>n.openReference(i[0],!1,!0))});var gz=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Z_=function(o,e){return function(t,i){e(t,i,o)}};const kP=new he("hasSymbols",!1,m("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),bD=lt("ISymbolNavigationService");let vM=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=kP.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new bM(this._editorService),n=i.onDidChange(s=>{if(this._ignoreEditorChange)return;const r=this._editorService.getActiveCodeEditor();if(!r)return;const a=r.getModel(),l=r.getPosition();if(!a||!l)return;let d=!1,c=!1;for(const h of t.references)if(X2(h.uri,a.uri))d=!0,c=c||D.containsPosition(h.range,l);else if(d)break;(!d||!c)&&this.reset()});this._currentState=Mr(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:D.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?m("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):m("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};vM=gz([Z_(0,Oe),Z_(1,bt),Z_(2,Bi),Z_(3,Tt)],vM);ft(bD,vM,1);ce(new class extends en{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:kP,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(bD).revealNext(e)}});zs.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:kP,primary:9,handler(o){o.get(bD).reset()}});let bM=class{constructor(e){this._listener=new Map,this._disposables=new Q,this._onDidChange=new F,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),$t(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Mr(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};bM=gz([Z_(0,bt)],bM);function lC(o,e,t,i){return M(this,null,function*(){const s=t.ordered(o).map(a=>Promise.resolve(i(a,o,e)).then(void 0,l=>{Ti(l)})),r=yield Promise.all(s);return va(r.flat())})}function CD(o,e,t,i){return lC(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function fz(o,e,t,i){return lC(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function mz(o,e,t,i){return lC(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function pz(o,e,t,i){return lC(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function wD(o,e,t,i,n){return lC(e,t,o,(s,r,a)=>M(this,null,function*(){const l=yield s.provideReferences(r,a,{includeDeclaration:!0},n);if(!i||!l||l.length!==2)return l;const d=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return d&&d.length===1?d:l}))}function dC(o){return M(this,null,function*(){const e=yield o(),t=new no(e,""),i=t.references.map(n=>n.link);return t.dispose(),i})}Bl("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(be),n=CD(i.definitionProvider,e,t,at.None);return dC(()=>n)});Bl("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(be),n=pz(i.typeDefinitionProvider,e,t,at.None);return dC(()=>n)});Bl("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(be),n=fz(i.declarationProvider,e,t,at.None);return dC(()=>n)});Bl("_executeReferenceProvider",(o,e,t)=>{const i=o.get(be),n=wD(i.referenceProvider,e,t,!1,at.None);return dC(()=>n)});Bl("_executeImplementationProvider",(o,e,t)=>{const i=o.get(be),n=mz(i.implementationProvider,e,t,at.None);return dC(()=>n)});var C_,w_,S_,_1,v1,b1,C1,w1;ln.appendMenuItem(k.EditorContext,{submenu:k.EditorContextPeek,title:m("peek.submenu","Peek"),group:"navigation",order:100});class fp{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof fp||B.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class is extends Ta{static all(){return is._allSymbolNavigationCommands.values()}static _patchConfig(e){const t=ue(K({},e),{f1:!0});if(t.menu)for(const i of ht.wrap(t.menu))(i.id===k.EditorContext||i.id===k.EditorContextPeek)&&(i.when=Z.and(e.precondition,i.when));return t}constructor(e,t){super(is._patchConfig(t)),this.configuration=e,is._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,n){if(!t.hasModel())return Promise.resolve(void 0);const s=e.get(Bi),r=e.get(bt),a=e.get(Gh),l=e.get(bD),d=e.get(be),c=e.get(ke),h=t.getModel(),u=t.getPosition(),g=fp.is(i)?i:new fp(h,u),f=new Nh(t,5),p=I0(this._getLocationModel(d,g.model,g.position,f.token),f.token).then(_=>M(this,null,function*(){var v;if(!_||f.token.isCancellationRequested)return;Us(_.ariaMessage);let b;if(_.referenceAt(h.uri,u)){const w=this._getAlternativeCommand(t);!is._activeAlternativeCommands.has(w)&&is._allSymbolNavigationCommands.has(w)&&(b=is._allSymbolNavigationCommands.get(w))}const C=_.references.length;if(C===0){if(!this.configuration.muteMessage){const w=h.getWordAtPosition(u);(v=Ds.get(t))===null||v===void 0||v.showMessage(this._getNoResultFoundMessage(w),u)}}else if(C===1&&b)is._activeAlternativeCommands.add(this.desc.id),c.invokeFunction(w=>b.runEditorCommand(w,t,i,n).finally(()=>{is._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(r,l,t,_,n)}),_=>{s.error(_)}).finally(()=>{f.dispose()});return a.showWhile(p,250),p}_onResult(e,t,i,n,s){return M(this,null,function*(){const r=this._getGoToPreference(i);if(!(i instanceof Rh)&&(this.configuration.openInPeek||r==="peek"&&n.references.length>1))this._openInPeek(i,n,s);else{const a=n.firstReference(),l=n.references.length>1&&r==="gotoAndPeek",d=yield this._openReference(i,e,a,this.configuration.openToSide,!l);l&&d?this._openInPeek(d,n,s):n.dispose(),r==="goto"&&t.put(a)}})}_openReference(e,t,i,n,s){return M(this,null,function*(){let r;if(_K(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const a=yield t.openCodeEditor({resource:i.uri,options:{selection:D.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(s){const l=a.getModel(),d=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&d.clear()},350)}return a}})}_openInPeek(e,t,i){const n=Ph.get(e);n&&e.hasModel()?n.toggleWidget(i!=null?i:e.getSelection(),cn(s=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}}is._allSymbolNavigationCommands=new Map;is._activeAlternativeCommands=new Set;class cC extends is{_getLocationModel(e,t,i,n){return M(this,null,function*(){return new no(yield CD(e.definitionProvider,t,i,n),m("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?m("noResultWord","No definition found for '{0}'",e.word):m("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}Ht((C_=class extends cC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:C_.id,title:ue(K({},pt("actions.goToDecl.label","Go to Definition")),{mnemonicTitle:m({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}),precondition:E.hasDefinitionProvider,keybinding:[{when:E.editorTextFocus,primary:70,weight:100},{when:Z.and(E.editorTextFocus,rV),primary:2118,weight:100}],menu:[{id:k.EditorContext,group:"navigation",order:1.1},{id:k.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),gt.registerCommandAlias("editor.action.goToDeclaration",C_.id)}},C_.id="editor.action.revealDefinition",C_));Ht((w_=class extends cC{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:w_.id,title:pt("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:Z.and(E.hasDefinitionProvider,E.isInEmbeddedEditor.toNegated()),keybinding:[{when:E.editorTextFocus,primary:Gi(2089,70),weight:100},{when:Z.and(E.editorTextFocus,rV),primary:Gi(2089,2118),weight:100}]}),gt.registerCommandAlias("editor.action.openDeclarationToTheSide",w_.id)}},w_.id="editor.action.revealDefinitionAside",w_));Ht((S_=class extends cC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:S_.id,title:pt("actions.previewDecl.label","Peek Definition"),precondition:Z.and(E.hasDefinitionProvider,$s.notInPeekEditor,E.isInEmbeddedEditor.toNegated()),keybinding:{when:E.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:k.EditorContextPeek,group:"peek",order:2}}),gt.registerCommandAlias("editor.action.previewDeclaration",S_.id)}},S_.id="editor.action.peekDefinition",S_));class _z extends is{_getLocationModel(e,t,i,n){return M(this,null,function*(){return new no(yield fz(e.declarationProvider,t,i,n),m("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?m("decl.noResultWord","No declaration found for '{0}'",e.word):m("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}Ht((_1=class extends _z{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:_1.id,title:ue(K({},pt("actions.goToDeclaration.label","Go to Declaration")),{mnemonicTitle:m({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}),precondition:Z.and(E.hasDeclarationProvider,E.isInEmbeddedEditor.toNegated()),menu:[{id:k.EditorContext,group:"navigation",order:1.3},{id:k.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?m("decl.noResultWord","No declaration found for '{0}'",e.word):m("decl.generic.noResults","No declaration found")}},_1.id="editor.action.revealDeclaration",_1));Ht(class extends _z{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:pt("actions.peekDecl.label","Peek Declaration"),precondition:Z.and(E.hasDeclarationProvider,$s.notInPeekEditor,E.isInEmbeddedEditor.toNegated()),menu:{id:k.EditorContextPeek,group:"peek",order:3}})}});class vz extends is{_getLocationModel(e,t,i,n){return M(this,null,function*(){return new no(yield pz(e.typeDefinitionProvider,t,i,n),m("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?m("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):m("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}Ht((v1=class extends vz{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:v1.ID,title:ue(K({},pt("actions.goToTypeDefinition.label","Go to Type Definition")),{mnemonicTitle:m({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}),precondition:E.hasTypeDefinitionProvider,keybinding:{when:E.editorTextFocus,primary:0,weight:100},menu:[{id:k.EditorContext,group:"navigation",order:1.4},{id:k.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},v1.ID="editor.action.goToTypeDefinition",v1));Ht((b1=class extends vz{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:b1.ID,title:pt("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:Z.and(E.hasTypeDefinitionProvider,$s.notInPeekEditor,E.isInEmbeddedEditor.toNegated()),menu:{id:k.EditorContextPeek,group:"peek",order:4}})}},b1.ID="editor.action.peekTypeDefinition",b1));class bz extends is{_getLocationModel(e,t,i,n){return M(this,null,function*(){return new no(yield mz(e.implementationProvider,t,i,n),m("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?m("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):m("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}Ht((C1=class extends bz{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:C1.ID,title:ue(K({},pt("actions.goToImplementation.label","Go to Implementations")),{mnemonicTitle:m({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")}),precondition:E.hasImplementationProvider,keybinding:{when:E.editorTextFocus,primary:2118,weight:100},menu:[{id:k.EditorContext,group:"navigation",order:1.45},{id:k.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},C1.ID="editor.action.goToImplementation",C1));Ht((w1=class extends bz{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:w1.ID,title:pt("actions.peekImplementation.label","Peek Implementations"),precondition:Z.and(E.hasImplementationProvider,$s.notInPeekEditor,E.isInEmbeddedEditor.toNegated()),keybinding:{when:E.editorTextFocus,primary:3142,weight:100},menu:{id:k.EditorContextPeek,group:"peek",order:5}})}},w1.ID="editor.action.peekImplementation",w1));class Cz extends is{_getNoResultFoundMessage(e){return e?m("references.no","No references found for '{0}'",e.word):m("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}Ht(class extends Cz{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:ue(K({},pt("goToReferences.label","Go to References")),{mnemonicTitle:m({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}),precondition:Z.and(E.hasReferenceProvider,$s.notInPeekEditor,E.isInEmbeddedEditor.toNegated()),keybinding:{when:E.editorTextFocus,primary:1094,weight:100},menu:[{id:k.EditorContext,group:"navigation",order:1.45},{id:k.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,i,n){return M(this,null,function*(){return new no(yield wD(e.referenceProvider,t,i,!0,n),m("ref.title","References"))})}});Ht(class extends Cz{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:pt("references.action.label","Peek References"),precondition:Z.and(E.hasReferenceProvider,$s.notInPeekEditor,E.isInEmbeddedEditor.toNegated()),menu:{id:k.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return M(this,null,function*(){return new no(yield wD(e.referenceProvider,t,i,!1,n),m("ref.title","References"))})}});class vpe extends is{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:pt("label.generic","Go to Any Symbol"),precondition:Z.and($s.notInPeekEditor,E.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return M(this,null,function*(){return new no(this._references,m("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&m("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}gt.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Me},{name:"position",description:"The position at which to start",constraint:B.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(o,e,t,i,n,s,r)=>M(void 0,null,function*(){wt(Me.isUri(e)),wt(B.isIPosition(t)),wt(Array.isArray(i)),wt(typeof n=="undefined"||typeof n=="string"),wt(typeof r=="undefined"||typeof r=="boolean");const a=o.get(bt),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(Rl(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(d=>{const c=new class extends vpe{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!s,openInPeek:!!r,openToSide:!1},i,n);d.get(ke).invokeFunction(c.run.bind(c),l)})})});gt.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Me},{name:"position",description:"The position at which to start",constraint:B.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:(o,e,t,i,n)=>M(void 0,null,function*(){o.get(hi).executeCommand("editor.action.goToLocations",e,t,i,n,void 0,!0)})});gt.registerCommand({id:"editor.action.findReferences",handler:(o,e,t)=>{wt(Me.isUri(e)),wt(B.isIPosition(t));const i=o.get(be),n=o.get(bt);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!Rl(s)||!s.hasModel())return;const r=Ph.get(s);if(!r)return;const a=cn(d=>wD(i.referenceProvider,s.getModel(),B.lift(t),!1,d).then(c=>new no(c,m("ref.title","References")))),l=new D(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(r.toggleWidget(l,a,!1))})}});gt.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var bpe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},$k=function(o,e){return function(t,i){e(t,i,o)}},Y_;let Ig=Y_=class{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new Q,this.toUnhookForKeyboard=new Q,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new fD(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown(([r,a])=>{this.startFindDefinitionFromMouse(r,a!=null?a:void 0)})),this.toUnhook.add(s.onExecute(r=>{this.isEnabled(r)&&this.gotoDefinition(r.target.position,r.hasSideBySideModifier).catch(a=>{Ue(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(s.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(Y_.ID)}startFindDefinitionFromCursor(e){return M(this,null,function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){return M(this,null,function*(){var t;this.toUnhookForKeyboard.clear();const i=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!i){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const n=new ZV(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=cn(a=>this.findDefinition(e,a));let s;try{s=yield this.previousPromise}catch(a){Ue(a);return}if(!s||!s.length||!n.validate(this.editor)){this.removeLinkDecorations();return}const r=s[0].originSelectionRange?D.lift(s[0].originSelectionRange):new D(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(s.length>1){let a=r;for(const{originSelectionRange:l}of s)l&&(a=D.plusRange(a,l));this.addDecoration(a,new Un().appendText(m("multipleResults","Click to show {0} definitions.",s.length)))}else{const a=s[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}const{object:{textEditorModel:d}}=l,{startLineNumber:c}=a.range;if(c<1||c>d.getLineCount()){l.dispose();return}const h=this.getPreviewValue(d,c,a),u=this.languageService.guessLanguageIdByFilepathOrFirstLine(d.uri);this.addDecoration(r,h?new Un().appendCodeblock(u||"",h):void 0),l.dispose()})}})}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=Y_.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let s=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{const n=!t&&this.editor.getOption(88)&&!this.isInPeekEditor(i);return new cC({openToSide:t,openInPeek:n,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(i)})}isInPeekEditor(e){const t=e.get(Oe);return $s.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};Ig.ID="editor.contrib.gotodefinitionatposition";Ig.MAX_SOURCE_PREVIEW_LINES=8;Ig=Y_=bpe([$k(1,Ks),$k(2,ii),$k(3,be)],Ig);Ct(Ig.ID,Ig,2);let Cpe=class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}};class wz extends H{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new F),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new Pt(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new Pt(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new Pt(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=iq(e=>this._computer.computeAsync(e)),M(this,null,function*(){try{try{for(var e=Ul(this._asyncIterable),t,i,n;t=!(i=yield e.next()).done;t=!1){const s=i.value;s&&(this._result.push(s),this._fireResult())}}catch(i){n=[i]}finally{try{t&&(i=e.return)&&(yield i.call(e))}finally{if(n)throw n[0]}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(s){Ue(s)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const e=this._state===0,t=this._state===4;this._onResult.fire(new Cpe(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}class jk{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}}class tg{constructor(e,t,i,n,s,r){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=s,this.supportsMarkerHover=r,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}}const Qh=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}};class IP{constructor(){this._onDidWillResize=new F,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new F,this.onDidResize=this._onDidResize.event,this._sashListener=new Q,this._size=new St(0,0),this._minSize=new St(0,0),this._maxSize=new St(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new Hn(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new Hn(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new Hn(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:US.North}),this._southSash=new Hn(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:US.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let e,t=0,i=0;this._sashListener.add(le.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{e===void 0&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)})),this._sashListener.add(le.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{e!==void 0&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(n=>{e&&(i=n.currentX-n.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(n=>{e&&(i=-(n.currentX-n.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(le.any(this._eastSash.onDidReset,this._westSash.onDidReset)(n=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(le.any(this._northSash.onDidReset,this._southSash.onDidReset)(n=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:n}=this._minSize,{height:s,width:r}=this._maxSize;e=Math.max(i,Math.min(s,e)),t=Math.max(n,Math.min(r,t));const a=new St(t,e);St.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}const wpe=30,Spe=24;class ype extends H{constructor(e,t=new St(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new IP),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=St.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(i=>{this._resize(new St(i.dimension.width,i.dimension.height)),i.done&&(this._isResizing=!1)})),this._register(this._resizableNode.onDidWillResize(()=>{this._isResizing=!0}))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){var e;return!((e=this._contentPosition)===null||e===void 0)&&e.position?B.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);return!t||!i?void 0:Fi(t).top+i.top-wpe}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;const n=Fi(t),s=qd(t.ownerDocument.body),r=n.top+i.top+i.height;return s.height-r-Spe}_findPositionPreference(e,t){var i,n;const s=Math.min((i=this._availableVerticalSpaceBelow(t))!==null&&i!==void 0?i:1/0,e),r=Math.min((n=this._availableVerticalSpaceAbove(t))!==null&&n!==void 0?n:1/0,e),a=Math.min(Math.max(r,s),e),l=Math.min(e,a);let d;return this._editor.getOption(60).above?d=l<=r?1:2:d=l<=s?2:1,d===1?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),d}_resize(e){this._resizableNode.layout(e.height,e.width)}}var EP=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},ju=function(o,e){return function(t,i){e(t,i,o)}},yw,qa;const D7=ie;let by=yw=class extends H{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._widget=this._register(this._instantiationService.createInstance(hh,this._editor)),this._participants=[];for(const n of Qh.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,s)=>n.hoverOrdinal-s.hoverOrdinal),this._computer=new wy(this._editor,this._participants),this._hoverOperation=this._register(new wz(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;const s=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new Sz(this._computer.anchor,s,n.isComplete))})),this._register(wi(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(fi.onDidChange(()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)}))}_startShowingOrUpdateHover(e,t,i,n,s){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):!1:this._editor.getOption(60).sticky&&s&&this._widget.isMouseGettingCloser(s.event.posx,s.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,s){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=s,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}_addLoadingMessage(e){if(this._computer.anchor){for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){const{showAtPosition:i,showAtSecondaryPosition:n,highlightRange:s}=yw.computeHoverRanges(this._editor,e.range,t),r=new Q,a=r.add(new Cy(this._keybindingService)),l=document.createDocumentFragment();let d=null;const c={fragment:l,statusBar:a,setColorPicker:u=>d=u,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:u=>this._widget.setMinimumDimensions(u),hide:()=>this.hide()};for(const u of this._participants){const g=t.filter(f=>f.owner===u);g.length>0&&r.add(u.renderHoverParts(c,g))}const h=t.some(u=>u.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(s){const u=this._editor.createDecorationsCollection();u.set([{range:s,options:yw._DECORATION_OPTIONS}]),r.add(xe(()=>{u.clear()}))}this._widget.showAt(l,new Dpe(e.initialMousePosX,e.initialMousePosY,d,i,n,this._editor.getOption(60).above,this._computer.shouldFocus,this._computer.source,h,r))}else r.dispose()}static computeHoverRanges(e,t,i){let n=1;if(e.hasModel()){const h=e._getViewModel(),u=h.coordinatesConverter,g=u.convertModelRangeToViewRange(t),f=new B(g.startLineNumber,h.getLineMinColumn(g.startLineNumber));n=u.convertViewPositionToModelPosition(f).column}const s=t.startLineNumber;let r=t.startColumn,a=i[0].range,l=null;for(const h of i)a=D.plusRange(a,h.range),h.range.startLineNumber===s&&h.range.endLineNumber===s&&(r=Math.max(Math.min(r,h.range.startColumn),n)),h.forceShowAtRange&&(l=h.range);const d=l?l.getStartPosition():new B(s,t.startColumn),c=l?l.getStartPosition():new B(s,r);return{showAtPosition:d,showAtSecondaryPosition:c,highlightRange:a}}showsOrWillShow(e){if(this._widget.isResizing)return!0;const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const s=n.suggestHoverAnchor(e);s&&t.push(s)}const i=e.target;if(i.type===6&&t.push(new jk(0,i.range,e.event.posx,e.event.posy)),i.type===7){const n=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&typeof i.detail.horizontalDistanceToText=="number"&&i.detail.horizontalDistanceToTexts.priority-n.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new jk(0,e,void 0,void 0),t,i,n,null)}containsNode(e){return e?this._widget.getDomNode().contains(e):!1}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){return this._widget.isColorPickerVisible}get isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}get isVisible(){return this._widget.isVisible}get isFocused(){return this._widget.isFocused}get isResizing(){return this._widget.isResizing}get widget(){return this._widget}};by._DECORATION_OPTIONS=je.register({description:"content-hover-highlight",className:"hoverHighlight"});by=yw=EP([ju(1,ke),ju(2,Tt)],by);class Sz{constructor(e,t,i){this.anchor=e,this.messages=t,this.isComplete=i}filter(e){const t=this.messages.filter(i=>i.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new Lpe(this,this.anchor,t,this.isComplete)}}class Lpe extends Sz{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class Dpe{constructor(e,t,i,n,s,r,a,l,d,c){this.initialMousePosX=e,this.initialMousePosY=t,this.colorPicker=i,this.showAtPosition=n,this.showAtSecondaryPosition=s,this.preferAbove=r,this.stoleFocus=a,this.source=l,this.isBeforeContent=d,this.disposables=c,this.closestMouseDistance=void 0}}const x7=30,Kk=10,xpe=6;let hh=qa=class extends ype{get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}get isVisible(){var e;return(e=this._hoverVisibleKey.get())!==null&&e!==void 0?e:!1}get isFocused(){var e;return(e=this._hoverFocusedKey.get())!==null&&e!==void 0?e:!1}constructor(e,t,i,n,s){const r=e.getOption(67)+8,a=150,l=new St(a,r);super(e,l),this._configurationService=i,this._accessibilityService=n,this._keybindingService=s,this._hover=this._register(new mA),this._minimumSize=l,this._hoverVisibleKey=E.hoverVisible.bindTo(t),this._hoverFocusedKey=E.hoverFocused.bindTo(t),J(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(c=>{c.hasChanged(50)&&this._updateFont()}));const d=this._register(wa(this._resizableNode.domNode));this._register(d.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(d.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setHoverData(void 0),this._editor.addContentWidget(this)}dispose(){var e;super.dispose(),(e=this._visibleData)===null||e===void 0||e.disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return qa.ID}static _applyDimensions(e,t,i){const n=typeof t=="number"?`${t}px`:t,s=typeof i=="number"?`${i}px`:i;e.style.width=n,e.style.height=s}_setContentsDomNodeDimensions(e,t){const i=this._hover.contentsDomNode;return qa._applyDimensions(i,e,t)}_setContainerDomNodeDimensions(e,t){const i=this._hover.containerDomNode;return qa._applyDimensions(i,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,i){const n=typeof t=="number"?`${t}px`:t,s=typeof i=="number"?`${i}px`:i;e.style.maxWidth=n,e.style.maxHeight=s}_setHoverWidgetMaxDimensions(e,t){qa._applyMaxDimensions(this._hover.contentsDomNode,e,t),qa._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth",typeof e=="number"?`${e}px`:e),this._layoutContentWidget()}_hasHorizontalScrollbar(){const e=this._hover.scrollbar.getScrollDimensions();return e.scrollWidth>e.width}_adjustContentsBottomPadding(){const e=this._hover.contentsDomNode,t=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;e.style.paddingBottom!==t&&(e.style.paddingBottom=t)}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,i=e.height;this._setHoverWidgetDimensions(t,i),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._setContentsDomNodeDimensions(t,i-Kk))}_updateResizableNodeMaxDimensions(){var e,t;const i=(e=this._findMaximumRenderingWidth())!==null&&e!==void 0?e:1/0,n=(t=this._findMaximumRenderingHeight())!==null&&t!==void 0?t:1/0;this._resizableNode.maxSize=new St(i,n),this._setHoverWidgetMaxDimensions(i,n)}_resize(e){var t,i;qa._lastDimensions=new St(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),(i=(t=this._visibleData)===null||t===void 0?void 0:t.colorPicker)===null||i===void 0||i.layout()}_findAvailableSpaceVertically(){var e;const t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition;if(t)return this._positionPreference===1?this._availableVerticalSpaceAbove(t):this._availableVerticalSpaceBelow(t)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=xpe;return Array.from(this._hover.contentsDomNode.children).forEach(i=>{t+=i.clientHeight}),this._hasHorizontalScrollbar()&&(t+=Kk),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const e=Array.from(this._hover.contentsDomNode.children).some(t=>t.scrollWidth>t.clientWidth);return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const e=this._isHoverTextOverflowing(),t=typeof this._contentWidth=="undefined"?0:this._contentWidth-2;return e||this._hover.containerDomNode.clientWidththis._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,n),!0)}_setHoverData(e){var t;(t=this._visibleData)===null||t===void 0||t.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_updateFont(){const{fontSize:e,lineHeight:t}=this._editor.getOption(50),i=this._hover.contentsDomNode;i.style.fontSize=`${e}px`,i.style.lineHeight=`${t/e}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(s=>this._editor.applyFontInfo(s))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,qa._lastDimensions.height),t=Math.max(this._editor.getLayoutInfo().width*.66,500,qa._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e,t){this._setHoverData(t),this._updateFont(),this._updateContent(e),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){var e;return this._visibleData?{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,positionAffinity:this._visibleData.isBeforeContent?3:void 0,preference:[(e=this._positionPreference)!==null&&e!==void 0?e:1]}:null}showAt(e,t){var i,n,s,r;if(!this._editor||!this._editor.hasModel())return;this._render(e,t);const a=_d(this._hover.containerDomNode),l=t.showAtPosition;this._positionPreference=(i=this._findPositionPreference(a,l))!==null&&i!==void 0?i:1,this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(n=t.colorPicker)===null||n===void 0||n.layout();const c=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&g6(this._configurationService.getValue("accessibility.verbosity.hover")===!0&&this._accessibilityService.isScreenReaderOptimized(),(r=(s=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))===null||s===void 0?void 0:s.getAriaLabel())!==null&&r!==void 0?r:"");c&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+c)}hide(){if(!this._visibleData)return;const e=this._visibleData.stoleFocus||this._hoverFocusedKey.get();this._setHoverData(void 0),this._resizableNode.maxSize=new St(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}_adjustHoverHeightForScrollbar(e){var t;const i=this._hover.containerDomNode,n=this._hover.contentsDomNode,s=(t=this._findMaximumRenderingHeight())!==null&&t!==void 0?t:1/0;this._setContainerDomNodeDimensions(us(i),Math.min(s,e)),this._setContentsDomNodeDimensions(us(n),Math.min(s,e-Kk))}setMinimumDimensions(e){this._minimumSize=new St(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const e=typeof this._contentWidth=="undefined"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new St(e,this._minimumSize.height)}onContentsChanged(){var e;this._removeConstraintsRenderNormally();const t=this._hover.containerDomNode;let i=_d(t),n=us(t);if(this._resizableNode.layout(i,n),this._setHoverWidgetDimensions(n,i),i=_d(t),n=us(t),this._contentWidth=n,this._updateMinimumWidth(),this._resizableNode.layout(i,n),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._adjustHoverHeightForScrollbar(i)),!((e=this._visibleData)===null||e===void 0)&&e.showAtPosition){const s=_d(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(s,this._visibleData.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-x7})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+x7})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};hh.ID="editor.contrib.resizableContentHoverWidget";hh._lastDimensions=new St(0,0);hh=qa=EP([ju(1,Oe),ju(2,it),ju(3,dr),ju(4,Tt)],hh);let Cy=class extends H{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=D7("div.hover-row.status-bar"),this.actionsElement=J(this.hoverElement,D7("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(xL.render(this.actionsElement,e,i))}append(e){const t=J(this.actionsElement,e);return this._hasContent=!0,t}};Cy=EP([ju(0,Tt)],Cy);class wy{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const s=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(r=>{if(r.options.isWholeLine)return!0;const a=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:s;if(r.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return Vi.EMPTY;const i=wy._getLineDecorations(this._editor,t);return Vi.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):Vi.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=wy._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return va(t)}}function k7(o,e,t,i,n,s){const r=t+n/2,a=i+s/2,l=Math.max(Math.abs(o-r)-n/2,0),d=Math.max(Math.abs(e-a)-s/2,0);return Math.sqrt(l*l+d*d)}const I7=ie;class Em extends H{constructor(e,t,i){super(),this._renderDisposeables=this._register(new Q),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new mA),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new El({editor:this._editor},t,i)),this._computer=new kpe(this._editor),this._hoverOperation=this._register(new wz(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(50)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return Em.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e,t){this._computer.lineNumber===e&&this._computer.lane===t||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._computer.lane=t,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const s=I7("div.hover-row.markdown-hover"),r=J(s,I7("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));r.appendChild(a.element),i.appendChild(s)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),s=this._editor.getOption(67),r=this._hover.containerDomNode.clientHeight,a=i-n-(r-s)/2,l=t.glyphMarginLeft+t.glyphMarginWidth+(this._computer.lane==="lineNo"?t.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${l}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}}Em.ID="editor.contrib.modesGlyphHoverWidget";class kpe{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=Dl.Center}computeSync(){var e,t;const i=a=>({value:a}),n=this._editor.getLineDecorations(this._lineNumber),s=[],r=this._laneOrLine==="lineNo";if(!n)return s;for(const a of n){const l=(t=(e=a.options.glyphMargin)===null||e===void 0?void 0:e.position)!==null&&t!==void 0?t:Dl.Center;if(!r&&l!==this._laneOrLine)continue;const d=r?a.options.lineNumberHoverMessage:a.options.glyphMarginHoverMessage;!d||Qm(d)||s.push(...VR(d).map(i))}return s}}class Ipe{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Epe(o,e,t,i,n){return M(this,null,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Tpe(s))return new Ipe(o,s,e)}catch(s){Ti(s)}})}function NP(o,e,t,i){const s=o.ordered(e).map((r,a)=>Epe(r,a,e,t,i));return Vi.fromPromises(s).coalesce()}function Npe(o,e,t,i){return NP(o,e,t,i).map(n=>n.hover).toPromise()}Bl("_executeHoverProvider",(o,e,t)=>{const i=o.get(be);return Npe(i.hoverProvider,e,t,at.None)});function Tpe(o){const e=typeof o.range!="undefined",t=typeof o.contents!="undefined"&&o.contents&&o.contents.length>0;return e&&t}var Mpe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},S1=function(o,e){return function(t,i){e(t,i,o)}};const E7=ie;class ra{constructor(e,t,i,n,s){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=s}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let Sy=class{constructor(e,t,i,n,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=s,this.hoverOrdinal=3}createLoadingMessage(e){return new ra(this,e.range,[new Un().appendText(m("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];let a=1e3;const l=i.getLineLength(n),d=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),c=this._editor.getOption(117),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:d});let u=!1;c>=0&&l>c&&e.range.startColumn>=c&&(u=!0,r.push(new ra(this,e.range,[{value:m("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!u&&typeof h=="number"&&l>=h&&r.push(new ra(this,e.range,[{value:m("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let g=!1;for(const f of t){const p=f.range.startLineNumber===n?f.range.startColumn:1,_=f.range.endLineNumber===n?f.range.endColumn:s,v=f.options.hoverMessage;if(!v||Qm(v))continue;f.options.beforeContentClassName&&(g=!0);const b=new D(e.range.startLineNumber,p,e.range.startLineNumber,_);r.push(new ra(this,b,VR(v),g,a++))}return r}computeAsync(e,t,i){if(!this._editor.hasModel()||e.type!==1)return Vi.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return Vi.EMPTY;const s=new B(e.range.startLineNumber,e.range.startColumn);return NP(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!Qm(r.hover.contents)).map(r=>{const a=r.hover.range?D.lift(r.hover.range):e.range;return new ra(this,a,r.hover.contents,!1,r.ordinal)})}renderHoverParts(e,t){return yz(e,t,this._editor,this._languageService,this._openerService)}};Sy=Mpe([S1(1,ii),S1(2,qs),S1(3,it),S1(4,be)],Sy);function yz(o,e,t,i,n){e.sort((r,a)=>r.ordinal-a.ordinal);const s=new Q;for(const r of e)for(const a of r.contents){if(Qm(a))continue;const l=E7("div.hover-row.markdown-hover"),d=J(l,E7("div.hover-contents")),c=s.add(new El({editor:t},i,n));s.add(c.onDidRenderAsync(()=>{d.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(c.render(a));d.appendChild(h.element),o.fragment.appendChild(l)}return s}var Lz=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},yy=function(o,e){return function(t,i){e(t,i,o)}};class N7{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let CM=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new F,this.onDidChange=this._onDidChange.event,this._dispoables=new Q,this._markers=[],this._nextIdx=-1,Me.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(a,l)=>{let d=Kv(a.resource.toString(),l.resource.toString());return d===0&&(n==="position"?d=D.compareRangesUsingStarts(a,l)||_i.compare(a.severity,l.severity):d=_i.compare(a.severity,l.severity)||D.compareRangesUsingStarts(a,l)),d},r=()=>{this._markers=this._markerService.read({resource:Me.isUri(e)?e:void 0,severities:_i.Error|_i.Warning|_i.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(r(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new N7(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,s=this._markers.findIndex(r=>r.resource.toString()===e.uri.toString());s<0&&(s=Bv(this._markers,{resource:e.uri},(r,a)=>Kv(r.resource.toString(),a.resource.toString())),s<0&&(s=~s));for(let r=s;rn.resource.toString()===e.toString());if(!(i<0)){for(;i=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},mf=function(o,e){return function(t,i){e(t,i,o)}},yM;class Ape{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new Q,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(wi(this._relatedBlock,"click",a=>{a.preventDefault();const l=this._relatedDiagnostics.get(a.target);l&&i(l)})),this._scrollable=new rW(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{r.style.left=`-${a.scrollLeft}px`,r.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){$t(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:s}=e;let r=((t==null?void 0:t.length)||0)+2;s&&(typeof s=="string"?r+=s.length:r+=s.value.length);const a=Ol(i);this._lines=a.length,this._longestLineLength=0;for(const u of a)this._longestLineLength=Math.max(u.length+r,this._longestLineLength);Kn(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(const u of a)l=document.createElement("div"),l.innerText=u,u===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||s){const u=document.createElement("span");if(u.classList.add("details"),l.appendChild(u),t){const g=document.createElement("span");g.innerText=t,g.classList.add("source"),u.appendChild(g)}if(s)if(typeof s=="string"){const g=document.createElement("span");g.innerText=`(${s})`,g.classList.add("code"),u.appendChild(g)}else{this._codeLink=ie("a.code-link"),this._codeLink.setAttribute("href",`${s.target.toString()}`),this._codeLink.onclick=f=>{this._openerService.open(s.target,{allowCommands:!0}),f.preventDefault(),f.stopPropagation()};const g=J(this._codeLink,ie("span"));g.innerText=s.value,u.appendChild(this._codeLink)}}if(Kn(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),jn(n)){const u=this._relatedBlock.appendChild(document.createElement("div"));u.style.paddingTop=`${Math.floor(this._editor.getOption(67)*.66)}px`,this._lines+=1;for(const g of n){const f=document.createElement("div"),p=document.createElement("a");p.classList.add("filename"),p.innerText=`${this._labelService.getUriBasenameLabel(g.resource)}(${g.startLineNumber}, ${g.startColumn}): `,p.title=this._labelService.getUriLabel(g.resource),this._relatedDiagnostics.set(p,g);const _=document.createElement("span");_.innerText=g.message,f.appendChild(p),f.appendChild(_),this._lines+=1,u.appendChild(f)}}const d=this._editor.getOption(50),c=Math.ceil(d.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=d.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case _i.Error:t=m("Error","Error");break;case _i.Warning:t=m("Warning","Warning");break;case _i.Info:t=m("Info","Info");break;case _i.Hint:t=m("Hint","Hint");break}let i=m("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let mp=yM=class extends vy{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new Q,this._onDidSelectRelatedInformation=new F,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=_i.Warning,this._backgroundColor=U.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Bpe);let t=LM,i=Ppe;this._severity===_i.Warning?(t=Lw,i=Ope):this._severity===_i.Info&&(t=DM,i=Fpe);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(hz),secondaryHeadingColor:e.getColor(uz)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(n=>this.editor.focus()));const t=[],i=this._menuService.createMenu(yM.TitleMenu,this._contextKeyService);HL(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=J(e,ie(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new Ape(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=D.lift(e),s=this.editor.getPosition(),r=s&&n.containsPosition(s)?s:n.getStartPosition();super.show(r,this.computeRequiredHeight());const a=this.editor.getModel();if(a){const l=i>1?m("problems","{0} of {1} problems",t,i):m("change","{0} of {1} problem",t,i);this.setTitle(rr(a.uri),l)}this._icon.className=`codicon ${SM.className(_i.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};mp.TitleMenu=new k("gotoErrorTitleMenu");mp=yM=Rpe([mf(1,tn),mf(2,qs),mf(3,Oo),mf(4,ke),mf(5,Oe),mf(6,ep)],mp);const T7=ab(ul,NX),M7=ab(ns,lb),R7=ab(Ws,db),LM=T("editorMarkerNavigationError.background",{dark:T7,light:T7,hcDark:ct,hcLight:ct},m("editorMarkerNavigationError","Editor marker navigation widget error color.")),Ppe=T("editorMarkerNavigationError.headerBackground",{dark:De(LM,.1),light:De(LM,.1),hcDark:null,hcLight:null},m("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),Lw=T("editorMarkerNavigationWarning.background",{dark:M7,light:M7,hcDark:ct,hcLight:ct},m("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Ope=T("editorMarkerNavigationWarning.headerBackground",{dark:De(Lw,.1),light:De(Lw,.1),hcDark:"#0C141F",hcLight:De(Lw,.2)},m("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),DM=T("editorMarkerNavigationInfo.background",{dark:R7,light:R7,hcDark:ct,hcLight:ct},m("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Fpe=T("editorMarkerNavigationInfo.headerBackground",{dark:De(DM,.1),light:De(DM,.1),hcDark:null,hcLight:null},m("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Bpe=T("editorMarkerNavigation.background",{dark:dn,light:dn,hcDark:dn,hcLight:dn},m("editorMarkerNavigationBackground","Editor marker navigation widget background."));var Wpe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},y1=function(o,e){return function(t,i){e(t,i,o)}},X_;let Oh=X_=class{static get(e){return e.getContribution(X_.ID)}constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new Q,this._editor=e,this._widgetVisible=xz.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(mp,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(i=>{var n,s,r;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!D.containsPosition((s=this._model)===null||s===void 0?void 0:s.selected.marker,i.position))&&((r=this._model)===null||r===void 0||r.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const i=this._model.find(this._editor.getModel().uri,this._widget.position);i?this._widget.updateMarker(i.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(i=>{this._editorService.openCodeEditor({resource:i.resource,options:{pinned:!0,revealIfOpened:!0,selection:D.lift(i).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new B(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){return M(this,null,function*(){var i,n;if(this._editor.hasModel()){const s=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(s.move(e,this._editor.getModel(),this._editor.getPosition()),!s.selected)return;if(s.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:s.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:s.selected.marker}},this._editor);r&&((i=X_.get(r))===null||i===void 0||i.close(),(n=X_.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};Oh.ID="editor.contrib.markerController";Oh=X_=Wpe([y1(1,Dz),y1(2,Oe),y1(3,bt),y1(4,ke)],Oh);class SD extends fe{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){return M(this,null,function*(){var i;t.hasModel()&&((i=Oh.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class uh extends SD{constructor(){super(!0,!1,{id:uh.ID,label:uh.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:578,weight:100},menuOpts:{menuId:mp.TitleMenu,title:uh.LABEL,icon:Ri("marker-navigation-next",ae.arrowDown,m("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}uh.ID="editor.action.marker.next";uh.LABEL=m("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class ig extends SD{constructor(){super(!1,!1,{id:ig.ID,label:ig.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:1602,weight:100},menuOpts:{menuId:mp.TitleMenu,title:ig.LABEL,icon:Ri("marker-navigation-previous",ae.arrowUp,m("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}ig.ID="editor.action.marker.prev";ig.LABEL=m("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class Vpe extends SD{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:m("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:66,weight:100},menuOpts:{menuId:k.MenubarGoMenu,title:m({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class Hpe extends SD{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:m("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:E.focus,primary:1090,weight:100},menuOpts:{menuId:k.MenubarGoMenu,title:m({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}Ct(Oh.ID,Oh,4);ee(uh);ee(ig);ee(Vpe);ee(Hpe);const xz=new he("markersNavigationVisible",!1),zpe=en.bindToContribution(Oh.get);ce(new zpe({id:"closeMarkersNavigation",precondition:xz,handler:o=>o.close(),kbOpts:{weight:150,kbExpr:E.focus,primary:9,secondary:[1033]}}));var Upe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},qk=function(o,e){return function(t,i){e(t,i,o)}};const br=ie;class $pe{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const A7={type:1,filter:{include:ai.QuickFix},triggerAction:ro.QuickFixHover};let xM=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),r=[];for(const a of t){const l=a.range.startLineNumber===n?a.range.startColumn:1,d=a.range.endLineNumber===n?a.range.endColumn:s,c=this._markerDecorationsService.getMarker(i.uri,a);if(!c)continue;const h=new D(e.range.startLineNumber,l,e.range.startLineNumber,d);r.push(new $pe(this,h,c))}return r}renderHoverParts(e,t){if(!t.length)return H.None;const i=new Q;t.forEach(s=>e.fragment.appendChild(this.renderMarkerHover(s,i)));const n=t.length===1?t[0]:t.sort((s,r)=>_i.compare(s.marker.severity,r.marker.severity))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=br("div.hover-row"),n=J(i,br("div.marker.hover-contents")),{source:s,message:r,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);const d=J(n,br("span"));if(d.style.whiteSpace="pre-wrap",d.innerText=r,s||a)if(a&&typeof a!="string"){const c=br("span");if(s){const f=J(c,br("span"));f.innerText=s}const h=J(c,br("a.code-link"));h.setAttribute("href",a.target.toString()),t.add(j(h,"click",f=>{this._openerService.open(a.target,{allowCommands:!0}),f.preventDefault(),f.stopPropagation()}));const u=J(h,br("span"));u.innerText=a.value;const g=J(n,c);g.style.opacity="0.6",g.style.paddingLeft="6px"}else{const c=J(n,br("span"));c.style.opacity="0.6",c.style.paddingLeft="6px",c.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(jn(l))for(const{message:c,resource:h,startLineNumber:u,startColumn:g}of l){const f=J(n,br("div"));f.style.marginTop="8px";const p=J(f,br("a"));p.innerText=`${rr(h)}(${u}, ${g}): `,p.style.cursor="pointer",t.add(j(p,"click",v=>{v.stopPropagation(),v.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(Ue)}));const _=J(f,br("span"));_.innerText=c,this._editor.applyFontInfo(_)}return i}renderMarkerStatusbar(e,t,i){if(t.marker.severity===_i.Error||t.marker.severity===_i.Warning||t.marker.severity===_i.Info){const n=Oh.get(this._editor);n&&e.statusBar.addAction({label:m("view problem","View Problem"),commandId:uh.ID,run:()=>{e.hide(),n.showAtMarker(t.marker),this._editor.focus()}})}if(!this._editor.getOption(91)){const n=e.statusBar.append(br("div"));this.recentMarkerCodeActionsInfo&&(VS.makeKey(this.recentMarkerCodeActionsInfo.marker)===VS.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=m("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?H.None:wh(()=>n.textContent=m("checkingForQuickFixes","Checking for quick fixes..."),200,i);n.textContent||(n.textContent=" ");const r=this.getCodeActions(t.marker);i.add(xe(()=>r.cancel())),r.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=m("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(xe(()=>{l||a.dispose()})),e.statusBar.addAction({label:m("quick fixes","Quick Fix..."),commandId:wP,run:d=>{l=!0;const c=Th.get(this._editor),h=Fi(d);e.hide(),c==null||c.showCodeActions(A7,a,{x:h.left,y:h.top,width:h.width,height:h.height})}})},Ue)}}getCodeActions(e){return cn(t=>Ev(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new D(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),A7,Bd.None,t))}};xM=Upe([qk(1,R2),qk(2,qs),qk(3,be)],xM);const kz="editor.action.inlineSuggest.commit",Iz="editor.action.inlineSuggest.showPrevious",Ez="editor.action.inlineSuggest.showNext";var TP=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},aa=function(o,e){return function(t,i){e(t,i,o)}},Dw;let kM=class extends H{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=Ft(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).showToolbar==="always"),this.sessionPosition=void 0,this.position=We(this,n=>{var s,r,a;const l=(s=this.model.read(n))===null||s===void 0?void 0:s.primaryGhostText.read(n);if(!this.alwaysShowToolbar.read(n)||!l||l.parts.length===0)return this.sessionPosition=void 0,null;const d=l.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==l.lineNumber&&(this.sessionPosition=void 0);const c=new B(l.lineNumber,Math.min(d,(a=(r=this.sessionPosition)===null||r===void 0?void 0:r.column)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER));return this.sessionPosition=c,c}),this._register(ar((n,s)=>{const r=this.model.read(n);if(!r||!this.alwaysShowToolbar.read(n))return;const a=s.add(this.instantiationService.createInstance(Fh,this.editor,!0,this.position,r.selectedInlineCompletionIndex,r.inlineCompletionsCount,r.selectedInlineCompletion.map(l=>{var d;return(d=l==null?void 0:l.inlineCompletion.source.inlineCompletions.commands)!==null&&d!==void 0?d:[]})));e.addContentWidget(a),s.add(xe(()=>e.removeContentWidget(a))),s.add(et(l=>{this.position.read(l)&&r.lastTriggerKind.read(l)!==Ad.Explicit&&r.triggerExplicitly()}))}))}};kM=TP([aa(2,ke)],kM);const jpe=Ri("inline-suggestion-hints-next",ae.chevronRight,m("parameterHintsNextIcon","Icon for show next parameter hint.")),Kpe=Ri("inline-suggestion-hints-previous",ae.chevronLeft,m("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Fh=Dw=class extends H{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new io(e,t,i,!0,()=>this._commandService.executeCommand(e)),s=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let r=t;return s&&(r=m({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,s.getLabel())),n.tooltip=r,n}constructor(e,t,i,n,s,r,a,l,d,c,h){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=n,this._suggestionCount=s,this._extraCommands=r,this._commandService=a,this.keybindingService=d,this._contextKeyService=c,this._menuService=h,this.id=`InlineSuggestionHintsContentWidget${Dw.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=xt("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[xt("div@toolBar")]),this.previousAction=this.createCommandAction(Iz,m("previous","Previous"),Ae.asClassName(Kpe)),this.availableSuggestionCountAction=new io("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(Ez,m("next","Next"),Ae.asClassName(jpe)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(k.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new Pt(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new Pt(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100)),this.lastCommands=[],this.toolBar=this._register(l.createInstance(IM,this.nodes.toolBar,k.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:u=>u.startsWith("primary")},actionViewItemProvider:(u,g)=>{if(u instanceof To)return l.createInstance(Gpe,u,void 0);if(u===this.availableSuggestionCountAction){const f=new qpe(void 0,u,{label:!0,icon:!1});return f.setClass("availableSuggestionCount"),f}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility(u=>{Dw._dropDownVisible=u})),this._register(et(u=>{this._position.read(u),this.editor.layoutContentWidget(this)})),this._register(et(u=>{const g=this._suggestionCount.read(u),f=this._currentSuggestionIdx.read(u);g!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${f+1}/${g}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),g!==void 0&&g>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()})),this._register(et(u=>{const g=this._extraCommands.read(u);if(ci(this.lastCommands,g))return;this.lastCommands=g;const f=g.map(p=>({class:void 0,id:p.id,enabled:!0,tooltip:p.tooltip||"",label:p.title,run:_=>this._commandService.executeCommand(p.id)}));for(const[p,_]of this.inlineCompletionsActionsMenus.getActions())for(const v of _)v instanceof To&&f.push(v);f.length>0&&f.unshift(new qi),this.toolBar.setAdditionalSecondaryActions(f)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};Fh._dropDownVisible=!1;Fh.id=0;Fh=Dw=TP([aa(6,hi),aa(7,ke),aa(8,Tt),aa(9,Oe),aa(10,Oo)],Fh);class qpe extends op{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}}let Gpe=class extends Eh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=xt("div.keybinding").root;this._register(new Op(t,eo,K({disableTitle:!0},pV))).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}},IM=class extends Kb{constructor(e,t,i,n,s,r,a,l){super(e,K({resetMenu:t},i),n,s,r,a,l),this.menuId=t,this.options2=i,this.menuService=n,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,i,n,s,r,a;const l=[],d=[];HL(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:d},(i=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||i===void 0?void 0:i.primaryGroup,(s=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||s===void 0?void 0:s.shouldInlineSubmenu,(a=(r=this.options2)===null||r===void 0?void 0:r.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),d.push(...this.additionalActions),l.unshift(...this.prependedPrimaryActions),this.setActions(l,d)}setPrependedPrimaryActions(e){ci(this.prependedPrimaryActions,e,(t,i)=>t===i)||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){ci(this.additionalActions,e,(t,i)=>t===i)||(this.additionalActions=e,this.updateToolbar())}};IM=TP([aa(3,Oo),aa(4,Oe),aa(5,co),aa(6,Tt),aa(7,os)],IM);var Zpe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},L1=function(o,e){return function(t,i){e(t,i,o)}},EM;const Ype=!1;let js=EM=class extends H{constructor(e,t,i,n,s){super(),this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._keybindingService=s,this._listenersStore=new Q,this._hoverState={mouseDown:!1,contentHoverFocused:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new Pt(()=>this._reactToEditorMouseMove(this._mouseMoveEvent),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())}))}static get(e){return e.getContribution(EM.ID)}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.delay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown(t=>this._onEditorMouseDown(t))),this._listenersStore.add(this._editor.onMouseUp(()=>this._onEditorMouseUp())),this._listenersStore.add(this._editor.onMouseMove(t=>this._onEditorMouseMove(t))),this._listenersStore.add(this._editor.onKeyDown(t=>this._onKeyDown(t)))):(this._listenersStore.add(this._editor.onMouseMove(t=>this._onEditorMouseMove(t))),this._listenersStore.add(this._editor.onKeyDown(t=>this._onKeyDown(t)))),this._listenersStore.add(this._editor.onMouseLeave(t=>this._onEditorMouseLeave(t))),this._listenersStore.add(this._editor.onDidChangeModel(()=>{this._cancelScheduler(),this._hideWidgets()})),this._listenersStore.add(this._editor.onDidChangeModelContent(()=>this._cancelScheduler())),this._listenersStore.add(this._editor.onDidScrollChange(t=>this._onEditorScrollChanged(t)))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){var t;this._hoverState.mouseDown=!0;const i=e.target;if(i.type===9&&i.detail===hh.ID){this._hoverState.contentHoverFocused=!0;return}i.type===12&&i.detail===Em.ID||(i.type!==12&&(this._hoverState.contentHoverFocused=!1),!(!((t=this._contentWidget)===null||t===void 0)&&t.widget.isResizing)&&this._hideWidgets())}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){var t,i;this._cancelScheduler();const n=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.widget.isResizing||!((i=this._contentWidget)===null||i===void 0)&&i.containsNode(n)||this._hideWidgets()}_isMouseOverWidget(e){var t,i,n,s,r;const a=e.target,l=this._hoverSettings.sticky;return!!(l&&a.type===9&&a.detail===hh.ID||l&&(!((t=this._contentWidget)===null||t===void 0)&&t.containsNode((i=e.event.browserEvent.view)===null||i===void 0?void 0:i.document.activeElement))&&!(!((s=(n=e.event.browserEvent.view)===null||n===void 0?void 0:n.getSelection())===null||s===void 0)&&s.isCollapsed)||!l&&a.type===9&&a.detail===hh.ID&&(!((r=this._contentWidget)===null||r===void 0)&&r.isColorPickerVisible)||l&&a.type===12&&a.detail===Em.ID)}_onEditorMouseMove(e){var t,i,n,s;if(this._mouseMoveEvent=e,!((t=this._contentWidget)===null||t===void 0)&&t.isFocused||!((i=this._contentWidget)===null||i===void 0)&&i.isResizing||this._hoverState.mouseDown&&this._hoverState.contentHoverFocused)return;const r=this._hoverSettings.sticky;if(r&&(!((n=this._contentWidget)===null||n===void 0)&&n.isVisibleFromKeyboard))return;if(this._isMouseOverWidget(e)){this._reactToEditorMouseMoveRunner.cancel();return}const l=this._hoverSettings.hidingDelay;if(!((s=this._contentWidget)===null||s===void 0)&&s.isVisible&&r&&l>0){this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(l);return}this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){var t,i,n,s;if(!e)return;const r=e.target,a=(t=r.element)===null||t===void 0?void 0:t.classList.contains("colorpicker-color-decoration"),l=this._editor.getOption(148),d=this._hoverSettings.enabled,c=this._hoverState.activatedByDecoratorClick;if(a&&(l==="click"&&!c||l==="hover"&&!d&&!Ype||l==="clickAndHover"&&!d&&!c)||!a&&!d&&!c){this._hideWidgets();return}if(this._getOrCreateContentWidget().showsOrWillShow(e)){(i=this._glyphWidget)===null||i===void 0||i.hide();return}if(r.type===2&&r.position&&r.detail.glyphMarginLane){(n=this._contentWidget)===null||n===void 0||n.hide(),this._getOrCreateGlyphWidget().startShowingAt(r.position.lineNumber,r.detail.glyphMarginLane);return}if(r.type===3&&r.position){(s=this._contentWidget)===null||s===void 0||s.hide(),this._getOrCreateGlyphWidget().startShowingAt(r.position.lineNumber,"lineNo");return}this._hideWidgets()}_onKeyDown(e){var t;if(!this._editor.hasModel())return;const i=this._keybindingService.softDispatch(e,this._editor.getDomNode()),n=i.kind===1||i.kind===2&&i.commandId==="editor.action.showHover"&&((t=this._contentWidget)===null||t===void 0?void 0:t.isVisible);e.keyCode===5||e.keyCode===6||e.keyCode===57||e.keyCode===4||n||this._hideWidgets()}_hideWidgets(){var e,t,i;this._hoverState.mouseDown&&this._hoverState.contentHoverFocused&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible)||Fh.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,this._hoverState.contentHoverFocused=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(i=this._contentWidget)===null||i===void 0||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(by,this._editor)),this._contentWidget}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=new Em(this._editor,this._languageService,this._openerService)),this._glyphWidget}showContentHover(e,t,i,n,s=!1){this._hoverState.activatedByDecoratorClick=s,this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}focus(){var e;(e=this._contentWidget)===null||e===void 0||e.focus()}scrollUp(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollUp()}scrollDown(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollDown()}scrollLeft(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollLeft()}scrollRight(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollRight()}pageUp(){var e;(e=this._contentWidget)===null||e===void 0||e.pageUp()}pageDown(){var e;(e=this._contentWidget)===null||e===void 0||e.pageDown()}goToTop(){var e;(e=this._contentWidget)===null||e===void 0||e.goToTop()}goToBottom(){var e;(e=this._contentWidget)===null||e===void 0||e.goToBottom()}get isColorPickerVisible(){var e;return(e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible}get isHoverVisible(){var e;return(e=this._contentWidget)===null||e===void 0?void 0:e.isVisible}dispose(){var e,t;super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};js.ID="editor.contrib.hover";js=EM=Zpe([L1(1,ke),L1(2,qs),L1(3,ii),L1(4,Tt)],js);var Gr;(function(o){o.NoAutoFocus="noAutoFocus",o.FocusIfVisible="focusIfVisible",o.AutoFocusImmediately="autoFocusImmediately"})(Gr||(Gr={}));class Xpe extends fe{constructor(){super({id:"editor.action.showHover",label:m({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:"Show or Focus Hover",args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[Gr.NoAutoFocus,Gr.FocusIfVisible,Gr.AutoFocusImmediately],enumDescriptions:[m("showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),m("showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),m("showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:Gr.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:Gi(2089,2087),weight:100}})}run(e,t,i){if(!t.hasModel())return;const n=js.get(t);if(!n)return;const s=i==null?void 0:i.focus;let r=Gr.FocusIfVisible;Object.values(Gr).includes(s)?r=s:typeof s=="boolean"&&s&&(r=Gr.AutoFocusImmediately);const a=d=>{const c=t.getPosition(),h=new D(c.lineNumber,c.column,c.lineNumber,c.column);n.showContentHover(h,1,1,d)},l=t.getOption(2)===2;n.isHoverVisible?r!==Gr.NoAutoFocus?n.focus():a(l):a(l||r===Gr.AutoFocusImmediately)}}class Qpe extends fe{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:m({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=js.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const s=new D(n.lineNumber,n.column,n.lineNumber,n.column),r=Ig.get(t);if(!r)return;r.startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(s,1,1,!0)})}}class Jpe extends fe{constructor(){super({id:"editor.action.scrollUpHover",label:m({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:16,weight:100}})}run(e,t){const i=js.get(t);i&&i.scrollUp()}}class e_e extends fe{constructor(){super({id:"editor.action.scrollDownHover",label:m({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:18,weight:100}})}run(e,t){const i=js.get(t);i&&i.scrollDown()}}class t_e extends fe{constructor(){super({id:"editor.action.scrollLeftHover",label:m({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:15,weight:100}})}run(e,t){const i=js.get(t);i&&i.scrollLeft()}}class i_e extends fe{constructor(){super({id:"editor.action.scrollRightHover",label:m({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:17,weight:100}})}run(e,t){const i=js.get(t);i&&i.scrollRight()}}class n_e extends fe{constructor(){super({id:"editor.action.pageUpHover",label:m({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:11,secondary:[528],weight:100}})}run(e,t){const i=js.get(t);i&&i.pageUp()}}class s_e extends fe{constructor(){super({id:"editor.action.pageDownHover",label:m({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:12,secondary:[530],weight:100}})}run(e,t){const i=js.get(t);i&&i.pageDown()}}class o_e extends fe{constructor(){super({id:"editor.action.goToTopHover",label:m({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:14,secondary:[2064],weight:100}})}run(e,t){const i=js.get(t);i&&i.goToTop()}}class r_e extends fe{constructor(){super({id:"editor.action.goToBottomHover",label:m({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:E.hoverFocused,kbOpts:{kbExpr:E.hoverFocused,primary:13,secondary:[2066],weight:100}})}run(e,t){const i=js.get(t);i&&i.goToBottom()}}Ct(js.ID,js,2);ee(Xpe);ee(Qpe);ee(Jpe);ee(e_e);ee(t_e);ee(i_e);ee(n_e);ee(s_e);ee(o_e);ee(r_e);Qh.register(Sy);Qh.register(xM);cr((o,e)=>{const t=o.getColor(K8);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))});class NM extends H{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(148);if(t!=="click"&&t!=="clickAndHover")return;const i=e.target;if(i.type!==6||!i.detail.injectedText||i.detail.injectedText.options.attachedData!==tz||!i.range)return;const n=this._editor.getContribution(js.ID);if(n&&!n.isColorPickerVisible){const s=new D(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);n.showContentHover(s,1,0,!1,!0)}}}NM.ID="editor.contrib.colorContribution";Ct(NM.ID,NM,2);Qh.register(_y);var Nz=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},na=function(o,e){return function(t,i){e(t,i,o)}},TM,MM;let Bh=TM=class extends H{constructor(e,t,i,n,s,r,a){super(),this._editor=e,this._modelService=i,this._keybindingService=n,this._instantiationService=s,this._languageFeatureService=r,this._languageConfigurationService=a,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=E.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=E.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){var e;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||(e=this._standaloneColorPickerWidget)===null||e===void 0||e.focus():this._standaloneColorPickerWidget=new Ly(this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused,this._instantiationService,this._modelService,this._keybindingService,this._languageFeatureService,this._languageConfigurationService))}hide(){var e;this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),(e=this._standaloneColorPickerWidget)===null||e===void 0||e.hide(),this._editor.focus()}insertColor(){var e;(e=this._standaloneColorPickerWidget)===null||e===void 0||e.updateEditor(),this.hide()}static get(e){return e.getContribution(TM.ID)}};Bh.ID="editor.contrib.standaloneColorPickerController";Bh=TM=Nz([na(1,Oe),na(2,li),na(3,Tt),na(4,ke),na(5,be),na(6,jt)],Bh);Ct(Bh.ID,Bh,1);const P7=8,a_e=22;let Ly=MM=class extends H{constructor(e,t,i,n,s,r,a,l){var d;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._modelService=s,this._keybindingService=r,this._languageFeaturesService=a,this._languageConfigurationService=l,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new F),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=n.createInstance(Qb,this._editor),this._position=(d=this._editor._getViewModel())===null||d===void 0?void 0:d.getPrimaryCursorState().modelState.position;const c=this._editor.getSelection(),h=c?{startLineNumber:c.startLineNumber,startColumn:c.startColumn,endLineNumber:c.endLineNumber,endColumn:c.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},u=this._register(wa(this._body));this._register(u.onDidBlur(g=>{this.hide()})),this._register(u.onDidFocus(g=>{this.focus()})),this._register(this._editor.onDidChangeCursorPosition(()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()})),this._register(this._editor.onMouseMove(g=>{var f;const p=(f=g.target.element)===null||f===void 0?void 0:f.classList;p&&p.contains("colorpicker-color-decoration")&&this.hide()})),this._register(this.onResult(g=>{this._render(g.value,g.foundInEditor)})),this._start(h),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return MM.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}_start(e){return M(this,null,function*(){const t=yield this._computeAsync(e);t&&this._onResult.fire(new l_e(t.result,t.foundInEditor))})}_computeAsync(e){return M(this,null,function*(){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=yield this._standaloneColorPickerParticipant.createColorHover(t,new DP(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null})}_render(e,t){const i=document.createDocumentFragment(),n=this._register(new Cy(this._keybindingService));let s;const r={fragment:i,statusBar:n,setColorPicker:p=>s=p,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(r,[e])),s===void 0)return;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),s.layout();const a=s.body,l=a.saturationBox.domNode.clientWidth,d=a.domNode.clientWidth-l-a_e-P7,c=s.body.enterButton;c==null||c.onClicked(()=>{this.updateEditor(),this.hide()});const h=s.header,u=h.pickedColorNode;u.style.width=l+P7+"px";const g=h.originalColorNode;g.style.width=d+"px";const f=s.header.closeButton;f==null||f.onClicked(()=>{this.hide()}),t&&(c&&(c.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};Ly.ID="editor.contrib.standaloneColorPickerWidget";Ly=MM=Nz([na(3,ke),na(4,li),na(5,Tt),na(6,be),na(7,jt)],Ly);class l_e{constructor(e,t){this.value=e,this.foundInEditor=t}}class d_e extends Ta{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:ue(K({},pt("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker")),{mnemonicTitle:m({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")}),precondition:void 0,menu:[{id:k.CommandPalette}]})}runEditorCommand(e,t){var i;(i=Bh.get(t))===null||i===void 0||i.showOrFocus()}}class c_e extends fe{constructor(){super({id:"editor.action.hideColorPicker",label:m({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:E.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100}})}run(e,t){var i;(i=Bh.get(t))===null||i===void 0||i.hide()}}class h_e extends fe{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:m({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:E.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100}})}run(e,t){var i;(i=Bh.get(t))===null||i===void 0||i.insertColor()}}ee(c_e);ee(h_e);Ht(d_e);class Qc{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length,s=e.length;if(i+n>s)return!1;for(let r=0;r=65&&a<=90&&a+32===l)&&!(l>=65&&l<=90&&l+32===a))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,s,r){const a=e.startLineNumber,l=e.startColumn,d=e.endLineNumber,c=e.endColumn,h=s.getLineContent(a),u=s.getLineContent(d);let g=h.lastIndexOf(t,l-1+t.length),f=u.indexOf(i,c-1-i.length);if(g!==-1&&f!==-1)if(a===d)h.substring(g+t.length,f).indexOf(i)>=0&&(g=-1,f=-1);else{const _=h.substring(g+t.length),v=u.substring(0,f);(_.indexOf(i)>=0||v.indexOf(i)>=0)&&(g=-1,f=-1)}let p;g!==-1&&f!==-1?(n&&g+t.length0&&u.charCodeAt(f-1)===32&&(i=" "+i,f-=1),p=Qc._createRemoveBlockCommentOperations(new D(a,g+t.length+1,d,f+1),t,i)):(p=Qc._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=p.length===1?i:null);for(const _ of p)r.addTrackedEditOperation(_.range,_.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return D.isEmpty(e)?n.push(si.delete(new D(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(si.delete(new D(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(si.delete(new D(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const s=[];return D.isEmpty(e)?s.push(si.replace(new D(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(s.push(si.insert(new B(e.startLineNumber,e.startColumn),t+(n?" ":""))),s.push(si.insert(new B(e.endLineNumber,e.endColumn),(n?" ":"")+i))),s}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const s=e.getLanguageIdAtPosition(i,n),r=this.languageConfigurationService.getLanguageConfiguration(s).comments;!r||!r.blockCommentStartToken||!r.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(i.length===2){const n=i[0],s=i[1];return new Ce(n.range.endLineNumber,n.range.endColumn,s.range.startLineNumber,s.range.startColumn)}else{const n=i[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new Ce(n.endLineNumber,n.endColumn+s,n.endLineNumber,n.endColumn+s)}}}class nd{constructor(e,t,i,n,s,r,a){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=n,this._insertSpace=s,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=a||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const s=e.getLanguageIdAtPosition(t,1),r=n.getLanguageConfiguration(s).comments,a=r?r.lineCommentToken:null;if(!a)return null;const l=[];for(let d=0,c=i-t+1;ds?t[l].commentStrOffset=r-1:t[l].commentStrOffset=r}}}class MP extends fe{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(jt);if(!t.hasModel())return;const n=t.getModel(),s=[],r=n.getOptions(),a=t.getOption(23),l=t.getSelections().map((c,h)=>({selection:c,index:h,ignoreFirstLine:!1}));l.sort((c,h)=>D.compareRangesUsingStarts(c.selection,h.selection));let d=l[0];for(let c=1;c=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},pu=function(o,e){return function(t,i){e(t,i,o)}},RM;let pp=RM=class{static get(e){return e.getContribution(RM.ID)}constructor(e,t,i,n,s,r,a,l){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=s,this._menuService=r,this._configurationService=a,this._workspaceContextService=l,this._toDispose=new Q,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(d=>this._onContextMenu(d))),this._toDispose.add(this._editor.onMouseWheel(d=>{if(this._contextMenuIsBeingShownCount>0){const c=this._contextViewService.getContextViewElement(),h=d.srcElement;h.shadowRoot&&hg(c)===h.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(d=>{this._editor.getOption(24)&&d.keyCode===58&&(d.preventDefault(),d.stopPropagation(),this.showContextMenu())}))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu(e.event);if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let i=!1;for(const n of this._editor.getSelections())if(n.containsPosition(e.target.position)){i=!0;break}i||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24)||!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?k.SimpleEditorContext:k.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),s=n.getActions({arg:e.uri});n.dispose();for(const r of s){const[,a]=r;let l=0;for(const d of a)if(d instanceof Xv){const c=this._getMenuActions(e,d.item.submenu);c.length>0&&(i.push(new Fm(d.id,d.label,c)),l++)}else i.push(d),l++;l&&i.push(new qi)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const i=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let n=t;if(!n){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const r=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),a=Fi(this._editor.getDomNode()),l=a.left+r.left,d=a.top+r.top+r.height;n={x:l,y:d}}const s=this._editor.getOption(127)&&!ba;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:s?this._editor.getDomNode():void 0,getAnchor:()=>n,getActions:()=>e,getActionViewItem:r=>{const a=this._keybindingFor(r);if(a)return new op(r,r,{label:!0,keybinding:a.getLabel(),isMenu:!0});const l=r;return typeof l.getActionViewItem=="function"?l.getActionViewItem():new op(r,r,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:r=>this._keybindingFor(r),onHide:r=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel()||Rre(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(73);let i=0;const n=d=>({id:`menu-action-${++i}`,label:d.label,tooltip:"",class:void 0,enabled:typeof d.enabled=="undefined"?!0:d.enabled,checked:d.checked,run:d.run}),s=(d,c)=>new Fm(`menu-action-${++i}`,d,c,void 0),r=(d,c,h,u,g)=>{if(!c)return n({label:d,enabled:c,run:()=>{}});const f=_=>()=>{this._configurationService.updateValue(h,_)},p=[];for(const _ of g)p.push(n({label:_.label,checked:u===_.value,run:f(_.value)}));return s(d,p)},a=[];a.push(n({label:m("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new qi),a.push(n({label:m("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(r(m("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:m("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:m("context.minimap.size.fill","Fill"),value:"fill"},{label:m("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(r(m("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:m("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:m("context.minimap.slider.always","Always"),value:"always"}]));const l=this._editor.getOption(127)&&!ba;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:d=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};pp.ID="editor.contrib.contextmenu";pp=RM=p_e([pu(1,co),pu(2,sc),pu(3,Oe),pu(4,Tt),pu(5,Oo),pu(6,it),pu(7,_g)],pp);class __e extends fe{constructor(){super({id:"editor.action.showContextMenu",label:m("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;(i=pp.get(t))===null||i===void 0||i.showContextMenu()}}Ct(pp.ID,pp,2);ee(__e);class Gk{constructor(e){this.selections=e}equals(e){const t=this.selections.length,i=e.selections.length;if(t!==i)return!1;for(let n=0;n{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;const i=new Gk(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new Zk(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new Zk(new Gk(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new Zk(new Gk(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}Eg.ID="editor.contrib.cursorUndoRedoController";class v_e extends fe{constructor(){super({id:"cursorUndo",label:m("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:E.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;(n=Eg.get(t))===null||n===void 0||n.cursorUndo()}}class b_e extends fe{constructor(){super({id:"cursorRedo",label:m("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;(n=Eg.get(t))===null||n===void 0||n.cursorRedo()}}Ct(Eg.ID,Eg,0);ee(v_e);ee(b_e);class C_e{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new D(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new Ce(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new Ce(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumberthis._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(35)||this._editor.getOption(22)||(pf(e)&&(this._modifierPressed=!0),this._mouseDown&&pf(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(35)||this._editor.getOption(22)||(pf(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===Vd.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(this._dragSelection===null){const n=(this._editor.getSelections()||[]).filter(s=>t.position&&s.containsPosition(t.position));if(n.length===1)this._dragSelection=n[0];else return}pf(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new B(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let i=null;if(e.event.shiftKey){const n=this._editor.getSelection();if(n){const{selectionStartLineNumber:s,selectionStartColumn:r}=n;i=[new Ce(s,r,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new Ce(t.lineNumber,t.column,t.lineNumber,t.column):n);this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(pf(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(Vd.ID,new C_e(this._dragSelection,t,pf(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new D(e.lineNumber,e.column,e.lineNumber,e.column),options:Vd._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}Vd.ID="editor.contrib.dragAndDrop";Vd.TRIGGER_KEY_VALUE=ot?6:5;Vd._DECORATION_OPTIONS=je.register({description:"dnd-target",className:"dnd-target"});Ct(Vd.ID,Vd,2);var D1;Ct(Al.ID,Al,0);tC(tM);ce(new class extends en{constructor(){super({id:PH,precondition:bP,kbOpts:{weight:100,primary:2137}})}runEditorCommand(o,e){var t;return(t=Al.get(e))===null||t===void 0?void 0:t.changePasteType()}});ce(new class extends en{constructor(){super({id:"editor.hidePasteWidget",precondition:bP,kbOpts:{weight:100,primary:9}})}runEditorCommand(o,e){var t;(t=Al.get(e))===null||t===void 0||t.clearWidgets()}});ee((D1=class extends fe{constructor(){super({id:"editor.action.pasteAs",label:m("pasteAs","Paste As..."),alias:"Paste As...",precondition:E.writable,metadata:{description:"Paste as",args:[{name:"args",schema:D1.argsSchema}]}})}run(e,t,i){var n;let s=typeof(i==null?void 0:i.kind)=="string"?i.kind:void 0;return!s&&i&&(s=typeof i.id=="string"?i.id:void 0),(n=Al.get(t))===null||n===void 0?void 0:n.pasteAs(s?new At(s):void 0)}},D1.argsSchema={type:"object",properties:{kind:{type:"string",description:m("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}},D1));ee(class extends fe{constructor(){super({id:"editor.action.pasteAsText",label:m("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:E.writable})}run(o,e){var t;return(t=Al.get(e))===null||t===void 0?void 0:t.pasteAs({providerId:Qd.id})}});class w_e{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}}class O7{constructor(e){this.identifier=e}}const Tz=lt("treeViewsDndService");ft(Tz,w_e,1);var S_e=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},x1=function(o,e){return function(t,i){e(t,i,o)}},AM;const Mz="editor.experimental.dropIntoEditor.defaultProvider",Rz="editor.changeDropType",RP=new he("dropWidgetVisible",!1,m("dropWidgetVisible","Whether the drop widget is showing"));let Ng=AM=class extends H{static get(e){return e.getContribution(AM.ID)}constructor(e,t,i,n,s){super(),this._configService=i,this._languageFeaturesService=n,this._treeViewsDragAndDropService=s,this.treeItemsTransfer=Gb.getInstance(),this._dropProgressManager=this._register(t.createInstance(gy,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(my,"dropIntoEditor",e,RP,{id:Rz,label:m("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor(r=>this.onDropIntoEditor(e,r.position,r.event)))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}onDropIntoEditor(e,t,i){return M(this,null,function*(){var n;if(!i.dataTransfer||!e.hasModel())return;(n=this._currentOperation)===null||n===void 0||n.cancel(),e.focus(),e.setPosition(t);const s=cn(r=>M(this,null,function*(){const a=new Nh(e,1,void 0,r);try{const l=yield this.extractDataTransferData(i);if(l.size===0||a.token.isCancellationRequested)return;const d=e.getModel();if(!d)return;const c=this._languageFeaturesService.documentOnDropEditProvider.ordered(d).filter(u=>u.dropMimeTypes?u.dropMimeTypes.some(g=>l.matches(g)):!0),h=yield this.getDropEdits(c,d,t,l,a);if(a.token.isCancellationRequested)return;if(h.length){const u=this.getInitialActiveEditIndex(d,h),g=e.getOption(36).showDropSelector==="afterDrop";yield this._postDropWidgetManager.applyEditAndShowIfNeeded([D.fromPositions(t)],{activeEditIndex:u,allEdits:h},g,f=>M(this,null,function*(){return f}),r)}}finally{a.dispose(),this._currentOperation===s&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,m("dropIntoEditorProgress","Running drop handlers. Click to cancel"),s),this._currentOperation=s})}getDropEdits(e,t,i,n,s){return M(this,null,function*(){const r=yield I0(Promise.all(e.map(l=>M(this,null,function*(){try{const d=yield l.provideDocumentOnDropEdits(t,i,n,s.token);return d==null?void 0:d.map(c=>ue(K({},c),{providerId:l.id}))}catch(d){console.error(d)}}))),s.token),a=va(r!=null?r:[]).flat();return RH(a)})}getInitialActiveEditIndex(e,t){const i=this._configService.getValue(Mz,{resource:e.uri});for(const[n,s]of Object.entries(i)){const r=new At(s),a=t.findIndex(l=>r.value===l.providerId&&l.handledMimeType&&DH(n,[l.handledMimeType]));if(a>=0)return a}return 0}extractDataTransferData(e){return M(this,null,function*(){if(!e.dataTransfer)return new LH;const t=IH(e.dataTransfer);if(this.treeItemsTransfer.hasData(O7.prototype)){const i=this.treeItemsTransfer.getData(O7.prototype);if(Array.isArray(i))for(const n of i){const s=yield this._treeViewsDragAndDropService.removeDragOperationTransfer(n.identifier);if(s)for(const[r,a]of s)t.replace(r,a)}}return t})}};Ng.ID="editor.contrib.dropIntoEditorController";Ng=AM=S_e([x1(1,ke),x1(2,it),x1(3,be),x1(4,Tz)],Ng);Ct(Ng.ID,Ng,2);tC(eM);ce(new class extends en{constructor(){super({id:Rz,precondition:RP,kbOpts:{weight:100,primary:2137}})}runEditorCommand(o,e,t){var i;(i=Ng.get(e))===null||i===void 0||i.changeDropType()}});ce(new class extends en{constructor(){super({id:"editor.hideDropWidget",precondition:RP,kbOpts:{weight:100,primary:9}})}runEditorCommand(o,e,t){var i;(i=Ng.get(e))===null||i===void 0||i.clearWidgets()}});ui.as(Ma.Configuration).registerConfiguration(ue(K({},NL),{properties:{[Mz]:{type:"object",scope:5,description:m("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}}));class es{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,es._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,es._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let s=this._editor.getModel().getDecorationRange(t);if(s.startLineNumber!==s.endLineNumber&&s.endColumn===1){const r=s.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(r);s=new D(s.startLineNumber,s.startColumn,r,a)}this._rangeHighlightDecorationId=n.addDecoration(s,es._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let n=es._FIND_MATCH_DECORATION;const s=[];if(e.length>1e3){n=es._FIND_MATCH_NO_OVERVIEW_DECORATION;const a=this._editor.getModel().getLineCount(),d=this._editor.getLayoutInfo().height/a,c=Math.max(2,Math.ceil(3/d));let h=e[0].range.startLineNumber,u=e[0].range.endLineNumber;for(let g=1,f=e.length;g=p.startLineNumber?p.endLineNumber>u&&(u=p.endLineNumber):(s.push({range:new D(h,1,u,1),options:es._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=p.startLineNumber,u=p.endLineNumber)}s.push({range:new D(h,1,u,1),options:es._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const r=new Array(e.length);for(let a=0,l=e.length;ai.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>i.addDecoration(a,es._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!(!n||n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return s;if(!(s.startColumn0){const i=[];for(let r=0;rD.compareRangesUsingStarts(r.range,a.range));const n=[];let s=i[0];for(let r=1;r0?e[0].toUpperCase()+e.substr(1):o[0][0].toUpperCase()!==o[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function F7(o,e,t){return o[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&o[0].split(t).length===e.split(t).length}function B7(o,e,t){const i=e.split(t),n=o[0].split(t);let s="";return i.forEach((r,a)=>{s+=Az([n[a]],r)+t}),s.slice(0,-1)}class W7{constructor(e){this.staticValue=e,this.kind=0}}class L_e{constructor(e){this.pieces=e,this.kind=1}}class _p{static fromStaticValue(e){return new _p([ng.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){!e||e.length===0?this._state=new W7(""):e.length===1&&e[0].staticValue!==null?this._state=new W7(e[0].staticValue):this._state=new L_e(e)}buildReplaceString(e,t){if(this._state.kind===0)return t?Az(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n0){const l=[],d=r.caseOps.length;let c=0;for(let h=0,u=a.length;h=d){l.push(a.slice(h));break}switch(r.caseOps[c]){case"U":l.push(a[h].toUpperCase());break;case"u":l.push(a[h].toUpperCase()),c++;break;case"L":l.push(a[h].toLowerCase());break;case"l":l.push(a[h].toLowerCase()),c++;break;default:l.push(a[h])}}a=l.join("")}i+=a}return i}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let i="";for(;e>0;){if(e=n)break;const r=o.charCodeAt(i);switch(r){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic(` diff --git a/assets/ContentDetailWrap.vue_vue_type_script_setup_true_lang-CZbjH80x.js b/assets/ContentDetailWrap.vue_vue_type_script_setup_true_lang-BkeNJGQ5.js similarity index 90% rename from assets/ContentDetailWrap.vue_vue_type_script_setup_true_lang-CZbjH80x.js rename to assets/ContentDetailWrap.vue_vue_type_script_setup_true_lang-BkeNJGQ5.js index 1d115c33..9c20f005 100644 --- a/assets/ContentDetailWrap.vue_vue_type_script_setup_true_lang-CZbjH80x.js +++ b/assets/ContentDetailWrap.vue_vue_type_script_setup_true_lang-BkeNJGQ5.js @@ -1 +1 @@ -import{p as t}from"./index-CA0d6hyI.js";/* empty css */import{l as a}from"./element-plus-6v3c1uXT.js";import{q as r,t as n,v as l,P as p,S as d,x as i,H as s,M as o,u as c}from"./vue-chunks-DOWhatC1.js";const m={class:o(["content-detail-wrap-container","relative"])},_={class:"mb-20px pb-20px",style:{"border-bottom":"1px solid var(--el-border-color)"}},C=r({__name:"ContentDetailWrap",props:{title:t.string.def(""),message:t.string.def("")},setup(f){return(e,b)=>(n(),l("div",m,[p(c(a),{class:o(["content-detail-wrap-body","mb-20px"]),shadow:"never"},{default:d(()=>[i("div",_,[s(e.$slots,"header")]),s(e.$slots,"default")]),_:3})]))}});export{C as _}; +import{p as t}from"./index-B5z15nYm.js";/* empty css */import{l as a}from"./element-plus-6v3c1uXT.js";import{q as r,t as n,v as l,P as p,S as d,x as i,H as s,M as o,u as c}from"./vue-chunks-DOWhatC1.js";const m={class:o(["content-detail-wrap-container","relative"])},_={class:"mb-20px pb-20px",style:{"border-bottom":"1px solid var(--el-border-color)"}},C=r({__name:"ContentDetailWrap",props:{title:t.string.def(""),message:t.string.def("")},setup(f){return(e,b)=>(n(),l("div",m,[p(c(a),{class:o(["content-detail-wrap-body","mb-20px"]),shadow:"never"},{default:d(()=>[i("div",_,[s(e.$slots,"header")]),s(e.$slots,"default")]),_:3})]))}});export{C as _}; diff --git a/assets/ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js b/assets/ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js similarity index 87% rename from assets/ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js rename to assets/ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js index 893acc66..00b7fd82 100644 --- a/assets/ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js +++ b/assets/ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js @@ -1 +1 @@ -import{I as m}from"./Icon-Bwi9LaBZ.js";import{p as o}from"./index-CA0d6hyI.js";/* empty css *//* empty css */import{O as p,l as f}from"./element-plus-6v3c1uXT.js";import{q as u,t as n,T as r,aa as x,S as s,x as e,X as i,u as l,P as _,Y as h,H as c}from"./vue-chunks-DOWhatC1.js";const g={class:"flex items-center"},v={class:"text-16px font-700"},k={class:"max-w-200px"},w={class:"flex pl-20px flex-grow"},V=u({__name:"ContentWrap",props:{title:o.string.def(""),message:o.string.def("")},setup(t){return(a,C)=>{const d=m;return n(),r(l(f),{class:"content-wrap",shadow:"never"},x({default:s(()=>[e("div",null,[c(a.$slots,"default")])]),_:2},[t.title?{name:"header",fn:s(()=>[e("div",g,[e("span",v,i(t.title),1),t.message?(n(),r(l(p),{key:0,effect:"dark",placement:"right"},{content:s(()=>[e("div",k,i(t.message),1)]),default:s(()=>[_(d,{class:"ml-5px",icon:"bi:question-circle-fill",size:14})]),_:1})):h("",!0),e("div",w,[c(a.$slots,"header")])])]),key:"0"}:void 0]),1024)}}});export{V as _}; +import{I as m}from"./Icon-B-0CON7P.js";import{p as o}from"./index-B5z15nYm.js";/* empty css *//* empty css */import{O as p,l as f}from"./element-plus-6v3c1uXT.js";import{q as u,t as n,T as r,aa as x,S as s,x as e,X as i,u as l,P as _,Y as h,H as c}from"./vue-chunks-DOWhatC1.js";const g={class:"flex items-center"},v={class:"text-16px font-700"},k={class:"max-w-200px"},w={class:"flex pl-20px flex-grow"},V=u({__name:"ContentWrap",props:{title:o.string.def(""),message:o.string.def("")},setup(t){return(a,C)=>{const d=m;return n(),r(l(f),{class:"content-wrap",shadow:"never"},x({default:s(()=>[e("div",null,[c(a.$slots,"default")])]),_:2},[t.title?{name:"header",fn:s(()=>[e("div",g,[e("span",v,i(t.title),1),t.message?(n(),r(l(p),{key:0,effect:"dark",placement:"right"},{content:s(()=>[e("div",k,i(t.message),1)]),default:s(()=>[_(d,{class:"ml-5px",icon:"bi:question-circle-fill",size:14})]),_:1})):h("",!0),e("div",w,[c(a.$slots,"header")])])]),key:"0"}:void 0]),1024)}}});export{V as _}; diff --git a/assets/CountTo--P_0rIXC.js b/assets/CountTo-BfciFB2t.js similarity index 90% rename from assets/CountTo--P_0rIXC.js rename to assets/CountTo-BfciFB2t.js index 1203c373..5b536c32 100644 --- a/assets/CountTo--P_0rIXC.js +++ b/assets/CountTo-BfciFB2t.js @@ -1 +1 @@ -import{_ as k}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as C}from"./CountTo.vue_vue_type_script_setup_true_lang-BYxn9PUH.js";import{_ as V}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css */import{n as U,k as u,J as _,A as v}from"./element-plus-6v3c1uXT.js";import{q as R,r as n,t as E,T as N,S as o,x as s,P as t,u as e,W as g}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const B={class:"text-center mb-40px"},T={class:"flex mb-20px items-center"},$=s("span",{class:"min-w-90px text-right"},"开始值:",-1),I={class:"flex mb-20px items-center"},j=s("span",{class:"min-w-90px text-right"},"结束值:",-1),q={class:"flex mb-20px items-center"},A=s("span",{class:"min-w-90px text-right"},"持续时间:",-1),J={class:"flex mb-20px items-center"},P=s("span",{class:"min-w-90px text-right"},"分割符号:",-1),S={class:"flex mb-20px items-center"},W=s("span",{class:"min-w-90px text-right"},"前缀:",-1),z={class:"flex mb-20px items-center"},D=s("span",{class:"min-w-90px text-right"},"后缀:",-1),F={class:"text-center"},se=R({__name:"CountTo",setup(G){const d=n(),i=n(0),r=n(1314521),p=n(3e3),b=n(0),x=n(","),c=n("¥ "),f=n(" rmb"),h=n(!1),w=()=>{var m;(m=e(d))==null||m.start()},y=()=>{var m;(m=e(d))==null||m.pauseResume()};return(m,l)=>(E(),N(e(k),{title:"数字动画",message:"基于 vue-count-to 进行改造,支持所有 vue-count-to 参数。"},{default:o(()=>[s("div",B,[t(e(C),{ref_key:"countRef",ref:d,"start-val":i.value,"end-val":r.value,duration:p.value,decimals:b.value,separator:x.value,prefix:c.value,suffix:f.value,autoplay:h.value,class:"text-30px font-bold text-[var(--el-color-primary)]"},null,8,["start-val","end-val","duration","decimals","separator","prefix","suffix","autoplay"])]),t(e(U),{gutter:20,justify:"space-between"},{default:o(()=>[t(e(u),{xl:8,lg:8,md:12,sm:24,xs:24},{default:o(()=>[s("div",T,[$,t(e(_),{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=a=>i.value=a),min:0},null,8,["modelValue"])])]),_:1}),t(e(u),{xl:8,lg:8,md:12,sm:24,xs:24},{default:o(()=>[s("div",I,[j,t(e(_),{modelValue:r.value,"onUpdate:modelValue":l[1]||(l[1]=a=>r.value=a),min:1},null,8,["modelValue"])])]),_:1}),t(e(u),{xl:8,lg:8,md:12,sm:24,xs:24},{default:o(()=>[s("div",q,[A,t(e(_),{modelValue:p.value,"onUpdate:modelValue":l[2]||(l[2]=a=>p.value=a),min:1e3},null,8,["modelValue"])])]),_:1}),t(e(u),{xl:8,lg:8,md:12,sm:24,xs:24},{default:o(()=>[s("div",J,[P,t(e(v),{modelValue:x.value,"onUpdate:modelValue":l[3]||(l[3]=a=>x.value=a)},null,8,["modelValue"])])]),_:1}),t(e(u),{xl:8,lg:8,md:12,sm:24,xs:24},{default:o(()=>[s("div",S,[W,t(e(v),{modelValue:c.value,"onUpdate:modelValue":l[4]||(l[4]=a=>c.value=a)},null,8,["modelValue"])])]),_:1}),t(e(u),{xl:8,lg:8,md:12,sm:24,xs:24},{default:o(()=>[s("div",z,[D,t(e(v),{modelValue:f.value,"onUpdate:modelValue":l[5]||(l[5]=a=>f.value=a)},null,8,["modelValue"])])]),_:1}),t(e(u),{span:24},{default:o(()=>[s("div",F,[t(e(V),{type:"primary",onClick:w},{default:o(()=>[g("开始")]),_:1}),t(e(V),{onClick:y},{default:o(()=>[g(" 暂停/继续 ")]),_:1})])]),_:1})]),_:1})]),_:1}))}});export{se as default}; +import{_ as k}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as C}from"./CountTo.vue_vue_type_script_setup_true_lang-BAvgPMEO.js";import{_ as V}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import"./index-B5z15nYm.js";/* empty css *//* empty css */import{n as U,k as u,J as _,A as v}from"./element-plus-6v3c1uXT.js";import{q as R,r as n,t as E,T as N,S as o,x as s,P as t,u as e,W as g}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const B={class:"text-center mb-40px"},T={class:"flex mb-20px items-center"},$=s("span",{class:"min-w-90px text-right"},"开始值:",-1),I={class:"flex mb-20px items-center"},j=s("span",{class:"min-w-90px text-right"},"结束值:",-1),q={class:"flex mb-20px items-center"},A=s("span",{class:"min-w-90px text-right"},"持续时间:",-1),J={class:"flex mb-20px items-center"},P=s("span",{class:"min-w-90px text-right"},"分割符号:",-1),S={class:"flex mb-20px items-center"},W=s("span",{class:"min-w-90px text-right"},"前缀:",-1),z={class:"flex mb-20px items-center"},D=s("span",{class:"min-w-90px text-right"},"后缀:",-1),F={class:"text-center"},se=R({__name:"CountTo",setup(G){const d=n(),i=n(0),r=n(1314521),p=n(3e3),b=n(0),x=n(","),c=n("¥ "),f=n(" rmb"),h=n(!1),w=()=>{var m;(m=e(d))==null||m.start()},y=()=>{var m;(m=e(d))==null||m.pauseResume()};return(m,l)=>(E(),N(e(k),{title:"数字动画",message:"基于 vue-count-to 进行改造,支持所有 vue-count-to 参数。"},{default:o(()=>[s("div",B,[t(e(C),{ref_key:"countRef",ref:d,"start-val":i.value,"end-val":r.value,duration:p.value,decimals:b.value,separator:x.value,prefix:c.value,suffix:f.value,autoplay:h.value,class:"text-30px font-bold text-[var(--el-color-primary)]"},null,8,["start-val","end-val","duration","decimals","separator","prefix","suffix","autoplay"])]),t(e(U),{gutter:20,justify:"space-between"},{default:o(()=>[t(e(u),{xl:8,lg:8,md:12,sm:24,xs:24},{default:o(()=>[s("div",T,[$,t(e(_),{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=a=>i.value=a),min:0},null,8,["modelValue"])])]),_:1}),t(e(u),{xl:8,lg:8,md:12,sm:24,xs:24},{default:o(()=>[s("div",I,[j,t(e(_),{modelValue:r.value,"onUpdate:modelValue":l[1]||(l[1]=a=>r.value=a),min:1},null,8,["modelValue"])])]),_:1}),t(e(u),{xl:8,lg:8,md:12,sm:24,xs:24},{default:o(()=>[s("div",q,[A,t(e(_),{modelValue:p.value,"onUpdate:modelValue":l[2]||(l[2]=a=>p.value=a),min:1e3},null,8,["modelValue"])])]),_:1}),t(e(u),{xl:8,lg:8,md:12,sm:24,xs:24},{default:o(()=>[s("div",J,[P,t(e(v),{modelValue:x.value,"onUpdate:modelValue":l[3]||(l[3]=a=>x.value=a)},null,8,["modelValue"])])]),_:1}),t(e(u),{xl:8,lg:8,md:12,sm:24,xs:24},{default:o(()=>[s("div",S,[W,t(e(v),{modelValue:c.value,"onUpdate:modelValue":l[4]||(l[4]=a=>c.value=a)},null,8,["modelValue"])])]),_:1}),t(e(u),{xl:8,lg:8,md:12,sm:24,xs:24},{default:o(()=>[s("div",z,[D,t(e(v),{modelValue:f.value,"onUpdate:modelValue":l[5]||(l[5]=a=>f.value=a)},null,8,["modelValue"])])]),_:1}),t(e(u),{span:24},{default:o(()=>[s("div",F,[t(e(V),{type:"primary",onClick:w},{default:o(()=>[g("开始")]),_:1}),t(e(V),{onClick:y},{default:o(()=>[g(" 暂停/继续 ")]),_:1})])]),_:1})]),_:1})]),_:1}))}});export{se as default}; diff --git a/assets/CountTo.vue_vue_type_script_setup_true_lang-BYxn9PUH.js b/assets/CountTo.vue_vue_type_script_setup_true_lang-BAvgPMEO.js similarity index 97% rename from assets/CountTo.vue_vue_type_script_setup_true_lang-BYxn9PUH.js rename to assets/CountTo.vue_vue_type_script_setup_true_lang-BAvgPMEO.js index 53c70808..9a83e55b 100644 --- a/assets/CountTo.vue_vue_type_script_setup_true_lang-BYxn9PUH.js +++ b/assets/CountTo.vue_vue_type_script_setup_true_lang-BAvgPMEO.js @@ -1 +1 @@ -import{p as r,q}from"./index-CA0d6hyI.js";import{q as w,K as k,J as v,o as C,d as E,w as N,u as F,t as B,v as M,X as R}from"./vue-chunks-DOWhatC1.js";const $={class:"count-to"},X=w({__name:"CountTo",props:{startVal:r.number.def(0),endVal:r.number.def(2021),duration:r.number.def(3e3),autoplay:r.bool.def(!0),decimals:r.number.validate(o=>o>=0).def(0),decimal:r.string.def("."),separator:r.string.def(","),prefix:r.string.def(""),suffix:r.string.def(""),useEasing:r.bool.def(!0),easingFn:{type:Function,default(o,c,p,t){return p*(-Math.pow(2,-10*o/t)+1)*1024/1023+c}}},emits:["mounted","callback"],setup(o,{expose:c,emit:p}){const t=o,x=p,m=l=>{const{decimals:s,decimal:i,separator:e,suffix:n,prefix:_}=t;l=Number(l).toFixed(s),l+="";const g=l.split(".");let u=g[0];const h=g.length>1?i+g[1]:"",b=/(\d+)(\d{3})/;if(e&&!q(e))for(;b.test(u);)u=u.replace(b,"$1"+e+"$2");return _+u+h+n},a=k({localStartVal:t.startVal,displayValue:m(t.startVal),printVal:null,paused:!1,localDuration:t.duration,startTime:null,timestamp:null,remaining:null,rAF:null}),y=v(a,"displayValue");C(()=>{t.autoplay&&V(),x("mounted")});const d=E(()=>t.startVal>t.endVal);N([()=>t.startVal,()=>t.endVal],()=>{t.autoplay&&V()});const V=()=>{const{startVal:l,duration:s}=t;a.localStartVal=l,a.startTime=null,a.localDuration=s,a.paused=!1,a.rAF=requestAnimationFrame(f)},D=()=>{a.paused?(A(),a.paused=!1):(S(),a.paused=!0)},S=()=>{cancelAnimationFrame(a.rAF)},A=()=>{a.startTime=null,a.localDuration=+a.remaining,a.localStartVal=+a.printVal,requestAnimationFrame(f)},T=()=>{a.startTime=null,cancelAnimationFrame(a.rAF),a.displayValue=m(t.startVal)},f=l=>{const{useEasing:s,easingFn:i,endVal:e}=t;a.startTime||(a.startTime=l),a.timestamp=l;const n=l-a.startTime;a.remaining=a.localDuration-n,s?F(d)?a.printVal=a.localStartVal-i(n,0,a.localStartVal-e,a.localDuration):a.printVal=i(n,a.localStartVal,e-a.localStartVal,a.localDuration):F(d)?a.printVal=a.localStartVal-(a.localStartVal-e)*(n/a.localDuration):a.printVal=a.localStartVal+(e-a.localStartVal)*(n/a.localDuration),F(d)?a.printVal=a.printVale?e:a.printVal,a.displayValue=m(a.printVal),n(B(),M("span",$,R(y.value),1))}});export{X as _}; +import{p as r,q}from"./index-B5z15nYm.js";import{q as w,K as k,J as v,o as C,d as E,w as N,u as F,t as B,v as M,X as R}from"./vue-chunks-DOWhatC1.js";const $={class:"count-to"},X=w({__name:"CountTo",props:{startVal:r.number.def(0),endVal:r.number.def(2021),duration:r.number.def(3e3),autoplay:r.bool.def(!0),decimals:r.number.validate(o=>o>=0).def(0),decimal:r.string.def("."),separator:r.string.def(","),prefix:r.string.def(""),suffix:r.string.def(""),useEasing:r.bool.def(!0),easingFn:{type:Function,default(o,c,p,t){return p*(-Math.pow(2,-10*o/t)+1)*1024/1023+c}}},emits:["mounted","callback"],setup(o,{expose:c,emit:p}){const t=o,x=p,m=l=>{const{decimals:s,decimal:i,separator:e,suffix:n,prefix:_}=t;l=Number(l).toFixed(s),l+="";const g=l.split(".");let u=g[0];const h=g.length>1?i+g[1]:"",b=/(\d+)(\d{3})/;if(e&&!q(e))for(;b.test(u);)u=u.replace(b,"$1"+e+"$2");return _+u+h+n},a=k({localStartVal:t.startVal,displayValue:m(t.startVal),printVal:null,paused:!1,localDuration:t.duration,startTime:null,timestamp:null,remaining:null,rAF:null}),y=v(a,"displayValue");C(()=>{t.autoplay&&V(),x("mounted")});const d=E(()=>t.startVal>t.endVal);N([()=>t.startVal,()=>t.endVal],()=>{t.autoplay&&V()});const V=()=>{const{startVal:l,duration:s}=t;a.localStartVal=l,a.startTime=null,a.localDuration=s,a.paused=!1,a.rAF=requestAnimationFrame(f)},D=()=>{a.paused?(A(),a.paused=!1):(S(),a.paused=!0)},S=()=>{cancelAnimationFrame(a.rAF)},A=()=>{a.startTime=null,a.localDuration=+a.remaining,a.localStartVal=+a.printVal,requestAnimationFrame(f)},T=()=>{a.startTime=null,cancelAnimationFrame(a.rAF),a.displayValue=m(t.startVal)},f=l=>{const{useEasing:s,easingFn:i,endVal:e}=t;a.startTime||(a.startTime=l),a.timestamp=l;const n=l-a.startTime;a.remaining=a.localDuration-n,s?F(d)?a.printVal=a.localStartVal-i(n,0,a.localStartVal-e,a.localDuration):a.printVal=i(n,a.localStartVal,e-a.localStartVal,a.localDuration):F(d)?a.printVal=a.localStartVal-(a.localStartVal-e)*(n/a.localDuration):a.printVal=a.localStartVal+(e-a.localStartVal)*(n/a.localDuration),F(d)?a.printVal=a.printVale?e:a.printVal,a.displayValue=m(a.printVal),n(B(),M("span",$,R(y.value),1))}});export{X as _}; diff --git a/assets/DefaultForm-BLKW_hvw.js b/assets/DefaultForm-Dg_j11XR.js similarity index 96% rename from assets/DefaultForm-BLKW_hvw.js rename to assets/DefaultForm-Dg_j11XR.js index b1f642f5..61d19d5c 100644 --- a/assets/DefaultForm-BLKW_hvw.js +++ b/assets/DefaultForm-Dg_j11XR.js @@ -1 +1 @@ -var f=(w,k,s)=>new Promise((u,m)=>{var b=i=>{try{d(s.next(i))}catch(p){m(p)}},y=i=>{try{d(s.throw(i))}catch(p){m(p)}},d=i=>i.done?u(i.value):Promise.resolve(i.value).then(b,y);d((s=s.apply(w,k)).next())});import{F as O}from"./Form-DJ57xbBt.js";import{_ as R}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{u as F}from"./index-CA0d6hyI.js";/* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css */import{I as o}from"./Icon-Bwi9LaBZ.js";import{g}from"./index-DxxgNbTS.js";import{_ as S}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{t as A,v as G,w as M,x as j,y as V,z as U,A as Y,j as K,E as C,B as q}from"./element-plus-6v3c1uXT.js";import{q as H,d as J,r as P,o as Q,K as W,P as a,Q as c,W as n,t as X,T as Z,S as ee,u as L}from"./vue-chunks-DOWhatC1.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css *//* empty css */const Ee=H({__name:"DefaultForm",setup(w){const k=F(),s=J(()=>k.getMobile),u=P([]),m=(e,l)=>{const t=e?u.value.filter(d(e)):u.value;l(t)};let b;const y=(e,l)=>{const t=e?u.value.filter(d(e)):u.value;clearTimeout(b),b=setTimeout(()=>{l(t)},3e3*Math.random())},d=e=>l=>l.value.toLowerCase().indexOf(e.toLowerCase())===0,i=()=>[{value:"vue",link:"https://github.com/vuejs/vue"},{value:"element",link:"https://github.com/ElemeFE/element"},{value:"cooking",link:"https://github.com/ElemeFE/cooking"},{value:"mint-ui",link:"https://github.com/ElemeFE/mint-ui"},{value:"vuex",link:"https://github.com/vuejs/vuex"},{value:"vue-router",link:"https://github.com/vuejs/vue-router"},{value:"babel",link:"https://github.com/babel/babel"}],p=e=>{};Q(()=>{u.value=i()});const T=["a","b","c","d","e","f","g","h","i","j"],$=P(Array.from({length:1e3}).map((e,l)=>({value:`Option ${l+1}`,label:`${T[l%10]}${l}`}))),E=P(Array.from({length:10}).map((e,l)=>{const t=l+1;return{value:`Group ${t}`,label:`Group ${t}`,options:Array.from({length:10}).map((le,x)=>({value:`Option ${x+1+10*t}`,label:`${T[x%10]}${x+1+10*t}`}))}})),I=[{value:"guide",label:"Guide",children:[{value:"disciplines",label:"Disciplines",children:[{value:"consistency",label:"Consistency"},{value:"feedback",label:"Feedback"},{value:"efficiency",label:"Efficiency"},{value:"controllability",label:"Controllability"}]},{value:"navigation",label:"Navigation",children:[{value:"side nav",label:"Side Navigation"},{value:"top nav",label:"Top Navigation"}]}]},{value:"component",label:"Component",children:[{value:"basic",label:"Basic",children:[{value:"layout",label:"Layout"},{value:"color",label:"Color"},{value:"typography",label:"Typography"},{value:"icon",label:"Icon"},{value:"button",label:"Button"}]},{value:"form",label:"Form",children:[{value:"radio",label:"Radio"},{value:"checkbox",label:"Checkbox"},{value:"input",label:"Input"},{value:"input-number",label:"InputNumber"},{value:"select",label:"Select"},{value:"cascader",label:"Cascader"},{value:"switch",label:"Switch"},{value:"slider",label:"Slider"},{value:"time-picker",label:"TimePicker"},{value:"date-picker",label:"DatePicker"},{value:"datetime-picker",label:"DateTimePicker"},{value:"upload",label:"Upload"},{value:"rate",label:"Rate"},{value:"form",label:"Form"}]},{value:"data",label:"Data",children:[{value:"table",label:"Table"},{value:"tag",label:"Tag"},{value:"progress",label:"Progress"},{value:"tree",label:"Tree"},{value:"pagination",label:"Pagination"},{value:"badge",label:"Badge"}]},{value:"notice",label:"Notice",children:[{value:"alert",label:"Alert"},{value:"loading",label:"Loading"},{value:"message",label:"Message"},{value:"message-box",label:"MessageBox"},{value:"notification",label:"Notification"}]},{value:"navigation",label:"Navigation",children:[{value:"menu",label:"Menu"},{value:"tabs",label:"Tabs"},{value:"breadcrumb",label:"Breadcrumb"},{value:"dropdown",label:"Dropdown"},{value:"steps",label:"Steps"}]},{value:"others",label:"Others",children:[{value:"dialog",label:"Dialog"},{value:"tooltip",label:"Tooltip"},{value:"popover",label:"Popover"},{value:"card",label:"Card"},{value:"carousel",label:"Carousel"},{value:"collapse",label:"Collapse"}]}]}],D=()=>{const e=[];for(let l=1;l<=15;l++)e.push({value:l,desc:`Option ${l}`,disabled:l%4===0});return e},N=["2021-10-01","2021-10-02","2021-10-03","2021-10-04","2021-10-05","2021-10-06","2021-10-07"],_=({dayjs:e})=>N.includes(e.format("YYYY-MM-DD")),r=[{value:"1",label:"Level one 1",children:[{value:"1-1",label:"Level two 1-1",children:[{value:"1-1-1",label:"Level three 1-1-1"}]}]},{value:"2",label:"Level one 2",children:[{value:"2-1",label:"Level two 2-1",children:[{value:"2-1-1",label:"Level three 2-1-1"}]},{value:"2-2",label:"Level two 2-2",children:[{value:"2-2-1",label:"Level three 2-2-1"}]}]},{value:"3",label:"Level one 3",children:[{value:"3-1",label:"Level two 3-1",children:[{value:"3-1-1",label:"Level three 3-1-1"}]},{value:"3-2",label:"Level two 3-2",children:[{value:"3-2-1",label:"Level three 3-2-1"}]}]}],B=()=>new Promise(e=>{setTimeout(()=>{e(r)},3e3)});let v=0;const h=P(""),z=W([{field:"field1",label:"输入框",component:"Divider"},{field:"field2",label:"默认",component:"Input",componentProps:{formatter:e=>`$ ${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,","),parser:e=>e.replace(/\$\s?|(,*)/g,"")}},{field:"field3",label:"图标1",component:"Input",componentProps:{suffixIcon:a(o,{icon:"ep:calendar"},null),prefixIcon:a(o,{icon:"ep:share"},null)}},{field:"field4",label:"图标2",component:"Input",componentProps:{slots:{suffix:()=>a(o,{icon:"ep:share"},null),prefix:()=>a(o,{icon:"ep:calendar"},null)}}},{field:"field5",label:"复合型",component:"Input",componentProps:{slots:{prepend:()=>a(o,{icon:"ep:calendar"},null),append:()=>a(o,{icon:"ep:share"},null)}}},{field:"input-field7",label:"密码框",component:"Input",componentProps:{showPassword:!0}},{field:"field6",label:" 多行文本",component:"Input",componentProps:{type:"textarea",rows:2}},{field:"field7",label:"自动补全",component:"Divider"},{field:"field8",label:"默认",component:"Autocomplete",componentProps:{fetchSuggestions:m,on:{select:p}}},{field:"field9",label:"插槽",component:"Autocomplete",componentProps:{fetchSuggestions:m,on:{select:p},slots:{default:({item:e})=>a(c,null,[a("div",{class:"value"},[e==null?void 0:e.value]),a("span",{class:"link"},[e==null?void 0:e.link])])}}},{field:"autocomplete-field10",label:"远程搜索",component:"Autocomplete",componentProps:{fetchSuggestions:y,on:{select:p}}},{field:"field10",component:"Divider",label:"数字输入框"},{field:"field11",label:"默认",component:"InputNumber",value:0},{field:"field12",label:"位置",component:"InputNumber",componentProps:{controlsPosition:"right"},value:10},{field:"field13",label:"选择器",component:"Divider"},{field:"field14",label:"默认",component:"Select",componentProps:{options:[{disabled:!0,label:"option1",value:"1"},{label:"option2",value:"2"}]}},{field:"field15",label:"插槽",component:"Select",componentProps:{options:[{label:"option1",value:"1"},{label:"option2",value:"2"}],slots:{default:e=>e.length?e==null?void 0:e.map(l=>a(A,{key:l.value,label:l.label,value:l.value},null)):null,prefix:()=>a(o,{icon:"ep:calendar"},null)}}},{field:"select-field18",label:"选项插槽",component:"Select",componentProps:{options:[{value:"Beijing",label:"Beijing"},{value:"Shanghai",label:"Shanghai"},{value:"Nanjing",label:"Nanjing"},{value:"Chengdu",label:"Chengdu"},{value:"Shenzhen",label:"Shenzhen"},{value:"Guangzhou",label:"Guangzhou"}],slots:{optionDefault:e=>a(c,null,[a("span",{style:"float: left"},[e.label]),a("span",{style:"float: right; color: var(--el-text-color-secondary); font-size: 13px;"},[e.value])])}}},{field:"field16",label:"选项分组",component:"Select",componentProps:{options:[{label:"option1",options:[{disabled:!0,label:"option1-1",value:"1-1"},{label:"option1-2",value:"1-2"}]},{label:"option2",options:[{label:"option2-1",value:"2-1"},{label:"option2-2",value:"2-2"}]}]}},{field:"field17",label:"选项分组 插槽",component:"Select",componentProps:{options:[{label:"option1",options:[{label:"option1-1",value:"1-1"},{label:"option1-2",value:"1-2"}]},{label:"option2",options:[{label:"option2-1",value:"2-1"},{label:"option2-2",value:"2-2"}]}],slots:{optionGroupDefault:e=>a(G,{key:e.label,label:`${e.label} ${e.label}`},{default:()=>{var l;return[(l=e==null?void 0:e.options)==null?void 0:l.map(t=>a(A,{key:t.value,label:t.label,value:t.value},null))]}})}}},{field:"field18",label:"虚拟列表选择器",component:"Divider"},{field:"field19",label:"默认",component:"SelectV2",componentProps:{value:void 0,options:$.value}},{field:"field20",label:"插槽",component:"SelectV2",componentProps:{options:$.value,slots:{default:e=>a(c,null,[a("span",{style:"margin-right: 8px"},[e==null?void 0:e.label]),a("span",{style:"color: var(--el-text-color-secondary); font-size: 13px"},[e==null?void 0:e.value])])}}},{field:"field21",label:"选项分组",component:"SelectV2",componentProps:{options:E.value}},{field:"field22",label:"选项分组 插槽",component:"SelectV2",componentProps:{options:E.value,slots:{default:e=>a(c,null,[a("span",{style:"margin-right: 8px"},[e==null?void 0:e.label]),a("span",{style:"color: var(--el-text-color-secondary); font-size: 13px"},[e==null?void 0:e.value])])}}},{field:"field23",label:"级联选择器",component:"Divider"},{field:"field24",label:"默认",component:"Cascader",componentProps:{options:I,props:{multiple:!0}}},{field:"field25",label:"插槽",component:"Cascader",componentProps:{options:I,slots:{default:({data:e,node:l})=>a(c,null,[a("span",null,[e.label]),l.isLeaf?null:a("span",null,[n(" ("),e.children.length,n(") ")])])}}},{field:"field26",label:"开关",component:"Divider"},{field:"field27",label:"默认",component:"Switch",value:!1},{field:"field28",label:"图标",component:"Switch",value:!1,componentProps:{activeIcon:a(o,{icon:"ep:check"},null),inactiveIcon:a(o,{icon:"ep:close"},null)}},{field:"field29",label:"评分",component:"Divider"},{field:"field30",label:"默认",component:"Rate",value:0},{field:"field31",label:"图标",component:"Rate",value:null,componentProps:{voidIcon:a(o,{icon:"ep:chat-round"},null),icons:[a(o,{icon:"ep:chat-round"},null),a(o,{icon:"ep:chat-line-round"},null),a(o,{icon:"ep:chat-dot-round"},null)]}},{field:"field32",label:"颜色选择器",component:"Divider"},{field:"field33",label:"默认",component:"ColorPicker"},{field:"field34",label:"穿梭框",component:"Divider"},{field:"field35",label:"默认",component:"Transfer",componentProps:{props:{key:"value",label:"desc"},data:D()},value:[],colProps:{span:24}},{field:"field36",label:"插槽",component:"Transfer",componentProps:{props:{key:"value",label:"desc"},filterable:!0,leftDefaultChecked:[2,3],rightDefaultChecked:[1],titles:["Source","Target"],buttonTexts:["To Left","To Right"],format:{noChecked:"${total}",hasChecked:"${checked}/${total}"},data:D(),slots:{default:({option:e})=>a("span",null,[e.value,n(" - "),e.desc]),leftFooter:()=>a(S,{class:"transfer-footer",size:"small"},{default:()=>[n("Operation")]}),rightFooter:()=>a(S,{class:"transfer-footer",size:"small"},{default:()=>[n("Operation")]})}},value:[1],colProps:{span:24}},{field:"field37",label:"渲染器",component:"Transfer",componentProps:{props:{key:"value",label:"desc",disabled:"disabled"},leftDefaultChecked:[2,3],rightDefaultChecked:[1],data:D(),renderContent:(e,l)=>e("span",null,`${l.value} - ${l.desc}`)},value:[1],colProps:{span:24}},{field:"field38",label:"单选框",component:"Divider"},{field:"field39-2",label:"单选框组",component:"RadioGroup",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}]}},{field:"field39-3",label:"单选框组 插槽",component:"RadioGroup",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}],slots:{default:e=>e==null?void 0:e.map(l=>a(M,{label:l.label+`(${l.value})`,value:l.value},null))}}},{field:"field40",label:"按钮",component:"RadioButton",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}]}},{field:"field40-1",label:"按钮 插槽",component:"RadioButton",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}],slots:{default:e=>e==null?void 0:e.map(l=>a(j,{label:l.label+`(${l.value})`,value:l.value},null))}}},{field:"field41",label:"多选框",component:"Divider"},{field:"field42-2",label:"多选框组",component:"CheckboxGroup",value:[],componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"},{label:"option-3",value:"3"}]}},{field:"field42-3",label:"多选框组 插槽",component:"CheckboxGroup",value:[],componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"},{label:"option-3",value:"3"}],slots:{default:e=>e==null?void 0:e.map(l=>a(V,{label:l.label+`(${l.value})`,value:l.value},null))}}},{field:"field43",label:"按钮",component:"CheckboxButton",value:[],componentProps:{options:[{disabled:!0,label:"option-1",value:"1"},{label:"option-2",value:"2"},{label:"option-3",value:"23"}]}},{field:"field43-1",label:"按钮 插槽",component:"CheckboxButton",value:[],componentProps:{options:[{disabled:!0,label:"option-1",value:"1"},{label:"option-2",value:"2"},{label:"option-3",value:"23"}],slots:{default:e=>e==null?void 0:e.map(l=>a(U,{label:l.label+`(${l.value})`,value:l.value},null))}}},{field:"field44",component:"Divider",label:"滑块"},{field:"field45",component:"Slider",label:"默认",value:0},{field:"field46",component:"Divider",label:"日期选择器"},{field:"field47",component:"DatePicker",label:"默认",componentProps:{type:"date"}},{field:"field48",component:"DatePicker",label:"日期选择器",componentProps:{type:"date",disabledDate:e=>e.getTime()>Date.now(),shortcuts:[{text:"今天",value:new Date},{text:"昨天",value:()=>{const e=new Date;return e.setTime(e.getTime()-3600*1e3*24),e}},{text:"一周前",value:()=>{const e=new Date;return e.setTime(e.getTime()-3600*1e3*24*7),e}}]}},{field:"field47-1",component:"DatePicker",label:"插槽",value:"2021-10-29",componentProps:{type:"date",slots:{default:e=>a("div",{class:{cell:!0,current:e.isCurrent}},[a("span",{class:"text"},[e.text]),_(e)?a("span",{class:"holiday"},null):null])}}},{field:"field49",component:"DatePicker",label:"周",componentProps:{type:"week",format:"[周]"}},{field:"field50",component:"DatePicker",label:"年",componentProps:{type:"year"}},{field:"field51",component:"DatePicker",label:"月",componentProps:{type:"month"}},{field:"field52",component:"DatePicker",label:"日期",componentProps:{type:"dates"}},{field:"field53",component:"DatePicker",label:"日期范围",componentProps:{type:"daterange"}},{field:"field54",component:"DatePicker",label:"月份范围",componentProps:{type:"monthrange"}},{field:"field56",component:"Divider",label:"日期时间选择器"},{field:"field57",component:"DatePicker",label:"默认",componentProps:{type:"datetime"}},{field:"field58",component:"DatePicker",label:"日期选择器",componentProps:{type:"datetime",shortcuts:[{text:"今天",value:new Date},{text:"昨天",value:()=>{const e=new Date;return e.setTime(e.getTime()-3600*1e3*24),e}},{text:"一周前",value:()=>{const e=new Date;return e.setTime(e.getTime()-3600*1e3*24*7),e}}]}},{field:"field59",component:"DatePicker",label:"日期时间范围",componentProps:{type:"datetimerange"}},{field:"field60",component:"Divider",label:"时间选择器"},{field:"field61",component:"TimePicker",label:"默认"},{field:"field62",component:"Divider",label:"时间选择"},{field:"field63",component:"TimeSelect",label:"默认"},{field:"field66",component:"Divider",label:"密码输入框"},{field:"field67",component:"InputPassword",label:"默认",componentProps:{strength:!0}},{field:"field68",component:"Divider",label:"表单 插槽"},{field:"field69",component:"Input",label:"label",formItemProps:{slots:{label:({label:e})=>a("div",{class:"custom-label"},[a("span",{class:"label-text"},[n("custom "),e])])}}},{field:"field69-1",component:"Input",label:"custom formItem",formItemProps:{slots:{default:e=>a(Y,{modelValue:e["field69-1"],"onUpdate:modelValue":l=>e["field69-1"]=l},null)}}},{field:"field70",component:"Divider",label:"远程加载"},{field:"field71",label:"选择器",component:"Select",componentProps:{options:[]},optionApi:()=>f(this,null,function*(){return(yield g()).data})},{field:"field72",label:"虚拟列表选择器",component:"SelectV2",componentProps:{options:[]},optionApi:()=>f(this,null,function*(){return(yield g()).data})},{field:"field73",label:"多选框组",component:"CheckboxGroup",componentProps:{options:[]},optionApi:()=>f(this,null,function*(){return(yield g()).data})},{field:"field74",label:"单选框组",component:"RadioGroup",componentProps:{options:[]},optionApi:()=>f(this,null,function*(){return(yield g()).data})},{field:"field82",label:"树形选择器",component:"TreeSelect",optionApi:()=>f(this,null,function*(){return yield B()})},{field:"field75",component:"Divider",label:"树形选择器"},{field:"field76",component:"TreeSelect",label:"默认",componentProps:{renderAfterExpand:!1,data:r}},{field:"field76",component:"TreeSelect",label:"显示复选框",componentProps:{renderAfterExpand:!1,showCheckbox:!0,data:r}},{field:"field77",component:"TreeSelect",label:"选择任意级别",componentProps:{renderAfterExpand:!1,showCheckbox:!0,checkStrictly:!0,checkOnClickNode:!0,data:r}},{field:"field78",component:"TreeSelect",label:"多选",componentProps:{renderAfterExpand:!1,multiple:!0,showCheckbox:!0,checkStrictly:!0,checkOnClickNode:!0,data:r}},{field:"field79",component:"TreeSelect",label:"可筛选",componentProps:{renderAfterExpand:!1,multiple:!0,filterable:!0,showCheckbox:!0,checkStrictly:!0,checkOnClickNode:!0,filterNodeMethod:(e,l)=>l.label.includes(e),data:r}},{field:"field80",component:"TreeSelect",label:"自定义内容",componentProps:{renderAfterExpand:!1,multiple:!0,filterable:!0,showCheckbox:!0,checkStrictly:!0,checkOnClickNode:!0,filterNodeMethod:(e,l)=>l.label.includes(e),slots:{default:({data:{label:e}})=>a(c,null,[e,a("span",{style:"color: gray"},[n("(suffix)")])])},data:r}},{field:"field81",component:"TreeSelect",label:"懒加载",componentProps:{renderAfterExpand:!1,lazy:!0,load:(e,l)=>{if(e.isLeaf)return l([]);setTimeout(()=>{l([{value:++v,label:`lazy load node${v}`},{value:++v,label:`lazy load node${v}`,isLeaf:!0}])},400)},multiple:!0,filterable:!0,showCheckbox:!0,checkStrictly:!0,checkOnClickNode:!0,filterNodeMethod:(e,l)=>l.label.includes(e),slots:{default:({data:{label:e}})=>a(c,null,[e,a("span",{style:"color: gray"},[n("(suffix)")])])},data:r}},{field:"field82",component:"Divider",label:"上传"},{field:"field83",component:"Upload",label:"默认",componentProps:{limit:3,action:"https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",fileList:[{name:"element-plus-logo.svg",url:"https://element-plus.org/images/element-plus-logo.svg"},{name:"element-plus-logo2.svg",url:"https://element-plus.org/images/element-plus-logo.svg"}],multiple:!0,onPreview:e=>{},onRemove:e=>{},beforeRemove:e=>K.confirm(`Cancel the transfer of ${e.name} ?`).then(()=>!0,()=>!1),onExceed:(e,l)=>{C.warning(`The limit is 3, you selected ${e.length} files this time, add up to ${e.length+l.length} totally`)},slots:{default:()=>a(S,{type:"primary"},{default:()=>[n("Click to upload")]}),tip:()=>a("div",{class:"el-upload__tip"},[n("jpg/png files with a size less than 500KB.")])}}},{field:"field84",component:"Upload",label:"用户头像",componentProps:{action:"https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",showFileList:!1,onSuccess:(e,l)=>{h.value=URL.createObjectURL(l.raw)},beforeUpload:e=>e.type!=="image/jpeg"?(C.error("Avatar picture must be JPG format!"),!1):e.size/1024/1024>2?(C.error("Avatar picture size can not exceed 2MB!"),!1):!0,slots:{default:()=>a(c,null,[h.value?a("img",{src:h.value,class:"avatar"},null):null,h.value?null:a(q,{class:"avatar-uploader-icon",size:"large"},{default:()=>[n("add")]})])}}},{field:"field87",component:"Divider",label:"图标选择器"},{field:"field88",component:"IconPicker",label:"默认",value:"tdesign:archway"}]);return(e,l)=>(X(),Z(L(R),{title:"全部示例",message:"基于 ElementPlus 的 Form 组件二次封装,实现数据驱动,支持所有 Form 参数"},{default:ee(()=>[a(L(O),{schema:z,"label-width":"auto","label-position":s.value?"top":"right"},null,8,["schema","label-position"])]),_:1}))}});export{Ee as default}; +var f=(w,k,s)=>new Promise((u,m)=>{var b=i=>{try{d(s.next(i))}catch(p){m(p)}},y=i=>{try{d(s.throw(i))}catch(p){m(p)}},d=i=>i.done?u(i.value):Promise.resolve(i.value).then(b,y);d((s=s.apply(w,k)).next())});import{F as O}from"./Form-B3fdtaFM.js";import{_ as R}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{u as F}from"./index-B5z15nYm.js";/* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css */import{I as o}from"./Icon-B-0CON7P.js";import{g}from"./index-Dt71D4p1.js";import{_ as S}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{t as A,v as G,w as M,x as j,y as V,z as U,A as Y,j as K,E as C,B as q}from"./element-plus-6v3c1uXT.js";import{q as H,d as J,r as P,o as Q,K as W,P as a,Q as c,W as n,t as X,T as Z,S as ee,u as L}from"./vue-chunks-DOWhatC1.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css *//* empty css */const Ee=H({__name:"DefaultForm",setup(w){const k=F(),s=J(()=>k.getMobile),u=P([]),m=(e,l)=>{const t=e?u.value.filter(d(e)):u.value;l(t)};let b;const y=(e,l)=>{const t=e?u.value.filter(d(e)):u.value;clearTimeout(b),b=setTimeout(()=>{l(t)},3e3*Math.random())},d=e=>l=>l.value.toLowerCase().indexOf(e.toLowerCase())===0,i=()=>[{value:"vue",link:"https://github.com/vuejs/vue"},{value:"element",link:"https://github.com/ElemeFE/element"},{value:"cooking",link:"https://github.com/ElemeFE/cooking"},{value:"mint-ui",link:"https://github.com/ElemeFE/mint-ui"},{value:"vuex",link:"https://github.com/vuejs/vuex"},{value:"vue-router",link:"https://github.com/vuejs/vue-router"},{value:"babel",link:"https://github.com/babel/babel"}],p=e=>{};Q(()=>{u.value=i()});const T=["a","b","c","d","e","f","g","h","i","j"],$=P(Array.from({length:1e3}).map((e,l)=>({value:`Option ${l+1}`,label:`${T[l%10]}${l}`}))),E=P(Array.from({length:10}).map((e,l)=>{const t=l+1;return{value:`Group ${t}`,label:`Group ${t}`,options:Array.from({length:10}).map((le,x)=>({value:`Option ${x+1+10*t}`,label:`${T[x%10]}${x+1+10*t}`}))}})),I=[{value:"guide",label:"Guide",children:[{value:"disciplines",label:"Disciplines",children:[{value:"consistency",label:"Consistency"},{value:"feedback",label:"Feedback"},{value:"efficiency",label:"Efficiency"},{value:"controllability",label:"Controllability"}]},{value:"navigation",label:"Navigation",children:[{value:"side nav",label:"Side Navigation"},{value:"top nav",label:"Top Navigation"}]}]},{value:"component",label:"Component",children:[{value:"basic",label:"Basic",children:[{value:"layout",label:"Layout"},{value:"color",label:"Color"},{value:"typography",label:"Typography"},{value:"icon",label:"Icon"},{value:"button",label:"Button"}]},{value:"form",label:"Form",children:[{value:"radio",label:"Radio"},{value:"checkbox",label:"Checkbox"},{value:"input",label:"Input"},{value:"input-number",label:"InputNumber"},{value:"select",label:"Select"},{value:"cascader",label:"Cascader"},{value:"switch",label:"Switch"},{value:"slider",label:"Slider"},{value:"time-picker",label:"TimePicker"},{value:"date-picker",label:"DatePicker"},{value:"datetime-picker",label:"DateTimePicker"},{value:"upload",label:"Upload"},{value:"rate",label:"Rate"},{value:"form",label:"Form"}]},{value:"data",label:"Data",children:[{value:"table",label:"Table"},{value:"tag",label:"Tag"},{value:"progress",label:"Progress"},{value:"tree",label:"Tree"},{value:"pagination",label:"Pagination"},{value:"badge",label:"Badge"}]},{value:"notice",label:"Notice",children:[{value:"alert",label:"Alert"},{value:"loading",label:"Loading"},{value:"message",label:"Message"},{value:"message-box",label:"MessageBox"},{value:"notification",label:"Notification"}]},{value:"navigation",label:"Navigation",children:[{value:"menu",label:"Menu"},{value:"tabs",label:"Tabs"},{value:"breadcrumb",label:"Breadcrumb"},{value:"dropdown",label:"Dropdown"},{value:"steps",label:"Steps"}]},{value:"others",label:"Others",children:[{value:"dialog",label:"Dialog"},{value:"tooltip",label:"Tooltip"},{value:"popover",label:"Popover"},{value:"card",label:"Card"},{value:"carousel",label:"Carousel"},{value:"collapse",label:"Collapse"}]}]}],D=()=>{const e=[];for(let l=1;l<=15;l++)e.push({value:l,desc:`Option ${l}`,disabled:l%4===0});return e},N=["2021-10-01","2021-10-02","2021-10-03","2021-10-04","2021-10-05","2021-10-06","2021-10-07"],_=({dayjs:e})=>N.includes(e.format("YYYY-MM-DD")),r=[{value:"1",label:"Level one 1",children:[{value:"1-1",label:"Level two 1-1",children:[{value:"1-1-1",label:"Level three 1-1-1"}]}]},{value:"2",label:"Level one 2",children:[{value:"2-1",label:"Level two 2-1",children:[{value:"2-1-1",label:"Level three 2-1-1"}]},{value:"2-2",label:"Level two 2-2",children:[{value:"2-2-1",label:"Level three 2-2-1"}]}]},{value:"3",label:"Level one 3",children:[{value:"3-1",label:"Level two 3-1",children:[{value:"3-1-1",label:"Level three 3-1-1"}]},{value:"3-2",label:"Level two 3-2",children:[{value:"3-2-1",label:"Level three 3-2-1"}]}]}],B=()=>new Promise(e=>{setTimeout(()=>{e(r)},3e3)});let v=0;const h=P(""),z=W([{field:"field1",label:"输入框",component:"Divider"},{field:"field2",label:"默认",component:"Input",componentProps:{formatter:e=>`$ ${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,","),parser:e=>e.replace(/\$\s?|(,*)/g,"")}},{field:"field3",label:"图标1",component:"Input",componentProps:{suffixIcon:a(o,{icon:"ep:calendar"},null),prefixIcon:a(o,{icon:"ep:share"},null)}},{field:"field4",label:"图标2",component:"Input",componentProps:{slots:{suffix:()=>a(o,{icon:"ep:share"},null),prefix:()=>a(o,{icon:"ep:calendar"},null)}}},{field:"field5",label:"复合型",component:"Input",componentProps:{slots:{prepend:()=>a(o,{icon:"ep:calendar"},null),append:()=>a(o,{icon:"ep:share"},null)}}},{field:"input-field7",label:"密码框",component:"Input",componentProps:{showPassword:!0}},{field:"field6",label:" 多行文本",component:"Input",componentProps:{type:"textarea",rows:2}},{field:"field7",label:"自动补全",component:"Divider"},{field:"field8",label:"默认",component:"Autocomplete",componentProps:{fetchSuggestions:m,on:{select:p}}},{field:"field9",label:"插槽",component:"Autocomplete",componentProps:{fetchSuggestions:m,on:{select:p},slots:{default:({item:e})=>a(c,null,[a("div",{class:"value"},[e==null?void 0:e.value]),a("span",{class:"link"},[e==null?void 0:e.link])])}}},{field:"autocomplete-field10",label:"远程搜索",component:"Autocomplete",componentProps:{fetchSuggestions:y,on:{select:p}}},{field:"field10",component:"Divider",label:"数字输入框"},{field:"field11",label:"默认",component:"InputNumber",value:0},{field:"field12",label:"位置",component:"InputNumber",componentProps:{controlsPosition:"right"},value:10},{field:"field13",label:"选择器",component:"Divider"},{field:"field14",label:"默认",component:"Select",componentProps:{options:[{disabled:!0,label:"option1",value:"1"},{label:"option2",value:"2"}]}},{field:"field15",label:"插槽",component:"Select",componentProps:{options:[{label:"option1",value:"1"},{label:"option2",value:"2"}],slots:{default:e=>e.length?e==null?void 0:e.map(l=>a(A,{key:l.value,label:l.label,value:l.value},null)):null,prefix:()=>a(o,{icon:"ep:calendar"},null)}}},{field:"select-field18",label:"选项插槽",component:"Select",componentProps:{options:[{value:"Beijing",label:"Beijing"},{value:"Shanghai",label:"Shanghai"},{value:"Nanjing",label:"Nanjing"},{value:"Chengdu",label:"Chengdu"},{value:"Shenzhen",label:"Shenzhen"},{value:"Guangzhou",label:"Guangzhou"}],slots:{optionDefault:e=>a(c,null,[a("span",{style:"float: left"},[e.label]),a("span",{style:"float: right; color: var(--el-text-color-secondary); font-size: 13px;"},[e.value])])}}},{field:"field16",label:"选项分组",component:"Select",componentProps:{options:[{label:"option1",options:[{disabled:!0,label:"option1-1",value:"1-1"},{label:"option1-2",value:"1-2"}]},{label:"option2",options:[{label:"option2-1",value:"2-1"},{label:"option2-2",value:"2-2"}]}]}},{field:"field17",label:"选项分组 插槽",component:"Select",componentProps:{options:[{label:"option1",options:[{label:"option1-1",value:"1-1"},{label:"option1-2",value:"1-2"}]},{label:"option2",options:[{label:"option2-1",value:"2-1"},{label:"option2-2",value:"2-2"}]}],slots:{optionGroupDefault:e=>a(G,{key:e.label,label:`${e.label} ${e.label}`},{default:()=>{var l;return[(l=e==null?void 0:e.options)==null?void 0:l.map(t=>a(A,{key:t.value,label:t.label,value:t.value},null))]}})}}},{field:"field18",label:"虚拟列表选择器",component:"Divider"},{field:"field19",label:"默认",component:"SelectV2",componentProps:{value:void 0,options:$.value}},{field:"field20",label:"插槽",component:"SelectV2",componentProps:{options:$.value,slots:{default:e=>a(c,null,[a("span",{style:"margin-right: 8px"},[e==null?void 0:e.label]),a("span",{style:"color: var(--el-text-color-secondary); font-size: 13px"},[e==null?void 0:e.value])])}}},{field:"field21",label:"选项分组",component:"SelectV2",componentProps:{options:E.value}},{field:"field22",label:"选项分组 插槽",component:"SelectV2",componentProps:{options:E.value,slots:{default:e=>a(c,null,[a("span",{style:"margin-right: 8px"},[e==null?void 0:e.label]),a("span",{style:"color: var(--el-text-color-secondary); font-size: 13px"},[e==null?void 0:e.value])])}}},{field:"field23",label:"级联选择器",component:"Divider"},{field:"field24",label:"默认",component:"Cascader",componentProps:{options:I,props:{multiple:!0}}},{field:"field25",label:"插槽",component:"Cascader",componentProps:{options:I,slots:{default:({data:e,node:l})=>a(c,null,[a("span",null,[e.label]),l.isLeaf?null:a("span",null,[n(" ("),e.children.length,n(") ")])])}}},{field:"field26",label:"开关",component:"Divider"},{field:"field27",label:"默认",component:"Switch",value:!1},{field:"field28",label:"图标",component:"Switch",value:!1,componentProps:{activeIcon:a(o,{icon:"ep:check"},null),inactiveIcon:a(o,{icon:"ep:close"},null)}},{field:"field29",label:"评分",component:"Divider"},{field:"field30",label:"默认",component:"Rate",value:0},{field:"field31",label:"图标",component:"Rate",value:null,componentProps:{voidIcon:a(o,{icon:"ep:chat-round"},null),icons:[a(o,{icon:"ep:chat-round"},null),a(o,{icon:"ep:chat-line-round"},null),a(o,{icon:"ep:chat-dot-round"},null)]}},{field:"field32",label:"颜色选择器",component:"Divider"},{field:"field33",label:"默认",component:"ColorPicker"},{field:"field34",label:"穿梭框",component:"Divider"},{field:"field35",label:"默认",component:"Transfer",componentProps:{props:{key:"value",label:"desc"},data:D()},value:[],colProps:{span:24}},{field:"field36",label:"插槽",component:"Transfer",componentProps:{props:{key:"value",label:"desc"},filterable:!0,leftDefaultChecked:[2,3],rightDefaultChecked:[1],titles:["Source","Target"],buttonTexts:["To Left","To Right"],format:{noChecked:"${total}",hasChecked:"${checked}/${total}"},data:D(),slots:{default:({option:e})=>a("span",null,[e.value,n(" - "),e.desc]),leftFooter:()=>a(S,{class:"transfer-footer",size:"small"},{default:()=>[n("Operation")]}),rightFooter:()=>a(S,{class:"transfer-footer",size:"small"},{default:()=>[n("Operation")]})}},value:[1],colProps:{span:24}},{field:"field37",label:"渲染器",component:"Transfer",componentProps:{props:{key:"value",label:"desc",disabled:"disabled"},leftDefaultChecked:[2,3],rightDefaultChecked:[1],data:D(),renderContent:(e,l)=>e("span",null,`${l.value} - ${l.desc}`)},value:[1],colProps:{span:24}},{field:"field38",label:"单选框",component:"Divider"},{field:"field39-2",label:"单选框组",component:"RadioGroup",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}]}},{field:"field39-3",label:"单选框组 插槽",component:"RadioGroup",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}],slots:{default:e=>e==null?void 0:e.map(l=>a(M,{label:l.label+`(${l.value})`,value:l.value},null))}}},{field:"field40",label:"按钮",component:"RadioButton",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}]}},{field:"field40-1",label:"按钮 插槽",component:"RadioButton",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}],slots:{default:e=>e==null?void 0:e.map(l=>a(j,{label:l.label+`(${l.value})`,value:l.value},null))}}},{field:"field41",label:"多选框",component:"Divider"},{field:"field42-2",label:"多选框组",component:"CheckboxGroup",value:[],componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"},{label:"option-3",value:"3"}]}},{field:"field42-3",label:"多选框组 插槽",component:"CheckboxGroup",value:[],componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"},{label:"option-3",value:"3"}],slots:{default:e=>e==null?void 0:e.map(l=>a(V,{label:l.label+`(${l.value})`,value:l.value},null))}}},{field:"field43",label:"按钮",component:"CheckboxButton",value:[],componentProps:{options:[{disabled:!0,label:"option-1",value:"1"},{label:"option-2",value:"2"},{label:"option-3",value:"23"}]}},{field:"field43-1",label:"按钮 插槽",component:"CheckboxButton",value:[],componentProps:{options:[{disabled:!0,label:"option-1",value:"1"},{label:"option-2",value:"2"},{label:"option-3",value:"23"}],slots:{default:e=>e==null?void 0:e.map(l=>a(U,{label:l.label+`(${l.value})`,value:l.value},null))}}},{field:"field44",component:"Divider",label:"滑块"},{field:"field45",component:"Slider",label:"默认",value:0},{field:"field46",component:"Divider",label:"日期选择器"},{field:"field47",component:"DatePicker",label:"默认",componentProps:{type:"date"}},{field:"field48",component:"DatePicker",label:"日期选择器",componentProps:{type:"date",disabledDate:e=>e.getTime()>Date.now(),shortcuts:[{text:"今天",value:new Date},{text:"昨天",value:()=>{const e=new Date;return e.setTime(e.getTime()-3600*1e3*24),e}},{text:"一周前",value:()=>{const e=new Date;return e.setTime(e.getTime()-3600*1e3*24*7),e}}]}},{field:"field47-1",component:"DatePicker",label:"插槽",value:"2021-10-29",componentProps:{type:"date",slots:{default:e=>a("div",{class:{cell:!0,current:e.isCurrent}},[a("span",{class:"text"},[e.text]),_(e)?a("span",{class:"holiday"},null):null])}}},{field:"field49",component:"DatePicker",label:"周",componentProps:{type:"week",format:"[周]"}},{field:"field50",component:"DatePicker",label:"年",componentProps:{type:"year"}},{field:"field51",component:"DatePicker",label:"月",componentProps:{type:"month"}},{field:"field52",component:"DatePicker",label:"日期",componentProps:{type:"dates"}},{field:"field53",component:"DatePicker",label:"日期范围",componentProps:{type:"daterange"}},{field:"field54",component:"DatePicker",label:"月份范围",componentProps:{type:"monthrange"}},{field:"field56",component:"Divider",label:"日期时间选择器"},{field:"field57",component:"DatePicker",label:"默认",componentProps:{type:"datetime"}},{field:"field58",component:"DatePicker",label:"日期选择器",componentProps:{type:"datetime",shortcuts:[{text:"今天",value:new Date},{text:"昨天",value:()=>{const e=new Date;return e.setTime(e.getTime()-3600*1e3*24),e}},{text:"一周前",value:()=>{const e=new Date;return e.setTime(e.getTime()-3600*1e3*24*7),e}}]}},{field:"field59",component:"DatePicker",label:"日期时间范围",componentProps:{type:"datetimerange"}},{field:"field60",component:"Divider",label:"时间选择器"},{field:"field61",component:"TimePicker",label:"默认"},{field:"field62",component:"Divider",label:"时间选择"},{field:"field63",component:"TimeSelect",label:"默认"},{field:"field66",component:"Divider",label:"密码输入框"},{field:"field67",component:"InputPassword",label:"默认",componentProps:{strength:!0}},{field:"field68",component:"Divider",label:"表单 插槽"},{field:"field69",component:"Input",label:"label",formItemProps:{slots:{label:({label:e})=>a("div",{class:"custom-label"},[a("span",{class:"label-text"},[n("custom "),e])])}}},{field:"field69-1",component:"Input",label:"custom formItem",formItemProps:{slots:{default:e=>a(Y,{modelValue:e["field69-1"],"onUpdate:modelValue":l=>e["field69-1"]=l},null)}}},{field:"field70",component:"Divider",label:"远程加载"},{field:"field71",label:"选择器",component:"Select",componentProps:{options:[]},optionApi:()=>f(this,null,function*(){return(yield g()).data})},{field:"field72",label:"虚拟列表选择器",component:"SelectV2",componentProps:{options:[]},optionApi:()=>f(this,null,function*(){return(yield g()).data})},{field:"field73",label:"多选框组",component:"CheckboxGroup",componentProps:{options:[]},optionApi:()=>f(this,null,function*(){return(yield g()).data})},{field:"field74",label:"单选框组",component:"RadioGroup",componentProps:{options:[]},optionApi:()=>f(this,null,function*(){return(yield g()).data})},{field:"field82",label:"树形选择器",component:"TreeSelect",optionApi:()=>f(this,null,function*(){return yield B()})},{field:"field75",component:"Divider",label:"树形选择器"},{field:"field76",component:"TreeSelect",label:"默认",componentProps:{renderAfterExpand:!1,data:r}},{field:"field76",component:"TreeSelect",label:"显示复选框",componentProps:{renderAfterExpand:!1,showCheckbox:!0,data:r}},{field:"field77",component:"TreeSelect",label:"选择任意级别",componentProps:{renderAfterExpand:!1,showCheckbox:!0,checkStrictly:!0,checkOnClickNode:!0,data:r}},{field:"field78",component:"TreeSelect",label:"多选",componentProps:{renderAfterExpand:!1,multiple:!0,showCheckbox:!0,checkStrictly:!0,checkOnClickNode:!0,data:r}},{field:"field79",component:"TreeSelect",label:"可筛选",componentProps:{renderAfterExpand:!1,multiple:!0,filterable:!0,showCheckbox:!0,checkStrictly:!0,checkOnClickNode:!0,filterNodeMethod:(e,l)=>l.label.includes(e),data:r}},{field:"field80",component:"TreeSelect",label:"自定义内容",componentProps:{renderAfterExpand:!1,multiple:!0,filterable:!0,showCheckbox:!0,checkStrictly:!0,checkOnClickNode:!0,filterNodeMethod:(e,l)=>l.label.includes(e),slots:{default:({data:{label:e}})=>a(c,null,[e,a("span",{style:"color: gray"},[n("(suffix)")])])},data:r}},{field:"field81",component:"TreeSelect",label:"懒加载",componentProps:{renderAfterExpand:!1,lazy:!0,load:(e,l)=>{if(e.isLeaf)return l([]);setTimeout(()=>{l([{value:++v,label:`lazy load node${v}`},{value:++v,label:`lazy load node${v}`,isLeaf:!0}])},400)},multiple:!0,filterable:!0,showCheckbox:!0,checkStrictly:!0,checkOnClickNode:!0,filterNodeMethod:(e,l)=>l.label.includes(e),slots:{default:({data:{label:e}})=>a(c,null,[e,a("span",{style:"color: gray"},[n("(suffix)")])])},data:r}},{field:"field82",component:"Divider",label:"上传"},{field:"field83",component:"Upload",label:"默认",componentProps:{limit:3,action:"https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",fileList:[{name:"element-plus-logo.svg",url:"https://element-plus.org/images/element-plus-logo.svg"},{name:"element-plus-logo2.svg",url:"https://element-plus.org/images/element-plus-logo.svg"}],multiple:!0,onPreview:e=>{},onRemove:e=>{},beforeRemove:e=>K.confirm(`Cancel the transfer of ${e.name} ?`).then(()=>!0,()=>!1),onExceed:(e,l)=>{C.warning(`The limit is 3, you selected ${e.length} files this time, add up to ${e.length+l.length} totally`)},slots:{default:()=>a(S,{type:"primary"},{default:()=>[n("Click to upload")]}),tip:()=>a("div",{class:"el-upload__tip"},[n("jpg/png files with a size less than 500KB.")])}}},{field:"field84",component:"Upload",label:"用户头像",componentProps:{action:"https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",showFileList:!1,onSuccess:(e,l)=>{h.value=URL.createObjectURL(l.raw)},beforeUpload:e=>e.type!=="image/jpeg"?(C.error("Avatar picture must be JPG format!"),!1):e.size/1024/1024>2?(C.error("Avatar picture size can not exceed 2MB!"),!1):!0,slots:{default:()=>a(c,null,[h.value?a("img",{src:h.value,class:"avatar"},null):null,h.value?null:a(q,{class:"avatar-uploader-icon",size:"large"},{default:()=>[n("add")]})])}}},{field:"field87",component:"Divider",label:"图标选择器"},{field:"field88",component:"IconPicker",label:"默认",value:"tdesign:archway"}]);return(e,l)=>(X(),Z(L(R),{title:"全部示例",message:"基于 ElementPlus 的 Form 组件二次封装,实现数据驱动,支持所有 Form 参数"},{default:ee(()=>[a(L(O),{schema:z,"label-width":"auto","label-position":s.value?"top":"right"},null,8,["schema","label-position"])]),_:1}))}});export{Ee as default}; diff --git a/assets/DefaultTable-DD-ttn4d.js b/assets/DefaultTable-B8Notva-.js similarity index 74% rename from assets/DefaultTable-DD-ttn4d.js rename to assets/DefaultTable-B8Notva-.js index f70224fa..d72dbd5a 100644 --- a/assets/DefaultTable-DD-ttn4d.js +++ b/assets/DefaultTable-B8Notva-.js @@ -1 +1 @@ -var f=(p,r,o)=>new Promise((i,s)=>{var l=t=>{try{a(o.next(t))}catch(m){s(m)}},e=t=>{try{a(o.throw(t))}catch(m){s(m)}},a=t=>t.done?i(t.value):Promise.resolve(t.value).then(l,e);a((o=o.apply(p,r)).next())});import{_ as u}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_}from"./Table.vue_vue_type_script_lang-DOZk-BCG.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css */import{g}from"./index-DVoP4cjT.js";/* empty css */import{_ as b}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{C as T}from"./element-plus-6v3c1uXT.js";import{q as y,r as c,t as C,T as h,S as x,P as d,u as n,af as v,W as w}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css */import"./index-DlX4pwja.js";const O=y({__name:"DefaultTable",setup(p){const r=[{field:"title",label:"标题"},{field:"author",label:"作者"},{field:"display_time",label:"创建时间",sortable:!0},{field:"importance",label:"重要性",formatter:(e,a,t)=>v(T,{type:t===1?"success":t===2?"warning":"danger"},()=>t===1?"重要":t===2?"良好":"一般")},{field:"pageviews",label:"阅读数"},{field:"action",label:"操作",slots:{default:e=>d(b,{type:"primary",onClick:()=>l(e)},{default:()=>[w("操作")]})}}],o=c(!0);let i=c([]);(e=>f(this,null,function*(){const a=yield g(e||{pageIndex:1,pageSize:10}).catch(()=>{}).finally(()=>{o.value=!1});a&&(i.value=a.data.list)}))();const l=e=>{};return(e,a)=>(C(),h(n(u),{title:"表格",message:"基于 ElementPlus 的 Table 组件二次封装"},{default:x(()=>[d(n(_),{columns:r,data:n(i),loading:o.value,defaultSort:{prop:"display_time",order:"descending"}},null,8,["data","loading"])]),_:1}))}});export{O as default}; +var f=(p,r,o)=>new Promise((i,s)=>{var l=t=>{try{a(o.next(t))}catch(m){s(m)}},e=t=>{try{a(o.throw(t))}catch(m){s(m)}},a=t=>t.done?i(t.value):Promise.resolve(t.value).then(l,e);a((o=o.apply(p,r)).next())});import{_ as u}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_}from"./Table.vue_vue_type_script_lang-BzBmZLp9.js";import"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css */import{g}from"./index-DB50Cmmr.js";/* empty css */import{_ as b}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{C as T}from"./element-plus-6v3c1uXT.js";import{q as y,r as c,t as C,T as h,S as x,P as d,u as n,af as v,W as w}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css */import"./index-2gFf0KW4.js";const O=y({__name:"DefaultTable",setup(p){const r=[{field:"title",label:"标题"},{field:"author",label:"作者"},{field:"display_time",label:"创建时间",sortable:!0},{field:"importance",label:"重要性",formatter:(e,a,t)=>v(T,{type:t===1?"success":t===2?"warning":"danger"},()=>t===1?"重要":t===2?"良好":"一般")},{field:"pageviews",label:"阅读数"},{field:"action",label:"操作",slots:{default:e=>d(b,{type:"primary",onClick:()=>l(e)},{default:()=>[w("操作")]})}}],o=c(!0);let i=c([]);(e=>f(this,null,function*(){const a=yield g(e||{pageIndex:1,pageSize:10}).catch(()=>{}).finally(()=>{o.value=!1});a&&(i.value=a.data.list)}))();const l=e=>{};return(e,a)=>(C(),h(n(u),{title:"表格",message:"基于 ElementPlus 的 Table 组件二次封装"},{default:x(()=>[d(n(_),{columns:r,data:n(i),loading:o.value,defaultSort:{prop:"display_time",order:"descending"}},null,8,["data","loading"])]),_:1}))}});export{O as default}; diff --git a/assets/Department-DvKnpeco.js b/assets/Department-CZqBro4N.js similarity index 80% rename from assets/Department-DvKnpeco.js rename to assets/Department-CZqBro4N.js index ec78d646..1a764921 100644 --- a/assets/Department-DvKnpeco.js +++ b/assets/Department-CZqBro4N.js @@ -1 +1 @@ -var j=Object.defineProperty;var E=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var F=(i,o,l)=>o in i?j(i,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[o]=l,U=(i,o)=>{for(var l in o||(o={}))G.call(o,l)&&F(i,l,o[l]);if(E)for(var l of E(o))H.call(o,l)&&F(i,l,o[l]);return i};var v=(i,o,l)=>new Promise((y,b)=>{var C=n=>{try{h(l.next(n))}catch(m){b(m)}},P=n=>{try{h(l.throw(n))}catch(m){b(m)}},h=n=>n.done?y(n.value):Promise.resolve(n.value).then(C,P);h((l=l.apply(i,o)).next())});import{_ as J}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as O}from"./Search.vue_vue_type_script_setup_true_lang-CJ6bt3cN.js";import{_ as X}from"./Dialog.vue_vue_type_style_index_0_lang-BLWveiSq.js";import"./index-CA0d6hyI.js";/* empty css */import{_ as Z}from"./Table.vue_vue_type_script_lang-DOZk-BCG.js";/* empty css *//* empty css *//* empty css */import{g as ee,a as te,d as ae,s as re}from"./index-C2-F2Fy9.js";import{u as le}from"./useTable-BTK3WtdF.js";import{_ as oe}from"./Write.vue_vue_type_script_setup_true_lang-_SFmF5k8.js";import{_ as se}from"./Detail.vue_vue_type_script_setup_true_lang--UJssbLv.js";import{u as ne}from"./useCrudSchemas-B5FzcJ46.js";import{_ as d}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{C as I}from"./element-plus-6v3c1uXT.js";import{q as ie,r as u,K as ue,P as r,Q as p,W as c,u as a,t as k,v as me,S as f,x as de,i as K,T as R,Y as T}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Form-DJ57xbBt.js";/* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */import"./useForm-CbOF_UB2.js";import"./useIcon-Bk4x_lwM.js";/* empty css *//* empty css *//* empty css */import"./index-DlX4pwja.js";import"./useValidator-Nt61Jv1p.js";import"./Descriptions-BYYy1K3P.js";import"./tree-Dgaev6Pi.js";const pe={class:"mb-10px"},rt=ie({__name:"Department",setup(i){const o=u([]),{tableRegister:l,tableState:y,tableMethods:b}=le({fetchDataApi:()=>v(this,null,function*(){const{currentPage:e,pageSize:t}=y,s=yield te(U({pageIndex:a(e),pageSize:a(t)},a(V)));return{list:s.data.list,total:s.data.total}}),fetchDelApi:()=>v(this,null,function*(){return!!(yield ae(a(o)))})}),{loading:C,dataList:P,total:h,currentPage:n,pageSize:m}=y,{getList:$,getElTableExpose:q,delList:M}=b,V=u({}),N=e=>{V.value=e,$()},Q=ue([{field:"selection",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{type:"selection"}},{field:"index",label:"序号",type:"index",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0}},{field:"id",label:"部门名称",table:{slots:{default:e=>r(p,null,[e.row.departmentName])}},form:{component:"TreeSelect",componentProps:{nodeKey:"id",props:{label:"departmentName"}},optionApi:()=>v(this,null,function*(){return(yield ee()).data.list})},detail:{slots:{default:e=>r(p,null,[e.departmentName])}}},{field:"status",label:"状态",search:{hidden:!0},table:{slots:{default:e=>{const t=e.row.status;return r(p,null,[r(I,{type:t===0?"danger":"success"},{default:()=>[t===1?"启用":"禁用"]})])}}},form:{component:"Select",componentProps:{options:[{value:0,label:"禁用"},{value:1,label:"启用"}]}},detail:{slots:{default:e=>r(p,null,[r(I,{type:e.status===0?"danger":"success"},{default:()=>[e.status===1?"启用":"禁用"]})])}}},{field:"createTime",label:"创建时间",search:{hidden:!0},form:{hidden:!0}},{field:"remark",label:"备注",search:{hidden:!0},form:{component:"Input",componentProps:{type:"textarea",rows:5},colProps:{span:24}},detail:{slots:{default:e=>r(p,null,[e.remark])}}},{field:"action",width:"260px",label:"操作",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{slots:{default:e=>r(p,null,[r(d,{type:"primary",onClick:()=>B(e.row,"edit")},{default:()=>[c("编辑")]}),r(d,{type:"success",onClick:()=>B(e.row,"detail")},{default:()=>[c("详情")]}),r(d,{type:"danger",onClick:()=>z(e.row)},{default:()=>[c("删除")]})])}}}]),{allSchemas:w}=ne(Q),g=u(!1),x=u(""),S=u(null),_=u(""),W=()=>{x.value="新增",S.value=null,g.value=!0,_.value=""},A=u(!1),z=e=>v(this,null,function*(){const t=yield q();o.value=e?[e.id]:(t==null?void 0:t.getSelectionRows().map(s=>s.id))||[],A.value=!0,yield M(a(o).length).finally(()=>{A.value=!1})}),B=(e,t)=>{x.value=t==="edit"?"编辑":"详情",_.value=t,S.value=e,g.value=!0},L=u(),D=u(!1),Y=()=>v(this,null,function*(){const e=a(L),t=yield e==null?void 0:e.submit();t&&(D.value=!0,(yield re(t).catch(()=>{}).finally(()=>{D.value=!1}))&&(g.value=!1,n.value=1,$()))});return(e,t)=>(k(),me(p,null,[r(a(J),null,{default:f(()=>[r(a(O),{schema:a(w).searchSchema,onSearch:N,onReset:N},null,8,["schema"]),de("div",pe,[r(a(d),{type:"primary",onClick:W},{default:f(()=>[c("新增")]),_:1}),r(a(d),{loading:A.value,type:"danger",onClick:t[0]||(t[0]=s=>z(null))},{default:f(()=>[c(" 删除 ")]),_:1},8,["loading"])]),r(a(Z),{pageSize:a(m),"onUpdate:pageSize":t[1]||(t[1]=s=>K(m)?m.value=s:null),currentPage:a(n),"onUpdate:currentPage":t[2]||(t[2]=s=>K(n)?n.value=s:null),columns:a(w).tableColumns,data:a(P),loading:a(C),pagination:{total:a(h)},onRegister:a(l)},null,8,["pageSize","currentPage","columns","data","loading","pagination","onRegister"])]),_:1}),r(a(X),{modelValue:g.value,"onUpdate:modelValue":t[4]||(t[4]=s=>g.value=s),title:x.value},{footer:f(()=>[_.value!=="detail"?(k(),R(a(d),{key:0,type:"primary",loading:D.value,onClick:Y},{default:f(()=>[c(" 保存 ")]),_:1},8,["loading"])):T("",!0),r(a(d),{onClick:t[3]||(t[3]=s=>g.value=!1)},{default:f(()=>[c("关闭")]),_:1})]),default:f(()=>[_.value!=="detail"?(k(),R(oe,{key:0,ref_key:"writeRef",ref:L,"form-schema":a(w).formSchema,"current-row":S.value},null,8,["form-schema","current-row"])):T("",!0),_.value==="detail"?(k(),R(se,{key:1,"detail-schema":a(w).detailSchema,"current-row":S.value},null,8,["detail-schema","current-row"])):T("",!0)]),_:1},8,["modelValue","title"])],64))}});export{rt as default}; +var j=Object.defineProperty;var E=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var F=(i,o,l)=>o in i?j(i,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[o]=l,U=(i,o)=>{for(var l in o||(o={}))G.call(o,l)&&F(i,l,o[l]);if(E)for(var l of E(o))H.call(o,l)&&F(i,l,o[l]);return i};var v=(i,o,l)=>new Promise((y,b)=>{var C=n=>{try{h(l.next(n))}catch(m){b(m)}},P=n=>{try{h(l.throw(n))}catch(m){b(m)}},h=n=>n.done?y(n.value):Promise.resolve(n.value).then(C,P);h((l=l.apply(i,o)).next())});import{_ as J}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as O}from"./Search.vue_vue_type_script_setup_true_lang-ClF9XpoI.js";import{_ as X}from"./Dialog.vue_vue_type_style_index_0_lang-DkCU3loB.js";import"./index-B5z15nYm.js";/* empty css */import{_ as Z}from"./Table.vue_vue_type_script_lang-BzBmZLp9.js";/* empty css *//* empty css *//* empty css */import{g as ee,a as te,d as ae,s as re}from"./index-DI3UHSfz.js";import{u as le}from"./useTable-B7CCRTD1.js";import{_ as oe}from"./Write.vue_vue_type_script_setup_true_lang-DgvKX96v.js";import{_ as se}from"./Detail.vue_vue_type_script_setup_true_lang-DrZMk85_.js";import{u as ne}from"./useCrudSchemas-B5FzcJ46.js";import{_ as d}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{C as I}from"./element-plus-6v3c1uXT.js";import{q as ie,r as u,K as ue,P as r,Q as p,W as c,u as a,t as k,v as me,S as f,x as de,i as K,T as R,Y as T}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Form-B3fdtaFM.js";/* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */import"./useForm-BIADJKAv.js";import"./useIcon-Dzh8BHEZ.js";/* empty css *//* empty css *//* empty css */import"./index-2gFf0KW4.js";import"./useValidator-Nt61Jv1p.js";import"./Descriptions-CnAOhWOB.js";import"./tree-Dgaev6Pi.js";const pe={class:"mb-10px"},rt=ie({__name:"Department",setup(i){const o=u([]),{tableRegister:l,tableState:y,tableMethods:b}=le({fetchDataApi:()=>v(this,null,function*(){const{currentPage:e,pageSize:t}=y,s=yield te(U({pageIndex:a(e),pageSize:a(t)},a(V)));return{list:s.data.list,total:s.data.total}}),fetchDelApi:()=>v(this,null,function*(){return!!(yield ae(a(o)))})}),{loading:C,dataList:P,total:h,currentPage:n,pageSize:m}=y,{getList:$,getElTableExpose:q,delList:M}=b,V=u({}),N=e=>{V.value=e,$()},Q=ue([{field:"selection",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{type:"selection"}},{field:"index",label:"序号",type:"index",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0}},{field:"id",label:"部门名称",table:{slots:{default:e=>r(p,null,[e.row.departmentName])}},form:{component:"TreeSelect",componentProps:{nodeKey:"id",props:{label:"departmentName"}},optionApi:()=>v(this,null,function*(){return(yield ee()).data.list})},detail:{slots:{default:e=>r(p,null,[e.departmentName])}}},{field:"status",label:"状态",search:{hidden:!0},table:{slots:{default:e=>{const t=e.row.status;return r(p,null,[r(I,{type:t===0?"danger":"success"},{default:()=>[t===1?"启用":"禁用"]})])}}},form:{component:"Select",componentProps:{options:[{value:0,label:"禁用"},{value:1,label:"启用"}]}},detail:{slots:{default:e=>r(p,null,[r(I,{type:e.status===0?"danger":"success"},{default:()=>[e.status===1?"启用":"禁用"]})])}}},{field:"createTime",label:"创建时间",search:{hidden:!0},form:{hidden:!0}},{field:"remark",label:"备注",search:{hidden:!0},form:{component:"Input",componentProps:{type:"textarea",rows:5},colProps:{span:24}},detail:{slots:{default:e=>r(p,null,[e.remark])}}},{field:"action",width:"260px",label:"操作",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{slots:{default:e=>r(p,null,[r(d,{type:"primary",onClick:()=>B(e.row,"edit")},{default:()=>[c("编辑")]}),r(d,{type:"success",onClick:()=>B(e.row,"detail")},{default:()=>[c("详情")]}),r(d,{type:"danger",onClick:()=>z(e.row)},{default:()=>[c("删除")]})])}}}]),{allSchemas:w}=ne(Q),g=u(!1),x=u(""),S=u(null),_=u(""),W=()=>{x.value="新增",S.value=null,g.value=!0,_.value=""},A=u(!1),z=e=>v(this,null,function*(){const t=yield q();o.value=e?[e.id]:(t==null?void 0:t.getSelectionRows().map(s=>s.id))||[],A.value=!0,yield M(a(o).length).finally(()=>{A.value=!1})}),B=(e,t)=>{x.value=t==="edit"?"编辑":"详情",_.value=t,S.value=e,g.value=!0},L=u(),D=u(!1),Y=()=>v(this,null,function*(){const e=a(L),t=yield e==null?void 0:e.submit();t&&(D.value=!0,(yield re(t).catch(()=>{}).finally(()=>{D.value=!1}))&&(g.value=!1,n.value=1,$()))});return(e,t)=>(k(),me(p,null,[r(a(J),null,{default:f(()=>[r(a(O),{schema:a(w).searchSchema,onSearch:N,onReset:N},null,8,["schema"]),de("div",pe,[r(a(d),{type:"primary",onClick:W},{default:f(()=>[c("新增")]),_:1}),r(a(d),{loading:A.value,type:"danger",onClick:t[0]||(t[0]=s=>z(null))},{default:f(()=>[c(" 删除 ")]),_:1},8,["loading"])]),r(a(Z),{pageSize:a(m),"onUpdate:pageSize":t[1]||(t[1]=s=>K(m)?m.value=s:null),currentPage:a(n),"onUpdate:currentPage":t[2]||(t[2]=s=>K(n)?n.value=s:null),columns:a(w).tableColumns,data:a(P),loading:a(C),pagination:{total:a(h)},onRegister:a(l)},null,8,["pageSize","currentPage","columns","data","loading","pagination","onRegister"])]),_:1}),r(a(X),{modelValue:g.value,"onUpdate:modelValue":t[4]||(t[4]=s=>g.value=s),title:x.value},{footer:f(()=>[_.value!=="detail"?(k(),R(a(d),{key:0,type:"primary",loading:D.value,onClick:Y},{default:f(()=>[c(" 保存 ")]),_:1},8,["loading"])):T("",!0),r(a(d),{onClick:t[3]||(t[3]=s=>g.value=!1)},{default:f(()=>[c("关闭")]),_:1})]),default:f(()=>[_.value!=="detail"?(k(),R(oe,{key:0,ref_key:"writeRef",ref:L,"form-schema":a(w).formSchema,"current-row":S.value},null,8,["form-schema","current-row"])):T("",!0),_.value==="detail"?(k(),R(se,{key:1,"detail-schema":a(w).detailSchema,"current-row":S.value},null,8,["detail-schema","current-row"])):T("",!0)]),_:1},8,["modelValue","title"])],64))}});export{rt as default}; diff --git a/assets/Descriptions-BYYy1K3P.js b/assets/Descriptions-CnAOhWOB.js similarity index 96% rename from assets/Descriptions-BYYy1K3P.js rename to assets/Descriptions-CnAOhWOB.js index 87e42c5c..a7fafcc6 100644 --- a/assets/Descriptions-BYYy1K3P.js +++ b/assets/Descriptions-CnAOhWOB.js @@ -1 +1 @@ -var j=Object.defineProperty;var m=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var h=(e,o,r)=>o in e?j(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r,n=(e,o)=>{for(var r in o||(o={}))z.call(o,r)&&h(e,r,o[r]);if(m)for(var r of m(o))C.call(o,r)&&h(e,r,o[r]);return e};import{q as D,d as k,u as f,r as I,P as t,a0 as S,a1 as A,I as u,B as E}from"./vue-chunks-DOWhatC1.js";import{p as s,u as V}from"./index-CA0d6hyI.js";/* empty css *//* empty css */import{I as y,_ as B}from"./Icon-Bwi9LaBZ.js";import{O as N,ai as T,n as q,k as P,a2 as _}from"./element-plus-6v3c1uXT.js";function M(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!E(e)}const R=V(),F=k(()=>R.getMobile),w="-",G=D({name:"Descriptions",props:{title:s.string.def(""),message:s.string.def(""),collapse:s.bool.def(!0),border:s.bool.def(!0),column:s.number.def(2),size:s.oneOf(["large","default","small"]).def("default"),direction:s.oneOf(["horizontal","vertical"]).def("horizontal"),extra:s.string.def(""),schema:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})}},setup(e,{attrs:o}){const r=k(()=>{const i=["title","message","collapse","schema","data","class"],l=n(n({},o),e);for(const a in l)i.indexOf(a)!==-1&&delete l[a];return f(F)&&(l.direction="vertical"),l}),p=i=>{const l=["field"],a=n({},i);for(const c in a)l.indexOf(c)!==-1&&delete a[c];return n({labelClassName:"descriptions-label"},a)},d=I(!0),O=()=>{e.collapse&&(d.value=!f(d))};return()=>{let i;return t("div",{class:["descriptions","bg-[var(--el-color-white)] dark:bg-[var(--el-bg-color)] dark:border-[var(--el-border-color)] dark:border-1px"]},[e.title?t("div",{class:["descriptions-header","relative h-50px flex justify-between items-center layout-border__bottom px-10px cursor-pointer"],onClick:O},[t("div",{class:["descriptions-header__title","relative font-18px font-bold ml-10px"]},[t("div",{class:"flex items-center"},[e.title,e.message?t(N,{content:e.message,placement:"right"},{default:()=>[t(y,{icon:"bi:question-circle-fill",class:"ml-5px",size:14},null)]}):null])]),e.collapse?t(y,{icon:d.value?"ep:arrow-down":"ep:arrow-up"},null):null]):null,t(T,null,{default:()=>[S(t("div",{class:["descriptions-content","p-20px"]},[t(q,u({gutter:0},f(r),{class:"outline-1px outline-[var(--el-border-color-lighter)] outline-solid"}),M(i=e.schema.map(l=>t(P,{key:l.field,span:l.span||24/e.column,class:"flex items-stretch"},{default:()=>{var a,c,x,b,g,v;return[e.direction==="horizontal"?t("div",{class:"flex items-stretch bg-[var(--el-fill-color-light)] outline-1px outline-[var(--el-border-color-lighter)] outline-solid flex-1"},[t("div",u(p(l),{class:"w-120px text-left px-8px py-11px font-700 color-[var(--el-text-color-regular)] border-r-1px border-r-[var(--el-border-color-lighter)] border-r-solid "}),[l.label]),t("div",{class:"flex-1 px-8px py-11px bg-[var(--el-bg-color)] color-[var(--el-text-color-primary)] text-size-14px"},[(a=l.slots)!=null&&a.default?(c=l.slots)==null?void 0:c.default(e.data):(x=_(e.data,l.field))!=null?x:w])]):t("div",{class:"bg-[var(--el-fill-color-light)] outline-1px outline-[var(--el-border-color-lighter)] outline-solid flex-1"},[t("div",u(p(l),{class:"text-left px-8px py-11px font-700 color-[var(--el-text-color-regular)] border-b-1px border-b-[var(--el-border-color-lighter)] border-b-solid"}),[l.label]),t("div",{class:"flex-1 px-8px py-11px bg-[var(--el-bg-color)] color-[var(--el-text-color-primary)] text-size-14px"},[(b=l.slots)!=null&&b.default?(g=l.slots)==null?void 0:g.default(e.data):(v=_(e.data,l.field))!=null?v:w])])]}})))?i:{default:()=>[i]})]),[[A,f(d)]])]})])}}}),X=B(G,[["__scopeId","data-v-1252c088"]]);export{X as D}; +var j=Object.defineProperty;var m=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var h=(e,o,r)=>o in e?j(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r,n=(e,o)=>{for(var r in o||(o={}))z.call(o,r)&&h(e,r,o[r]);if(m)for(var r of m(o))C.call(o,r)&&h(e,r,o[r]);return e};import{q as D,d as k,u as f,r as I,P as t,a0 as S,a1 as A,I as u,B as E}from"./vue-chunks-DOWhatC1.js";import{p as s,u as V}from"./index-B5z15nYm.js";/* empty css *//* empty css */import{I as y,_ as B}from"./Icon-B-0CON7P.js";import{O as N,ai as T,n as q,k as P,a2 as _}from"./element-plus-6v3c1uXT.js";function M(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!E(e)}const R=V(),F=k(()=>R.getMobile),w="-",G=D({name:"Descriptions",props:{title:s.string.def(""),message:s.string.def(""),collapse:s.bool.def(!0),border:s.bool.def(!0),column:s.number.def(2),size:s.oneOf(["large","default","small"]).def("default"),direction:s.oneOf(["horizontal","vertical"]).def("horizontal"),extra:s.string.def(""),schema:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})}},setup(e,{attrs:o}){const r=k(()=>{const i=["title","message","collapse","schema","data","class"],l=n(n({},o),e);for(const a in l)i.indexOf(a)!==-1&&delete l[a];return f(F)&&(l.direction="vertical"),l}),p=i=>{const l=["field"],a=n({},i);for(const c in a)l.indexOf(c)!==-1&&delete a[c];return n({labelClassName:"descriptions-label"},a)},d=I(!0),O=()=>{e.collapse&&(d.value=!f(d))};return()=>{let i;return t("div",{class:["descriptions","bg-[var(--el-color-white)] dark:bg-[var(--el-bg-color)] dark:border-[var(--el-border-color)] dark:border-1px"]},[e.title?t("div",{class:["descriptions-header","relative h-50px flex justify-between items-center layout-border__bottom px-10px cursor-pointer"],onClick:O},[t("div",{class:["descriptions-header__title","relative font-18px font-bold ml-10px"]},[t("div",{class:"flex items-center"},[e.title,e.message?t(N,{content:e.message,placement:"right"},{default:()=>[t(y,{icon:"bi:question-circle-fill",class:"ml-5px",size:14},null)]}):null])]),e.collapse?t(y,{icon:d.value?"ep:arrow-down":"ep:arrow-up"},null):null]):null,t(T,null,{default:()=>[S(t("div",{class:["descriptions-content","p-20px"]},[t(q,u({gutter:0},f(r),{class:"outline-1px outline-[var(--el-border-color-lighter)] outline-solid"}),M(i=e.schema.map(l=>t(P,{key:l.field,span:l.span||24/e.column,class:"flex items-stretch"},{default:()=>{var a,c,x,b,g,v;return[e.direction==="horizontal"?t("div",{class:"flex items-stretch bg-[var(--el-fill-color-light)] outline-1px outline-[var(--el-border-color-lighter)] outline-solid flex-1"},[t("div",u(p(l),{class:"w-120px text-left px-8px py-11px font-700 color-[var(--el-text-color-regular)] border-r-1px border-r-[var(--el-border-color-lighter)] border-r-solid "}),[l.label]),t("div",{class:"flex-1 px-8px py-11px bg-[var(--el-bg-color)] color-[var(--el-text-color-primary)] text-size-14px"},[(a=l.slots)!=null&&a.default?(c=l.slots)==null?void 0:c.default(e.data):(x=_(e.data,l.field))!=null?x:w])]):t("div",{class:"bg-[var(--el-fill-color-light)] outline-1px outline-[var(--el-border-color-lighter)] outline-solid flex-1"},[t("div",u(p(l),{class:"text-left px-8px py-11px font-700 color-[var(--el-text-color-regular)] border-b-1px border-b-[var(--el-border-color-lighter)] border-b-solid"}),[l.label]),t("div",{class:"flex-1 px-8px py-11px bg-[var(--el-bg-color)] color-[var(--el-text-color-primary)] text-size-14px"},[(b=l.slots)!=null&&b.default?(g=l.slots)==null?void 0:g.default(e.data):(v=_(e.data,l.field))!=null?v:w])])]}})))?i:{default:()=>[i]})]),[[A,f(d)]])]})])}}}),X=B(G,[["__scopeId","data-v-1252c088"]]);export{X as D}; diff --git a/assets/Descriptions-BT1fJoNu.js b/assets/Descriptions-DWGDe9Sc.js similarity index 81% rename from assets/Descriptions-BT1fJoNu.js rename to assets/Descriptions-DWGDe9Sc.js index 672a4e11..0adfcd41 100644 --- a/assets/Descriptions-BT1fJoNu.js +++ b/assets/Descriptions-DWGDe9Sc.js @@ -1 +1 @@ -var _=(x,r,o)=>new Promise((c,u)=>{var l=t=>{try{s(o.next(t))}catch(m){u(m)}},f=t=>{try{s(o.throw(t))}catch(m){u(m)}},s=t=>t.done?c(t.value):Promise.resolve(t.value).then(l,f);s((o=o.apply(x,r)).next())});import{D as h}from"./Descriptions-BYYy1K3P.js";import{_ as N}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{F as q}from"./Form-DJ57xbBt.js";import"./index-CA0d6hyI.js";/* empty css */import{u as g}from"./useValidator-Nt61Jv1p.js";import{u as D}from"./useForm-CbOF_UB2.js";import{A as i,D as n}from"./element-plus-6v3c1uXT.js";import{q as F,K as d,P as a,t as v,v as E,u as p,S as V,x as U,W as B,Q as C}from"./vue-chunks-DOWhatC1.js";import{_ as I}from"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */const R={class:"text-center mt-10px"},w=F({__name:"Descriptions",setup(x){const{required:r}=g(),o=d({username:"chenkl",nickName:"梦似花落。",age:26,phone:"13655971xxxx",email:"502431556@qq.com",addr:"这是一个很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的地址",sex:"男",certy:"3505831994xxxxxxxx"}),c=d([{field:"username",label:"用户名"},{field:"nickName",label:"昵称"},{field:"phone",label:"联系电话"},{field:"email",label:"邮箱"},{field:"addr",label:"地址",span:24}]),u=d([{field:"username",label:"用户名",slots:{label:e=>a("span",{class:"is-required--item"},[e.label]),default:()=>a(n,{prop:"username"},{default:()=>[a(i,{modelValue:l.username,"onUpdate:modelValue":e=>l.username=e},null)]})}},{field:"nickName",label:"昵称",slots:{label:e=>a("span",{class:"is-required--item"},[e.label]),default:()=>a(n,{prop:"nickName"},{default:()=>[a(i,{modelValue:l.nickName,"onUpdate:modelValue":e=>l.nickName=e},null)]})}},{field:"phone",label:"联系电话",slots:{label:e=>a("span",{class:"is-required--item"},[e.label]),default:()=>a(n,{prop:"phone"},{default:()=>[a(i,{modelValue:l.phone,"onUpdate:modelValue":e=>l.phone=e},null)]})}},{field:"email",label:"邮箱",slots:{label:e=>a("span",{class:"is-required--item"},[e.label]),default:()=>a(n,{prop:"email"},{default:()=>[a(i,{modelValue:l.email,"onUpdate:modelValue":e=>l.email=e},null)]})}},{field:"addr",label:"地址",slots:{label:e=>a("span",{class:"is-required--item"},[e.label]),default:()=>a(n,{prop:"addr"},{default:()=>[a(i,{modelValue:l.addr,"onUpdate:modelValue":e=>l.addr=e},null)]})},span:24}]),l=d({username:"",nickName:"",phone:"",email:"",addr:""}),f=d({username:[r()],nickName:[r()],phone:[r()],email:[r()],addr:[r()]}),{formRegister:s,formMethods:t}=D(),{getElFormExpose:m}=t,k=()=>_(this,null,function*(){const e=yield m();e==null||e.validate(b=>{})});return(e,b)=>(v(),E(C,null,[a(p(h),{title:"描述",message:"基于 ElementPlus 的 Descriptions 组件二次封装",data:o,schema:c},null,8,["data","schema"]),a(p(q),{"is-custom":"",model:l,rules:f,onRegister:p(s)},{default:V(()=>[a(p(h),{title:"与 Form 组件组合",data:o,schema:u,class:"mt-20px"},null,8,["data","schema"]),U("div",R,[a(p(N),{onClick:k},{default:V(()=>[B(" 表单验证 ")]),_:1})])]),_:1},8,["model","rules","onRegister"])],64))}}),me=I(w,[["__scopeId","data-v-c9ce99bc"]]);export{me as default}; +var _=(x,r,o)=>new Promise((c,u)=>{var l=t=>{try{s(o.next(t))}catch(m){u(m)}},f=t=>{try{s(o.throw(t))}catch(m){u(m)}},s=t=>t.done?c(t.value):Promise.resolve(t.value).then(l,f);s((o=o.apply(x,r)).next())});import{D as h}from"./Descriptions-CnAOhWOB.js";import{_ as N}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{F as q}from"./Form-B3fdtaFM.js";import"./index-B5z15nYm.js";/* empty css */import{u as g}from"./useValidator-Nt61Jv1p.js";import{u as D}from"./useForm-BIADJKAv.js";import{A as i,D as n}from"./element-plus-6v3c1uXT.js";import{q as F,K as d,P as a,t as v,v as E,u as p,S as V,x as U,W as B,Q as C}from"./vue-chunks-DOWhatC1.js";import{_ as I}from"./Icon-B-0CON7P.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */const R={class:"text-center mt-10px"},w=F({__name:"Descriptions",setup(x){const{required:r}=g(),o=d({username:"chenkl",nickName:"梦似花落。",age:26,phone:"13655971xxxx",email:"502431556@qq.com",addr:"这是一个很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的地址",sex:"男",certy:"3505831994xxxxxxxx"}),c=d([{field:"username",label:"用户名"},{field:"nickName",label:"昵称"},{field:"phone",label:"联系电话"},{field:"email",label:"邮箱"},{field:"addr",label:"地址",span:24}]),u=d([{field:"username",label:"用户名",slots:{label:e=>a("span",{class:"is-required--item"},[e.label]),default:()=>a(n,{prop:"username"},{default:()=>[a(i,{modelValue:l.username,"onUpdate:modelValue":e=>l.username=e},null)]})}},{field:"nickName",label:"昵称",slots:{label:e=>a("span",{class:"is-required--item"},[e.label]),default:()=>a(n,{prop:"nickName"},{default:()=>[a(i,{modelValue:l.nickName,"onUpdate:modelValue":e=>l.nickName=e},null)]})}},{field:"phone",label:"联系电话",slots:{label:e=>a("span",{class:"is-required--item"},[e.label]),default:()=>a(n,{prop:"phone"},{default:()=>[a(i,{modelValue:l.phone,"onUpdate:modelValue":e=>l.phone=e},null)]})}},{field:"email",label:"邮箱",slots:{label:e=>a("span",{class:"is-required--item"},[e.label]),default:()=>a(n,{prop:"email"},{default:()=>[a(i,{modelValue:l.email,"onUpdate:modelValue":e=>l.email=e},null)]})}},{field:"addr",label:"地址",slots:{label:e=>a("span",{class:"is-required--item"},[e.label]),default:()=>a(n,{prop:"addr"},{default:()=>[a(i,{modelValue:l.addr,"onUpdate:modelValue":e=>l.addr=e},null)]})},span:24}]),l=d({username:"",nickName:"",phone:"",email:"",addr:""}),f=d({username:[r()],nickName:[r()],phone:[r()],email:[r()],addr:[r()]}),{formRegister:s,formMethods:t}=D(),{getElFormExpose:m}=t,k=()=>_(this,null,function*(){const e=yield m();e==null||e.validate(b=>{})});return(e,b)=>(v(),E(C,null,[a(p(h),{title:"描述",message:"基于 ElementPlus 的 Descriptions 组件二次封装",data:o,schema:c},null,8,["data","schema"]),a(p(q),{"is-custom":"",model:l,rules:f,onRegister:p(s)},{default:V(()=>[a(p(h),{title:"与 Form 组件组合",data:o,schema:u,class:"mt-20px"},null,8,["data","schema"]),U("div",R,[a(p(N),{onClick:k},{default:V(()=>[B(" 表单验证 ")]),_:1})])]),_:1},8,["model","rules","onRegister"])],64))}}),me=I(w,[["__scopeId","data-v-c9ce99bc"]]);export{me as default}; diff --git a/assets/Detail-B8euQaAi.js b/assets/Detail-B8euQaAi.js deleted file mode 100644 index 525a973b..00000000 --- a/assets/Detail-B8euQaAi.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Detail.vue_vue_type_script_setup_true_lang--UJssbLv.js";import"./Descriptions-BYYy1K3P.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-Bwi9LaBZ.js";export{o as default}; diff --git a/assets/Detail-BAi8VKs2.js b/assets/Detail-BAi8VKs2.js new file mode 100644 index 00000000..92d6dfa4 --- /dev/null +++ b/assets/Detail-BAi8VKs2.js @@ -0,0 +1 @@ +import{_ as o}from"./Detail.vue_vue_type_script_setup_true_lang-BCv-Qvj2.js";import"./Descriptions-CnAOhWOB.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-B-0CON7P.js";export{o as default}; diff --git a/assets/Detail-BByS0cmq.js b/assets/Detail-BByS0cmq.js deleted file mode 100644 index 3c29b934..00000000 --- a/assets/Detail-BByS0cmq.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Detail.vue_vue_type_script_setup_true_lang-BtRfuAAj.js";import"./Descriptions-BYYy1K3P.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-Bwi9LaBZ.js";export{o as default}; diff --git a/assets/Detail-BVAhsvq2.js b/assets/Detail-BVAhsvq2.js new file mode 100644 index 00000000..e3bf39fa --- /dev/null +++ b/assets/Detail-BVAhsvq2.js @@ -0,0 +1 @@ +import{_ as o}from"./Detail.vue_vue_type_script_setup_true_lang-BVf-bmvt.js";import"./Descriptions-CnAOhWOB.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-B-0CON7P.js";/* empty css */export{o as default}; diff --git a/assets/Detail-BkgGU8cH.js b/assets/Detail-BkgGU8cH.js new file mode 100644 index 00000000..d56179e4 --- /dev/null +++ b/assets/Detail-BkgGU8cH.js @@ -0,0 +1 @@ +import{_ as o}from"./Detail.vue_vue_type_script_setup_true_lang-Cjk_uBWB.js";import"./Descriptions-CnAOhWOB.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-B-0CON7P.js";/* empty css *//* empty css *//* empty css */import"./index-BYcZ39zx.js";export{o as default}; diff --git a/assets/Detail-CZeRNZkD.js b/assets/Detail-CZeRNZkD.js new file mode 100644 index 00000000..62f36866 --- /dev/null +++ b/assets/Detail-CZeRNZkD.js @@ -0,0 +1 @@ +import{_ as o}from"./Detail.vue_vue_type_script_setup_true_lang-DrZMk85_.js";import"./Descriptions-CnAOhWOB.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-B-0CON7P.js";export{o as default}; diff --git a/assets/Detail-CbKODdnp.js b/assets/Detail-CbKODdnp.js deleted file mode 100644 index c89f37c4..00000000 --- a/assets/Detail-CbKODdnp.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Detail.vue_vue_type_script_setup_true_lang-CFcBVm_Z.js";import"./Descriptions-BYYy1K3P.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-Bwi9LaBZ.js";/* empty css */export{o as default}; diff --git a/assets/Detail-DWDVTDCD.js b/assets/Detail-DWDVTDCD.js new file mode 100644 index 00000000..27a1a422 --- /dev/null +++ b/assets/Detail-DWDVTDCD.js @@ -0,0 +1 @@ +import{_ as o}from"./Detail.vue_vue_type_script_setup_true_lang-D0pWjFAb.js";import"./Descriptions-CnAOhWOB.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-B-0CON7P.js";export{o as default}; diff --git a/assets/Detail-DZ18W84S.js b/assets/Detail-DZ18W84S.js deleted file mode 100644 index a6b696f2..00000000 --- a/assets/Detail-DZ18W84S.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Detail.vue_vue_type_script_setup_true_lang-CPaYQRpk.js";import"./Descriptions-BYYy1K3P.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-Bwi9LaBZ.js";export{o as default}; diff --git a/assets/Detail-MWpdxpAN.js b/assets/Detail-MWpdxpAN.js deleted file mode 100644 index fd386166..00000000 --- a/assets/Detail-MWpdxpAN.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Detail.vue_vue_type_script_setup_true_lang-BBBBUkw6.js";import"./Descriptions-BYYy1K3P.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css *//* empty css */import"./index-CRNzobZS.js";export{o as default}; diff --git a/assets/Detail-mdLYTz1q.js b/assets/Detail-mdLYTz1q.js new file mode 100644 index 00000000..eb6cb697 --- /dev/null +++ b/assets/Detail-mdLYTz1q.js @@ -0,0 +1 @@ +import{_ as o}from"./Detail.vue_vue_type_script_setup_true_lang-BoRUl_Lf.js";import"./Descriptions-CnAOhWOB.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-B-0CON7P.js";/* empty css */export{o as default}; diff --git a/assets/Detail-tms56V5N.js b/assets/Detail-tms56V5N.js deleted file mode 100644 index e98479c2..00000000 --- a/assets/Detail-tms56V5N.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Detail.vue_vue_type_script_setup_true_lang-Cs2MfJUl.js";import"./Descriptions-BYYy1K3P.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-Bwi9LaBZ.js";/* empty css */export{o as default}; diff --git a/assets/Detail.vue_vue_type_script_setup_true_lang-BtRfuAAj.js b/assets/Detail.vue_vue_type_script_setup_true_lang-BCv-Qvj2.js similarity index 81% rename from assets/Detail.vue_vue_type_script_setup_true_lang-BtRfuAAj.js rename to assets/Detail.vue_vue_type_script_setup_true_lang-BCv-Qvj2.js index 2001fada..0caef8c2 100644 --- a/assets/Detail.vue_vue_type_script_setup_true_lang-BtRfuAAj.js +++ b/assets/Detail.vue_vue_type_script_setup_true_lang-BCv-Qvj2.js @@ -1 +1 @@ -import{D as a}from"./Descriptions-BYYy1K3P.js";import{q as t,t as r,T as c,u as o}from"./vue-chunks-DOWhatC1.js";const u=t({__name:"Detail",props:{currentRow:{type:Object,default:()=>{}},detailSchema:{type:Array,default:()=>[]}},setup(e){return(n,s)=>(r(),c(o(a),{schema:e.detailSchema,data:e.currentRow||{}},null,8,["schema","data"]))}});export{u as _}; +import{D as a}from"./Descriptions-CnAOhWOB.js";import{q as t,t as r,T as c,u as o}from"./vue-chunks-DOWhatC1.js";const u=t({__name:"Detail",props:{currentRow:{type:Object,default:()=>{}},detailSchema:{type:Array,default:()=>[]}},setup(e){return(n,s)=>(r(),c(o(a),{schema:e.detailSchema,data:e.currentRow||{}},null,8,["schema","data"]))}});export{u as _}; diff --git a/assets/Detail.vue_vue_type_script_setup_true_lang-CFcBVm_Z.js b/assets/Detail.vue_vue_type_script_setup_true_lang-BVf-bmvt.js similarity index 85% rename from assets/Detail.vue_vue_type_script_setup_true_lang-CFcBVm_Z.js rename to assets/Detail.vue_vue_type_script_setup_true_lang-BVf-bmvt.js index cc616899..33471970 100644 --- a/assets/Detail.vue_vue_type_script_setup_true_lang-CFcBVm_Z.js +++ b/assets/Detail.vue_vue_type_script_setup_true_lang-BVf-bmvt.js @@ -1 +1 @@ -import{D as r}from"./Descriptions-BYYy1K3P.js";import"./index-CA0d6hyI.js";/* empty css */import{C as n}from"./element-plus-6v3c1uXT.js";import{q as o,K as s,P as t,t as i,T as c,u as p}from"./vue-chunks-DOWhatC1.js";const h=o({__name:"Detail",props:{currentRow:{type:Object,default:()=>null}},setup(a){const l=s([{field:"title",label:"标题",span:24},{field:"author",label:"作者"},{field:"display_time",label:"创建时间"},{field:"importance",label:"重要性",slots:{default:e=>t(n,{type:e.importance===1?"success":e.importance===2?"warning":"danger"},{default:()=>[e.importance===1?"重要":e.importance===2?"良好":"一般"]})}},{field:"pageviews",label:"阅读数"},{field:"content",label:"内容",span:24,slots:{default:e=>t("div",{innerHTML:e.content},null)}}]);return(e,m)=>(i(),c(p(r),{schema:l,data:a.currentRow||{}},null,8,["schema","data"]))}});export{h as _}; +import{D as r}from"./Descriptions-CnAOhWOB.js";import"./index-B5z15nYm.js";/* empty css */import{C as n}from"./element-plus-6v3c1uXT.js";import{q as o,K as s,P as t,t as i,T as c,u as p}from"./vue-chunks-DOWhatC1.js";const h=o({__name:"Detail",props:{currentRow:{type:Object,default:()=>null}},setup(a){const l=s([{field:"title",label:"标题",span:24},{field:"author",label:"作者"},{field:"display_time",label:"创建时间"},{field:"importance",label:"重要性",slots:{default:e=>t(n,{type:e.importance===1?"success":e.importance===2?"warning":"danger"},{default:()=>[e.importance===1?"重要":e.importance===2?"良好":"一般"]})}},{field:"pageviews",label:"阅读数"},{field:"content",label:"内容",span:24,slots:{default:e=>t("div",{innerHTML:e.content},null)}}]);return(e,m)=>(i(),c(p(r),{schema:l,data:a.currentRow||{}},null,8,["schema","data"]))}});export{h as _}; diff --git a/assets/Detail.vue_vue_type_script_setup_true_lang-Cs2MfJUl.js b/assets/Detail.vue_vue_type_script_setup_true_lang-BoRUl_Lf.js similarity index 93% rename from assets/Detail.vue_vue_type_script_setup_true_lang-Cs2MfJUl.js rename to assets/Detail.vue_vue_type_script_setup_true_lang-BoRUl_Lf.js index e28d2269..90e7f34c 100644 --- a/assets/Detail.vue_vue_type_script_setup_true_lang-Cs2MfJUl.js +++ b/assets/Detail.vue_vue_type_script_setup_true_lang-BoRUl_Lf.js @@ -1 +1 @@ -import{D as i}from"./Descriptions-BYYy1K3P.js";import{I as d}from"./Icon-Bwi9LaBZ.js";import"./index-CA0d6hyI.js";/* empty css */import{C as s}from"./element-plus-6v3c1uXT.js";import{q as f,r as m,P as a,Q as n,t as c,T as b,u as p}from"./vue-chunks-DOWhatC1.js";const S=f({__name:"Detail",props:{currentRow:{type:Object,default:()=>{}}},setup(o){const t=e=>a(s,{type:e?"success":"danger"},{default:()=>[e?"启用":"禁用"]}),u=m([{field:"type",label:"菜单类型",span:24,slots:{default:e=>{const l=e.type;return a(n,null,[l===1?"菜单":"目录"])}}},{field:"parentName",label:"父级菜单"},{field:"meta.title",label:"菜单名称"},{field:"component",label:"组件",slots:{default:e=>{const l=e.component;return a(n,null,[l==="#"?"顶级目录":l==="##"?"子目录":l])}}},{field:"name",label:"组件名称"},{field:"meta.icon",label:"图标",slots:{default:e=>{const l=e.icon;return l?a(n,null,[a(d,{icon:l},null)]):null}}},{field:"path",label:"路径"},{field:"meta.activeMenu",label:"高亮菜单"},{field:"permissionList",label:"按钮权限",span:24,slots:{default:e=>{var l;return a(n,null,[(l=e==null?void 0:e.permissionList)==null?void 0:l.map(r=>a(s,{class:"mr-1",key:r.value},{default:()=>[r.label]}))])}}},{field:"menuState",label:"菜单状态",slots:{default:e=>t(e.menuState)}},{field:"meta.hidden",label:"是否隐藏",slots:{default:e=>t(e.enableHidden)}},{field:"meta.alwaysShow",label:"是否一直显示",slots:{default:e=>t(e.enableDisplay)}},{field:"meta.noCache",label:"是否清除缓存",slots:{default:e=>t(e.enableCleanCache)}},{field:"meta.breadcrumb",label:"是否显示面包屑",slots:{default:e=>t(e.enableShowCrumb)}},{field:"meta.affix",label:"是否固定标签页",slots:{default:e=>t(e.enablePinnedTab)}},{field:"meta.noTagsView",label:"是否隐藏标签页",slots:{default:e=>t(e.enableHiddenTab)}},{field:"meta.canTo",label:"是否可跳转",slots:{default:e=>t(e.enableSkip)}}]);return(e,l)=>(c(),b(p(i),{schema:u.value,data:o.currentRow||{}},null,8,["schema","data"]))}});export{S as _}; +import{D as i}from"./Descriptions-CnAOhWOB.js";import{I as d}from"./Icon-B-0CON7P.js";import"./index-B5z15nYm.js";/* empty css */import{C as s}from"./element-plus-6v3c1uXT.js";import{q as f,r as m,P as a,Q as n,t as c,T as b,u as p}from"./vue-chunks-DOWhatC1.js";const S=f({__name:"Detail",props:{currentRow:{type:Object,default:()=>{}}},setup(o){const t=e=>a(s,{type:e?"success":"danger"},{default:()=>[e?"启用":"禁用"]}),u=m([{field:"type",label:"菜单类型",span:24,slots:{default:e=>{const l=e.type;return a(n,null,[l===1?"菜单":"目录"])}}},{field:"parentName",label:"父级菜单"},{field:"meta.title",label:"菜单名称"},{field:"component",label:"组件",slots:{default:e=>{const l=e.component;return a(n,null,[l==="#"?"顶级目录":l==="##"?"子目录":l])}}},{field:"name",label:"组件名称"},{field:"meta.icon",label:"图标",slots:{default:e=>{const l=e.icon;return l?a(n,null,[a(d,{icon:l},null)]):null}}},{field:"path",label:"路径"},{field:"meta.activeMenu",label:"高亮菜单"},{field:"permissionList",label:"按钮权限",span:24,slots:{default:e=>{var l;return a(n,null,[(l=e==null?void 0:e.permissionList)==null?void 0:l.map(r=>a(s,{class:"mr-1",key:r.value},{default:()=>[r.label]}))])}}},{field:"menuState",label:"菜单状态",slots:{default:e=>t(e.menuState)}},{field:"meta.hidden",label:"是否隐藏",slots:{default:e=>t(e.enableHidden)}},{field:"meta.alwaysShow",label:"是否一直显示",slots:{default:e=>t(e.enableDisplay)}},{field:"meta.noCache",label:"是否清除缓存",slots:{default:e=>t(e.enableCleanCache)}},{field:"meta.breadcrumb",label:"是否显示面包屑",slots:{default:e=>t(e.enableShowCrumb)}},{field:"meta.affix",label:"是否固定标签页",slots:{default:e=>t(e.enablePinnedTab)}},{field:"meta.noTagsView",label:"是否隐藏标签页",slots:{default:e=>t(e.enableHiddenTab)}},{field:"meta.canTo",label:"是否可跳转",slots:{default:e=>t(e.enableSkip)}}]);return(e,l)=>(c(),b(p(i),{schema:u.value,data:o.currentRow||{}},null,8,["schema","data"]))}});export{S as _}; diff --git a/assets/Detail.vue_vue_type_script_setup_true_lang-BBBBUkw6.js b/assets/Detail.vue_vue_type_script_setup_true_lang-Cjk_uBWB.js similarity index 90% rename from assets/Detail.vue_vue_type_script_setup_true_lang-BBBBUkw6.js rename to assets/Detail.vue_vue_type_script_setup_true_lang-Cjk_uBWB.js index 209f80d1..6cf38fde 100644 --- a/assets/Detail.vue_vue_type_script_setup_true_lang-BBBBUkw6.js +++ b/assets/Detail.vue_vue_type_script_setup_true_lang-Cjk_uBWB.js @@ -1 +1 @@ -var h=(l,p,i)=>new Promise((g,a)=>{var b=t=>{try{f(i.next(t))}catch(e){a(e)}},d=t=>{try{f(i.throw(t))}catch(e){a(e)}},f=t=>t.done?g(t.value):Promise.resolve(t.value).then(b,d);f((i=i.apply(l,p)).next())});import{D as _}from"./Descriptions-BYYy1K3P.js";import{m as v}from"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css */import{g as y}from"./index-CRNzobZS.js";import{ak as L,C as k}from"./element-plus-6v3c1uXT.js";import{q as T,r as m,P as n,u,Q as w,t as D,T as N,B as j,n as B}from"./vue-chunks-DOWhatC1.js";function C(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!j(l)}const F=T({__name:"Detail",props:{currentRow:{type:Object,default:()=>{}}},setup(l){const p=e=>{var c,r,s;const o=v(((c=u(a))==null?void 0:c.permissionList)||[],x=>x.value===e);return(s=(((r=u(a))==null?void 0:r.permissionList)||[])[o].label)!=null?s:""},i=e=>n(k,{type:e?"success":"danger"},{default:()=>[e?"启用":"禁用"]}),g=m(),a=m(),b=e=>{a.value=e},d=m([]);h(this,null,function*(){const e=yield y();e&&(d.value=e.data.list,yield B())});const t=m([{field:"roleName",label:"角色名称"},{field:"status",label:"状态",slots:{default:e=>i(e.status)}},{field:"remark",label:"备注",span:24},{field:"permissionList",label:"菜单分配",span:24,slots:{default:()=>{var e,o,c;return n(w,null,[n("div",{class:"flex w-full"},[n("div",{class:"flex-1"},[n(L,{ref:g,"node-key":"id",props:{children:"children",label:"title"},"highlight-current":!0,"expand-on-click-node":!1,data:d.value,"onNode-click":b},{default:r=>{var s;return n("span",null,[(s=r==null?void 0:r.data)==null?void 0:s.title])}})]),n("div",{class:"flex-1"},[u(a)?(c=(o=(e=u(a))==null?void 0:e.meta)==null?void 0:o.permission)==null?void 0:c.map(r=>{let s;return n(k,{class:"ml-2 mt-2"},C(s=p(r))?s:{default:()=>[s]})}):null])])])}}}]);return(e,o)=>(D(),N(u(_),{schema:t.value,data:l.currentRow||{}},null,8,["schema","data"]))}});export{F as _}; +var h=(l,p,i)=>new Promise((g,a)=>{var b=t=>{try{f(i.next(t))}catch(e){a(e)}},d=t=>{try{f(i.throw(t))}catch(e){a(e)}},f=t=>t.done?g(t.value):Promise.resolve(t.value).then(b,d);f((i=i.apply(l,p)).next())});import{D as _}from"./Descriptions-CnAOhWOB.js";import{m as v}from"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css */import{g as y}from"./index-BYcZ39zx.js";import{ak as L,C as k}from"./element-plus-6v3c1uXT.js";import{q as T,r as m,P as n,u,Q as w,t as D,T as N,B as j,n as B}from"./vue-chunks-DOWhatC1.js";function C(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!j(l)}const F=T({__name:"Detail",props:{currentRow:{type:Object,default:()=>{}}},setup(l){const p=e=>{var c,r,s;const o=v(((c=u(a))==null?void 0:c.permissionList)||[],x=>x.value===e);return(s=(((r=u(a))==null?void 0:r.permissionList)||[])[o].label)!=null?s:""},i=e=>n(k,{type:e?"success":"danger"},{default:()=>[e?"启用":"禁用"]}),g=m(),a=m(),b=e=>{a.value=e},d=m([]);h(this,null,function*(){const e=yield y();e&&(d.value=e.data.list,yield B())});const t=m([{field:"roleName",label:"角色名称"},{field:"status",label:"状态",slots:{default:e=>i(e.status)}},{field:"remark",label:"备注",span:24},{field:"permissionList",label:"菜单分配",span:24,slots:{default:()=>{var e,o,c;return n(w,null,[n("div",{class:"flex w-full"},[n("div",{class:"flex-1"},[n(L,{ref:g,"node-key":"id",props:{children:"children",label:"title"},"highlight-current":!0,"expand-on-click-node":!1,data:d.value,"onNode-click":b},{default:r=>{var s;return n("span",null,[(s=r==null?void 0:r.data)==null?void 0:s.title])}})]),n("div",{class:"flex-1"},[u(a)?(c=(o=(e=u(a))==null?void 0:e.meta)==null?void 0:o.permission)==null?void 0:c.map(r=>{let s;return n(k,{class:"ml-2 mt-2"},C(s=p(r))?s:{default:()=>[s]})}):null])])])}}}]);return(e,o)=>(D(),N(u(_),{schema:t.value,data:l.currentRow||{}},null,8,["schema","data"]))}});export{F as _}; diff --git a/assets/Detail.vue_vue_type_script_setup_true_lang--UJssbLv.js b/assets/Detail.vue_vue_type_script_setup_true_lang-D0pWjFAb.js similarity index 82% rename from assets/Detail.vue_vue_type_script_setup_true_lang--UJssbLv.js rename to assets/Detail.vue_vue_type_script_setup_true_lang-D0pWjFAb.js index dca9648c..68e15453 100644 --- a/assets/Detail.vue_vue_type_script_setup_true_lang--UJssbLv.js +++ b/assets/Detail.vue_vue_type_script_setup_true_lang-D0pWjFAb.js @@ -1 +1 @@ -import{D as a}from"./Descriptions-BYYy1K3P.js";import{q as t,t as r,T as c,u as n}from"./vue-chunks-DOWhatC1.js";const u=t({__name:"Detail",props:{currentRow:{type:Object,default:()=>null},detailSchema:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(r(),c(n(a),{schema:e.detailSchema,data:e.currentRow||{}},null,8,["schema","data"]))}});export{u as _}; +import{D as a}from"./Descriptions-CnAOhWOB.js";import{q as t,t as r,T as c,u as n}from"./vue-chunks-DOWhatC1.js";const u=t({__name:"Detail",props:{currentRow:{type:Object,default:()=>null},detailSchema:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(r(),c(n(a),{schema:e.detailSchema,data:e.currentRow||{}},null,8,["schema","data"]))}});export{u as _}; diff --git a/assets/Detail.vue_vue_type_script_setup_true_lang-CPaYQRpk.js b/assets/Detail.vue_vue_type_script_setup_true_lang-DrZMk85_.js similarity index 82% rename from assets/Detail.vue_vue_type_script_setup_true_lang-CPaYQRpk.js rename to assets/Detail.vue_vue_type_script_setup_true_lang-DrZMk85_.js index dca9648c..68e15453 100644 --- a/assets/Detail.vue_vue_type_script_setup_true_lang-CPaYQRpk.js +++ b/assets/Detail.vue_vue_type_script_setup_true_lang-DrZMk85_.js @@ -1 +1 @@ -import{D as a}from"./Descriptions-BYYy1K3P.js";import{q as t,t as r,T as c,u as n}from"./vue-chunks-DOWhatC1.js";const u=t({__name:"Detail",props:{currentRow:{type:Object,default:()=>null},detailSchema:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(r(),c(n(a),{schema:e.detailSchema,data:e.currentRow||{}},null,8,["schema","data"]))}});export{u as _}; +import{D as a}from"./Descriptions-CnAOhWOB.js";import{q as t,t as r,T as c,u as n}from"./vue-chunks-DOWhatC1.js";const u=t({__name:"Detail",props:{currentRow:{type:Object,default:()=>null},detailSchema:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(r(),c(n(a),{schema:e.detailSchema,data:e.currentRow||{}},null,8,["schema","data"]))}});export{u as _}; diff --git a/assets/Dialog-glyMF7CJ.js b/assets/Dialog-4Q3xWqi7.js similarity index 68% rename from assets/Dialog-glyMF7CJ.js rename to assets/Dialog-4Q3xWqi7.js index 3d15955b..eefe3896 100644 --- a/assets/Dialog-glyMF7CJ.js +++ b/assets/Dialog-4Q3xWqi7.js @@ -1 +1 @@ -var _=(b,d,o)=>new Promise((m,u)=>{var c=i=>{try{n(o.next(i))}catch(a){u(a)}},v=i=>{try{n(o.throw(i))}catch(a){u(a)}},n=i=>i.done?m(i.value):Promise.resolve(i.value).then(c,v);n((o=o.apply(b,d)).next())});import{_ as k}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as g}from"./Dialog.vue_vue_type_style_index_0_lang-BLWveiSq.js";import{_ as s}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{F as y}from"./Form-DJ57xbBt.js";import{u as C}from"./useValidator-Nt61Jv1p.js";import{g as $}from"./index-DxxgNbTS.js";import{u as P}from"./useForm-CbOF_UB2.js";import{_ as x}from"./Echart.vue_vue_type_script_setup_true_lang-D4wuPzaf.js";import{q as D,r as V,K as R,t as S,T as w,S as t,P as r,u as l,W as f}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */import"./Echart.vue_vue_type_script_setup_true_lang-B--3X1Iw.js";import"./echarts-VT2A7KjM.js";const ne=D({__name:"Dialog",setup(b){const{required:d}=C(),o=V(!1),m=V(!1),{formRegister:u,formMethods:c}=P(),{getElFormExpose:v}=c,n=R([{field:"field1",label:"输入框",component:"Input",formItemProps:{rules:[d()]}},{field:"field2",label:"选择器",component:"Select",optionApi:()=>_(this,null,function*(){return(yield $()).data})},{field:"field3",label:"单选框",component:"RadioGroup",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}]}},{field:"field4",label:"多选框",component:"CheckboxGroup",value:[],componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}]}},{field:"field5",component:"DatePicker",label:"日期选择器",componentProps:{type:"date"}},{field:"field6",component:"TimeSelect",label:"时间选择"}]),i=()=>_(this,null,function*(){const a=yield v();a==null||a.validate(e=>{})});return(a,e)=>(S(),w(l(k),{title:"弹窗",message:"基于 ElementPlus 的 Dialog 组件二次封装"},{default:t(()=>[r(l(s),{type:"primary",onClick:e[0]||(e[0]=p=>o.value=!o.value)},{default:t(()=>[f(" 打开 ")]),_:1}),r(l(s),{type:"primary",onClick:e[1]||(e[1]=p=>m.value=!m.value)},{default:t(()=>[f(" 与表单结合 ")]),_:1}),r(l(g),{modelValue:o.value,"onUpdate:modelValue":e[3]||(e[3]=p=>o.value=p),title:"弹窗"},{footer:t(()=>[r(l(s),{onClick:e[2]||(e[2]=p=>o.value=!1)},{default:t(()=>[f("关闭")]),_:1})]),default:t(()=>[r(x)]),_:1},8,["modelValue"]),r(l(g),{modelValue:m.value,"onUpdate:modelValue":e[5]||(e[5]=p=>m.value=p),title:"弹窗"},{footer:t(()=>[r(l(s),{type:"primary",onClick:i},{default:t(()=>[f("提交")]),_:1}),r(l(s),{onClick:e[4]||(e[4]=p=>m.value=!1)},{default:t(()=>[f("关闭")]),_:1})]),default:t(()=>[r(l(y),{schema:n,onRegister:l(u)},null,8,["schema","onRegister"])]),_:1},8,["modelValue"])]),_:1}))}});export{ne as default}; +var _=(b,d,o)=>new Promise((m,u)=>{var c=i=>{try{n(o.next(i))}catch(a){u(a)}},v=i=>{try{n(o.throw(i))}catch(a){u(a)}},n=i=>i.done?m(i.value):Promise.resolve(i.value).then(c,v);n((o=o.apply(b,d)).next())});import{_ as k}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as g}from"./Dialog.vue_vue_type_style_index_0_lang-DkCU3loB.js";import{_ as s}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{F as y}from"./Form-B3fdtaFM.js";import{u as C}from"./useValidator-Nt61Jv1p.js";import{g as $}from"./index-Dt71D4p1.js";import{u as P}from"./useForm-BIADJKAv.js";import{_ as x}from"./Echart.vue_vue_type_script_setup_true_lang-B_EbGjXk.js";import{q as D,r as V,K as R,t as S,T as w,S as t,P as r,u as l,W as f}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */import"./Echart.vue_vue_type_script_setup_true_lang-CrfDnuqg.js";import"./echarts-VT2A7KjM.js";const ne=D({__name:"Dialog",setup(b){const{required:d}=C(),o=V(!1),m=V(!1),{formRegister:u,formMethods:c}=P(),{getElFormExpose:v}=c,n=R([{field:"field1",label:"输入框",component:"Input",formItemProps:{rules:[d()]}},{field:"field2",label:"选择器",component:"Select",optionApi:()=>_(this,null,function*(){return(yield $()).data})},{field:"field3",label:"单选框",component:"RadioGroup",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}]}},{field:"field4",label:"多选框",component:"CheckboxGroup",value:[],componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}]}},{field:"field5",component:"DatePicker",label:"日期选择器",componentProps:{type:"date"}},{field:"field6",component:"TimeSelect",label:"时间选择"}]),i=()=>_(this,null,function*(){const a=yield v();a==null||a.validate(e=>{})});return(a,e)=>(S(),w(l(k),{title:"弹窗",message:"基于 ElementPlus 的 Dialog 组件二次封装"},{default:t(()=>[r(l(s),{type:"primary",onClick:e[0]||(e[0]=p=>o.value=!o.value)},{default:t(()=>[f(" 打开 ")]),_:1}),r(l(s),{type:"primary",onClick:e[1]||(e[1]=p=>m.value=!m.value)},{default:t(()=>[f(" 与表单结合 ")]),_:1}),r(l(g),{modelValue:o.value,"onUpdate:modelValue":e[3]||(e[3]=p=>o.value=p),title:"弹窗"},{footer:t(()=>[r(l(s),{onClick:e[2]||(e[2]=p=>o.value=!1)},{default:t(()=>[f("关闭")]),_:1})]),default:t(()=>[r(x)]),_:1},8,["modelValue"]),r(l(g),{modelValue:m.value,"onUpdate:modelValue":e[5]||(e[5]=p=>m.value=p),title:"弹窗"},{footer:t(()=>[r(l(s),{type:"primary",onClick:i},{default:t(()=>[f("提交")]),_:1}),r(l(s),{onClick:e[4]||(e[4]=p=>m.value=!1)},{default:t(()=>[f("关闭")]),_:1})]),default:t(()=>[r(l(y),{schema:n,onRegister:l(u)},null,8,["schema","onRegister"])]),_:1},8,["modelValue"])]),_:1}))}});export{ne as default}; diff --git a/assets/Dialog.vue_vue_type_style_index_0_lang-BLWveiSq.js b/assets/Dialog.vue_vue_type_style_index_0_lang-DkCU3loB.js similarity index 97% rename from assets/Dialog.vue_vue_type_style_index_0_lang-BLWveiSq.js rename to assets/Dialog.vue_vue_type_style_index_0_lang-DkCU3loB.js index 82e75265..fa7ac2b8 100644 --- a/assets/Dialog.vue_vue_type_style_index_0_lang-BLWveiSq.js +++ b/assets/Dialog.vue_vue_type_style_index_0_lang-DkCU3loB.js @@ -1 +1 @@ -var C=Object.defineProperty;var g=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var v=(s,o,e)=>o in s?C(s,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[o]=e,h=(s,o)=>{for(var e in o||(o={}))N.call(o,e)&&v(s,e,o[e]);if(g)for(var e of g(o))$.call(o,e)&&v(s,e,o[e]);return s};var y=(s,o,e)=>new Promise((p,l)=>{var d=t=>{try{i(e.next(t))}catch(a){l(a)}},n=t=>{try{i(e.throw(t))}catch(a){l(a)}},i=t=>t.done?p(t.value):Promise.resolve(t.value).then(d,n);i((e=e.apply(s,o)).next())});import{I as T}from"./Icon-Bwi9LaBZ.js";import{p as f,q as H}from"./index-CA0d6hyI.js";import{f as j,aj as B}from"./element-plus-6v3c1uXT.js";import{q as D,R as I,d as k,r as b,w as E,n as q,t as w,T as S,aa as A,u as c,S as m,H as x,x as _,W as F,X as O,Y as P,P as V,V as z,I as R,_ as W}from"./vue-chunks-DOWhatC1.js";const X={class:"flex justify-between items-center h-54px pl-15px pr-15px relative"},Y={class:"h-54px flex justify-between items-center absolute top-[50%] right-15px translate-y-[-50%]"},Q=D({__name:"Dialog",props:{modelValue:f.bool.def(!1),title:f.string.def("Dialog"),fullscreen:f.bool.def(!0),maxHeight:f.oneOfType([String,Number]).def("400px")},setup(s){const o=I(),e=s,p=k(()=>{const t=["fullscreen","title","maxHeight"],a=W(),r=h(h({},a),e);for(const u in r)t.indexOf(u)!==-1&&delete r[u];return r}),l=b(!1),d=()=>{l.value=!c(l)},n=b(H(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight);E(()=>l.value,t=>y(this,null,function*(){if(yield q(),t){const a=document.documentElement.offsetHeight;n.value=`${a-55-60-(o.footer?63:0)}px`}else n.value=H(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight}),{immediate:!0});const i=k(()=>({height:c(n)}));return(t,a)=>{const r=T;return w(),S(c(B),R(p.value,{fullscreen:l.value,"destroy-on-close":"","lock-scroll":"",draggable:"",top:"0","close-on-click-modal":!1,"show-close":!1}),A({header:m(({close:u})=>[_("div",X,[x(t.$slots,"title",{},()=>[F(O(s.title),1)]),_("div",Y,[s.fullscreen?(w(),S(r,{key:0,class:"cursor-pointer is-hover !h-54px mr-10px",icon:l.value?"radix-icons:exit-full-screen":"radix-icons:enter-full-screen",color:"var(--el-color-info)","hover-color":"var(--el-color-primary)",onClick:d},null,8,["icon"])):P("",!0),V(r,{class:"cursor-pointer is-hover !h-54px",icon:"ep:close","hover-color":"var(--el-color-primary)",color:"var(--el-color-info)",onClick:u},null,8,["onClick"])])])]),default:m(()=>[V(c(j),{style:z(i.value)},{default:m(()=>[x(t.$slots,"default")]),_:3},8,["style"])]),_:2},[c(o).footer?{name:"footer",fn:m(()=>[x(t.$slots,"footer")]),key:"0"}:void 0]),1040,["fullscreen"])}}});export{Q as _}; +var C=Object.defineProperty;var g=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var v=(s,o,e)=>o in s?C(s,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[o]=e,h=(s,o)=>{for(var e in o||(o={}))N.call(o,e)&&v(s,e,o[e]);if(g)for(var e of g(o))$.call(o,e)&&v(s,e,o[e]);return s};var y=(s,o,e)=>new Promise((p,l)=>{var d=t=>{try{i(e.next(t))}catch(a){l(a)}},n=t=>{try{i(e.throw(t))}catch(a){l(a)}},i=t=>t.done?p(t.value):Promise.resolve(t.value).then(d,n);i((e=e.apply(s,o)).next())});import{I as T}from"./Icon-B-0CON7P.js";import{p as f,q as H}from"./index-B5z15nYm.js";import{f as j,aj as B}from"./element-plus-6v3c1uXT.js";import{q as D,R as I,d as k,r as b,w as E,n as q,t as w,T as S,aa as A,u as c,S as m,H as x,x as _,W as F,X as O,Y as P,P as V,V as z,I as R,_ as W}from"./vue-chunks-DOWhatC1.js";const X={class:"flex justify-between items-center h-54px pl-15px pr-15px relative"},Y={class:"h-54px flex justify-between items-center absolute top-[50%] right-15px translate-y-[-50%]"},Q=D({__name:"Dialog",props:{modelValue:f.bool.def(!1),title:f.string.def("Dialog"),fullscreen:f.bool.def(!0),maxHeight:f.oneOfType([String,Number]).def("400px")},setup(s){const o=I(),e=s,p=k(()=>{const t=["fullscreen","title","maxHeight"],a=W(),r=h(h({},a),e);for(const u in r)t.indexOf(u)!==-1&&delete r[u];return r}),l=b(!1),d=()=>{l.value=!c(l)},n=b(H(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight);E(()=>l.value,t=>y(this,null,function*(){if(yield q(),t){const a=document.documentElement.offsetHeight;n.value=`${a-55-60-(o.footer?63:0)}px`}else n.value=H(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight}),{immediate:!0});const i=k(()=>({height:c(n)}));return(t,a)=>{const r=T;return w(),S(c(B),R(p.value,{fullscreen:l.value,"destroy-on-close":"","lock-scroll":"",draggable:"",top:"0","close-on-click-modal":!1,"show-close":!1}),A({header:m(({close:u})=>[_("div",X,[x(t.$slots,"title",{},()=>[F(O(s.title),1)]),_("div",Y,[s.fullscreen?(w(),S(r,{key:0,class:"cursor-pointer is-hover !h-54px mr-10px",icon:l.value?"radix-icons:exit-full-screen":"radix-icons:enter-full-screen",color:"var(--el-color-info)","hover-color":"var(--el-color-primary)",onClick:d},null,8,["icon"])):P("",!0),V(r,{class:"cursor-pointer is-hover !h-54px",icon:"ep:close","hover-color":"var(--el-color-primary)",color:"var(--el-color-info)",onClick:u},null,8,["onClick"])])])]),default:m(()=>[V(c(j),{style:z(i.value)},{default:m(()=>[x(t.$slots,"default")]),_:3},8,["style"])]),_:2},[c(o).footer?{name:"footer",fn:m(()=>[x(t.$slots,"footer")]),key:"0"}:void 0]),1040,["fullscreen"])}}});export{Q as _}; diff --git a/assets/Echart-Cvjj3_Ce.js b/assets/Echart-Cvjj3_Ce.js new file mode 100644 index 00000000..cf5ae6f7 --- /dev/null +++ b/assets/Echart-Cvjj3_Ce.js @@ -0,0 +1 @@ +import{_ as o}from"./Echart.vue_vue_type_script_setup_true_lang-B_EbGjXk.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Echart.vue_vue_type_script_setup_true_lang-CrfDnuqg.js";import"./echarts-VT2A7KjM.js";/* empty css */export{o as default}; diff --git a/assets/Echart-DWoquW8N.js b/assets/Echart-DWoquW8N.js deleted file mode 100644 index aa3c2275..00000000 --- a/assets/Echart-DWoquW8N.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Echart.vue_vue_type_script_setup_true_lang-D4wuPzaf.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Echart.vue_vue_type_script_setup_true_lang-B--3X1Iw.js";import"./echarts-VT2A7KjM.js";/* empty css */export{o as default}; diff --git a/assets/Echart.vue_vue_type_script_setup_true_lang-D4wuPzaf.js b/assets/Echart.vue_vue_type_script_setup_true_lang-B_EbGjXk.js similarity index 86% rename from assets/Echart.vue_vue_type_script_setup_true_lang-D4wuPzaf.js rename to assets/Echart.vue_vue_type_script_setup_true_lang-B_EbGjXk.js index 2c973440..a68046d9 100644 --- a/assets/Echart.vue_vue_type_script_setup_true_lang-D4wuPzaf.js +++ b/assets/Echart.vue_vue_type_script_setup_true_lang-B_EbGjXk.js @@ -1 +1 @@ -import{_ as p}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as a,p as i,b as n,l as r,w as m}from"./Echart.vue_vue_type_script_setup_true_lang-B--3X1Iw.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css */import{n as _,k as e,l}from"./element-plus-6v3c1uXT.js";import{q as h,t as u,T as d,S as o,P as t,u as s}from"./vue-chunks-DOWhatC1.js";const k=h({__name:"Echart",setup(f){return(c,x)=>(u(),d(s(p),{title:"图表",message:"基于 echarts 二次封装组件,自适应宽度,只需传入 options 与 height 属性即可展示对应的图表。"},{default:o(()=>[t(s(_),{gutter:20,justify:"space-between"},{default:o(()=>[t(s(e),{xl:10,lg:10,md:24,sm:24,xs:24},{default:o(()=>[t(s(l),{shadow:"hover",class:"mb-20px"},{default:o(()=>[t(s(a),{options:s(i),height:300},null,8,["options"])]),_:1})]),_:1}),t(s(e),{xl:14,lg:14,md:24,sm:24,xs:24},{default:o(()=>[t(s(l),{shadow:"hover",class:"mb-20px"},{default:o(()=>[t(s(a),{options:s(n),height:300},null,8,["options"])]),_:1})]),_:1}),t(s(e),{span:24},{default:o(()=>[t(s(l),{shadow:"hover",class:"mb-20px"},{default:o(()=>[t(s(a),{options:s(r),height:350},null,8,["options"])]),_:1})]),_:1}),t(s(e),{span:24},{default:o(()=>[t(s(l),{shadow:"hover",class:"mb-20px"},{default:o(()=>[t(s(a),{options:s(m),height:300},null,8,["options"])]),_:1})]),_:1})]),_:1})]),_:1}))}});export{k as _}; +import{_ as p}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as a,p as i,b as n,l as r,w as m}from"./Echart.vue_vue_type_script_setup_true_lang-CrfDnuqg.js";import"./index-B5z15nYm.js";/* empty css *//* empty css */import{n as _,k as e,l}from"./element-plus-6v3c1uXT.js";import{q as h,t as u,T as d,S as o,P as t,u as s}from"./vue-chunks-DOWhatC1.js";const k=h({__name:"Echart",setup(f){return(c,x)=>(u(),d(s(p),{title:"图表",message:"基于 echarts 二次封装组件,自适应宽度,只需传入 options 与 height 属性即可展示对应的图表。"},{default:o(()=>[t(s(_),{gutter:20,justify:"space-between"},{default:o(()=>[t(s(e),{xl:10,lg:10,md:24,sm:24,xs:24},{default:o(()=>[t(s(l),{shadow:"hover",class:"mb-20px"},{default:o(()=>[t(s(a),{options:s(i),height:300},null,8,["options"])]),_:1})]),_:1}),t(s(e),{xl:14,lg:14,md:24,sm:24,xs:24},{default:o(()=>[t(s(l),{shadow:"hover",class:"mb-20px"},{default:o(()=>[t(s(a),{options:s(n),height:300},null,8,["options"])]),_:1})]),_:1}),t(s(e),{span:24},{default:o(()=>[t(s(l),{shadow:"hover",class:"mb-20px"},{default:o(()=>[t(s(a),{options:s(r),height:350},null,8,["options"])]),_:1})]),_:1}),t(s(e),{span:24},{default:o(()=>[t(s(l),{shadow:"hover",class:"mb-20px"},{default:o(()=>[t(s(a),{options:s(m),height:300},null,8,["options"])]),_:1})]),_:1})]),_:1})]),_:1}))}});export{k as _}; diff --git a/assets/Echart.vue_vue_type_script_setup_true_lang-B--3X1Iw.js b/assets/Echart.vue_vue_type_script_setup_true_lang-CrfDnuqg.js similarity index 97% rename from assets/Echart.vue_vue_type_script_setup_true_lang-B--3X1Iw.js rename to assets/Echart.vue_vue_type_script_setup_true_lang-CrfDnuqg.js index 95335ef7..ea1e5c05 100644 --- a/assets/Echart.vue_vue_type_script_setup_true_lang-B--3X1Iw.js +++ b/assets/Echart.vue_vue_type_script_setup_true_lang-CrfDnuqg.js @@ -1 +1 @@ -var v=(d,u,a)=>new Promise((c,o)=>{var l=t=>{try{e(a.next(t))}catch(i){o(i)}},r=t=>{try{e(a.throw(t))}catch(i){o(i)}},e=t=>t.done?c(t.value):Promise.resolve(t.value).then(l,r);e((a=a.apply(d,u)).next())});import{A as C,C as O,a as M,b as $,S as A,M as P,P as T,c as k,d as z,e as E,f as L,g as D,h as _,i as I,j as B,k as N,l as V,m as j,n as R,o as H,p as J,q as U,r as q,s as F,t as G,u as W,v as K,w as X,x as Y,y as Q,z as Z,B as y,D as ee,E as ae,F as te,G as se,H as ne,I as re,J as ie,K as oe,L as le,N as me,O as de,Q as ue,R as ce,T as pe,U as he,V as ge,W as ve,X as ye,Y as w,Z as fe,_ as xe,$ as be,a0 as we,a1 as Se,a2 as Ce,a3 as Oe,a4 as Me,a5 as $e,a6 as Ae,a7 as Pe,a8 as Te,a9 as ke,aa as ze,ab as Ee,ac as Le,ad as De,ae as _e,af as Ie}from"./echarts-VT2A7KjM.js";import{p as f,u as Be,a as x}from"./index-CA0d6hyI.js";import{I as Ne}from"./element-plus-6v3c1uXT.js";import{q as Ve,d as m,u as s,r as b,w as je,o as Re,C as He,aD as Je,t as Ue,v as qe,M as Fe,V as Ge}from"./vue-chunks-DOWhatC1.js";const ea={title:{text:"每月销售额",left:"center"},xAxis:{data:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],boundaryGap:!1,axisTick:{show:!1}},grid:{left:20,right:20,bottom:20,top:80,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:{axisTick:{show:!1}},legend:{data:["预计","实际"],top:50},series:[{name:"预计",smooth:!0,type:"line",data:[100,120,161,134,105,160,165,114,163,185,118,123],animationDuration:2800,animationEasing:"cubicInOut"},{name:"实际",smooth:!0,type:"line",itemStyle:{},data:[120,82,91,154,162,140,145,250,134,56,99,123],animationDuration:2800,animationEasing:"quadraticOut"}]},aa={title:{text:"用户访问来源",left:"center"},tooltip:{trigger:"item",formatter:"{a}
{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["直接访问","邮件营销","联盟广告","视频广告","搜索引擎"]},series:[{name:"用户访问来源",type:"pie",radius:"55%",center:["50%","60%"],data:[{value:335,name:"直接访问"},{value:310,name:"邮件营销"},{value:234,name:"联盟广告"},{value:135,name:"视频广告"},{value:1548,name:"搜索引擎"}]}]},ta={title:{text:"每周用户活跃量",left:"center"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:50,right:20,bottom:20},xAxis:{type:"category",data:["周一","周二","周三","周四","周五","周六","周日"],axisTick:{alignWithLabel:!0}},yAxis:{type:"value"},series:[{name:"活跃量",data:[13253,34235,26321,12340,24643,1322,1324],type:"bar"}]},sa={legend:{data:["个人","团队"]},radar:{indicator:[{name:"引用",max:65},{name:"贡献",max:160},{name:"热度",max:300},{name:"产量",max:130},{name:"关注",max:100}]},series:[{name:"xxx指数",type:"radar",data:[{value:[42,30,20,35,80],name:"个人"},{value:[50,140,290,100,90],name:"团队"}]}]},na={series:[{type:"wordCloud",gridSize:2,sizeRange:[12,50],rotationRange:[-90,90],shape:"pentagon",width:600,height:400,drawOutOfBound:!0,textStyle:{color:function(){return"rgb("+[Math.round(Math.random()*160),Math.round(Math.random()*160),Math.round(Math.random()*160)].join(",")+")"}},emphasis:{textStyle:{shadowBlur:10,shadowColor:"#333"}},data:[{name:"Sam S Club",value:1e4,textStyle:{color:"black"},emphasis:{textStyle:{color:"red"}}},{name:"Macys",value:6181},{name:"Amy Schumer",value:4386},{name:"Jurassic World",value:4055},{name:"Charter Communications",value:2467},{name:"Chick Fil A",value:2244},{name:"Planet Fitness",value:1898},{name:"Pitch Perfect",value:1484},{name:"Express",value:1112},{name:"Home",value:965},{name:"Johnny Depp",value:847},{name:"Lena Dunham",value:582},{name:"Lewis Hamilton",value:555},{name:"KXAN",value:550},{name:"Mary Ellen Mark",value:462},{name:"Farrah Abraham",value:366},{name:"Rita Ora",value:360},{name:"Serena Williams",value:282},{name:"NCAA baseball tournament",value:273},{name:"Point Break",value:265}]}]},We=Object.freeze(Object.defineProperty({__proto__:null,Axis:C,ChartView:O,ComponentModel:M,ComponentView:$,List:A,Model:P,PRIORITY:T,SeriesModel:k,color:z,connect:E,dataTool:L,dependencies:D,disConnect:_,disconnect:I,dispose:B,env:N,extendChartView:V,extendComponentModel:j,extendComponentView:R,extendSeriesModel:H,format:J,getCoordinateSystemDimensions:U,getInstanceByDom:q,getInstanceById:F,getMap:G,graphic:W,helper:K,init:X,innerDrawElementOnCanvas:Y,matrix:Q,number:Z,parseGeoJSON:y,parseGeoJson:y,registerAction:ee,registerCoordinateSystem:ae,registerLayout:te,registerLoading:se,registerLocale:ne,registerMap:re,registerPostInit:ie,registerPostUpdate:oe,registerPreprocessor:le,registerProcessor:me,registerTheme:de,registerTransform:ue,registerUpdateLifecycle:ce,registerVisual:pe,setCanvasCreator:he,setPlatformAPI:ge,throttle:ve,time:ye,use:w,util:fe,vector:xe,version:be,zrUtil:we,zrender:Se},Symbol.toStringTag,{value:"Module"}));w([Ce,Oe,Me,$e,Ae,Pe,Te,ke,ze,Ee,Le,De,_e,Ie]);const ra=Ve({__name:"Echart",props:{options:{type:Object,required:!0},width:f.oneOfType([Number,String]).def("100%"),height:f.oneOfType([Number,String]).def("500px")},setup(d){const u=Be(),a=d,c=m(()=>u.getIsDark),o=m(()=>s(c)?!0:"auto"),l=m(()=>Object.assign(a.options,{darkMode:s(o)})),r=b();let e=null;const t=b(),i=m(()=>{const n=x(a.width)?a.width:`${a.width}px`,g=x(a.height)?a.height:`${a.height}px`;return{width:n,height:g}}),S=()=>{s(r)&&a.options&&(e=We.init(s(r)),e==null||e.setOption(s(l)))};je(()=>l.value,n=>{e&&(e==null||e.setOption(n))},{deep:!0});const p=Ne(()=>{e&&e.resize()},100),h=n=>v(this,null,function*(){n.propertyName==="width"&&p()});return Re(()=>{setTimeout(()=>{S()},0),window.addEventListener("resize",p),t.value=document.getElementsByClassName("layout-content")[0],s(t)&&s(t).addEventListener("transitionend",h)}),He(()=>{window.removeEventListener("resize",p),s(t)&&s(t).removeEventListener("transitionend",h)}),Je(()=>{e&&e.resize()}),(n,g)=>(Ue(),qe("div",{ref_key:"elRef",ref:r,class:Fe([n.$attrs.class,"echart"]),style:Ge(i.value)},null,6))}});export{ra as _,ta as b,ea as l,aa as p,sa as r,na as w}; +var v=(d,u,a)=>new Promise((c,o)=>{var l=t=>{try{e(a.next(t))}catch(i){o(i)}},r=t=>{try{e(a.throw(t))}catch(i){o(i)}},e=t=>t.done?c(t.value):Promise.resolve(t.value).then(l,r);e((a=a.apply(d,u)).next())});import{A as C,C as O,a as M,b as $,S as A,M as P,P as T,c as k,d as z,e as E,f as L,g as D,h as _,i as I,j as B,k as N,l as V,m as j,n as R,o as H,p as J,q as U,r as q,s as F,t as G,u as W,v as K,w as X,x as Y,y as Q,z as Z,B as y,D as ee,E as ae,F as te,G as se,H as ne,I as re,J as ie,K as oe,L as le,N as me,O as de,Q as ue,R as ce,T as pe,U as he,V as ge,W as ve,X as ye,Y as w,Z as fe,_ as xe,$ as be,a0 as we,a1 as Se,a2 as Ce,a3 as Oe,a4 as Me,a5 as $e,a6 as Ae,a7 as Pe,a8 as Te,a9 as ke,aa as ze,ab as Ee,ac as Le,ad as De,ae as _e,af as Ie}from"./echarts-VT2A7KjM.js";import{p as f,u as Be,a as x}from"./index-B5z15nYm.js";import{I as Ne}from"./element-plus-6v3c1uXT.js";import{q as Ve,d as m,u as s,r as b,w as je,o as Re,C as He,aD as Je,t as Ue,v as qe,M as Fe,V as Ge}from"./vue-chunks-DOWhatC1.js";const ea={title:{text:"每月销售额",left:"center"},xAxis:{data:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],boundaryGap:!1,axisTick:{show:!1}},grid:{left:20,right:20,bottom:20,top:80,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:{axisTick:{show:!1}},legend:{data:["预计","实际"],top:50},series:[{name:"预计",smooth:!0,type:"line",data:[100,120,161,134,105,160,165,114,163,185,118,123],animationDuration:2800,animationEasing:"cubicInOut"},{name:"实际",smooth:!0,type:"line",itemStyle:{},data:[120,82,91,154,162,140,145,250,134,56,99,123],animationDuration:2800,animationEasing:"quadraticOut"}]},aa={title:{text:"用户访问来源",left:"center"},tooltip:{trigger:"item",formatter:"{a}
{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["直接访问","邮件营销","联盟广告","视频广告","搜索引擎"]},series:[{name:"用户访问来源",type:"pie",radius:"55%",center:["50%","60%"],data:[{value:335,name:"直接访问"},{value:310,name:"邮件营销"},{value:234,name:"联盟广告"},{value:135,name:"视频广告"},{value:1548,name:"搜索引擎"}]}]},ta={title:{text:"每周用户活跃量",left:"center"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:50,right:20,bottom:20},xAxis:{type:"category",data:["周一","周二","周三","周四","周五","周六","周日"],axisTick:{alignWithLabel:!0}},yAxis:{type:"value"},series:[{name:"活跃量",data:[13253,34235,26321,12340,24643,1322,1324],type:"bar"}]},sa={legend:{data:["个人","团队"]},radar:{indicator:[{name:"引用",max:65},{name:"贡献",max:160},{name:"热度",max:300},{name:"产量",max:130},{name:"关注",max:100}]},series:[{name:"xxx指数",type:"radar",data:[{value:[42,30,20,35,80],name:"个人"},{value:[50,140,290,100,90],name:"团队"}]}]},na={series:[{type:"wordCloud",gridSize:2,sizeRange:[12,50],rotationRange:[-90,90],shape:"pentagon",width:600,height:400,drawOutOfBound:!0,textStyle:{color:function(){return"rgb("+[Math.round(Math.random()*160),Math.round(Math.random()*160),Math.round(Math.random()*160)].join(",")+")"}},emphasis:{textStyle:{shadowBlur:10,shadowColor:"#333"}},data:[{name:"Sam S Club",value:1e4,textStyle:{color:"black"},emphasis:{textStyle:{color:"red"}}},{name:"Macys",value:6181},{name:"Amy Schumer",value:4386},{name:"Jurassic World",value:4055},{name:"Charter Communications",value:2467},{name:"Chick Fil A",value:2244},{name:"Planet Fitness",value:1898},{name:"Pitch Perfect",value:1484},{name:"Express",value:1112},{name:"Home",value:965},{name:"Johnny Depp",value:847},{name:"Lena Dunham",value:582},{name:"Lewis Hamilton",value:555},{name:"KXAN",value:550},{name:"Mary Ellen Mark",value:462},{name:"Farrah Abraham",value:366},{name:"Rita Ora",value:360},{name:"Serena Williams",value:282},{name:"NCAA baseball tournament",value:273},{name:"Point Break",value:265}]}]},We=Object.freeze(Object.defineProperty({__proto__:null,Axis:C,ChartView:O,ComponentModel:M,ComponentView:$,List:A,Model:P,PRIORITY:T,SeriesModel:k,color:z,connect:E,dataTool:L,dependencies:D,disConnect:_,disconnect:I,dispose:B,env:N,extendChartView:V,extendComponentModel:j,extendComponentView:R,extendSeriesModel:H,format:J,getCoordinateSystemDimensions:U,getInstanceByDom:q,getInstanceById:F,getMap:G,graphic:W,helper:K,init:X,innerDrawElementOnCanvas:Y,matrix:Q,number:Z,parseGeoJSON:y,parseGeoJson:y,registerAction:ee,registerCoordinateSystem:ae,registerLayout:te,registerLoading:se,registerLocale:ne,registerMap:re,registerPostInit:ie,registerPostUpdate:oe,registerPreprocessor:le,registerProcessor:me,registerTheme:de,registerTransform:ue,registerUpdateLifecycle:ce,registerVisual:pe,setCanvasCreator:he,setPlatformAPI:ge,throttle:ve,time:ye,use:w,util:fe,vector:xe,version:be,zrUtil:we,zrender:Se},Symbol.toStringTag,{value:"Module"}));w([Ce,Oe,Me,$e,Ae,Pe,Te,ke,ze,Ee,Le,De,_e,Ie]);const ra=Ve({__name:"Echart",props:{options:{type:Object,required:!0},width:f.oneOfType([Number,String]).def("100%"),height:f.oneOfType([Number,String]).def("500px")},setup(d){const u=Be(),a=d,c=m(()=>u.getIsDark),o=m(()=>s(c)?!0:"auto"),l=m(()=>Object.assign(a.options,{darkMode:s(o)})),r=b();let e=null;const t=b(),i=m(()=>{const n=x(a.width)?a.width:`${a.width}px`,g=x(a.height)?a.height:`${a.height}px`;return{width:n,height:g}}),S=()=>{s(r)&&a.options&&(e=We.init(s(r)),e==null||e.setOption(s(l)))};je(()=>l.value,n=>{e&&(e==null||e.setOption(n))},{deep:!0});const p=Ne(()=>{e&&e.resize()},100),h=n=>v(this,null,function*(){n.propertyName==="width"&&p()});return Re(()=>{setTimeout(()=>{S()},0),window.addEventListener("resize",p),t.value=document.getElementsByClassName("layout-content")[0],s(t)&&s(t).addEventListener("transitionend",h)}),He(()=>{window.removeEventListener("resize",p),s(t)&&s(t).removeEventListener("transitionend",h)}),Je(()=>{e&&e.resize()}),(n,g)=>(Ue(),qe("div",{ref_key:"elRef",ref:r,class:Fe([n.$attrs.class,"echart"]),style:Ge(i.value)},null,6))}});export{ra as _,ta as b,ea as l,aa as p,sa as r,na as w}; diff --git a/assets/Editor-Dsk6YOTY.js b/assets/Editor-DwMwBmXe.js similarity index 83% rename from assets/Editor-Dsk6YOTY.js rename to assets/Editor-DwMwBmXe.js index ab8e7818..488c2669 100644 --- a/assets/Editor-Dsk6YOTY.js +++ b/assets/Editor-DwMwBmXe.js @@ -1 +1 @@ -var f=(p,n,o)=>new Promise((a,e)=>{var r=t=>{try{l(o.next(t))}catch(m){e(m)}},s=t=>{try{l(o.throw(t))}catch(m){e(m)}},l=t=>t.done?a(t.value):Promise.resolve(t.value).then(r,s);l((o=o.apply(p,n)).next())});import{_ as d}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_}from"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import{q as c,r as u,o as g,u as i,t as w,T as V,S as h,P as k}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./wang-editor-DjPKVaXS.js";const q=c({__name:"Editor",setup(p){const n=e=>{e.getHtml()},o=u(),a=u("");return g(()=>f(this,null,function*(){var e;yield(e=i(o))==null?void 0:e.getEditorRef()})),setTimeout(()=>{a.value="

hello world

"},3e3),(e,r)=>(w(),V(i(d),{title:"富文本",message:"基于 wangeditor 二次封装"},{default:h(()=>[k(i(_),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=s=>a.value=s),ref_key:"editorRef",ref:o,onChange:n},null,8,["modelValue"])]),_:1}))}});export{q as default}; +var f=(p,n,o)=>new Promise((a,e)=>{var r=t=>{try{l(o.next(t))}catch(m){e(m)}},s=t=>{try{l(o.throw(t))}catch(m){e(m)}},l=t=>t.done?a(t.value):Promise.resolve(t.value).then(r,s);l((o=o.apply(p,n)).next())});import{_ as d}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_}from"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import{q as c,r as u,o as g,u as i,t as w,T as V,S as h,P as k}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./wang-editor-DjPKVaXS.js";const q=c({__name:"Editor",setup(p){const n=e=>{e.getHtml()},o=u(),a=u("");return g(()=>f(this,null,function*(){var e;yield(e=i(o))==null?void 0:e.getEditorRef()})),setTimeout(()=>{a.value="

hello world

"},3e3),(e,r)=>(w(),V(i(d),{title:"富文本",message:"基于 wangeditor 二次封装"},{default:h(()=>[k(i(_),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=s=>a.value=s),ref_key:"editorRef",ref:o,onChange:n},null,8,["modelValue"])]),_:1}))}});export{q as default}; diff --git a/assets/Error.vue_vue_type_script_setup_true_lang-Yi9a7IcZ.js b/assets/Error.vue_vue_type_script_setup_true_lang-pT3BQnse.js similarity index 88% rename from assets/Error.vue_vue_type_script_setup_true_lang-Yi9a7IcZ.js rename to assets/Error.vue_vue_type_script_setup_true_lang-pT3BQnse.js index 615ef759..90639203 100644 --- a/assets/Error.vue_vue_type_script_setup_true_lang-Yi9a7IcZ.js +++ b/assets/Error.vue_vue_type_script_setup_true_lang-pT3BQnse.js @@ -1 +1 @@ -import{p as i}from"./index-CA0d6hyI.js";import{_ as l}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{q as m,t as p,v as d,x as e,X as o,P as u,S as x,W as _,u as f}from"./vue-chunks-DOWhatC1.js";const g="/assets/404-B3JyPfEa.svg",y="/assets/500-BGu8fdSB.svg",v="/assets/403-RqeqO19C.svg",h={class:"flex justify-center"},k={class:"text-center"},C=["src"],B={class:"text-14px text-[var(--el-color-info)]"},T={class:"mt-20px"},P=m({__name:"Error",props:{type:i.string.validate(t=>["404","500","403"].includes(t)).def("404")},emits:["errorClick"],setup(t,{emit:r}){const s={404:{url:g,message:"抱歉,您访问的页面不存在。",buttonText:"返回首页"},500:{url:y,message:"抱歉,服务器报告错误。",buttonText:"返回首页"},403:{url:v,message:"抱歉,您无权访问此页面。",buttonText:"返回首页"}},a=t,n=r,c=()=>{n("errorClick",a.type)};return(b,E)=>(p(),d("div",h,[e("div",k,[e("img",{width:"350",src:s[t.type].url,alt:""},null,8,C),e("div",B,o(s[t.type].message),1),e("div",T,[u(f(l),{type:"primary",onClick:c},{default:x(()=>[_(o(s[t.type].buttonText),1)]),_:1})])])]))}});export{P as _}; +import{p as i}from"./index-B5z15nYm.js";import{_ as l}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{q as m,t as p,v as d,x as e,X as o,P as u,S as x,W as _,u as f}from"./vue-chunks-DOWhatC1.js";const g="/assets/404-B3JyPfEa.svg",y="/assets/500-BGu8fdSB.svg",v="/assets/403-RqeqO19C.svg",h={class:"flex justify-center"},k={class:"text-center"},C=["src"],B={class:"text-14px text-[var(--el-color-info)]"},T={class:"mt-20px"},P=m({__name:"Error",props:{type:i.string.validate(t=>["404","500","403"].includes(t)).def("404")},emits:["errorClick"],setup(t,{emit:r}){const s={404:{url:g,message:"抱歉,您访问的页面不存在。",buttonText:"返回首页"},500:{url:y,message:"抱歉,服务器报告错误。",buttonText:"返回首页"},403:{url:v,message:"抱歉,您无权访问此页面。",buttonText:"返回首页"}},a=t,n=r,c=()=>{n("errorClick",a.type)};return(b,E)=>(p(),d("div",h,[e("div",k,[e("img",{width:"350",src:s[t.type].url,alt:""},null,8,C),e("div",B,o(s[t.type].message),1),e("div",T,[u(f(l),{type:"primary",onClick:c},{default:x(()=>[_(o(s[t.type].buttonText),1)]),_:1})])])]))}});export{P as _}; diff --git a/assets/ExampleAdd-DqNbWzzi.js b/assets/ExampleAdd-DDDh0jHD.js similarity index 64% rename from assets/ExampleAdd-DqNbWzzi.js rename to assets/ExampleAdd-DDDh0jHD.js index db5e8f53..fe9724c5 100644 --- a/assets/ExampleAdd-DqNbWzzi.js +++ b/assets/ExampleAdd-DDDh0jHD.js @@ -1 +1 @@ -var c=(u,s,o)=>new Promise((n,i)=>{var m=t=>{try{e(o.next(t))}catch(r){i(r)}},f=t=>{try{e(o.throw(t))}catch(r){i(r)}},e=t=>t.done?n(t.value):Promise.resolve(t.value).then(m,f);e((o=o.apply(u,s)).next())});import{_ as v}from"./Write.vue_vue_type_script_setup_true_lang-BCm2J1Ks.js";import{_ as g}from"./ContentDetailWrap.vue_vue_type_script_setup_true_lang-CZbjH80x.js";import{_}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{q as k,aA as y,r as d,t as $,T as w,S as p,P as l,u as a,W as x}from"./vue-chunks-DOWhatC1.js";import{s as B}from"./index-DVoP4cjT.js";import{u as C}from"./useEventBus-BptU9a9z.js";import"./Form-DJ57xbBt.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./Icon-Bwi9LaBZ.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */import"./useForm-CbOF_UB2.js";import"./useValidator-Nt61Jv1p.js";/* empty css */const ot=k({__name:"ExampleAdd",setup(u){const{emit:s}=C(),{push:o,go:n}=y(),i=d(),m=d(!1),f=()=>c(this,null,function*(){const e=a(i),t=yield e==null?void 0:e.submit();t&&(m.value=!0,(yield B(t).catch(()=>{}).finally(()=>{m.value=!1}))&&(s("getList","add"),o("/example/example-page")))});return(e,t)=>($(),w(a(g),{title:"新增",onBack:t[1]||(t[1]=r=>a(o)("/example/example-page"))},{header:p(()=>[l(a(_),{onClick:t[0]||(t[0]=r=>a(n)(-1))},{default:p(()=>[x(" 返回 ")]),_:1}),l(a(_),{type:"primary",loading:m.value,onClick:f},{default:p(()=>[x("保存 ")]),_:1},8,["loading"])]),default:p(()=>[l(v,{ref_key:"writeRef",ref:i},null,512)]),_:1}))}});export{ot as default}; +var c=(u,s,o)=>new Promise((n,i)=>{var m=t=>{try{e(o.next(t))}catch(r){i(r)}},f=t=>{try{e(o.throw(t))}catch(r){i(r)}},e=t=>t.done?n(t.value):Promise.resolve(t.value).then(m,f);e((o=o.apply(u,s)).next())});import{_ as v}from"./Write.vue_vue_type_script_setup_true_lang-CdW4xsT_.js";import{_ as g}from"./ContentDetailWrap.vue_vue_type_script_setup_true_lang-BkeNJGQ5.js";import{_}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{q as k,aA as y,r as d,t as $,T as w,S as p,P as l,u as a,W as x}from"./vue-chunks-DOWhatC1.js";import{s as B}from"./index-DB50Cmmr.js";import{u as C}from"./useEventBus-BptU9a9z.js";import"./Form-B3fdtaFM.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./Icon-B-0CON7P.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */import"./useForm-BIADJKAv.js";import"./useValidator-Nt61Jv1p.js";/* empty css */const ot=k({__name:"ExampleAdd",setup(u){const{emit:s}=C(),{push:o,go:n}=y(),i=d(),m=d(!1),f=()=>c(this,null,function*(){const e=a(i),t=yield e==null?void 0:e.submit();t&&(m.value=!0,(yield B(t).catch(()=>{}).finally(()=>{m.value=!1}))&&(s("getList","add"),o("/example/example-page")))});return(e,t)=>($(),w(a(g),{title:"新增",onBack:t[1]||(t[1]=r=>a(o)("/example/example-page"))},{header:p(()=>[l(a(_),{onClick:t[0]||(t[0]=r=>a(n)(-1))},{default:p(()=>[x(" 返回 ")]),_:1}),l(a(_),{type:"primary",loading:m.value,onClick:f},{default:p(()=>[x("保存 ")]),_:1},8,["loading"])]),default:p(()=>[l(v,{ref_key:"writeRef",ref:i},null,512)]),_:1}))}});export{ot as default}; diff --git a/assets/ExampleDetail-jiL-SQgj.js b/assets/ExampleDetail-CDVh2zLz.js similarity index 65% rename from assets/ExampleDetail-jiL-SQgj.js rename to assets/ExampleDetail-CDVh2zLz.js index 5d22bafc..309058ce 100644 --- a/assets/ExampleDetail-jiL-SQgj.js +++ b/assets/ExampleDetail-CDVh2zLz.js @@ -1 +1 @@ -var c=(u,n,a)=>new Promise((m,r)=>{var l=e=>{try{t(a.next(e))}catch(i){r(i)}},o=e=>{try{t(a.throw(e))}catch(i){r(i)}},t=e=>e.done?m(e.value):Promise.resolve(e.value).then(l,o);t((a=a.apply(u,n)).next())});import{_}from"./Detail.vue_vue_type_script_setup_true_lang-CFcBVm_Z.js";import{_ as d}from"./ContentDetailWrap.vue_vue_type_script_setup_true_lang-CZbjH80x.js";import{_ as x}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{q as g,aA as w,aH as T,r as $,t as k,T as v,S as p,P as f,u as s,W as D}from"./vue-chunks-DOWhatC1.js";import{c as b}from"./index-DVoP4cjT.js";import"./Descriptions-BYYy1K3P.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const j=g({__name:"ExampleDetail",setup(u){const{push:n,go:a}=w(),{query:m}=T(),r=$(null);return c(this,null,function*(){const o=yield b(m.id);o&&(r.value=o.data)}),(o,t)=>(k(),v(s(d),{title:"详情",onBack:t[1]||(t[1]=e=>s(n)("/example/example-page"))},{header:p(()=>[f(s(x),{onClick:t[0]||(t[0]=e=>s(a)(-1))},{default:p(()=>[D(" 返回 ")]),_:1})]),default:p(()=>[f(_,{"current-row":r.value},null,8,["current-row"])]),_:1}))}});export{j as default}; +var c=(u,n,a)=>new Promise((m,r)=>{var l=e=>{try{t(a.next(e))}catch(i){r(i)}},o=e=>{try{t(a.throw(e))}catch(i){r(i)}},t=e=>e.done?m(e.value):Promise.resolve(e.value).then(l,o);t((a=a.apply(u,n)).next())});import{_}from"./Detail.vue_vue_type_script_setup_true_lang-BVf-bmvt.js";import{_ as d}from"./ContentDetailWrap.vue_vue_type_script_setup_true_lang-BkeNJGQ5.js";import{_ as x}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{q as g,aA as w,aH as T,r as $,t as k,T as v,S as p,P as f,u as s,W as D}from"./vue-chunks-DOWhatC1.js";import{c as b}from"./index-DB50Cmmr.js";import"./Descriptions-CnAOhWOB.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const j=g({__name:"ExampleDetail",setup(u){const{push:n,go:a}=w(),{query:m}=T(),r=$(null);return c(this,null,function*(){const o=yield b(m.id);o&&(r.value=o.data)}),(o,t)=>(k(),v(s(d),{title:"详情",onBack:t[1]||(t[1]=e=>s(n)("/example/example-page"))},{header:p(()=>[f(s(x),{onClick:t[0]||(t[0]=e=>s(a)(-1))},{default:p(()=>[D(" 返回 ")]),_:1})]),default:p(()=>[f(_,{"current-row":r.value},null,8,["current-row"])]),_:1}))}});export{j as default}; diff --git a/assets/ExampleDialog-DBkSQIQ9.js b/assets/ExampleDialog-B5zK_Laf.js similarity index 80% rename from assets/ExampleDialog-DBkSQIQ9.js rename to assets/ExampleDialog-B5zK_Laf.js index e1c13146..2dac1f14 100644 --- a/assets/ExampleDialog-DBkSQIQ9.js +++ b/assets/ExampleDialog-B5zK_Laf.js @@ -1 +1 @@ -var Q=Object.defineProperty;var B=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var N=(s,o,l)=>o in s?Q(s,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[o]=l,Y=(s,o)=>{for(var l in o||(o={}))W.call(o,l)&&N(s,l,o[l]);if(B)for(var l of B(o))j.call(o,l)&&N(s,l,o[l]);return s};var h=(s,o,l)=>new Promise((_,b)=>{var k=n=>{try{v(l.next(n))}catch(m){b(m)}},C=n=>{try{v(l.throw(n))}catch(m){b(m)}},v=n=>n.done?_(n.value):Promise.resolve(n.value).then(k,C);v((l=l.apply(s,o)).next())});import{_ as G}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as J}from"./Search.vue_vue_type_script_setup_true_lang-CJ6bt3cN.js";import{_ as O}from"./Dialog.vue_vue_type_style_index_0_lang-BLWveiSq.js";import"./index-CA0d6hyI.js";/* empty css */import{_ as X}from"./Table.vue_vue_type_script_lang-DOZk-BCG.js";/* empty css *//* empty css *//* empty css */import{g as Z,d as ee,s as te}from"./index-DVoP4cjT.js";import{u as ae}from"./useTable-BTK3WtdF.js";import{_ as le}from"./Write.vue_vue_type_script_setup_true_lang-B0H_2X2p.js";import{_ as oe}from"./Detail.vue_vue_type_script_setup_true_lang-CPaYQRpk.js";import{u as re}from"./useCrudSchemas-B5FzcJ46.js";import{_ as d}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{C as ie}from"./element-plus-6v3c1uXT.js";import{q as ne,r as u,K as se,P as i,W as c,Q as F,u as t,t as S,v as ue,S as p,x as me,i as I,T as R,Y as $}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Form-DJ57xbBt.js";/* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */import"./useForm-CbOF_UB2.js";import"./useIcon-Bk4x_lwM.js";/* empty css *//* empty css *//* empty css */import"./index-DlX4pwja.js";import"./useValidator-Nt61Jv1p.js";import"./Descriptions-BYYy1K3P.js";import"./tree-Dgaev6Pi.js";const de={class:"mb-10px"},at=ne({__name:"ExampleDialog",setup(s){const o=u([]),{tableRegister:l,tableState:_,tableMethods:b}=ae({fetchDataApi:()=>h(this,null,function*(){const{currentPage:e,pageSize:a}=_,r=yield Z(Y({pageIndex:t(e),pageSize:t(a)},t(L)));return{list:r.data.list,total:r.data.total}}),fetchDelApi:()=>h(this,null,function*(){return!!(yield ee(t(o)))})}),{loading:k,dataList:C,total:v,currentPage:n,pageSize:m}=_,{getList:D,getElTableExpose:M,delList:H}=b,L=u({}),V=e=>{L.value=e,D()},U=se([{field:"selection",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{type:"selection"}},{field:"index",label:"序号",type:"index",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0}},{field:"title",label:"标题",search:{component:"Input"},form:{component:"Input",colProps:{span:24}},detail:{span:24}},{field:"author",label:"作者",search:{hidden:!0}},{field:"display_time",label:"创建时间",search:{hidden:!0},form:{component:"DatePicker",componentProps:{type:"datetime",valueFormat:"YYYY-MM-DD HH:mm:ss"}}},{field:"importance",label:"重要性",search:{hidden:!0},form:{component:"Select",componentProps:{style:{width:"100%"},options:[{label:"重要",value:3},{label:"良好",value:2},{label:"一般",value:1}]}},detail:{slots:{default:e=>i(ie,{type:e.importance===1?"success":e.importance===2?"warning":"danger"},{default:()=>[e.importance===1?"重要":e.importance===2?"良好":"一般"]})}}},{field:"pageviews",label:"阅读数",search:{hidden:!0},form:{component:"InputNumber",value:0}},{field:"content",label:"内容",search:{hidden:!0},table:{show:!1},form:{component:"Editor",colProps:{span:24}},detail:{span:24,slots:{default:e=>i("div",{innerHTML:e.content},null)}}},{field:"action",width:"260px",label:"操作",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{slots:{default:e=>i(F,null,[i(d,{type:"primary",onClick:()=>z(e.row,"edit")},{default:()=>[c("编辑")]}),i(d,{type:"success",onClick:()=>z(e.row,"detail")},{default:()=>[c("详情")]}),i(d,{type:"danger",onClick:()=>A(e.row)},{default:()=>[c("删除")]})])}}}]),{allSchemas:y}=re(U),f=u(!1),P=u(""),w=u(null),g=u(""),q=()=>{P.value="新增",w.value=null,f.value=!0,g.value=""},x=u(!1),A=e=>h(this,null,function*(){const a=yield M();o.value=e?[e.id]:(a==null?void 0:a.getSelectionRows().map(r=>r.id))||[],x.value=!0,yield H(t(o).length).finally(()=>{x.value=!1})}),z=(e,a)=>{P.value=a==="edit"?"编辑":"详情",g.value=a,w.value=e,f.value=!0},E=u(),T=u(!1),K=()=>h(this,null,function*(){const e=t(E),a=yield e==null?void 0:e.submit();a&&(T.value=!0,(yield te(a).catch(()=>{}).finally(()=>{T.value=!1}))&&(f.value=!1,n.value=1,D()))});return(e,a)=>(S(),ue(F,null,[i(t(G),null,{default:p(()=>[i(t(J),{schema:t(y).searchSchema,onSearch:V,onReset:V},null,8,["schema"]),me("div",de,[i(t(d),{type:"primary",onClick:q},{default:p(()=>[c("新增")]),_:1}),i(t(d),{loading:x.value,type:"danger",onClick:a[0]||(a[0]=r=>A(null))},{default:p(()=>[c(" 删除 ")]),_:1},8,["loading"])]),i(t(X),{pageSize:t(m),"onUpdate:pageSize":a[1]||(a[1]=r=>I(m)?m.value=r:null),currentPage:t(n),"onUpdate:currentPage":a[2]||(a[2]=r=>I(n)?n.value=r:null),columns:t(y).tableColumns,data:t(C),loading:t(k),pagination:{total:t(v)},onRegister:t(l)},null,8,["pageSize","currentPage","columns","data","loading","pagination","onRegister"])]),_:1}),i(t(O),{modelValue:f.value,"onUpdate:modelValue":a[4]||(a[4]=r=>f.value=r),title:P.value},{footer:p(()=>[g.value!=="detail"?(S(),R(t(d),{key:0,type:"primary",loading:T.value,onClick:K},{default:p(()=>[c(" 保存 ")]),_:1},8,["loading"])):$("",!0),i(t(d),{onClick:a[3]||(a[3]=r=>f.value=!1)},{default:p(()=>[c("关闭")]),_:1})]),default:p(()=>[g.value!=="detail"?(S(),R(le,{key:0,ref_key:"writeRef",ref:E,"form-schema":t(y).formSchema,"current-row":w.value},null,8,["form-schema","current-row"])):$("",!0),g.value==="detail"?(S(),R(oe,{key:1,"detail-schema":t(y).detailSchema,"current-row":w.value},null,8,["detail-schema","current-row"])):$("",!0)]),_:1},8,["modelValue","title"])],64))}});export{at as default}; +var Q=Object.defineProperty;var B=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var N=(s,o,l)=>o in s?Q(s,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[o]=l,Y=(s,o)=>{for(var l in o||(o={}))W.call(o,l)&&N(s,l,o[l]);if(B)for(var l of B(o))j.call(o,l)&&N(s,l,o[l]);return s};var h=(s,o,l)=>new Promise((_,b)=>{var k=n=>{try{v(l.next(n))}catch(m){b(m)}},C=n=>{try{v(l.throw(n))}catch(m){b(m)}},v=n=>n.done?_(n.value):Promise.resolve(n.value).then(k,C);v((l=l.apply(s,o)).next())});import{_ as G}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as J}from"./Search.vue_vue_type_script_setup_true_lang-ClF9XpoI.js";import{_ as O}from"./Dialog.vue_vue_type_style_index_0_lang-DkCU3loB.js";import"./index-B5z15nYm.js";/* empty css */import{_ as X}from"./Table.vue_vue_type_script_lang-BzBmZLp9.js";/* empty css *//* empty css *//* empty css */import{g as Z,d as ee,s as te}from"./index-DB50Cmmr.js";import{u as ae}from"./useTable-B7CCRTD1.js";import{_ as le}from"./Write.vue_vue_type_script_setup_true_lang-CIiSGwSL.js";import{_ as oe}from"./Detail.vue_vue_type_script_setup_true_lang-D0pWjFAb.js";import{u as re}from"./useCrudSchemas-B5FzcJ46.js";import{_ as d}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{C as ie}from"./element-plus-6v3c1uXT.js";import{q as ne,r as u,K as se,P as i,W as c,Q as F,u as t,t as S,v as ue,S as p,x as me,i as I,T as R,Y as $}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Form-B3fdtaFM.js";/* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */import"./useForm-BIADJKAv.js";import"./useIcon-Dzh8BHEZ.js";/* empty css *//* empty css *//* empty css */import"./index-2gFf0KW4.js";import"./useValidator-Nt61Jv1p.js";import"./Descriptions-CnAOhWOB.js";import"./tree-Dgaev6Pi.js";const de={class:"mb-10px"},at=ne({__name:"ExampleDialog",setup(s){const o=u([]),{tableRegister:l,tableState:_,tableMethods:b}=ae({fetchDataApi:()=>h(this,null,function*(){const{currentPage:e,pageSize:a}=_,r=yield Z(Y({pageIndex:t(e),pageSize:t(a)},t(L)));return{list:r.data.list,total:r.data.total}}),fetchDelApi:()=>h(this,null,function*(){return!!(yield ee(t(o)))})}),{loading:k,dataList:C,total:v,currentPage:n,pageSize:m}=_,{getList:D,getElTableExpose:M,delList:H}=b,L=u({}),V=e=>{L.value=e,D()},U=se([{field:"selection",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{type:"selection"}},{field:"index",label:"序号",type:"index",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0}},{field:"title",label:"标题",search:{component:"Input"},form:{component:"Input",colProps:{span:24}},detail:{span:24}},{field:"author",label:"作者",search:{hidden:!0}},{field:"display_time",label:"创建时间",search:{hidden:!0},form:{component:"DatePicker",componentProps:{type:"datetime",valueFormat:"YYYY-MM-DD HH:mm:ss"}}},{field:"importance",label:"重要性",search:{hidden:!0},form:{component:"Select",componentProps:{style:{width:"100%"},options:[{label:"重要",value:3},{label:"良好",value:2},{label:"一般",value:1}]}},detail:{slots:{default:e=>i(ie,{type:e.importance===1?"success":e.importance===2?"warning":"danger"},{default:()=>[e.importance===1?"重要":e.importance===2?"良好":"一般"]})}}},{field:"pageviews",label:"阅读数",search:{hidden:!0},form:{component:"InputNumber",value:0}},{field:"content",label:"内容",search:{hidden:!0},table:{show:!1},form:{component:"Editor",colProps:{span:24}},detail:{span:24,slots:{default:e=>i("div",{innerHTML:e.content},null)}}},{field:"action",width:"260px",label:"操作",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{slots:{default:e=>i(F,null,[i(d,{type:"primary",onClick:()=>z(e.row,"edit")},{default:()=>[c("编辑")]}),i(d,{type:"success",onClick:()=>z(e.row,"detail")},{default:()=>[c("详情")]}),i(d,{type:"danger",onClick:()=>A(e.row)},{default:()=>[c("删除")]})])}}}]),{allSchemas:y}=re(U),f=u(!1),P=u(""),w=u(null),g=u(""),q=()=>{P.value="新增",w.value=null,f.value=!0,g.value=""},x=u(!1),A=e=>h(this,null,function*(){const a=yield M();o.value=e?[e.id]:(a==null?void 0:a.getSelectionRows().map(r=>r.id))||[],x.value=!0,yield H(t(o).length).finally(()=>{x.value=!1})}),z=(e,a)=>{P.value=a==="edit"?"编辑":"详情",g.value=a,w.value=e,f.value=!0},E=u(),T=u(!1),K=()=>h(this,null,function*(){const e=t(E),a=yield e==null?void 0:e.submit();a&&(T.value=!0,(yield te(a).catch(()=>{}).finally(()=>{T.value=!1}))&&(f.value=!1,n.value=1,D()))});return(e,a)=>(S(),ue(F,null,[i(t(G),null,{default:p(()=>[i(t(J),{schema:t(y).searchSchema,onSearch:V,onReset:V},null,8,["schema"]),me("div",de,[i(t(d),{type:"primary",onClick:q},{default:p(()=>[c("新增")]),_:1}),i(t(d),{loading:x.value,type:"danger",onClick:a[0]||(a[0]=r=>A(null))},{default:p(()=>[c(" 删除 ")]),_:1},8,["loading"])]),i(t(X),{pageSize:t(m),"onUpdate:pageSize":a[1]||(a[1]=r=>I(m)?m.value=r:null),currentPage:t(n),"onUpdate:currentPage":a[2]||(a[2]=r=>I(n)?n.value=r:null),columns:t(y).tableColumns,data:t(C),loading:t(k),pagination:{total:t(v)},onRegister:t(l)},null,8,["pageSize","currentPage","columns","data","loading","pagination","onRegister"])]),_:1}),i(t(O),{modelValue:f.value,"onUpdate:modelValue":a[4]||(a[4]=r=>f.value=r),title:P.value},{footer:p(()=>[g.value!=="detail"?(S(),R(t(d),{key:0,type:"primary",loading:T.value,onClick:K},{default:p(()=>[c(" 保存 ")]),_:1},8,["loading"])):$("",!0),i(t(d),{onClick:a[3]||(a[3]=r=>f.value=!1)},{default:p(()=>[c("关闭")]),_:1})]),default:p(()=>[g.value!=="detail"?(S(),R(le,{key:0,ref_key:"writeRef",ref:E,"form-schema":t(y).formSchema,"current-row":w.value},null,8,["form-schema","current-row"])):$("",!0),g.value==="detail"?(S(),R(oe,{key:1,"detail-schema":t(y).detailSchema,"current-row":w.value},null,8,["detail-schema","current-row"])):$("",!0)]),_:1},8,["modelValue","title"])],64))}});export{at as default}; diff --git a/assets/ExampleEdit-BXGV8wDF.js b/assets/ExampleEdit-BL7D4Qzc.js similarity index 66% rename from assets/ExampleEdit-BXGV8wDF.js rename to assets/ExampleEdit-BL7D4Qzc.js index d47cb807..4be60ac5 100644 --- a/assets/ExampleEdit-BXGV8wDF.js +++ b/assets/ExampleEdit-BL7D4Qzc.js @@ -1 +1 @@ -var c=(d,l,e)=>new Promise((u,m)=>{var p=t=>{try{a(e.next(t))}catch(s){m(s)}},g=t=>{try{a(e.throw(t))}catch(s){m(s)}},a=t=>t.done?u(t.value):Promise.resolve(t.value).then(p,g);a((e=e.apply(d,l)).next())});import{_ as y}from"./Write.vue_vue_type_script_setup_true_lang-BCm2J1Ks.js";import{_ as k}from"./ContentDetailWrap.vue_vue_type_script_setup_true_lang-CZbjH80x.js";import{_ as x}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{q as T,aA as b,aH as R,r as f,t as $,T as B,S as n,P as _,u as i,W as w}from"./vue-chunks-DOWhatC1.js";import{c as C,s as D}from"./index-DVoP4cjT.js";import{u as A}from"./useEventBus-BptU9a9z.js";import"./Form-DJ57xbBt.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./Icon-Bwi9LaBZ.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */import"./useForm-CbOF_UB2.js";import"./useValidator-Nt61Jv1p.js";/* empty css */const mt=T({__name:"ExampleEdit",setup(d){const{emit:l}=A(),{push:e,go:u}=b(),{query:m}=R(),p=f(null);c(this,null,function*(){const o=yield C(m.id);o&&(p.value=o.data)});const a=f(),t=f(!1),s=()=>c(this,null,function*(){const o=i(a),r=yield o==null?void 0:o.submit();r&&(t.value=!0,(yield D(r).catch(()=>{}).finally(()=>{t.value=!1}))&&(l("getList","editor"),e("/example/example-page")))});return(o,r)=>($(),B(i(k),{title:"编辑",onBack:r[1]||(r[1]=v=>i(e)("/example/example-page"))},{header:n(()=>[_(i(x),{onClick:r[0]||(r[0]=v=>i(u)(-1))},{default:n(()=>[w(" 返回 ")]),_:1}),_(i(x),{type:"primary",loading:t.value,onClick:s},{default:n(()=>[w(" 保存 ")]),_:1},8,["loading"])]),default:n(()=>[_(y,{ref_key:"writeRef",ref:a,"current-row":p.value},null,8,["current-row"])]),_:1}))}});export{mt as default}; +var c=(d,l,e)=>new Promise((u,m)=>{var p=t=>{try{a(e.next(t))}catch(s){m(s)}},g=t=>{try{a(e.throw(t))}catch(s){m(s)}},a=t=>t.done?u(t.value):Promise.resolve(t.value).then(p,g);a((e=e.apply(d,l)).next())});import{_ as y}from"./Write.vue_vue_type_script_setup_true_lang-CdW4xsT_.js";import{_ as k}from"./ContentDetailWrap.vue_vue_type_script_setup_true_lang-BkeNJGQ5.js";import{_ as x}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{q as T,aA as b,aH as R,r as f,t as $,T as B,S as n,P as _,u as i,W as w}from"./vue-chunks-DOWhatC1.js";import{c as C,s as D}from"./index-DB50Cmmr.js";import{u as A}from"./useEventBus-BptU9a9z.js";import"./Form-B3fdtaFM.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./Icon-B-0CON7P.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */import"./useForm-BIADJKAv.js";import"./useValidator-Nt61Jv1p.js";/* empty css */const mt=T({__name:"ExampleEdit",setup(d){const{emit:l}=A(),{push:e,go:u}=b(),{query:m}=R(),p=f(null);c(this,null,function*(){const o=yield C(m.id);o&&(p.value=o.data)});const a=f(),t=f(!1),s=()=>c(this,null,function*(){const o=i(a),r=yield o==null?void 0:o.submit();r&&(t.value=!0,(yield D(r).catch(()=>{}).finally(()=>{t.value=!1}))&&(l("getList","editor"),e("/example/example-page")))});return(o,r)=>($(),B(i(k),{title:"编辑",onBack:r[1]||(r[1]=v=>i(e)("/example/example-page"))},{header:n(()=>[_(i(x),{onClick:r[0]||(r[0]=v=>i(u)(-1))},{default:n(()=>[w(" 返回 ")]),_:1}),_(i(x),{type:"primary",loading:t.value,onClick:s},{default:n(()=>[w(" 保存 ")]),_:1},8,["loading"])]),default:n(()=>[_(y,{ref_key:"writeRef",ref:a,"current-row":p.value},null,8,["current-row"])]),_:1}))}});export{mt as default}; diff --git a/assets/ExamplePage-4ttf5cy2.js b/assets/ExamplePage-Bo3S62UP.js similarity index 82% rename from assets/ExamplePage-4ttf5cy2.js rename to assets/ExamplePage-Bo3S62UP.js index 008dacb4..c64b3029 100644 --- a/assets/ExamplePage-4ttf5cy2.js +++ b/assets/ExamplePage-Bo3S62UP.js @@ -1 +1 @@ -var F=Object.defineProperty;var L=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var A=(r,o,t)=>o in r?F(r,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[o]=t,E=(r,o)=>{for(var t in o||(o={}))I.call(o,t)&&A(r,t,o[t]);if(L)for(var t of L(o))M.call(o,t)&&A(r,t,o[t]);return r};var b=(r,o,t)=>new Promise((f,p)=>{var _=l=>{try{m(t.next(l))}catch(d){p(d)}},g=l=>{try{m(t.throw(l))}catch(d){p(d)}},m=l=>l.done?f(l.value):Promise.resolve(l.value).then(_,g);m((t=t.apply(r,o)).next())});import{_ as N}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as Y}from"./Search.vue_vue_type_script_setup_true_lang-CJ6bt3cN.js";import"./index-CA0d6hyI.js";/* empty css */import{_ as H}from"./Table.vue_vue_type_script_lang-DOZk-BCG.js";/* empty css *//* empty css *//* empty css */import{g as V,d as U}from"./index-DVoP4cjT.js";import{u as q}from"./useTable-BTK3WtdF.js";import{q as K,aA as Q,r as S,K as W,P as n,W as c,Q as j,u as a,t as G,T as J,S as P,x as O,i as R}from"./vue-chunks-DOWhatC1.js";import{u as X}from"./useEventBus-BptU9a9z.js";import{u as Z}from"./useCrudSchemas-B5FzcJ46.js";import{_ as u}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{C as ee}from"./element-plus-6v3c1uXT.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Form-DJ57xbBt.js";/* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */import"./useForm-CbOF_UB2.js";import"./useIcon-Bk4x_lwM.js";/* empty css *//* empty css *//* empty css */import"./index-DlX4pwja.js";import"./tree-Dgaev6Pi.js";const te={class:"mb-10px"},Ve=K({name:"ExamplePage",__name:"ExamplePage",setup(r){const{push:o}=Q(),t=S([]),f=S({}),p=e=>{f.value=e,y()},{tableRegister:_,tableState:g,tableMethods:m}=q({fetchDataApi:()=>b(this,null,function*(){const{currentPage:e,pageSize:i}=g,s=yield V(E({pageIndex:a(e),pageSize:a(i)},a(f)));return{list:s.data.list,total:s.data.total}}),fetchDelApi:()=>b(this,null,function*(){return!!(yield U(a(t)))})}),{loading:l,dataList:d,total:T,currentPage:h,pageSize:v}=g,{getList:y,getElTableExpose:$,delList:z}=m;y(),X({name:"getList",callback:e=>{e==="add"&&(h.value=1),y()}});const D=W([{field:"selection",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{type:"selection"}},{field:"index",label:"序号",type:"index",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0}},{field:"title",label:"标题",search:{component:"Input"},form:{component:"Input",colProps:{span:24}},detail:{span:24}},{field:"author",label:"作者",search:{hidden:!0}},{field:"display_time",label:"创建时间",search:{hidden:!0},form:{component:"DatePicker",componentProps:{type:"datetime",valueFormat:"YYYY-MM-DD HH:mm:ss"}}},{field:"importance",label:"重要性",search:{hidden:!0},form:{component:"Select",componentProps:{style:{width:"100%"},options:[{label:"重要",value:3},{label:"良好",value:2},{label:"一般",value:1}]}},detail:{slots:{default:e=>n(ee,{type:e.importance===1?"success":e.importance===2?"warning":"danger"},{default:()=>[e.importance===1?"重要":e.importance===2?"良好":" 一般"]})}}},{field:"pageviews",label:"阅读数",search:{hidden:!0},form:{component:"InputNumber",value:0}},{field:"content",label:"内容",search:{hidden:!0},table:{show:!1},form:{component:"Editor",colProps:{span:24}},detail:{span:24,slots:{default:e=>n("div",{innerHTML:e.content},null)}}},{field:"action",width:"260px",label:"操作",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{slots:{default:e=>n(j,null,[n(u,{type:"primary",onClick:()=>k(e.row,"edit")},{default:()=>[c("编辑")]}),n(u,{type:"success",onClick:()=>k(e.row,"detail")},{default:()=>[c("详情")]}),n(u,{type:"danger",onClick:()=>C(e.row)},{default:()=>[c("删除")]})])}}}]),{allSchemas:w}=Z(D),B=()=>{o("/example/example-add")},x=S(!1),C=e=>b(this,null,function*(){const i=yield $();t.value=e?[e.id]:(i==null?void 0:i.getSelectionRows().map(s=>s.id))||[],x.value=!0,yield z(a(t).length).finally(()=>{x.value=!1})}),k=(e,i)=>{o(`/example/example-${i}?id=${e.id}`)};return(e,i)=>(G(),J(a(N),null,{default:P(()=>[n(a(Y),{schema:a(w).searchSchema,onSearch:p,onReset:p},null,8,["schema"]),O("div",te,[n(a(u),{type:"primary",onClick:B},{default:P(()=>[c("新增")]),_:1}),n(a(u),{loading:x.value,type:"danger",onClick:i[0]||(i[0]=s=>C(null))},{default:P(()=>[c(" 删除 ")]),_:1},8,["loading"])]),n(a(H),{pageSize:a(v),"onUpdate:pageSize":i[1]||(i[1]=s=>R(v)?v.value=s:null),currentPage:a(h),"onUpdate:currentPage":i[2]||(i[2]=s=>R(h)?h.value=s:null),columns:a(w).tableColumns,data:a(d),loading:a(l),pagination:{total:a(T)},onRegister:a(_)},null,8,["pageSize","currentPage","columns","data","loading","pagination","onRegister"])]),_:1}))}});export{Ve as default}; +var F=Object.defineProperty;var L=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var A=(r,o,t)=>o in r?F(r,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[o]=t,E=(r,o)=>{for(var t in o||(o={}))I.call(o,t)&&A(r,t,o[t]);if(L)for(var t of L(o))M.call(o,t)&&A(r,t,o[t]);return r};var b=(r,o,t)=>new Promise((f,p)=>{var _=l=>{try{m(t.next(l))}catch(d){p(d)}},g=l=>{try{m(t.throw(l))}catch(d){p(d)}},m=l=>l.done?f(l.value):Promise.resolve(l.value).then(_,g);m((t=t.apply(r,o)).next())});import{_ as N}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as Y}from"./Search.vue_vue_type_script_setup_true_lang-ClF9XpoI.js";import"./index-B5z15nYm.js";/* empty css */import{_ as H}from"./Table.vue_vue_type_script_lang-BzBmZLp9.js";/* empty css *//* empty css *//* empty css */import{g as V,d as U}from"./index-DB50Cmmr.js";import{u as q}from"./useTable-B7CCRTD1.js";import{q as K,aA as Q,r as S,K as W,P as n,W as c,Q as j,u as a,t as G,T as J,S as P,x as O,i as R}from"./vue-chunks-DOWhatC1.js";import{u as X}from"./useEventBus-BptU9a9z.js";import{u as Z}from"./useCrudSchemas-B5FzcJ46.js";import{_ as u}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{C as ee}from"./element-plus-6v3c1uXT.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Form-B3fdtaFM.js";/* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */import"./useForm-BIADJKAv.js";import"./useIcon-Dzh8BHEZ.js";/* empty css *//* empty css *//* empty css */import"./index-2gFf0KW4.js";import"./tree-Dgaev6Pi.js";const te={class:"mb-10px"},Ve=K({name:"ExamplePage",__name:"ExamplePage",setup(r){const{push:o}=Q(),t=S([]),f=S({}),p=e=>{f.value=e,y()},{tableRegister:_,tableState:g,tableMethods:m}=q({fetchDataApi:()=>b(this,null,function*(){const{currentPage:e,pageSize:i}=g,s=yield V(E({pageIndex:a(e),pageSize:a(i)},a(f)));return{list:s.data.list,total:s.data.total}}),fetchDelApi:()=>b(this,null,function*(){return!!(yield U(a(t)))})}),{loading:l,dataList:d,total:T,currentPage:h,pageSize:v}=g,{getList:y,getElTableExpose:$,delList:z}=m;y(),X({name:"getList",callback:e=>{e==="add"&&(h.value=1),y()}});const D=W([{field:"selection",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{type:"selection"}},{field:"index",label:"序号",type:"index",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0}},{field:"title",label:"标题",search:{component:"Input"},form:{component:"Input",colProps:{span:24}},detail:{span:24}},{field:"author",label:"作者",search:{hidden:!0}},{field:"display_time",label:"创建时间",search:{hidden:!0},form:{component:"DatePicker",componentProps:{type:"datetime",valueFormat:"YYYY-MM-DD HH:mm:ss"}}},{field:"importance",label:"重要性",search:{hidden:!0},form:{component:"Select",componentProps:{style:{width:"100%"},options:[{label:"重要",value:3},{label:"良好",value:2},{label:"一般",value:1}]}},detail:{slots:{default:e=>n(ee,{type:e.importance===1?"success":e.importance===2?"warning":"danger"},{default:()=>[e.importance===1?"重要":e.importance===2?"良好":" 一般"]})}}},{field:"pageviews",label:"阅读数",search:{hidden:!0},form:{component:"InputNumber",value:0}},{field:"content",label:"内容",search:{hidden:!0},table:{show:!1},form:{component:"Editor",colProps:{span:24}},detail:{span:24,slots:{default:e=>n("div",{innerHTML:e.content},null)}}},{field:"action",width:"260px",label:"操作",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{slots:{default:e=>n(j,null,[n(u,{type:"primary",onClick:()=>k(e.row,"edit")},{default:()=>[c("编辑")]}),n(u,{type:"success",onClick:()=>k(e.row,"detail")},{default:()=>[c("详情")]}),n(u,{type:"danger",onClick:()=>C(e.row)},{default:()=>[c("删除")]})])}}}]),{allSchemas:w}=Z(D),B=()=>{o("/example/example-add")},x=S(!1),C=e=>b(this,null,function*(){const i=yield $();t.value=e?[e.id]:(i==null?void 0:i.getSelectionRows().map(s=>s.id))||[],x.value=!0,yield z(a(t).length).finally(()=>{x.value=!1})}),k=(e,i)=>{o(`/example/example-${i}?id=${e.id}`)};return(e,i)=>(G(),J(a(N),null,{default:P(()=>[n(a(Y),{schema:a(w).searchSchema,onSearch:p,onReset:p},null,8,["schema"]),O("div",te,[n(a(u),{type:"primary",onClick:B},{default:P(()=>[c("新增")]),_:1}),n(a(u),{loading:x.value,type:"danger",onClick:i[0]||(i[0]=s=>C(null))},{default:P(()=>[c(" 删除 ")]),_:1},8,["loading"])]),n(a(H),{pageSize:a(v),"onUpdate:pageSize":i[1]||(i[1]=s=>R(v)?v.value=s:null),currentPage:a(h),"onUpdate:currentPage":i[2]||(i[2]=s=>R(h)?h.value=s:null),columns:a(w).tableColumns,data:a(d),loading:a(l),pagination:{total:a(T)},onRegister:a(_)},null,8,["pageSize","currentPage","columns","data","loading","pagination","onRegister"])]),_:1}))}});export{Ve as default}; diff --git a/assets/Form-DJ57xbBt.js b/assets/Form-B3fdtaFM.js similarity index 95% rename from assets/Form-DJ57xbBt.js rename to assets/Form-B3fdtaFM.js index d9533351..078f8175 100644 --- a/assets/Form-DJ57xbBt.js +++ b/assets/Form-B3fdtaFM.js @@ -1 +1 @@ -var pe=Object.defineProperty;var w=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var Q=(o,t,l)=>t in o?pe(o,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[t]=l,R=(o,t)=>{for(var l in t||(t={}))Y.call(t,l)&&Q(o,l,t[l]);if(w)for(var l of w(t))Z.call(t,l)&&Q(o,l,t[l]);return o};var G=(o,t)=>{var l={};for(var r in o)Y.call(o,r)&&t.indexOf(r)<0&&(l[r]=o[r]);if(o!=null&&w)for(var r of w(o))t.indexOf(r)<0&&Z.call(o,r)&&(l[r]=o[r]);return l};var N=(o,t,l)=>new Promise((r,s)=>{var b=u=>{try{E(l.next(u))}catch(c){s(c)}},f=u=>{try{E(l.throw(u))}catch(c){s(c)}},E=u=>u.done?r(u.value):Promise.resolve(u.value).then(b,f);E((l=l.apply(o,t)).next())});import{P as C,I as h,q as ie,r as y,d as m,o as be,u as p,w as Ee,a0 as Oe,a1 as Te,B as Se,Q as Ie}from"./vue-chunks-DOWhatC1.js";import{h as Re,j as ee,k as Ce,p as T,m as Pe}from"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as ve}from"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{I as _e}from"./InputPassword-D5o-63rw.js";import{_ as ge}from"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import{_ as ke}from"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import{I as Ae}from"./IconPicker-Cmmw5lYe.js";import{R as oe,S as le,A as he,T as De,J as ye,F as Ue,U as xe,Q as Me,V as Be,W as we,X as Fe,Y as Ge,Z as Le,_ as Ve,q as je,$ as Ke,a0 as We,a1 as He,N as Xe,a2 as F,s as V,v as $e,t as qe,w as Je,x as ze,y as Qe,z as Ye,G as Ze,n as Ne,k as me,D as eo}from"./element-plus-6v3c1uXT.js";import{_ as oo}from"./Icon-Bwi9LaBZ.js";const re={RadioGroup:oe,RadioButton:oe,CheckboxGroup:le,CheckboxButton:le,Input:he,Autocomplete:De,InputNumber:ye,Select:Ue,Cascader:xe,Switch:Me,Slider:Be,TimePicker:we,DatePicker:Fe,Rate:Ge,ColorPicker:Le,Transfer:Ve,Divider:je,TimeSelect:Ke,SelectV2:We,InputPassword:_e,Editor:ge,TreeSelect:He,Upload:Xe,JsonEditor:ke,IconPicker:Ae};var i=(o=>(o.RADIO_GROUP="RadioGroup",o.RADIO_BUTTON="RadioButton",o.CHECKBOX_GROUP="CheckboxGroup",o.CHECKBOX_BUTTON="CheckboxButton",o.INPUT="Input",o.AUTOCOMPLETE="Autocomplete",o.INPUT_NUMBER="InputNumber",o.SELECT="Select",o.CASCADER="Cascader",o.SWITCH="Switch",o.SLIDER="Slider",o.TIME_PICKER="TimePicker",o.DATE_PICKER="DatePicker",o.RATE="Rate",o.COLOR_PICKER="ColorPicker",o.TRANSFER="Transfer",o.DIVIDER="Divider",o.TIME_SELECT="TimeSelect",o.SELECT_V2="SelectV2",o.INPUT_PASSWORD="InputPassword",o.EDITOR="Editor",o.TREE_SELECT="TreeSelect",o.UPLOAD="Upload",o.JSON_EDITOR="JsonEditor",o.ICON_PICKER="IconPicker",o))(i||{});const te=o=>{var r,s;const t=[i.INPUT,i.AUTOCOMPLETE,i.INPUT_NUMBER,i.INPUT_PASSWORD],l=[i.SELECT,i.TIME_PICKER,i.DATE_PICKER,i.TIME_SELECT,i.SELECT_V2];return t.includes(o==null?void 0:o.component)?{placeholder:"请输入"}:l.includes(o==null?void 0:o.component)?["datetimerange","daterange","monthrange","datetimerange","daterange"].includes(((r=o==null?void 0:o.componentProps)==null?void 0:r.type)||((s=o==null?void 0:o.componentProps)==null?void 0:s.isRange))?{startPlaceholder:"开始时间",endPlaceholder:"结束时间",rangeSeparator:"-"}:{placeholder:"请选择"}:{}},lo=(o={})=>R(R({},o.span?{}:{xs:24,sm:12,md:12,lg:12,xl:12}),o),se=o=>{var s;const t=((s=o==null?void 0:o.componentProps)==null?void 0:s.on)||{},l={};for(const b in t)t[b]&&(l[`on${Ce(b)}`]=(...f)=>{t[b](...f)});const r=R(R({clearable:!0},o.componentProps),l);return r.slots&&delete r.slots,r.on&&delete r.on,r},ro=(o={})=>{const t={};for(const l in o)o[l]&&(Re(o[l])?t[ee(l)]=(...r)=>{var s;return(s=o[l])==null?void 0:s.call(o,...r)}:t[ee(l)]=()=>o[l]);return t},to=(o,t)=>{const l=R({},t);o.map(r=>{if(r.remove)delete l[r.field];else if(r.component!=="Divider"){const s=F(l,r.field);V(l,r.field,s!==void 0?F(l,r.field):r.value!==void 0?r.value:void 0)}});for(let r=0;r{const o=l=>{var E,u,c,S;const r=l==null?void 0:l.componentProps,s=(E=r==null?void 0:r.slots)==null?void 0:E.optionGroupDefault,b=(u=r==null?void 0:r.props)==null?void 0:u.label,f=(c=r==null?void 0:r.props)==null?void 0:c.key;return(S=r==null?void 0:r.options)==null?void 0:S.map(d=>{var P;return(P=d==null?void 0:d.options)!=null&&P.length?s?s(d):C($e,{label:d[b||"label"],key:d[f||"key"]},{default:()=>{var U;return(U=d==null?void 0:d.options)==null?void 0:U.map(x=>t(l,x))}}):t(l,d)})},t=(l,r)=>{var c,S,d,P;const s=l.componentProps,b=(c=s==null?void 0:s.props)==null?void 0:c.label,f=(S=s==null?void 0:s.props)==null?void 0:S.value,E=(d=s==null?void 0:s.props)==null?void 0:d.key,u=(P=s.slots)==null?void 0:P.optionDefault;return C(qe,h(r,{key:r[E||"key"],label:r[b||"label"],value:r[f||"value"]}),{default:()=>u?u(r):void 0})};return{renderSelectOptions:o}},ao=()=>({renderRadioOptions:t=>{var E,u,c,S;const l=t==null?void 0:t.componentProps,r=((E=l==null?void 0:l.props)==null?void 0:E.value)||"value",s=((u=l==null?void 0:l.props)==null?void 0:u.label)||"label",b=((c=l==null?void 0:l.props)==null?void 0:c.disabled)||"disabled",f=t.component===i.RADIO_GROUP?Je:ze;return(S=l==null?void 0:l.options)==null?void 0:S.map(d=>{const P=G(d,[]);return C(f,h(P,{disabled:d[b||"disabled"],label:d[s||"label"],value:d[r||"value"]}),{default:()=>[d[s||"label"]]})})}}),no=()=>({renderCheckboxOptions:t=>{var E,u,c,S;const l=t==null?void 0:t.componentProps,r=((E=l==null?void 0:l.props)==null?void 0:E.value)||"value",s=((u=l==null?void 0:l.props)==null?void 0:u.label)||"label",b=((c=l==null?void 0:l.props)==null?void 0:c.disabled)||"disabled",f=t.component===i.CHECKBOX_GROUP?Qe:Ye;return(S=l==null?void 0:l.options)==null?void 0:S.map(d=>{const P=G(d,[]);return C(f,h(P,{disabled:d[b||"disabled"],label:d[s||"label"],value:d[r||"value"]}),{default:()=>[d[s||"label"]]})})}});function L(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Se(o)}const{renderSelectOptions:co}=so(),{renderRadioOptions:fo}=ao(),{renderCheckboxOptions:uo}=no(),po=ie({name:"Form",props:{schema:{type:Array,default:()=>[]},isCol:T.bool.def(!0),model:{type:Object,default:()=>({})},autoSetPlaceholder:T.bool.def(!0),isCustom:T.bool.def(!1),labelWidth:T.oneOfType([String,Number]).def("auto"),rules:{type:Object,default:()=>({})},labelPosition:T.oneOf(["left","right","top"]).def("right"),labelSuffix:T.string.def(""),hideRequiredAsterisk:T.bool.def(!1),requireAsteriskPosition:T.oneOf(["left","right"]).def("left"),showMessage:T.bool.def(!0),inlineMessage:T.bool.def(!1),statusIcon:T.bool.def(!1),validateOnRuleChange:T.bool.def(!0),size:{type:String,default:void 0},disabled:T.bool.def(!1),scrollToError:T.bool.def(!1),scrollToErrorOffset:T.oneOfType([Boolean,Object]).def(void 0)},emits:["register"],setup(o,{slots:t,expose:l,emit:r}){const s=y(),b=y({}),f=m(()=>{const e=R({},o);return Object.assign(e,p(b)),e}),E=y({}),u=y({}),c=y(o.model);be(()=>{var e;r("register",(e=p(s))==null?void 0:e.$parent,p(s))});const S=(e={})=>{c.value=Object.assign(p(c),e)},d=(e={})=>{b.value=Object.assign(p(b),e)},P=e=>{const{schema:a}=p(f),n=Pe(a,I=>I.field===e);n>-1&&a.splice(n,1)},U=(e,a)=>{const{schema:n}=p(f);if(a!==void 0){n.splice(a,0,e);return}n.push(e)},x=e=>{const{schema:a}=p(f);for(const n of a)for(const I of e)n.field===I.field&&V(n,I.path,I.value)},ae=(e,a)=>N(this,null,function*(){const n=yield e();x([{field:a.field,path:a.component===i.TREE_SELECT||a.component===i.TRANSFER?"componentProps.data":"componentProps.options",value:n}])}),ne=e=>p(E)[e],de=e=>p(u)[e],j=(e,a)=>{E.value[a]=e},ce=(e,a)=>{u.value[a]=e};l({setValues:S,formModel:c,setProps:d,delSchema:P,addSchema:U,setSchema:x,getComponentExpose:ne,getFormItemExpose:de}),Ee(()=>p(f).schema,(e=[])=>{c.value=to(e,p(c))},{immediate:!0,deep:!0});const fe=()=>{let e;const{isCol:a}=p(f);return a?C(Ne,{gutter:20},L(e=K())?e:{default:()=>[e]}):K()},K=()=>{const{schema:e=[],isCol:a}=p(f);return e.filter(n=>!n.remove).map(n=>{let I;const M=n.component==="Divider",B=re.Divider;return M?C(B,R({contentPosition:"left"},n.componentProps),{default:()=>[n==null?void 0:n.label]}):a?C(me,lo(n.colProps),L(I=W(n))?I:{default:()=>[I]}):W(n)})},W=e=>{var n,I,M,B;e.optionApi&&ae(e.optionApi,e);const a={default:()=>{var g,k,A,H,X;if((k=(g=e==null?void 0:e.formItemProps)==null?void 0:g.slots)!=null&&k.default)return(H=(A=e==null?void 0:e.formItemProps)==null?void 0:A.slots)==null?void 0:H.default(c.value);{const $=re[e.component],{autoSetPlaceholder:q}=p(f),v=((X=e==null?void 0:e.componentProps)==null?void 0:X.slots)||{},D=R({},ro(v));return e.component===i.SELECT&&(D.default=v.default?()=>{var O;return v.default(p((O=e==null?void 0:e.componentProps)==null?void 0:O.options))}:()=>co(e)),e.component===i.SELECT_V2&&v.default&&(D.default=({item:O})=>v.default(O)),(e.component===i.RADIO_GROUP||e.component===i.RADIO_BUTTON)&&(D.default=v.default?()=>{var O;return v.default(p((O=e==null?void 0:e.componentProps)==null?void 0:O.options))}:()=>fo(e)),(e.component===i.CHECKBOX_GROUP||e.component===i.CHECKBOX_BUTTON)&&(D.default=v.default?()=>{var O;return v.default(p((O=e==null?void 0:e.componentProps)==null?void 0:O.options))}:()=>uo(e)),C(Ie,null,[(()=>{var J,z;const O=m({get:()=>F(c.value,e.field),set:_=>{V(c.value,e.field,_)}});return e.component===i.UPLOAD?C($,h({"file-list":O.value,"onUpdate:file-list":_=>O.value=_,ref:_=>j(_,e.field)},q&&te(e),se(e),{style:((J=e.componentProps)==null?void 0:J.style)||{width:"100%"}}),R({},D)):C($,h({modelValue:O.value,"onUpdate:modelValue":_=>O.value=_,ref:_=>j(_,e.field)},q&&te(e),se(e),{style:((z=e.componentProps)==null?void 0:z.style)||{width:"100%"}}),R({},D))})()])}}};return(I=(n=e==null?void 0:e.formItemProps)==null?void 0:n.slots)!=null&&I.label&&(a.label=(...g)=>{var k,A;return(A=(k=e==null?void 0:e.formItemProps)==null?void 0:k.slots)==null?void 0:A.label(...g)}),(B=(M=e==null?void 0:e.formItemProps)==null?void 0:M.slots)!=null&&B.error&&(a.error=(...g)=>{var k,A;return(A=(k=e==null?void 0:e.formItemProps)==null?void 0:k.slots)==null?void 0:A.error(...g)}),Oe(C(eo,h({ref:g=>ce(g,e.field)},e.formItemProps||{},{prop:e.field,label:e.label||""}),L(a)?a:{default:()=>[a]}),[[Te,!e.hidden]])},ue=()=>{const e=["schema","isCol","autoSetPlaceholder","isCustom","model"],a=R({},p(f));for(const n in a)e.indexOf(n)!==-1&&delete a[n];return a};return()=>C(Ze,h({ref:s},ue(),{model:p(f).isCustom?p(f).model:c,class:"form",onSubmit:e=>{e.preventDefault()}}),{default:()=>{const{isCustom:e}=p(f);return e?ve(t,"default"):fe()}})}}),Bo=oo(po,[["__scopeId","data-v-07242238"]]);export{Bo as F,to as i}; +var pe=Object.defineProperty;var w=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var Q=(o,t,l)=>t in o?pe(o,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[t]=l,R=(o,t)=>{for(var l in t||(t={}))Y.call(t,l)&&Q(o,l,t[l]);if(w)for(var l of w(t))Z.call(t,l)&&Q(o,l,t[l]);return o};var G=(o,t)=>{var l={};for(var r in o)Y.call(o,r)&&t.indexOf(r)<0&&(l[r]=o[r]);if(o!=null&&w)for(var r of w(o))t.indexOf(r)<0&&Z.call(o,r)&&(l[r]=o[r]);return l};var N=(o,t,l)=>new Promise((r,s)=>{var b=u=>{try{E(l.next(u))}catch(c){s(c)}},f=u=>{try{E(l.throw(u))}catch(c){s(c)}},E=u=>u.done?r(u.value):Promise.resolve(u.value).then(b,f);E((l=l.apply(o,t)).next())});import{P as C,I as h,q as ie,r as y,d as m,o as be,u as p,w as Ee,a0 as Oe,a1 as Te,B as Se,Q as Ie}from"./vue-chunks-DOWhatC1.js";import{h as Re,j as ee,k as Ce,p as T,m as Pe}from"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as ve}from"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{I as _e}from"./InputPassword-C8AimXzj.js";import{_ as ge}from"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import{_ as ke}from"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import{I as Ae}from"./IconPicker-WxbdLOo_.js";import{R as oe,S as le,A as he,T as De,J as ye,F as Ue,U as xe,Q as Me,V as Be,W as we,X as Fe,Y as Ge,Z as Le,_ as Ve,q as je,$ as Ke,a0 as We,a1 as He,N as Xe,a2 as F,s as V,v as $e,t as qe,w as Je,x as ze,y as Qe,z as Ye,G as Ze,n as Ne,k as me,D as eo}from"./element-plus-6v3c1uXT.js";import{_ as oo}from"./Icon-B-0CON7P.js";const re={RadioGroup:oe,RadioButton:oe,CheckboxGroup:le,CheckboxButton:le,Input:he,Autocomplete:De,InputNumber:ye,Select:Ue,Cascader:xe,Switch:Me,Slider:Be,TimePicker:we,DatePicker:Fe,Rate:Ge,ColorPicker:Le,Transfer:Ve,Divider:je,TimeSelect:Ke,SelectV2:We,InputPassword:_e,Editor:ge,TreeSelect:He,Upload:Xe,JsonEditor:ke,IconPicker:Ae};var i=(o=>(o.RADIO_GROUP="RadioGroup",o.RADIO_BUTTON="RadioButton",o.CHECKBOX_GROUP="CheckboxGroup",o.CHECKBOX_BUTTON="CheckboxButton",o.INPUT="Input",o.AUTOCOMPLETE="Autocomplete",o.INPUT_NUMBER="InputNumber",o.SELECT="Select",o.CASCADER="Cascader",o.SWITCH="Switch",o.SLIDER="Slider",o.TIME_PICKER="TimePicker",o.DATE_PICKER="DatePicker",o.RATE="Rate",o.COLOR_PICKER="ColorPicker",o.TRANSFER="Transfer",o.DIVIDER="Divider",o.TIME_SELECT="TimeSelect",o.SELECT_V2="SelectV2",o.INPUT_PASSWORD="InputPassword",o.EDITOR="Editor",o.TREE_SELECT="TreeSelect",o.UPLOAD="Upload",o.JSON_EDITOR="JsonEditor",o.ICON_PICKER="IconPicker",o))(i||{});const te=o=>{var r,s;const t=[i.INPUT,i.AUTOCOMPLETE,i.INPUT_NUMBER,i.INPUT_PASSWORD],l=[i.SELECT,i.TIME_PICKER,i.DATE_PICKER,i.TIME_SELECT,i.SELECT_V2];return t.includes(o==null?void 0:o.component)?{placeholder:"请输入"}:l.includes(o==null?void 0:o.component)?["datetimerange","daterange","monthrange","datetimerange","daterange"].includes(((r=o==null?void 0:o.componentProps)==null?void 0:r.type)||((s=o==null?void 0:o.componentProps)==null?void 0:s.isRange))?{startPlaceholder:"开始时间",endPlaceholder:"结束时间",rangeSeparator:"-"}:{placeholder:"请选择"}:{}},lo=(o={})=>R(R({},o.span?{}:{xs:24,sm:12,md:12,lg:12,xl:12}),o),se=o=>{var s;const t=((s=o==null?void 0:o.componentProps)==null?void 0:s.on)||{},l={};for(const b in t)t[b]&&(l[`on${Ce(b)}`]=(...f)=>{t[b](...f)});const r=R(R({clearable:!0},o.componentProps),l);return r.slots&&delete r.slots,r.on&&delete r.on,r},ro=(o={})=>{const t={};for(const l in o)o[l]&&(Re(o[l])?t[ee(l)]=(...r)=>{var s;return(s=o[l])==null?void 0:s.call(o,...r)}:t[ee(l)]=()=>o[l]);return t},to=(o,t)=>{const l=R({},t);o.map(r=>{if(r.remove)delete l[r.field];else if(r.component!=="Divider"){const s=F(l,r.field);V(l,r.field,s!==void 0?F(l,r.field):r.value!==void 0?r.value:void 0)}});for(let r=0;r{const o=l=>{var E,u,c,S;const r=l==null?void 0:l.componentProps,s=(E=r==null?void 0:r.slots)==null?void 0:E.optionGroupDefault,b=(u=r==null?void 0:r.props)==null?void 0:u.label,f=(c=r==null?void 0:r.props)==null?void 0:c.key;return(S=r==null?void 0:r.options)==null?void 0:S.map(d=>{var P;return(P=d==null?void 0:d.options)!=null&&P.length?s?s(d):C($e,{label:d[b||"label"],key:d[f||"key"]},{default:()=>{var U;return(U=d==null?void 0:d.options)==null?void 0:U.map(x=>t(l,x))}}):t(l,d)})},t=(l,r)=>{var c,S,d,P;const s=l.componentProps,b=(c=s==null?void 0:s.props)==null?void 0:c.label,f=(S=s==null?void 0:s.props)==null?void 0:S.value,E=(d=s==null?void 0:s.props)==null?void 0:d.key,u=(P=s.slots)==null?void 0:P.optionDefault;return C(qe,h(r,{key:r[E||"key"],label:r[b||"label"],value:r[f||"value"]}),{default:()=>u?u(r):void 0})};return{renderSelectOptions:o}},ao=()=>({renderRadioOptions:t=>{var E,u,c,S;const l=t==null?void 0:t.componentProps,r=((E=l==null?void 0:l.props)==null?void 0:E.value)||"value",s=((u=l==null?void 0:l.props)==null?void 0:u.label)||"label",b=((c=l==null?void 0:l.props)==null?void 0:c.disabled)||"disabled",f=t.component===i.RADIO_GROUP?Je:ze;return(S=l==null?void 0:l.options)==null?void 0:S.map(d=>{const P=G(d,[]);return C(f,h(P,{disabled:d[b||"disabled"],label:d[s||"label"],value:d[r||"value"]}),{default:()=>[d[s||"label"]]})})}}),no=()=>({renderCheckboxOptions:t=>{var E,u,c,S;const l=t==null?void 0:t.componentProps,r=((E=l==null?void 0:l.props)==null?void 0:E.value)||"value",s=((u=l==null?void 0:l.props)==null?void 0:u.label)||"label",b=((c=l==null?void 0:l.props)==null?void 0:c.disabled)||"disabled",f=t.component===i.CHECKBOX_GROUP?Qe:Ye;return(S=l==null?void 0:l.options)==null?void 0:S.map(d=>{const P=G(d,[]);return C(f,h(P,{disabled:d[b||"disabled"],label:d[s||"label"],value:d[r||"value"]}),{default:()=>[d[s||"label"]]})})}});function L(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!Se(o)}const{renderSelectOptions:co}=so(),{renderRadioOptions:fo}=ao(),{renderCheckboxOptions:uo}=no(),po=ie({name:"Form",props:{schema:{type:Array,default:()=>[]},isCol:T.bool.def(!0),model:{type:Object,default:()=>({})},autoSetPlaceholder:T.bool.def(!0),isCustom:T.bool.def(!1),labelWidth:T.oneOfType([String,Number]).def("auto"),rules:{type:Object,default:()=>({})},labelPosition:T.oneOf(["left","right","top"]).def("right"),labelSuffix:T.string.def(""),hideRequiredAsterisk:T.bool.def(!1),requireAsteriskPosition:T.oneOf(["left","right"]).def("left"),showMessage:T.bool.def(!0),inlineMessage:T.bool.def(!1),statusIcon:T.bool.def(!1),validateOnRuleChange:T.bool.def(!0),size:{type:String,default:void 0},disabled:T.bool.def(!1),scrollToError:T.bool.def(!1),scrollToErrorOffset:T.oneOfType([Boolean,Object]).def(void 0)},emits:["register"],setup(o,{slots:t,expose:l,emit:r}){const s=y(),b=y({}),f=m(()=>{const e=R({},o);return Object.assign(e,p(b)),e}),E=y({}),u=y({}),c=y(o.model);be(()=>{var e;r("register",(e=p(s))==null?void 0:e.$parent,p(s))});const S=(e={})=>{c.value=Object.assign(p(c),e)},d=(e={})=>{b.value=Object.assign(p(b),e)},P=e=>{const{schema:a}=p(f),n=Pe(a,I=>I.field===e);n>-1&&a.splice(n,1)},U=(e,a)=>{const{schema:n}=p(f);if(a!==void 0){n.splice(a,0,e);return}n.push(e)},x=e=>{const{schema:a}=p(f);for(const n of a)for(const I of e)n.field===I.field&&V(n,I.path,I.value)},ae=(e,a)=>N(this,null,function*(){const n=yield e();x([{field:a.field,path:a.component===i.TREE_SELECT||a.component===i.TRANSFER?"componentProps.data":"componentProps.options",value:n}])}),ne=e=>p(E)[e],de=e=>p(u)[e],j=(e,a)=>{E.value[a]=e},ce=(e,a)=>{u.value[a]=e};l({setValues:S,formModel:c,setProps:d,delSchema:P,addSchema:U,setSchema:x,getComponentExpose:ne,getFormItemExpose:de}),Ee(()=>p(f).schema,(e=[])=>{c.value=to(e,p(c))},{immediate:!0,deep:!0});const fe=()=>{let e;const{isCol:a}=p(f);return a?C(Ne,{gutter:20},L(e=K())?e:{default:()=>[e]}):K()},K=()=>{const{schema:e=[],isCol:a}=p(f);return e.filter(n=>!n.remove).map(n=>{let I;const M=n.component==="Divider",B=re.Divider;return M?C(B,R({contentPosition:"left"},n.componentProps),{default:()=>[n==null?void 0:n.label]}):a?C(me,lo(n.colProps),L(I=W(n))?I:{default:()=>[I]}):W(n)})},W=e=>{var n,I,M,B;e.optionApi&&ae(e.optionApi,e);const a={default:()=>{var g,k,A,H,X;if((k=(g=e==null?void 0:e.formItemProps)==null?void 0:g.slots)!=null&&k.default)return(H=(A=e==null?void 0:e.formItemProps)==null?void 0:A.slots)==null?void 0:H.default(c.value);{const $=re[e.component],{autoSetPlaceholder:q}=p(f),v=((X=e==null?void 0:e.componentProps)==null?void 0:X.slots)||{},D=R({},ro(v));return e.component===i.SELECT&&(D.default=v.default?()=>{var O;return v.default(p((O=e==null?void 0:e.componentProps)==null?void 0:O.options))}:()=>co(e)),e.component===i.SELECT_V2&&v.default&&(D.default=({item:O})=>v.default(O)),(e.component===i.RADIO_GROUP||e.component===i.RADIO_BUTTON)&&(D.default=v.default?()=>{var O;return v.default(p((O=e==null?void 0:e.componentProps)==null?void 0:O.options))}:()=>fo(e)),(e.component===i.CHECKBOX_GROUP||e.component===i.CHECKBOX_BUTTON)&&(D.default=v.default?()=>{var O;return v.default(p((O=e==null?void 0:e.componentProps)==null?void 0:O.options))}:()=>uo(e)),C(Ie,null,[(()=>{var J,z;const O=m({get:()=>F(c.value,e.field),set:_=>{V(c.value,e.field,_)}});return e.component===i.UPLOAD?C($,h({"file-list":O.value,"onUpdate:file-list":_=>O.value=_,ref:_=>j(_,e.field)},q&&te(e),se(e),{style:((J=e.componentProps)==null?void 0:J.style)||{width:"100%"}}),R({},D)):C($,h({modelValue:O.value,"onUpdate:modelValue":_=>O.value=_,ref:_=>j(_,e.field)},q&&te(e),se(e),{style:((z=e.componentProps)==null?void 0:z.style)||{width:"100%"}}),R({},D))})()])}}};return(I=(n=e==null?void 0:e.formItemProps)==null?void 0:n.slots)!=null&&I.label&&(a.label=(...g)=>{var k,A;return(A=(k=e==null?void 0:e.formItemProps)==null?void 0:k.slots)==null?void 0:A.label(...g)}),(B=(M=e==null?void 0:e.formItemProps)==null?void 0:M.slots)!=null&&B.error&&(a.error=(...g)=>{var k,A;return(A=(k=e==null?void 0:e.formItemProps)==null?void 0:k.slots)==null?void 0:A.error(...g)}),Oe(C(eo,h({ref:g=>ce(g,e.field)},e.formItemProps||{},{prop:e.field,label:e.label||""}),L(a)?a:{default:()=>[a]}),[[Te,!e.hidden]])},ue=()=>{const e=["schema","isCol","autoSetPlaceholder","isCustom","model"],a=R({},p(f));for(const n in a)e.indexOf(n)!==-1&&delete a[n];return a};return()=>C(Ze,h({ref:s},ue(),{model:p(f).isCustom?p(f).model:c,class:"form",onSubmit:e=>{e.preventDefault()}}),{default:()=>{const{isCustom:e}=p(f);return e?ve(t,"default"):fe()}})}}),Bo=oo(po,[["__scopeId","data-v-07242238"]]);export{Bo as F,to as i}; diff --git a/assets/Guide-lGAC_uwB.js b/assets/Guide-Co5cadxk.js similarity index 98% rename from assets/Guide-lGAC_uwB.js rename to assets/Guide-Co5cadxk.js index be3de690..aa88a1e6 100644 --- a/assets/Guide-lGAC_uwB.js +++ b/assets/Guide-Co5cadxk.js @@ -1,2 +1,2 @@ -var pe=Object.defineProperty,ce=Object.defineProperties;var ve=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var V=(e,t,n)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||(t={}))ue.call(t,n)&&V(e,n,t[n]);if(j)for(var n of j(t))me.call(t,n)&&V(e,n,t[n]);return e},N=(e,t)=>ce(e,ve(t));import{_ as he}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as we}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{q as fe,t as ge,T as ye,S as G,P as xe,u as K,W as be}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */let F={};function q(e={}){F=k({animate:!0,allowClose:!0,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000"},e)}function l(e){return e?F[e]:F}function I(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function U(e){const t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap(n=>{const i=n.matches(t),o=Array.from(n.querySelectorAll(t));return[...i?[n]:[],...o]}).filter(n=>getComputedStyle(n).pointerEvents!=="none"&&Ee(n))}function ee(e){if(!e||_e(e))return;const t=l("smoothScroll");e.scrollIntoView({behavior:!t||Ce(e)?"auto":"smooth",inline:"center",block:"center"})}function Ce(e){if(!e||!e.parentElement)return;const t=e.parentElement;return t.scrollHeight>t.clientHeight}function _e(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function Ee(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}let z={};function b(e,t){z[e]=t}function d(e){return e?z[e]:z}function X(){z={}}let O={};function R(e,t){O[e]=t}function B(e){var t;(t=O[e])==null||t.call(O)}function Le(){O={}}function Pe(e,t,n,i){let o=d("__activeStagePosition");const a=o||n.getBoundingClientRect(),m=i.getBoundingClientRect(),h=I(e,a.x,m.x-a.x,t),s=I(e,a.y,m.y-a.y,t),u=I(e,a.width,m.width-a.width,t),r=I(e,a.height,m.height-a.height,t);o={x:h,y:s,width:u,height:r},ne(o),b("__activeStagePosition",o)}function te(e){if(!e)return;const t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};b("__activeStagePosition",n),ne(n)}function ke(){const e=d("__activeStagePosition"),t=d("__overlaySvg");if(!e)return;if(!t){console.warn("No stage svg found.");return}const n=window.innerWidth,i=window.innerHeight;t.setAttribute("viewBox",`0 0 ${n} ${i}`)}function $e(e){const t=Be(e);document.body.appendChild(t),re(t,n=>{n.target.tagName==="path"&&B("overlayClick")}),b("__overlaySvg",t)}function ne(e){const t=d("__overlaySvg");if(!t){$e(e);return}const n=t.firstElementChild;if((n==null?void 0:n.tagName)!=="path")throw new Error("no path element found in stage svg");n.setAttribute("d",oe(e))}function Be(e){const t=window.innerWidth,n=window.innerHeight,i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.classList.add("driver-overlay","driver-overlay-animated"),i.setAttribute("viewBox",`0 0 ${t} ${n}`),i.setAttribute("xmlSpace","preserve"),i.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),i.setAttribute("version","1.1"),i.setAttribute("preserveAspectRatio","xMinYMin slice"),i.style.fillRule="evenodd",i.style.clipRule="evenodd",i.style.strokeLinejoin="round",i.style.strokeMiterlimit="2",i.style.zIndex="10000",i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%";const o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",oe(e)),o.style.fill=l("overlayColor")||"rgb(0,0,0)",o.style.opacity=`${l("overlayOpacity")}`,o.style.pointerEvents="auto",o.style.cursor="auto",i.appendChild(o),i}function oe(e){const t=window.innerWidth,n=window.innerHeight,i=l("stagePadding")||0,o=l("stageRadius")||0,a=e.width+i*2,m=e.height+i*2,h=Math.min(o,a/2,m/2),s=Math.floor(Math.max(h,0)),u=e.x-i+s,r=e.y-i,p=a-s*2,c=m-s*2;return`M${t},0L0,0L0,${n}L${t},${n}L${t},0Z +var pe=Object.defineProperty,ce=Object.defineProperties;var ve=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var V=(e,t,n)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||(t={}))ue.call(t,n)&&V(e,n,t[n]);if(j)for(var n of j(t))me.call(t,n)&&V(e,n,t[n]);return e},N=(e,t)=>ce(e,ve(t));import{_ as he}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as we}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{q as fe,t as ge,T as ye,S as G,P as xe,u as K,W as be}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */let F={};function q(e={}){F=k({animate:!0,allowClose:!0,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000"},e)}function l(e){return e?F[e]:F}function I(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function U(e){const t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap(n=>{const i=n.matches(t),o=Array.from(n.querySelectorAll(t));return[...i?[n]:[],...o]}).filter(n=>getComputedStyle(n).pointerEvents!=="none"&&Ee(n))}function ee(e){if(!e||_e(e))return;const t=l("smoothScroll");e.scrollIntoView({behavior:!t||Ce(e)?"auto":"smooth",inline:"center",block:"center"})}function Ce(e){if(!e||!e.parentElement)return;const t=e.parentElement;return t.scrollHeight>t.clientHeight}function _e(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function Ee(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}let z={};function b(e,t){z[e]=t}function d(e){return e?z[e]:z}function X(){z={}}let O={};function R(e,t){O[e]=t}function B(e){var t;(t=O[e])==null||t.call(O)}function Le(){O={}}function Pe(e,t,n,i){let o=d("__activeStagePosition");const a=o||n.getBoundingClientRect(),m=i.getBoundingClientRect(),h=I(e,a.x,m.x-a.x,t),s=I(e,a.y,m.y-a.y,t),u=I(e,a.width,m.width-a.width,t),r=I(e,a.height,m.height-a.height,t);o={x:h,y:s,width:u,height:r},ne(o),b("__activeStagePosition",o)}function te(e){if(!e)return;const t=e.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height};b("__activeStagePosition",n),ne(n)}function ke(){const e=d("__activeStagePosition"),t=d("__overlaySvg");if(!e)return;if(!t){console.warn("No stage svg found.");return}const n=window.innerWidth,i=window.innerHeight;t.setAttribute("viewBox",`0 0 ${n} ${i}`)}function $e(e){const t=Be(e);document.body.appendChild(t),re(t,n=>{n.target.tagName==="path"&&B("overlayClick")}),b("__overlaySvg",t)}function ne(e){const t=d("__overlaySvg");if(!t){$e(e);return}const n=t.firstElementChild;if((n==null?void 0:n.tagName)!=="path")throw new Error("no path element found in stage svg");n.setAttribute("d",oe(e))}function Be(e){const t=window.innerWidth,n=window.innerHeight,i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.classList.add("driver-overlay","driver-overlay-animated"),i.setAttribute("viewBox",`0 0 ${t} ${n}`),i.setAttribute("xmlSpace","preserve"),i.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),i.setAttribute("version","1.1"),i.setAttribute("preserveAspectRatio","xMinYMin slice"),i.style.fillRule="evenodd",i.style.clipRule="evenodd",i.style.strokeLinejoin="round",i.style.strokeMiterlimit="2",i.style.zIndex="10000",i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%";const o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",oe(e)),o.style.fill=l("overlayColor")||"rgb(0,0,0)",o.style.opacity=`${l("overlayOpacity")}`,o.style.pointerEvents="auto",o.style.cursor="auto",i.appendChild(o),i}function oe(e){const t=window.innerWidth,n=window.innerHeight,i=l("stagePadding")||0,o=l("stageRadius")||0,a=e.width+i*2,m=e.height+i*2,h=Math.min(o,a/2,m/2),s=Math.floor(Math.max(h,0)),u=e.x-i+s,r=e.y-i,p=a-s*2,c=m-s*2;return`M${t},0L0,0L0,${n}L${t},${n}L${t},0Z M${u},${r} h${p} a${s},${s} 0 0 1 ${s},${s} v${c} a${s},${s} 0 0 1 -${s},${s} h-${p} a${s},${s} 0 0 1 -${s},-${s} v-${c} a${s},${s} 0 0 1 ${s},-${s} z`}function Ae(){const e=d("__overlaySvg");e&&e.remove()}function Se(){const e=document.getElementById("driver-dummy-element");if(e)return e;let t=document.createElement("div");return t.id="driver-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}function Y(e){const{element:t}=e;let n=typeof t=="string"?document.querySelector(t):t;n||(n=Se()),Te(n,e)}function He(){const e=d("__activeElement"),t=d("__activeStep");e&&(te(e),ke(),le(e,t))}function Te(e,t){const n=Date.now(),i=d("__activeStep"),o=d("__activeElement")||e,a=!o||o===e,m=e.id==="driver-dummy-element",h=o.id==="driver-dummy-element",s=l("animate"),u=t.onHighlightStarted||l("onHighlightStarted"),r=(t==null?void 0:t.onHighlighted)||l("onHighlighted"),p=(i==null?void 0:i.onDeselected)||l("onDeselected"),c=l(),w=d();!a&&p&&p(h?void 0:o,i,{config:c,state:w}),u&&u(m?void 0:e,t,{config:c,state:w});const g=!a&&s;let f=!1;Ie(),b("previousStep",i),b("previousElement",o),b("activeStep",t),b("activeElement",e);const v=()=>{if(d("__transitionCallback")!==v)return;const y=Date.now()-n,E=400-y<=400/2;t.popover&&E&&!f&&g&&(Z(e,t),f=!0),l("animate")&&y<400?Pe(y,400,o,e):(te(e),r&&r(m?void 0:e,t,{config:l(),state:d()}),b("__transitionCallback",void 0),b("__previousStep",i),b("__previousElement",o),b("__activeStep",t),b("__activeElement",e)),window.requestAnimationFrame(v)};b("__transitionCallback",v),window.requestAnimationFrame(v),ee(e),!g&&t.popover&&Z(e,t),o.classList.remove("driver-active-element","driver-no-interaction"),o.removeAttribute("aria-haspopup"),o.removeAttribute("aria-expanded"),o.removeAttribute("aria-controls"),l("disableActiveInteraction")&&e.classList.add("driver-no-interaction"),e.classList.add("driver-active-element"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded","true"),e.setAttribute("aria-controls","driver-popover-content")}function Me(){var e;(e=document.getElementById("driver-dummy-element"))==null||e.remove(),document.querySelectorAll(".driver-active-element").forEach(t=>{t.classList.remove("driver-active-element","driver-no-interaction"),t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls")})}function A(){const e=d("__resizeTimeout");e&&window.cancelAnimationFrame(e),b("__resizeTimeout",window.requestAnimationFrame(He))}function De(e){var t;if(!d("isInitialized")||!(e.key==="Tab"||e.keyCode===9))return;const n=d("__activeElement"),i=(t=d("popover"))==null?void 0:t.wrapper,o=U([...i?[i]:[],...n?[n]:[]]),a=o[0],m=o[o.length-1];if(e.preventDefault(),e.shiftKey){const h=o[o.indexOf(document.activeElement)-1]||m;h==null||h.focus()}else{const h=o[o.indexOf(document.activeElement)+1]||a;h==null||h.focus()}}function ie(e){var t;((t=l("allowKeyboardControl"))==null||t)&&(e.key==="Escape"?B("escapePress"):e.key==="ArrowRight"?B("arrowRightPress"):e.key==="ArrowLeft"&&B("arrowLeftPress"))}function re(e,t,n){const i=(o,a)=>{const m=o.target;e.contains(m)&&((!n||n(m))&&(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()),a==null||a(o))};document.addEventListener("pointerdown",i,!0),document.addEventListener("mousedown",i,!0),document.addEventListener("pointerup",i,!0),document.addEventListener("mouseup",i,!0),document.addEventListener("click",o=>{i(o,t)},!0)}function We(){window.addEventListener("keyup",ie,!1),window.addEventListener("keydown",De,!1),window.addEventListener("resize",A),window.addEventListener("scroll",A)}function Ne(){window.removeEventListener("keyup",ie),window.removeEventListener("resize",A),window.removeEventListener("scroll",A)}function Ie(){const e=d("popover");e&&(e.wrapper.style.display="none")}function Z(e,t){var n,i;let o=d("popover");o&&document.body.removeChild(o.wrapper),o=ze(),document.body.appendChild(o.wrapper);const{title:a,description:m,showButtons:h,disableButtons:s,showProgress:u,nextBtnText:r=l("nextBtnText")||"Next →",prevBtnText:p=l("prevBtnText")||"← Previous",progressText:c=l("progressText")||"{current} of {total}"}=t.popover||{};o.nextButton.innerHTML=r,o.previousButton.innerHTML=p,o.progress.innerHTML=c,a?(o.title.innerHTML=a,o.title.style.display="block"):o.title.style.display="none",m?(o.description.innerHTML=m,o.description.style.display="block"):o.description.style.display="none";const w=h||l("showButtons"),g=u||l("showProgress")||!1,f=(w==null?void 0:w.includes("next"))||(w==null?void 0:w.includes("previous"))||g;o.closeButton.style.display=w.includes("close")?"block":"none",f?(o.footer.style.display="flex",o.progress.style.display=g?"block":"none",o.nextButton.style.display=w.includes("next")?"block":"none",o.previousButton.style.display=w.includes("previous")?"block":"none"):o.footer.style.display="none";const v=s||l("disableButtons")||[];v!=null&&v.includes("next")&&(o.nextButton.disabled=!0,o.nextButton.classList.add("driver-popover-btn-disabled")),v!=null&&v.includes("previous")&&(o.previousButton.disabled=!0,o.previousButton.classList.add("driver-popover-btn-disabled")),v!=null&&v.includes("close")&&(o.closeButton.disabled=!0,o.closeButton.classList.add("driver-popover-btn-disabled"));const y=o.wrapper;y.style.display="block",y.style.left="",y.style.top="",y.style.bottom="",y.style.right="",y.id="driver-popover-content",y.setAttribute("role","dialog"),y.setAttribute("aria-labelledby","driver-popover-title"),y.setAttribute("aria-describedby","driver-popover-description");const E=o.arrow;E.className="driver-popover-arrow";const L=((n=t.popover)==null?void 0:n.popoverClass)||l("popoverClass")||"";y.className=`driver-popover ${L}`.trim(),re(o.wrapper,P=>{var S,H,T;const $=P.target,M=((S=t.popover)==null?void 0:S.onNextClick)||l("onNextClick"),D=((H=t.popover)==null?void 0:H.onPrevClick)||l("onPrevClick"),W=((T=t.popover)==null?void 0:T.onCloseClick)||l("onCloseClick");if($.classList.contains("driver-popover-next-btn"))return M?M(e,t,{config:l(),state:d()}):B("nextClick");if($.classList.contains("driver-popover-prev-btn"))return D?D(e,t,{config:l(),state:d()}):B("prevClick");if($.classList.contains("driver-popover-close-btn"))return W?W(e,t,{config:l(),state:d()}):B("closeClick")},P=>!(o!=null&&o.description.contains(P))&&!(o!=null&&o.title.contains(P))&&typeof P.className=="string"&&P.className.includes("driver-popover")),b("popover",o);const x=((i=t.popover)==null?void 0:i.onPopoverRender)||l("onPopoverRender");x&&x(o,{config:l(),state:d()}),le(e,t),ee(y);const C=e.classList.contains("driver-dummy-element"),_=U([y,...C?[]:[e]]);_.length>0&&_[0].focus()}function se(){const e=d("popover");if(!(e!=null&&e.wrapper))return;const t=e.wrapper.getBoundingClientRect(),n=l("stagePadding")||0,i=l("popoverOffset")||0;return{width:t.width+n+i,height:t.height+n+i,realWidth:t.width,realHeight:t.height}}function J(e,t){const{elementDimensions:n,popoverDimensions:i,popoverPadding:o,popoverArrowDimensions:a}=t;return e==="start"?Math.max(Math.min(n.top-o,window.innerHeight-i.realHeight-a.width),a.width):e==="end"?Math.max(Math.min(n.top-(i==null?void 0:i.realHeight)+n.height+o,window.innerHeight-(i==null?void 0:i.realHeight)-a.width),a.width):e==="center"?Math.max(Math.min(n.top+n.height/2-(i==null?void 0:i.realHeight)/2,window.innerHeight-(i==null?void 0:i.realHeight)-a.width),a.width):0}function Q(e,t){const{elementDimensions:n,popoverDimensions:i,popoverPadding:o,popoverArrowDimensions:a}=t;return e==="start"?Math.max(Math.min(n.left-o,window.innerWidth-i.realWidth-a.width),a.width):e==="end"?Math.max(Math.min(n.left-(i==null?void 0:i.realWidth)+n.width+o,window.innerWidth-(i==null?void 0:i.realWidth)-a.width),a.width):e==="center"?Math.max(Math.min(n.left+n.width/2-(i==null?void 0:i.realWidth)/2,window.innerWidth-(i==null?void 0:i.realWidth)-a.width),a.width):0}function le(e,t){const n=d("popover");if(!n)return;const{align:i="start",side:o="left"}=(t==null?void 0:t.popover)||{},a=i,m=e.id==="driver-dummy-element"?"over":o,h=l("stagePadding")||0,s=se(),u=n.arrow.getBoundingClientRect(),r=e.getBoundingClientRect(),p=r.top-s.height;let c=p>=0;const w=window.innerHeight-(r.bottom+s.height);let g=w>=0;const f=r.left-s.width;let v=f>=0;const y=window.innerWidth-(r.right+s.width);let E=y>=0;const L=!c&&!g&&!v&&!E;let x=m;if(m==="top"&&c?E=v=g=!1:m==="bottom"&&g?E=v=c=!1:m==="left"&&v?E=c=g=!1:m==="right"&&E&&(v=c=g=!1),m==="over"){const C=window.innerWidth/2-s.realWidth/2,_=window.innerHeight/2-s.realHeight/2;n.wrapper.style.left=`${C}px`,n.wrapper.style.right="auto",n.wrapper.style.top=`${_}px`,n.wrapper.style.bottom="auto"}else if(L){const C=window.innerWidth/2-(s==null?void 0:s.realWidth)/2,_=10;n.wrapper.style.left=`${C}px`,n.wrapper.style.right="auto",n.wrapper.style.bottom=`${_}px`,n.wrapper.style.top="auto"}else if(v){const C=Math.min(f,window.innerWidth-(s==null?void 0:s.realWidth)-u.width),_=J(a,{elementDimensions:r,popoverDimensions:s,popoverPadding:h,popoverArrowDimensions:u});n.wrapper.style.left=`${C}px`,n.wrapper.style.top=`${_}px`,n.wrapper.style.bottom="auto",n.wrapper.style.right="auto",x="left"}else if(E){const C=Math.min(y,window.innerWidth-(s==null?void 0:s.realWidth)-u.width),_=J(a,{elementDimensions:r,popoverDimensions:s,popoverPadding:h,popoverArrowDimensions:u});n.wrapper.style.right=`${C}px`,n.wrapper.style.top=`${_}px`,n.wrapper.style.bottom="auto",n.wrapper.style.left="auto",x="right"}else if(c){const C=Math.min(p,window.innerHeight-s.realHeight-u.width);let _=Q(a,{elementDimensions:r,popoverDimensions:s,popoverPadding:h,popoverArrowDimensions:u});n.wrapper.style.top=`${C}px`,n.wrapper.style.left=`${_}px`,n.wrapper.style.bottom="auto",n.wrapper.style.right="auto",x="top"}else if(g){const C=Math.min(w,window.innerHeight-(s==null?void 0:s.realHeight)-u.width);let _=Q(a,{elementDimensions:r,popoverDimensions:s,popoverPadding:h,popoverArrowDimensions:u});n.wrapper.style.left=`${_}px`,n.wrapper.style.bottom=`${C}px`,n.wrapper.style.top="auto",n.wrapper.style.right="auto",x="bottom"}L?n.arrow.classList.add("driver-popover-arrow-none"):Re(a,x,e)}function Re(e,t,n){const i=d("popover");if(!i)return;const o=n.getBoundingClientRect(),a=se(),m=i.arrow,h=a.width,s=window.innerWidth,u=o.width,r=o.left,p=a.height,c=window.innerHeight,w=o.top,g=o.height;m.className="driver-popover-arrow";let f=t,v=e;t==="top"?(r+u<=0?(f="right",v="end"):r+u-h<=0&&(f="top",v="start"),r>=s?(f="left",v="end"):r+h>=s&&(f="top",v="end")):t==="bottom"?(r+u<=0?(f="right",v="start"):r+u-h<=0&&(f="bottom",v="start"),r>=s?(f="left",v="start"):r+h>=s&&(f="bottom",v="end")):t==="left"?(w+g<=0?(f="bottom",v="end"):w+g-p<=0&&(f="left",v="start"),w>=c?(f="top",v="end"):w+p>=c&&(f="left",v="end")):t==="right"&&(w+g<=0?(f="bottom",v="start"):w+g-p<=0&&(f="right",v="start"),w>=c?(f="top",v="start"):w+p>=c&&(f="right",v="end")),f?(m.classList.add(`driver-popover-arrow-side-${f}`),m.classList.add(`driver-popover-arrow-align-${v}`)):m.classList.add("driver-popover-arrow-none")}function ze(){const e=document.createElement("div");e.classList.add("driver-popover");const t=document.createElement("div");t.classList.add("driver-popover-arrow");const n=document.createElement("header");n.id="driver-popover-title",n.classList.add("driver-popover-title"),n.style.display="none",n.innerText="Popover Title";const i=document.createElement("div");i.id="driver-popover-description",i.classList.add("driver-popover-description"),i.style.display="none",i.innerText="Popover description is here";const o=document.createElement("button");o.type="button",o.classList.add("driver-popover-close-btn"),o.setAttribute("aria-label","Close"),o.innerHTML="×";const a=document.createElement("footer");a.classList.add("driver-popover-footer");const m=document.createElement("span");m.classList.add("driver-popover-progress-text"),m.innerText="";const h=document.createElement("span");h.classList.add("driver-popover-navigation-btns");const s=document.createElement("button");s.type="button",s.classList.add("driver-popover-prev-btn"),s.innerHTML="← Previous";const u=document.createElement("button");return u.type="button",u.classList.add("driver-popover-next-btn"),u.innerHTML="Next →",h.appendChild(s),h.appendChild(u),a.appendChild(m),a.appendChild(h),e.appendChild(o),e.appendChild(t),e.appendChild(n),e.appendChild(i),e.appendChild(a),{wrapper:e,arrow:t,title:n,description:i,footer:a,previousButton:s,nextButton:u,closeButton:o,footerButtons:h,progress:m}}function Oe(){var e;const t=d("popover");t&&((e=t.wrapper.parentElement)==null||e.removeChild(t.wrapper))}function qe(e={}){q(e);function t(){l("allowClose")&&u()}function n(){const r=d("activeIndex"),p=l("steps")||[];if(typeof r=="undefined")return;const c=r+1;p[c]?s(c):u()}function i(){const r=d("activeIndex"),p=l("steps")||[];if(typeof r=="undefined")return;const c=r-1;p[c]?s(c):u()}function o(r){(l("steps")||[])[r]?s(r):u()}function a(){var r;if(d("__transitionCallback"))return;const p=d("activeIndex"),c=d("__activeStep"),w=d("__activeElement");if(typeof p=="undefined"||typeof c=="undefined"||typeof d("activeIndex")=="undefined")return;const g=((r=c.popover)==null?void 0:r.onPrevClick)||l("onPrevClick");if(g)return g(w,c,{config:l(),state:d()});i()}function m(){var r;if(d("__transitionCallback"))return;const p=d("activeIndex"),c=d("__activeStep"),w=d("__activeElement");if(typeof p=="undefined"||typeof c=="undefined")return;const g=((r=c.popover)==null?void 0:r.onNextClick)||l("onNextClick");if(g)return g(w,c,{config:l(),state:d()});n()}function h(){d("isInitialized")||(b("isInitialized",!0),document.body.classList.add("driver-active",l("animate")?"driver-fade":"driver-simple"),We(),R("overlayClick",t),R("escapePress",t),R("arrowLeftPress",a),R("arrowRightPress",m))}function s(r=0){var p,c,w,g,f,v,y,E;const L=l("steps");if(!L){console.error("No steps to drive through"),u();return}if(!L[r]){u();return}b("__activeOnDestroyed",document.activeElement),b("activeIndex",r);const x=L[r],C=L[r+1],_=L[r-1],P=((p=x.popover)==null?void 0:p.doneBtnText)||l("doneBtnText")||"Done",S=l("allowClose"),H=typeof((c=x.popover)==null?void 0:c.showProgress)!="undefined"?(w=x.popover)==null?void 0:w.showProgress:l("showProgress"),T=(((g=x.popover)==null?void 0:g.progressText)||l("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${r+1}`).replace("{{total}}",`${L.length}`),$=((f=x.popover)==null?void 0:f.showButtons)||l("showButtons"),M=["next","previous",...S?["close"]:[]].filter(ae=>!($!=null&&$.length)||$.includes(ae)),D=((v=x.popover)==null?void 0:v.onNextClick)||l("onNextClick"),W=((y=x.popover)==null?void 0:y.onPrevClick)||l("onPrevClick"),de=((E=x.popover)==null?void 0:E.onCloseClick)||l("onCloseClick");Y(N(k({},x),{popover:k({showButtons:M,nextBtnText:C?void 0:P,disableButtons:[..._?[]:["previous"]],showProgress:H,progressText:T,onNextClick:D||(()=>{C?s(r+1):u()}),onPrevClick:W||(()=>{s(r-1)}),onCloseClick:de||(()=>{u()})},(x==null?void 0:x.popover)||{})}))}function u(r=!0){const p=d("__activeElement"),c=d("__activeStep"),w=d("__activeOnDestroyed"),g=l("onDestroyStarted");if(r&&g){const y=!p||(p==null?void 0:p.id)==="driver-dummy-element";g(y?void 0:p,c,{config:l(),state:d()});return}const f=(c==null?void 0:c.onDeselected)||l("onDeselected"),v=l("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),Ne(),Oe(),Me(),Ae(),Le(),X(),p&&c){const y=p.id==="driver-dummy-element";f&&f(y?void 0:p,c,{config:l(),state:d()}),v&&v(y?void 0:p,c,{config:l(),state:d()})}w&&w.focus()}return{isActive:()=>d("isInitialized")||!1,refresh:A,drive:(r=0)=>{h(),s(r)},setConfig:q,setSteps:r=>{X(),q(N(k({},l()),{steps:r}))},getConfig:l,getState:d,getActiveIndex:()=>d("activeIndex"),isFirstStep:()=>d("activeIndex")===0,isLastStep:()=>{const r=l("steps")||[],p=d("activeIndex");return p!==void 0&&p===r.length-1},getActiveStep:()=>d("activeStep"),getActiveElement:()=>d("activeElement"),getPreviousElement:()=>d("previousElement"),getPreviousStep:()=>d("previousStep"),moveNext:n,movePrevious:i,moveTo:o,hasNextStep:()=>{const r=l("steps")||[],p=d("activeIndex");return p!==void 0&&r[p+1]},hasPreviousStep:()=>{const r=l("steps")||[],p=d("activeIndex");return p!==void 0&&r[p-1]},highlight:r=>{h(),Y(N(k({},r),{popover:r.popover?k({showButtons:[],showProgress:!1,progressText:""},r.popover):void 0}))},destroy:()=>{u(!1)}}}const Fe=e=>{const t=qe(e||{showProgress:!0,nextBtnText:"下一步",prevBtnText:"上一步",doneBtnText:"结束",steps:[{element:"#menu",popover:{title:"菜单",description:"以路由的结构渲染的菜单栏",side:"right"}},{element:"#tool-header",popover:{title:"工具",description:"用于设置定制系统",side:"left"}},{element:"#tags-view",popover:{title:"标签页",description:"用于记录路由历史记录",side:"bottom"}}]});return k({},t)},Ue=fe({__name:"Guide",setup(e){const{drive:t}=Fe(),n=()=>{t()};return(i,o)=>(ge(),ye(K(he),{title:"引导页",message:"引导页对于一些第一次进入项目的人很有用,你可以简单介绍下项目的功能。引导页基于 driver.js"},{default:G(()=>[xe(K(we),{type:"primary",onClick:n},{default:G(()=>[be("开始")]),_:1})]),_:1}))}});export{Ue as default}; diff --git a/assets/Highlight-iwtyyVdW.js b/assets/Highlight-CtDwwxo1.js similarity index 72% rename from assets/Highlight-iwtyyVdW.js rename to assets/Highlight-CtDwwxo1.js index 3b0d2b29..c02524dc 100644 --- a/assets/Highlight-iwtyyVdW.js +++ b/assets/Highlight-CtDwwxo1.js @@ -1 +1 @@ -import{_ as r}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as s}from"./Highlight.vue_vue_type_script_lang-DogC43qc.js";import"./index-CA0d6hyI.js";import{E as i}from"./element-plus-6v3c1uXT.js";import{q as m,t as _,T as c,S as e,P as n,u as o,W as p}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const B=m({__name:"Highlight",setup(f){const a=t=>{i.info(t)};return(t,l)=>(_(),c(o(r),{title:"高亮"},{default:e(()=>[n(o(s),{keys:["十年前","现在"],onClick:a},{default:e(()=>[p(" 种一棵树最好的时间是十年前,其次就是现在。 ")]),_:1})]),_:1}))}});export{B as default}; +import{_ as r}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as s}from"./Highlight.vue_vue_type_script_lang-BkEaAxMF.js";import"./index-B5z15nYm.js";import{E as i}from"./element-plus-6v3c1uXT.js";import{q as m,t as _,T as c,S as e,P as n,u as o,W as p}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const B=m({__name:"Highlight",setup(f){const a=t=>{i.info(t)};return(t,l)=>(_(),c(o(r),{title:"高亮"},{default:e(()=>[n(o(s),{keys:["十年前","现在"],onClick:a},{default:e(()=>[p(" 种一棵树最好的时间是十年前,其次就是现在。 ")]),_:1})]),_:1}))}});export{B as default}; diff --git a/assets/Highlight.vue_vue_type_script_lang-DogC43qc.js b/assets/Highlight.vue_vue_type_script_lang-BkEaAxMF.js similarity index 91% rename from assets/Highlight.vue_vue_type_script_lang-DogC43qc.js rename to assets/Highlight.vue_vue_type_script_lang-BkEaAxMF.js index 9add0210..4f23b3c4 100644 --- a/assets/Highlight.vue_vue_type_script_lang-DogC43qc.js +++ b/assets/Highlight.vue_vue_type_script_lang-BkEaAxMF.js @@ -1 +1 @@ -import{p}from"./index-CA0d6hyI.js";import{q as g,d as y,af as u,u as k}from"./vue-chunks-DOWhatC1.js";const x=g({name:"Highlight",props:{tag:p.string.def("span"),keys:{type:Array,default:()=>[]},color:p.string.def("var(--el-color-primary)")},emits:["click"],setup(n,{emit:o,slots:e}){const f=y(()=>n.keys.map(r=>u("span",{onClick:()=>{o("click",r)},style:{color:n.color,cursor:"pointer"}},r))),d=r=>(n.keys.forEach((c,t)=>{const i=new RegExp(c,"g");r=r.replace(i,`{{${t}}}`)}),r.split(/{{|}}/)),m=()=>{if(!(e!=null&&e.default))return null;const r=e==null?void 0:e.default()[0].children;if(!r)return e==null?void 0:e.default()[0];const c=d(r),t=/^[0-9]*$/,i=c.map(a=>t.test(a)&&k(f)[a]||a);return u(n.tag,i)};return()=>m()}});export{x as _}; +import{p}from"./index-B5z15nYm.js";import{q as g,d as y,af as u,u as k}from"./vue-chunks-DOWhatC1.js";const x=g({name:"Highlight",props:{tag:p.string.def("span"),keys:{type:Array,default:()=>[]},color:p.string.def("var(--el-color-primary)")},emits:["click"],setup(n,{emit:o,slots:e}){const f=y(()=>n.keys.map(r=>u("span",{onClick:()=>{o("click",r)},style:{color:n.color,cursor:"pointer"}},r))),d=r=>(n.keys.forEach((c,t)=>{const i=new RegExp(c,"g");r=r.replace(i,`{{${t}}}`)}),r.split(/{{|}}/)),m=()=>{if(!(e!=null&&e.default))return null;const r=e==null?void 0:e.default()[0].children;if(!r)return e==null?void 0:e.default()[0];const c=d(r),t=/^[0-9]*$/,i=c.map(a=>t.test(a)&&k(f)[a]||a);return u(n.tag,i)};return()=>m()}});export{x as _}; diff --git a/assets/HomeView-B6WrtAkf.js b/assets/HomeView-D20k5K9M.js similarity index 85% rename from assets/HomeView-B6WrtAkf.js rename to assets/HomeView-D20k5K9M.js index 1413f752..fbba3515 100644 --- a/assets/HomeView-B6WrtAkf.js +++ b/assets/HomeView-D20k5K9M.js @@ -1 +1 @@ -import"./index-CA0d6hyI.js";import{a3 as e}from"./element-plus-6v3c1uXT.js";import{q as o,t as a,v as r,P as s,S as n,W as c,x as m}from"./vue-chunks-DOWhatC1.js";const i=m("div",{class:"pt-6 micro-build-text-r"},"不用!引入!important",-1),f=o({__name:"HomeView",setup(p){return(l,_)=>{const t=e;return a(),r("main",null,[s(t,{class:"mt-6 !micro-build-text-r",type:"primary"},{default:n(()=>[c(" 首页 ")]),_:1}),i])}}});export{f as default}; +import"./index-B5z15nYm.js";import{a3 as e}from"./element-plus-6v3c1uXT.js";import{q as o,t as a,v as r,P as s,S as n,W as c,x as m}from"./vue-chunks-DOWhatC1.js";const i=m("div",{class:"pt-6 micro-build-text-r"},"不用!引入!important",-1),f=o({__name:"HomeView",setup(p){return(l,_)=>{const t=e;return a(),r("main",null,[s(t,{class:"mt-6 !micro-build-text-r",type:"primary"},{default:n(()=>[c(" 首页 ")]),_:1}),i])}}});export{f as default}; diff --git a/assets/Icon-Bwi9LaBZ.js b/assets/Icon-B-0CON7P.js similarity index 99% rename from assets/Icon-Bwi9LaBZ.js rename to assets/Icon-B-0CON7P.js index e8a77e23..9e3abed6 100644 --- a/assets/Icon-Bwi9LaBZ.js +++ b/assets/Icon-B-0CON7P.js @@ -1 +1 @@ -var Qt=Object.defineProperty,qt=Object.defineProperties;var Ut=Object.getOwnPropertyDescriptors;var ct=Object.getOwnPropertySymbols;var Ht=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable;var lt=(t,e,n)=>e in t?Qt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=(t,e)=>{for(var n in e||(e={}))Ht.call(e,n)&<(t,n,e[n]);if(ct)for(var n of ct(e))Kt.call(e,n)&<(t,n,e[n]);return t},C=(t,e)=>qt(t,Ut(e));import{q as Tt,af as at,d as O,t as j,T as ft,S as Gt,v as q,x as Wt,u as U,V as ut,M as Jt,Q as Xt,aE as Yt}from"./vue-chunks-DOWhatC1.js";import{p as _}from"./index-CA0d6hyI.js";import{B as Zt}from"./element-plus-6v3c1uXT.js";const P=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(t,e,n,r="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return e&&!N(a)?null:a}const i=o[0],s=i.split("-");if(s.length>1){const c={provider:r,prefix:s.shift(),name:s.join("-")};return e&&!N(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:i};return e&&!N(c,n)?null:c}return null},N=(t,e)=>t?!!((t.provider===""||t.provider.match(P))&&(e&&t.prefix===""||t.prefix.match(P))&&t.name.match(P)):!1,jt=Object.freeze({left:0,top:0,width:16,height:16}),B=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$=Object.freeze(u(u({},jt),B)),G=Object.freeze(C(u({},$),{body:"",hidden:!1}));function te(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}function dt(t,e){const n=te(t,e);for(const r in G)r in B?r in t&&!(r in n)&&(n[r]=B[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function ee(t,e){const n=t.icons,r=t.aliases||Object.create(null),o=Object.create(null);function i(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const c=r[s]&&r[s].parent,l=c&&i(c);l&&(o[s]=[c].concat(l))}return o[s]}return(e||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function ne(t,e,n){const r=t.icons,o=t.aliases||Object.create(null);let i={};function s(c){i=dt(r[c]||o[c],i)}return s(e),n.forEach(s),dt(t,i)}function Et(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const r=ee(t);for(const o in r){const i=r[o];i&&(e(o,ne(t,o,i)),n.push(o))}return n}const oe=u({provider:"",aliases:{},not_found:{}},jt);function H(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Pt(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!H(t,oe))return null;const n=e.icons;for(const o in n){const i=n[o];if(!o.match(P)||typeof i.body!="string"||!H(i,G))return null}const r=e.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(P)||typeof s!="string"||!n[s]&&!r[s]||!H(i,G))return null}return e}const ht=Object.create(null);function re(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function k(t,e){const n=ht[t]||(ht[t]=Object.create(null));return n[e]||(n[e]=re(t,e))}function et(t,e){return Pt(e)?Et(e,(n,r)=>{r?t.icons[n]=r:t.missing.add(n)}):[]}function ie(t,e,n){try{if(typeof n.body=="string")return t.icons[e]=u({},n),!0}catch(r){}return!1}let M=!1;function Mt(t){return typeof t=="boolean"&&(M=t),M}function se(t){const e=typeof t=="string"?R(t,!0,M):t;if(e){const n=k(e.provider,e.prefix),r=e.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function ce(t,e){const n=R(t,!0,M);if(!n)return!1;const r=k(n.provider,n.prefix);return ie(r,n.name,e)}function le(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),M&&!e&&!t.prefix){let o=!1;return Pt(t)&&(t.prefix="",Et(t,(i,s)=>{s&&ce(i,s)&&(o=!0)})),o}const n=t.prefix;if(!N({provider:e,prefix:n,name:"a"}))return!1;const r=k(e,n);return!!et(r,t)}const Lt=Object.freeze({width:null,height:null}),Ft=Object.freeze(u(u({},Lt),B)),ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,fe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function pt(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const r=t.split(ae);if(r===null||!r.length)return t;const o=[];let i=r.shift(),s=fe.test(i);for(;;){if(s){const c=parseFloat(i);isNaN(c)?o.push(i):o.push(Math.ceil(c*e*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");s=!s}}const ue=t=>t==="unset"||t==="undefined"||t==="none";function de(t,e){const n=u(u({},$),t),r=u(u({},Ft),e),o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(w=>{const p=[],d=w.hFlip,v=w.vFlip;let b=w.rotate;d?v?b+=2:(p.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),p.push("scale(-1 1)"),o.top=o.left=0):v&&(p.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),p.push("scale(1 -1)"),o.top=o.left=0);let x;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:x=o.height/2+o.top,p.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:p.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:x=o.width/2+o.left,p.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}b%2===1&&(o.left!==o.top&&(x=o.left,o.left=o.top,o.top=x),o.width!==o.height&&(x=o.width,o.width=o.height,o.height=x)),p.length&&(i=''+i+"")});const s=r.width,c=r.height,l=o.width,a=o.height;let f,h;s===null?(h=c===null?"1em":c==="auto"?a:c,f=pt(h,l/a)):(f=s==="auto"?l:s,h=c===null?pt(f,a/l):c==="auto"?a:c);const m={},y=(w,p)=>{ue(p)||(m[w]=p.toString())};return y("width",f),y("height",h),m.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:m,body:i}}const he=/\sid="(\S+)"/g,pe="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ge=0;function me(t,e=pe){const n=[];let r;for(;r=he.exec(t);)n.push(r[1]);if(!n.length)return t;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof e=="function"?e(i):e+(ge++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),t=t.replace(new RegExp(o,"g"),""),t}const W=Object.create(null);function ye(t,e){W[t]=e}function J(t){return W[t]||W[""]}function nt(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const ot=Object.create(null),E=["https://api.simplesvg.com","https://api.unisvg.com"],z=[];for(;E.length>0;)E.length===1||Math.random()>.5?z.push(E.shift()):z.push(E.pop());ot[""]=nt({resources:["https://api.iconify.design"].concat(z)});function be(t,e){const n=nt(e);return n===null?!1:(ot[t]=n,!0)}function rt(t){return ot[t]}const xe=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch(e){}};let gt=xe();function we(t,e){const n=rt(t);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const i=e+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function Ie(t){return t===404}const ve=(t,e,n)=>{const r=[],o=we(t,e),i="icons";let s={type:i,provider:t,prefix:e,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(s),s={type:i,provider:t,prefix:e,icons:[]},c=l.length),s.icons.push(l)}),r.push(s),r};function Se(t){if(typeof t=="string"){const e=rt(t);if(e)return e.path}return"/"}const Ce=(t,e,n)=>{if(!gt){n("abort",424);return}let r=Se(e.provider);switch(e.type){case"icons":{const i=e.prefix,c=e.icons.join(","),l=new URLSearchParams({icons:c});r+=i+".json?"+l.toString();break}case"custom":{const i=e.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;gt(t+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(Ie(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},ke={prepare:ve,send:Ce};function Te(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return t.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,s=o.prefix,c=o.name,l=n[i]||(n[i]=Object.create(null)),a=l[s]||(l[s]=k(i,s));let f;c in a.icons?f=e.loaded:s===""||a.missing.has(c)?f=e.missing:f=e.pending;const h={provider:i,prefix:s,name:c};f.push(h)}),e}function Ot(t,e){t.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==e))})}function je(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const r=t.provider,o=t.prefix;e.forEach(i=>{const s=i.icons,c=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(t.icons[a])s.loaded.push({provider:r,prefix:o,name:a});else if(t.missing.has(a))s.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),s.pending.length!==c&&(n||Ot([t],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let Ee=0;function Pe(t,e,n){const r=Ee++,o=Ot.bind(null,n,r);if(!e.pending.length)return o;const i={id:r,icons:e,callback:t,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function Me(t,e=!0,n=!1){const r=[];return t.forEach(o=>{const i=typeof o=="string"?R(o,e,n):o;i&&r.push(i)}),r}var Le={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Fe(t,e,n,r){const o=t.resources.length,i=t.random?Math.floor(Math.random()*o):t.index;let s;if(t.random){let g=t.resources.slice(0);for(s=[];g.length>1;){const I=Math.floor(Math.random()*g.length);s.push(g[I]),g=g.slice(0,I).concat(g.slice(I+1))}s=s.concat(g)}else s=t.resources.slice(i).concat(t.resources.slice(0,i));const c=Date.now();let l="pending",a=0,f,h=null,m=[],y=[];typeof r=="function"&&y.push(r);function w(){h&&(clearTimeout(h),h=null)}function p(){l==="pending"&&(l="aborted"),w(),m.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),m=[]}function d(g,I){I&&(y=[]),typeof g=="function"&&y.push(g)}function v(){return{startTime:c,payload:e,status:l,queriesSent:a,queriesPending:m.length,subscribe:d,abort:p}}function b(){l="failed",y.forEach(g=>{g(void 0,f)})}function x(){m.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),m=[]}function Vt(g,I,T){const F=I!=="success";switch(m=m.filter(S=>S!==g),l){case"pending":break;case"failed":if(F||!t.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=T,b();return}if(F){f=T,m.length||(s.length?Q():b());return}if(w(),x(),!t.random){const S=t.resources.indexOf(g.resource);S!==-1&&S!==t.index&&(t.index=S)}l="completed",y.forEach(S=>{S(T)})}function Q(){if(l!=="pending")return;w();const g=s.shift();if(g===void 0){if(m.length){h=setTimeout(()=>{w(),l==="pending"&&(x(),b())},t.timeout);return}b();return}const I={status:"pending",resource:g,callback:(T,F)=>{Vt(I,T,F)}};m.push(I),a++,h=setTimeout(Q,t.rotate),n(g,e,I.callback)}return setTimeout(Q),v}function _t(t){const e=u(u({},Le),t);let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const f=Fe(e,c,l,(h,m)=>{r(),a&&a(h,m)});return n.push(f),f}function i(c){return n.find(l=>c(l))||null}return{query:o,find:i,setIndex:c=>{e.index=c},getIndex:()=>e.index,cleanup:r}}function mt(){}const K=Object.create(null);function Oe(t){if(!K[t]){const e=rt(t);if(!e)return;const n=_t(e),r={config:e,redundancy:n};K[t]=r}return K[t]}function _e(t,e,n){let r,o;if(typeof t=="string"){const i=J(t);if(!i)return n(void 0,424),mt;o=i.send;const s=Oe(t);s&&(r=s.redundancy)}else{const i=nt(t);if(i){r=_t(i);const s=t.resources?t.resources[0]:"",c=J(s);c&&(o=c.send)}}return!r||!o?(n(void 0,424),mt):r.query(e,o,n)().abort}const yt="iconify2",L="iconify",At=L+"-count",bt=L+"-version",Nt=36e5,Ae=168;function X(t,e){try{return t.getItem(e)}catch(n){}}function it(t,e,n){try{return t.setItem(e,n),!0}catch(r){}}function xt(t,e){try{t.removeItem(e)}catch(n){}}function Y(t,e){return it(t,At,e.toString())}function Z(t){return parseInt(X(t,At))||0}const V={local:!0,session:!0},zt={local:new Set,session:new Set};let st=!1;function Ne(t){st=t}let A=typeof window=="undefined"?{}:window;function Dt(t){const e=t+"Storage";try{if(A&&A[e]&&typeof A[e].length=="number")return A[e]}catch(n){}V[t]=!1}function Bt(t,e){const n=Dt(t);if(!n)return;const r=X(n,bt);if(r!==yt){if(r){const c=Z(n);for(let l=0;l{const l=L+c.toString(),a=X(n,l);if(typeof a=="string"){try{const f=JSON.parse(a);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&e(f,c))return!0}catch(f){}xt(n,l)}};let s=Z(n);for(let c=s-1;c>=0;c--)i(c)||(c===s-1?(s--,Y(n,s)):zt[t].add(c))}function Rt(){if(!st){Ne(!0);for(const t in V)Bt(t,e=>{const n=e.data,r=e.provider,o=n.prefix,i=k(r,o);if(!et(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function ze(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const r in V)Bt(r,o=>{const i=o.data;return o.provider!==t.provider||i.prefix!==t.prefix||i.lastModified===e});return!0}function De(t,e){st||Rt();function n(r){let o;if(!V[r]||!(o=Dt(r)))return;const i=zt[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=Z(o),!Y(o,s+1))return;const c={cached:Math.floor(Date.now()/Nt),provider:t.provider,data:e};return it(o,L+s.toString(),JSON.stringify(c))}e.lastModified&&!ze(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function wt(){}function Be(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,je(t)}))}function Re(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:r}=t,o=t.iconsToLoad;delete t.iconsToLoad;let i;if(!o||!(i=J(n)))return;i.prepare(n,r,o).forEach(c=>{_e(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{t.missing.add(a)});else try{const a=et(t,l);if(!a.length)return;const f=t.pendingIcons;f&&a.forEach(h=>{f.delete(h)}),De(t,l)}catch(a){console.error(a)}Be(t)})})}))}const $e=(t,e)=>{const n=Me(t,!0,Mt()),r=Te(n);if(!r.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(r.loaded,r.missing,r.pending,wt)}),()=>{l=!1}}const o=Object.create(null),i=[];let s,c;return r.pending.forEach(l=>{const{provider:a,prefix:f}=l;if(f===c&&a===s)return;s=a,c=f,i.push(k(a,f));const h=o[a]||(o[a]=Object.create(null));h[f]||(h[f]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:f,name:h}=l,m=k(a,f),y=m.pendingIcons||(m.pendingIcons=new Set);y.has(h)||(y.add(h),o[a][f].push(h))}),i.forEach(l=>{const{provider:a,prefix:f}=l;o[a][f].length&&Re(l,o[a][f])}),e?Pe(e,r,i):wt};function Ve(t,e){const n=u({},t);for(const r in e){const o=e[r],i=typeof o;r in Lt?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const Qe=/[\s,]+/;function qe(t,e){e.split(Qe).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Ue(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:r(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(t.slice(0,t.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return e}function He(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'"+t+""}function Ke(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Ge(t){return"data:image/svg+xml,"+Ke(t)}function We(t){return'url("'+Ge(t)+'")'}const It=C(u({},Ft),{inline:!1}),Je={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Xe={display:"inline-block"},tt={backgroundColor:"currentColor"},$t={backgroundColor:"transparent"},vt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},St={webkitMask:tt,mask:tt,background:$t};for(const t in St){const e=St[t];for(const n in vt)e[t+n]=vt[n]}const D={};["horizontal","vertical"].forEach(t=>{const e=t.slice(0,1)+"Flip";D[t+"-flip"]=e,D[t.slice(0,1)+"-flip"]=e,D[t+"Flip"]=e});function Ct(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const kt=(t,e)=>{const n=Ve(It,e),r=u({},Je),o=e.mode||"svg",i={},s=e.style,c=typeof s=="object"&&!(s instanceof Array)?s:{};for(let p in e){const d=e[p];if(d!==void 0)switch(p){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[p]=d===!0||d==="true"||d===1;break;case"flip":typeof d=="string"&&qe(n,d);break;case"color":i.color=d;break;case"rotate":typeof d=="string"?n[p]=Ue(d):typeof d=="number"&&(n[p]=d);break;case"ariaHidden":case"aria-hidden":d!==!0&&d!=="true"&&delete r["aria-hidden"];break;default:{const v=D[p];v?(d===!0||d==="true"||d===1)&&(n[v]=!0):It[p]===void 0&&(r[p]=d)}}}const l=de(t,n),a=l.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style=u(u({},i),c),Object.assign(r,a);let p=0,d=e.id;return typeof d=="string"&&(d=d.replace(/-/g,"_")),r.innerHTML=me(l.body,d?()=>d+"ID"+p++:"iconifyVue"),at("svg",r)}const{body:f,width:h,height:m}=t,y=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),w=He(f,C(u({},a),{width:h+"",height:m+""}));return r.style=u(u(u(C(u({},i),{"--svg":We(w),width:Ct(a.width),height:Ct(a.height)}),Xe),y?tt:$t),c),at("span",r)};Mt(!0);ye("",ke);if(typeof document!="undefined"&&typeof window!="undefined"){Rt();const t=window;if(t.IconifyPreload!==void 0){const e=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!le(r))&&console.error(n)}catch(o){console.error(n)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(let n in e){const r="IconifyProviders["+n+"] is invalid.";try{const o=e[n];if(typeof o!="object"||!o||o.resources===void 0)continue;be(n,o)||console.error(r)}catch(o){console.error(r)}}}}const Ye=C(u({},$),{body:""}),Ze=Tt({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,e){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let n;if(typeof t!="string"||(n=R(t,!1,!0))===null)return this.abortLoading(),null;const r=se(n);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:t,abort:$e([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,e&&e(t));const o=["iconify"];return n.prefix!==""&&o.push("iconify--"+n.prefix),n.provider!==""&&o.push("iconify--"+n.provider),{data:r,classes:o}}},render(){this.counter;const t=this.$attrs,e=this.iconMounted?this.getIcon(t.icon,t.onLoad):null;if(!e)return kt(Ye,t);let n=t;return e.classes&&(n=C(u({},t),{class:(typeof t.class=="string"?t.class+" ":"")+e.classes.join(" ")})),kt(u(u({},$),e.data),n)}}),tn={key:0,"aria-hidden":"true"},en=["xlink:href"],nn=Tt({__name:"Icon",props:{icon:_.string,color:_.string,size:_.number.def(16),hoverColor:_.string},setup(t){Yt(s=>({"62c74319":t.hoverColor}));const e=t,n=O(()=>e.icon.startsWith("svg-icon:")),r=O(()=>U(n)?`#icon-${e.icon.split("svg-icon:")[1]}`:e.icon),o=O(()=>!0),i=O(()=>{const{color:s,size:c}=e;return{fontSize:`${c}px`,color:s}});return(s,c)=>(j(),ft(U(Zt),{class:"icon",size:t.size,color:t.color},{default:Gt(()=>[n.value?(j(),q("svg",tn,[Wt("use",{"xlink:href":r.value},null,8,en)])):(j(),q(Xt,{key:1},[o.value?(j(),ft(U(Ze),{key:0,icon:t.icon,style:ut(i.value)},null,8,["icon","style"])):(j(),q("div",{key:1,class:Jt(`${t.icon} iconify`),style:ut(i.value)},null,6))],64))]),_:1},8,["size","color"]))}}),on=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},an=on(nn,[["__scopeId","data-v-49dab17b"]]);export{an as I,on as _}; +var Qt=Object.defineProperty,qt=Object.defineProperties;var Ut=Object.getOwnPropertyDescriptors;var ct=Object.getOwnPropertySymbols;var Ht=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable;var lt=(t,e,n)=>e in t?Qt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=(t,e)=>{for(var n in e||(e={}))Ht.call(e,n)&<(t,n,e[n]);if(ct)for(var n of ct(e))Kt.call(e,n)&<(t,n,e[n]);return t},C=(t,e)=>qt(t,Ut(e));import{q as Tt,af as at,d as O,t as j,T as ft,S as Gt,v as q,x as Wt,u as U,V as ut,M as Jt,Q as Xt,aE as Yt}from"./vue-chunks-DOWhatC1.js";import{p as _}from"./index-B5z15nYm.js";import{B as Zt}from"./element-plus-6v3c1uXT.js";const P=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(t,e,n,r="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return e&&!N(a)?null:a}const i=o[0],s=i.split("-");if(s.length>1){const c={provider:r,prefix:s.shift(),name:s.join("-")};return e&&!N(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:i};return e&&!N(c,n)?null:c}return null},N=(t,e)=>t?!!((t.provider===""||t.provider.match(P))&&(e&&t.prefix===""||t.prefix.match(P))&&t.name.match(P)):!1,jt=Object.freeze({left:0,top:0,width:16,height:16}),B=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$=Object.freeze(u(u({},jt),B)),G=Object.freeze(C(u({},$),{body:"",hidden:!1}));function te(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}function dt(t,e){const n=te(t,e);for(const r in G)r in B?r in t&&!(r in n)&&(n[r]=B[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function ee(t,e){const n=t.icons,r=t.aliases||Object.create(null),o=Object.create(null);function i(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const c=r[s]&&r[s].parent,l=c&&i(c);l&&(o[s]=[c].concat(l))}return o[s]}return(e||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function ne(t,e,n){const r=t.icons,o=t.aliases||Object.create(null);let i={};function s(c){i=dt(r[c]||o[c],i)}return s(e),n.forEach(s),dt(t,i)}function Et(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const r=ee(t);for(const o in r){const i=r[o];i&&(e(o,ne(t,o,i)),n.push(o))}return n}const oe=u({provider:"",aliases:{},not_found:{}},jt);function H(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Pt(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!H(t,oe))return null;const n=e.icons;for(const o in n){const i=n[o];if(!o.match(P)||typeof i.body!="string"||!H(i,G))return null}const r=e.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(P)||typeof s!="string"||!n[s]&&!r[s]||!H(i,G))return null}return e}const ht=Object.create(null);function re(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function k(t,e){const n=ht[t]||(ht[t]=Object.create(null));return n[e]||(n[e]=re(t,e))}function et(t,e){return Pt(e)?Et(e,(n,r)=>{r?t.icons[n]=r:t.missing.add(n)}):[]}function ie(t,e,n){try{if(typeof n.body=="string")return t.icons[e]=u({},n),!0}catch(r){}return!1}let M=!1;function Mt(t){return typeof t=="boolean"&&(M=t),M}function se(t){const e=typeof t=="string"?R(t,!0,M):t;if(e){const n=k(e.provider,e.prefix),r=e.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function ce(t,e){const n=R(t,!0,M);if(!n)return!1;const r=k(n.provider,n.prefix);return ie(r,n.name,e)}function le(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),M&&!e&&!t.prefix){let o=!1;return Pt(t)&&(t.prefix="",Et(t,(i,s)=>{s&&ce(i,s)&&(o=!0)})),o}const n=t.prefix;if(!N({provider:e,prefix:n,name:"a"}))return!1;const r=k(e,n);return!!et(r,t)}const Lt=Object.freeze({width:null,height:null}),Ft=Object.freeze(u(u({},Lt),B)),ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,fe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function pt(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const r=t.split(ae);if(r===null||!r.length)return t;const o=[];let i=r.shift(),s=fe.test(i);for(;;){if(s){const c=parseFloat(i);isNaN(c)?o.push(i):o.push(Math.ceil(c*e*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");s=!s}}const ue=t=>t==="unset"||t==="undefined"||t==="none";function de(t,e){const n=u(u({},$),t),r=u(u({},Ft),e),o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(w=>{const p=[],d=w.hFlip,v=w.vFlip;let b=w.rotate;d?v?b+=2:(p.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),p.push("scale(-1 1)"),o.top=o.left=0):v&&(p.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),p.push("scale(1 -1)"),o.top=o.left=0);let x;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:x=o.height/2+o.top,p.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:p.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:x=o.width/2+o.left,p.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}b%2===1&&(o.left!==o.top&&(x=o.left,o.left=o.top,o.top=x),o.width!==o.height&&(x=o.width,o.width=o.height,o.height=x)),p.length&&(i=''+i+"")});const s=r.width,c=r.height,l=o.width,a=o.height;let f,h;s===null?(h=c===null?"1em":c==="auto"?a:c,f=pt(h,l/a)):(f=s==="auto"?l:s,h=c===null?pt(f,a/l):c==="auto"?a:c);const m={},y=(w,p)=>{ue(p)||(m[w]=p.toString())};return y("width",f),y("height",h),m.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:m,body:i}}const he=/\sid="(\S+)"/g,pe="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ge=0;function me(t,e=pe){const n=[];let r;for(;r=he.exec(t);)n.push(r[1]);if(!n.length)return t;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof e=="function"?e(i):e+(ge++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),t=t.replace(new RegExp(o,"g"),""),t}const W=Object.create(null);function ye(t,e){W[t]=e}function J(t){return W[t]||W[""]}function nt(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const ot=Object.create(null),E=["https://api.simplesvg.com","https://api.unisvg.com"],z=[];for(;E.length>0;)E.length===1||Math.random()>.5?z.push(E.shift()):z.push(E.pop());ot[""]=nt({resources:["https://api.iconify.design"].concat(z)});function be(t,e){const n=nt(e);return n===null?!1:(ot[t]=n,!0)}function rt(t){return ot[t]}const xe=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch(e){}};let gt=xe();function we(t,e){const n=rt(t);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const i=e+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function Ie(t){return t===404}const ve=(t,e,n)=>{const r=[],o=we(t,e),i="icons";let s={type:i,provider:t,prefix:e,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(s),s={type:i,provider:t,prefix:e,icons:[]},c=l.length),s.icons.push(l)}),r.push(s),r};function Se(t){if(typeof t=="string"){const e=rt(t);if(e)return e.path}return"/"}const Ce=(t,e,n)=>{if(!gt){n("abort",424);return}let r=Se(e.provider);switch(e.type){case"icons":{const i=e.prefix,c=e.icons.join(","),l=new URLSearchParams({icons:c});r+=i+".json?"+l.toString();break}case"custom":{const i=e.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;gt(t+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(Ie(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},ke={prepare:ve,send:Ce};function Te(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return t.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,s=o.prefix,c=o.name,l=n[i]||(n[i]=Object.create(null)),a=l[s]||(l[s]=k(i,s));let f;c in a.icons?f=e.loaded:s===""||a.missing.has(c)?f=e.missing:f=e.pending;const h={provider:i,prefix:s,name:c};f.push(h)}),e}function Ot(t,e){t.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==e))})}function je(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const r=t.provider,o=t.prefix;e.forEach(i=>{const s=i.icons,c=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(t.icons[a])s.loaded.push({provider:r,prefix:o,name:a});else if(t.missing.has(a))s.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),s.pending.length!==c&&(n||Ot([t],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let Ee=0;function Pe(t,e,n){const r=Ee++,o=Ot.bind(null,n,r);if(!e.pending.length)return o;const i={id:r,icons:e,callback:t,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function Me(t,e=!0,n=!1){const r=[];return t.forEach(o=>{const i=typeof o=="string"?R(o,e,n):o;i&&r.push(i)}),r}var Le={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Fe(t,e,n,r){const o=t.resources.length,i=t.random?Math.floor(Math.random()*o):t.index;let s;if(t.random){let g=t.resources.slice(0);for(s=[];g.length>1;){const I=Math.floor(Math.random()*g.length);s.push(g[I]),g=g.slice(0,I).concat(g.slice(I+1))}s=s.concat(g)}else s=t.resources.slice(i).concat(t.resources.slice(0,i));const c=Date.now();let l="pending",a=0,f,h=null,m=[],y=[];typeof r=="function"&&y.push(r);function w(){h&&(clearTimeout(h),h=null)}function p(){l==="pending"&&(l="aborted"),w(),m.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),m=[]}function d(g,I){I&&(y=[]),typeof g=="function"&&y.push(g)}function v(){return{startTime:c,payload:e,status:l,queriesSent:a,queriesPending:m.length,subscribe:d,abort:p}}function b(){l="failed",y.forEach(g=>{g(void 0,f)})}function x(){m.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),m=[]}function Vt(g,I,T){const F=I!=="success";switch(m=m.filter(S=>S!==g),l){case"pending":break;case"failed":if(F||!t.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=T,b();return}if(F){f=T,m.length||(s.length?Q():b());return}if(w(),x(),!t.random){const S=t.resources.indexOf(g.resource);S!==-1&&S!==t.index&&(t.index=S)}l="completed",y.forEach(S=>{S(T)})}function Q(){if(l!=="pending")return;w();const g=s.shift();if(g===void 0){if(m.length){h=setTimeout(()=>{w(),l==="pending"&&(x(),b())},t.timeout);return}b();return}const I={status:"pending",resource:g,callback:(T,F)=>{Vt(I,T,F)}};m.push(I),a++,h=setTimeout(Q,t.rotate),n(g,e,I.callback)}return setTimeout(Q),v}function _t(t){const e=u(u({},Le),t);let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const f=Fe(e,c,l,(h,m)=>{r(),a&&a(h,m)});return n.push(f),f}function i(c){return n.find(l=>c(l))||null}return{query:o,find:i,setIndex:c=>{e.index=c},getIndex:()=>e.index,cleanup:r}}function mt(){}const K=Object.create(null);function Oe(t){if(!K[t]){const e=rt(t);if(!e)return;const n=_t(e),r={config:e,redundancy:n};K[t]=r}return K[t]}function _e(t,e,n){let r,o;if(typeof t=="string"){const i=J(t);if(!i)return n(void 0,424),mt;o=i.send;const s=Oe(t);s&&(r=s.redundancy)}else{const i=nt(t);if(i){r=_t(i);const s=t.resources?t.resources[0]:"",c=J(s);c&&(o=c.send)}}return!r||!o?(n(void 0,424),mt):r.query(e,o,n)().abort}const yt="iconify2",L="iconify",At=L+"-count",bt=L+"-version",Nt=36e5,Ae=168;function X(t,e){try{return t.getItem(e)}catch(n){}}function it(t,e,n){try{return t.setItem(e,n),!0}catch(r){}}function xt(t,e){try{t.removeItem(e)}catch(n){}}function Y(t,e){return it(t,At,e.toString())}function Z(t){return parseInt(X(t,At))||0}const V={local:!0,session:!0},zt={local:new Set,session:new Set};let st=!1;function Ne(t){st=t}let A=typeof window=="undefined"?{}:window;function Dt(t){const e=t+"Storage";try{if(A&&A[e]&&typeof A[e].length=="number")return A[e]}catch(n){}V[t]=!1}function Bt(t,e){const n=Dt(t);if(!n)return;const r=X(n,bt);if(r!==yt){if(r){const c=Z(n);for(let l=0;l{const l=L+c.toString(),a=X(n,l);if(typeof a=="string"){try{const f=JSON.parse(a);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&e(f,c))return!0}catch(f){}xt(n,l)}};let s=Z(n);for(let c=s-1;c>=0;c--)i(c)||(c===s-1?(s--,Y(n,s)):zt[t].add(c))}function Rt(){if(!st){Ne(!0);for(const t in V)Bt(t,e=>{const n=e.data,r=e.provider,o=n.prefix,i=k(r,o);if(!et(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function ze(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const r in V)Bt(r,o=>{const i=o.data;return o.provider!==t.provider||i.prefix!==t.prefix||i.lastModified===e});return!0}function De(t,e){st||Rt();function n(r){let o;if(!V[r]||!(o=Dt(r)))return;const i=zt[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=Z(o),!Y(o,s+1))return;const c={cached:Math.floor(Date.now()/Nt),provider:t.provider,data:e};return it(o,L+s.toString(),JSON.stringify(c))}e.lastModified&&!ze(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function wt(){}function Be(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,je(t)}))}function Re(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:r}=t,o=t.iconsToLoad;delete t.iconsToLoad;let i;if(!o||!(i=J(n)))return;i.prepare(n,r,o).forEach(c=>{_e(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{t.missing.add(a)});else try{const a=et(t,l);if(!a.length)return;const f=t.pendingIcons;f&&a.forEach(h=>{f.delete(h)}),De(t,l)}catch(a){console.error(a)}Be(t)})})}))}const $e=(t,e)=>{const n=Me(t,!0,Mt()),r=Te(n);if(!r.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(r.loaded,r.missing,r.pending,wt)}),()=>{l=!1}}const o=Object.create(null),i=[];let s,c;return r.pending.forEach(l=>{const{provider:a,prefix:f}=l;if(f===c&&a===s)return;s=a,c=f,i.push(k(a,f));const h=o[a]||(o[a]=Object.create(null));h[f]||(h[f]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:f,name:h}=l,m=k(a,f),y=m.pendingIcons||(m.pendingIcons=new Set);y.has(h)||(y.add(h),o[a][f].push(h))}),i.forEach(l=>{const{provider:a,prefix:f}=l;o[a][f].length&&Re(l,o[a][f])}),e?Pe(e,r,i):wt};function Ve(t,e){const n=u({},t);for(const r in e){const o=e[r],i=typeof o;r in Lt?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const Qe=/[\s,]+/;function qe(t,e){e.split(Qe).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Ue(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:r(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(t.slice(0,t.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return e}function He(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'"+t+""}function Ke(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Ge(t){return"data:image/svg+xml,"+Ke(t)}function We(t){return'url("'+Ge(t)+'")'}const It=C(u({},Ft),{inline:!1}),Je={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Xe={display:"inline-block"},tt={backgroundColor:"currentColor"},$t={backgroundColor:"transparent"},vt={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},St={webkitMask:tt,mask:tt,background:$t};for(const t in St){const e=St[t];for(const n in vt)e[t+n]=vt[n]}const D={};["horizontal","vertical"].forEach(t=>{const e=t.slice(0,1)+"Flip";D[t+"-flip"]=e,D[t.slice(0,1)+"-flip"]=e,D[t+"Flip"]=e});function Ct(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const kt=(t,e)=>{const n=Ve(It,e),r=u({},Je),o=e.mode||"svg",i={},s=e.style,c=typeof s=="object"&&!(s instanceof Array)?s:{};for(let p in e){const d=e[p];if(d!==void 0)switch(p){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[p]=d===!0||d==="true"||d===1;break;case"flip":typeof d=="string"&&qe(n,d);break;case"color":i.color=d;break;case"rotate":typeof d=="string"?n[p]=Ue(d):typeof d=="number"&&(n[p]=d);break;case"ariaHidden":case"aria-hidden":d!==!0&&d!=="true"&&delete r["aria-hidden"];break;default:{const v=D[p];v?(d===!0||d==="true"||d===1)&&(n[v]=!0):It[p]===void 0&&(r[p]=d)}}}const l=de(t,n),a=l.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style=u(u({},i),c),Object.assign(r,a);let p=0,d=e.id;return typeof d=="string"&&(d=d.replace(/-/g,"_")),r.innerHTML=me(l.body,d?()=>d+"ID"+p++:"iconifyVue"),at("svg",r)}const{body:f,width:h,height:m}=t,y=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),w=He(f,C(u({},a),{width:h+"",height:m+""}));return r.style=u(u(u(C(u({},i),{"--svg":We(w),width:Ct(a.width),height:Ct(a.height)}),Xe),y?tt:$t),c),at("span",r)};Mt(!0);ye("",ke);if(typeof document!="undefined"&&typeof window!="undefined"){Rt();const t=window;if(t.IconifyPreload!==void 0){const e=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!le(r))&&console.error(n)}catch(o){console.error(n)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(let n in e){const r="IconifyProviders["+n+"] is invalid.";try{const o=e[n];if(typeof o!="object"||!o||o.resources===void 0)continue;be(n,o)||console.error(r)}catch(o){console.error(r)}}}}const Ye=C(u({},$),{body:""}),Ze=Tt({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,e){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let n;if(typeof t!="string"||(n=R(t,!1,!0))===null)return this.abortLoading(),null;const r=se(n);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:t,abort:$e([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,e&&e(t));const o=["iconify"];return n.prefix!==""&&o.push("iconify--"+n.prefix),n.provider!==""&&o.push("iconify--"+n.provider),{data:r,classes:o}}},render(){this.counter;const t=this.$attrs,e=this.iconMounted?this.getIcon(t.icon,t.onLoad):null;if(!e)return kt(Ye,t);let n=t;return e.classes&&(n=C(u({},t),{class:(typeof t.class=="string"?t.class+" ":"")+e.classes.join(" ")})),kt(u(u({},$),e.data),n)}}),tn={key:0,"aria-hidden":"true"},en=["xlink:href"],nn=Tt({__name:"Icon",props:{icon:_.string,color:_.string,size:_.number.def(16),hoverColor:_.string},setup(t){Yt(s=>({"62c74319":t.hoverColor}));const e=t,n=O(()=>e.icon.startsWith("svg-icon:")),r=O(()=>U(n)?`#icon-${e.icon.split("svg-icon:")[1]}`:e.icon),o=O(()=>!0),i=O(()=>{const{color:s,size:c}=e;return{fontSize:`${c}px`,color:s}});return(s,c)=>(j(),ft(U(Zt),{class:"icon",size:t.size,color:t.color},{default:Gt(()=>[n.value?(j(),q("svg",tn,[Wt("use",{"xlink:href":r.value},null,8,en)])):(j(),q(Xt,{key:1},[o.value?(j(),ft(U(Ze),{key:0,icon:t.icon,style:ut(i.value)},null,8,["icon","style"])):(j(),q("div",{key:1,class:Jt(`${t.icon} iconify`),style:ut(i.value)},null,6))],64))]),_:1},8,["size","color"]))}}),on=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},an=on(nn,[["__scopeId","data-v-49dab17b"]]);export{an as I,on as _}; diff --git a/assets/Icon-Bx7yon6V.js b/assets/Icon-BntWs4Mz.js similarity index 80% rename from assets/Icon-Bx7yon6V.js rename to assets/Icon-BntWs4Mz.js index 19ec439b..b21ce03b 100644 --- a/assets/Icon-Bx7yon6V.js +++ b/assets/Icon-BntWs4Mz.js @@ -1 +1 @@ -import{_ as a}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as d}from"./Infotip.vue_vue_type_script_setup_true_lang-C9SjmiOy.js";import{u as t}from"./useIcon-Bk4x_lwM.js";import{_ as c}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{I as n}from"./Icon-Bwi9LaBZ.js";import{q as y,t as g,v as h,P as e,u as o,S as i,x as l,W as s,Q as k}from"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Highlight.vue_vue_type_script_lang-DogC43qc.js";const v={class:"flex justify-between"},x={class:"flex justify-between"},I={class:"flex justify-between"},S=y({__name:"Icon",setup(b){const f=m=>{m==="访问地址"&&window.open("https://iconify.design/")},p=t({icon:"svg-icon:peoples"}),r=t({icon:"svg-icon:money"}),_=t({icon:"ep:aim"}),u=t({icon:"ep:alarm-clock"});return(m,w)=>(g(),h(k,null,[e(o(d),{"show-index":!1,title:"推荐使用 Iconify 组件",schema:[{label:"Iconify组件基本包含所有的图标,你可以查询到你想要的任何图标。并且打包只会打包所用到的图标。",keys:["Iconify"]},{label:"访问地址",keys:["访问地址"]}],onClick:f}),e(o(a),{title:"本地图标"},{default:i(()=>[l("div",v,[e(o(n),{icon:"svg-icon:peoples"}),e(o(n),{icon:"svg-icon:money"}),e(o(n),{icon:"svg-icon:message"}),e(o(n),{icon:"svg-icon:shopping"})])]),_:1}),e(o(a),{title:"Iconify组件"},{default:i(()=>[l("div",x,[e(o(n),{icon:"ep:aim"}),e(o(n),{icon:"ep:alarm-clock"}),e(o(n),{icon:"ep:baseball"}),e(o(n),{icon:"ep:chat-line-round"})])]),_:1}),e(o(a),{title:"useIcon"},{default:i(()=>[l("div",I,[e(o(c),{icon:o(p)},{default:i(()=>[s("Button")]),_:1},8,["icon"]),e(o(c),{icon:o(r)},{default:i(()=>[s("Button")]),_:1},8,["icon"]),e(o(c),{icon:o(_)},{default:i(()=>[s("Button")]),_:1},8,["icon"]),e(o(c),{icon:o(u)},{default:i(()=>[s("Button")]),_:1},8,["icon"])])]),_:1})],64))}});export{S as default}; +import{_ as a}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as d}from"./Infotip.vue_vue_type_script_setup_true_lang-Bi8BypLc.js";import{u as t}from"./useIcon-Dzh8BHEZ.js";import{_ as c}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{I as n}from"./Icon-B-0CON7P.js";import{q as y,t as g,v as h,P as e,u as o,S as i,x as l,W as s,Q as k}from"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Highlight.vue_vue_type_script_lang-BkEaAxMF.js";const v={class:"flex justify-between"},x={class:"flex justify-between"},I={class:"flex justify-between"},S=y({__name:"Icon",setup(b){const f=m=>{m==="访问地址"&&window.open("https://iconify.design/")},p=t({icon:"svg-icon:peoples"}),r=t({icon:"svg-icon:money"}),_=t({icon:"ep:aim"}),u=t({icon:"ep:alarm-clock"});return(m,w)=>(g(),h(k,null,[e(o(d),{"show-index":!1,title:"推荐使用 Iconify 组件",schema:[{label:"Iconify组件基本包含所有的图标,你可以查询到你想要的任何图标。并且打包只会打包所用到的图标。",keys:["Iconify"]},{label:"访问地址",keys:["访问地址"]}],onClick:f}),e(o(a),{title:"本地图标"},{default:i(()=>[l("div",v,[e(o(n),{icon:"svg-icon:peoples"}),e(o(n),{icon:"svg-icon:money"}),e(o(n),{icon:"svg-icon:message"}),e(o(n),{icon:"svg-icon:shopping"})])]),_:1}),e(o(a),{title:"Iconify组件"},{default:i(()=>[l("div",x,[e(o(n),{icon:"ep:aim"}),e(o(n),{icon:"ep:alarm-clock"}),e(o(n),{icon:"ep:baseball"}),e(o(n),{icon:"ep:chat-line-round"})])]),_:1}),e(o(a),{title:"useIcon"},{default:i(()=>[l("div",I,[e(o(c),{icon:o(p)},{default:i(()=>[s("Button")]),_:1},8,["icon"]),e(o(c),{icon:o(r)},{default:i(()=>[s("Button")]),_:1},8,["icon"]),e(o(c),{icon:o(_)},{default:i(()=>[s("Button")]),_:1},8,["icon"]),e(o(c),{icon:o(u)},{default:i(()=>[s("Button")]),_:1},8,["icon"])])]),_:1})],64))}});export{S as default}; diff --git a/assets/IconPicker-Cl9U2e9G.js b/assets/IconPicker-CNS-lt2r.js similarity index 64% rename from assets/IconPicker-Cl9U2e9G.js rename to assets/IconPicker-CNS-lt2r.js index 9afd0808..bbdce177 100644 --- a/assets/IconPicker-Cl9U2e9G.js +++ b/assets/IconPicker-CNS-lt2r.js @@ -1 +1 @@ -import{I as a}from"./IconPicker-Cmmw5lYe.js";import{_ as m}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{q as i,r as n,t as p,T as s,S as l,P as u,u as t}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */const w=i({__name:"IconPicker",setup(c){const o=n("");return(f,e)=>(p(),s(t(m),{title:"图标选择器"},{default:l(()=>[u(t(a),{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=r=>o.value=r)},null,8,["modelValue"])]),_:1}))}});export{w as default}; +import{I as a}from"./IconPicker-WxbdLOo_.js";import{_ as m}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{q as i,r as n,t as p,T as s,S as l,P as u,u as t}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */const w=i({__name:"IconPicker",setup(c){const o=n("");return(f,e)=>(p(),s(t(m),{title:"图标选择器"},{default:l(()=>[u(t(a),{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=r=>o.value=r)},null,8,["modelValue"])]),_:1}))}});export{w as default}; diff --git a/assets/IconPicker-Cmmw5lYe.js b/assets/IconPicker-WxbdLOo_.js similarity index 99% rename from assets/IconPicker-Cmmw5lYe.js rename to assets/IconPicker-WxbdLOo_.js index 8c085d12..34a39f7d 100644 --- a/assets/IconPicker-Cmmw5lYe.js +++ b/assets/IconPicker-WxbdLOo_.js @@ -1 +1 @@ -var j=(v,u,n)=>new Promise((x,p)=>{var l=s=>{try{g(n.next(s))}catch(f){p(f)}},q=s=>{try{g(n.throw(s))}catch(f){p(f)}},g=s=>s.done?x(s.value):Promise.resolve(s.value).then(l,q);g((n=n.apply(v,u)).next())});import{I as M,_ as D}from"./Icon-Bwi9LaBZ.js";import{u as F}from"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css *//* empty css */import{q as $,aF as L,d as b,u as e,r as k,w as Q,n as S,t as h,v as y,P as o,S as w,x as V,V as _,T as W,Y,Q as C,a8 as P}from"./vue-chunks-DOWhatC1.js";import{A as E,f as G,a4 as H,a5 as J,a6 as K,a7 as O}from"./element-plus-6v3c1uXT.js";const R={name:"Element Plus",prefix:"ep",icons:["ep:add-location","ep:aim","ep:alarm-clock","ep:apple","ep:arrow-down","ep:arrow-down-bold","ep:arrow-left","ep:arrow-left-bold","ep:arrow-right","ep:arrow-right-bold","ep:arrow-up","ep:arrow-up-bold","ep:avatar","ep:back","ep:baseball","ep:basketball","ep:bell","ep:bell-filled","ep:bicycle","ep:bottom","ep:bottom-left","ep:bottom-right","ep:bowl","ep:box","ep:briefcase","ep:brush","ep:brush-filled","ep:burger","ep:calendar","ep:camera","ep:camera-filled","ep:caret-bottom","ep:caret-left","ep:caret-right","ep:caret-top","ep:cellphone","ep:chat-dot-round","ep:chat-dot-square","ep:chat-line-round","ep:chat-line-square","ep:chat-round","ep:chat-square","ep:check","ep:checked","ep:cherry","ep:chicken","ep:chrome-filled","ep:circle-check","ep:circle-check-filled","ep:circle-close","ep:circle-close-filled","ep:circle-plus","ep:circle-plus-filled","ep:clock","ep:close","ep:close-bold","ep:cloudy","ep:coffee","ep:coffee-cup","ep:coin","ep:cold-drink","ep:collection","ep:collection-tag","ep:comment","ep:compass","ep:connection","ep:coordinate","ep:copy-document","ep:cpu","ep:credit-card","ep:crop","ep:d-arrow-left","ep:d-arrow-right","ep:d-caret","ep:data-analysis","ep:data-board","ep:data-line","ep:delete","ep:delete-filled","ep:delete-location","ep:dessert","ep:discount","ep:dish","ep:dish-dot","ep:document","ep:document-add","ep:document-checked","ep:document-copy","ep:document-delete","ep:document-remove","ep:download","ep:drizzling","ep:edit","ep:edit-pen","ep:eleme","ep:eleme-filled","ep:element-plus","ep:expand","ep:failed","ep:female","ep:files","ep:film","ep:filter","ep:finished","ep:first-aid-kit","ep:flag","ep:fold","ep:folder","ep:folder-add","ep:folder-checked","ep:folder-delete","ep:folder-opened","ep:folder-remove","ep:food","ep:football","ep:fork-spoon","ep:fries","ep:full-screen","ep:goblet","ep:goblet-full","ep:goblet-square","ep:goblet-square-full","ep:gold-medal","ep:goods","ep:goods-filled","ep:grape","ep:grid","ep:guide","ep:handbag","ep:headset","ep:help","ep:help-filled","ep:hide","ep:histogram","ep:home-filled","ep:hot-water","ep:house","ep:ice-cream","ep:ice-cream-round","ep:ice-cream-square","ep:ice-drink","ep:ice-tea","ep:info-filled","ep:iphone","ep:key","ep:knife-fork","ep:lightning","ep:link","ep:list","ep:loading","ep:location","ep:location-filled","ep:location-information","ep:lock","ep:lollipop","ep:magic-stick","ep:magnet","ep:male","ep:management","ep:map-location","ep:medal","ep:memo","ep:menu","ep:message","ep:message-box","ep:mic","ep:microphone","ep:milk-tea","ep:minus","ep:money","ep:monitor","ep:moon","ep:moon-night","ep:more","ep:more-filled","ep:mostly-cloudy","ep:mouse","ep:mug","ep:mute","ep:mute-notification","ep:no-smoking","ep:notebook","ep:notification","ep:odometer","ep:office-building","ep:open","ep:operation","ep:opportunity","ep:orange","ep:paperclip","ep:partly-cloudy","ep:pear","ep:phone","ep:phone-filled","ep:picture","ep:picture-filled","ep:picture-rounded","ep:pie-chart","ep:place","ep:platform","ep:plus","ep:pointer","ep:position","ep:postcard","ep:pouring","ep:present","ep:price-tag","ep:printer","ep:promotion","ep:quartz-watch","ep:question-filled","ep:rank","ep:reading","ep:reading-lamp","ep:refresh","ep:refresh-left","ep:refresh-right","ep:refrigerator","ep:remove","ep:remove-filled","ep:right","ep:scale-to-original","ep:school","ep:scissor","ep:search","ep:select","ep:sell","ep:semi-select","ep:service","ep:set-up","ep:setting","ep:share","ep:ship","ep:shop","ep:shopping-bag","ep:shopping-cart","ep:shopping-cart-full","ep:shopping-trolley","ep:smoking","ep:soccer","ep:sold-out","ep:sort","ep:sort-down","ep:sort-up","ep:stamp","ep:star","ep:star-filled","ep:stopwatch","ep:success-filled","ep:sugar","ep:suitcase","ep:suitcase-line","ep:sunny","ep:sunrise","ep:sunset","ep:switch","ep:switch-button","ep:switch-filled","ep:takeaway-box","ep:ticket","ep:tickets","ep:timer","ep:toilet-paper","ep:tools","ep:top","ep:top-left","ep:top-right","ep:trend-charts","ep:trophy","ep:trophy-base","ep:turn-off","ep:umbrella","ep:unlock","ep:upload","ep:upload-filled","ep:user","ep:user-filled","ep:van","ep:video-camera","ep:video-camera-filled","ep:video-pause","ep:video-play","ep:view","ep:wallet","ep:wallet-filled","ep:warn-triangle-filled","ep:warning","ep:warning-filled","ep:watch","ep:watermelon","ep:wind-power","ep:zoom-in","ep:zoom-out"]},X={name:"Ant Design Icons",prefix:"ant-design",icons:["ant-design:account-book-filled","ant-design:account-book-outlined","ant-design:account-book-twotone","ant-design:aim-outlined","ant-design:alert-filled","ant-design:alert-outlined","ant-design:alert-twotone","ant-design:alibaba-outlined","ant-design:align-center-outlined","ant-design:align-left-outlined","ant-design:align-right-outlined","ant-design:alipay-circle-filled","ant-design:alipay-circle-outlined","ant-design:alipay-outlined","ant-design:alipay-square-filled","ant-design:aliwangwang-filled","ant-design:aliwangwang-outlined","ant-design:aliyun-outlined","ant-design:amazon-circle-filled","ant-design:amazon-outlined","ant-design:amazon-square-filled","ant-design:android-filled","ant-design:android-outlined","ant-design:ant-cloud-outlined","ant-design:ant-design-outlined","ant-design:apartment-outlined","ant-design:api-filled","ant-design:api-outlined","ant-design:api-twotone","ant-design:apple-filled","ant-design:apple-outlined","ant-design:appstore-add-outlined","ant-design:appstore-filled","ant-design:appstore-outlined","ant-design:appstore-twotone","ant-design:area-chart-outlined","ant-design:arrow-down-outlined","ant-design:arrow-left-outlined","ant-design:arrow-right-outlined","ant-design:arrow-up-outlined","ant-design:arrows-alt-outlined","ant-design:audio-filled","ant-design:audio-muted-outlined","ant-design:audio-outlined","ant-design:audio-twotone","ant-design:audit-outlined","ant-design:backward-filled","ant-design:backward-outlined","ant-design:bank-filled","ant-design:bank-outlined","ant-design:bank-twotone","ant-design:bar-chart-outlined","ant-design:barcode-outlined","ant-design:bars-outlined","ant-design:behance-circle-filled","ant-design:behance-outlined","ant-design:behance-square-filled","ant-design:behance-square-outlined","ant-design:bell-filled","ant-design:bell-outlined","ant-design:bell-twotone","ant-design:bg-colors-outlined","ant-design:block-outlined","ant-design:bold-outlined","ant-design:book-filled","ant-design:book-outlined","ant-design:book-twotone","ant-design:border-bottom-outlined","ant-design:border-horizontal-outlined","ant-design:border-inner-outlined","ant-design:border-left-outlined","ant-design:border-outer-outlined","ant-design:border-outlined","ant-design:border-right-outlined","ant-design:border-top-outlined","ant-design:border-verticle-outlined","ant-design:borderless-table-outlined","ant-design:box-plot-filled","ant-design:box-plot-outlined","ant-design:box-plot-twotone","ant-design:branches-outlined","ant-design:bug-filled","ant-design:bug-outlined","ant-design:bug-twotone","ant-design:build-filled","ant-design:build-outlined","ant-design:build-twotone","ant-design:bulb-filled","ant-design:bulb-outlined","ant-design:bulb-twotone","ant-design:calculator-filled","ant-design:calculator-outlined","ant-design:calculator-twotone","ant-design:calendar-filled","ant-design:calendar-outlined","ant-design:calendar-twotone","ant-design:camera-filled","ant-design:camera-outlined","ant-design:camera-twotone","ant-design:car-filled","ant-design:car-outlined","ant-design:car-twotone","ant-design:caret-down-filled","ant-design:caret-down-outlined","ant-design:caret-left-filled","ant-design:caret-left-outlined","ant-design:caret-right-filled","ant-design:caret-right-outlined","ant-design:caret-up-filled","ant-design:caret-up-outlined","ant-design:carry-out-filled","ant-design:carry-out-outlined","ant-design:carry-out-twotone","ant-design:check-circle-filled","ant-design:check-circle-outlined","ant-design:check-circle-twotone","ant-design:check-outlined","ant-design:check-square-filled","ant-design:check-square-outlined","ant-design:check-square-twotone","ant-design:chrome-filled","ant-design:chrome-outlined","ant-design:ci-circle-filled","ant-design:ci-circle-outlined","ant-design:ci-circle-twotone","ant-design:ci-outlined","ant-design:ci-twotone","ant-design:clear-outlined","ant-design:clock-circle-filled","ant-design:clock-circle-outlined","ant-design:clock-circle-twotone","ant-design:close-circle-filled","ant-design:close-circle-outlined","ant-design:close-circle-twotone","ant-design:close-outlined","ant-design:close-square-filled","ant-design:close-square-outlined","ant-design:close-square-twotone","ant-design:cloud-download-outlined","ant-design:cloud-filled","ant-design:cloud-outlined","ant-design:cloud-server-outlined","ant-design:cloud-sync-outlined","ant-design:cloud-twotone","ant-design:cloud-upload-outlined","ant-design:cluster-outlined","ant-design:code-filled","ant-design:code-outlined","ant-design:code-sandbox-circle-filled","ant-design:code-sandbox-outlined","ant-design:code-sandbox-square-filled","ant-design:code-twotone","ant-design:codepen-circle-filled","ant-design:codepen-circle-outlined","ant-design:codepen-outlined","ant-design:codepen-square-filled","ant-design:coffee-outlined","ant-design:column-height-outlined","ant-design:column-width-outlined","ant-design:comment-outlined","ant-design:compass-filled","ant-design:compass-outlined","ant-design:compass-twotone","ant-design:compress-outlined","ant-design:console-sql-outlined","ant-design:contacts-filled","ant-design:contacts-outlined","ant-design:contacts-twotone","ant-design:container-filled","ant-design:container-outlined","ant-design:container-twotone","ant-design:control-filled","ant-design:control-outlined","ant-design:control-twotone","ant-design:copy-filled","ant-design:copy-outlined","ant-design:copy-twotone","ant-design:copyright-circle-filled","ant-design:copyright-circle-outlined","ant-design:copyright-circle-twotone","ant-design:copyright-outlined","ant-design:copyright-twotone","ant-design:credit-card-filled","ant-design:credit-card-outlined","ant-design:credit-card-twotone","ant-design:crown-filled","ant-design:crown-outlined","ant-design:crown-twotone","ant-design:customer-service-filled","ant-design:customer-service-outlined","ant-design:customer-service-twotone","ant-design:dash-outlined","ant-design:dashboard-filled","ant-design:dashboard-outlined","ant-design:dashboard-twotone","ant-design:database-filled","ant-design:database-outlined","ant-design:database-twotone","ant-design:delete-column-outlined","ant-design:delete-filled","ant-design:delete-outlined","ant-design:delete-row-outlined","ant-design:delete-twotone","ant-design:delivered-procedure-outlined","ant-design:deployment-unit-outlined","ant-design:desktop-outlined","ant-design:diff-filled","ant-design:diff-outlined","ant-design:diff-twotone","ant-design:dingding-outlined","ant-design:dingtalk-circle-filled","ant-design:dingtalk-outlined","ant-design:dingtalk-square-filled","ant-design:disconnect-outlined","ant-design:dislike-filled","ant-design:dislike-outlined","ant-design:dislike-twotone","ant-design:dollar-circle-filled","ant-design:dollar-circle-outlined","ant-design:dollar-circle-twotone","ant-design:dollar-outlined","ant-design:dollar-twotone","ant-design:dot-chart-outlined","ant-design:double-left-outlined","ant-design:double-right-outlined","ant-design:down-circle-filled","ant-design:down-circle-outlined","ant-design:down-circle-twotone","ant-design:down-outlined","ant-design:down-square-filled","ant-design:down-square-outlined","ant-design:down-square-twotone","ant-design:download-outlined","ant-design:drag-outlined","ant-design:dribbble-circle-filled","ant-design:dribbble-outlined","ant-design:dribbble-square-filled","ant-design:dribbble-square-outlined","ant-design:dropbox-circle-filled","ant-design:dropbox-outlined","ant-design:dropbox-square-filled","ant-design:edit-filled","ant-design:edit-outlined","ant-design:edit-twotone","ant-design:ellipsis-outlined","ant-design:enter-outlined","ant-design:environment-filled","ant-design:environment-outlined","ant-design:environment-twotone","ant-design:euro-circle-filled","ant-design:euro-circle-outlined","ant-design:euro-circle-twotone","ant-design:euro-outlined","ant-design:euro-twotone","ant-design:exception-outlined","ant-design:exclamation-circle-filled","ant-design:exclamation-circle-outlined","ant-design:exclamation-circle-twotone","ant-design:exclamation-outlined","ant-design:expand-alt-outlined","ant-design:expand-outlined","ant-design:experiment-filled","ant-design:experiment-outlined","ant-design:experiment-twotone","ant-design:export-outlined","ant-design:eye-filled","ant-design:eye-invisible-filled","ant-design:eye-invisible-outlined","ant-design:eye-invisible-twotone","ant-design:eye-outlined","ant-design:eye-twotone","ant-design:facebook-filled","ant-design:facebook-outlined","ant-design:fall-outlined","ant-design:fast-backward-filled","ant-design:fast-backward-outlined","ant-design:fast-forward-filled","ant-design:fast-forward-outlined","ant-design:field-binary-outlined","ant-design:field-number-outlined","ant-design:field-string-outlined","ant-design:field-time-outlined","ant-design:file-add-filled","ant-design:file-add-outlined","ant-design:file-add-twotone","ant-design:file-done-outlined","ant-design:file-excel-filled","ant-design:file-excel-outlined","ant-design:file-excel-twotone","ant-design:file-exclamation-filled","ant-design:file-exclamation-outlined","ant-design:file-exclamation-twotone","ant-design:file-filled","ant-design:file-gif-outlined","ant-design:file-image-filled","ant-design:file-image-outlined","ant-design:file-image-twotone","ant-design:file-jpg-outlined","ant-design:file-markdown-filled","ant-design:file-markdown-outlined","ant-design:file-markdown-twotone","ant-design:file-outlined","ant-design:file-pdf-filled","ant-design:file-pdf-outlined","ant-design:file-pdf-twotone","ant-design:file-ppt-filled","ant-design:file-ppt-outlined","ant-design:file-ppt-twotone","ant-design:file-protect-outlined","ant-design:file-search-outlined","ant-design:file-sync-outlined","ant-design:file-text-filled","ant-design:file-text-outlined","ant-design:file-text-twotone","ant-design:file-twotone","ant-design:file-unknown-filled","ant-design:file-unknown-outlined","ant-design:file-unknown-twotone","ant-design:file-word-filled","ant-design:file-word-outlined","ant-design:file-word-twotone","ant-design:file-zip-filled","ant-design:file-zip-outlined","ant-design:file-zip-twotone","ant-design:filter-filled","ant-design:filter-outlined","ant-design:filter-twotone","ant-design:fire-filled","ant-design:fire-outlined","ant-design:fire-twotone","ant-design:flag-filled","ant-design:flag-outlined","ant-design:flag-twotone","ant-design:folder-add-filled","ant-design:folder-add-outlined","ant-design:folder-add-twotone","ant-design:folder-filled","ant-design:folder-open-filled","ant-design:folder-open-outlined","ant-design:folder-open-twotone","ant-design:folder-outlined","ant-design:folder-twotone","ant-design:folder-view-outlined","ant-design:font-colors-outlined","ant-design:font-size-outlined","ant-design:fork-outlined","ant-design:form-outlined","ant-design:format-painter-filled","ant-design:format-painter-outlined","ant-design:forward-filled","ant-design:forward-outlined","ant-design:frown-filled","ant-design:frown-outlined","ant-design:frown-twotone","ant-design:fullscreen-exit-outlined","ant-design:fullscreen-outlined","ant-design:function-outlined","ant-design:fund-filled","ant-design:fund-outlined","ant-design:fund-projection-screen-outlined","ant-design:fund-twotone","ant-design:fund-view-outlined","ant-design:funnel-plot-filled","ant-design:funnel-plot-outlined","ant-design:funnel-plot-twotone","ant-design:gateway-outlined","ant-design:gif-outlined","ant-design:gift-filled","ant-design:gift-outlined","ant-design:gift-twotone","ant-design:github-filled","ant-design:github-outlined","ant-design:gitlab-filled","ant-design:gitlab-outlined","ant-design:global-outlined","ant-design:gold-filled","ant-design:gold-outlined","ant-design:gold-twotone","ant-design:golden-filled","ant-design:google-circle-filled","ant-design:google-outlined","ant-design:google-plus-circle-filled","ant-design:google-plus-outlined","ant-design:google-plus-square-filled","ant-design:google-square-filled","ant-design:group-outlined","ant-design:hdd-filled","ant-design:hdd-outlined","ant-design:hdd-twotone","ant-design:heart-filled","ant-design:heart-outlined","ant-design:heart-twotone","ant-design:heat-map-outlined","ant-design:highlight-filled","ant-design:highlight-outlined","ant-design:highlight-twotone","ant-design:history-outlined","ant-design:holder-outlined","ant-design:home-filled","ant-design:home-outlined","ant-design:home-twotone","ant-design:hourglass-filled","ant-design:hourglass-outlined","ant-design:hourglass-twotone","ant-design:html5-filled","ant-design:html5-outlined","ant-design:html5-twotone","ant-design:idcard-filled","ant-design:idcard-outlined","ant-design:idcard-twotone","ant-design:ie-circle-filled","ant-design:ie-outlined","ant-design:ie-square-filled","ant-design:import-outlined","ant-design:inbox-outlined","ant-design:info-circle-filled","ant-design:info-circle-outlined","ant-design:info-circle-twotone","ant-design:info-outlined","ant-design:insert-row-above-outlined","ant-design:insert-row-below-outlined","ant-design:insert-row-left-outlined","ant-design:insert-row-right-outlined","ant-design:instagram-filled","ant-design:instagram-outlined","ant-design:insurance-filled","ant-design:insurance-outlined","ant-design:insurance-twotone","ant-design:interaction-filled","ant-design:interaction-outlined","ant-design:interaction-twotone","ant-design:issues-close-outlined","ant-design:italic-outlined","ant-design:key-outlined","ant-design:laptop-outlined","ant-design:layout-filled","ant-design:layout-outlined","ant-design:layout-twotone","ant-design:left-circle-filled","ant-design:left-circle-outlined","ant-design:left-circle-twotone","ant-design:left-outlined","ant-design:left-square-filled","ant-design:left-square-outlined","ant-design:left-square-twotone","ant-design:like-filled","ant-design:like-outlined","ant-design:like-twotone","ant-design:line-chart-outlined","ant-design:line-height-outlined","ant-design:line-outlined","ant-design:link-outlined","ant-design:linkedin-filled","ant-design:linkedin-outlined","ant-design:loading-3-quarters-outlined","ant-design:loading-outlined","ant-design:lock-filled","ant-design:lock-outlined","ant-design:lock-twotone","ant-design:login-outlined","ant-design:logout-outlined","ant-design:mac-command-filled","ant-design:mac-command-outlined","ant-design:mail-filled","ant-design:mail-outlined","ant-design:mail-twotone","ant-design:man-outlined","ant-design:medicine-box-filled","ant-design:medicine-box-outlined","ant-design:medicine-box-twotone","ant-design:medium-circle-filled","ant-design:medium-outlined","ant-design:medium-square-filled","ant-design:medium-workmark-outlined","ant-design:meh-filled","ant-design:meh-outlined","ant-design:meh-twotone","ant-design:menu-fold-outlined","ant-design:menu-outlined","ant-design:menu-unfold-outlined","ant-design:merge-cells-outlined","ant-design:message-filled","ant-design:message-outlined","ant-design:message-twotone","ant-design:minus-circle-filled","ant-design:minus-circle-outlined","ant-design:minus-circle-twotone","ant-design:minus-outlined","ant-design:minus-square-filled","ant-design:minus-square-outlined","ant-design:minus-square-twotone","ant-design:mobile-filled","ant-design:mobile-outlined","ant-design:mobile-twotone","ant-design:money-collect-filled","ant-design:money-collect-outlined","ant-design:money-collect-twotone","ant-design:monitor-outlined","ant-design:more-outlined","ant-design:node-collapse-outlined","ant-design:node-expand-outlined","ant-design:node-index-outlined","ant-design:notification-filled","ant-design:notification-outlined","ant-design:notification-twotone","ant-design:number-outlined","ant-design:one-to-one-outlined","ant-design:ordered-list-outlined","ant-design:paper-clip-outlined","ant-design:partition-outlined","ant-design:pause-circle-filled","ant-design:pause-circle-outlined","ant-design:pause-circle-twotone","ant-design:pause-outlined","ant-design:pay-circle-filled","ant-design:pay-circle-outlined","ant-design:percentage-outlined","ant-design:phone-filled","ant-design:phone-outlined","ant-design:phone-twotone","ant-design:pic-center-outlined","ant-design:pic-left-outlined","ant-design:pic-right-outlined","ant-design:picture-filled","ant-design:picture-outlined","ant-design:picture-twotone","ant-design:pie-chart-filled","ant-design:pie-chart-outlined","ant-design:pie-chart-twotone","ant-design:play-circle-filled","ant-design:play-circle-outlined","ant-design:play-circle-twotone","ant-design:play-square-filled","ant-design:play-square-outlined","ant-design:play-square-twotone","ant-design:plus-circle-filled","ant-design:plus-circle-outlined","ant-design:plus-circle-twotone","ant-design:plus-outlined","ant-design:plus-square-filled","ant-design:plus-square-outlined","ant-design:plus-square-twotone","ant-design:pound-circle-filled","ant-design:pound-circle-outlined","ant-design:pound-circle-twotone","ant-design:pound-outlined","ant-design:poweroff-outlined","ant-design:printer-filled","ant-design:printer-outlined","ant-design:printer-twotone","ant-design:profile-filled","ant-design:profile-outlined","ant-design:profile-twotone","ant-design:project-filled","ant-design:project-outlined","ant-design:project-twotone","ant-design:property-safety-filled","ant-design:property-safety-outlined","ant-design:property-safety-twotone","ant-design:pull-request-outlined","ant-design:pushpin-filled","ant-design:pushpin-outlined","ant-design:pushpin-twotone","ant-design:qq-circle-filled","ant-design:qq-outlined","ant-design:qq-square-filled","ant-design:qrcode-outlined","ant-design:question-circle-filled","ant-design:question-circle-outlined","ant-design:question-circle-twotone","ant-design:question-outlined","ant-design:radar-chart-outlined","ant-design:radius-bottomleft-outlined","ant-design:radius-bottomright-outlined","ant-design:radius-setting-outlined","ant-design:radius-upleft-outlined","ant-design:radius-upright-outlined","ant-design:read-filled","ant-design:read-outlined","ant-design:reconciliation-filled","ant-design:reconciliation-outlined","ant-design:reconciliation-twotone","ant-design:red-envelope-filled","ant-design:red-envelope-outlined","ant-design:red-envelope-twotone","ant-design:reddit-circle-filled","ant-design:reddit-outlined","ant-design:reddit-square-filled","ant-design:redo-outlined","ant-design:reload-outlined","ant-design:rest-filled","ant-design:rest-outlined","ant-design:rest-twotone","ant-design:retweet-outlined","ant-design:right-circle-filled","ant-design:right-circle-outlined","ant-design:right-circle-twotone","ant-design:right-outlined","ant-design:right-square-filled","ant-design:right-square-outlined","ant-design:right-square-twotone","ant-design:rise-outlined","ant-design:robot-filled","ant-design:robot-outlined","ant-design:rocket-filled","ant-design:rocket-outlined","ant-design:rocket-twotone","ant-design:rollback-outlined","ant-design:rotate-left-outlined","ant-design:rotate-right-outlined","ant-design:safety-certificate-filled","ant-design:safety-certificate-outlined","ant-design:safety-certificate-twotone","ant-design:safety-outlined","ant-design:save-filled","ant-design:save-outlined","ant-design:save-twotone","ant-design:scan-outlined","ant-design:schedule-filled","ant-design:schedule-outlined","ant-design:schedule-twotone","ant-design:scissor-outlined","ant-design:search-outlined","ant-design:security-scan-filled","ant-design:security-scan-outlined","ant-design:security-scan-twotone","ant-design:select-outlined","ant-design:send-outlined","ant-design:setting-filled","ant-design:setting-outlined","ant-design:setting-twotone","ant-design:shake-outlined","ant-design:share-alt-outlined","ant-design:shop-filled","ant-design:shop-outlined","ant-design:shop-twotone","ant-design:shopping-cart-outlined","ant-design:shopping-filled","ant-design:shopping-outlined","ant-design:shopping-twotone","ant-design:shrink-outlined","ant-design:signal-filled","ant-design:sisternode-outlined","ant-design:sketch-circle-filled","ant-design:sketch-outlined","ant-design:sketch-square-filled","ant-design:skin-filled","ant-design:skin-outlined","ant-design:skin-twotone","ant-design:skype-filled","ant-design:skype-outlined","ant-design:slack-circle-filled","ant-design:slack-outlined","ant-design:slack-square-filled","ant-design:slack-square-outlined","ant-design:sliders-filled","ant-design:sliders-outlined","ant-design:sliders-twotone","ant-design:small-dash-outlined","ant-design:smile-filled","ant-design:smile-outlined","ant-design:smile-twotone","ant-design:snippets-filled","ant-design:snippets-outlined","ant-design:snippets-twotone","ant-design:solution-outlined","ant-design:sort-ascending-outlined","ant-design:sort-descending-outlined","ant-design:sound-filled","ant-design:sound-outlined","ant-design:sound-twotone","ant-design:split-cells-outlined","ant-design:star-filled","ant-design:star-outlined","ant-design:star-twotone","ant-design:step-backward-filled","ant-design:step-backward-outlined","ant-design:step-forward-filled","ant-design:step-forward-outlined","ant-design:stock-outlined","ant-design:stop-filled","ant-design:stop-outlined","ant-design:stop-twotone","ant-design:strikethrough-outlined","ant-design:subnode-outlined","ant-design:swap-left-outlined","ant-design:swap-outlined","ant-design:swap-right-outlined","ant-design:switcher-filled","ant-design:switcher-outlined","ant-design:switcher-twotone","ant-design:sync-outlined","ant-design:table-outlined","ant-design:tablet-filled","ant-design:tablet-outlined","ant-design:tablet-twotone","ant-design:tag-filled","ant-design:tag-outlined","ant-design:tag-twotone","ant-design:tags-filled","ant-design:tags-outlined","ant-design:tags-twotone","ant-design:taobao-circle-filled","ant-design:taobao-circle-outlined","ant-design:taobao-outlined","ant-design:taobao-square-filled","ant-design:team-outlined","ant-design:thunderbolt-filled","ant-design:thunderbolt-outlined","ant-design:thunderbolt-twotone","ant-design:to-top-outlined","ant-design:tool-filled","ant-design:tool-outlined","ant-design:tool-twotone","ant-design:trademark-circle-filled","ant-design:trademark-circle-outlined","ant-design:trademark-circle-twotone","ant-design:trademark-outlined","ant-design:transaction-outlined","ant-design:translation-outlined","ant-design:trophy-filled","ant-design:trophy-outlined","ant-design:trophy-twotone","ant-design:twitter-circle-filled","ant-design:twitter-outlined","ant-design:twitter-square-filled","ant-design:underline-outlined","ant-design:undo-outlined","ant-design:ungroup-outlined","ant-design:unlock-filled","ant-design:unlock-outlined","ant-design:unlock-twotone","ant-design:unordered-list-outlined","ant-design:up-circle-filled","ant-design:up-circle-outlined","ant-design:up-circle-twotone","ant-design:up-outlined","ant-design:up-square-filled","ant-design:up-square-outlined","ant-design:up-square-twotone","ant-design:upload-outlined","ant-design:usb-filled","ant-design:usb-outlined","ant-design:usb-twotone","ant-design:user-add-outlined","ant-design:user-delete-outlined","ant-design:user-outlined","ant-design:user-switch-outlined","ant-design:usergroup-add-outlined","ant-design:usergroup-delete-outlined","ant-design:verified-outlined","ant-design:vertical-align-bottom-outlined","ant-design:vertical-align-middle-outlined","ant-design:vertical-align-top-outlined","ant-design:vertical-left-outlined","ant-design:vertical-right-outlined","ant-design:video-camera-add-outlined","ant-design:video-camera-filled","ant-design:video-camera-outlined","ant-design:video-camera-twotone","ant-design:wallet-filled","ant-design:wallet-outlined","ant-design:wallet-twotone","ant-design:warning-filled","ant-design:warning-outlined","ant-design:warning-twotone","ant-design:wechat-filled","ant-design:wechat-outlined","ant-design:weibo-circle-filled","ant-design:weibo-circle-outlined","ant-design:weibo-outlined","ant-design:weibo-square-filled","ant-design:weibo-square-outlined","ant-design:whats-app-outlined","ant-design:wifi-outlined","ant-design:windows-filled","ant-design:windows-outlined","ant-design:woman-outlined","ant-design:yahoo-filled","ant-design:yahoo-outlined","ant-design:youtube-filled","ant-design:youtube-outlined","ant-design:yuque-filled","ant-design:yuque-outlined","ant-design:zhihu-circle-filled","ant-design:zhihu-outlined","ant-design:zhihu-square-filled","ant-design:zoom-in-outlined","ant-design:zoom-out-outlined"]},Z={name:"TDesign Icons",prefix:"tdesign",icons:["tdesign:activity","tdesign:add","tdesign:add-and-subtract","tdesign:add-circle","tdesign:add-rectangle","tdesign:address-book","tdesign:adjustment","tdesign:airplay-wave","tdesign:alarm","tdesign:alarm-add","tdesign:alarm-off","tdesign:align-top","tdesign:align-vertical","tdesign:alpha","tdesign:analytics","tdesign:anchor","tdesign:angry","tdesign:animation","tdesign:animation-1","tdesign:anticlockwise","tdesign:api","tdesign:app","tdesign:apple","tdesign:application","tdesign:architecture-hui-style","tdesign:archway","tdesign:archway-1","tdesign:arrow-down","tdesign:arrow-down-circle","tdesign:arrow-down-rectangle","tdesign:arrow-left","tdesign:arrow-left-circle","tdesign:arrow-left-down","tdesign:arrow-left-down-circle","tdesign:arrow-left-right-1","tdesign:arrow-left-right-2","tdesign:arrow-left-right-3","tdesign:arrow-left-right-circle","tdesign:arrow-left-up","tdesign:arrow-left-up-circle","tdesign:arrow-right","tdesign:arrow-right-circle","tdesign:arrow-right-down","tdesign:arrow-right-down-circle","tdesign:arrow-right-up","tdesign:arrow-right-up-circle","tdesign:arrow-triangle-down","tdesign:arrow-triangle-down-filled","tdesign:arrow-triangle-up","tdesign:arrow-triangle-up-filled","tdesign:arrow-up","tdesign:arrow-up-circle","tdesign:arrow-up-down-1","tdesign:arrow-up-down-2","tdesign:arrow-up-down-3","tdesign:arrow-up-down-circle","tdesign:artboard","tdesign:article","tdesign:assignment","tdesign:assignment-checked","tdesign:assignment-code","tdesign:assignment-error","tdesign:assignment-user","tdesign:attach","tdesign:attic","tdesign:attic-1","tdesign:audio","tdesign:awkward","tdesign:backtop","tdesign:backtop-rectangle","tdesign:backup","tdesign:backward","tdesign:bad-laugh","tdesign:bamboo-shoot","tdesign:banana","tdesign:barbecue","tdesign:barcode","tdesign:barcode-1","tdesign:base-station","tdesign:battery","tdesign:battery-add","tdesign:battery-charging","tdesign:battery-low","tdesign:bean","tdesign:beer","tdesign:beta","tdesign:bifurcate","tdesign:bill","tdesign:blockchain","tdesign:bluetooth","tdesign:bone","tdesign:book","tdesign:book-open","tdesign:bookmark","tdesign:bookmark-add","tdesign:bookmark-checked","tdesign:bookmark-double","tdesign:bookmark-minus","tdesign:braces","tdesign:brackets","tdesign:bread","tdesign:bridge","tdesign:bridge-1","tdesign:bridge-2","tdesign:bridge-3","tdesign:bridge-4","tdesign:bridge-5","tdesign:bridge-6","tdesign:brightness","tdesign:brightness-1","tdesign:broccoli","tdesign:browse","tdesign:browse-gallery","tdesign:browse-off","tdesign:brush","tdesign:bug","tdesign:bug-report","tdesign:building","tdesign:building-1","tdesign:building-2","tdesign:building-3","tdesign:building-4","tdesign:building-5","tdesign:bulletpoint","tdesign:button","tdesign:cabbage","tdesign:cake","tdesign:calculation","tdesign:calculation-1","tdesign:calculator","tdesign:calculator-1","tdesign:calendar","tdesign:calendar-1","tdesign:calendar-2","tdesign:calendar-edit","tdesign:calendar-event","tdesign:call","tdesign:call-1","tdesign:call-cancel","tdesign:call-forwarded","tdesign:call-incoming","tdesign:call-off","tdesign:calm","tdesign:calm-1","tdesign:camera","tdesign:camera-1","tdesign:camera-2","tdesign:camera-off","tdesign:candy","tdesign:card","tdesign:cardmembership","tdesign:caret-down","tdesign:caret-down-small","tdesign:caret-left","tdesign:caret-left-small","tdesign:caret-right","tdesign:caret-right-small","tdesign:caret-up","tdesign:caret-up-small","tdesign:cart","tdesign:cart-add","tdesign:cast","tdesign:castle","tdesign:castle-1","tdesign:castle-2","tdesign:castle-3","tdesign:castle-4","tdesign:castle-5","tdesign:castle-6","tdesign:castle-7","tdesign:cat","tdesign:catalog","tdesign:cd","tdesign:celsius","tdesign:center-focus-strong","tdesign:centimeter","tdesign:certificate","tdesign:certificate-1","tdesign:chart","tdesign:chart-3d","tdesign:chart-add","tdesign:chart-analytics","tdesign:chart-area","tdesign:chart-area-multi","tdesign:chart-bar","tdesign:chart-bubble","tdesign:chart-colum","tdesign:chart-combo","tdesign:chart-line","tdesign:chart-line-data","tdesign:chart-line-data-1","tdesign:chart-line-multi","tdesign:chart-maximum","tdesign:chart-median","tdesign:chart-minimum","tdesign:chart-pie","tdesign:chart-radar","tdesign:chart-radial","tdesign:chart-ring","tdesign:chart-ring-1","tdesign:chart-scatter","tdesign:chart-stacked","tdesign:chat","tdesign:chat-add","tdesign:chat-bubble","tdesign:chat-bubble-1","tdesign:chat-bubble-add","tdesign:chat-bubble-error","tdesign:chat-bubble-help","tdesign:chat-bubble-history","tdesign:chat-bubble-locked","tdesign:chat-bubble-smile","tdesign:chat-checked","tdesign:chat-clear","tdesign:chat-double","tdesign:chat-error","tdesign:chat-heart","tdesign:chat-message","tdesign:chat-off","tdesign:chat-poll","tdesign:chat-setting","tdesign:check","tdesign:check-circle","tdesign:check-circle-filled","tdesign:check-double","tdesign:check-rectangle","tdesign:check-rectangle-filled","tdesign:cheese","tdesign:cherry","tdesign:chevron-down","tdesign:chevron-down-circle","tdesign:chevron-down-double","tdesign:chevron-down-double-s","tdesign:chevron-down-rectangle","tdesign:chevron-down-s","tdesign:chevron-left","tdesign:chevron-left-circle","tdesign:chevron-left-double","tdesign:chevron-left-double-s","tdesign:chevron-left-rectangle","tdesign:chevron-left-s","tdesign:chevron-right","tdesign:chevron-right-circle","tdesign:chevron-right-double","tdesign:chevron-right-double-s","tdesign:chevron-right-rectangle","tdesign:chevron-right-s","tdesign:chevron-up","tdesign:chevron-up-circle","tdesign:chevron-up-double","tdesign:chevron-up-double-s","tdesign:chevron-up-rectangle","tdesign:chevron-up-s","tdesign:chicken","tdesign:chili","tdesign:chimney","tdesign:chimney-1","tdesign:chimney-2","tdesign:chinese-cabbage","tdesign:church","tdesign:circle","tdesign:city","tdesign:city-1","tdesign:city-10","tdesign:city-11","tdesign:city-12","tdesign:city-13","tdesign:city-14","tdesign:city-15","tdesign:city-2","tdesign:city-3","tdesign:city-4","tdesign:city-5","tdesign:city-6","tdesign:city-7","tdesign:city-8","tdesign:city-9","tdesign:city-ancient","tdesign:city-ancient-1","tdesign:city-ancient-2","tdesign:clear","tdesign:clear-formatting","tdesign:clear-formatting-1","tdesign:close","tdesign:close-circle","tdesign:close-circle-filled","tdesign:close-octagon","tdesign:close-rectangle","tdesign:cloud","tdesign:cloud-download","tdesign:cloud-upload","tdesign:cloudy-day","tdesign:cloudy-night","tdesign:cloudy-night-rain","tdesign:cloudy-rain","tdesign:cloudy-sunny","tdesign:code","tdesign:code-1","tdesign:code-off","tdesign:cola","tdesign:collage","tdesign:collection","tdesign:color-invert","tdesign:combination","tdesign:command","tdesign:compass","tdesign:compass-1","tdesign:component-breadcrumb","tdesign:component-checkbox","tdesign:component-divider-horizontal","tdesign:component-divider-vertical","tdesign:component-dropdown","tdesign:component-grid","tdesign:component-input","tdesign:component-layout","tdesign:component-radio","tdesign:component-space","tdesign:component-steps","tdesign:component-switch","tdesign:constraint","tdesign:contrast","tdesign:contrast-1","tdesign:control-platform","tdesign:cooperate","tdesign:coordinate-system","tdesign:copy","tdesign:copyright","tdesign:corn","tdesign:coupon","tdesign:course","tdesign:cpu","tdesign:crack","tdesign:creditcard","tdesign:creditcard-add","tdesign:creditcard-off","tdesign:crooked-smile","tdesign:cry-and-laugh","tdesign:cry-loudly","tdesign:css3","tdesign:cucumber","tdesign:currency-exchange","tdesign:cursor","tdesign:curtain","tdesign:curve","tdesign:cut","tdesign:cut-1","tdesign:dam","tdesign:dam-1","tdesign:dam-2","tdesign:dam-3","tdesign:dam-4","tdesign:dam-5","tdesign:dam-6","tdesign:dam-7","tdesign:dart-board","tdesign:dashboard","tdesign:dashboard-1","tdesign:data","tdesign:data-base","tdesign:data-checked","tdesign:data-display","tdesign:data-error","tdesign:data-search","tdesign:delete","tdesign:delete-1","tdesign:delete-time","tdesign:delta","tdesign:depressed","tdesign:desktop","tdesign:desktop-1","tdesign:despise","tdesign:device","tdesign:discount","tdesign:discount-filled","tdesign:dissatisfaction","tdesign:divide","tdesign:dividers","tdesign:dividers-1","tdesign:doge","tdesign:double-storey","tdesign:download","tdesign:download-1","tdesign:downscale","tdesign:drag-drop","tdesign:drag-move","tdesign:drink","tdesign:drumstick","tdesign:dv","tdesign:dvd","tdesign:earphone","tdesign:earth","tdesign:edit","tdesign:edit-1","tdesign:edit-2","tdesign:edit-off","tdesign:education","tdesign:eggplant","tdesign:ellipsis","tdesign:emo-emotional","tdesign:enter","tdesign:equal","tdesign:error","tdesign:error-circle","tdesign:error-circle-filled","tdesign:error-triangle","tdesign:excited","tdesign:excited-1","tdesign:expand-horizontal","tdesign:expand-vertical","tdesign:explore","tdesign:explore-off","tdesign:exposure","tdesign:extension","tdesign:extension-off","tdesign:face-retouching","tdesign:fact-check","tdesign:fahrenheit-scale","tdesign:feel-at-ease","tdesign:ferocious","tdesign:ferris-wheel","tdesign:file","tdesign:file-1","tdesign:file-add","tdesign:file-add-1","tdesign:file-attachment","tdesign:file-blocked","tdesign:file-code","tdesign:file-code-1","tdesign:file-copy","tdesign:file-download","tdesign:file-excel","tdesign:file-export","tdesign:file-icon","tdesign:file-image","tdesign:file-import","tdesign:file-locked","tdesign:file-minus","tdesign:file-music","tdesign:file-onenote","tdesign:file-outlook","tdesign:file-paste","tdesign:file-pdf","tdesign:file-powerpoint","tdesign:file-restore","tdesign:file-safety","tdesign:file-search","tdesign:file-setting","tdesign:file-teams","tdesign:file-unknown","tdesign:file-unlocked","tdesign:file-word","tdesign:file-zip","tdesign:fill-color","tdesign:fill-color-1","tdesign:film","tdesign:film-1","tdesign:filter","tdesign:filter-1","tdesign:filter-2","tdesign:filter-3","tdesign:filter-clear","tdesign:filter-off","tdesign:fingerprint","tdesign:fingerprint-1","tdesign:fingerprint-2","tdesign:fingerprint-3","tdesign:fish","tdesign:flag","tdesign:flag-1","tdesign:flag-2","tdesign:flag-3","tdesign:flag-4","tdesign:flashlight","tdesign:flight-landing","tdesign:flight-takeoff","tdesign:flip-smiling-face","tdesign:flip-to-back","tdesign:flip-to-front","tdesign:focus","tdesign:fog","tdesign:fog-night","tdesign:fog-sunny","tdesign:folder","tdesign:folder-1","tdesign:folder-add","tdesign:folder-add-1","tdesign:folder-blocked","tdesign:folder-details","tdesign:folder-export","tdesign:folder-import","tdesign:folder-locked","tdesign:folder-minus","tdesign:folder-move","tdesign:folder-off","tdesign:folder-open","tdesign:folder-open-1","tdesign:folder-search","tdesign:folder-setting","tdesign:folder-shared","tdesign:folder-unlocked","tdesign:folder-zip","tdesign:forest","tdesign:fork","tdesign:form","tdesign:format-horizontal-align-bottom","tdesign:format-horizontal-align-center","tdesign:format-horizontal-align-top","tdesign:format-vertical-align-center","tdesign:format-vertical-align-left","tdesign:format-vertical-align-right","tdesign:forward","tdesign:frame","tdesign:frame-1","tdesign:fries","tdesign:fullscreen","tdesign:fullscreen-1","tdesign:fullscreen-2","tdesign:fullscreen-exit","tdesign:fullscreen-exit-1","tdesign:function-curve","tdesign:functions","tdesign:functions-1","tdesign:gamepad","tdesign:gamepad-1","tdesign:gamma","tdesign:garlic","tdesign:gender-female","tdesign:gender-male","tdesign:gesture-applause","tdesign:gesture-click","tdesign:gesture-down","tdesign:gesture-expansion","tdesign:gesture-left","tdesign:gesture-left-slip","tdesign:gesture-pray","tdesign:gesture-pray-1","tdesign:gesture-press","tdesign:gesture-ranslation","tdesign:gesture-ranslation-1","tdesign:gesture-right","tdesign:gesture-right-slip","tdesign:gesture-slide-up","tdesign:gesture-up","tdesign:gesture-up-1","tdesign:gesture-up-2","tdesign:gesture-up-and-down","tdesign:gesture-wipe-down","tdesign:gift","tdesign:giggle","tdesign:git-branch","tdesign:git-commit","tdesign:git-merge","tdesign:git-pull-request","tdesign:git-repository","tdesign:git-repository-commits","tdesign:git-repository-private","tdesign:gps","tdesign:grape","tdesign:greater-than","tdesign:greater-than-or-equal","tdesign:green-onion","tdesign:grid-add","tdesign:grid-view","tdesign:guitar","tdesign:hamburger","tdesign:happy","tdesign:hard-disk-storage","tdesign:hard-drive","tdesign:hashtag","tdesign:hd","tdesign:heart","tdesign:heart-filled","tdesign:help","tdesign:help-circle","tdesign:help-circle-filled","tdesign:help-rectangle","tdesign:highlight","tdesign:highlight-1","tdesign:history","tdesign:history-setting","tdesign:home","tdesign:hospital","tdesign:hospital-1","tdesign:hotspot-wave","tdesign:hourglass","tdesign:houses","tdesign:houses-1","tdesign:houses-2","tdesign:html5","tdesign:https","tdesign:ice-cream","tdesign:icon","tdesign:image","tdesign:image-1","tdesign:image-add","tdesign:image-edit","tdesign:image-error","tdesign:image-off","tdesign:image-search","tdesign:indent-left","tdesign:indent-right","tdesign:indicator","tdesign:info-circle","tdesign:info-circle-filled","tdesign:ink","tdesign:install","tdesign:install-desktop","tdesign:install-mobile","tdesign:institution","tdesign:institution-checked","tdesign:internet","tdesign:ipod","tdesign:joyful","tdesign:jump","tdesign:jump-off","tdesign:keyboard","tdesign:laptop","tdesign:layers","tdesign:layout","tdesign:leaderboard","tdesign:lemon","tdesign:lemon-slice","tdesign:less-than","tdesign:less-than-or-equal","tdesign:letters-a","tdesign:letters-b","tdesign:letters-c","tdesign:letters-d","tdesign:letters-e","tdesign:letters-f","tdesign:letters-g","tdesign:letters-h","tdesign:letters-i","tdesign:letters-j","tdesign:letters-k","tdesign:letters-l","tdesign:letters-m","tdesign:letters-n","tdesign:letters-o","tdesign:letters-p","tdesign:letters-q","tdesign:letters-r","tdesign:letters-s","tdesign:letters-t","tdesign:letters-u","tdesign:letters-v","tdesign:letters-w","tdesign:letters-x","tdesign:letters-y","tdesign:letters-z","tdesign:lightbulb","tdesign:lightbulb-circle","tdesign:lighthouse","tdesign:lighthouse-1","tdesign:lighthouse-2","tdesign:lighting-circle","tdesign:line-height","tdesign:link","tdesign:link-1","tdesign:link-unlink","tdesign:liquor","tdesign:list","tdesign:load","tdesign:loading","tdesign:location","tdesign:location-1","tdesign:location-enlargement","tdesign:location-error","tdesign:location-parking-place","tdesign:location-reduction","tdesign:location-setting","tdesign:lock-off","tdesign:lock-on","tdesign:lock-time","tdesign:login","tdesign:logo-adobe-illustrate","tdesign:logo-adobe-photoshop","tdesign:logo-adobe-photoshop-1","tdesign:logo-android","tdesign:logo-apple","tdesign:logo-apple-filled","tdesign:logo-behance","tdesign:logo-chrome","tdesign:logo-chrome-filled","tdesign:logo-cinema4d","tdesign:logo-codepen","tdesign:logo-codesandbox","tdesign:logo-dribbble","tdesign:logo-facebook","tdesign:logo-figma","tdesign:logo-framer","tdesign:logo-github","tdesign:logo-github-filled","tdesign:logo-gitlab","tdesign:logo-ie","tdesign:logo-ie-filled","tdesign:logo-instagram","tdesign:logo-qq","tdesign:logo-twitter","tdesign:logo-wechat","tdesign:logo-wechat-stroke","tdesign:logo-wecom","tdesign:logo-windows","tdesign:logo-windows-filled","tdesign:logo-youtube","tdesign:logout","tdesign:look-around","tdesign:loudspeaker","tdesign:mail","tdesign:map","tdesign:map-3d","tdesign:map-add","tdesign:map-aiming","tdesign:map-blocked","tdesign:map-bubble","tdesign:map-cancel","tdesign:map-chat","tdesign:map-checked","tdesign:map-collection","tdesign:map-connection","tdesign:map-distance","tdesign:map-double","tdesign:map-edit","tdesign:map-grid","tdesign:map-information","tdesign:map-information-1","tdesign:map-information-2","tdesign:map-location","tdesign:map-locked","tdesign:map-marked","tdesign:map-navigation","tdesign:map-outline","tdesign:map-route-planning","tdesign:map-ruler","tdesign:map-safety","tdesign:map-search","tdesign:map-search-1","tdesign:map-setting","tdesign:map-unlocked","tdesign:mark-as-unread","tdesign:markup","tdesign:mathematics","tdesign:measurement","tdesign:measurement-1","tdesign:measurement-2","tdesign:meat-pepper","tdesign:media-library","tdesign:member","tdesign:menu","tdesign:menu-application","tdesign:menu-fold","tdesign:menu-unfold","tdesign:merge-cells","tdesign:microphone","tdesign:microphone-1","tdesign:microphone-2","tdesign:milk","tdesign:minus","tdesign:minus-circle","tdesign:minus-circle-filled","tdesign:minus-rectangle","tdesign:minus-rectangle-filled","tdesign:mirror","tdesign:mobile","tdesign:mobile-blocked","tdesign:mobile-list","tdesign:mobile-navigation","tdesign:mobile-shortcut","tdesign:mobile-vibrate","tdesign:mode-dark","tdesign:mode-light","tdesign:module","tdesign:money","tdesign:monument","tdesign:moon","tdesign:moon-fall","tdesign:moon-rising","tdesign:more","tdesign:mosque","tdesign:mosque-1","tdesign:mouse","tdesign:move","tdesign:move-1","tdesign:movie-clapper","tdesign:multiply","tdesign:museum","tdesign:museum-1","tdesign:museum-2","tdesign:mushroom","tdesign:mushroom-1","tdesign:music","tdesign:music-1","tdesign:music-2","tdesign:music-rectangle-add","tdesign:navigation-arrow","tdesign:next","tdesign:no-expression","tdesign:noodle","tdesign:notification","tdesign:notification-add","tdesign:notification-circle","tdesign:notification-error","tdesign:notification-filled","tdesign:numbers-0","tdesign:numbers-0-1","tdesign:numbers-1","tdesign:numbers-1-1","tdesign:numbers-2","tdesign:numbers-2-1","tdesign:numbers-3","tdesign:numbers-3-1","tdesign:numbers-4","tdesign:numbers-4-1","tdesign:numbers-5","tdesign:numbers-5-1","tdesign:numbers-6","tdesign:numbers-6-1","tdesign:numbers-7","tdesign:numbers-7-1","tdesign:numbers-8","tdesign:numbers-8-1","tdesign:numbers-9","tdesign:numbers-9-1","tdesign:nut","tdesign:object-storage","tdesign:open-mouth","tdesign:opera","tdesign:order-adjustment-column","tdesign:order-ascending","tdesign:order-descending","tdesign:outbox","tdesign:page-first","tdesign:page-head","tdesign:page-last","tdesign:palace","tdesign:palace-1","tdesign:palace-2","tdesign:palace-3","tdesign:palace-4","tdesign:palette","tdesign:palette-1","tdesign:panorama-horizontal","tdesign:panorama-vertical","tdesign:pantone","tdesign:parabola","tdesign:parentheses","tdesign:paste","tdesign:patio","tdesign:pause","tdesign:pause-circle","tdesign:pause-circle-filled","tdesign:pause-circle-stroke","tdesign:pea","tdesign:peach","tdesign:pear","tdesign:pearl-of-the-orient","tdesign:pen","tdesign:pen-ball","tdesign:pen-brush","tdesign:pen-mark","tdesign:pen-quill","tdesign:pending","tdesign:percent","tdesign:personal-information","tdesign:phone-locked","tdesign:phone-search","tdesign:pi","tdesign:piano","tdesign:pin","tdesign:pin-filled","tdesign:play","tdesign:play-circle","tdesign:play-circle-filled","tdesign:play-circle-stroke","tdesign:play-circle-stroke-add","tdesign:play-demo","tdesign:play-rectangle","tdesign:plus","tdesign:popsicle","tdesign:portrait","tdesign:pout","tdesign:poweroff","tdesign:precise-monitor","tdesign:previous","tdesign:print","tdesign:pumpkin","tdesign:pyramid","tdesign:pyramid-maya","tdesign:qrcode","tdesign:quadratic","tdesign:questionnaire","tdesign:queue","tdesign:radar","tdesign:radio-1","tdesign:radio-2","tdesign:radish","tdesign:rain-heavy","tdesign:rain-light","tdesign:rain-medium","tdesign:rainbow","tdesign:rectangle","tdesign:refresh","tdesign:relation","tdesign:relativity","tdesign:remote-wave","tdesign:remove","tdesign:replay","tdesign:rice","tdesign:rice-ball","tdesign:roast","tdesign:rocket","tdesign:rollback","tdesign:rollfront","tdesign:root-list","tdesign:rotate","tdesign:rotate-locked","tdesign:rotation","tdesign:round","tdesign:router-wave","tdesign:rss","tdesign:ruler","tdesign:sailing-hotel","tdesign:sandwich","tdesign:saturation","tdesign:sausage","tdesign:save","tdesign:saving-pot","tdesign:scan","tdesign:screen-4k","tdesign:screencast","tdesign:screenshot","tdesign:scroll-bar","tdesign:sd-card","tdesign:sd-card-1","tdesign:search","tdesign:search-error","tdesign:secured","tdesign:send","tdesign:send-cancel","tdesign:sensors","tdesign:sensors-1","tdesign:sensors-2","tdesign:sensors-off","tdesign:serenity","tdesign:server","tdesign:service","tdesign:setting","tdesign:setting-1","tdesign:share","tdesign:share-1","tdesign:sharpness","tdesign:shield-error","tdesign:shimen","tdesign:shop","tdesign:shop-1","tdesign:shop-2","tdesign:shop-3","tdesign:shop-4","tdesign:shop-5","tdesign:shrimp","tdesign:shrink-horizontal","tdesign:shrink-vertical","tdesign:shutter","tdesign:shutup","tdesign:sim-card","tdesign:sim-card-1","tdesign:sim-card-2","tdesign:sinister-smile","tdesign:sip","tdesign:slash","tdesign:sleep","tdesign:slice","tdesign:slideshow","tdesign:smile","tdesign:sneer","tdesign:snowflake","tdesign:sonic","tdesign:sound","tdesign:sound-down","tdesign:sound-high","tdesign:sound-low","tdesign:sound-mute","tdesign:sound-mute-1","tdesign:sound-up","tdesign:space","tdesign:speechless-1","tdesign:star","tdesign:star-filled","tdesign:statue-of-jesus","tdesign:sticky-note","tdesign:stop","tdesign:stop-circle","tdesign:stop-circle-filled","tdesign:stop-circle-stroke","tdesign:store","tdesign:street-road","tdesign:street-road-1","tdesign:subtitle","tdesign:subway-line","tdesign:sum","tdesign:sun-fall","tdesign:sun-rising","tdesign:sunny","tdesign:support","tdesign:surprised","tdesign:surprised-1","tdesign:swap","tdesign:swap-left","tdesign:swap-right","tdesign:swear-1","tdesign:swear-2","tdesign:system-2","tdesign:system-3","tdesign:system-application","tdesign:system-blocked","tdesign:system-code","tdesign:system-components","tdesign:system-coordinate","tdesign:system-device","tdesign:system-interface","tdesign:system-location","tdesign:system-locked","tdesign:system-log","tdesign:system-marked","tdesign:system-messages","tdesign:system-regulation","tdesign:system-search","tdesign:system-setting","tdesign:system-storage","tdesign:system-sum","tdesign:system-unlocked","tdesign:tab","tdesign:table","tdesign:table-1","tdesign:table-2","tdesign:table-add","tdesign:table-split","tdesign:tag","tdesign:tangerinr","tdesign:tape","tdesign:task","tdesign:task-1","tdesign:task-add","tdesign:task-add-1","tdesign:task-checked","tdesign:task-error","tdesign:task-location","tdesign:task-marked","tdesign:task-setting","tdesign:task-visible","tdesign:tea","tdesign:teahouse","tdesign:template","tdesign:temple","tdesign:terminal","tdesign:terminal-rectangle","tdesign:terminal-rectangle-1","tdesign:terminal-window","tdesign:textbox","tdesign:textformat-bold","tdesign:textformat-color","tdesign:textformat-italic","tdesign:textformat-strikethrough","tdesign:textformat-underline","tdesign:textformat-wrap","tdesign:theaters","tdesign:thumb-down","tdesign:thumb-down-1","tdesign:thumb-down-2","tdesign:thumb-up","tdesign:thumb-up-1","tdesign:thumb-up-2","tdesign:thunder","tdesign:thunderstorm","tdesign:thunderstorm-night","tdesign:thunderstorm-sunny","tdesign:ticket","tdesign:time","tdesign:time-filled","tdesign:tips","tdesign:tips-double","tdesign:tomato","tdesign:tools","tdesign:tools-circle","tdesign:tornado","tdesign:tower","tdesign:tower-1","tdesign:tower-2","tdesign:tower-3","tdesign:tower-clock","tdesign:town","tdesign:traffic","tdesign:traffic-events","tdesign:transform","tdesign:transform-1","tdesign:transform-2","tdesign:transform-3","tdesign:translate","tdesign:translate-1","tdesign:tree-list","tdesign:tree-round-dot","tdesign:tree-round-dot-vertical","tdesign:tree-square-dot","tdesign:tree-square-dot-vertical","tdesign:trending-down","tdesign:trending-up","tdesign:tv","tdesign:tv-1","tdesign:tv-2","tdesign:typography","tdesign:uncomfortable","tdesign:uncomfortable-1","tdesign:uncomfortable-2","tdesign:undertake","tdesign:undertake-delivery","tdesign:undertake-environment-protection","tdesign:undertake-hold-up","tdesign:undertake-transaction","tdesign:unfold-less","tdesign:unfold-more","tdesign:unhappy","tdesign:unhappy-1","tdesign:uninstall","tdesign:upload","tdesign:upload-1","tdesign:upscale","tdesign:usb","tdesign:user","tdesign:user-1","tdesign:user-add","tdesign:user-arrow-down","tdesign:user-arrow-left","tdesign:user-arrow-right","tdesign:user-arrow-up","tdesign:user-avatar","tdesign:user-blocked","tdesign:user-business","tdesign:user-checked","tdesign:user-checked-1","tdesign:user-circle","tdesign:user-clear","tdesign:user-error-1","tdesign:user-invisible","tdesign:user-list","tdesign:user-locked","tdesign:user-marked","tdesign:user-password","tdesign:user-safety","tdesign:user-search","tdesign:user-setting","tdesign:user-talk","tdesign:user-talk-1","tdesign:user-talk-off-1","tdesign:user-time","tdesign:user-transmit","tdesign:user-unknown","tdesign:user-unlocked","tdesign:user-vip","tdesign:user-visible","tdesign:usergroup","tdesign:usergroup-add","tdesign:usergroup-clear","tdesign:vehicle","tdesign:verified","tdesign:verify","tdesign:video","tdesign:video-camera","tdesign:video-camera-1","tdesign:video-camera-2","tdesign:video-camera-dollar","tdesign:video-camera-minus","tdesign:video-camera-music","tdesign:video-camera-off","tdesign:video-library","tdesign:view-agenda","tdesign:view-column","tdesign:view-in-ar","tdesign:view-list","tdesign:view-module","tdesign:visual-recognition","tdesign:wallet","tdesign:watch","tdesign:watermelon","tdesign:wave-left","tdesign:wave-right","tdesign:wealth","tdesign:wealth-1","tdesign:widget","tdesign:wifi","tdesign:wifi-1","tdesign:wifi-off","tdesign:wifi-off-1","tdesign:window","tdesign:window-1","tdesign:windy","tdesign:windy-rain","tdesign:wink","tdesign:work","tdesign:work-history","tdesign:work-off","tdesign:wry-smile","tdesign:zoom-in","tdesign:zoom-out"]},ee={class:"icon-picker flex justify-center items-center box"},ne={class:"flex flex-wrap box-border"},te=["onClick"],ie={class:"h-50px absolute bottom-0 left-0 flex items-center pl-[var(--el-popover-padding)] pr-[var(--el-popover-padding)]"},de=$({__name:"IconPicker",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(v){const u=i=>j(this,null,function*(){if(!i)return;const t=i.split(":");s.value=t[0];const c=g.findIndex(a=>a.prefix===t[0]),d=I(g[c].icons).findIndex(a=>a===i);yield S(),r.value=Math.ceil((d+1)/e(m))}),n=L(v,"modelValue"),x=F(),p=b(()=>x.getCurrentSize),l=b(()=>e(p)==="small"?"var(--el-component-size-small)":e(p)==="large"?"var(--el-component-size-large)":"var(--el-component-size)"),q=b(()=>({width:e(l),height:e(l),display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset",position:"relative",left:"-1px",cursor:"pointer"})),g=[R,X,Z],s=k(g[0].prefix),f=b(()=>g.findIndex(i=>i.prefix===e(s))),T=()=>{r.value=1},m=k(49),r=k(1),N=i=>{const t=(e(r)-1)*e(m),c=e(r)*e(m);return i.slice(t,c)};Q(()=>n.value,i=>j(this,null,function*(){yield S(),i&&u(i)}),{immediate:!0});const U=()=>{u(e(n))},B=i=>{if(i===e(n)){n.value="";return}n.value=i},z=k(""),I=i=>i.filter(t=>t.includes(e(z))),A=()=>{u(e(n))};return(i,t)=>{const c=M;return h(),y("div",ee,[o(e(E),{disabled:"",modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=d=>n.value=d),clearable:""},null,8,["modelValue"]),o(e(O),{placement:"bottom",trigger:"click",width:450,"popper-style":"box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; height: 380px;",onShow:U},{reference:w(()=>[V("div",{style:_(q.value)},[n.value?(h(),W(c,{key:0,icon:n.value},null,8,["icon"])):Y("",!0)],4)]),default:w(()=>[o(e(G),{class:"h-[calc(100%-50px)]!"},{default:w(()=>[o(e(E),{modelValue:z.value,"onUpdate:modelValue":t[1]||(t[1]=d=>z.value=d),class:"mb-20px",clearable:"",placeholder:"搜索图标",onClear:A},null,8,["modelValue"]),o(e(H),{"tab-position":"left",modelValue:s.value,"onUpdate:modelValue":t[2]||(t[2]=d=>s.value=d),onTabChange:T},{default:w(()=>[(h(),y(C,null,P(g,d=>o(e(J),{key:d.name,label:d.name,name:d.prefix},{default:w(()=>[V("div",ne,[(h(!0),y(C,null,P(N(I(d.icons)),a=>(h(),y("div",{key:a,style:_({width:l.value,height:l.value,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:`1px solid ${a===n.value?"var(--el-color-primary)":"var(--el-border-color)"}`,boxSizing:"border-box",margin:"2px",transition:"all 0.3s"}),class:"hover:border-color-[var(--el-color-primary)]!",onClick:se=>B(a)},[o(c,{icon:a,color:a===n.value?"var(--el-color-primary)":"inherit"},null,8,["icon","color"])],12,te))),128))])]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"])]),_:1}),V("div",ie,[o(e(K),{"current-page":r.value,"onUpdate:currentPage":t[3]||(t[3]=d=>r.value=d),"page-size":m.value,"onUpdate:pageSize":t[4]||(t[4]=d=>m.value=d),"pager-count":5,small:"","page-sizes":[100,200,300,400],layout:"total, prev, pager, next, jumper",total:I(g[f.value].icons).length},null,8,["current-page","page-size","total"])])]),_:1})])}}}),me=D(de,[["__scopeId","data-v-1079899e"]]);export{me as I}; +var j=(v,u,n)=>new Promise((x,p)=>{var l=s=>{try{g(n.next(s))}catch(f){p(f)}},q=s=>{try{g(n.throw(s))}catch(f){p(f)}},g=s=>s.done?x(s.value):Promise.resolve(s.value).then(l,q);g((n=n.apply(v,u)).next())});import{I as M,_ as D}from"./Icon-B-0CON7P.js";import{u as F}from"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css *//* empty css */import{q as $,aF as L,d as b,u as e,r as k,w as Q,n as S,t as h,v as y,P as o,S as w,x as V,V as _,T as W,Y,Q as C,a8 as P}from"./vue-chunks-DOWhatC1.js";import{A as E,f as G,a4 as H,a5 as J,a6 as K,a7 as O}from"./element-plus-6v3c1uXT.js";const R={name:"Element Plus",prefix:"ep",icons:["ep:add-location","ep:aim","ep:alarm-clock","ep:apple","ep:arrow-down","ep:arrow-down-bold","ep:arrow-left","ep:arrow-left-bold","ep:arrow-right","ep:arrow-right-bold","ep:arrow-up","ep:arrow-up-bold","ep:avatar","ep:back","ep:baseball","ep:basketball","ep:bell","ep:bell-filled","ep:bicycle","ep:bottom","ep:bottom-left","ep:bottom-right","ep:bowl","ep:box","ep:briefcase","ep:brush","ep:brush-filled","ep:burger","ep:calendar","ep:camera","ep:camera-filled","ep:caret-bottom","ep:caret-left","ep:caret-right","ep:caret-top","ep:cellphone","ep:chat-dot-round","ep:chat-dot-square","ep:chat-line-round","ep:chat-line-square","ep:chat-round","ep:chat-square","ep:check","ep:checked","ep:cherry","ep:chicken","ep:chrome-filled","ep:circle-check","ep:circle-check-filled","ep:circle-close","ep:circle-close-filled","ep:circle-plus","ep:circle-plus-filled","ep:clock","ep:close","ep:close-bold","ep:cloudy","ep:coffee","ep:coffee-cup","ep:coin","ep:cold-drink","ep:collection","ep:collection-tag","ep:comment","ep:compass","ep:connection","ep:coordinate","ep:copy-document","ep:cpu","ep:credit-card","ep:crop","ep:d-arrow-left","ep:d-arrow-right","ep:d-caret","ep:data-analysis","ep:data-board","ep:data-line","ep:delete","ep:delete-filled","ep:delete-location","ep:dessert","ep:discount","ep:dish","ep:dish-dot","ep:document","ep:document-add","ep:document-checked","ep:document-copy","ep:document-delete","ep:document-remove","ep:download","ep:drizzling","ep:edit","ep:edit-pen","ep:eleme","ep:eleme-filled","ep:element-plus","ep:expand","ep:failed","ep:female","ep:files","ep:film","ep:filter","ep:finished","ep:first-aid-kit","ep:flag","ep:fold","ep:folder","ep:folder-add","ep:folder-checked","ep:folder-delete","ep:folder-opened","ep:folder-remove","ep:food","ep:football","ep:fork-spoon","ep:fries","ep:full-screen","ep:goblet","ep:goblet-full","ep:goblet-square","ep:goblet-square-full","ep:gold-medal","ep:goods","ep:goods-filled","ep:grape","ep:grid","ep:guide","ep:handbag","ep:headset","ep:help","ep:help-filled","ep:hide","ep:histogram","ep:home-filled","ep:hot-water","ep:house","ep:ice-cream","ep:ice-cream-round","ep:ice-cream-square","ep:ice-drink","ep:ice-tea","ep:info-filled","ep:iphone","ep:key","ep:knife-fork","ep:lightning","ep:link","ep:list","ep:loading","ep:location","ep:location-filled","ep:location-information","ep:lock","ep:lollipop","ep:magic-stick","ep:magnet","ep:male","ep:management","ep:map-location","ep:medal","ep:memo","ep:menu","ep:message","ep:message-box","ep:mic","ep:microphone","ep:milk-tea","ep:minus","ep:money","ep:monitor","ep:moon","ep:moon-night","ep:more","ep:more-filled","ep:mostly-cloudy","ep:mouse","ep:mug","ep:mute","ep:mute-notification","ep:no-smoking","ep:notebook","ep:notification","ep:odometer","ep:office-building","ep:open","ep:operation","ep:opportunity","ep:orange","ep:paperclip","ep:partly-cloudy","ep:pear","ep:phone","ep:phone-filled","ep:picture","ep:picture-filled","ep:picture-rounded","ep:pie-chart","ep:place","ep:platform","ep:plus","ep:pointer","ep:position","ep:postcard","ep:pouring","ep:present","ep:price-tag","ep:printer","ep:promotion","ep:quartz-watch","ep:question-filled","ep:rank","ep:reading","ep:reading-lamp","ep:refresh","ep:refresh-left","ep:refresh-right","ep:refrigerator","ep:remove","ep:remove-filled","ep:right","ep:scale-to-original","ep:school","ep:scissor","ep:search","ep:select","ep:sell","ep:semi-select","ep:service","ep:set-up","ep:setting","ep:share","ep:ship","ep:shop","ep:shopping-bag","ep:shopping-cart","ep:shopping-cart-full","ep:shopping-trolley","ep:smoking","ep:soccer","ep:sold-out","ep:sort","ep:sort-down","ep:sort-up","ep:stamp","ep:star","ep:star-filled","ep:stopwatch","ep:success-filled","ep:sugar","ep:suitcase","ep:suitcase-line","ep:sunny","ep:sunrise","ep:sunset","ep:switch","ep:switch-button","ep:switch-filled","ep:takeaway-box","ep:ticket","ep:tickets","ep:timer","ep:toilet-paper","ep:tools","ep:top","ep:top-left","ep:top-right","ep:trend-charts","ep:trophy","ep:trophy-base","ep:turn-off","ep:umbrella","ep:unlock","ep:upload","ep:upload-filled","ep:user","ep:user-filled","ep:van","ep:video-camera","ep:video-camera-filled","ep:video-pause","ep:video-play","ep:view","ep:wallet","ep:wallet-filled","ep:warn-triangle-filled","ep:warning","ep:warning-filled","ep:watch","ep:watermelon","ep:wind-power","ep:zoom-in","ep:zoom-out"]},X={name:"Ant Design Icons",prefix:"ant-design",icons:["ant-design:account-book-filled","ant-design:account-book-outlined","ant-design:account-book-twotone","ant-design:aim-outlined","ant-design:alert-filled","ant-design:alert-outlined","ant-design:alert-twotone","ant-design:alibaba-outlined","ant-design:align-center-outlined","ant-design:align-left-outlined","ant-design:align-right-outlined","ant-design:alipay-circle-filled","ant-design:alipay-circle-outlined","ant-design:alipay-outlined","ant-design:alipay-square-filled","ant-design:aliwangwang-filled","ant-design:aliwangwang-outlined","ant-design:aliyun-outlined","ant-design:amazon-circle-filled","ant-design:amazon-outlined","ant-design:amazon-square-filled","ant-design:android-filled","ant-design:android-outlined","ant-design:ant-cloud-outlined","ant-design:ant-design-outlined","ant-design:apartment-outlined","ant-design:api-filled","ant-design:api-outlined","ant-design:api-twotone","ant-design:apple-filled","ant-design:apple-outlined","ant-design:appstore-add-outlined","ant-design:appstore-filled","ant-design:appstore-outlined","ant-design:appstore-twotone","ant-design:area-chart-outlined","ant-design:arrow-down-outlined","ant-design:arrow-left-outlined","ant-design:arrow-right-outlined","ant-design:arrow-up-outlined","ant-design:arrows-alt-outlined","ant-design:audio-filled","ant-design:audio-muted-outlined","ant-design:audio-outlined","ant-design:audio-twotone","ant-design:audit-outlined","ant-design:backward-filled","ant-design:backward-outlined","ant-design:bank-filled","ant-design:bank-outlined","ant-design:bank-twotone","ant-design:bar-chart-outlined","ant-design:barcode-outlined","ant-design:bars-outlined","ant-design:behance-circle-filled","ant-design:behance-outlined","ant-design:behance-square-filled","ant-design:behance-square-outlined","ant-design:bell-filled","ant-design:bell-outlined","ant-design:bell-twotone","ant-design:bg-colors-outlined","ant-design:block-outlined","ant-design:bold-outlined","ant-design:book-filled","ant-design:book-outlined","ant-design:book-twotone","ant-design:border-bottom-outlined","ant-design:border-horizontal-outlined","ant-design:border-inner-outlined","ant-design:border-left-outlined","ant-design:border-outer-outlined","ant-design:border-outlined","ant-design:border-right-outlined","ant-design:border-top-outlined","ant-design:border-verticle-outlined","ant-design:borderless-table-outlined","ant-design:box-plot-filled","ant-design:box-plot-outlined","ant-design:box-plot-twotone","ant-design:branches-outlined","ant-design:bug-filled","ant-design:bug-outlined","ant-design:bug-twotone","ant-design:build-filled","ant-design:build-outlined","ant-design:build-twotone","ant-design:bulb-filled","ant-design:bulb-outlined","ant-design:bulb-twotone","ant-design:calculator-filled","ant-design:calculator-outlined","ant-design:calculator-twotone","ant-design:calendar-filled","ant-design:calendar-outlined","ant-design:calendar-twotone","ant-design:camera-filled","ant-design:camera-outlined","ant-design:camera-twotone","ant-design:car-filled","ant-design:car-outlined","ant-design:car-twotone","ant-design:caret-down-filled","ant-design:caret-down-outlined","ant-design:caret-left-filled","ant-design:caret-left-outlined","ant-design:caret-right-filled","ant-design:caret-right-outlined","ant-design:caret-up-filled","ant-design:caret-up-outlined","ant-design:carry-out-filled","ant-design:carry-out-outlined","ant-design:carry-out-twotone","ant-design:check-circle-filled","ant-design:check-circle-outlined","ant-design:check-circle-twotone","ant-design:check-outlined","ant-design:check-square-filled","ant-design:check-square-outlined","ant-design:check-square-twotone","ant-design:chrome-filled","ant-design:chrome-outlined","ant-design:ci-circle-filled","ant-design:ci-circle-outlined","ant-design:ci-circle-twotone","ant-design:ci-outlined","ant-design:ci-twotone","ant-design:clear-outlined","ant-design:clock-circle-filled","ant-design:clock-circle-outlined","ant-design:clock-circle-twotone","ant-design:close-circle-filled","ant-design:close-circle-outlined","ant-design:close-circle-twotone","ant-design:close-outlined","ant-design:close-square-filled","ant-design:close-square-outlined","ant-design:close-square-twotone","ant-design:cloud-download-outlined","ant-design:cloud-filled","ant-design:cloud-outlined","ant-design:cloud-server-outlined","ant-design:cloud-sync-outlined","ant-design:cloud-twotone","ant-design:cloud-upload-outlined","ant-design:cluster-outlined","ant-design:code-filled","ant-design:code-outlined","ant-design:code-sandbox-circle-filled","ant-design:code-sandbox-outlined","ant-design:code-sandbox-square-filled","ant-design:code-twotone","ant-design:codepen-circle-filled","ant-design:codepen-circle-outlined","ant-design:codepen-outlined","ant-design:codepen-square-filled","ant-design:coffee-outlined","ant-design:column-height-outlined","ant-design:column-width-outlined","ant-design:comment-outlined","ant-design:compass-filled","ant-design:compass-outlined","ant-design:compass-twotone","ant-design:compress-outlined","ant-design:console-sql-outlined","ant-design:contacts-filled","ant-design:contacts-outlined","ant-design:contacts-twotone","ant-design:container-filled","ant-design:container-outlined","ant-design:container-twotone","ant-design:control-filled","ant-design:control-outlined","ant-design:control-twotone","ant-design:copy-filled","ant-design:copy-outlined","ant-design:copy-twotone","ant-design:copyright-circle-filled","ant-design:copyright-circle-outlined","ant-design:copyright-circle-twotone","ant-design:copyright-outlined","ant-design:copyright-twotone","ant-design:credit-card-filled","ant-design:credit-card-outlined","ant-design:credit-card-twotone","ant-design:crown-filled","ant-design:crown-outlined","ant-design:crown-twotone","ant-design:customer-service-filled","ant-design:customer-service-outlined","ant-design:customer-service-twotone","ant-design:dash-outlined","ant-design:dashboard-filled","ant-design:dashboard-outlined","ant-design:dashboard-twotone","ant-design:database-filled","ant-design:database-outlined","ant-design:database-twotone","ant-design:delete-column-outlined","ant-design:delete-filled","ant-design:delete-outlined","ant-design:delete-row-outlined","ant-design:delete-twotone","ant-design:delivered-procedure-outlined","ant-design:deployment-unit-outlined","ant-design:desktop-outlined","ant-design:diff-filled","ant-design:diff-outlined","ant-design:diff-twotone","ant-design:dingding-outlined","ant-design:dingtalk-circle-filled","ant-design:dingtalk-outlined","ant-design:dingtalk-square-filled","ant-design:disconnect-outlined","ant-design:dislike-filled","ant-design:dislike-outlined","ant-design:dislike-twotone","ant-design:dollar-circle-filled","ant-design:dollar-circle-outlined","ant-design:dollar-circle-twotone","ant-design:dollar-outlined","ant-design:dollar-twotone","ant-design:dot-chart-outlined","ant-design:double-left-outlined","ant-design:double-right-outlined","ant-design:down-circle-filled","ant-design:down-circle-outlined","ant-design:down-circle-twotone","ant-design:down-outlined","ant-design:down-square-filled","ant-design:down-square-outlined","ant-design:down-square-twotone","ant-design:download-outlined","ant-design:drag-outlined","ant-design:dribbble-circle-filled","ant-design:dribbble-outlined","ant-design:dribbble-square-filled","ant-design:dribbble-square-outlined","ant-design:dropbox-circle-filled","ant-design:dropbox-outlined","ant-design:dropbox-square-filled","ant-design:edit-filled","ant-design:edit-outlined","ant-design:edit-twotone","ant-design:ellipsis-outlined","ant-design:enter-outlined","ant-design:environment-filled","ant-design:environment-outlined","ant-design:environment-twotone","ant-design:euro-circle-filled","ant-design:euro-circle-outlined","ant-design:euro-circle-twotone","ant-design:euro-outlined","ant-design:euro-twotone","ant-design:exception-outlined","ant-design:exclamation-circle-filled","ant-design:exclamation-circle-outlined","ant-design:exclamation-circle-twotone","ant-design:exclamation-outlined","ant-design:expand-alt-outlined","ant-design:expand-outlined","ant-design:experiment-filled","ant-design:experiment-outlined","ant-design:experiment-twotone","ant-design:export-outlined","ant-design:eye-filled","ant-design:eye-invisible-filled","ant-design:eye-invisible-outlined","ant-design:eye-invisible-twotone","ant-design:eye-outlined","ant-design:eye-twotone","ant-design:facebook-filled","ant-design:facebook-outlined","ant-design:fall-outlined","ant-design:fast-backward-filled","ant-design:fast-backward-outlined","ant-design:fast-forward-filled","ant-design:fast-forward-outlined","ant-design:field-binary-outlined","ant-design:field-number-outlined","ant-design:field-string-outlined","ant-design:field-time-outlined","ant-design:file-add-filled","ant-design:file-add-outlined","ant-design:file-add-twotone","ant-design:file-done-outlined","ant-design:file-excel-filled","ant-design:file-excel-outlined","ant-design:file-excel-twotone","ant-design:file-exclamation-filled","ant-design:file-exclamation-outlined","ant-design:file-exclamation-twotone","ant-design:file-filled","ant-design:file-gif-outlined","ant-design:file-image-filled","ant-design:file-image-outlined","ant-design:file-image-twotone","ant-design:file-jpg-outlined","ant-design:file-markdown-filled","ant-design:file-markdown-outlined","ant-design:file-markdown-twotone","ant-design:file-outlined","ant-design:file-pdf-filled","ant-design:file-pdf-outlined","ant-design:file-pdf-twotone","ant-design:file-ppt-filled","ant-design:file-ppt-outlined","ant-design:file-ppt-twotone","ant-design:file-protect-outlined","ant-design:file-search-outlined","ant-design:file-sync-outlined","ant-design:file-text-filled","ant-design:file-text-outlined","ant-design:file-text-twotone","ant-design:file-twotone","ant-design:file-unknown-filled","ant-design:file-unknown-outlined","ant-design:file-unknown-twotone","ant-design:file-word-filled","ant-design:file-word-outlined","ant-design:file-word-twotone","ant-design:file-zip-filled","ant-design:file-zip-outlined","ant-design:file-zip-twotone","ant-design:filter-filled","ant-design:filter-outlined","ant-design:filter-twotone","ant-design:fire-filled","ant-design:fire-outlined","ant-design:fire-twotone","ant-design:flag-filled","ant-design:flag-outlined","ant-design:flag-twotone","ant-design:folder-add-filled","ant-design:folder-add-outlined","ant-design:folder-add-twotone","ant-design:folder-filled","ant-design:folder-open-filled","ant-design:folder-open-outlined","ant-design:folder-open-twotone","ant-design:folder-outlined","ant-design:folder-twotone","ant-design:folder-view-outlined","ant-design:font-colors-outlined","ant-design:font-size-outlined","ant-design:fork-outlined","ant-design:form-outlined","ant-design:format-painter-filled","ant-design:format-painter-outlined","ant-design:forward-filled","ant-design:forward-outlined","ant-design:frown-filled","ant-design:frown-outlined","ant-design:frown-twotone","ant-design:fullscreen-exit-outlined","ant-design:fullscreen-outlined","ant-design:function-outlined","ant-design:fund-filled","ant-design:fund-outlined","ant-design:fund-projection-screen-outlined","ant-design:fund-twotone","ant-design:fund-view-outlined","ant-design:funnel-plot-filled","ant-design:funnel-plot-outlined","ant-design:funnel-plot-twotone","ant-design:gateway-outlined","ant-design:gif-outlined","ant-design:gift-filled","ant-design:gift-outlined","ant-design:gift-twotone","ant-design:github-filled","ant-design:github-outlined","ant-design:gitlab-filled","ant-design:gitlab-outlined","ant-design:global-outlined","ant-design:gold-filled","ant-design:gold-outlined","ant-design:gold-twotone","ant-design:golden-filled","ant-design:google-circle-filled","ant-design:google-outlined","ant-design:google-plus-circle-filled","ant-design:google-plus-outlined","ant-design:google-plus-square-filled","ant-design:google-square-filled","ant-design:group-outlined","ant-design:hdd-filled","ant-design:hdd-outlined","ant-design:hdd-twotone","ant-design:heart-filled","ant-design:heart-outlined","ant-design:heart-twotone","ant-design:heat-map-outlined","ant-design:highlight-filled","ant-design:highlight-outlined","ant-design:highlight-twotone","ant-design:history-outlined","ant-design:holder-outlined","ant-design:home-filled","ant-design:home-outlined","ant-design:home-twotone","ant-design:hourglass-filled","ant-design:hourglass-outlined","ant-design:hourglass-twotone","ant-design:html5-filled","ant-design:html5-outlined","ant-design:html5-twotone","ant-design:idcard-filled","ant-design:idcard-outlined","ant-design:idcard-twotone","ant-design:ie-circle-filled","ant-design:ie-outlined","ant-design:ie-square-filled","ant-design:import-outlined","ant-design:inbox-outlined","ant-design:info-circle-filled","ant-design:info-circle-outlined","ant-design:info-circle-twotone","ant-design:info-outlined","ant-design:insert-row-above-outlined","ant-design:insert-row-below-outlined","ant-design:insert-row-left-outlined","ant-design:insert-row-right-outlined","ant-design:instagram-filled","ant-design:instagram-outlined","ant-design:insurance-filled","ant-design:insurance-outlined","ant-design:insurance-twotone","ant-design:interaction-filled","ant-design:interaction-outlined","ant-design:interaction-twotone","ant-design:issues-close-outlined","ant-design:italic-outlined","ant-design:key-outlined","ant-design:laptop-outlined","ant-design:layout-filled","ant-design:layout-outlined","ant-design:layout-twotone","ant-design:left-circle-filled","ant-design:left-circle-outlined","ant-design:left-circle-twotone","ant-design:left-outlined","ant-design:left-square-filled","ant-design:left-square-outlined","ant-design:left-square-twotone","ant-design:like-filled","ant-design:like-outlined","ant-design:like-twotone","ant-design:line-chart-outlined","ant-design:line-height-outlined","ant-design:line-outlined","ant-design:link-outlined","ant-design:linkedin-filled","ant-design:linkedin-outlined","ant-design:loading-3-quarters-outlined","ant-design:loading-outlined","ant-design:lock-filled","ant-design:lock-outlined","ant-design:lock-twotone","ant-design:login-outlined","ant-design:logout-outlined","ant-design:mac-command-filled","ant-design:mac-command-outlined","ant-design:mail-filled","ant-design:mail-outlined","ant-design:mail-twotone","ant-design:man-outlined","ant-design:medicine-box-filled","ant-design:medicine-box-outlined","ant-design:medicine-box-twotone","ant-design:medium-circle-filled","ant-design:medium-outlined","ant-design:medium-square-filled","ant-design:medium-workmark-outlined","ant-design:meh-filled","ant-design:meh-outlined","ant-design:meh-twotone","ant-design:menu-fold-outlined","ant-design:menu-outlined","ant-design:menu-unfold-outlined","ant-design:merge-cells-outlined","ant-design:message-filled","ant-design:message-outlined","ant-design:message-twotone","ant-design:minus-circle-filled","ant-design:minus-circle-outlined","ant-design:minus-circle-twotone","ant-design:minus-outlined","ant-design:minus-square-filled","ant-design:minus-square-outlined","ant-design:minus-square-twotone","ant-design:mobile-filled","ant-design:mobile-outlined","ant-design:mobile-twotone","ant-design:money-collect-filled","ant-design:money-collect-outlined","ant-design:money-collect-twotone","ant-design:monitor-outlined","ant-design:more-outlined","ant-design:node-collapse-outlined","ant-design:node-expand-outlined","ant-design:node-index-outlined","ant-design:notification-filled","ant-design:notification-outlined","ant-design:notification-twotone","ant-design:number-outlined","ant-design:one-to-one-outlined","ant-design:ordered-list-outlined","ant-design:paper-clip-outlined","ant-design:partition-outlined","ant-design:pause-circle-filled","ant-design:pause-circle-outlined","ant-design:pause-circle-twotone","ant-design:pause-outlined","ant-design:pay-circle-filled","ant-design:pay-circle-outlined","ant-design:percentage-outlined","ant-design:phone-filled","ant-design:phone-outlined","ant-design:phone-twotone","ant-design:pic-center-outlined","ant-design:pic-left-outlined","ant-design:pic-right-outlined","ant-design:picture-filled","ant-design:picture-outlined","ant-design:picture-twotone","ant-design:pie-chart-filled","ant-design:pie-chart-outlined","ant-design:pie-chart-twotone","ant-design:play-circle-filled","ant-design:play-circle-outlined","ant-design:play-circle-twotone","ant-design:play-square-filled","ant-design:play-square-outlined","ant-design:play-square-twotone","ant-design:plus-circle-filled","ant-design:plus-circle-outlined","ant-design:plus-circle-twotone","ant-design:plus-outlined","ant-design:plus-square-filled","ant-design:plus-square-outlined","ant-design:plus-square-twotone","ant-design:pound-circle-filled","ant-design:pound-circle-outlined","ant-design:pound-circle-twotone","ant-design:pound-outlined","ant-design:poweroff-outlined","ant-design:printer-filled","ant-design:printer-outlined","ant-design:printer-twotone","ant-design:profile-filled","ant-design:profile-outlined","ant-design:profile-twotone","ant-design:project-filled","ant-design:project-outlined","ant-design:project-twotone","ant-design:property-safety-filled","ant-design:property-safety-outlined","ant-design:property-safety-twotone","ant-design:pull-request-outlined","ant-design:pushpin-filled","ant-design:pushpin-outlined","ant-design:pushpin-twotone","ant-design:qq-circle-filled","ant-design:qq-outlined","ant-design:qq-square-filled","ant-design:qrcode-outlined","ant-design:question-circle-filled","ant-design:question-circle-outlined","ant-design:question-circle-twotone","ant-design:question-outlined","ant-design:radar-chart-outlined","ant-design:radius-bottomleft-outlined","ant-design:radius-bottomright-outlined","ant-design:radius-setting-outlined","ant-design:radius-upleft-outlined","ant-design:radius-upright-outlined","ant-design:read-filled","ant-design:read-outlined","ant-design:reconciliation-filled","ant-design:reconciliation-outlined","ant-design:reconciliation-twotone","ant-design:red-envelope-filled","ant-design:red-envelope-outlined","ant-design:red-envelope-twotone","ant-design:reddit-circle-filled","ant-design:reddit-outlined","ant-design:reddit-square-filled","ant-design:redo-outlined","ant-design:reload-outlined","ant-design:rest-filled","ant-design:rest-outlined","ant-design:rest-twotone","ant-design:retweet-outlined","ant-design:right-circle-filled","ant-design:right-circle-outlined","ant-design:right-circle-twotone","ant-design:right-outlined","ant-design:right-square-filled","ant-design:right-square-outlined","ant-design:right-square-twotone","ant-design:rise-outlined","ant-design:robot-filled","ant-design:robot-outlined","ant-design:rocket-filled","ant-design:rocket-outlined","ant-design:rocket-twotone","ant-design:rollback-outlined","ant-design:rotate-left-outlined","ant-design:rotate-right-outlined","ant-design:safety-certificate-filled","ant-design:safety-certificate-outlined","ant-design:safety-certificate-twotone","ant-design:safety-outlined","ant-design:save-filled","ant-design:save-outlined","ant-design:save-twotone","ant-design:scan-outlined","ant-design:schedule-filled","ant-design:schedule-outlined","ant-design:schedule-twotone","ant-design:scissor-outlined","ant-design:search-outlined","ant-design:security-scan-filled","ant-design:security-scan-outlined","ant-design:security-scan-twotone","ant-design:select-outlined","ant-design:send-outlined","ant-design:setting-filled","ant-design:setting-outlined","ant-design:setting-twotone","ant-design:shake-outlined","ant-design:share-alt-outlined","ant-design:shop-filled","ant-design:shop-outlined","ant-design:shop-twotone","ant-design:shopping-cart-outlined","ant-design:shopping-filled","ant-design:shopping-outlined","ant-design:shopping-twotone","ant-design:shrink-outlined","ant-design:signal-filled","ant-design:sisternode-outlined","ant-design:sketch-circle-filled","ant-design:sketch-outlined","ant-design:sketch-square-filled","ant-design:skin-filled","ant-design:skin-outlined","ant-design:skin-twotone","ant-design:skype-filled","ant-design:skype-outlined","ant-design:slack-circle-filled","ant-design:slack-outlined","ant-design:slack-square-filled","ant-design:slack-square-outlined","ant-design:sliders-filled","ant-design:sliders-outlined","ant-design:sliders-twotone","ant-design:small-dash-outlined","ant-design:smile-filled","ant-design:smile-outlined","ant-design:smile-twotone","ant-design:snippets-filled","ant-design:snippets-outlined","ant-design:snippets-twotone","ant-design:solution-outlined","ant-design:sort-ascending-outlined","ant-design:sort-descending-outlined","ant-design:sound-filled","ant-design:sound-outlined","ant-design:sound-twotone","ant-design:split-cells-outlined","ant-design:star-filled","ant-design:star-outlined","ant-design:star-twotone","ant-design:step-backward-filled","ant-design:step-backward-outlined","ant-design:step-forward-filled","ant-design:step-forward-outlined","ant-design:stock-outlined","ant-design:stop-filled","ant-design:stop-outlined","ant-design:stop-twotone","ant-design:strikethrough-outlined","ant-design:subnode-outlined","ant-design:swap-left-outlined","ant-design:swap-outlined","ant-design:swap-right-outlined","ant-design:switcher-filled","ant-design:switcher-outlined","ant-design:switcher-twotone","ant-design:sync-outlined","ant-design:table-outlined","ant-design:tablet-filled","ant-design:tablet-outlined","ant-design:tablet-twotone","ant-design:tag-filled","ant-design:tag-outlined","ant-design:tag-twotone","ant-design:tags-filled","ant-design:tags-outlined","ant-design:tags-twotone","ant-design:taobao-circle-filled","ant-design:taobao-circle-outlined","ant-design:taobao-outlined","ant-design:taobao-square-filled","ant-design:team-outlined","ant-design:thunderbolt-filled","ant-design:thunderbolt-outlined","ant-design:thunderbolt-twotone","ant-design:to-top-outlined","ant-design:tool-filled","ant-design:tool-outlined","ant-design:tool-twotone","ant-design:trademark-circle-filled","ant-design:trademark-circle-outlined","ant-design:trademark-circle-twotone","ant-design:trademark-outlined","ant-design:transaction-outlined","ant-design:translation-outlined","ant-design:trophy-filled","ant-design:trophy-outlined","ant-design:trophy-twotone","ant-design:twitter-circle-filled","ant-design:twitter-outlined","ant-design:twitter-square-filled","ant-design:underline-outlined","ant-design:undo-outlined","ant-design:ungroup-outlined","ant-design:unlock-filled","ant-design:unlock-outlined","ant-design:unlock-twotone","ant-design:unordered-list-outlined","ant-design:up-circle-filled","ant-design:up-circle-outlined","ant-design:up-circle-twotone","ant-design:up-outlined","ant-design:up-square-filled","ant-design:up-square-outlined","ant-design:up-square-twotone","ant-design:upload-outlined","ant-design:usb-filled","ant-design:usb-outlined","ant-design:usb-twotone","ant-design:user-add-outlined","ant-design:user-delete-outlined","ant-design:user-outlined","ant-design:user-switch-outlined","ant-design:usergroup-add-outlined","ant-design:usergroup-delete-outlined","ant-design:verified-outlined","ant-design:vertical-align-bottom-outlined","ant-design:vertical-align-middle-outlined","ant-design:vertical-align-top-outlined","ant-design:vertical-left-outlined","ant-design:vertical-right-outlined","ant-design:video-camera-add-outlined","ant-design:video-camera-filled","ant-design:video-camera-outlined","ant-design:video-camera-twotone","ant-design:wallet-filled","ant-design:wallet-outlined","ant-design:wallet-twotone","ant-design:warning-filled","ant-design:warning-outlined","ant-design:warning-twotone","ant-design:wechat-filled","ant-design:wechat-outlined","ant-design:weibo-circle-filled","ant-design:weibo-circle-outlined","ant-design:weibo-outlined","ant-design:weibo-square-filled","ant-design:weibo-square-outlined","ant-design:whats-app-outlined","ant-design:wifi-outlined","ant-design:windows-filled","ant-design:windows-outlined","ant-design:woman-outlined","ant-design:yahoo-filled","ant-design:yahoo-outlined","ant-design:youtube-filled","ant-design:youtube-outlined","ant-design:yuque-filled","ant-design:yuque-outlined","ant-design:zhihu-circle-filled","ant-design:zhihu-outlined","ant-design:zhihu-square-filled","ant-design:zoom-in-outlined","ant-design:zoom-out-outlined"]},Z={name:"TDesign Icons",prefix:"tdesign",icons:["tdesign:activity","tdesign:add","tdesign:add-and-subtract","tdesign:add-circle","tdesign:add-rectangle","tdesign:address-book","tdesign:adjustment","tdesign:airplay-wave","tdesign:alarm","tdesign:alarm-add","tdesign:alarm-off","tdesign:align-top","tdesign:align-vertical","tdesign:alpha","tdesign:analytics","tdesign:anchor","tdesign:angry","tdesign:animation","tdesign:animation-1","tdesign:anticlockwise","tdesign:api","tdesign:app","tdesign:apple","tdesign:application","tdesign:architecture-hui-style","tdesign:archway","tdesign:archway-1","tdesign:arrow-down","tdesign:arrow-down-circle","tdesign:arrow-down-rectangle","tdesign:arrow-left","tdesign:arrow-left-circle","tdesign:arrow-left-down","tdesign:arrow-left-down-circle","tdesign:arrow-left-right-1","tdesign:arrow-left-right-2","tdesign:arrow-left-right-3","tdesign:arrow-left-right-circle","tdesign:arrow-left-up","tdesign:arrow-left-up-circle","tdesign:arrow-right","tdesign:arrow-right-circle","tdesign:arrow-right-down","tdesign:arrow-right-down-circle","tdesign:arrow-right-up","tdesign:arrow-right-up-circle","tdesign:arrow-triangle-down","tdesign:arrow-triangle-down-filled","tdesign:arrow-triangle-up","tdesign:arrow-triangle-up-filled","tdesign:arrow-up","tdesign:arrow-up-circle","tdesign:arrow-up-down-1","tdesign:arrow-up-down-2","tdesign:arrow-up-down-3","tdesign:arrow-up-down-circle","tdesign:artboard","tdesign:article","tdesign:assignment","tdesign:assignment-checked","tdesign:assignment-code","tdesign:assignment-error","tdesign:assignment-user","tdesign:attach","tdesign:attic","tdesign:attic-1","tdesign:audio","tdesign:awkward","tdesign:backtop","tdesign:backtop-rectangle","tdesign:backup","tdesign:backward","tdesign:bad-laugh","tdesign:bamboo-shoot","tdesign:banana","tdesign:barbecue","tdesign:barcode","tdesign:barcode-1","tdesign:base-station","tdesign:battery","tdesign:battery-add","tdesign:battery-charging","tdesign:battery-low","tdesign:bean","tdesign:beer","tdesign:beta","tdesign:bifurcate","tdesign:bill","tdesign:blockchain","tdesign:bluetooth","tdesign:bone","tdesign:book","tdesign:book-open","tdesign:bookmark","tdesign:bookmark-add","tdesign:bookmark-checked","tdesign:bookmark-double","tdesign:bookmark-minus","tdesign:braces","tdesign:brackets","tdesign:bread","tdesign:bridge","tdesign:bridge-1","tdesign:bridge-2","tdesign:bridge-3","tdesign:bridge-4","tdesign:bridge-5","tdesign:bridge-6","tdesign:brightness","tdesign:brightness-1","tdesign:broccoli","tdesign:browse","tdesign:browse-gallery","tdesign:browse-off","tdesign:brush","tdesign:bug","tdesign:bug-report","tdesign:building","tdesign:building-1","tdesign:building-2","tdesign:building-3","tdesign:building-4","tdesign:building-5","tdesign:bulletpoint","tdesign:button","tdesign:cabbage","tdesign:cake","tdesign:calculation","tdesign:calculation-1","tdesign:calculator","tdesign:calculator-1","tdesign:calendar","tdesign:calendar-1","tdesign:calendar-2","tdesign:calendar-edit","tdesign:calendar-event","tdesign:call","tdesign:call-1","tdesign:call-cancel","tdesign:call-forwarded","tdesign:call-incoming","tdesign:call-off","tdesign:calm","tdesign:calm-1","tdesign:camera","tdesign:camera-1","tdesign:camera-2","tdesign:camera-off","tdesign:candy","tdesign:card","tdesign:cardmembership","tdesign:caret-down","tdesign:caret-down-small","tdesign:caret-left","tdesign:caret-left-small","tdesign:caret-right","tdesign:caret-right-small","tdesign:caret-up","tdesign:caret-up-small","tdesign:cart","tdesign:cart-add","tdesign:cast","tdesign:castle","tdesign:castle-1","tdesign:castle-2","tdesign:castle-3","tdesign:castle-4","tdesign:castle-5","tdesign:castle-6","tdesign:castle-7","tdesign:cat","tdesign:catalog","tdesign:cd","tdesign:celsius","tdesign:center-focus-strong","tdesign:centimeter","tdesign:certificate","tdesign:certificate-1","tdesign:chart","tdesign:chart-3d","tdesign:chart-add","tdesign:chart-analytics","tdesign:chart-area","tdesign:chart-area-multi","tdesign:chart-bar","tdesign:chart-bubble","tdesign:chart-colum","tdesign:chart-combo","tdesign:chart-line","tdesign:chart-line-data","tdesign:chart-line-data-1","tdesign:chart-line-multi","tdesign:chart-maximum","tdesign:chart-median","tdesign:chart-minimum","tdesign:chart-pie","tdesign:chart-radar","tdesign:chart-radial","tdesign:chart-ring","tdesign:chart-ring-1","tdesign:chart-scatter","tdesign:chart-stacked","tdesign:chat","tdesign:chat-add","tdesign:chat-bubble","tdesign:chat-bubble-1","tdesign:chat-bubble-add","tdesign:chat-bubble-error","tdesign:chat-bubble-help","tdesign:chat-bubble-history","tdesign:chat-bubble-locked","tdesign:chat-bubble-smile","tdesign:chat-checked","tdesign:chat-clear","tdesign:chat-double","tdesign:chat-error","tdesign:chat-heart","tdesign:chat-message","tdesign:chat-off","tdesign:chat-poll","tdesign:chat-setting","tdesign:check","tdesign:check-circle","tdesign:check-circle-filled","tdesign:check-double","tdesign:check-rectangle","tdesign:check-rectangle-filled","tdesign:cheese","tdesign:cherry","tdesign:chevron-down","tdesign:chevron-down-circle","tdesign:chevron-down-double","tdesign:chevron-down-double-s","tdesign:chevron-down-rectangle","tdesign:chevron-down-s","tdesign:chevron-left","tdesign:chevron-left-circle","tdesign:chevron-left-double","tdesign:chevron-left-double-s","tdesign:chevron-left-rectangle","tdesign:chevron-left-s","tdesign:chevron-right","tdesign:chevron-right-circle","tdesign:chevron-right-double","tdesign:chevron-right-double-s","tdesign:chevron-right-rectangle","tdesign:chevron-right-s","tdesign:chevron-up","tdesign:chevron-up-circle","tdesign:chevron-up-double","tdesign:chevron-up-double-s","tdesign:chevron-up-rectangle","tdesign:chevron-up-s","tdesign:chicken","tdesign:chili","tdesign:chimney","tdesign:chimney-1","tdesign:chimney-2","tdesign:chinese-cabbage","tdesign:church","tdesign:circle","tdesign:city","tdesign:city-1","tdesign:city-10","tdesign:city-11","tdesign:city-12","tdesign:city-13","tdesign:city-14","tdesign:city-15","tdesign:city-2","tdesign:city-3","tdesign:city-4","tdesign:city-5","tdesign:city-6","tdesign:city-7","tdesign:city-8","tdesign:city-9","tdesign:city-ancient","tdesign:city-ancient-1","tdesign:city-ancient-2","tdesign:clear","tdesign:clear-formatting","tdesign:clear-formatting-1","tdesign:close","tdesign:close-circle","tdesign:close-circle-filled","tdesign:close-octagon","tdesign:close-rectangle","tdesign:cloud","tdesign:cloud-download","tdesign:cloud-upload","tdesign:cloudy-day","tdesign:cloudy-night","tdesign:cloudy-night-rain","tdesign:cloudy-rain","tdesign:cloudy-sunny","tdesign:code","tdesign:code-1","tdesign:code-off","tdesign:cola","tdesign:collage","tdesign:collection","tdesign:color-invert","tdesign:combination","tdesign:command","tdesign:compass","tdesign:compass-1","tdesign:component-breadcrumb","tdesign:component-checkbox","tdesign:component-divider-horizontal","tdesign:component-divider-vertical","tdesign:component-dropdown","tdesign:component-grid","tdesign:component-input","tdesign:component-layout","tdesign:component-radio","tdesign:component-space","tdesign:component-steps","tdesign:component-switch","tdesign:constraint","tdesign:contrast","tdesign:contrast-1","tdesign:control-platform","tdesign:cooperate","tdesign:coordinate-system","tdesign:copy","tdesign:copyright","tdesign:corn","tdesign:coupon","tdesign:course","tdesign:cpu","tdesign:crack","tdesign:creditcard","tdesign:creditcard-add","tdesign:creditcard-off","tdesign:crooked-smile","tdesign:cry-and-laugh","tdesign:cry-loudly","tdesign:css3","tdesign:cucumber","tdesign:currency-exchange","tdesign:cursor","tdesign:curtain","tdesign:curve","tdesign:cut","tdesign:cut-1","tdesign:dam","tdesign:dam-1","tdesign:dam-2","tdesign:dam-3","tdesign:dam-4","tdesign:dam-5","tdesign:dam-6","tdesign:dam-7","tdesign:dart-board","tdesign:dashboard","tdesign:dashboard-1","tdesign:data","tdesign:data-base","tdesign:data-checked","tdesign:data-display","tdesign:data-error","tdesign:data-search","tdesign:delete","tdesign:delete-1","tdesign:delete-time","tdesign:delta","tdesign:depressed","tdesign:desktop","tdesign:desktop-1","tdesign:despise","tdesign:device","tdesign:discount","tdesign:discount-filled","tdesign:dissatisfaction","tdesign:divide","tdesign:dividers","tdesign:dividers-1","tdesign:doge","tdesign:double-storey","tdesign:download","tdesign:download-1","tdesign:downscale","tdesign:drag-drop","tdesign:drag-move","tdesign:drink","tdesign:drumstick","tdesign:dv","tdesign:dvd","tdesign:earphone","tdesign:earth","tdesign:edit","tdesign:edit-1","tdesign:edit-2","tdesign:edit-off","tdesign:education","tdesign:eggplant","tdesign:ellipsis","tdesign:emo-emotional","tdesign:enter","tdesign:equal","tdesign:error","tdesign:error-circle","tdesign:error-circle-filled","tdesign:error-triangle","tdesign:excited","tdesign:excited-1","tdesign:expand-horizontal","tdesign:expand-vertical","tdesign:explore","tdesign:explore-off","tdesign:exposure","tdesign:extension","tdesign:extension-off","tdesign:face-retouching","tdesign:fact-check","tdesign:fahrenheit-scale","tdesign:feel-at-ease","tdesign:ferocious","tdesign:ferris-wheel","tdesign:file","tdesign:file-1","tdesign:file-add","tdesign:file-add-1","tdesign:file-attachment","tdesign:file-blocked","tdesign:file-code","tdesign:file-code-1","tdesign:file-copy","tdesign:file-download","tdesign:file-excel","tdesign:file-export","tdesign:file-icon","tdesign:file-image","tdesign:file-import","tdesign:file-locked","tdesign:file-minus","tdesign:file-music","tdesign:file-onenote","tdesign:file-outlook","tdesign:file-paste","tdesign:file-pdf","tdesign:file-powerpoint","tdesign:file-restore","tdesign:file-safety","tdesign:file-search","tdesign:file-setting","tdesign:file-teams","tdesign:file-unknown","tdesign:file-unlocked","tdesign:file-word","tdesign:file-zip","tdesign:fill-color","tdesign:fill-color-1","tdesign:film","tdesign:film-1","tdesign:filter","tdesign:filter-1","tdesign:filter-2","tdesign:filter-3","tdesign:filter-clear","tdesign:filter-off","tdesign:fingerprint","tdesign:fingerprint-1","tdesign:fingerprint-2","tdesign:fingerprint-3","tdesign:fish","tdesign:flag","tdesign:flag-1","tdesign:flag-2","tdesign:flag-3","tdesign:flag-4","tdesign:flashlight","tdesign:flight-landing","tdesign:flight-takeoff","tdesign:flip-smiling-face","tdesign:flip-to-back","tdesign:flip-to-front","tdesign:focus","tdesign:fog","tdesign:fog-night","tdesign:fog-sunny","tdesign:folder","tdesign:folder-1","tdesign:folder-add","tdesign:folder-add-1","tdesign:folder-blocked","tdesign:folder-details","tdesign:folder-export","tdesign:folder-import","tdesign:folder-locked","tdesign:folder-minus","tdesign:folder-move","tdesign:folder-off","tdesign:folder-open","tdesign:folder-open-1","tdesign:folder-search","tdesign:folder-setting","tdesign:folder-shared","tdesign:folder-unlocked","tdesign:folder-zip","tdesign:forest","tdesign:fork","tdesign:form","tdesign:format-horizontal-align-bottom","tdesign:format-horizontal-align-center","tdesign:format-horizontal-align-top","tdesign:format-vertical-align-center","tdesign:format-vertical-align-left","tdesign:format-vertical-align-right","tdesign:forward","tdesign:frame","tdesign:frame-1","tdesign:fries","tdesign:fullscreen","tdesign:fullscreen-1","tdesign:fullscreen-2","tdesign:fullscreen-exit","tdesign:fullscreen-exit-1","tdesign:function-curve","tdesign:functions","tdesign:functions-1","tdesign:gamepad","tdesign:gamepad-1","tdesign:gamma","tdesign:garlic","tdesign:gender-female","tdesign:gender-male","tdesign:gesture-applause","tdesign:gesture-click","tdesign:gesture-down","tdesign:gesture-expansion","tdesign:gesture-left","tdesign:gesture-left-slip","tdesign:gesture-pray","tdesign:gesture-pray-1","tdesign:gesture-press","tdesign:gesture-ranslation","tdesign:gesture-ranslation-1","tdesign:gesture-right","tdesign:gesture-right-slip","tdesign:gesture-slide-up","tdesign:gesture-up","tdesign:gesture-up-1","tdesign:gesture-up-2","tdesign:gesture-up-and-down","tdesign:gesture-wipe-down","tdesign:gift","tdesign:giggle","tdesign:git-branch","tdesign:git-commit","tdesign:git-merge","tdesign:git-pull-request","tdesign:git-repository","tdesign:git-repository-commits","tdesign:git-repository-private","tdesign:gps","tdesign:grape","tdesign:greater-than","tdesign:greater-than-or-equal","tdesign:green-onion","tdesign:grid-add","tdesign:grid-view","tdesign:guitar","tdesign:hamburger","tdesign:happy","tdesign:hard-disk-storage","tdesign:hard-drive","tdesign:hashtag","tdesign:hd","tdesign:heart","tdesign:heart-filled","tdesign:help","tdesign:help-circle","tdesign:help-circle-filled","tdesign:help-rectangle","tdesign:highlight","tdesign:highlight-1","tdesign:history","tdesign:history-setting","tdesign:home","tdesign:hospital","tdesign:hospital-1","tdesign:hotspot-wave","tdesign:hourglass","tdesign:houses","tdesign:houses-1","tdesign:houses-2","tdesign:html5","tdesign:https","tdesign:ice-cream","tdesign:icon","tdesign:image","tdesign:image-1","tdesign:image-add","tdesign:image-edit","tdesign:image-error","tdesign:image-off","tdesign:image-search","tdesign:indent-left","tdesign:indent-right","tdesign:indicator","tdesign:info-circle","tdesign:info-circle-filled","tdesign:ink","tdesign:install","tdesign:install-desktop","tdesign:install-mobile","tdesign:institution","tdesign:institution-checked","tdesign:internet","tdesign:ipod","tdesign:joyful","tdesign:jump","tdesign:jump-off","tdesign:keyboard","tdesign:laptop","tdesign:layers","tdesign:layout","tdesign:leaderboard","tdesign:lemon","tdesign:lemon-slice","tdesign:less-than","tdesign:less-than-or-equal","tdesign:letters-a","tdesign:letters-b","tdesign:letters-c","tdesign:letters-d","tdesign:letters-e","tdesign:letters-f","tdesign:letters-g","tdesign:letters-h","tdesign:letters-i","tdesign:letters-j","tdesign:letters-k","tdesign:letters-l","tdesign:letters-m","tdesign:letters-n","tdesign:letters-o","tdesign:letters-p","tdesign:letters-q","tdesign:letters-r","tdesign:letters-s","tdesign:letters-t","tdesign:letters-u","tdesign:letters-v","tdesign:letters-w","tdesign:letters-x","tdesign:letters-y","tdesign:letters-z","tdesign:lightbulb","tdesign:lightbulb-circle","tdesign:lighthouse","tdesign:lighthouse-1","tdesign:lighthouse-2","tdesign:lighting-circle","tdesign:line-height","tdesign:link","tdesign:link-1","tdesign:link-unlink","tdesign:liquor","tdesign:list","tdesign:load","tdesign:loading","tdesign:location","tdesign:location-1","tdesign:location-enlargement","tdesign:location-error","tdesign:location-parking-place","tdesign:location-reduction","tdesign:location-setting","tdesign:lock-off","tdesign:lock-on","tdesign:lock-time","tdesign:login","tdesign:logo-adobe-illustrate","tdesign:logo-adobe-photoshop","tdesign:logo-adobe-photoshop-1","tdesign:logo-android","tdesign:logo-apple","tdesign:logo-apple-filled","tdesign:logo-behance","tdesign:logo-chrome","tdesign:logo-chrome-filled","tdesign:logo-cinema4d","tdesign:logo-codepen","tdesign:logo-codesandbox","tdesign:logo-dribbble","tdesign:logo-facebook","tdesign:logo-figma","tdesign:logo-framer","tdesign:logo-github","tdesign:logo-github-filled","tdesign:logo-gitlab","tdesign:logo-ie","tdesign:logo-ie-filled","tdesign:logo-instagram","tdesign:logo-qq","tdesign:logo-twitter","tdesign:logo-wechat","tdesign:logo-wechat-stroke","tdesign:logo-wecom","tdesign:logo-windows","tdesign:logo-windows-filled","tdesign:logo-youtube","tdesign:logout","tdesign:look-around","tdesign:loudspeaker","tdesign:mail","tdesign:map","tdesign:map-3d","tdesign:map-add","tdesign:map-aiming","tdesign:map-blocked","tdesign:map-bubble","tdesign:map-cancel","tdesign:map-chat","tdesign:map-checked","tdesign:map-collection","tdesign:map-connection","tdesign:map-distance","tdesign:map-double","tdesign:map-edit","tdesign:map-grid","tdesign:map-information","tdesign:map-information-1","tdesign:map-information-2","tdesign:map-location","tdesign:map-locked","tdesign:map-marked","tdesign:map-navigation","tdesign:map-outline","tdesign:map-route-planning","tdesign:map-ruler","tdesign:map-safety","tdesign:map-search","tdesign:map-search-1","tdesign:map-setting","tdesign:map-unlocked","tdesign:mark-as-unread","tdesign:markup","tdesign:mathematics","tdesign:measurement","tdesign:measurement-1","tdesign:measurement-2","tdesign:meat-pepper","tdesign:media-library","tdesign:member","tdesign:menu","tdesign:menu-application","tdesign:menu-fold","tdesign:menu-unfold","tdesign:merge-cells","tdesign:microphone","tdesign:microphone-1","tdesign:microphone-2","tdesign:milk","tdesign:minus","tdesign:minus-circle","tdesign:minus-circle-filled","tdesign:minus-rectangle","tdesign:minus-rectangle-filled","tdesign:mirror","tdesign:mobile","tdesign:mobile-blocked","tdesign:mobile-list","tdesign:mobile-navigation","tdesign:mobile-shortcut","tdesign:mobile-vibrate","tdesign:mode-dark","tdesign:mode-light","tdesign:module","tdesign:money","tdesign:monument","tdesign:moon","tdesign:moon-fall","tdesign:moon-rising","tdesign:more","tdesign:mosque","tdesign:mosque-1","tdesign:mouse","tdesign:move","tdesign:move-1","tdesign:movie-clapper","tdesign:multiply","tdesign:museum","tdesign:museum-1","tdesign:museum-2","tdesign:mushroom","tdesign:mushroom-1","tdesign:music","tdesign:music-1","tdesign:music-2","tdesign:music-rectangle-add","tdesign:navigation-arrow","tdesign:next","tdesign:no-expression","tdesign:noodle","tdesign:notification","tdesign:notification-add","tdesign:notification-circle","tdesign:notification-error","tdesign:notification-filled","tdesign:numbers-0","tdesign:numbers-0-1","tdesign:numbers-1","tdesign:numbers-1-1","tdesign:numbers-2","tdesign:numbers-2-1","tdesign:numbers-3","tdesign:numbers-3-1","tdesign:numbers-4","tdesign:numbers-4-1","tdesign:numbers-5","tdesign:numbers-5-1","tdesign:numbers-6","tdesign:numbers-6-1","tdesign:numbers-7","tdesign:numbers-7-1","tdesign:numbers-8","tdesign:numbers-8-1","tdesign:numbers-9","tdesign:numbers-9-1","tdesign:nut","tdesign:object-storage","tdesign:open-mouth","tdesign:opera","tdesign:order-adjustment-column","tdesign:order-ascending","tdesign:order-descending","tdesign:outbox","tdesign:page-first","tdesign:page-head","tdesign:page-last","tdesign:palace","tdesign:palace-1","tdesign:palace-2","tdesign:palace-3","tdesign:palace-4","tdesign:palette","tdesign:palette-1","tdesign:panorama-horizontal","tdesign:panorama-vertical","tdesign:pantone","tdesign:parabola","tdesign:parentheses","tdesign:paste","tdesign:patio","tdesign:pause","tdesign:pause-circle","tdesign:pause-circle-filled","tdesign:pause-circle-stroke","tdesign:pea","tdesign:peach","tdesign:pear","tdesign:pearl-of-the-orient","tdesign:pen","tdesign:pen-ball","tdesign:pen-brush","tdesign:pen-mark","tdesign:pen-quill","tdesign:pending","tdesign:percent","tdesign:personal-information","tdesign:phone-locked","tdesign:phone-search","tdesign:pi","tdesign:piano","tdesign:pin","tdesign:pin-filled","tdesign:play","tdesign:play-circle","tdesign:play-circle-filled","tdesign:play-circle-stroke","tdesign:play-circle-stroke-add","tdesign:play-demo","tdesign:play-rectangle","tdesign:plus","tdesign:popsicle","tdesign:portrait","tdesign:pout","tdesign:poweroff","tdesign:precise-monitor","tdesign:previous","tdesign:print","tdesign:pumpkin","tdesign:pyramid","tdesign:pyramid-maya","tdesign:qrcode","tdesign:quadratic","tdesign:questionnaire","tdesign:queue","tdesign:radar","tdesign:radio-1","tdesign:radio-2","tdesign:radish","tdesign:rain-heavy","tdesign:rain-light","tdesign:rain-medium","tdesign:rainbow","tdesign:rectangle","tdesign:refresh","tdesign:relation","tdesign:relativity","tdesign:remote-wave","tdesign:remove","tdesign:replay","tdesign:rice","tdesign:rice-ball","tdesign:roast","tdesign:rocket","tdesign:rollback","tdesign:rollfront","tdesign:root-list","tdesign:rotate","tdesign:rotate-locked","tdesign:rotation","tdesign:round","tdesign:router-wave","tdesign:rss","tdesign:ruler","tdesign:sailing-hotel","tdesign:sandwich","tdesign:saturation","tdesign:sausage","tdesign:save","tdesign:saving-pot","tdesign:scan","tdesign:screen-4k","tdesign:screencast","tdesign:screenshot","tdesign:scroll-bar","tdesign:sd-card","tdesign:sd-card-1","tdesign:search","tdesign:search-error","tdesign:secured","tdesign:send","tdesign:send-cancel","tdesign:sensors","tdesign:sensors-1","tdesign:sensors-2","tdesign:sensors-off","tdesign:serenity","tdesign:server","tdesign:service","tdesign:setting","tdesign:setting-1","tdesign:share","tdesign:share-1","tdesign:sharpness","tdesign:shield-error","tdesign:shimen","tdesign:shop","tdesign:shop-1","tdesign:shop-2","tdesign:shop-3","tdesign:shop-4","tdesign:shop-5","tdesign:shrimp","tdesign:shrink-horizontal","tdesign:shrink-vertical","tdesign:shutter","tdesign:shutup","tdesign:sim-card","tdesign:sim-card-1","tdesign:sim-card-2","tdesign:sinister-smile","tdesign:sip","tdesign:slash","tdesign:sleep","tdesign:slice","tdesign:slideshow","tdesign:smile","tdesign:sneer","tdesign:snowflake","tdesign:sonic","tdesign:sound","tdesign:sound-down","tdesign:sound-high","tdesign:sound-low","tdesign:sound-mute","tdesign:sound-mute-1","tdesign:sound-up","tdesign:space","tdesign:speechless-1","tdesign:star","tdesign:star-filled","tdesign:statue-of-jesus","tdesign:sticky-note","tdesign:stop","tdesign:stop-circle","tdesign:stop-circle-filled","tdesign:stop-circle-stroke","tdesign:store","tdesign:street-road","tdesign:street-road-1","tdesign:subtitle","tdesign:subway-line","tdesign:sum","tdesign:sun-fall","tdesign:sun-rising","tdesign:sunny","tdesign:support","tdesign:surprised","tdesign:surprised-1","tdesign:swap","tdesign:swap-left","tdesign:swap-right","tdesign:swear-1","tdesign:swear-2","tdesign:system-2","tdesign:system-3","tdesign:system-application","tdesign:system-blocked","tdesign:system-code","tdesign:system-components","tdesign:system-coordinate","tdesign:system-device","tdesign:system-interface","tdesign:system-location","tdesign:system-locked","tdesign:system-log","tdesign:system-marked","tdesign:system-messages","tdesign:system-regulation","tdesign:system-search","tdesign:system-setting","tdesign:system-storage","tdesign:system-sum","tdesign:system-unlocked","tdesign:tab","tdesign:table","tdesign:table-1","tdesign:table-2","tdesign:table-add","tdesign:table-split","tdesign:tag","tdesign:tangerinr","tdesign:tape","tdesign:task","tdesign:task-1","tdesign:task-add","tdesign:task-add-1","tdesign:task-checked","tdesign:task-error","tdesign:task-location","tdesign:task-marked","tdesign:task-setting","tdesign:task-visible","tdesign:tea","tdesign:teahouse","tdesign:template","tdesign:temple","tdesign:terminal","tdesign:terminal-rectangle","tdesign:terminal-rectangle-1","tdesign:terminal-window","tdesign:textbox","tdesign:textformat-bold","tdesign:textformat-color","tdesign:textformat-italic","tdesign:textformat-strikethrough","tdesign:textformat-underline","tdesign:textformat-wrap","tdesign:theaters","tdesign:thumb-down","tdesign:thumb-down-1","tdesign:thumb-down-2","tdesign:thumb-up","tdesign:thumb-up-1","tdesign:thumb-up-2","tdesign:thunder","tdesign:thunderstorm","tdesign:thunderstorm-night","tdesign:thunderstorm-sunny","tdesign:ticket","tdesign:time","tdesign:time-filled","tdesign:tips","tdesign:tips-double","tdesign:tomato","tdesign:tools","tdesign:tools-circle","tdesign:tornado","tdesign:tower","tdesign:tower-1","tdesign:tower-2","tdesign:tower-3","tdesign:tower-clock","tdesign:town","tdesign:traffic","tdesign:traffic-events","tdesign:transform","tdesign:transform-1","tdesign:transform-2","tdesign:transform-3","tdesign:translate","tdesign:translate-1","tdesign:tree-list","tdesign:tree-round-dot","tdesign:tree-round-dot-vertical","tdesign:tree-square-dot","tdesign:tree-square-dot-vertical","tdesign:trending-down","tdesign:trending-up","tdesign:tv","tdesign:tv-1","tdesign:tv-2","tdesign:typography","tdesign:uncomfortable","tdesign:uncomfortable-1","tdesign:uncomfortable-2","tdesign:undertake","tdesign:undertake-delivery","tdesign:undertake-environment-protection","tdesign:undertake-hold-up","tdesign:undertake-transaction","tdesign:unfold-less","tdesign:unfold-more","tdesign:unhappy","tdesign:unhappy-1","tdesign:uninstall","tdesign:upload","tdesign:upload-1","tdesign:upscale","tdesign:usb","tdesign:user","tdesign:user-1","tdesign:user-add","tdesign:user-arrow-down","tdesign:user-arrow-left","tdesign:user-arrow-right","tdesign:user-arrow-up","tdesign:user-avatar","tdesign:user-blocked","tdesign:user-business","tdesign:user-checked","tdesign:user-checked-1","tdesign:user-circle","tdesign:user-clear","tdesign:user-error-1","tdesign:user-invisible","tdesign:user-list","tdesign:user-locked","tdesign:user-marked","tdesign:user-password","tdesign:user-safety","tdesign:user-search","tdesign:user-setting","tdesign:user-talk","tdesign:user-talk-1","tdesign:user-talk-off-1","tdesign:user-time","tdesign:user-transmit","tdesign:user-unknown","tdesign:user-unlocked","tdesign:user-vip","tdesign:user-visible","tdesign:usergroup","tdesign:usergroup-add","tdesign:usergroup-clear","tdesign:vehicle","tdesign:verified","tdesign:verify","tdesign:video","tdesign:video-camera","tdesign:video-camera-1","tdesign:video-camera-2","tdesign:video-camera-dollar","tdesign:video-camera-minus","tdesign:video-camera-music","tdesign:video-camera-off","tdesign:video-library","tdesign:view-agenda","tdesign:view-column","tdesign:view-in-ar","tdesign:view-list","tdesign:view-module","tdesign:visual-recognition","tdesign:wallet","tdesign:watch","tdesign:watermelon","tdesign:wave-left","tdesign:wave-right","tdesign:wealth","tdesign:wealth-1","tdesign:widget","tdesign:wifi","tdesign:wifi-1","tdesign:wifi-off","tdesign:wifi-off-1","tdesign:window","tdesign:window-1","tdesign:windy","tdesign:windy-rain","tdesign:wink","tdesign:work","tdesign:work-history","tdesign:work-off","tdesign:wry-smile","tdesign:zoom-in","tdesign:zoom-out"]},ee={class:"icon-picker flex justify-center items-center box"},ne={class:"flex flex-wrap box-border"},te=["onClick"],ie={class:"h-50px absolute bottom-0 left-0 flex items-center pl-[var(--el-popover-padding)] pr-[var(--el-popover-padding)]"},de=$({__name:"IconPicker",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(v){const u=i=>j(this,null,function*(){if(!i)return;const t=i.split(":");s.value=t[0];const c=g.findIndex(a=>a.prefix===t[0]),d=I(g[c].icons).findIndex(a=>a===i);yield S(),r.value=Math.ceil((d+1)/e(m))}),n=L(v,"modelValue"),x=F(),p=b(()=>x.getCurrentSize),l=b(()=>e(p)==="small"?"var(--el-component-size-small)":e(p)==="large"?"var(--el-component-size-large)":"var(--el-component-size)"),q=b(()=>({width:e(l),height:e(l),display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset",position:"relative",left:"-1px",cursor:"pointer"})),g=[R,X,Z],s=k(g[0].prefix),f=b(()=>g.findIndex(i=>i.prefix===e(s))),T=()=>{r.value=1},m=k(49),r=k(1),N=i=>{const t=(e(r)-1)*e(m),c=e(r)*e(m);return i.slice(t,c)};Q(()=>n.value,i=>j(this,null,function*(){yield S(),i&&u(i)}),{immediate:!0});const U=()=>{u(e(n))},B=i=>{if(i===e(n)){n.value="";return}n.value=i},z=k(""),I=i=>i.filter(t=>t.includes(e(z))),A=()=>{u(e(n))};return(i,t)=>{const c=M;return h(),y("div",ee,[o(e(E),{disabled:"",modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=d=>n.value=d),clearable:""},null,8,["modelValue"]),o(e(O),{placement:"bottom",trigger:"click",width:450,"popper-style":"box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; height: 380px;",onShow:U},{reference:w(()=>[V("div",{style:_(q.value)},[n.value?(h(),W(c,{key:0,icon:n.value},null,8,["icon"])):Y("",!0)],4)]),default:w(()=>[o(e(G),{class:"h-[calc(100%-50px)]!"},{default:w(()=>[o(e(E),{modelValue:z.value,"onUpdate:modelValue":t[1]||(t[1]=d=>z.value=d),class:"mb-20px",clearable:"",placeholder:"搜索图标",onClear:A},null,8,["modelValue"]),o(e(H),{"tab-position":"left",modelValue:s.value,"onUpdate:modelValue":t[2]||(t[2]=d=>s.value=d),onTabChange:T},{default:w(()=>[(h(),y(C,null,P(g,d=>o(e(J),{key:d.name,label:d.name,name:d.prefix},{default:w(()=>[V("div",ne,[(h(!0),y(C,null,P(N(I(d.icons)),a=>(h(),y("div",{key:a,style:_({width:l.value,height:l.value,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:`1px solid ${a===n.value?"var(--el-color-primary)":"var(--el-border-color)"}`,boxSizing:"border-box",margin:"2px",transition:"all 0.3s"}),class:"hover:border-color-[var(--el-color-primary)]!",onClick:se=>B(a)},[o(c,{icon:a,color:a===n.value?"var(--el-color-primary)":"inherit"},null,8,["icon","color"])],12,te))),128))])]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"])]),_:1}),V("div",ie,[o(e(K),{"current-page":r.value,"onUpdate:currentPage":t[3]||(t[3]=d=>r.value=d),"page-size":m.value,"onUpdate:pageSize":t[4]||(t[4]=d=>m.value=d),"pager-count":5,small:"","page-sizes":[100,200,300,400],layout:"total, prev, pager, next, jumper",total:I(g[f.value].icons).length},null,8,["current-page","page-size","total"])])]),_:1})])}}}),me=D(de,[["__scopeId","data-v-1079899e"]]);export{me as I}; diff --git a/assets/ImageCropping-CbTeg8LQ.js b/assets/ImageCropping-Dcjg4sBX.js similarity index 99% rename from assets/ImageCropping-CbTeg8LQ.js rename to assets/ImageCropping-Dcjg4sBX.js index de7ae510..e32f8056 100644 --- a/assets/ImageCropping-CbTeg8LQ.js +++ b/assets/ImageCropping-Dcjg4sBX.js @@ -1,4 +1,4 @@ -var $t=(a,t,i)=>new Promise((e,n)=>{var r=f=>{try{s(i.next(f))}catch(l){n(l)}},o=f=>{try{s(i.throw(f))}catch(l){n(l)}},s=f=>f.done?e(f.value):Promise.resolve(f.value).then(r,o);s((i=i.apply(a,t)).next())});import{_ as ke}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{I as Ie}from"./Icon-Bwi9LaBZ.js";import{q as ue,d as Gt,r as V,o as Le,w as ze,u as m,n as Pe,C as He,t as bt,v as Mt,x as z,V as at,a0 as Ye,a1 as Xe,P as E,S as _,Y as qt,M as We,T as Ue,W as Kt}from"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css */import{_ as X}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{N as je,O as G,q as me,E as Ve,P as $e,A as Qt}from"./element-plus-6v3c1uXT.js";/* empty css *//*! +var $t=(a,t,i)=>new Promise((e,n)=>{var r=f=>{try{s(i.next(f))}catch(l){n(l)}},o=f=>{try{s(i.throw(f))}catch(l){n(l)}},s=f=>f.done?e(f.value):Promise.resolve(f.value).then(r,o);s((i=i.apply(a,t)).next())});import{_ as ke}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{I as Ie}from"./Icon-B-0CON7P.js";import{q as ue,d as Gt,r as V,o as Le,w as ze,u as m,n as Pe,C as He,t as bt,v as Mt,x as z,V as at,a0 as Ye,a1 as Xe,P as E,S as _,Y as qt,M as We,T as Ue,W as Kt}from"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css */import{_ as X}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{N as je,O as G,q as me,E as Ve,P as $e,A as Qt}from"./element-plus-6v3c1uXT.js";/* empty css *//*! * Cropper.js v1.6.1 * https://fengyuanchen.github.io/cropperjs * diff --git a/assets/ImageViewer-CtL_2_lz.js b/assets/ImageViewer-CV4-P-He.js similarity index 88% rename from assets/ImageViewer-CtL_2_lz.js rename to assets/ImageViewer-CV4-P-He.js index eaba8ecf..4b965bda 100644 --- a/assets/ImageViewer-CtL_2_lz.js +++ b/assets/ImageViewer-CV4-P-He.js @@ -1 +1 @@ -var x=Object.defineProperty;var c=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var d=(a,e,t)=>e in a?x(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,u=(a,e)=>{for(var t in e||(e={}))C.call(e,t)&&d(a,t,e[t]);if(c)for(var t of c(e))V.call(e,t)&&d(a,t,e[t]);return a};import{_ as k}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{p as s,i as y}from"./index-CA0d6hyI.js";/* empty css */import{H as v}from"./element-plus-6v3c1uXT.js";import{q as b,d as L,r as z,t as _,T as g,I as B,u as l,Y as E,P as w,aq as M,S as f,W as N}from"./vue-chunks-DOWhatC1.js";import{_ as O}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const P=b({__name:"ImageViewer",props:{urlList:{type:Array,default:()=>[]},zIndex:s.number.def(200),initialIndex:s.number.def(0),infinite:s.bool.def(!0),hideOnClickModal:s.bool.def(!1),teleported:s.bool.def(!1),show:s.bool.def(!1)},setup(a){const e=a,t=L(()=>{const i=u({},e);return delete i.show,i}),r=z(e.show),n=()=>{r.value=!1};return(i,p)=>r.value?(_(),g(l(v),B({key:0},t.value,{onClose:n}),null,16)):E("",!0)}});let h=null;function T(a){if(!y)return;const{urlList:e,initialIndex:t=0,infinite:r=!0,hideOnClickModal:n=!1,teleported:i=!1,zIndex:p=2e3,show:I=!0}=a,o={},m=document.createElement("div");o.urlList=e,o.initialIndex=t,o.infinite=r,o.hideOnClickModal=n,o.teleported=i,o.zIndex=p,o.show=I,document.body.appendChild(m),h=w(P,o),M(h,m)}const G=b({__name:"ImageViewer",setup(a){const e=()=>{T({urlList:["https://images6.alphacoders.com/657/thumbbig-657194.webp","https://images3.alphacoders.com/677/thumbbig-677688.webp","https://images4.alphacoders.com/200/thumbbig-200966.webp","https://images5.alphacoders.com/657/thumbbig-657248.webp","https://images3.alphacoders.com/679/thumbbig-679917.webp","https://images3.alphacoders.com/737/thumbbig-73785.webp"]})};return(t,r)=>(_(),g(l(k),{title:"图片预览",message:"基于 ElementPlus 的 ImageViewer 组件二次封装"},{default:f(()=>[w(l(O),{type:"primary",onClick:e},{default:f(()=>[N("打开")]),_:1})]),_:1}))}});export{G as default}; +var x=Object.defineProperty;var c=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var d=(a,e,t)=>e in a?x(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,u=(a,e)=>{for(var t in e||(e={}))C.call(e,t)&&d(a,t,e[t]);if(c)for(var t of c(e))V.call(e,t)&&d(a,t,e[t]);return a};import{_ as k}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{p as s,i as y}from"./index-B5z15nYm.js";/* empty css */import{H as v}from"./element-plus-6v3c1uXT.js";import{q as b,d as L,r as z,t as _,T as g,I as B,u as l,Y as E,P as w,aq as M,S as f,W as N}from"./vue-chunks-DOWhatC1.js";import{_ as O}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const P=b({__name:"ImageViewer",props:{urlList:{type:Array,default:()=>[]},zIndex:s.number.def(200),initialIndex:s.number.def(0),infinite:s.bool.def(!0),hideOnClickModal:s.bool.def(!1),teleported:s.bool.def(!1),show:s.bool.def(!1)},setup(a){const e=a,t=L(()=>{const i=u({},e);return delete i.show,i}),r=z(e.show),n=()=>{r.value=!1};return(i,p)=>r.value?(_(),g(l(v),B({key:0},t.value,{onClose:n}),null,16)):E("",!0)}});let h=null;function T(a){if(!y)return;const{urlList:e,initialIndex:t=0,infinite:r=!0,hideOnClickModal:n=!1,teleported:i=!1,zIndex:p=2e3,show:I=!0}=a,o={},m=document.createElement("div");o.urlList=e,o.initialIndex=t,o.infinite=r,o.hideOnClickModal=n,o.teleported=i,o.zIndex=p,o.show=I,document.body.appendChild(m),h=w(P,o),M(h,m)}const G=b({__name:"ImageViewer",setup(a){const e=()=>{T({urlList:["https://images6.alphacoders.com/657/thumbbig-657194.webp","https://images3.alphacoders.com/677/thumbbig-677688.webp","https://images4.alphacoders.com/200/thumbbig-200966.webp","https://images5.alphacoders.com/657/thumbbig-657248.webp","https://images3.alphacoders.com/679/thumbbig-679917.webp","https://images3.alphacoders.com/737/thumbbig-73785.webp"]})};return(t,r)=>(_(),g(l(k),{title:"图片预览",message:"基于 ElementPlus 的 ImageViewer 组件二次封装"},{default:f(()=>[w(l(O),{type:"primary",onClick:e},{default:f(()=>[N("打开")]),_:1})]),_:1}))}});export{G as default}; diff --git a/assets/Infotip-Dr88umKP.js b/assets/Infotip-BlieaFoW.js similarity index 67% rename from assets/Infotip-Dr88umKP.js rename to assets/Infotip-BlieaFoW.js index 624017c1..e3925d60 100644 --- a/assets/Infotip-Dr88umKP.js +++ b/assets/Infotip-BlieaFoW.js @@ -1 +1 @@ -import{_ as i}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as s}from"./Infotip.vue_vue_type_script_setup_true_lang-C9SjmiOy.js";import{q as a,t as n,T as r,S as c,P as m,u as t}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Highlight.vue_vue_type_script_lang-DogC43qc.js";const x=a({__name:"Infotip",setup(p){const o=e=>{e==="访问地址"&&window.open("https://iconify.design/")};return(e,f)=>(n(),r(t(i),{title:"信息提示",message:"基于 Highlight 组件二次封装"},{default:c(()=>[m(t(s),{"show-index":!1,title:"推荐使用Iconify组件",schema:[{label:"Iconify组件基本包含所有的图标,你可以查询到你想要的任何图标。并且打包只会打包所用到的图标。",keys:["Iconify"]},{label:"访问地址",keys:["访问地址"]}],onClick:o})]),_:1}))}});export{x as default}; +import{_ as i}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as s}from"./Infotip.vue_vue_type_script_setup_true_lang-Bi8BypLc.js";import{q as a,t as n,T as r,S as c,P as m,u as t}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Highlight.vue_vue_type_script_lang-BkEaAxMF.js";const x=a({__name:"Infotip",setup(p){const o=e=>{e==="访问地址"&&window.open("https://iconify.design/")};return(e,f)=>(n(),r(t(i),{title:"信息提示",message:"基于 Highlight 组件二次封装"},{default:c(()=>[m(t(s),{"show-index":!1,title:"推荐使用Iconify组件",schema:[{label:"Iconify组件基本包含所有的图标,你可以查询到你想要的任何图标。并且打包只会打包所用到的图标。",keys:["Iconify"]},{label:"访问地址",keys:["访问地址"]}],onClick:o})]),_:1}))}});export{x as default}; diff --git a/assets/Infotip.vue_vue_type_script_setup_true_lang-C9SjmiOy.js b/assets/Infotip.vue_vue_type_script_setup_true_lang-Bi8BypLc.js similarity index 85% rename from assets/Infotip.vue_vue_type_script_setup_true_lang-C9SjmiOy.js rename to assets/Infotip.vue_vue_type_script_setup_true_lang-Bi8BypLc.js index 09e488de..1f66f8b9 100644 --- a/assets/Infotip.vue_vue_type_script_setup_true_lang-C9SjmiOy.js +++ b/assets/Infotip.vue_vue_type_script_setup_true_lang-Bi8BypLc.js @@ -1 +1 @@ -import{I as x}from"./Icon-Bwi9LaBZ.js";import{_}from"./Highlight.vue_vue_type_script_lang-DogC43qc.js";import{p as a}from"./index-CA0d6hyI.js";import{q as y,t as o,v as r,P as n,x as p,X as i,Y as u,Q as g,a8 as k,S as b,W as v,u as C,M as s}from"./vue-chunks-DOWhatC1.js";const I={key:0,class:s(["infotip__header","flex items-center"])},N={class:s(["infotip__title","pl-5px text-16px font-bold"])},V={class:s("infotip__content")},T=y({__name:"Infotip",props:{title:a.string.def(""),schema:{type:Array,required:!0,default:()=>[]},showIndex:a.bool.def(!0),highlightColor:a.string.def("var(--el-color-primary)")},emits:["click"],setup(e,{emit:m}){const d=m,f=l=>{d("click",l)};return(l,w)=>{const h=x;return o(),r("div",{class:s(["infotip","p-20px mb-20px border-1px border-solid border-[var(--el-color-primary)] bg-[var(--el-color-primary-light-9)]"])},[e.title?(o(),r("div",I,[n(h,{icon:"bi:exclamation-circle-fill",size:22,color:"var(--el-color-primary)"}),p("span",N,i(e.title),1)])):u("",!0),p("div",V,[(o(!0),r(g,null,k(e.schema,(t,c)=>(o(),r("p",{key:c,class:"text-14px mt-15px"},[n(C(_),{keys:typeof t=="string"?[]:t.keys,color:e.highlightColor,onClick:f},{default:b(()=>[v(i(e.showIndex?`${c+1}、`:"")+i(typeof t=="string"?t:t.label),1)]),_:2},1032,["keys","color"])]))),128))])],2)}}});export{T as _}; +import{I as x}from"./Icon-B-0CON7P.js";import{_}from"./Highlight.vue_vue_type_script_lang-BkEaAxMF.js";import{p as a}from"./index-B5z15nYm.js";import{q as y,t as o,v as r,P as n,x as p,X as i,Y as u,Q as g,a8 as k,S as b,W as v,u as C,M as s}from"./vue-chunks-DOWhatC1.js";const I={key:0,class:s(["infotip__header","flex items-center"])},N={class:s(["infotip__title","pl-5px text-16px font-bold"])},V={class:s("infotip__content")},T=y({__name:"Infotip",props:{title:a.string.def(""),schema:{type:Array,required:!0,default:()=>[]},showIndex:a.bool.def(!0),highlightColor:a.string.def("var(--el-color-primary)")},emits:["click"],setup(e,{emit:m}){const d=m,f=l=>{d("click",l)};return(l,w)=>{const h=x;return o(),r("div",{class:s(["infotip","p-20px mb-20px border-1px border-solid border-[var(--el-color-primary)] bg-[var(--el-color-primary-light-9)]"])},[e.title?(o(),r("div",I,[n(h,{icon:"bi:exclamation-circle-fill",size:22,color:"var(--el-color-primary)"}),p("span",N,i(e.title),1)])):u("",!0),p("div",V,[(o(!0),r(g,null,k(e.schema,(t,c)=>(o(),r("p",{key:c,class:"text-14px mt-15px"},[n(C(_),{keys:typeof t=="string"?[]:t.keys,color:e.highlightColor,onClick:f},{default:b(()=>[v(i(e.showIndex?`${c+1}、`:"")+i(typeof t=="string"?t:t.label),1)]),_:2},1032,["keys","color"])]))),128))])],2)}}});export{T as _}; diff --git a/assets/InputPassword-CNXQUYTW.js b/assets/InputPassword-BOsN6yJd.js similarity index 79% rename from assets/InputPassword-CNXQUYTW.js rename to assets/InputPassword-BOsN6yJd.js index 75bf9369..a9683125 100644 --- a/assets/InputPassword-CNXQUYTW.js +++ b/assets/InputPassword-BOsN6yJd.js @@ -1 +1 @@ -import{_ as u}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{I as o}from"./InputPassword-D5o-63rw.js";import{q as m,r,t as n,T as p,S as d,P as s,u as t}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */const U=m({__name:"InputPassword",setup(i){const e=r("");return(f,l)=>(n(),p(t(u),{title:"密码输入框",message:"基于 ElementPlus 的 Input 组件二次封装"},{default:d(()=>[s(t(o),{modelValue:e.value,"onUpdate:modelValue":l[0]||(l[0]=a=>e.value=a),class:"mb-20px"},null,8,["modelValue"]),s(t(o),{modelValue:e.value,"onUpdate:modelValue":l[1]||(l[1]=a=>e.value=a),strength:""},null,8,["modelValue"]),s(t(o),{modelValue:e.value,"onUpdate:modelValue":l[2]||(l[2]=a=>e.value=a),strength:"",disabled:"",class:"mt-20px"},null,8,["modelValue"])]),_:1}))}});export{U as default}; +import{_ as u}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{I as o}from"./InputPassword-C8AimXzj.js";import{q as m,r,t as n,T as p,S as d,P as s,u as t}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */const U=m({__name:"InputPassword",setup(i){const e=r("");return(f,l)=>(n(),p(t(u),{title:"密码输入框",message:"基于 ElementPlus 的 Input 组件二次封装"},{default:d(()=>[s(t(o),{modelValue:e.value,"onUpdate:modelValue":l[0]||(l[0]=a=>e.value=a),class:"mb-20px"},null,8,["modelValue"]),s(t(o),{modelValue:e.value,"onUpdate:modelValue":l[1]||(l[1]=a=>e.value=a),strength:""},null,8,["modelValue"]),s(t(o),{modelValue:e.value,"onUpdate:modelValue":l[2]||(l[2]=a=>e.value=a),strength:"",disabled:"",class:"mt-20px"},null,8,["modelValue"])]),_:1}))}});export{U as default}; diff --git a/assets/InputPassword-D5o-63rw.js b/assets/InputPassword-C8AimXzj.js similarity index 99% rename from assets/InputPassword-D5o-63rw.js rename to assets/InputPassword-C8AimXzj.js index a269c7f1..b3aa68d1 100644 --- a/assets/InputPassword-D5o-63rw.js +++ b/assets/InputPassword-C8AimXzj.js @@ -1,2 +1,2 @@ -var be=Object.defineProperty,Me=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var xe=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable;var D=Math.pow,V=(r,e,t)=>e in r?be(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e||(e={}))xe.call(e,t)&&V(r,t,e[t]);if($)for(var t of $(e))ke.call(e,t)&&V(r,t,e[t]);return r},A=(r,e)=>Me(r,ye(e));import{p as q}from"./index-CA0d6hyI.js";import{D as Ee,q as ve,w as F,r as H,d as Se,t as B,v as Z,P as we,I as Ae,u as R,M as _,x as Te,Y as De}from"./vue-chunks-DOWhatC1.js";import{A as Ie}from"./element-plus-6v3c1uXT.js";import{_ as Ce}from"./Icon-Bwi9LaBZ.js";const Re=()=>({configGlobal:Ee("configGlobal",{})}),U=(r,e)=>r.push.apply(r,e),I=r=>r.sort((e,t)=>e.i-t.i||e.j-t.j),X=r=>{const e={};let t=1;return r.forEach(s=>{e[s]=t,t+=1}),e};var Pe={4:[[1,2],[2,3]],5:[[1,3],[2,3],[2,4]],6:[[1,2],[2,4],[4,5]],7:[[1,3],[2,3],[4,5],[4,6]],8:[[2,4],[4,6]]};const K=2050,J=1e3,Le=Pe,je=10,_e=1e4,re=10,ie=50,ae=20,oe=/^[A-Z\xbf-\xdf][^A-Z\xbf-\xdf]+$/,Ne=/^[^A-Z\xbf-\xdf]+[A-Z\xbf-\xdf]$/,Oe=/^[A-Z\xbf-\xdf]+$/,ce=/^[^a-z\xdf-\xff]+$/,Ue=/^[a-z\xdf-\xff]+$/,We=/^[^A-Z\xbf-\xdf]+$/,Ge=/[a-z\xdf-\xff]/,ze=/[A-Z\xbf-\xdf]/,Ye=/[^A-Za-z\xbf-\xdf]/gi,$e=/^\d+$/,G=new Date().getFullYear(),Ve={recentYear:/19\d\d|200\d|201\d|202\d/g},le=[" ",",",";",":","|","/","\\","_",".","-"],qe=le.length;class Fe{match({password:e}){const t=[...this.getMatchesWithoutSeparator(e),...this.getMatchesWithSeparator(e)],s=this.filterNoise(t);return I(s)}getMatchesWithSeparator(e){const t=[],s=/^(\d{1,4})([\s/\\_.-])(\d{1,2})\2(\d{1,4})$/;for(let n=0;n<=Math.abs(e.length-6);n+=1)for(let i=n+5;i<=n+9&&!(i>=e.length);i+=1){const a=e.slice(n,+i+1||9e9),c=s.exec(a);if(c!=null){const o=this.mapIntegersToDayMonthYear([parseInt(c[1],10),parseInt(c[3],10),parseInt(c[4],10)]);o!=null&&t.push({pattern:"date",token:a,i:n,j:i,separator:c[2],year:o.year,month:o.month,day:o.day})}}return t}getMatchesWithoutSeparator(e){const t=[],s=/^\d{4,8}$/,n=i=>Math.abs(i.year-G);for(let i=0;i<=Math.abs(e.length-4);i+=1)for(let a=i+3;a<=i+7&&!(a>=e.length);a+=1){const c=e.slice(i,+a+1||9e9);if(s.exec(c)){const o=[],l=c.length;if(Le[l].forEach(([f,p])=>{const m=this.mapIntegersToDayMonthYear([parseInt(c.slice(0,f),10),parseInt(c.slice(f,p),10),parseInt(c.slice(p),10)]);m!=null&&o.push(m)}),o.length>0){let f=o[0],p=n(o[0]);o.slice(1).forEach(m=>{const d=n(m);d{let s=!1;const n=e.length;for(let i=0;i=t.j){s=!0;break}}return!s})}mapIntegersToDayMonthYear(e){if(e[1]>31||e[1]<=0)return null;let t=0,s=0,n=0;for(let i=0,a=e.length;i99&&cK)return null;c>31&&(s+=1),c>12&&(t+=1),c<=0&&(n+=1)}return s>=2||t===3||n>=2?null:this.getDayMonth(e)}getDayMonth(e){const t=[[e[2],e.slice(0,2)],[e[0],e.slice(1,3)]],s=t.length;for(let n=0;n=1&&i<=31&&a>=1&&a<=12)return{day:i,month:a}}return null}twoToFourDigitYear(e){return e>99?e:e>50?e+1900:e+2e3}}const w=new Uint32Array(65536),He=(r,e)=>{const t=r.length,s=e.length,n=1<{const t=e.length,s=r.length,n=[],i=[],a=Math.ceil(t/32),c=Math.ceil(s/32);for(let d=0;d>>g&1,S=n[g/32|0]>>>g&1,z=k|d,Y=((k|S)&b)+b^b|k|S;let C=d|~(Y|b),L=b&Y;C>>>31^x&&(i[g/32|0]^=1<>>31^S&&(n[g/32|0]^=1<>>d&1,y=n[d/32|0]>>>d&1,g=b|l,k=((b|y)&h)+h^h|b|y;let x=l|~(k|h),S=h&k;m+=x>>>s-1&1,m-=S>>>s-1&1,x>>>31^v&&(i[d/32|0]^=1<>>31^y&&(n[d/32|0]^=1<{if(r.length{const s=r.length<=e.length,n=r.length<=t;return s||n?Math.ceil(r.length/4):t},Ke=(r,e,t)=>{let s=0;const n=Object.keys(e).find(i=>{const a=Xe(r,i,t);if(Math.abs(r.length-i.length)>a)return!1;const c=Ze(r,i),o=c<=a;return o&&(s=c),o});return n?{levenshteinDistance:s,levenshteinDistanceEntry:n}:{}};var Q={a:["4","@"],b:["8"],c:["(","{","[","<"],d:["6","|)"],e:["3"],f:["#"],g:["6","9","&"],h:["#","|-|"],i:["1","!","|"],k:["<","|<"],l:["!","1","|","7"],m:["^^","nn","2n","/\\\\/\\\\"],n:["//"],o:["0","()"],q:["9"],u:["|_|"],s:["$","5"],t:["+","7"],v:["<",">","/"],w:["^/","uu","vv","2u","2v","\\\\/\\\\/"],x:["%","><"],z:["2"]},N={warnings:{straightRow:"straightRow",keyPattern:"keyPattern",simpleRepeat:"simpleRepeat",extendedRepeat:"extendedRepeat",sequences:"sequences",recentYears:"recentYears",dates:"dates",topTen:"topTen",topHundred:"topHundred",common:"common",similarToCommon:"similarToCommon",wordByItself:"wordByItself",namesByThemselves:"namesByThemselves",commonNames:"commonNames",userInputs:"userInputs",pwned:"pwned"},suggestions:{l33t:"l33t",reverseWords:"reverseWords",allUppercase:"allUppercase",capitalization:"capitalization",dates:"dates",recentYears:"recentYears",associatedYears:"associatedYears",sequences:"sequences",repeated:"repeated",longerKeyboardPattern:"longerKeyboardPattern",anotherWord:"anotherWord",useWords:"useWords",noNeed:"noNeed",pwned:"pwned"},timeEstimation:{ltSecond:"ltSecond",second:"second",seconds:"seconds",minute:"minute",minutes:"minutes",hour:"hour",hours:"hours",day:"day",days:"days",month:"month",months:"months",year:"year",years:"years",centuries:"centuries"}};class P{constructor(e=[]){this.parents=e,this.children=new Map}addSub(e,...t){const s=e.charAt(0);this.children.has(s)||this.children.set(s,new P([...this.parents,s]));let n=this.children.get(s);for(let i=1;i(Object.entries(r).forEach(([t,s])=>{s.forEach(n=>{e.addSub(n,t)})}),e);class Je{constructor(){this.matchers={},this.l33tTable=Q,this.trieNodeRoot=ee(Q,new P),this.dictionary={userInputs:[]},this.rankedDictionaries={},this.rankedDictionariesMaxWordSize={},this.translations=N,this.graphs={},this.useLevenshteinDistance=!1,this.levenshteinThreshold=2,this.l33tMaxSubstitutions=100,this.maxLength=256,this.setRankedDictionaries()}setOptions(e={}){e.l33tTable&&(this.l33tTable=e.l33tTable,this.trieNodeRoot=ee(e.l33tTable,new P)),e.dictionary&&(this.dictionary=e.dictionary,this.setRankedDictionaries()),e.translations&&this.setTranslations(e.translations),e.graphs&&(this.graphs=e.graphs),e.useLevenshteinDistance!==void 0&&(this.useLevenshteinDistance=e.useLevenshteinDistance),e.levenshteinThreshold!==void 0&&(this.levenshteinThreshold=e.levenshteinThreshold),e.l33tMaxSubstitutions!==void 0&&(this.l33tMaxSubstitutions=e.l33tMaxSubstitutions),e.maxLength!==void 0&&(this.maxLength=e.maxLength)}setTranslations(e){if(this.checkCustomTranslations(e))this.translations=e;else throw new Error("Invalid translations object fallback to keys")}checkCustomTranslations(e){let t=!0;return Object.keys(N).forEach(s=>{if(s in e){const n=s;Object.keys(N[n]).forEach(i=>{i in e[n]||(t=!1)})}else t=!1}),t}setRankedDictionaries(){const e={},t={};Object.keys(this.dictionary).forEach(s=>{e[s]=X(this.dictionary[s]),t[s]=this.getRankedDictionariesMaxWordSize(this.dictionary[s])}),this.rankedDictionaries=e,this.rankedDictionariesMaxWordSize=t}getRankedDictionariesMaxWordSize(e){const t=e.map(s=>typeof s!="string"?s.toString().length:s.length);return t.length===0?0:t.reduce((s,n)=>Math.max(s,n),-1/0)}buildSanitizedRankedDictionary(e){const t=[];return e.forEach(s=>{const n=typeof s;(n==="string"||n==="number"||n==="boolean")&&t.push(s.toString().toLowerCase())}),X(t)}extendUserInputsDictionary(e){this.dictionary.userInputs||(this.dictionary.userInputs=[]);const t=[...this.dictionary.userInputs,...e];this.rankedDictionaries.userInputs=this.buildSanitizedRankedDictionary(t),this.rankedDictionariesMaxWordSize.userInputs=this.getRankedDictionariesMaxWordSize(t)}addMatcher(e,t){this.matchers[e]?console.info(`Matcher ${e} already exists`):this.matchers[e]=t}}const u=new Je;class Qe{constructor(e){this.defaultMatch=e}match({password:e}){const t=e.split("").reverse().join("");return this.defaultMatch({password:t}).map(s=>A(E({},s),{token:s.token.split("").reverse().join(""),reversed:!0,i:e.length-1-s.j,j:e.length-1-s.i}))}}class et{constructor({substr:e,limit:t,trieRoot:s}){this.buffer=[],this.finalPasswords=[],this.substr=e,this.limit=t,this.trieRoot=s}getAllPossibleSubsAtIndex(e){const t=[];let s=this.trieRoot;for(let n=e;n=this.limit)return;if(s===this.substr.length){e===t&&this.finalPasswords.push({password:this.buffer.join(""),changes:i});return}const o=[...this.getAllPossibleSubsAtIndex(s)];let l=!1;for(let h=s+o.length-1;h>=s;h-=1){const f=o[h-s];if(f.isTerminal()){if(a===f.parents.join("")&&c>=3)continue;l=!0;const p=f.subs;for(const m of p){this.buffer.push(m);const d=i.concat({i:n,letter:m,substitution:f.parents.join("")});if(this.helper({onlyFullSub:e,isFullSub:t,index:h+1,subIndex:n+m.length,changes:d,lastSubLetter:f.parents.join(""),consecutiveSubCount:a===f.parents.join("")?c+1:1}),this.buffer.pop(),this.finalPasswords.length>=this.limit)return}}}if(!e||!l){const h=this.substr.charAt(s);this.buffer.push(h),this.helper({onlyFullSub:e,isFullSub:t&&!l,index:s+1,subIndex:n+1,changes:i,lastSubLetter:a,consecutiveSubCount:c}),this.buffer.pop()}}getAll(){return this.helper({onlyFullSub:!0,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.helper({onlyFullSub:!1,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.finalPasswords}}const tt=(r,e,t)=>new et({substr:r,limit:e,trieRoot:t}).getAll(),st=(r,e,t)=>{const n=r.changes.filter(l=>l.il-h.letter.length+h.substitution.length,e),i=r.changes.filter(l=>l.i>=e&&l.i<=t),a=i.reduce((l,h)=>l-h.letter.length+h.substitution.length,t-e+n),c=[],o=[];return i.forEach(l=>{c.findIndex(f=>f.letter===l.letter&&f.substitution===l.substitution)<0&&(c.push({letter:l.letter,substitution:l.substitution}),o.push(`${l.substitution} -> ${l.letter}`))}),{i:n,j:a,subs:c,subDisplay:o.join(", ")}};class nt{constructor(e){this.defaultMatch=e}isAlreadyIncluded(e,t){return e.some(s=>Object.entries(s).every(([n,i])=>n==="subs"||i===t[n]))}match({password:e}){const t=[],s=tt(e,u.l33tMaxSubstitutions,u.trieNodeRoot);let n=!1,i=!0;return s.forEach(a=>{if(n)return;const c=this.defaultMatch({password:a.password,useLevenshtein:i});i=!1,c.forEach(o=>{n||(n=o.i===0&&o.j===e.length-1);const l=st(a,o.i,o.j),h=e.slice(l.i,+l.j+1||9e9),f=E(A(E({},o),{l33t:!0,token:h}),l),p=this.isAlreadyIncluded(t,f);h.toLowerCase()!==o.matchedWord&&!p&&t.push(f)})}),t.filter(a=>a.token.length>1)}}class rt{constructor(){this.l33t=new nt(this.defaultMatch),this.reverse=new Qe(this.defaultMatch)}match({password:e}){const t=[...this.defaultMatch({password:e}),...this.reverse.match({password:e}),...this.l33t.match({password:e})];return I(t)}defaultMatch({password:e,useLevenshtein:t=!0}){const s=[],n=e.length,i=e.toLowerCase();return Object.keys(u.rankedDictionaries).forEach(a=>{const c=u.rankedDictionaries[a],o=u.rankedDictionariesMaxWordSize[a],l=Math.min(o,n);for(let h=0;h{const i=t[n];i.lastIndex=0;let a;for(;a=i.exec(e);)if(a){const c=a[0];s.push({pattern:"regex",token:c,i:a.index,j:a.index+a[0].length-1,regexName:n,regexMatch:a})}}),I(s)}}var T={nCk(r,e){let t=r;if(e>t)return 0;if(e===0)return 1;let s=1;for(let n=1;n<=e;n+=1)s*=t,s/=n,t-=1;return s},log10(r){return r===0?0:Math.log(r)/Math.log(10)},log2(r){return Math.log(r)/Math.log(2)},factorial(r){let e=1;for(let t=2;t<=r;t+=1)e*=t;return e}},at=({token:r})=>{let e=D(je,r.length);e===Number.POSITIVE_INFINITY&&(e=Number.MAX_VALUE);let t;return r.length===1?t=re+1:t=ie+1,Math.max(e,t)},ot=({year:r,separator:e})=>{let s=Math.max(Math.abs(r-G),ae)*365;return e&&(s*=4),s};const ct=r=>{const e=r.split(""),t=e.filter(a=>a.match(ze)).length,s=e.filter(a=>a.match(Ge)).length;let n=0;const i=Math.min(t,s);for(let a=1;a<=i;a+=1)n+=T.nCk(t+s,a);return n};var lt=r=>{const e=r.replace(Ye,"");if(e.match(We)||e.toLowerCase()===e)return 1;const t=[oe,Ne,ce],s=t.length;for(let n=0;n{let t=0,s=r.indexOf(e);for(;s>=0;)t+=1,s=r.indexOf(e,s+e.length);return t},ht=({sub:r,token:e})=>{const t=e.toLowerCase(),s=te(t,r.substitution),n=te(t,r.letter);return{subbedCount:s,unsubbedCount:n}};var ut=({l33t:r,subs:e,token:t})=>{if(!r)return 1;let s=1;return e.forEach(n=>{const{subbedCount:i,unsubbedCount:a}=ht({sub:n,token:t});if(i===0||a===0)s*=2;else{const c=Math.min(a,i);let o=0;for(let l=1;l<=c;l+=1)o+=T.nCk(a+i,l);s*=o}}),s},dt=({rank:r,reversed:e,l33t:t,subs:s,token:n,dictionaryName:i})=>{const a=r,c=lt(n),o=ut({l33t:t,subs:s,token:n}),l=e&&2||1;let h;return i==="diceware"?h=D(6,5)/2:h=a*c*o*l,{baseGuesses:a,uppercaseVariations:c,l33tVariations:o,calculation:h}},ft=({regexName:r,regexMatch:e,token:t})=>{const s={alphaLower:26,alphaUpper:26,alpha:52,alphanumeric:62,digits:10,symbols:33};if(r in s)return D(s[r],t.length);switch(r){case"recentYear":return Math.max(Math.abs(parseInt(e[0],10)-G),ae)}return 0},gt=({baseGuesses:r,repeatCount:e})=>r*e,pt=({token:r,ascending:e})=>{const t=r.charAt(0);let s=0;return["a","A","z","Z","0","1","9"].includes(t)?s=4:t.match(/\d/)?s=10:s=26,e||(s*=2),s*r.length};const mt=r=>{let e=0;return Object.keys(r).forEach(t=>{const s=r[t];e+=s.filter(n=>!!n).length}),e/=Object.entries(r).length,e},bt=({token:r,graph:e,turns:t})=>{const s=Object.keys(u.graphs[e]).length,n=mt(u.graphs[e]);let i=0;const a=r.length;for(let c=2;c<=a;c+=1){const o=Math.min(t,c-1);for(let l=1;l<=o;l+=1)i+=T.nCk(c-1,l-1)*s*D(n,l)}return i};var Mt=({graph:r,token:e,shiftedCount:t,turns:s})=>{let n=bt({token:e,graph:r,turns:s});if(t){const i=e.length-t;if(t===0||i===0)n*=2;else{let a=0;for(let c=1;c<=Math.min(t,i);c+=1)a+=T.nCk(t+i,c);n*=a}}return Math.round(n)},yt=()=>qe;const xt=(r,e)=>{let t=1;return r.token.lengthse[r]?se[r](e):u.matchers[r]&&"scoring"in u.matchers[r]?u.matchers[r].scoring(e):0;var Et=(r,e)=>{const t={};if("guesses"in r&&r.guesses!=null)return r;const s=xt(r,e),n=kt(r.pattern,r);let i=0;typeof n=="number"?i=n:r.pattern==="dictionary"&&(i=n.calculation,t.baseGuesses=n.baseGuesses,t.uppercaseVariations=n.uppercaseVariations,t.l33tVariations=n.l33tVariations);const a=Math.max(i,s);return A(E(E({},r),t),{guesses:a,guessesLog10:T.log10(a)})};const M={password:"",optimal:{},excludeAdditive:!1,separatorRegex:void 0,fillArray(r,e){const t=[];for(let s=0;s1&&(n*=this.optimal.pi[s.i-1][e-1]);let i=T.factorial(e)*n;this.excludeAdditive||(i+=D(_e,e-1));let a=!1;Object.keys(this.optimal.g[t]).forEach(c=>{const o=this.optimal.g[t][c];parseInt(c,10)<=e&&o<=i&&(a=!0)}),a||(this.optimal.g[t][e]=i,this.optimal.m[t][e]=s,this.optimal.pi[t][e]=n)},bruteforceUpdate(r){let e=this.makeBruteforceMatch(0,r);this.update(e,1);for(let t=1;t<=r;t+=1){e=this.makeBruteforceMatch(t,r);const s=this.optimal.m[t-1];Object.keys(s).forEach(n=>{s[n].pattern!=="bruteforce"&&this.update(e,parseInt(n,10)+1)})}},unwind(r){const e=[];let t=r-1,s=0,n=1/0;const i=this.optimal.g[t];for(i&&Object.keys(i).forEach(a=>{const c=i[a];c=0;){const a=this.optimal.m[t][s];e.unshift(a),t=a.i-1,s-=1}return e}};var W={mostGuessableMatchSequence(r,e,t=!1){M.password=r,M.excludeAdditive=t;const s=r.length;let n=M.fillArray(s,"array");e.forEach(o=>{n[o.j].push(o)}),n=n.map(o=>o.sort((l,h)=>l.i-h.i)),M.optimal={m:M.fillArray(s,"object"),pi:M.fillArray(s,"object"),g:M.fillArray(s,"object")};for(let o=0;o{l.i>0?Object.keys(M.optimal.m[l.i-1]).forEach(h=>{M.update(l,parseInt(h,10)+1)}):M.update(l,1)}),M.bruteforceUpdate(o);const i=M.unwind(s),a=i.length,c=this.getGuesses(r,a);return{password:r,guesses:c,guessesLog10:T.log10(c),sequence:i}},getGuesses(r,e){const t=r.length;let s=0;return r.length===0?s=1:s=M.optimal.g[t-1][e],s}};class vt{match({password:e,omniMatch:t}){const s=[];let n=0;for(;na instanceof Promise)?Promise.all(s):s}normalizeMatch(e,t,s,n){const i={pattern:"repeat",i:s.index,j:t,token:s[0],baseToken:e,baseGuesses:0,repeatCount:s[0].length/e.length};return n instanceof Promise?n.then(a=>A(E({},i),{baseGuesses:a})):A(E({},i),{baseGuesses:n})}getGreedyMatch(e,t){const s=/(.+)\1+/g;return s.lastIndex=t,s.exec(e)}getLazyMatch(e,t){const s=/(.+?)\1+/g;return s.lastIndex=t,s.exec(e)}setMatchToken(e,t){const s=/^(.+?)\1+$/;let n,i="";if(t&&e[0].length>t[0].length){n=e;const a=s.exec(n[0]);a&&(i=a[1])}else n=t,n&&(i=n[1]);return{match:n,baseToken:i}}getBaseGuesses(e,t){const s=t.match(e);return s instanceof Promise?s.then(i=>W.mostGuessableMatchSequence(e,i).guesses):W.mostGuessableMatchSequence(e,s).guesses}}class St{constructor(){this.MAX_DELTA=5}match({password:e}){const t=[];if(e.length===1)return[];let s=0,n=null;const i=e.length;for(let a=1;a1||Math.abs(s)===1){const a=Math.abs(s);if(a>0&&a<=this.MAX_DELTA){const c=n.slice(e,+t+1||9e9),{sequenceName:o,sequenceSpace:l}=this.getSequence(c);return i.push({pattern:"sequence",i:e,j:t,token:n.slice(e,+t+1||9e9),sequenceName:o,sequenceSpace:l,ascending:s>0})}}return null}getSequence(e){let t="unicode",s=26;return Ue.test(e)?(t="lower",s=26):Oe.test(e)?(t="upper",s=26):$e.test(e)&&(t="digits",s=10),{sequenceName:t,sequenceSpace:s}}}class wt{constructor(){this.SHIFTED_RX=/[~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?]/}match({password:e}){const t=[];return Object.keys(u.graphs).forEach(s=>{const n=u.graphs[s];U(t,this.helper(e,n,s))}),I(t)}checkIfShifted(e,t,s){return!e.includes("keypad")&&this.SHIFTED_RX.test(t.charAt(s))?1:0}helper(e,t,s){let n;const i=[];let a=0;const c=e.length;for(;a2&&i.push({pattern:"spatial",i:a,j:o-1,token:e.slice(a,o),graph:s,turns:h,shiftedCount:n}),a=o;break}}}return i}}const At=new RegExp(`[${le.join("")}]`);class j{static getMostUsedSeparatorChar(e){const t=[...e.split("").filter(n=>At.test(n)).reduce((n,i)=>{const a=n.get(i);return a?n.set(i,a+1):n.set(i,1),n},new Map).entries()].sort(([n,i],[a,c])=>c-i);if(!t.length)return;const s=t[0];if(!(s[1]<2))return s[0]}static getSeparatorRegex(e){return new RegExp(`([^${e} +var be=Object.defineProperty,Me=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var xe=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable;var D=Math.pow,V=(r,e,t)=>e in r?be(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e||(e={}))xe.call(e,t)&&V(r,t,e[t]);if($)for(var t of $(e))ke.call(e,t)&&V(r,t,e[t]);return r},A=(r,e)=>Me(r,ye(e));import{p as q}from"./index-B5z15nYm.js";import{D as Ee,q as ve,w as F,r as H,d as Se,t as B,v as Z,P as we,I as Ae,u as R,M as _,x as Te,Y as De}from"./vue-chunks-DOWhatC1.js";import{A as Ie}from"./element-plus-6v3c1uXT.js";import{_ as Ce}from"./Icon-B-0CON7P.js";const Re=()=>({configGlobal:Ee("configGlobal",{})}),U=(r,e)=>r.push.apply(r,e),I=r=>r.sort((e,t)=>e.i-t.i||e.j-t.j),X=r=>{const e={};let t=1;return r.forEach(s=>{e[s]=t,t+=1}),e};var Pe={4:[[1,2],[2,3]],5:[[1,3],[2,3],[2,4]],6:[[1,2],[2,4],[4,5]],7:[[1,3],[2,3],[4,5],[4,6]],8:[[2,4],[4,6]]};const K=2050,J=1e3,Le=Pe,je=10,_e=1e4,re=10,ie=50,ae=20,oe=/^[A-Z\xbf-\xdf][^A-Z\xbf-\xdf]+$/,Ne=/^[^A-Z\xbf-\xdf]+[A-Z\xbf-\xdf]$/,Oe=/^[A-Z\xbf-\xdf]+$/,ce=/^[^a-z\xdf-\xff]+$/,Ue=/^[a-z\xdf-\xff]+$/,We=/^[^A-Z\xbf-\xdf]+$/,Ge=/[a-z\xdf-\xff]/,ze=/[A-Z\xbf-\xdf]/,Ye=/[^A-Za-z\xbf-\xdf]/gi,$e=/^\d+$/,G=new Date().getFullYear(),Ve={recentYear:/19\d\d|200\d|201\d|202\d/g},le=[" ",",",";",":","|","/","\\","_",".","-"],qe=le.length;class Fe{match({password:e}){const t=[...this.getMatchesWithoutSeparator(e),...this.getMatchesWithSeparator(e)],s=this.filterNoise(t);return I(s)}getMatchesWithSeparator(e){const t=[],s=/^(\d{1,4})([\s/\\_.-])(\d{1,2})\2(\d{1,4})$/;for(let n=0;n<=Math.abs(e.length-6);n+=1)for(let i=n+5;i<=n+9&&!(i>=e.length);i+=1){const a=e.slice(n,+i+1||9e9),c=s.exec(a);if(c!=null){const o=this.mapIntegersToDayMonthYear([parseInt(c[1],10),parseInt(c[3],10),parseInt(c[4],10)]);o!=null&&t.push({pattern:"date",token:a,i:n,j:i,separator:c[2],year:o.year,month:o.month,day:o.day})}}return t}getMatchesWithoutSeparator(e){const t=[],s=/^\d{4,8}$/,n=i=>Math.abs(i.year-G);for(let i=0;i<=Math.abs(e.length-4);i+=1)for(let a=i+3;a<=i+7&&!(a>=e.length);a+=1){const c=e.slice(i,+a+1||9e9);if(s.exec(c)){const o=[],l=c.length;if(Le[l].forEach(([f,p])=>{const m=this.mapIntegersToDayMonthYear([parseInt(c.slice(0,f),10),parseInt(c.slice(f,p),10),parseInt(c.slice(p),10)]);m!=null&&o.push(m)}),o.length>0){let f=o[0],p=n(o[0]);o.slice(1).forEach(m=>{const d=n(m);d{let s=!1;const n=e.length;for(let i=0;i=t.j){s=!0;break}}return!s})}mapIntegersToDayMonthYear(e){if(e[1]>31||e[1]<=0)return null;let t=0,s=0,n=0;for(let i=0,a=e.length;i99&&cK)return null;c>31&&(s+=1),c>12&&(t+=1),c<=0&&(n+=1)}return s>=2||t===3||n>=2?null:this.getDayMonth(e)}getDayMonth(e){const t=[[e[2],e.slice(0,2)],[e[0],e.slice(1,3)]],s=t.length;for(let n=0;n=1&&i<=31&&a>=1&&a<=12)return{day:i,month:a}}return null}twoToFourDigitYear(e){return e>99?e:e>50?e+1900:e+2e3}}const w=new Uint32Array(65536),He=(r,e)=>{const t=r.length,s=e.length,n=1<{const t=e.length,s=r.length,n=[],i=[],a=Math.ceil(t/32),c=Math.ceil(s/32);for(let d=0;d>>g&1,S=n[g/32|0]>>>g&1,z=k|d,Y=((k|S)&b)+b^b|k|S;let C=d|~(Y|b),L=b&Y;C>>>31^x&&(i[g/32|0]^=1<>>31^S&&(n[g/32|0]^=1<>>d&1,y=n[d/32|0]>>>d&1,g=b|l,k=((b|y)&h)+h^h|b|y;let x=l|~(k|h),S=h&k;m+=x>>>s-1&1,m-=S>>>s-1&1,x>>>31^v&&(i[d/32|0]^=1<>>31^y&&(n[d/32|0]^=1<{if(r.length{const s=r.length<=e.length,n=r.length<=t;return s||n?Math.ceil(r.length/4):t},Ke=(r,e,t)=>{let s=0;const n=Object.keys(e).find(i=>{const a=Xe(r,i,t);if(Math.abs(r.length-i.length)>a)return!1;const c=Ze(r,i),o=c<=a;return o&&(s=c),o});return n?{levenshteinDistance:s,levenshteinDistanceEntry:n}:{}};var Q={a:["4","@"],b:["8"],c:["(","{","[","<"],d:["6","|)"],e:["3"],f:["#"],g:["6","9","&"],h:["#","|-|"],i:["1","!","|"],k:["<","|<"],l:["!","1","|","7"],m:["^^","nn","2n","/\\\\/\\\\"],n:["//"],o:["0","()"],q:["9"],u:["|_|"],s:["$","5"],t:["+","7"],v:["<",">","/"],w:["^/","uu","vv","2u","2v","\\\\/\\\\/"],x:["%","><"],z:["2"]},N={warnings:{straightRow:"straightRow",keyPattern:"keyPattern",simpleRepeat:"simpleRepeat",extendedRepeat:"extendedRepeat",sequences:"sequences",recentYears:"recentYears",dates:"dates",topTen:"topTen",topHundred:"topHundred",common:"common",similarToCommon:"similarToCommon",wordByItself:"wordByItself",namesByThemselves:"namesByThemselves",commonNames:"commonNames",userInputs:"userInputs",pwned:"pwned"},suggestions:{l33t:"l33t",reverseWords:"reverseWords",allUppercase:"allUppercase",capitalization:"capitalization",dates:"dates",recentYears:"recentYears",associatedYears:"associatedYears",sequences:"sequences",repeated:"repeated",longerKeyboardPattern:"longerKeyboardPattern",anotherWord:"anotherWord",useWords:"useWords",noNeed:"noNeed",pwned:"pwned"},timeEstimation:{ltSecond:"ltSecond",second:"second",seconds:"seconds",minute:"minute",minutes:"minutes",hour:"hour",hours:"hours",day:"day",days:"days",month:"month",months:"months",year:"year",years:"years",centuries:"centuries"}};class P{constructor(e=[]){this.parents=e,this.children=new Map}addSub(e,...t){const s=e.charAt(0);this.children.has(s)||this.children.set(s,new P([...this.parents,s]));let n=this.children.get(s);for(let i=1;i(Object.entries(r).forEach(([t,s])=>{s.forEach(n=>{e.addSub(n,t)})}),e);class Je{constructor(){this.matchers={},this.l33tTable=Q,this.trieNodeRoot=ee(Q,new P),this.dictionary={userInputs:[]},this.rankedDictionaries={},this.rankedDictionariesMaxWordSize={},this.translations=N,this.graphs={},this.useLevenshteinDistance=!1,this.levenshteinThreshold=2,this.l33tMaxSubstitutions=100,this.maxLength=256,this.setRankedDictionaries()}setOptions(e={}){e.l33tTable&&(this.l33tTable=e.l33tTable,this.trieNodeRoot=ee(e.l33tTable,new P)),e.dictionary&&(this.dictionary=e.dictionary,this.setRankedDictionaries()),e.translations&&this.setTranslations(e.translations),e.graphs&&(this.graphs=e.graphs),e.useLevenshteinDistance!==void 0&&(this.useLevenshteinDistance=e.useLevenshteinDistance),e.levenshteinThreshold!==void 0&&(this.levenshteinThreshold=e.levenshteinThreshold),e.l33tMaxSubstitutions!==void 0&&(this.l33tMaxSubstitutions=e.l33tMaxSubstitutions),e.maxLength!==void 0&&(this.maxLength=e.maxLength)}setTranslations(e){if(this.checkCustomTranslations(e))this.translations=e;else throw new Error("Invalid translations object fallback to keys")}checkCustomTranslations(e){let t=!0;return Object.keys(N).forEach(s=>{if(s in e){const n=s;Object.keys(N[n]).forEach(i=>{i in e[n]||(t=!1)})}else t=!1}),t}setRankedDictionaries(){const e={},t={};Object.keys(this.dictionary).forEach(s=>{e[s]=X(this.dictionary[s]),t[s]=this.getRankedDictionariesMaxWordSize(this.dictionary[s])}),this.rankedDictionaries=e,this.rankedDictionariesMaxWordSize=t}getRankedDictionariesMaxWordSize(e){const t=e.map(s=>typeof s!="string"?s.toString().length:s.length);return t.length===0?0:t.reduce((s,n)=>Math.max(s,n),-1/0)}buildSanitizedRankedDictionary(e){const t=[];return e.forEach(s=>{const n=typeof s;(n==="string"||n==="number"||n==="boolean")&&t.push(s.toString().toLowerCase())}),X(t)}extendUserInputsDictionary(e){this.dictionary.userInputs||(this.dictionary.userInputs=[]);const t=[...this.dictionary.userInputs,...e];this.rankedDictionaries.userInputs=this.buildSanitizedRankedDictionary(t),this.rankedDictionariesMaxWordSize.userInputs=this.getRankedDictionariesMaxWordSize(t)}addMatcher(e,t){this.matchers[e]?console.info(`Matcher ${e} already exists`):this.matchers[e]=t}}const u=new Je;class Qe{constructor(e){this.defaultMatch=e}match({password:e}){const t=e.split("").reverse().join("");return this.defaultMatch({password:t}).map(s=>A(E({},s),{token:s.token.split("").reverse().join(""),reversed:!0,i:e.length-1-s.j,j:e.length-1-s.i}))}}class et{constructor({substr:e,limit:t,trieRoot:s}){this.buffer=[],this.finalPasswords=[],this.substr=e,this.limit=t,this.trieRoot=s}getAllPossibleSubsAtIndex(e){const t=[];let s=this.trieRoot;for(let n=e;n=this.limit)return;if(s===this.substr.length){e===t&&this.finalPasswords.push({password:this.buffer.join(""),changes:i});return}const o=[...this.getAllPossibleSubsAtIndex(s)];let l=!1;for(let h=s+o.length-1;h>=s;h-=1){const f=o[h-s];if(f.isTerminal()){if(a===f.parents.join("")&&c>=3)continue;l=!0;const p=f.subs;for(const m of p){this.buffer.push(m);const d=i.concat({i:n,letter:m,substitution:f.parents.join("")});if(this.helper({onlyFullSub:e,isFullSub:t,index:h+1,subIndex:n+m.length,changes:d,lastSubLetter:f.parents.join(""),consecutiveSubCount:a===f.parents.join("")?c+1:1}),this.buffer.pop(),this.finalPasswords.length>=this.limit)return}}}if(!e||!l){const h=this.substr.charAt(s);this.buffer.push(h),this.helper({onlyFullSub:e,isFullSub:t&&!l,index:s+1,subIndex:n+1,changes:i,lastSubLetter:a,consecutiveSubCount:c}),this.buffer.pop()}}getAll(){return this.helper({onlyFullSub:!0,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.helper({onlyFullSub:!1,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.finalPasswords}}const tt=(r,e,t)=>new et({substr:r,limit:e,trieRoot:t}).getAll(),st=(r,e,t)=>{const n=r.changes.filter(l=>l.il-h.letter.length+h.substitution.length,e),i=r.changes.filter(l=>l.i>=e&&l.i<=t),a=i.reduce((l,h)=>l-h.letter.length+h.substitution.length,t-e+n),c=[],o=[];return i.forEach(l=>{c.findIndex(f=>f.letter===l.letter&&f.substitution===l.substitution)<0&&(c.push({letter:l.letter,substitution:l.substitution}),o.push(`${l.substitution} -> ${l.letter}`))}),{i:n,j:a,subs:c,subDisplay:o.join(", ")}};class nt{constructor(e){this.defaultMatch=e}isAlreadyIncluded(e,t){return e.some(s=>Object.entries(s).every(([n,i])=>n==="subs"||i===t[n]))}match({password:e}){const t=[],s=tt(e,u.l33tMaxSubstitutions,u.trieNodeRoot);let n=!1,i=!0;return s.forEach(a=>{if(n)return;const c=this.defaultMatch({password:a.password,useLevenshtein:i});i=!1,c.forEach(o=>{n||(n=o.i===0&&o.j===e.length-1);const l=st(a,o.i,o.j),h=e.slice(l.i,+l.j+1||9e9),f=E(A(E({},o),{l33t:!0,token:h}),l),p=this.isAlreadyIncluded(t,f);h.toLowerCase()!==o.matchedWord&&!p&&t.push(f)})}),t.filter(a=>a.token.length>1)}}class rt{constructor(){this.l33t=new nt(this.defaultMatch),this.reverse=new Qe(this.defaultMatch)}match({password:e}){const t=[...this.defaultMatch({password:e}),...this.reverse.match({password:e}),...this.l33t.match({password:e})];return I(t)}defaultMatch({password:e,useLevenshtein:t=!0}){const s=[],n=e.length,i=e.toLowerCase();return Object.keys(u.rankedDictionaries).forEach(a=>{const c=u.rankedDictionaries[a],o=u.rankedDictionariesMaxWordSize[a],l=Math.min(o,n);for(let h=0;h{const i=t[n];i.lastIndex=0;let a;for(;a=i.exec(e);)if(a){const c=a[0];s.push({pattern:"regex",token:c,i:a.index,j:a.index+a[0].length-1,regexName:n,regexMatch:a})}}),I(s)}}var T={nCk(r,e){let t=r;if(e>t)return 0;if(e===0)return 1;let s=1;for(let n=1;n<=e;n+=1)s*=t,s/=n,t-=1;return s},log10(r){return r===0?0:Math.log(r)/Math.log(10)},log2(r){return Math.log(r)/Math.log(2)},factorial(r){let e=1;for(let t=2;t<=r;t+=1)e*=t;return e}},at=({token:r})=>{let e=D(je,r.length);e===Number.POSITIVE_INFINITY&&(e=Number.MAX_VALUE);let t;return r.length===1?t=re+1:t=ie+1,Math.max(e,t)},ot=({year:r,separator:e})=>{let s=Math.max(Math.abs(r-G),ae)*365;return e&&(s*=4),s};const ct=r=>{const e=r.split(""),t=e.filter(a=>a.match(ze)).length,s=e.filter(a=>a.match(Ge)).length;let n=0;const i=Math.min(t,s);for(let a=1;a<=i;a+=1)n+=T.nCk(t+s,a);return n};var lt=r=>{const e=r.replace(Ye,"");if(e.match(We)||e.toLowerCase()===e)return 1;const t=[oe,Ne,ce],s=t.length;for(let n=0;n{let t=0,s=r.indexOf(e);for(;s>=0;)t+=1,s=r.indexOf(e,s+e.length);return t},ht=({sub:r,token:e})=>{const t=e.toLowerCase(),s=te(t,r.substitution),n=te(t,r.letter);return{subbedCount:s,unsubbedCount:n}};var ut=({l33t:r,subs:e,token:t})=>{if(!r)return 1;let s=1;return e.forEach(n=>{const{subbedCount:i,unsubbedCount:a}=ht({sub:n,token:t});if(i===0||a===0)s*=2;else{const c=Math.min(a,i);let o=0;for(let l=1;l<=c;l+=1)o+=T.nCk(a+i,l);s*=o}}),s},dt=({rank:r,reversed:e,l33t:t,subs:s,token:n,dictionaryName:i})=>{const a=r,c=lt(n),o=ut({l33t:t,subs:s,token:n}),l=e&&2||1;let h;return i==="diceware"?h=D(6,5)/2:h=a*c*o*l,{baseGuesses:a,uppercaseVariations:c,l33tVariations:o,calculation:h}},ft=({regexName:r,regexMatch:e,token:t})=>{const s={alphaLower:26,alphaUpper:26,alpha:52,alphanumeric:62,digits:10,symbols:33};if(r in s)return D(s[r],t.length);switch(r){case"recentYear":return Math.max(Math.abs(parseInt(e[0],10)-G),ae)}return 0},gt=({baseGuesses:r,repeatCount:e})=>r*e,pt=({token:r,ascending:e})=>{const t=r.charAt(0);let s=0;return["a","A","z","Z","0","1","9"].includes(t)?s=4:t.match(/\d/)?s=10:s=26,e||(s*=2),s*r.length};const mt=r=>{let e=0;return Object.keys(r).forEach(t=>{const s=r[t];e+=s.filter(n=>!!n).length}),e/=Object.entries(r).length,e},bt=({token:r,graph:e,turns:t})=>{const s=Object.keys(u.graphs[e]).length,n=mt(u.graphs[e]);let i=0;const a=r.length;for(let c=2;c<=a;c+=1){const o=Math.min(t,c-1);for(let l=1;l<=o;l+=1)i+=T.nCk(c-1,l-1)*s*D(n,l)}return i};var Mt=({graph:r,token:e,shiftedCount:t,turns:s})=>{let n=bt({token:e,graph:r,turns:s});if(t){const i=e.length-t;if(t===0||i===0)n*=2;else{let a=0;for(let c=1;c<=Math.min(t,i);c+=1)a+=T.nCk(t+i,c);n*=a}}return Math.round(n)},yt=()=>qe;const xt=(r,e)=>{let t=1;return r.token.lengthse[r]?se[r](e):u.matchers[r]&&"scoring"in u.matchers[r]?u.matchers[r].scoring(e):0;var Et=(r,e)=>{const t={};if("guesses"in r&&r.guesses!=null)return r;const s=xt(r,e),n=kt(r.pattern,r);let i=0;typeof n=="number"?i=n:r.pattern==="dictionary"&&(i=n.calculation,t.baseGuesses=n.baseGuesses,t.uppercaseVariations=n.uppercaseVariations,t.l33tVariations=n.l33tVariations);const a=Math.max(i,s);return A(E(E({},r),t),{guesses:a,guessesLog10:T.log10(a)})};const M={password:"",optimal:{},excludeAdditive:!1,separatorRegex:void 0,fillArray(r,e){const t=[];for(let s=0;s1&&(n*=this.optimal.pi[s.i-1][e-1]);let i=T.factorial(e)*n;this.excludeAdditive||(i+=D(_e,e-1));let a=!1;Object.keys(this.optimal.g[t]).forEach(c=>{const o=this.optimal.g[t][c];parseInt(c,10)<=e&&o<=i&&(a=!0)}),a||(this.optimal.g[t][e]=i,this.optimal.m[t][e]=s,this.optimal.pi[t][e]=n)},bruteforceUpdate(r){let e=this.makeBruteforceMatch(0,r);this.update(e,1);for(let t=1;t<=r;t+=1){e=this.makeBruteforceMatch(t,r);const s=this.optimal.m[t-1];Object.keys(s).forEach(n=>{s[n].pattern!=="bruteforce"&&this.update(e,parseInt(n,10)+1)})}},unwind(r){const e=[];let t=r-1,s=0,n=1/0;const i=this.optimal.g[t];for(i&&Object.keys(i).forEach(a=>{const c=i[a];c=0;){const a=this.optimal.m[t][s];e.unshift(a),t=a.i-1,s-=1}return e}};var W={mostGuessableMatchSequence(r,e,t=!1){M.password=r,M.excludeAdditive=t;const s=r.length;let n=M.fillArray(s,"array");e.forEach(o=>{n[o.j].push(o)}),n=n.map(o=>o.sort((l,h)=>l.i-h.i)),M.optimal={m:M.fillArray(s,"object"),pi:M.fillArray(s,"object"),g:M.fillArray(s,"object")};for(let o=0;o{l.i>0?Object.keys(M.optimal.m[l.i-1]).forEach(h=>{M.update(l,parseInt(h,10)+1)}):M.update(l,1)}),M.bruteforceUpdate(o);const i=M.unwind(s),a=i.length,c=this.getGuesses(r,a);return{password:r,guesses:c,guessesLog10:T.log10(c),sequence:i}},getGuesses(r,e){const t=r.length;let s=0;return r.length===0?s=1:s=M.optimal.g[t-1][e],s}};class vt{match({password:e,omniMatch:t}){const s=[];let n=0;for(;na instanceof Promise)?Promise.all(s):s}normalizeMatch(e,t,s,n){const i={pattern:"repeat",i:s.index,j:t,token:s[0],baseToken:e,baseGuesses:0,repeatCount:s[0].length/e.length};return n instanceof Promise?n.then(a=>A(E({},i),{baseGuesses:a})):A(E({},i),{baseGuesses:n})}getGreedyMatch(e,t){const s=/(.+)\1+/g;return s.lastIndex=t,s.exec(e)}getLazyMatch(e,t){const s=/(.+?)\1+/g;return s.lastIndex=t,s.exec(e)}setMatchToken(e,t){const s=/^(.+?)\1+$/;let n,i="";if(t&&e[0].length>t[0].length){n=e;const a=s.exec(n[0]);a&&(i=a[1])}else n=t,n&&(i=n[1]);return{match:n,baseToken:i}}getBaseGuesses(e,t){const s=t.match(e);return s instanceof Promise?s.then(i=>W.mostGuessableMatchSequence(e,i).guesses):W.mostGuessableMatchSequence(e,s).guesses}}class St{constructor(){this.MAX_DELTA=5}match({password:e}){const t=[];if(e.length===1)return[];let s=0,n=null;const i=e.length;for(let a=1;a1||Math.abs(s)===1){const a=Math.abs(s);if(a>0&&a<=this.MAX_DELTA){const c=n.slice(e,+t+1||9e9),{sequenceName:o,sequenceSpace:l}=this.getSequence(c);return i.push({pattern:"sequence",i:e,j:t,token:n.slice(e,+t+1||9e9),sequenceName:o,sequenceSpace:l,ascending:s>0})}}return null}getSequence(e){let t="unicode",s=26;return Ue.test(e)?(t="lower",s=26):Oe.test(e)?(t="upper",s=26):$e.test(e)&&(t="digits",s=10),{sequenceName:t,sequenceSpace:s}}}class wt{constructor(){this.SHIFTED_RX=/[~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?]/}match({password:e}){const t=[];return Object.keys(u.graphs).forEach(s=>{const n=u.graphs[s];U(t,this.helper(e,n,s))}),I(t)}checkIfShifted(e,t,s){return!e.includes("keypad")&&this.SHIFTED_RX.test(t.charAt(s))?1:0}helper(e,t,s){let n;const i=[];let a=0;const c=e.length;for(;a2&&i.push({pattern:"spatial",i:a,j:o-1,token:e.slice(a,o),graph:s,turns:h,shiftedCount:n}),a=o;break}}}return i}}const At=new RegExp(`[${le.join("")}]`);class j{static getMostUsedSeparatorChar(e){const t=[...e.split("").filter(n=>At.test(n)).reduce((n,i)=>{const a=n.get(i);return a?n.set(i,a+1):n.set(i,1),n},new Map).entries()].sort(([n,i],[a,c])=>c-i);if(!t.length)return;const s=t[0];if(!(s[1]<2))return s[0]}static getSeparatorRegex(e){return new RegExp(`([^${e} ])(${e})(?!${e})`,"g")}match({password:e}){const t=[];if(e.length===0)return t;const s=j.getMostUsedSeparatorChar(e);if(s===void 0)return t;const n=j.getSeparatorRegex(s);for(const i of e.matchAll(n)){if(i.index===void 0)continue;const a=i.index+1;t.push({pattern:"separator",token:s,i:a,j:a})}return t}}class Tt{constructor(){this.matchers={date:Fe,dictionary:rt,regex:it,repeat:vt,sequence:St,spatial:wt,separator:j}}match(e){const t=[],s=[];return[...Object.keys(this.matchers),...Object.keys(u.matchers)].forEach(i=>{if(!this.matchers[i]&&!u.matchers[i])return;const a=this.matchers[i]?this.matchers[i]:u.matchers[i].Matching,o=new a().match({password:e,omniMatch:this});o instanceof Promise?(o.then(l=>{U(t,l)}),s.push(o)):U(t,o)}),s.length>0?new Promise((i,a)=>{Promise.all(s).then(()=>{i(I(t))}).catch(c=>{a(c)})}):I(t)}}const he=1,ue=he*60,de=ue*60,fe=de*24,ge=fe*31,pe=ge*12,Dt=pe*100,O={second:he,minute:ue,hour:de,day:fe,month:ge,year:pe,century:Dt};class It{translate(e,t){let s=e;t!==void 0&&t!==1&&(s+="s");const{timeEstimation:n}=u.translations;return n[s].replace("{base}",`${t}`)}estimateAttackTimes(e){const t={onlineThrottling100PerHour:e/.027777777777777776,onlineNoThrottling10PerSecond:e/10,offlineSlowHashing1e4PerSecond:e/1e4,offlineFastHashing1e10PerSecond:e/1e10},s={onlineThrottling100PerHour:"",onlineNoThrottling10PerSecond:"",offlineSlowHashing1e4PerSecond:"",offlineFastHashing1e10PerSecond:""};return Object.keys(t).forEach(n=>{const i=t[n];s[n]=this.displayTime(i)}),{crackTimesSeconds:t,crackTimesDisplay:s,score:this.guessesToScore(e)}}guessesToScore(e){return e<1005?0:e<1000005?1:e<100000005?2:e<1e10+5?3:4}displayTime(e){let t="centuries",s;const n=Object.keys(O),i=n.findIndex(a=>e-1&&(t=n[i-1],i!==0?s=Math.round(e/O[t]):t="ltSecond"),this.translate(t,s)}}var Ct=()=>null,Rt=()=>({warning:u.translations.warnings.dates,suggestions:[u.translations.suggestions.dates]});const Pt=(r,e)=>{let t=null;return e&&!r.l33t&&!r.reversed?r.rank<=10?t=u.translations.warnings.topTen:r.rank<=100?t=u.translations.warnings.topHundred:t=u.translations.warnings.common:r.guessesLog10<=4&&(t=u.translations.warnings.similarToCommon),t},Lt=(r,e)=>{let t=null;return e&&(t=u.translations.warnings.wordByItself),t},jt=(r,e)=>e?u.translations.warnings.namesByThemselves:u.translations.warnings.commonNames,_t=(r,e)=>{let t=null;const s=r.dictionaryName,n=s==="lastnames"||s.toLowerCase().includes("firstnames");return s==="passwords"?t=Pt(r,e):s.includes("wikipedia")?t=Lt(r,e):n?t=jt(r,e):s==="userInputs"&&(t=u.translations.warnings.userInputs),t};var Nt=(r,e)=>{const t=_t(r,e),s=[],n=r.token;return n.match(oe)?s.push(u.translations.suggestions.capitalization):n.match(ce)&&n.toLowerCase()!==n&&s.push(u.translations.suggestions.allUppercase),r.reversed&&r.token.length>=4&&s.push(u.translations.suggestions.reverseWords),r.l33t&&s.push(u.translations.suggestions.l33t),{warning:t,suggestions:s}},Ot=r=>r.regexName==="recentYear"?{warning:u.translations.warnings.recentYears,suggestions:[u.translations.suggestions.recentYears,u.translations.suggestions.associatedYears]}:{warning:null,suggestions:[]},Ut=r=>{let e=u.translations.warnings.extendedRepeat;return r.baseToken.length===1&&(e=u.translations.warnings.simpleRepeat),{warning:e,suggestions:[u.translations.suggestions.repeated]}},Wt=()=>({warning:u.translations.warnings.sequences,suggestions:[u.translations.suggestions.sequences]}),Gt=r=>{let e=u.translations.warnings.keyPattern;return r.turns===1&&(e=u.translations.warnings.straightRow),{warning:e,suggestions:[u.translations.suggestions.longerKeyboardPattern]}},zt=()=>null;const ne={warning:null,suggestions:[]};class Yt{constructor(){this.matchers={bruteforce:Ct,date:Rt,dictionary:Nt,regex:Ot,repeat:Ut,sequence:Wt,spatial:Gt,separator:zt},this.defaultFeedback={warning:null,suggestions:[]},this.setDefaultSuggestions()}setDefaultSuggestions(){this.defaultFeedback.suggestions.push(u.translations.suggestions.useWords,u.translations.suggestions.noNeed)}getFeedback(e,t){if(t.length===0)return this.defaultFeedback;if(e>2)return ne;const s=u.translations.suggestions.anotherWord,n=this.getLongestMatch(t);let i=this.getMatchFeedback(n,t.length===1);return i!=null?i.suggestions.unshift(s):i={warning:null,suggestions:[s]},i}getLongestMatch(e){let t=e[0];return e.slice(1).forEach(n=>{n.token.length>t.token.length&&(t=n)}),t}getMatchFeedback(e,t){return this.matchers[e.pattern]?this.matchers[e.pattern](e,t):u.matchers[e.pattern]&&"feedback"in u.matchers[e.pattern]?u.matchers[e.pattern].feedback(e,t):ne}}const me=()=>new Date().getTime(),$t=(r,e,t)=>{const s=new Yt,n=new It,i=W.mostGuessableMatchSequence(e,r),a=me()-t,c=n.estimateAttackTimes(i.guesses);return A(E(E({calcTime:a},i),c),{feedback:s.getFeedback(c.score,i.sequence)})},Vt=(r,e)=>(e&&u.extendUserInputsDictionary(e),new Tt().match(r)),qt=(r,e)=>{const t=me(),s=Vt(r,e);if(s instanceof Promise)throw new Error("You are using a Promised matcher, please use `zxcvbnAsync` for it.");return $t(s,r,t)},Ft=["data-score"],Ht=ve({__name:"InputPassword",props:{strength:q.bool.def(!1),modelValue:q.string.def("")},emits:["update:modelValue"],setup(r,{emit:e}){const t=r;F(()=>t.modelValue,o=>{o!==R(a)&&(a.value=o)});const{configGlobal:s}=Re(),n=e,i=H("password"),a=H(t.modelValue);F(()=>a.value,o=>{n("update:modelValue",o)});const c=Se(()=>{const o=R(a),l=qt(R(a));return o?l.score:-1});return(o,l)=>{var h;return B(),Z("div",{class:_(["input-password",`input-password--${(h=R(s))==null?void 0:h.size}`])},[we(R(Ie),Ae(o.$attrs,{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=f=>a.value=f),showPassword:"",type:i.value}),null,16,["modelValue","type"]),r.strength?(B(),Z("div",{key:0,class:_(["input-password__bar","relative h-6px mt-10px mb-6px mr-auto ml-auto"])},[Te("div",{class:_("input-password__bar--fill"),"data-score":c.value},null,8,Ft)])):De("",!0)],2)}}}),Qt=Ce(Ht,[["__scopeId","data-v-32d8d5a7"]]);export{Qt as I}; diff --git a/assets/JsonEditor-9dP1ziEk.js b/assets/JsonEditor-_UH9V21N.js similarity index 77% rename from assets/JsonEditor-9dP1ziEk.js rename to assets/JsonEditor-_UH9V21N.js index bc883124..3e1be205 100644 --- a/assets/JsonEditor-9dP1ziEk.js +++ b/assets/JsonEditor-_UH9V21N.js @@ -1 +1 @@ -import{_ as s}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as l}from"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import{q as m,r as n,w as u,t as i,T as p,S as _,P as f,u as a}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */const J=m({__name:"JsonEditor",setup(c){const e=n({title:"标题",content:"内容"});return u(()=>e.value,o=>{},{deep:!0}),setTimeout(()=>{e.value={title:"异步标题",content:"异步内容"}},4e3),(o,t)=>(i(),p(a(s),{title:"JSON编辑器",message:"基于 vue-json-pretty 二次封装"},{default:_(()=>[f(a(l),{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=r=>e.value=r)},null,8,["modelValue"])]),_:1}))}});export{J as default}; +import{_ as s}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as l}from"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import{q as m,r as n,w as u,t as i,T as p,S as _,P as f,u as a}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */const J=m({__name:"JsonEditor",setup(c){const e=n({title:"标题",content:"内容"});return u(()=>e.value,o=>{},{deep:!0}),setTimeout(()=>{e.value={title:"异步标题",content:"异步内容"}},4e3),(o,t)=>(i(),p(a(s),{title:"JSON编辑器",message:"基于 vue-json-pretty 二次封装"},{default:_(()=>[f(a(l),{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=r=>e.value=r)},null,8,["modelValue"])]),_:1}))}});export{J as default}; diff --git a/assets/JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js b/assets/JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js similarity index 99% rename from assets/JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js rename to assets/JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js index 4a7e88fc..9b82fc5d 100644 --- a/assets/JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js +++ b/assets/JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js @@ -1,3 +1,3 @@ -import{d as M,W as re,P as ae,q as _,K as ce,r as ie,w as ue,e as de,t as se,T as he,u as fe}from"./vue-chunks-DOWhatC1.js";import{p as h}from"./index-CA0d6hyI.js";var E={d:(e,t)=>{for(var n in t)E.o(t,n)&&!E.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},ee={};function q(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n{for(var n in t)E.o(t,n)&&!E.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},ee={};function q(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);nme});const l=($={computed:()=>M,createTextVNode:()=>re,createVNode:()=>ae,defineComponent:()=>_,reactive:()=>ce,ref:()=>ie,watch:()=>ue,watchEffect:()=>de},H={},E.d(H,$),H),pe=(0,l.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,l.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),ge=(0,l.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,l.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,l.computed)({get:function(){return e.checked},set:function(a){return n("update:modelValue",a)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,l.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(a){return a.stopPropagation()}},[(0,l.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,l.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),ye=(0,l.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n=e==="objectStart"||e==="arrayStart";return n||e==="objectCollapsed"||e==="arrayCollapsed"?(0,l.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,l.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,l.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var $,H;function Q(e){return Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(e)}function ne(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function V(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,f=a||{},y=f.key,C=f.index,d=f.type,k=d===void 0?"content":d,b=f.showComma,p=b!==void 0&&b,m=f.length,S=m===void 0?1:m,P=ne(e);if(P==="array"){var L=J(e.map(function(w,u,o){return V(w,"".concat(t,"[").concat(u,"]"),n+1,{index:u,showComma:u!==o.length-1,length:S,type:k})}));return[V("[",t,n,{showComma:!1,key:y,length:e.length,type:"arrayStart"})[0]].concat(L,V("]",t,n,{showComma:p,length:e.length,type:"arrayEnd"})[0])}if(P==="object"){var O=Object.keys(e),x=J(O.map(function(w,u,o){return V(e[w],/^[a-zA-Z_]\w*$/.test(w)?"".concat(t,".").concat(w):"".concat(t,'["').concat(w,'"]'),n+1,{key:w,showComma:u!==o.length-1,length:S,type:k})}));return[V("{",t,n,{showComma:!1,key:y,index:C,length:O.length,type:"objectStart"})[0]].concat(x,V("}",t,n,{showComma:p,length:O.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:y,index:C,path:t,showComma:p,length:S,type:k}]}function J(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=A(e),n=[];t.length;){var a=t.shift();Array.isArray(a)?t.unshift.apply(t,A(a)):n.push(a)}return n}function Y(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(Q(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(y){return Y(y,t)});return t.set(e,n),n}var a={};for(var f in e)a[f]=Y(e[f],t);return t.set(e,a),a}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(f){return Object.getOwnPropertyDescriptor(e,f).enumerable})),n.push.apply(n,a)}return n}function G(e){for(var t=1;t=o||i.length>=r,N=(s=e.pathCollapsible)===null||s===void 0?void 0:s.call(e,i);return i.type!=="objectStart"&&i.type!=="arrayStart"||!g&&!N?c:v(v({},c),{},I({},i.path,1))},{})},d=(0,l.reactive)({translateY:0,visibleData:null,hiddenPaths:C(e.deep,e.collapsedNodeLength)}),k=(0,l.computed)(function(){for(var o=null,r=[],c=y.value.length,i=0;io.length?o.length-c:s;g<0&&(g=0);var N=g+c;d.translateY=g*e.itemHeight,d.visibleData=o.filter(function(D,B){return B>=g&&B({})},deep:h.number.def(5),showLength:h.bool.def(!0),showLineNumbers:h.bool.def(!0),showLineNumber:h.bool.def(!0),showIcon:h.bool.def(!0),showDoubleQuotes:h.bool.def(!0),virtual:h.bool.def(!1),height:h.number.def(400),itemHeight:h.number.def(20),rootPath:h.string.def("root"),nodeSelectable:h.func.def(),selectableType:h.oneOf(["multiple","single"]).def(),showSelectController:h.bool.def(!1),selectOnClickNode:h.bool.def(!0),highlightSelectedNode:h.bool.def(!0),collapsedOnClickBrackets:h.bool.def(!0),renderNodeKey:h.func.def(),renderNodeValue:h.func.def(),editable:h.bool.def(!0),editableTrigger:h.oneOf(["click","dblclick"]).def("click")},emits:["update:modelValue","node-click","brackets-click","icon-click","selected-value"],setup(e,{emit:t}){const n=t,a=e,f=M(()=>a.modelValue),y=M({get:()=>f.value,set:p=>{n("update:modelValue",p)}}),C=p=>{n("node-click",p)},d=p=>{n("brackets-click",p)},k=p=>{n("icon-click",p)},b=(p,m)=>{n("selected-value",p,m)};return(p,m)=>(se(),he(fe(ve),{data:y.value,"onUpdate:data":m[0]||(m[0]=S=>y.value=S),deep:e.deep,"show-length":e.showLength,"show-line-numbers":e.showLineNumbers,"show-line-number":e.showLineNumber,"show-icon":e.showIcon,"show-double-quotes":e.showDoubleQuotes,virtual:e.virtual,height:e.height,"item-height":e.itemHeight,"root-path":e.rootPath,"node-selectable":e.nodeSelectable,"selectable-type":e.selectableType,"show-select-controller":e.showSelectController,"select-on-click-node":e.selectOnClickNode,"highlight-selected-node":e.highlightSelectedNode,"collapsed-on-click-brackets":e.collapsedOnClickBrackets,"render-node-key":e.renderNodeKey,"render-node-value":e.renderNodeValue,editable:e.editable,"editable-trigger":e.editableTrigger,onNodeClick:C,onBracketsClick:d,onIconClick:k,onSelectedChange:b},null,8,["data","deep","show-length","show-line-numbers","show-line-number","show-icon","show-double-quotes","virtual","height","item-height","root-path","node-selectable","selectable-type","show-select-controller","select-on-click-node","highlight-selected-node","collapsed-on-click-brackets","render-node-key","render-node-value","editable","editable-trigger"]))}});export{Ce as _}; diff --git a/assets/Layout-CL8owWwX.js b/assets/Layout-B5JiSUXZ.js similarity index 98% rename from assets/Layout-CL8owWwX.js rename to assets/Layout-B5JiSUXZ.js index f07af3a0..a71c149c 100644 --- a/assets/Layout-CL8owWwX.js +++ b/assets/Layout-B5JiSUXZ.js @@ -1,4 +1,4 @@ -var Et=Object.defineProperty,qt=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var Ct=Object.getOwnPropertySymbols;var Wt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable;var kt=(a,o,e)=>o in a?Et(a,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[o]=e,ee=(a,o)=>{for(var e in o||(o={}))Wt.call(o,e)&&kt(a,e,o[e]);if(Ct)for(var e of Ct(o))Gt.call(o,e)&&kt(a,e,o[e]);return a},fe=(a,o)=>qt(a,Nt(o));var se=(a,o,e)=>new Promise((i,n)=>{var s=p=>{try{u(e.next(p))}catch(m){n(m)}},r=p=>{try{u(e.throw(p))}catch(m){n(m)}},u=p=>p.done?i(p.value):Promise.resolve(p.value).then(s,r);u((e=e.apply(a,o)).next())});import{p as Je,u as W,w as Ve,x as Kt,y as Vt,z as Tt,A as $t,g as Qt,B as Xe,C as ce,c as Ze,E as at,F as Yt,G as Jt,b as Xt}from"./index-CA0d6hyI.js";import{am as Zt,Q as F,E as Ge,q as ue,a9 as eo,u as St,an as to,ao as oo,ap as lo,f as pe,aq as ao,d as Ke,ar as no,ab as nt,ac as $e,aa as st,as as Mt,at as so,au as ro,av as co,A as io,aw as uo,ax as po,ay as fo}from"./element-plus-6v3c1uXT.js";import{q as R,t as C,T as N,M as P,u as t,r as x,w as oe,v as z,Q as G,a8 as et,V as mo,Y as ie,d as h,x as d,P as l,aB as Se,aC as Me,S as w,W as D,aA as Ie,B as Rt,K as Qe,o as rt,a0 as te,ap as Te,X as E,H as ho,ag as ct,$ as vo,n as go,aI as _o,U as xo,aw as wo,L as bo,a1 as De,a2 as Bt,a6 as yo,Z as Co}from"./vue-chunks-DOWhatC1.js";import{I as K,_ as Q}from"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */import{T as ko}from"./ThemeSwitch-INxyZ6i5.js";import{F as Vo}from"./Form-DJ57xbBt.js";import{_ as me}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css */import{a as To,f as $o,b as So}from"./tree-Dgaev6Pi.js";/* empty css */import{u as Mo}from"./useTagsView-yfN3e7pq.js";import{_ as Io}from"./logo-CqD-cdkl.js";import{_ as it}from"./avatar-CIGAabYz.js";import{_ as Lo}from"./Dialog.vue_vue_type_style_index_0_lang-BLWveiSq.js";import{u as Po}from"./useForm-CbOF_UB2.js";import{u as Ro}from"./useValidator-Nt61Jv1p.js";import"./useIcon-Bk4x_lwM.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */const Bo=R({__name:"Backtop",setup(a){return(o,e)=>(C(),N(t(Zt),{class:P("backtop-backtop"),target:".layout-content-scrollbar .el-scrollbar__wrap"},null,8,["target"]))}}),zo={class:"color-radio-picker flex flex-wrap space-x-14px"},jo=["onClick"],Ao=R({__name:"ColorRadioPicker",props:{schema:{type:Array,default:()=>[]},modelValue:Je.string.def("")},emits:["update:modelValue","change"],setup(a,{emit:o}){const e=a,i=o,n=x(e.modelValue);return oe(()=>e.modelValue,s=>{s!==t(n)&&(n.value=s)}),oe(()=>n.value,s=>{i("update:modelValue",s),i("change",s)}),(s,r)=>{const u=K;return C(),z("div",zo,[(C(!0),z(G,null,et(a.schema,(p,m)=>(C(),z("span",{key:`radio-${m}`,class:P(["w-20px h-20px cursor-pointer rounded-2px border-solid border-gray-300 border-2px text-center leading-20px mb-5px",{"is-active":n.value===p}]),style:mo({background:p}),onClick:v=>n.value=p},[n.value===p?(C(),N(u,{key:0,color:"#fff",icon:"ep:check",size:16})):ie("",!0)],14,jo))),128))])}}}),lt=Q(Ao,[["__scopeId","data-v-79c0f447"]]),Uo={class:"interface-display"},Do={class:"flex justify-between items-center"},Ho=d("span",{class:"text-14px"},"面包屑",-1),Oo={class:"flex justify-between items-center"},Fo=d("span",{class:"text-14px"},"面包屑图标",-1),Eo={class:"flex justify-between items-center"},qo=d("span",{class:"text-14px"},"折叠图标",-1),No={class:"flex justify-between items-center"},Wo=d("span",{class:"text-14px"},"全屏图标",-1),Go={class:"flex justify-between items-center"},Ko=d("span",{class:"text-14px"},"尺寸图标",-1),Qo={class:"flex justify-between items-center"},Yo=d("span",{class:"text-14px"},"多语言图标",-1),Jo={class:"flex justify-between items-center"},Xo=d("span",{class:"text-14px"},"标签页",-1),Zo={class:"flex justify-between items-center"},el=d("span",{class:"text-14px"},"标签页图标",-1),tl={class:"flex justify-between items-center"},ol=d("span",{class:"text-14px"},"Logo",-1),ll={class:"flex justify-between items-center"},al=d("span",{class:"text-14px"},"菜单手风琴",-1),nl={class:"flex justify-between items-center"},sl=d("span",{class:"text-14px"},"固定头部",-1),rl={class:"flex justify-between items-center"},cl=d("span",{class:"text-14px"},"页脚",-1),il={class:"flex justify-between items-center"},ul=d("span",{class:"text-14px"},"灰色模式",-1),dl={class:"flex justify-between items-center"},pl=d("span",{class:"text-14px"},"开启动态路由",-1),fl={class:"flex justify-between items-center"},ml=d("span",{class:"text-14px"},"服务端动态路由",-1),hl={class:"flex justify-between items-center"},vl=d("span",{class:"text-14px"},"固定菜单",-1),gl=R({__name:"InterfaceDisplay",setup(a){const o=W(),e=x(o.getBreadcrumb),i=_=>{o.setBreadcrumb(_)},n=x(o.getBreadcrumbIcon),s=_=>{o.setBreadcrumbIcon(_)},r=x(o.getHamburger),u=_=>{o.setHamburger(_)},p=x(o.getScreenfull),m=_=>{o.setScreenfull(_)},v=x(o.getSize),b=_=>{o.setSize(_)},k=x(o.getLocale),A=_=>{o.setLocale(_)},f=x(o.getTagsView),c=_=>{Ve("--tags-view-height",_?"35px":"0px"),o.setTagsView(_)},g=x(o.getTagsViewIcon),$=_=>{o.setTagsViewIcon(_)},S=x(o.getLogo),q=_=>{o.setLogo(_)},L=x(o.getUniqueOpened),H=_=>{o.setUniqueOpened(_)},ae=x(o.getFixedHeader),Pe=_=>{o.setFixedHeader(_)},he=x(o.getFooter),ve=_=>{o.setFooter(_)},ge=x(o.getGreyMode),Re=_=>{o.setGreyMode(_)},Be=x(!!o.getDynamicRouter),ze=_=>{Ge.info("请重新退出登录体验"),o.setDynamicRouter(_)},je=x(o.getServerDynamicRouter),Ae=_=>{Ge.info("请重新退出登录体验"),o.setServerDynamicRouter(_)},_e=x(o.getFixedMenu),ot=_=>{o.setFixedMenu(_)},xe=h(()=>o.getLayout);return oe(()=>xe.value,_=>{_==="top"&&o.setCollapse(!1)}),(_,V)=>(C(),z("div",Uo,[d("div",Do,[Ho,l(t(F),{modelValue:e.value,"onUpdate:modelValue":V[0]||(V[0]=T=>e.value=T),onChange:i},null,8,["modelValue"])]),d("div",Oo,[Fo,l(t(F),{modelValue:n.value,"onUpdate:modelValue":V[1]||(V[1]=T=>n.value=T),onChange:s},null,8,["modelValue"])]),d("div",Eo,[qo,l(t(F),{modelValue:r.value,"onUpdate:modelValue":V[2]||(V[2]=T=>r.value=T),onChange:u},null,8,["modelValue"])]),d("div",No,[Wo,l(t(F),{modelValue:p.value,"onUpdate:modelValue":V[3]||(V[3]=T=>p.value=T),onChange:m},null,8,["modelValue"])]),d("div",Go,[Ko,l(t(F),{modelValue:v.value,"onUpdate:modelValue":V[4]||(V[4]=T=>v.value=T),onChange:b},null,8,["modelValue"])]),d("div",Qo,[Yo,l(t(F),{modelValue:k.value,"onUpdate:modelValue":V[5]||(V[5]=T=>k.value=T),onChange:A},null,8,["modelValue"])]),d("div",Jo,[Xo,l(t(F),{modelValue:f.value,"onUpdate:modelValue":V[6]||(V[6]=T=>f.value=T),onChange:c},null,8,["modelValue"])]),d("div",Zo,[el,l(t(F),{modelValue:g.value,"onUpdate:modelValue":V[7]||(V[7]=T=>g.value=T),onChange:$},null,8,["modelValue"])]),d("div",tl,[ol,l(t(F),{modelValue:S.value,"onUpdate:modelValue":V[8]||(V[8]=T=>S.value=T),onChange:q},null,8,["modelValue"])]),d("div",ll,[al,l(t(F),{modelValue:L.value,"onUpdate:modelValue":V[9]||(V[9]=T=>L.value=T),onChange:H},null,8,["modelValue"])]),d("div",nl,[sl,l(t(F),{modelValue:ae.value,"onUpdate:modelValue":V[10]||(V[10]=T=>ae.value=T),onChange:Pe},null,8,["modelValue"])]),d("div",rl,[cl,l(t(F),{modelValue:he.value,"onUpdate:modelValue":V[11]||(V[11]=T=>he.value=T),onChange:ve},null,8,["modelValue"])]),d("div",il,[ul,l(t(F),{modelValue:ge.value,"onUpdate:modelValue":V[12]||(V[12]=T=>ge.value=T),onChange:Re},null,8,["modelValue"])]),d("div",dl,[pl,l(t(F),{modelValue:Be.value,"onUpdate:modelValue":V[13]||(V[13]=T=>Be.value=T),onChange:ze},null,8,["modelValue"])]),d("div",fl,[ml,l(t(F),{modelValue:je.value,"onUpdate:modelValue":V[14]||(V[14]=T=>je.value=T),onChange:Ae},null,8,["modelValue"])]),d("div",hl,[vl,l(t(F),{modelValue:_e.value,"onUpdate:modelValue":V[15]||(V[15]=T=>_e.value=T),onChange:ot},null,8,["modelValue"])])]))}}),_l=a=>(Se("data-v-f0593eff"),a=a(),Me(),a),xl={class:"layout-radio-picker flex flex-wrap space-x-14px"},wl=_l(()=>d("div",{class:"absolute h-full w-[33%] top-0 left-[10%] bg-gray-200"},null,-1)),bl=[wl],yl=R({__name:"LayoutRadioPicker",setup(a){const o=W(),e=h(()=>o.getLayout);return(i,n)=>(C(),z("div",xl,[d("div",{class:P(["layout-radio-picker__classic","relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e.value==="classic"}]),onClick:n[0]||(n[0]=s=>t(o).setLayout("classic"))},null,2),d("div",{class:P(["layout-radio-picker__top-left","relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e.value==="topLeft"}]),onClick:n[1]||(n[1]=s=>t(o).setLayout("topLeft"))},null,2),d("div",{class:P(["layout-radio-picker__top","relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e.value==="top"}]),onClick:n[2]||(n[2]=s=>t(o).setLayout("top"))},null,2),d("div",{class:P(["layout-radio-picker__cut-menu","relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e.value==="cutMenu"}]),onClick:n[3]||(n[3]=s=>t(o).setLayout("cutMenu"))},bl,2)]))}}),Cl=Q(yl,[["__scopeId","data-v-f0593eff"]]),kl=a=>Object.prototype.toString.call(a).slice(8,-1),zt=(a="sessionStorage")=>({setStorage:(s,r)=>{const u=kl(r);window[a].setItem(s,JSON.stringify({type:u,value:r}))},getStorage:s=>{const r=window[a].getItem(s);if(r){const{value:u}=JSON.parse(r);return u}else return r},removeStorage:s=>{window[a].removeItem(s)},clear:s=>{const r=Object.keys(window[a]),u=["dynamicRouter","serverDynamicRouter"],p=s?[...s,...u]:u;(p?r.filter(v=>!p.includes(v)):r).forEach(v=>{window[a].removeItem(v)})}}),Vl=a=>(Se("data-v-57aaa342"),a=a(),Me(),a),Tl=Vl(()=>d("span",{class:"text-16px font-700"},"项目配置",-1)),$l={class:"text-center"},Sl={class:"mt-5px"},Ml=R({__name:"Setting",setup(a){const{clear:o}=zt("localStorage"),e=W(),i=h(()=>e.getLayout),n=x(!1),s=x(e.getTheme.elColorPrimary),r=f=>{Ve("--el-color-primary",f),e.setTheme({elColorPrimary:f});const c=St("--left-menu-bg-color",document.documentElement);v(Kt(t(c)))},u=x(e.getTheme.topHeaderBgColor||""),p=f=>{const c=Vt(f),g=c?"#fff":"inherit",$=c?Tt(f,6):"#f6f6f6",S=c?f:"#eee";Ve("--top-header-bg-color",f),Ve("--top-header-text-color",g),Ve("--top-header-hover-color",$),e.setTheme({topHeaderBgColor:f,topHeaderTextColor:g,topHeaderHoverColor:$,topToolBorderColor:S}),t(i)==="top"&&v(f)},m=x(e.getTheme.leftMenuBgColor||""),v=f=>{const c=St("--el-color-primary",document.documentElement),g=Vt(f),$={leftMenuBorderColor:g?"inherit":"#eee",leftMenuBgColor:f,leftMenuBgLightColor:g?Tt(f,6):f,leftMenuBgActiveColor:g?"var(--el-color-primary)":$t(t(c),.1),leftMenuCollapseBgActiveColor:g?"var(--el-color-primary)":$t(t(c),.1),leftMenuTextColor:g?"#bfcbd9":"#333",leftMenuTextActiveColor:g?"#fff":"var(--el-color-primary)",logoTitleTextColor:g?"#fff":"inherit",logoBorderColor:g?f:"#eee"};e.setTheme($),e.setCssVarTheme()},b=()=>se(this,null,function*(){const{copy:f,copied:c,isSupported:g}=to({source:` +var Et=Object.defineProperty,qt=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var Ct=Object.getOwnPropertySymbols;var Wt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable;var kt=(a,o,e)=>o in a?Et(a,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[o]=e,ee=(a,o)=>{for(var e in o||(o={}))Wt.call(o,e)&&kt(a,e,o[e]);if(Ct)for(var e of Ct(o))Gt.call(o,e)&&kt(a,e,o[e]);return a},fe=(a,o)=>qt(a,Nt(o));var se=(a,o,e)=>new Promise((i,n)=>{var s=p=>{try{u(e.next(p))}catch(m){n(m)}},r=p=>{try{u(e.throw(p))}catch(m){n(m)}},u=p=>p.done?i(p.value):Promise.resolve(p.value).then(s,r);u((e=e.apply(a,o)).next())});import{p as Je,u as W,w as Ve,x as Kt,y as Vt,z as Tt,A as $t,g as Qt,B as Xe,C as ce,c as Ze,E as at,F as Yt,G as Jt,b as Xt}from"./index-B5z15nYm.js";import{am as Zt,Q as F,E as Ge,q as ue,a9 as eo,u as St,an as to,ao as oo,ap as lo,f as pe,aq as ao,d as Ke,ar as no,ab as nt,ac as $e,aa as st,as as Mt,at as so,au as ro,av as co,A as io,aw as uo,ax as po,ay as fo}from"./element-plus-6v3c1uXT.js";import{q as R,t as C,T as N,M as P,u as t,r as x,w as oe,v as z,Q as G,a8 as et,V as mo,Y as ie,d as h,x as d,P as l,aB as Se,aC as Me,S as w,W as D,aA as Ie,B as Rt,K as Qe,o as rt,a0 as te,ap as Te,X as E,H as ho,ag as ct,$ as vo,n as go,aI as _o,U as xo,aw as wo,L as bo,a1 as De,a2 as Bt,a6 as yo,Z as Co}from"./vue-chunks-DOWhatC1.js";import{I as K,_ as Q}from"./Icon-B-0CON7P.js";/* empty css *//* empty css */import{T as ko}from"./ThemeSwitch-Dfovu-Fl.js";import{F as Vo}from"./Form-B3fdtaFM.js";import{_ as me}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css */import{a as To,f as $o,b as So}from"./tree-Dgaev6Pi.js";/* empty css */import{u as Mo}from"./useTagsView-BLw3Jy7r.js";import{_ as Io}from"./logo-CqD-cdkl.js";import{_ as it}from"./avatar-CIGAabYz.js";import{_ as Lo}from"./Dialog.vue_vue_type_style_index_0_lang-DkCU3loB.js";import{u as Po}from"./useForm-BIADJKAv.js";import{u as Ro}from"./useValidator-Nt61Jv1p.js";import"./useIcon-Dzh8BHEZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */const Bo=R({__name:"Backtop",setup(a){return(o,e)=>(C(),N(t(Zt),{class:P("backtop-backtop"),target:".layout-content-scrollbar .el-scrollbar__wrap"},null,8,["target"]))}}),zo={class:"color-radio-picker flex flex-wrap space-x-14px"},jo=["onClick"],Ao=R({__name:"ColorRadioPicker",props:{schema:{type:Array,default:()=>[]},modelValue:Je.string.def("")},emits:["update:modelValue","change"],setup(a,{emit:o}){const e=a,i=o,n=x(e.modelValue);return oe(()=>e.modelValue,s=>{s!==t(n)&&(n.value=s)}),oe(()=>n.value,s=>{i("update:modelValue",s),i("change",s)}),(s,r)=>{const u=K;return C(),z("div",zo,[(C(!0),z(G,null,et(a.schema,(p,m)=>(C(),z("span",{key:`radio-${m}`,class:P(["w-20px h-20px cursor-pointer rounded-2px border-solid border-gray-300 border-2px text-center leading-20px mb-5px",{"is-active":n.value===p}]),style:mo({background:p}),onClick:v=>n.value=p},[n.value===p?(C(),N(u,{key:0,color:"#fff",icon:"ep:check",size:16})):ie("",!0)],14,jo))),128))])}}}),lt=Q(Ao,[["__scopeId","data-v-79c0f447"]]),Uo={class:"interface-display"},Do={class:"flex justify-between items-center"},Ho=d("span",{class:"text-14px"},"面包屑",-1),Oo={class:"flex justify-between items-center"},Fo=d("span",{class:"text-14px"},"面包屑图标",-1),Eo={class:"flex justify-between items-center"},qo=d("span",{class:"text-14px"},"折叠图标",-1),No={class:"flex justify-between items-center"},Wo=d("span",{class:"text-14px"},"全屏图标",-1),Go={class:"flex justify-between items-center"},Ko=d("span",{class:"text-14px"},"尺寸图标",-1),Qo={class:"flex justify-between items-center"},Yo=d("span",{class:"text-14px"},"多语言图标",-1),Jo={class:"flex justify-between items-center"},Xo=d("span",{class:"text-14px"},"标签页",-1),Zo={class:"flex justify-between items-center"},el=d("span",{class:"text-14px"},"标签页图标",-1),tl={class:"flex justify-between items-center"},ol=d("span",{class:"text-14px"},"Logo",-1),ll={class:"flex justify-between items-center"},al=d("span",{class:"text-14px"},"菜单手风琴",-1),nl={class:"flex justify-between items-center"},sl=d("span",{class:"text-14px"},"固定头部",-1),rl={class:"flex justify-between items-center"},cl=d("span",{class:"text-14px"},"页脚",-1),il={class:"flex justify-between items-center"},ul=d("span",{class:"text-14px"},"灰色模式",-1),dl={class:"flex justify-between items-center"},pl=d("span",{class:"text-14px"},"开启动态路由",-1),fl={class:"flex justify-between items-center"},ml=d("span",{class:"text-14px"},"服务端动态路由",-1),hl={class:"flex justify-between items-center"},vl=d("span",{class:"text-14px"},"固定菜单",-1),gl=R({__name:"InterfaceDisplay",setup(a){const o=W(),e=x(o.getBreadcrumb),i=_=>{o.setBreadcrumb(_)},n=x(o.getBreadcrumbIcon),s=_=>{o.setBreadcrumbIcon(_)},r=x(o.getHamburger),u=_=>{o.setHamburger(_)},p=x(o.getScreenfull),m=_=>{o.setScreenfull(_)},v=x(o.getSize),b=_=>{o.setSize(_)},k=x(o.getLocale),A=_=>{o.setLocale(_)},f=x(o.getTagsView),c=_=>{Ve("--tags-view-height",_?"35px":"0px"),o.setTagsView(_)},g=x(o.getTagsViewIcon),$=_=>{o.setTagsViewIcon(_)},S=x(o.getLogo),q=_=>{o.setLogo(_)},L=x(o.getUniqueOpened),H=_=>{o.setUniqueOpened(_)},ae=x(o.getFixedHeader),Pe=_=>{o.setFixedHeader(_)},he=x(o.getFooter),ve=_=>{o.setFooter(_)},ge=x(o.getGreyMode),Re=_=>{o.setGreyMode(_)},Be=x(!!o.getDynamicRouter),ze=_=>{Ge.info("请重新退出登录体验"),o.setDynamicRouter(_)},je=x(o.getServerDynamicRouter),Ae=_=>{Ge.info("请重新退出登录体验"),o.setServerDynamicRouter(_)},_e=x(o.getFixedMenu),ot=_=>{o.setFixedMenu(_)},xe=h(()=>o.getLayout);return oe(()=>xe.value,_=>{_==="top"&&o.setCollapse(!1)}),(_,V)=>(C(),z("div",Uo,[d("div",Do,[Ho,l(t(F),{modelValue:e.value,"onUpdate:modelValue":V[0]||(V[0]=T=>e.value=T),onChange:i},null,8,["modelValue"])]),d("div",Oo,[Fo,l(t(F),{modelValue:n.value,"onUpdate:modelValue":V[1]||(V[1]=T=>n.value=T),onChange:s},null,8,["modelValue"])]),d("div",Eo,[qo,l(t(F),{modelValue:r.value,"onUpdate:modelValue":V[2]||(V[2]=T=>r.value=T),onChange:u},null,8,["modelValue"])]),d("div",No,[Wo,l(t(F),{modelValue:p.value,"onUpdate:modelValue":V[3]||(V[3]=T=>p.value=T),onChange:m},null,8,["modelValue"])]),d("div",Go,[Ko,l(t(F),{modelValue:v.value,"onUpdate:modelValue":V[4]||(V[4]=T=>v.value=T),onChange:b},null,8,["modelValue"])]),d("div",Qo,[Yo,l(t(F),{modelValue:k.value,"onUpdate:modelValue":V[5]||(V[5]=T=>k.value=T),onChange:A},null,8,["modelValue"])]),d("div",Jo,[Xo,l(t(F),{modelValue:f.value,"onUpdate:modelValue":V[6]||(V[6]=T=>f.value=T),onChange:c},null,8,["modelValue"])]),d("div",Zo,[el,l(t(F),{modelValue:g.value,"onUpdate:modelValue":V[7]||(V[7]=T=>g.value=T),onChange:$},null,8,["modelValue"])]),d("div",tl,[ol,l(t(F),{modelValue:S.value,"onUpdate:modelValue":V[8]||(V[8]=T=>S.value=T),onChange:q},null,8,["modelValue"])]),d("div",ll,[al,l(t(F),{modelValue:L.value,"onUpdate:modelValue":V[9]||(V[9]=T=>L.value=T),onChange:H},null,8,["modelValue"])]),d("div",nl,[sl,l(t(F),{modelValue:ae.value,"onUpdate:modelValue":V[10]||(V[10]=T=>ae.value=T),onChange:Pe},null,8,["modelValue"])]),d("div",rl,[cl,l(t(F),{modelValue:he.value,"onUpdate:modelValue":V[11]||(V[11]=T=>he.value=T),onChange:ve},null,8,["modelValue"])]),d("div",il,[ul,l(t(F),{modelValue:ge.value,"onUpdate:modelValue":V[12]||(V[12]=T=>ge.value=T),onChange:Re},null,8,["modelValue"])]),d("div",dl,[pl,l(t(F),{modelValue:Be.value,"onUpdate:modelValue":V[13]||(V[13]=T=>Be.value=T),onChange:ze},null,8,["modelValue"])]),d("div",fl,[ml,l(t(F),{modelValue:je.value,"onUpdate:modelValue":V[14]||(V[14]=T=>je.value=T),onChange:Ae},null,8,["modelValue"])]),d("div",hl,[vl,l(t(F),{modelValue:_e.value,"onUpdate:modelValue":V[15]||(V[15]=T=>_e.value=T),onChange:ot},null,8,["modelValue"])])]))}}),_l=a=>(Se("data-v-f0593eff"),a=a(),Me(),a),xl={class:"layout-radio-picker flex flex-wrap space-x-14px"},wl=_l(()=>d("div",{class:"absolute h-full w-[33%] top-0 left-[10%] bg-gray-200"},null,-1)),bl=[wl],yl=R({__name:"LayoutRadioPicker",setup(a){const o=W(),e=h(()=>o.getLayout);return(i,n)=>(C(),z("div",xl,[d("div",{class:P(["layout-radio-picker__classic","relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e.value==="classic"}]),onClick:n[0]||(n[0]=s=>t(o).setLayout("classic"))},null,2),d("div",{class:P(["layout-radio-picker__top-left","relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e.value==="topLeft"}]),onClick:n[1]||(n[1]=s=>t(o).setLayout("topLeft"))},null,2),d("div",{class:P(["layout-radio-picker__top","relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e.value==="top"}]),onClick:n[2]||(n[2]=s=>t(o).setLayout("top"))},null,2),d("div",{class:P(["layout-radio-picker__cut-menu","relative w-56px h-48px cursor-pointer bg-gray-300",{"is-acitve":e.value==="cutMenu"}]),onClick:n[3]||(n[3]=s=>t(o).setLayout("cutMenu"))},bl,2)]))}}),Cl=Q(yl,[["__scopeId","data-v-f0593eff"]]),kl=a=>Object.prototype.toString.call(a).slice(8,-1),zt=(a="sessionStorage")=>({setStorage:(s,r)=>{const u=kl(r);window[a].setItem(s,JSON.stringify({type:u,value:r}))},getStorage:s=>{const r=window[a].getItem(s);if(r){const{value:u}=JSON.parse(r);return u}else return r},removeStorage:s=>{window[a].removeItem(s)},clear:s=>{const r=Object.keys(window[a]),u=["dynamicRouter","serverDynamicRouter"],p=s?[...s,...u]:u;(p?r.filter(v=>!p.includes(v)):r).forEach(v=>{window[a].removeItem(v)})}}),Vl=a=>(Se("data-v-57aaa342"),a=a(),Me(),a),Tl=Vl(()=>d("span",{class:"text-16px font-700"},"项目配置",-1)),$l={class:"text-center"},Sl={class:"mt-5px"},Ml=R({__name:"Setting",setup(a){const{clear:o}=zt("localStorage"),e=W(),i=h(()=>e.getLayout),n=x(!1),s=x(e.getTheme.elColorPrimary),r=f=>{Ve("--el-color-primary",f),e.setTheme({elColorPrimary:f});const c=St("--left-menu-bg-color",document.documentElement);v(Kt(t(c)))},u=x(e.getTheme.topHeaderBgColor||""),p=f=>{const c=Vt(f),g=c?"#fff":"inherit",$=c?Tt(f,6):"#f6f6f6",S=c?f:"#eee";Ve("--top-header-bg-color",f),Ve("--top-header-text-color",g),Ve("--top-header-hover-color",$),e.setTheme({topHeaderBgColor:f,topHeaderTextColor:g,topHeaderHoverColor:$,topToolBorderColor:S}),t(i)==="top"&&v(f)},m=x(e.getTheme.leftMenuBgColor||""),v=f=>{const c=St("--el-color-primary",document.documentElement),g=Vt(f),$={leftMenuBorderColor:g?"inherit":"#eee",leftMenuBgColor:f,leftMenuBgLightColor:g?Tt(f,6):f,leftMenuBgActiveColor:g?"var(--el-color-primary)":$t(t(c),.1),leftMenuCollapseBgActiveColor:g?"var(--el-color-primary)":$t(t(c),.1),leftMenuTextColor:g?"#bfcbd9":"#333",leftMenuTextActiveColor:g?"#fff":"var(--el-color-primary)",logoTitleTextColor:g?"#fff":"inherit",logoBorderColor:g?f:"#eee"};e.setTheme($),e.setCssVarTheme()},b=()=>se(this,null,function*(){const{copy:f,copied:c,isSupported:g}=to({source:` // 面包屑 breadcrumb: ${e.getBreadcrumb}, // 面包屑图标 diff --git a/assets/Login-VAckGz8o.js b/assets/Login-xvfsYS1e.js similarity index 79% rename from assets/Login-VAckGz8o.js rename to assets/Login-xvfsYS1e.js index 8b4b44c8..7f7ad3b9 100644 --- a/assets/Login-VAckGz8o.js +++ b/assets/Login-xvfsYS1e.js @@ -1 +1 @@ -import{q as u,d as g,r as v,t as r,v as b,P as o,S as n,x as t,X as c,Z as w,u as m,a2 as y,T as x,M as T,aB as k,aC as S}from"./vue-chunks-DOWhatC1.js";import{_}from"./logo-CqD-cdkl.js";import{_ as C}from"./LoginForm.vue_vue_type_script_setup_true_lang-XZcXgUiw.js";import{_ as L}from"./RegisterForm.vue_vue_type_script_setup_true_lang-CBzM5vQS.js";import{T as I}from"./ThemeSwitch-INxyZ6i5.js";import{u as j,g as B}from"./index-CA0d6hyI.js";import{f as R}from"./element-plus-6v3c1uXT.js";import{_ as V}from"./Icon-Bwi9LaBZ.js";import"./Form-DJ57xbBt.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css *//* empty css */import"./useForm-CbOF_UB2.js";import"./useValidator-Nt61Jv1p.js";import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import"./useIcon-Bk4x_lwM.js";const E="/assets/login-box-bg-CL6i7T2F.svg",e=s=>(k("data-v-0b5664ff"),s=s(),S(),s),M={class:"login h-[100%] relative lt-xl:bg-[var(--login-bg-color)] lt-sm:px-10px lt-xl:px-10px lt-md:px-10px"},N={class:"relative flex mx-auto min-h-100vh"},$={class:T("login__left flex-1 bg-gray-500 bg-opacity-20 relative p-30px lt-xl:hidden")},q={class:"flex items-center relative text-white"},z=e(()=>t("img",{src:_,alt:"",class:"w-48px h-48px mr-10px"},null,-1)),A={class:"text-20px font-bold"},D={class:"flex justify-center items-center h-[calc(100%-60px)]"},F=e(()=>t("img",{src:E,key:"1",alt:"",class:"w-350px"},null,-1)),G=e(()=>t("div",{class:"text-3xl text-white",key:"2"},"欢迎使用本系统",-1)),H=e(()=>t("div",{class:"mt-5 font-normal text-white text-14px",key:"3"}," 开箱即用的中后台管理系统 ",-1)),P={class:"flex-1 p-30px lt-sm:p-10px dark:bg-[var(--login-bg-color)] relative"},X={class:"flex justify-between items-center text-white at-2xl:justify-end at-xl:justify-end"},Z={class:"flex items-center at-2xl:hidden at-xl:hidden"},J=e(()=>t("img",{src:_,alt:"",class:"w-48px h-48px mr-10px"},null,-1)),K={class:"text-20px font-bold"},O={class:"flex justify-end items-center space-x-10px"},Q={class:"h-auto flex items-center m-auto w-[100%] at-2xl:max-w-500px at-xl:max-w-500px at-md:max-w-500px at-lg:max-w-500px"},U=u({__name:"Login",setup(s){const a=j(),p=g(()=>a.getTitle),i=v(!0),d=()=>{i.value=!1},h=()=>{i.value=!0},f=()=>{const l=B("--el-bg-color");a.setMenuTheme(l),a.setHeaderTheme(l)};return(l,W)=>(r(),b("div",M,[o(m(R),{class:"h-full"},{default:n(()=>[t("div",N,[t("div",$,[t("div",q,[z,t("span",A,c(p.value),1)]),t("div",D,[o(w,{appear:"",tag:"div","enter-active-class":"animate__animated animate__bounceInLeft"},{default:n(()=>[F,G,H]),_:1})])]),t("div",P,[t("div",X,[t("div",Z,[J,t("span",K,c(p.value),1)]),t("div",O,[o(m(I),{onChange:f})])]),o(y,{appear:"","enter-active-class":"animate__animated animate__bounceInRight"},{default:n(()=>[t("div",Q,[i.value?(r(),x(C,{key:0,class:"p-20px h-auto m-auto lt-xl:rounded-3xl lt-xl:light:bg-white",onToRegister:d})):(r(),x(L,{key:1,class:"p-20px h-auto m-auto lt-xl:rounded-3xl lt-xl:light:bg-white",onToLogin:h}))])]),_:1})])])]),_:1})]))}}),Bt=V(U,[["__scopeId","data-v-0b5664ff"]]);export{Bt as default}; +import{q as u,d as g,r as v,t as r,v as b,P as o,S as n,x as t,X as c,Z as w,u as m,a2 as y,T as x,M as T,aB as k,aC as S}from"./vue-chunks-DOWhatC1.js";import{_}from"./logo-CqD-cdkl.js";import{_ as C}from"./LoginForm.vue_vue_type_script_setup_true_lang-DvGn1PBc.js";import{_ as L}from"./RegisterForm.vue_vue_type_script_setup_true_lang-3yLcY2Dh.js";import{T as I}from"./ThemeSwitch-Dfovu-Fl.js";import{u as j,g as B}from"./index-B5z15nYm.js";import{f as R}from"./element-plus-6v3c1uXT.js";import{_ as V}from"./Icon-B-0CON7P.js";import"./Form-B3fdtaFM.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css *//* empty css */import"./useForm-BIADJKAv.js";import"./useValidator-Nt61Jv1p.js";import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import"./useIcon-Dzh8BHEZ.js";const E="/assets/login-box-bg-CL6i7T2F.svg",e=s=>(k("data-v-0b5664ff"),s=s(),S(),s),M={class:"login h-[100%] relative lt-xl:bg-[var(--login-bg-color)] lt-sm:px-10px lt-xl:px-10px lt-md:px-10px"},N={class:"relative flex mx-auto min-h-100vh"},$={class:T("login__left flex-1 bg-gray-500 bg-opacity-20 relative p-30px lt-xl:hidden")},q={class:"flex items-center relative text-white"},z=e(()=>t("img",{src:_,alt:"",class:"w-48px h-48px mr-10px"},null,-1)),A={class:"text-20px font-bold"},D={class:"flex justify-center items-center h-[calc(100%-60px)]"},F=e(()=>t("img",{src:E,key:"1",alt:"",class:"w-350px"},null,-1)),G=e(()=>t("div",{class:"text-3xl text-white",key:"2"},"欢迎使用本系统",-1)),H=e(()=>t("div",{class:"mt-5 font-normal text-white text-14px",key:"3"}," 开箱即用的中后台管理系统 ",-1)),P={class:"flex-1 p-30px lt-sm:p-10px dark:bg-[var(--login-bg-color)] relative"},X={class:"flex justify-between items-center text-white at-2xl:justify-end at-xl:justify-end"},Z={class:"flex items-center at-2xl:hidden at-xl:hidden"},J=e(()=>t("img",{src:_,alt:"",class:"w-48px h-48px mr-10px"},null,-1)),K={class:"text-20px font-bold"},O={class:"flex justify-end items-center space-x-10px"},Q={class:"h-auto flex items-center m-auto w-[100%] at-2xl:max-w-500px at-xl:max-w-500px at-md:max-w-500px at-lg:max-w-500px"},U=u({__name:"Login",setup(s){const a=j(),p=g(()=>a.getTitle),i=v(!0),d=()=>{i.value=!1},h=()=>{i.value=!0},f=()=>{const l=B("--el-bg-color");a.setMenuTheme(l),a.setHeaderTheme(l)};return(l,W)=>(r(),b("div",M,[o(m(R),{class:"h-full"},{default:n(()=>[t("div",N,[t("div",$,[t("div",q,[z,t("span",A,c(p.value),1)]),t("div",D,[o(w,{appear:"",tag:"div","enter-active-class":"animate__animated animate__bounceInLeft"},{default:n(()=>[F,G,H]),_:1})])]),t("div",P,[t("div",X,[t("div",Z,[J,t("span",K,c(p.value),1)]),t("div",O,[o(m(I),{onChange:f})])]),o(y,{appear:"","enter-active-class":"animate__animated animate__bounceInRight"},{default:n(()=>[t("div",Q,[i.value?(r(),x(C,{key:0,class:"p-20px h-auto m-auto lt-xl:rounded-3xl lt-xl:light:bg-white",onToRegister:d})):(r(),x(L,{key:1,class:"p-20px h-auto m-auto lt-xl:rounded-3xl lt-xl:light:bg-white",onToLogin:h}))])]),_:1})])])]),_:1})]))}}),Bt=V(U,[["__scopeId","data-v-0b5664ff"]]);export{Bt as default}; diff --git a/assets/LoginForm-B04P81XP.js b/assets/LoginForm-B04P81XP.js deleted file mode 100644 index 4ece3397..00000000 --- a/assets/LoginForm-B04P81XP.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./LoginForm.vue_vue_type_script_setup_true_lang-XZcXgUiw.js";import"./Form-DJ57xbBt.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./Icon-Bwi9LaBZ.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css *//* empty css */import"./useForm-CbOF_UB2.js";import"./useValidator-Nt61Jv1p.js";import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";export{o as default}; diff --git a/assets/LoginForm-Bs9L3ZxU.js b/assets/LoginForm-Bs9L3ZxU.js new file mode 100644 index 00000000..a9f32d1e --- /dev/null +++ b/assets/LoginForm-Bs9L3ZxU.js @@ -0,0 +1 @@ +import{_ as o}from"./LoginForm.vue_vue_type_script_setup_true_lang-DvGn1PBc.js";import"./Form-B3fdtaFM.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./Icon-B-0CON7P.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css *//* empty css */import"./useForm-BIADJKAv.js";import"./useValidator-Nt61Jv1p.js";import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";export{o as default}; diff --git a/assets/LoginForm.vue_vue_type_script_setup_true_lang-XZcXgUiw.js b/assets/LoginForm.vue_vue_type_script_setup_true_lang-DvGn1PBc.js similarity index 90% rename from assets/LoginForm.vue_vue_type_script_setup_true_lang-XZcXgUiw.js rename to assets/LoginForm.vue_vue_type_script_setup_true_lang-DvGn1PBc.js index 60004e8c..78bdf35f 100644 --- a/assets/LoginForm.vue_vue_type_script_setup_true_lang-XZcXgUiw.js +++ b/assets/LoginForm.vue_vue_type_script_setup_true_lang-DvGn1PBc.js @@ -1 +1 @@ -var p=(x,y,i)=>new Promise((b,n)=>{var a=s=>{try{d(i.next(s))}catch(c){n(c)}},t=s=>{try{d(i.throw(s))}catch(c){n(c)}},d=s=>s.done?b(s.value):Promise.resolve(s.value).then(a,t);d((i=i.apply(x,y)).next())});import{F as T}from"./Form-DJ57xbBt.js";import{u as U,b as j,c as K,l as Q,d as W,e as $}from"./index-CA0d6hyI.js";/* empty css *//* empty css */import{u as G}from"./useForm-CbOF_UB2.js";import{q as H,aA as J,K as O,r as F,o as X,w as Y,t as Z,T as ee,u as f,P as e,W as g,Q as _}from"./vue-chunks-DOWhatC1.js";import{u as oe}from"./useValidator-Nt61Jv1p.js";import{I as h}from"./Icon-Bwi9LaBZ.js";import{_ as k}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{y as te,r as se}from"./element-plus-6v3c1uXT.js";const w=30,R="#999",v="var(--el-color-primary)",ge=H({__name:"LoginForm",emits:["to-register"],setup(x,{emit:y}){const{required:i}=oe(),b=y,n=U(),a=j(),t=K(),{currentRoute:d,addRoute:s,push:c}=J(),A={username:[i()],password:[i()]},B=O([{field:"title",colProps:{span:24},formItemProps:{slots:{default:()=>e("h2",{class:"text-2xl font-bold text-center w-[100%]"},[g("登录")])}}},{field:"username",label:"用户名",component:"Input",colProps:{span:24},componentProps:{placeholder:"admin or test"}},{field:"password",label:"密码",component:"InputPassword",colProps:{span:24},componentProps:{style:{width:"100%"},placeholder:"admin or test"}},{field:"tool",colProps:{span:24},formItemProps:{slots:{default:()=>e(_,null,[e("div",{class:"flex justify-between items-center w-[100%]"},[e(te,{modelValue:m.value,"onUpdate:modelValue":o=>m.value=o,label:"记住我",size:"small"},null),e(se,{type:"primary",underline:!1},{default:()=>[g("忘记密码")]})])])}}},{field:"login",colProps:{span:24},formItemProps:{slots:{default:()=>e(_,null,[e("div",{class:"w-[100%]"},[e(k,{loading:I.value,type:"primary",class:"w-[100%]",onClick:q},{default:()=>[g("登录")]})]),e("div",{class:"w-[100%] mt-15px"},[e(k,{class:"w-[100%]",onClick:N},{default:()=>[g("注册")]})])])}}},{field:"other",component:"Divider",label:"其它登录方式",componentProps:{contentPosition:"center"}},{field:"otherIcon",colProps:{span:24},formItemProps:{slots:{default:()=>e(_,null,[e("div",{class:"flex justify-between w-[100%]"},[e(h,{icon:"ant-design:github-filled",size:w,class:"cursor-pointer ant-icon",color:R,hoverColor:v},null),e(h,{icon:"ant-design:wechat-filled",size:w,class:"cursor-pointer ant-icon",color:R,hoverColor:v},null),e(h,{icon:"ant-design:alipay-circle-filled",size:w,color:R,hoverColor:v,class:"cursor-pointer ant-icon"},null),e(h,{icon:"ant-design:weibo-circle-filled",size:w,color:R,hoverColor:v,class:"cursor-pointer ant-icon"},null)])])}}}]),m=F(a.getRememberMe),S=()=>{const o=a.getLoginInfo;if(o){const{username:r,password:l}=o;V({username:r,password:l})}};X(()=>{S()});const{formRegister:E,formMethods:z}=G(),{getFormData:D,getElFormExpose:L,setValues:V}=z,I=F(!1),P=F("");Y(()=>d.value,o=>{var r;P.value=(r=o==null?void 0:o.query)==null?void 0:r.redirect},{immediate:!0});const q=()=>p(this,null,function*(){const o=yield L();yield o==null?void 0:o.validate(r=>p(this,null,function*(){if(r){I.value=!0;const l=yield D();try{const u=yield Q(l);u&&(f(m)?a.setLoginInfo({username:l.username,password:l.password}):a.setLoginInfo(void 0),a.setRememberMe(f(m)),a.setUserInfo(u.data),n.getDynamicRouter?M():(yield t.generateRoutes("static").catch(()=>{}),t.getAddRouters.forEach(C=>{s(C)}),t.setIsAddRouters(!0),c({path:P.value||t.addRouters[0].path})))}finally{I.value=!1}}}))}),M=()=>p(this,null,function*(){const r={roleName:(yield D()).username},l=n.getDynamicRouter&&n.getServerDynamicRouter?yield W(r):yield $(r);if(l){const u=l.data||[];a.setRoleRouters(u),n.getDynamicRouter&&n.getServerDynamicRouter?yield t.generateRoutes("server",u).catch(()=>{}):yield t.generateRoutes("frontEnd",u).catch(()=>{}),t.getAddRouters.forEach(C=>{s(C)}),t.setIsAddRouters(!0),c({path:P.value||t.addRouters[0].path})}}),N=()=>{b("to-register")};return(o,r)=>(Z(),ee(f(T),{schema:B,rules:A,"label-position":"top","hide-required-asterisk":"",size:"large",class:"dark:border-1 dark:border-[var(--el-border-color)] dark:border-solid",onRegister:f(E)},null,8,["schema","onRegister"]))}});export{ge as _}; +var p=(x,y,i)=>new Promise((b,n)=>{var a=s=>{try{d(i.next(s))}catch(c){n(c)}},t=s=>{try{d(i.throw(s))}catch(c){n(c)}},d=s=>s.done?b(s.value):Promise.resolve(s.value).then(a,t);d((i=i.apply(x,y)).next())});import{F as T}from"./Form-B3fdtaFM.js";import{u as U,b as j,c as K,l as Q,d as W,e as $}from"./index-B5z15nYm.js";/* empty css *//* empty css */import{u as G}from"./useForm-BIADJKAv.js";import{q as H,aA as J,K as O,r as F,o as X,w as Y,t as Z,T as ee,u as f,P as e,W as g,Q as _}from"./vue-chunks-DOWhatC1.js";import{u as oe}from"./useValidator-Nt61Jv1p.js";import{I as h}from"./Icon-B-0CON7P.js";import{_ as k}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{y as te,r as se}from"./element-plus-6v3c1uXT.js";const w=30,R="#999",v="var(--el-color-primary)",ge=H({__name:"LoginForm",emits:["to-register"],setup(x,{emit:y}){const{required:i}=oe(),b=y,n=U(),a=j(),t=K(),{currentRoute:d,addRoute:s,push:c}=J(),A={username:[i()],password:[i()]},B=O([{field:"title",colProps:{span:24},formItemProps:{slots:{default:()=>e("h2",{class:"text-2xl font-bold text-center w-[100%]"},[g("登录")])}}},{field:"username",label:"用户名",component:"Input",colProps:{span:24},componentProps:{placeholder:"admin or test"}},{field:"password",label:"密码",component:"InputPassword",colProps:{span:24},componentProps:{style:{width:"100%"},placeholder:"admin or test"}},{field:"tool",colProps:{span:24},formItemProps:{slots:{default:()=>e(_,null,[e("div",{class:"flex justify-between items-center w-[100%]"},[e(te,{modelValue:m.value,"onUpdate:modelValue":o=>m.value=o,label:"记住我",size:"small"},null),e(se,{type:"primary",underline:!1},{default:()=>[g("忘记密码")]})])])}}},{field:"login",colProps:{span:24},formItemProps:{slots:{default:()=>e(_,null,[e("div",{class:"w-[100%]"},[e(k,{loading:I.value,type:"primary",class:"w-[100%]",onClick:q},{default:()=>[g("登录")]})]),e("div",{class:"w-[100%] mt-15px"},[e(k,{class:"w-[100%]",onClick:N},{default:()=>[g("注册")]})])])}}},{field:"other",component:"Divider",label:"其它登录方式",componentProps:{contentPosition:"center"}},{field:"otherIcon",colProps:{span:24},formItemProps:{slots:{default:()=>e(_,null,[e("div",{class:"flex justify-between w-[100%]"},[e(h,{icon:"ant-design:github-filled",size:w,class:"cursor-pointer ant-icon",color:R,hoverColor:v},null),e(h,{icon:"ant-design:wechat-filled",size:w,class:"cursor-pointer ant-icon",color:R,hoverColor:v},null),e(h,{icon:"ant-design:alipay-circle-filled",size:w,color:R,hoverColor:v,class:"cursor-pointer ant-icon"},null),e(h,{icon:"ant-design:weibo-circle-filled",size:w,color:R,hoverColor:v,class:"cursor-pointer ant-icon"},null)])])}}}]),m=F(a.getRememberMe),S=()=>{const o=a.getLoginInfo;if(o){const{username:r,password:l}=o;V({username:r,password:l})}};X(()=>{S()});const{formRegister:E,formMethods:z}=G(),{getFormData:D,getElFormExpose:L,setValues:V}=z,I=F(!1),P=F("");Y(()=>d.value,o=>{var r;P.value=(r=o==null?void 0:o.query)==null?void 0:r.redirect},{immediate:!0});const q=()=>p(this,null,function*(){const o=yield L();yield o==null?void 0:o.validate(r=>p(this,null,function*(){if(r){I.value=!0;const l=yield D();try{const u=yield Q(l);u&&(f(m)?a.setLoginInfo({username:l.username,password:l.password}):a.setLoginInfo(void 0),a.setRememberMe(f(m)),a.setUserInfo(u.data),n.getDynamicRouter?M():(yield t.generateRoutes("static").catch(()=>{}),t.getAddRouters.forEach(C=>{s(C)}),t.setIsAddRouters(!0),c({path:P.value||t.addRouters[0].path})))}finally{I.value=!1}}}))}),M=()=>p(this,null,function*(){const r={roleName:(yield D()).username},l=n.getDynamicRouter&&n.getServerDynamicRouter?yield W(r):yield $(r);if(l){const u=l.data||[];a.setRoleRouters(u),n.getDynamicRouter&&n.getServerDynamicRouter?yield t.generateRoutes("server",u).catch(()=>{}):yield t.generateRoutes("frontEnd",u).catch(()=>{}),t.getAddRouters.forEach(C=>{s(C)}),t.setIsAddRouters(!0),c({path:P.value||t.addRouters[0].path})}}),N=()=>{b("to-register")};return(o,r)=>(Z(),ee(f(T),{schema:B,rules:A,"label-position":"top","hide-required-asterisk":"",size:"large",class:"dark:border-1 dark:border-[var(--el-border-color)] dark:border-solid",onRegister:f(E)},null,8,["schema","onRegister"]))}});export{ge as _}; diff --git a/assets/Menu-CQ_jfTEj.js b/assets/Menu-BhIIVxms.js similarity index 72% rename from assets/Menu-CQ_jfTEj.js rename to assets/Menu-BhIIVxms.js index 1d640ebb..e4450f6e 100644 --- a/assets/Menu-CQ_jfTEj.js +++ b/assets/Menu-BhIIVxms.js @@ -1 +1 @@ -var x=(R,w,i)=>new Promise((y,_)=>{var b=l=>{try{p(i.next(l))}catch(d){_(d)}},k=l=>{try{p(i.throw(l))}catch(d){_(d)}},p=l=>l.done?y(l.value):Promise.resolve(l.value).then(b,k);p((i=i.apply(R,w)).next())});import{g as F}from"./index-CRNzobZS.js";import{u as I}from"./useTable-BTK3WtdF.js";import{_ as M}from"./Table.vue_vue_type_script_lang-DOZk-BCG.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css *//* empty css */import{I as P}from"./Icon-Bwi9LaBZ.js";import{_ as D}from"./Search.vue_vue_type_script_setup_true_lang-CJ6bt3cN.js";import{_ as q}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as K}from"./Write.vue_vue_type_script_setup_true_lang-C9laaz9C.js";import{_ as Q}from"./Detail.vue_vue_type_script_setup_true_lang-Cs2MfJUl.js";import{_ as U}from"./Dialog.vue_vue_type_style_index_0_lang-BLWveiSq.js";import{_ as n}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{C as W}from"./element-plus-6v3c1uXT.js";import{q as Y,K as L,P as a,Q as u,W as m,r,t as g,v as j,S as c,u as o,x as z,T as V,Y as $}from"./vue-chunks-DOWhatC1.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css */import"./index-DlX4pwja.js";import"./Form-DJ57xbBt.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";import"./useForm-CbOF_UB2.js";import"./useIcon-Bk4x_lwM.js";import"./useValidator-Nt61Jv1p.js";import"./AddButtonPermission.vue_vue_type_script_setup_true_lang-C9agW6Rw.js";import"./Descriptions-BYYy1K3P.js";const G={class:"mb-10px"},Pe=Y({__name:"Menu",setup(R){const{tableRegister:w,tableState:i,tableMethods:y}=I({fetchDataApi:()=>x(this,null,function*(){return{list:(yield F()).data.list||[]}})}),{dataList:_,loading:b}=i,{getList:k}=y,p=L([{field:"index",label:"序号",type:"index"},{field:"meta.title",label:"菜单名称",slots:{default:t=>{const e=t.row.meta.title;return a(u,null,[e])}}},{field:"meta.icon",label:"图标",slots:{default:t=>{const e=t.row.meta.icon;return e?a(u,null,[a(P,{icon:e},null)]):null}}},{field:"component",label:"组件",slots:{default:t=>{const e=t.row.component;return a(u,null,[e==="#"?"顶级目录":e==="##"?"子目录":e])}}},{field:"path",label:"路径"},{field:"status",label:"状态",slots:{default:t=>a(u,null,[a(W,{type:t.row.status===0?"danger":"success"},{default:()=>[t.row.status===1?"启用":"禁用"]})])}},{field:"action",label:"操作",width:240,slots:{default:t=>{const e=t.row;return a(u,null,[a(n,{type:"primary",onClick:()=>S(e,"edit")},{default:()=>[m("编辑")]}),a(n,{type:"success",onClick:()=>S(e,"detail")},{default:()=>[m("详情")]}),a(n,{type:"danger"},{default:()=>[m("删除")]})])}}}]),l=L([{field:"meta.title",label:"菜单名称",component:"Input"}]),d=r({}),T=t=>{d.value=t,k()},s=r(!1),C=r(""),v=r(),f=r(""),B=r(),h=r(!1),S=(t,e)=>{C.value=e==="edit"?"编辑":"详情",f.value=e,v.value=t,s.value=!0},N=()=>{C.value="新增",v.value=void 0,s.value=!0,f.value=""},E=()=>x(this,null,function*(){const t=o(B),e=yield t==null?void 0:t.submit();e&&(h.value=!0,setTimeout(()=>{h.value=!1,s.value=!1},1e3))});return(t,e)=>(g(),j(u,null,[a(o(q),null,{default:c(()=>[a(o(D),{schema:l,onReset:T,onSearch:T},null,8,["schema"]),z("div",G,[a(o(n),{type:"primary",onClick:N},{default:c(()=>[m("新增")]),_:1})]),a(o(M),{columns:p,"default-expand-all":"","node-key":"id",data:o(_),loading:o(b),onRegister:o(w)},null,8,["columns","data","loading","onRegister"])]),_:1}),a(o(U),{modelValue:s.value,"onUpdate:modelValue":e[1]||(e[1]=A=>s.value=A),title:C.value},{footer:c(()=>[f.value!=="detail"?(g(),V(o(n),{key:0,type:"primary",loading:h.value,onClick:E},{default:c(()=>[m(" 保存 ")]),_:1},8,["loading"])):$("",!0),a(o(n),{onClick:e[0]||(e[0]=A=>s.value=!1)},{default:c(()=>[m("关闭")]),_:1})]),default:c(()=>[f.value!=="detail"?(g(),V(K,{key:0,ref_key:"writeRef",ref:B,"current-row":v.value},null,8,["current-row"])):$("",!0),f.value==="detail"?(g(),V(Q,{key:1,"current-row":v.value},null,8,["current-row"])):$("",!0)]),_:1},8,["modelValue","title"])],64))}});export{Pe as default}; +var x=(R,w,i)=>new Promise((y,_)=>{var b=l=>{try{p(i.next(l))}catch(d){_(d)}},k=l=>{try{p(i.throw(l))}catch(d){_(d)}},p=l=>l.done?y(l.value):Promise.resolve(l.value).then(b,k);p((i=i.apply(R,w)).next())});import{g as F}from"./index-BYcZ39zx.js";import{u as I}from"./useTable-B7CCRTD1.js";import{_ as M}from"./Table.vue_vue_type_script_lang-BzBmZLp9.js";import"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css *//* empty css */import{I as P}from"./Icon-B-0CON7P.js";import{_ as D}from"./Search.vue_vue_type_script_setup_true_lang-ClF9XpoI.js";import{_ as q}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as K}from"./Write.vue_vue_type_script_setup_true_lang-BBz-bjD1.js";import{_ as Q}from"./Detail.vue_vue_type_script_setup_true_lang-BoRUl_Lf.js";import{_ as U}from"./Dialog.vue_vue_type_style_index_0_lang-DkCU3loB.js";import{_ as n}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{C as W}from"./element-plus-6v3c1uXT.js";import{q as Y,K as L,P as a,Q as u,W as m,r,t as g,v as j,S as c,u as o,x as z,T as V,Y as $}from"./vue-chunks-DOWhatC1.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css */import"./index-2gFf0KW4.js";import"./Form-B3fdtaFM.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";import"./useForm-BIADJKAv.js";import"./useIcon-Dzh8BHEZ.js";import"./useValidator-Nt61Jv1p.js";import"./AddButtonPermission.vue_vue_type_script_setup_true_lang-wVzKuO8R.js";import"./Descriptions-CnAOhWOB.js";const G={class:"mb-10px"},Pe=Y({__name:"Menu",setup(R){const{tableRegister:w,tableState:i,tableMethods:y}=I({fetchDataApi:()=>x(this,null,function*(){return{list:(yield F()).data.list||[]}})}),{dataList:_,loading:b}=i,{getList:k}=y,p=L([{field:"index",label:"序号",type:"index"},{field:"meta.title",label:"菜单名称",slots:{default:t=>{const e=t.row.meta.title;return a(u,null,[e])}}},{field:"meta.icon",label:"图标",slots:{default:t=>{const e=t.row.meta.icon;return e?a(u,null,[a(P,{icon:e},null)]):null}}},{field:"component",label:"组件",slots:{default:t=>{const e=t.row.component;return a(u,null,[e==="#"?"顶级目录":e==="##"?"子目录":e])}}},{field:"path",label:"路径"},{field:"status",label:"状态",slots:{default:t=>a(u,null,[a(W,{type:t.row.status===0?"danger":"success"},{default:()=>[t.row.status===1?"启用":"禁用"]})])}},{field:"action",label:"操作",width:240,slots:{default:t=>{const e=t.row;return a(u,null,[a(n,{type:"primary",onClick:()=>S(e,"edit")},{default:()=>[m("编辑")]}),a(n,{type:"success",onClick:()=>S(e,"detail")},{default:()=>[m("详情")]}),a(n,{type:"danger"},{default:()=>[m("删除")]})])}}}]),l=L([{field:"meta.title",label:"菜单名称",component:"Input"}]),d=r({}),T=t=>{d.value=t,k()},s=r(!1),C=r(""),v=r(),f=r(""),B=r(),h=r(!1),S=(t,e)=>{C.value=e==="edit"?"编辑":"详情",f.value=e,v.value=t,s.value=!0},N=()=>{C.value="新增",v.value=void 0,s.value=!0,f.value=""},E=()=>x(this,null,function*(){const t=o(B),e=yield t==null?void 0:t.submit();e&&(h.value=!0,setTimeout(()=>{h.value=!1,s.value=!1},1e3))});return(t,e)=>(g(),j(u,null,[a(o(q),null,{default:c(()=>[a(o(D),{schema:l,onReset:T,onSearch:T},null,8,["schema"]),z("div",G,[a(o(n),{type:"primary",onClick:N},{default:c(()=>[m("新增")]),_:1})]),a(o(M),{columns:p,"default-expand-all":"","node-key":"id",data:o(_),loading:o(b),onRegister:o(w)},null,8,["columns","data","loading","onRegister"])]),_:1}),a(o(U),{modelValue:s.value,"onUpdate:modelValue":e[1]||(e[1]=A=>s.value=A),title:C.value},{footer:c(()=>[f.value!=="detail"?(g(),V(o(n),{key:0,type:"primary",loading:h.value,onClick:E},{default:c(()=>[m(" 保存 ")]),_:1},8,["loading"])):$("",!0),a(o(n),{onClick:e[0]||(e[0]=A=>s.value=!1)},{default:c(()=>[m("关闭")]),_:1})]),default:c(()=>[f.value!=="detail"?(g(),V(K,{key:0,ref_key:"writeRef",ref:B,"current-row":v.value},null,8,["current-row"])):$("",!0),f.value==="detail"?(g(),V(Q,{key:1,"current-row":v.value},null,8,["current-row"])):$("",!0)]),_:1},8,["modelValue","title"])],64))}});export{Pe as default}; diff --git a/assets/Menu111-BqoTAiIX.js b/assets/Menu111-_Qdpt9MO.js similarity index 72% rename from assets/Menu111-BqoTAiIX.js rename to assets/Menu111-_Qdpt9MO.js index 103b59a2..3a0d19b6 100644 --- a/assets/Menu111-BqoTAiIX.js +++ b/assets/Menu111-_Qdpt9MO.js @@ -1 +1 @@ -import"./index-CA0d6hyI.js";import{_ as s}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{A as r}from"./element-plus-6v3c1uXT.js";import{q as n,r as l,t as m,T as p,S as u,x as i,W as c,P as d,u as a}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const _={class:"flex items-center"},T=n({name:"Menu111",__name:"Menu111",setup(f){const e=l("");return(x,t)=>(m(),p(a(s),{title:"多级菜单缓存"},{default:u(()=>[i("div",_,[c("Menu111: "),d(a(r),{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=o=>e.value=o),class:"pl-20px"},null,8,["modelValue"])])]),_:1}))}});export{T as default}; +import"./index-B5z15nYm.js";import{_ as s}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{A as r}from"./element-plus-6v3c1uXT.js";import{q as n,r as l,t as m,T as p,S as u,x as i,W as c,P as d,u as a}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const _={class:"flex items-center"},T=n({name:"Menu111",__name:"Menu111",setup(f){const e=l("");return(x,t)=>(m(),p(a(s),{title:"多级菜单缓存"},{default:u(()=>[i("div",_,[c("Menu111: "),d(a(r),{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=o=>e.value=o),class:"pl-20px"},null,8,["modelValue"])])]),_:1}))}});export{T as default}; diff --git a/assets/Menu12-BCBy8PfP.js b/assets/Menu12-b7-BY7Ge.js similarity index 72% rename from assets/Menu12-BCBy8PfP.js rename to assets/Menu12-b7-BY7Ge.js index a98c460e..8abb0dd7 100644 --- a/assets/Menu12-BCBy8PfP.js +++ b/assets/Menu12-b7-BY7Ge.js @@ -1 +1 @@ -import"./index-CA0d6hyI.js";import{_ as s}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{A as r}from"./element-plus-6v3c1uXT.js";import{q as n,r as l,t as m,T as p,S as u,x as i,W as c,P as d,u as a}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const _={class:"flex items-center"},T=n({name:"Menu12",__name:"Menu12",setup(f){const e=l("");return(x,t)=>(m(),p(a(s),{title:"多级菜单缓存"},{default:u(()=>[i("div",_,[c("Menu12: "),d(a(r),{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=o=>e.value=o),class:"pl-20px"},null,8,["modelValue"])])]),_:1}))}});export{T as default}; +import"./index-B5z15nYm.js";import{_ as s}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{A as r}from"./element-plus-6v3c1uXT.js";import{q as n,r as l,t as m,T as p,S as u,x as i,W as c,P as d,u as a}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const _={class:"flex items-center"},T=n({name:"Menu12",__name:"Menu12",setup(f){const e=l("");return(x,t)=>(m(),p(a(s),{title:"多级菜单缓存"},{default:u(()=>[i("div",_,[c("Menu12: "),d(a(r),{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=o=>e.value=o),class:"pl-20px"},null,8,["modelValue"])])]),_:1}))}});export{T as default}; diff --git a/assets/Menu2-BjbdK-7b.js b/assets/Menu2-DX4lEJ0Q.js similarity index 71% rename from assets/Menu2-BjbdK-7b.js rename to assets/Menu2-DX4lEJ0Q.js index 1d6140c2..f2357533 100644 --- a/assets/Menu2-BjbdK-7b.js +++ b/assets/Menu2-DX4lEJ0Q.js @@ -1 +1 @@ -import"./index-CA0d6hyI.js";import{_ as s}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{A as r}from"./element-plus-6v3c1uXT.js";import{q as n,r as l,t as m,T as p,S as u,x as i,W as c,P as d,u as a}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const _={class:"flex items-center"},T=n({name:"Menu2",__name:"Menu2",setup(f){const e=l("");return(x,t)=>(m(),p(a(s),{title:"多级菜单缓存"},{default:u(()=>[i("div",_,[c("Menu2: "),d(a(r),{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=o=>e.value=o),class:"pl-20px"},null,8,["modelValue"])])]),_:1}))}});export{T as default}; +import"./index-B5z15nYm.js";import{_ as s}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{A as r}from"./element-plus-6v3c1uXT.js";import{q as n,r as l,t as m,T as p,S as u,x as i,W as c,P as d,u as a}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const _={class:"flex items-center"},T=n({name:"Menu2",__name:"Menu2",setup(f){const e=l("");return(x,t)=>(m(),p(a(s),{title:"多级菜单缓存"},{default:u(()=>[i("div",_,[c("Menu2: "),d(a(r),{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=o=>e.value=o),class:"pl-20px"},null,8,["modelValue"])])]),_:1}))}});export{T as default}; diff --git a/assets/MultipleTabs-j8VcrQgb.js b/assets/MultipleTabs-BYc9VCj9.js similarity index 74% rename from assets/MultipleTabs-j8VcrQgb.js rename to assets/MultipleTabs-BYc9VCj9.js index ee5f86fe..8f5f8889 100644 --- a/assets/MultipleTabs-j8VcrQgb.js +++ b/assets/MultipleTabs-BYc9VCj9.js @@ -1 +1 @@ -import{_ as p}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{q as i,aA as c,t as a,T as m,S as o,v as l,Q as u,a8 as _,P as f,u as r,W as d,X as k}from"./vue-chunks-DOWhatC1.js";import{_ as x}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import"./Icon-Bwi9LaBZ.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */const V=i({__name:"MultipleTabs",setup(y){const{push:s}=c(),n=t=>{s(`/function/multiple-tabs-demo/${t}`)};return(t,C)=>(a(),m(r(p),null,{default:o(()=>[(a(),l(u,null,_(5,e=>f(r(x),{key:e,type:"primary",onClick:T=>n(e)},{default:o(()=>[d(" 打开详情页"+k(e),1)]),_:2},1032,["onClick"])),64))]),_:1}))}});export{V as default}; +import{_ as p}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{q as i,aA as c,t as a,T as m,S as o,v as l,Q as u,a8 as _,P as f,u as r,W as d,X as k}from"./vue-chunks-DOWhatC1.js";import{_ as x}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import"./Icon-B-0CON7P.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */const V=i({__name:"MultipleTabs",setup(y){const{push:s}=c(),n=t=>{s(`/function/multiple-tabs-demo/${t}`)};return(t,C)=>(a(),m(r(p),null,{default:o(()=>[(a(),l(u,null,_(5,e=>f(r(x),{key:e,type:"primary",onClick:T=>n(e)},{default:o(()=>[d(" 打开详情页"+k(e),1)]),_:2},1032,["onClick"])),64))]),_:1}))}});export{V as default}; diff --git a/assets/MultipleTabsDemo-D5XLE6u4.js b/assets/MultipleTabsDemo-B1qrIdt2.js similarity index 73% rename from assets/MultipleTabsDemo-D5XLE6u4.js rename to assets/MultipleTabsDemo-B1qrIdt2.js index d306e244..b49196c4 100644 --- a/assets/MultipleTabsDemo-D5XLE6u4.js +++ b/assets/MultipleTabsDemo-B1qrIdt2.js @@ -1 +1 @@ -import{_ as l}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./index-CA0d6hyI.js";import{q as m,aH as u,r as n,t as p,T as i,S as f,W as c,P as d,u as t}from"./vue-chunks-DOWhatC1.js";import{u as _}from"./useTagsView-yfN3e7pq.js";import{A as V}from"./element-plus-6v3c1uXT.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const g=m({__name:"MultipleTabsDemo",setup(T){const{setTitle:o}=_(),{params:s}=u(),e=n(s.id);return o(`详情页-${e.value}`),(v,a)=>(p(),i(t(l),null,{default:f(()=>[c(" 获取参数: "),d(t(V),{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=r=>e.value=r)},null,8,["modelValue"])]),_:1}))}});export{g as default}; +import{_ as l}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./index-B5z15nYm.js";import{q as m,aH as u,r as n,t as p,T as i,S as f,W as c,P as d,u as t}from"./vue-chunks-DOWhatC1.js";import{u as _}from"./useTagsView-BLw3Jy7r.js";import{A as V}from"./element-plus-6v3c1uXT.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const g=m({__name:"MultipleTabsDemo",setup(T){const{setTitle:o}=_(),{params:s}=u(),e=n(s.id);return o(`详情页-${e.value}`),(v,a)=>(p(),i(t(l),null,{default:f(()=>[c(" 获取参数: "),d(t(V),{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=r=>e.value=r)},null,8,["modelValue"])]),_:1}))}});export{g as default}; diff --git a/assets/PanelGroup-CJuS-ais.js b/assets/PanelGroup-SOpNPnD6.js similarity index 95% rename from assets/PanelGroup-CJuS-ais.js rename to assets/PanelGroup-SOpNPnD6.js index 8938ea23..a21f43f1 100644 --- a/assets/PanelGroup-CJuS-ais.js +++ b/assets/PanelGroup-SOpNPnD6.js @@ -1 +1 @@ -var b=(d,l,n)=>new Promise((h,i)=>{var y=c=>{try{g(n.next(c))}catch(v){i(v)}},_=c=>{try{g(n.throw(c))}catch(v){i(v)}},g=c=>c.done?h(c.value):Promise.resolve(c.value).then(y,_);g((n=n.apply(d,l)).next())});import{I as w,_ as k}from"./Icon-Bwi9LaBZ.js";import{r as m}from"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css */import{_ as r}from"./CountTo.vue_vue_type_script_setup_true_lang-BYxn9PUH.js";import{k as p,l as u,m as x,n as j}from"./element-plus-6v3c1uXT.js";import{q as S,r as C,K as A,t as I,T as z,S as a,P as e,u as s,x as t,M as o,aB as P,aC as B}from"./vue-chunks-DOWhatC1.js";const E=()=>m.get({url:"/mock/analysis/total"}),ne=()=>m.get({url:"/mock/analysis/userAccessSource"}),ie=()=>m.get({url:"/mock/analysis/weeklyUserActivity"}),ce=()=>m.get({url:"/mock/analysis/monthlySales"}),f=d=>(P("data-v-a47e3ee7"),d=d(),B(),d),G={class:o("panel__item flex justify-between")},M={class:o("panel__item--icon panel__item--peoples p-16px inline-block rounded-6px")},O={class:"flex flex-col justify-between"},U=f(()=>t("div",{class:o("panel__item--text text-16px text-gray-500 text-right")},"新增用户",-1)),q={class:o("panel__item flex justify-between")},N={class:o("panel__item--icon panel__item--message p-16px inline-block rounded-6px")},T={class:"flex flex-col justify-between"},V=f(()=>t("div",{class:o("panel__item--text text-16px text-gray-500 text-right")},"未读消息",-1)),$={class:o("panel__item flex justify-between")},K={class:o("panel__item--icon panel__item--money p-16px inline-block rounded-6px")},R={class:"flex flex-col justify-between"},W=f(()=>t("div",{class:o("panel__item--text text-16px text-gray-500 text-right")},"成交金额",-1)),D={class:o("panel__item flex justify-between")},F={class:o("panel__item--icon panel__item--shopping p-16px inline-block rounded-6px")},H={class:"flex flex-col justify-between"},J=f(()=>t("div",{class:o("panel__item--text text-16px text-gray-500 text-right")},"购物总量",-1)),L=S({__name:"PanelGroup",setup(d){const l=C(!0);let n=A({users:0,messages:0,moneys:0,shoppings:0});return b(this,null,function*(){const i=yield E().catch(()=>{}).finally(()=>{l.value=!1});n=Object.assign(n,(i==null?void 0:i.data)||{})}),(i,y)=>{const _=w;return I(),z(s(j),{gutter:20,justify:"space-between",class:"panel"},{default:a(()=>[e(s(p),{xl:6,lg:6,md:12,sm:12,xs:24},{default:a(()=>[e(s(u),{shadow:"hover",class:"mb-20px"},{default:a(()=>[e(s(x),{loading:l.value,animated:"",rows:2},{default:a(()=>[t("div",G,[t("div",null,[t("div",M,[e(_,{icon:"svg-icon:peoples",size:40})])]),t("div",O,[U,e(s(r),{class:"text-20px font-700 text-right","start-val":0,"end-val":102400,duration:2600})])])]),_:1},8,["loading"])]),_:1})]),_:1}),e(s(p),{xl:6,lg:6,md:12,sm:12,xs:24},{default:a(()=>[e(s(u),{shadow:"hover",class:"mb-20px"},{default:a(()=>[e(s(x),{loading:l.value,animated:"",rows:2},{default:a(()=>[t("div",q,[t("div",null,[t("div",N,[e(_,{icon:"svg-icon:message",size:40})])]),t("div",T,[V,e(s(r),{class:"text-20px font-700 text-right","start-val":0,"end-val":81212,duration:2600})])])]),_:1},8,["loading"])]),_:1})]),_:1}),e(s(p),{xl:6,lg:6,md:12,sm:12,xs:24},{default:a(()=>[e(s(u),{shadow:"hover",class:"mb-20px"},{default:a(()=>[e(s(x),{loading:l.value,animated:"",rows:2},{default:a(()=>[t("div",$,[t("div",null,[t("div",K,[e(_,{icon:"svg-icon:money",size:40})])]),t("div",R,[W,e(s(r),{class:"text-20px font-700 text-right","start-val":0,"end-val":9280,duration:2600})])])]),_:1},8,["loading"])]),_:1})]),_:1}),e(s(p),{xl:6,lg:6,md:12,sm:12,xs:24},{default:a(()=>[e(s(u),{shadow:"hover",class:"mb-20px"},{default:a(()=>[e(s(x),{loading:l.value,animated:"",rows:2},{default:a(()=>[t("div",D,[t("div",null,[t("div",F,[e(_,{icon:"svg-icon:shopping",size:40})])]),t("div",H,[J,e(s(r),{class:"text-20px font-700 text-right","start-val":0,"end-val":13600,duration:2600})])])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})}}}),Q=k(L,[["__scopeId","data-v-a47e3ee7"]]),de=Object.freeze(Object.defineProperty({__proto__:null,default:Q},Symbol.toStringTag,{value:"Module"}));export{Q as P,ie as a,ce as b,de as c,ne as g}; +var b=(d,l,n)=>new Promise((h,i)=>{var y=c=>{try{g(n.next(c))}catch(v){i(v)}},_=c=>{try{g(n.throw(c))}catch(v){i(v)}},g=c=>c.done?h(c.value):Promise.resolve(c.value).then(y,_);g((n=n.apply(d,l)).next())});import{I as w,_ as k}from"./Icon-B-0CON7P.js";import{r as m}from"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css */import{_ as r}from"./CountTo.vue_vue_type_script_setup_true_lang-BAvgPMEO.js";import{k as p,l as u,m as x,n as j}from"./element-plus-6v3c1uXT.js";import{q as S,r as C,K as A,t as I,T as z,S as a,P as e,u as s,x as t,M as o,aB as P,aC as B}from"./vue-chunks-DOWhatC1.js";const E=()=>m.get({url:"/mock/analysis/total"}),ne=()=>m.get({url:"/mock/analysis/userAccessSource"}),ie=()=>m.get({url:"/mock/analysis/weeklyUserActivity"}),ce=()=>m.get({url:"/mock/analysis/monthlySales"}),f=d=>(P("data-v-a47e3ee7"),d=d(),B(),d),G={class:o("panel__item flex justify-between")},M={class:o("panel__item--icon panel__item--peoples p-16px inline-block rounded-6px")},O={class:"flex flex-col justify-between"},U=f(()=>t("div",{class:o("panel__item--text text-16px text-gray-500 text-right")},"新增用户",-1)),q={class:o("panel__item flex justify-between")},N={class:o("panel__item--icon panel__item--message p-16px inline-block rounded-6px")},T={class:"flex flex-col justify-between"},V=f(()=>t("div",{class:o("panel__item--text text-16px text-gray-500 text-right")},"未读消息",-1)),$={class:o("panel__item flex justify-between")},K={class:o("panel__item--icon panel__item--money p-16px inline-block rounded-6px")},R={class:"flex flex-col justify-between"},W=f(()=>t("div",{class:o("panel__item--text text-16px text-gray-500 text-right")},"成交金额",-1)),D={class:o("panel__item flex justify-between")},F={class:o("panel__item--icon panel__item--shopping p-16px inline-block rounded-6px")},H={class:"flex flex-col justify-between"},J=f(()=>t("div",{class:o("panel__item--text text-16px text-gray-500 text-right")},"购物总量",-1)),L=S({__name:"PanelGroup",setup(d){const l=C(!0);let n=A({users:0,messages:0,moneys:0,shoppings:0});return b(this,null,function*(){const i=yield E().catch(()=>{}).finally(()=>{l.value=!1});n=Object.assign(n,(i==null?void 0:i.data)||{})}),(i,y)=>{const _=w;return I(),z(s(j),{gutter:20,justify:"space-between",class:"panel"},{default:a(()=>[e(s(p),{xl:6,lg:6,md:12,sm:12,xs:24},{default:a(()=>[e(s(u),{shadow:"hover",class:"mb-20px"},{default:a(()=>[e(s(x),{loading:l.value,animated:"",rows:2},{default:a(()=>[t("div",G,[t("div",null,[t("div",M,[e(_,{icon:"svg-icon:peoples",size:40})])]),t("div",O,[U,e(s(r),{class:"text-20px font-700 text-right","start-val":0,"end-val":102400,duration:2600})])])]),_:1},8,["loading"])]),_:1})]),_:1}),e(s(p),{xl:6,lg:6,md:12,sm:12,xs:24},{default:a(()=>[e(s(u),{shadow:"hover",class:"mb-20px"},{default:a(()=>[e(s(x),{loading:l.value,animated:"",rows:2},{default:a(()=>[t("div",q,[t("div",null,[t("div",N,[e(_,{icon:"svg-icon:message",size:40})])]),t("div",T,[V,e(s(r),{class:"text-20px font-700 text-right","start-val":0,"end-val":81212,duration:2600})])])]),_:1},8,["loading"])]),_:1})]),_:1}),e(s(p),{xl:6,lg:6,md:12,sm:12,xs:24},{default:a(()=>[e(s(u),{shadow:"hover",class:"mb-20px"},{default:a(()=>[e(s(x),{loading:l.value,animated:"",rows:2},{default:a(()=>[t("div",$,[t("div",null,[t("div",K,[e(_,{icon:"svg-icon:money",size:40})])]),t("div",R,[W,e(s(r),{class:"text-20px font-700 text-right","start-val":0,"end-val":9280,duration:2600})])])]),_:1},8,["loading"])]),_:1})]),_:1}),e(s(p),{xl:6,lg:6,md:12,sm:12,xs:24},{default:a(()=>[e(s(u),{shadow:"hover",class:"mb-20px"},{default:a(()=>[e(s(x),{loading:l.value,animated:"",rows:2},{default:a(()=>[t("div",D,[t("div",null,[t("div",F,[e(_,{icon:"svg-icon:shopping",size:40})])]),t("div",H,[J,e(s(r),{class:"text-20px font-700 text-right","start-val":0,"end-val":13600,duration:2600})])])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})}}}),Q=k(L,[["__scopeId","data-v-a47e3ee7"]]),de=Object.freeze(Object.defineProperty({__proto__:null,default:Q},Symbol.toStringTag,{value:"Module"}));export{Q as P,ie as a,ce as b,de as c,ne as g}; diff --git a/assets/Qrcode-nadB2KpN.js b/assets/Qrcode-TFgtIK2a.js similarity index 99% rename from assets/Qrcode-nadB2KpN.js rename to assets/Qrcode-TFgtIK2a.js index 0dbaa690..878d6bc6 100644 --- a/assets/Qrcode-nadB2KpN.js +++ b/assets/Qrcode-TFgtIK2a.js @@ -1,4 +1,4 @@ -var se=Object.defineProperty;var vt=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var Mt=(e,t,n)=>t in e?se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pt=(e,t)=>{for(var n in t||(t={}))ae.call(t,n)&&Mt(e,n,t[n]);if(vt)for(var n of vt(t))le.call(t,n)&&Mt(e,n,t[n]);return e};var ct=(e,t,n)=>new Promise((i,r)=>{var o=a=>{try{l(n.next(a))}catch(f){r(f)}},s=a=>{try{l(n.throw(a))}catch(f){r(f)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(o,s);l((n=n.apply(e,t)).next())});import{p as Z,a as Rt,u as ce}from"./index-CA0d6hyI.js";import{I as ue,_ as fe}from"./Icon-Bwi9LaBZ.js";import{d as de,K as ge,n as he,k as F,l as x,E as Lt}from"./element-plus-6v3c1uXT.js";import{q as Vt,r as mt,d as wt,w as me,a0 as we,t as nt,v as Dt,T as Ht,U as Ce,M as kt,x as k,P as B,X as pe,Y as ye,V as Ee,n as be,u as y,S as A}from"./vue-chunks-DOWhatC1.js";import{_ as Be}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";/* empty css *//* empty css */import{_ as Ut}from"./logo-CqD-cdkl.js";/* empty css */var G={},_e=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Kt={},v={};let bt;const Te=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];v.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};v.getSymbolTotalCodewords=function(t){return Te[t]};v.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};v.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');bt=t};v.isKanjiModeEnabled=function(){return typeof bt!="undefined"};v.toSJIS=function(t){return bt(t)};var it={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(i){return i&&typeof i.bit!="undefined"&&i.bit>=0&&i.bit<4},e.from=function(i,r){if(e.isValid(i))return i;try{return t(i)}catch(o){return r}}})(it);function Ot(){this.buffer=[],this.length=0}Ot.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Ae=Ot;function W(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}W.prototype.set=function(e,t,n,i){const r=e*this.size+t;this.data[r]=n,i&&(this.reservedBit[r]=!0)};W.prototype.get=function(e,t){return this.data[e*this.size+t]};W.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};W.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Se=W,Jt={};(function(e){const t=v.getSymbolSize;e.getRowColCoords=function(i){if(i===1)return[];const r=Math.floor(i/7)+2,o=t(i),s=o===145?26:Math.ceil((o-13)/(2*r-2))*2,l=[o-7];for(let a=1;a=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const o=r.size;let s=0,l=0,a=0,f=null,h=null;for(let _=0;_=5&&(s+=t.N1+(l-5)),f=m,l=1),m=r.get(w,_),m===h?a++:(a>=5&&(s+=t.N1+(a-5)),h=m,a=1)}l>=5&&(s+=t.N1+(l-5)),a>=5&&(s+=t.N1+(a-5))}return s},e.getPenaltyN2=function(r){const o=r.size;let s=0;for(let l=0;l=10&&(l===1488||l===93)&&s++,a=a<<1&2047|r.get(h,f),h>=10&&(a===1488||a===93)&&s++}return s*t.N3},e.getPenaltyN4=function(r){let o=0;const s=r.data.length;for(let a=0;a=0;){const s=o[0];for(let a=0;a0){const o=new Uint8Array(this.degree);return o.set(i,r),o}return i};var Ne=Bt,qt={},H={},_t={};_t.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var U={};const Gt="[0-9]+",ve="[A-Z $%*+\\-./:]+";let q="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";q=q.replace(/u/g,"\\u");const Me="(?:(?![A-Z0-9 $%*+\\-./:]|"+q+`)(?:.|[\r +var se=Object.defineProperty;var vt=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var Mt=(e,t,n)=>t in e?se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pt=(e,t)=>{for(var n in t||(t={}))ae.call(t,n)&&Mt(e,n,t[n]);if(vt)for(var n of vt(t))le.call(t,n)&&Mt(e,n,t[n]);return e};var ct=(e,t,n)=>new Promise((i,r)=>{var o=a=>{try{l(n.next(a))}catch(f){r(f)}},s=a=>{try{l(n.throw(a))}catch(f){r(f)}},l=a=>a.done?i(a.value):Promise.resolve(a.value).then(o,s);l((n=n.apply(e,t)).next())});import{p as Z,a as Rt,u as ce}from"./index-B5z15nYm.js";import{I as ue,_ as fe}from"./Icon-B-0CON7P.js";import{d as de,K as ge,n as he,k as F,l as x,E as Lt}from"./element-plus-6v3c1uXT.js";import{q as Vt,r as mt,d as wt,w as me,a0 as we,t as nt,v as Dt,T as Ht,U as Ce,M as kt,x as k,P as B,X as pe,Y as ye,V as Ee,n as be,u as y,S as A}from"./vue-chunks-DOWhatC1.js";import{_ as Be}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";/* empty css *//* empty css */import{_ as Ut}from"./logo-CqD-cdkl.js";/* empty css */var G={},_e=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Kt={},v={};let bt;const Te=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];v.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};v.getSymbolTotalCodewords=function(t){return Te[t]};v.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};v.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');bt=t};v.isKanjiModeEnabled=function(){return typeof bt!="undefined"};v.toSJIS=function(t){return bt(t)};var it={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(i){return i&&typeof i.bit!="undefined"&&i.bit>=0&&i.bit<4},e.from=function(i,r){if(e.isValid(i))return i;try{return t(i)}catch(o){return r}}})(it);function Ot(){this.buffer=[],this.length=0}Ot.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Ae=Ot;function W(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}W.prototype.set=function(e,t,n,i){const r=e*this.size+t;this.data[r]=n,i&&(this.reservedBit[r]=!0)};W.prototype.get=function(e,t){return this.data[e*this.size+t]};W.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};W.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Se=W,Jt={};(function(e){const t=v.getSymbolSize;e.getRowColCoords=function(i){if(i===1)return[];const r=Math.floor(i/7)+2,o=t(i),s=o===145?26:Math.ceil((o-13)/(2*r-2))*2,l=[o-7];for(let a=1;a=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const o=r.size;let s=0,l=0,a=0,f=null,h=null;for(let _=0;_=5&&(s+=t.N1+(l-5)),f=m,l=1),m=r.get(w,_),m===h?a++:(a>=5&&(s+=t.N1+(a-5)),h=m,a=1)}l>=5&&(s+=t.N1+(l-5)),a>=5&&(s+=t.N1+(a-5))}return s},e.getPenaltyN2=function(r){const o=r.size;let s=0;for(let l=0;l=10&&(l===1488||l===93)&&s++,a=a<<1&2047|r.get(h,f),h>=10&&(a===1488||a===93)&&s++}return s*t.N3},e.getPenaltyN4=function(r){let o=0;const s=r.data.length;for(let a=0;a=0;){const s=o[0];for(let a=0;a0){const o=new Uint8Array(this.degree);return o.set(i,r),o}return i};var Ne=Bt,qt={},H={},_t={};_t.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var U={};const Gt="[0-9]+",ve="[A-Z $%*+\\-./:]+";let q="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";q=q.replace(/u/g,"\\u");const Me="(?:(?![A-Z0-9 $%*+\\-./:]|"+q+`)(?:.|[\r ]))+`;U.KANJI=new RegExp(q,"g");U.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");U.BYTE=new RegExp(Me,"g");U.NUMERIC=new RegExp(Gt,"g");U.ALPHANUMERIC=new RegExp(ve,"g");const Pe=new RegExp("^"+q+"$"),Re=new RegExp("^"+Gt+"$"),Le=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");U.testKanji=function(t){return Pe.test(t)};U.testNumeric=function(t){return Re.test(t)};U.testAlphanumeric=function(t){return Le.test(t)};(function(e){const t=_t,n=U;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return n.testNumeric(o)?e.NUMERIC:n.testAlphanumeric(o)?e.ALPHANUMERIC:n.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function i(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+r)}}e.from=function(o,s){if(e.isValid(o))return o;try{return i(o)}catch(l){return s}}})(H);(function(e){const t=v,n=st,i=it,r=H,o=_t,s=7973,l=t.getBCHDigit(s);function a(w,m,C){for(let p=1;p<=40;p++)if(m<=e.getCapacity(p,C,w))return p}function f(w,m){return r.getCharCountIndicator(w,m)+4}function h(w,m){let C=0;return w.forEach(function(p){const S=f(p.mode,m);C+=S+p.getBitsLength()}),C}function _(w,m){for(let C=1;C<=40;C++)if(h(w,C)<=e.getCapacity(C,m,r.MIXED))return C}e.from=function(m,C){return o.isValid(m)?parseInt(m,10):C},e.getCapacity=function(m,C,p){if(!o.isValid(m))throw new Error("Invalid QR Code version");typeof p=="undefined"&&(p=r.BYTE);const S=t.getSymbolTotalCodewords(m),c=n.getTotalCodewordsCount(m,C),g=(S-c)*8;if(p===r.MIXED)return g;const u=g-f(p,m);switch(p){case r.NUMERIC:return Math.floor(u/10*3);case r.ALPHANUMERIC:return Math.floor(u/11*2);case r.KANJI:return Math.floor(u/13);case r.BYTE:default:return Math.floor(u/8)}},e.getBestVersionForData=function(m,C){let p;const S=i.from(C,i.M);if(Array.isArray(m)){if(m.length>1)return _(m,S);if(m.length===0)return 1;p=m[0]}else p=m;return a(p.mode,p.getLength(),S)},e.getEncodedBits=function(m){if(!o.isValid(m)||m<7)throw new Error("Invalid QR Code version");let C=m<<12;for(;t.getBCHDigit(C)-l>=0;)C^=s<=0;)r^=Xt<0&&(i=this.data.substr(n),r=parseInt(i,10),t.put(r,o*3+1))};var Ue=K;const Fe=H,ut=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function O(e){this.mode=Fe.ALPHANUMERIC,this.data=e}O.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};O.prototype.getLength=function(){return this.data.length};O.prototype.getBitsLength=function(){return O.getBitsLength(this.data.length)};O.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let i=ut.indexOf(this.data[n])*45;i+=ut.indexOf(this.data[n+1]),t.put(i,11)}this.data.length%2&&t.put(ut.indexOf(this.data[n]),6)};var xe=O,ze=function(t){for(var n=[],i=t.length,r=0;r=55296&&o<=56319&&i>r+1){var s=t.charCodeAt(r+1);s>=56320&&s<=57343&&(o=(o-55296)*1024+s-56320+65536,r+=1)}if(o<128){n.push(o);continue}if(o<2048){n.push(o>>6|192),n.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){n.push(o>>12|224),n.push(o>>6&63|128),n.push(o&63|128);continue}if(o>=65536&&o<=1114111){n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const Ve=ze,He=H;function J(e){this.mode=He.BYTE,typeof e=="string"&&(e=Ve(e)),this.data=new Uint8Array(e)}J.getBitsLength=function(t){return t*8};J.prototype.getLength=function(){return this.data.length};J.prototype.getBitsLength=function(){return J.getBitsLength(this.data.length)};J.prototype.write=function(e){for(let t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var Ye=Y,te={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,i,r){var o={},s={};s[i]=0;var l=t.PriorityQueue.make();l.push(i,0);for(var a,f,h,_,w,m,C,p,S;!l.empty();){a=l.pop(),f=a.value,_=a.cost,w=n[f]||{};for(h in w)w.hasOwnProperty(h)&&(m=w[h],C=_+m,p=s[h],S=typeof s[h]=="undefined",(S||p>C)&&(s[h]=C,l.push(h,C),o[h]=f))}if(typeof r!="undefined"&&typeof s[r]=="undefined"){var c=["Could not find a path from ",i," to ",r,"."].join("");throw new Error(c)}return o},extract_shortest_path_from_predecessor_list:function(n,i){for(var r=[],o=i;o;)r.push(o),n[o],o=n[o];return r.reverse(),r},find_path:function(n,i,r){var o=t.single_source_shortest_paths(n,i,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(n){var i=t.PriorityQueue,r={},o;n=n||{};for(o in i)i.hasOwnProperty(o)&&(r[o]=i[o]);return r.queue=[],r.sorter=n.sorter||i.default_sorter,r},default_sorter:function(n,i){return n.cost-i.cost},push:function(n,i){var r={value:n,cost:i};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(te);var $e=te.exports;(function(e){const t=H,n=Ue,i=xe,r=Ke,o=Ye,s=U,l=v,a=$e;function f(c){return unescape(encodeURIComponent(c)).length}function h(c,g,u){const d=[];let E;for(;(E=c.exec(u))!==null;)d.push({data:E[0],index:E.index,mode:g,length:E[0].length});return d}function _(c){const g=h(s.NUMERIC,t.NUMERIC,c),u=h(s.ALPHANUMERIC,t.ALPHANUMERIC,c);let d,E;return l.isKanjiModeEnabled()?(d=h(s.BYTE,t.BYTE,c),E=h(s.KANJI,t.KANJI,c)):(d=h(s.BYTE_KANJI,t.BYTE,c),E=[]),g.concat(u,d,E).sort(function(T,N){return T.index-N.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function w(c,g){switch(g){case t.NUMERIC:return n.getBitsLength(c);case t.ALPHANUMERIC:return i.getBitsLength(c);case t.KANJI:return o.getBitsLength(c);case t.BYTE:return r.getBitsLength(c)}}function m(c){return c.reduce(function(g,u){const d=g.length-1>=0?g[g.length-1]:null;return d&&d.mode===u.mode?(g[g.length-1].data+=u.data,g):(g.push(u),g)},[])}function C(c){const g=[];for(let u=0;u=0&&l<=6&&(a===0||a===6)||a>=0&&a<=6&&(l===0||l===6)||l>=2&&l<=4&&a>=2&&a<=4?e.set(o+l,s+a,!0,!0):e.set(o+l,s+a,!1,!0))}}function en(e){const t=e.size;for(let n=8;n>l&1)===1,e.set(r,o,s,!0),e.set(o,r,s,!0)}function gt(e,t,n){const i=e.size,r=Xe.getEncodedBits(t,n);let o,s;for(o=0;o<15;o++)s=(r>>o&1)===1,o<6?e.set(o,8,s,!0):o<8?e.set(o+1,8,s,!0):e.set(i-15+o,8,s,!0),o<8?e.set(8,i-o-1,s,!0):o<9?e.set(8,15-o-1+1,s,!0):e.set(8,15-o-1,s,!0);e.set(i-8,8,1,!0)}function rn(e,t){const n=e.size;let i=-1,r=n-1,o=7,s=0;for(let l=n-1;l>0;l-=2)for(l===6&&l--;;){for(let a=0;a<2;a++)if(!e.isReserved(r,l-a)){let f=!1;s>>o&1)===1),e.set(r,l-a,f),o--,o===-1&&(s++,o=7)}if(r+=i,r<0||n<=r){r-=i,i=-i;break}}}function sn(e,t,n){const i=new je;n.forEach(function(a){i.put(a.mode.bit,4),i.put(a.getLength(),Ze.getCharCountIndicator(a.mode,e)),a.write(i)});const r=lt.getSymbolTotalCodewords(e),o=yt.getTotalCodewordsCount(e,t),s=(r-o)*8;for(i.getLengthInBits()+4<=s&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const l=(s-i.getLengthInBits())/8;for(let a=0;anew Promise((p,n)=>{var i=e=>{try{a(r.next(e))}catch(l){n(l)}},t=e=>{try{a(r.throw(e))}catch(l){n(l)}},a=e=>e.done?p(e.value):Promise.resolve(e.value).then(i,t);a((r=r.apply(g,u)).next())});import{F}from"./Form-DJ57xbBt.js";import{u as _}from"./useForm-CbOF_UB2.js";import"./index-CA0d6hyI.js";import{u as v}from"./useValidator-Nt61Jv1p.js";import{_ as h}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{A as b}from"./element-plus-6v3c1uXT.js";import{q as k,K as x,r as C,t as y,T as B,u as w,P as o,W as f,Q as I}from"./vue-chunks-DOWhatC1.js";const D=k({__name:"RegisterForm",emits:["to-login"],setup(g,{emit:u}){const r=u,{formRegister:p,formMethods:n}=_(),{getElFormExpose:i}=n,{required:t}=v(),a=x([{field:"title",colProps:{span:24},formItemProps:{slots:{default:()=>o("h2",{class:"text-2xl font-bold text-center w-[100%]"},[f("注册")])}}},{field:"username",label:"用户名",value:"",component:"Input",colProps:{span:24},componentProps:{placeholder:"请输入用户名"}},{field:"password",label:"密码",value:"",component:"InputPassword",colProps:{span:24},componentProps:{style:{width:"100%"},strength:!0,placeholder:"请输入密码"}},{field:"check_password",label:"确认密码",value:"",component:"InputPassword",colProps:{span:24},componentProps:{style:{width:"100%"},strength:!0,placeholder:"请输入密码"}},{field:"code",label:"验证码",colProps:{span:24},formItemProps:{slots:{default:s=>o("div",{class:"w-[100%] flex"},[o(b,{modelValue:s.code,"onUpdate:modelValue":c=>s.code=c,placeholder:"请输入验证码"},null)])}}},{field:"register",colProps:{span:24},formItemProps:{slots:{default:()=>o(I,null,[o("div",{class:"w-[100%]"},[o(h,{type:"primary",class:"w-[100%]",loading:d.value,onClick:P},{default:()=>[f("注册")]})]),o("div",{class:"w-[100%] mt-15px"},[o(h,{class:"w-[100%]",onClick:l},{default:()=>[f("已有账号?去登录")]})])])}}}]),e={username:[t()],password:[t()],check_password:[t()],code:[t()]},l=()=>{r("to-login")},d=C(!1),P=()=>m(this,null,function*(){const s=yield i();s==null||s.validate(c=>m(this,null,function*(){if(c)try{d.value=!0,l()}finally{d.value=!1}}))});return(s,c)=>(y(),B(w(F),{schema:a,rules:e,"label-position":"top","hide-required-asterisk":"",size:"large",class:"dark:border-1 dark:border-[var(--el-border-color)] dark:border-solid",onRegister:w(p)},null,8,["schema","onRegister"]))}});export{D as _}; +var m=(g,u,r)=>new Promise((p,n)=>{var i=e=>{try{a(r.next(e))}catch(l){n(l)}},t=e=>{try{a(r.throw(e))}catch(l){n(l)}},a=e=>e.done?p(e.value):Promise.resolve(e.value).then(i,t);a((r=r.apply(g,u)).next())});import{F}from"./Form-B3fdtaFM.js";import{u as _}from"./useForm-BIADJKAv.js";import"./index-B5z15nYm.js";import{u as v}from"./useValidator-Nt61Jv1p.js";import{_ as h}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{A as b}from"./element-plus-6v3c1uXT.js";import{q as k,K as x,r as C,t as y,T as B,u as w,P as o,W as f,Q as I}from"./vue-chunks-DOWhatC1.js";const D=k({__name:"RegisterForm",emits:["to-login"],setup(g,{emit:u}){const r=u,{formRegister:p,formMethods:n}=_(),{getElFormExpose:i}=n,{required:t}=v(),a=x([{field:"title",colProps:{span:24},formItemProps:{slots:{default:()=>o("h2",{class:"text-2xl font-bold text-center w-[100%]"},[f("注册")])}}},{field:"username",label:"用户名",value:"",component:"Input",colProps:{span:24},componentProps:{placeholder:"请输入用户名"}},{field:"password",label:"密码",value:"",component:"InputPassword",colProps:{span:24},componentProps:{style:{width:"100%"},strength:!0,placeholder:"请输入密码"}},{field:"check_password",label:"确认密码",value:"",component:"InputPassword",colProps:{span:24},componentProps:{style:{width:"100%"},strength:!0,placeholder:"请输入密码"}},{field:"code",label:"验证码",colProps:{span:24},formItemProps:{slots:{default:s=>o("div",{class:"w-[100%] flex"},[o(b,{modelValue:s.code,"onUpdate:modelValue":c=>s.code=c,placeholder:"请输入验证码"},null)])}}},{field:"register",colProps:{span:24},formItemProps:{slots:{default:()=>o(I,null,[o("div",{class:"w-[100%]"},[o(h,{type:"primary",class:"w-[100%]",loading:d.value,onClick:P},{default:()=>[f("注册")]})]),o("div",{class:"w-[100%] mt-15px"},[o(h,{class:"w-[100%]",onClick:l},{default:()=>[f("已有账号?去登录")]})])])}}}]),e={username:[t()],password:[t()],check_password:[t()],code:[t()]},l=()=>{r("to-login")},d=C(!1),P=()=>m(this,null,function*(){const s=yield i();s==null||s.validate(c=>m(this,null,function*(){if(c)try{d.value=!0,l()}finally{d.value=!1}}))});return(s,c)=>(y(),B(w(F),{schema:a,rules:e,"label-position":"top","hide-required-asterisk":"",size:"large",class:"dark:border-1 dark:border-[var(--el-border-color)] dark:border-solid",onRegister:w(p)},null,8,["schema","onRegister"]))}});export{D as _}; diff --git a/assets/Request-Cz1XJXHj.js b/assets/Request-9HlOJKyN.js similarity index 92% rename from assets/Request-Cz1XJXHj.js rename to assets/Request-9HlOJKyN.js index 13e38bcc..9d922f6b 100644 --- a/assets/Request-Cz1XJXHj.js +++ b/assets/Request-9HlOJKyN.js @@ -1 +1 @@ -var q=(k,e,o)=>new Promise((f,i)=>{var m=u=>{try{d(o.next(u))}catch(p){i(p)}},y=u=>{try{d(o.throw(u))}catch(p){i(p)}},d=u=>u.done?f(u.value):Promise.resolve(u.value).then(m,y);d((o=o.apply(k,e)).next())});import{_ as A}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as c}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{r}from"./index-CA0d6hyI.js";/* empty css */import{q as B}from"./element-plus-6v3c1uXT.js";import{q as E,r as N,t as S,T,S as a,x as V,X as D,P as l,u as s,W as n}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const $=()=>r.get({url:"/mock/request/1"}),P=()=>r.get({url:"/mock/request/2"}),W=()=>r.get({url:"/mock/request/3"}),X=()=>r.get({url:"/mock/request/4"}),b=()=>r.get({url:"/mock/request/5"}),j=()=>r.get({url:"/mock/request/expired"}),Q=E({__name:"Request",setup(k){const e=N(new Set),o=()=>q(this,null,function*(){if(!e.value.has("/request/1"))try{e.value.add("/request/1");const t=yield $()}catch(t){}finally{e.value.delete("/request/1")}}),f=()=>q(this,null,function*(){if(!e.value.has("/request/2"))try{e.value.add("/request/2");const t=yield P()}catch(t){}finally{e.value.delete("/request/2")}}),i=()=>q(this,null,function*(){if(!e.value.has("/request/3"))try{e.value.add("/request/3");const t=yield W()}catch(t){}finally{e.value.delete("/request/3")}}),m=()=>q(this,null,function*(){if(!e.value.has("/request/4"))try{e.value.add("/request/4");const t=yield X()}catch(t){}finally{e.value.delete("/request/4")}}),y=()=>q(this,null,function*(){if(!e.value.has("/request/5"))try{e.value.add("/request/5");const t=yield b()}catch(t){}finally{e.value.delete("/request/5")}}),d=()=>{o(),f(),i(),m(),y()},u=()=>{r.cancelAllRequest(),e.value.clear()},p=t=>{const v=[];return t.forEach(w=>{v.push(w)}),v},_=()=>{if(e.value.has("/request/1")){r.cancelRequest("/request/1"),e.value.delete("/request/1");return}o()},g=()=>{if(e.value.has("/request/2")){r.cancelRequest("/request/2"),e.value.delete("/request/2");return}f()},h=()=>{if(e.value.has("/request/3")){r.cancelRequest("/request/3"),e.value.delete("/request/3");return}i()},R=()=>{if(e.value.has("/request/4")){r.cancelRequest("/request/4"),e.value.delete("/request/4");return}m()},C=()=>{if(e.value.has("/request/5")){r.cancelRequest("/request/5"),e.value.delete("/request/5");return}y()},x=()=>{j()};return(t,v)=>(S(),T(s(A),{title:"请求"},{default:a(()=>[V("p",null,"正在请求的接口:"+D(p(e.value)),1),l(s(c),{type:"primary",onClick:_},{default:a(()=>[n("请求/取消request1")]),_:1}),l(s(c),{type:"primary",onClick:g},{default:a(()=>[n("请求/取消request2")]),_:1}),l(s(c),{type:"primary",onClick:h},{default:a(()=>[n("请求/取消request3")]),_:1}),l(s(c),{type:"primary",onClick:R},{default:a(()=>[n("请求/取消request4")]),_:1}),l(s(c),{type:"primary",onClick:C},{default:a(()=>[n("请求/取消request5")]),_:1}),l(s(c),{type:"primary",onClick:d},{default:a(()=>[n("发送五个请求")]),_:1}),l(s(c),{type:"primary",onClick:u},{default:a(()=>[n("关闭所有请求")]),_:1}),l(s(B)),l(s(c),{type:"primary",onClick:x},{default:a(()=>[n("token过期")]),_:1})]),_:1}))}});export{Q as default}; +var q=(k,e,o)=>new Promise((f,i)=>{var m=u=>{try{d(o.next(u))}catch(p){i(p)}},y=u=>{try{d(o.throw(u))}catch(p){i(p)}},d=u=>u.done?f(u.value):Promise.resolve(u.value).then(m,y);d((o=o.apply(k,e)).next())});import{_ as A}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as c}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{r}from"./index-B5z15nYm.js";/* empty css */import{q as B}from"./element-plus-6v3c1uXT.js";import{q as E,r as N,t as S,T,S as a,x as V,X as D,P as l,u as s,W as n}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const $=()=>r.get({url:"/mock/request/1"}),P=()=>r.get({url:"/mock/request/2"}),W=()=>r.get({url:"/mock/request/3"}),X=()=>r.get({url:"/mock/request/4"}),b=()=>r.get({url:"/mock/request/5"}),j=()=>r.get({url:"/mock/request/expired"}),Q=E({__name:"Request",setup(k){const e=N(new Set),o=()=>q(this,null,function*(){if(!e.value.has("/request/1"))try{e.value.add("/request/1");const t=yield $()}catch(t){}finally{e.value.delete("/request/1")}}),f=()=>q(this,null,function*(){if(!e.value.has("/request/2"))try{e.value.add("/request/2");const t=yield P()}catch(t){}finally{e.value.delete("/request/2")}}),i=()=>q(this,null,function*(){if(!e.value.has("/request/3"))try{e.value.add("/request/3");const t=yield W()}catch(t){}finally{e.value.delete("/request/3")}}),m=()=>q(this,null,function*(){if(!e.value.has("/request/4"))try{e.value.add("/request/4");const t=yield X()}catch(t){}finally{e.value.delete("/request/4")}}),y=()=>q(this,null,function*(){if(!e.value.has("/request/5"))try{e.value.add("/request/5");const t=yield b()}catch(t){}finally{e.value.delete("/request/5")}}),d=()=>{o(),f(),i(),m(),y()},u=()=>{r.cancelAllRequest(),e.value.clear()},p=t=>{const v=[];return t.forEach(w=>{v.push(w)}),v},_=()=>{if(e.value.has("/request/1")){r.cancelRequest("/request/1"),e.value.delete("/request/1");return}o()},g=()=>{if(e.value.has("/request/2")){r.cancelRequest("/request/2"),e.value.delete("/request/2");return}f()},h=()=>{if(e.value.has("/request/3")){r.cancelRequest("/request/3"),e.value.delete("/request/3");return}i()},R=()=>{if(e.value.has("/request/4")){r.cancelRequest("/request/4"),e.value.delete("/request/4");return}m()},C=()=>{if(e.value.has("/request/5")){r.cancelRequest("/request/5"),e.value.delete("/request/5");return}y()},x=()=>{j()};return(t,v)=>(S(),T(s(A),{title:"请求"},{default:a(()=>[V("p",null,"正在请求的接口:"+D(p(e.value)),1),l(s(c),{type:"primary",onClick:_},{default:a(()=>[n("请求/取消request1")]),_:1}),l(s(c),{type:"primary",onClick:g},{default:a(()=>[n("请求/取消request2")]),_:1}),l(s(c),{type:"primary",onClick:h},{default:a(()=>[n("请求/取消request3")]),_:1}),l(s(c),{type:"primary",onClick:R},{default:a(()=>[n("请求/取消request4")]),_:1}),l(s(c),{type:"primary",onClick:C},{default:a(()=>[n("请求/取消request5")]),_:1}),l(s(c),{type:"primary",onClick:d},{default:a(()=>[n("发送五个请求")]),_:1}),l(s(c),{type:"primary",onClick:u},{default:a(()=>[n("关闭所有请求")]),_:1}),l(s(B)),l(s(c),{type:"primary",onClick:x},{default:a(()=>[n("token过期")]),_:1})]),_:1}))}});export{Q as default}; diff --git a/assets/Role-AGhOb_l3.js b/assets/Role-Dyb9E-YN.js similarity index 73% rename from assets/Role-AGhOb_l3.js rename to assets/Role-Dyb9E-YN.js index a1c011c0..ef59e13d 100644 --- a/assets/Role-AGhOb_l3.js +++ b/assets/Role-Dyb9E-YN.js @@ -1 +1 @@ -var h=(T,g,i)=>new Promise((y,d)=>{var b=l=>{try{c(i.next(l))}catch(p){d(p)}},k=l=>{try{c(i.throw(l))}catch(p){d(p)}},c=l=>l.done?y(l.value):Promise.resolve(l.value).then(b,k);c((i=i.apply(T,g)).next())});import{g as E}from"./index-CxKCqm97.js";import{u as F}from"./useTable-BTK3WtdF.js";import{_ as P}from"./Table.vue_vue_type_script_lang-DOZk-BCG.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as q}from"./Search.vue_vue_type_script_setup_true_lang-CJ6bt3cN.js";import{_ as I}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as K}from"./Write.vue_vue_type_script_setup_true_lang-PCxcjRLC.js";import{_ as M}from"./Detail.vue_vue_type_script_setup_true_lang-BBBBUkw6.js";import{_ as Q}from"./Dialog.vue_vue_type_style_index_0_lang-BLWveiSq.js";import{_ as n}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{C as U}from"./element-plus-6v3c1uXT.js";import{q as W,K as S,P as e,Q as x,W as m,r,t as v,v as Y,S as u,u as a,x as j,T as R,Y as z}from"./vue-chunks-DOWhatC1.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css */import"./Icon-Bwi9LaBZ.js";/* empty css */import"./index-DlX4pwja.js";import"./Form-DJ57xbBt.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";import"./useForm-CbOF_UB2.js";import"./useIcon-Bk4x_lwM.js";import"./useValidator-Nt61Jv1p.js";import"./index-CRNzobZS.js";import"./tree-Dgaev6Pi.js";import"./Descriptions-BYYy1K3P.js";const G={class:"mb-10px"},It=W({__name:"Role",setup(T){const{tableRegister:g,tableState:i,tableMethods:y}=F({fetchDataApi:()=>h(this,null,function*(){const t=yield E();return{list:t.data.list||[],total:t.data.total}})}),{dataList:d,loading:b,total:k}=i,{getList:c}=y,l=S([{field:"index",label:"序号",type:"index"},{field:"roleName",label:"角色名称"},{field:"status",label:"状态",slots:{default:t=>e(x,null,[e(U,{type:t.row.status===0?"danger":"success"},{default:()=>[t.row.status===1?"启用":"禁用"]})])}},{field:"createTime",label:"创建时间"},{field:"remark",label:"备注"},{field:"action",label:"操作",width:240,slots:{default:t=>{const o=t.row;return e(x,null,[e(n,{type:"primary",onClick:()=>N(o,"edit")},{default:()=>[m("编辑")]}),e(n,{type:"success",onClick:()=>N(o,"detail")},{default:()=>[m("详情")]}),e(n,{type:"danger"},{default:()=>[m("删除")]})])}}}]),p=S([{field:"roleName",label:"角色名称",component:"Input"}]),A=r({}),V=t=>{A.value=t,c()},s=r(!1),w=r(""),f=r(),_=r(""),$=r(),C=r(!1),N=(t,o)=>{w.value=o==="edit"?"编辑":"详情",_.value=o,f.value=t,s.value=!0},L=()=>{w.value="新增",f.value=void 0,s.value=!0,_.value=""},D=()=>h(this,null,function*(){const t=a($);(yield t==null?void 0:t.submit())&&(C.value=!0,setTimeout(()=>{C.value=!1,s.value=!1},1e3))});return(t,o)=>(v(),Y(x,null,[e(a(I),null,{default:u(()=>[e(a(q),{schema:p,onReset:V,onSearch:V},null,8,["schema"]),j("div",G,[e(a(n),{type:"primary",onClick:L},{default:u(()=>[m("新增")]),_:1})]),e(a(P),{columns:l,"default-expand-all":"","node-key":"id",data:a(d),loading:a(b),pagination:{total:a(k)},onRegister:a(g)},null,8,["columns","data","loading","pagination","onRegister"])]),_:1}),e(a(Q),{modelValue:s.value,"onUpdate:modelValue":o[1]||(o[1]=B=>s.value=B),title:w.value},{footer:u(()=>[_.value!=="detail"?(v(),R(a(n),{key:0,type:"primary",loading:C.value,onClick:D},{default:u(()=>[m(" 保存 ")]),_:1},8,["loading"])):z("",!0),e(a(n),{onClick:o[0]||(o[0]=B=>s.value=!1)},{default:u(()=>[m("关闭")]),_:1})]),default:u(()=>[_.value!=="detail"?(v(),R(K,{key:0,ref_key:"writeRef",ref:$,"current-row":f.value},null,8,["current-row"])):(v(),R(M,{key:1,"current-row":f.value},null,8,["current-row"]))]),_:1},8,["modelValue","title"])],64))}});export{It as default}; +var h=(T,g,i)=>new Promise((y,d)=>{var b=l=>{try{c(i.next(l))}catch(p){d(p)}},k=l=>{try{c(i.throw(l))}catch(p){d(p)}},c=l=>l.done?y(l.value):Promise.resolve(l.value).then(b,k);c((i=i.apply(T,g)).next())});import{g as E}from"./index-CA5sn5Y0.js";import{u as F}from"./useTable-B7CCRTD1.js";import{_ as P}from"./Table.vue_vue_type_script_lang-BzBmZLp9.js";import"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as q}from"./Search.vue_vue_type_script_setup_true_lang-ClF9XpoI.js";import{_ as I}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as K}from"./Write.vue_vue_type_script_setup_true_lang-Ce1mcWoJ.js";import{_ as M}from"./Detail.vue_vue_type_script_setup_true_lang-Cjk_uBWB.js";import{_ as Q}from"./Dialog.vue_vue_type_style_index_0_lang-DkCU3loB.js";import{_ as n}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{C as U}from"./element-plus-6v3c1uXT.js";import{q as W,K as S,P as e,Q as x,W as m,r,t as v,v as Y,S as u,u as a,x as j,T as R,Y as z}from"./vue-chunks-DOWhatC1.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css */import"./Icon-B-0CON7P.js";/* empty css */import"./index-2gFf0KW4.js";import"./Form-B3fdtaFM.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";import"./useForm-BIADJKAv.js";import"./useIcon-Dzh8BHEZ.js";import"./useValidator-Nt61Jv1p.js";import"./index-BYcZ39zx.js";import"./tree-Dgaev6Pi.js";import"./Descriptions-CnAOhWOB.js";const G={class:"mb-10px"},It=W({__name:"Role",setup(T){const{tableRegister:g,tableState:i,tableMethods:y}=F({fetchDataApi:()=>h(this,null,function*(){const t=yield E();return{list:t.data.list||[],total:t.data.total}})}),{dataList:d,loading:b,total:k}=i,{getList:c}=y,l=S([{field:"index",label:"序号",type:"index"},{field:"roleName",label:"角色名称"},{field:"status",label:"状态",slots:{default:t=>e(x,null,[e(U,{type:t.row.status===0?"danger":"success"},{default:()=>[t.row.status===1?"启用":"禁用"]})])}},{field:"createTime",label:"创建时间"},{field:"remark",label:"备注"},{field:"action",label:"操作",width:240,slots:{default:t=>{const o=t.row;return e(x,null,[e(n,{type:"primary",onClick:()=>N(o,"edit")},{default:()=>[m("编辑")]}),e(n,{type:"success",onClick:()=>N(o,"detail")},{default:()=>[m("详情")]}),e(n,{type:"danger"},{default:()=>[m("删除")]})])}}}]),p=S([{field:"roleName",label:"角色名称",component:"Input"}]),A=r({}),V=t=>{A.value=t,c()},s=r(!1),w=r(""),f=r(),_=r(""),$=r(),C=r(!1),N=(t,o)=>{w.value=o==="edit"?"编辑":"详情",_.value=o,f.value=t,s.value=!0},L=()=>{w.value="新增",f.value=void 0,s.value=!0,_.value=""},D=()=>h(this,null,function*(){const t=a($);(yield t==null?void 0:t.submit())&&(C.value=!0,setTimeout(()=>{C.value=!1,s.value=!1},1e3))});return(t,o)=>(v(),Y(x,null,[e(a(I),null,{default:u(()=>[e(a(q),{schema:p,onReset:V,onSearch:V},null,8,["schema"]),j("div",G,[e(a(n),{type:"primary",onClick:L},{default:u(()=>[m("新增")]),_:1})]),e(a(P),{columns:l,"default-expand-all":"","node-key":"id",data:a(d),loading:a(b),pagination:{total:a(k)},onRegister:a(g)},null,8,["columns","data","loading","pagination","onRegister"])]),_:1}),e(a(Q),{modelValue:s.value,"onUpdate:modelValue":o[1]||(o[1]=B=>s.value=B),title:w.value},{footer:u(()=>[_.value!=="detail"?(v(),R(a(n),{key:0,type:"primary",loading:C.value,onClick:D},{default:u(()=>[m(" 保存 ")]),_:1},8,["loading"])):z("",!0),e(a(n),{onClick:o[0]||(o[0]=B=>s.value=!1)},{default:u(()=>[m("关闭")]),_:1})]),default:u(()=>[_.value!=="detail"?(v(),R(K,{key:0,ref_key:"writeRef",ref:$,"current-row":f.value},null,8,["current-row"])):(v(),R(M,{key:1,"current-row":f.value},null,8,["current-row"]))]),_:1},8,["modelValue","title"])],64))}});export{It as default}; diff --git a/assets/Search-DilF6krF.js b/assets/Search-1xjpGPv-.js similarity index 85% rename from assets/Search-DilF6krF.js rename to assets/Search-1xjpGPv-.js index da798893..1b6dca86 100644 --- a/assets/Search-DilF6krF.js +++ b/assets/Search-1xjpGPv-.js @@ -1 +1 @@ -var d=(v,h,i)=>new Promise((p,e)=>{var l=m=>{try{b(i.next(m))}catch(g){e(g)}},a=m=>{try{b(i.throw(m))}catch(g){e(g)}},b=m=>m.done?p(m.value):Promise.resolve(m.value).then(l,a);b((i=i.apply(v,h)).next())});import{_ as P}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as A}from"./Search.vue_vue_type_script_setup_true_lang-CJ6bt3cN.js";import{_ as r}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{g as B}from"./index-DxxgNbTS.js";import{r as f,n as M,u as t,q as N,K as O,t as q,v as E,P as o,S as n,W as c,Q as J}from"./vue-chunks-DOWhatC1.js";import{_ as K}from"./Icon-Bwi9LaBZ.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Form-DJ57xbBt.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */import"./useForm-CbOF_UB2.js";import"./useIcon-Bk4x_lwM.js";const Q=()=>{const v=f(),h=e=>{v.value=e},i=()=>d(void 0,null,function*(){yield M();const e=t(v);return e||console.error("The Search is not registered. Please use the register method to register"),e});return{searchRegister:h,searchMethods:{setProps:(...l)=>d(void 0,[...l],function*(e={}){const a=yield i();a==null||a.setProps(e),e.model&&(a==null||a.setValues(e.model))}),setValues:e=>d(void 0,null,function*(){const l=yield i();l==null||l.setValues(e)}),setSchema:e=>d(void 0,null,function*(){const l=yield i();l==null||l.setSchema(e)}),addSchema:(e,l)=>d(void 0,null,function*(){const a=yield i();a==null||a.addSchema(e,l)}),delSchema:e=>d(void 0,null,function*(){const l=yield i();l==null||l.delSchema(e)}),getFormData:()=>d(void 0,null,function*(){const e=yield i();return e==null?void 0:e.getFormData()})}}},W=N({__name:"Search",setup(v){const{searchRegister:h,searchMethods:i}=Q(),{setSchema:p,setProps:e,setValues:l,getFormData:a}=i,b=[{value:"1",label:"Level one 1",children:[{value:"1-1",label:"Level two 1-1",children:[{value:"1-1-1",label:"Level three 1-1-1"}]}]},{value:"2",label:"Level one 2",children:[{value:"2-1",label:"Level two 2-1",children:[{value:"2-1-1",label:"Level three 2-1-1"}]},{value:"2-2",label:"Level two 2-2",children:[{value:"2-2-1",label:"Level three 2-2-1"}]}]},{value:"3",label:"Level one 3",children:[{value:"3-1",label:"Level two 3-1",children:[{value:"3-1-1",label:"Level three 3-1-1"}]},{value:"3-2",label:"Level two 3-2",children:[{value:"3-2-1",label:"Level three 3-2-1"}]}]}],m=()=>new Promise(s=>{setTimeout(()=>{s(b)},3e3)}),g=O([{field:"field1",label:"输入框",component:"Input"},{field:"field2",label:"选择器",component:"Select",componentProps:{options:[{label:"option1",value:"1"},{label:"option2",value:"2"}],on:{change:s=>{}}}},{field:"field3",label:"单选框",component:"RadioGroup",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}]}},{field:"field5",component:"DatePicker",label:"日期选择器",componentProps:{type:"date"}},{field:"field6",component:"TimeSelect",label:"时间选择"},{field:"field8",label:"输入框",component:"Input"},{field:"field9",label:"输入框",component:"Input"},{field:"field10",label:"输入框",component:"Input"},{field:"field11",label:"输入框",component:"Input"},{field:"field12",label:"输入框",component:"Input"},{field:"field13",label:"输入框",component:"Input"},{field:"field14",label:"输入框",component:"Input"},{field:"field15",label:"输入框",component:"Input"},{field:"field16",label:"输入框",component:"Input"},{field:"field17",label:"输入框",component:"Input"},{field:"field18",label:"输入框",component:"Input"},{field:"field19",label:"树形选择器",component:"TreeSelect",optionApi:()=>d(this,null,function*(){return yield m()})}]),R=f(!1),k=s=>{e({isCol:s})},_=f("inline"),x=()=>{_.value=t(_)==="inline"?"bottom":"inline"},C=f("left"),w=s=>{_.value="bottom",C.value=s},T=()=>d(this,null,function*(){const s=yield B();s&&p([{field:"field2",path:"componentProps.options",value:s.data}])}),I=s=>d(this,null,function*(){yield a()}),D=()=>{p([{field:"field3",path:"remove",value:!0}])},$=()=>{p([{field:"field3",path:"remove",value:!1}])},V=()=>{l({field1:"Joy"})},L=f(!1),F=()=>{L.value=!0,setTimeout(()=>{L.value=!1},2e3)},y=f(!1),G=()=>{y.value=!0,setTimeout(()=>{y.value=!1},2e3)};return(s,u)=>(q(),E(J,null,[o(t(P),{title:"查询 操作",style:{"margin-bottom":"20px"}},{default:n(()=>[o(t(r),{onClick:u[0]||(u[0]=S=>k(!0))},{default:n(()=>[c("栅格")]),_:1}),o(t(r),{onClick:u[1]||(u[1]=S=>k(!1))},{default:n(()=>[c(" 还原 栅格 ")]),_:1}),o(t(r),{onClick:x},{default:n(()=>[c(" 按钮 位置 ")]),_:1}),o(t(r),{onClick:u[2]||(u[2]=S=>w("left"))},{default:n(()=>[c(" 底部 位置-左 ")]),_:1}),o(t(r),{onClick:u[3]||(u[3]=S=>w("center"))},{default:n(()=>[c(" 底部 位置-中 ")]),_:1}),o(t(r),{onClick:u[4]||(u[4]=S=>w("right"))},{default:n(()=>[c(" 底部 位置-右 ")]),_:1}),o(t(r),{onClick:T},{default:n(()=>[c(" 选择器 动态选项 ")]),_:1}),o(t(r),{onClick:D},{default:n(()=>[c("删除单选框")]),_:1}),o(t(r),{onClick:$},{default:n(()=>[c("还原单选框")]),_:1}),o(t(r),{onClick:V},{default:n(()=>[c("设置值")]),_:1}),o(t(r),{onClick:F},{default:n(()=>[c(" 查询 加载中 ")]),_:1}),o(t(r),{onClick:G},{default:n(()=>[c(" 重置 加载中 ")]),_:1})]),_:1}),o(t(P),{title:"查询",message:"基于 Form 组件二次封装,实现查询、重置功能"},{default:n(()=>[o(t(A),{schema:g,"is-col":R.value,layout:_.value,"button-position":C.value,"search-loading":L.value,"reset-loading":y.value,"show-expand":"","expand-field":"field6",onSearch:I,onReset:I,onRegister:t(h)},null,8,["schema","is-col","layout","button-position","search-loading","reset-loading","onRegister"])]),_:1})],64))}}),ye=K(W,[["__scopeId","data-v-536165e5"]]);export{ye as default}; +var d=(v,h,i)=>new Promise((p,e)=>{var l=m=>{try{b(i.next(m))}catch(g){e(g)}},a=m=>{try{b(i.throw(m))}catch(g){e(g)}},b=m=>m.done?p(m.value):Promise.resolve(m.value).then(l,a);b((i=i.apply(v,h)).next())});import{_ as P}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as A}from"./Search.vue_vue_type_script_setup_true_lang-ClF9XpoI.js";import{_ as r}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{g as B}from"./index-Dt71D4p1.js";import{r as f,n as M,u as t,q as N,K as O,t as q,v as E,P as o,S as n,W as c,Q as J}from"./vue-chunks-DOWhatC1.js";import{_ as K}from"./Icon-B-0CON7P.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */import"./Form-B3fdtaFM.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */import"./useForm-BIADJKAv.js";import"./useIcon-Dzh8BHEZ.js";const Q=()=>{const v=f(),h=e=>{v.value=e},i=()=>d(void 0,null,function*(){yield M();const e=t(v);return e||console.error("The Search is not registered. Please use the register method to register"),e});return{searchRegister:h,searchMethods:{setProps:(...l)=>d(void 0,[...l],function*(e={}){const a=yield i();a==null||a.setProps(e),e.model&&(a==null||a.setValues(e.model))}),setValues:e=>d(void 0,null,function*(){const l=yield i();l==null||l.setValues(e)}),setSchema:e=>d(void 0,null,function*(){const l=yield i();l==null||l.setSchema(e)}),addSchema:(e,l)=>d(void 0,null,function*(){const a=yield i();a==null||a.addSchema(e,l)}),delSchema:e=>d(void 0,null,function*(){const l=yield i();l==null||l.delSchema(e)}),getFormData:()=>d(void 0,null,function*(){const e=yield i();return e==null?void 0:e.getFormData()})}}},W=N({__name:"Search",setup(v){const{searchRegister:h,searchMethods:i}=Q(),{setSchema:p,setProps:e,setValues:l,getFormData:a}=i,b=[{value:"1",label:"Level one 1",children:[{value:"1-1",label:"Level two 1-1",children:[{value:"1-1-1",label:"Level three 1-1-1"}]}]},{value:"2",label:"Level one 2",children:[{value:"2-1",label:"Level two 2-1",children:[{value:"2-1-1",label:"Level three 2-1-1"}]},{value:"2-2",label:"Level two 2-2",children:[{value:"2-2-1",label:"Level three 2-2-1"}]}]},{value:"3",label:"Level one 3",children:[{value:"3-1",label:"Level two 3-1",children:[{value:"3-1-1",label:"Level three 3-1-1"}]},{value:"3-2",label:"Level two 3-2",children:[{value:"3-2-1",label:"Level three 3-2-1"}]}]}],m=()=>new Promise(s=>{setTimeout(()=>{s(b)},3e3)}),g=O([{field:"field1",label:"输入框",component:"Input"},{field:"field2",label:"选择器",component:"Select",componentProps:{options:[{label:"option1",value:"1"},{label:"option2",value:"2"}],on:{change:s=>{}}}},{field:"field3",label:"单选框",component:"RadioGroup",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}]}},{field:"field5",component:"DatePicker",label:"日期选择器",componentProps:{type:"date"}},{field:"field6",component:"TimeSelect",label:"时间选择"},{field:"field8",label:"输入框",component:"Input"},{field:"field9",label:"输入框",component:"Input"},{field:"field10",label:"输入框",component:"Input"},{field:"field11",label:"输入框",component:"Input"},{field:"field12",label:"输入框",component:"Input"},{field:"field13",label:"输入框",component:"Input"},{field:"field14",label:"输入框",component:"Input"},{field:"field15",label:"输入框",component:"Input"},{field:"field16",label:"输入框",component:"Input"},{field:"field17",label:"输入框",component:"Input"},{field:"field18",label:"输入框",component:"Input"},{field:"field19",label:"树形选择器",component:"TreeSelect",optionApi:()=>d(this,null,function*(){return yield m()})}]),R=f(!1),k=s=>{e({isCol:s})},_=f("inline"),x=()=>{_.value=t(_)==="inline"?"bottom":"inline"},C=f("left"),w=s=>{_.value="bottom",C.value=s},T=()=>d(this,null,function*(){const s=yield B();s&&p([{field:"field2",path:"componentProps.options",value:s.data}])}),I=s=>d(this,null,function*(){yield a()}),D=()=>{p([{field:"field3",path:"remove",value:!0}])},$=()=>{p([{field:"field3",path:"remove",value:!1}])},V=()=>{l({field1:"Joy"})},L=f(!1),F=()=>{L.value=!0,setTimeout(()=>{L.value=!1},2e3)},y=f(!1),G=()=>{y.value=!0,setTimeout(()=>{y.value=!1},2e3)};return(s,u)=>(q(),E(J,null,[o(t(P),{title:"查询 操作",style:{"margin-bottom":"20px"}},{default:n(()=>[o(t(r),{onClick:u[0]||(u[0]=S=>k(!0))},{default:n(()=>[c("栅格")]),_:1}),o(t(r),{onClick:u[1]||(u[1]=S=>k(!1))},{default:n(()=>[c(" 还原 栅格 ")]),_:1}),o(t(r),{onClick:x},{default:n(()=>[c(" 按钮 位置 ")]),_:1}),o(t(r),{onClick:u[2]||(u[2]=S=>w("left"))},{default:n(()=>[c(" 底部 位置-左 ")]),_:1}),o(t(r),{onClick:u[3]||(u[3]=S=>w("center"))},{default:n(()=>[c(" 底部 位置-中 ")]),_:1}),o(t(r),{onClick:u[4]||(u[4]=S=>w("right"))},{default:n(()=>[c(" 底部 位置-右 ")]),_:1}),o(t(r),{onClick:T},{default:n(()=>[c(" 选择器 动态选项 ")]),_:1}),o(t(r),{onClick:D},{default:n(()=>[c("删除单选框")]),_:1}),o(t(r),{onClick:$},{default:n(()=>[c("还原单选框")]),_:1}),o(t(r),{onClick:V},{default:n(()=>[c("设置值")]),_:1}),o(t(r),{onClick:F},{default:n(()=>[c(" 查询 加载中 ")]),_:1}),o(t(r),{onClick:G},{default:n(()=>[c(" 重置 加载中 ")]),_:1})]),_:1}),o(t(P),{title:"查询",message:"基于 Form 组件二次封装,实现查询、重置功能"},{default:n(()=>[o(t(A),{schema:g,"is-col":R.value,layout:_.value,"button-position":C.value,"search-loading":L.value,"reset-loading":y.value,"show-expand":"","expand-field":"field6",onSearch:I,onReset:I,onRegister:t(h)},null,8,["schema","is-col","layout","button-position","search-loading","reset-loading","onRegister"])]),_:1})],64))}}),ye=K(W,[["__scopeId","data-v-536165e5"]]);export{ye as default}; diff --git a/assets/Search.vue_vue_type_script_setup_true_lang-CJ6bt3cN.js b/assets/Search.vue_vue_type_script_setup_true_lang-ClF9XpoI.js similarity index 96% rename from assets/Search.vue_vue_type_script_setup_true_lang-CJ6bt3cN.js rename to assets/Search.vue_vue_type_script_setup_true_lang-ClF9XpoI.js index 966ff3c8..4f8087ab 100644 --- a/assets/Search.vue_vue_type_script_setup_true_lang-CJ6bt3cN.js +++ b/assets/Search.vue_vue_type_script_setup_true_lang-ClF9XpoI.js @@ -1 +1 @@ -var K=Object.defineProperty;var A=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var T=(t,r,a)=>r in t?K(t,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[r]=a,W=(t,r)=>{for(var a in r||(r={}))U.call(r,a)&&T(t,a,r[a]);if(A)for(var a of A(r))Z.call(r,a)&&T(t,a,r[a]);return t};var f=(t,r,a)=>new Promise((p,d)=>{var u=h=>{try{g(a.next(h))}catch(w){d(w)}},m=h=>{try{g(a.throw(h))}catch(w){d(w)}},g=h=>h.done?p(h.value):Promise.resolve(h.value).then(u,m);g((a=a.apply(t,r)).next())});import{i as ee,F as te}from"./Form-DJ57xbBt.js";import{p as i,m as D,n as oe,o as se}from"./index-CA0d6hyI.js";import{u as ae}from"./useForm-CbOF_UB2.js";import{_ as R}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{u as V}from"./useIcon-Bk4x_lwM.js";import{q as $,t as b,v as O,T as L,S as F,W as x,u as n,Y as S,X as ne,Q as z,r as v,d as C,P as y,w as ie,o as le,V as re}from"./vue-chunks-DOWhatC1.js";import{d as ce,s as de}from"./element-plus-6v3c1uXT.js";const q=$({__name:"ActionButton",props:{showSearch:i.bool.def(!0),showReset:i.bool.def(!0),showExpand:i.bool.def(!1),visible:i.bool.def(!0),searchLoading:i.bool.def(!1),resetLoading:i.bool.def(!1)},emits:["search","reset","expand"],setup(t,{emit:r}){const a=r,p=()=>{a("search")},d=()=>{a("reset")},u=()=>{a("expand")};return(m,g)=>(b(),O(z,null,[t.showSearch?(b(),L(n(R),{key:0,type:"primary",loading:t.searchLoading,icon:n(V)({icon:"ep:search"}),onClick:p},{default:F(()=>[x(" 查询 ")]),_:1},8,["loading","icon"])):S("",!0),t.showReset?(b(),L(n(R),{key:1,loading:t.resetLoading,plain:"",icon:n(V)({icon:"ep:refresh-right"}),onClick:d},{default:F(()=>[x(" 重置 ")]),_:1},8,["loading","icon"])):S("",!0),t.showExpand?(b(),L(n(R),{key:2,icon:n(V)({icon:t.visible?"ep:arrow-up":"ep:arrow-down"}),text:"",onClick:u},{default:F(()=>[x(ne(t.visible?"收起":"展开"),1)]),_:1},8,["icon"])):S("",!0)],64))}}),ke=$({__name:"Search",props:{schema:{type:Array,default:()=>[]},isCol:i.bool.def(!1),labelWidth:i.oneOfType([String,Number]).def("auto"),layout:i.string.validate(t=>["inline","bottom"].includes(t)).def("inline"),buttonPosition:i.string.validate(t=>["left","center","right"].includes(t)).def("center"),showSearch:i.bool.def(!0),showReset:i.bool.def(!0),showExpand:i.bool.def(!1),expandField:i.string.def(""),inline:i.bool.def(!0),removeNoValueItem:i.bool.def(!0),model:{type:Object,default:()=>({})},searchLoading:i.bool.def(!1),resetLoading:i.bool.def(!1)},emits:["search","reset","register","validate"],setup(t,{expose:r,emit:a}){const p=t,d=a,u=v(!0),m=v(p.model),g=C(()=>{const e=n(c);let o=ce(e.schema);if(e.showExpand&&e.expandField&&!n(u)){const s=D(o,l=>l.field===e.expandField);o.map((l,J)=>(J>=s?l.hidden=!0:l.hidden=!1,l))}return e.layout==="inline"&&(o=o.concat([{field:"action",formItemProps:{labelWidth:"0px",slots:{default:()=>y("div",null,[y(q,{showSearch:e.showSearch,showReset:e.showReset,showExpand:e.showExpand,searchLoading:e.searchLoading,resetLoading:e.resetLoading,visible:u.value,onExpand:M,onReset:I,onSearch:B},null)]),label:()=>y("span",null,[x(" ")])}}}])),o}),{formRegister:h,formMethods:w}=ae(),{getElFormExpose:k,getFormData:j,getFormExpose:Q}=w,X=v({}),E=v({}),c=C(()=>{const e=W({},p);return Object.assign(e,n(E)),e}),Y=(e={})=>{E.value=Object.assign(n(E),e),X.value=e},P=v([]);ie(()=>n(g),(...o)=>f(this,[...o],function*(e=[]){m.value=ee(e,n(m)),P.value=e}),{immediate:!0,deep:!0});const N=()=>f(this,null,function*(){const e=yield j();return n(c).removeNoValueItem?Object.keys(e).reduce((o,s)=>{const l=e[s];return oe(l)||(se(l)?Object.keys(l).length>0&&(o[s]=l):o[s]=l),o},{}):e}),B=()=>f(this,null,function*(){const e=yield k();yield e==null?void 0:e.validate(o=>f(this,null,function*(){if(o){const s=yield N();d("search",s)}}))}),I=()=>f(this,null,function*(){const e=yield k();e==null||e.resetFields();const o=yield N();d("reset",o)}),G=C(()=>({textAlign:n(c).buttonPosition})),M=()=>f(this,null,function*(){u.value=!n(u)}),_={getElFormExpose:k,setProps:Y,setSchema:e=>{const{schema:o}=n(c);for(const s of o)for(const l of e)s.field===l.field&&de(s,l.path,l.value)},setValues:(...o)=>f(this,[...o],function*(e={}){m.value=Object.assign(p.model,n(m),e);const s=yield Q();s==null||s.setValues(e)}),delSchema:e=>{const{schema:o}=n(c),s=D(o,l=>l.field===e);s>-1&&o.splice(s,1)},addSchema:(e,o)=>{const{schema:s}=n(c);if(o!==void 0){s.splice(o,0,e);return}s.push(e)},getFormData:j};le(()=>{d("register",_)}),r(_);const H=(e,o,s)=>{d("validate",e,o,s)};return(e,o)=>(b(),O(z,null,[y(n(te),{model:m.value,"is-custom":!1,"label-width":c.value.labelWidth,"hide-required-asterisk":"",inline:c.value.inline,"is-col":c.value.isCol,schema:P.value,onRegister:n(h),onValidate:H},null,8,["model","label-width","inline","is-col","schema","onRegister"]),t.layout==="bottom"?(b(),O("div",{key:0,style:re(G.value)},[y(q,{"show-reset":c.value.showReset,"show-search":c.value.showSearch,"show-expand":c.value.showExpand,"search-loading":c.value.searchLoading,"reset-loading":c.value.resetLoading,visible:u.value,onExpand:M,onReset:I,onSearch:B},null,8,["show-reset","show-search","show-expand","search-loading","reset-loading","visible"])],4)):S("",!0)],64))}});export{ke as _}; +var K=Object.defineProperty;var A=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var T=(t,r,a)=>r in t?K(t,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[r]=a,W=(t,r)=>{for(var a in r||(r={}))U.call(r,a)&&T(t,a,r[a]);if(A)for(var a of A(r))Z.call(r,a)&&T(t,a,r[a]);return t};var f=(t,r,a)=>new Promise((p,d)=>{var u=h=>{try{g(a.next(h))}catch(w){d(w)}},m=h=>{try{g(a.throw(h))}catch(w){d(w)}},g=h=>h.done?p(h.value):Promise.resolve(h.value).then(u,m);g((a=a.apply(t,r)).next())});import{i as ee,F as te}from"./Form-B3fdtaFM.js";import{p as i,m as D,n as oe,o as se}from"./index-B5z15nYm.js";import{u as ae}from"./useForm-BIADJKAv.js";import{_ as R}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{u as V}from"./useIcon-Dzh8BHEZ.js";import{q as $,t as b,v as O,T as L,S as F,W as x,u as n,Y as S,X as ne,Q as z,r as v,d as C,P as y,w as ie,o as le,V as re}from"./vue-chunks-DOWhatC1.js";import{d as ce,s as de}from"./element-plus-6v3c1uXT.js";const q=$({__name:"ActionButton",props:{showSearch:i.bool.def(!0),showReset:i.bool.def(!0),showExpand:i.bool.def(!1),visible:i.bool.def(!0),searchLoading:i.bool.def(!1),resetLoading:i.bool.def(!1)},emits:["search","reset","expand"],setup(t,{emit:r}){const a=r,p=()=>{a("search")},d=()=>{a("reset")},u=()=>{a("expand")};return(m,g)=>(b(),O(z,null,[t.showSearch?(b(),L(n(R),{key:0,type:"primary",loading:t.searchLoading,icon:n(V)({icon:"ep:search"}),onClick:p},{default:F(()=>[x(" 查询 ")]),_:1},8,["loading","icon"])):S("",!0),t.showReset?(b(),L(n(R),{key:1,loading:t.resetLoading,plain:"",icon:n(V)({icon:"ep:refresh-right"}),onClick:d},{default:F(()=>[x(" 重置 ")]),_:1},8,["loading","icon"])):S("",!0),t.showExpand?(b(),L(n(R),{key:2,icon:n(V)({icon:t.visible?"ep:arrow-up":"ep:arrow-down"}),text:"",onClick:u},{default:F(()=>[x(ne(t.visible?"收起":"展开"),1)]),_:1},8,["icon"])):S("",!0)],64))}}),ke=$({__name:"Search",props:{schema:{type:Array,default:()=>[]},isCol:i.bool.def(!1),labelWidth:i.oneOfType([String,Number]).def("auto"),layout:i.string.validate(t=>["inline","bottom"].includes(t)).def("inline"),buttonPosition:i.string.validate(t=>["left","center","right"].includes(t)).def("center"),showSearch:i.bool.def(!0),showReset:i.bool.def(!0),showExpand:i.bool.def(!1),expandField:i.string.def(""),inline:i.bool.def(!0),removeNoValueItem:i.bool.def(!0),model:{type:Object,default:()=>({})},searchLoading:i.bool.def(!1),resetLoading:i.bool.def(!1)},emits:["search","reset","register","validate"],setup(t,{expose:r,emit:a}){const p=t,d=a,u=v(!0),m=v(p.model),g=C(()=>{const e=n(c);let o=ce(e.schema);if(e.showExpand&&e.expandField&&!n(u)){const s=D(o,l=>l.field===e.expandField);o.map((l,J)=>(J>=s?l.hidden=!0:l.hidden=!1,l))}return e.layout==="inline"&&(o=o.concat([{field:"action",formItemProps:{labelWidth:"0px",slots:{default:()=>y("div",null,[y(q,{showSearch:e.showSearch,showReset:e.showReset,showExpand:e.showExpand,searchLoading:e.searchLoading,resetLoading:e.resetLoading,visible:u.value,onExpand:M,onReset:I,onSearch:B},null)]),label:()=>y("span",null,[x(" ")])}}}])),o}),{formRegister:h,formMethods:w}=ae(),{getElFormExpose:k,getFormData:j,getFormExpose:Q}=w,X=v({}),E=v({}),c=C(()=>{const e=W({},p);return Object.assign(e,n(E)),e}),Y=(e={})=>{E.value=Object.assign(n(E),e),X.value=e},P=v([]);ie(()=>n(g),(...o)=>f(this,[...o],function*(e=[]){m.value=ee(e,n(m)),P.value=e}),{immediate:!0,deep:!0});const N=()=>f(this,null,function*(){const e=yield j();return n(c).removeNoValueItem?Object.keys(e).reduce((o,s)=>{const l=e[s];return oe(l)||(se(l)?Object.keys(l).length>0&&(o[s]=l):o[s]=l),o},{}):e}),B=()=>f(this,null,function*(){const e=yield k();yield e==null?void 0:e.validate(o=>f(this,null,function*(){if(o){const s=yield N();d("search",s)}}))}),I=()=>f(this,null,function*(){const e=yield k();e==null||e.resetFields();const o=yield N();d("reset",o)}),G=C(()=>({textAlign:n(c).buttonPosition})),M=()=>f(this,null,function*(){u.value=!n(u)}),_={getElFormExpose:k,setProps:Y,setSchema:e=>{const{schema:o}=n(c);for(const s of o)for(const l of e)s.field===l.field&&de(s,l.path,l.value)},setValues:(...o)=>f(this,[...o],function*(e={}){m.value=Object.assign(p.model,n(m),e);const s=yield Q();s==null||s.setValues(e)}),delSchema:e=>{const{schema:o}=n(c),s=D(o,l=>l.field===e);s>-1&&o.splice(s,1)},addSchema:(e,o)=>{const{schema:s}=n(c);if(o!==void 0){s.splice(o,0,e);return}s.push(e)},getFormData:j};le(()=>{d("register",_)}),r(_);const H=(e,o,s)=>{d("validate",e,o,s)};return(e,o)=>(b(),O(z,null,[y(n(te),{model:m.value,"is-custom":!1,"label-width":c.value.labelWidth,"hide-required-asterisk":"",inline:c.value.inline,"is-col":c.value.isCol,schema:P.value,onRegister:n(h),onValidate:H},null,8,["model","label-width","inline","is-col","schema","onRegister"]),t.layout==="bottom"?(b(),O("div",{key:0,style:re(G.value)},[y(q,{"show-reset":c.value.showReset,"show-search":c.value.showSearch,"show-expand":c.value.showExpand,"search-loading":c.value.searchLoading,"reset-loading":c.value.resetLoading,visible:u.value,onExpand:M,onReset:I,onSearch:B},null,8,["show-reset","show-search","show-expand","search-loading","reset-loading","visible"])],4)):S("",!0)],64))}});export{ke as _}; diff --git a/assets/Table.vue_vue_type_script_lang-DOZk-BCG.js b/assets/Table.vue_vue_type_script_lang-BzBmZLp9.js similarity index 98% rename from assets/Table.vue_vue_type_script_lang-DOZk-BCG.js rename to assets/Table.vue_vue_type_script_lang-BzBmZLp9.js index 0440c569..e8e5a2df 100644 --- a/assets/Table.vue_vue_type_script_lang-DOZk-BCG.js +++ b/assets/Table.vue_vue_type_script_lang-BzBmZLp9.js @@ -1,6 +1,6 @@ -var Nn=Object.defineProperty;var Wt=Object.getOwnPropertySymbols;var kn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable;var Ut=(e,n,t)=>n in e?Nn(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,me=(e,n)=>{for(var t in n||(n={}))kn.call(n,t)&&Ut(e,t,n[t]);if(Wt)for(var t of Wt(n))Mn.call(n,t)&&Ut(e,t,n[t]);return e};import{D as Gt,u as jn,p as j}from"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as de}from"./el-radio-button-DWJU-_1D.js";/* empty css */import{I as Fe}from"./Icon-Bwi9LaBZ.js";/* empty css */import{q as ht,d as je,L as Rn,u as p,r as Z,K as Bn,af as Vn,g as Bt,w as Ne,f as Xn,o as fn,n as Yn,i as Fn,aG as $t,aF as zn,t as qe,T as Ln,S as ee,x as De,P as y,W as Pe,X as vt,v as bt,Q as Vt,a8 as Hn,Y as Wn,B as pn,a0 as Un,I as Ke}from"./vue-chunks-DOWhatC1.js";import{_ as It}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{y as qt,a8 as Kt,S as Gn,R as $n,x as yt,a9 as qn,d as Je,aa as Kn,ab as Jn,ac as Qn,K as Zn,l as eo,ad as to,ae as no,a6 as oo,s as ro,af as Qe,a2 as Te,ag as io}from"./element-plus-6v3c1uXT.js";import{c as ao}from"./index-DlX4pwja.js";const lo=(e,n,t,o)=>{const r=n+1;return e?t*(o-1)+r:r};var so=Object.defineProperty,st=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable,Jt=(e,n,t)=>n in e?so(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,ke=(e,n)=>{for(var t in n||(n={}))hn.call(n,t)&&Jt(e,t,n[t]);if(st)for(var t of st(n))gn.call(n,t)&&Jt(e,t,n[t]);return e},mn=(e,n)=>{var t={};for(var o in e)hn.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&st)for(var o of st(e))n.indexOf(o)<0&&gn.call(e,o)&&(t[o]=e[o]);return t};const vn="[vue-draggable-plus]: ";function uo(e){console.warn(vn+e)}function co(e){console.error(vn+e)}function Qt(e,n,t){return t>=0&&tt?t.toUpperCase():"")}function po(e){return Object.keys(e).reduce((n,t)=>(typeof e[t]!="undefined"&&(n[fo(t)]=e[t]),n),{})}function ho(e,n){if(Array.isArray(e))return e.splice(n,1)}function go(e,n,t){if(Array.isArray(e))return e.splice(n,0,t)}function mo(e){return typeof e=="undefined"}function vo(e){return typeof e=="string"}function Zt(e,n,t){const o=e.children[t];e.insertBefore(n,o)}function wt(e){e.parentNode&&e.parentNode.removeChild(e)}function bo(e,n=document){var t;let o=null;return typeof(n==null?void 0:n.querySelector)=="function"?o=(t=n==null?void 0:n.querySelector)==null?void 0:t.call(n,e):o=document.querySelector(e),o||uo(`Element not found: ${e}`),o}function yo(e,n,t=null){return function(...o){return e.apply(t,o),n.apply(t,o)}}function wo(e,n){const t=ke({},e);return Object.keys(n).forEach(o=>{t[o]?t[o]=yo(e[o],n[o]):t[o]=n[o]}),t}function So(e){return e instanceof HTMLElement}function Eo(e,n){Object.keys(e).forEach(t=>{n(t,e[t])})}/**! +var Nn=Object.defineProperty;var Wt=Object.getOwnPropertySymbols;var kn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable;var Ut=(e,n,t)=>n in e?Nn(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,me=(e,n)=>{for(var t in n||(n={}))kn.call(n,t)&&Ut(e,t,n[t]);if(Wt)for(var t of Wt(n))Mn.call(n,t)&&Ut(e,t,n[t]);return e};import{D as Gt,u as jn,p as j}from"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as de}from"./el-radio-button-BbBORUw9.js";/* empty css */import{I as Fe}from"./Icon-B-0CON7P.js";/* empty css */import{q as ht,d as je,L as Rn,u as p,r as Z,K as Bn,af as Vn,g as Bt,w as Ne,f as Xn,o as fn,n as Yn,i as Fn,aG as $t,aF as zn,t as qe,T as Ln,S as ee,x as De,P as y,W as Pe,X as vt,v as bt,Q as Vt,a8 as Hn,Y as Wn,B as pn,a0 as Un,I as Ke}from"./vue-chunks-DOWhatC1.js";import{_ as It}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{y as qt,a8 as Kt,S as Gn,R as $n,x as yt,a9 as qn,d as Je,aa as Kn,ab as Jn,ac as Qn,K as Zn,l as eo,ad as to,ae as no,a6 as oo,s as ro,af as Qe,a2 as Te,ag as io}from"./element-plus-6v3c1uXT.js";import{c as ao}from"./index-2gFf0KW4.js";const lo=(e,n,t,o)=>{const r=n+1;return e?t*(o-1)+r:r};var so=Object.defineProperty,st=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable,Jt=(e,n,t)=>n in e?so(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,ke=(e,n)=>{for(var t in n||(n={}))hn.call(n,t)&&Jt(e,t,n[t]);if(st)for(var t of st(n))gn.call(n,t)&&Jt(e,t,n[t]);return e},mn=(e,n)=>{var t={};for(var o in e)hn.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&st)for(var o of st(e))n.indexOf(o)<0&&gn.call(e,o)&&(t[o]=e[o]);return t};const vn="[vue-draggable-plus]: ";function uo(e){console.warn(vn+e)}function co(e){console.error(vn+e)}function Qt(e,n,t){return t>=0&&tt?t.toUpperCase():"")}function po(e){return Object.keys(e).reduce((n,t)=>(typeof e[t]!="undefined"&&(n[fo(t)]=e[t]),n),{})}function ho(e,n){if(Array.isArray(e))return e.splice(n,1)}function go(e,n,t){if(Array.isArray(e))return e.splice(n,0,t)}function mo(e){return typeof e=="undefined"}function vo(e){return typeof e=="string"}function Zt(e,n,t){const o=e.children[t];e.insertBefore(n,o)}function wt(e){e.parentNode&&e.parentNode.removeChild(e)}function bo(e,n=document){var t;let o=null;return typeof(n==null?void 0:n.querySelector)=="function"?o=(t=n==null?void 0:n.querySelector)==null?void 0:t.call(n,e):o=document.querySelector(e),o||uo(`Element not found: ${e}`),o}function yo(e,n,t=null){return function(...o){return e.apply(t,o),n.apply(t,o)}}function wo(e,n){const t=ke({},e);return Object.keys(n).forEach(o=>{t[o]?t[o]=yo(e[o],n[o]):t[o]=n[o]}),t}function So(e){return e instanceof HTMLElement}function Eo(e,n){Object.keys(e).forEach(t=>{n(t,e[t])})}/**! * Sortable 1.15.1 * @author RubaXa * @author owenm * @license MIT - */function en(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function ce(e){for(var n=1;n=0)&&(t[r]=e[r]);return t}function xo(e,n){if(e==null)return{};var t=_o(e,n),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}var Do="1.15.1";function fe(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var he=fe(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ge=fe(/Edge/i),tn=fe(/firefox/i),ze=fe(/safari/i)&&!fe(/chrome/i)&&!fe(/android/i),bn=fe(/iP(ad|od|hone)/i),yn=fe(/chrome/i)&&fe(/android/i),wn={capture:!1,passive:!1};function N(e,n,t){e.addEventListener(n,t,!he&&wn)}function P(e,n,t){e.removeEventListener(n,t,!he&&wn)}function ut(e,n){if(n){if(n[0]===">"&&(n=n.substring(1)),e)try{if(e.matches)return e.matches(n);if(e.msMatchesSelector)return e.msMatchesSelector(n);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(n)}catch(t){return!1}return!1}}function To(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function se(e,n,t,o){if(e){t=t||document;do{if(n!=null&&(n[0]===">"?e.parentNode===t&&ut(e,n):ut(e,n))||o&&e===t)return e;if(e===t)break}while(e=To(e))}return null}var nn=/\s+/g;function te(e,n,t){if(e&&n)if(e.classList)e.classList[t?"add":"remove"](n);else{var o=(" "+e.className+" ").replace(nn," ").replace(" "+n+" "," ");e.className=(o+(t?" "+n:"")).replace(nn," ")}}function g(e,n,t){var o=e&&e.style;if(o){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),n===void 0?t:t[n];!(n in o)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),o[n]=t+(typeof t=="string"?"":"px")}}function Re(e,n){var t="";if(typeof e=="string")t=e;else do{var o=g(e,"transform");o&&o!=="none"&&(t=o+" "+t)}while(!n&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(t)}function Sn(e,n,t){if(e){var o=e.getElementsByTagName(n),r=0,i=o.length;if(t)for(;r=i:a=r<=i,!a)return o;if(o===ue())break;o=ye(o,!1)}return!1}function Be(e,n,t,o){for(var r=0,i=0,a=e.children;i2&&arguments[2]!==void 0?arguments[2]:{},o=t.evt,r=xo(t,jo);$e.pluginEvent.bind(b)(e,n,ce({dragEl:d,parentEl:F,ghostEl:E,rootEl:X,nextEl:Ce,lastDownEl:rt,cloneEl:Y,cloneHidden:be,dragStarted:Ve,putSortable:G,activeSortable:b.active,originalEvent:o,oldIndex:Me,oldDraggableIndex:He,newIndex:ne,newDraggableIndex:ve,hideGhostForTarget:An,unhideGhostForTarget:Pn,cloneNowHidden:function(){be=!0},cloneNowShown:function(){be=!1},dispatchSortableEvent:function(i){q({sortable:n,name:i,originalEvent:o})}},r))};function q(e){Mo(ce({putSortable:G,cloneEl:Y,targetEl:d,rootEl:X,oldIndex:Me,oldDraggableIndex:He,newIndex:ne,newDraggableIndex:ve},e))}var d,F,E,X,Ce,rt,Y,be,Me,ne,He,ve,Ze,G,Ie=!1,ct=!1,dt=[],Se,ae,Ct,_t,an,ln,Ve,Ae,We,Ue=!1,et=!1,it,$,xt=[],Nt=!1,ft=[],gt=typeof document!="undefined",tt=bn,sn=Ge||he?"cssFloat":"float",Ro=gt&&!yn&&!bn&&"draggable"in document.createElement("div"),Dn=function(){if(gt){if(he)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Tn=function(e,n){var t=g(e),o=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),r=Be(e,0,n),i=Be(e,1,n),a=r&&g(r),s=i&&g(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+H(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+H(i).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var u=a.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===u)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=o&&t[sn]==="none"||i&&t[sn]==="none"&&l+c>o)?"vertical":"horizontal"},Bo=function(e,n,t){var o=t?e.left:e.top,r=t?e.right:e.bottom,i=t?e.width:e.height,a=t?n.left:n.top,s=t?n.right:n.bottom,l=t?n.width:n.height;return o===a||r===s||o+i/2===a+l/2},Vo=function(e,n){var t;return dt.some(function(o){var r=o[oe].options.emptyInsertThreshold;if(!(!r||Xt(o))){var i=H(o),a=e>=i.left-r&&e<=i.right+r,s=n>=i.top-r&&n<=i.bottom+r;if(a&&s)return t=o}}),t},On=function(e){function n(r,i){return function(a,s,l,c){var u=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(r==null&&(i||u))return!0;if(r==null||r===!1)return!1;if(i&&r==="clone")return r;if(typeof r=="function")return n(r(a,s,l,c),i)(a,s,l,c);var h=(i?a:s).options.group.name;return r===!0||typeof r=="string"&&r===h||r.join&&r.indexOf(h)>-1}}var t={},o=e.group;(!o||ot(o)!="object")&&(o={name:o}),t.name=o.name,t.checkPull=n(o.pull,!0),t.checkPut=n(o.put),t.revertClone=o.revertClone,e.group=t},An=function(){!Dn&&E&&g(E,"display","none")},Pn=function(){!Dn&&E&&g(E,"display","")};gt&&!yn&&document.addEventListener("click",function(e){if(ct)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ct=!1,!1},!0);var Ee=function(e){if(d){e=e.touches?e.touches[0]:e;var n=Vo(e.clientX,e.clientY);if(n){var t={};for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[oe]._onDragOver(t)}}},Xo=function(e){d&&d.parentNode[oe]._isOutsideThisEl(e.target)};function b(e,n){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=n=pe({},n),e[oe]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Tn(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:b.supportPointer!==!1&&"PointerEvent"in window&&!ze,emptyInsertThreshold:5};$e.initializePlugins(this,e,t);for(var o in t)!(o in n)&&(n[o]=t[o]);On(n);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=n.forceFallback?!1:Ro,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?N(e,"pointerdown",this._onTapStart):(N(e,"mousedown",this._onTapStart),N(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(N(e,"dragover",this),N(e,"dragenter",this)),dt.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),pe(this,Io())}b.prototype={constructor:b,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Ae=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,d):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,t=this.el,o=this.options,r=o.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=o.filter;if(Go(t),!d&&!(/mousedown|pointerdown/.test(i)&&e.button!==0||o.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&ze&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=se(s,o.draggable,t,!1),!(s&&s.animated)&&rt!==s)){if(Me=ie(s),He=ie(s,o.draggable),typeof c=="function"){if(c.call(this,e,s,this)){q({sortable:n,rootEl:l,name:"filter",targetEl:s,toEl:t,fromEl:t}),Q("filter",n,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=se(l,u.trim(),t,!1),u)return q({sortable:n,rootEl:u,name:"filter",targetEl:s,fromEl:t,toEl:t}),Q("filter",n,{evt:e}),!0}),c)){r&&e.cancelable&&e.preventDefault();return}o.handle&&!se(l,o.handle,t,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,n,t){var o=this,r=o.el,i=o.options,a=r.ownerDocument,s;if(t&&!d&&t.parentNode===r){var l=H(t);if(X=r,d=t,F=d.parentNode,Ce=d.nextSibling,rt=t,Ze=i.group,b.dragged=d,Se={target:d,clientX:(n||e).clientX,clientY:(n||e).clientY},an=Se.clientX-l.left,ln=Se.clientY-l.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,d.style["will-change"]="all",s=function(){if(Q("delayEnded",o,{evt:e}),b.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!tn&&o.nativeDraggable&&(d.draggable=!0),o._triggerDragStart(e,n),q({sortable:o,name:"choose",originalEvent:e}),te(d,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Sn(d,c.trim(),Dt)}),N(a,"dragover",Ee),N(a,"mousemove",Ee),N(a,"touchmove",Ee),N(a,"mouseup",o._onDrop),N(a,"touchend",o._onDrop),N(a,"touchcancel",o._onDrop),tn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,d.draggable=!0),Q("delayStart",this,{evt:e}),i.delay&&(!i.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ge||he))){if(b.eventCanceled){this._onDrop();return}N(a,"mouseup",o._disableDelayedDrag),N(a,"touchend",o._disableDelayedDrag),N(a,"touchcancel",o._disableDelayedDrag),N(a,"mousemove",o._delayedDragTouchMoveHandler),N(a,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&N(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(s,i.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){d&&Dt(d),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;P(e,"mouseup",this._disableDelayedDrag),P(e,"touchend",this._disableDelayedDrag),P(e,"touchcancel",this._disableDelayedDrag),P(e,"mousemove",this._delayedDragTouchMoveHandler),P(e,"touchmove",this._delayedDragTouchMoveHandler),P(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?N(document,"pointermove",this._onTouchMove):n?N(document,"touchmove",this._onTouchMove):N(document,"mousemove",this._onTouchMove):(N(d,"dragend",this),N(X,"dragstart",this._onDragStart));try{document.selection?at(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(e,n){if(Ie=!1,X&&d){Q("dragStarted",this,{evt:n}),this.nativeDraggable&&N(document,"dragover",Xo);var t=this.options;!e&&te(d,t.dragClass,!1),te(d,t.ghostClass,!0),b.active=this,e&&this._appendGhost(),q({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ae){this._lastX=ae.clientX,this._lastY=ae.clientY,An();for(var e=document.elementFromPoint(ae.clientX,ae.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ae.clientX,ae.clientY),e!==n);)n=e;if(d.parentNode[oe]._isOutsideThisEl(e),n)do{if(n[oe]){var t=void 0;if(t=n[oe]._onDragOver({clientX:ae.clientX,clientY:ae.clientY,target:e,rootEl:n}),t&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);Pn()}},_onTouchMove:function(e){if(Se){var n=this.options,t=n.fallbackTolerance,o=n.fallbackOffset,r=e.touches?e.touches[0]:e,i=E&&Re(E,!0),a=E&&i&&i.a,s=E&&i&&i.d,l=tt&&$&&rn($),c=(r.clientX-Se.clientX+o.x)/(a||1)+(l?l[0]-xt[0]:0)/(a||1),u=(r.clientY-Se.clientY+o.y)/(s||1)+(l?l[1]-xt[1]:0)/(s||1);if(!b.active&&!Ie){if(t&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))=0&&(q({rootEl:F,name:"add",toEl:F,fromEl:X,originalEvent:e}),q({sortable:this,name:"remove",toEl:F,originalEvent:e}),q({rootEl:F,name:"sort",toEl:F,fromEl:X,originalEvent:e}),q({sortable:this,name:"sort",toEl:F,originalEvent:e})),G&&G.save()):ne!==Me&&ne>=0&&(q({sortable:this,name:"update",toEl:F,originalEvent:e}),q({sortable:this,name:"sort",toEl:F,originalEvent:e})),b.active&&((ne==null||ne===-1)&&(ne=Me,ve=He),q({sortable:this,name:"end",toEl:F,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Q("nulling",this),X=d=F=E=Ce=Y=rt=be=Se=ae=Ve=ne=ve=Me=He=Ae=We=G=Ze=b.dragged=b.ghost=b.clone=b.active=null,ft.forEach(function(e){e.checked=!0}),ft.length=Ct=_t=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":d&&(this._onDragOver(e),Yo(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,t=this.el.children,o=0,r=t.length,i=this.options;or.right+i||e.clientY>o.bottom&&e.clientX>o.left:e.clientY>r.bottom+i||e.clientX>o.right&&e.clientY>o.top}function Ho(e,n,t,o,r,i,a,s){var l=o?e.clientY:e.clientX,c=o?t.height:t.width,u=o?t.top:t.left,h=o?t.bottom:t.right,O=!1;if(!a){if(s&&itu+c*i/2:lh-it)return-We}else if(l>u+c*(1-r)/2&&lh-c*i/2)?l>u+c/2?1:-1:0}function Wo(e){return ie(d){v=W(v),s&&w.destroy(),s=new b(v,x())};Ne(()=>a,()=>{s&&Eo(x(),(v,f)=>{s==null||s.option(v,f)})},{deep:!0});const w={option:(v,f)=>s==null?void 0:s.option(v,f),destroy:()=>{s==null||s.destroy(),s=null},save:()=>s==null?void 0:s.save(),toArray:()=>s==null?void 0:s.toArray(),closest:(...v)=>s==null?void 0:s.closest(...v)},V=()=>w==null?void 0:w.option("disabled",!0),D=()=>w==null?void 0:w.option("disabled",!1);return Jo(()=>{l&&I()}),Ko(w.destroy),ke({start:I,pause:V,resume:D},w)}const Rt=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],Zo=["animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...Rt.map(e=>`on${e.replace(/^\S/,n=>n.toUpperCase())}`)],er=ht({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:Zo,emits:["update:modelValue",...Rt],setup(e,{slots:n,emit:t,expose:o,attrs:r}){const i=Rt.reduce((u,h)=>{const O=`on${h.replace(/^\S/,m=>m.toUpperCase())}`;return u[O]=m=>t(h,m),u},{}),a=je(()=>{const u=Rn(e),h=mn(u,["modelValue"]),O=Object.entries(h).reduce((m,[R,_])=>{const W=p(_);return W!==void 0&&(m[R]=W),m},{});return ke(ke({},i),po(ke(ke({},r),O)))}),s=je({get:()=>e.modelValue,set:u=>t("update:modelValue",u)}),l=Z(),c=Bn(Qo(e.target||l,s,a));return o(c),()=>{if(n.default)return Vn(e.tag||"div",{ref:l},n.default(c))}}}),tr={class:"flex items-center justify-between"},nr={class:"flex items-center justify-between"},or={key:0},rr={class:"flex items-center"},ir={class:"ml-12px cursor-move handle"},dn=ht({__name:"ColumnSetting",props:$t({columns:{type:Array,default:()=>[]}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:$t(["confirm"],["update:modelValue"]),setup(e,{emit:n}){const t=zn(e,"modelValue"),o=e,r=n,i=Z(),a=Z(),s=Z([]),l=Z([]),c=Z([]),u=Z(!1),h=Z(!0),O=x=>{c.value=x?p(l):[],h.value=!1},m=x=>{var w,V;const I=x.length;u.value=I===((w=p(l))==null?void 0:w.length),h.value=I>0&&I<((V=p(l))==null?void 0:V.length)},R=()=>{var I;const x=(I=Je(p(a)))==null?void 0:I.map(w=>{var D,v,f;const V=(v=(D=p(a))==null?void 0:D.find(T=>T.field===w.field))==null?void 0:v.fixed;return w.hidden=!((f=p(c))!=null&&f.includes(w.field)),w.fixed=V||void 0,w});r("confirm",[...p(s),...x||[]]),t.value=!1},_=()=>{W([...p(s),...p(i)||[]],!0)},W=(x,I=!1)=>{var V,D,v,f,T,C;const w=x==null?void 0:x.filter(S=>(I||(S.fixed=S.fixed!==void 0?S.fixed:void 0),S.type&&!Gt.includes(S.type)||!S.type));(V=p(i))!=null&&V.length||(i.value=Je(w)),a.value=Je(w),s.value=Je(x==null?void 0:x.filter(S=>S.type&&Gt.includes(S.type))),l.value=((D=p(a))==null?void 0:D.map(S=>S.field))||[],c.value=((f=(v=p(a))==null?void 0:v.filter(S=>!S.hidden))==null?void 0:f.map(S=>S.field))||[],((T=p(c))==null?void 0:T.length)===((C=p(l))==null?void 0:C.length)&&(u.value=!0,h.value=!1)};return Ne(()=>o.columns,x=>{W(x)},{immediate:!0,deep:!0}),(x,I)=>{const w=Fe;return qe(),Ln(p(qn),{modelValue:t.value,"onUpdate:modelValue":I[3]||(I[3]=V=>t.value=V),title:"列设置",size:"350px"},{footer:ee(()=>[De("div",null,[y(p(It),{onClick:_},{default:ee(()=>[Pe("还原")]),_:1}),y(p(It),{type:"primary",onClick:R},{default:ee(()=>[Pe("确定")]),_:1})])]),default:ee(()=>{var V;return[De("div",null,[De("div",tr,[De("div",nr,[y(p(qt),{modelValue:u.value,"onUpdate:modelValue":I[0]||(I[0]=D=>u.value=D),indeterminate:h.value,onChange:O},null,8,["modelValue","indeterminate"]),y(p(Kt),{class:"ml-8px!"},{default:ee(()=>{var D;return[Pe(vt(c.value.length)+" / "+vt((D=a.value)==null?void 0:D.length),1)]}),_:1})]),y(p(Kt),null,{default:ee(()=>[Pe("固定 / 排序")]),_:1})]),(V=a.value)!=null&&V.length?(qe(),bt("div",or,[y(p(er),{modelValue:a.value,"onUpdate:modelValue":I[2]||(I[2]=D=>a.value=D),target:".el-checkbox-group",handle:".handle",animation:150},{default:ee(()=>[y(p(Gn),{ref:"draggableWrap",modelValue:c.value,"onUpdate:modelValue":I[1]||(I[1]=D=>c.value=D),onChange:m},{default:ee(()=>[(qe(!0),bt(Vt,null,Hn(a.value,D=>(qe(),bt("div",{key:D.field,class:"flex items-center justify-between mt-12px"},[y(p(qt),{label:D.field},{default:ee(()=>[Pe(vt(D.label),1)]),_:2},1032,["label"]),De("div",rr,[y(p($n),{size:"small",modelValue:D.fixed,"onUpdate:modelValue":v=>D.fixed=v},{default:ee(()=>[y(p(yt),{label:"left"},{default:ee(()=>[y(w,{icon:"ep:arrow-left"})]),_:1}),y(p(yt),{label:void 0},{default:ee(()=>[y(w,{icon:"ep:close"})]),_:1}),y(p(yt),{label:"right"},{default:ee(()=>[y(w,{icon:"ep:arrow-right"})]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"]),De("div",ir,[y(w,{icon:"ep:rank"})])])]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])):Wn("",!0)])]}),_:1},8,["modelValue"])}}});function ar(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pn(e)}const lr=ht({name:"TableActions",components:{ColumnSetting:dn},props:{columns:{type:Array,default:()=>[]}},emits:["refresh","changSize","confirm"],setup(e,{emit:n}){const t=jn(),o=je(()=>t.sizeMap),r=Z(!1),i=()=>{n("refresh")},a=c=>{n("changSize",c)},s=c=>{n("confirm",c)},l=()=>{r.value=!0};return()=>y(Vt,null,[y("div",{class:"text-right h-28px flex items-center justify-end"},[y("div",{title:"刷新",class:"w-30px h-20px flex items-center justify-end",onClick:i},[y(Fe,{icon:"ant-design:sync-outlined",class:"cursor-pointer","hover-color":"var(--el-color-primary)"},null)]),y(Kn,{trigger:"click",onCommand:a},{default:()=>y("div",{title:"尺寸",class:"w-30px h-20px flex items-center justify-end"},[y(Fe,{icon:"ant-design:column-height-outlined",class:"cursor-pointer","hover-color":"var(--el-color-primary)"},null)]),dropdown:()=>y(Jn,null,{default:()=>p(o).map(c=>y(Qn,{key:c,command:c},ar(c)?c:{default:()=>[c]}))})}),y("div",{title:"列设置",class:"w-30px h-20px flex items-center justify-end",onClick:l},[y(Fe,{icon:"ant-design:setting-outlined",class:"cursor-pointer","hover-color":"var(--el-color-primary)"},null)])]),y(dn,{modelValue:r.value,"onUpdate:modelValue":c=>r.value=c,columns:e.columns,onConfirm:s},null)])}});function Pt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pn(e)}const Dr=ht({name:"Table",props:{pageSize:j.number.def(10),currentPage:j.number.def(1),showAction:j.bool.def(!1),showOverflowTooltip:j.bool.def(!0),columns:{type:Array,default:()=>[]},pagination:{type:Object,default:()=>{}},reserveSelection:j.bool.def(!1),loading:j.bool.def(!1),reserveIndex:j.bool.def(!1),align:j.string.validate(e=>["left","center","right"].includes(e)).def("left"),headerAlign:j.string.validate(e=>["left","center","right"].includes(e)).def("left"),data:{type:Array,default:()=>[]},imagePreview:{type:Array,default:()=>[]},videoPreview:{type:Array,default:()=>[]},height:j.oneOfType([Number,String]),maxHeight:j.oneOfType([Number,String]),stripe:j.bool.def(!1),border:j.bool.def(!0),size:{type:String,validator:e=>["default","small","large"].includes(e)},fit:j.bool.def(!0),showHeader:j.bool.def(!0),highlightCurrentRow:j.bool.def(!1),currentRowKey:j.oneOfType([Number,String]),rowClassName:{type:[Function,String],default:""},rowStyle:{type:[Function,Object],default:()=>{}},cellClassName:{type:[Function,String],default:""},cellStyle:{type:[Function,Object],default:()=>{}},headerRowClassName:{type:[Function,String],default:""},headerRowStyle:{type:[Function,Object],default:()=>{}},headerCellClassName:{type:[Function,String],default:""},headerCellStyle:{type:[Function,Object],default:()=>{}},rowKey:j.string.def("id"),emptyText:j.string.def("No Data"),defaultExpandAll:j.bool.def(!1),expandRowKeys:{type:Array,default:()=>[]},defaultSort:{type:Object,default:()=>({})},tooltipEffect:{type:String,default:"dark"},tooltipOptions:{type:Object,default:()=>({enterable:!0,placement:"top",showArrow:!0,hideAfter:200,popperOptions:{strategy:"fixed"}})},showSummary:j.bool.def(!1),sumText:j.string.def("Sum"),summaryMethod:{type:Function,default:void 0},spanMethod:{type:Function,default:void 0},selectOnIndeterminate:j.bool.def(!0),indent:j.number.def(16),lazy:j.bool.def(!1),load:{type:Function,default:void 0},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",label:"label"})},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:j.bool.def(!1),flexible:j.bool.def(!1),customContent:j.bool.def(!1),cardBodyStyle:{type:Object,default:()=>({})},cardBodyClass:{type:String,default:""},cardWrapStyle:{type:Object,default:()=>({})},cardWrapClass:{type:String,default:""}},emits:["update:pageSize","update:currentPage","register","refresh"],setup(e,{attrs:n,emit:t,slots:o,expose:r}){const i=Z();fn(()=>{const f=p(i);t("register",f==null?void 0:f.$parent,i)});const a=Z(e.pageSize),s=Z(e.currentPage),l=Z({}),c=Z({}),u=je(()=>{const f=me({},e);return Object.assign(f,p(c)),f}),h=(f={})=>{c.value=Object.assign(p(c),f),l.value=me({},f)},O=(f,T)=>{var S;const{columns:C}=p(u);for(const k of T||C)for(const B of f)k.field===B.field?ro(k,B.path,B.value):(S=k.children)!=null&&S.length&&O(f,k.children)},m=(f,T)=>{const{columns:C}=p(u);T!==void 0?C.splice(T,0,f):C.push(f)},R=f=>{const{columns:T}=p(u),C=T.findIndex(S=>S.field===f);C>-1&&T.splice(C,1)},_=()=>{t("refresh")},W=f=>{h({size:f})},x=f=>{h({columns:f})};r({setProps:h,setColumn:O,delColumn:R,addColumn:m,elTableRef:i});const I=je(()=>Object.assign({small:!1,background:!1,pagerCount:7,layout:"sizes, prev, pager, next, jumper, ->, total",pageSizes:[10,20,30,40,50,100],disabled:!1,hideOnSinglePage:!1,total:10},p(u).pagination));Ne(()=>p(u).pageSize,f=>{a.value=f}),Ne(()=>p(u).currentPage,f=>{s.value=f}),Ne(()=>a.value,f=>{t("update:pageSize",f)}),Ne(()=>s.value,f=>{t("update:currentPage",f)});const w=je(()=>{const f=me(me({},n),p(u));return delete f.columns,delete f.data,delete f.align,f}),V=f=>{const{align:T,headerAlign:C,showOverflowTooltip:S,imagePreview:k,videoPreview:B}=p(u);return f.map(M=>{var le;if(M.hidden)return null;const z=me({},M);z.children&&delete z.children;const K=M.children,J={default:(...A)=>{var _e,we;const re=A[0];let U=!1;return U=k.some(ge=>ge===M.field)||B.some(ge=>ge===M.field),K&&K.length?V(K):(_e=z==null?void 0:z.slots)!=null&&_e.default?z.slots.default(...A):M!=null&&M.formatter?(we=M==null?void 0:M.formatter)==null?void 0:we.call(M,re.row,re.column,Te(re.row,M.field),re.$index):U?D(Te(re.row,M.field),M.field):Te(re.row,M.field)}};return(le=z==null?void 0:z.slots)!=null&&le.header&&(J.header=(...A)=>z.slots.header(...A)),y(Qe,Ke({showOverflowTooltip:S,align:T,headerAlign:C},z,{prop:M.field}),Pt(J)?J:{default:()=>[J]})})},D=(f,T)=>{const{imagePreview:C,videoPreview:S}=p(u);return y("div",{class:"flex items-center"},[C.includes(T)?y(io,{src:f,fit:"cover",class:"w-[100%]",lazy:!0,"preview-src-list":[f],"preview-teleported":!0},null):S.includes(T)?y(It,{type:"primary",icon:y(Fe,{icon:"ep:video-play"},null),onClick:()=>{ao({url:f})}},{default:()=>[Pe("预览")]}):null])},v=f=>{const{columns:T,reserveIndex:C,pageSize:S,currentPage:k,align:B,headerAlign:M,showOverflowTooltip:z,reserveSelection:K,imagePreview:J,videoPreview:le}=p(u);return(f||T).map(A=>{var re;if(A.hidden)return null;if(A.type==="index")return y(Qe,{type:"index",index:A.index?A.index:U=>lo(C,U,S,k),align:A.align||B,headerAlign:A.headerAlign||M,label:A.label,fixed:A.fixed,width:"65px"},null);if(A.type==="selection")return y(Qe,{type:"selection",reserveSelection:K,align:B,headerAlign:M,selectable:A.selectable,width:"50"},null);{const U=me({},A);U.children&&delete U.children;const _e=A.children,we={default:(...ge)=>{var Lt,Ht;const xe=ge[0];let zt=!1;return zt=J.some(mt=>mt===A.field)||le.some(mt=>mt===A.field),_e&&_e.length?V(_e):(Lt=U==null?void 0:U.slots)!=null&&Lt.default?U.slots.default(...ge):A!=null&&A.formatter?(Ht=A==null?void 0:A.formatter)==null?void 0:Ht.call(A,xe.row,xe.column,Te(xe.row,A.field),xe.$index):zt?D(Te(xe.row,A.field),A.field):Te(xe.row,A.field)}};return(re=U==null?void 0:U.slots)!=null&&re.header&&(we.header=(...ge)=>U.slots.header(...ge)),y(Qe,Ke({showOverflowTooltip:z,align:B,headerAlign:M},U,{prop:A.field}),Pt(we)?we:{default:()=>[we]})}})};return()=>{var T,C,S;const f={};return de(o,"empty")&&(f.empty=(...k)=>de(o,"empty",k)),de(o,"append")&&(f.append=(...k)=>de(o,"append",k)),Un(y("div",null,[p(u).customContent?y("div",{class:"flex flex-wrap"},[(C=(T=p(u))==null?void 0:T.data)!=null&&C.length?(S=p(u))==null?void 0:S.data.map(k=>{const B={default:()=>de(o,"content",k)};return de(o,"content-header")&&(B.header=()=>de(o,"content-header",k)),de(o,"content-footer")&&(B.footer=()=>de(o,"content-footer",k)),y(eo,{shadow:"hover",class:p(u).cardWrapClass,style:p(u).cardWrapStyle,bodyClass:p(u).cardBodyClass,bodyStyle:p(u).cardBodyStyle},Pt(B)?B:{default:()=>[B]})}):y("div",{class:"flex flex-1 justify-center"},[y(to,{description:"暂无数据"},null)])]):y(Vt,null,[p(u).showAction&&!p(u).customContent?y(lr,{columns:p(u).columns,onChangSize:W,onRefresh:_,onConfirm:x},null):null,y(no,Ke({ref:i,data:p(u).data},p(w)),me({default:()=>v()},f))]),p(u).pagination?y(oo,Ke({pageSize:a.value,"onUpdate:pageSize":k=>a.value=k,currentPage:s.value,"onUpdate:currentPage":k=>s.value=k,class:"mt-10px"},p(I)),null):void 0]),[[Zn,p(u).loading]])}}});export{Dr as _}; + */function en(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function ce(e){for(var n=1;n=0)&&(t[r]=e[r]);return t}function xo(e,n){if(e==null)return{};var t=_o(e,n),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}var Do="1.15.1";function fe(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var he=fe(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ge=fe(/Edge/i),tn=fe(/firefox/i),ze=fe(/safari/i)&&!fe(/chrome/i)&&!fe(/android/i),bn=fe(/iP(ad|od|hone)/i),yn=fe(/chrome/i)&&fe(/android/i),wn={capture:!1,passive:!1};function N(e,n,t){e.addEventListener(n,t,!he&&wn)}function P(e,n,t){e.removeEventListener(n,t,!he&&wn)}function ut(e,n){if(n){if(n[0]===">"&&(n=n.substring(1)),e)try{if(e.matches)return e.matches(n);if(e.msMatchesSelector)return e.msMatchesSelector(n);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(n)}catch(t){return!1}return!1}}function To(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function se(e,n,t,o){if(e){t=t||document;do{if(n!=null&&(n[0]===">"?e.parentNode===t&&ut(e,n):ut(e,n))||o&&e===t)return e;if(e===t)break}while(e=To(e))}return null}var nn=/\s+/g;function te(e,n,t){if(e&&n)if(e.classList)e.classList[t?"add":"remove"](n);else{var o=(" "+e.className+" ").replace(nn," ").replace(" "+n+" "," ");e.className=(o+(t?" "+n:"")).replace(nn," ")}}function g(e,n,t){var o=e&&e.style;if(o){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),n===void 0?t:t[n];!(n in o)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),o[n]=t+(typeof t=="string"?"":"px")}}function Re(e,n){var t="";if(typeof e=="string")t=e;else do{var o=g(e,"transform");o&&o!=="none"&&(t=o+" "+t)}while(!n&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(t)}function Sn(e,n,t){if(e){var o=e.getElementsByTagName(n),r=0,i=o.length;if(t)for(;r=i:a=r<=i,!a)return o;if(o===ue())break;o=ye(o,!1)}return!1}function Be(e,n,t,o){for(var r=0,i=0,a=e.children;i2&&arguments[2]!==void 0?arguments[2]:{},o=t.evt,r=xo(t,jo);$e.pluginEvent.bind(b)(e,n,ce({dragEl:d,parentEl:F,ghostEl:E,rootEl:X,nextEl:Ce,lastDownEl:rt,cloneEl:Y,cloneHidden:be,dragStarted:Ve,putSortable:G,activeSortable:b.active,originalEvent:o,oldIndex:Me,oldDraggableIndex:He,newIndex:ne,newDraggableIndex:ve,hideGhostForTarget:An,unhideGhostForTarget:Pn,cloneNowHidden:function(){be=!0},cloneNowShown:function(){be=!1},dispatchSortableEvent:function(i){q({sortable:n,name:i,originalEvent:o})}},r))};function q(e){Mo(ce({putSortable:G,cloneEl:Y,targetEl:d,rootEl:X,oldIndex:Me,oldDraggableIndex:He,newIndex:ne,newDraggableIndex:ve},e))}var d,F,E,X,Ce,rt,Y,be,Me,ne,He,ve,Ze,G,Ie=!1,ct=!1,dt=[],Se,ae,Ct,_t,an,ln,Ve,Ae,We,Ue=!1,et=!1,it,$,xt=[],Nt=!1,ft=[],gt=typeof document!="undefined",tt=bn,sn=Ge||he?"cssFloat":"float",Ro=gt&&!yn&&!bn&&"draggable"in document.createElement("div"),Dn=function(){if(gt){if(he)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Tn=function(e,n){var t=g(e),o=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),r=Be(e,0,n),i=Be(e,1,n),a=r&&g(r),s=i&&g(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+H(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+H(i).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var u=a.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===u)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=o&&t[sn]==="none"||i&&t[sn]==="none"&&l+c>o)?"vertical":"horizontal"},Bo=function(e,n,t){var o=t?e.left:e.top,r=t?e.right:e.bottom,i=t?e.width:e.height,a=t?n.left:n.top,s=t?n.right:n.bottom,l=t?n.width:n.height;return o===a||r===s||o+i/2===a+l/2},Vo=function(e,n){var t;return dt.some(function(o){var r=o[oe].options.emptyInsertThreshold;if(!(!r||Xt(o))){var i=H(o),a=e>=i.left-r&&e<=i.right+r,s=n>=i.top-r&&n<=i.bottom+r;if(a&&s)return t=o}}),t},On=function(e){function n(r,i){return function(a,s,l,c){var u=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(r==null&&(i||u))return!0;if(r==null||r===!1)return!1;if(i&&r==="clone")return r;if(typeof r=="function")return n(r(a,s,l,c),i)(a,s,l,c);var h=(i?a:s).options.group.name;return r===!0||typeof r=="string"&&r===h||r.join&&r.indexOf(h)>-1}}var t={},o=e.group;(!o||ot(o)!="object")&&(o={name:o}),t.name=o.name,t.checkPull=n(o.pull,!0),t.checkPut=n(o.put),t.revertClone=o.revertClone,e.group=t},An=function(){!Dn&&E&&g(E,"display","none")},Pn=function(){!Dn&&E&&g(E,"display","")};gt&&!yn&&document.addEventListener("click",function(e){if(ct)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ct=!1,!1},!0);var Ee=function(e){if(d){e=e.touches?e.touches[0]:e;var n=Vo(e.clientX,e.clientY);if(n){var t={};for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[oe]._onDragOver(t)}}},Xo=function(e){d&&d.parentNode[oe]._isOutsideThisEl(e.target)};function b(e,n){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=n=pe({},n),e[oe]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Tn(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:b.supportPointer!==!1&&"PointerEvent"in window&&!ze,emptyInsertThreshold:5};$e.initializePlugins(this,e,t);for(var o in t)!(o in n)&&(n[o]=t[o]);On(n);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=n.forceFallback?!1:Ro,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?N(e,"pointerdown",this._onTapStart):(N(e,"mousedown",this._onTapStart),N(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(N(e,"dragover",this),N(e,"dragenter",this)),dt.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),pe(this,Io())}b.prototype={constructor:b,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Ae=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,d):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,t=this.el,o=this.options,r=o.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=o.filter;if(Go(t),!d&&!(/mousedown|pointerdown/.test(i)&&e.button!==0||o.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&ze&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=se(s,o.draggable,t,!1),!(s&&s.animated)&&rt!==s)){if(Me=ie(s),He=ie(s,o.draggable),typeof c=="function"){if(c.call(this,e,s,this)){q({sortable:n,rootEl:l,name:"filter",targetEl:s,toEl:t,fromEl:t}),Q("filter",n,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=se(l,u.trim(),t,!1),u)return q({sortable:n,rootEl:u,name:"filter",targetEl:s,fromEl:t,toEl:t}),Q("filter",n,{evt:e}),!0}),c)){r&&e.cancelable&&e.preventDefault();return}o.handle&&!se(l,o.handle,t,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,n,t){var o=this,r=o.el,i=o.options,a=r.ownerDocument,s;if(t&&!d&&t.parentNode===r){var l=H(t);if(X=r,d=t,F=d.parentNode,Ce=d.nextSibling,rt=t,Ze=i.group,b.dragged=d,Se={target:d,clientX:(n||e).clientX,clientY:(n||e).clientY},an=Se.clientX-l.left,ln=Se.clientY-l.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,d.style["will-change"]="all",s=function(){if(Q("delayEnded",o,{evt:e}),b.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!tn&&o.nativeDraggable&&(d.draggable=!0),o._triggerDragStart(e,n),q({sortable:o,name:"choose",originalEvent:e}),te(d,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Sn(d,c.trim(),Dt)}),N(a,"dragover",Ee),N(a,"mousemove",Ee),N(a,"touchmove",Ee),N(a,"mouseup",o._onDrop),N(a,"touchend",o._onDrop),N(a,"touchcancel",o._onDrop),tn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,d.draggable=!0),Q("delayStart",this,{evt:e}),i.delay&&(!i.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ge||he))){if(b.eventCanceled){this._onDrop();return}N(a,"mouseup",o._disableDelayedDrag),N(a,"touchend",o._disableDelayedDrag),N(a,"touchcancel",o._disableDelayedDrag),N(a,"mousemove",o._delayedDragTouchMoveHandler),N(a,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&N(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(s,i.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){d&&Dt(d),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;P(e,"mouseup",this._disableDelayedDrag),P(e,"touchend",this._disableDelayedDrag),P(e,"touchcancel",this._disableDelayedDrag),P(e,"mousemove",this._delayedDragTouchMoveHandler),P(e,"touchmove",this._delayedDragTouchMoveHandler),P(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?N(document,"pointermove",this._onTouchMove):n?N(document,"touchmove",this._onTouchMove):N(document,"mousemove",this._onTouchMove):(N(d,"dragend",this),N(X,"dragstart",this._onDragStart));try{document.selection?at(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(e,n){if(Ie=!1,X&&d){Q("dragStarted",this,{evt:n}),this.nativeDraggable&&N(document,"dragover",Xo);var t=this.options;!e&&te(d,t.dragClass,!1),te(d,t.ghostClass,!0),b.active=this,e&&this._appendGhost(),q({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ae){this._lastX=ae.clientX,this._lastY=ae.clientY,An();for(var e=document.elementFromPoint(ae.clientX,ae.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ae.clientX,ae.clientY),e!==n);)n=e;if(d.parentNode[oe]._isOutsideThisEl(e),n)do{if(n[oe]){var t=void 0;if(t=n[oe]._onDragOver({clientX:ae.clientX,clientY:ae.clientY,target:e,rootEl:n}),t&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);Pn()}},_onTouchMove:function(e){if(Se){var n=this.options,t=n.fallbackTolerance,o=n.fallbackOffset,r=e.touches?e.touches[0]:e,i=E&&Re(E,!0),a=E&&i&&i.a,s=E&&i&&i.d,l=tt&&$&&rn($),c=(r.clientX-Se.clientX+o.x)/(a||1)+(l?l[0]-xt[0]:0)/(a||1),u=(r.clientY-Se.clientY+o.y)/(s||1)+(l?l[1]-xt[1]:0)/(s||1);if(!b.active&&!Ie){if(t&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))=0&&(q({rootEl:F,name:"add",toEl:F,fromEl:X,originalEvent:e}),q({sortable:this,name:"remove",toEl:F,originalEvent:e}),q({rootEl:F,name:"sort",toEl:F,fromEl:X,originalEvent:e}),q({sortable:this,name:"sort",toEl:F,originalEvent:e})),G&&G.save()):ne!==Me&&ne>=0&&(q({sortable:this,name:"update",toEl:F,originalEvent:e}),q({sortable:this,name:"sort",toEl:F,originalEvent:e})),b.active&&((ne==null||ne===-1)&&(ne=Me,ve=He),q({sortable:this,name:"end",toEl:F,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Q("nulling",this),X=d=F=E=Ce=Y=rt=be=Se=ae=Ve=ne=ve=Me=He=Ae=We=G=Ze=b.dragged=b.ghost=b.clone=b.active=null,ft.forEach(function(e){e.checked=!0}),ft.length=Ct=_t=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":d&&(this._onDragOver(e),Yo(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,t=this.el.children,o=0,r=t.length,i=this.options;or.right+i||e.clientY>o.bottom&&e.clientX>o.left:e.clientY>r.bottom+i||e.clientX>o.right&&e.clientY>o.top}function Ho(e,n,t,o,r,i,a,s){var l=o?e.clientY:e.clientX,c=o?t.height:t.width,u=o?t.top:t.left,h=o?t.bottom:t.right,O=!1;if(!a){if(s&&itu+c*i/2:lh-it)return-We}else if(l>u+c*(1-r)/2&&lh-c*i/2)?l>u+c/2?1:-1:0}function Wo(e){return ie(d){v=W(v),s&&w.destroy(),s=new b(v,x())};Ne(()=>a,()=>{s&&Eo(x(),(v,f)=>{s==null||s.option(v,f)})},{deep:!0});const w={option:(v,f)=>s==null?void 0:s.option(v,f),destroy:()=>{s==null||s.destroy(),s=null},save:()=>s==null?void 0:s.save(),toArray:()=>s==null?void 0:s.toArray(),closest:(...v)=>s==null?void 0:s.closest(...v)},V=()=>w==null?void 0:w.option("disabled",!0),D=()=>w==null?void 0:w.option("disabled",!1);return Jo(()=>{l&&I()}),Ko(w.destroy),ke({start:I,pause:V,resume:D},w)}const Rt=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],Zo=["animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...Rt.map(e=>`on${e.replace(/^\S/,n=>n.toUpperCase())}`)],er=ht({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:Zo,emits:["update:modelValue",...Rt],setup(e,{slots:n,emit:t,expose:o,attrs:r}){const i=Rt.reduce((u,h)=>{const O=`on${h.replace(/^\S/,m=>m.toUpperCase())}`;return u[O]=m=>t(h,m),u},{}),a=je(()=>{const u=Rn(e),h=mn(u,["modelValue"]),O=Object.entries(h).reduce((m,[R,_])=>{const W=p(_);return W!==void 0&&(m[R]=W),m},{});return ke(ke({},i),po(ke(ke({},r),O)))}),s=je({get:()=>e.modelValue,set:u=>t("update:modelValue",u)}),l=Z(),c=Bn(Qo(e.target||l,s,a));return o(c),()=>{if(n.default)return Vn(e.tag||"div",{ref:l},n.default(c))}}}),tr={class:"flex items-center justify-between"},nr={class:"flex items-center justify-between"},or={key:0},rr={class:"flex items-center"},ir={class:"ml-12px cursor-move handle"},dn=ht({__name:"ColumnSetting",props:$t({columns:{type:Array,default:()=>[]}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:$t(["confirm"],["update:modelValue"]),setup(e,{emit:n}){const t=zn(e,"modelValue"),o=e,r=n,i=Z(),a=Z(),s=Z([]),l=Z([]),c=Z([]),u=Z(!1),h=Z(!0),O=x=>{c.value=x?p(l):[],h.value=!1},m=x=>{var w,V;const I=x.length;u.value=I===((w=p(l))==null?void 0:w.length),h.value=I>0&&I<((V=p(l))==null?void 0:V.length)},R=()=>{var I;const x=(I=Je(p(a)))==null?void 0:I.map(w=>{var D,v,f;const V=(v=(D=p(a))==null?void 0:D.find(T=>T.field===w.field))==null?void 0:v.fixed;return w.hidden=!((f=p(c))!=null&&f.includes(w.field)),w.fixed=V||void 0,w});r("confirm",[...p(s),...x||[]]),t.value=!1},_=()=>{W([...p(s),...p(i)||[]],!0)},W=(x,I=!1)=>{var V,D,v,f,T,C;const w=x==null?void 0:x.filter(S=>(I||(S.fixed=S.fixed!==void 0?S.fixed:void 0),S.type&&!Gt.includes(S.type)||!S.type));(V=p(i))!=null&&V.length||(i.value=Je(w)),a.value=Je(w),s.value=Je(x==null?void 0:x.filter(S=>S.type&&Gt.includes(S.type))),l.value=((D=p(a))==null?void 0:D.map(S=>S.field))||[],c.value=((f=(v=p(a))==null?void 0:v.filter(S=>!S.hidden))==null?void 0:f.map(S=>S.field))||[],((T=p(c))==null?void 0:T.length)===((C=p(l))==null?void 0:C.length)&&(u.value=!0,h.value=!1)};return Ne(()=>o.columns,x=>{W(x)},{immediate:!0,deep:!0}),(x,I)=>{const w=Fe;return qe(),Ln(p(qn),{modelValue:t.value,"onUpdate:modelValue":I[3]||(I[3]=V=>t.value=V),title:"列设置",size:"350px"},{footer:ee(()=>[De("div",null,[y(p(It),{onClick:_},{default:ee(()=>[Pe("还原")]),_:1}),y(p(It),{type:"primary",onClick:R},{default:ee(()=>[Pe("确定")]),_:1})])]),default:ee(()=>{var V;return[De("div",null,[De("div",tr,[De("div",nr,[y(p(qt),{modelValue:u.value,"onUpdate:modelValue":I[0]||(I[0]=D=>u.value=D),indeterminate:h.value,onChange:O},null,8,["modelValue","indeterminate"]),y(p(Kt),{class:"ml-8px!"},{default:ee(()=>{var D;return[Pe(vt(c.value.length)+" / "+vt((D=a.value)==null?void 0:D.length),1)]}),_:1})]),y(p(Kt),null,{default:ee(()=>[Pe("固定 / 排序")]),_:1})]),(V=a.value)!=null&&V.length?(qe(),bt("div",or,[y(p(er),{modelValue:a.value,"onUpdate:modelValue":I[2]||(I[2]=D=>a.value=D),target:".el-checkbox-group",handle:".handle",animation:150},{default:ee(()=>[y(p(Gn),{ref:"draggableWrap",modelValue:c.value,"onUpdate:modelValue":I[1]||(I[1]=D=>c.value=D),onChange:m},{default:ee(()=>[(qe(!0),bt(Vt,null,Hn(a.value,D=>(qe(),bt("div",{key:D.field,class:"flex items-center justify-between mt-12px"},[y(p(qt),{label:D.field},{default:ee(()=>[Pe(vt(D.label),1)]),_:2},1032,["label"]),De("div",rr,[y(p($n),{size:"small",modelValue:D.fixed,"onUpdate:modelValue":v=>D.fixed=v},{default:ee(()=>[y(p(yt),{label:"left"},{default:ee(()=>[y(w,{icon:"ep:arrow-left"})]),_:1}),y(p(yt),{label:void 0},{default:ee(()=>[y(w,{icon:"ep:close"})]),_:1}),y(p(yt),{label:"right"},{default:ee(()=>[y(w,{icon:"ep:arrow-right"})]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"]),De("div",ir,[y(w,{icon:"ep:rank"})])])]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])):Wn("",!0)])]}),_:1},8,["modelValue"])}}});function ar(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pn(e)}const lr=ht({name:"TableActions",components:{ColumnSetting:dn},props:{columns:{type:Array,default:()=>[]}},emits:["refresh","changSize","confirm"],setup(e,{emit:n}){const t=jn(),o=je(()=>t.sizeMap),r=Z(!1),i=()=>{n("refresh")},a=c=>{n("changSize",c)},s=c=>{n("confirm",c)},l=()=>{r.value=!0};return()=>y(Vt,null,[y("div",{class:"text-right h-28px flex items-center justify-end"},[y("div",{title:"刷新",class:"w-30px h-20px flex items-center justify-end",onClick:i},[y(Fe,{icon:"ant-design:sync-outlined",class:"cursor-pointer","hover-color":"var(--el-color-primary)"},null)]),y(Kn,{trigger:"click",onCommand:a},{default:()=>y("div",{title:"尺寸",class:"w-30px h-20px flex items-center justify-end"},[y(Fe,{icon:"ant-design:column-height-outlined",class:"cursor-pointer","hover-color":"var(--el-color-primary)"},null)]),dropdown:()=>y(Jn,null,{default:()=>p(o).map(c=>y(Qn,{key:c,command:c},ar(c)?c:{default:()=>[c]}))})}),y("div",{title:"列设置",class:"w-30px h-20px flex items-center justify-end",onClick:l},[y(Fe,{icon:"ant-design:setting-outlined",class:"cursor-pointer","hover-color":"var(--el-color-primary)"},null)])]),y(dn,{modelValue:r.value,"onUpdate:modelValue":c=>r.value=c,columns:e.columns,onConfirm:s},null)])}});function Pt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pn(e)}const Dr=ht({name:"Table",props:{pageSize:j.number.def(10),currentPage:j.number.def(1),showAction:j.bool.def(!1),showOverflowTooltip:j.bool.def(!0),columns:{type:Array,default:()=>[]},pagination:{type:Object,default:()=>{}},reserveSelection:j.bool.def(!1),loading:j.bool.def(!1),reserveIndex:j.bool.def(!1),align:j.string.validate(e=>["left","center","right"].includes(e)).def("left"),headerAlign:j.string.validate(e=>["left","center","right"].includes(e)).def("left"),data:{type:Array,default:()=>[]},imagePreview:{type:Array,default:()=>[]},videoPreview:{type:Array,default:()=>[]},height:j.oneOfType([Number,String]),maxHeight:j.oneOfType([Number,String]),stripe:j.bool.def(!1),border:j.bool.def(!0),size:{type:String,validator:e=>["default","small","large"].includes(e)},fit:j.bool.def(!0),showHeader:j.bool.def(!0),highlightCurrentRow:j.bool.def(!1),currentRowKey:j.oneOfType([Number,String]),rowClassName:{type:[Function,String],default:""},rowStyle:{type:[Function,Object],default:void 0},cellClassName:{type:[Function,String],default:""},cellStyle:{type:[Function,Object],default:void 0},headerRowClassName:{type:[Function,String],default:""},headerRowStyle:{type:[Function,Object],default:void 0},headerCellClassName:{type:[Function,String],default:""},headerCellStyle:{type:[Function,Object],default:void 0},rowKey:j.string.def("id"),emptyText:j.string.def("No Data"),defaultExpandAll:j.bool.def(!1),expandRowKeys:{type:Array,default:void 0},defaultSort:{type:Object,default:()=>({})},tooltipEffect:{type:String,default:"dark"},tooltipOptions:{type:Object,default:()=>({enterable:!0,placement:"top",showArrow:!0,hideAfter:200,popperOptions:{strategy:"fixed"}})},showSummary:j.bool.def(!1),sumText:j.string.def("Sum"),summaryMethod:{type:Function,default:void 0},spanMethod:{type:Function,default:void 0},selectOnIndeterminate:j.bool.def(!0),indent:j.number.def(16),lazy:j.bool.def(!1),load:{type:Function,default:void 0},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",label:"label"})},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:j.bool.def(!1),flexible:j.bool.def(!1),customContent:j.bool.def(!1),cardBodyStyle:{type:Object,default:()=>({})},cardBodyClass:{type:String,default:""},cardWrapStyle:{type:Object,default:()=>({})},cardWrapClass:{type:String,default:""}},emits:["update:pageSize","update:currentPage","register","refresh"],setup(e,{attrs:n,emit:t,slots:o,expose:r}){const i=Z();fn(()=>{const f=p(i);t("register",f==null?void 0:f.$parent,i)});const a=Z(e.pageSize),s=Z(e.currentPage),l=Z({}),c=Z({}),u=je(()=>{const f=me({},e);return Object.assign(f,p(c)),f}),h=(f={})=>{c.value=Object.assign(p(c),f),l.value=me({},f)},O=(f,T)=>{var S;const{columns:C}=p(u);for(const k of T||C)for(const B of f)k.field===B.field?ro(k,B.path,B.value):(S=k.children)!=null&&S.length&&O(f,k.children)},m=(f,T)=>{const{columns:C}=p(u);T!==void 0?C.splice(T,0,f):C.push(f)},R=f=>{const{columns:T}=p(u),C=T.findIndex(S=>S.field===f);C>-1&&T.splice(C,1)},_=()=>{t("refresh")},W=f=>{h({size:f})},x=f=>{h({columns:f})};r({setProps:h,setColumn:O,delColumn:R,addColumn:m,elTableRef:i});const I=je(()=>Object.assign({small:!1,background:!1,pagerCount:7,layout:"sizes, prev, pager, next, jumper, ->, total",pageSizes:[10,20,30,40,50,100],disabled:!1,hideOnSinglePage:!1,total:10},p(u).pagination));Ne(()=>p(u).pageSize,f=>{a.value=f}),Ne(()=>p(u).currentPage,f=>{s.value=f}),Ne(()=>a.value,f=>{t("update:pageSize",f)}),Ne(()=>s.value,f=>{t("update:currentPage",f)});const w=je(()=>{const f=me(me({},n),p(u));return delete f.columns,delete f.data,delete f.align,f}),V=f=>{const{align:T,headerAlign:C,showOverflowTooltip:S,imagePreview:k,videoPreview:B}=p(u);return f.map(M=>{var le;if(M.hidden)return null;const z=me({},M);z.children&&delete z.children;const K=M.children,J={default:(...A)=>{var _e,we;const re=A[0];let U=!1;return U=k.some(ge=>ge===M.field)||B.some(ge=>ge===M.field),K&&K.length?V(K):(_e=z==null?void 0:z.slots)!=null&&_e.default?z.slots.default(...A):M!=null&&M.formatter?(we=M==null?void 0:M.formatter)==null?void 0:we.call(M,re.row,re.column,Te(re.row,M.field),re.$index):U?D(Te(re.row,M.field),M.field):Te(re.row,M.field)}};return(le=z==null?void 0:z.slots)!=null&&le.header&&(J.header=(...A)=>z.slots.header(...A)),y(Qe,Ke({showOverflowTooltip:S,align:T,headerAlign:C},z,{prop:M.field}),Pt(J)?J:{default:()=>[J]})})},D=(f,T)=>{const{imagePreview:C,videoPreview:S}=p(u);return y("div",{class:"flex items-center"},[C.includes(T)?y(io,{src:f,fit:"cover",class:"w-[100%]",lazy:!0,"preview-src-list":[f],"preview-teleported":!0},null):S.includes(T)?y(It,{type:"primary",icon:y(Fe,{icon:"ep:video-play"},null),onClick:()=>{ao({url:f})}},{default:()=>[Pe("预览")]}):null])},v=f=>{const{columns:T,reserveIndex:C,pageSize:S,currentPage:k,align:B,headerAlign:M,showOverflowTooltip:z,reserveSelection:K,imagePreview:J,videoPreview:le}=p(u);return(f||T).map(A=>{var re;if(A.hidden)return null;if(A.type==="index")return y(Qe,{type:"index",index:A.index?A.index:U=>lo(C,U,S,k),align:A.align||B,headerAlign:A.headerAlign||M,label:A.label,fixed:A.fixed,width:"65px"},null);if(A.type==="selection")return y(Qe,{type:"selection",reserveSelection:K,align:B,headerAlign:M,selectable:A.selectable,width:"50"},null);{const U=me({},A);U.children&&delete U.children;const _e=A.children,we={default:(...ge)=>{var Lt,Ht;const xe=ge[0];let zt=!1;return zt=J.some(mt=>mt===A.field)||le.some(mt=>mt===A.field),_e&&_e.length?V(_e):(Lt=U==null?void 0:U.slots)!=null&&Lt.default?U.slots.default(...ge):A!=null&&A.formatter?(Ht=A==null?void 0:A.formatter)==null?void 0:Ht.call(A,xe.row,xe.column,Te(xe.row,A.field),xe.$index):zt?D(Te(xe.row,A.field),A.field):Te(xe.row,A.field)}};return(re=U==null?void 0:U.slots)!=null&&re.header&&(we.header=(...ge)=>U.slots.header(...ge)),y(Qe,Ke({showOverflowTooltip:z,align:B,headerAlign:M},U,{prop:A.field}),Pt(we)?we:{default:()=>[we]})}})};return()=>{var T,C,S;const f={};return de(o,"empty")&&(f.empty=(...k)=>de(o,"empty",k)),de(o,"append")&&(f.append=(...k)=>de(o,"append",k)),Un(y("div",null,[p(u).customContent?y("div",{class:"flex flex-wrap"},[(C=(T=p(u))==null?void 0:T.data)!=null&&C.length?(S=p(u))==null?void 0:S.data.map(k=>{const B={default:()=>de(o,"content",k)};return de(o,"content-header")&&(B.header=()=>de(o,"content-header",k)),de(o,"content-footer")&&(B.footer=()=>de(o,"content-footer",k)),y(eo,{shadow:"hover",class:p(u).cardWrapClass,style:p(u).cardWrapStyle,bodyClass:p(u).cardBodyClass,bodyStyle:p(u).cardBodyStyle},Pt(B)?B:{default:()=>[B]})}):y("div",{class:"flex flex-1 justify-center"},[y(to,{description:"暂无数据"},null)])]):y(Vt,null,[p(u).showAction&&!p(u).customContent?y(lr,{columns:p(u).columns,onChangSize:W,onRefresh:_,onConfirm:x},null):null,y(no,Ke({ref:i,data:p(u).data},p(w)),me({default:()=>v()},f))]),p(u).pagination?y(oo,Ke({pageSize:a.value,"onUpdate:pageSize":k=>a.value=k,currentPage:s.value,"onUpdate:currentPage":k=>s.value=k,class:"mt-10px"},p(I)),null):void 0]),[[Zn,p(u).loading]])}}});export{Dr as _}; diff --git a/assets/TableImagePreview-fZ9lNUzY.js b/assets/TableImagePreview-aDFKG0ny.js similarity index 75% rename from assets/TableImagePreview-fZ9lNUzY.js rename to assets/TableImagePreview-aDFKG0ny.js index 4615bb2f..60b253ba 100644 --- a/assets/TableImagePreview-fZ9lNUzY.js +++ b/assets/TableImagePreview-aDFKG0ny.js @@ -1 +1 @@ -var f=(n,m,a)=>new Promise((o,l)=>{var r=e=>{try{t(a.next(e))}catch(s){l(s)}},i=e=>{try{t(a.throw(e))}catch(s){l(s)}},t=e=>e.done?o(e.value):Promise.resolve(e.value).then(r,i);t((a=a.apply(n,m)).next())});import{_ as d}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as g}from"./Table.vue_vue_type_script_lang-DOZk-BCG.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css */import{g as u}from"./index-DVoP4cjT.js";/* empty css */import{C as b}from"./element-plus-6v3c1uXT.js";import{q as v,r as _,t as w,T,S as h,P as c,u as p}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import"./index-DlX4pwja.js";const K=v({__name:"TableImagePreview",setup(n){const m=[{field:"title",label:"标题"},{field:"image_uri",label:"封面"},{field:"author",label:"作者"},{field:"display_time",label:"创建时间"},{field:"importance",label:"重要性",formatter:(r,i,t)=>c(b,{type:t===1?"success":t===2?"warning":"danger"},{default:()=>[t===1?"重要":t===2?"良好":"一般"]})},{field:"pageviews",label:"阅读数"}],a=_(!0);let o=_([]);return(r=>f(this,null,function*(){const i=yield u(r||{pageIndex:1,pageSize:10}).catch(()=>{}).finally(()=>{a.value=!1});i&&(o.value=i.data.list)}))(),(r,i)=>(w(),T(p(d),{title:"表格图片预览"},{default:h(()=>[c(p(g),{columns:m,data:p(o),loading:a.value,"image-preview":["image_uri"]},null,8,["data","loading"])]),_:1}))}});export{K as default}; +var f=(n,m,a)=>new Promise((o,l)=>{var r=e=>{try{t(a.next(e))}catch(s){l(s)}},i=e=>{try{t(a.throw(e))}catch(s){l(s)}},t=e=>e.done?o(e.value):Promise.resolve(e.value).then(r,i);t((a=a.apply(n,m)).next())});import{_ as d}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as g}from"./Table.vue_vue_type_script_lang-BzBmZLp9.js";import"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css */import{g as u}from"./index-DB50Cmmr.js";/* empty css */import{C as b}from"./element-plus-6v3c1uXT.js";import{q as v,r as _,t as w,T,S as h,P as c,u as p}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import"./index-2gFf0KW4.js";const K=v({__name:"TableImagePreview",setup(n){const m=[{field:"title",label:"标题"},{field:"image_uri",label:"封面"},{field:"author",label:"作者"},{field:"display_time",label:"创建时间"},{field:"importance",label:"重要性",formatter:(r,i,t)=>c(b,{type:t===1?"success":t===2?"warning":"danger"},{default:()=>[t===1?"重要":t===2?"良好":"一般"]})},{field:"pageviews",label:"阅读数"}],a=_(!0);let o=_([]);return(r=>f(this,null,function*(){const i=yield u(r||{pageIndex:1,pageSize:10}).catch(()=>{}).finally(()=>{a.value=!1});i&&(o.value=i.data.list)}))(),(r,i)=>(w(),T(p(d),{title:"表格图片预览"},{default:h(()=>[c(p(g),{columns:m,data:p(o),loading:a.value,"image-preview":["image_uri"]},null,8,["data","loading"])]),_:1}))}});export{K as default}; diff --git a/assets/TableVideoPreview-BLFGgLVF.js b/assets/TableVideoPreview-uIFu_zG-.js similarity index 69% rename from assets/TableVideoPreview-BLFGgLVF.js rename to assets/TableVideoPreview-uIFu_zG-.js index 2a816090..8fcae7a9 100644 --- a/assets/TableVideoPreview-BLFGgLVF.js +++ b/assets/TableVideoPreview-uIFu_zG-.js @@ -1 +1 @@ -var d=(n,r,e)=>new Promise((a,l)=>{var o=t=>{try{m(e.next(t))}catch(s){l(s)}},i=t=>{try{m(e.throw(t))}catch(s){l(s)}},m=t=>t.done?a(t.value):Promise.resolve(t.value).then(o,i);m((e=e.apply(n,r)).next())});import{_ as f}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_}from"./Table.vue_vue_type_script_lang-DOZk-BCG.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css */import{g as u}from"./index-DVoP4cjT.js";import{q as g,r as c,t as b,T as v,S as w,P as T,u as p}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import"./index-DlX4pwja.js";const H=g({__name:"TableVideoPreview",setup(n){const r=[{field:"title",label:"标题"},{field:"video_uri",label:"视频预览"},{field:"author",label:"作者"},{field:"display_time",label:"创建时间"},{field:"pageviews",label:"阅读数"}],e=c(!0);let a=c([]);return(o=>d(this,null,function*(){const i=yield u(o||{pageIndex:1,pageSize:10}).catch(()=>{}).finally(()=>{e.value=!1});i&&(a.value=i.data.list)}))(),(o,i)=>(b(),v(p(f),{title:"表格图片预览"},{default:w(()=>[T(p(_),{columns:r,data:p(a),loading:e.value,"video-preview":["image_uri","video_uri"]},null,8,["data","loading"])]),_:1}))}});export{H as default}; +var d=(n,r,e)=>new Promise((a,l)=>{var o=t=>{try{m(e.next(t))}catch(s){l(s)}},i=t=>{try{m(e.throw(t))}catch(s){l(s)}},m=t=>t.done?a(t.value):Promise.resolve(t.value).then(o,i);m((e=e.apply(n,r)).next())});import{_ as f}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_}from"./Table.vue_vue_type_script_lang-BzBmZLp9.js";import"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css */import{g as u}from"./index-DB50Cmmr.js";import{q as g,r as c,t as b,T as v,S as w,P as T,u as p}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import"./index-2gFf0KW4.js";const H=g({__name:"TableVideoPreview",setup(n){const r=[{field:"title",label:"标题"},{field:"video_uri",label:"视频预览"},{field:"author",label:"作者"},{field:"display_time",label:"创建时间"},{field:"pageviews",label:"阅读数"}],e=c(!0);let a=c([]);return(o=>d(this,null,function*(){const i=yield u(o||{pageIndex:1,pageSize:10}).catch(()=>{}).finally(()=>{e.value=!1});i&&(a.value=i.data.list)}))(),(o,i)=>(b(),v(p(f),{title:"表格图片预览"},{default:w(()=>[T(p(_),{columns:r,data:p(a),loading:e.value,"video-preview":["image_uri","video_uri"]},null,8,["data","loading"])]),_:1}))}});export{H as default}; diff --git a/assets/Test-CjWai9x0.js b/assets/Test-DaedM19Y.js similarity index 91% rename from assets/Test-CjWai9x0.js rename to assets/Test-DaedM19Y.js index 033cad92..cac78ccb 100644 --- a/assets/Test-CjWai9x0.js +++ b/assets/Test-DaedM19Y.js @@ -1 +1 @@ -import{p as k,v as D}from"./index-CA0d6hyI.js";import{q as g,aA as V,d as P,u as e,H as T,Y as m,r as x,ap as A,t as o,T as p,S as t,P as r,W as a,a0 as f}from"./vue-chunks-DOWhatC1.js";import{_ as C}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";/* empty css *//* empty css */import{_ as i}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{q as c,n as y,k as n}from"./element-plus-6v3c1uXT.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const E=g({__name:"Permission",props:{permission:k.string.def()},setup(d){const{currentRoute:u}=V(),h=d,w=P(()=>{var s,_;return((_=(s=e(u))==null?void 0:s.meta)==null?void 0:_.permission)||[]}),l=P(()=>{const s=e(h.permission);return s?e(w).includes(s):!0});return(s,_)=>l.value?T(s.$slots,"default",{key:0}):m("",!0)}}),v=d=>{const u=D.currentRoute.value.meta.permission||[];if(!d)throw new Error("请设置操作权限值");return!!u.includes(d)},j=g({__name:"Test",setup(d){const u=x("add");return setTimeout(()=>{u.value="view"},3e3),(h,w)=>{const l=E,s=A("hasPermi");return o(),p(e(C),null,{default:t(()=>[r(e(c),null,{default:t(()=>[a("组件方式判断(已经全局注册,支持动态修改)")]),_:1}),r(e(y),{gutter:20},{default:t(()=>[r(e(n),{span:8},{default:t(()=>[a(" 新增权限: "),r(l,{permission:"add"},{default:t(()=>[r(e(i),{type:"primary"},{default:t(()=>[a(" Add ")]),_:1})]),_:1})]),_:1}),r(e(n),{span:8},{default:t(()=>[a(" 删除权限: "),r(l,{permission:"delete"},{default:t(()=>[r(e(i),{type:"danger"},{default:t(()=>[a(" Delete ")]),_:1})]),_:1})]),_:1}),r(e(n),{span:8},{default:t(()=>[a(" 3秒后切换查看权限: "),r(l,{permission:u.value},{default:t(()=>[r(e(i),{type:"primary"},{default:t(()=>[a(" View ")]),_:1})]),_:1},8,["permission"])]),_:1})]),_:1}),r(e(c),null,{default:t(()=>[a("指令方式判断(已经全局注册,不支持动态修改)")]),_:1}),r(e(y),{gutter:20},{default:t(()=>[r(e(n),{span:8},{default:t(()=>[a(" 新增权限: "),f((o(),p(e(i),{type:"primary"},{default:t(()=>[a(" Add ")]),_:1})),[[s,"add"]])]),_:1}),r(e(n),{span:8},{default:t(()=>[a(" 删除权限: "),f((o(),p(e(i),{type:"danger"},{default:t(()=>[a(" Delete ")]),_:1})),[[s,"delete"]])]),_:1}),r(e(n),{span:8},{default:t(()=>[a(" 3秒后切换查看权限(无法动态修改): "),f((o(),p(e(i),{type:"primary"},{default:t(()=>[a(" View ")]),_:1})),[[s,u.value]])]),_:1})]),_:1}),r(e(c),null,{default:t(()=>[a("函数方式判断")]),_:1}),r(e(y),{gutter:20},{default:t(()=>[r(e(n),{span:8},{default:t(()=>[a(" 新增权限: "),e(v)("add")?(o(),p(e(i),{key:0,type:"primary"},{default:t(()=>[a(" Add ")]),_:1})):m("",!0)]),_:1}),r(e(n),{span:8},{default:t(()=>[a(" 删除权限: "),e(v)("delete")?(o(),p(e(i),{key:0,type:"danger"},{default:t(()=>[a(" Delete ")]),_:1})):m("",!0)]),_:1}),r(e(n),{span:8},{default:t(()=>[a(" 3秒后切换查看权限: "),e(v)(e(u.value))?(o(),p(e(i),{key:0,type:"primary"},{default:t(()=>[a(" View ")]),_:1})):m("",!0)]),_:1})]),_:1})]),_:1})}}});export{j as default}; +import{p as k,v as D}from"./index-B5z15nYm.js";import{q as g,aA as V,d as P,u as e,H as T,Y as m,r as x,ap as A,t as o,T as p,S as t,P as r,W as a,a0 as f}from"./vue-chunks-DOWhatC1.js";import{_ as C}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";/* empty css *//* empty css */import{_ as i}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{q as c,n as y,k as n}from"./element-plus-6v3c1uXT.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const E=g({__name:"Permission",props:{permission:k.string.def()},setup(d){const{currentRoute:u}=V(),h=d,w=P(()=>{var s,_;return((_=(s=e(u))==null?void 0:s.meta)==null?void 0:_.permission)||[]}),l=P(()=>{const s=e(h.permission);return s?e(w).includes(s):!0});return(s,_)=>l.value?T(s.$slots,"default",{key:0}):m("",!0)}}),v=d=>{const u=D.currentRoute.value.meta.permission||[];if(!d)throw new Error("请设置操作权限值");return!!u.includes(d)},j=g({__name:"Test",setup(d){const u=x("add");return setTimeout(()=>{u.value="view"},3e3),(h,w)=>{const l=E,s=A("hasPermi");return o(),p(e(C),null,{default:t(()=>[r(e(c),null,{default:t(()=>[a("组件方式判断(已经全局注册,支持动态修改)")]),_:1}),r(e(y),{gutter:20},{default:t(()=>[r(e(n),{span:8},{default:t(()=>[a(" 新增权限: "),r(l,{permission:"add"},{default:t(()=>[r(e(i),{type:"primary"},{default:t(()=>[a(" Add ")]),_:1})]),_:1})]),_:1}),r(e(n),{span:8},{default:t(()=>[a(" 删除权限: "),r(l,{permission:"delete"},{default:t(()=>[r(e(i),{type:"danger"},{default:t(()=>[a(" Delete ")]),_:1})]),_:1})]),_:1}),r(e(n),{span:8},{default:t(()=>[a(" 3秒后切换查看权限: "),r(l,{permission:u.value},{default:t(()=>[r(e(i),{type:"primary"},{default:t(()=>[a(" View ")]),_:1})]),_:1},8,["permission"])]),_:1})]),_:1}),r(e(c),null,{default:t(()=>[a("指令方式判断(已经全局注册,不支持动态修改)")]),_:1}),r(e(y),{gutter:20},{default:t(()=>[r(e(n),{span:8},{default:t(()=>[a(" 新增权限: "),f((o(),p(e(i),{type:"primary"},{default:t(()=>[a(" Add ")]),_:1})),[[s,"add"]])]),_:1}),r(e(n),{span:8},{default:t(()=>[a(" 删除权限: "),f((o(),p(e(i),{type:"danger"},{default:t(()=>[a(" Delete ")]),_:1})),[[s,"delete"]])]),_:1}),r(e(n),{span:8},{default:t(()=>[a(" 3秒后切换查看权限(无法动态修改): "),f((o(),p(e(i),{type:"primary"},{default:t(()=>[a(" View ")]),_:1})),[[s,u.value]])]),_:1})]),_:1}),r(e(c),null,{default:t(()=>[a("函数方式判断")]),_:1}),r(e(y),{gutter:20},{default:t(()=>[r(e(n),{span:8},{default:t(()=>[a(" 新增权限: "),e(v)("add")?(o(),p(e(i),{key:0,type:"primary"},{default:t(()=>[a(" Add ")]),_:1})):m("",!0)]),_:1}),r(e(n),{span:8},{default:t(()=>[a(" 删除权限: "),e(v)("delete")?(o(),p(e(i),{key:0,type:"danger"},{default:t(()=>[a(" Delete ")]),_:1})):m("",!0)]),_:1}),r(e(n),{span:8},{default:t(()=>[a(" 3秒后切换查看权限: "),e(v)(e(u.value))?(o(),p(e(i),{key:0,type:"primary"},{default:t(()=>[a(" View ")]),_:1})):m("",!0)]),_:1})]),_:1})]),_:1})}}});export{j as default}; diff --git a/assets/ThemeSwitch-INxyZ6i5.js b/assets/ThemeSwitch-Dfovu-Fl.js similarity index 78% rename from assets/ThemeSwitch-INxyZ6i5.js rename to assets/ThemeSwitch-Dfovu-Fl.js index 1a4b38a6..95634764 100644 --- a/assets/ThemeSwitch-INxyZ6i5.js +++ b/assets/ThemeSwitch-Dfovu-Fl.js @@ -1 +1 @@ -import{u as f}from"./index-CA0d6hyI.js";import"./Form-DJ57xbBt.js";import{u as a}from"./useIcon-Bk4x_lwM.js";import{Q as h}from"./element-plus-6v3c1uXT.js";import{q as _,r as d,t as v,T as k,u as e}from"./vue-chunks-DOWhatC1.js";import{_ as S}from"./Icon-Bwi9LaBZ.js";const t="var(--el-color-black)",g=_({__name:"ThemeSwitch",emits:["change"],setup(C,{emit:s}){const i=s,m=a({icon:"emojione-monotone:sun",color:"#fde047"}),l=a({icon:"emojione-monotone:crescent-moon",color:"#fde047"}),n=f(),c=d(n.getIsDark),p=o=>{n.setIsDark(o),i("change",o)};return(o,r)=>(v(),k(e(h),{class:"theme-switch",modelValue:c.value,"onUpdate:modelValue":r[0]||(r[0]=u=>c.value=u),"inline-prompt":"","border-color":t,"inactive-color":t,"active-color":t,"active-icon":e(m),"inactive-icon":e(l),onChange:p},null,8,["modelValue","active-icon","inactive-icon"]))}}),V=S(g,[["__scopeId","data-v-f475567a"]]);export{V as T}; +import{u as f}from"./index-B5z15nYm.js";import"./Form-B3fdtaFM.js";import{u as a}from"./useIcon-Dzh8BHEZ.js";import{Q as h}from"./element-plus-6v3c1uXT.js";import{q as _,r as d,t as v,T as k,u as e}from"./vue-chunks-DOWhatC1.js";import{_ as S}from"./Icon-B-0CON7P.js";const t="var(--el-color-black)",g=_({__name:"ThemeSwitch",emits:["change"],setup(C,{emit:s}){const i=s,m=a({icon:"emojione-monotone:sun",color:"#fde047"}),l=a({icon:"emojione-monotone:crescent-moon",color:"#fde047"}),n=f(),c=d(n.getIsDark),p=o=>{n.setIsDark(o),i("change",o)};return(o,r)=>(v(),k(e(h),{class:"theme-switch",modelValue:c.value,"onUpdate:modelValue":r[0]||(r[0]=u=>c.value=u),"inline-prompt":"","border-color":t,"inactive-color":t,"active-color":t,"active-icon":e(m),"inactive-icon":e(l),onChange:p},null,8,["modelValue","active-icon","inactive-icon"]))}}),V=S(g,[["__scopeId","data-v-f475567a"]]);export{V as T}; diff --git a/assets/TreeTable-MkFKx_LP.js b/assets/TreeTable-B2gHEPX4.js similarity index 76% rename from assets/TreeTable-MkFKx_LP.js rename to assets/TreeTable-B2gHEPX4.js index f10e78ae..c39fb201 100644 --- a/assets/TreeTable-MkFKx_LP.js +++ b/assets/TreeTable-B2gHEPX4.js @@ -1 +1 @@ -var g=(u,m,i)=>new Promise((d,p)=>{var c=a=>{try{o(i.next(a))}catch(s){p(s)}},l=a=>{try{o(i.throw(a))}catch(s){p(s)}},o=a=>a.done?d(a.value):Promise.resolve(a.value).then(c,l);o((i=i.apply(u,m)).next())});import{_ as b}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as T}from"./Table.vue_vue_type_script_lang-DOZk-BCG.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css */import{a as x}from"./index-DVoP4cjT.js";/* empty css */import{u as y}from"./useTable-BTK3WtdF.js";import{_ as S}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{C as z}from"./element-plus-6v3c1uXT.js";import{q as C,K as P,P as f,W as v,t as w,T as k,S as R,u as t,i as _}from"./vue-chunks-DOWhatC1.js";import{_ as $}from"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css */import"./index-DlX4pwja.js";const A=C({__name:"TreeTable",setup(u){const{tableRegister:m,tableState:i}=y({fetchDataApi:()=>g(this,null,function*(){const{currentPage:r,pageSize:n}=i,e=yield x({pageIndex:t(r),pageSize:t(n)});return{list:e.data.list,total:e.data.total}})}),{loading:d,dataList:p,total:c,currentPage:l,pageSize:o}=i,a=P([{field:"selection",type:"selection"},{field:"index",label:"序号",type:"index"},{field:"content",label:"头部",children:[{field:"title",label:"标题"},{field:"author",label:"作者"},{field:"display_time",label:"创建时间"},{field:"importance",label:"重要性",formatter:(r,n,e)=>f(z,{type:e===1?"success":e===2?"warning":"danger"},{default:()=>[e===1?"重要":e===2?"良好":"一般"]})},{field:"pageviews",label:"阅读数"}]},{field:"action",label:"操作",slots:{default:r=>f(S,{type:"primary",onClick:()=>s(r)},{default:()=>[v("操作")]})}}]),s=r=>{};return(r,n)=>(w(),k(t(b),{title:"树形表格 示例"},{default:R(()=>[f(t(T),{pageSize:t(o),"onUpdate:pageSize":n[0]||(n[0]=e=>_(o)?o.value=e:null),currentPage:t(l),"onUpdate:currentPage":n[1]||(n[1]=e=>_(l)?l.value=e:null),columns:a,data:t(p),"row-key":"id",loading:t(d),sortable:"",pagination:{total:t(c)},onRegister:t(m)},null,8,["pageSize","currentPage","columns","data","loading","pagination","onRegister"])]),_:1}))}}),V=$(A,[["__scopeId","data-v-047b7751"]]);export{V as default}; +var g=(u,m,i)=>new Promise((d,p)=>{var c=a=>{try{o(i.next(a))}catch(s){p(s)}},l=a=>{try{o(i.throw(a))}catch(s){p(s)}},o=a=>a.done?d(a.value):Promise.resolve(a.value).then(c,l);o((i=i.apply(u,m)).next())});import{_ as b}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as T}from"./Table.vue_vue_type_script_lang-BzBmZLp9.js";import"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css */import{a as x}from"./index-DB50Cmmr.js";/* empty css */import{u as y}from"./useTable-B7CCRTD1.js";import{_ as S}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{C as z}from"./element-plus-6v3c1uXT.js";import{q as C,K as P,P as f,W as v,t as w,T as k,S as R,u as t,i as _}from"./vue-chunks-DOWhatC1.js";import{_ as $}from"./Icon-B-0CON7P.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css */import"./index-2gFf0KW4.js";const A=C({__name:"TreeTable",setup(u){const{tableRegister:m,tableState:i}=y({fetchDataApi:()=>g(this,null,function*(){const{currentPage:r,pageSize:n}=i,e=yield x({pageIndex:t(r),pageSize:t(n)});return{list:e.data.list,total:e.data.total}})}),{loading:d,dataList:p,total:c,currentPage:l,pageSize:o}=i,a=P([{field:"selection",type:"selection"},{field:"index",label:"序号",type:"index"},{field:"content",label:"头部",children:[{field:"title",label:"标题"},{field:"author",label:"作者"},{field:"display_time",label:"创建时间"},{field:"importance",label:"重要性",formatter:(r,n,e)=>f(z,{type:e===1?"success":e===2?"warning":"danger"},{default:()=>[e===1?"重要":e===2?"良好":"一般"]})},{field:"pageviews",label:"阅读数"}]},{field:"action",label:"操作",slots:{default:r=>f(S,{type:"primary",onClick:()=>s(r)},{default:()=>[v("操作")]})}}]),s=r=>{};return(r,n)=>(w(),k(t(b),{title:"树形表格 示例"},{default:R(()=>[f(t(T),{pageSize:t(o),"onUpdate:pageSize":n[0]||(n[0]=e=>_(o)?o.value=e:null),currentPage:t(l),"onUpdate:currentPage":n[1]||(n[1]=e=>_(l)?l.value=e:null),columns:a,data:t(p),"row-key":"id",loading:t(d),sortable:"",pagination:{total:t(c)},onRegister:t(m)},null,8,["pageSize","currentPage","columns","data","loading","pagination","onRegister"])]),_:1}))}}),V=$(A,[["__scopeId","data-v-047b7751"]]);export{V as default}; diff --git a/assets/UseFormDemo-mwmvv6Aa.js b/assets/UseFormDemo-Bw7a92Lx.js similarity index 88% rename from assets/UseFormDemo-mwmvv6Aa.js rename to assets/UseFormDemo-Bw7a92Lx.js index 13113cda..e59d6e87 100644 --- a/assets/UseFormDemo-mwmvv6Aa.js +++ b/assets/UseFormDemo-Bw7a92Lx.js @@ -1 +1 @@ -var r=(w,v,u)=>new Promise((b,c)=>{var g=d=>{try{p(u.next(d))}catch(f){c(f)}},h=d=>{try{p(u.throw(d))}catch(f){c(f)}},p=d=>d.done?b(d.value):Promise.resolve(d.value).then(g,h);p((u=u.apply(w,v)).next())});import{F as j}from"./Form-DJ57xbBt.js";import{_ as F}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{u as q}from"./useForm-CbOF_UB2.js";import"./index-CA0d6hyI.js";import{u as A}from"./useValidator-Nt61Jv1p.js";import{g as G}from"./index-DxxgNbTS.js";import{_ as i}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{j as K,E as N}from"./element-plus-6v3c1uXT.js";import{q as O,K as Q,P as t,W as a,r as H,t as J,v as X,S as n,u as o,Q as Y}from"./vue-chunks-DOWhatC1.js";import{_ as Z}from"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css *//* empty css */const ee=O({__name:"UseFormDemo",setup(w){const{required:v}=A(),u=[{value:"1",label:"Level one 1",children:[{value:"1-1",label:"Level two 1-1",children:[{value:"1-1-1",label:"Level three 1-1-1"}]}]},{value:"2",label:"Level one 2",children:[{value:"2-1",label:"Level two 2-1",children:[{value:"2-1-1",label:"Level three 2-1-1"}]},{value:"2-2",label:"Level two 2-2",children:[{value:"2-2-1",label:"Level three 2-2-1"}]}]},{value:"3",label:"Level one 3",children:[{value:"3-1",label:"Level two 3-1",children:[{value:"3-1-1",label:"Level three 3-1-1"}]},{value:"3-2",label:"Level two 3-2",children:[{value:"3-2-1",label:"Level three 3-2-1"}]}]}],b=()=>new Promise(e=>{setTimeout(()=>{e(u)},3e3)}),c=Q([{field:"field1",label:"输入框",component:"Input",formItemProps:{rules:[v()]}},{field:"field2",label:"选择器",component:"Select",componentProps:{options:[{label:"option1",value:"1"},{label:"option2",value:"2"}]},formItemProps:{rules:[v()]}},{field:"field3",label:"单选框",component:"RadioGroup",hidden:!0,value:"1",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}]}},{field:"field4",label:"多选框",component:"CheckboxGroup",value:["1"],remove:!0,componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"},{label:"option-3",value:"3"}]}},{field:"field5",component:"DatePicker",label:"日期选择器",componentProps:{type:"date"}},{field:"field6",component:"TimeSelect",label:"时间选择"},{field:"field7",label:"树形选择器",component:"TreeSelect",optionApi:()=>r(this,null,function*(){return yield b()})},{field:"field8",component:"Upload",label:"默认",componentProps:{limit:3,action:"https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",multiple:!0,onPreview:e=>{},onRemove:e=>{},beforeRemove:e=>K.confirm(`Cancel the transfer of ${e.name} ?`).then(()=>!0,()=>!1),onExceed:(e,l)=>{N.warning(`The limit is 3, you selected ${e.length} files this time, add up to ${e.length+l.length} totally`)},slots:{default:()=>t(i,{type:"primary"},{default:()=>[a("Click to upload")]}),tip:()=>t("div",{class:"el-upload__tip"},[a("jpg/png files with a size less than 500KB.")])}}}]),{formRegister:g,formMethods:h}=q(),{setProps:p,delSchema:d,addSchema:f,setValues:x,setSchema:_,getComponentExpose:$,getFormItemExpose:V,getElFormExpose:k,getFormData:C}=h,y=e=>{p({labelWidth:e})},L=e=>{p({size:e})},P=e=>{p({disabled:e})},D=e=>{e?d("field2"):!e&&c[1].field!=="field2"&&f({field:"field2",label:"选择器",component:"Select",componentProps:{options:[{label:"option1",value:"1"},{label:"option2",value:"2"}]}},1)},S=e=>r(this,null,function*(){const l=yield k();if(e)l==null||l.resetFields();else{x({field1:"field1",field2:"2",field3:"2",field4:["1","3"],field5:"2022-01-27",field6:"17:00",field8:[{name:"element-plus-logo.svg",url:"https://element-plus.org/images/element-plus-logo.svg"},{name:"element-plus-logo2.svg",url:"https://element-plus.org/images/element-plus-logo.svg"}]});const s=yield C()}}),m=H(7),I=()=>{_([{field:"field2",path:"label",value:`选择器 ${m.value}`},{field:"field2",path:"componentProps.options",value:[{label:"option-1",value:"1"},{label:"option-2",value:"2"},{label:"option-3",value:"3"}]}]),m.value++},R=()=>{o(m)%2===0?f({field:`field${o(m)}`,label:`输入框${o(m)}`,component:"Input"}):f({field:`field${o(m)}`,label:`输入框${o(m)}`,component:"Input"},o(m)),m.value++},T=()=>r(this,null,function*(){const e=yield k();e==null||e.validate(l=>{})}),U=()=>r(this,null,function*(){const e=yield k();e==null||e.resetFields()}),W=()=>r(this,null,function*(){const e=yield G();e&&_([{field:"field2",path:"componentProps.options",value:e.data}])}),z=()=>r(this,null,function*(){const e=yield $("field1");e==null||e.focus()}),B=()=>r(this,null,function*(){const e=yield V("field1"),l=yield $("field1");l==null||l.focus(),e==null||e.validate("focus",s=>{})}),E=(e,l,s)=>{};setTimeout(()=>r(this,null,function*(){const e=yield C()}),2e3);const M=()=>r(this,null,function*(){const e=yield C()});return(e,l)=>(J(),X(Y,null,[t(o(F),{title:"UseForm 操作",style:{"margin-bottom":"20px"}},{default:n(()=>[t(o(i),{onClick:l[0]||(l[0]=s=>y(150))},{default:n(()=>[a("更改 labelWidth")]),_:1}),t(o(i),{onClick:l[1]||(l[1]=s=>y("auto"))},{default:n(()=>[a("还原 labelWidth")]),_:1}),t(o(i),{onClick:l[2]||(l[2]=s=>L("large"))},{default:n(()=>[a("更改 size")]),_:1}),t(o(i),{onClick:l[3]||(l[3]=s=>L("default"))},{default:n(()=>[a("还原 size")]),_:1}),t(o(i),{onClick:l[4]||(l[4]=s=>P(!0))},{default:n(()=>[a("禁用")]),_:1}),t(o(i),{onClick:l[5]||(l[5]=s=>P(!1))},{default:n(()=>[a("解除禁用")]),_:1}),t(o(i),{onClick:l[6]||(l[6]=s=>D(!0))},{default:n(()=>[a(" 删除 选择器 ")]),_:1}),t(o(i),{onClick:l[7]||(l[7]=s=>D(!1))},{default:n(()=>[a(" 添加 选择器 ")]),_:1}),t(o(i),{onClick:l[8]||(l[8]=s=>S(!1))},{default:n(()=>[a("设置值")]),_:1}),t(o(i),{onClick:l[9]||(l[9]=s=>S(!0))},{default:n(()=>[a("重置值")]),_:1}),t(o(i),{onClick:I},{default:n(()=>[a(" 设置 选择器 label ")]),_:1}),t(o(i),{onClick:R},{default:n(()=>[a(" 添加 子项 ")]),_:1}),t(o(i),{onClick:T},{default:n(()=>[a(" 表单验证 ")]),_:1}),t(o(i),{onClick:U},{default:n(()=>[a(" 验证重置 ")]),_:1}),t(o(i),{onClick:W},{default:n(()=>[a(" 选择器 动态选项 ")]),_:1}),t(o(i),{onClick:z},{default:n(()=>[a(" 输入框 聚焦 ")]),_:1}),t(o(i),{onClick:B},{default:n(()=>[a(" 输入框 表单验证 ")]),_:1}),t(o(i),{onClick:M},{default:n(()=>[a(" 获取值 ")]),_:1})]),_:1}),t(o(F),{title:"UseForm 示例"},{default:n(()=>[t(o(j),{schema:c,onRegister:o(g),onValidate:E},null,8,["schema","onRegister"])]),_:1})],64))}}),xe=Z(ee,[["__scopeId","data-v-41286e55"]]);export{xe as default}; +var r=(w,v,u)=>new Promise((b,c)=>{var g=d=>{try{p(u.next(d))}catch(f){c(f)}},h=d=>{try{p(u.throw(d))}catch(f){c(f)}},p=d=>d.done?b(d.value):Promise.resolve(d.value).then(g,h);p((u=u.apply(w,v)).next())});import{F as j}from"./Form-B3fdtaFM.js";import{_ as F}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{u as q}from"./useForm-BIADJKAv.js";import"./index-B5z15nYm.js";import{u as A}from"./useValidator-Nt61Jv1p.js";import{g as G}from"./index-Dt71D4p1.js";import{_ as i}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{j as K,E as N}from"./element-plus-6v3c1uXT.js";import{q as O,K as Q,P as t,W as a,r as H,t as J,v as X,S as n,u as o,Q as Y}from"./vue-chunks-DOWhatC1.js";import{_ as Z}from"./Icon-B-0CON7P.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css *//* empty css */const ee=O({__name:"UseFormDemo",setup(w){const{required:v}=A(),u=[{value:"1",label:"Level one 1",children:[{value:"1-1",label:"Level two 1-1",children:[{value:"1-1-1",label:"Level three 1-1-1"}]}]},{value:"2",label:"Level one 2",children:[{value:"2-1",label:"Level two 2-1",children:[{value:"2-1-1",label:"Level three 2-1-1"}]},{value:"2-2",label:"Level two 2-2",children:[{value:"2-2-1",label:"Level three 2-2-1"}]}]},{value:"3",label:"Level one 3",children:[{value:"3-1",label:"Level two 3-1",children:[{value:"3-1-1",label:"Level three 3-1-1"}]},{value:"3-2",label:"Level two 3-2",children:[{value:"3-2-1",label:"Level three 3-2-1"}]}]}],b=()=>new Promise(e=>{setTimeout(()=>{e(u)},3e3)}),c=Q([{field:"field1",label:"输入框",component:"Input",formItemProps:{rules:[v()]}},{field:"field2",label:"选择器",component:"Select",componentProps:{options:[{label:"option1",value:"1"},{label:"option2",value:"2"}]},formItemProps:{rules:[v()]}},{field:"field3",label:"单选框",component:"RadioGroup",hidden:!0,value:"1",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}]}},{field:"field4",label:"多选框",component:"CheckboxGroup",value:["1"],remove:!0,componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"},{label:"option-3",value:"3"}]}},{field:"field5",component:"DatePicker",label:"日期选择器",componentProps:{type:"date"}},{field:"field6",component:"TimeSelect",label:"时间选择"},{field:"field7",label:"树形选择器",component:"TreeSelect",optionApi:()=>r(this,null,function*(){return yield b()})},{field:"field8",component:"Upload",label:"默认",componentProps:{limit:3,action:"https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",multiple:!0,onPreview:e=>{},onRemove:e=>{},beforeRemove:e=>K.confirm(`Cancel the transfer of ${e.name} ?`).then(()=>!0,()=>!1),onExceed:(e,l)=>{N.warning(`The limit is 3, you selected ${e.length} files this time, add up to ${e.length+l.length} totally`)},slots:{default:()=>t(i,{type:"primary"},{default:()=>[a("Click to upload")]}),tip:()=>t("div",{class:"el-upload__tip"},[a("jpg/png files with a size less than 500KB.")])}}}]),{formRegister:g,formMethods:h}=q(),{setProps:p,delSchema:d,addSchema:f,setValues:x,setSchema:_,getComponentExpose:$,getFormItemExpose:V,getElFormExpose:k,getFormData:C}=h,y=e=>{p({labelWidth:e})},L=e=>{p({size:e})},P=e=>{p({disabled:e})},D=e=>{e?d("field2"):!e&&c[1].field!=="field2"&&f({field:"field2",label:"选择器",component:"Select",componentProps:{options:[{label:"option1",value:"1"},{label:"option2",value:"2"}]}},1)},S=e=>r(this,null,function*(){const l=yield k();if(e)l==null||l.resetFields();else{x({field1:"field1",field2:"2",field3:"2",field4:["1","3"],field5:"2022-01-27",field6:"17:00",field8:[{name:"element-plus-logo.svg",url:"https://element-plus.org/images/element-plus-logo.svg"},{name:"element-plus-logo2.svg",url:"https://element-plus.org/images/element-plus-logo.svg"}]});const s=yield C()}}),m=H(7),I=()=>{_([{field:"field2",path:"label",value:`选择器 ${m.value}`},{field:"field2",path:"componentProps.options",value:[{label:"option-1",value:"1"},{label:"option-2",value:"2"},{label:"option-3",value:"3"}]}]),m.value++},R=()=>{o(m)%2===0?f({field:`field${o(m)}`,label:`输入框${o(m)}`,component:"Input"}):f({field:`field${o(m)}`,label:`输入框${o(m)}`,component:"Input"},o(m)),m.value++},T=()=>r(this,null,function*(){const e=yield k();e==null||e.validate(l=>{})}),U=()=>r(this,null,function*(){const e=yield k();e==null||e.resetFields()}),W=()=>r(this,null,function*(){const e=yield G();e&&_([{field:"field2",path:"componentProps.options",value:e.data}])}),z=()=>r(this,null,function*(){const e=yield $("field1");e==null||e.focus()}),B=()=>r(this,null,function*(){const e=yield V("field1"),l=yield $("field1");l==null||l.focus(),e==null||e.validate("focus",s=>{})}),E=(e,l,s)=>{};setTimeout(()=>r(this,null,function*(){const e=yield C()}),2e3);const M=()=>r(this,null,function*(){const e=yield C()});return(e,l)=>(J(),X(Y,null,[t(o(F),{title:"UseForm 操作",style:{"margin-bottom":"20px"}},{default:n(()=>[t(o(i),{onClick:l[0]||(l[0]=s=>y(150))},{default:n(()=>[a("更改 labelWidth")]),_:1}),t(o(i),{onClick:l[1]||(l[1]=s=>y("auto"))},{default:n(()=>[a("还原 labelWidth")]),_:1}),t(o(i),{onClick:l[2]||(l[2]=s=>L("large"))},{default:n(()=>[a("更改 size")]),_:1}),t(o(i),{onClick:l[3]||(l[3]=s=>L("default"))},{default:n(()=>[a("还原 size")]),_:1}),t(o(i),{onClick:l[4]||(l[4]=s=>P(!0))},{default:n(()=>[a("禁用")]),_:1}),t(o(i),{onClick:l[5]||(l[5]=s=>P(!1))},{default:n(()=>[a("解除禁用")]),_:1}),t(o(i),{onClick:l[6]||(l[6]=s=>D(!0))},{default:n(()=>[a(" 删除 选择器 ")]),_:1}),t(o(i),{onClick:l[7]||(l[7]=s=>D(!1))},{default:n(()=>[a(" 添加 选择器 ")]),_:1}),t(o(i),{onClick:l[8]||(l[8]=s=>S(!1))},{default:n(()=>[a("设置值")]),_:1}),t(o(i),{onClick:l[9]||(l[9]=s=>S(!0))},{default:n(()=>[a("重置值")]),_:1}),t(o(i),{onClick:I},{default:n(()=>[a(" 设置 选择器 label ")]),_:1}),t(o(i),{onClick:R},{default:n(()=>[a(" 添加 子项 ")]),_:1}),t(o(i),{onClick:T},{default:n(()=>[a(" 表单验证 ")]),_:1}),t(o(i),{onClick:U},{default:n(()=>[a(" 验证重置 ")]),_:1}),t(o(i),{onClick:W},{default:n(()=>[a(" 选择器 动态选项 ")]),_:1}),t(o(i),{onClick:z},{default:n(()=>[a(" 输入框 聚焦 ")]),_:1}),t(o(i),{onClick:B},{default:n(()=>[a(" 输入框 表单验证 ")]),_:1}),t(o(i),{onClick:M},{default:n(()=>[a(" 获取值 ")]),_:1})]),_:1}),t(o(F),{title:"UseForm 示例"},{default:n(()=>[t(o(j),{schema:c,onRegister:o(g),onValidate:E},null,8,["schema","onRegister"])]),_:1})],64))}}),xe=Z(ee,[["__scopeId","data-v-41286e55"]]);export{xe as default}; diff --git a/assets/UseTableDemo-DfFWz8wl.js b/assets/UseTableDemo-CG_waIQy.js similarity index 67% rename from assets/UseTableDemo-DfFWz8wl.js rename to assets/UseTableDemo-CG_waIQy.js index 3803a8c6..b63b63a5 100644 --- a/assets/UseTableDemo-DfFWz8wl.js +++ b/assets/UseTableDemo-CG_waIQy.js @@ -1 +1 @@ -var g=(S,v,p)=>new Promise((m,c)=>{var C=r=>{try{d(p.next(r))}catch(u){c(u)}},_=r=>{try{d(p.throw(r))}catch(u){c(u)}},d=r=>r.done?m(r.value):Promise.resolve(r.value).then(C,_);d((p=p.apply(S,v)).next())});import{_ as E}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as K}from"./Table.vue_vue_type_script_lang-DOZk-BCG.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css */import{g as Q}from"./index-DVoP4cjT.js";/* empty css */import{u as W}from"./useTable-BTK3WtdF.js";import{_ as i}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{C as j}from"./element-plus-6v3c1uXT.js";import{q as G,K as J,o as X,P as l,W as n,r as f,t as Y,v as Z,S as s,u as e,i as R,Q as V}from"./vue-chunks-DOWhatC1.js";import{_ as ee}from"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css */import"./index-DlX4pwja.js";const te=G({__name:"UseTableDemo",setup(S){const{tableRegister:v,tableMethods:p,tableState:m}=W({fetchDataApi:()=>g(this,null,function*(){const{currentPage:o,pageSize:t}=m,a=yield Q({pageIndex:e(o),pageSize:e(t)});return{list:a.data.list,total:a.data.total}})}),{loading:c,dataList:C,total:_,currentPage:d,pageSize:r}=m,{setProps:u,setColumn:x,getElTableExpose:y,addColumn:U,delColumn:D,refresh:I}=p,B=J([]);X(()=>{setTimeout(()=>{u({columns:[{field:"expand",type:"expand",slots:{default:o=>{const{row:t}=o;return l("div",{class:"ml-30px"},[l("div",null,[n("标题:"),t.title]),l("div",null,[n("作者:"),t.author]),l("div",null,[n("创建时间:"),t.display_time])])}}},{field:"selection",type:"selection"},{field:"index",label:"序号",type:"index"},{field:"title",label:"标题"},{field:"author",label:"作者"},{field:"display_time",label:"创建时间"},{field:"importance",label:"重要性",formatter:(o,t,a)=>l(j,{type:a===1?"success":a===2?"warning":"danger"},{default:()=>[a===1?"重要":a===2?"良好":"一般"]})},{field:"pageviews",label:"阅读数"},{field:"action",label:"操作",slots:{default:o=>l(i,{type:"primary",onClick:()=>F(o)},{default:()=>[n("操作")]})}}]})},2e3)});const F=o=>{},A=f(!0),$=o=>{A.value=o},h=o=>{u({reserveIndex:o})},P=o=>{x([{field:"selection",path:"hidden",value:!o}])},T=f(1),N=()=>{x([{field:"title",path:"label",value:`标题${e(T)}`}]),T.value++},z=o=>{x([{field:"expand",path:"hidden",value:!o}])},O=()=>g(this,null,function*(){const o=yield y();o==null||o.toggleAllSelection()}),b=f(!0),H=()=>{e(b)?(D("action"),b.value=!1):(U({field:"action",label:"操作",slots:{default:o=>l(i,{type:"primary",onClick:()=>F(o)},{default:()=>[n("操作")]})}}),b.value=!0)},k=f(!1),L=()=>{u({stripe:!e(k)}),k.value=!e(k)},w=f("auto"),M=()=>{e(w)==="auto"?(u({height:300}),w.value=300):(u({height:"auto"}),w.value="auto")},q=()=>g(this,null,function*(){const o=yield y(),t=o==null?void 0:o.getSelectionRows()});return(o,t)=>(Y(),Z(V,null,[l(e(E),{title:"UseTable 操作",style:{"margin-bottom":"20px"}},{default:s(()=>[l(e(i),{onClick:t[0]||(t[0]=a=>$(!0))},{default:s(()=>[n(" 显示 分页 ")]),_:1}),l(e(i),{onClick:t[1]||(t[1]=a=>$(!1))},{default:s(()=>[n(" 隐藏 分页 ")]),_:1}),l(e(i),{onClick:t[2]||(t[2]=a=>h(!0))},{default:s(()=>[n("叠加序号")]),_:1}),l(e(i),{onClick:t[3]||(t[3]=a=>h(!1))},{default:s(()=>[n("还原序号")]),_:1}),l(e(i),{onClick:t[4]||(t[4]=a=>P(!0))},{default:s(()=>[n("显示多选")]),_:1}),l(e(i),{onClick:t[5]||(t[5]=a=>P(!1))},{default:s(()=>[n("隐藏多选")]),_:1}),l(e(i),{onClick:N},{default:s(()=>[n("修改标题")]),_:1}),l(e(i),{onClick:t[6]||(t[6]=a=>z(!0))},{default:s(()=>[n("显示展开行")]),_:1}),l(e(i),{onClick:t[7]||(t[7]=a=>z(!1))},{default:s(()=>[n("隐藏展开行")]),_:1}),l(e(i),{onClick:O},{default:s(()=>[n("全选/全不选")]),_:1}),l(e(i),{onClick:H},{default:s(()=>[n("删除/添加操作列")]),_:1}),l(e(i),{onClick:L},{default:s(()=>[n("显示/隐藏斑马纹")]),_:1}),l(e(i),{onClick:M},{default:s(()=>[n("固定头部/自动")]),_:1}),l(e(i),{onClick:q},{default:s(()=>[n("获取多选数据")]),_:1})]),_:1}),l(e(E),{title:"UseTable 示例"},{default:s(()=>[l(e(K),{pageSize:e(r),"onUpdate:pageSize":t[8]||(t[8]=a=>R(r)?r.value=a:null),currentPage:e(d),"onUpdate:currentPage":t[9]||(t[9]=a=>R(d)?d.value=a:null),showAction:"",showSummary:"",columns:B,data:e(C),loading:e(c),pagination:A.value?{total:e(_)}:void 0,onRegister:e(v),onRefresh:e(I)},null,8,["pageSize","currentPage","columns","data","loading","pagination","onRegister","onRefresh"])]),_:1})],64))}}),ye=ee(te,[["__scopeId","data-v-cde94cf8"]]);export{ye as default}; +var g=(y,v,p)=>new Promise((m,c)=>{var C=r=>{try{d(p.next(r))}catch(u){c(u)}},_=r=>{try{d(p.throw(r))}catch(u){c(u)}},d=r=>r.done?m(r.value):Promise.resolve(r.value).then(C,_);d((p=p.apply(y,v)).next())});import{_ as E}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as K}from"./Table.vue_vue_type_script_lang-BzBmZLp9.js";import"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css */import{g as Q}from"./index-DB50Cmmr.js";/* empty css */import{u as W}from"./useTable-B7CCRTD1.js";import{_ as i}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{C as j}from"./element-plus-6v3c1uXT.js";import{q as G,K as J,o as X,P as l,W as n,r as f,t as Y,v as Z,S as s,u as e,i as R,Q as V}from"./vue-chunks-DOWhatC1.js";import{_ as ee}from"./Icon-B-0CON7P.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css */import"./index-2gFf0KW4.js";const te=G({__name:"UseTableDemo",setup(y){const{tableRegister:v,tableMethods:p,tableState:m}=W({fetchDataApi:()=>g(this,null,function*(){const{currentPage:o,pageSize:t}=m,a=yield Q({pageIndex:e(o),pageSize:e(t)});return{list:a.data.list,total:a.data.total}})}),{loading:c,dataList:C,total:_,currentPage:d,pageSize:r}=m,{setProps:u,setColumn:b,getElTableExpose:S,addColumn:U,delColumn:D,refresh:I}=p,B=J([]);X(()=>{setTimeout(()=>{u({columns:[{field:"expand",type:"expand",slots:{default:o=>{const{row:t}=o;return l("div",{class:"ml-30px"},[l("div",null,[n("标题:"),t.title]),l("div",null,[n("作者:"),t.author]),l("div",null,[n("创建时间:"),t.display_time])])}}},{field:"selection",type:"selection"},{field:"index",label:"序号",type:"index"},{field:"title",label:"标题"},{field:"author",label:"作者"},{field:"display_time",label:"创建时间"},{field:"importance",label:"重要性",formatter:(o,t,a)=>l(j,{type:a===1?"success":a===2?"warning":"danger"},{default:()=>[a===1?"重要":a===2?"良好":"一般"]})},{field:"pageviews",label:"阅读数"},{field:"action",label:"操作",slots:{default:o=>l(i,{type:"primary",onClick:()=>F(o)},{default:()=>[n("操作")]})}}]})},2e3)});const F=o=>{},A=f(!0),$=o=>{A.value=o},h=o=>{u({reserveIndex:o})},P=o=>{b([{field:"selection",path:"hidden",value:!o}])},T=f(1),N=()=>{b([{field:"title",path:"label",value:`标题${e(T)}`}]),T.value++},z=o=>{b([{field:"expand",path:"hidden",value:!o}])},O=()=>g(this,null,function*(){const o=yield S();o==null||o.toggleAllSelection()}),x=f(!0),H=()=>{e(x)?(D("action"),x.value=!1):(U({field:"action",label:"操作",slots:{default:o=>l(i,{type:"primary",onClick:()=>F(o)},{default:()=>[n("操作")]})}}),x.value=!0)},k=f(!1),L=()=>{u({stripe:!e(k)}),k.value=!e(k)},w=f("auto"),M=()=>{e(w)==="auto"?(u({height:300}),w.value=300):(u({height:"auto"}),w.value="auto")},q=()=>g(this,null,function*(){const o=yield S(),t=o==null?void 0:o.getSelectionRows()});return(o,t)=>(Y(),Z(V,null,[l(e(E),{title:"UseTable 操作",style:{"margin-bottom":"20px"}},{default:s(()=>[l(e(i),{onClick:t[0]||(t[0]=a=>$(!0))},{default:s(()=>[n(" 显示 分页 ")]),_:1}),l(e(i),{onClick:t[1]||(t[1]=a=>$(!1))},{default:s(()=>[n(" 隐藏 分页 ")]),_:1}),l(e(i),{onClick:t[2]||(t[2]=a=>h(!0))},{default:s(()=>[n("叠加序号")]),_:1}),l(e(i),{onClick:t[3]||(t[3]=a=>h(!1))},{default:s(()=>[n("还原序号")]),_:1}),l(e(i),{onClick:t[4]||(t[4]=a=>P(!0))},{default:s(()=>[n("显示多选")]),_:1}),l(e(i),{onClick:t[5]||(t[5]=a=>P(!1))},{default:s(()=>[n("隐藏多选")]),_:1}),l(e(i),{onClick:N},{default:s(()=>[n("修改标题")]),_:1}),l(e(i),{onClick:t[6]||(t[6]=a=>z(!0))},{default:s(()=>[n("显示展开行")]),_:1}),l(e(i),{onClick:t[7]||(t[7]=a=>z(!1))},{default:s(()=>[n("隐藏展开行")]),_:1}),l(e(i),{onClick:O},{default:s(()=>[n("全选/全不选")]),_:1}),l(e(i),{onClick:H},{default:s(()=>[n("删除/添加操作列")]),_:1}),l(e(i),{onClick:L},{default:s(()=>[n("显示/隐藏斑马纹")]),_:1}),l(e(i),{onClick:M},{default:s(()=>[n("固定头部/自动")]),_:1}),l(e(i),{onClick:q},{default:s(()=>[n("获取多选数据")]),_:1})]),_:1}),l(e(E),{title:"UseTable 示例"},{default:s(()=>[l(e(K),{pageSize:e(r),"onUpdate:pageSize":t[8]||(t[8]=a=>R(r)?r.value=a:null),currentPage:e(d),"onUpdate:currentPage":t[9]||(t[9]=a=>R(d)?d.value=a:null),showAction:"",showSummary:"","default-expand-all":"",columns:B,"row-key":"id",data:e(C),loading:e(c),pagination:A.value?{total:e(_)}:void 0,onRegister:e(v),onRefresh:e(I)},null,8,["pageSize","currentPage","columns","data","loading","pagination","onRegister","onRefresh"])]),_:1})],64))}}),Se=ee(te,[["__scopeId","data-v-9eb76fdb"]]);export{Se as default}; diff --git a/assets/UseTableDemo-CXtMJCFC.css b/assets/UseTableDemo-CXtMJCFC.css deleted file mode 100644 index ef005dd6..00000000 --- a/assets/UseTableDemo-CXtMJCFC.css +++ /dev/null @@ -1 +0,0 @@ -.el-button[data-v-cde94cf8]{margin-top:10px} diff --git a/assets/UseTableDemo-DRKt3uVJ.css b/assets/UseTableDemo-DRKt3uVJ.css new file mode 100644 index 00000000..1ad4bfd8 --- /dev/null +++ b/assets/UseTableDemo-DRKt3uVJ.css @@ -0,0 +1 @@ +.el-button[data-v-9eb76fdb]{margin-top:10px} diff --git a/assets/User-CRVmhTky.js b/assets/User-__ht-I-y.js similarity index 84% rename from assets/User-CRVmhTky.js rename to assets/User-__ht-I-y.js index 3fa21fae..0ce11344 100644 --- a/assets/User-CRVmhTky.js +++ b/assets/User-__ht-I-y.js @@ -1 +1 @@ -var ae=Object.defineProperty,re=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var M=(d,o,l)=>o in d?ae(d,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):d[o]=l,E=(d,o)=>{for(var l in o||(o={}))oe.call(o,l)&&M(d,l,o[l]);if(j)for(var l of j(o))ie.call(o,l)&&M(d,l,o[l]);return d},Q=(d,o)=>re(d,le(o));var m=(d,o,l)=>new Promise((S,y)=>{var N=n=>{try{c(l.next(n))}catch(p){y(p)}},A=n=>{try{c(l.throw(n))}catch(p){y(p)}},c=n=>n.done?S(n.value):Promise.resolve(n.value).then(N,A);c((l=l.apply(d,o)).next())});import{_ as W}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as ne}from"./Table.vue_vue_type_script_lang-DOZk-BCG.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as X,b as se,c as de,e as ue}from"./index-C2-F2Fy9.js";import{u as me}from"./useTable-BTK3WtdF.js";import{_ as ce}from"./Search.vue_vue_type_script_setup_true_lang-CJ6bt3cN.js";import{_ as pe}from"./Write.vue_vue_type_script_setup_true_lang-XLSypuqk.js";import{_ as fe}from"./Detail.vue_vue_type_script_setup_true_lang-BtRfuAAj.js";import{_ as ve}from"./Dialog.vue_vue_type_style_index_0_lang-BLWveiSq.js";import{g as he}from"./index-CxKCqm97.js";import{u as ge}from"./useCrudSchemas-B5FzcJ46.js";import{_ as f}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{A as _e,q as ye,ak as we}from"./element-plus-6v3c1uXT.js";import{q as be,K as ke,P as i,W as v,Q as xe,r as s,w as Ce,u as t,t as x,v as Se,S as u,x as C,X as Ne,i as Y,T as P,Y as U,n as Ae}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css */import"./index-DlX4pwja.js";import"./Form-DJ57xbBt.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";import"./useForm-CbOF_UB2.js";import"./useIcon-Bk4x_lwM.js";import"./useValidator-Nt61Jv1p.js";import"./Descriptions-BYYy1K3P.js";import"./tree-Dgaev6Pi.js";const Te={class:"flex w-100% h-100%"},Ve={class:"flex justify-center items-center"},De=C("div",{class:"flex-1"},"部门列表",-1),Re=["title"],$e={class:"mb-10px"},St=be({__name:"User",setup(d){const{tableRegister:o,tableState:l,tableMethods:S}=me({fetchDataApi:()=>m(this,null,function*(){const{pageSize:a,currentPage:e}=l,r=yield se(E({id:t(g),pageIndex:t(e),pageSize:t(a)},t(B)));return{list:r.data.list||[],total:r.data.total||0}}),fetchDelApi:()=>m(this,null,function*(){return!!(yield de(t(R)))})}),{total:y,loading:N,dataList:A,pageSize:c,currentPage:n}=l,{getList:p,getElTableExpose:G,delList:H}=S,J=ke([{field:"selection",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{type:"selection"}},{field:"index",label:"序号",form:{hidden:!0},search:{hidden:!0},detail:{hidden:!0},table:{type:"index"}},{field:"username",label:"用户名"},{field:"account",label:"账号"},{field:"department.id",label:"所属部门",detail:{hidden:!0},search:{hidden:!0},form:{component:"TreeSelect",componentProps:{nodeKey:"id",props:{label:"departmentName"}},optionApi:()=>m(this,null,function*(){return(yield X()).data.list})},table:{hidden:!0}},{field:"role",label:"角色",search:{hidden:!0},form:{component:"Select",value:[],componentProps:{multiple:!0,collapseTags:!0,maxCollapseTags:1},optionApi:()=>m(this,null,function*(){var e,r;return(r=(e=(yield he()).data)==null?void 0:e.list)==null?void 0:r.map(q=>({label:q.roleName,value:q.id}))})}},{field:"email",label:"邮箱",form:{component:"Input"},search:{hidden:!0}},{field:"createTime",label:"创建时间",form:{component:"Input"},search:{hidden:!0}},{field:"action",label:"操作",form:{hidden:!0},detail:{hidden:!0},search:{hidden:!0},table:{width:240,slots:{default:a=>{const e=a.row;return i(xe,null,[i(f,{type:"primary",onClick:()=>K(e,"edit")},{default:()=>[v("编辑")]}),i(f,{type:"success",onClick:()=>K(e,"detail")},{default:()=>[v("详情")]}),i(f,{type:"danger",onClick:()=>I(e)},{default:()=>[v("删除")]})])}}}}]),{allSchemas:w}=ge(J),B=s({}),L=a=>{n.value=1,B.value=a,p()},b=s(),g=s(""),z=s([]);m(this,null,function*(){var e,r;const a=yield X();z.value=a.data.list,g.value=a.data.list[0]&&((e=a.data.list[0])==null?void 0:e.children)&&a.data.list[0].children[0].id||"",yield Ae(),(r=t(b))==null||r.setCurrentKey(g.value)});const T=s("");Ce(()=>T.value,a=>{t(b).filter(a)});const O=a=>{g.value=a.id,n.value=1,p()},Z=(a,e)=>a?e.departmentName.includes(a):!0,h=s(!1),V=s(""),k=s(),_=s(""),ee=()=>{V.value="新增",k.value=void 0,h.value=!0,_.value=""},D=s(!1),R=s([]),I=a=>m(this,null,function*(){const e=yield G();R.value=a?[a.id]:(e==null?void 0:e.getSelectionRows().map(r=>r.id))||[],D.value=!0,yield H(t(R).length).finally(()=>{D.value=!1})}),K=(a,e)=>{var r;V.value=e==="edit"?"编辑":"详情",_.value=e,k.value=Q(E({},a),{department:((r=t(b))==null?void 0:r.getCurrentNode())||{}}),h.value=!0},F=s(),$=s(!1),te=()=>m(this,null,function*(){const a=t(F),e=yield a==null?void 0:a.submit();if(e){$.value=!0;try{(yield ue(e))&&(n.value=1,p())}catch(r){}finally{$.value=!1,h.value=!1}}});return(a,e)=>(x(),Se("div",Te,[i(t(W),{class:"w-250px"},{default:u(()=>[C("div",Ve,[De,i(t(_e),{modelValue:T.value,"onUpdate:modelValue":e[0]||(e[0]=r=>T.value=r),class:"flex-[2]",placeholder:"搜索部门",clearable:""},null,8,["modelValue"])]),i(t(ye)),i(t(we),{ref_key:"treeEl",ref:b,data:z.value,"default-expand-all":"","expand-on-click-node":!1,"node-key":"id","current-node-key":g.value,props:{label:"departmentName"},"filter-node-method":Z,onCurrentChange:O},{default:u(({data:r})=>[C("div",{title:r.departmentName,class:"whitespace-nowrap overflow-ellipsis overflow-hidden"},Ne(r.departmentName),9,Re)]),_:1},8,["data","current-node-key","filter-node-method"])]),_:1}),i(t(W),{class:"flex-[3] ml-20px"},{default:u(()=>[i(t(ce),{schema:t(w).searchSchema,onReset:L,onSearch:L},null,8,["schema"]),C("div",$e,[i(t(f),{type:"primary",onClick:ee},{default:u(()=>[v("新增")]),_:1}),i(t(f),{loading:D.value,type:"danger",onClick:e[1]||(e[1]=r=>I())},{default:u(()=>[v(" 删除 ")]),_:1},8,["loading"])]),i(t(ne),{"current-page":t(n),"onUpdate:currentPage":e[2]||(e[2]=r=>Y(n)?n.value=r:null),"page-size":t(c),"onUpdate:pageSize":e[3]||(e[3]=r=>Y(c)?c.value=r:null),columns:t(w).tableColumns,data:t(A),loading:t(N),onRegister:t(o),pagination:{total:t(y)}},null,8,["current-page","page-size","columns","data","loading","onRegister","pagination"])]),_:1}),i(t(ve),{modelValue:h.value,"onUpdate:modelValue":e[5]||(e[5]=r=>h.value=r),title:V.value},{footer:u(()=>[_.value!=="detail"?(x(),P(t(f),{key:0,type:"primary",loading:$.value,onClick:te},{default:u(()=>[v(" 保存 ")]),_:1},8,["loading"])):U("",!0),i(t(f),{onClick:e[4]||(e[4]=r=>h.value=!1)},{default:u(()=>[v("关闭")]),_:1})]),default:u(()=>[_.value!=="detail"?(x(),P(pe,{key:0,ref_key:"writeRef",ref:F,"form-schema":t(w).formSchema,"current-row":k.value},null,8,["form-schema","current-row"])):U("",!0),_.value==="detail"?(x(),P(fe,{key:1,"detail-schema":t(w).detailSchema,"current-row":k.value},null,8,["detail-schema","current-row"])):U("",!0)]),_:1},8,["modelValue","title"])]))}});export{St as default}; +var ae=Object.defineProperty,re=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var M=(d,o,l)=>o in d?ae(d,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):d[o]=l,E=(d,o)=>{for(var l in o||(o={}))oe.call(o,l)&&M(d,l,o[l]);if(j)for(var l of j(o))ie.call(o,l)&&M(d,l,o[l]);return d},Q=(d,o)=>re(d,le(o));var m=(d,o,l)=>new Promise((S,y)=>{var N=n=>{try{c(l.next(n))}catch(p){y(p)}},A=n=>{try{c(l.throw(n))}catch(p){y(p)}},c=n=>n.done?S(n.value):Promise.resolve(n.value).then(N,A);c((l=l.apply(d,o)).next())});import{_ as W}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as ne}from"./Table.vue_vue_type_script_lang-BzBmZLp9.js";import"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as X,b as se,c as de,e as ue}from"./index-DI3UHSfz.js";import{u as me}from"./useTable-B7CCRTD1.js";import{_ as ce}from"./Search.vue_vue_type_script_setup_true_lang-ClF9XpoI.js";import{_ as pe}from"./Write.vue_vue_type_script_setup_true_lang-uIkHTRx6.js";import{_ as fe}from"./Detail.vue_vue_type_script_setup_true_lang-BCv-Qvj2.js";import{_ as ve}from"./Dialog.vue_vue_type_style_index_0_lang-DkCU3loB.js";import{g as he}from"./index-CA5sn5Y0.js";import{u as ge}from"./useCrudSchemas-B5FzcJ46.js";import{_ as f}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{A as _e,q as ye,ak as we}from"./element-plus-6v3c1uXT.js";import{q as be,K as ke,P as i,W as v,Q as xe,r as s,w as Ce,u as t,t as x,v as Se,S as u,x as C,X as Ne,i as Y,T as P,Y as U,n as Ae}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css */import"./index-2gFf0KW4.js";import"./Form-B3fdtaFM.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";import"./useForm-BIADJKAv.js";import"./useIcon-Dzh8BHEZ.js";import"./useValidator-Nt61Jv1p.js";import"./Descriptions-CnAOhWOB.js";import"./tree-Dgaev6Pi.js";const Te={class:"flex w-100% h-100%"},Ve={class:"flex justify-center items-center"},De=C("div",{class:"flex-1"},"部门列表",-1),Re=["title"],$e={class:"mb-10px"},St=be({__name:"User",setup(d){const{tableRegister:o,tableState:l,tableMethods:S}=me({fetchDataApi:()=>m(this,null,function*(){const{pageSize:a,currentPage:e}=l,r=yield se(E({id:t(g),pageIndex:t(e),pageSize:t(a)},t(B)));return{list:r.data.list||[],total:r.data.total||0}}),fetchDelApi:()=>m(this,null,function*(){return!!(yield de(t(R)))})}),{total:y,loading:N,dataList:A,pageSize:c,currentPage:n}=l,{getList:p,getElTableExpose:G,delList:H}=S,J=ke([{field:"selection",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{type:"selection"}},{field:"index",label:"序号",form:{hidden:!0},search:{hidden:!0},detail:{hidden:!0},table:{type:"index"}},{field:"username",label:"用户名"},{field:"account",label:"账号"},{field:"department.id",label:"所属部门",detail:{hidden:!0},search:{hidden:!0},form:{component:"TreeSelect",componentProps:{nodeKey:"id",props:{label:"departmentName"}},optionApi:()=>m(this,null,function*(){return(yield X()).data.list})},table:{hidden:!0}},{field:"role",label:"角色",search:{hidden:!0},form:{component:"Select",value:[],componentProps:{multiple:!0,collapseTags:!0,maxCollapseTags:1},optionApi:()=>m(this,null,function*(){var e,r;return(r=(e=(yield he()).data)==null?void 0:e.list)==null?void 0:r.map(q=>({label:q.roleName,value:q.id}))})}},{field:"email",label:"邮箱",form:{component:"Input"},search:{hidden:!0}},{field:"createTime",label:"创建时间",form:{component:"Input"},search:{hidden:!0}},{field:"action",label:"操作",form:{hidden:!0},detail:{hidden:!0},search:{hidden:!0},table:{width:240,slots:{default:a=>{const e=a.row;return i(xe,null,[i(f,{type:"primary",onClick:()=>K(e,"edit")},{default:()=>[v("编辑")]}),i(f,{type:"success",onClick:()=>K(e,"detail")},{default:()=>[v("详情")]}),i(f,{type:"danger",onClick:()=>I(e)},{default:()=>[v("删除")]})])}}}}]),{allSchemas:w}=ge(J),B=s({}),L=a=>{n.value=1,B.value=a,p()},b=s(),g=s(""),z=s([]);m(this,null,function*(){var e,r;const a=yield X();z.value=a.data.list,g.value=a.data.list[0]&&((e=a.data.list[0])==null?void 0:e.children)&&a.data.list[0].children[0].id||"",yield Ae(),(r=t(b))==null||r.setCurrentKey(g.value)});const T=s("");Ce(()=>T.value,a=>{t(b).filter(a)});const O=a=>{g.value=a.id,n.value=1,p()},Z=(a,e)=>a?e.departmentName.includes(a):!0,h=s(!1),V=s(""),k=s(),_=s(""),ee=()=>{V.value="新增",k.value=void 0,h.value=!0,_.value=""},D=s(!1),R=s([]),I=a=>m(this,null,function*(){const e=yield G();R.value=a?[a.id]:(e==null?void 0:e.getSelectionRows().map(r=>r.id))||[],D.value=!0,yield H(t(R).length).finally(()=>{D.value=!1})}),K=(a,e)=>{var r;V.value=e==="edit"?"编辑":"详情",_.value=e,k.value=Q(E({},a),{department:((r=t(b))==null?void 0:r.getCurrentNode())||{}}),h.value=!0},F=s(),$=s(!1),te=()=>m(this,null,function*(){const a=t(F),e=yield a==null?void 0:a.submit();if(e){$.value=!0;try{(yield ue(e))&&(n.value=1,p())}catch(r){}finally{$.value=!1,h.value=!1}}});return(a,e)=>(x(),Se("div",Te,[i(t(W),{class:"w-250px"},{default:u(()=>[C("div",Ve,[De,i(t(_e),{modelValue:T.value,"onUpdate:modelValue":e[0]||(e[0]=r=>T.value=r),class:"flex-[2]",placeholder:"搜索部门",clearable:""},null,8,["modelValue"])]),i(t(ye)),i(t(we),{ref_key:"treeEl",ref:b,data:z.value,"default-expand-all":"","expand-on-click-node":!1,"node-key":"id","current-node-key":g.value,props:{label:"departmentName"},"filter-node-method":Z,onCurrentChange:O},{default:u(({data:r})=>[C("div",{title:r.departmentName,class:"whitespace-nowrap overflow-ellipsis overflow-hidden"},Ne(r.departmentName),9,Re)]),_:1},8,["data","current-node-key","filter-node-method"])]),_:1}),i(t(W),{class:"flex-[3] ml-20px"},{default:u(()=>[i(t(ce),{schema:t(w).searchSchema,onReset:L,onSearch:L},null,8,["schema"]),C("div",$e,[i(t(f),{type:"primary",onClick:ee},{default:u(()=>[v("新增")]),_:1}),i(t(f),{loading:D.value,type:"danger",onClick:e[1]||(e[1]=r=>I())},{default:u(()=>[v(" 删除 ")]),_:1},8,["loading"])]),i(t(ne),{"current-page":t(n),"onUpdate:currentPage":e[2]||(e[2]=r=>Y(n)?n.value=r:null),"page-size":t(c),"onUpdate:pageSize":e[3]||(e[3]=r=>Y(c)?c.value=r:null),columns:t(w).tableColumns,data:t(A),loading:t(N),onRegister:t(o),pagination:{total:t(y)}},null,8,["current-page","page-size","columns","data","loading","onRegister","pagination"])]),_:1}),i(t(ve),{modelValue:h.value,"onUpdate:modelValue":e[5]||(e[5]=r=>h.value=r),title:V.value},{footer:u(()=>[_.value!=="detail"?(x(),P(t(f),{key:0,type:"primary",loading:$.value,onClick:te},{default:u(()=>[v(" 保存 ")]),_:1},8,["loading"])):U("",!0),i(t(f),{onClick:e[4]||(e[4]=r=>h.value=!1)},{default:u(()=>[v("关闭")]),_:1})]),default:u(()=>[_.value!=="detail"?(x(),P(pe,{key:0,ref_key:"writeRef",ref:F,"form-schema":t(w).formSchema,"current-row":k.value},null,8,["form-schema","current-row"])):U("",!0),_.value==="detail"?(x(),P(fe,{key:1,"detail-schema":t(w).detailSchema,"current-row":k.value},null,8,["detail-schema","current-row"])):U("",!0)]),_:1},8,["modelValue","title"])]))}});export{St as default}; diff --git a/assets/VideoPlayer-42kfXaMf.js b/assets/VideoPlayer-CSRu1lzL.js similarity index 65% rename from assets/VideoPlayer-42kfXaMf.js rename to assets/VideoPlayer-CSRu1lzL.js index 4390b97a..6ed43adc 100644 --- a/assets/VideoPlayer-42kfXaMf.js +++ b/assets/VideoPlayer-CSRu1lzL.js @@ -1 +1 @@ -import{_ as a,c as p}from"./index-DlX4pwja.js";import{_ as s}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./index-CA0d6hyI.js";/* empty css */import{_ as c}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{q as m}from"./element-plus-6v3c1uXT.js";import{q as i,t as n,T as d,S as t,P as o,u as e,W as _}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const C=i({__name:"VideoPlayer",setup(f){const r=()=>{p({url:"//sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-720p.mp4",poster:"//lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/poster.jpg"})};return(l,u)=>(n(),d(e(s),{title:"视频播放器"},{default:t(()=>[o(e(a),{url:"//sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-720p.mp4",poster:"//lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/poster.jpg"}),o(e(m)),o(e(c),{type:"primary",onClick:r},{default:t(()=>[_("弹窗展示")]),_:1})]),_:1}))}});export{C as default}; +import{_ as a,c as p}from"./index-2gFf0KW4.js";import{_ as s}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./index-B5z15nYm.js";/* empty css */import{_ as c}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{q as m}from"./element-plus-6v3c1uXT.js";import{q as i,t as n,T as d,S as t,P as o,u as e,W as _}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const C=i({__name:"VideoPlayer",setup(f){const r=()=>{p({url:"//sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-720p.mp4",poster:"//lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/poster.jpg"})};return(l,u)=>(n(),d(e(s),{title:"视频播放器"},{default:t(()=>[o(e(a),{url:"//sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-720p.mp4",poster:"//lf3-static.bytednsdoc.com/obj/eden-cn/nupenuvpxnuvo/xgplayer_doc/poster.jpg"}),o(e(m)),o(e(c),{type:"primary",onClick:r},{default:t(()=>[_("弹窗展示")]),_:1})]),_:1}))}});export{C as default}; diff --git a/assets/Waterfall-CBrUbcOg.js b/assets/Waterfall-BQjrg7ql.js similarity index 97% rename from assets/Waterfall-CBrUbcOg.js rename to assets/Waterfall-BQjrg7ql.js index e470b55c..bcc1e020 100644 --- a/assets/Waterfall-CBrUbcOg.js +++ b/assets/Waterfall-BQjrg7ql.js @@ -1 +1 @@ -var P=Object.defineProperty,Q=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var N=(e,t,a)=>t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,B=(e,t)=>{for(var a in t||(t={}))Y.call(t,a)&&N(e,a,t[a]);if(z)for(var a of z(t))G.call(t,a)&&N(e,a,t[a]);return e},E=(e,t)=>Q(e,X(t));var O=(e,t,a)=>new Promise((l,x)=>{var f=r=>{try{h(a.next(r))}catch(i){x(i)}},d=r=>{try{h(a.throw(r))}catch(i){x(i)}},h=r=>r.done?l(r.value):Promise.resolve(r.value).then(f,d);h((a=a.apply(e,t)).next())});import{p as u,M as W,t as J}from"./index-CA0d6hyI.js";import{L as K,I as U,M as Z}from"./element-plus-6v3c1uXT.js";import{q as I,r as v,w as _,o as ee,u as o,t as m,v as p,V as k,Q as R,a8 as S,M as A,x as C,X as D,Y as te,n as H,T as ae,S as le,P as se}from"./vue-chunks-DOWhatC1.js";import{_ as oe}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const ne=["src"],re=["src"],ie=I({__name:"Waterfall",props:{data:u.arrayOf(u.any),reset:u.bool.def(!0),width:u.number.def(200),gap:u.number.def(20),props:u.objectOf(u.string).def({src:"src",height:"height"}),cols:u.number.def(void 0),loadingText:u.string.def("加载中..."),loading:u.bool.def(!1),end:u.bool.def(!1),endText:u.string.def("没有更多了"),autoCenter:u.bool.def(!0),layout:u.oneOf(["javascript","flex"]).def("flex")},emits:["loadMore"],setup(e,{emit:t}){const a=t,l=e,x=v(),f=v([]),d=v(0),h=v(0),r=v(),i=v(0),y=v([]),q=()=>O(this,null,function*(){var j;y.value=[];const{props:g,width:w,gap:s}=l,n=l.data;yield H();const $=o(x);if(!$)return;i.value=(j=l.cols)!=null?j:Math.floor($.clientWidth/(w+s));const b=n.length;for(let c=0;cO(this,null,function*(){var j;const{width:g,gap:w}=l,s=l.data;yield H();const n=o(x);if(!n)return;i.value=(j=l.cols)!=null?j:Math.floor(n.clientWidth/(g+w));const $=s.length,b=new Array(o(i)).fill([]);for(let c=0;c<$;c++){const M=c%o(i);b[M]=[...b[M],s[c]]}y.value=b}),V=()=>{const{layout:g}=l;g==="javascript"?q():g==="flex"&&F()};return _(()=>[l.data,l.cols],()=>{V()},{immediate:!0}),ee(()=>{o(l.reset)&&K(window,"resize",U(V,300)),Z(o(r),([{isIntersecting:g}])=>{g&&!l.loading&&!l.end&&a("loadMore")},{threshold:.1})}),(g,w)=>(m(),p("div",{class:A(["waterfall","flex","items-center",{"justify-center":e.autoCenter}]),ref_key:"wrapEl",ref:x,style:k({height:`${e.layout==="javascript"?d.value+40:"auto"}px`})},[e.layout==="javascript"?(m(),p("div",{key:0,class:"relative",style:k({width:`${h.value}px`,height:`${d.value+40}px`})},[(m(!0),p(R,null,S(y.value,(s,n)=>(m(),p("div",{class:A([`waterfall-item__${n}`,{absolute:e.layout==="javascript"}]),key:`water-${n}`,style:k({width:`${e.width}px`,height:`${s[e.props.height]}px`,top:`${s.top}px`,left:`${s.left}px`})},[C("img",{src:s[e.props.src],class:"w-full h-full block",alt:"",srcset:""},null,8,ne)],6))),128)),C("div",{ref_key:"loadMore",ref:r,class:"h-40px flex justify-center absolute w-full",style:k({top:`${d.value+e.gap}px`})},D(e.end?e.endText:e.loadingText),5)],4)):e.layout==="flex"?(m(),p("div",{key:1,class:"relative flex pb-40px",style:k({width:e.cols?"100%":"auto"})},[(m(!0),p(R,null,S(y.value,(s,n)=>(m(),p("div",{key:`waterWrap-${n}`,class:"flex-1",style:k({marginRight:n===y.value.length-1?"0":`${e.gap}px`})},[(m(!0),p(R,null,S(s,($,b)=>(m(),p("div",{key:`waterWrap-${n}-${b}`,style:k({marginBottom:`${e.gap}px`,width:e.cols?"100%":`${e.width}px`,height:e.cols?"auto":`${$[e.props.height]}px`})},[C("img",{src:$[e.props.src],class:"w-full h-full block",alt:"",srcset:""},null,8,re)],4))),128))],4))),128)),C("div",{ref_key:"loadMore",ref:r,class:"h-40px flex justify-center absolute w-full items-center",style:{bottom:0}},D(e.end?e.endText:e.loadingText),513)],4)):te("",!0)],6))}}),xe=I({__name:"Waterfall",setup(e){const t=v([]),a=()=>{const d=[];for(let h=0;h<20;h++){const r=W.Random.integer(100,500),i=W.Random.integer(100,500);d.push(W.mock({width:i,height:r,id:J(),image_uri:W.Random.image(`${i}x${r}`).replace("http://","https://")}))}t.value=[...o(t),...d],o(t).length>=60&&(x.value=!0)};a();const l=v(!1),x=v(!1),f=()=>{l.value=!0,setTimeout(()=>{a(),l.value=!1},1e3)};return(d,h)=>(m(),ae(o(oe),{title:"瀑布流"},{default:le(()=>[se(o(ie),{data:t.value,loading:l.value,end:x.value,props:{src:"image_uri",height:"height"},onLoadMore:f},null,8,["data","loading","end"])]),_:1}))}});export{xe as default}; +var P=Object.defineProperty,Q=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var N=(e,t,a)=>t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,B=(e,t)=>{for(var a in t||(t={}))Y.call(t,a)&&N(e,a,t[a]);if(z)for(var a of z(t))G.call(t,a)&&N(e,a,t[a]);return e},E=(e,t)=>Q(e,X(t));var O=(e,t,a)=>new Promise((l,x)=>{var f=r=>{try{h(a.next(r))}catch(i){x(i)}},d=r=>{try{h(a.throw(r))}catch(i){x(i)}},h=r=>r.done?l(r.value):Promise.resolve(r.value).then(f,d);h((a=a.apply(e,t)).next())});import{p as u,M as W,t as J}from"./index-B5z15nYm.js";import{L as K,I as U,M as Z}from"./element-plus-6v3c1uXT.js";import{q as I,r as v,w as _,o as ee,u as o,t as m,v as p,V as k,Q as R,a8 as S,M as A,x as C,X as D,Y as te,n as H,T as ae,S as le,P as se}from"./vue-chunks-DOWhatC1.js";import{_ as oe}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const ne=["src"],re=["src"],ie=I({__name:"Waterfall",props:{data:u.arrayOf(u.any),reset:u.bool.def(!0),width:u.number.def(200),gap:u.number.def(20),props:u.objectOf(u.string).def({src:"src",height:"height"}),cols:u.number.def(void 0),loadingText:u.string.def("加载中..."),loading:u.bool.def(!1),end:u.bool.def(!1),endText:u.string.def("没有更多了"),autoCenter:u.bool.def(!0),layout:u.oneOf(["javascript","flex"]).def("flex")},emits:["loadMore"],setup(e,{emit:t}){const a=t,l=e,x=v(),f=v([]),d=v(0),h=v(0),r=v(),i=v(0),y=v([]),q=()=>O(this,null,function*(){var j;y.value=[];const{props:g,width:w,gap:s}=l,n=l.data;yield H();const $=o(x);if(!$)return;i.value=(j=l.cols)!=null?j:Math.floor($.clientWidth/(w+s));const b=n.length;for(let c=0;cO(this,null,function*(){var j;const{width:g,gap:w}=l,s=l.data;yield H();const n=o(x);if(!n)return;i.value=(j=l.cols)!=null?j:Math.floor(n.clientWidth/(g+w));const $=s.length,b=new Array(o(i)).fill([]);for(let c=0;c<$;c++){const M=c%o(i);b[M]=[...b[M],s[c]]}y.value=b}),V=()=>{const{layout:g}=l;g==="javascript"?q():g==="flex"&&F()};return _(()=>[l.data,l.cols],()=>{V()},{immediate:!0}),ee(()=>{o(l.reset)&&K(window,"resize",U(V,300)),Z(o(r),([{isIntersecting:g}])=>{g&&!l.loading&&!l.end&&a("loadMore")},{threshold:.1})}),(g,w)=>(m(),p("div",{class:A(["waterfall","flex","items-center",{"justify-center":e.autoCenter}]),ref_key:"wrapEl",ref:x,style:k({height:`${e.layout==="javascript"?d.value+40:"auto"}px`})},[e.layout==="javascript"?(m(),p("div",{key:0,class:"relative",style:k({width:`${h.value}px`,height:`${d.value+40}px`})},[(m(!0),p(R,null,S(y.value,(s,n)=>(m(),p("div",{class:A([`waterfall-item__${n}`,{absolute:e.layout==="javascript"}]),key:`water-${n}`,style:k({width:`${e.width}px`,height:`${s[e.props.height]}px`,top:`${s.top}px`,left:`${s.left}px`})},[C("img",{src:s[e.props.src],class:"w-full h-full block",alt:"",srcset:""},null,8,ne)],6))),128)),C("div",{ref_key:"loadMore",ref:r,class:"h-40px flex justify-center absolute w-full",style:k({top:`${d.value+e.gap}px`})},D(e.end?e.endText:e.loadingText),5)],4)):e.layout==="flex"?(m(),p("div",{key:1,class:"relative flex pb-40px",style:k({width:e.cols?"100%":"auto"})},[(m(!0),p(R,null,S(y.value,(s,n)=>(m(),p("div",{key:`waterWrap-${n}`,class:"flex-1",style:k({marginRight:n===y.value.length-1?"0":`${e.gap}px`})},[(m(!0),p(R,null,S(s,($,b)=>(m(),p("div",{key:`waterWrap-${n}-${b}`,style:k({marginBottom:`${e.gap}px`,width:e.cols?"100%":`${e.width}px`,height:e.cols?"auto":`${$[e.props.height]}px`})},[C("img",{src:$[e.props.src],class:"w-full h-full block",alt:"",srcset:""},null,8,re)],4))),128))],4))),128)),C("div",{ref_key:"loadMore",ref:r,class:"h-40px flex justify-center absolute w-full items-center",style:{bottom:0}},D(e.end?e.endText:e.loadingText),513)],4)):te("",!0)],6))}}),xe=I({__name:"Waterfall",setup(e){const t=v([]),a=()=>{const d=[];for(let h=0;h<20;h++){const r=W.Random.integer(100,500),i=W.Random.integer(100,500);d.push(W.mock({width:i,height:r,id:J(),image_uri:W.Random.image(`${i}x${r}`).replace("http://","https://")}))}t.value=[...o(t),...d],o(t).length>=60&&(x.value=!0)};a();const l=v(!1),x=v(!1),f=()=>{l.value=!0,setTimeout(()=>{a(),l.value=!1},1e3)};return(d,h)=>(m(),ae(o(oe),{title:"瀑布流"},{default:le(()=>[se(o(ie),{data:t.value,loading:l.value,end:x.value,props:{src:"image_uri",height:"height"},onLoadMore:f},null,8,["data","loading","end"])]),_:1}))}});export{xe as default}; diff --git a/assets/Workplace-CLr6af66.js b/assets/Workplace-BIupU6-s.js similarity index 95% rename from assets/Workplace-CLr6af66.js rename to assets/Workplace-BIupU6-s.js index b36a9d57..500780b7 100644 --- a/assets/Workplace-CLr6af66.js +++ b/assets/Workplace-BIupU6-s.js @@ -1 +1 @@ -var m=(l,n,i)=>new Promise((T,f)=>{var C=r=>{try{y(i.next(r))}catch(w){f(w)}},v=r=>{try{y(i.throw(r))}catch(w){f(w)}},y=r=>r.done?T(r.value):Promise.resolve(r.value).then(C,v);y((i=i.apply(l,n)).next())});import{I as M}from"./Icon-Bwi9LaBZ.js";import{_ as R}from"./avatar-CIGAabYz.js";import{p as W,m as g,n as k,k as p,q as B,l as _,r as E,s as q}from"./element-plus-6v3c1uXT.js";import{r as A,f as Y}from"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as N}from"./CountTo.vue_vue_type_script_setup_true_lang-BYxn9PUH.js";import{r as z,_ as F}from"./Echart.vue_vue_type_script_setup_true_lang-B--3X1Iw.js";import"./echarts-VT2A7KjM.js";import{_ as G}from"./Highlight.vue_vue_type_script_lang-DogC43qc.js";import{q as K,r as Q,K as b,t as c,v as h,x as s,P as e,S as a,u as t,W as j,Q as $,a8 as O,T as I,X as x}from"./vue-chunks-DOWhatC1.js";const X={justNow:"刚刚",invalid:"无效时间",past:l=>l.match(/\d/)?`${l}前`:l,future:l=>l.match(/\d/)?`${l}后`:l,month:(l,n)=>l===1?n?"上个月":"下个月":`${l} 个月`,year:(l,n)=>l===1?n?"去年":"明年":`${l} 年`,day:(l,n)=>l===1?n?"昨天":"明天":`${l} 天`,week:(l,n)=>l===1?n?"上周":"下周":`${l} 周`,hour:l=>`${l} 小时`,minute:l=>`${l} 分钟`,second:l=>`${l} 秒`},H=l=>W(l,{messages:X}),J=()=>A.get({url:"/mock/workplace/total"}),U=()=>A.get({url:"/mock/workplace/project"}),Z=()=>A.get({url:"/mock/workplace/dynamic"}),tt=()=>A.get({url:"/mock/workplace/team"}),et=()=>A.get({url:"/mock/workplace/radar"}),at=s("div",{class:"flex items-center"},[s("img",{src:R,alt:"",class:"w-70px h-70px rounded-[50%] mr-20px"}),s("div",null,[s("div",{class:"text-20px"},"早安,ShanYi,祝你开心每一天!"),s("div",{class:"mt-10px text-14px text-gray-500"},"今日晴,20℃ - 32℃!")])],-1),st={class:"flex h-70px items-center justify-end lt-sm:mt-20px"},lt={class:"px-8px text-right"},nt=s("div",{class:"text-14px text-gray-400 mb-20px"},"项目数",-1),ot={class:"px-8px text-right"},dt=s("div",{class:"text-14px text-gray-400 mb-20px"},"待办",-1),rt={class:"px-8px text-right"},it=s("div",{class:"text-14px text-gray-400 mb-20px"},"项目访问",-1),ct={class:"flex justify-between"},ut=s("span",null,"项目数",-1),mt={class:"flex items-center"},pt={class:"text-16px"},_t={class:"mt-15px text-14px text-gray-400"},xt={class:"mt-20px text-12px text-gray-400 flex justify-between"},ft={class:"flex justify-between"},gt=s("span",null,"动态",-1),ht={class:"flex items-center"},vt=s("img",{src:R,alt:"",class:"w-35px h-35px rounded-[50%] mr-20px"},null,-1),yt={class:"text-14px"},wt={class:"mt-15px text-12px text-gray-400"},kt=s("span",null,"快捷操作",-1),bt=s("span",null,"xx指数",-1),jt=s("span",null,"团队",-1),$t={class:"flex items-center"},Wt=K({__name:"Workplace",setup(l){const n=Q(!0);let i=b({project:0,access:0,todo:0});const T=()=>m(this,null,function*(){const o=yield J().catch(()=>{});o&&(i=Object.assign(i,o.data))});let f=b([]);const C=()=>m(this,null,function*(){const o=yield U().catch(()=>{});o&&(f=Object.assign(f,o.data))});let v=b([]);const y=()=>m(this,null,function*(){const o=yield Z().catch(()=>{});o&&(v=Object.assign(v,o.data))});let r=b([]);const w=()=>m(this,null,function*(){const o=yield tt().catch(()=>{});o&&(r=Object.assign(r,o.data))});let S=b(z);const V=()=>m(this,null,function*(){const o=yield et().catch(()=>{});o&&(q(S,"radar.indicator",o.data.map(u=>({name:u.name,max:u.max}))),q(S,"series",[{name:"xxx指数",type:"radar",data:[{value:o.data.map(u=>u.personal),name:"个人"},{value:o.data.map(u=>u.team),name:"团队"}]}]))});return m(this,null,function*(){yield Promise.all([T(),C(),y(),w(),V()]),n.value=!1}),(o,u)=>{const P=M;return c(),h($,null,[s("div",null,[e(t(_),{shadow:"never"},{default:a(()=>[e(t(g),{loading:n.value,animated:""},{default:a(()=>[e(t(k),{gutter:20,justify:"space-between"},{default:a(()=>[e(t(p),{xl:12,lg:12,md:12,sm:24,xs:24},{default:a(()=>[at]),_:1}),e(t(p),{xl:12,lg:12,md:12,sm:24,xs:24},{default:a(()=>[s("div",st,[s("div",lt,[nt,e(t(N),{class:"text-20px","start-val":0,"end-val":t(i).project,duration:2600},null,8,["end-val"])]),e(t(B),{direction:"vertical"}),s("div",ot,[dt,e(t(N),{class:"text-20px","start-val":0,"end-val":t(i).todo,duration:2600},null,8,["end-val"])]),e(t(B),{direction:"vertical","border-style":"dashed"}),s("div",rt,[it,e(t(N),{class:"text-20px","start-val":0,"end-val":t(i).access,duration:2600},null,8,["end-val"])])])]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),e(t(k),{class:"mt-20px",gutter:20,justify:"space-between"},{default:a(()=>[e(t(p),{xl:16,lg:16,md:24,sm:24,xs:24,class:"mb-20px"},{default:a(()=>[e(t(_),{shadow:"never"},{header:a(()=>[s("div",ct,[ut,e(t(E),{type:"primary",underline:!1},{default:a(()=>[j("更多")]),_:1})])]),default:a(()=>[e(t(g),{loading:n.value,animated:""},{default:a(()=>[e(t(k),null,{default:a(()=>[(c(!0),h($,null,O(t(f),(d,D)=>(c(),I(t(p),{key:`card-${D}`,xl:8,lg:8,md:12,sm:24,xs:24},{default:a(()=>[e(t(_),{shadow:"hover"},{default:a(()=>[s("div",mt,[e(P,{icon:d.icon,size:25,class:"mr-10px"},null,8,["icon"]),s("span",pt,x(d.name),1)]),s("div",_t,x(d.message),1),s("div",xt,[s("span",null,x(d.personal),1),s("span",null,x(t(Y)(d.time,"yyyy-MM-dd")),1)])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1},8,["loading"])]),_:1}),e(t(_),{shadow:"never",class:"mt-20px"},{header:a(()=>[s("div",ft,[gt,e(t(E),{type:"primary",underline:!1},{default:a(()=>[j("更多")]),_:1})])]),default:a(()=>[e(t(g),{loading:n.value,animated:""},{default:a(()=>[(c(!0),h($,null,O(t(v),(d,D)=>(c(),h("div",{key:`dynamics-${D}`},[s("div",ht,[vt,s("div",null,[s("div",yt,[e(t(G),{keys:d.keys.map(L=>L)},{default:a(()=>[j(" ShanYi 推送 代码到 Github ")]),_:2},1032,["keys"])]),s("div",wt,x(t(H)(d.time)),1)])]),e(t(B))]))),128))]),_:1},8,["loading"])]),_:1})]),_:1}),e(t(p),{xl:8,lg:8,md:24,sm:24,xs:24,class:"mb-20px"},{default:a(()=>[e(t(_),{shadow:"never"},{header:a(()=>[kt]),default:a(()=>[e(t(g),{loading:n.value,animated:""},{default:a(()=>[e(t(k),null,{default:a(()=>[(c(),h($,null,O(9,d=>e(t(p),{key:`card-${d}`,xl:12,lg:12,md:12,sm:24,xs:24,class:"mb-10px"},{default:a(()=>[e(t(E),{type:"default",underline:!1},{default:a(()=>[j(" 操作"+x(d),1)]),_:2},1024)]),_:2},1024)),64))]),_:1})]),_:1},8,["loading"])]),_:1}),e(t(_),{shadow:"never",class:"mt-20px"},{header:a(()=>[bt]),default:a(()=>[e(t(g),{loading:n.value,animated:""},{default:a(()=>[e(t(F),{options:t(S),height:400},null,8,["options"])]),_:1},8,["loading"])]),_:1}),e(t(_),{shadow:"never",class:"mt-20px"},{header:a(()=>[jt]),default:a(()=>[e(t(g),{loading:n.value,animated:""},{default:a(()=>[e(t(k),null,{default:a(()=>[(c(!0),h($,null,O(t(r),d=>(c(),I(t(p),{key:`team-${d.name}`,span:12,class:"mb-20px"},{default:a(()=>[s("div",$t,[e(P,{icon:d.icon,class:"mr-10px"},null,8,["icon"]),e(t(E),{type:"default",underline:!1},{default:a(()=>[j(x(d.name),1)]),_:2},1024)])]),_:2},1024))),128))]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})],64)}}});export{Wt as default}; +var m=(l,n,i)=>new Promise((T,f)=>{var C=r=>{try{y(i.next(r))}catch(w){f(w)}},v=r=>{try{y(i.throw(r))}catch(w){f(w)}},y=r=>r.done?T(r.value):Promise.resolve(r.value).then(C,v);y((i=i.apply(l,n)).next())});import{I as M}from"./Icon-B-0CON7P.js";import{_ as R}from"./avatar-CIGAabYz.js";import{p as W,m as g,n as k,k as p,q as B,l as _,r as E,s as q}from"./element-plus-6v3c1uXT.js";import{r as A,f as Y}from"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as N}from"./CountTo.vue_vue_type_script_setup_true_lang-BAvgPMEO.js";import{r as z,_ as F}from"./Echart.vue_vue_type_script_setup_true_lang-CrfDnuqg.js";import"./echarts-VT2A7KjM.js";import{_ as G}from"./Highlight.vue_vue_type_script_lang-BkEaAxMF.js";import{q as K,r as Q,K as b,t as c,v as h,x as s,P as e,S as a,u as t,W as j,Q as $,a8 as O,T as I,X as x}from"./vue-chunks-DOWhatC1.js";const X={justNow:"刚刚",invalid:"无效时间",past:l=>l.match(/\d/)?`${l}前`:l,future:l=>l.match(/\d/)?`${l}后`:l,month:(l,n)=>l===1?n?"上个月":"下个月":`${l} 个月`,year:(l,n)=>l===1?n?"去年":"明年":`${l} 年`,day:(l,n)=>l===1?n?"昨天":"明天":`${l} 天`,week:(l,n)=>l===1?n?"上周":"下周":`${l} 周`,hour:l=>`${l} 小时`,minute:l=>`${l} 分钟`,second:l=>`${l} 秒`},H=l=>W(l,{messages:X}),J=()=>A.get({url:"/mock/workplace/total"}),U=()=>A.get({url:"/mock/workplace/project"}),Z=()=>A.get({url:"/mock/workplace/dynamic"}),tt=()=>A.get({url:"/mock/workplace/team"}),et=()=>A.get({url:"/mock/workplace/radar"}),at=s("div",{class:"flex items-center"},[s("img",{src:R,alt:"",class:"w-70px h-70px rounded-[50%] mr-20px"}),s("div",null,[s("div",{class:"text-20px"},"早安,ShanYi,祝你开心每一天!"),s("div",{class:"mt-10px text-14px text-gray-500"},"今日晴,20℃ - 32℃!")])],-1),st={class:"flex h-70px items-center justify-end lt-sm:mt-20px"},lt={class:"px-8px text-right"},nt=s("div",{class:"text-14px text-gray-400 mb-20px"},"项目数",-1),ot={class:"px-8px text-right"},dt=s("div",{class:"text-14px text-gray-400 mb-20px"},"待办",-1),rt={class:"px-8px text-right"},it=s("div",{class:"text-14px text-gray-400 mb-20px"},"项目访问",-1),ct={class:"flex justify-between"},ut=s("span",null,"项目数",-1),mt={class:"flex items-center"},pt={class:"text-16px"},_t={class:"mt-15px text-14px text-gray-400"},xt={class:"mt-20px text-12px text-gray-400 flex justify-between"},ft={class:"flex justify-between"},gt=s("span",null,"动态",-1),ht={class:"flex items-center"},vt=s("img",{src:R,alt:"",class:"w-35px h-35px rounded-[50%] mr-20px"},null,-1),yt={class:"text-14px"},wt={class:"mt-15px text-12px text-gray-400"},kt=s("span",null,"快捷操作",-1),bt=s("span",null,"xx指数",-1),jt=s("span",null,"团队",-1),$t={class:"flex items-center"},Wt=K({__name:"Workplace",setup(l){const n=Q(!0);let i=b({project:0,access:0,todo:0});const T=()=>m(this,null,function*(){const o=yield J().catch(()=>{});o&&(i=Object.assign(i,o.data))});let f=b([]);const C=()=>m(this,null,function*(){const o=yield U().catch(()=>{});o&&(f=Object.assign(f,o.data))});let v=b([]);const y=()=>m(this,null,function*(){const o=yield Z().catch(()=>{});o&&(v=Object.assign(v,o.data))});let r=b([]);const w=()=>m(this,null,function*(){const o=yield tt().catch(()=>{});o&&(r=Object.assign(r,o.data))});let S=b(z);const V=()=>m(this,null,function*(){const o=yield et().catch(()=>{});o&&(q(S,"radar.indicator",o.data.map(u=>({name:u.name,max:u.max}))),q(S,"series",[{name:"xxx指数",type:"radar",data:[{value:o.data.map(u=>u.personal),name:"个人"},{value:o.data.map(u=>u.team),name:"团队"}]}]))});return m(this,null,function*(){yield Promise.all([T(),C(),y(),w(),V()]),n.value=!1}),(o,u)=>{const P=M;return c(),h($,null,[s("div",null,[e(t(_),{shadow:"never"},{default:a(()=>[e(t(g),{loading:n.value,animated:""},{default:a(()=>[e(t(k),{gutter:20,justify:"space-between"},{default:a(()=>[e(t(p),{xl:12,lg:12,md:12,sm:24,xs:24},{default:a(()=>[at]),_:1}),e(t(p),{xl:12,lg:12,md:12,sm:24,xs:24},{default:a(()=>[s("div",st,[s("div",lt,[nt,e(t(N),{class:"text-20px","start-val":0,"end-val":t(i).project,duration:2600},null,8,["end-val"])]),e(t(B),{direction:"vertical"}),s("div",ot,[dt,e(t(N),{class:"text-20px","start-val":0,"end-val":t(i).todo,duration:2600},null,8,["end-val"])]),e(t(B),{direction:"vertical","border-style":"dashed"}),s("div",rt,[it,e(t(N),{class:"text-20px","start-val":0,"end-val":t(i).access,duration:2600},null,8,["end-val"])])])]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),e(t(k),{class:"mt-20px",gutter:20,justify:"space-between"},{default:a(()=>[e(t(p),{xl:16,lg:16,md:24,sm:24,xs:24,class:"mb-20px"},{default:a(()=>[e(t(_),{shadow:"never"},{header:a(()=>[s("div",ct,[ut,e(t(E),{type:"primary",underline:!1},{default:a(()=>[j("更多")]),_:1})])]),default:a(()=>[e(t(g),{loading:n.value,animated:""},{default:a(()=>[e(t(k),null,{default:a(()=>[(c(!0),h($,null,O(t(f),(d,D)=>(c(),I(t(p),{key:`card-${D}`,xl:8,lg:8,md:12,sm:24,xs:24},{default:a(()=>[e(t(_),{shadow:"hover"},{default:a(()=>[s("div",mt,[e(P,{icon:d.icon,size:25,class:"mr-10px"},null,8,["icon"]),s("span",pt,x(d.name),1)]),s("div",_t,x(d.message),1),s("div",xt,[s("span",null,x(d.personal),1),s("span",null,x(t(Y)(d.time,"yyyy-MM-dd")),1)])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1},8,["loading"])]),_:1}),e(t(_),{shadow:"never",class:"mt-20px"},{header:a(()=>[s("div",ft,[gt,e(t(E),{type:"primary",underline:!1},{default:a(()=>[j("更多")]),_:1})])]),default:a(()=>[e(t(g),{loading:n.value,animated:""},{default:a(()=>[(c(!0),h($,null,O(t(v),(d,D)=>(c(),h("div",{key:`dynamics-${D}`},[s("div",ht,[vt,s("div",null,[s("div",yt,[e(t(G),{keys:d.keys.map(L=>L)},{default:a(()=>[j(" ShanYi 推送 代码到 Github ")]),_:2},1032,["keys"])]),s("div",wt,x(t(H)(d.time)),1)])]),e(t(B))]))),128))]),_:1},8,["loading"])]),_:1})]),_:1}),e(t(p),{xl:8,lg:8,md:24,sm:24,xs:24,class:"mb-20px"},{default:a(()=>[e(t(_),{shadow:"never"},{header:a(()=>[kt]),default:a(()=>[e(t(g),{loading:n.value,animated:""},{default:a(()=>[e(t(k),null,{default:a(()=>[(c(),h($,null,O(9,d=>e(t(p),{key:`card-${d}`,xl:12,lg:12,md:12,sm:24,xs:24,class:"mb-10px"},{default:a(()=>[e(t(E),{type:"default",underline:!1},{default:a(()=>[j(" 操作"+x(d),1)]),_:2},1024)]),_:2},1024)),64))]),_:1})]),_:1},8,["loading"])]),_:1}),e(t(_),{shadow:"never",class:"mt-20px"},{header:a(()=>[bt]),default:a(()=>[e(t(g),{loading:n.value,animated:""},{default:a(()=>[e(t(F),{options:t(S),height:400},null,8,["options"])]),_:1},8,["loading"])]),_:1}),e(t(_),{shadow:"never",class:"mt-20px"},{header:a(()=>[jt]),default:a(()=>[e(t(g),{loading:n.value,animated:""},{default:a(()=>[e(t(k),null,{default:a(()=>[(c(!0),h($,null,O(t(r),d=>(c(),I(t(p),{key:`team-${d.name}`,span:12,class:"mb-20px"},{default:a(()=>[s("div",$t,[e(P,{icon:d.icon,class:"mr-10px"},null,8,["icon"]),e(t(E),{type:"default",underline:!1},{default:a(()=>[j(x(d.name),1)]),_:2},1024)])]),_:2},1024))),128))]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})],64)}}});export{Wt as default}; diff --git a/assets/Write-C4MdhBEG.js b/assets/Write-C4MdhBEG.js new file mode 100644 index 00000000..4a6fa04b --- /dev/null +++ b/assets/Write-C4MdhBEG.js @@ -0,0 +1 @@ +import{_ as o}from"./Write.vue_vue_type_script_setup_true_lang-DgvKX96v.js";import"./Form-B3fdtaFM.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./Icon-B-0CON7P.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */import"./useForm-BIADJKAv.js";import"./useValidator-Nt61Jv1p.js";export{o as default}; diff --git a/assets/Write-C60S3lqk.js b/assets/Write-C60S3lqk.js new file mode 100644 index 00000000..d7618c20 --- /dev/null +++ b/assets/Write-C60S3lqk.js @@ -0,0 +1 @@ +import{_ as o}from"./Write.vue_vue_type_script_setup_true_lang-uIkHTRx6.js";import"./Form-B3fdtaFM.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./Icon-B-0CON7P.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */import"./useForm-BIADJKAv.js";import"./useValidator-Nt61Jv1p.js";export{o as default}; diff --git a/assets/Write-CMLvD6PZ.js b/assets/Write-CMLvD6PZ.js deleted file mode 100644 index 9240b575..00000000 --- a/assets/Write-CMLvD6PZ.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Write.vue_vue_type_script_setup_true_lang-C9laaz9C.js";import"./Form-DJ57xbBt.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./Icon-Bwi9LaBZ.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */import"./useForm-CbOF_UB2.js";import"./useValidator-Nt61Jv1p.js";import"./index-CRNzobZS.js";/* empty css */import"./AddButtonPermission.vue_vue_type_script_setup_true_lang-C9agW6Rw.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";export{o as default}; diff --git a/assets/Write-D1Qaqcxi.js b/assets/Write-D1Qaqcxi.js new file mode 100644 index 00000000..281e299c --- /dev/null +++ b/assets/Write-D1Qaqcxi.js @@ -0,0 +1 @@ +import{_ as o}from"./Write.vue_vue_type_script_setup_true_lang-CIiSGwSL.js";import"./Form-B3fdtaFM.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./Icon-B-0CON7P.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */import"./useForm-BIADJKAv.js";import"./useValidator-Nt61Jv1p.js";export{o as default}; diff --git a/assets/Write-D4uWemfC.js b/assets/Write-D4uWemfC.js deleted file mode 100644 index 24606fee..00000000 --- a/assets/Write-D4uWemfC.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Write.vue_vue_type_script_setup_true_lang-BCm2J1Ks.js";import"./Form-DJ57xbBt.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./Icon-Bwi9LaBZ.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */import"./useForm-CbOF_UB2.js";import"./useValidator-Nt61Jv1p.js";export{o as default}; diff --git a/assets/Write-DFUzDWxn.js b/assets/Write-DFUzDWxn.js new file mode 100644 index 00000000..5af19a7b --- /dev/null +++ b/assets/Write-DFUzDWxn.js @@ -0,0 +1 @@ +import{_ as o}from"./Write.vue_vue_type_script_setup_true_lang-BBz-bjD1.js";import"./Form-B3fdtaFM.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./Icon-B-0CON7P.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */import"./useForm-BIADJKAv.js";import"./useValidator-Nt61Jv1p.js";import"./index-BYcZ39zx.js";/* empty css */import"./AddButtonPermission.vue_vue_type_script_setup_true_lang-wVzKuO8R.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";export{o as default}; diff --git a/assets/Write-DHYggKqv.js b/assets/Write-DHYggKqv.js deleted file mode 100644 index 016b699d..00000000 --- a/assets/Write-DHYggKqv.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Write.vue_vue_type_script_setup_true_lang-_SFmF5k8.js";import"./Form-DJ57xbBt.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./Icon-Bwi9LaBZ.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */import"./useForm-CbOF_UB2.js";import"./useValidator-Nt61Jv1p.js";export{o as default}; diff --git a/assets/Write-DLh0tahb.js b/assets/Write-DLh0tahb.js new file mode 100644 index 00000000..59d87dc5 --- /dev/null +++ b/assets/Write-DLh0tahb.js @@ -0,0 +1 @@ +import{_ as o}from"./Write.vue_vue_type_script_setup_true_lang-Ce1mcWoJ.js";import"./Form-B3fdtaFM.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./Icon-B-0CON7P.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */import"./useForm-BIADJKAv.js";import"./useValidator-Nt61Jv1p.js";import"./index-BYcZ39zx.js";import"./tree-Dgaev6Pi.js";export{o as default}; diff --git a/assets/Write-DmcObcsQ.js b/assets/Write-DmcObcsQ.js deleted file mode 100644 index 03b55349..00000000 --- a/assets/Write-DmcObcsQ.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Write.vue_vue_type_script_setup_true_lang-B0H_2X2p.js";import"./Form-DJ57xbBt.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./Icon-Bwi9LaBZ.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */import"./useForm-CbOF_UB2.js";import"./useValidator-Nt61Jv1p.js";export{o as default}; diff --git a/assets/Write-DpyumCnR.js b/assets/Write-DpyumCnR.js deleted file mode 100644 index 87a4f471..00000000 --- a/assets/Write-DpyumCnR.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Write.vue_vue_type_script_setup_true_lang-PCxcjRLC.js";import"./Form-DJ57xbBt.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./Icon-Bwi9LaBZ.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */import"./useForm-CbOF_UB2.js";import"./useValidator-Nt61Jv1p.js";import"./index-CRNzobZS.js";import"./tree-Dgaev6Pi.js";export{o as default}; diff --git a/assets/Write-tgoSuZxw.js b/assets/Write-tgoSuZxw.js deleted file mode 100644 index 5959bada..00000000 --- a/assets/Write-tgoSuZxw.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Write.vue_vue_type_script_setup_true_lang-XLSypuqk.js";import"./Form-DJ57xbBt.js";import"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./Icon-Bwi9LaBZ.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */import"./useForm-CbOF_UB2.js";import"./useValidator-Nt61Jv1p.js";export{o as default}; diff --git a/assets/Write-x8NPtotc.js b/assets/Write-x8NPtotc.js new file mode 100644 index 00000000..c0e2ee42 --- /dev/null +++ b/assets/Write-x8NPtotc.js @@ -0,0 +1 @@ +import{_ as o}from"./Write.vue_vue_type_script_setup_true_lang-CdW4xsT_.js";import"./Form-B3fdtaFM.js";import"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./Icon-B-0CON7P.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */import"./useForm-BIADJKAv.js";import"./useValidator-Nt61Jv1p.js";export{o as default}; diff --git a/assets/Write.vue_vue_type_script_setup_true_lang-C9laaz9C.js b/assets/Write.vue_vue_type_script_setup_true_lang-BBz-bjD1.js similarity index 94% rename from assets/Write.vue_vue_type_script_setup_true_lang-C9laaz9C.js rename to assets/Write.vue_vue_type_script_setup_true_lang-BBz-bjD1.js index b7543d0a..c4b2d790 100644 --- a/assets/Write.vue_vue_type_script_setup_true_lang-C9laaz9C.js +++ b/assets/Write.vue_vue_type_script_setup_true_lang-BBz-bjD1.js @@ -1 +1 @@ -var D=Object.defineProperty;var I=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var k=(i,s,a)=>s in i?D(i,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[s]=a,S=(i,s)=>{for(var a in s||(s={}))N.call(s,a)&&k(i,a,s[a]);if(I)for(var a of I(s))O.call(s,a)&&k(i,a,s[a]);return i};var c=(i,s,a)=>new Promise((w,f)=>{var g=t=>{try{r(a.next(t))}catch(d){f(d)}},C=t=>{try{r(a.throw(t))}catch(d){f(d)}},r=t=>t.done?w(t.value):Promise.resolve(t.value).then(g,C);r((a=a.apply(i,s)).next())});import{F as M}from"./Form-DJ57xbBt.js";import{u as U}from"./useForm-CbOF_UB2.js";import{u as q}from"./useValidator-Nt61Jv1p.js";import{g as K}from"./index-CRNzobZS.js";import"./index-CA0d6hyI.js";/* empty css */import"./IconPicker-Cmmw5lYe.js";/* empty css *//* empty css *//* empty css */import{_ as W}from"./AddButtonPermission.vue_vue_type_script_setup_true_lang-C9agW6Rw.js";import{_ as $}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{ae as j,af as v,A as _,C as G,a3 as V,al as Q,d as H}from"./element-plus-6v3c1uXT.js";import{q as J,r as x,K as L,u as h,P as o,W as y,Q as E,w as X,t as Y,v as Z}from"./vue-chunks-DOWhatC1.js";const be=J({__name:"Write",props:{currentRow:{type:Object,default:()=>null}},setup(i,{expose:s}){const{required:a}=q(),w=i,f=l=>c(this,null,function*(){var n;const e=yield m();p({permissionList:(n=e==null?void 0:e.permissionList)==null?void 0:n.filter(P=>P.value!==l.value)})}),g=l=>c(this,null,function*(){t.value=S({},l)}),C=()=>c(this,null,function*(){var n;const l=yield m(),e=(n=l==null?void 0:l.permissionList)==null?void 0:n.findIndex(P=>P.id===t.value.id);e!==-1&&(l.permissionList[e]=S({},t.value),t.value=null)}),r=x(!1),t=x(null),d=L([{field:"type",label:"菜单类型",component:"RadioButton",value:0,colProps:{span:24},componentProps:{options:[{label:"目录",value:0},{label:"菜单",value:1}],on:{change:l=>c(this,null,function*(){const e=yield m();l===1?(u([{field:"component",path:"componentProps.disabled",value:!1}]),p({component:h(b)})):(u([{field:"component",path:"componentProps.disabled",value:!0}]),e.parentId===void 0?p({component:"#"}):p({component:"##"}))})}}},{field:"parentId",label:"父级菜单",component:"TreeSelect",componentProps:{nodeKey:"id",props:{label:"title",value:"id",children:"children"},highlightCurrent:!0,expandOnClickNode:!1,checkStrictly:!0,checkOnClickNode:!0,clearable:!0,on:{change:l=>c(this,null,function*(){var n;const e=yield m();l&&e.type===0?p({component:"##"}):!l&&e.type===0?p({component:"#"}):e.type===1&&p({component:(n=h(b))!=null?n:""})})}},optionApi:()=>c(this,null,function*(){return(yield K()).data.list||[]})},{field:"meta.title",label:"菜单名称",component:"Input"},{field:"component",label:"组件",component:"Input",value:"#",componentProps:{disabled:!0,placeholder:"#为顶级目录,##为子目录",on:{change:l=>{b.value=l}}}},{field:"name",label:"组件名称",component:"Input"},{field:"meta.icon",label:"图标",component:"Input"},{field:"path",label:"路径",component:"Input"},{field:"meta.activeMenu",label:"高亮菜单",component:"Input"},{field:"status",label:"状态",component:"Select",componentProps:{options:[{label:"禁用",value:0},{label:"启用",value:1}]}},{field:"permissionList",label:"按钮权限",component:"CheckboxGroup",colProps:{span:24},formItemProps:{slots:{default:l=>o(E,null,[o($,{class:"m-t-5px",type:"primary",size:"small",onClick:()=>r.value=!0},{default:()=>[y("添加权限")]}),o(j,{data:l==null?void 0:l.permissionList},{default:()=>[o(v,{type:"index",prop:"id"},null),o(v,{prop:"value",label:"Value"},{default:({row:e})=>t.value&&t.value.id===e.id?o(_,{modelValue:t.value.value,"onUpdate:modelValue":n=>t.value.value=n,size:"small"},null):o("span",null,[e.value])}),o(v,{prop:"label",label:"Label"},{default:({row:e})=>t.value&&t.value.id===e.id?o(_,{modelValue:t.value.label,"onUpdate:modelValue":n=>t.value.label=n,size:"small"},null):o(G,{class:"mr-1",key:e.value},{default:()=>[e.label]})}),o(v,{label:"Operations",width:"180"},{default:({row:e})=>t.value&&t.value.id===e.id?o(V,{size:"small",type:"primary",onClick:C},{default:()=>[y("确定")]}):o(E,null,[o(V,{size:"small",type:"primary",onClick:()=>g(e)},{default:()=>[y("编辑")]}),o(Q,{title:"Are you sure to delete this?",onConfirm:()=>f(e)},{reference:()=>o(V,{size:"small",type:"danger"},{default:()=>[y("删除")]})})])})]})])}}},{field:"meta.hidden",label:"是否隐藏",component:"Switch"},{field:"meta.alwaysShow",label:"是否一直显示",component:"Switch"},{field:"meta.noCache",label:"是否清除缓存",component:"Switch"},{field:"meta.breadcrumb",label:"是否显示面包屑",component:"Switch"},{field:"meta.affix",label:"是否固定在标签页",component:"Switch"},{field:"meta.noTagsView",label:"是否隐藏标签页",component:"Switch"},{field:"meta.canTo",label:"是否可跳转",component:"Switch"}]),F=L({component:[a()],path:[a()],"meta.title":[a()]}),{formRegister:R,formMethods:T}=U(),{setValues:p,getFormData:m,getElFormExpose:z,setSchema:u}=T,A=()=>c(this,null,function*(){const l=yield z();if(yield l==null?void 0:l.validate().catch(n=>{}))return yield m()}),b=x("");X(()=>w.currentRow,l=>{if(!l)return;const e=H(l);b.value=e.type===1?e.component:"",e.parentId===0?u([{field:"component",path:"componentProps.disabled",value:!0}]):u([{field:"component",path:"componentProps.disabled",value:!1}]),e.type===1?u([{field:"component",path:"componentProps.disabled",value:!1}]):u([{field:"component",path:"componentProps.disabled",value:!0}]),p(e)},{deep:!0,immediate:!0}),s({submit:A});const B=l=>c(this,null,function*(){const e=yield m();p({permissionList:[...(e==null?void 0:e.permissionList)||[],l]})});return(l,e)=>(Y(),Z(E,null,[o(h(M),{rules:F,onRegister:h(R),schema:d},null,8,["rules","onRegister","schema"]),o(W,{modelValue:r.value,"onUpdate:modelValue":e[0]||(e[0]=n=>r.value=n),onConfirm:B},null,8,["modelValue"])],64))}});export{be as _}; +var D=Object.defineProperty;var I=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var k=(i,s,a)=>s in i?D(i,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[s]=a,S=(i,s)=>{for(var a in s||(s={}))N.call(s,a)&&k(i,a,s[a]);if(I)for(var a of I(s))O.call(s,a)&&k(i,a,s[a]);return i};var c=(i,s,a)=>new Promise((w,f)=>{var g=t=>{try{r(a.next(t))}catch(d){f(d)}},C=t=>{try{r(a.throw(t))}catch(d){f(d)}},r=t=>t.done?w(t.value):Promise.resolve(t.value).then(g,C);r((a=a.apply(i,s)).next())});import{F as M}from"./Form-B3fdtaFM.js";import{u as U}from"./useForm-BIADJKAv.js";import{u as q}from"./useValidator-Nt61Jv1p.js";import{g as K}from"./index-BYcZ39zx.js";import"./index-B5z15nYm.js";/* empty css */import"./IconPicker-WxbdLOo_.js";/* empty css *//* empty css *//* empty css */import{_ as W}from"./AddButtonPermission.vue_vue_type_script_setup_true_lang-wVzKuO8R.js";import{_ as $}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{ae as j,af as v,A as _,C as G,a3 as V,al as Q,d as H}from"./element-plus-6v3c1uXT.js";import{q as J,r as x,K as L,u as h,P as o,W as y,Q as E,w as X,t as Y,v as Z}from"./vue-chunks-DOWhatC1.js";const be=J({__name:"Write",props:{currentRow:{type:Object,default:()=>null}},setup(i,{expose:s}){const{required:a}=q(),w=i,f=l=>c(this,null,function*(){var n;const e=yield m();p({permissionList:(n=e==null?void 0:e.permissionList)==null?void 0:n.filter(P=>P.value!==l.value)})}),g=l=>c(this,null,function*(){t.value=S({},l)}),C=()=>c(this,null,function*(){var n;const l=yield m(),e=(n=l==null?void 0:l.permissionList)==null?void 0:n.findIndex(P=>P.id===t.value.id);e!==-1&&(l.permissionList[e]=S({},t.value),t.value=null)}),r=x(!1),t=x(null),d=L([{field:"type",label:"菜单类型",component:"RadioButton",value:0,colProps:{span:24},componentProps:{options:[{label:"目录",value:0},{label:"菜单",value:1}],on:{change:l=>c(this,null,function*(){const e=yield m();l===1?(u([{field:"component",path:"componentProps.disabled",value:!1}]),p({component:h(b)})):(u([{field:"component",path:"componentProps.disabled",value:!0}]),e.parentId===void 0?p({component:"#"}):p({component:"##"}))})}}},{field:"parentId",label:"父级菜单",component:"TreeSelect",componentProps:{nodeKey:"id",props:{label:"title",value:"id",children:"children"},highlightCurrent:!0,expandOnClickNode:!1,checkStrictly:!0,checkOnClickNode:!0,clearable:!0,on:{change:l=>c(this,null,function*(){var n;const e=yield m();l&&e.type===0?p({component:"##"}):!l&&e.type===0?p({component:"#"}):e.type===1&&p({component:(n=h(b))!=null?n:""})})}},optionApi:()=>c(this,null,function*(){return(yield K()).data.list||[]})},{field:"meta.title",label:"菜单名称",component:"Input"},{field:"component",label:"组件",component:"Input",value:"#",componentProps:{disabled:!0,placeholder:"#为顶级目录,##为子目录",on:{change:l=>{b.value=l}}}},{field:"name",label:"组件名称",component:"Input"},{field:"meta.icon",label:"图标",component:"Input"},{field:"path",label:"路径",component:"Input"},{field:"meta.activeMenu",label:"高亮菜单",component:"Input"},{field:"status",label:"状态",component:"Select",componentProps:{options:[{label:"禁用",value:0},{label:"启用",value:1}]}},{field:"permissionList",label:"按钮权限",component:"CheckboxGroup",colProps:{span:24},formItemProps:{slots:{default:l=>o(E,null,[o($,{class:"m-t-5px",type:"primary",size:"small",onClick:()=>r.value=!0},{default:()=>[y("添加权限")]}),o(j,{data:l==null?void 0:l.permissionList},{default:()=>[o(v,{type:"index",prop:"id"},null),o(v,{prop:"value",label:"Value"},{default:({row:e})=>t.value&&t.value.id===e.id?o(_,{modelValue:t.value.value,"onUpdate:modelValue":n=>t.value.value=n,size:"small"},null):o("span",null,[e.value])}),o(v,{prop:"label",label:"Label"},{default:({row:e})=>t.value&&t.value.id===e.id?o(_,{modelValue:t.value.label,"onUpdate:modelValue":n=>t.value.label=n,size:"small"},null):o(G,{class:"mr-1",key:e.value},{default:()=>[e.label]})}),o(v,{label:"Operations",width:"180"},{default:({row:e})=>t.value&&t.value.id===e.id?o(V,{size:"small",type:"primary",onClick:C},{default:()=>[y("确定")]}):o(E,null,[o(V,{size:"small",type:"primary",onClick:()=>g(e)},{default:()=>[y("编辑")]}),o(Q,{title:"Are you sure to delete this?",onConfirm:()=>f(e)},{reference:()=>o(V,{size:"small",type:"danger"},{default:()=>[y("删除")]})})])})]})])}}},{field:"meta.hidden",label:"是否隐藏",component:"Switch"},{field:"meta.alwaysShow",label:"是否一直显示",component:"Switch"},{field:"meta.noCache",label:"是否清除缓存",component:"Switch"},{field:"meta.breadcrumb",label:"是否显示面包屑",component:"Switch"},{field:"meta.affix",label:"是否固定在标签页",component:"Switch"},{field:"meta.noTagsView",label:"是否隐藏标签页",component:"Switch"},{field:"meta.canTo",label:"是否可跳转",component:"Switch"}]),F=L({component:[a()],path:[a()],"meta.title":[a()]}),{formRegister:R,formMethods:T}=U(),{setValues:p,getFormData:m,getElFormExpose:z,setSchema:u}=T,A=()=>c(this,null,function*(){const l=yield z();if(yield l==null?void 0:l.validate().catch(n=>{}))return yield m()}),b=x("");X(()=>w.currentRow,l=>{if(!l)return;const e=H(l);b.value=e.type===1?e.component:"",e.parentId===0?u([{field:"component",path:"componentProps.disabled",value:!0}]):u([{field:"component",path:"componentProps.disabled",value:!1}]),e.type===1?u([{field:"component",path:"componentProps.disabled",value:!1}]):u([{field:"component",path:"componentProps.disabled",value:!0}]),p(e)},{deep:!0,immediate:!0}),s({submit:A});const B=l=>c(this,null,function*(){const e=yield m();p({permissionList:[...(e==null?void 0:e.permissionList)||[],l]})});return(l,e)=>(Y(),Z(E,null,[o(h(M),{rules:F,onRegister:h(R),schema:d},null,8,["rules","onRegister","schema"]),o(W,{modelValue:r.value,"onUpdate:modelValue":e[0]||(e[0]=n=>r.value=n),onConfirm:B},null,8,["modelValue"])],64))}});export{be as _}; diff --git a/assets/Write.vue_vue_type_script_setup_true_lang-B0H_2X2p.js b/assets/Write.vue_vue_type_script_setup_true_lang-CIiSGwSL.js similarity index 88% rename from assets/Write.vue_vue_type_script_setup_true_lang-B0H_2X2p.js rename to assets/Write.vue_vue_type_script_setup_true_lang-CIiSGwSL.js index 1f07d3f3..372a1225 100644 --- a/assets/Write.vue_vue_type_script_setup_true_lang-B0H_2X2p.js +++ b/assets/Write.vue_vue_type_script_setup_true_lang-CIiSGwSL.js @@ -1 +1 @@ -var p=(s,n,e)=>new Promise((i,c)=>{var m=t=>{try{r(e.next(t))}catch(o){c(o)}},u=t=>{try{r(e.throw(t))}catch(o){c(o)}},r=t=>t.done?i(t.value):Promise.resolve(t.value).then(m,u);r((e=e.apply(s,n)).next())});import{F as w}from"./Form-DJ57xbBt.js";import{u as g}from"./useForm-CbOF_UB2.js";import{u as _}from"./useValidator-Nt61Jv1p.js";import{q as v,K as y,w as x,t as F,T as R,u as f}from"./vue-chunks-DOWhatC1.js";const E=v({__name:"Write",props:{currentRow:{type:Object,default:()=>null},formSchema:{type:Array,default:()=>[]}},setup(s,{expose:n}){const{required:e}=_(),i=s,c=y({title:[e()],author:[e()],importance:[e()],pageviews:[e()],display_time:[e()],content:[e()]}),{formRegister:m,formMethods:u}=g(),{setValues:r,getFormData:t,getElFormExpose:o}=u,l=()=>p(this,null,function*(){const a=yield o();if(yield a==null?void 0:a.validate().catch(h=>{}))return yield t()});return x(()=>i.currentRow,a=>{a&&r(a)},{deep:!0,immediate:!0}),n({submit:l}),(a,d)=>(F(),R(f(w),{rules:c,onRegister:f(m),schema:s.formSchema},null,8,["rules","onRegister","schema"]))}});export{E as _}; +var p=(s,n,e)=>new Promise((i,c)=>{var m=t=>{try{r(e.next(t))}catch(o){c(o)}},u=t=>{try{r(e.throw(t))}catch(o){c(o)}},r=t=>t.done?i(t.value):Promise.resolve(t.value).then(m,u);r((e=e.apply(s,n)).next())});import{F as w}from"./Form-B3fdtaFM.js";import{u as g}from"./useForm-BIADJKAv.js";import{u as _}from"./useValidator-Nt61Jv1p.js";import{q as v,K as y,w as x,t as F,T as R,u as f}from"./vue-chunks-DOWhatC1.js";const E=v({__name:"Write",props:{currentRow:{type:Object,default:()=>null},formSchema:{type:Array,default:()=>[]}},setup(s,{expose:n}){const{required:e}=_(),i=s,c=y({title:[e()],author:[e()],importance:[e()],pageviews:[e()],display_time:[e()],content:[e()]}),{formRegister:m,formMethods:u}=g(),{setValues:r,getFormData:t,getElFormExpose:o}=u,l=()=>p(this,null,function*(){const a=yield o();if(yield a==null?void 0:a.validate().catch(h=>{}))return yield t()});return x(()=>i.currentRow,a=>{a&&r(a)},{deep:!0,immediate:!0}),n({submit:l}),(a,d)=>(F(),R(f(w),{rules:c,onRegister:f(m),schema:s.formSchema},null,8,["rules","onRegister","schema"]))}});export{E as _}; diff --git a/assets/Write.vue_vue_type_script_setup_true_lang-BCm2J1Ks.js b/assets/Write.vue_vue_type_script_setup_true_lang-CdW4xsT_.js similarity index 93% rename from assets/Write.vue_vue_type_script_setup_true_lang-BCm2J1Ks.js rename to assets/Write.vue_vue_type_script_setup_true_lang-CdW4xsT_.js index 278d67cc..89332bf3 100644 --- a/assets/Write.vue_vue_type_script_setup_true_lang-BCm2J1Ks.js +++ b/assets/Write.vue_vue_type_script_setup_true_lang-CdW4xsT_.js @@ -1 +1 @@ -var i=(l,m,e)=>new Promise((p,n)=>{var c=o=>{try{a(e.next(o))}catch(r){n(r)}},s=o=>{try{a(e.throw(o))}catch(r){n(r)}},a=o=>o.done?p(o.value):Promise.resolve(o.value).then(c,s);a((e=e.apply(l,m)).next())});import{F as g}from"./Form-DJ57xbBt.js";import{u as _}from"./useForm-CbOF_UB2.js";import{u as I}from"./useValidator-Nt61Jv1p.js";import{q as w,K as u,w as D,t as y,T as F,u as f}from"./vue-chunks-DOWhatC1.js";const M=w({__name:"Write",props:{currentRow:{type:Object,default:()=>null}},setup(l,{expose:m}){const{required:e}=I(),p=l,{formRegister:n,formMethods:c}=_(),{setValues:s,getFormData:a,getElFormExpose:o,setSchema:r}=c,d=u([{field:"title",label:"标题",component:"Input",formItemProps:{rules:[e()]},colProps:{span:24}},{field:"author",label:"作者",component:"Input",formItemProps:{rules:[e()]}},{field:"display_time",label:"创建时间",component:"DatePicker",componentProps:{type:"datetime",valueFormat:"YYYY-MM-DD HH:mm:ss"},formItemProps:{rules:[e()]}},{field:"importance",label:"重要性",component:"Select",formItemProps:{rules:[e()]},componentProps:{options:[{label:"重要",value:3},{label:"良好",value:2},{label:"一般",value:1}]}},{field:"pageviews",label:"阅读数",component:"InputNumber",value:0,formItemProps:{rules:[e()]}},{field:"content",component:"Editor",colProps:{span:24},componentProps:{defaultHtml:"",onChange:t=>{s({content:t.getHtml()})}},label:"内容"}]),b=u({title:[e()],author:[e()],importance:[e()],pageviews:[e()],display_time:[e()],content:[e()]}),v=()=>i(this,null,function*(){const t=yield o();if(yield t==null?void 0:t.validate().catch(h=>{}))return yield a()});return D(()=>p.currentRow,t=>{t&&(s(t),r([{field:"content",path:"componentProps.defaultHtml",value:t.content}]))},{deep:!0,immediate:!0}),m({submit:v}),(t,P)=>(y(),F(f(g),{rules:b,onRegister:f(n),schema:d},null,8,["rules","onRegister","schema"]))}});export{M as _}; +var i=(l,m,e)=>new Promise((p,n)=>{var c=o=>{try{a(e.next(o))}catch(r){n(r)}},s=o=>{try{a(e.throw(o))}catch(r){n(r)}},a=o=>o.done?p(o.value):Promise.resolve(o.value).then(c,s);a((e=e.apply(l,m)).next())});import{F as g}from"./Form-B3fdtaFM.js";import{u as _}from"./useForm-BIADJKAv.js";import{u as I}from"./useValidator-Nt61Jv1p.js";import{q as w,K as u,w as D,t as y,T as F,u as f}from"./vue-chunks-DOWhatC1.js";const M=w({__name:"Write",props:{currentRow:{type:Object,default:()=>null}},setup(l,{expose:m}){const{required:e}=I(),p=l,{formRegister:n,formMethods:c}=_(),{setValues:s,getFormData:a,getElFormExpose:o,setSchema:r}=c,d=u([{field:"title",label:"标题",component:"Input",formItemProps:{rules:[e()]},colProps:{span:24}},{field:"author",label:"作者",component:"Input",formItemProps:{rules:[e()]}},{field:"display_time",label:"创建时间",component:"DatePicker",componentProps:{type:"datetime",valueFormat:"YYYY-MM-DD HH:mm:ss"},formItemProps:{rules:[e()]}},{field:"importance",label:"重要性",component:"Select",formItemProps:{rules:[e()]},componentProps:{options:[{label:"重要",value:3},{label:"良好",value:2},{label:"一般",value:1}]}},{field:"pageviews",label:"阅读数",component:"InputNumber",value:0,formItemProps:{rules:[e()]}},{field:"content",component:"Editor",colProps:{span:24},componentProps:{defaultHtml:"",onChange:t=>{s({content:t.getHtml()})}},label:"内容"}]),b=u({title:[e()],author:[e()],importance:[e()],pageviews:[e()],display_time:[e()],content:[e()]}),v=()=>i(this,null,function*(){const t=yield o();if(yield t==null?void 0:t.validate().catch(h=>{}))return yield a()});return D(()=>p.currentRow,t=>{t&&(s(t),r([{field:"content",path:"componentProps.defaultHtml",value:t.content}]))},{deep:!0,immediate:!0}),m({submit:v}),(t,P)=>(y(),F(f(g),{rules:b,onRegister:f(n),schema:d},null,8,["rules","onRegister","schema"]))}});export{M as _}; diff --git a/assets/Write.vue_vue_type_script_setup_true_lang-PCxcjRLC.js b/assets/Write.vue_vue_type_script_setup_true_lang-Ce1mcWoJ.js similarity index 91% rename from assets/Write.vue_vue_type_script_setup_true_lang-PCxcjRLC.js rename to assets/Write.vue_vue_type_script_setup_true_lang-Ce1mcWoJ.js index e94ce1cd..630d7216 100644 --- a/assets/Write.vue_vue_type_script_setup_true_lang-PCxcjRLC.js +++ b/assets/Write.vue_vue_type_script_setup_true_lang-Ce1mcWoJ.js @@ -1 +1 @@ -var D=Object.defineProperty;var v=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var y=(o,s,e)=>s in o?D(o,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[s]=e,R=(o,s)=>{for(var e in s||(s={}))M.call(s,e)&&y(o,e,s[e]);if(v)for(var e of v(s))N.call(s,e)&&y(o,e,s[e]);return o};var w=(o,s,e)=>new Promise((f,d)=>{var b=l=>{try{h(e.next(l))}catch(k){d(k)}},c=l=>{try{h(e.throw(l))}catch(k){d(k)}},h=l=>l.done?f(l.value):Promise.resolve(l.value).then(b,c);h((e=e.apply(o,s)).next())});import{F as P}from"./Form-DJ57xbBt.js";import{u as I}from"./useForm-CbOF_UB2.js";import{u as K}from"./useValidator-Nt61Jv1p.js";import{m as S}from"./index-CA0d6hyI.js";/* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";import{g as q}from"./index-CRNzobZS.js";import{e as _,f as B}from"./tree-Dgaev6Pi.js";import{ak as j,S as A,y as G}from"./element-plus-6v3c1uXT.js";import{q as O,r as x,P as u,u as i,Q,K as U,w as W,t as z,T as H,n as J}from"./vue-chunks-DOWhatC1.js";const ce=O({__name:"Write",props:{currentRow:{type:Object,default:()=>null}},setup(o,{expose:s}){const{required:e}=K(),f=o,d=x(),b=x([{field:"roleName",label:"角色名称",component:"Input"},{field:"status",label:"状态",component:"Select",componentProps:{options:[{label:"禁用",value:0},{label:"启用",value:1}]}},{field:"menu",label:"菜单分配",colProps:{span:24},formItemProps:{slots:{default:()=>{var t;return u(Q,null,[u("div",{class:"flex w-full"},[u("div",{class:"flex-1"},[u(j,{ref:d,"show-checkbox":!0,"node-key":"id","highlight-current":!0,"check-strictly":!0,"expand-on-click-node":!1,data:g.value,"onNode-click":h},{default:r=>u("span",null,[r.data.meta.title])})]),u("div",{class:"flex-1"},[i(c)&&((t=i(c))!=null&&t.permissionList)?u(A,{modelValue:i(c).meta.permission,"onUpdate:modelValue":r=>i(c).meta.permission=r},{default:()=>{var r;return[(r=i(c))==null?void 0:r.permissionList.map(n=>u(G,{label:n.value},{default:()=>[n.label]}))]}}):null])])])}}}}]),c=x(),h=t=>{c.value=t},l=U({roleName:[e()],role:[e()],status:[e()]}),{formRegister:k,formMethods:C}=I(),{setValues:E,getFormData:F,getElFormExpose:L}=C,g=x([]);w(this,null,function*(){var r;const t=yield q();if(t){if(g.value=t.data.list,!f.currentRow)return;yield J();const n=[];_(f.currentRow.menu,a=>{var m;n.push({id:a.id,permission:((m=a.meta)==null?void 0:m.permission)||[]})}),_(g.value,a=>{const m=S(n,p=>p.id===a.id);if(m>-1){const p=R({},a.meta||{});p.permission=n[m].permission,a.meta=p}});for(const a of n)(r=i(d))==null||r.setChecked(a.id,!0,!1)}});const T=()=>w(this,null,function*(){var n;const t=yield L();if(yield t==null?void 0:t.validate().catch(a=>{})){const a=yield F(),m=((n=i(d))==null?void 0:n.getCheckedKeys())||[],p=B(i(g),V=>m.includes(V.id));return a.menu=p||[],a}});return W(()=>f.currentRow,t=>{t&&E(t)},{deep:!0,immediate:!0}),s({submit:T}),(t,r)=>(z(),H(i(P),{rules:l,onRegister:i(k),schema:b.value},null,8,["rules","onRegister","schema"]))}});export{ce as _}; +var D=Object.defineProperty;var v=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var y=(o,s,e)=>s in o?D(o,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[s]=e,R=(o,s)=>{for(var e in s||(s={}))M.call(s,e)&&y(o,e,s[e]);if(v)for(var e of v(s))N.call(s,e)&&y(o,e,s[e]);return o};var w=(o,s,e)=>new Promise((f,d)=>{var b=l=>{try{h(e.next(l))}catch(k){d(k)}},c=l=>{try{h(e.throw(l))}catch(k){d(k)}},h=l=>l.done?f(l.value):Promise.resolve(l.value).then(b,c);h((e=e.apply(o,s)).next())});import{F as P}from"./Form-B3fdtaFM.js";import{u as I}from"./useForm-BIADJKAv.js";import{u as K}from"./useValidator-Nt61Jv1p.js";import{m as S}from"./index-B5z15nYm.js";/* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";import{g as q}from"./index-BYcZ39zx.js";import{e as _,f as B}from"./tree-Dgaev6Pi.js";import{ak as j,S as A,y as G}from"./element-plus-6v3c1uXT.js";import{q as O,r as x,P as u,u as i,Q,K as U,w as W,t as z,T as H,n as J}from"./vue-chunks-DOWhatC1.js";const ce=O({__name:"Write",props:{currentRow:{type:Object,default:()=>null}},setup(o,{expose:s}){const{required:e}=K(),f=o,d=x(),b=x([{field:"roleName",label:"角色名称",component:"Input"},{field:"status",label:"状态",component:"Select",componentProps:{options:[{label:"禁用",value:0},{label:"启用",value:1}]}},{field:"menu",label:"菜单分配",colProps:{span:24},formItemProps:{slots:{default:()=>{var t;return u(Q,null,[u("div",{class:"flex w-full"},[u("div",{class:"flex-1"},[u(j,{ref:d,"show-checkbox":!0,"node-key":"id","highlight-current":!0,"check-strictly":!0,"expand-on-click-node":!1,data:g.value,"onNode-click":h},{default:r=>u("span",null,[r.data.meta.title])})]),u("div",{class:"flex-1"},[i(c)&&((t=i(c))!=null&&t.permissionList)?u(A,{modelValue:i(c).meta.permission,"onUpdate:modelValue":r=>i(c).meta.permission=r},{default:()=>{var r;return[(r=i(c))==null?void 0:r.permissionList.map(n=>u(G,{label:n.value},{default:()=>[n.label]}))]}}):null])])])}}}}]),c=x(),h=t=>{c.value=t},l=U({roleName:[e()],role:[e()],status:[e()]}),{formRegister:k,formMethods:C}=I(),{setValues:E,getFormData:F,getElFormExpose:L}=C,g=x([]);w(this,null,function*(){var r;const t=yield q();if(t){if(g.value=t.data.list,!f.currentRow)return;yield J();const n=[];_(f.currentRow.menu,a=>{var m;n.push({id:a.id,permission:((m=a.meta)==null?void 0:m.permission)||[]})}),_(g.value,a=>{const m=S(n,p=>p.id===a.id);if(m>-1){const p=R({},a.meta||{});p.permission=n[m].permission,a.meta=p}});for(const a of n)(r=i(d))==null||r.setChecked(a.id,!0,!1)}});const T=()=>w(this,null,function*(){var n;const t=yield L();if(yield t==null?void 0:t.validate().catch(a=>{})){const a=yield F(),m=((n=i(d))==null?void 0:n.getCheckedKeys())||[],p=B(i(g),V=>m.includes(V.id));return a.menu=p||[],a}});return W(()=>f.currentRow,t=>{t&&E(t)},{deep:!0,immediate:!0}),s({submit:T}),(t,r)=>(z(),H(i(P),{rules:l,onRegister:i(k),schema:b.value},null,8,["rules","onRegister","schema"]))}});export{ce as _}; diff --git a/assets/Write.vue_vue_type_script_setup_true_lang-_SFmF5k8.js b/assets/Write.vue_vue_type_script_setup_true_lang-DgvKX96v.js similarity index 87% rename from assets/Write.vue_vue_type_script_setup_true_lang-_SFmF5k8.js rename to assets/Write.vue_vue_type_script_setup_true_lang-DgvKX96v.js index 2eb51986..5cc566bf 100644 --- a/assets/Write.vue_vue_type_script_setup_true_lang-_SFmF5k8.js +++ b/assets/Write.vue_vue_type_script_setup_true_lang-DgvKX96v.js @@ -1 +1 @@ -var f=(s,m,t)=>new Promise((n,c)=>{var i=e=>{try{a(t.next(e))}catch(o){c(o)}},u=e=>{try{a(t.throw(e))}catch(o){c(o)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,u);a((t=t.apply(s,m)).next())});import{F as w}from"./Form-DJ57xbBt.js";import{u as g}from"./useForm-CbOF_UB2.js";import{u as _}from"./useValidator-Nt61Jv1p.js";import{q as v,K as x,w as y,t as F,T as R,u as l}from"./vue-chunks-DOWhatC1.js";const E=v({__name:"Write",props:{currentRow:{type:Object,default:()=>null},formSchema:{type:Array,default:()=>[]}},setup(s,{expose:m}){const{required:t}=_(),n=s,c=x({id:[t()],status:[t()]}),{formRegister:i,formMethods:u}=g(),{setValues:a,getFormData:e,getElFormExpose:o}=u,p=()=>f(this,null,function*(){const r=yield o();if(yield r==null?void 0:r.validate().catch(h=>{}))return yield e()});return y(()=>n.currentRow,r=>{r&&a(r)},{deep:!0,immediate:!0}),m({submit:p}),(r,d)=>(F(),R(l(w),{rules:c,onRegister:l(i),schema:s.formSchema},null,8,["rules","onRegister","schema"]))}});export{E as _}; +var f=(s,m,t)=>new Promise((n,c)=>{var i=e=>{try{a(t.next(e))}catch(o){c(o)}},u=e=>{try{a(t.throw(e))}catch(o){c(o)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,u);a((t=t.apply(s,m)).next())});import{F as w}from"./Form-B3fdtaFM.js";import{u as g}from"./useForm-BIADJKAv.js";import{u as _}from"./useValidator-Nt61Jv1p.js";import{q as v,K as x,w as y,t as F,T as R,u as l}from"./vue-chunks-DOWhatC1.js";const E=v({__name:"Write",props:{currentRow:{type:Object,default:()=>null},formSchema:{type:Array,default:()=>[]}},setup(s,{expose:m}){const{required:t}=_(),n=s,c=x({id:[t()],status:[t()]}),{formRegister:i,formMethods:u}=g(),{setValues:a,getFormData:e,getElFormExpose:o}=u,p=()=>f(this,null,function*(){const r=yield o();if(yield r==null?void 0:r.validate().catch(h=>{}))return yield e()});return y(()=>n.currentRow,r=>{r&&a(r)},{deep:!0,immediate:!0}),m({submit:p}),(r,d)=>(F(),R(l(w),{rules:c,onRegister:l(i),schema:s.formSchema},null,8,["rules","onRegister","schema"]))}});export{E as _}; diff --git a/assets/Write.vue_vue_type_script_setup_true_lang-XLSypuqk.js b/assets/Write.vue_vue_type_script_setup_true_lang-uIkHTRx6.js similarity index 87% rename from assets/Write.vue_vue_type_script_setup_true_lang-XLSypuqk.js rename to assets/Write.vue_vue_type_script_setup_true_lang-uIkHTRx6.js index 3afcc53c..cf885fe5 100644 --- a/assets/Write.vue_vue_type_script_setup_true_lang-XLSypuqk.js +++ b/assets/Write.vue_vue_type_script_setup_true_lang-uIkHTRx6.js @@ -1 +1 @@ -var f=(s,m,t)=>new Promise((n,c)=>{var i=e=>{try{a(t.next(e))}catch(o){c(o)}},u=e=>{try{a(t.throw(e))}catch(o){c(o)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,u);a((t=t.apply(s,m)).next())});import{F as w}from"./Form-DJ57xbBt.js";import{u as g}from"./useForm-CbOF_UB2.js";import{u as v}from"./useValidator-Nt61Jv1p.js";import{q as _,K as x,w as y,t as F,T as R,u as p}from"./vue-chunks-DOWhatC1.js";const E=_({__name:"Write",props:{currentRow:{type:Object,default:()=>{}},formSchema:{type:Array,default:()=>[]}},setup(s,{expose:m}){const{required:t}=v(),n=s,c=x({username:[t()],account:[t()],"department.id":[t()]}),{formRegister:i,formMethods:u}=g(),{setValues:a,getFormData:e,getElFormExpose:o}=u,d=()=>f(this,null,function*(){const r=yield o();if(yield r==null?void 0:r.validate().catch(h=>{}))return yield e()});return y(()=>n.currentRow,r=>{r&&a(r)},{deep:!0,immediate:!0}),m({submit:d}),(r,l)=>(F(),R(p(w),{rules:c,onRegister:p(i),schema:s.formSchema},null,8,["rules","onRegister","schema"]))}});export{E as _}; +var f=(s,m,t)=>new Promise((n,c)=>{var i=e=>{try{a(t.next(e))}catch(o){c(o)}},u=e=>{try{a(t.throw(e))}catch(o){c(o)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,u);a((t=t.apply(s,m)).next())});import{F as w}from"./Form-B3fdtaFM.js";import{u as g}from"./useForm-BIADJKAv.js";import{u as v}from"./useValidator-Nt61Jv1p.js";import{q as _,K as x,w as y,t as F,T as R,u as p}from"./vue-chunks-DOWhatC1.js";const E=_({__name:"Write",props:{currentRow:{type:Object,default:()=>{}},formSchema:{type:Array,default:()=>[]}},setup(s,{expose:m}){const{required:t}=v(),n=s,c=x({username:[t()],account:[t()],"department.id":[t()]}),{formRegister:i,formMethods:u}=g(),{setValues:a,getFormData:e,getElFormExpose:o}=u,d=()=>f(this,null,function*(){const r=yield o();if(yield r==null?void 0:r.validate().catch(h=>{}))return yield e()});return y(()=>n.currentRow,r=>{r&&a(r)},{deep:!0,immediate:!0}),m({submit:d}),(r,l)=>(F(),R(p(w),{rules:c,onRegister:p(i),schema:s.formSchema},null,8,["rules","onRegister","schema"]))}});export{E as _}; diff --git a/assets/cssMode-DMmLTgYz.js b/assets/cssMode-CHypgTRD.js similarity index 99% rename from assets/cssMode-DMmLTgYz.js rename to assets/cssMode-CHypgTRD.js index 0243d328..411a1af6 100644 --- a/assets/cssMode-DMmLTgYz.js +++ b/assets/cssMode-CHypgTRD.js @@ -1,4 +1,4 @@ -import{m as je}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +import{m as je}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/el-radio-button-DWJU-_1D.js b/assets/el-radio-button-BbBORUw9.js similarity index 70% rename from assets/el-radio-button-DWJU-_1D.js rename to assets/el-radio-button-BbBORUw9.js index dc7d1d82..98856622 100644 --- a/assets/el-radio-button-DWJU-_1D.js +++ b/assets/el-radio-button-BbBORUw9.js @@ -1 +1 @@ -import{h as u}from"./index-CA0d6hyI.js";const f=(n,r="default",t)=>{if(!n||!Reflect.has(n,r))return null;if(!u(n[r]))return console.error(`${r} is not a function!`),null;const e=n[r];return e?e(t):null};export{f as g}; +import{h as u}from"./index-B5z15nYm.js";const f=(n,r="default",t)=>{if(!n||!Reflect.has(n,r))return null;if(!u(n[r]))return console.error(`${r} is not a function!`),null;const e=n[r];return e?e(t):null};export{f as g}; diff --git a/assets/freemarker2-83QMiYqq.js b/assets/freemarker2-BWzI7mAH.js similarity index 98% rename from assets/freemarker2-83QMiYqq.js rename to assets/freemarker2-BWzI7mAH.js index 5f6193f6..00207cbc 100644 --- a/assets/freemarker2-83QMiYqq.js +++ b/assets/freemarker2-BWzI7mAH.js @@ -1,4 +1,4 @@ -var v=Object.defineProperty,E=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var f=(t,n,_)=>n in t?v(t,n,{enumerable:!0,configurable:!0,writable:!0,value:_}):t[n]=_,i=(t,n)=>{for(var _ in n||(n={}))B.call(n,_)&&f(t,_,n[_]);if(m)for(var _ of m(n))C.call(n,_)&&f(t,_,n[_]);return t},s=(t,n)=>E(t,D(n));import{m as w}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +var v=Object.defineProperty,E=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var f=(t,n,_)=>n in t?v(t,n,{enumerable:!0,configurable:!0,writable:!0,value:_}):t[n]=_,i=(t,n)=>{for(var _ in n||(n={}))B.call(n,_)&&f(t,_,n[_]);if(m)for(var _ of m(n))C.call(n,_)&&f(t,_,n[_]);return t},s=(t,n)=>E(t,D(n));import{m as w}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/handlebars-DwojGJVl.js b/assets/handlebars-DX89cqjN.js similarity index 96% rename from assets/handlebars-DwojGJVl.js rename to assets/handlebars-DX89cqjN.js index e7e65e89..b8b1cf19 100644 --- a/assets/handlebars-DwojGJVl.js +++ b/assets/handlebars-DX89cqjN.js @@ -1,4 +1,4 @@ -import{m as l}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +import{m as l}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/html-BC731uhf.js b/assets/html--fkJPfQt.js similarity index 95% rename from assets/html-BC731uhf.js rename to assets/html--fkJPfQt.js index 7c2660b2..d7cbcfa9 100644 --- a/assets/html-BC731uhf.js +++ b/assets/html--fkJPfQt.js @@ -1,4 +1,4 @@ -import{m as s}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +import{m as s}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/htmlMode-DWeSdq1n.js b/assets/htmlMode-7kuxxI3s.js similarity index 99% rename from assets/htmlMode-DWeSdq1n.js rename to assets/htmlMode-7kuxxI3s.js index d058abe4..13453468 100644 --- a/assets/htmlMode-DWeSdq1n.js +++ b/assets/htmlMode-7kuxxI3s.js @@ -1,4 +1,4 @@ -import{m as qe}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +import{m as qe}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/index-DlX4pwja.js b/assets/index-2gFf0KW4.js similarity index 99% rename from assets/index-DlX4pwja.js rename to assets/index-2gFf0KW4.js index cd6dc50f..694007da 100644 --- a/assets/index-DlX4pwja.js +++ b/assets/index-2gFf0KW4.js @@ -1,4 +1,4 @@ -var qi=Object.defineProperty,Zi=Object.defineProperties;var Ji=Object.getOwnPropertyDescriptors;var Ht=Object.getOwnPropertySymbols;var Qi=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable;var Bt=(o,a,r)=>a in o?qi(o,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[a]=r,Ut=(o,a)=>{for(var r in a||(a={}))Qi.call(a,r)&&Bt(o,r,a[r]);if(Ht)for(var r of Ht(a))en.call(a,r)&&Bt(o,r,a[r]);return o},Vt=(o,a)=>Zi(o,Ji(a));var it=(o,a,r)=>new Promise((t,e)=>{var i=u=>{try{s(r.next(u))}catch(l){e(l)}},n=u=>{try{s(r.throw(u))}catch(l){e(l)}},s=u=>u.done?t(u.value):Promise.resolve(u.value).then(i,n);s((r=r.apply(o,a)).next())});import{q as yi,r as mt,o as tn,w as nn,n as _i,u as fe,C as rn,t as Ci,v as sn,a0 as an,a1 as on,T as un,S as ln,x as jt,P as yt,aq as cn}from"./vue-chunks-DOWhatC1.js";import{i as fn,t as hn}from"./index-CA0d6hyI.js";import{h as St,g as dn,ah as gn}from"./element-plus-6v3c1uXT.js";import{I as pn}from"./Icon-Bwi9LaBZ.js";function Gt(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function U(o){for(var a=1;ao.length)&&(a=o.length);for(var r=0,t=new Array(a);ra in o?qi(o,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[a]=r,Ut=(o,a)=>{for(var r in a||(a={}))Qi.call(a,r)&&Bt(o,r,a[r]);if(Ht)for(var r of Ht(a))en.call(a,r)&&Bt(o,r,a[r]);return o},Vt=(o,a)=>Zi(o,Ji(a));var it=(o,a,r)=>new Promise((t,e)=>{var i=u=>{try{s(r.next(u))}catch(l){e(l)}},n=u=>{try{s(r.throw(u))}catch(l){e(l)}},s=u=>u.done?t(u.value):Promise.resolve(u.value).then(i,n);s((r=r.apply(o,a)).next())});import{q as yi,r as mt,o as tn,w as nn,n as _i,u as fe,C as rn,t as Ci,v as sn,a0 as an,a1 as on,T as un,S as ln,x as jt,P as yt,aq as cn}from"./vue-chunks-DOWhatC1.js";import{i as fn,t as hn}from"./index-B5z15nYm.js";import{h as St,g as dn,ah as gn}from"./element-plus-6v3c1uXT.js";import{I as pn}from"./Icon-B-0CON7P.js";function Gt(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function U(o){for(var a=1;ao.length)&&(a=o.length);for(var r=0,t=new Array(a);r-1,nt={info:"color: #525252; background-color: #90ee90;",error:"color: #525252; background-color: red;",warn:"color: #525252; background-color: yellow; "},rt="%c[xgplayer]",D={config:{debug:bn?3:0},logInfo:function(a){for(var r,t=arguments.length,e=new Array(t>1?t-1:0),i=1;i=3&&(r=console).log.apply(r,[rt,nt.info,a].concat(e))},logWarn:function(a){for(var r,t=arguments.length,e=new Array(t>1?t-1:0),i=1;i=1&&(r=console).warn.apply(r,[rt,nt.warn,a].concat(e))},logError:function(a){var r;if(!(this.config.debug<1)){for(var t=this.config.debug>=2?"trace":"error",e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&arguments[0]!==void 0?arguments[0]:"div",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",e=document.createElement(o);return e.className=t,e.innerHTML=a,Object.keys(r).forEach(function(i){var n=i,s=r[i];o==="video"||o==="audio"||o==="live-video"?s&&e.setAttribute(n,s):e.setAttribute(n,s)}),e};c.createDomFromHtml=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";try{var t=document.createElement("div");t.innerHTML=o;var e=t.children;return t=null,e.length>0?(e=e[0],r&&c.addClass(e,r),a&&Object.keys(a).forEach(function(i){e.setAttribute(i,a[i])}),e):null}catch(i){return D.logError("util.createDomFromHtml",i),null}};c.hasClass=function(o,a){if(!o||!a)return!1;try{return Array.prototype.some.call(o.classList,function(t){return t===a})}catch(t){var r=o.className&&W(o.className)==="object"?o.getAttribute("class"):o.className;return r&&!!r.match(new RegExp("(\\s|^)"+a+"(\\s|$)"))}};c.addClass=function(o,a){if(!(!o||!a))try{a.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(r){r&&o.classList.add(r)})}catch(r){c.hasClass(o,a)||(o.className&&W(o.className)==="object"?o.setAttribute("class",o.getAttribute("class")+" "+a):o.className+=" "+a)}};c.removeClass=function(o,a){if(!(!o||!a))try{a.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(r){r&&o.classList.remove(r)})}catch(r){c.hasClass(o,a)&&a.split(/\s+/g).forEach(function(t){var e=new RegExp("(\\s|^)"+t+"(\\s|$)");o.className&&W(o.className)==="object"?o.setAttribute("class",o.getAttribute("class").replace(e," ")):o.className=o.className.replace(e," ")})}};c.toggleClass=function(o,a){o&&a.split(/\s+/g).forEach(function(r){c.hasClass(o,r)?c.removeClass(o,r):c.addClass(o,r)})};c.classNames=function(){for(var o=arguments,a=[],r=function(i){c.typeOf(o[i])==="String"?a.push(o[i]):c.typeOf(o[i])==="Object"&&Object.keys(o[i]).map(function(n){o[i][n]&&a.push(n)})},t=0;t0&&arguments[0]!==void 0?arguments[0]:document,a=arguments.length>1?arguments[1]:void 0,r;try{r=o.querySelector(a)}catch(t){D.logError("util.findDom",t),a.indexOf("#")===0&&(r=o.getElementById(a.slice(1)))}return r};c.getCss=function(o,a){return o.currentStyle?o.currentStyle[a]:document.defaultView.getComputedStyle(o,!1)[a]};c.padStart=function(o,a,r){for(var t=String(r),e=a>>0,i=Math.ceil(e/t.length),n=[],s=String(o);i--;)n.push(t);return n.join("").substring(0,e-s.length)+s};c.format=function(o){if(window.isNaN(o))return"";o=Math.round(o);var a=c.padStart(Math.floor(o/3600),2,0),r=c.padStart(Math.floor((o-a*3600)/60),2,0),t=c.padStart(Math.floor(o-a*3600-r*60),2,0);return(a==="00"?[r,t]:[a,r,t]).join(":")};c.event=function(o){if(o.touches){var a=o.touches[0]||o.changedTouches[0];o.clientX=a.clientX||0,o.clientY=a.clientY||0,o.offsetX=a.pageX-a.target.offsetLeft,o.offsetY=a.pageY-a.target.offsetTop}o._target=o.target||o.srcElement};c.typeOf=function(o){return Object.prototype.toString.call(o).match(/([^\s.*]+)(?=]$)/g)[0]};c.deepCopy=function(o,a){if(c.typeOf(a)==="Object"&&c.typeOf(o)==="Object")return Object.keys(a).forEach(function(r){c.typeOf(a[r])==="Object"&&!(a[r]instanceof Node)?o[r]===void 0||o[r]===void 0?o[r]=a[r]:c.deepCopy(o[r],a[r]):c.typeOf(a[r])==="Array"?o[r]=c.typeOf(o[r])==="Array"?o[r].concat(a[r]):a[r]:o[r]=a[r]}),o};c.deepMerge=function(o,a){return Object.keys(a).map(function(r){if(c.typeOf(a[r])==="Array"&&c.typeOf(o[r])==="Array"){if(c.typeOf(o[r])==="Array"){var t;(t=o[r]).push.apply(t,Q(a[r]))}}else c.typeOf(o[r])===c.typeOf(a[r])&&o[r]!==null&&c.typeOf(o[r])==="Object"&&!(a[r]instanceof window.Node)?c.deepMerge(o[r],a[r]):a[r]!==null&&(o[r]=a[r])}),o};c.getBgImage=function(o){var a=(o.currentStyle||window.getComputedStyle(o,null)).backgroundImage;if(!a||a==="none")return"";var r=document.createElement("a");return r.href=a.replace(/url\("|"\)/g,""),r.href};c.copyDom=function(o){if(o&&o.nodeType===1){var a=document.createElement(o.tagName);return Array.prototype.forEach.call(o.attributes,function(r){a.setAttribute(r.name,r.value)}),o.innerHTML&&(a.innerHTML=o.innerHTML),a}else return""};c.setInterval=function(o,a,r,t){o._interval[a]||(o._interval[a]=window.setInterval(r.bind(o),t))};c.clearInterval=function(o,a){clearInterval(o._interval[a]),o._interval[a]=null};c.setTimeout=function(o,a,r){o._timers||(o._timers=[]);var t=setTimeout(function(){a(),c.clearTimeout(o,t)},r);return o._timers.push(t),t};c.clearTimeout=function(o,a){var r=o._timers;if(c.typeOf(r)==="Array"){for(var t=0;t-1&&t.indexOf(u)>-1?(i=parseFloat(r.slice(0,r.indexOf(u)).trim()),n=parseFloat(t.slice(0,t.indexOf(u)).trim()),s=u,!1):!0}),e.style.width="".concat(i).concat(s),e.style.height="".concat(n).concat(s),e.style.backgroundSize="".concat(i).concat(s," ").concat(n).concat(s),o==="start"?e.style.margin="-".concat(n/2).concat(s," auto auto -").concat(i/2).concat(s):e.style.margin="auto 5px auto 5px"}return e};c.Hex2RGBA=function(o,a){var r=[];if(/^\#[0-9A-F]{3}$/i.test(o)){var t="#";o.replace(/[0-9A-F]/ig,function(e){t+=e+e}),o=t}return/^#[0-9A-F]{6}$/i.test(o)?(o.replace(/[0-9A-F]{2}/ig,function(e){r.push(parseInt(e,16))}),"rgba(".concat(r.join(","),", ").concat(a,")")):"rgba(255, 255, 255, 0.1)"};c.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement};c.checkIsFunction=function(o){return o&&typeof o=="function"};c.checkIsObject=function(o){return o!==null&&W(o)==="object"};c.hide=function(o){o.style.display="none"};c.show=function(o,a){o.style.display=a||"block"};c.isUndefined=function(o){if(typeof o=="undefined"||o===null)return!0};c.isNotNull=function(o){return o!=null};c.setStyleFromCsstext=function(o,a){if(a)if(c.typeOf(a)==="String"){var r=a.replace(/\s+/g,"").split(";");r.map(function(t){if(t){var e=t.split(":");e.length>1&&(o.style[e[0]]=e[1])}})}else Object.keys(a).map(function(t){o.style[t]=a[t]})};function wn(o,a){for(var r=0,t=a.length;r-1)return!0;return!1}c.filterStyleFromText=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],r=o.style.cssText;if(!r)return{};var t=r.replace(/\s+/g,"").split(";"),e={},i={};return t.map(function(n){if(n){var s=n.split(":");s.length>1&&(wn(s[0],a)?e[s[0]]=s[1]:i[s[0]]=s[1])}}),o.setAttribute("style",""),Object.keys(i).map(function(n){o.style[n]=i[n]}),e};c.getStyleFromCsstext=function(o){var a=o.style.cssText;if(!a)return{};var r=a.replace(/\s+/g,"").split(";"),t={};return r.map(function(e){if(e){var i=e.split(":");i.length>1&&(t[i[0]]=i[1])}}),t};c.preloadImg=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};if(o){var t=new window.Image;t.onload=function(e){t=null,a&&a(e)},t.onerror=function(e){t=null,r&&r(e)},t.src=o}};c.stopPropagation=function(o){o&&o.stopPropagation()};c.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0};c.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0};c.checkTouchSupport=function(){return"ontouchstart"in window};c.getBuffered2=function(o){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5,r=[],t=0;ts&&(e[n-1].end=r[i].end):e.push(r[i])}else e.push(r[i])}else e=r;return new Sn(e)};c.getEventPos=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return o.touches&&o.touches.length>0&&(o=o.touches[0]),{x:o.x/a,y:o.y/a,clientX:o.clientX/a,clientY:o.clientY/a,offsetX:o.offsetX/a,offsetY:o.offsetY/a,pageX:o.pageX/a,pageY:o.pageY/a}};c.requestAnimationFrame=function(o){var a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(a)return a(o)};c.getHostFromUrl=function(o){if(c.typeOf(o)!=="String")return"";var a=o.split("/"),r="";return a.length>3&&a[2]&&(r=a[2]),r};c.cancelAnimationFrame=function(o){var a=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;a&&a(o)};c.isMSE=function(o){return!o||!(o instanceof HTMLMediaElement)?!1:/^blob/.test(o.currentSrc)||/^blob/.test(o.src)};c.isBlob=function(o){return typeof o=="string"&&/^blob/.test(o)};c.generateSessionId=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,a=new Date().getTime();try{o=parseInt(o)}catch(t){o=0}a+=o,window.performance&&typeof window.performance.now=="function"&&(a+=parseInt(window.performance.now()));var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(t==="x"?e:e&3|8).toString(16)});return r};c.createEvent=function(o){var a;return typeof window.Event=="function"?a=new Event(o):(a=document.createEvent("Event"),a.initEvent(o,!0,!0)),a};c.adjustTimeByDuration=function(o,a,r){return!a||!o?o:o>a||r&&o0&&arguments[0]!==void 0?arguments[0]:{x:0,y:0,scale:1,rotate:0},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r={scale:"".concat(o.scale||1),translate:"".concat(o.x||0,"%, ").concat(o.y||0,"%"),rotate:"".concat(o.rotate||0,"deg")},t=Object.keys(r);return t.forEach(function(e){var i=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),n="".concat(e,"(").concat(r[e],")");i.test(a)?(i.lastIndex=-1,a=a.replace(i,n)):a+="".concat(n," ")}),a};c.convertDeg=function(o){return Math.abs(o)<=1?o*360:o%360};c.getIndexByTime=function(o,a){var r=a.length,t=-1;if(r<1)return t;if(o<=a[0].end||r<2)t=0;else if(o>a[r-1].end)t=r-1;else for(var e=1;ea[e-1].end&&o<=a[e].end){t=e;break}return t};c.getOffsetCurrentTime=function(o,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1,t=-1;if(r>=0&&r=n&&o<=s?o-l:o>s&&t>=e-1?s:-1};c.getCurrentTimeByOffset=function(o,a){var r=-1;if(!a||a.length<0)return o;for(var t=0;t=a||Y<0||h&&Z>=i}function F(){var M=Date.now();if(k(M))return R(M);s=m(F,T(M))}function R(M){return s=void 0,d&&t?p(M):(t=e=void 0,n)}function B(){s!==void 0&&_(s),l=0,t=u=e=s=void 0}function A(){return s===void 0?n:R(Date.now())}function z(){return s!==void 0}function V(){for(var M=Date.now(),Y=k(M),Z=arguments.length,J=new Array(Z),ve=0;ve1,n=i||t&&!/(?:Mobile)/.test(o)||e&&/(?:Tablet)/.test(o),s=/(?:iPhone)/.test(o)&&!n,u=!s&&!t&&!r&&!n;return{isTablet:n,isPhone:s,isIpad:i,isIos:s||i,isAndroid:t,isPc:u,isSymbian:r,isWindowsPhone:a,isFireFox:e}},get osVersion(){if(typeof navigator=="undefined")return 0;var o=navigator.userAgent,a="";/(?:iPhone)|(?:iPad|PlayBook)/.test(o)?a=zt.ios:a=zt.android;var r=a?a.exec(o):[];if(r&&r.length>=3){var t=r[2].split(".");return t.length>0?parseInt(t[0]):0}return 0},get isWeixin(){if(typeof navigator=="undefined")return!1;var o=/(micromessenger)\/([\d.]+)/,a=o.exec(navigator.userAgent.toLocaleLowerCase());return!!a},isSupportMP4:function(){var a={isSupport:!1,mime:""};if(typeof document=="undefined")return a;if(this.supportResult)return this.supportResult;var r=document.createElement("video");return typeof r.canPlayType=="function"&&Ln.map(function(t){r.canPlayType('video/mp4; codecs="'.concat(t,'"'))==="probably"&&(a.isSupport=!0,a.mime+="||".concat(t))}),this.supportResult=a,r=null,a},isMSESupport:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';if(typeof MediaSource=="undefined"||!MediaSource)return!1;try{return MediaSource.isTypeSupported(a)}catch(r){return this._logger.error(a,r),!1}},isHevcSupported:function(){return typeof MediaSource=="undefined"||!MediaSource.isTypeSupported?!1:MediaSource.isTypeSupported('video/mp4;codecs="hev1.1.6.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.2.4.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.3.E.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.4.10.L120.90"')},probeConfigSupported:function(a){var r={supported:!1,smooth:!1,powerEfficient:!1};if(!a||typeof navigator=="undefined")return Promise.resolve(r);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(a);var t=a.video||{},e=a.audio||{};try{var i=MediaSource.isTypeSupported(t.contentType),n=MediaSource.isTypeSupported(e.contentType);return Promise.resolve({supported:i&&n,smooth:!1,powerEfficient:!1})}catch(s){return Promise.resolve(r)}}},kt="3.0.14",Kt={1:"media",2:"media",3:"media",4:"media",5:"media",6:"media"},Yt={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},Ve=S(function o(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};E(this,o);var t=a&&a.i18n?a.i18n.ERROR_TYPES:null;if(a.media){var e=r.mediaError?r.mediaError:a.media.error||{},i=a.duration,n=a.currentTime,s=a.ended,u=a.src,l=a.currentSrc,f=a.media,h=f.readyState,d=f.networkState,g=r.errorCode||e.code;Yt[g]&&(g=Yt[g]);var p={playerVersion:kt,currentTime:n,duration:i,ended:s,readyState:h,networkState:d,src:u||l,errorType:r.errorType,errorCode:g,message:r.errorMessage||e.message,mediaError:e,originError:r.originError?r.originError.stack:"",host:c.getHostFromUrl(u||l)};return r.ext&&Object.keys(r.ext).map(function(T){p[T]=r.ext[T]}),p}else if(arguments.length>1){for(var m={playerVersion:kt,domain:document.domain},_=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],b=0;b0&&arguments[0]!==void 0?arguments[0]:this.media;this._evHandlers||(this._evHandlers=Bi.map(function(n){var s="on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));return typeof e[s]=="function"&&e.on(n,e[s]),y({},n,Gn(n,e))})),this._evHandlers.forEach(function(n){var s=Object.keys(n)[0];i.addEventListener(s,n[s],!1)})}},{key:"detachVideoEvents",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.media;this._evHandlers.forEach(function(n){var s=Object.keys(n)[0];i.removeEventListener(s,n[s],!1)}),this._evHandlers.forEach(function(n){var s=Object.keys(n)[0],u="on".concat(s.charAt(0).toUpperCase()).concat(s.slice(1));typeof e[u]=="function"&&e.off(s,e[u])}),this._evHandlers=null}},{key:"_attachSourceEvents",value:function(e,i){var n=this;e.removeAttribute("src"),e.load(),i.forEach(function(h,d){n.media.appendChild(c.createDom("source","",{src:"".concat(h.src),type:"".concat(h.type||""),"data-index":d+1}))});var s=e.children;if(s){this._videoSourceCount=s.length,this._videoSourceIndex=s.length,this._vLoadeddata=function(h){n.emit(Hi,{src:h.target.currentSrc,host:c.getHostFromUrl(h.target.currentSrc)})};for(var u=null,l=0;l=n._videoSourceCount){var g={code:4,message:"sources_load_error"};u?u.error(h,g):n.errorHandler("error",g)}var p=Kt[4];n.emit(Fi,new Ve(n,{errorType:p,errorCode:4,errorMessage:"sources_load_error",mediaError:{code:4,message:"sources_load_error"},src:h.target.src}))});for(var f=0;f0;)e.removeChild(i[0]);this._vLoadeddata&&e.removeEventListener("loadeddata",this._vLoadeddata)}}},{key:"errorHandler",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.media&&(this.media.error||i)){var n=this.media.error||i,s=n.code?Kt[n.code]:"other",u=n.message;this.media.currentSrc||(u="empty_src",n={code:6,message:u}),this.emit(e,new Ve(this,{errorType:s,errorCode:n.code,errorMessage:n.message||"",mediaError:n}))}}},{key:"destroy",value:function(){this.media&&(this.media.pause&&(this.media.pause(),this.media.muted=!0),this.media.removeAttribute("src"),this.media.load()),this._currentTime=0,this._duration=0,this.mediaConfig=null;for(var e in this._interval)Object.prototype.hasOwnProperty.call(this._interval,e)&&(clearInterval(this._interval[e]),this._interval[e]=null);this.detachVideoEvents(),this.media=null,this.mediaEventMiddleware={},this.removeAllListeners()}},{key:"video",get:function(){return this.media},set:function(e){this.media=e}},{key:"play",value:function(){var e=this.media?this.media.play():null;return e}},{key:"pause",value:function(){this.media&&this.media.pause()}},{key:"load",value:function(){this.media&&this.media.load()}},{key:"canPlayType",value:function(e){return this.media?this.media.canPlayType(e):!1}},{key:"getBufferedRange",value:function(e){var i=[0,0];if(!this.media)return i;e||(e=this.media.buffered);var n=this.media.currentTime;if(e)for(var s=0,u=e.length;s=this.currentTime)return{start:i.start(n),end:i.end(n)};return e}},{key:"crossOrigin",get:function(){return this.media?this.media.crossOrigin:""},set:function(e){this.media&&(this.media.crossOrigin=e)}},{key:"currentSrc",get:function(){return this.media?this.media.currentSrc:""},set:function(e){this.media&&(this.media.currentSrc=e)}},{key:"currentTime",get:function(){return this.media?this.media.currentTime!==void 0?this.media.currentTime:this._currentTime:0},set:function(e){this.media&&(this.media.currentTime=e)}},{key:"defaultMuted",get:function(){return this.media?this.media.defaultMuted:!1},set:function(e){this.media&&(this.media.defaultMuted=e)}},{key:"duration",get:function(){return this._duration}},{key:"ended",get:function(){return this.media?this.media.ended:!1}},{key:"error",get:function(){return this.media.error}},{key:"errorNote",get:function(){var e=this.media.error;if(!e)return"";var i=["MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED"];return i[this.media.error.code-1]}},{key:"loop",get:function(){return this.media?this.media.loop:!1},set:function(e){this.media&&(this.media.loop=e)}},{key:"muted",get:function(){return this.media?this.media.muted:!1},set:function(e){!this.media||this.media.muted===e||(this._lastMuted=this.media.muted,this.media.muted=e)}},{key:"networkState",get:function(){return this.media.networkState}},{key:"paused",get:function(){return this.media?this.media.paused:!0}},{key:"playbackRate",get:function(){return this.media?this.media.playbackRate:0},set:function(e){!this.media||e===1/0||(this.media.defaultPlaybackRate=e,this.media.playbackRate=e)}},{key:"played",get:function(){return this.media?this.media.played:null}},{key:"preload",get:function(){return this.media?this.media.preload:!1},set:function(e){this.media&&(this.media.preload=e)}},{key:"readyState",get:function(){return this.media.readyState}},{key:"seekable",get:function(){return this.media?this.media.seekable:!1}},{key:"seeking",get:function(){return this.media?this.media.seeking:!1}},{key:"src",get:function(){return this.media?this.media.src:""},set:function(e){if(this.media){if(this.emit(Qe,e),this.emit(Me),this._currentTime=0,this._duration=0,c.isMSE(this.media)){this.onWaiting();return}this._detachSourceEvents(this.media),c.typeOf(e)==="Array"?this._attachSourceEvents(this.media,e):e?this.media.src=e:this.media.removeAttribute("src"),this.load()}}},{key:"volume",get:function(){return this.media?this.media.volume:0},set:function(e){e===1/0||!this.media||(this.media.volume=e)}},{key:"aspectRatio",get:function(){return this.media?this.media.videoWidth/this.media.videoHeight:0}},{key:"addInnerOP",value:function(e){this._internalOp[e]=!0}},{key:"removeInnerOP",value:function(e){delete this._internalOp[e]}},{key:"emit",value:function(e,i){for(var n,s=arguments.length,u=new Array(s>2?s-2:0),l=2;l2?s-2:0),l=2;l2?s-2:0),l=2;l2?s-2:0),l=2;l0&&arguments[0]!==void 0?arguments[0]:{name:"xgplayer",version:1,db:null,ojstore:{name:"xg-m4a",keypath:"vid"}};E(this,o),this.indexedDB=window.indexedDB||window.webkitindexedDB,this.IDBKeyRange=window.IDBKeyRange||window.webkitIDBKeyRange,this.myDB=a}return S(o,[{key:"openDB",value:function(r){var t=this,e=this,i=this.myDB.version||1,n=e.indexedDB.open(e.myDB.name,i);n.onerror=function(s){},n.onsuccess=function(s){t.myDB.db=s.target.result,r.call(e)},n.onupgradeneeded=function(s){var u=s.target.result;s.target.transaction,u.objectStoreNames.contains(e.myDB.ojstore.name)||u.createObjectStore(e.myDB.ojstore.name,{keyPath:e.myDB.ojstore.keypath})}}},{key:"deletedb",value:function(){var r=this;r.indexedDB.deleteDatabase(this.myDB.name)}},{key:"closeDB",value:function(){this.myDB.db.close()}},{key:"addData",value:function(r,t){for(var e=this.myDB.db.transaction(r,"readwrite").objectStore(r),i,n=0;n3?t-3:0),i=3;i2&&arguments[2]!==void 0?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[o]&&(this.__hooks[o]=null),function(){var t=arguments,e=this;if(r.pre)try{var i;(i=r.pre).call.apply(i,[this].concat(Array.prototype.slice.call(arguments)))}catch(u){throw u.message="[pluginName: ".concat(this.pluginName,":").concat(o,":pre error] >> ").concat(u.message),u}if(this.__hooks&&this.__hooks[o])try{var n,s=(n=this.__hooks[o]).call.apply(n,[this,this].concat(Array.prototype.slice.call(arguments)));s?s.then?s.then(function(u){u!==!1&&Ne.apply(void 0,[e,a,r.next].concat(Q(t)))}).catch(function(u){throw u}):Ne.apply(void 0,[this,a,r.next].concat(Array.prototype.slice.call(arguments))):s===void 0&&Ne.apply(void 0,[this,a,r.next].concat(Array.prototype.slice.call(arguments)))}catch(u){throw u.message="[pluginName: ".concat(this.pluginName,":").concat(o,"] >> ").concat(u.message),u}else Ne.apply(void 0,[this,a,r.next].concat(Array.prototype.slice.call(arguments)))}.bind(this)}function Xe(o,a){var r=this.__hooks;if(r)return r.hasOwnProperty(o)?(r&&(r[o]=a),!0):(console.warn("has no supported hook which name [".concat(o,"]")),!1)}function $e(o,a){var r=this.__hooks;r&&delete r[o]}function Zt(o){if(!(!this.plugins||!this.plugins[o.toLowerCase()])){for(var a=this.plugins[o.toLowerCase()],r=arguments.length,t=new Array(r>1?r-1:0),e=1;e1?r-1:0),e=1;e1&&arguments[1]!==void 0?arguments[1]:[];o.__hooks={},a&&a.map(function(r){o.__hooks[r]=null}),Object.defineProperty(o,"hooks",{get:function(){return o.__hooks&&Object.keys(o.__hooks).map(function(t){if(o.__hooks[t])return t})}})}function Gi(o){o.__hooks=null}function re(o,a,r){for(var t=arguments.length,e=new Array(t>3?t-3:0),i=3;i1?e-1:0),n=1;n2&&arguments[2]!==void 0?arguments[2]:{};if(this.player){var i=U(U({},e),{},{pluginName:this.pluginName});this.player.emitUserAction(r,t,i)}}},{key:"hook",value:function(r,t){return Ye.call.apply(Ye,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"useHooks",value:function(r,t){for(var e=arguments.length,i=new Array(e>2?e-2:0),n=2;n2?e-2:0),n=2;n1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";if(this.player)return e&&(t.pluginName=e),this.player.registerPlugin({plugin:r,options:t})}},{key:"getPlugin",value:function(r){return this.player?this.player.getPlugin(r):null}},{key:"__destroy",value:function(){var r=this,t=this.player,e=this.pluginName;this.offAll(),c.clearAllTimers(this),c.checkIsFunction(this.destroy)&&this.destroy(),["player","playerConfig","pluginName","logger","__args","__hooks"].map(function(i){r[i]=null}),t.unRegisterPlugin(e),Gi(this)}}],[{key:"defineGetterOrSetter",value:function(r,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&Object.defineProperty(r,e,t[e])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),o}(),Kn=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var ke=Element.prototype;ke.matches=ke.matchesSelector||ke.mozMatchesSelector||ke.msMatchesSelector||ke.oMatchesSelector||ke.webkitMatchesSelector}function Yn(o,a){for(;o&&o.nodeType!==Kn;){if(typeof o.matches=="function"&&o.matches(a))return o;o=o.parentNode}}var Xn=Yn,$n=Xn;function ot(o,a,r,t,e){var i=Zn.apply(this,arguments);return o.addEventListener(r,i,e),{destroy:function(){o.removeEventListener(r,i,e)}}}function qn(o,a,r,t,e){return typeof o.addEventListener=="function"?ot.apply(null,arguments):typeof r=="function"?ot.bind(null,document).apply(null,arguments):(typeof o=="string"&&(o=document.querySelectorAll(o)),Array.prototype.map.call(o,function(i){return ot(i,a,r,t,e)}))}function Zn(o,a,r,t){return function(e){e.delegateTarget=$n(e.target,a),e.delegateTarget&&t.call(o,e)}}var Jn=qn;const Qt=St(Jn);var Qn={CONTROLS:"controls",ROOT:"root"},H={ROOT:"root",ROOT_LEFT:"rootLeft",ROOT_RIGHT:"rootRight",ROOT_TOP:"rootTop",CONTROLS_LEFT:"controlsLeft",CONTROLS_RIGTH:"controlsRight",CONTROLS_RIGHT:"controlsRight",CONTROLS_CENTER:"controlsCenter",CONTROLS:"controls"};function ut(o){return o?o.indexOf&&/^(?:http|data:|\/)/.test(o):!1}function er(o,a){return W(o)==="object"&&o.class&&typeof o.class=="string"?"".concat(a," ").concat(o.class):a}function tr(o,a){return W(o)==="object"&&o.attr&&W(o.attr)==="object"&&Object.keys(o.attr).map(function(r){a[r]=o.attr[r]}),a}function ei(o,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",i=null;if(o instanceof window.Element)return c.addClass(o,r),Object.keys(t).map(function(n){o.setAttribute(n,t[n])}),o;if(ut(o)||ut(o.url))return t.src=ut(o)?o:o.url||"",i=c.createDom(o.tag||"img","",t,"xg-img ".concat(r)),i;if(typeof o=="function")try{return i=o(),i instanceof window.Element?(c.addClass(i,r),Object.keys(t).map(function(n){i.setAttribute(n,t[n])}),i):(D.logWarn("warn>>icons.".concat(a," in config of plugin named [").concat(e,"] is a function mast return an Element Object")),null)}catch(n){return D.logError("Plugin named [".concat(e,"]:createIcon"),n),null}return typeof o=="string"?c.createDomFromHtml(o,t,r):(D.logWarn("warn>>icons.".concat(a," in config of plugin named [").concat(e,"] is invalid")),null)}function ir(o,a){var r=a.config.icons||a.playerConfig.icons;Object.keys(o).map(function(t){var e=o[t],i=e&&e.class?e.class:"",n=e&&e.attr?e.attr:{},s=null;r&&r[t]&&(i=er(r[t],i),n=tr(r[t],n),s=ei(r[t],t,i,n,a.pluginName)),!s&&e&&(s=ei(e.icon?e.icon:e,n,i,{},a.pluginName)),a.icons[t]=s})}function nr(o,a){Object.keys(o).map(function(r){Object.defineProperty(a.langText,r,{get:function(){var e=a.lang,i=a.i18n;return i[r]?i[r]:o[r]&&o[r][e]||""}})})}var N=function(o){w(r,o);var a=x(r);function r(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return E(this,r),t=a.call(this,e),t.__delegates=[],t}return S(r,[{key:"__init",value:function(e){if(I(P(r.prototype),"__init",this).call(this,e),!!e.root){var i=e.root,n=null;this.icons={},this.root=null,this.parent=null;var s=this.registerIcons()||{};ir(s,this),this.langText={};var u=this.registerLanguageTexts()||{};nr(u,this);var l="";try{l=this.render()}catch(d){throw D.logError("Plugin:".concat(this.pluginName,":render"),d),new Error("Plugin:".concat(this.pluginName,":render:").concat(d.message))}if(l)n=r.insert(l,i,e.index),n.setAttribute("data-index",e.index);else if(e.tag)n=c.createDom(e.tag,"",e.attr,e.name),n.setAttribute("data-index",e.index),i.appendChild(n);else return;this.root=n,this.parent=i;var f=this.config.attr||{},h=this.config.style||{};this.setAttr(f),this.setStyle(h),this.config.index&&this.root.setAttribute("data-index",this.config.index),this.__registerChildren()}}},{key:"__registerChildren",value:function(){var e=this;if(this.root){this._children=[];var i=this.children();i&&W(i)==="object"&&Object.keys(i).length>0&&Object.keys(i).map(function(n){var s=n,u=i[s],l={root:e.root},f,h;typeof u=="function"?(f=e.config[s]||{},h=u):W(u)==="object"&&typeof u.plugin=="function"&&(f=u.options?c.deepCopy(e.config[s]||{},u.options):e.config[s]||{},h=u.plugin),l.config=f,f.index!==void 0&&(l.index=f.index),f.root&&(l.root=f.root),e.registerPlugin(h,l,s)})}}},{key:"updateLang",value:function(e){e||(e=this.lang);function i(l,f){for(var h=0;h0?i(l.children[h],f):f(l.children[h])}var n=this.root,s=this.i18n,u=this.langText;n&&i(n,function(l){var f=l.getAttribute&&l.getAttribute("lang-key");if(f){var h=s[f.toUpperCase()]||u[f];h&&(l.innerHTML=typeof h=="function"?h(e):h)}})}},{key:"lang",get:function(){return this.player.lang}},{key:"changeLangTextKey",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=this.i18n||{},s=this.langText;e.setAttribute&&e.setAttribute("lang-key",i);var u=n[i]||s[i]||"";u&&(e.innerHTML=u)}},{key:"plugins",value:function(){return this._children}},{key:"children",value:function(){return{}}},{key:"registerPlugin",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";i.root=i.root||this.root;var s=I(P(r.prototype),"registerPlugin",this).call(this,e,i,n);return this._children.push(s),s}},{key:"registerIcons",value:function(){return{}}},{key:"registerLanguageTexts",value:function(){return{}}},{key:"find",value:function(e){if(this.root)return this.root.querySelector(e)}},{key:"bind",value:function(e,i,n){var s=this;if(arguments.length<3&&typeof i=="function")Array.isArray(e)?e.forEach(function(l){s.bindEL(l,i)}):this.bindEL(e,i);else{var u=r.delegate.call(this,this.root,e,i,n);this.__delegates=this.__delegates.concat(u)}}},{key:"unbind",value:function(e,i){var n=this;if(arguments.length<3&&typeof i=="function")Array.isArray(e)?e.forEach(function(l){n.unbindEL(l,i)}):this.unbindEL(e,i);else for(var s="".concat(e,"_").concat(i),u=0;u2&&arguments[2]!==void 0?arguments[2]:!1;this.root&&"on".concat(e)in this.root&&typeof i=="function"&&this.root.addEventListener(e,i,n)}},{key:"unbindEL",value:function(e,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.root&&"on".concat(e)in this.root&&typeof i=="function"&&this.root.removeEventListener(e,i,n)}},{key:"show",value:function(e){if(this.root){this.root.style.display=e!==void 0?e:"block";var i=window.getComputedStyle(this.root,null),n=i.getPropertyValue("display");n==="none"&&(this.root.style.display="block")}}},{key:"hide",value:function(){this.root&&(this.root.style.display="none")}},{key:"appendChild",value:function(e,i){if(!this.root)return null;if(arguments.length<2&&arguments[0]instanceof window.Element)return this.root.appendChild(arguments[0]);if(!i||!(i instanceof window.Element))return null;try{return typeof e=="string"?this.find(e).appendChild(i):e.appendChild(i)}catch(n){return D.logError("Plugin:appendChild",n),null}}},{key:"render",value:function(){return""}},{key:"destroy",value:function(){}},{key:"__destroy",value:function(){var e=this,i=this.player;this.__delegates.map(function(n){n.destroy()}),this.__delegates=[],this._children instanceof Array&&(this._children.map(function(n){i.unRegisterPlugin(n.pluginName)}),this._children=null),this.root&&(this.root.hasOwnProperty("remove")?this.root.remove():this.root.parentNode&&this.root.parentNode.removeChild(this.root)),I(P(r.prototype),"__destroy",this).call(this),this.icons={},["root","parent"].map(function(n){e[n]=null})}}],[{key:"insert",value:function(e,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,s=i.children.length,u=Number(n),l=e instanceof window.Node;if(s){for(var f=0,h=null,d="";f=u){d="beforebegin";break}else g4&&arguments[4]!==void 0?arguments[4]:!1,l=[];if(e instanceof window.Node&&typeof s=="function")if(Array.isArray(n))n.forEach(function(h){var d=Qt(e,i,h,s,u);d.key="".concat(i,"_").concat(h),l.push(d)});else{var f=Qt(e,i,n,s,u);f.key="".concat(i,"_").concat(n),l.push(f)}return l}},{key:"ROOT_TYPES",get:function(){return Qn}},{key:"POSITIONS",get:function(){return H}}]),r}(de),rr=function(){function o(){var a=this;if(E(this,o),y(this,"__trigger",function(r){var t=new Date().getTime();a.timeStamp=t;for(var e=0;e-1?this.__handlers[n].handler=t:this.__handlers.push({target:r,handler:t,playerId:e})}}},{key:"unObserver",value:function(r){var t=-1;this.__handlers.map(function(e,i){r===e.target&&(t=i)});try{this.observer&&this.observer.unobserve(r)}catch(e){}this.observer&&this.observer.unobserve(r),t>-1&&this.__handlers.splice(t,1)}},{key:"destroyObserver",value:function(){this.observer&&this.observer.disconnect(),this.observer=null,this.__handlers=null}},{key:"__runHandler",value:function(r){for(var t=this.__handlers,e=0;e2&&arguments[2]!==void 0?arguments[2]:{};if(!(!a||!r||typeof r!="function"||r.prototype===void 0)){var e=a._pluginInfoId;if(!(!e||!this.pluginGroup[e])){this.pluginGroup[e]._plugins||(this.pluginGroup[e]._plugins={});var i=this.pluginGroup[e]._plugins,n=this.pluginGroup[e]._originalOptions;t.player=a;var s=t.pluginName||r.pluginName;if(!s)throw new Error("The property pluginName is necessary");if(r.isSupported&&!r.isSupported(a.config.mediaType,a.config.codecType)){console.warn("not supported plugin [".concat(s,"]"));return}t.config||(t.config={});for(var u=Object.keys(n),l=0;l1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(this.root){var s=e.defaultConfig||{};if(!i.root){var u=i.position?i.position:i.config&&i.config.position?i.config.position:s.position;switch(u){case H.CONTROLS_LEFT:i.root=this.left;break;case H.CONTROLS_RIGHT:i.root=this.right;break;case H.CONTROLS_CENTER:i.root=this.center;break;case H.CONTROLS:i.root=this.root;break;default:i.root=this.left}return I(P(r.prototype),"registerPlugin",this).call(this,e,i,n)}}}},{key:"destroy",value:function(){L.device!=="mobile"&&(this.unbind("mouseenter",this.onMouseEnter),this.unbind("mouseleave",this.onMouseLeave))}},{key:"render",value:function(){var e=this.config,i=e.mode,n=e.autoHide,s=e.initShow,u=e.disable;if(!u){var l=c.classNames({"xgplayer-controls":!0},{"flex-controls":i==="flex"},{"bottom-controls":i==="bottom"},y({},C.CONTROLS_AUTOHIDE,n),{"xgplayer-controls-initshow":s||!n});return' diff --git a/assets/index-CA0d6hyI.js b/assets/index-B5z15nYm.js similarity index 96% rename from assets/index-CA0d6hyI.js rename to assets/index-B5z15nYm.js index 5f1feb9f..13217c97 100644 --- a/assets/index-CA0d6hyI.js +++ b/assets/index-B5z15nYm.js @@ -1,6 +1,6 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Department-DvKnpeco.js","assets/ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js","assets/Icon-Bwi9LaBZ.js","assets/vue-chunks-DOWhatC1.js","assets/element-plus-6v3c1uXT.js","assets/Icon-DleAP3Zh.css","assets/el-card-BRs6t4Sx.css","assets/el-popper-Dp4T8EOK.css","assets/Search.vue_vue_type_script_setup_true_lang-CJ6bt3cN.js","assets/Form-DJ57xbBt.js","assets/el-radio-button-DWJU-_1D.js","assets/el-radio-button-B8Dj3VEN.css","assets/InputPassword-D5o-63rw.js","assets/InputPassword-BpEc7C2H.css","assets/style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js","assets/wang-editor-DjPKVaXS.js","assets/style-DewYqsVK.css","assets/JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js","assets/JsonEditor-vf6b2i7S.css","assets/IconPicker-Cmmw5lYe.js","assets/IconPicker-ozs0Xu2h.css","assets/el-pagination-DJRtPtGs.css","assets/el-tag-GlP_X63n.css","assets/el-select-Cy_sckyo.css","assets/Form-C91xDjuv.css","assets/el-form-item-DeFBUyhQ.css","assets/el-col-B3Gy45B1.css","assets/el-checkbox-C4LPJRI2.css","assets/el-input-number-CHTmFwbm.css","assets/el-divider-Ca8J-BER.css","assets/el-tree-LD6oLcSu.css","assets/el-progress-DnZ3DsyP.css","assets/useForm-CbOF_UB2.js","assets/Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js","assets/useIcon-Bk4x_lwM.js","assets/Dialog.vue_vue_type_style_index_0_lang-BLWveiSq.js","assets/Dialog-B3WuPC4o.css","assets/Table.vue_vue_type_script_lang-DOZk-BCG.js","assets/index-DlX4pwja.js","assets/index-pwZQrrgk.css","assets/Table-BlOG1hLK.css","assets/el-table-column-Dl4udzM8.css","assets/el-image-viewer-CwW6idjS.css","assets/el-dropdown-item-CAfhQgSW.css","assets/el-drawer-6tlglFsG.css","assets/index-C2-F2Fy9.js","assets/useTable-BTK3WtdF.js","assets/Write.vue_vue_type_script_setup_true_lang-_SFmF5k8.js","assets/useValidator-Nt61Jv1p.js","assets/Detail.vue_vue_type_script_setup_true_lang--UJssbLv.js","assets/Descriptions-BYYy1K3P.js","assets/Descriptions-BP1gBU-L.css","assets/useCrudSchemas-B5FzcJ46.js","assets/tree-Dgaev6Pi.js","assets/Detail-B8euQaAi.js","assets/Write-DHYggKqv.js","assets/Menu-CQ_jfTEj.js","assets/index-CRNzobZS.js","assets/Write.vue_vue_type_script_setup_true_lang-C9laaz9C.js","assets/AddButtonPermission.vue_vue_type_script_setup_true_lang-C9agW6Rw.js","assets/Write-Crf0wTft.css","assets/Detail.vue_vue_type_script_setup_true_lang-Cs2MfJUl.js","assets/AddButtonPermission-DKnOyfh5.js","assets/Detail-tms56V5N.js","assets/Write-CMLvD6PZ.js","assets/Role-AGhOb_l3.js","assets/index-CxKCqm97.js","assets/Write.vue_vue_type_script_setup_true_lang-PCxcjRLC.js","assets/Detail.vue_vue_type_script_setup_true_lang-BBBBUkw6.js","assets/Detail-MWpdxpAN.js","assets/Write-DpyumCnR.js","assets/User-CRVmhTky.js","assets/Write.vue_vue_type_script_setup_true_lang-XLSypuqk.js","assets/Detail.vue_vue_type_script_setup_true_lang-BtRfuAAj.js","assets/Detail-BByS0cmq.js","assets/Write-tgoSuZxw.js","assets/CountTo--P_0rIXC.js","assets/CountTo.vue_vue_type_script_setup_true_lang-BYxn9PUH.js","assets/Descriptions-BT1fJoNu.js","assets/Descriptions-DbE2z7T-.css","assets/Dialog-glyMF7CJ.js","assets/index-DxxgNbTS.js","assets/Echart.vue_vue_type_script_setup_true_lang-D4wuPzaf.js","assets/Echart.vue_vue_type_script_setup_true_lang-B--3X1Iw.js","assets/echarts-VT2A7KjM.js","assets/Echart-DWoquW8N.js","assets/CodeEditor-IM9M_0kv.js","assets/CodeEditor-D3XBK35i.css","assets/Editor-Dsk6YOTY.js","assets/JsonEditor-9dP1ziEk.js","assets/DefaultForm-BLKW_hvw.js","assets/DefaultForm-Btw52lhZ.css","assets/UseFormDemo-mwmvv6Aa.js","assets/UseFormDemo-DT22Y_qo.css","assets/Highlight-iwtyyVdW.js","assets/Highlight.vue_vue_type_script_lang-DogC43qc.js","assets/Icon-Bx7yon6V.js","assets/Infotip.vue_vue_type_script_setup_true_lang-C9SjmiOy.js","assets/IconPicker-Cl9U2e9G.js","assets/ImageCropping-CbTeg8LQ.js","assets/ImageCropping-BBbp5-PQ.css","assets/ImageViewer-CtL_2_lz.js","assets/Infotip-Dr88umKP.js","assets/InputPassword-CNXQUYTW.js","assets/Qrcode-nadB2KpN.js","assets/logo-CqD-cdkl.js","assets/Qrcode-CGL7AEHl.css","assets/Search-DilF6krF.js","assets/Search-CHKvF_dI.css","assets/CardTable-DpMqGHeS.js","assets/index-DVoP4cjT.js","assets/el-link-KCNjwq80.css","assets/DefaultTable-DD-ttn4d.js","assets/TableImagePreview-fZ9lNUzY.js","assets/TableVideoPreview-BLFGgLVF.js","assets/TreeTable-MkFKx_LP.js","assets/TreeTable-Bpns4Cqp.css","assets/UseTableDemo-DfFWz8wl.js","assets/UseTableDemo-CXtMJCFC.css","assets/VideoPlayer-42kfXaMf.js","assets/Waterfall-CBrUbcOg.js","assets/Analysis-CiSR2fge.js","assets/PanelGroup-CJuS-ais.js","assets/PanelGroup-Ddxur8UT.css","assets/el-skeleton-item-fiVt8wpW.css","assets/Workplace-CLr6af66.js","assets/avatar-CIGAabYz.js","assets/403-_8dyrmpq.js","assets/Error.vue_vue_type_script_setup_true_lang-Yi9a7IcZ.js","assets/404-EYOB4ZDb.js","assets/500-BeNiIRKt.js","assets/ExampleDialog-DBkSQIQ9.js","assets/Write.vue_vue_type_script_setup_true_lang-B0H_2X2p.js","assets/Detail.vue_vue_type_script_setup_true_lang-CPaYQRpk.js","assets/Detail-DZ18W84S.js","assets/Write-DmcObcsQ.js","assets/ExampleAdd-DqNbWzzi.js","assets/Write.vue_vue_type_script_setup_true_lang-BCm2J1Ks.js","assets/ContentDetailWrap.vue_vue_type_script_setup_true_lang-CZbjH80x.js","assets/useEventBus-BptU9a9z.js","assets/ExampleDetail-jiL-SQgj.js","assets/Detail.vue_vue_type_script_setup_true_lang-CFcBVm_Z.js","assets/ExampleEdit-BXGV8wDF.js","assets/ExamplePage-4ttf5cy2.js","assets/Detail-CbKODdnp.js","assets/Write-D4uWemfC.js","assets/MultipleTabs-j8VcrQgb.js","assets/MultipleTabsDemo-D5XLE6u4.js","assets/useTagsView-yfN3e7pq.js","assets/Request-Cz1XJXHj.js","assets/Test-CjWai9x0.js","assets/Guide-lGAC_uwB.js","assets/Guide-BMB7Xdgs.css","assets/HomeView-B6WrtAkf.js","assets/Menu111-BqoTAiIX.js","assets/Menu12-BCBy8PfP.js","assets/Menu2-BjbdK-7b.js","assets/Login-VAckGz8o.js","assets/LoginForm.vue_vue_type_script_setup_true_lang-XZcXgUiw.js","assets/RegisterForm.vue_vue_type_script_setup_true_lang-CBzM5vQS.js","assets/ThemeSwitch-INxyZ6i5.js","assets/ThemeSwitch-H2EWSLMQ.css","assets/Login-D3eesFyh.css","assets/LoginForm-B04P81XP.js","assets/RegisterForm-8a74KfzE.js","assets/Redirect-Dp4MFXk6.js","assets/useClipboard-BP8y4td2.js","assets/useCrudSchemas-CCmfjfoL.js","assets/useNetwork-CMuHkkRX.js","assets/useTagsView-BzxN2HZN.js","assets/useValidator-BeCBBrXu.js","assets/useWatermark-CPkIKVZd.js","assets/Layout-CL8owWwX.js","assets/Layout-BhS8VURB.css"] + __vite__mapDeps.viteFileDeps = ["assets/Department-CZqBro4N.js","assets/ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js","assets/Icon-B-0CON7P.js","assets/vue-chunks-DOWhatC1.js","assets/element-plus-6v3c1uXT.js","assets/Icon-DleAP3Zh.css","assets/el-card-BRs6t4Sx.css","assets/el-popper-Dp4T8EOK.css","assets/Search.vue_vue_type_script_setup_true_lang-ClF9XpoI.js","assets/Form-B3fdtaFM.js","assets/el-radio-button-BbBORUw9.js","assets/el-radio-button-B8Dj3VEN.css","assets/InputPassword-C8AimXzj.js","assets/InputPassword-BpEc7C2H.css","assets/style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js","assets/wang-editor-DjPKVaXS.js","assets/style-DewYqsVK.css","assets/JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js","assets/JsonEditor-vf6b2i7S.css","assets/IconPicker-WxbdLOo_.js","assets/IconPicker-ozs0Xu2h.css","assets/el-pagination-DJRtPtGs.css","assets/el-tag-GlP_X63n.css","assets/el-select-Cy_sckyo.css","assets/Form-C91xDjuv.css","assets/el-form-item-DeFBUyhQ.css","assets/el-col-B3Gy45B1.css","assets/el-checkbox-C4LPJRI2.css","assets/el-input-number-CHTmFwbm.css","assets/el-divider-Ca8J-BER.css","assets/el-tree-LD6oLcSu.css","assets/el-progress-DnZ3DsyP.css","assets/useForm-BIADJKAv.js","assets/Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js","assets/useIcon-Dzh8BHEZ.js","assets/Dialog.vue_vue_type_style_index_0_lang-DkCU3loB.js","assets/Dialog-B3WuPC4o.css","assets/Table.vue_vue_type_script_lang-BzBmZLp9.js","assets/index-2gFf0KW4.js","assets/index-pwZQrrgk.css","assets/Table-BlOG1hLK.css","assets/el-table-column-Dl4udzM8.css","assets/el-image-viewer-CwW6idjS.css","assets/el-dropdown-item-CAfhQgSW.css","assets/el-drawer-6tlglFsG.css","assets/index-DI3UHSfz.js","assets/useTable-B7CCRTD1.js","assets/Write.vue_vue_type_script_setup_true_lang-DgvKX96v.js","assets/useValidator-Nt61Jv1p.js","assets/Detail.vue_vue_type_script_setup_true_lang-DrZMk85_.js","assets/Descriptions-CnAOhWOB.js","assets/Descriptions-BP1gBU-L.css","assets/useCrudSchemas-B5FzcJ46.js","assets/tree-Dgaev6Pi.js","assets/Detail-CZeRNZkD.js","assets/Write-C4MdhBEG.js","assets/Menu-BhIIVxms.js","assets/index-BYcZ39zx.js","assets/Write.vue_vue_type_script_setup_true_lang-BBz-bjD1.js","assets/AddButtonPermission.vue_vue_type_script_setup_true_lang-wVzKuO8R.js","assets/Write-Crf0wTft.css","assets/Detail.vue_vue_type_script_setup_true_lang-BoRUl_Lf.js","assets/AddButtonPermission-DCIk97_V.js","assets/Detail-mdLYTz1q.js","assets/Write-DFUzDWxn.js","assets/Role-Dyb9E-YN.js","assets/index-CA5sn5Y0.js","assets/Write.vue_vue_type_script_setup_true_lang-Ce1mcWoJ.js","assets/Detail.vue_vue_type_script_setup_true_lang-Cjk_uBWB.js","assets/Detail-BkgGU8cH.js","assets/Write-DLh0tahb.js","assets/User-__ht-I-y.js","assets/Write.vue_vue_type_script_setup_true_lang-uIkHTRx6.js","assets/Detail.vue_vue_type_script_setup_true_lang-BCv-Qvj2.js","assets/Detail-BAi8VKs2.js","assets/Write-C60S3lqk.js","assets/CountTo-BfciFB2t.js","assets/CountTo.vue_vue_type_script_setup_true_lang-BAvgPMEO.js","assets/Descriptions-DWGDe9Sc.js","assets/Descriptions-DbE2z7T-.css","assets/Dialog-4Q3xWqi7.js","assets/index-Dt71D4p1.js","assets/Echart.vue_vue_type_script_setup_true_lang-B_EbGjXk.js","assets/Echart.vue_vue_type_script_setup_true_lang-CrfDnuqg.js","assets/echarts-VT2A7KjM.js","assets/Echart-Cvjj3_Ce.js","assets/CodeEditor-SFUUr4rV.js","assets/CodeEditor-D3XBK35i.css","assets/Editor-DwMwBmXe.js","assets/JsonEditor-_UH9V21N.js","assets/DefaultForm-Dg_j11XR.js","assets/DefaultForm-Btw52lhZ.css","assets/UseFormDemo-Bw7a92Lx.js","assets/UseFormDemo-DT22Y_qo.css","assets/Highlight-CtDwwxo1.js","assets/Highlight.vue_vue_type_script_lang-BkEaAxMF.js","assets/Icon-BntWs4Mz.js","assets/Infotip.vue_vue_type_script_setup_true_lang-Bi8BypLc.js","assets/IconPicker-CNS-lt2r.js","assets/ImageCropping-Dcjg4sBX.js","assets/ImageCropping-BBbp5-PQ.css","assets/ImageViewer-CV4-P-He.js","assets/Infotip-BlieaFoW.js","assets/InputPassword-BOsN6yJd.js","assets/Qrcode-TFgtIK2a.js","assets/logo-CqD-cdkl.js","assets/Qrcode-CGL7AEHl.css","assets/Search-1xjpGPv-.js","assets/Search-CHKvF_dI.css","assets/CardTable-CF9tCZ-U.js","assets/index-DB50Cmmr.js","assets/el-link-KCNjwq80.css","assets/DefaultTable-B8Notva-.js","assets/TableImagePreview-aDFKG0ny.js","assets/TableVideoPreview-uIFu_zG-.js","assets/TreeTable-B2gHEPX4.js","assets/TreeTable-Bpns4Cqp.css","assets/UseTableDemo-CG_waIQy.js","assets/UseTableDemo-DRKt3uVJ.css","assets/VideoPlayer-CSRu1lzL.js","assets/Waterfall-BQjrg7ql.js","assets/Analysis-o1g9mDRc.js","assets/PanelGroup-SOpNPnD6.js","assets/PanelGroup-Ddxur8UT.css","assets/el-skeleton-item-fiVt8wpW.css","assets/Workplace-BIupU6-s.js","assets/avatar-CIGAabYz.js","assets/403-DnhwZjvt.js","assets/Error.vue_vue_type_script_setup_true_lang-pT3BQnse.js","assets/404-CG2A4mzm.js","assets/500-DxSyrmt3.js","assets/ExampleDialog-B5zK_Laf.js","assets/Write.vue_vue_type_script_setup_true_lang-CIiSGwSL.js","assets/Detail.vue_vue_type_script_setup_true_lang-D0pWjFAb.js","assets/Detail-DWDVTDCD.js","assets/Write-D1Qaqcxi.js","assets/ExampleAdd-DDDh0jHD.js","assets/Write.vue_vue_type_script_setup_true_lang-CdW4xsT_.js","assets/ContentDetailWrap.vue_vue_type_script_setup_true_lang-BkeNJGQ5.js","assets/useEventBus-BptU9a9z.js","assets/ExampleDetail-CDVh2zLz.js","assets/Detail.vue_vue_type_script_setup_true_lang-BVf-bmvt.js","assets/ExampleEdit-BL7D4Qzc.js","assets/ExamplePage-Bo3S62UP.js","assets/Detail-BVAhsvq2.js","assets/Write-x8NPtotc.js","assets/MultipleTabs-BYc9VCj9.js","assets/MultipleTabsDemo-B1qrIdt2.js","assets/useTagsView-BLw3Jy7r.js","assets/Request-9HlOJKyN.js","assets/Test-DaedM19Y.js","assets/Guide-Co5cadxk.js","assets/Guide-BMB7Xdgs.css","assets/HomeView-D20k5K9M.js","assets/Menu111-_Qdpt9MO.js","assets/Menu12-b7-BY7Ge.js","assets/Menu2-DX4lEJ0Q.js","assets/Login-xvfsYS1e.js","assets/LoginForm.vue_vue_type_script_setup_true_lang-DvGn1PBc.js","assets/RegisterForm.vue_vue_type_script_setup_true_lang-3yLcY2Dh.js","assets/ThemeSwitch-Dfovu-Fl.js","assets/ThemeSwitch-H2EWSLMQ.css","assets/Login-D3eesFyh.css","assets/LoginForm-Bs9L3ZxU.js","assets/RegisterForm-DWC1NxJI.js","assets/Redirect-Dp4MFXk6.js","assets/useClipboard-Cu6jxoh0.js","assets/useCrudSchemas-B0mS9v28.js","assets/useNetwork-CJjsr591.js","assets/useTagsView-Dn5Mz9ts.js","assets/useValidator-DdhWBLrm.js","assets/useWatermark-CEKtVccT.js","assets/Layout-B5JiSUXZ.js","assets/Layout-BhS8VURB.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } @@ -16,7 +16,7 @@ ${$(Q.join(` `))}`),Z}}:{type:W})}function F(e){return j("arrayOf",{type:Array,validator(C){let G="";const H=C.every(W=>(G=m(e,W,!0),G===!0));return H||d(`arrayOf - value validation error: ${$(G)}`),H}})}function Y(e){return j("instanceOf",{type:e})}function I(e){return j("objectOf",{type:Object,validator(C){let G="";const H=Object.keys(C).every(W=>(G=m(e,C[W],!0),G===!0));return H||d(`objectOf - value validation error: ${$(G)}`),H}})}function J(e){const C=Object.keys(e),G=C.filter(W=>{var K;return!((K=e[W])===null||K===void 0||!K.required)}),H=j("shape",{type:Object,validator(W){if(!c(W))return!1;const K=Object.keys(W);if(G.length>0&&G.some(Q=>K.indexOf(Q)===-1)){const Q=G.filter(Z=>K.indexOf(Z)===-1);return d(Q.length===1?`shape - required property "${Q[0]}" is not defined.`:`shape - required properties "${Q.join('", "')}" are not defined.`),!1}return K.every(Q=>{if(C.indexOf(Q)===-1)return this._vueTypes_isLoose===!0||(d(`shape - shape definition does not include a "${Q}" property. Allowed keys: "${C.join('", "')}".`),!1);const Z=m(e[Q],W[Q],!0);return typeof Z=="string"&&d(`shape - "${Q}" property validation error: - ${$(Z)}`),Z===!0})}});return Object.defineProperty(H,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(H,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),H}const M=["name","validate","getter"],R=(()=>{var e;return(e=class{static get any(){return w()}static get func(){return x().def(this.defaults.func)}static get bool(){return this.defaults.bool===void 0?P():P().def(this.defaults.bool)}static get string(){return A().def(this.defaults.string)}static get number(){return E().def(this.defaults.number)}static get array(){return S().def(this.defaults.array)}static get object(){return N().def(this.defaults.object)}static get integer(){return V().def(this.defaults.integer)}static get symbol(){return q()}static get nullable(){return k()}static extend(C){if(d("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),v(C))return C.forEach(te=>this.extend(te)),this;const{name:G,validate:H=!1,getter:W=!1}=C,K=n(C,M);if(p(this,G))throw new TypeError(`[VueTypes error]: Type "${G}" already defined`);const{type:Q}=K;if(b(Q))return delete K.type,Object.defineProperty(this,G,W?{get:()=>T(G,Q,K)}:{value(...te){const ee=T(G,Q,K);return ee.validator&&(ee.validator=ee.validator.bind(ee,...te)),ee}});let Z;return Z=W?{get(){const te=Object.assign({},K);return H?_(G,te):j(G,te)},enumerable:!0}:{value(...te){const ee=Object.assign({},K);let ae;return ae=H?_(G,ee):j(G,ee),ee.validator&&(ae.validator=ee.validator.bind(ae,...te)),ae},enumerable:!0},Object.defineProperty(this,G,Z)}}).defaults={},e.sensibleDefaults=void 0,e.config=r,e.custom=D,e.oneOf=L,e.instanceOf=Y,e.oneOfType=B,e.arrayOf=F,e.objectOf=I,e.shape=J,e.utils={validate:(C,G)=>m(G,C,!0)===!0,toType:(C,G,H=!1)=>H?_(C,G):j(C,G)},e})();function U(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var C;return(C=class extends R{static get sensibleDefaults(){return t({},this.defaults)}static set sensibleDefaults(G){this.defaults=G!==!1?t({},G!==!0?G:e):{}}}).defaults=t({},e),C}class z extends U(){}const newPropTypes=U({func:void 0,bool:void 0,string:void 0,number:void 0,object:void 0,integer:void 0});class propTypes extends newPropTypes{static get style(){return _("style",{type:[String,Object]})}}var zhCn={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const _sfc_main$1=defineComponent({__name:"ConfigGlobal",props:{size:propTypes.oneOf(["default","small","large"]).def("default")},setup(e){const C=useAppStore();provide("configGlobal",e),onMounted(()=>{C.setCssVarTheme()});const{width:H}=useWindowSize();return watch(()=>H.value,W=>{W<768?(C.getMobile||C.setMobile(!0),setCssVar("--left-menu-min-width","0"),C.setCollapse(!0),C.getLayout!=="classic"&&C.setLayout("classic")):(C.getMobile&&C.setMobile(!1),setCssVar("--left-menu-min-width","64px"))},{immediate:!0}),(W,K)=>(openBlock(),createBlock(unref(ElConfigProvider),{namespace:"el",message:{max:1},size:e.size,locale:unref(zhCn)},{default:withCtx(()=>[renderSlot(W.$slots,"default")]),_:3},8,["size","locale"]))}}),_sfc_main=defineComponent({__name:"App",setup(e){const C=useAppStore(),G=computed(()=>C.getCurrentSize),H=computed(()=>C.getGreyMode),W=useDark({valueDark:"dark",valueLight:"light"});return W.value=C.getIsDark,(K,Q)=>{const Z=resolveComponent("RouterView");return openBlock(),createBlock(unref(_sfc_main$1),{size:G.value},{default:withCtx(()=>[createVNode(Z,{class:normalizeClass(H.value?"app-grey-mode":"")},null,8,["class"])]),_:1},8,["size"])}}}),scriptRel="modulepreload",assetsURL=function(e){return"/"+e},seen={},__vitePreload=function(C,G,H){let W=Promise.resolve();if(G&&G.length>0){const K=document.getElementsByTagName("link"),Q=document.querySelector("meta[property=csp-nonce]"),Z=(Q==null?void 0:Q.nonce)||(Q==null?void 0:Q.getAttribute("nonce"));W=Promise.all(G.map(te=>{if(te=assetsURL(te),te in seen)return;seen[te]=!0;const ee=te.endsWith(".css"),ae=ee?'[rel="stylesheet"]':"";if(!!H)for(let pe=K.length-1;pe>=0;pe--){const oe=K[pe];if(oe.href===te&&(!ee||oe.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${te}"]${ae}`))return;const ce=document.createElement("link");if(ce.rel=ee?"stylesheet":scriptRel,ee||(ce.as="script",ce.crossOrigin=""),ce.href=te,Z&&ce.setAttribute("nonce",Z),document.head.appendChild(ce),ee)return new Promise((pe,oe)=>{ce.addEventListener("load",pe),ce.addEventListener("error",()=>oe(new Error(`Unable to preload CSS for ${te}`)))})}))}return W.then(()=>C()).catch(K=>{const Q=new Event("vite:preloadError",{cancelable:!0});if(Q.payload=K,window.dispatchEvent(Q),!Q.defaultPrevented)throw K})},toString$1=Object.prototype.toString,is=(e,C)=>toString$1.call(e)===`[object ${C}]`,isObject$1=e=>e!==null&&is(e,"Object"),isNumber$2=e=>is(e,"Number"),isString$2=e=>is(e,"String"),isFunction$1=e=>typeof e=="function",isServer=typeof window=="undefined",isClient=!isServer,isUrl=e=>/(((^https?:(?:\/\/)?)(?:[-:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&%@.\w_]*)#?(?:[\w]*))?)$/.test(e),isEmptyVal=e=>e===""||e===null||e===void 0,modules$1=Object.assign({"../views/Authorization/Department/Department.vue":()=>__vitePreload(()=>import("./Department-DvKnpeco.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53])),"../views/Authorization/Department/components/Detail.vue":()=>__vitePreload(()=>import("./Detail-B8euQaAi.js"),__vite__mapDeps([54,49,50,3,2,4,5,51,7,26])),"../views/Authorization/Department/components/Write.vue":()=>__vitePreload(()=>import("./Write-DHYggKqv.js"),__vite__mapDeps([55,47,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48])),"../views/Authorization/Menu/Menu.vue":()=>__vitePreload(()=>import("./Menu-CQ_jfTEj.js"),__vite__mapDeps([56,57,46,37,10,11,2,3,4,5,33,38,39,40,41,27,7,22,21,23,42,6,43,44,8,9,12,13,14,15,16,17,18,19,20,24,25,26,28,29,30,31,32,34,1,58,48,59,60,61,50,51,35,36])),"../views/Authorization/Menu/components/AddButtonPermission.vue":()=>__vitePreload(()=>import("./AddButtonPermission-DKnOyfh5.js"),__vite__mapDeps([62,59,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,33,44])),"../views/Authorization/Menu/components/Detail.vue":()=>__vitePreload(()=>import("./Detail-tms56V5N.js"),__vite__mapDeps([63,61,50,3,2,4,5,51,7,26,22])),"../views/Authorization/Menu/components/Write.vue":()=>__vitePreload(()=>import("./Write-CMLvD6PZ.js"),__vite__mapDeps([64,58,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,57,59,33,44,60,41])),"../views/Authorization/Role/Role.vue":()=>__vitePreload(()=>import("./Role-AGhOb_l3.js"),__vite__mapDeps([65,66,46,37,10,11,2,3,4,5,33,38,39,40,41,27,7,22,21,23,42,6,43,44,8,9,12,13,14,15,16,17,18,19,20,24,25,26,28,29,30,31,32,34,1,67,48,57,53,68,50,51,35,36])),"../views/Authorization/Role/components/Detail.vue":()=>__vitePreload(()=>import("./Detail-MWpdxpAN.js"),__vite__mapDeps([69,68,50,3,2,4,5,51,7,26,57,22,30,27])),"../views/Authorization/Role/components/Write.vue":()=>__vitePreload(()=>import("./Write-DpyumCnR.js"),__vite__mapDeps([70,67,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,57,53])),"../views/Authorization/User/User.vue":()=>__vitePreload(()=>import("./User-CRVmhTky.js"),__vite__mapDeps([71,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,45,46,8,9,12,13,14,15,16,17,18,19,20,24,25,26,28,29,30,31,32,34,72,48,73,50,51,35,36,66,52,53])),"../views/Authorization/User/components/Detail.vue":()=>__vitePreload(()=>import("./Detail-BByS0cmq.js"),__vite__mapDeps([74,73,50,3,2,4,5,51,7,26])),"../views/Authorization/User/components/Write.vue":()=>__vitePreload(()=>import("./Write-tgoSuZxw.js"),__vite__mapDeps([75,72,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48])),"../views/Components/CountTo.vue":()=>__vitePreload(()=>import("./CountTo--P_0rIXC.js"),__vite__mapDeps([76,1,2,3,4,5,6,7,77,33,26,28])),"../views/Components/Descriptions.vue":()=>__vitePreload(()=>import("./Descriptions-BT1fJoNu.js"),__vite__mapDeps([78,50,3,2,4,5,51,7,26,33,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,48,32,79])),"../views/Components/Dialog.vue":()=>__vitePreload(()=>import("./Dialog-glyMF7CJ.js"),__vite__mapDeps([80,1,2,3,4,5,6,7,35,36,33,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,48,81,32,82,83,84])),"../views/Components/Echart.vue":()=>__vitePreload(()=>import("./Echart-DWoquW8N.js"),__vite__mapDeps([85,82,1,2,3,4,5,6,7,83,84,26])),"../views/Components/Editor/CodeEditor.vue":()=>__vitePreload(()=>import("./CodeEditor-IM9M_0kv.js").then(e=>e.C),__vite__mapDeps([86,3,4,1,2,5,6,7,33,87,22,23,25,29])),"../views/Components/Editor/Editor.vue":()=>__vitePreload(()=>import("./Editor-Dsk6YOTY.js"),__vite__mapDeps([88,1,2,3,4,5,6,7,14,15,16])),"../views/Components/Editor/JsonEditor.vue":()=>__vitePreload(()=>import("./JsonEditor-9dP1ziEk.js"),__vite__mapDeps([89,1,2,3,4,5,6,7,17,18])),"../views/Components/Form/DefaultForm.vue":()=>__vitePreload(()=>import("./DefaultForm-BLKW_hvw.js"),__vite__mapDeps([90,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,1,6,81,33,91])),"../views/Components/Form/UseFormDemo.vue":()=>__vitePreload(()=>import("./UseFormDemo-mwmvv6Aa.js"),__vite__mapDeps([92,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,1,6,32,48,81,33,93])),"../views/Components/Highlight.vue":()=>__vitePreload(()=>import("./Highlight-iwtyyVdW.js"),__vite__mapDeps([94,1,2,3,4,5,6,7,95])),"../views/Components/Icon.vue":()=>__vitePreload(()=>import("./Icon-Bx7yon6V.js"),__vite__mapDeps([96,1,2,3,4,5,6,7,97,95,34,33])),"../views/Components/IconPicker.vue":()=>__vitePreload(()=>import("./IconPicker-Cl9U2e9G.js"),__vite__mapDeps([98,19,2,3,4,5,20,7,21,22,23,1,6])),"../views/Components/ImageCropping.vue":()=>__vitePreload(()=>import("./ImageCropping-CbTeg8LQ.js"),__vite__mapDeps([99,1,2,3,4,5,6,7,33,100,29,31])),"../views/Components/ImageViewer.vue":()=>__vitePreload(()=>import("./ImageViewer-CtL_2_lz.js"),__vite__mapDeps([101,1,2,3,4,5,6,7,33,42])),"../views/Components/Infotip.vue":()=>__vitePreload(()=>import("./Infotip-Dr88umKP.js"),__vite__mapDeps([102,1,2,3,4,5,6,7,97,95])),"../views/Components/InputPassword.vue":()=>__vitePreload(()=>import("./InputPassword-CNXQUYTW.js"),__vite__mapDeps([103,1,2,3,4,5,6,7,12,13])),"../views/Components/Qrcode.vue":()=>__vitePreload(()=>import("./Qrcode-nadB2KpN.js"),__vite__mapDeps([104,2,3,4,5,1,6,7,105,106,26])),"../views/Components/Search.vue":()=>__vitePreload(()=>import("./Search-DilF6krF.js"),__vite__mapDeps([107,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,81,108])),"../views/Components/Table/CardTable.vue":()=>__vitePreload(()=>import("./CardTable-DpMqGHeS.js"),__vite__mapDeps([109,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110,111,29])),"../views/Components/Table/DefaultTable.vue":()=>__vitePreload(()=>import("./DefaultTable-DD-ttn4d.js"),__vite__mapDeps([112,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110])),"../views/Components/Table/TableImagePreview.vue":()=>__vitePreload(()=>import("./TableImagePreview-fZ9lNUzY.js"),__vite__mapDeps([113,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110])),"../views/Components/Table/TableVideoPreview.vue":()=>__vitePreload(()=>import("./TableVideoPreview-BLFGgLVF.js"),__vite__mapDeps([114,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110])),"../views/Components/Table/TreeTable.vue":()=>__vitePreload(()=>import("./TreeTable-MkFKx_LP.js"),__vite__mapDeps([115,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110,46,116])),"../views/Components/Table/UseTableDemo.vue":()=>__vitePreload(()=>import("./UseTableDemo-DfFWz8wl.js"),__vite__mapDeps([117,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110,46,118])),"../views/Components/VideoPlayer.vue":()=>__vitePreload(()=>import("./VideoPlayer-42kfXaMf.js"),__vite__mapDeps([119,38,3,4,2,5,39,1,6,7,33,29])),"../views/Components/Waterfall.vue":()=>__vitePreload(()=>import("./Waterfall-CBrUbcOg.js"),__vite__mapDeps([120,4,3,1,2,5,6,7])),"../views/Dashboard/Analysis.vue":()=>__vitePreload(()=>import("./Analysis-CiSR2fge.js"),__vite__mapDeps([121,122,2,3,4,5,77,123,26,6,124,83,84])),"../views/Dashboard/Workplace.vue":()=>__vitePreload(()=>import("./Workplace-CLr6af66.js"),__vite__mapDeps([125,2,3,4,5,126,77,83,84,95,26,124,6,29,111])),"../views/Dashboard/components/PanelGroup.vue":()=>__vitePreload(()=>import("./PanelGroup-CJuS-ais.js").then(e=>e.c),__vite__mapDeps([122,2,3,4,5,77,123,26,6,124])),"../views/Error/403.vue":()=>__vitePreload(()=>import("./403-_8dyrmpq.js"),__vite__mapDeps([127,128,33,4,3])),"../views/Error/404.vue":()=>__vitePreload(()=>import("./404-EYOB4ZDb.js"),__vite__mapDeps([129,128,33,4,3])),"../views/Error/500.vue":()=>__vitePreload(()=>import("./500-BeNiIRKt.js"),__vite__mapDeps([130,128,33,4,3])),"../views/Example/Dialog/ExampleDialog.vue":()=>__vitePreload(()=>import("./ExampleDialog-DBkSQIQ9.js"),__vite__mapDeps([131,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,110,46,132,48,133,50,51,52,53])),"../views/Example/Dialog/components/Detail.vue":()=>__vitePreload(()=>import("./Detail-DZ18W84S.js"),__vite__mapDeps([134,133,50,3,2,4,5,51,7,26])),"../views/Example/Dialog/components/Write.vue":()=>__vitePreload(()=>import("./Write-DmcObcsQ.js"),__vite__mapDeps([135,132,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48])),"../views/Example/Page/ExampleAdd.vue":()=>__vitePreload(()=>import("./ExampleAdd-DqNbWzzi.js"),__vite__mapDeps([136,137,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,138,6,33,110,139])),"../views/Example/Page/ExampleDetail.vue":()=>__vitePreload(()=>import("./ExampleDetail-jiL-SQgj.js"),__vite__mapDeps([140,141,50,3,2,4,5,51,7,26,22,138,6,33,110])),"../views/Example/Page/ExampleEdit.vue":()=>__vitePreload(()=>import("./ExampleEdit-BXGV8wDF.js"),__vite__mapDeps([142,137,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,138,6,33,110,139])),"../views/Example/Page/ExamplePage.vue":()=>__vitePreload(()=>import("./ExamplePage-4ttf5cy2.js"),__vite__mapDeps([143,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,37,38,39,40,41,42,43,44,110,46,139,52,53])),"../views/Example/Page/components/Detail.vue":()=>__vitePreload(()=>import("./Detail-CbKODdnp.js"),__vite__mapDeps([144,141,50,3,2,4,5,51,7,26,22])),"../views/Example/Page/components/Write.vue":()=>__vitePreload(()=>import("./Write-D4uWemfC.js"),__vite__mapDeps([145,137,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48])),"../views/Function/MultipleTabs.vue":()=>__vitePreload(()=>import("./MultipleTabs-j8VcrQgb.js"),__vite__mapDeps([146,1,2,3,4,5,6,7,33])),"../views/Function/MultipleTabsDemo.vue":()=>__vitePreload(()=>import("./MultipleTabsDemo-D5XLE6u4.js"),__vite__mapDeps([147,1,2,3,4,5,6,7,148])),"../views/Function/Request.vue":()=>__vitePreload(()=>import("./Request-Cz1XJXHj.js"),__vite__mapDeps([149,1,2,3,4,5,6,7,33,29])),"../views/Function/Test.vue":()=>__vitePreload(()=>import("./Test-CjWai9x0.js"),__vite__mapDeps([150,3,1,2,4,5,6,7,33,29,26])),"../views/Guide/Guide.vue":()=>__vitePreload(()=>import("./Guide-lGAC_uwB.js"),__vite__mapDeps([151,1,2,3,4,5,6,7,33,152])),"../views/HomeView.vue":()=>__vitePreload(()=>import("./HomeView-B6WrtAkf.js"),__vite__mapDeps([153,4,3])),"../views/Level/Menu111.vue":()=>__vitePreload(()=>import("./Menu111-BqoTAiIX.js"),__vite__mapDeps([154,1,2,3,4,5,6,7])),"../views/Level/Menu12.vue":()=>__vitePreload(()=>import("./Menu12-BCBy8PfP.js"),__vite__mapDeps([155,1,2,3,4,5,6,7])),"../views/Level/Menu2.vue":()=>__vitePreload(()=>import("./Menu2-BjbdK-7b.js"),__vite__mapDeps([156,1,2,3,4,5,6,7])),"../views/Login/Login.vue":()=>__vitePreload(()=>import("./Login-VAckGz8o.js"),__vite__mapDeps([157,3,105,158,9,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,33,111,159,160,34,161,162])),"../views/Login/components/LoginForm.vue":()=>__vitePreload(()=>import("./LoginForm-B04P81XP.js"),__vite__mapDeps([163,158,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,33,111])),"../views/Login/components/RegisterForm.vue":()=>__vitePreload(()=>import("./RegisterForm-8a74KfzE.js"),__vite__mapDeps([164,159,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,33])),"../views/Redirect/Redirect.vue":()=>__vitePreload(()=>import("./Redirect-Dp4MFXk6.js"),__vite__mapDeps([165,3])),"../views/hooks/useClipboard.vue":()=>__vitePreload(()=>import("./useClipboard-BP8y4td2.js"),__vite__mapDeps([166,1,2,3,4,5,6,7,33])),"../views/hooks/useCrudSchemas.vue":()=>__vitePreload(()=>import("./useCrudSchemas-CCmfjfoL.js"),__vite__mapDeps([167,52,53,3,17,18,1,2,4,5,6,7,26])),"../views/hooks/useNetwork.vue":()=>__vitePreload(()=>import("./useNetwork-CMuHkkRX.js"),__vite__mapDeps([168,1,2,3,4,5,6,7])),"../views/hooks/useTagsView.vue":()=>__vitePreload(()=>import("./useTagsView-BzxN2HZN.js"),__vite__mapDeps([169,1,2,3,4,5,6,7,33,148])),"../views/hooks/useValidator.vue":()=>__vitePreload(()=>import("./useValidator-BeCBBrXu.js"),__vite__mapDeps([170,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,48,32])),"../views/hooks/useWatermark.vue":()=>__vitePreload(()=>import("./useWatermark-CPkIKVZd.js"),__vite__mapDeps([171,1,2,3,4,5,6,7,33]))}),Layout=()=>__vitePreload(()=>import("./Layout-CL8owWwX.js"),__vite__mapDeps([172,4,3,2,5,160,9,10,11,12,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,34,161,33,53,148,105,126,35,36,32,48,173,44,43])),getParentLayout=()=>()=>new Promise(e=>{e({name:"ParentLayout"})}),getRawRoute=e=>{if(!e)return e;const H=e,{matched:C}=H,G=cr(H,["matched"]);return at(Me({},G),{matched:C?C.map(W=>({meta:W.meta,name:W.name,path:W.path})):void 0})},generateRoutesByFrontEnd=(e,C,G="/")=>{var W;const H=[];for(const K of e){const Q=(W=K.meta)!=null?W:{};if(Q.hidden&&!Q.canTo)continue;let Z=null,te=null;K.children&&K.children.length===1&&!Q.alwaysShow&&(te=isUrl(K.children[0].path)?K.children[0].path:pathResolve(pathResolve(G,K.path),K.children[0].path));for(const ee of C)isUrl(ee)&&(te===ee||K.path===ee)?Z=Object.assign({},K):((te!=null?te:pathResolve(G,K.path)).trim()===ee||Q.followRoute===ee)&&(Z=Object.assign({},K));K.children&&Z&&(Z.children=generateRoutesByFrontEnd(K.children,C,pathResolve(G,Z.path))),Z&&H.push(Z)}return H},generateRoutesByServer=e=>{const C=[];for(const G of e){const H={path:G.path,name:G.name,redirect:G.redirect,meta:G.meta};if(G.component){const W=modules$1[`../${G.component}.vue`]||modules$1[`../${G.component}.tsx`],K=G.component;!W&&!K.includes("#")?console.error(`未找到${G.component}.vue文件或${G.component}.tsx文件,请创建`):H.component=K==="#"?Layout:K.includes("##")?getParentLayout():W}G.children&&(H.children=generateRoutesByServer(G.children)),C.push(H)}return C},pathResolve=(e,C)=>{if(isUrl(C))return C;const G=C.startsWith("/")||!C?C:`/${C}`;return`${e}${G}`.replace(/\/\//g,"/").trim()},flatMultiLevelRoutes=e=>{const C=cloneDeep(e);for(let G=0;G{var H,W;if(!e||!Reflect.has(e,"children")||!((H=e.children)!=null&&H.length))return!1;const C=e.children;let G=!1;for(let K=0;K{var H;let C=createRouter({routes:[e],history:createWebHashHistory()});const G=C.getRoutes();addToChildren(G,e.children||[],e),C=null,e.children=(H=e.children)==null?void 0:H.map(W=>omit(W,"children"))},addToChildren=(e,C,G)=>{var H,W;for(let K=0;Kte.name===Q.name);Z&&(G.children=G.children||[],G.children.find(te=>te.name===Z.name)||(H=G.children)==null||H.push(Z),(W=Q.children)!=null&&W.length&&addToChildren(e,Q.children,G))}},SUCCESS_CODE=0,CONTENT_TYPE="application/json",REQUEST_TIMEOUT=6e4,NO_REDIRECT_WHITE_LIST=["/login"],NO_RESET_WHITE_LIST=["Redirect","Login","NoFind","Root"],DEFAULT_FILTER_COLUMN=["expand","selection"],constantRouterMap=[{path:"/",component:Layout,redirect:"/dashboard/analysis",name:"Root",meta:{hidden:!0}},{path:"/redirect",component:Layout,name:"Redirect",children:[{path:"/redirect/:path(.*)",name:"Redirect",component:()=>__vitePreload(()=>import("./Redirect-Dp4MFXk6.js"),__vite__mapDeps([165,3])),meta:{}}],meta:{hidden:!0,noTagsView:!0}},{path:"/login",component:()=>__vitePreload(()=>import("./Login-VAckGz8o.js"),__vite__mapDeps([157,3,105,158,9,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,33,111,159,160,34,161,162])),name:"Login",meta:{hidden:!0,title:"登录",noTagsView:!0}}],asyncRouterMap=[{path:"/dashboard",component:Layout,redirect:"/dashboard/analysis",name:"Dashboard",meta:{title:"首页",icon:"ant-design:dashboard-filled",alwaysShow:!0},children:[{path:"analysis",component:()=>__vitePreload(()=>import("./Analysis-CiSR2fge.js"),__vite__mapDeps([121,122,2,3,4,5,77,123,26,6,124,83,84])),name:"Analysis",meta:{title:"分析页",noCache:!0,affix:!0}},{path:"workplace",component:()=>__vitePreload(()=>import("./Workplace-CLr6af66.js"),__vite__mapDeps([125,2,3,4,5,126,77,83,84,95,26,124,6,29,111])),name:"Workplace",meta:{title:"工作台",noCache:!0}}]},{path:"/external-link",component:Layout,meta:{},name:"ExternalLink",children:[{path:"https://admindoc.mbuild.top",name:"DocumentLink",meta:{title:"文档",icon:"clarity:document-solid"}}]},{path:"/guide",component:Layout,name:"Guide",meta:{},children:[{path:"index",component:()=>__vitePreload(()=>import("./Guide-lGAC_uwB.js"),__vite__mapDeps([151,1,2,3,4,5,6,7,33,152])),name:"GuideDemo",meta:{title:"引导",icon:"cib:telegram-plane"}}]},{path:"/components",component:Layout,name:"ComponentsDemo",meta:{title:"组件",icon:"bx:bxs-component",alwaysShow:!0},children:[{path:"form",component:getParentLayout(),redirect:"/components/form/default-form",name:"Form",meta:{title:"表单",alwaysShow:!0},children:[{path:"default-form",component:()=>__vitePreload(()=>import("./DefaultForm-BLKW_hvw.js"),__vite__mapDeps([90,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,1,6,81,33,91])),name:"DefaultForm",meta:{title:"全部示例"}},{path:"use-form",component:()=>__vitePreload(()=>import("./UseFormDemo-mwmvv6Aa.js"),__vite__mapDeps([92,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,1,6,32,48,81,33,93])),name:"UseForm",meta:{title:"UseForm"}}]},{path:"table",component:getParentLayout(),redirect:"/components/table/default-table",name:"TableDemo",meta:{title:"表格",alwaysShow:!0},children:[{path:"default-table",component:()=>__vitePreload(()=>import("./DefaultTable-DD-ttn4d.js"),__vite__mapDeps([112,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110])),name:"DefaultTable",meta:{title:"基础示例"}},{path:"use-table",component:()=>__vitePreload(()=>import("./UseTableDemo-DfFWz8wl.js"),__vite__mapDeps([117,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110,46,118])),name:"UseTable",meta:{title:"UseTable"}},{path:"tree-table",component:()=>__vitePreload(()=>import("./TreeTable-MkFKx_LP.js"),__vite__mapDeps([115,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110,46,116])),name:"TreeTable",meta:{title:"treeTable"}},{path:"table-image-preview",component:()=>__vitePreload(()=>import("./TableImagePreview-fZ9lNUzY.js"),__vite__mapDeps([113,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110])),name:"TableImagePreview",meta:{title:"表格图片预览"}},{path:"table-video-preview",component:()=>__vitePreload(()=>import("./TableVideoPreview-BLFGgLVF.js"),__vite__mapDeps([114,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110])),name:"TableVideoPreview",meta:{title:"表格视频预览"}},{path:"card-table",component:()=>__vitePreload(()=>import("./CardTable-DpMqGHeS.js"),__vite__mapDeps([109,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110,111,29])),name:"CardTable",meta:{title:"卡片表格"}}]},{path:"editor-demo",component:getParentLayout(),redirect:"/components/editor-demo/editor",name:"EditorDemo",meta:{title:"编辑器",alwaysShow:!0},children:[{path:"editor",component:()=>__vitePreload(()=>import("./Editor-Dsk6YOTY.js"),__vite__mapDeps([88,1,2,3,4,5,6,7,14,15,16])),name:"Editor",meta:{title:"富文本"}},{path:"json-editor",component:()=>__vitePreload(()=>import("./JsonEditor-9dP1ziEk.js"),__vite__mapDeps([89,1,2,3,4,5,6,7,17,18])),name:"JsonEditor",meta:{title:"JSON编辑器"}},{path:"code-editor",component:()=>__vitePreload(()=>import("./CodeEditor-IM9M_0kv.js").then(e=>e.C),__vite__mapDeps([86,3,4,1,2,5,6,7,33,87,22,23,25,29])),name:"CodeEditor",meta:{title:"代码编辑器"}}]},{path:"search",component:()=>__vitePreload(()=>import("./Search-DilF6krF.js"),__vite__mapDeps([107,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,81,108])),name:"Search",meta:{title:"查询"}},{path:"descriptions",component:()=>__vitePreload(()=>import("./Descriptions-BT1fJoNu.js"),__vite__mapDeps([78,50,3,2,4,5,51,7,26,33,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,48,32,79])),name:"Descriptions",meta:{title:"描述"}},{path:"image-viewer",component:()=>__vitePreload(()=>import("./ImageViewer-CtL_2_lz.js"),__vite__mapDeps([101,1,2,3,4,5,6,7,33,42])),name:"ImageViewer",meta:{title:"图片预览"}},{path:"dialog",component:()=>__vitePreload(()=>import("./Dialog-glyMF7CJ.js"),__vite__mapDeps([80,1,2,3,4,5,6,7,35,36,33,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,48,81,32,82,83,84])),name:"Dialog",meta:{title:"弹窗"}},{path:"icon",component:()=>__vitePreload(()=>import("./Icon-Bx7yon6V.js"),__vite__mapDeps([96,1,2,3,4,5,6,7,97,95,34,33])),name:"Icon",meta:{title:"图标"}},{path:"icon-picker",component:()=>__vitePreload(()=>import("./IconPicker-Cl9U2e9G.js"),__vite__mapDeps([98,19,2,3,4,5,20,7,21,22,23,1,6])),name:"IconPicker",meta:{title:"图标选择器"}},{path:"echart",component:()=>__vitePreload(()=>import("./Echart-DWoquW8N.js"),__vite__mapDeps([85,82,1,2,3,4,5,6,7,83,84,26])),name:"Echart",meta:{title:"图表"}},{path:"count-to",component:()=>__vitePreload(()=>import("./CountTo--P_0rIXC.js"),__vite__mapDeps([76,1,2,3,4,5,6,7,77,33,26,28])),name:"CountTo",meta:{title:"数字动画"}},{path:"qrcode",component:()=>__vitePreload(()=>import("./Qrcode-nadB2KpN.js"),__vite__mapDeps([104,2,3,4,5,1,6,7,105,106,26])),name:"Qrcode",meta:{title:"二维码"}},{path:"highlight",component:()=>__vitePreload(()=>import("./Highlight-iwtyyVdW.js"),__vite__mapDeps([94,1,2,3,4,5,6,7,95])),name:"Highlight",meta:{title:"高亮"}},{path:"infotip",component:()=>__vitePreload(()=>import("./Infotip-Dr88umKP.js"),__vite__mapDeps([102,1,2,3,4,5,6,7,97,95])),name:"Infotip",meta:{title:"信息提示"}},{path:"input-password",component:()=>__vitePreload(()=>import("./InputPassword-CNXQUYTW.js"),__vite__mapDeps([103,1,2,3,4,5,6,7,12,13])),name:"InputPassword",meta:{title:"密码输入框"}},{path:"waterfall",component:()=>__vitePreload(()=>import("./Waterfall-CBrUbcOg.js"),__vite__mapDeps([120,4,3,1,2,5,6,7])),name:"waterfall",meta:{title:"瀑布流"}},{path:"image-cropping",component:()=>__vitePreload(()=>import("./ImageCropping-CbTeg8LQ.js"),__vite__mapDeps([99,1,2,3,4,5,6,7,33,100,29,31])),name:"ImageCropping",meta:{title:"图片裁剪"}},{path:"video-player",component:()=>__vitePreload(()=>import("./VideoPlayer-42kfXaMf.js"),__vite__mapDeps([119,38,3,4,2,5,39,1,6,7,33,29])),name:"VideoPlayer",meta:{title:"视频播放器"}}]},{path:"/function",component:Layout,redirect:"/function/multipleTabs",name:"Function",meta:{title:"功能",icon:"ri:function-fill",alwaysShow:!0},children:[{path:"multiple-tabs",component:()=>__vitePreload(()=>import("./MultipleTabs-j8VcrQgb.js"),__vite__mapDeps([146,1,2,3,4,5,6,7,33])),name:"MultipleTabs",meta:{title:"多开标签页"}},{path:"multiple-tabs-demo/:id",component:()=>__vitePreload(()=>import("./MultipleTabsDemo-D5XLE6u4.js"),__vite__mapDeps([147,1,2,3,4,5,6,7,148])),name:"MultipleTabsDemo",meta:{hidden:!0,title:"详情页",canTo:!0,activeMenu:"/function/multiple-tabs"}},{path:"request",component:()=>__vitePreload(()=>import("./Request-Cz1XJXHj.js"),__vite__mapDeps([149,1,2,3,4,5,6,7,33,29])),name:"Request",meta:{title:"请求"}},{path:"test",component:()=>__vitePreload(()=>import("./Test-CjWai9x0.js"),__vite__mapDeps([150,3,1,2,4,5,6,7,33,29,26])),name:"Test",meta:{title:"权限测试页",permission:["add","edit","delete"]}}]},{path:"/hooks",component:Layout,redirect:"/hooks/useWatermark",name:"Hooks",meta:{title:"hooks",icon:"ic:outline-webhook",alwaysShow:!0},children:[{path:"useWatermark",component:()=>__vitePreload(()=>import("./useWatermark-CPkIKVZd.js"),__vite__mapDeps([171,1,2,3,4,5,6,7,33])),name:"UseWatermark",meta:{title:"useWatermark"}},{path:"useTagsView",component:()=>__vitePreload(()=>import("./useTagsView-BzxN2HZN.js"),__vite__mapDeps([169,1,2,3,4,5,6,7,33,148])),name:"UseTagsView",meta:{title:"useTagsView"}},{path:"useValidator",component:()=>__vitePreload(()=>import("./useValidator-BeCBBrXu.js"),__vite__mapDeps([170,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,48,32])),name:"UseValidator",meta:{title:"useValidator"}},{path:"useCrudSchemas",component:()=>__vitePreload(()=>import("./useCrudSchemas-CCmfjfoL.js"),__vite__mapDeps([167,52,53,3,17,18,1,2,4,5,6,7,26])),name:"UseCrudSchemas",meta:{title:"useCrudSchemas"}},{path:"useClipboard",component:()=>__vitePreload(()=>import("./useClipboard-BP8y4td2.js"),__vite__mapDeps([166,1,2,3,4,5,6,7,33])),name:"UseClipboard",meta:{title:"useClipboard"}},{path:"useNetwork",component:()=>__vitePreload(()=>import("./useNetwork-CMuHkkRX.js"),__vite__mapDeps([168,1,2,3,4,5,6,7])),name:"UseNetwork",meta:{title:"useNetwork"}}]},{path:"/level",component:Layout,redirect:"/level/menu1/menu1-1/menu1-1-1",name:"Level",meta:{title:"多级菜单",icon:"carbon:skill-level-advanced"},children:[{path:"menu1",name:"Menu1",component:getParentLayout(),redirect:"/level/menu1/menu1-1/menu1-1-1",meta:{title:"菜单1"},children:[{path:"menu1-1",name:"Menu11",component:getParentLayout(),redirect:"/level/menu1/menu1-1/menu1-1-1",meta:{title:"菜单1-1",alwaysShow:!0},children:[{path:"menu1-1-1",name:"Menu111",component:()=>__vitePreload(()=>import("./Menu111-BqoTAiIX.js"),__vite__mapDeps([154,1,2,3,4,5,6,7])),meta:{title:"菜单1-1-1"}}]},{path:"menu1-2",name:"Menu12",component:()=>__vitePreload(()=>import("./Menu12-BCBy8PfP.js"),__vite__mapDeps([155,1,2,3,4,5,6,7])),meta:{title:"菜单1-2"}}]},{path:"menu2",name:"Menu2",component:()=>__vitePreload(()=>import("./Menu2-BjbdK-7b.js"),__vite__mapDeps([156,1,2,3,4,5,6,7])),meta:{title:"菜单2"}}]},{path:"/example",component:Layout,redirect:"/example/example-dialog",name:"Example",meta:{title:"综合示例",icon:"ep:management",alwaysShow:!0},children:[{path:"example-dialog",component:()=>__vitePreload(()=>import("./ExampleDialog-DBkSQIQ9.js"),__vite__mapDeps([131,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,110,46,132,48,133,50,51,52,53])),name:"ExampleDialog",meta:{title:"综合示例 - 弹窗"}},{path:"example-page",component:()=>__vitePreload(()=>import("./ExamplePage-4ttf5cy2.js"),__vite__mapDeps([143,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,37,38,39,40,41,42,43,44,110,46,139,52,53])),name:"ExamplePage",meta:{title:"综合示例 - 页面"}},{path:"example-add",component:()=>__vitePreload(()=>import("./ExampleAdd-DqNbWzzi.js"),__vite__mapDeps([136,137,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,138,6,33,110,139])),name:"ExampleAdd",meta:{title:"综合示例 - 新增",noTagsView:!0,noCache:!0,hidden:!0,canTo:!0,activeMenu:"/example/example-page"}},{path:"example-edit",component:()=>__vitePreload(()=>import("./ExampleEdit-BXGV8wDF.js"),__vite__mapDeps([142,137,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,138,6,33,110,139])),name:"ExampleEdit",meta:{title:"综合示例 - 编辑",noTagsView:!0,noCache:!0,hidden:!0,canTo:!0,activeMenu:"/example/example-page"}},{path:"example-detail",component:()=>__vitePreload(()=>import("./ExampleDetail-jiL-SQgj.js"),__vite__mapDeps([140,141,50,3,2,4,5,51,7,26,22,138,6,33,110])),name:"ExampleDetail",meta:{title:"综合示例 - 详情",noTagsView:!0,noCache:!0,hidden:!0,canTo:!0,activeMenu:"/example/example-page"}}]},{path:"/error",component:Layout,redirect:"/error/404",name:"Error",meta:{title:"错误页面",icon:"ci:error",alwaysShow:!0},children:[{path:"404-demo",component:()=>__vitePreload(()=>import("./404-EYOB4ZDb.js"),__vite__mapDeps([129,128,33,4,3])),name:"404Demo",meta:{title:"404"}},{path:"403-demo",component:()=>__vitePreload(()=>import("./403-_8dyrmpq.js"),__vite__mapDeps([127,128,33,4,3])),name:"403Demo",meta:{title:"403"}},{path:"500-demo",component:()=>__vitePreload(()=>import("./500-BeNiIRKt.js"),__vite__mapDeps([130,128,33,4,3])),name:"500Demo",meta:{title:"500"}}]},{path:"/authorization",component:Layout,redirect:"/authorization/user",name:"Authorization",meta:{title:"权限管理",icon:"eos-icons:role-binding",alwaysShow:!0},children:[{path:"department",component:()=>__vitePreload(()=>import("./Department-DvKnpeco.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53])),name:"Department",meta:{title:"部门管理"}},{path:"user",component:()=>__vitePreload(()=>import("./User-CRVmhTky.js"),__vite__mapDeps([71,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,45,46,8,9,12,13,14,15,16,17,18,19,20,24,25,26,28,29,30,31,32,34,72,48,73,50,51,35,36,66,52,53])),name:"User",meta:{title:"用户管理"}},{path:"menu",component:()=>__vitePreload(()=>import("./Menu-CQ_jfTEj.js"),__vite__mapDeps([56,57,46,37,10,11,2,3,4,5,33,38,39,40,41,27,7,22,21,23,42,6,43,44,8,9,12,13,14,15,16,17,18,19,20,24,25,26,28,29,30,31,32,34,1,58,48,59,60,61,50,51,35,36])),name:"Menu",meta:{title:"菜单管理"}},{path:"role",component:()=>__vitePreload(()=>import("./Role-AGhOb_l3.js"),__vite__mapDeps([65,66,46,37,10,11,2,3,4,5,33,38,39,40,41,27,7,22,21,23,42,6,43,44,8,9,12,13,14,15,16,17,18,19,20,24,25,26,28,29,30,31,32,34,1,67,48,57,53,68,50,51,35,36])),name:"Role",meta:{title:"角色管理"}}]}],router=createRouter({history:createWebHistory("/"),routes:constantRouterMap,scrollBehavior:()=>({left:0,top:0})}),resetRouter=()=>{router.getRoutes().forEach(e=>{const{name:C}=e;C&&!NO_RESET_WHITE_LIST.includes(C)&&router.hasRoute(C)&&router.removeRoute(C)})},plugins=[ElLoading],components=[ElScrollbar],setupElementPlus=e=>{plugins.forEach(C=>{e.use(C)}),components.forEach(C=>{e.component(C.name,C)})},hasPermission=e=>{const C=router.currentRoute.value.meta.permission||[];if(!e)throw new Error("请设置操作权限值");return!!C.includes(e)};function hasPermi(e,C){var W;const G=C.value;hasPermission(G)||(W=e.parentNode)==null||W.removeChild(e)}const mounted=(e,C)=>{hasPermi(e,C)},permiDirective={mounted},setupPermissionDirective=e=>{e.directive("hasPermi",permiDirective)},setupPermission=e=>{setupPermissionDirective(e)},useTitle=e=>{const C=useAppStoreWithOut(),G=ref$1(e?`${C.getTitle} - ${e}`:C.getTitle);return watch(G,(H,W)=>{isString$2(H)&&H!==W&&document&&(document.title=H)},{immediate:!0}),G};var nprogress={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + ${$(Z)}`),Z===!0})}});return Object.defineProperty(H,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(H,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),H}const M=["name","validate","getter"],R=(()=>{var e;return(e=class{static get any(){return w()}static get func(){return x().def(this.defaults.func)}static get bool(){return this.defaults.bool===void 0?P():P().def(this.defaults.bool)}static get string(){return A().def(this.defaults.string)}static get number(){return E().def(this.defaults.number)}static get array(){return S().def(this.defaults.array)}static get object(){return N().def(this.defaults.object)}static get integer(){return V().def(this.defaults.integer)}static get symbol(){return q()}static get nullable(){return k()}static extend(C){if(d("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),v(C))return C.forEach(te=>this.extend(te)),this;const{name:G,validate:H=!1,getter:W=!1}=C,K=n(C,M);if(p(this,G))throw new TypeError(`[VueTypes error]: Type "${G}" already defined`);const{type:Q}=K;if(b(Q))return delete K.type,Object.defineProperty(this,G,W?{get:()=>T(G,Q,K)}:{value(...te){const ee=T(G,Q,K);return ee.validator&&(ee.validator=ee.validator.bind(ee,...te)),ee}});let Z;return Z=W?{get(){const te=Object.assign({},K);return H?_(G,te):j(G,te)},enumerable:!0}:{value(...te){const ee=Object.assign({},K);let ae;return ae=H?_(G,ee):j(G,ee),ee.validator&&(ae.validator=ee.validator.bind(ae,...te)),ae},enumerable:!0},Object.defineProperty(this,G,Z)}}).defaults={},e.sensibleDefaults=void 0,e.config=r,e.custom=D,e.oneOf=L,e.instanceOf=Y,e.oneOfType=B,e.arrayOf=F,e.objectOf=I,e.shape=J,e.utils={validate:(C,G)=>m(G,C,!0)===!0,toType:(C,G,H=!1)=>H?_(C,G):j(C,G)},e})();function U(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var C;return(C=class extends R{static get sensibleDefaults(){return t({},this.defaults)}static set sensibleDefaults(G){this.defaults=G!==!1?t({},G!==!0?G:e):{}}}).defaults=t({},e),C}class z extends U(){}const newPropTypes=U({func:void 0,bool:void 0,string:void 0,number:void 0,object:void 0,integer:void 0});class propTypes extends newPropTypes{static get style(){return _("style",{type:[String,Object]})}}var zhCn={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const _sfc_main$1=defineComponent({__name:"ConfigGlobal",props:{size:propTypes.oneOf(["default","small","large"]).def("default")},setup(e){const C=useAppStore();provide("configGlobal",e),onMounted(()=>{C.setCssVarTheme()});const{width:H}=useWindowSize();return watch(()=>H.value,W=>{W<768?(C.getMobile||C.setMobile(!0),setCssVar("--left-menu-min-width","0"),C.setCollapse(!0),C.getLayout!=="classic"&&C.setLayout("classic")):(C.getMobile&&C.setMobile(!1),setCssVar("--left-menu-min-width","64px"))},{immediate:!0}),(W,K)=>(openBlock(),createBlock(unref(ElConfigProvider),{namespace:"el",message:{max:1},size:e.size,locale:unref(zhCn)},{default:withCtx(()=>[renderSlot(W.$slots,"default")]),_:3},8,["size","locale"]))}}),_sfc_main=defineComponent({__name:"App",setup(e){const C=useAppStore(),G=computed(()=>C.getCurrentSize),H=computed(()=>C.getGreyMode),W=useDark({valueDark:"dark",valueLight:"light"});return W.value=C.getIsDark,(K,Q)=>{const Z=resolveComponent("RouterView");return openBlock(),createBlock(unref(_sfc_main$1),{size:G.value},{default:withCtx(()=>[createVNode(Z,{class:normalizeClass(H.value?"app-grey-mode":"")},null,8,["class"])]),_:1},8,["size"])}}}),scriptRel="modulepreload",assetsURL=function(e){return"/"+e},seen={},__vitePreload=function(C,G,H){let W=Promise.resolve();if(G&&G.length>0){const K=document.getElementsByTagName("link"),Q=document.querySelector("meta[property=csp-nonce]"),Z=(Q==null?void 0:Q.nonce)||(Q==null?void 0:Q.getAttribute("nonce"));W=Promise.all(G.map(te=>{if(te=assetsURL(te),te in seen)return;seen[te]=!0;const ee=te.endsWith(".css"),ae=ee?'[rel="stylesheet"]':"";if(!!H)for(let pe=K.length-1;pe>=0;pe--){const oe=K[pe];if(oe.href===te&&(!ee||oe.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${te}"]${ae}`))return;const ce=document.createElement("link");if(ce.rel=ee?"stylesheet":scriptRel,ee||(ce.as="script",ce.crossOrigin=""),ce.href=te,Z&&ce.setAttribute("nonce",Z),document.head.appendChild(ce),ee)return new Promise((pe,oe)=>{ce.addEventListener("load",pe),ce.addEventListener("error",()=>oe(new Error(`Unable to preload CSS for ${te}`)))})}))}return W.then(()=>C()).catch(K=>{const Q=new Event("vite:preloadError",{cancelable:!0});if(Q.payload=K,window.dispatchEvent(Q),!Q.defaultPrevented)throw K})},toString$1=Object.prototype.toString,is=(e,C)=>toString$1.call(e)===`[object ${C}]`,isObject$1=e=>e!==null&&is(e,"Object"),isNumber$2=e=>is(e,"Number"),isString$2=e=>is(e,"String"),isFunction$1=e=>typeof e=="function",isServer=typeof window=="undefined",isClient=!isServer,isUrl=e=>/(((^https?:(?:\/\/)?)(?:[-:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&%@.\w_]*)#?(?:[\w]*))?)$/.test(e),isEmptyVal=e=>e===""||e===null||e===void 0,modules$1=Object.assign({"../views/Authorization/Department/Department.vue":()=>__vitePreload(()=>import("./Department-CZqBro4N.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53])),"../views/Authorization/Department/components/Detail.vue":()=>__vitePreload(()=>import("./Detail-CZeRNZkD.js"),__vite__mapDeps([54,49,50,3,2,4,5,51,7,26])),"../views/Authorization/Department/components/Write.vue":()=>__vitePreload(()=>import("./Write-C4MdhBEG.js"),__vite__mapDeps([55,47,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48])),"../views/Authorization/Menu/Menu.vue":()=>__vitePreload(()=>import("./Menu-BhIIVxms.js"),__vite__mapDeps([56,57,46,37,10,11,2,3,4,5,33,38,39,40,41,27,7,22,21,23,42,6,43,44,8,9,12,13,14,15,16,17,18,19,20,24,25,26,28,29,30,31,32,34,1,58,48,59,60,61,50,51,35,36])),"../views/Authorization/Menu/components/AddButtonPermission.vue":()=>__vitePreload(()=>import("./AddButtonPermission-DCIk97_V.js"),__vite__mapDeps([62,59,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,33,44])),"../views/Authorization/Menu/components/Detail.vue":()=>__vitePreload(()=>import("./Detail-mdLYTz1q.js"),__vite__mapDeps([63,61,50,3,2,4,5,51,7,26,22])),"../views/Authorization/Menu/components/Write.vue":()=>__vitePreload(()=>import("./Write-DFUzDWxn.js"),__vite__mapDeps([64,58,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,57,59,33,44,60,41])),"../views/Authorization/Role/Role.vue":()=>__vitePreload(()=>import("./Role-Dyb9E-YN.js"),__vite__mapDeps([65,66,46,37,10,11,2,3,4,5,33,38,39,40,41,27,7,22,21,23,42,6,43,44,8,9,12,13,14,15,16,17,18,19,20,24,25,26,28,29,30,31,32,34,1,67,48,57,53,68,50,51,35,36])),"../views/Authorization/Role/components/Detail.vue":()=>__vitePreload(()=>import("./Detail-BkgGU8cH.js"),__vite__mapDeps([69,68,50,3,2,4,5,51,7,26,57,22,30,27])),"../views/Authorization/Role/components/Write.vue":()=>__vitePreload(()=>import("./Write-DLh0tahb.js"),__vite__mapDeps([70,67,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,57,53])),"../views/Authorization/User/User.vue":()=>__vitePreload(()=>import("./User-__ht-I-y.js"),__vite__mapDeps([71,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,45,46,8,9,12,13,14,15,16,17,18,19,20,24,25,26,28,29,30,31,32,34,72,48,73,50,51,35,36,66,52,53])),"../views/Authorization/User/components/Detail.vue":()=>__vitePreload(()=>import("./Detail-BAi8VKs2.js"),__vite__mapDeps([74,73,50,3,2,4,5,51,7,26])),"../views/Authorization/User/components/Write.vue":()=>__vitePreload(()=>import("./Write-C60S3lqk.js"),__vite__mapDeps([75,72,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48])),"../views/Components/CountTo.vue":()=>__vitePreload(()=>import("./CountTo-BfciFB2t.js"),__vite__mapDeps([76,1,2,3,4,5,6,7,77,33,26,28])),"../views/Components/Descriptions.vue":()=>__vitePreload(()=>import("./Descriptions-DWGDe9Sc.js"),__vite__mapDeps([78,50,3,2,4,5,51,7,26,33,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,48,32,79])),"../views/Components/Dialog.vue":()=>__vitePreload(()=>import("./Dialog-4Q3xWqi7.js"),__vite__mapDeps([80,1,2,3,4,5,6,7,35,36,33,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,48,81,32,82,83,84])),"../views/Components/Echart.vue":()=>__vitePreload(()=>import("./Echart-Cvjj3_Ce.js"),__vite__mapDeps([85,82,1,2,3,4,5,6,7,83,84,26])),"../views/Components/Editor/CodeEditor.vue":()=>__vitePreload(()=>import("./CodeEditor-SFUUr4rV.js").then(e=>e.C),__vite__mapDeps([86,3,4,1,2,5,6,7,33,87,22,23,25,29])),"../views/Components/Editor/Editor.vue":()=>__vitePreload(()=>import("./Editor-DwMwBmXe.js"),__vite__mapDeps([88,1,2,3,4,5,6,7,14,15,16])),"../views/Components/Editor/JsonEditor.vue":()=>__vitePreload(()=>import("./JsonEditor-_UH9V21N.js"),__vite__mapDeps([89,1,2,3,4,5,6,7,17,18])),"../views/Components/Form/DefaultForm.vue":()=>__vitePreload(()=>import("./DefaultForm-Dg_j11XR.js"),__vite__mapDeps([90,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,1,6,81,33,91])),"../views/Components/Form/UseFormDemo.vue":()=>__vitePreload(()=>import("./UseFormDemo-Bw7a92Lx.js"),__vite__mapDeps([92,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,1,6,32,48,81,33,93])),"../views/Components/Highlight.vue":()=>__vitePreload(()=>import("./Highlight-CtDwwxo1.js"),__vite__mapDeps([94,1,2,3,4,5,6,7,95])),"../views/Components/Icon.vue":()=>__vitePreload(()=>import("./Icon-BntWs4Mz.js"),__vite__mapDeps([96,1,2,3,4,5,6,7,97,95,34,33])),"../views/Components/IconPicker.vue":()=>__vitePreload(()=>import("./IconPicker-CNS-lt2r.js"),__vite__mapDeps([98,19,2,3,4,5,20,7,21,22,23,1,6])),"../views/Components/ImageCropping.vue":()=>__vitePreload(()=>import("./ImageCropping-Dcjg4sBX.js"),__vite__mapDeps([99,1,2,3,4,5,6,7,33,100,29,31])),"../views/Components/ImageViewer.vue":()=>__vitePreload(()=>import("./ImageViewer-CV4-P-He.js"),__vite__mapDeps([101,1,2,3,4,5,6,7,33,42])),"../views/Components/Infotip.vue":()=>__vitePreload(()=>import("./Infotip-BlieaFoW.js"),__vite__mapDeps([102,1,2,3,4,5,6,7,97,95])),"../views/Components/InputPassword.vue":()=>__vitePreload(()=>import("./InputPassword-BOsN6yJd.js"),__vite__mapDeps([103,1,2,3,4,5,6,7,12,13])),"../views/Components/Qrcode.vue":()=>__vitePreload(()=>import("./Qrcode-TFgtIK2a.js"),__vite__mapDeps([104,2,3,4,5,1,6,7,105,106,26])),"../views/Components/Search.vue":()=>__vitePreload(()=>import("./Search-1xjpGPv-.js"),__vite__mapDeps([107,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,81,108])),"../views/Components/Table/CardTable.vue":()=>__vitePreload(()=>import("./CardTable-CF9tCZ-U.js"),__vite__mapDeps([109,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110,111,29])),"../views/Components/Table/DefaultTable.vue":()=>__vitePreload(()=>import("./DefaultTable-B8Notva-.js"),__vite__mapDeps([112,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110])),"../views/Components/Table/TableImagePreview.vue":()=>__vitePreload(()=>import("./TableImagePreview-aDFKG0ny.js"),__vite__mapDeps([113,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110])),"../views/Components/Table/TableVideoPreview.vue":()=>__vitePreload(()=>import("./TableVideoPreview-uIFu_zG-.js"),__vite__mapDeps([114,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110])),"../views/Components/Table/TreeTable.vue":()=>__vitePreload(()=>import("./TreeTable-B2gHEPX4.js"),__vite__mapDeps([115,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110,46,116])),"../views/Components/Table/UseTableDemo.vue":()=>__vitePreload(()=>import("./UseTableDemo-CG_waIQy.js"),__vite__mapDeps([117,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110,46,118])),"../views/Components/VideoPlayer.vue":()=>__vitePreload(()=>import("./VideoPlayer-CSRu1lzL.js"),__vite__mapDeps([119,38,3,4,2,5,39,1,6,7,33,29])),"../views/Components/Waterfall.vue":()=>__vitePreload(()=>import("./Waterfall-BQjrg7ql.js"),__vite__mapDeps([120,4,3,1,2,5,6,7])),"../views/Dashboard/Analysis.vue":()=>__vitePreload(()=>import("./Analysis-o1g9mDRc.js"),__vite__mapDeps([121,122,2,3,4,5,77,123,26,6,124,83,84])),"../views/Dashboard/Workplace.vue":()=>__vitePreload(()=>import("./Workplace-BIupU6-s.js"),__vite__mapDeps([125,2,3,4,5,126,77,83,84,95,26,124,6,29,111])),"../views/Dashboard/components/PanelGroup.vue":()=>__vitePreload(()=>import("./PanelGroup-SOpNPnD6.js").then(e=>e.c),__vite__mapDeps([122,2,3,4,5,77,123,26,6,124])),"../views/Error/403.vue":()=>__vitePreload(()=>import("./403-DnhwZjvt.js"),__vite__mapDeps([127,128,33,4,3])),"../views/Error/404.vue":()=>__vitePreload(()=>import("./404-CG2A4mzm.js"),__vite__mapDeps([129,128,33,4,3])),"../views/Error/500.vue":()=>__vitePreload(()=>import("./500-DxSyrmt3.js"),__vite__mapDeps([130,128,33,4,3])),"../views/Example/Dialog/ExampleDialog.vue":()=>__vitePreload(()=>import("./ExampleDialog-B5zK_Laf.js"),__vite__mapDeps([131,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,110,46,132,48,133,50,51,52,53])),"../views/Example/Dialog/components/Detail.vue":()=>__vitePreload(()=>import("./Detail-DWDVTDCD.js"),__vite__mapDeps([134,133,50,3,2,4,5,51,7,26])),"../views/Example/Dialog/components/Write.vue":()=>__vitePreload(()=>import("./Write-D1Qaqcxi.js"),__vite__mapDeps([135,132,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48])),"../views/Example/Page/ExampleAdd.vue":()=>__vitePreload(()=>import("./ExampleAdd-DDDh0jHD.js"),__vite__mapDeps([136,137,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,138,6,33,110,139])),"../views/Example/Page/ExampleDetail.vue":()=>__vitePreload(()=>import("./ExampleDetail-CDVh2zLz.js"),__vite__mapDeps([140,141,50,3,2,4,5,51,7,26,22,138,6,33,110])),"../views/Example/Page/ExampleEdit.vue":()=>__vitePreload(()=>import("./ExampleEdit-BL7D4Qzc.js"),__vite__mapDeps([142,137,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,138,6,33,110,139])),"../views/Example/Page/ExamplePage.vue":()=>__vitePreload(()=>import("./ExamplePage-Bo3S62UP.js"),__vite__mapDeps([143,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,37,38,39,40,41,42,43,44,110,46,139,52,53])),"../views/Example/Page/components/Detail.vue":()=>__vitePreload(()=>import("./Detail-BVAhsvq2.js"),__vite__mapDeps([144,141,50,3,2,4,5,51,7,26,22])),"../views/Example/Page/components/Write.vue":()=>__vitePreload(()=>import("./Write-x8NPtotc.js"),__vite__mapDeps([145,137,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48])),"../views/Function/MultipleTabs.vue":()=>__vitePreload(()=>import("./MultipleTabs-BYc9VCj9.js"),__vite__mapDeps([146,1,2,3,4,5,6,7,33])),"../views/Function/MultipleTabsDemo.vue":()=>__vitePreload(()=>import("./MultipleTabsDemo-B1qrIdt2.js"),__vite__mapDeps([147,1,2,3,4,5,6,7,148])),"../views/Function/Request.vue":()=>__vitePreload(()=>import("./Request-9HlOJKyN.js"),__vite__mapDeps([149,1,2,3,4,5,6,7,33,29])),"../views/Function/Test.vue":()=>__vitePreload(()=>import("./Test-DaedM19Y.js"),__vite__mapDeps([150,3,1,2,4,5,6,7,33,29,26])),"../views/Guide/Guide.vue":()=>__vitePreload(()=>import("./Guide-Co5cadxk.js"),__vite__mapDeps([151,1,2,3,4,5,6,7,33,152])),"../views/HomeView.vue":()=>__vitePreload(()=>import("./HomeView-D20k5K9M.js"),__vite__mapDeps([153,4,3])),"../views/Level/Menu111.vue":()=>__vitePreload(()=>import("./Menu111-_Qdpt9MO.js"),__vite__mapDeps([154,1,2,3,4,5,6,7])),"../views/Level/Menu12.vue":()=>__vitePreload(()=>import("./Menu12-b7-BY7Ge.js"),__vite__mapDeps([155,1,2,3,4,5,6,7])),"../views/Level/Menu2.vue":()=>__vitePreload(()=>import("./Menu2-DX4lEJ0Q.js"),__vite__mapDeps([156,1,2,3,4,5,6,7])),"../views/Login/Login.vue":()=>__vitePreload(()=>import("./Login-xvfsYS1e.js"),__vite__mapDeps([157,3,105,158,9,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,33,111,159,160,34,161,162])),"../views/Login/components/LoginForm.vue":()=>__vitePreload(()=>import("./LoginForm-Bs9L3ZxU.js"),__vite__mapDeps([163,158,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,33,111])),"../views/Login/components/RegisterForm.vue":()=>__vitePreload(()=>import("./RegisterForm-DWC1NxJI.js"),__vite__mapDeps([164,159,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,33])),"../views/Redirect/Redirect.vue":()=>__vitePreload(()=>import("./Redirect-Dp4MFXk6.js"),__vite__mapDeps([165,3])),"../views/hooks/useClipboard.vue":()=>__vitePreload(()=>import("./useClipboard-Cu6jxoh0.js"),__vite__mapDeps([166,1,2,3,4,5,6,7,33])),"../views/hooks/useCrudSchemas.vue":()=>__vitePreload(()=>import("./useCrudSchemas-B0mS9v28.js"),__vite__mapDeps([167,52,53,3,17,18,1,2,4,5,6,7,26])),"../views/hooks/useNetwork.vue":()=>__vitePreload(()=>import("./useNetwork-CJjsr591.js"),__vite__mapDeps([168,1,2,3,4,5,6,7])),"../views/hooks/useTagsView.vue":()=>__vitePreload(()=>import("./useTagsView-Dn5Mz9ts.js"),__vite__mapDeps([169,1,2,3,4,5,6,7,33,148])),"../views/hooks/useValidator.vue":()=>__vitePreload(()=>import("./useValidator-DdhWBLrm.js"),__vite__mapDeps([170,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,48,32])),"../views/hooks/useWatermark.vue":()=>__vitePreload(()=>import("./useWatermark-CEKtVccT.js"),__vite__mapDeps([171,1,2,3,4,5,6,7,33]))}),Layout=()=>__vitePreload(()=>import("./Layout-B5JiSUXZ.js"),__vite__mapDeps([172,4,3,2,5,160,9,10,11,12,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,34,161,33,53,148,105,126,35,36,32,48,173,44,43])),getParentLayout=()=>()=>new Promise(e=>{e({name:"ParentLayout"})}),getRawRoute=e=>{if(!e)return e;const H=e,{matched:C}=H,G=cr(H,["matched"]);return at(Me({},G),{matched:C?C.map(W=>({meta:W.meta,name:W.name,path:W.path})):void 0})},generateRoutesByFrontEnd=(e,C,G="/")=>{var W;const H=[];for(const K of e){const Q=(W=K.meta)!=null?W:{};if(Q.hidden&&!Q.canTo)continue;let Z=null,te=null;K.children&&K.children.length===1&&!Q.alwaysShow&&(te=isUrl(K.children[0].path)?K.children[0].path:pathResolve(pathResolve(G,K.path),K.children[0].path));for(const ee of C)isUrl(ee)&&(te===ee||K.path===ee)?Z=Object.assign({},K):((te!=null?te:pathResolve(G,K.path)).trim()===ee||Q.followRoute===ee)&&(Z=Object.assign({},K));K.children&&Z&&(Z.children=generateRoutesByFrontEnd(K.children,C,pathResolve(G,Z.path))),Z&&H.push(Z)}return H},generateRoutesByServer=e=>{const C=[];for(const G of e){const H={path:G.path,name:G.name,redirect:G.redirect,meta:G.meta};if(G.component){const W=modules$1[`../${G.component}.vue`]||modules$1[`../${G.component}.tsx`],K=G.component;!W&&!K.includes("#")?console.error(`未找到${G.component}.vue文件或${G.component}.tsx文件,请创建`):H.component=K==="#"?Layout:K.includes("##")?getParentLayout():W}G.children&&(H.children=generateRoutesByServer(G.children)),C.push(H)}return C},pathResolve=(e,C)=>{if(isUrl(C))return C;const G=C.startsWith("/")||!C?C:`/${C}`;return`${e}${G}`.replace(/\/\//g,"/").trim()},flatMultiLevelRoutes=e=>{const C=cloneDeep(e);for(let G=0;G{var H,W;if(!e||!Reflect.has(e,"children")||!((H=e.children)!=null&&H.length))return!1;const C=e.children;let G=!1;for(let K=0;K{var H;let C=createRouter({routes:[e],history:createWebHashHistory()});const G=C.getRoutes();addToChildren(G,e.children||[],e),C=null,e.children=(H=e.children)==null?void 0:H.map(W=>omit(W,"children"))},addToChildren=(e,C,G)=>{var H,W;for(let K=0;Kte.name===Q.name);Z&&(G.children=G.children||[],G.children.find(te=>te.name===Z.name)||(H=G.children)==null||H.push(Z),(W=Q.children)!=null&&W.length&&addToChildren(e,Q.children,G))}},SUCCESS_CODE=0,CONTENT_TYPE="application/json",REQUEST_TIMEOUT=6e4,NO_REDIRECT_WHITE_LIST=["/login"],NO_RESET_WHITE_LIST=["Redirect","Login","NoFind","Root"],DEFAULT_FILTER_COLUMN=["expand","selection"],constantRouterMap=[{path:"/",component:Layout,redirect:"/dashboard/analysis",name:"Root",meta:{hidden:!0}},{path:"/redirect",component:Layout,name:"Redirect",children:[{path:"/redirect/:path(.*)",name:"Redirect",component:()=>__vitePreload(()=>import("./Redirect-Dp4MFXk6.js"),__vite__mapDeps([165,3])),meta:{}}],meta:{hidden:!0,noTagsView:!0}},{path:"/login",component:()=>__vitePreload(()=>import("./Login-xvfsYS1e.js"),__vite__mapDeps([157,3,105,158,9,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,33,111,159,160,34,161,162])),name:"Login",meta:{hidden:!0,title:"登录",noTagsView:!0}}],asyncRouterMap=[{path:"/dashboard",component:Layout,redirect:"/dashboard/analysis",name:"Dashboard",meta:{title:"首页",icon:"ant-design:dashboard-filled",alwaysShow:!0},children:[{path:"analysis",component:()=>__vitePreload(()=>import("./Analysis-o1g9mDRc.js"),__vite__mapDeps([121,122,2,3,4,5,77,123,26,6,124,83,84])),name:"Analysis",meta:{title:"分析页",noCache:!0,affix:!0}},{path:"workplace",component:()=>__vitePreload(()=>import("./Workplace-BIupU6-s.js"),__vite__mapDeps([125,2,3,4,5,126,77,83,84,95,26,124,6,29,111])),name:"Workplace",meta:{title:"工作台",noCache:!0}}]},{path:"/external-link",component:Layout,meta:{},name:"ExternalLink",children:[{path:"https://admindoc.mbuild.top",name:"DocumentLink",meta:{title:"文档",icon:"clarity:document-solid"}}]},{path:"/guide",component:Layout,name:"Guide",meta:{},children:[{path:"index",component:()=>__vitePreload(()=>import("./Guide-Co5cadxk.js"),__vite__mapDeps([151,1,2,3,4,5,6,7,33,152])),name:"GuideDemo",meta:{title:"引导",icon:"cib:telegram-plane"}}]},{path:"/components",component:Layout,name:"ComponentsDemo",meta:{title:"组件",icon:"bx:bxs-component",alwaysShow:!0},children:[{path:"form",component:getParentLayout(),redirect:"/components/form/default-form",name:"Form",meta:{title:"表单",alwaysShow:!0},children:[{path:"default-form",component:()=>__vitePreload(()=>import("./DefaultForm-Dg_j11XR.js"),__vite__mapDeps([90,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,1,6,81,33,91])),name:"DefaultForm",meta:{title:"全部示例"}},{path:"use-form",component:()=>__vitePreload(()=>import("./UseFormDemo-Bw7a92Lx.js"),__vite__mapDeps([92,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,1,6,32,48,81,33,93])),name:"UseForm",meta:{title:"UseForm"}}]},{path:"table",component:getParentLayout(),redirect:"/components/table/default-table",name:"TableDemo",meta:{title:"表格",alwaysShow:!0},children:[{path:"default-table",component:()=>__vitePreload(()=>import("./DefaultTable-B8Notva-.js"),__vite__mapDeps([112,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110])),name:"DefaultTable",meta:{title:"基础示例"}},{path:"use-table",component:()=>__vitePreload(()=>import("./UseTableDemo-CG_waIQy.js"),__vite__mapDeps([117,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110,46,118])),name:"UseTable",meta:{title:"UseTable"}},{path:"tree-table",component:()=>__vitePreload(()=>import("./TreeTable-B2gHEPX4.js"),__vite__mapDeps([115,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110,46,116])),name:"TreeTable",meta:{title:"treeTable"}},{path:"table-image-preview",component:()=>__vitePreload(()=>import("./TableImagePreview-aDFKG0ny.js"),__vite__mapDeps([113,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110])),name:"TableImagePreview",meta:{title:"表格图片预览"}},{path:"table-video-preview",component:()=>__vitePreload(()=>import("./TableVideoPreview-uIFu_zG-.js"),__vite__mapDeps([114,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110])),name:"TableVideoPreview",meta:{title:"表格视频预览"}},{path:"card-table",component:()=>__vitePreload(()=>import("./CardTable-CF9tCZ-U.js"),__vite__mapDeps([109,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,110,111,29])),name:"CardTable",meta:{title:"卡片表格"}}]},{path:"editor-demo",component:getParentLayout(),redirect:"/components/editor-demo/editor",name:"EditorDemo",meta:{title:"编辑器",alwaysShow:!0},children:[{path:"editor",component:()=>__vitePreload(()=>import("./Editor-DwMwBmXe.js"),__vite__mapDeps([88,1,2,3,4,5,6,7,14,15,16])),name:"Editor",meta:{title:"富文本"}},{path:"json-editor",component:()=>__vitePreload(()=>import("./JsonEditor-_UH9V21N.js"),__vite__mapDeps([89,1,2,3,4,5,6,7,17,18])),name:"JsonEditor",meta:{title:"JSON编辑器"}},{path:"code-editor",component:()=>__vitePreload(()=>import("./CodeEditor-SFUUr4rV.js").then(e=>e.C),__vite__mapDeps([86,3,4,1,2,5,6,7,33,87,22,23,25,29])),name:"CodeEditor",meta:{title:"代码编辑器"}}]},{path:"search",component:()=>__vitePreload(()=>import("./Search-1xjpGPv-.js"),__vite__mapDeps([107,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,81,108])),name:"Search",meta:{title:"查询"}},{path:"descriptions",component:()=>__vitePreload(()=>import("./Descriptions-DWGDe9Sc.js"),__vite__mapDeps([78,50,3,2,4,5,51,7,26,33,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,48,32,79])),name:"Descriptions",meta:{title:"描述"}},{path:"image-viewer",component:()=>__vitePreload(()=>import("./ImageViewer-CV4-P-He.js"),__vite__mapDeps([101,1,2,3,4,5,6,7,33,42])),name:"ImageViewer",meta:{title:"图片预览"}},{path:"dialog",component:()=>__vitePreload(()=>import("./Dialog-4Q3xWqi7.js"),__vite__mapDeps([80,1,2,3,4,5,6,7,35,36,33,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,48,81,32,82,83,84])),name:"Dialog",meta:{title:"弹窗"}},{path:"icon",component:()=>__vitePreload(()=>import("./Icon-BntWs4Mz.js"),__vite__mapDeps([96,1,2,3,4,5,6,7,97,95,34,33])),name:"Icon",meta:{title:"图标"}},{path:"icon-picker",component:()=>__vitePreload(()=>import("./IconPicker-CNS-lt2r.js"),__vite__mapDeps([98,19,2,3,4,5,20,7,21,22,23,1,6])),name:"IconPicker",meta:{title:"图标选择器"}},{path:"echart",component:()=>__vitePreload(()=>import("./Echart-Cvjj3_Ce.js"),__vite__mapDeps([85,82,1,2,3,4,5,6,7,83,84,26])),name:"Echart",meta:{title:"图表"}},{path:"count-to",component:()=>__vitePreload(()=>import("./CountTo-BfciFB2t.js"),__vite__mapDeps([76,1,2,3,4,5,6,7,77,33,26,28])),name:"CountTo",meta:{title:"数字动画"}},{path:"qrcode",component:()=>__vitePreload(()=>import("./Qrcode-TFgtIK2a.js"),__vite__mapDeps([104,2,3,4,5,1,6,7,105,106,26])),name:"Qrcode",meta:{title:"二维码"}},{path:"highlight",component:()=>__vitePreload(()=>import("./Highlight-CtDwwxo1.js"),__vite__mapDeps([94,1,2,3,4,5,6,7,95])),name:"Highlight",meta:{title:"高亮"}},{path:"infotip",component:()=>__vitePreload(()=>import("./Infotip-BlieaFoW.js"),__vite__mapDeps([102,1,2,3,4,5,6,7,97,95])),name:"Infotip",meta:{title:"信息提示"}},{path:"input-password",component:()=>__vitePreload(()=>import("./InputPassword-BOsN6yJd.js"),__vite__mapDeps([103,1,2,3,4,5,6,7,12,13])),name:"InputPassword",meta:{title:"密码输入框"}},{path:"waterfall",component:()=>__vitePreload(()=>import("./Waterfall-BQjrg7ql.js"),__vite__mapDeps([120,4,3,1,2,5,6,7])),name:"waterfall",meta:{title:"瀑布流"}},{path:"image-cropping",component:()=>__vitePreload(()=>import("./ImageCropping-Dcjg4sBX.js"),__vite__mapDeps([99,1,2,3,4,5,6,7,33,100,29,31])),name:"ImageCropping",meta:{title:"图片裁剪"}},{path:"video-player",component:()=>__vitePreload(()=>import("./VideoPlayer-CSRu1lzL.js"),__vite__mapDeps([119,38,3,4,2,5,39,1,6,7,33,29])),name:"VideoPlayer",meta:{title:"视频播放器"}}]},{path:"/function",component:Layout,redirect:"/function/multipleTabs",name:"Function",meta:{title:"功能",icon:"ri:function-fill",alwaysShow:!0},children:[{path:"multiple-tabs",component:()=>__vitePreload(()=>import("./MultipleTabs-BYc9VCj9.js"),__vite__mapDeps([146,1,2,3,4,5,6,7,33])),name:"MultipleTabs",meta:{title:"多开标签页"}},{path:"multiple-tabs-demo/:id",component:()=>__vitePreload(()=>import("./MultipleTabsDemo-B1qrIdt2.js"),__vite__mapDeps([147,1,2,3,4,5,6,7,148])),name:"MultipleTabsDemo",meta:{hidden:!0,title:"详情页",canTo:!0,activeMenu:"/function/multiple-tabs"}},{path:"request",component:()=>__vitePreload(()=>import("./Request-9HlOJKyN.js"),__vite__mapDeps([149,1,2,3,4,5,6,7,33,29])),name:"Request",meta:{title:"请求"}},{path:"test",component:()=>__vitePreload(()=>import("./Test-DaedM19Y.js"),__vite__mapDeps([150,3,1,2,4,5,6,7,33,29,26])),name:"Test",meta:{title:"权限测试页",permission:["add","edit","delete"]}}]},{path:"/hooks",component:Layout,redirect:"/hooks/useWatermark",name:"Hooks",meta:{title:"hooks",icon:"ic:outline-webhook",alwaysShow:!0},children:[{path:"useWatermark",component:()=>__vitePreload(()=>import("./useWatermark-CEKtVccT.js"),__vite__mapDeps([171,1,2,3,4,5,6,7,33])),name:"UseWatermark",meta:{title:"useWatermark"}},{path:"useTagsView",component:()=>__vitePreload(()=>import("./useTagsView-Dn5Mz9ts.js"),__vite__mapDeps([169,1,2,3,4,5,6,7,33,148])),name:"UseTagsView",meta:{title:"useTagsView"}},{path:"useValidator",component:()=>__vitePreload(()=>import("./useValidator-DdhWBLrm.js"),__vite__mapDeps([170,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,48,32])),name:"UseValidator",meta:{title:"useValidator"}},{path:"useCrudSchemas",component:()=>__vitePreload(()=>import("./useCrudSchemas-B0mS9v28.js"),__vite__mapDeps([167,52,53,3,17,18,1,2,4,5,6,7,26])),name:"UseCrudSchemas",meta:{title:"useCrudSchemas"}},{path:"useClipboard",component:()=>__vitePreload(()=>import("./useClipboard-Cu6jxoh0.js"),__vite__mapDeps([166,1,2,3,4,5,6,7,33])),name:"UseClipboard",meta:{title:"useClipboard"}},{path:"useNetwork",component:()=>__vitePreload(()=>import("./useNetwork-CJjsr591.js"),__vite__mapDeps([168,1,2,3,4,5,6,7])),name:"UseNetwork",meta:{title:"useNetwork"}}]},{path:"/level",component:Layout,redirect:"/level/menu1/menu1-1/menu1-1-1",name:"Level",meta:{title:"多级菜单",icon:"carbon:skill-level-advanced"},children:[{path:"menu1",name:"Menu1",component:getParentLayout(),redirect:"/level/menu1/menu1-1/menu1-1-1",meta:{title:"菜单1"},children:[{path:"menu1-1",name:"Menu11",component:getParentLayout(),redirect:"/level/menu1/menu1-1/menu1-1-1",meta:{title:"菜单1-1",alwaysShow:!0},children:[{path:"menu1-1-1",name:"Menu111",component:()=>__vitePreload(()=>import("./Menu111-_Qdpt9MO.js"),__vite__mapDeps([154,1,2,3,4,5,6,7])),meta:{title:"菜单1-1-1"}}]},{path:"menu1-2",name:"Menu12",component:()=>__vitePreload(()=>import("./Menu12-b7-BY7Ge.js"),__vite__mapDeps([155,1,2,3,4,5,6,7])),meta:{title:"菜单1-2"}}]},{path:"menu2",name:"Menu2",component:()=>__vitePreload(()=>import("./Menu2-DX4lEJ0Q.js"),__vite__mapDeps([156,1,2,3,4,5,6,7])),meta:{title:"菜单2"}}]},{path:"/example",component:Layout,redirect:"/example/example-dialog",name:"Example",meta:{title:"综合示例",icon:"ep:management",alwaysShow:!0},children:[{path:"example-dialog",component:()=>__vitePreload(()=>import("./ExampleDialog-B5zK_Laf.js"),__vite__mapDeps([131,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,110,46,132,48,133,50,51,52,53])),name:"ExampleDialog",meta:{title:"综合示例 - 弹窗"}},{path:"example-page",component:()=>__vitePreload(()=>import("./ExamplePage-Bo3S62UP.js"),__vite__mapDeps([143,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,37,38,39,40,41,42,43,44,110,46,139,52,53])),name:"ExamplePage",meta:{title:"综合示例 - 页面"}},{path:"example-add",component:()=>__vitePreload(()=>import("./ExampleAdd-DDDh0jHD.js"),__vite__mapDeps([136,137,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,138,6,33,110,139])),name:"ExampleAdd",meta:{title:"综合示例 - 新增",noTagsView:!0,noCache:!0,hidden:!0,canTo:!0,activeMenu:"/example/example-page"}},{path:"example-edit",component:()=>__vitePreload(()=>import("./ExampleEdit-BL7D4Qzc.js"),__vite__mapDeps([142,137,9,3,10,11,12,4,2,5,13,14,15,16,17,18,19,20,7,21,22,23,24,25,26,27,28,29,30,31,32,48,138,6,33,110,139])),name:"ExampleEdit",meta:{title:"综合示例 - 编辑",noTagsView:!0,noCache:!0,hidden:!0,canTo:!0,activeMenu:"/example/example-page"}},{path:"example-detail",component:()=>__vitePreload(()=>import("./ExampleDetail-CDVh2zLz.js"),__vite__mapDeps([140,141,50,3,2,4,5,51,7,26,22,138,6,33,110])),name:"ExampleDetail",meta:{title:"综合示例 - 详情",noTagsView:!0,noCache:!0,hidden:!0,canTo:!0,activeMenu:"/example/example-page"}}]},{path:"/error",component:Layout,redirect:"/error/404",name:"Error",meta:{title:"错误页面",icon:"ci:error",alwaysShow:!0},children:[{path:"404-demo",component:()=>__vitePreload(()=>import("./404-CG2A4mzm.js"),__vite__mapDeps([129,128,33,4,3])),name:"404Demo",meta:{title:"404"}},{path:"403-demo",component:()=>__vitePreload(()=>import("./403-DnhwZjvt.js"),__vite__mapDeps([127,128,33,4,3])),name:"403Demo",meta:{title:"403"}},{path:"500-demo",component:()=>__vitePreload(()=>import("./500-DxSyrmt3.js"),__vite__mapDeps([130,128,33,4,3])),name:"500Demo",meta:{title:"500"}}]},{path:"/authorization",component:Layout,redirect:"/authorization/user",name:"Authorization",meta:{title:"权限管理",icon:"eos-icons:role-binding",alwaysShow:!0},children:[{path:"department",component:()=>__vitePreload(()=>import("./Department-CZqBro4N.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53])),name:"Department",meta:{title:"部门管理"}},{path:"user",component:()=>__vitePreload(()=>import("./User-__ht-I-y.js"),__vite__mapDeps([71,1,2,3,4,5,6,7,37,10,11,33,38,39,40,41,27,22,21,23,42,43,44,45,46,8,9,12,13,14,15,16,17,18,19,20,24,25,26,28,29,30,31,32,34,72,48,73,50,51,35,36,66,52,53])),name:"User",meta:{title:"用户管理"}},{path:"menu",component:()=>__vitePreload(()=>import("./Menu-BhIIVxms.js"),__vite__mapDeps([56,57,46,37,10,11,2,3,4,5,33,38,39,40,41,27,7,22,21,23,42,6,43,44,8,9,12,13,14,15,16,17,18,19,20,24,25,26,28,29,30,31,32,34,1,58,48,59,60,61,50,51,35,36])),name:"Menu",meta:{title:"菜单管理"}},{path:"role",component:()=>__vitePreload(()=>import("./Role-Dyb9E-YN.js"),__vite__mapDeps([65,66,46,37,10,11,2,3,4,5,33,38,39,40,41,27,7,22,21,23,42,6,43,44,8,9,12,13,14,15,16,17,18,19,20,24,25,26,28,29,30,31,32,34,1,67,48,57,53,68,50,51,35,36])),name:"Role",meta:{title:"角色管理"}}]}],router=createRouter({history:createWebHistory("/"),routes:constantRouterMap,scrollBehavior:()=>({left:0,top:0})}),resetRouter=()=>{router.getRoutes().forEach(e=>{const{name:C}=e;C&&!NO_RESET_WHITE_LIST.includes(C)&&router.hasRoute(C)&&router.removeRoute(C)})},plugins=[ElLoading],components=[ElScrollbar],setupElementPlus=e=>{plugins.forEach(C=>{e.use(C)}),components.forEach(C=>{e.component(C.name,C)})},hasPermission=e=>{const C=router.currentRoute.value.meta.permission||[];if(!e)throw new Error("请设置操作权限值");return!!C.includes(e)};function hasPermi(e,C){var W;const G=C.value;hasPermission(G)||(W=e.parentNode)==null||W.removeChild(e)}const mounted=(e,C)=>{hasPermi(e,C)},permiDirective={mounted},setupPermissionDirective=e=>{e.directive("hasPermi",permiDirective)},setupPermission=e=>{setupPermissionDirective(e)},useTitle=e=>{const C=useAppStoreWithOut(),G=ref$1(e?`${C.getTitle} - ${e}`:C.getTitle);return watch(G,(H,W)=>{isString$2(H)&&H!==W&&document&&(document.title=H)},{immediate:!0}),G};var nprogress={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */(function(e,C){(function(G,H){e.exports=H()})(commonjsGlobal,function(){var G={};G.version="0.2.0";var H=G.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};G.configure=function(oe){var se,ue;for(se in oe)ue=oe[se],ue!==void 0&&oe.hasOwnProperty(se)&&(H[se]=ue);return this},G.status=null,G.set=function(oe){var se=G.isStarted();oe=W(oe,H.minimum,1),G.status=oe===1?null:oe;var ue=G.render(!se),fe=ue.querySelector(H.barSelector),_e=H.speed,ve=H.easing;return ue.offsetWidth,Z(function(me){H.positionUsing===""&&(H.positionUsing=G.getPositioningCSS()),te(fe,Q(oe,_e,ve)),oe===1?(te(ue,{transition:"none",opacity:1}),ue.offsetWidth,setTimeout(function(){te(ue,{transition:"all "+_e+"ms linear",opacity:0}),setTimeout(function(){G.remove(),me()},_e)},_e)):setTimeout(me,_e)}),this},G.isStarted=function(){return typeof G.status=="number"},G.start=function(){G.status||G.set(0);var oe=function(){setTimeout(function(){G.status&&(G.trickle(),oe())},H.trickleSpeed)};return H.trickle&&oe(),this},G.done=function(oe){return!oe&&!G.status?this:G.inc(.3+.5*Math.random()).set(1)},G.inc=function(oe){var se=G.status;return se?(typeof oe!="number"&&(oe=(1-se)*W(Math.random()*se,.1,.95)),se=W(se+oe,0,.994),G.set(se)):G.start()},G.trickle=function(){return G.inc(Math.random()*H.trickleRate)},function(){var oe=0,se=0;G.promise=function(ue){return!ue||ue.state()==="resolved"?this:(se===0&&G.start(),oe++,se++,ue.always(function(){se--,se===0?(oe=0,G.done()):G.set((oe-se)/oe)}),this)}}(),G.render=function(oe){if(G.isRendered())return document.getElementById("nprogress");ae(document.documentElement,"nprogress-busy");var se=document.createElement("div");se.id="nprogress",se.innerHTML=H.template;var ue=se.querySelector(H.barSelector),fe=oe?"-100":K(G.status||0),_e=document.querySelector(H.parent),ve;return te(ue,{transition:"all 0 linear",transform:"translate3d("+fe+"%,0,0)"}),H.showSpinner||(ve=se.querySelector(H.spinnerSelector),ve&&pe(ve)),_e!=document.body&&ae(_e,"nprogress-custom-parent"),_e.appendChild(se),se},G.remove=function(){le(document.documentElement,"nprogress-busy"),le(document.querySelector(H.parent),"nprogress-custom-parent");var oe=document.getElementById("nprogress");oe&&pe(oe)},G.isRendered=function(){return!!document.getElementById("nprogress")},G.getPositioningCSS=function(){var oe=document.body.style,se="WebkitTransform"in oe?"Webkit":"MozTransform"in oe?"Moz":"msTransform"in oe?"ms":"OTransform"in oe?"O":"";return se+"Perspective"in oe?"translate3d":se+"Transform"in oe?"translate":"margin"};function W(oe,se,ue){return oeue?ue:oe}function K(oe){return(-1+oe)*100}function Q(oe,se,ue){var fe;return H.positionUsing==="translate3d"?fe={transform:"translate3d("+K(oe)+"%,0,0)"}:H.positionUsing==="translate"?fe={transform:"translate("+K(oe)+"%,0)"}:fe={"margin-left":K(oe)+"%"},fe.transition="all "+se+"ms "+ue,fe}var Z=function(){var oe=[];function se(){var ue=oe.shift();ue&&ue(se)}return function(ue){oe.push(ue),oe.length==1&&se()}}(),te=function(){var oe=["Webkit","O","Moz","ms"],se={};function ue(me){return me.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(Se,we){return we.toUpperCase()})}function fe(me){var Se=document.body.style;if(me in Se)return me;for(var we=oe.length,Ae=me.charAt(0).toUpperCase()+me.slice(1),xe;we--;)if(xe=oe[we]+Ae,xe in Se)return xe;return me}function _e(me){return me=ue(me),se[me]||(se[me]=fe(me))}function ve(me,Se,we){Se=_e(Se),me.style[Se]=we}return function(me,Se){var we=arguments,Ae,xe;if(we.length==2)for(Ae in Se)xe=Se[Ae],xe!==void 0&&Se.hasOwnProperty(Ae)&&ve(me,Ae,xe);else ve(me,we[1],we[2])}}();function ee(oe,se){var ue=typeof oe=="string"?oe:ce(oe);return ue.indexOf(" "+se+" ")>=0}function ae(oe,se){var ue=ce(oe),fe=ue+se;ee(ue,se)||(oe.className=fe.substring(1))}function le(oe,se){var ue=ce(oe),fe;ee(oe,se)&&(fe=ue.replace(" "+se+" "," "),oe.className=fe.substring(1,fe.length-1))}function ce(oe){return(" "+(oe.className||"")+" ").replace(/\s+/gi," ")}function pe(oe){oe&&oe.parentNode&&oe.parentNode.removeChild(oe)}return G})})(nprogress);var nprogressExports=nprogress.exports;const NProgress=getDefaultExportFromCjs(nprogressExports),primaryColor=useCssVar("--el-color-primary",document.documentElement),useNProgress=()=>(NProgress.configure({showSpinner:!1}),Ue(void 0,null,function*(){var W;yield nextTick();const H=(W=document.getElementById("nprogress"))==null?void 0:W.getElementsByClassName("bar")[0];H&&(H.style.background=unref(primaryColor.value))}),{start:()=>{NProgress.start()},done:()=>{NProgress.done()}}),usePermissionStore=defineStore("permission",{state:()=>({routers:[],addRouters:[],isAddRouters:!1,menuTabRouters:[]}),getters:{getRouters(){return this.routers},getAddRouters(){return flatMultiLevelRoutes(cloneDeep(this.addRouters))},getIsAddRouters(){return this.isAddRouters},getMenuTabRouters(){return this.menuTabRouters}},actions:{generateRoutes(e,C){return new Promise(G=>{let H=[];e==="server"?H=generateRoutesByServer(C):e==="frontEnd"?H=generateRoutesByFrontEnd(cloneDeep(asyncRouterMap),C):H=cloneDeep(asyncRouterMap),this.addRouters=H.concat([{path:"/:path(.*)*",redirect:"/404",name:"404Page",meta:{hidden:!0,breadcrumb:!1}}]),this.routers=cloneDeep(constantRouterMap).concat(H),G()})},setIsAddRouters(e){this.isAddRouters=e},setMenuTabRouters(e){this.menuTabRouters=e}},persist:{paths:["routers","addRouters","menuTabRouters"]}}),usePermissionStoreWithOut=()=>usePermissionStore(store),usePageLoading=()=>({loadStart:()=>{useAppStoreWithOut().setPageLoading(!0)},loadDone:()=>{useAppStoreWithOut().setPageLoading(!1)}});function bind$2(e,C){return function(){return e.apply(C,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(e=>C=>{const G=toString.call(C);return e[G]||(e[G]=G.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),C=>kindOf(C)===e),typeOfTest=e=>C=>typeof C===e,{isArray:isArray$4}=Array,isUndefined=typeOfTest("undefined");function isBuffer$1(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&isFunction(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let C;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?C=ArrayBuffer.isView(e):C=e&&e.buffer&&isArrayBuffer(e.buffer),C}const isString$1=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject=e=>e!==null&&typeof e=="object",isBoolean$1=e=>e===!0||e===!1,isPlainObject=e=>{if(kindOf(e)!=="object")return!1;const C=getPrototypeOf(e);return(C===null||C===Object.prototype||Object.getPrototypeOf(C)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject(e)&&isFunction(e.pipe),isFormData=e=>{let C;return e&&(typeof FormData=="function"&&e instanceof FormData||isFunction(e.append)&&((C=kindOf(e))==="formdata"||C==="object"&&isFunction(e.toString)&&e.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,C,{allOwnKeys:G=!1}={}){if(e===null||typeof e=="undefined")return;let H,W;if(typeof e!="object"&&(e=[e]),isArray$4(e))for(H=0,W=e.length;H0;)if(W=G[H],C===W.toLowerCase())return W;return null}const _global=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge$1(){const{caseless:e}=isContextDefined(this)&&this||{},C={},G=(H,W)=>{const K=e&&findKey(C,W)||W;isPlainObject(C[K])&&isPlainObject(H)?C[K]=merge$1(C[K],H):isPlainObject(H)?C[K]=merge$1({},H):isArray$4(H)?C[K]=H.slice():C[K]=H};for(let H=0,W=arguments.length;H(forEach(C,(W,K)=>{G&&isFunction(W)?e[K]=bind$2(W,G):e[K]=W},{allOwnKeys:H}),e),stripBOM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),inherits=(e,C,G,H)=>{e.prototype=Object.create(C.prototype,H),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:C.prototype}),G&&Object.assign(e.prototype,G)},toFlatObject=(e,C,G,H)=>{let W,K,Q;const Z={};if(C=C||{},e==null)return C;do{for(W=Object.getOwnPropertyNames(e),K=W.length;K-- >0;)Q=W[K],(!H||H(Q,e,C))&&!Z[Q]&&(C[Q]=e[Q],Z[Q]=!0);e=G!==!1&&getPrototypeOf(e)}while(e&&(!G||G(e,C))&&e!==Object.prototype);return C},endsWith=(e,C,G)=>{e=String(e),(G===void 0||G>e.length)&&(G=e.length),G-=C.length;const H=e.indexOf(C,G);return H!==-1&&H===G},toArray=e=>{if(!e)return null;if(isArray$4(e))return e;let C=e.length;if(!isNumber$1(C))return null;const G=new Array(C);for(;C-- >0;)G[C]=e[C];return G},isTypedArray=(e=>C=>e&&C instanceof e)(typeof Uint8Array!="undefined"&&getPrototypeOf(Uint8Array)),forEachEntry=(e,C)=>{const H=(e&&e[Symbol.iterator]).call(e);let W;for(;(W=H.next())&&!W.done;){const K=W.value;C.call(e,K[0],K[1])}},matchAll=(e,C)=>{let G;const H=[];for(;(G=e.exec(C))!==null;)H.push(G);return H},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(G,H,W){return H.toUpperCase()+W}),hasOwnProperty=(({hasOwnProperty:e})=>(C,G)=>e.call(C,G))(Object.prototype),isRegExp$2=kindOfTest("RegExp"),reduceDescriptors=(e,C)=>{const G=Object.getOwnPropertyDescriptors(e),H={};forEach(G,(W,K)=>{let Q;(Q=C(W,K,e))!==!1&&(H[K]=Q||W)}),Object.defineProperties(e,H)},freezeMethods=e=>{reduceDescriptors(e,(C,G)=>{if(isFunction(e)&&["arguments","caller","callee"].indexOf(G)!==-1)return!1;const H=e[G];if(isFunction(H)){if(C.enumerable=!1,"writable"in C){C.writable=!1;return}C.set||(C.set=()=>{throw Error("Can not rewrite read-only method '"+G+"'")})}})},toObjectSet=(e,C)=>{const G={},H=W=>{W.forEach(K=>{G[K]=!0})};return isArray$4(e)?H(e):H(String(e).split(C)),G},noop=()=>{},toFiniteNumber=(e,C)=>(e=+e,Number.isFinite(e)?e:C),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(e=16,C=ALPHABET.ALPHA_DIGIT)=>{let G="";const{length:H}=C;for(;e--;)G+=C[Math.random()*H|0];return G};function isSpecCompliantForm(e){return!!(e&&isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const toJSONObject=e=>{const C=new Array(10),G=(H,W)=>{if(isObject(H)){if(C.indexOf(H)>=0)return;if(!("toJSON"in H)){C[W]=H;const K=isArray$4(H)?[]:{};return forEach(H,(Q,Z)=>{const te=G(Q,W+1);!isUndefined(te)&&(K[Z]=te)}),C[W]=void 0,K}}return H};return G(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject(e)||isFunction(e))&&isFunction(e.then)&&isFunction(e.catch),utils$4={isArray:isArray$4,isArrayBuffer,isBuffer:isBuffer$1,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean:isBoolean$1,isObject,isPlainObject,isUndefined,isDate:isDate$1,isFile,isBlob,isRegExp:isRegExp$2,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge:merge$1,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(e,C,G,H,W){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",C&&(this.code=C),G&&(this.config=G),H&&(this.request=H),W&&(this.response=W)}utils$4.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$4.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{descriptors[e]={value:e}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(e,C,G,H,W,K)=>{const Q=Object.create(prototype$1);return utils$4.toFlatObject(e,Q,function(te){return te!==Error.prototype},Z=>Z!=="isAxiosError"),AxiosError.call(Q,e.message,C,G,H,W),Q.cause=e,Q.name=e.name,K&&Object.assign(Q,K),Q};const httpAdapter=null;function isVisitable(e){return utils$4.isPlainObject(e)||utils$4.isArray(e)}function removeBrackets(e){return utils$4.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,C,G){return e?e.concat(C).map(function(W,K){return W=removeBrackets(W),!G&&K?"["+W+"]":W}).join(G?".":""):C}function isFlatArray(e){return utils$4.isArray(e)&&!e.some(isVisitable)}const predicates=utils$4.toFlatObject(utils$4,{},null,function(C){return/^is[A-Z]/.test(C)});function toFormData(e,C,G){if(!utils$4.isObject(e))throw new TypeError("target must be an object");C=C||new FormData,G=utils$4.toFlatObject(G,{metaTokens:!0,dots:!1,indexes:!1},!1,function(se,ue){return!utils$4.isUndefined(ue[se])});const H=G.metaTokens,W=G.visitor||ae,K=G.dots,Q=G.indexes,te=(G.Blob||typeof Blob!="undefined"&&Blob)&&utils$4.isSpecCompliantForm(C);if(!utils$4.isFunction(W))throw new TypeError("visitor must be a function");function ee(oe){if(oe===null)return"";if(utils$4.isDate(oe))return oe.toISOString();if(!te&&utils$4.isBlob(oe))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$4.isArrayBuffer(oe)||utils$4.isTypedArray(oe)?te&&typeof Blob=="function"?new Blob([oe]):Buffer.from(oe):oe}function ae(oe,se,ue){let fe=oe;if(oe&&!ue&&typeof oe=="object"){if(utils$4.endsWith(se,"{}"))se=H?se:se.slice(0,-2),oe=JSON.stringify(oe);else if(utils$4.isArray(oe)&&isFlatArray(oe)||(utils$4.isFileList(oe)||utils$4.endsWith(se,"[]"))&&(fe=utils$4.toArray(oe)))return se=removeBrackets(se),fe.forEach(function(ve,me){!(utils$4.isUndefined(ve)||ve===null)&&C.append(Q===!0?renderKey([se],me,K):Q===null?se:se+"[]",ee(ve))}),!1}return isVisitable(oe)?!0:(C.append(renderKey(ue,se,K),ee(oe)),!1)}const le=[],ce=Object.assign(predicates,{defaultVisitor:ae,convertValue:ee,isVisitable});function pe(oe,se){if(!utils$4.isUndefined(oe)){if(le.indexOf(oe)!==-1)throw Error("Circular reference detected in "+se.join("."));le.push(oe),utils$4.forEach(oe,function(fe,_e){(!(utils$4.isUndefined(fe)||fe===null)&&W.call(C,fe,utils$4.isString(_e)?_e.trim():_e,se,ce))===!0&&pe(fe,se?se.concat(_e):[_e])}),le.pop()}}if(!utils$4.isObject(e))throw new TypeError("data must be an object");return pe(e),C}function encode$2(e){const C={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(H){return C[H]})}function AxiosURLSearchParams(e,C){this._pairs=[],e&&toFormData(e,this,C)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(C,G){this._pairs.push([C,G])};prototype.toString=function(C){const G=C?function(H){return C.call(this,H,encode$2)}:encode$2;return this._pairs.map(function(W){return G(W[0])+"="+G(W[1])},"").join("&")};function encode$1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,C,G){if(!C)return e;const H=G&&G.encode||encode$1,W=G&&G.serialize;let K;if(W?K=W(C,G):K=utils$4.isURLSearchParams(C)?C.toString():new AxiosURLSearchParams(C,G).toString(H),K){const Q=e.indexOf("#");Q!==-1&&(e=e.slice(0,Q)),e+=(e.indexOf("?")===-1?"?":"&")+K}return e}class InterceptorManager{constructor(){this.handlers=[]}use(C,G,H){return this.handlers.push({fulfilled:C,rejected:G,synchronous:H?H.synchronous:!1,runWhen:H?H.runWhen:null}),this.handlers.length-1}eject(C){this.handlers[C]&&(this.handlers[C]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(C){utils$4.forEach(this.handlers,function(H){H!==null&&C(H)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams!="undefined"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData!="undefined"?FormData:null,Blob$1=typeof Blob!="undefined"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window!="undefined"&&typeof document!="undefined",hasStandardBrowserEnv=(e=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator!="undefined"&&navigator.product),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",utils$3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv},Symbol.toStringTag,{value:"Module"})),platform=Me(Me({},utils$3),platform$1);function toURLEncodedForm(e,C){return toFormData(e,new platform.classes.URLSearchParams,Object.assign({visitor:function(G,H,W,K){return platform.isNode&&utils$4.isBuffer(G)?(this.append(H,G.toString("base64")),!1):K.defaultVisitor.apply(this,arguments)}},C))}function parsePropPath(e){return utils$4.matchAll(/\w+|\[(\w*)]/g,e).map(C=>C[0]==="[]"?"":C[1]||C[0])}function arrayToObject$1(e){const C={},G=Object.keys(e);let H;const W=G.length;let K;for(H=0;H=G.length;return Q=!Q&&utils$4.isArray(W)?W.length:Q,te?(utils$4.hasOwnProp(W,Q)?W[Q]=[W[Q],H]:W[Q]=H,!Z):((!W[Q]||!utils$4.isObject(W[Q]))&&(W[Q]=[]),C(G,H,W[Q],K)&&utils$4.isArray(W[Q])&&(W[Q]=arrayToObject$1(W[Q])),!Z)}if(utils$4.isFormData(e)&&utils$4.isFunction(e.entries)){const G={};return utils$4.forEachEntry(e,(H,W)=>{C(parsePropPath(H),W,G,0)}),G}return null}function stringifySafely(e,C,G){if(utils$4.isString(e))try{return(C||JSON.parse)(e),utils$4.trim(e)}catch(H){if(H.name!=="SyntaxError")throw H}return(G||JSON.stringify)(e)}const defaults$2={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(C,G){const H=G.getContentType()||"",W=H.indexOf("application/json")>-1,K=utils$4.isObject(C);if(K&&utils$4.isHTMLForm(C)&&(C=new FormData(C)),utils$4.isFormData(C))return W?JSON.stringify(formDataToJSON(C)):C;if(utils$4.isArrayBuffer(C)||utils$4.isBuffer(C)||utils$4.isStream(C)||utils$4.isFile(C)||utils$4.isBlob(C))return C;if(utils$4.isArrayBufferView(C))return C.buffer;if(utils$4.isURLSearchParams(C))return G.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),C.toString();let Z;if(K){if(H.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(C,this.formSerializer).toString();if((Z=utils$4.isFileList(C))||H.indexOf("multipart/form-data")>-1){const te=this.env&&this.env.FormData;return toFormData(Z?{"files[]":C}:C,te&&new te,this.formSerializer)}}return K||W?(G.setContentType("application/json",!1),stringifySafely(C)):C}],transformResponse:[function(C){const G=this.transitional||defaults$2.transitional,H=G&&G.forcedJSONParsing,W=this.responseType==="json";if(C&&utils$4.isString(C)&&(H&&!this.responseType||W)){const Q=!(G&&G.silentJSONParsing)&&W;try{return JSON.parse(C)}catch(Z){if(Q)throw Z.name==="SyntaxError"?AxiosError.from(Z,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):Z}}return C}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(C){return C>=200&&C<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$4.forEach(["delete","get","head","post","put","patch"],e=>{defaults$2.headers[e]={}});const defaults$3=defaults$2,ignoreDuplicateOf=utils$4.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=e=>{const C={};let G,H,W;return e&&e.split(` `).forEach(function(Q){W=Q.indexOf(":"),G=Q.substring(0,W).trim().toLowerCase(),H=Q.substring(W+1).trim(),!(!G||C[G]&&ignoreDuplicateOf[G])&&(G==="set-cookie"?C[G]?C[G].push(H):C[G]=[H]:C[G]=C[G]?C[G]+", "+H:H)}),C},$internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return e===!1||e==null?e:utils$4.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const C=Object.create(null),G=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let H;for(;H=G.exec(e);)C[H[1]]=H[2];return C}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,C,G,H,W){if(utils$4.isFunction(H))return H.call(this,C,G);if(W&&(C=G),!!utils$4.isString(C)){if(utils$4.isString(H))return C.indexOf(H)!==-1;if(utils$4.isRegExp(H))return H.test(C)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(C,G,H)=>G.toUpperCase()+H)}function buildAccessors(e,C){const G=utils$4.toCamelCase(" "+C);["get","set","has"].forEach(H=>{Object.defineProperty(e,H+G,{value:function(W,K,Q){return this[H].call(this,C,W,K,Q)},configurable:!0})})}class AxiosHeaders{constructor(C){C&&this.set(C)}set(C,G,H){const W=this;function K(Z,te,ee){const ae=normalizeHeader(te);if(!ae)throw new Error("header name must be a non-empty string");const le=utils$4.findKey(W,ae);(!le||W[le]===void 0||ee===!0||ee===void 0&&W[le]!==!1)&&(W[le||te]=normalizeValue(Z))}const Q=(Z,te)=>utils$4.forEach(Z,(ee,ae)=>K(ee,ae,te));return utils$4.isPlainObject(C)||C instanceof this.constructor?Q(C,G):utils$4.isString(C)&&(C=C.trim())&&!isValidHeaderName(C)?Q(parseHeaders(C),G):C!=null&&K(G,C,H),this}get(C,G){if(C=normalizeHeader(C),C){const H=utils$4.findKey(this,C);if(H){const W=this[H];if(!G)return W;if(G===!0)return parseTokens(W);if(utils$4.isFunction(G))return G.call(this,W,H);if(utils$4.isRegExp(G))return G.exec(W);throw new TypeError("parser must be boolean|regexp|function")}}}has(C,G){if(C=normalizeHeader(C),C){const H=utils$4.findKey(this,C);return!!(H&&this[H]!==void 0&&(!G||matchHeaderValue(this,this[H],H,G)))}return!1}delete(C,G){const H=this;let W=!1;function K(Q){if(Q=normalizeHeader(Q),Q){const Z=utils$4.findKey(H,Q);Z&&(!G||matchHeaderValue(H,H[Z],Z,G))&&(delete H[Z],W=!0)}}return utils$4.isArray(C)?C.forEach(K):K(C),W}clear(C){const G=Object.keys(this);let H=G.length,W=!1;for(;H--;){const K=G[H];(!C||matchHeaderValue(this,this[K],K,C,!0))&&(delete this[K],W=!0)}return W}normalize(C){const G=this,H={};return utils$4.forEach(this,(W,K)=>{const Q=utils$4.findKey(H,K);if(Q){G[Q]=normalizeValue(W),delete G[K];return}const Z=C?formatHeader(K):String(K).trim();Z!==K&&delete G[K],G[Z]=normalizeValue(W),H[Z]=!0}),this}concat(...C){return this.constructor.concat(this,...C)}toJSON(C){const G=Object.create(null);return utils$4.forEach(this,(H,W)=>{H!=null&&H!==!1&&(G[W]=C&&utils$4.isArray(H)?H.join(", "):H)}),G}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([C,G])=>C+": "+G).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(C){return C instanceof this?C:new this(C)}static concat(C,...G){const H=new this(C);return G.forEach(W=>H.set(W)),H}static accessor(C){const H=(this[$internals]=this[$internals]={accessors:{}}).accessors,W=this.prototype;function K(Q){const Z=normalizeHeader(Q);H[Z]||(buildAccessors(W,Q),H[Z]=!0)}return utils$4.isArray(C)?C.forEach(K):K(C),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$4.reduceDescriptors(AxiosHeaders.prototype,({value:e},C)=>{let G=C[0].toUpperCase()+C.slice(1);return{get:()=>e,set(H){this[G]=H}}});utils$4.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(e,C){const G=this||defaults$3,H=C||G,W=AxiosHeaders$1.from(H.headers);let K=H.data;return utils$4.forEach(e,function(Z){K=Z.call(G,K,W.normalize(),C?C.status:void 0)}),W.normalize(),K}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,C,G){AxiosError.call(this,e==null?"canceled":e,AxiosError.ERR_CANCELED,C,G),this.name="CanceledError"}utils$4.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(e,C,G){const H=G.config.validateStatus;!G.status||!H||H(G.status)?e(G):C(new AxiosError("Request failed with status code "+G.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(G.status/100)-4],G.config,G.request,G))}const cookies=platform.hasStandardBrowserEnv?{write(e,C,G,H,W,K){const Q=[e+"="+encodeURIComponent(C)];utils$4.isNumber(G)&&Q.push("expires="+new Date(G).toGMTString()),utils$4.isString(H)&&Q.push("path="+H),utils$4.isString(W)&&Q.push("domain="+W),K===!0&&Q.push("secure"),document.cookie=Q.join("; ")},read(e){const C=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return C?decodeURIComponent(C[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,C){return C?e.replace(/\/?\/$/,"")+"/"+C.replace(/^\/+/,""):e}function buildFullPath(e,C){return e&&!isAbsoluteURL(C)?combineURLs(e,C):C}const isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const C=/(msie|trident)/i.test(navigator.userAgent),G=document.createElement("a");let H;function W(K){let Q=K;return C&&(G.setAttribute("href",Q),Q=G.href),G.setAttribute("href",Q),{href:G.href,protocol:G.protocol?G.protocol.replace(/:$/,""):"",host:G.host,search:G.search?G.search.replace(/^\?/,""):"",hash:G.hash?G.hash.replace(/^#/,""):"",hostname:G.hostname,port:G.port,pathname:G.pathname.charAt(0)==="/"?G.pathname:"/"+G.pathname}}return H=W(window.location.href),function(Q){const Z=utils$4.isString(Q)?W(Q):Q;return Z.protocol===H.protocol&&Z.host===H.host}}():function(){return function(){return!0}}();function parseProtocol(e){const C=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return C&&C[1]||""}function speedometer(e,C){e=e||10;const G=new Array(e),H=new Array(e);let W=0,K=0,Q;return C=C!==void 0?C:1e3,function(te){const ee=Date.now(),ae=H[K];Q||(Q=ee),G[W]=te,H[W]=ee;let le=K,ce=0;for(;le!==W;)ce+=G[le++],le=le%e;if(W=(W+1)%e,W===K&&(K=(K+1)%e),ee-Q{const K=W.loaded,Q=W.lengthComputable?W.total:void 0,Z=K-G,te=H(Z),ee=K<=Q;G=K;const ae={loaded:K,total:Q,progress:Q?K/Q:void 0,bytes:Z,rate:te||void 0,estimated:te&&Q&&ee?(Q-K)/te:void 0,event:W};ae[C?"download":"upload"]=!0,e(ae)}}const isXHRAdapterSupported=typeof XMLHttpRequest!="undefined",xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise(function(G,H){let W=e.data;const K=AxiosHeaders$1.from(e.headers).normalize();let{responseType:Q,withXSRFToken:Z}=e,te;function ee(){e.cancelToken&&e.cancelToken.unsubscribe(te),e.signal&&e.signal.removeEventListener("abort",te)}let ae;if(utils$4.isFormData(W)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)K.setContentType(!1);else if((ae=K.getContentType())!==!1){const[se,...ue]=ae?ae.split(";").map(fe=>fe.trim()).filter(Boolean):[];K.setContentType([se||"multipart/form-data",...ue].join("; "))}}let le=new XMLHttpRequest;if(e.auth){const se=e.auth.username||"",ue=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";K.set("Authorization","Basic "+btoa(se+":"+ue))}const ce=buildFullPath(e.baseURL,e.url);le.open(e.method.toUpperCase(),buildURL(ce,e.params,e.paramsSerializer),!0),le.timeout=e.timeout;function pe(){if(!le)return;const se=AxiosHeaders$1.from("getAllResponseHeaders"in le&&le.getAllResponseHeaders()),fe={data:!Q||Q==="text"||Q==="json"?le.responseText:le.response,status:le.status,statusText:le.statusText,headers:se,config:e,request:le};settle(function(ve){G(ve),ee()},function(ve){H(ve),ee()},fe),le=null}if("onloadend"in le?le.onloadend=pe:le.onreadystatechange=function(){!le||le.readyState!==4||le.status===0&&!(le.responseURL&&le.responseURL.indexOf("file:")===0)||setTimeout(pe)},le.onabort=function(){le&&(H(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,le)),le=null)},le.onerror=function(){H(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,le)),le=null},le.ontimeout=function(){let ue=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const fe=e.transitional||transitionalDefaults;e.timeoutErrorMessage&&(ue=e.timeoutErrorMessage),H(new AxiosError(ue,fe.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,le)),le=null},platform.hasStandardBrowserEnv&&(Z&&utils$4.isFunction(Z)&&(Z=Z(e)),Z||Z!==!1&&isURLSameOrigin(ce))){const se=e.xsrfHeaderName&&e.xsrfCookieName&&cookies.read(e.xsrfCookieName);se&&K.set(e.xsrfHeaderName,se)}W===void 0&&K.setContentType(null),"setRequestHeader"in le&&utils$4.forEach(K.toJSON(),function(ue,fe){le.setRequestHeader(fe,ue)}),utils$4.isUndefined(e.withCredentials)||(le.withCredentials=!!e.withCredentials),Q&&Q!=="json"&&(le.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&le.addEventListener("progress",progressEventReducer(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&le.upload&&le.upload.addEventListener("progress",progressEventReducer(e.onUploadProgress)),(e.cancelToken||e.signal)&&(te=se=>{le&&(H(!se||se.type?new CanceledError(null,e,le):se),le.abort(),le=null)},e.cancelToken&&e.cancelToken.subscribe(te),e.signal&&(e.signal.aborted?te():e.signal.addEventListener("abort",te)));const oe=parseProtocol(ce);if(oe&&platform.protocols.indexOf(oe)===-1){H(new AxiosError("Unsupported protocol "+oe+":",AxiosError.ERR_BAD_REQUEST,e));return}le.send(W||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$4.forEach(knownAdapters,(e,C)=>{if(e){try{Object.defineProperty(e,"name",{value:C})}catch(G){}Object.defineProperty(e,"adapterName",{value:C})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$4.isFunction(e)||e===null||e===!1,adapters={getAdapter:e=>{e=utils$4.isArray(e)?e:[e];const{length:C}=e;let G,H;const W={};for(let K=0;K`adapter ${Z} `+(te===!1?"is not supported by the environment":"is not available in the build"));let Q=C?K.length>1?`since : diff --git a/assets/index-BYcZ39zx.js b/assets/index-BYcZ39zx.js new file mode 100644 index 00000000..febfbb2d --- /dev/null +++ b/assets/index-BYcZ39zx.js @@ -0,0 +1 @@ +import{r as t}from"./index-B5z15nYm.js";const r=()=>t.get({url:"/mock/menu/list"});export{r as g}; diff --git a/assets/index-CA5sn5Y0.js b/assets/index-CA5sn5Y0.js new file mode 100644 index 00000000..c53d0554 --- /dev/null +++ b/assets/index-CA5sn5Y0.js @@ -0,0 +1 @@ +import{r as e}from"./index-B5z15nYm.js";const t=()=>e.get({url:"/mock/role/table"});export{t as g}; diff --git a/assets/index-CRNzobZS.js b/assets/index-CRNzobZS.js deleted file mode 100644 index fd5b7d91..00000000 --- a/assets/index-CRNzobZS.js +++ /dev/null @@ -1 +0,0 @@ -import{r as t}from"./index-CA0d6hyI.js";const r=()=>t.get({url:"/mock/menu/list"});export{r as g}; diff --git a/assets/index-CxKCqm97.js b/assets/index-CxKCqm97.js deleted file mode 100644 index b8628e7a..00000000 --- a/assets/index-CxKCqm97.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e}from"./index-CA0d6hyI.js";const t=()=>e.get({url:"/mock/role/table"});export{t as g}; diff --git a/assets/index-DVoP4cjT.js b/assets/index-DB50Cmmr.js similarity index 83% rename from assets/index-DVoP4cjT.js rename to assets/index-DB50Cmmr.js index f36e68b8..50778f08 100644 --- a/assets/index-DVoP4cjT.js +++ b/assets/index-DB50Cmmr.js @@ -1 +1 @@ -import{r as t}from"./index-CA0d6hyI.js";const r=e=>t.get({url:"/mock/example/list",params:e}),s=e=>t.get({url:"/mock/card/list",params:e}),l=e=>t.get({url:"/mock/example/treeList",params:e}),o=e=>t.post({url:"/mock/example/save",data:e}),p=e=>t.get({url:"/mock/example/detail",params:{id:e}}),i=e=>t.post({url:"/mock/example/delete",data:{ids:e}});export{l as a,s as b,p as c,i as d,r as g,o as s}; +import{r as t}from"./index-B5z15nYm.js";const r=e=>t.get({url:"/mock/example/list",params:e}),s=e=>t.get({url:"/mock/card/list",params:e}),l=e=>t.get({url:"/mock/example/treeList",params:e}),o=e=>t.post({url:"/mock/example/save",data:e}),p=e=>t.get({url:"/mock/example/detail",params:{id:e}}),i=e=>t.post({url:"/mock/example/delete",data:{ids:e}});export{l as a,s as b,p as c,i as d,r as g,o as s}; diff --git a/assets/index-C2-F2Fy9.js b/assets/index-DI3UHSfz.js similarity index 86% rename from assets/index-C2-F2Fy9.js rename to assets/index-DI3UHSfz.js index 57edc3a7..8d2924fa 100644 --- a/assets/index-C2-F2Fy9.js +++ b/assets/index-DI3UHSfz.js @@ -1 +1 @@ -import{r as t}from"./index-CA0d6hyI.js";const s=()=>t.get({url:"/mock/department/list"}),a=e=>t.get({url:"/mock/department/users",params:e}),n=e=>t.post({url:"/mock/department/user/delete",data:{ids:e}}),p=e=>t.post({url:"/mock/department/user/save",data:e}),o=e=>t.post({url:"/mock/department/save",data:e}),m=e=>t.post({url:"/mock/department/delete",data:{ids:e}}),u=e=>t.get({url:"/mock/department/table/list",params:e});export{u as a,a as b,n as c,m as d,p as e,s as g,o as s}; +import{r as t}from"./index-B5z15nYm.js";const s=()=>t.get({url:"/mock/department/list"}),a=e=>t.get({url:"/mock/department/users",params:e}),n=e=>t.post({url:"/mock/department/user/delete",data:{ids:e}}),p=e=>t.post({url:"/mock/department/user/save",data:e}),o=e=>t.post({url:"/mock/department/save",data:e}),m=e=>t.post({url:"/mock/department/delete",data:{ids:e}}),u=e=>t.get({url:"/mock/department/table/list",params:e});export{u as a,a as b,n as c,m as d,p as e,s as g,o as s}; diff --git a/assets/index-DxxgNbTS.js b/assets/index-Dt71D4p1.js similarity index 81% rename from assets/index-DxxgNbTS.js rename to assets/index-Dt71D4p1.js index 43945ac3..e82ea268 100644 --- a/assets/index-DxxgNbTS.js +++ b/assets/index-Dt71D4p1.js @@ -1 +1 @@ -var n=(s,i,e)=>new Promise((a,c)=>{var g=t=>{try{r(e.next(t))}catch(o){c(o)}},m=t=>{try{r(e.throw(t))}catch(o){c(o)}},r=t=>t.done?a(t.value):Promise.resolve(t.value).then(g,m);r((e=e.apply(s,i)).next())});import{r as p}from"./index-CA0d6hyI.js";const f=()=>n(void 0,null,function*(){return p.get({url:"/mock/dict/one"})});export{f as g}; +var n=(s,i,e)=>new Promise((a,c)=>{var g=t=>{try{r(e.next(t))}catch(o){c(o)}},m=t=>{try{r(e.throw(t))}catch(o){c(o)}},r=t=>t.done?a(t.value):Promise.resolve(t.value).then(g,m);r((e=e.apply(s,i)).next())});import{r as p}from"./index-B5z15nYm.js";const f=()=>n(void 0,null,function*(){return p.get({url:"/mock/dict/one"})});export{f as g}; diff --git a/assets/javascript-C7292Sh6.js b/assets/javascript-BGybM7Bs.js similarity index 80% rename from assets/javascript-C7292Sh6.js rename to assets/javascript-BGybM7Bs.js index 7b8bf1b2..fbb0b791 100644 --- a/assets/javascript-C7292Sh6.js +++ b/assets/javascript-BGybM7Bs.js @@ -1,4 +1,4 @@ -import{conf as e,language as t}from"./typescript-CWsNTno6.js";import"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +import{conf as e,language as t}from"./typescript-CmRccRO2.js";import"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/jsonMode--87pAiWn.js b/assets/jsonMode-BL1JchM7.js similarity index 99% rename from assets/jsonMode--87pAiWn.js rename to assets/jsonMode-BL1JchM7.js index af15a476..c2d8eaed 100644 --- a/assets/jsonMode--87pAiWn.js +++ b/assets/jsonMode-BL1JchM7.js @@ -1,4 +1,4 @@ -import{m as et}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +import{m as et}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/liquid-B1IR3wXj.js b/assets/liquid-Dc_NUFs-.js similarity index 94% rename from assets/liquid-B1IR3wXj.js rename to assets/liquid-Dc_NUFs-.js index 24be036b..ce4d5454 100644 --- a/assets/liquid-B1IR3wXj.js +++ b/assets/liquid-Dc_NUFs-.js @@ -1,4 +1,4 @@ -import{m as d}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +import{m as d}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/mdx-DIkCJeLb.js b/assets/mdx-DXzRoGiO.js similarity index 95% rename from assets/mdx-DIkCJeLb.js rename to assets/mdx-DXzRoGiO.js index 1928deb0..ae1e5460 100644 --- a/assets/mdx-DIkCJeLb.js +++ b/assets/mdx-DXzRoGiO.js @@ -1,4 +1,4 @@ -import{m as p}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +import{m as p}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/python-Zo-tP2hE.js b/assets/python-C6c0ImSs.js similarity index 94% rename from assets/python-Zo-tP2hE.js rename to assets/python-C6c0ImSs.js index dda70bb5..9911e8a5 100644 --- a/assets/python-Zo-tP2hE.js +++ b/assets/python-C6c0ImSs.js @@ -1,4 +1,4 @@ -import{m as a}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +import{m as a}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/razor-DF_V0cbB.js b/assets/razor-Dbp-tt-8.js similarity index 97% rename from assets/razor-DF_V0cbB.js rename to assets/razor-Dbp-tt-8.js index 58e5a646..f2c25f23 100644 --- a/assets/razor-DF_V0cbB.js +++ b/assets/razor-Dbp-tt-8.js @@ -1,4 +1,4 @@ -import{m as s}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +import{m as s}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js b/assets/style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js similarity index 96% rename from assets/style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js rename to assets/style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js index 7ad0e216..fd280c65 100644 --- a/assets/style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js +++ b/assets/style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js @@ -1 +1 @@ -var p=(d,m,a)=>new Promise((r,l)=>{var s=o=>{try{n(a.next(o))}catch(i){l(i)}},t=o=>{try{n(a.throw(o))}catch(i){l(i)}},n=o=>o.done?r(o.value):Promise.resolve(o.value).then(s,t);n((a=a.apply(d,m)).next())});import{T as V,E as w}from"./wang-editor-DjPKVaXS.js";import{p as g,q as E}from"./index-CA0d6hyI.js";import{E as u}from"./element-plus-6v3c1uXT.js";import{q as k,s as I,r as x,w as b,d as h,C as O,u as c,t as T,v as B,P as v,V as R,n as S}from"./vue-chunks-DOWhatC1.js";const N={class:"border-1 border-solid border-[var(--el-border-color)] z-10"},F=k({__name:"Editor",props:{editorId:g.string.def("wangeEditor-1"),height:g.oneOfType([Number,String]).def("500px"),editorConfig:{type:Object,default:()=>{}},modelValue:g.string.def("")},emits:["change","update:modelValue"],setup(d,{expose:m,emit:a}){const r=d,l=a,s=I(),t=x("");b(()=>r.modelValue,e=>{e!==c(t)&&(t.value=e)}),b(()=>t.value,e=>{l("update:modelValue",e)});const n=e=>{s.value=e,t.value=r.modelValue},o=h(()=>Object.assign({readOnly:!1,customAlert:(e,f)=>{switch(f){case"success":u.success(e);break;case"info":u.info(e);break;case"warning":u.warning(e);break;case"error":u.error(e);break;default:u.info(e);break}},autoFocus:!1,scroll:!0,uploadImgShowBase64:!0},r.editorConfig||{})),i=h(()=>({height:E(r.height)?`${r.height}px`:r.height})),C=e=>{l("change",e)};return O(()=>{const e=c(s.value);e==null||e.destroy()}),m({getEditorRef:()=>p(this,null,function*(){return yield S(),c(s.value)})}),(e,f)=>(T(),B("div",N,[v(c(V),{editor:s.value,editorId:d.editorId,class:"border-0 b-b-1 border-solid border-[var(--el-border-color)]"},null,8,["editor","editorId"]),v(c(w),{modelValue:t.value,"onUpdate:modelValue":f[0]||(f[0]=y=>t.value=y),editorId:d.editorId,defaultConfig:o.value,style:R(i.value),onOnChange:C,onOnCreated:n},null,8,["modelValue","editorId","defaultConfig","style"])]))}});export{F as _}; +var p=(d,m,a)=>new Promise((r,l)=>{var s=o=>{try{n(a.next(o))}catch(i){l(i)}},t=o=>{try{n(a.throw(o))}catch(i){l(i)}},n=o=>o.done?r(o.value):Promise.resolve(o.value).then(s,t);n((a=a.apply(d,m)).next())});import{T as V,E as w}from"./wang-editor-DjPKVaXS.js";import{p as g,q as E}from"./index-B5z15nYm.js";import{E as u}from"./element-plus-6v3c1uXT.js";import{q as k,s as I,r as x,w as b,d as h,C as O,u as c,t as T,v as B,P as v,V as R,n as S}from"./vue-chunks-DOWhatC1.js";const N={class:"border-1 border-solid border-[var(--el-border-color)] z-10"},F=k({__name:"Editor",props:{editorId:g.string.def("wangeEditor-1"),height:g.oneOfType([Number,String]).def("500px"),editorConfig:{type:Object,default:()=>{}},modelValue:g.string.def("")},emits:["change","update:modelValue"],setup(d,{expose:m,emit:a}){const r=d,l=a,s=I(),t=x("");b(()=>r.modelValue,e=>{e!==c(t)&&(t.value=e)}),b(()=>t.value,e=>{l("update:modelValue",e)});const n=e=>{s.value=e,t.value=r.modelValue},o=h(()=>Object.assign({readOnly:!1,customAlert:(e,f)=>{switch(f){case"success":u.success(e);break;case"info":u.info(e);break;case"warning":u.warning(e);break;case"error":u.error(e);break;default:u.info(e);break}},autoFocus:!1,scroll:!0,uploadImgShowBase64:!0},r.editorConfig||{})),i=h(()=>({height:E(r.height)?`${r.height}px`:r.height})),C=e=>{l("change",e)};return O(()=>{const e=c(s.value);e==null||e.destroy()}),m({getEditorRef:()=>p(this,null,function*(){return yield S(),c(s.value)})}),(e,f)=>(T(),B("div",N,[v(c(V),{editor:s.value,editorId:d.editorId,class:"border-0 b-b-1 border-solid border-[var(--el-border-color)]"},null,8,["editor","editorId"]),v(c(w),{modelValue:t.value,"onUpdate:modelValue":f[0]||(f[0]=y=>t.value=y),editorId:d.editorId,defaultConfig:o.value,style:R(i.value),onOnChange:C,onOnCreated:n},null,8,["modelValue","editorId","defaultConfig","style"])]))}});export{F as _}; diff --git a/assets/tsMode-DgE4K8Op.js b/assets/tsMode-Kd0Ur8yF.js similarity index 98% rename from assets/tsMode-DgE4K8Op.js rename to assets/tsMode-Kd0Ur8yF.js index 15597df9..a4081f22 100644 --- a/assets/tsMode-DgE4K8Op.js +++ b/assets/tsMode-Kd0Ur8yF.js @@ -1,4 +1,4 @@ -var E=Object.defineProperty,H=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var L=(e,t,s)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,O=(e,t)=>{for(var s in t||(t={}))W.call(t,s)&&L(e,s,t[s]);if(P)for(var s of P(t))j.call(t,s)&&L(e,s,t[s]);return e},I=(e,t)=>H(e,V(t));var b=(e,t,s)=>new Promise((o,i)=>{var l=c=>{try{r(s.next(c))}catch(g){i(g)}},u=c=>{try{r(s.throw(c))}catch(g){i(g)}},r=c=>c.done?o(c.value):Promise.resolve(c.value).then(l,u);r((s=s.apply(e,t)).next())});import{t as B,m as U}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +var E=Object.defineProperty,H=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var L=(e,t,s)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,O=(e,t)=>{for(var s in t||(t={}))W.call(t,s)&&L(e,s,t[s]);if(P)for(var s of P(t))j.call(t,s)&&L(e,s,t[s]);return e},I=(e,t)=>H(e,V(t));var b=(e,t,s)=>new Promise((o,i)=>{var l=c=>{try{r(s.next(c))}catch(g){i(g)}},u=c=>{try{r(s.throw(c))}catch(g){i(g)}},r=c=>c.done?o(c.value):Promise.resolve(c.value).then(l,u);r((s=s.apply(e,t)).next())});import{t as B,m as U}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/typescript-CWsNTno6.js b/assets/typescript-CmRccRO2.js similarity index 95% rename from assets/typescript-CWsNTno6.js rename to assets/typescript-CmRccRO2.js index 9a1d8991..de27f507 100644 --- a/assets/typescript-CWsNTno6.js +++ b/assets/typescript-CmRccRO2.js @@ -1,4 +1,4 @@ -import{m as a}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +import{m as a}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/useClipboard-BP8y4td2.js b/assets/useClipboard-Cu6jxoh0.js similarity index 85% rename from assets/useClipboard-BP8y4td2.js rename to assets/useClipboard-Cu6jxoh0.js index c7273d6c..40514fcf 100644 --- a/assets/useClipboard-BP8y4td2.js +++ b/assets/useClipboard-Cu6jxoh0.js @@ -1 +1 @@ -import{_ as v}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as y}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{r as p,q as C,t as l,T as x,S as m,P as f,u as o,v as u,x as _,W as b,X as k}from"./vue-chunks-DOWhatC1.js";import"./index-CA0d6hyI.js";import{A as h}from"./element-plus-6v3c1uXT.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const V=()=>{const a=p(!1),n=p(""),s=p(!1);!navigator.clipboard&&!document.execCommand?s.value=!1:s.value=!0;const c=e=>{if(navigator.clipboard){navigator.clipboard.writeText(e).then(()=>{n.value=e,a.value=!0,r()});return}const t=document.createElement("input");t.setAttribute("readonly","readonly"),t.setAttribute("value",e),document.body.appendChild(t),t.select(),t.setSelectionRange(0,9999),document.execCommand("copy")&&(n.value=e,document.execCommand("copy"),a.value=!0,r()),document.body.removeChild(t)},r=()=>{setTimeout(()=>{a.value=!1},1500)};return{copy:c,text:n,copied:a,isSupported:s}},g={key:0},S={key:0},A={key:1},B={key:1},D=C({__name:"useClipboard",setup(a){const{copy:n,copied:s,text:c,isSupported:r}=V(),e=p("");return(t,i)=>(l(),x(o(v),{title:"useClipboard"},{default:m(()=>[f(o(h),{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=d=>e.value=d),placeholder:"请输入要复制的内容"},null,8,["modelValue"]),o(r)?(l(),u("div",g,[f(o(y),{onClick:i[1]||(i[1]=d=>o(n)(e.value)),type:"primary",class:"mt-20px"},{default:m(()=>[o(s)?(l(),u("span",A,"已复制")):(l(),u("span",S,"复制"))]),_:1}),_("p",null,[b(" 当前已复制: "),_("code",null,k(o(c)||"none"),1)])])):(l(),u("p",B,"你的浏览器不支持 Clipboard API"))]),_:1}))}});export{D as default}; +import{_ as v}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as y}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{r as p,q as C,t as l,T as x,S as m,P as f,u as o,v as u,x as _,W as b,X as k}from"./vue-chunks-DOWhatC1.js";import"./index-B5z15nYm.js";import{A as h}from"./element-plus-6v3c1uXT.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const V=()=>{const a=p(!1),n=p(""),s=p(!1);!navigator.clipboard&&!document.execCommand?s.value=!1:s.value=!0;const c=e=>{if(navigator.clipboard){navigator.clipboard.writeText(e).then(()=>{n.value=e,a.value=!0,r()});return}const t=document.createElement("input");t.setAttribute("readonly","readonly"),t.setAttribute("value",e),document.body.appendChild(t),t.select(),t.setSelectionRange(0,9999),document.execCommand("copy")&&(n.value=e,document.execCommand("copy"),a.value=!0,r()),document.body.removeChild(t)},r=()=>{setTimeout(()=>{a.value=!1},1500)};return{copy:c,text:n,copied:a,isSupported:s}},g={key:0},S={key:0},A={key:1},B={key:1},D=C({__name:"useClipboard",setup(a){const{copy:n,copied:s,text:c,isSupported:r}=V(),e=p("");return(t,i)=>(l(),x(o(v),{title:"useClipboard"},{default:m(()=>[f(o(h),{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=d=>e.value=d),placeholder:"请输入要复制的内容"},null,8,["modelValue"]),o(r)?(l(),u("div",g,[f(o(y),{onClick:i[1]||(i[1]=d=>o(n)(e.value)),type:"primary",class:"mt-20px"},{default:m(()=>[o(s)?(l(),u("span",A,"已复制")):(l(),u("span",S,"复制"))]),_:1}),_("p",null,[b(" 当前已复制: "),_("code",null,k(o(c)||"none"),1)])])):(l(),u("p",B,"你的浏览器不支持 Clipboard API"))]),_:1}))}});export{D as default}; diff --git a/assets/useCrudSchemas-CCmfjfoL.js b/assets/useCrudSchemas-B0mS9v28.js similarity index 91% rename from assets/useCrudSchemas-CCmfjfoL.js rename to assets/useCrudSchemas-B0mS9v28.js index a33e7586..5598bf81 100644 --- a/assets/useCrudSchemas-CCmfjfoL.js +++ b/assets/useCrudSchemas-B0mS9v28.js @@ -1 +1 @@ -import{u}from"./useCrudSchemas-B5FzcJ46.js";import{_ as n}from"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import{_ as m}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./index-CA0d6hyI.js";/* empty css */import{n as i,k as r}from"./element-plus-6v3c1uXT.js";import{q as p,K as f,t as c,T as h,S as t,P as l,u as e}from"./vue-chunks-DOWhatC1.js";import"./tree-Dgaev6Pi.js";import"./Icon-Bwi9LaBZ.js";/* empty css *//* empty css */const D=p({__name:"useCrudSchemas",setup(_){const s=f([{field:"selection",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{type:"selection"}},{field:"index",label:"序号",type:"index",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0}},{field:"title",label:"标题",search:{component:"Input"},form:{component:"Input",colProps:{span:24}},detail:{span:24}},{field:"author",label:"作者",search:{hidden:!0}},{field:"display_time",label:"创建时间",search:{hidden:!0},form:{component:"DatePicker",componentProps:{type:"datetime",valueFormat:"YYYY-MM-DD HH:mm:ss"}}},{field:"importance",label:"重要性",search:{hidden:!0},form:{component:"Select",componentProps:{style:{width:"100%"},options:[{label:"重要",value:3},{label:"良好",value:2},{label:"一般",value:1}]}}},{field:"pageviews",label:"阅读数",search:{hidden:!0},form:{component:"InputNumber",value:0}},{field:"content",label:"内容",search:{hidden:!0},table:{show:!1},form:{component:"Editor",colProps:{span:24}},detail:{span:24}},{field:"action",width:"260px",label:"操作",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0}}]),{allSchemas:d}=u(s);return(b,a)=>(c(),h(e(m),{title:"useCrudSchemas"},{default:t(()=>[l(e(i),{gutter:20},{default:t(()=>[l(e(r),{span:24},{default:t(()=>[l(e(m),{title:"原始数据数据",class:"mt-20px"},{default:t(()=>[l(e(n),{modelValue:s,"onUpdate:modelValue":a[0]||(a[0]=o=>s=o)},null,8,["modelValue"])]),_:1})]),_:1}),l(e(r),{span:24},{default:t(()=>[l(e(m),{title:"查询组件数据结构",class:"mt-20px"},{default:t(()=>[l(e(n),{modelValue:e(d).searchSchema,"onUpdate:modelValue":a[1]||(a[1]=o=>e(d).searchSchema=o)},null,8,["modelValue"])]),_:1})]),_:1}),l(e(r),{span:24},{default:t(()=>[l(e(m),{title:"表单组件数据结构",class:"mt-20px"},{default:t(()=>[l(e(n),{modelValue:e(d).formSchema,"onUpdate:modelValue":a[2]||(a[2]=o=>e(d).formSchema=o)},null,8,["modelValue"])]),_:1})]),_:1}),l(e(r),{span:24},{default:t(()=>[l(e(m),{title:"表格组件数据结构",class:"mt-20px"},{default:t(()=>[l(e(n),{modelValue:e(d).tableColumns,"onUpdate:modelValue":a[3]||(a[3]=o=>e(d).tableColumns=o)},null,8,["modelValue"])]),_:1})]),_:1}),l(e(r),{span:24},{default:t(()=>[l(e(m),{title:"详情组件数据结构",class:"mt-20px"},{default:t(()=>[l(e(n),{modelValue:e(d).detailSchema,"onUpdate:modelValue":a[4]||(a[4]=o=>e(d).detailSchema=o)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}))}});export{D as default}; +import{u}from"./useCrudSchemas-B5FzcJ46.js";import{_ as n}from"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import{_ as m}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./index-B5z15nYm.js";/* empty css */import{n as i,k as r}from"./element-plus-6v3c1uXT.js";import{q as p,K as f,t as c,T as h,S as t,P as l,u as e}from"./vue-chunks-DOWhatC1.js";import"./tree-Dgaev6Pi.js";import"./Icon-B-0CON7P.js";/* empty css *//* empty css */const D=p({__name:"useCrudSchemas",setup(_){const s=f([{field:"selection",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0},table:{type:"selection"}},{field:"index",label:"序号",type:"index",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0}},{field:"title",label:"标题",search:{component:"Input"},form:{component:"Input",colProps:{span:24}},detail:{span:24}},{field:"author",label:"作者",search:{hidden:!0}},{field:"display_time",label:"创建时间",search:{hidden:!0},form:{component:"DatePicker",componentProps:{type:"datetime",valueFormat:"YYYY-MM-DD HH:mm:ss"}}},{field:"importance",label:"重要性",search:{hidden:!0},form:{component:"Select",componentProps:{style:{width:"100%"},options:[{label:"重要",value:3},{label:"良好",value:2},{label:"一般",value:1}]}}},{field:"pageviews",label:"阅读数",search:{hidden:!0},form:{component:"InputNumber",value:0}},{field:"content",label:"内容",search:{hidden:!0},table:{show:!1},form:{component:"Editor",colProps:{span:24}},detail:{span:24}},{field:"action",width:"260px",label:"操作",search:{hidden:!0},form:{hidden:!0},detail:{hidden:!0}}]),{allSchemas:d}=u(s);return(b,a)=>(c(),h(e(m),{title:"useCrudSchemas"},{default:t(()=>[l(e(i),{gutter:20},{default:t(()=>[l(e(r),{span:24},{default:t(()=>[l(e(m),{title:"原始数据数据",class:"mt-20px"},{default:t(()=>[l(e(n),{modelValue:s,"onUpdate:modelValue":a[0]||(a[0]=o=>s=o)},null,8,["modelValue"])]),_:1})]),_:1}),l(e(r),{span:24},{default:t(()=>[l(e(m),{title:"查询组件数据结构",class:"mt-20px"},{default:t(()=>[l(e(n),{modelValue:e(d).searchSchema,"onUpdate:modelValue":a[1]||(a[1]=o=>e(d).searchSchema=o)},null,8,["modelValue"])]),_:1})]),_:1}),l(e(r),{span:24},{default:t(()=>[l(e(m),{title:"表单组件数据结构",class:"mt-20px"},{default:t(()=>[l(e(n),{modelValue:e(d).formSchema,"onUpdate:modelValue":a[2]||(a[2]=o=>e(d).formSchema=o)},null,8,["modelValue"])]),_:1})]),_:1}),l(e(r),{span:24},{default:t(()=>[l(e(m),{title:"表格组件数据结构",class:"mt-20px"},{default:t(()=>[l(e(n),{modelValue:e(d).tableColumns,"onUpdate:modelValue":a[3]||(a[3]=o=>e(d).tableColumns=o)},null,8,["modelValue"])]),_:1})]),_:1}),l(e(r),{span:24},{default:t(()=>[l(e(m),{title:"详情组件数据结构",class:"mt-20px"},{default:t(()=>[l(e(n),{modelValue:e(d).detailSchema,"onUpdate:modelValue":a[4]||(a[4]=o=>e(d).detailSchema=o)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}))}});export{D as default}; diff --git a/assets/useForm-CbOF_UB2.js b/assets/useForm-BIADJKAv.js similarity index 96% rename from assets/useForm-CbOF_UB2.js rename to assets/useForm-BIADJKAv.js index 17fcab0a..b1fa7c55 100644 --- a/assets/useForm-CbOF_UB2.js +++ b/assets/useForm-BIADJKAv.js @@ -1 +1 @@ -var o=(i,u,c)=>new Promise((a,l)=>{var t=n=>{try{s(c.next(n))}catch(r){l(r)}},e=n=>{try{s(c.throw(n))}catch(r){l(r)}},s=n=>n.done?a(n.value):Promise.resolve(n.value).then(t,e);s((c=c.apply(i,u)).next())});import{n as y,o as h}from"./index-CA0d6hyI.js";import{r as g,u as d,n as w}from"./vue-chunks-DOWhatC1.js";const F=()=>{const i=g(),u=g(),c=(t,e)=>{i.value=t,u.value=e},a=()=>o(void 0,null,function*(){yield w();const t=d(i);return t||console.error("The form is not registered. Please use the register method to register"),t});return{formRegister:c,formMethods:{setProps:(...e)=>o(void 0,[...e],function*(t={}){const s=yield a();s==null||s.setProps(t),t.model&&(s==null||s.setValues(t.model))}),setValues:t=>o(void 0,null,function*(){const e=yield a();e==null||e.setValues(t)}),setSchema:t=>o(void 0,null,function*(){const e=yield a();e==null||e.setSchema(t)}),addSchema:(t,e)=>o(void 0,null,function*(){const s=yield a();s==null||s.addSchema(t,e)}),delSchema:t=>o(void 0,null,function*(){const e=yield a();e==null||e.delSchema(t)}),getFormData:(t=!0)=>o(void 0,null,function*(){const e=yield a(),s=e==null?void 0:e.formModel;return t?Object.keys(s).reduce((n,r)=>{const m=s[r];return y(m)||(h(m)?Object.keys(m).length>0&&(n[r]=m):n[r]=m),n},{}):s}),getComponentExpose:t=>o(void 0,null,function*(){const e=yield a();return e==null?void 0:e.getComponentExpose(t)}),getFormItemExpose:t=>o(void 0,null,function*(){const e=yield a();return e==null?void 0:e.getFormItemExpose(t)}),getElFormExpose:()=>o(void 0,null,function*(){return yield a(),d(u)}),getFormExpose:()=>o(void 0,null,function*(){return yield a(),d(i)})}}};export{F as u}; +var o=(i,u,c)=>new Promise((a,l)=>{var t=n=>{try{s(c.next(n))}catch(r){l(r)}},e=n=>{try{s(c.throw(n))}catch(r){l(r)}},s=n=>n.done?a(n.value):Promise.resolve(n.value).then(t,e);s((c=c.apply(i,u)).next())});import{n as y,o as h}from"./index-B5z15nYm.js";import{r as g,u as d,n as w}from"./vue-chunks-DOWhatC1.js";const F=()=>{const i=g(),u=g(),c=(t,e)=>{i.value=t,u.value=e},a=()=>o(void 0,null,function*(){yield w();const t=d(i);return t||console.error("The form is not registered. Please use the register method to register"),t});return{formRegister:c,formMethods:{setProps:(...e)=>o(void 0,[...e],function*(t={}){const s=yield a();s==null||s.setProps(t),t.model&&(s==null||s.setValues(t.model))}),setValues:t=>o(void 0,null,function*(){const e=yield a();e==null||e.setValues(t)}),setSchema:t=>o(void 0,null,function*(){const e=yield a();e==null||e.setSchema(t)}),addSchema:(t,e)=>o(void 0,null,function*(){const s=yield a();s==null||s.addSchema(t,e)}),delSchema:t=>o(void 0,null,function*(){const e=yield a();e==null||e.delSchema(t)}),getFormData:(t=!0)=>o(void 0,null,function*(){const e=yield a(),s=e==null?void 0:e.formModel;return t?Object.keys(s).reduce((n,r)=>{const m=s[r];return y(m)||(h(m)?Object.keys(m).length>0&&(n[r]=m):n[r]=m),n},{}):s}),getComponentExpose:t=>o(void 0,null,function*(){const e=yield a();return e==null?void 0:e.getComponentExpose(t)}),getFormItemExpose:t=>o(void 0,null,function*(){const e=yield a();return e==null?void 0:e.getFormItemExpose(t)}),getElFormExpose:()=>o(void 0,null,function*(){return yield a(),d(u)}),getFormExpose:()=>o(void 0,null,function*(){return yield a(),d(i)})}}};export{F as u}; diff --git a/assets/useIcon-Bk4x_lwM.js b/assets/useIcon-Bk4x_lwM.js deleted file mode 100644 index 709a27fa..00000000 --- a/assets/useIcon-Bk4x_lwM.js +++ /dev/null @@ -1 +0,0 @@ -import{I as r}from"./Icon-Bwi9LaBZ.js";import{af as s}from"./vue-chunks-DOWhatC1.js";const m=o=>s(r,o);export{m as u}; diff --git a/assets/useIcon-Dzh8BHEZ.js b/assets/useIcon-Dzh8BHEZ.js new file mode 100644 index 00000000..8fd04669 --- /dev/null +++ b/assets/useIcon-Dzh8BHEZ.js @@ -0,0 +1 @@ +import{I as r}from"./Icon-B-0CON7P.js";import{af as s}from"./vue-chunks-DOWhatC1.js";const m=o=>s(r,o);export{m as u}; diff --git a/assets/useNetwork-CMuHkkRX.js b/assets/useNetwork-CJjsr591.js similarity index 84% rename from assets/useNetwork-CMuHkkRX.js rename to assets/useNetwork-CJjsr591.js index 36eca819..b9b38289 100644 --- a/assets/useNetwork-CMuHkkRX.js +++ b/assets/useNetwork-CJjsr591.js @@ -1 +1 @@ -import{_ as o}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{r,C as i,q as s,t as a,T as c,S as m,W as u,x as d,X as l,u as n}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */const p=()=>{const t=r(!0),e=()=>{t.value=navigator.onLine};return window.addEventListener("online",e),window.addEventListener("offline",e),i(()=>{window.removeEventListener("online",e),window.removeEventListener("offline",e)}),{online:t}},E=s({__name:"useNetwork",setup(t){const{online:e}=p();return(f,w)=>(a(),c(n(o),{title:"useNetwork"},{default:m(()=>[u(" 当前网络状态: "),d("code",null,l(n(e)?"已连接":"已断开"),1)]),_:1}))}});export{E as default}; +import{_ as o}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{r,C as i,q as s,t as a,T as c,S as m,W as u,x as d,X as l,u as n}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */const p=()=>{const t=r(!0),e=()=>{t.value=navigator.onLine};return window.addEventListener("online",e),window.addEventListener("offline",e),i(()=>{window.removeEventListener("online",e),window.removeEventListener("offline",e)}),{online:t}},E=s({__name:"useNetwork",setup(t){const{online:e}=p();return(f,w)=>(a(),c(n(o),{title:"useNetwork"},{default:m(()=>[u(" 当前网络状态: "),d("code",null,l(n(e)?"已连接":"已断开"),1)]),_:1}))}});export{E as default}; diff --git a/assets/useTable-BTK3WtdF.js b/assets/useTable-B7CCRTD1.js similarity index 93% rename from assets/useTable-BTK3WtdF.js rename to assets/useTable-B7CCRTD1.js index 9e1ccb29..f0b4ccc9 100644 --- a/assets/useTable-BTK3WtdF.js +++ b/assets/useTable-B7CCRTD1.js @@ -1 +1 @@ -var o=(l,w,r)=>new Promise((s,c)=>{var f=n=>{try{d(r.next(n))}catch(p){c(p)}},h=n=>{try{d(r.throw(n))}catch(p){c(p)}},d=n=>n.done?s(n.value):Promise.resolve(n.value).then(f,h);d((r=r.apply(l,w)).next())});import"./Table.vue_vue_type_script_lang-DOZk-BCG.js";import"./index-CA0d6hyI.js";/* empty css *//* empty css *//* empty css */import{j as L,E as T}from"./element-plus-6v3c1uXT.js";import{r as m,w as y,u as a,o as b,n as x}from"./vue-chunks-DOWhatC1.js";const S=l=>{const{immediate:w=!0}=l,r=m(!1),s=m(1),c=m(10),f=m(0),h=m([]);y(()=>s.value,()=>{u.getList()}),y(()=>c.value,()=>{a(s)===1||(s.value=1),u.getList()}),b(()=>{w&&u.getList()});const d=m(),n=m(),p=(e,t)=>{d.value=e,n.value=a(t)},g=()=>o(void 0,null,function*(){yield x();const e=a(d);return e||console.error("The table is not registered. Please use the register method to register"),e}),u={getList:()=>o(void 0,null,function*(){r.value=!0;try{const e=yield l==null?void 0:l.fetchDataApi();e&&(h.value=e.list,f.value=e.total||0)}catch(e){}finally{r.value=!1}}),setProps:(...t)=>o(void 0,[...t],function*(e={}){const i=yield g();i==null||i.setProps(e)}),setColumn:e=>o(void 0,null,function*(){const t=yield g();t==null||t.setColumn(e)}),addColumn:(e,t)=>o(void 0,null,function*(){const i=yield g();i==null||i.addColumn(e,t)}),delColumn:e=>o(void 0,null,function*(){const t=yield g();t==null||t.delColumn(e)}),getElTableExpose:()=>o(void 0,null,function*(){return yield g(),a(n)}),refresh:()=>{u.getList()},delList:e=>o(void 0,null,function*(){const{fetchDelApi:t}=l;if(!t){console.warn("fetchDelApi is undefined");return}L.confirm("是否删除所选中数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>o(void 0,null,function*(){if(yield t()){T.success("删除成功");const v=a(f)%a(c)===e||a(c)===1?a(s)>1?a(s)-1:a(s):a(s);s.value=v,u.getList()}}))})};return{tableRegister:p,tableMethods:u,tableState:{currentPage:s,pageSize:c,total:f,dataList:h,loading:r}}};export{S as u}; +var o=(l,w,r)=>new Promise((s,c)=>{var f=n=>{try{d(r.next(n))}catch(p){c(p)}},h=n=>{try{d(r.throw(n))}catch(p){c(p)}},d=n=>n.done?s(n.value):Promise.resolve(n.value).then(f,h);d((r=r.apply(l,w)).next())});import"./Table.vue_vue_type_script_lang-BzBmZLp9.js";import"./index-B5z15nYm.js";/* empty css *//* empty css *//* empty css */import{j as L,E as T}from"./element-plus-6v3c1uXT.js";import{r as m,w as y,u as a,o as b,n as x}from"./vue-chunks-DOWhatC1.js";const S=l=>{const{immediate:w=!0}=l,r=m(!1),s=m(1),c=m(10),f=m(0),h=m([]);y(()=>s.value,()=>{u.getList()}),y(()=>c.value,()=>{a(s)===1||(s.value=1),u.getList()}),b(()=>{w&&u.getList()});const d=m(),n=m(),p=(e,t)=>{d.value=e,n.value=a(t)},g=()=>o(void 0,null,function*(){yield x();const e=a(d);return e||console.error("The table is not registered. Please use the register method to register"),e}),u={getList:()=>o(void 0,null,function*(){r.value=!0;try{const e=yield l==null?void 0:l.fetchDataApi();e&&(h.value=e.list,f.value=e.total||0)}catch(e){}finally{r.value=!1}}),setProps:(...t)=>o(void 0,[...t],function*(e={}){const i=yield g();i==null||i.setProps(e)}),setColumn:e=>o(void 0,null,function*(){const t=yield g();t==null||t.setColumn(e)}),addColumn:(e,t)=>o(void 0,null,function*(){const i=yield g();i==null||i.addColumn(e,t)}),delColumn:e=>o(void 0,null,function*(){const t=yield g();t==null||t.delColumn(e)}),getElTableExpose:()=>o(void 0,null,function*(){return yield g(),a(n)}),refresh:()=>{u.getList()},delList:e=>o(void 0,null,function*(){const{fetchDelApi:t}=l;if(!t){console.warn("fetchDelApi is undefined");return}L.confirm("是否删除所选中数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>o(void 0,null,function*(){if(yield t()){T.success("删除成功");const v=a(f)%a(c)===e||a(c)===1?a(s)>1?a(s)-1:a(s):a(s);s.value=v,u.getList()}}))})};return{tableRegister:p,tableMethods:u,tableState:{currentPage:s,pageSize:c,total:f,dataList:h,loading:r}}};export{S as u}; diff --git a/assets/useTagsView-yfN3e7pq.js b/assets/useTagsView-BLw3Jy7r.js similarity index 92% rename from assets/useTagsView-yfN3e7pq.js rename to assets/useTagsView-BLw3Jy7r.js index faefea8c..690caa6c 100644 --- a/assets/useTagsView-yfN3e7pq.js +++ b/assets/useTagsView-BLw3Jy7r.js @@ -1 +1 @@ -var p=(t,f,r)=>new Promise((n,g)=>{var V=o=>{try{u(r.next(o))}catch(d){g(d)}},T=o=>{try{u(r.throw(o))}catch(d){g(d)}},u=o=>o.done?n(o.value):Promise.resolve(o.value).then(V,T);u((r=r.apply(t,f)).next())});import{s as w}from"./index-CA0d6hyI.js";import{aA as R,d as A,u as i,n as O}from"./vue-chunks-DOWhatC1.js";const y=()=>{const t=w(),{replace:f,currentRoute:r}=R(),n=A(()=>t.getSelectedTag);return{closeAll:e=>{t.delAllViews(),e==null||e()},closeLeft:e=>{t.delLeftViews(i(n)),e==null||e()},closeRight:e=>{t.delRightViews(i(n)),e==null||e()},closeOther:e=>{t.delOthersViews(i(n)),e==null||e()},closeCurrent:(e,s)=>{var h;(h=e==null?void 0:e.meta)!=null&&h.affix||(t.delView(e||i(r)),s==null||s())},refreshPage:(e,s)=>p(void 0,null,function*(){t.delCachedView();const{path:h,query:m}=e||i(r);yield O(),f({path:"/redirect"+h,query:m}),s==null||s()}),setTitle:(e,s)=>{t.setTitle(e,s)}}};export{y as u}; +var p=(t,f,r)=>new Promise((n,g)=>{var V=o=>{try{u(r.next(o))}catch(d){g(d)}},T=o=>{try{u(r.throw(o))}catch(d){g(d)}},u=o=>o.done?n(o.value):Promise.resolve(o.value).then(V,T);u((r=r.apply(t,f)).next())});import{s as w}from"./index-B5z15nYm.js";import{aA as R,d as A,u as i,n as O}from"./vue-chunks-DOWhatC1.js";const y=()=>{const t=w(),{replace:f,currentRoute:r}=R(),n=A(()=>t.getSelectedTag);return{closeAll:e=>{t.delAllViews(),e==null||e()},closeLeft:e=>{t.delLeftViews(i(n)),e==null||e()},closeRight:e=>{t.delRightViews(i(n)),e==null||e()},closeOther:e=>{t.delOthersViews(i(n)),e==null||e()},closeCurrent:(e,s)=>{var h;(h=e==null?void 0:e.meta)!=null&&h.affix||(t.delView(e||i(r)),s==null||s())},refreshPage:(e,s)=>p(void 0,null,function*(){t.delCachedView();const{path:h,query:m}=e||i(r);yield O(),f({path:"/redirect"+h,query:m}),s==null||s()}),setTitle:(e,s)=>{t.setTitle(e,s)}}};export{y as u}; diff --git a/assets/useTagsView-BzxN2HZN.js b/assets/useTagsView-Dn5Mz9ts.js similarity index 80% rename from assets/useTagsView-BzxN2HZN.js rename to assets/useTagsView-Dn5Mz9ts.js index a8fb0da8..77b03f69 100644 --- a/assets/useTagsView-BzxN2HZN.js +++ b/assets/useTagsView-Dn5Mz9ts.js @@ -1 +1 @@ -import{_ as k}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as s}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{u as b}from"./useTagsView-yfN3e7pq.js";import{q as w,aA as V,t as x,T as A,S as e,P as a,u as t,W as o}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */const j=w({__name:"useTagsView",setup(R){const{push:r}=V(),{closeAll:l,closeLeft:c,closeRight:n,closeOther:p,closeCurrent:m,refreshPage:u,setTitle:i}=b(),f=()=>{l(()=>{r("/dashboard/analysis")})},_=()=>{c()},d=()=>{n()},y=()=>{p()},T=()=>{u()},h=()=>{m(void 0,()=>{r("/dashboard/analysis")})},C=()=>{i(new Date().getTime().toString())},g=()=>{i(`分析页-${new Date().getTime().toString()}`,"/dashboard/analysis")};return(S,$)=>(x(),A(t(k),{title:"useTagsView"},{default:e(()=>[a(t(s),{type:"primary",onClick:f},{default:e(()=>[o(" 关闭所有标签页 ")]),_:1}),a(t(s),{type:"primary",onClick:_},{default:e(()=>[o(" 关闭左侧标签页 ")]),_:1}),a(t(s),{type:"primary",onClick:d},{default:e(()=>[o(" 关闭右侧标签页 ")]),_:1}),a(t(s),{type:"primary",onClick:y},{default:e(()=>[o(" 关闭其他标签页 ")]),_:1}),a(t(s),{type:"primary",onClick:h},{default:e(()=>[o(" 关闭当前标签页 ")]),_:1}),a(t(s),{type:"primary",onClick:T},{default:e(()=>[o(" 刷新当前标签页 ")]),_:1}),a(t(s),{type:"primary",onClick:C},{default:e(()=>[o(" 修改当前标题 ")]),_:1}),a(t(s),{type:"primary",onClick:g},{default:e(()=>[o(" 修改分析页标题 ")]),_:1})]),_:1}))}});export{j as default}; +import{_ as k}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as s}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{u as b}from"./useTagsView-BLw3Jy7r.js";import{q as w,aA as V,t as x,T as A,S as e,P as a,u as t,W as o}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */const j=w({__name:"useTagsView",setup(R){const{push:r}=V(),{closeAll:l,closeLeft:c,closeRight:n,closeOther:p,closeCurrent:m,refreshPage:u,setTitle:i}=b(),f=()=>{l(()=>{r("/dashboard/analysis")})},_=()=>{c()},d=()=>{n()},y=()=>{p()},T=()=>{u()},h=()=>{m(void 0,()=>{r("/dashboard/analysis")})},C=()=>{i(new Date().getTime().toString())},g=()=>{i(`分析页-${new Date().getTime().toString()}`,"/dashboard/analysis")};return(S,$)=>(x(),A(t(k),{title:"useTagsView"},{default:e(()=>[a(t(s),{type:"primary",onClick:f},{default:e(()=>[o(" 关闭所有标签页 ")]),_:1}),a(t(s),{type:"primary",onClick:_},{default:e(()=>[o(" 关闭左侧标签页 ")]),_:1}),a(t(s),{type:"primary",onClick:d},{default:e(()=>[o(" 关闭右侧标签页 ")]),_:1}),a(t(s),{type:"primary",onClick:y},{default:e(()=>[o(" 关闭其他标签页 ")]),_:1}),a(t(s),{type:"primary",onClick:h},{default:e(()=>[o(" 关闭当前标签页 ")]),_:1}),a(t(s),{type:"primary",onClick:T},{default:e(()=>[o(" 刷新当前标签页 ")]),_:1}),a(t(s),{type:"primary",onClick:C},{default:e(()=>[o(" 修改当前标题 ")]),_:1}),a(t(s),{type:"primary",onClick:g},{default:e(()=>[o(" 修改分析页标题 ")]),_:1})]),_:1}))}});export{j as default}; diff --git a/assets/useValidator-BeCBBrXu.js b/assets/useValidator-DdhWBLrm.js similarity index 73% rename from assets/useValidator-BeCBBrXu.js rename to assets/useValidator-DdhWBLrm.js index 4f6c5fee..d284ddcc 100644 --- a/assets/useValidator-BeCBBrXu.js +++ b/assets/useValidator-DdhWBLrm.js @@ -1 +1 @@ -var d=(s,m,t)=>new Promise((a,i)=>{var n=e=>{try{o(t.next(e))}catch(r){i(r)}},p=e=>{try{o(t.throw(e))}catch(r){i(r)}},o=e=>e.done?a(e.value):Promise.resolve(e.value).then(n,p);o((t=t.apply(s,m)).next())});import{_ as I}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{F as b}from"./Form-DJ57xbBt.js";import{u as V}from"./useValidator-Nt61Jv1p.js";import{u as x}from"./useForm-CbOF_UB2.js";import{q as F,K as u,t as R,T as S,S as w,P as C,u as l}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";import"./index-CA0d6hyI.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-DWJU-_1D.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-D5o-63rw.js";import"./style.css_vue_type_style_index_0_src_true_lang-C00Ir7Fy.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-DIzJ65Rk.js";import"./IconPicker-Cmmw5lYe.js";/* empty css */const ee=F({__name:"useValidator",setup(s){const{formRegister:m,formMethods:t}=x(),{getFormData:a}=t,{required:i,lengthRange:n,notSpace:p,notSpecialCharacters:o}=V(),e=u([{field:"field1",label:"必填",component:"Input"},{field:"field2",label:"长度范围",component:"Input"},{field:"field3",label:"不能有空格",component:"Input"},{field:"field4",label:"不能有特殊字符",component:"Input"},{field:"field5",label:"是否相等-值1",component:"Input"},{field:"field6",label:"是否相等-值2",component:"Input"}]),r=u({field1:[i()],field2:[n({min:2,max:5})],field3:[p()],field4:[o()],field5:[{asyncValidator:(_,f,c)=>d(this,null,function*(){const h=yield a(),{field6:g}=h;f!==g?c(new Error("两个值不相等")):c()})}]});return(_,f)=>(R(),S(l(I),{title:"useValidator"},{default:w(()=>[C(l(b),{schema:e,rules:r,onRegister:l(m)},null,8,["schema","rules","onRegister"])]),_:1}))}});export{ee as default}; +var d=(s,m,t)=>new Promise((a,i)=>{var n=e=>{try{o(t.next(e))}catch(r){i(r)}},p=e=>{try{o(t.throw(e))}catch(r){i(r)}},o=e=>e.done?a(e.value):Promise.resolve(e.value).then(n,p);o((t=t.apply(s,m)).next())});import{_ as I}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{F as b}from"./Form-B3fdtaFM.js";import{u as V}from"./useValidator-Nt61Jv1p.js";import{u as x}from"./useForm-BIADJKAv.js";import{q as F,K as u,t as R,T as S,S as w,P as C,u as l}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";import"./index-B5z15nYm.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-radio-button-BbBORUw9.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./InputPassword-C8AimXzj.js";import"./style.css_vue_type_style_index_0_src_true_lang-DOwGsii-.js";import"./wang-editor-DjPKVaXS.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-CsPr_qJJ.js";import"./IconPicker-WxbdLOo_.js";/* empty css */const ee=F({__name:"useValidator",setup(s){const{formRegister:m,formMethods:t}=x(),{getFormData:a}=t,{required:i,lengthRange:n,notSpace:p,notSpecialCharacters:o}=V(),e=u([{field:"field1",label:"必填",component:"Input"},{field:"field2",label:"长度范围",component:"Input"},{field:"field3",label:"不能有空格",component:"Input"},{field:"field4",label:"不能有特殊字符",component:"Input"},{field:"field5",label:"是否相等-值1",component:"Input"},{field:"field6",label:"是否相等-值2",component:"Input"}]),r=u({field1:[i()],field2:[n({min:2,max:5})],field3:[p()],field4:[o()],field5:[{asyncValidator:(_,f,c)=>d(this,null,function*(){const h=yield a(),{field6:g}=h;f!==g?c(new Error("两个值不相等")):c()})}]});return(_,f)=>(R(),S(l(I),{title:"useValidator"},{default:w(()=>[C(l(b),{schema:e,rules:r,onRegister:l(m)},null,8,["schema","rules","onRegister"])]),_:1}))}});export{ee as default}; diff --git a/assets/useWatermark-CPkIKVZd.js b/assets/useWatermark-CEKtVccT.js similarity index 83% rename from assets/useWatermark-CPkIKVZd.js rename to assets/useWatermark-CEKtVccT.js index c2e1a76e..7bef1ed2 100644 --- a/assets/useWatermark-CPkIKVZd.js +++ b/assets/useWatermark-CEKtVccT.js @@ -1 +1 @@ -import{_ as g}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import{_ as c}from"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";import{u as k}from"./index-CA0d6hyI.js";import{q as x,d as _,C as h,t as v,T as w,S as m,P as u,u as a,W as p}from"./vue-chunks-DOWhatC1.js";import"./Icon-Bwi9LaBZ.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */const C=Symbol("watermark-dom");function W(d=document.body){let i=()=>{};const r=C.toString(),s=()=>{const e=document.getElementById(r);if(e){const t=d;t&&t.removeChild(e)}window.removeEventListener("resize",i)},l=e=>{s();const t=document.createElement("canvas");t.width=300,t.height=240;const o=t.getContext("2d");o&&(o.rotate(-20*Math.PI/120),o.font="15px Vedana",o.fillStyle="rgba(0, 0, 0, 0.15)",o.textAlign="left",o.textBaseline="middle",o.fillText(e,t.width/20,t.height));const n=document.createElement("div");n.id=r,n.style.pointerEvents="none",n.style.top="0px",n.style.left="0px",n.style.position="absolute",n.style.zIndex="100000000",n.style.width=document.documentElement.clientWidth+"px",n.style.height=document.documentElement.clientHeight+"px",n.style.background="url("+t.toDataURL("image/png")+") left top repeat";const y=d;return y&&y.appendChild(n),r};function f(e){l(e),i=()=>{l(e)},window.addEventListener("resize",i)}return{setWatermark:f,clear:s}}const L=x({__name:"useWatermark",setup(d){const i=k(),r=_(()=>i.getTitle),{setWatermark:s,clear:l}=W();return h(()=>{l()}),(f,e)=>(v(),w(a(g),{title:"useWatermark"},{default:m(()=>[u(a(c),{type:"primary",onClick:e[0]||(e[0]=t=>a(s)(r.value))},{default:m(()=>[p(" 创建水印 ")]),_:1}),u(a(c),{type:"danger",onClick:a(l)},{default:m(()=>[p("清除水印")]),_:1},8,["onClick"]),u(a(c),{type:"warning",onClick:e[1]||(e[1]=t=>a(s)(`New${r.value}`))},{default:m(()=>[p(" 重置水印 ")]),_:1})]),_:1}))}});export{L as default}; +import{_ as g}from"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import{_ as c}from"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";import{u as k}from"./index-B5z15nYm.js";import{q as x,d as _,C as h,t as v,T as w,S as m,P as u,u as a,W as p}from"./vue-chunks-DOWhatC1.js";import"./Icon-B-0CON7P.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css */const C=Symbol("watermark-dom");function W(d=document.body){let i=()=>{};const r=C.toString(),s=()=>{const e=document.getElementById(r);if(e){const t=d;t&&t.removeChild(e)}window.removeEventListener("resize",i)},l=e=>{s();const t=document.createElement("canvas");t.width=300,t.height=240;const o=t.getContext("2d");o&&(o.rotate(-20*Math.PI/120),o.font="15px Vedana",o.fillStyle="rgba(0, 0, 0, 0.15)",o.textAlign="left",o.textBaseline="middle",o.fillText(e,t.width/20,t.height));const n=document.createElement("div");n.id=r,n.style.pointerEvents="none",n.style.top="0px",n.style.left="0px",n.style.position="absolute",n.style.zIndex="100000000",n.style.width=document.documentElement.clientWidth+"px",n.style.height=document.documentElement.clientHeight+"px",n.style.background="url("+t.toDataURL("image/png")+") left top repeat";const y=d;return y&&y.appendChild(n),r};function f(e){l(e),i=()=>{l(e)},window.addEventListener("resize",i)}return{setWatermark:f,clear:s}}const L=x({__name:"useWatermark",setup(d){const i=k(),r=_(()=>i.getTitle),{setWatermark:s,clear:l}=W();return h(()=>{l()}),(f,e)=>(v(),w(a(g),{title:"useWatermark"},{default:m(()=>[u(a(c),{type:"primary",onClick:e[0]||(e[0]=t=>a(s)(r.value))},{default:m(()=>[p(" 创建水印 ")]),_:1}),u(a(c),{type:"danger",onClick:a(l)},{default:m(()=>[p("清除水印")]),_:1},8,["onClick"]),u(a(c),{type:"warning",onClick:e[1]||(e[1]=t=>a(s)(`New${r.value}`))},{default:m(()=>[p(" 重置水印 ")]),_:1})]),_:1}))}});export{L as default}; diff --git a/assets/xml-V1f6_0Ts.js b/assets/xml-DuoFp11i.js similarity index 91% rename from assets/xml-V1f6_0Ts.js rename to assets/xml-DuoFp11i.js index c4e0ce41..bc734bb1 100644 --- a/assets/xml-V1f6_0Ts.js +++ b/assets/xml-DuoFp11i.js @@ -1,4 +1,4 @@ -import{m}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +import{m}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/assets/yaml-5FzXFp3g.js b/assets/yaml-CxJ23TtR.js similarity index 94% rename from assets/yaml-5FzXFp3g.js rename to assets/yaml-CxJ23TtR.js index 35db37d5..e51ca4e9 100644 --- a/assets/yaml-5FzXFp3g.js +++ b/assets/yaml-CxJ23TtR.js @@ -1,4 +1,4 @@ -import{m as l}from"./CodeEditor-IM9M_0kv.js";import"./index-CA0d6hyI.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DXbcbkQE.js";import"./Icon-Bwi9LaBZ.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-Bp_PHKxM.js";/* empty css *//*!----------------------------------------------------------------------------- +import{m as l}from"./CodeEditor-SFUUr4rV.js";import"./index-B5z15nYm.js";import"./vue-chunks-DOWhatC1.js";import"./element-plus-6v3c1uXT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./ContentWrap.vue_vue_type_script_setup_true_lang-DYZxC2R9.js";import"./Icon-B-0CON7P.js";/* empty css */import"./Button.vue_vue_type_script_setup_true_lang-CpeHQm5f.js";/* empty css *//*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670) * Released under the MIT license diff --git a/index.html b/index.html index d5c73310..33d8eef0 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ MicroBuild - +