hs-admin-ui 2.2.4 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{401-D6l3Unb4.js → 401-CfLM6WH7.js} +1 -1
- package/dist/401-CfLM6WH7.js.gz +0 -0
- package/dist/{401-Cm4UyHrn.mjs → 401-Cun3MTXC.mjs} +1 -1
- package/dist/401-Cun3MTXC.mjs.gz +0 -0
- package/dist/{404-B3qRvGDM.js → 404-CcoeOHeS.js} +1 -1
- package/dist/{404-B3qRvGDM.js.gz → 404-CcoeOHeS.js.gz} +0 -0
- package/dist/{404-CA1GQT7h.mjs → 404-k4KphiRR.mjs} +1 -1
- package/dist/{404-CA1GQT7h.mjs.gz → 404-k4KphiRR.mjs.gz} +0 -0
- package/dist/{account-B57RnX3H.js → account-1PKxeK_7.js} +1 -1
- package/dist/account-1PKxeK_7.js.gz +0 -0
- package/dist/{account-pKq4HqKN.mjs → account-CzH5PDaz.mjs} +2 -2
- package/dist/account-CzH5PDaz.mjs.gz +0 -0
- package/dist/{aside-BFJ4lSlj.js → aside-D7Vr6O0Z.js} +1 -1
- package/dist/aside-D7Vr6O0Z.js.gz +0 -0
- package/dist/{aside-BipyY6_z.mjs → aside-I_lJ7rju.mjs} +2 -2
- package/dist/aside-I_lJ7rju.mjs.gz +0 -0
- package/dist/{btnIndex-_CFMTzst.js → btnIndex-Bz8myWJK.js} +1 -1
- package/dist/btnIndex-Bz8myWJK.js.gz +0 -0
- package/dist/{btnIndex-CNxW_dBl.mjs → btnIndex-CkxGoXkE.mjs} +2 -2
- package/dist/btnIndex-CkxGoXkE.mjs.gz +0 -0
- package/dist/{classic-CKATtEZS.mjs → classic-CEPuUa2H.mjs} +2 -2
- package/dist/classic-CEPuUa2H.mjs.gz +0 -0
- package/dist/{classic-NOJ-HTWr.js → classic-CrWjP_IM.js} +1 -1
- package/dist/classic-CrWjP_IM.js.gz +0 -0
- package/dist/{columns-68FUwhRr.js → columns-B1vdVSAM.js} +1 -1
- package/dist/columns-B1vdVSAM.js.gz +0 -0
- package/dist/{columns-Bm-jMXAe.mjs → columns-DEYDMw1w.mjs} +2 -2
- package/dist/columns-DEYDMw1w.mjs.gz +0 -0
- package/dist/{columnsAside-CHeVzmfv.mjs → columnsAside-CjoEPwUK.mjs} +1 -1
- package/dist/columnsAside-CjoEPwUK.mjs.gz +0 -0
- package/dist/{columnsAside-C_bzgzl4.js → columnsAside-JPXV7D9u.js} +1 -1
- package/dist/columnsAside-JPXV7D9u.js.gz +0 -0
- package/dist/{contextmenu-D7XW_CY4.js → contextmenu-B2n5Dtdz.js} +1 -1
- package/dist/contextmenu-B2n5Dtdz.js.gz +0 -0
- package/dist/{contextmenu-BXMFHFYb.mjs → contextmenu-BAtlpgER.mjs} +1 -1
- package/dist/contextmenu-BAtlpgER.mjs.gz +0 -0
- package/dist/{contextmenu-BxiGYFGk.mjs → contextmenu-BCX56_aI.mjs} +1 -1
- package/dist/contextmenu-BCX56_aI.mjs.gz +0 -0
- package/dist/{contextmenu-Dauo34Cy.js → contextmenu-BXgo7Ntb.js} +1 -1
- package/dist/contextmenu-BXgo7Ntb.js.gz +0 -0
- package/dist/{defaults-Ddv2dnHZ.mjs → defaults-C8laL7Ou.mjs} +2 -2
- package/dist/defaults-C8laL7Ou.mjs.gz +0 -0
- package/dist/{defaults-CJ2HPmTX.js → defaults-CEzunuUI.js} +1 -1
- package/dist/defaults-CEzunuUI.js.gz +0 -0
- package/dist/{dialog-CclJ9_n4.js → dialog-B4Bwkm8E.js} +1 -1
- package/dist/{dialog-DUxJQXbo.mjs → dialog-B9SRMPgQ.mjs} +1 -1
- package/dist/{dialog-jRenVFMG.mjs → dialog-Bbn6o44u.mjs} +1 -1
- package/dist/{dialog-DuZBbr3m.js → dialog-C9HUqHYx.js} +1 -1
- package/dist/{dialog-Bs3XboR8.js → dialog-Cce1OIMj.js} +1 -1
- package/dist/{dialog-C6MMF0gM.mjs → dialog-D30oaEGV.mjs} +1 -1
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-igKXmwB7.js → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CbiBkPfd.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CbiBkPfd.js.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BZLt8B3r.mjs → dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-QlrMQfpU.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-QlrMQfpU.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Pb40L0Zu.mjs → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B0sWHm4I.mjs} +2 -2
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-B0sWHm4I.mjs.gz +0 -0
- package/dist/{dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BPUgQqge.js → dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D6N8a_LH.js} +1 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D6N8a_LH.js.gz +0 -0
- package/dist/{dictDialog-CA4Puoj-.mjs → dictDialog-CgDPhdER.mjs} +1 -1
- package/dist/{dictDialog-NJ28vIBx.js → dictDialog-D7pazvEQ.js} +1 -1
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CjbyqsgR.mjs → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B89gie0N.mjs} +2 -2
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B89gie0N.mjs.gz +0 -0
- package/dist/{dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-2xZ7Kxhc.js → dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BlxkwR_A.js} +1 -1
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BlxkwR_A.js.gz +0 -0
- package/dist/{dictItemDialog-B2P_6G0z.js → dictItemDialog-Dcx18sd_.js} +1 -1
- package/dist/{dictItemDialog-z2YfShd9.mjs → dictItemDialog-Dx6anC5B.mjs} +1 -1
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CCmvifc1.mjs → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-1d7vIJM1.mjs} +2 -2
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-1d7vIJM1.mjs.gz +0 -0
- package/dist/{dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-BbIu_DVU.js → dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CaxwkLoY.js} +1 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CaxwkLoY.js.gz +0 -0
- package/dist/{formConfig-BPG_7hFq.mjs → formConfig-DYAYQGak.mjs} +4 -4
- package/dist/formConfig-DYAYQGak.mjs.gz +0 -0
- package/dist/{formConfig-B3MAF6PS.js → formConfig-GV4uhMCL.js} +1 -1
- package/dist/formConfig-GV4uhMCL.js.gz +0 -0
- package/dist/{header-KI2DnoP3.js → header-C1S7MySl.js} +1 -1
- package/dist/{header-DCG_G8q3.mjs → header-DX7DURZX.mjs} +2 -2
- package/dist/{horizontal-DT1F2rLG.js → horizontal-C6R4ZlIa.js} +1 -1
- package/dist/horizontal-C6R4ZlIa.js.gz +0 -0
- package/dist/{horizontal-aFfUDBOz.mjs → horizontal-v-bXaMzq.mjs} +2 -2
- package/dist/horizontal-v-bXaMzq.mjs.gz +0 -0
- package/dist/{hsAttrBtn-BH0cuz4r.js → hsAttrBtn-CcHqAUON.js} +1 -1
- package/dist/{hsAttrBtn-rYIFelJu.mjs → hsAttrBtn-DrVvi1sX.mjs} +1 -1
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-CjXZnTCg.js → hsAttrBtn.vue_vue_type_script_setup_true_lang-CUTGBLIe.js} +1 -1
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CUTGBLIe.js.gz +0 -0
- package/dist/{hsAttrBtn.vue_vue_type_script_setup_true_lang-b4QE9Bu3.mjs → hsAttrBtn.vue_vue_type_script_setup_true_lang-Dwn3Hp7r.mjs} +2 -2
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-Dwn3Hp7r.mjs.gz +0 -0
- package/dist/{hsAttrForm-CgRTvVte.js → hsAttrForm-B3fjZ9EY.js} +1 -1
- package/dist/{hsAttrForm-Bfbc4aHf.mjs → hsAttrForm-CFVMqhQQ.mjs} +1 -1
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-Dxu7KOpO.mjs → hsAttrForm.vue_vue_type_script_setup_true_lang-CFVqs0sf.mjs} +1 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-CFVqs0sf.mjs.gz +0 -0
- package/dist/{hsAttrForm.vue_vue_type_script_setup_true_lang-l29DG4ig.js → hsAttrForm.vue_vue_type_script_setup_true_lang-Cnsq-Cds.js} +1 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-Cnsq-Cds.js.gz +0 -0
- package/dist/{hsBtnConfigList-B25X91pB.mjs → hsBtnConfigList-Bucyq_Zm.mjs} +1 -1
- package/dist/hsBtnConfigList-Bucyq_Zm.mjs.gz +0 -0
- package/dist/{hsBtnConfigList-D9TwUBcq.js → hsBtnConfigList-CsCYFm4N.js} +1 -1
- package/dist/hsBtnConfigList-CsCYFm4N.js.gz +0 -0
- package/dist/{hsBtnItemConfig-BEGYgi3f.js → hsBtnItemConfig-DcIU6wwA.js} +1 -1
- package/dist/{hsBtnItemConfig-DBfwVFBb.mjs → hsBtnItemConfig-Drf6oJTj.mjs} +1 -1
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Cw2IYU_M.js → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B_hhkoY4.js} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-B_hhkoY4.js.gz +0 -0
- package/dist/{hsBtnItemConfig.vue_vue_type_script_setup_true_lang-txh00e1O.mjs → hsBtnItemConfig.vue_vue_type_script_setup_true_lang-C4_lQVed.mjs} +1 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-C4_lQVed.mjs.gz +0 -0
- package/dist/{hsBtnPanel-BrPIcTvd.mjs → hsBtnPanel-D3wIUFwc.mjs} +1 -1
- package/dist/{hsBtnPanel-CP7nQo2Q.js → hsBtnPanel-Go96-KhU.js} +1 -1
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-APJdBVGe.js → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Bc-7XPLf.js} +1 -1
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Bc-7XPLf.js.gz +0 -0
- package/dist/{hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DMfm0_Kx.mjs → hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CwjW8ydY.mjs} +3 -3
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CwjW8ydY.mjs.gz +0 -0
- package/dist/{hsFormConfig-B0lcPvQP.mjs → hsFormConfig-B99s9AUh.mjs} +1 -1
- package/dist/hsFormConfig-B99s9AUh.mjs.gz +0 -0
- package/dist/{hsFormConfig-CecEDFow.js → hsFormConfig-MelVfyHT.js} +1 -1
- package/dist/hsFormConfig-MelVfyHT.js.gz +0 -0
- package/dist/{hsFormConfigList-D7MlbViU.mjs → hsFormConfigList-BsZrc70G.mjs} +2 -2
- package/dist/hsFormConfigList-BsZrc70G.mjs.gz +0 -0
- package/dist/{hsFormConfigList-DEj0r0Vr.js → hsFormConfigList-DUMEyT9a.js} +1 -1
- package/dist/hsFormConfigList-DUMEyT9a.js.gz +0 -0
- package/dist/{hsFormPanel-BzsiWHQZ.mjs → hsFormPanel-qrS_oa01.mjs} +1 -1
- package/dist/{hsFormPanel-6lc0vAEc.js → hsFormPanel-ubBOd8Ji.js} +1 -1
- package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CPToLhnk.js → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-B_zebMFQ.js} +1 -1
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-B_zebMFQ.js.gz +0 -0
- package/dist/{hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CdRRdqQg.mjs → hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DzihTz51.mjs} +4 -4
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DzihTz51.mjs.gz +0 -0
- package/dist/{hsFormParse-Bzp9x_cX.mjs → hsFormParse-B0CoTODY.mjs} +1 -1
- package/dist/{hsFormParse-BciTLUfe.js → hsFormParse-BqvuR4h_.js} +1 -1
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-DX4qa-Zb.mjs → hsFormParse.vue_vue_type_script_setup_true_lang-BaHwwUyQ.mjs} +1 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-BaHwwUyQ.mjs.gz +0 -0
- package/dist/{hsFormParse.vue_vue_type_script_setup_true_lang-BaLOgBNw.js → hsFormParse.vue_vue_type_script_setup_true_lang-DQUP3s9d.js} +1 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-DQUP3s9d.js.gz +0 -0
- package/dist/{hsPageTree-vlGsEBXY.js → hsPageTree-Bd3avbkB.js} +1 -1
- package/dist/hsPageTree-Bd3avbkB.js.gz +0 -0
- package/dist/{hsPageTree-hpLDC3zN.mjs → hsPageTree-CukJJJXK.mjs} +1 -1
- package/dist/hsPageTree-CukJJJXK.mjs.gz +0 -0
- package/dist/{hsPanelItem-B_8F-Ukv.js → hsPanelItem-noIY66Yx.js} +1 -1
- package/dist/{hsPanelItem-D30TgiTX.mjs → hsPanelItem-ugmQSOUM.mjs} +1 -1
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-B1wJnJ60.js → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BSHigBuz.js} +1 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BSHigBuz.js.gz +0 -0
- package/dist/{hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-B4oHtBbk.mjs → hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Bs4FCVqU.mjs} +1 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Bs4FCVqU.mjs.gz +0 -0
- package/dist/{iframes-CvxO6Lj3.js → iframes-DdCTj3CZ.js} +1 -1
- package/dist/iframes-DdCTj3CZ.js.gz +0 -0
- package/dist/{iframes-blud4JrX.mjs → iframes-DmBFeSjH.mjs} +1 -1
- package/dist/iframes-DmBFeSjH.mjs.gz +0 -0
- package/dist/{index-DoT9PNfG.js → index-4r5ZB9cs.js} +1 -1
- package/dist/index-4r5ZB9cs.js.gz +0 -0
- package/dist/{index-U2H8QC50.js → index-5zXl58Tz.js} +1 -1
- package/dist/{index-D64hfGEl.mjs → index-7df-WHv-.mjs} +1 -1
- package/dist/index-7df-WHv-.mjs.gz +0 -0
- package/dist/{index-DKJ9LDEF.js → index-7lQEvbtn.js} +1 -1
- package/dist/index-7lQEvbtn.js.gz +0 -0
- package/dist/{index-CbM_l6Nj.js → index-B-Eg6l8q.js} +1 -1
- package/dist/index-B-Eg6l8q.js.gz +0 -0
- package/dist/{index-SMRmfcCL.js → index-B2PwQC_6.js} +1 -1
- package/dist/index-B2PwQC_6.js.gz +0 -0
- package/dist/{index-cNqIeJU8.js → index-B4-Ke0GZ.js} +1 -1
- package/dist/index-B4-Ke0GZ.js.gz +0 -0
- package/dist/{index-BE-kSt8Y.js → index-BHYn3GNI.js} +1 -1
- package/dist/index-BHYn3GNI.js.gz +0 -0
- package/dist/{index-Co2gmRjp.mjs → index-BMQ796Bz.mjs} +1 -1
- package/dist/{index-BQTHVFa3.js → index-BR2px8jA.js} +1 -1
- package/dist/index-BTCXQAP3.mjs +4 -0
- package/dist/{index-8MWXdSI-.js → index-BTaKPMar.js} +1 -1
- package/dist/index-BTaKPMar.js.gz +0 -0
- package/dist/{index-CCmz_XIl.mjs → index-B_h8ZAne.mjs} +3 -3
- package/dist/index-B_h8ZAne.mjs.gz +0 -0
- package/dist/{index-BwgiaR1S.js → index-BbJ8MHko.js} +1 -1
- package/dist/{index-Dcne6FCJ.mjs → index-Bc-fRdhv.mjs} +2 -2
- package/dist/index-Bc-fRdhv.mjs.gz +0 -0
- package/dist/{index-DAJ8ikd6.mjs → index-BeYOwFxC.mjs} +1 -1
- package/dist/{index-DVHIwOv_.js → index-BfPtsfHa.js} +1 -1
- package/dist/index-BfPtsfHa.js.gz +0 -0
- package/dist/{index-DIkniZUQ.mjs → index-Bk_Bibrm.mjs} +2 -2
- package/dist/index-Bk_Bibrm.mjs.gz +0 -0
- package/dist/{index-COgShkx_.js → index-BmYVvVkl.js} +1 -1
- package/dist/index-BmYVvVkl.js.gz +0 -0
- package/dist/{index-CNgExBuO.mjs → index-BpQ_DNWJ.mjs} +1 -1
- package/dist/{index-dflG63Zo.mjs → index-Bp_MAzQk.mjs} +1 -1
- package/dist/index-Bp_MAzQk.mjs.gz +0 -0
- package/dist/{index-BLuJaNV9.js → index-BrchYVm1.js} +1 -1
- package/dist/index-BrchYVm1.js.gz +0 -0
- package/dist/{index-D6sihOkL.js → index-Bs3TRy7q.js} +1 -1
- package/dist/index-Bs3TRy7q.js.gz +0 -0
- package/dist/{index-CvXaWbRB.mjs → index-BxyxxBUJ.mjs} +1 -1
- package/dist/{index-Dgj_B9pZ.mjs → index-C0bhinuI.mjs} +5 -5
- package/dist/index-C0bhinuI.mjs.gz +0 -0
- package/dist/{index-BF9dxtfp.mjs → index-C28bdj7T.mjs} +1 -1
- package/dist/index-C28bdj7T.mjs.gz +0 -0
- package/dist/{index-FPVl9WA3.mjs → index-C2I1yeVt.mjs} +1 -1
- package/dist/index-C2I1yeVt.mjs.gz +0 -0
- package/dist/{index-CkpVIxXC.js → index-CB7gW8Xu.js} +1 -1
- package/dist/index-CB7gW8Xu.js.gz +0 -0
- package/dist/{index-ByDIOlcY.mjs → index-CP8sAvTX.mjs} +1 -1
- package/dist/index-CP8sAvTX.mjs.gz +0 -0
- package/dist/{index-CWSIXTky.js → index-Ca7FHcOS.js} +1 -1
- package/dist/index-Ca7FHcOS.js.gz +0 -0
- package/dist/{index-CjK4GO4m.js → index-CaO9lSwL.js} +1 -1
- package/dist/index-CaO9lSwL.js.gz +0 -0
- package/dist/{index-CbYnG5Q_.js → index-CeHiLq3D.js} +1 -1
- package/dist/index-CeHiLq3D.js.gz +0 -0
- package/dist/{index-DZH7vLi7.mjs → index-Cg_cfju4.mjs} +1 -1
- package/dist/index-Cg_cfju4.mjs.gz +0 -0
- package/dist/{index-ZxKUeU_7.js → index-CkTMcpu6.js} +1 -1
- package/dist/index-CkTMcpu6.js.gz +0 -0
- package/dist/{index-DloRTwVf.mjs → index-CkrArmN8.mjs} +2 -2
- package/dist/index-CkrArmN8.mjs.gz +0 -0
- package/dist/{index-DMCgUPNZ.js → index-ClnvgeEO.js} +49 -49
- package/dist/index-ClnvgeEO.js.gz +0 -0
- package/dist/{index-CtPDlvs7.js → index-Cn419mF_.js} +1 -1
- package/dist/{index-Cq4f9Irw.mjs → index-CpRNYfzm.mjs} +8678 -8658
- package/dist/index-CpRNYfzm.mjs.gz +0 -0
- package/dist/{index-BJs_Pwun.js → index-CqRKfMTy.js} +1 -1
- package/dist/index-CqRKfMTy.js.gz +0 -0
- package/dist/{index-CLzknAqK.mjs → index-D-6XsX6z.mjs} +4 -4
- package/dist/index-D-6XsX6z.mjs.gz +0 -0
- package/dist/{index-BswExGya.js → index-D32cpocj.js} +1 -1
- package/dist/index-D32cpocj.js.gz +0 -0
- package/dist/{index-DZOSR3zs.mjs → index-D6vmvGn-.mjs} +2 -2
- package/dist/index-D6vmvGn-.mjs.gz +0 -0
- package/dist/{index-mjVkimoE.mjs → index-D8mcSnpV.mjs} +2 -2
- package/dist/{index-BxcT163u.js → index-DAyFp9x7.js} +1 -1
- package/dist/index-DAyFp9x7.js.gz +0 -0
- package/dist/{index-BRe_YdvS.js → index-DTVpsLDR.js} +1 -1
- package/dist/index-DTVpsLDR.js.gz +0 -0
- package/dist/{index-C9rzDA42.js → index-DWnPzWFZ.js} +1 -1
- package/dist/{index-BOcJ2BSV.mjs → index-DoqS5e29.mjs} +1 -1
- package/dist/index-DoqS5e29.mjs.gz +0 -0
- package/dist/{index-BYXJiIYH.mjs → index-DyBgVeb1.mjs} +3 -3
- package/dist/index-DyBgVeb1.mjs.gz +0 -0
- package/dist/{index-D9zqUpvs.mjs → index-FfI4H9wJ.mjs} +1 -1
- package/dist/index-FfI4H9wJ.mjs.gz +0 -0
- package/dist/{index-B_mlw8SD.js → index-Ggm533Ka.js} +1 -1
- package/dist/index-Ggm533Ka.js.gz +0 -0
- package/dist/{index-C5AlBnuC.js → index-McyaCx6z.js} +1 -1
- package/dist/{index-BAuH_gnC.mjs → index-VSLUGQxl.mjs} +4 -4
- package/dist/index-VSLUGQxl.mjs.gz +0 -0
- package/dist/{index-DQRMCbSC.js → index-XLrW70mj.js} +1 -1
- package/dist/{index-DWPTiJTx.js → index-_Gj9NSRv.js} +1 -1
- package/dist/index-_Gj9NSRv.js.gz +0 -0
- package/dist/{index-DQ8lZLIX.mjs → index-abnnx8nK.mjs} +2 -2
- package/dist/index-abnnx8nK.mjs.gz +0 -0
- package/dist/{index-ssBL34UZ.mjs → index-f5o8xtGh.mjs} +2 -2
- package/dist/index-f5o8xtGh.mjs.gz +0 -0
- package/dist/{index-b_lTB3-i.mjs → index-kcU_YKQu.mjs} +1 -1
- package/dist/index-kcU_YKQu.mjs.gz +0 -0
- package/dist/{index-f5Av9FK3.mjs → index-lxJ1cNRS.mjs} +1 -1
- package/dist/{index-B0tHHb5a.mjs → index-oU_C63v3.mjs} +1 -1
- package/dist/index-oU_C63v3.mjs.gz +0 -0
- package/dist/{index-cNeOhsA7.mjs → index-tVxVSJoS.mjs} +1 -1
- package/dist/index-tVxVSJoS.mjs.gz +0 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-CLz3nvHE.js +1 -0
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-CLz3nvHE.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-DJ4wbSGJ.mjs +122 -0
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-DJ4wbSGJ.mjs.gz +0 -0
- package/dist/{link-3RIggMQA.mjs → link-Bv_x1AKN.mjs} +1 -1
- package/dist/link-Bv_x1AKN.mjs.gz +0 -0
- package/dist/{link-789SB29w.js → link-DzkebwLL.js} +1 -1
- package/dist/link-DzkebwLL.js.gz +0 -0
- package/dist/{list-Dgz0QoeV.js → list-D0UnSYKO.js} +1 -1
- package/dist/list-D0UnSYKO.js.gz +0 -0
- package/dist/{list-CLc4yeOH.mjs → list-KhVO8dzs.mjs} +1 -1
- package/dist/list-KhVO8dzs.mjs.gz +0 -0
- package/dist/{main-C2RV1VCv.js → main-B9VfO0jk.js} +1 -1
- package/dist/main-B9VfO0jk.js.gz +0 -0
- package/dist/{main-DRpvqMV6.mjs → main-CwaYXsxr.mjs} +2 -2
- package/dist/main-CwaYXsxr.mjs.gz +0 -0
- package/dist/{mobile-cURvn2Kj.mjs → mobile-2aWhavNq.mjs} +1 -1
- package/dist/mobile-2aWhavNq.mjs.gz +0 -0
- package/dist/{mobile-BTHKKa07.js → mobile-Crei2DTB.js} +1 -1
- package/dist/mobile-Crei2DTB.js.gz +0 -0
- package/dist/{parent-DW55ZEOx.mjs → parent-Cg59yp07.mjs} +2 -2
- package/dist/parent-Cg59yp07.mjs.gz +0 -0
- package/dist/{parent-BhntEG8N.js → parent-DH1s2n47.js} +1 -1
- package/dist/parent-DH1s2n47.js.gz +0 -0
- package/dist/{roleItem-C5LbjO6_.js → roleItem-BOoRFMFo.js} +1 -1
- package/dist/roleItem-BOoRFMFo.js.gz +0 -0
- package/dist/{roleItem-Bb50JOsw.mjs → roleItem-D-pAtSXp.mjs} +1 -1
- package/dist/roleItem-D-pAtSXp.mjs.gz +0 -0
- package/dist/{saveForm-YHkBljYy.js → saveForm-CKkLZn_B.js} +1 -1
- package/dist/{saveForm-0HBSAv9B.mjs → saveForm-CpIfLmao.mjs} +1 -1
- package/dist/{saveForm.vue_vue_type_script_setup_true_lang-B01aIdhs.mjs → saveForm.vue_vue_type_script_setup_true_lang-Bpd5xQmS.mjs} +1 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-Bpd5xQmS.mjs.gz +0 -0
- package/dist/{saveForm.vue_vue_type_script_setup_true_lang-ORGwZ-zn.js → saveForm.vue_vue_type_script_setup_true_lang-DZAogwze.js} +1 -1
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-DZAogwze.js.gz +0 -0
- package/dist/{scan-Bdzh4ubu.js → scan-BJMwvPxz.js} +1 -1
- package/dist/scan-BJMwvPxz.js.gz +0 -0
- package/dist/{scan-DbI0Lrj1.mjs → scan-BVW4DEBH.mjs} +1 -1
- package/dist/scan-BVW4DEBH.mjs.gz +0 -0
- package/dist/{search-BPn6M1ae.mjs → search-BawcZysI.mjs} +1 -1
- package/dist/search-BawcZysI.mjs.gz +0 -0
- package/dist/{search-BpJWX23A.js → search-CQukpHG-.js} +1 -1
- package/dist/search-CQukpHG-.js.gz +0 -0
- package/dist/{selectConfig-CM_9WNV1.js → selectConfig-C7LKozOt.js} +1 -1
- package/dist/selectConfig-C7LKozOt.js.gz +0 -0
- package/dist/{selectConfig-BHA4JzIn.mjs → selectConfig-CpE8-QH0.mjs} +1 -1
- package/dist/selectConfig-CpE8-QH0.mjs.gz +0 -0
- package/dist/{subItem-B1iwvKHF.js → subItem-n2jMxXzu.js} +1 -1
- package/dist/subItem-n2jMxXzu.js.gz +0 -0
- package/dist/{subItem-C93pMVrp.mjs → subItem-uYDkbaBf.mjs} +1 -1
- package/dist/subItem-uYDkbaBf.mjs.gz +0 -0
- package/dist/{tagsView-BgtcJuwH.mjs → tagsView-D1d3UZjX.mjs} +2 -2
- package/dist/tagsView-D1d3UZjX.mjs.gz +0 -0
- package/dist/{tagsView-mUWLybxp.js → tagsView-kJhVQGsa.js} +2 -2
- package/dist/tagsView-kJhVQGsa.js.gz +0 -0
- package/dist/{transverse-Bq6WreSR.mjs → transverse-Jsl3WSob.mjs} +2 -2
- package/dist/transverse-Jsl3WSob.mjs.gz +0 -0
- package/dist/{transverse-BYY-2Pe5.js → transverse-lKjZEZUy.js} +1 -1
- package/dist/transverse-lKjZEZUy.js.gz +0 -0
- package/dist/types/components/business/bcBox/utils.d.ts +1 -1
- package/dist/types/utils/request/interceptors/request/undefined-params-handler.interceptor.d.ts +24 -0
- package/dist/{uploadAvatar-7NlnLDc4.mjs → uploadAvatar-3xaNZXaL.mjs} +1 -1
- package/dist/uploadAvatar-3xaNZXaL.mjs.gz +0 -0
- package/dist/{uploadAvatar-CU_ch5RD.js → uploadAvatar-D_bRrQz2.js} +1 -1
- package/dist/uploadAvatar-D_bRrQz2.js.gz +0 -0
- package/dist/{user-DjXNESoN.js → user-DyldvBFs.js} +1 -1
- package/dist/user-DyldvBFs.js.gz +0 -0
- package/dist/{user-DFmJpKT4.mjs → user-Sld4ApT8.mjs} +3 -3
- package/dist/user-Sld4ApT8.mjs.gz +0 -0
- package/dist/{userNews-CuAysEtC.mjs → userNews-6B-dS4JZ.mjs} +1 -1
- package/dist/userNews-6B-dS4JZ.mjs.gz +0 -0
- package/dist/{userNews-1QuF_nGL.js → userNews-DAF39QiJ.js} +1 -1
- package/dist/userNews-DAF39QiJ.js.gz +0 -0
- package/dist/{userSelect-tjSvOQO4.mjs → userSelect-1L0jumew.mjs} +1 -1
- package/dist/{userSelect-C-vD64Cx.js → userSelect-BSwAgLBu.js} +1 -1
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-85krpU1J.js → userSelect.vue_vue_type_script_setup_true_lang-CEJctZOU.js} +1 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-CEJctZOU.js.gz +0 -0
- package/dist/{userSelect.vue_vue_type_script_setup_true_lang-Bi-1459f.mjs → userSelect.vue_vue_type_script_setup_true_lang-D7odMq1h.mjs} +1 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-D7odMq1h.mjs.gz +0 -0
- package/dist/{vertical-uP-3Bx4v.js → vertical-BFgEEjC-.js} +1 -1
- package/dist/vertical-BFgEEjC-.js.gz +0 -0
- package/dist/{vertical-DoqNnLJs.mjs → vertical-V_0yOL1D.mjs} +2 -2
- package/dist/vertical-V_0yOL1D.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/401-Cm4UyHrn.mjs.gz +0 -0
- package/dist/401-D6l3Unb4.js.gz +0 -0
- package/dist/account-B57RnX3H.js.gz +0 -0
- package/dist/account-pKq4HqKN.mjs.gz +0 -0
- package/dist/aside-BFJ4lSlj.js.gz +0 -0
- package/dist/aside-BipyY6_z.mjs.gz +0 -0
- package/dist/btnIndex-CNxW_dBl.mjs.gz +0 -0
- package/dist/btnIndex-_CFMTzst.js.gz +0 -0
- package/dist/classic-CKATtEZS.mjs.gz +0 -0
- package/dist/classic-NOJ-HTWr.js.gz +0 -0
- package/dist/columns-68FUwhRr.js.gz +0 -0
- package/dist/columns-Bm-jMXAe.mjs.gz +0 -0
- package/dist/columnsAside-CHeVzmfv.mjs.gz +0 -0
- package/dist/columnsAside-C_bzgzl4.js.gz +0 -0
- package/dist/contextmenu-BXMFHFYb.mjs.gz +0 -0
- package/dist/contextmenu-BxiGYFGk.mjs.gz +0 -0
- package/dist/contextmenu-D7XW_CY4.js.gz +0 -0
- package/dist/contextmenu-Dauo34Cy.js.gz +0 -0
- package/dist/defaults-CJ2HPmTX.js.gz +0 -0
- package/dist/defaults-Ddv2dnHZ.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-BZLt8B3r.mjs.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-igKXmwB7.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BPUgQqge.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Pb40L0Zu.mjs.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-2xZ7Kxhc.js.gz +0 -0
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CjbyqsgR.mjs.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-BbIu_DVU.js.gz +0 -0
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-CCmvifc1.mjs.gz +0 -0
- package/dist/formConfig-B3MAF6PS.js.gz +0 -0
- package/dist/formConfig-BPG_7hFq.mjs.gz +0 -0
- package/dist/horizontal-DT1F2rLG.js.gz +0 -0
- package/dist/horizontal-aFfUDBOz.mjs.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CjXZnTCg.js.gz +0 -0
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-b4QE9Bu3.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-Dxu7KOpO.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-l29DG4ig.js.gz +0 -0
- package/dist/hsBtnConfigList-B25X91pB.mjs.gz +0 -0
- package/dist/hsBtnConfigList-D9TwUBcq.js.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Cw2IYU_M.js.gz +0 -0
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-txh00e1O.mjs.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-APJdBVGe.js.gz +0 -0
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DMfm0_Kx.mjs.gz +0 -0
- package/dist/hsFormConfig-B0lcPvQP.mjs.gz +0 -0
- package/dist/hsFormConfig-CecEDFow.js.gz +0 -0
- package/dist/hsFormConfigList-D7MlbViU.mjs.gz +0 -0
- package/dist/hsFormConfigList-DEj0r0Vr.js.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CPToLhnk.js.gz +0 -0
- package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CdRRdqQg.mjs.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-BaLOgBNw.js.gz +0 -0
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-DX4qa-Zb.mjs.gz +0 -0
- package/dist/hsPageTree-hpLDC3zN.mjs.gz +0 -0
- package/dist/hsPageTree-vlGsEBXY.js.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-B1wJnJ60.js.gz +0 -0
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-B4oHtBbk.mjs.gz +0 -0
- package/dist/iframes-CvxO6Lj3.js.gz +0 -0
- package/dist/iframes-blud4JrX.mjs.gz +0 -0
- package/dist/index-8MWXdSI-.js.gz +0 -0
- package/dist/index-B0tHHb5a.mjs.gz +0 -0
- package/dist/index-BAuH_gnC.mjs.gz +0 -0
- package/dist/index-BE-kSt8Y.js.gz +0 -0
- package/dist/index-BF9dxtfp.mjs.gz +0 -0
- package/dist/index-BJs_Pwun.js.gz +0 -0
- package/dist/index-BLuJaNV9.js.gz +0 -0
- package/dist/index-BOcJ2BSV.mjs.gz +0 -0
- package/dist/index-BRe_YdvS.js.gz +0 -0
- package/dist/index-BYXJiIYH.mjs.gz +0 -0
- package/dist/index-B_mlw8SD.js.gz +0 -0
- package/dist/index-BswExGya.js.gz +0 -0
- package/dist/index-BxcT163u.js.gz +0 -0
- package/dist/index-ByDIOlcY.mjs.gz +0 -0
- package/dist/index-CCmz_XIl.mjs.gz +0 -0
- package/dist/index-CLzknAqK.mjs.gz +0 -0
- package/dist/index-COgShkx_.js.gz +0 -0
- package/dist/index-CWSIXTky.js.gz +0 -0
- package/dist/index-CbM_l6Nj.js.gz +0 -0
- package/dist/index-CbYnG5Q_.js.gz +0 -0
- package/dist/index-CjK4GO4m.js.gz +0 -0
- package/dist/index-CkpVIxXC.js.gz +0 -0
- package/dist/index-Cq4f9Irw.mjs.gz +0 -0
- package/dist/index-D64hfGEl.mjs.gz +0 -0
- package/dist/index-D6sihOkL.js.gz +0 -0
- package/dist/index-D9zqUpvs.mjs.gz +0 -0
- package/dist/index-DIkniZUQ.mjs.gz +0 -0
- package/dist/index-DKJ9LDEF.js.gz +0 -0
- package/dist/index-DMCgUPNZ.js.gz +0 -0
- package/dist/index-DQ8lZLIX.mjs.gz +0 -0
- package/dist/index-DVHIwOv_.js.gz +0 -0
- package/dist/index-DWPTiJTx.js.gz +0 -0
- package/dist/index-DZH7vLi7.mjs.gz +0 -0
- package/dist/index-DZOSR3zs.mjs.gz +0 -0
- package/dist/index-Dcne6FCJ.mjs.gz +0 -0
- package/dist/index-Dgj_B9pZ.mjs.gz +0 -0
- package/dist/index-DloRTwVf.mjs.gz +0 -0
- package/dist/index-DoT9PNfG.js.gz +0 -0
- package/dist/index-FPVl9WA3.mjs.gz +0 -0
- package/dist/index-SMRmfcCL.js.gz +0 -0
- package/dist/index-ZxKUeU_7.js.gz +0 -0
- package/dist/index-b_lTB3-i.mjs.gz +0 -0
- package/dist/index-cNeOhsA7.mjs.gz +0 -0
- package/dist/index-cNqIeJU8.js.gz +0 -0
- package/dist/index-dflG63Zo.mjs.gz +0 -0
- package/dist/index-lBtAYKZs.mjs +0 -4
- package/dist/index-ssBL34UZ.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-BvZyodB8.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-BvZyodB8.js.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-oCRoVvYH.mjs +0 -77
- package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-oCRoVvYH.mjs.gz +0 -0
- package/dist/link-3RIggMQA.mjs.gz +0 -0
- package/dist/link-789SB29w.js.gz +0 -0
- package/dist/list-CLc4yeOH.mjs.gz +0 -0
- package/dist/list-Dgz0QoeV.js.gz +0 -0
- package/dist/main-C2RV1VCv.js.gz +0 -0
- package/dist/main-DRpvqMV6.mjs.gz +0 -0
- package/dist/mobile-BTHKKa07.js.gz +0 -0
- package/dist/mobile-cURvn2Kj.mjs.gz +0 -0
- package/dist/parent-BhntEG8N.js.gz +0 -0
- package/dist/parent-DW55ZEOx.mjs.gz +0 -0
- package/dist/roleItem-Bb50JOsw.mjs.gz +0 -0
- package/dist/roleItem-C5LbjO6_.js.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-B01aIdhs.mjs.gz +0 -0
- package/dist/saveForm.vue_vue_type_script_setup_true_lang-ORGwZ-zn.js.gz +0 -0
- package/dist/scan-Bdzh4ubu.js.gz +0 -0
- package/dist/scan-DbI0Lrj1.mjs.gz +0 -0
- package/dist/search-BPn6M1ae.mjs.gz +0 -0
- package/dist/search-BpJWX23A.js.gz +0 -0
- package/dist/selectConfig-BHA4JzIn.mjs.gz +0 -0
- package/dist/selectConfig-CM_9WNV1.js.gz +0 -0
- package/dist/subItem-B1iwvKHF.js.gz +0 -0
- package/dist/subItem-C93pMVrp.mjs.gz +0 -0
- package/dist/tagsView-BgtcJuwH.mjs.gz +0 -0
- package/dist/tagsView-mUWLybxp.js.gz +0 -0
- package/dist/transverse-BYY-2Pe5.js.gz +0 -0
- package/dist/transverse-Bq6WreSR.mjs.gz +0 -0
- package/dist/uploadAvatar-7NlnLDc4.mjs.gz +0 -0
- package/dist/uploadAvatar-CU_ch5RD.js.gz +0 -0
- package/dist/user-DFmJpKT4.mjs.gz +0 -0
- package/dist/user-DjXNESoN.js.gz +0 -0
- package/dist/userNews-1QuF_nGL.js.gz +0 -0
- package/dist/userNews-CuAysEtC.mjs.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-85krpU1J.js.gz +0 -0
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-Bi-1459f.mjs.gz +0 -0
- package/dist/vertical-DoqNnLJs.mjs.gz +0 -0
- package/dist/vertical-uP-3Bx4v.js.gz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("vue"),x=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("vue"),x=require("./index-ClnvgeEO.js");/**!
|
|
2
2
|
* Sortable 1.15.2
|
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
|
4
4
|
* @author owenm <owen23355@gmail.com>
|
|
5
5
|
* @license MIT
|
|
6
|
-
*/function It(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),t.push.apply(t,n)}return t}function se(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?It(Object(t),!0).forEach(function(n){Jt(i,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):It(Object(t)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(t,n))})}return i}function Ue(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ue=function(e){return typeof e}:Ue=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(i)}function Jt(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function ue(){return ue=Object.assign||function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},ue.apply(this,arguments)}function en(i,e){if(i==null)return{};var t={},n=Object.keys(i),a,r;for(r=0;r<n.length;r++)a=n[r],!(e.indexOf(a)>=0)&&(t[a]=i[a]);return t}function tn(i,e){if(i==null)return{};var t=en(i,e),n,a;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);for(a=0;a<r.length;a++)n=r[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(t[n]=i[n])}return t}var nn="1.15.2";function le(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var ce=le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Be=le(/Edge/i),Vt=le(/firefox/i),Ne=le(/safari/i)&&!le(/chrome/i)&&!le(/android/i),kt=le(/iP(ad|od|hone)/i),Mt=le(/chrome/i)&&le(/android/i),Ft={capture:!1,passive:!1};function A(i,e,t){i.addEventListener(e,t,!ce&&Ft)}function O(i,e,t){i.removeEventListener(e,t,!ce&&Ft)}function Qe(i,e){if(e){if(e[0]===">"&&(e=e.substring(1)),i)try{if(i.matches)return i.matches(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e)}catch{return!1}return!1}}function an(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function ae(i,e,t,n){if(i){t=t||document;do{if(e!=null&&(e[0]===">"?i.parentNode===t&&Qe(i,e):Qe(i,e))||n&&i===t)return i;if(i===t)break}while(i=an(i))}return null}var Ot=/\s+/g;function G(i,e,t){if(i&&e)if(i.classList)i.classList[t?"add":"remove"](e);else{var n=(" "+i.className+" ").replace(Ot," ").replace(" "+e+" "," ");i.className=(n+(t?" "+e:"")).replace(Ot," ")}}function y(i,e,t){var n=i&&i.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(t=i.currentStyle),e===void 0?t:t[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=t+(typeof t=="string"?"":"px")}}function Ve(i,e){var t="";if(typeof i=="string")t=i;else do{var n=y(i,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!e&&(i=i.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(t)}function Bt(i,e,t){if(i){var n=i.getElementsByTagName(e),a=0,r=n.length;if(t)for(;a<r;a++)t(n[a],a);return n}return[]}function oe(){var i=document.scrollingElement;return i||document.documentElement}function F(i,e,t,n,a){if(!(!i.getBoundingClientRect&&i!==window)){var r,s,u,c,f,v,g;if(i!==window&&i.parentNode&&i!==oe()?(r=i.getBoundingClientRect(),s=r.top,u=r.left,c=r.bottom,f=r.right,v=r.height,g=r.width):(s=0,u=0,c=window.innerHeight,f=window.innerWidth,v=window.innerHeight,g=window.innerWidth),(e||t)&&i!==window&&(a=a||i.parentNode,!ce))do if(a&&a.getBoundingClientRect&&(y(a,"transform")!=="none"||t&&y(a,"position")!=="static")){var V=a.getBoundingClientRect();s-=V.top+parseInt(y(a,"border-top-width")),u-=V.left+parseInt(y(a,"border-left-width")),c=s+r.height,f=u+r.width;break}while(a=a.parentNode);if(n&&i!==window){var I=Ve(a||i),D=I&&I.a,_=I&&I.d;I&&(s/=_,u/=D,g/=D,v/=_,c=s+v,f=u+g)}return{top:s,left:u,bottom:c,right:f,width:g,height:v}}}function xt(i,e,t){for(var n=ge(i,!0),a=F(i)[e];n;){var r=F(n)[t],s=void 0;if(t==="top"||t==="left"?s=a>=r:s=a<=r,!s)return n;if(n===oe())break;n=ge(n,!1)}return!1}function Oe(i,e,t,n){for(var a=0,r=0,s=i.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==E.ghost&&(n||s[r]!==E.dragged)&&ae(s[r],t.draggable,i,!1)){if(a===e)return s[r];a++}r++}return null}function Dt(i,e){for(var t=i.lastElementChild;t&&(t===E.ghost||y(t,"display")==="none"||e&&!Qe(t,e));)t=t.previousElementSibling;return t||null}function ee(i,e){var t=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==E.clone&&(!e||Qe(i,e))&&t++;return t}function At(i){var e=0,t=0,n=oe();if(i)do{var a=Ve(i),r=a.a,s=a.d;e+=i.scrollLeft*r,t+=i.scrollTop*s}while(i!==n&&(i=i.parentNode));return[e,t]}function rn(i,e){for(var t in i)if(i.hasOwnProperty(t)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===i[t][n])return Number(t)}return-1}function ge(i,e){if(!i||!i.getBoundingClientRect)return oe();var t=i,n=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var a=y(t);if(t.clientWidth<t.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return oe();if(n||e)return t;n=!0}}while(t=t.parentNode);return oe()}function on(i,e){if(i&&e)for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function ct(i,e){return Math.round(i.top)===Math.round(e.top)&&Math.round(i.left)===Math.round(e.left)&&Math.round(i.height)===Math.round(e.height)&&Math.round(i.width)===Math.round(e.width)}var Re;function qt(i,e){return function(){if(!Re){var t=arguments,n=this;t.length===1?i.call(n,t[0]):i.apply(n,t),Re=setTimeout(function(){Re=void 0},e)}}}function sn(){clearTimeout(Re),Re=void 0}function Xt(i,e,t){i.scrollLeft+=e,i.scrollTop+=t}function Yt(i){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(i).cloneNode(!0):t?t(i).clone(!0)[0]:i.cloneNode(!0)}function Ht(i,e,t){var n={};return Array.from(i.children).forEach(function(a){var r,s,u,c;if(!(!ae(a,e.draggable,i,!1)||a.animated||a===t)){var f=F(a);n.left=Math.min((r=n.left)!==null&&r!==void 0?r:1/0,f.left),n.top=Math.min((s=n.top)!==null&&s!==void 0?s:1/0,f.top),n.right=Math.max((u=n.right)!==null&&u!==void 0?u:-1/0,f.right),n.bottom=Math.max((c=n.bottom)!==null&&c!==void 0?c:-1/0,f.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var Z="Sortable"+new Date().getTime();function ln(){var i=[],e;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(a){if(!(y(a,"display")==="none"||a===E.ghost)){i.push({target:a,rect:F(a)});var r=se({},i[i.length-1].rect);if(a.thisAnimationDuration){var s=Ve(a,!0);s&&(r.top-=s.f,r.left-=s.e)}a.fromRect=r}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(rn(i,{target:n}),1)},animateAll:function(n){var a=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var r=!1,s=0;i.forEach(function(u){var c=0,f=u.target,v=f.fromRect,g=F(f),V=f.prevFromRect,I=f.prevToRect,D=u.rect,_=Ve(f,!0);_&&(g.top-=_.f,g.left-=_.e),f.toRect=g,f.thisAnimationDuration&&ct(V,g)&&!ct(v,g)&&(D.top-g.top)/(D.left-g.left)===(v.top-g.top)/(v.left-g.left)&&(c=cn(D,V,I,a.options)),ct(g,v)||(f.prevFromRect=v,f.prevToRect=g,c||(c=a.options.animation),a.animate(f,D,g,c)),c&&(r=!0,s=Math.max(s,c),clearTimeout(f.animationResetTimer),f.animationResetTimer=setTimeout(function(){f.animationTime=0,f.prevFromRect=null,f.fromRect=null,f.prevToRect=null,f.thisAnimationDuration=null},c),f.thisAnimationDuration=c)}),clearTimeout(e),r?e=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),i=[]},animate:function(n,a,r,s){if(s){y(n,"transition",""),y(n,"transform","");var u=Ve(this.el),c=u&&u.a,f=u&&u.d,v=(a.left-r.left)/(c||1),g=(a.top-r.top)/(f||1);n.animatingX=!!v,n.animatingY=!!g,y(n,"transform","translate3d("+v+"px,"+g+"px,0)"),this.forRepaintDummy=un(n),y(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),y(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){y(n,"transition",""),y(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function un(i){return i.offsetWidth}function cn(i,e,t,n){return Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*n.animation}var _e=[],ft={initializeByDefault:!0},qe={mount:function(e){for(var t in ft)ft.hasOwnProperty(t)&&!(t in e)&&(e[t]=ft[t]);_e.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),_e.push(e)},pluginEvent:function(e,t,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var r=e+"Global";_e.forEach(function(s){t[s.pluginName]&&(t[s.pluginName][r]&&t[s.pluginName][r](se({sortable:t},n)),t.options[s.pluginName]&&t[s.pluginName][e]&&t[s.pluginName][e](se({sortable:t},n)))})},initializePlugins:function(e,t,n,a){_e.forEach(function(u){var c=u.pluginName;if(!(!e.options[c]&&!u.initializeByDefault)){var f=new u(e,t,e.options);f.sortable=e,f.options=e.options,e[c]=f,ue(n,f.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var s=this.modifyOption(e,r,e.options[r]);typeof s<"u"&&(e.options[r]=s)}},getEventProperties:function(e,t){var n={};return _e.forEach(function(a){typeof a.eventProperties=="function"&&ue(n,a.eventProperties.call(t[a.pluginName],e))}),n},modifyOption:function(e,t,n){var a;return _e.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[t]=="function"&&(a=r.optionListeners[t].call(e[r.pluginName],n))}),a}};function fn(i){var e=i.sortable,t=i.rootEl,n=i.name,a=i.targetEl,r=i.cloneEl,s=i.toEl,u=i.fromEl,c=i.oldIndex,f=i.newIndex,v=i.oldDraggableIndex,g=i.newDraggableIndex,V=i.originalEvent,I=i.putSortable,D=i.extraEventProperties;if(e=e||t&&t[Z],!!e){var _,d=e.options,te="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!ce&&!Be?_=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(_=document.createEvent("Event"),_.initEvent(n,!0,!0)),_.to=s||t,_.from=u||t,_.item=a||t,_.clone=r,_.oldIndex=c,_.newIndex=f,_.oldDraggableIndex=v,_.newDraggableIndex=g,_.originalEvent=V,_.pullMode=I?I.lastPutMode:void 0;var C=se(se({},D),qe.getEventProperties(n,e));for(var U in C)_[U]=C[U];t&&t.dispatchEvent(_),d[te]&&d[te].call(e,_)}}var dn=["evt"],j=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.evt,r=tn(n,dn);qe.pluginEvent.bind(E)(e,t,se({dragEl:p,parentEl:R,ghostEl:T,rootEl:L,nextEl:Ee,lastDownEl:ze,cloneEl:N,cloneHidden:pe,dragStarted:Ae,putSortable:H,activeSortable:E.active,originalEvent:a,oldIndex:Ie,oldDraggableIndex:ke,newIndex:K,newDraggableIndex:he,hideGhostForTarget:Ut,unhideGhostForTarget:zt,cloneNowHidden:function(){pe=!0},cloneNowShown:function(){pe=!1},dispatchSortableEvent:function(u){$({sortable:t,name:u,originalEvent:a})}},r))};function $(i){fn(se({putSortable:H,cloneEl:N,targetEl:p,rootEl:L,oldIndex:Ie,oldDraggableIndex:ke,newIndex:K,newDraggableIndex:he},i))}var p,R,T,L,Ee,ze,N,pe,Ie,K,ke,he,He,H,Ce=!1,Je=!1,et=[],be,ie,dt,ht,Pt,Lt,Ae,Te,Me,Fe=!1,We=!1,Ge,W,pt=[],bt=!1,tt=[],it=typeof document<"u",$e=kt,Nt=Be||ce?"cssFloat":"float",hn=it&&!Mt&&!kt&&"draggable"in document.createElement("div"),Wt=function(){if(it){if(ce)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),$t=function(e,t){var n=y(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=Oe(e,0,t),s=Oe(e,1,t),u=r&&y(r),c=s&&y(s),f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+F(r).width,v=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+F(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&u.float&&u.float!=="none"){var g=u.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===g)?"vertical":"horizontal"}return r&&(u.display==="block"||u.display==="flex"||u.display==="table"||u.display==="grid"||f>=a&&n[Nt]==="none"||s&&n[Nt]==="none"&&f+v>a)?"vertical":"horizontal"},pn=function(e,t,n){var a=n?e.left:e.top,r=n?e.right:e.bottom,s=n?e.width:e.height,u=n?t.left:t.top,c=n?t.right:t.bottom,f=n?t.width:t.height;return a===u||r===c||a+s/2===u+f/2},gn=function(e,t){var n;return et.some(function(a){var r=a[Z].options.emptyInsertThreshold;if(!(!r||Dt(a))){var s=F(a),u=e>=s.left-r&&e<=s.right+r,c=t>=s.top-r&&t<=s.bottom+r;if(u&&c)return n=a}}),n},jt=function(e){function t(r,s){return function(u,c,f,v){var g=u.options.group.name&&c.options.group.name&&u.options.group.name===c.options.group.name;if(r==null&&(s||g))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return t(r(u,c,f,v),s)(u,c,f,v);var V=(s?u:c).options.group.name;return r===!0||typeof r=="string"&&r===V||r.join&&r.indexOf(V)>-1}}var n={},a=e.group;(!a||Ue(a)!="object")&&(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n},Ut=function(){!Wt&&T&&y(T,"display","none")},zt=function(){!Wt&&T&&y(T,"display","")};it&&!Mt&&document.addEventListener("click",function(i){if(Je)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),Je=!1,!1},!0);var ye=function(e){if(p){e=e.touches?e.touches[0]:e;var t=gn(e.clientX,e.clientY);if(t){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Z]._onDragOver(n)}}},mn=function(e){p&&p.parentNode[Z]._isOutsideThisEl(e.target)};function E(i,e){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=e=ue({},e),i[Z]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return $t(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,u){s.setData("Text",u.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:E.supportPointer!==!1&&"PointerEvent"in window&&!Ne,emptyInsertThreshold:5};qe.initializePlugins(this,i,t);for(var n in t)!(n in e)&&(e[n]=t[n]);jt(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:hn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?A(i,"pointerdown",this._onTapStart):(A(i,"mousedown",this._onTapStart),A(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(A(i,"dragover",this),A(i,"dragenter",this)),et.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ue(this,ln())}E.prototype={constructor:E,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Te=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,p):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,a=this.options,r=a.preventOnFilter,s=e.type,u=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,c=(u||e).target,f=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||c,v=a.filter;if(_n(n),!p&&!(/mousedown|pointerdown/.test(s)&&e.button!==0||a.disabled)&&!f.isContentEditable&&!(!this.nativeDraggable&&Ne&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=ae(c,a.draggable,n,!1),!(c&&c.animated)&&ze!==c)){if(Ie=ee(c),ke=ee(c,a.draggable),typeof v=="function"){if(v.call(this,e,c,this)){$({sortable:t,rootEl:f,name:"filter",targetEl:c,toEl:n,fromEl:n}),j("filter",t,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(v&&(v=v.split(",").some(function(g){if(g=ae(f,g.trim(),n,!1),g)return $({sortable:t,rootEl:g,name:"filter",targetEl:c,fromEl:n,toEl:n}),j("filter",t,{evt:e}),!0}),v)){r&&e.cancelable&&e.preventDefault();return}a.handle&&!ae(f,a.handle,n,!1)||this._prepareDragStart(e,u,c)}}},_prepareDragStart:function(e,t,n){var a=this,r=a.el,s=a.options,u=r.ownerDocument,c;if(n&&!p&&n.parentNode===r){var f=F(n);if(L=r,p=n,R=p.parentNode,Ee=p.nextSibling,ze=n,He=s.group,E.dragged=p,be={target:p,clientX:(t||e).clientX,clientY:(t||e).clientY},Pt=be.clientX-f.left,Lt=be.clientY-f.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,p.style["will-change"]="all",c=function(){if(j("delayEnded",a,{evt:e}),E.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Vt&&a.nativeDraggable&&(p.draggable=!0),a._triggerDragStart(e,t),$({sortable:a,name:"choose",originalEvent:e}),G(p,s.chosenClass,!0)},s.ignore.split(",").forEach(function(v){Bt(p,v.trim(),gt)}),A(u,"dragover",ye),A(u,"mousemove",ye),A(u,"touchmove",ye),A(u,"mouseup",a._onDrop),A(u,"touchend",a._onDrop),A(u,"touchcancel",a._onDrop),Vt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,p.draggable=!0),j("delayStart",this,{evt:e}),s.delay&&(!s.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Be||ce))){if(E.eventCanceled){this._onDrop();return}A(u,"mouseup",a._disableDelayedDrag),A(u,"touchend",a._disableDelayedDrag),A(u,"touchcancel",a._disableDelayedDrag),A(u,"mousemove",a._delayedDragTouchMoveHandler),A(u,"touchmove",a._delayedDragTouchMoveHandler),s.supportPointer&&A(u,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){p&>(p),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;O(e,"mouseup",this._disableDelayedDrag),O(e,"touchend",this._disableDelayedDrag),O(e,"touchcancel",this._disableDelayedDrag),O(e,"mousemove",this._delayedDragTouchMoveHandler),O(e,"touchmove",this._delayedDragTouchMoveHandler),O(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?A(document,"pointermove",this._onTouchMove):t?A(document,"touchmove",this._onTouchMove):A(document,"mousemove",this._onTouchMove):(A(p,"dragend",this),A(L,"dragstart",this._onDragStart));try{document.selection?Ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ce=!1,L&&p){j("dragStarted",this,{evt:t}),this.nativeDraggable&&A(document,"dragover",mn);var n=this.options;!e&&G(p,n.dragClass,!1),G(p,n.ghostClass,!0),E.active=this,e&&this._appendGhost(),$({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ie){this._lastX=ie.clientX,this._lastY=ie.clientY,Ut();for(var e=document.elementFromPoint(ie.clientX,ie.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ie.clientX,ie.clientY),e!==t);)t=e;if(p.parentNode[Z]._isOutsideThisEl(e),t)do{if(t[Z]){var n=void 0;if(n=t[Z]._onDragOver({clientX:ie.clientX,clientY:ie.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);zt()}},_onTouchMove:function(e){if(be){var t=this.options,n=t.fallbackTolerance,a=t.fallbackOffset,r=e.touches?e.touches[0]:e,s=T&&Ve(T,!0),u=T&&s&&s.a,c=T&&s&&s.d,f=$e&&W&&At(W),v=(r.clientX-be.clientX+a.x)/(u||1)+(f?f[0]-pt[0]:0)/(u||1),g=(r.clientY-be.clientY+a.y)/(c||1)+(f?f[1]-pt[1]:0)/(c||1);if(!E.active&&!Ce){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(T){s?(s.e+=v-(dt||0),s.f+=g-(ht||0)):s={a:1,b:0,c:0,d:1,e:v,f:g};var V="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");y(T,"webkitTransform",V),y(T,"mozTransform",V),y(T,"msTransform",V),y(T,"transform",V),dt=v,ht=g,ie=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!T){var e=this.options.fallbackOnBody?document.body:L,t=F(p,!0,$e,!0,e),n=this.options;if($e){for(W=e;y(W,"position")==="static"&&y(W,"transform")==="none"&&W!==document;)W=W.parentNode;W!==document.body&&W!==document.documentElement?(W===document&&(W=oe()),t.top+=W.scrollTop,t.left+=W.scrollLeft):W=oe(),pt=At(W)}T=p.cloneNode(!0),G(T,n.ghostClass,!1),G(T,n.fallbackClass,!0),G(T,n.dragClass,!0),y(T,"transition",""),y(T,"transform",""),y(T,"box-sizing","border-box"),y(T,"margin",0),y(T,"top",t.top),y(T,"left",t.left),y(T,"width",t.width),y(T,"height",t.height),y(T,"opacity","0.8"),y(T,"position",$e?"absolute":"fixed"),y(T,"zIndex","100000"),y(T,"pointerEvents","none"),E.ghost=T,e.appendChild(T),y(T,"transform-origin",Pt/parseInt(T.style.width)*100+"% "+Lt/parseInt(T.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,a=e.dataTransfer,r=n.options;if(j("dragStart",this,{evt:e}),E.eventCanceled){this._onDrop();return}j("setupClone",this),E.eventCanceled||(N=Yt(p),N.removeAttribute("id"),N.draggable=!1,N.style["will-change"]="",this._hideClone(),G(N,this.options.chosenClass,!1),E.clone=N),n.cloneId=Ke(function(){j("clone",n),!E.eventCanceled&&(n.options.removeCloneOnHide||L.insertBefore(N,p),n._hideClone(),$({sortable:n,name:"clone"}))}),!t&&G(p,r.dragClass,!0),t?(Je=!0,n._loopId=setInterval(n._emulateDragOver,50)):(O(document,"mouseup",n._onDrop),O(document,"touchend",n._onDrop),O(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",r.setData&&r.setData.call(n,a,p)),A(document,"drop",n),y(p,"transform","translateZ(0)")),Ce=!0,n._dragStartId=Ke(n._dragStarted.bind(n,t,e)),A(document,"selectstart",n),Ae=!0,Ne&&y(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,a,r,s,u=this.options,c=u.group,f=E.active,v=He===c,g=u.sort,V=H||f,I,D=this,_=!1;if(bt)return;function d(we,at){j(we,D,se({evt:e,isOwner:v,axis:I?"vertical":"horizontal",revert:s,dragRect:a,targetRect:r,canSort:g,fromSortable:V,target:n,completed:C,onMove:function(De,ot){return je(L,t,p,a,De,F(De),e,ot)},changed:U},at))}function te(){d("dragOverAnimationCapture"),D.captureAnimationState(),D!==V&&V.captureAnimationState()}function C(we){return d("dragOverCompleted",{insertion:we}),we&&(v?f._hideClone():f._showClone(D),D!==V&&(G(p,H?H.options.ghostClass:f.options.ghostClass,!1),G(p,u.ghostClass,!0)),H!==D&&D!==E.active?H=D:D===E.active&&H&&(H=null),V===D&&(D._ignoreWhileAnimating=n),D.animateAll(function(){d("dragOverAnimationComplete"),D._ignoreWhileAnimating=null}),D!==V&&(V.animateAll(),V._ignoreWhileAnimating=null)),(n===p&&!p.animated||n===t&&!n.animated)&&(Te=null),!u.dragoverBubble&&!e.rootEl&&n!==document&&(p.parentNode[Z]._isOutsideThisEl(e.target),!we&&ye(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),_=!0}function U(){K=ee(p),he=ee(p,u.draggable),$({sortable:D,name:"change",toEl:t,newIndex:K,newDraggableIndex:he,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=ae(n,u.draggable,t,!0),d("dragOver"),E.eventCanceled)return _;if(p.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||D._ignoreWhileAnimating===n)return C(!1);if(Je=!1,f&&!u.disabled&&(v?g||(s=R!==L):H===this||(this.lastPutMode=He.checkPull(this,f,p,e))&&c.checkPut(this,f,p,e))){if(I=this._getDirection(e,n)==="vertical",a=F(p),d("dragOverValid"),E.eventCanceled)return _;if(s)return R=L,te(),this._hideClone(),d("revert"),E.eventCanceled||(Ee?L.insertBefore(p,Ee):L.appendChild(p)),C(!0);var B=Dt(t,u.draggable);if(!B||yn(e,I,this)&&!B.animated){if(B===p)return C(!1);if(B&&t===e.target&&(n=B),n&&(r=F(n)),je(L,t,p,a,n,r,e,!!n)!==!1)return te(),B&&B.nextSibling?t.insertBefore(p,B.nextSibling):t.appendChild(p),R=t,U(),C(!0)}else if(B&&bn(e,I,this)){var q=Oe(t,0,u,!0);if(q===p)return C(!1);if(n=q,r=F(n),je(L,t,p,a,n,r,e,!1)!==!1)return te(),t.insertBefore(p,q),R=t,U(),C(!0)}else if(n.parentNode===t){r=F(n);var k=0,re,fe=p.parentNode!==t,X=!pn(p.animated&&p.toRect||a,n.animated&&n.toRect||r,I),me=I?"top":"left",ne=xt(n,"top","top")||xt(p,"top","top"),ve=ne?ne.scrollTop:void 0;Te!==n&&(re=r[me],Fe=!1,We=!X&&u.invertSwap||fe),k=En(e,n,r,I,X?1:u.swapThreshold,u.invertedSwapThreshold==null?u.swapThreshold:u.invertedSwapThreshold,We,Te===n);var Q;if(k!==0){var z=ee(p);do z-=k,Q=R.children[z];while(Q&&(y(Q,"display")==="none"||Q===T))}if(k===0||Q===n)return C(!1);Te=n,Me=k;var de=n.nextElementSibling,J=!1;J=k===1;var Se=je(L,t,p,a,n,r,e,J);if(Se!==!1)return(Se===1||Se===-1)&&(J=Se===1),bt=!0,setTimeout(wn,30),te(),J&&!de?t.appendChild(p):n.parentNode.insertBefore(p,J?de:n),ne&&Xt(ne,0,ve-ne.scrollTop),R=p.parentNode,re!==void 0&&!We&&(Ge=Math.abs(re-F(n)[me])),U(),C(!0)}if(t.contains(p))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){O(document,"mousemove",this._onTouchMove),O(document,"touchmove",this._onTouchMove),O(document,"pointermove",this._onTouchMove),O(document,"dragover",ye),O(document,"mousemove",ye),O(document,"touchmove",ye)},_offUpEvents:function(){var e=this.el.ownerDocument;O(e,"mouseup",this._onDrop),O(e,"touchend",this._onDrop),O(e,"pointerup",this._onDrop),O(e,"touchcancel",this._onDrop),O(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(K=ee(p),he=ee(p,n.draggable),j("drop",this,{evt:e}),R=p&&p.parentNode,K=ee(p),he=ee(p,n.draggable),E.eventCanceled){this._nulling();return}Ce=!1,We=!1,Fe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),yt(this.cloneId),yt(this._dragStartId),this.nativeDraggable&&(O(document,"drop",this),O(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ne&&y(document.body,"user-select",""),y(p,"transform",""),e&&(Ae&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),T&&T.parentNode&&T.parentNode.removeChild(T),(L===R||H&&H.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),p&&(this.nativeDraggable&&O(p,"dragend",this),gt(p),p.style["will-change"]="",Ae&&!Ce&&G(p,H?H.options.ghostClass:this.options.ghostClass,!1),G(p,this.options.chosenClass,!1),$({sortable:this,name:"unchoose",toEl:R,newIndex:null,newDraggableIndex:null,originalEvent:e}),L!==R?(K>=0&&($({rootEl:R,name:"add",toEl:R,fromEl:L,originalEvent:e}),$({sortable:this,name:"remove",toEl:R,originalEvent:e}),$({rootEl:R,name:"sort",toEl:R,fromEl:L,originalEvent:e}),$({sortable:this,name:"sort",toEl:R,originalEvent:e})),H&&H.save()):K!==Ie&&K>=0&&($({sortable:this,name:"update",toEl:R,originalEvent:e}),$({sortable:this,name:"sort",toEl:R,originalEvent:e})),E.active&&((K==null||K===-1)&&(K=Ie,he=ke),$({sortable:this,name:"end",toEl:R,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){j("nulling",this),L=p=R=T=Ee=N=ze=pe=be=ie=Ae=K=he=Ie=ke=Te=Me=H=He=E.dragged=E.ghost=E.clone=E.active=null,tt.forEach(function(e){e.checked=!0}),tt.length=dt=ht=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":p&&(this._onDragOver(e),vn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,a=0,r=n.length,s=this.options;a<r;a++)t=n[a],ae(t,s.draggable,this.el,!1)&&e.push(t.getAttribute(s.dataIdAttr)||Dn(t));return e},sort:function(e,t){var n={},a=this.el;this.toArray().forEach(function(r,s){var u=a.children[s];ae(u,this.options.draggable,a,!1)&&(n[r]=u)},this),t&&this.captureAnimationState(),e.forEach(function(r){n[r]&&(a.removeChild(n[r]),a.appendChild(n[r]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ae(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var a=qe.modifyOption(this,e,t);typeof a<"u"?n[e]=a:n[e]=t,e==="group"&&jt(n)},destroy:function(){j("destroy",this);var e=this.el;e[Z]=null,O(e,"mousedown",this._onTapStart),O(e,"touchstart",this._onTapStart),O(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(O(e,"dragover",this),O(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),et.splice(et.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!pe){if(j("hideClone",this),E.eventCanceled)return;y(N,"display","none"),this.options.removeCloneOnHide&&N.parentNode&&N.parentNode.removeChild(N),pe=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(pe){if(j("showClone",this),E.eventCanceled)return;p.parentNode==L&&!this.options.group.revertClone?L.insertBefore(N,p):Ee?L.insertBefore(N,Ee):L.appendChild(N),this.options.group.revertClone&&this.animate(p,N),y(N,"display",""),pe=!1}}};function vn(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function je(i,e,t,n,a,r,s,u){var c,f=i[Z],v=f.options.onMove,g;return window.CustomEvent&&!ce&&!Be?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=e,c.from=i,c.dragged=t,c.draggedRect=n,c.related=a||e,c.relatedRect=r||F(e),c.willInsertAfter=u,c.originalEvent=s,i.dispatchEvent(c),v&&(g=v.call(f,c,s)),g}function gt(i){i.draggable=!1}function wn(){bt=!1}function bn(i,e,t){var n=F(Oe(t.el,0,t.options,!0)),a=Ht(t.el,t.options,T),r=10;return e?i.clientX<a.left-r||i.clientY<n.top&&i.clientX<n.right:i.clientY<a.top-r||i.clientY<n.bottom&&i.clientX<n.left}function yn(i,e,t){var n=F(Dt(t.el,t.options.draggable)),a=Ht(t.el,t.options,T),r=10;return e?i.clientX>a.right+r||i.clientY>n.bottom&&i.clientX>n.left:i.clientY>a.bottom+r||i.clientX>n.right&&i.clientY>n.top}function En(i,e,t,n,a,r,s,u){var c=n?i.clientY:i.clientX,f=n?t.height:t.width,v=n?t.top:t.left,g=n?t.bottom:t.right,V=!1;if(!s){if(u&&Ge<f*a){if(!Fe&&(Me===1?c>v+f*r/2:c<g-f*r/2)&&(Fe=!0),Fe)V=!0;else if(Me===1?c<v+Ge:c>g-Ge)return-Me}else if(c>v+f*(1-a)/2&&c<g-f*(1-a)/2)return Sn(e)}return V=V||s,V&&(c<v+f*r/2||c>g-f*r/2)?c>v+f/2?1:-1:0}function Sn(i){return ee(p)<ee(i)?1:-1}function Dn(i){for(var e=i.tagName+i.className+i.src+i.href+i.textContent,t=e.length,n=0;t--;)n+=e.charCodeAt(t);return n.toString(36)}function _n(i){tt.length=0;for(var e=i.getElementsByTagName("input"),t=e.length;t--;){var n=e[t];n.checked&&tt.push(n)}}function Ke(i){return setTimeout(i,0)}function yt(i){return clearTimeout(i)}it&&A(document,"touchmove",function(i){(E.active||Ce)&&i.cancelable&&i.preventDefault()});E.utils={on:A,off:O,css:y,find:Bt,is:function(e,t){return!!ae(e,t,e,!1)},extend:on,throttle:qt,closest:ae,toggleClass:G,clone:Yt,index:ee,nextTick:Ke,cancelNextTick:yt,detectDirection:$t,getChild:Oe};E.get=function(i){return i[Z]};E.mount=function(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(E.utils=se(se({},E.utils),n.utils)),qe.mount(n)})};E.create=function(i,e){return new E(i,e)};E.version=nn;var M=[],Pe,Et,St=!1,mt,vt,nt,Le;function Tn(){function i(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return i.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):this.options.supportPointer?A(document,"pointermove",this._handleFallbackAutoScroll):n.touches?A(document,"touchmove",this._handleFallbackAutoScroll):A(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?O(document,"dragover",this._handleAutoScroll):(O(document,"pointermove",this._handleFallbackAutoScroll),O(document,"touchmove",this._handleFallbackAutoScroll),O(document,"mousemove",this._handleFallbackAutoScroll)),Rt(),Ze(),sn()},nulling:function(){nt=Et=Pe=St=Le=mt=vt=null,M.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var a=this,r=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,u=document.elementFromPoint(r,s);if(nt=t,n||this.options.forceAutoScrollFallback||Be||ce||Ne){wt(t,this.options,u,n);var c=ge(u,!0);St&&(!Le||r!==mt||s!==vt)&&(Le&&Rt(),Le=setInterval(function(){var f=ge(document.elementFromPoint(r,s),!0);f!==c&&(c=f,Ze()),wt(t,a.options,f,n)},10),mt=r,vt=s)}else{if(!this.options.bubbleScroll||ge(u,!0)===oe()){Ze();return}wt(t,this.options,ge(u,!1),!1)}}},ue(i,{pluginName:"scroll",initializeByDefault:!0})}function Ze(){M.forEach(function(i){clearInterval(i.pid)}),M=[]}function Rt(){clearInterval(Le)}var wt=qt(function(i,e,t,n){if(e.scroll){var a=(i.touches?i.touches[0]:i).clientX,r=(i.touches?i.touches[0]:i).clientY,s=e.scrollSensitivity,u=e.scrollSpeed,c=oe(),f=!1,v;Et!==t&&(Et=t,Ze(),Pe=e.scroll,v=e.scrollFn,Pe===!0&&(Pe=ge(t,!0)));var g=0,V=Pe;do{var I=V,D=F(I),_=D.top,d=D.bottom,te=D.left,C=D.right,U=D.width,B=D.height,q=void 0,k=void 0,re=I.scrollWidth,fe=I.scrollHeight,X=y(I),me=I.scrollLeft,ne=I.scrollTop;I===c?(q=U<re&&(X.overflowX==="auto"||X.overflowX==="scroll"||X.overflowX==="visible"),k=B<fe&&(X.overflowY==="auto"||X.overflowY==="scroll"||X.overflowY==="visible")):(q=U<re&&(X.overflowX==="auto"||X.overflowX==="scroll"),k=B<fe&&(X.overflowY==="auto"||X.overflowY==="scroll"));var ve=q&&(Math.abs(C-a)<=s&&me+U<re)-(Math.abs(te-a)<=s&&!!me),Q=k&&(Math.abs(d-r)<=s&&ne+B<fe)-(Math.abs(_-r)<=s&&!!ne);if(!M[g])for(var z=0;z<=g;z++)M[z]||(M[z]={});(M[g].vx!=ve||M[g].vy!=Q||M[g].el!==I)&&(M[g].el=I,M[g].vx=ve,M[g].vy=Q,clearInterval(M[g].pid),(ve!=0||Q!=0)&&(f=!0,M[g].pid=setInterval((function(){n&&this.layer===0&&E.active._onTouchMove(nt);var de=M[this.layer].vy?M[this.layer].vy*u:0,J=M[this.layer].vx?M[this.layer].vx*u:0;typeof v=="function"&&v.call(E.dragged.parentNode[Z],J,de,i,nt,M[this.layer].el)!=="continue"||Xt(M[this.layer].el,J,de)}).bind({layer:g}),24))),g++}while(e.bubbleScroll&&V!==c&&(V=ge(V,!1)));St=f}},30),Gt=function(e){var t=e.originalEvent,n=e.putSortable,a=e.dragEl,r=e.activeSortable,s=e.dispatchSortableEvent,u=e.hideGhostForTarget,c=e.unhideGhostForTarget;if(t){var f=n||r;u();var v=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,g=document.elementFromPoint(v.clientX,v.clientY);c(),f&&!f.el.contains(g)&&(s("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function _t(){}_t.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var a=Oe(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(t,a):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Gt};ue(_t,{pluginName:"revertOnSpill"});function Tt(){}Tt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,a=n||this.sortable;a.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),a.animateAll()},drop:Gt};ue(Tt,{pluginName:"removeOnSpill"});E.mount(new Tn);E.mount(Tt,_t);const Cn=["data-url","onContextmenu","onMousedown","onClick"],In={key:0,class:"iconfont icon-webicon318 layout-navbars-tagsview-ul-li-iconfont"},Vn=m.defineComponent({name:"layoutTagsView"}),On=m.defineComponent({...Vn,setup(i){const e=m.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./contextmenu-D7XW_CY4.js"))),t=m.ref([]),n=m.ref(),a=m.ref(),r=m.ref(),s=x.useTagsViewRoutes(),u=x.useThemeConfig(),c=x.useTagsViewRoutes(),f=x.useRoutesList(),{themeConfig:v}=x.storeToRefs(u),{tagsViewRoutes:g}=x.storeToRefs(c),{routesList:V}=x.storeToRefs(f),I=x.useKeepALiveNames(),D=x.useRoute(),_=x.useRouter(),d=m.reactive({routeActive:"",routePath:D.path,dropdown:{x:"",y:""},sortable:"",tagsRefsIndex:0,tagsViewList:[],tagsViewRoutesList:[]}),te=m.computed(()=>v.value.tagsStyle),C=m.computed(()=>v.value),U=m.computed(()=>l=>x.other.setTagsViewNameI18n(l)),B=l=>C.value.isShareTagsView?l.path===d.routePath:l.query&&Object.keys(l.query).length||l.params&&Object.keys(l.params).length?l.url?l.url===d.routeActive:l.path===d.routeActive:l.path===d.routePath,q=l=>{x.Session.set("tagsViewList",l)},k=l=>{var b;let o=l.query&&Object.keys(l.query).length>0?l.query:l.params;if(!o||Object.keys(o).length<=0)return l.path;let h="";for(let w in o)h+=o[w];return`${(b=l.meta)!=null&&b.isDynamic?l.meta.isDynamicPath:l.path}-${h}`},re=async(l,o)=>{var w,P;let h=(w=o==null?void 0:o.meta)!=null&&w.isDynamic?o.meta.isDynamicPath:l;if(d.tagsViewList.filter(S=>{var Y,xe;return S.path===h&&x.isObjectValueEqual((Y=o==null?void 0:o.meta)!=null&&Y.isDynamic?S.params?S.params:null:S.query?S.query:null,(xe=o==null?void 0:o.meta)!=null&&xe.isDynamic?o!=null&&o.params?o==null?void 0:o.params:null:o!=null&&o.query?o==null?void 0:o.query:null)}).length<=0){let S=d.tagsViewRoutesList.find(Y=>Y.path===h);if(!S||S.meta.isAffix||S.meta.isLink&&!S.meta.isIframe)return!1;(P=o==null?void 0:o.meta)!=null&&P.isDynamic?S.params=o.params:S.query=o==null?void 0:o.query,S.url=k(S),d.tagsViewList.push({...S}),await I.addCachedView(S),q(d.tagsViewList)}},fe=(l,o)=>{var b;let h=(b=o==null?void 0:o.meta)!=null&&b.isDynamic?o.meta.isDynamicPath:l;d.tagsViewList.forEach(w=>{var P,S,Y;w.path===h&&!x.isObjectValueEqual((P=o==null?void 0:o.meta)!=null&&P.isDynamic?w.params?w.params:null:w.query?w.query:null,(S=o==null?void 0:o.meta)!=null&&S.isDynamic?o!=null&&o.params?o==null?void 0:o.params:null:o!=null&&o.query?o==null?void 0:o.query:null)&&((Y=o==null?void 0:o.meta)!=null&&Y.isDynamic?w.params=o.params:w.query=o==null?void 0:o.query,w.url=k(w),q(d.tagsViewList))})},X=(l,o)=>{m.nextTick(async()=>{var b,w,P;let h;if((b=o==null?void 0:o.meta)!=null&&b.isDynamic){if(C.value.isShareTagsView?await fe(l,o):await re(l,o),d.tagsViewList.some(S=>{var Y;return S.path===((Y=o==null?void 0:o.meta)==null?void 0:Y.isDynamicPath)}))return q(d.tagsViewList),!1;h=d.tagsViewRoutesList.find(S=>{var Y;return S.path===((Y=o==null?void 0:o.meta)==null?void 0:Y.isDynamicPath)})}else{if(C.value.isShareTagsView?await fe(l,o):await re(l,o),d.tagsViewList.some(S=>S.path===l))return q(d.tagsViewList),!1;h=d.tagsViewRoutesList.find(S=>S.path===l)}if(!h||(w=h==null?void 0:h.meta)!=null&&w.isLink&&!h.meta.isIframe)return!1;(P=o==null?void 0:o.meta)!=null&&P.isDynamic?h.params=o!=null&&o.params?o==null?void 0:o.params:D.params:h.query=o!=null&&o.query?o==null?void 0:o.query:D.query,h.url=k(h),await I.addCachedView(h),await d.tagsViewList.push({...h}),await q(d.tagsViewList)})},me=()=>{m.nextTick(()=>{if(t.value.length<=0)return!1;let l=t.value[d.tagsRefsIndex],o=d.tagsRefsIndex,h=t.value.length,b=t.value[0],w=t.value[t.value.length-1],P=n.value.$refs.wrapRef,S=P.scrollWidth,Y=P.offsetWidth,xe=P.scrollLeft,ut=t.value[d.tagsRefsIndex-1],Ct=t.value[d.tagsRefsIndex+1],Xe=0,Ye=0;l===b?P.scrollLeft=0:l===w?P.scrollLeft=S-Y:(o===0?Xe=b.offsetLeft-5:Xe=(ut==null?void 0:ut.offsetLeft)-5,o===h?Ye=w.offsetLeft+w.offsetWidth+5:Ye=Ct.offsetLeft+Ct.offsetWidth+5,Ye>xe+Y?P.scrollLeft=Ye-Y:Xe<xe&&(P.scrollLeft=Xe)),n.value.update()})},ne=l=>{m.nextTick(async()=>{let o=await d.tagsViewList;d.tagsRefsIndex=o.findIndex(h=>C.value.isShareTagsView?h.path===l:h.url===l),me()})},ve=async()=>{x.Session.get("tagsViewList")&&C.value.isCacheTagsView?d.tagsViewList=await x.Session.get("tagsViewList"):(await d.tagsViewRoutesList.map(l=>{var o;(o=l.meta)!=null&&o.isAffix&&!l.meta.isHide&&(l.url=k(l),d.tagsViewList.push({...l}),I.addCachedView(l))}),await X(D.path,D)),ne(C.value.isShareTagsView?d.routePath:d.routeActive)},Q=async()=>{d.routeActive=await k(D),d.routePath=await D.meta.isDynamic?D.meta.isDynamicPath:D.path,d.tagsViewList=[],d.tagsViewRoutesList=g.value,ve()},z=l=>{var b,w;let o=l.query&&Object.keys(l.query).length>0?l.query:l.params;if(!o)return"";let h="";for(let[P,S]of Object.entries(o))(b=l.meta)!=null&&b.isDynamic?h+=`/${S}`:h+=`&${P}=${S}`;return(w=l.meta)!=null&&w.isDynamic?l.isFnClick?decodeURI(l.path):`${l.path.split(":")[0]}${h.replace(/^\//,"")}`:`${l.path}${h.replace(/^&/,"?")}`},de=async l=>{var b;const o=decodeURI(l);let h={};if(d.tagsViewList.forEach(w=>{w.transUrl=z(w),w.transUrl?w.transUrl===z(w)&&(h=w):w.path===o&&(h=w)}),!h)return!1;await I.delCachedView(h),x.mittBus.emit("onTagsViewRefreshRouterView",l),(b=h.meta)!=null&&b.isKeepAlive&&I.addCachedView(h)},J=l=>{d.tagsViewList.map((o,h,b)=>{var w;(w=o.meta)!=null&&w.isAffix||(C.value.isShareTagsView?o.path===l:o.url===l)&&(I.delCachedView(o),d.tagsViewList.splice(h,1),setTimeout(()=>{(d.tagsViewList.length===h&&C.value.isShareTagsView?d.routePath===l:d.routeActive===l)?b[b.length-1].meta.isDynamic?h!==b.length?_.push({name:b[h].name,params:b[h].params}):_.push({name:b[b.length-1].name,params:b[b.length-1].params}):h!==b.length?_.push({path:b[h].path,query:b[h].query}):_.push({path:b[b.length-1].path,query:b[b.length-1].query}):(d.tagsViewList.length!==h&&C.value.isShareTagsView?d.routePath===l:d.routeActive===l)&&(b[h].meta.isDynamic?_.push({name:b[h].name,params:b[h].params}):_.push({path:b[h].path,query:b[h].query}))},0))}),q(d.tagsViewList)},Se=l=>{x.Session.get("tagsViewList")&&(d.tagsViewList=[],x.Session.get("tagsViewList").map(o=>{var h;(h=o.meta)!=null&&h.isAffix&&!o.meta.isHide&&(o.url=k(o),I.delOthersCachedViews(o),d.tagsViewList.push({...o}))}),X(l,D),q(d.tagsViewList))},we=()=>{x.Session.get("tagsViewList")&&(I.delAllCachedViews(),d.tagsViewList=[],x.Session.get("tagsViewList").map(l=>{var o;(o=l.meta)!=null&&o.isAffix&&!l.meta.isHide&&(l.url=k(l),d.tagsViewList.push({...l}),_.push({path:d.tagsViewList[d.tagsViewList.length-1].path}))}),q(d.tagsViewList))},at=async l=>{const o=d.tagsViewList.find(h=>C.value.isShareTagsView?h.path===l:h.url===l);o.meta.isDynamic?await _.push({name:o.name,params:o.params}):await _.push({name:o.name,query:o.query}),s.setCurrenFullscreen(!0)},rt=l=>{let o={};return d.tagsViewList.forEach(h=>{h.transUrl=z(h),h.transUrl?h.transUrl===z(h)&&h.transUrl===l.commonUrl&&(o=h):h.path===decodeURI(l.path)&&(o=h)}),o||null},De=async l=>{if(l.commonUrl=z(l),!rt(l))return x.ElMessage({type:"warning",message:"请正确输入路径及完整参数(query、params)"});const{path:o,name:h,params:b,query:w,meta:P,url:S}=rt(l);switch(l.contextMenuClickId){case 0:P.isDynamic?await _.push({name:h,params:b}):await _.push({path:o,query:w}),de(D.fullPath);break;case 1:J(C.value.isShareTagsView?o:S);break;case 2:P.isDynamic?await _.push({name:h,params:b}):await _.push({path:o,query:w}),Se(o);break;case 3:we();break;case 4:at(C.value.isShareTagsView?o:S);break}},ot=(l,o)=>{const{clientX:h,clientY:b}=o;d.dropdown.x=h,d.dropdown.y=b,a.value.openContextmenu(l)},Kt=(l,o)=>{var h;if(!((h=l.meta)!=null&&h.isAffix)&&o.button===1){const b=Object.assign({},{contextMenuClickId:1,...l});De(b)}},Zt=(l,o)=>{d.tagsRefsIndex=o,_.push(l),C.value.layout==="columns"&&(V.value.find(b=>b.path.indexOf(`/${l.path.split("/")[1]}`)>-1).children?C.value.isCollapse=!1:C.value.isCollapse=!0)},Qt=l=>{n.value.$refs.wrapRef.scrollLeft+=l.wheelDelta/4},st=async()=>{const l=document.querySelector(".layout-navbars-tagsview-ul");if(!l)return!1;d.sortable.el&&d.sortable.destroy(),d.sortable=E.create(l,{animation:300,dataIdAttr:"data-url",disabled:!C.value.isSortableTagsView,onEnd:()=>{const o=[];d.sortable.toArray().map(h=>{d.tagsViewList.map(b=>{b.url===h&&o.push({...b})})}),q(o)}})},lt=async()=>{await st(),x.other.isMobile()&&d.sortable.el&&d.sortable.destroy()};return m.onBeforeMount(()=>{lt(),window.addEventListener("resize",lt),x.mittBus.on("onCurrentContextmenuClick",l=>{l.isFnClick=!0,De(l)}),x.mittBus.on("openOrCloseSortable",()=>{st()}),x.mittBus.on("openShareTagsView",()=>{C.value.isShareTagsView&&(_.push("/home"),d.tagsViewList=[],d.tagsViewRoutesList.map(l=>{var o;(o=l.meta)!=null&&o.isAffix&&!l.meta.isHide&&(l.url=k(l),d.tagsViewList.push({...l}))}))})}),m.onUnmounted(()=>{x.mittBus.off("onCurrentContextmenuClick",()=>{}),x.mittBus.off("openOrCloseSortable",()=>{}),x.mittBus.off("openShareTagsView",()=>{}),window.removeEventListener("resize",lt)}),m.onBeforeUpdate(()=>{t.value=[]}),m.onMounted(()=>{Q(),st()}),x.onBeforeRouteUpdate(async l=>{d.routeActive=k(l),d.routePath=l.meta.isDynamic?l.meta.isDynamicPath:l.path,await X(l.path,l),ne(C.value.isShareTagsView?d.routePath:d.routeActive)}),m.watch(()=>g.value,l=>{if(l.length===d.tagsViewRoutesList.length)return!1;Q()},{deep:!0}),(l,o)=>{const h=m.resolveComponent("SvgIcon"),b=m.resolveComponent("el-scrollbar");return m.openBlock(),m.createElementBlock("div",{class:m.normalizeClass(["layout-navbars-tagsview",{"layout-navbars-tagsview-shadow":C.value.layout==="classic"}])},[m.createVNode(b,{ref_key:"scrollbarRef",ref:n,onWheel:m.withModifiers(Qt,["prevent"])},{default:m.withCtx(()=>[m.createElementVNode("ul",{class:m.normalizeClass(["layout-navbars-tagsview-ul",te.value]),ref_key:"tagsUlRef",ref:r},[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(d.tagsViewList,(w,P)=>(m.openBlock(),m.createElementBlock("li",{key:P,class:m.normalizeClass(["layout-navbars-tagsview-ul-li",{"is-active":B(w)}]),"data-url":w.url,onContextmenu:m.withModifiers(S=>ot(w,S),["prevent"]),onMousedown:S=>Kt(w,S),onClick:S=>Zt(w,P),ref_for:!0,ref:S=>{S&&(t.value[P]=S)}},[B(w)?(m.openBlock(),m.createElementBlock("i",In)):m.createCommentVNode("",!0),!B(w)&&C.value.isTagsviewIcon?(m.openBlock(),m.createBlock(h,{key:1,name:w.meta.icon,class:"pr5"},null,8,["name"])):m.createCommentVNode("",!0),m.createElementVNode("span",null,m.toDisplayString(U.value(w)),1),B(w)?(m.openBlock(),m.createElementBlock(m.Fragment,{key:2},[m.createVNode(h,{name:"ele-RefreshRight",class:"ml5 layout-navbars-tagsview-ul-li-refresh",onClick:o[0]||(o[0]=m.withModifiers(S=>de(l.$route.fullPath),["stop"]))}),w.meta.isAffix?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(h,{key:0,name:"ele-Close",class:"layout-navbars-tagsview-ul-li-icon layout-icon-active",onClick:m.withModifiers(S=>J(C.value.isShareTagsView?w.path:w.url),["stop"])},null,8,["onClick"]))],64)):m.createCommentVNode("",!0),w.meta.isAffix?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(h,{key:3,name:"ele-Close",class:"layout-navbars-tagsview-ul-li-icon layout-icon-three",onClick:m.withModifiers(S=>J(C.value.isShareTagsView?w.path:w.url),["stop"])},null,8,["onClick"]))],42,Cn))),128))],2)]),_:1},512),m.createVNode(m.unref(e),{dropdown:d.dropdown,ref_key:"contextmenuRef",ref:a,onCurrentContextmenuClick:De},null,8,["dropdown"])],2)}}}),xn=x._export_sfc(On,[["__scopeId","data-v-a7a031b3"]]);exports.default=xn;
|
|
6
|
+
*/function It(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),t.push.apply(t,n)}return t}function se(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?It(Object(t),!0).forEach(function(n){Jt(i,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):It(Object(t)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(t,n))})}return i}function Ue(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ue=function(e){return typeof e}:Ue=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(i)}function Jt(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function ue(){return ue=Object.assign||function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},ue.apply(this,arguments)}function en(i,e){if(i==null)return{};var t={},n=Object.keys(i),a,r;for(r=0;r<n.length;r++)a=n[r],!(e.indexOf(a)>=0)&&(t[a]=i[a]);return t}function tn(i,e){if(i==null)return{};var t=en(i,e),n,a;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);for(a=0;a<r.length;a++)n=r[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(t[n]=i[n])}return t}var nn="1.15.2";function le(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var ce=le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Be=le(/Edge/i),Vt=le(/firefox/i),Ne=le(/safari/i)&&!le(/chrome/i)&&!le(/android/i),kt=le(/iP(ad|od|hone)/i),Mt=le(/chrome/i)&&le(/android/i),Ft={capture:!1,passive:!1};function A(i,e,t){i.addEventListener(e,t,!ce&&Ft)}function O(i,e,t){i.removeEventListener(e,t,!ce&&Ft)}function Qe(i,e){if(e){if(e[0]===">"&&(e=e.substring(1)),i)try{if(i.matches)return i.matches(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e)}catch{return!1}return!1}}function an(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function ae(i,e,t,n){if(i){t=t||document;do{if(e!=null&&(e[0]===">"?i.parentNode===t&&Qe(i,e):Qe(i,e))||n&&i===t)return i;if(i===t)break}while(i=an(i))}return null}var Ot=/\s+/g;function G(i,e,t){if(i&&e)if(i.classList)i.classList[t?"add":"remove"](e);else{var n=(" "+i.className+" ").replace(Ot," ").replace(" "+e+" "," ");i.className=(n+(t?" "+e:"")).replace(Ot," ")}}function y(i,e,t){var n=i&&i.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(t=i.currentStyle),e===void 0?t:t[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=t+(typeof t=="string"?"":"px")}}function Ve(i,e){var t="";if(typeof i=="string")t=i;else do{var n=y(i,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!e&&(i=i.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(t)}function Bt(i,e,t){if(i){var n=i.getElementsByTagName(e),a=0,r=n.length;if(t)for(;a<r;a++)t(n[a],a);return n}return[]}function oe(){var i=document.scrollingElement;return i||document.documentElement}function F(i,e,t,n,a){if(!(!i.getBoundingClientRect&&i!==window)){var r,s,u,c,f,v,g;if(i!==window&&i.parentNode&&i!==oe()?(r=i.getBoundingClientRect(),s=r.top,u=r.left,c=r.bottom,f=r.right,v=r.height,g=r.width):(s=0,u=0,c=window.innerHeight,f=window.innerWidth,v=window.innerHeight,g=window.innerWidth),(e||t)&&i!==window&&(a=a||i.parentNode,!ce))do if(a&&a.getBoundingClientRect&&(y(a,"transform")!=="none"||t&&y(a,"position")!=="static")){var V=a.getBoundingClientRect();s-=V.top+parseInt(y(a,"border-top-width")),u-=V.left+parseInt(y(a,"border-left-width")),c=s+r.height,f=u+r.width;break}while(a=a.parentNode);if(n&&i!==window){var I=Ve(a||i),D=I&&I.a,_=I&&I.d;I&&(s/=_,u/=D,g/=D,v/=_,c=s+v,f=u+g)}return{top:s,left:u,bottom:c,right:f,width:g,height:v}}}function xt(i,e,t){for(var n=ge(i,!0),a=F(i)[e];n;){var r=F(n)[t],s=void 0;if(t==="top"||t==="left"?s=a>=r:s=a<=r,!s)return n;if(n===oe())break;n=ge(n,!1)}return!1}function Oe(i,e,t,n){for(var a=0,r=0,s=i.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==E.ghost&&(n||s[r]!==E.dragged)&&ae(s[r],t.draggable,i,!1)){if(a===e)return s[r];a++}r++}return null}function Dt(i,e){for(var t=i.lastElementChild;t&&(t===E.ghost||y(t,"display")==="none"||e&&!Qe(t,e));)t=t.previousElementSibling;return t||null}function ee(i,e){var t=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==E.clone&&(!e||Qe(i,e))&&t++;return t}function At(i){var e=0,t=0,n=oe();if(i)do{var a=Ve(i),r=a.a,s=a.d;e+=i.scrollLeft*r,t+=i.scrollTop*s}while(i!==n&&(i=i.parentNode));return[e,t]}function rn(i,e){for(var t in i)if(i.hasOwnProperty(t)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===i[t][n])return Number(t)}return-1}function ge(i,e){if(!i||!i.getBoundingClientRect)return oe();var t=i,n=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var a=y(t);if(t.clientWidth<t.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return oe();if(n||e)return t;n=!0}}while(t=t.parentNode);return oe()}function on(i,e){if(i&&e)for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function ct(i,e){return Math.round(i.top)===Math.round(e.top)&&Math.round(i.left)===Math.round(e.left)&&Math.round(i.height)===Math.round(e.height)&&Math.round(i.width)===Math.round(e.width)}var Re;function qt(i,e){return function(){if(!Re){var t=arguments,n=this;t.length===1?i.call(n,t[0]):i.apply(n,t),Re=setTimeout(function(){Re=void 0},e)}}}function sn(){clearTimeout(Re),Re=void 0}function Xt(i,e,t){i.scrollLeft+=e,i.scrollTop+=t}function Yt(i){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(i).cloneNode(!0):t?t(i).clone(!0)[0]:i.cloneNode(!0)}function Ht(i,e,t){var n={};return Array.from(i.children).forEach(function(a){var r,s,u,c;if(!(!ae(a,e.draggable,i,!1)||a.animated||a===t)){var f=F(a);n.left=Math.min((r=n.left)!==null&&r!==void 0?r:1/0,f.left),n.top=Math.min((s=n.top)!==null&&s!==void 0?s:1/0,f.top),n.right=Math.max((u=n.right)!==null&&u!==void 0?u:-1/0,f.right),n.bottom=Math.max((c=n.bottom)!==null&&c!==void 0?c:-1/0,f.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var Z="Sortable"+new Date().getTime();function ln(){var i=[],e;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(a){if(!(y(a,"display")==="none"||a===E.ghost)){i.push({target:a,rect:F(a)});var r=se({},i[i.length-1].rect);if(a.thisAnimationDuration){var s=Ve(a,!0);s&&(r.top-=s.f,r.left-=s.e)}a.fromRect=r}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(rn(i,{target:n}),1)},animateAll:function(n){var a=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var r=!1,s=0;i.forEach(function(u){var c=0,f=u.target,v=f.fromRect,g=F(f),V=f.prevFromRect,I=f.prevToRect,D=u.rect,_=Ve(f,!0);_&&(g.top-=_.f,g.left-=_.e),f.toRect=g,f.thisAnimationDuration&&ct(V,g)&&!ct(v,g)&&(D.top-g.top)/(D.left-g.left)===(v.top-g.top)/(v.left-g.left)&&(c=cn(D,V,I,a.options)),ct(g,v)||(f.prevFromRect=v,f.prevToRect=g,c||(c=a.options.animation),a.animate(f,D,g,c)),c&&(r=!0,s=Math.max(s,c),clearTimeout(f.animationResetTimer),f.animationResetTimer=setTimeout(function(){f.animationTime=0,f.prevFromRect=null,f.fromRect=null,f.prevToRect=null,f.thisAnimationDuration=null},c),f.thisAnimationDuration=c)}),clearTimeout(e),r?e=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),i=[]},animate:function(n,a,r,s){if(s){y(n,"transition",""),y(n,"transform","");var u=Ve(this.el),c=u&&u.a,f=u&&u.d,v=(a.left-r.left)/(c||1),g=(a.top-r.top)/(f||1);n.animatingX=!!v,n.animatingY=!!g,y(n,"transform","translate3d("+v+"px,"+g+"px,0)"),this.forRepaintDummy=un(n),y(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),y(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){y(n,"transition",""),y(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function un(i){return i.offsetWidth}function cn(i,e,t,n){return Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*n.animation}var _e=[],ft={initializeByDefault:!0},qe={mount:function(e){for(var t in ft)ft.hasOwnProperty(t)&&!(t in e)&&(e[t]=ft[t]);_e.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),_e.push(e)},pluginEvent:function(e,t,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var r=e+"Global";_e.forEach(function(s){t[s.pluginName]&&(t[s.pluginName][r]&&t[s.pluginName][r](se({sortable:t},n)),t.options[s.pluginName]&&t[s.pluginName][e]&&t[s.pluginName][e](se({sortable:t},n)))})},initializePlugins:function(e,t,n,a){_e.forEach(function(u){var c=u.pluginName;if(!(!e.options[c]&&!u.initializeByDefault)){var f=new u(e,t,e.options);f.sortable=e,f.options=e.options,e[c]=f,ue(n,f.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var s=this.modifyOption(e,r,e.options[r]);typeof s<"u"&&(e.options[r]=s)}},getEventProperties:function(e,t){var n={};return _e.forEach(function(a){typeof a.eventProperties=="function"&&ue(n,a.eventProperties.call(t[a.pluginName],e))}),n},modifyOption:function(e,t,n){var a;return _e.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[t]=="function"&&(a=r.optionListeners[t].call(e[r.pluginName],n))}),a}};function fn(i){var e=i.sortable,t=i.rootEl,n=i.name,a=i.targetEl,r=i.cloneEl,s=i.toEl,u=i.fromEl,c=i.oldIndex,f=i.newIndex,v=i.oldDraggableIndex,g=i.newDraggableIndex,V=i.originalEvent,I=i.putSortable,D=i.extraEventProperties;if(e=e||t&&t[Z],!!e){var _,d=e.options,te="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!ce&&!Be?_=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(_=document.createEvent("Event"),_.initEvent(n,!0,!0)),_.to=s||t,_.from=u||t,_.item=a||t,_.clone=r,_.oldIndex=c,_.newIndex=f,_.oldDraggableIndex=v,_.newDraggableIndex=g,_.originalEvent=V,_.pullMode=I?I.lastPutMode:void 0;var C=se(se({},D),qe.getEventProperties(n,e));for(var U in C)_[U]=C[U];t&&t.dispatchEvent(_),d[te]&&d[te].call(e,_)}}var dn=["evt"],j=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.evt,r=tn(n,dn);qe.pluginEvent.bind(E)(e,t,se({dragEl:p,parentEl:R,ghostEl:T,rootEl:L,nextEl:Ee,lastDownEl:ze,cloneEl:N,cloneHidden:pe,dragStarted:Ae,putSortable:H,activeSortable:E.active,originalEvent:a,oldIndex:Ie,oldDraggableIndex:ke,newIndex:K,newDraggableIndex:he,hideGhostForTarget:Ut,unhideGhostForTarget:zt,cloneNowHidden:function(){pe=!0},cloneNowShown:function(){pe=!1},dispatchSortableEvent:function(u){$({sortable:t,name:u,originalEvent:a})}},r))};function $(i){fn(se({putSortable:H,cloneEl:N,targetEl:p,rootEl:L,oldIndex:Ie,oldDraggableIndex:ke,newIndex:K,newDraggableIndex:he},i))}var p,R,T,L,Ee,ze,N,pe,Ie,K,ke,he,He,H,Ce=!1,Je=!1,et=[],be,ie,dt,ht,Pt,Lt,Ae,Te,Me,Fe=!1,We=!1,Ge,W,pt=[],bt=!1,tt=[],it=typeof document<"u",$e=kt,Nt=Be||ce?"cssFloat":"float",hn=it&&!Mt&&!kt&&"draggable"in document.createElement("div"),Wt=function(){if(it){if(ce)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),$t=function(e,t){var n=y(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=Oe(e,0,t),s=Oe(e,1,t),u=r&&y(r),c=s&&y(s),f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+F(r).width,v=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+F(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&u.float&&u.float!=="none"){var g=u.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===g)?"vertical":"horizontal"}return r&&(u.display==="block"||u.display==="flex"||u.display==="table"||u.display==="grid"||f>=a&&n[Nt]==="none"||s&&n[Nt]==="none"&&f+v>a)?"vertical":"horizontal"},pn=function(e,t,n){var a=n?e.left:e.top,r=n?e.right:e.bottom,s=n?e.width:e.height,u=n?t.left:t.top,c=n?t.right:t.bottom,f=n?t.width:t.height;return a===u||r===c||a+s/2===u+f/2},gn=function(e,t){var n;return et.some(function(a){var r=a[Z].options.emptyInsertThreshold;if(!(!r||Dt(a))){var s=F(a),u=e>=s.left-r&&e<=s.right+r,c=t>=s.top-r&&t<=s.bottom+r;if(u&&c)return n=a}}),n},jt=function(e){function t(r,s){return function(u,c,f,v){var g=u.options.group.name&&c.options.group.name&&u.options.group.name===c.options.group.name;if(r==null&&(s||g))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return t(r(u,c,f,v),s)(u,c,f,v);var V=(s?u:c).options.group.name;return r===!0||typeof r=="string"&&r===V||r.join&&r.indexOf(V)>-1}}var n={},a=e.group;(!a||Ue(a)!="object")&&(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n},Ut=function(){!Wt&&T&&y(T,"display","none")},zt=function(){!Wt&&T&&y(T,"display","")};it&&!Mt&&document.addEventListener("click",function(i){if(Je)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),Je=!1,!1},!0);var ye=function(e){if(p){e=e.touches?e.touches[0]:e;var t=gn(e.clientX,e.clientY);if(t){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Z]._onDragOver(n)}}},mn=function(e){p&&p.parentNode[Z]._isOutsideThisEl(e.target)};function E(i,e){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=e=ue({},e),i[Z]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return $t(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,u){s.setData("Text",u.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:E.supportPointer!==!1&&"PointerEvent"in window&&!Ne,emptyInsertThreshold:5};qe.initializePlugins(this,i,t);for(var n in t)!(n in e)&&(e[n]=t[n]);jt(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:hn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?A(i,"pointerdown",this._onTapStart):(A(i,"mousedown",this._onTapStart),A(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(A(i,"dragover",this),A(i,"dragenter",this)),et.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ue(this,ln())}E.prototype={constructor:E,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Te=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,p):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,a=this.options,r=a.preventOnFilter,s=e.type,u=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,c=(u||e).target,f=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||c,v=a.filter;if(_n(n),!p&&!(/mousedown|pointerdown/.test(s)&&e.button!==0||a.disabled)&&!f.isContentEditable&&!(!this.nativeDraggable&&Ne&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=ae(c,a.draggable,n,!1),!(c&&c.animated)&&ze!==c)){if(Ie=ee(c),ke=ee(c,a.draggable),typeof v=="function"){if(v.call(this,e,c,this)){$({sortable:t,rootEl:f,name:"filter",targetEl:c,toEl:n,fromEl:n}),j("filter",t,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(v&&(v=v.split(",").some(function(g){if(g=ae(f,g.trim(),n,!1),g)return $({sortable:t,rootEl:g,name:"filter",targetEl:c,fromEl:n,toEl:n}),j("filter",t,{evt:e}),!0}),v)){r&&e.cancelable&&e.preventDefault();return}a.handle&&!ae(f,a.handle,n,!1)||this._prepareDragStart(e,u,c)}}},_prepareDragStart:function(e,t,n){var a=this,r=a.el,s=a.options,u=r.ownerDocument,c;if(n&&!p&&n.parentNode===r){var f=F(n);if(L=r,p=n,R=p.parentNode,Ee=p.nextSibling,ze=n,He=s.group,E.dragged=p,be={target:p,clientX:(t||e).clientX,clientY:(t||e).clientY},Pt=be.clientX-f.left,Lt=be.clientY-f.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,p.style["will-change"]="all",c=function(){if(j("delayEnded",a,{evt:e}),E.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Vt&&a.nativeDraggable&&(p.draggable=!0),a._triggerDragStart(e,t),$({sortable:a,name:"choose",originalEvent:e}),G(p,s.chosenClass,!0)},s.ignore.split(",").forEach(function(v){Bt(p,v.trim(),gt)}),A(u,"dragover",ye),A(u,"mousemove",ye),A(u,"touchmove",ye),A(u,"mouseup",a._onDrop),A(u,"touchend",a._onDrop),A(u,"touchcancel",a._onDrop),Vt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,p.draggable=!0),j("delayStart",this,{evt:e}),s.delay&&(!s.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Be||ce))){if(E.eventCanceled){this._onDrop();return}A(u,"mouseup",a._disableDelayedDrag),A(u,"touchend",a._disableDelayedDrag),A(u,"touchcancel",a._disableDelayedDrag),A(u,"mousemove",a._delayedDragTouchMoveHandler),A(u,"touchmove",a._delayedDragTouchMoveHandler),s.supportPointer&&A(u,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){p&>(p),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;O(e,"mouseup",this._disableDelayedDrag),O(e,"touchend",this._disableDelayedDrag),O(e,"touchcancel",this._disableDelayedDrag),O(e,"mousemove",this._delayedDragTouchMoveHandler),O(e,"touchmove",this._delayedDragTouchMoveHandler),O(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?A(document,"pointermove",this._onTouchMove):t?A(document,"touchmove",this._onTouchMove):A(document,"mousemove",this._onTouchMove):(A(p,"dragend",this),A(L,"dragstart",this._onDragStart));try{document.selection?Ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ce=!1,L&&p){j("dragStarted",this,{evt:t}),this.nativeDraggable&&A(document,"dragover",mn);var n=this.options;!e&&G(p,n.dragClass,!1),G(p,n.ghostClass,!0),E.active=this,e&&this._appendGhost(),$({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ie){this._lastX=ie.clientX,this._lastY=ie.clientY,Ut();for(var e=document.elementFromPoint(ie.clientX,ie.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ie.clientX,ie.clientY),e!==t);)t=e;if(p.parentNode[Z]._isOutsideThisEl(e),t)do{if(t[Z]){var n=void 0;if(n=t[Z]._onDragOver({clientX:ie.clientX,clientY:ie.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);zt()}},_onTouchMove:function(e){if(be){var t=this.options,n=t.fallbackTolerance,a=t.fallbackOffset,r=e.touches?e.touches[0]:e,s=T&&Ve(T,!0),u=T&&s&&s.a,c=T&&s&&s.d,f=$e&&W&&At(W),v=(r.clientX-be.clientX+a.x)/(u||1)+(f?f[0]-pt[0]:0)/(u||1),g=(r.clientY-be.clientY+a.y)/(c||1)+(f?f[1]-pt[1]:0)/(c||1);if(!E.active&&!Ce){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(T){s?(s.e+=v-(dt||0),s.f+=g-(ht||0)):s={a:1,b:0,c:0,d:1,e:v,f:g};var V="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");y(T,"webkitTransform",V),y(T,"mozTransform",V),y(T,"msTransform",V),y(T,"transform",V),dt=v,ht=g,ie=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!T){var e=this.options.fallbackOnBody?document.body:L,t=F(p,!0,$e,!0,e),n=this.options;if($e){for(W=e;y(W,"position")==="static"&&y(W,"transform")==="none"&&W!==document;)W=W.parentNode;W!==document.body&&W!==document.documentElement?(W===document&&(W=oe()),t.top+=W.scrollTop,t.left+=W.scrollLeft):W=oe(),pt=At(W)}T=p.cloneNode(!0),G(T,n.ghostClass,!1),G(T,n.fallbackClass,!0),G(T,n.dragClass,!0),y(T,"transition",""),y(T,"transform",""),y(T,"box-sizing","border-box"),y(T,"margin",0),y(T,"top",t.top),y(T,"left",t.left),y(T,"width",t.width),y(T,"height",t.height),y(T,"opacity","0.8"),y(T,"position",$e?"absolute":"fixed"),y(T,"zIndex","100000"),y(T,"pointerEvents","none"),E.ghost=T,e.appendChild(T),y(T,"transform-origin",Pt/parseInt(T.style.width)*100+"% "+Lt/parseInt(T.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,a=e.dataTransfer,r=n.options;if(j("dragStart",this,{evt:e}),E.eventCanceled){this._onDrop();return}j("setupClone",this),E.eventCanceled||(N=Yt(p),N.removeAttribute("id"),N.draggable=!1,N.style["will-change"]="",this._hideClone(),G(N,this.options.chosenClass,!1),E.clone=N),n.cloneId=Ke(function(){j("clone",n),!E.eventCanceled&&(n.options.removeCloneOnHide||L.insertBefore(N,p),n._hideClone(),$({sortable:n,name:"clone"}))}),!t&&G(p,r.dragClass,!0),t?(Je=!0,n._loopId=setInterval(n._emulateDragOver,50)):(O(document,"mouseup",n._onDrop),O(document,"touchend",n._onDrop),O(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",r.setData&&r.setData.call(n,a,p)),A(document,"drop",n),y(p,"transform","translateZ(0)")),Ce=!0,n._dragStartId=Ke(n._dragStarted.bind(n,t,e)),A(document,"selectstart",n),Ae=!0,Ne&&y(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,a,r,s,u=this.options,c=u.group,f=E.active,v=He===c,g=u.sort,V=H||f,I,D=this,_=!1;if(bt)return;function d(we,at){j(we,D,se({evt:e,isOwner:v,axis:I?"vertical":"horizontal",revert:s,dragRect:a,targetRect:r,canSort:g,fromSortable:V,target:n,completed:C,onMove:function(De,ot){return je(L,t,p,a,De,F(De),e,ot)},changed:U},at))}function te(){d("dragOverAnimationCapture"),D.captureAnimationState(),D!==V&&V.captureAnimationState()}function C(we){return d("dragOverCompleted",{insertion:we}),we&&(v?f._hideClone():f._showClone(D),D!==V&&(G(p,H?H.options.ghostClass:f.options.ghostClass,!1),G(p,u.ghostClass,!0)),H!==D&&D!==E.active?H=D:D===E.active&&H&&(H=null),V===D&&(D._ignoreWhileAnimating=n),D.animateAll(function(){d("dragOverAnimationComplete"),D._ignoreWhileAnimating=null}),D!==V&&(V.animateAll(),V._ignoreWhileAnimating=null)),(n===p&&!p.animated||n===t&&!n.animated)&&(Te=null),!u.dragoverBubble&&!e.rootEl&&n!==document&&(p.parentNode[Z]._isOutsideThisEl(e.target),!we&&ye(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),_=!0}function U(){K=ee(p),he=ee(p,u.draggable),$({sortable:D,name:"change",toEl:t,newIndex:K,newDraggableIndex:he,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=ae(n,u.draggable,t,!0),d("dragOver"),E.eventCanceled)return _;if(p.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||D._ignoreWhileAnimating===n)return C(!1);if(Je=!1,f&&!u.disabled&&(v?g||(s=R!==L):H===this||(this.lastPutMode=He.checkPull(this,f,p,e))&&c.checkPut(this,f,p,e))){if(I=this._getDirection(e,n)==="vertical",a=F(p),d("dragOverValid"),E.eventCanceled)return _;if(s)return R=L,te(),this._hideClone(),d("revert"),E.eventCanceled||(Ee?L.insertBefore(p,Ee):L.appendChild(p)),C(!0);var B=Dt(t,u.draggable);if(!B||yn(e,I,this)&&!B.animated){if(B===p)return C(!1);if(B&&t===e.target&&(n=B),n&&(r=F(n)),je(L,t,p,a,n,r,e,!!n)!==!1)return te(),B&&B.nextSibling?t.insertBefore(p,B.nextSibling):t.appendChild(p),R=t,U(),C(!0)}else if(B&&bn(e,I,this)){var q=Oe(t,0,u,!0);if(q===p)return C(!1);if(n=q,r=F(n),je(L,t,p,a,n,r,e,!1)!==!1)return te(),t.insertBefore(p,q),R=t,U(),C(!0)}else if(n.parentNode===t){r=F(n);var k=0,re,fe=p.parentNode!==t,X=!pn(p.animated&&p.toRect||a,n.animated&&n.toRect||r,I),me=I?"top":"left",ne=xt(n,"top","top")||xt(p,"top","top"),ve=ne?ne.scrollTop:void 0;Te!==n&&(re=r[me],Fe=!1,We=!X&&u.invertSwap||fe),k=En(e,n,r,I,X?1:u.swapThreshold,u.invertedSwapThreshold==null?u.swapThreshold:u.invertedSwapThreshold,We,Te===n);var Q;if(k!==0){var z=ee(p);do z-=k,Q=R.children[z];while(Q&&(y(Q,"display")==="none"||Q===T))}if(k===0||Q===n)return C(!1);Te=n,Me=k;var de=n.nextElementSibling,J=!1;J=k===1;var Se=je(L,t,p,a,n,r,e,J);if(Se!==!1)return(Se===1||Se===-1)&&(J=Se===1),bt=!0,setTimeout(wn,30),te(),J&&!de?t.appendChild(p):n.parentNode.insertBefore(p,J?de:n),ne&&Xt(ne,0,ve-ne.scrollTop),R=p.parentNode,re!==void 0&&!We&&(Ge=Math.abs(re-F(n)[me])),U(),C(!0)}if(t.contains(p))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){O(document,"mousemove",this._onTouchMove),O(document,"touchmove",this._onTouchMove),O(document,"pointermove",this._onTouchMove),O(document,"dragover",ye),O(document,"mousemove",ye),O(document,"touchmove",ye)},_offUpEvents:function(){var e=this.el.ownerDocument;O(e,"mouseup",this._onDrop),O(e,"touchend",this._onDrop),O(e,"pointerup",this._onDrop),O(e,"touchcancel",this._onDrop),O(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(K=ee(p),he=ee(p,n.draggable),j("drop",this,{evt:e}),R=p&&p.parentNode,K=ee(p),he=ee(p,n.draggable),E.eventCanceled){this._nulling();return}Ce=!1,We=!1,Fe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),yt(this.cloneId),yt(this._dragStartId),this.nativeDraggable&&(O(document,"drop",this),O(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ne&&y(document.body,"user-select",""),y(p,"transform",""),e&&(Ae&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),T&&T.parentNode&&T.parentNode.removeChild(T),(L===R||H&&H.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),p&&(this.nativeDraggable&&O(p,"dragend",this),gt(p),p.style["will-change"]="",Ae&&!Ce&&G(p,H?H.options.ghostClass:this.options.ghostClass,!1),G(p,this.options.chosenClass,!1),$({sortable:this,name:"unchoose",toEl:R,newIndex:null,newDraggableIndex:null,originalEvent:e}),L!==R?(K>=0&&($({rootEl:R,name:"add",toEl:R,fromEl:L,originalEvent:e}),$({sortable:this,name:"remove",toEl:R,originalEvent:e}),$({rootEl:R,name:"sort",toEl:R,fromEl:L,originalEvent:e}),$({sortable:this,name:"sort",toEl:R,originalEvent:e})),H&&H.save()):K!==Ie&&K>=0&&($({sortable:this,name:"update",toEl:R,originalEvent:e}),$({sortable:this,name:"sort",toEl:R,originalEvent:e})),E.active&&((K==null||K===-1)&&(K=Ie,he=ke),$({sortable:this,name:"end",toEl:R,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){j("nulling",this),L=p=R=T=Ee=N=ze=pe=be=ie=Ae=K=he=Ie=ke=Te=Me=H=He=E.dragged=E.ghost=E.clone=E.active=null,tt.forEach(function(e){e.checked=!0}),tt.length=dt=ht=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":p&&(this._onDragOver(e),vn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,a=0,r=n.length,s=this.options;a<r;a++)t=n[a],ae(t,s.draggable,this.el,!1)&&e.push(t.getAttribute(s.dataIdAttr)||Dn(t));return e},sort:function(e,t){var n={},a=this.el;this.toArray().forEach(function(r,s){var u=a.children[s];ae(u,this.options.draggable,a,!1)&&(n[r]=u)},this),t&&this.captureAnimationState(),e.forEach(function(r){n[r]&&(a.removeChild(n[r]),a.appendChild(n[r]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ae(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var a=qe.modifyOption(this,e,t);typeof a<"u"?n[e]=a:n[e]=t,e==="group"&&jt(n)},destroy:function(){j("destroy",this);var e=this.el;e[Z]=null,O(e,"mousedown",this._onTapStart),O(e,"touchstart",this._onTapStart),O(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(O(e,"dragover",this),O(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),et.splice(et.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!pe){if(j("hideClone",this),E.eventCanceled)return;y(N,"display","none"),this.options.removeCloneOnHide&&N.parentNode&&N.parentNode.removeChild(N),pe=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(pe){if(j("showClone",this),E.eventCanceled)return;p.parentNode==L&&!this.options.group.revertClone?L.insertBefore(N,p):Ee?L.insertBefore(N,Ee):L.appendChild(N),this.options.group.revertClone&&this.animate(p,N),y(N,"display",""),pe=!1}}};function vn(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function je(i,e,t,n,a,r,s,u){var c,f=i[Z],v=f.options.onMove,g;return window.CustomEvent&&!ce&&!Be?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=e,c.from=i,c.dragged=t,c.draggedRect=n,c.related=a||e,c.relatedRect=r||F(e),c.willInsertAfter=u,c.originalEvent=s,i.dispatchEvent(c),v&&(g=v.call(f,c,s)),g}function gt(i){i.draggable=!1}function wn(){bt=!1}function bn(i,e,t){var n=F(Oe(t.el,0,t.options,!0)),a=Ht(t.el,t.options,T),r=10;return e?i.clientX<a.left-r||i.clientY<n.top&&i.clientX<n.right:i.clientY<a.top-r||i.clientY<n.bottom&&i.clientX<n.left}function yn(i,e,t){var n=F(Dt(t.el,t.options.draggable)),a=Ht(t.el,t.options,T),r=10;return e?i.clientX>a.right+r||i.clientY>n.bottom&&i.clientX>n.left:i.clientY>a.bottom+r||i.clientX>n.right&&i.clientY>n.top}function En(i,e,t,n,a,r,s,u){var c=n?i.clientY:i.clientX,f=n?t.height:t.width,v=n?t.top:t.left,g=n?t.bottom:t.right,V=!1;if(!s){if(u&&Ge<f*a){if(!Fe&&(Me===1?c>v+f*r/2:c<g-f*r/2)&&(Fe=!0),Fe)V=!0;else if(Me===1?c<v+Ge:c>g-Ge)return-Me}else if(c>v+f*(1-a)/2&&c<g-f*(1-a)/2)return Sn(e)}return V=V||s,V&&(c<v+f*r/2||c>g-f*r/2)?c>v+f/2?1:-1:0}function Sn(i){return ee(p)<ee(i)?1:-1}function Dn(i){for(var e=i.tagName+i.className+i.src+i.href+i.textContent,t=e.length,n=0;t--;)n+=e.charCodeAt(t);return n.toString(36)}function _n(i){tt.length=0;for(var e=i.getElementsByTagName("input"),t=e.length;t--;){var n=e[t];n.checked&&tt.push(n)}}function Ke(i){return setTimeout(i,0)}function yt(i){return clearTimeout(i)}it&&A(document,"touchmove",function(i){(E.active||Ce)&&i.cancelable&&i.preventDefault()});E.utils={on:A,off:O,css:y,find:Bt,is:function(e,t){return!!ae(e,t,e,!1)},extend:on,throttle:qt,closest:ae,toggleClass:G,clone:Yt,index:ee,nextTick:Ke,cancelNextTick:yt,detectDirection:$t,getChild:Oe};E.get=function(i){return i[Z]};E.mount=function(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(E.utils=se(se({},E.utils),n.utils)),qe.mount(n)})};E.create=function(i,e){return new E(i,e)};E.version=nn;var M=[],Pe,Et,St=!1,mt,vt,nt,Le;function Tn(){function i(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return i.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):this.options.supportPointer?A(document,"pointermove",this._handleFallbackAutoScroll):n.touches?A(document,"touchmove",this._handleFallbackAutoScroll):A(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?O(document,"dragover",this._handleAutoScroll):(O(document,"pointermove",this._handleFallbackAutoScroll),O(document,"touchmove",this._handleFallbackAutoScroll),O(document,"mousemove",this._handleFallbackAutoScroll)),Rt(),Ze(),sn()},nulling:function(){nt=Et=Pe=St=Le=mt=vt=null,M.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var a=this,r=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,u=document.elementFromPoint(r,s);if(nt=t,n||this.options.forceAutoScrollFallback||Be||ce||Ne){wt(t,this.options,u,n);var c=ge(u,!0);St&&(!Le||r!==mt||s!==vt)&&(Le&&Rt(),Le=setInterval(function(){var f=ge(document.elementFromPoint(r,s),!0);f!==c&&(c=f,Ze()),wt(t,a.options,f,n)},10),mt=r,vt=s)}else{if(!this.options.bubbleScroll||ge(u,!0)===oe()){Ze();return}wt(t,this.options,ge(u,!1),!1)}}},ue(i,{pluginName:"scroll",initializeByDefault:!0})}function Ze(){M.forEach(function(i){clearInterval(i.pid)}),M=[]}function Rt(){clearInterval(Le)}var wt=qt(function(i,e,t,n){if(e.scroll){var a=(i.touches?i.touches[0]:i).clientX,r=(i.touches?i.touches[0]:i).clientY,s=e.scrollSensitivity,u=e.scrollSpeed,c=oe(),f=!1,v;Et!==t&&(Et=t,Ze(),Pe=e.scroll,v=e.scrollFn,Pe===!0&&(Pe=ge(t,!0)));var g=0,V=Pe;do{var I=V,D=F(I),_=D.top,d=D.bottom,te=D.left,C=D.right,U=D.width,B=D.height,q=void 0,k=void 0,re=I.scrollWidth,fe=I.scrollHeight,X=y(I),me=I.scrollLeft,ne=I.scrollTop;I===c?(q=U<re&&(X.overflowX==="auto"||X.overflowX==="scroll"||X.overflowX==="visible"),k=B<fe&&(X.overflowY==="auto"||X.overflowY==="scroll"||X.overflowY==="visible")):(q=U<re&&(X.overflowX==="auto"||X.overflowX==="scroll"),k=B<fe&&(X.overflowY==="auto"||X.overflowY==="scroll"));var ve=q&&(Math.abs(C-a)<=s&&me+U<re)-(Math.abs(te-a)<=s&&!!me),Q=k&&(Math.abs(d-r)<=s&&ne+B<fe)-(Math.abs(_-r)<=s&&!!ne);if(!M[g])for(var z=0;z<=g;z++)M[z]||(M[z]={});(M[g].vx!=ve||M[g].vy!=Q||M[g].el!==I)&&(M[g].el=I,M[g].vx=ve,M[g].vy=Q,clearInterval(M[g].pid),(ve!=0||Q!=0)&&(f=!0,M[g].pid=setInterval((function(){n&&this.layer===0&&E.active._onTouchMove(nt);var de=M[this.layer].vy?M[this.layer].vy*u:0,J=M[this.layer].vx?M[this.layer].vx*u:0;typeof v=="function"&&v.call(E.dragged.parentNode[Z],J,de,i,nt,M[this.layer].el)!=="continue"||Xt(M[this.layer].el,J,de)}).bind({layer:g}),24))),g++}while(e.bubbleScroll&&V!==c&&(V=ge(V,!1)));St=f}},30),Gt=function(e){var t=e.originalEvent,n=e.putSortable,a=e.dragEl,r=e.activeSortable,s=e.dispatchSortableEvent,u=e.hideGhostForTarget,c=e.unhideGhostForTarget;if(t){var f=n||r;u();var v=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,g=document.elementFromPoint(v.clientX,v.clientY);c(),f&&!f.el.contains(g)&&(s("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function _t(){}_t.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var a=Oe(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(t,a):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Gt};ue(_t,{pluginName:"revertOnSpill"});function Tt(){}Tt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,a=n||this.sortable;a.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),a.animateAll()},drop:Gt};ue(Tt,{pluginName:"removeOnSpill"});E.mount(new Tn);E.mount(Tt,_t);const Cn=["data-url","onContextmenu","onMousedown","onClick"],In={key:0,class:"iconfont icon-webicon318 layout-navbars-tagsview-ul-li-iconfont"},Vn=m.defineComponent({name:"layoutTagsView"}),On=m.defineComponent({...Vn,setup(i){const e=m.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./contextmenu-B2n5Dtdz.js"))),t=m.ref([]),n=m.ref(),a=m.ref(),r=m.ref(),s=x.useTagsViewRoutes(),u=x.useThemeConfig(),c=x.useTagsViewRoutes(),f=x.useRoutesList(),{themeConfig:v}=x.storeToRefs(u),{tagsViewRoutes:g}=x.storeToRefs(c),{routesList:V}=x.storeToRefs(f),I=x.useKeepALiveNames(),D=x.useRoute(),_=x.useRouter(),d=m.reactive({routeActive:"",routePath:D.path,dropdown:{x:"",y:""},sortable:"",tagsRefsIndex:0,tagsViewList:[],tagsViewRoutesList:[]}),te=m.computed(()=>v.value.tagsStyle),C=m.computed(()=>v.value),U=m.computed(()=>l=>x.other.setTagsViewNameI18n(l)),B=l=>C.value.isShareTagsView?l.path===d.routePath:l.query&&Object.keys(l.query).length||l.params&&Object.keys(l.params).length?l.url?l.url===d.routeActive:l.path===d.routeActive:l.path===d.routePath,q=l=>{x.Session.set("tagsViewList",l)},k=l=>{var b;let o=l.query&&Object.keys(l.query).length>0?l.query:l.params;if(!o||Object.keys(o).length<=0)return l.path;let h="";for(let w in o)h+=o[w];return`${(b=l.meta)!=null&&b.isDynamic?l.meta.isDynamicPath:l.path}-${h}`},re=async(l,o)=>{var w,P;let h=(w=o==null?void 0:o.meta)!=null&&w.isDynamic?o.meta.isDynamicPath:l;if(d.tagsViewList.filter(S=>{var Y,xe;return S.path===h&&x.isObjectValueEqual((Y=o==null?void 0:o.meta)!=null&&Y.isDynamic?S.params?S.params:null:S.query?S.query:null,(xe=o==null?void 0:o.meta)!=null&&xe.isDynamic?o!=null&&o.params?o==null?void 0:o.params:null:o!=null&&o.query?o==null?void 0:o.query:null)}).length<=0){let S=d.tagsViewRoutesList.find(Y=>Y.path===h);if(!S||S.meta.isAffix||S.meta.isLink&&!S.meta.isIframe)return!1;(P=o==null?void 0:o.meta)!=null&&P.isDynamic?S.params=o.params:S.query=o==null?void 0:o.query,S.url=k(S),d.tagsViewList.push({...S}),await I.addCachedView(S),q(d.tagsViewList)}},fe=(l,o)=>{var b;let h=(b=o==null?void 0:o.meta)!=null&&b.isDynamic?o.meta.isDynamicPath:l;d.tagsViewList.forEach(w=>{var P,S,Y;w.path===h&&!x.isObjectValueEqual((P=o==null?void 0:o.meta)!=null&&P.isDynamic?w.params?w.params:null:w.query?w.query:null,(S=o==null?void 0:o.meta)!=null&&S.isDynamic?o!=null&&o.params?o==null?void 0:o.params:null:o!=null&&o.query?o==null?void 0:o.query:null)&&((Y=o==null?void 0:o.meta)!=null&&Y.isDynamic?w.params=o.params:w.query=o==null?void 0:o.query,w.url=k(w),q(d.tagsViewList))})},X=(l,o)=>{m.nextTick(async()=>{var b,w,P;let h;if((b=o==null?void 0:o.meta)!=null&&b.isDynamic){if(C.value.isShareTagsView?await fe(l,o):await re(l,o),d.tagsViewList.some(S=>{var Y;return S.path===((Y=o==null?void 0:o.meta)==null?void 0:Y.isDynamicPath)}))return q(d.tagsViewList),!1;h=d.tagsViewRoutesList.find(S=>{var Y;return S.path===((Y=o==null?void 0:o.meta)==null?void 0:Y.isDynamicPath)})}else{if(C.value.isShareTagsView?await fe(l,o):await re(l,o),d.tagsViewList.some(S=>S.path===l))return q(d.tagsViewList),!1;h=d.tagsViewRoutesList.find(S=>S.path===l)}if(!h||(w=h==null?void 0:h.meta)!=null&&w.isLink&&!h.meta.isIframe)return!1;(P=o==null?void 0:o.meta)!=null&&P.isDynamic?h.params=o!=null&&o.params?o==null?void 0:o.params:D.params:h.query=o!=null&&o.query?o==null?void 0:o.query:D.query,h.url=k(h),await I.addCachedView(h),await d.tagsViewList.push({...h}),await q(d.tagsViewList)})},me=()=>{m.nextTick(()=>{if(t.value.length<=0)return!1;let l=t.value[d.tagsRefsIndex],o=d.tagsRefsIndex,h=t.value.length,b=t.value[0],w=t.value[t.value.length-1],P=n.value.$refs.wrapRef,S=P.scrollWidth,Y=P.offsetWidth,xe=P.scrollLeft,ut=t.value[d.tagsRefsIndex-1],Ct=t.value[d.tagsRefsIndex+1],Xe=0,Ye=0;l===b?P.scrollLeft=0:l===w?P.scrollLeft=S-Y:(o===0?Xe=b.offsetLeft-5:Xe=(ut==null?void 0:ut.offsetLeft)-5,o===h?Ye=w.offsetLeft+w.offsetWidth+5:Ye=Ct.offsetLeft+Ct.offsetWidth+5,Ye>xe+Y?P.scrollLeft=Ye-Y:Xe<xe&&(P.scrollLeft=Xe)),n.value.update()})},ne=l=>{m.nextTick(async()=>{let o=await d.tagsViewList;d.tagsRefsIndex=o.findIndex(h=>C.value.isShareTagsView?h.path===l:h.url===l),me()})},ve=async()=>{x.Session.get("tagsViewList")&&C.value.isCacheTagsView?d.tagsViewList=await x.Session.get("tagsViewList"):(await d.tagsViewRoutesList.map(l=>{var o;(o=l.meta)!=null&&o.isAffix&&!l.meta.isHide&&(l.url=k(l),d.tagsViewList.push({...l}),I.addCachedView(l))}),await X(D.path,D)),ne(C.value.isShareTagsView?d.routePath:d.routeActive)},Q=async()=>{d.routeActive=await k(D),d.routePath=await D.meta.isDynamic?D.meta.isDynamicPath:D.path,d.tagsViewList=[],d.tagsViewRoutesList=g.value,ve()},z=l=>{var b,w;let o=l.query&&Object.keys(l.query).length>0?l.query:l.params;if(!o)return"";let h="";for(let[P,S]of Object.entries(o))(b=l.meta)!=null&&b.isDynamic?h+=`/${S}`:h+=`&${P}=${S}`;return(w=l.meta)!=null&&w.isDynamic?l.isFnClick?decodeURI(l.path):`${l.path.split(":")[0]}${h.replace(/^\//,"")}`:`${l.path}${h.replace(/^&/,"?")}`},de=async l=>{var b;const o=decodeURI(l);let h={};if(d.tagsViewList.forEach(w=>{w.transUrl=z(w),w.transUrl?w.transUrl===z(w)&&(h=w):w.path===o&&(h=w)}),!h)return!1;await I.delCachedView(h),x.mittBus.emit("onTagsViewRefreshRouterView",l),(b=h.meta)!=null&&b.isKeepAlive&&I.addCachedView(h)},J=l=>{d.tagsViewList.map((o,h,b)=>{var w;(w=o.meta)!=null&&w.isAffix||(C.value.isShareTagsView?o.path===l:o.url===l)&&(I.delCachedView(o),d.tagsViewList.splice(h,1),setTimeout(()=>{(d.tagsViewList.length===h&&C.value.isShareTagsView?d.routePath===l:d.routeActive===l)?b[b.length-1].meta.isDynamic?h!==b.length?_.push({name:b[h].name,params:b[h].params}):_.push({name:b[b.length-1].name,params:b[b.length-1].params}):h!==b.length?_.push({path:b[h].path,query:b[h].query}):_.push({path:b[b.length-1].path,query:b[b.length-1].query}):(d.tagsViewList.length!==h&&C.value.isShareTagsView?d.routePath===l:d.routeActive===l)&&(b[h].meta.isDynamic?_.push({name:b[h].name,params:b[h].params}):_.push({path:b[h].path,query:b[h].query}))},0))}),q(d.tagsViewList)},Se=l=>{x.Session.get("tagsViewList")&&(d.tagsViewList=[],x.Session.get("tagsViewList").map(o=>{var h;(h=o.meta)!=null&&h.isAffix&&!o.meta.isHide&&(o.url=k(o),I.delOthersCachedViews(o),d.tagsViewList.push({...o}))}),X(l,D),q(d.tagsViewList))},we=()=>{x.Session.get("tagsViewList")&&(I.delAllCachedViews(),d.tagsViewList=[],x.Session.get("tagsViewList").map(l=>{var o;(o=l.meta)!=null&&o.isAffix&&!l.meta.isHide&&(l.url=k(l),d.tagsViewList.push({...l}),_.push({path:d.tagsViewList[d.tagsViewList.length-1].path}))}),q(d.tagsViewList))},at=async l=>{const o=d.tagsViewList.find(h=>C.value.isShareTagsView?h.path===l:h.url===l);o.meta.isDynamic?await _.push({name:o.name,params:o.params}):await _.push({name:o.name,query:o.query}),s.setCurrenFullscreen(!0)},rt=l=>{let o={};return d.tagsViewList.forEach(h=>{h.transUrl=z(h),h.transUrl?h.transUrl===z(h)&&h.transUrl===l.commonUrl&&(o=h):h.path===decodeURI(l.path)&&(o=h)}),o||null},De=async l=>{if(l.commonUrl=z(l),!rt(l))return x.ElMessage({type:"warning",message:"请正确输入路径及完整参数(query、params)"});const{path:o,name:h,params:b,query:w,meta:P,url:S}=rt(l);switch(l.contextMenuClickId){case 0:P.isDynamic?await _.push({name:h,params:b}):await _.push({path:o,query:w}),de(D.fullPath);break;case 1:J(C.value.isShareTagsView?o:S);break;case 2:P.isDynamic?await _.push({name:h,params:b}):await _.push({path:o,query:w}),Se(o);break;case 3:we();break;case 4:at(C.value.isShareTagsView?o:S);break}},ot=(l,o)=>{const{clientX:h,clientY:b}=o;d.dropdown.x=h,d.dropdown.y=b,a.value.openContextmenu(l)},Kt=(l,o)=>{var h;if(!((h=l.meta)!=null&&h.isAffix)&&o.button===1){const b=Object.assign({},{contextMenuClickId:1,...l});De(b)}},Zt=(l,o)=>{d.tagsRefsIndex=o,_.push(l),C.value.layout==="columns"&&(V.value.find(b=>b.path.indexOf(`/${l.path.split("/")[1]}`)>-1).children?C.value.isCollapse=!1:C.value.isCollapse=!0)},Qt=l=>{n.value.$refs.wrapRef.scrollLeft+=l.wheelDelta/4},st=async()=>{const l=document.querySelector(".layout-navbars-tagsview-ul");if(!l)return!1;d.sortable.el&&d.sortable.destroy(),d.sortable=E.create(l,{animation:300,dataIdAttr:"data-url",disabled:!C.value.isSortableTagsView,onEnd:()=>{const o=[];d.sortable.toArray().map(h=>{d.tagsViewList.map(b=>{b.url===h&&o.push({...b})})}),q(o)}})},lt=async()=>{await st(),x.other.isMobile()&&d.sortable.el&&d.sortable.destroy()};return m.onBeforeMount(()=>{lt(),window.addEventListener("resize",lt),x.mittBus.on("onCurrentContextmenuClick",l=>{l.isFnClick=!0,De(l)}),x.mittBus.on("openOrCloseSortable",()=>{st()}),x.mittBus.on("openShareTagsView",()=>{C.value.isShareTagsView&&(_.push("/home"),d.tagsViewList=[],d.tagsViewRoutesList.map(l=>{var o;(o=l.meta)!=null&&o.isAffix&&!l.meta.isHide&&(l.url=k(l),d.tagsViewList.push({...l}))}))})}),m.onUnmounted(()=>{x.mittBus.off("onCurrentContextmenuClick",()=>{}),x.mittBus.off("openOrCloseSortable",()=>{}),x.mittBus.off("openShareTagsView",()=>{}),window.removeEventListener("resize",lt)}),m.onBeforeUpdate(()=>{t.value=[]}),m.onMounted(()=>{Q(),st()}),x.onBeforeRouteUpdate(async l=>{d.routeActive=k(l),d.routePath=l.meta.isDynamic?l.meta.isDynamicPath:l.path,await X(l.path,l),ne(C.value.isShareTagsView?d.routePath:d.routeActive)}),m.watch(()=>g.value,l=>{if(l.length===d.tagsViewRoutesList.length)return!1;Q()},{deep:!0}),(l,o)=>{const h=m.resolveComponent("SvgIcon"),b=m.resolveComponent("el-scrollbar");return m.openBlock(),m.createElementBlock("div",{class:m.normalizeClass(["layout-navbars-tagsview",{"layout-navbars-tagsview-shadow":C.value.layout==="classic"}])},[m.createVNode(b,{ref_key:"scrollbarRef",ref:n,onWheel:m.withModifiers(Qt,["prevent"])},{default:m.withCtx(()=>[m.createElementVNode("ul",{class:m.normalizeClass(["layout-navbars-tagsview-ul",te.value]),ref_key:"tagsUlRef",ref:r},[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(d.tagsViewList,(w,P)=>(m.openBlock(),m.createElementBlock("li",{key:P,class:m.normalizeClass(["layout-navbars-tagsview-ul-li",{"is-active":B(w)}]),"data-url":w.url,onContextmenu:m.withModifiers(S=>ot(w,S),["prevent"]),onMousedown:S=>Kt(w,S),onClick:S=>Zt(w,P),ref_for:!0,ref:S=>{S&&(t.value[P]=S)}},[B(w)?(m.openBlock(),m.createElementBlock("i",In)):m.createCommentVNode("",!0),!B(w)&&C.value.isTagsviewIcon?(m.openBlock(),m.createBlock(h,{key:1,name:w.meta.icon,class:"pr5"},null,8,["name"])):m.createCommentVNode("",!0),m.createElementVNode("span",null,m.toDisplayString(U.value(w)),1),B(w)?(m.openBlock(),m.createElementBlock(m.Fragment,{key:2},[m.createVNode(h,{name:"ele-RefreshRight",class:"ml5 layout-navbars-tagsview-ul-li-refresh",onClick:o[0]||(o[0]=m.withModifiers(S=>de(l.$route.fullPath),["stop"]))}),w.meta.isAffix?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(h,{key:0,name:"ele-Close",class:"layout-navbars-tagsview-ul-li-icon layout-icon-active",onClick:m.withModifiers(S=>J(C.value.isShareTagsView?w.path:w.url),["stop"])},null,8,["onClick"]))],64)):m.createCommentVNode("",!0),w.meta.isAffix?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(h,{key:3,name:"ele-Close",class:"layout-navbars-tagsview-ul-li-icon layout-icon-three",onClick:m.withModifiers(S=>J(C.value.isShareTagsView?w.path:w.url),["stop"])},null,8,["onClick"]))],42,Cn))),128))],2)]),_:1},512),m.createVNode(m.unref(e),{dropdown:d.dropdown,ref_key:"contextmenuRef",ref:a,onCurrentContextmenuClick:De},null,8,["dropdown"])],2)}}}),xn=x._export_sfc(On,[["__scopeId","data-v-a7a031b3"]]);exports.default=xn;
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as l, defineAsyncComponent as n, ref as d, onMounted as y, watch as a, nextTick as r, resolveComponent as h, openBlock as T, createBlock as C, withCtx as R, createVNode as c, unref as s } from "vue";
|
|
2
|
-
import { c as v, s as M, u as g } from "./index-
|
|
2
|
+
import { c as v, s as M, u as g } from "./index-CpRNYfzm.mjs";
|
|
3
3
|
const k = l({
|
|
4
4
|
name: "layoutTransverse"
|
|
5
5
|
}), H = /* @__PURE__ */ l({
|
|
6
6
|
...k,
|
|
7
7
|
setup(x) {
|
|
8
|
-
const u = n(() => import("./header-
|
|
8
|
+
const u = n(() => import("./header-DX7DURZX.mjs")), i = n(() => import("./main-CwaYXsxr.mjs")), e = d(), f = v(), { themeConfig: p } = M(f), m = g(), o = () => {
|
|
9
9
|
e.value.layoutMainScrollbarRef.update();
|
|
10
10
|
}, t = () => {
|
|
11
11
|
r(() => {
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-ClnvgeEO.js"),f=e.defineComponent({name:"layoutTransverse"}),p=e.defineComponent({...f,setup(d){const a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./header-C1S7MySl.js"))),c=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-B9VfO0jk.js"))),t=e.ref(),s=o.useThemeConfig(),{themeConfig:u}=o.storeToRefs(s),l=o.useRoute(),n=()=>{t.value.layoutMainScrollbarRef.update()},r=()=>{e.nextTick(()=>{setTimeout(()=>{n(),t.value.layoutMainScrollbarRef.wrapRef.scrollTop=0},500)})};return e.onMounted(()=>{r()}),e.watch(()=>l.path,()=>{r()}),e.watch(()=>u.value.isTagsview,()=>{e.nextTick(()=>{n()})},{deep:!0}),(m,_)=>{const i=e.resolveComponent("el-container");return e.openBlock(),e.createBlock(i,{class:"layout-container flex-center layout-backtop"},{default:e.withCtx(()=>[e.createVNode(e.unref(a)),e.createVNode(e.unref(c),{ref_key:"layoutMainRef",ref:t},null,512)]),_:1})}}});exports.default=p;
|
|
Binary file
|
|
@@ -43,4 +43,4 @@ export declare function getConfigList(props: ComponentAttr.Props<typeof bcBox>,
|
|
|
43
43
|
/** 获取当前合并后配置数据 */
|
|
44
44
|
export declare function getMergeConfigList(params: TableInstance | IFormInstance, config_type: '1' | '2'): any;
|
|
45
45
|
/** 获取表单初始化数据 */
|
|
46
|
-
export declare function getInitFormData(): IFormData.Form;
|
|
46
|
+
export declare function getInitFormData(config_unique_id?: string): IFormData.Form;
|
package/dist/types/utils/request/interceptors/request/undefined-params-handler.interceptor.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 功能函数:处理函数
|
|
3
|
+
*
|
|
4
|
+
* 删除对象中
|
|
5
|
+
* 值 = 'undefined'
|
|
6
|
+
* 值 = undefined
|
|
7
|
+
* 值 = 'null'
|
|
8
|
+
* 值 = null
|
|
9
|
+
*
|
|
10
|
+
* @param {[type]} _obj [description]
|
|
11
|
+
* @return {[type]} [description]
|
|
12
|
+
*/
|
|
13
|
+
import { ICustomData } from '../../../../types';
|
|
14
|
+
/**
|
|
15
|
+
* 拦截器:无效参数处理
|
|
16
|
+
*
|
|
17
|
+
* 处理掉 params / data 中无效的参数
|
|
18
|
+
*
|
|
19
|
+
* example: http://www.xxx.com?username=undefined&password=null
|
|
20
|
+
* example: http://www.xxx.com
|
|
21
|
+
* @type {Array}
|
|
22
|
+
*/
|
|
23
|
+
declare const undefinedParamsHandlerInterceptor: ((axiosConfig: ICustomData.ANY) => any)[];
|
|
24
|
+
export default undefinedParamsHandlerInterceptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as Y, createElementBlock as M, withDirectives as k, createElementVNode as w, normalizeStyle as S, vShow as A, createCommentVNode as L, normalizeClass as U, toDisplayString as N, defineComponent as F, ref as I, onMounted as z, getCurrentInstance as D, toRefs as j, reactive as V, resolveComponent as O, createVNode as v, withCtx as y, unref as H, createTextVNode as E } from "vue";
|
|
2
|
-
import { _ as B, L as q, M as G } from "./index-
|
|
2
|
+
import { _ as B, L as q, M as G } from "./index-CpRNYfzm.mjs";
|
|
3
3
|
const $ = {};
|
|
4
4
|
$.getData = (t) => new Promise((e, i) => {
|
|
5
5
|
let s = {};
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),H=require("./index-DMCgUPNZ.js"),W={};W.getData=e=>new Promise((t,i)=>{let s={};M(e).then(o=>{s.arrayBuffer=o;try{s.orientation=E(o)}catch{s.orientation=-1}t(s)}).catch(o=>{i(o)})});function M(e){let t=null;return new Promise((i,s)=>{if(e.src)if(/^data\:/i.test(e.src))t=N(e.src),i(t);else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(h){t=h.target.result,i(t)},S(e.src,function(h){o.readAsArrayBuffer(h)})}else{var r=new XMLHttpRequest;r.onload=function(){if(this.status==200||this.status===0)t=r.response,i(t);else throw"Could not load image";r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else s("img error")})}function S(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(s){(this.status==200||this.status===0)&&t(this.response)},i.send()}function N(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/mi)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(var i=atob(e),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),r=new Uint16Array(o),h=0;h<s;h++)r[h]=i.charCodeAt(h);return o}function I(e,t,i){var s="",o;for(o=t,i+=t;o<i;o++)s+=String.fromCharCode(e.getUint8(o));return s}function E(e){var t=new DataView(e),i=t.byteLength,s,o,r,h,n,p,l,c,f,u;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(f=2;f<i;){if(t.getUint8(f)===255&&t.getUint8(f+1)===225){l=f;break}f++}if(l&&(o=l+4,r=l+10,I(t,o,4)==="Exif"&&(p=t.getUint16(r),n=p===18761,(n||p===19789)&&t.getUint16(r+2,n)===42&&(h=t.getUint32(r+4,n),h>=8&&(c=r+h)))),c){for(i=t.getUint16(c,n),u=0;u<i;u++)if(f=c+u*12+2,t.getUint16(f,n)===274){f+=8,s=t.getUint16(f,n);break}}return s}const L={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(e){return Array.isArray(e)?Number(e[0])>=0&&Number(e[1])>=0:Number(e)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){let t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE(){return!!window.ActiveXObject||"ActiveXObject"in window},passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(e){e!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(e,t){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(e){e&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(e){var t=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(e,"i");for(var r=0;r<t.length;r++)o.test(t[r])&&(i=t[r]);return i?s=i.split("/")[1].split("."):s=["0","0","0"],s},checkOrientationImage(e,t,i,s){if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){const h=this.getVersion("version");h[0]>13&&h[1]>1&&(t=-1)}else{const h=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(h){let n=h[1];n=n.split("_"),(n[0]>13||n[0]>=13&&n[1]>=4)&&(t=-1)}}let o=document.createElement("canvas"),r=o.getContext("2d");switch(r.save(),t){case 2:o.width=i,o.height=s,r.translate(i,0),r.scale(-1,1);break;case 3:o.width=i,o.height=s,r.translate(i/2,s/2),r.rotate(180*Math.PI/180),r.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,r.translate(0,s),r.scale(1,-1);break;case 5:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:o.width=s,o.height=i,r.translate(s/2,i/2),r.rotate(90*Math.PI/180),r.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.translate(i,-s),r.scale(-1,1);break;case 8:o.height=i,o.width=s,r.translate(s/2,i/2),r.rotate(-90*Math.PI/180),r.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}r.drawImage(e,0,0,i,s),r.restore(),o.toBlob(h=>{let n=URL.createObjectURL(h);URL.revokeObjectURL(this.imgs),this.imgs=n},"image/"+this.outputType,1)},checkedImg(){if(this.img===null||this.img===""){this.imgs="",this.clearCrop();return}this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let e=new Image;if(e.onload=()=>{if(this.img==="")return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=e.width,s=e.height;W.getData(e).then(o=>{this.orientation=o.orientation||1;let r=Number(this.maxImgSize);if(!this.orientation&&i<r&s<r){this.imgs=this.img;return}i>r&&(s=s/i*r,i=r),s>r&&(i=i/s*r,s=r),this.checkOrientationImage(e,this.orientation,i,s)}).catch(o=>{this.$emit("img-load","error"),this.$emit("img-load-error",o)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},this.img.substr(0,4)!=="data"&&(e.crossOrigin=""),this.isIE){var t=new XMLHttpRequest;t.onload=function(){var i=URL.createObjectURL(this.response);e.src=i},t.open("GET",this.img,!0),t.responseType="blob",t.send()}else e.src=this.img},startMove(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),e.touches.length==2&&(this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(e){e.preventDefault();let t=this.scale;var i={x:this.touches[0].clientX,y:this.touches[0].clientY},s={x:e.touches[0].clientX,y:e.touches[0].clientY},o={x:this.touches[1].clientX,y:this.touches[1].clientY},r={x:e.touches[1].clientX,y:e.touches[1].clientY},h=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),n=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),p=n-h,l=1;l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth,l=l>.1?.1:l;var c=l*p;if(!this.touchNow){if(this.touchNow=!0,p>0?t+=Math.abs(c):p<0&&t>Math.abs(c)&&(t-=Math.abs(c)),this.touches=e.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t}},cancelTouchScale(e){window.removeEventListener("touchmove",this.touchScale)},moveImg(e){if(e.preventDefault(),e.touches&&e.touches.length===2)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.moveX,o=i-this.moveY,this.$nextTick(()=>{if(this.centerBox){let r=this.getImgAxis(s,o,this.scale),h=this.getCropAxis(),n=this.trueHeight*this.scale,p=this.trueWidth*this.scale,l,c,f,u;switch(this.rotate){case 1:case-1:case 3:case-3:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(n-p)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(p-n)/2,f=l-n+this.cropW,u=c-p+this.cropH;break;default:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,f=l-p+this.cropW,u=c-n+this.cropH;break}r.x1>=h.x1&&(s=l),r.y1>=h.y1&&(o=c),r.x2<=h.x2&&(s=f),r.y2<=h.y2&&(o=u)}this.x=s,this.y=o,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(e){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(e){e.preventDefault();let t=this.scale;var i=e.deltaY||e.wheelDelta,s=navigator.userAgent.indexOf("Firefox");i=s>0?i*30:i,this.isIE&&(i=-i);var o=this.coe;o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth;var r=o*i;r<0?t+=Math.abs(r):t>Math.abs(r)&&(t-=Math.abs(r));let h=r<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(()=>{this.scaling=!1,this.coe=this.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},changeScale(e){let t=this.scale;e=e||1;var i=20;if(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth,e=e*i,e>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick(()=>{var s=t-this.cropX,o=i-this.cropY;if(s>0?(this.cropW=s+this.cropChangeX>this.w?this.w-this.cropChangeX:s,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(s)>this.w?this.cropChangeX:Math.abs(s),this.cropOffsertX=this.cropChangeX+s>0?this.cropChangeX+s:0),!this.fixed)o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0);else{var r=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];r+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],s>0?this.cropOffsertX=this.cropChangeX:this.cropOffsertX=this.cropChangeX-this.cropW):this.cropH=r,this.cropOffsertY=this.cropOffsertY}})},changeCropSize(e,t,i,s,o){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;let s=this.w,o=this.h,r=0,h=0;if(this.centerBox){let l=this.getImgAxis(),c=l.x2,f=l.y2;r=l.x1>0?l.x1:0,h=l.y1>0?l.y1:0,s>c&&(s=c),o>f&&(o=f)}const[n,p]=this.checkCropLimitSize();this.$nextTick(()=>{var l=t-this.cropX,c=i-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-l<n?(this.cropW=n,this.cropOffsertX=this.cropOldW+this.cropChangeX-r-n):this.cropOldW-l>0?(this.cropW=s-this.cropChangeX-l<=s-r?this.cropOldW-l:this.cropOldW+this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX-l<=s-r?this.cropChangeX+l:r):(this.cropW=Math.abs(l)+this.cropChangeX<=s?Math.abs(l)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+l<n?this.cropW=n:this.cropOldW+l>0?(this.cropW=this.cropOldW+l+this.cropOffsertX<=s?this.cropOldW+l:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?Math.abs(l+this.cropOldW):this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?this.cropChangeX-Math.abs(l+this.cropOldW):r))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-c<p?(this.cropH=p,this.cropOffsertY=this.cropOldH+this.cropChangeY-h-p):this.cropOldH-c>0?(this.cropH=o-this.cropChangeY-c<=o-h?this.cropOldH-c:this.cropOldH+this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY-c<=o-h?this.cropChangeY+c:h):(this.cropH=Math.abs(c)+this.cropChangeY<=o?Math.abs(c)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+c<p?this.cropH=p:this.cropOldH+c>0?(this.cropH=this.cropOldH+c+this.cropOffsertY<=o?this.cropOldH+c:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?Math.abs(c+this.cropOldH):this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?this.cropChangeY-Math.abs(c+this.cropOldH):h))),this.canChangeX&&this.fixed){var f=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];f<p?(this.cropH=p,this.cropW=this.fixedNumber[0]*p/this.fixedNumber[1],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):f+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=f}if(this.canChangeY&&this.fixed){var u=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];u<n?(this.cropW=n,this.cropH=this.fixedNumber[1]*n/this.fixedNumber[0]):u+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=u}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})})},checkCropLimitSize(){let{cropW:e,cropH:t,limitMinSize:i}=this,s=new Array;return Array.isArray(i)?s=i:s=[i,i],e=parseFloat(s[0]),t=parseFloat(s[1]),[e,t]},changeCropEnd(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(e,t,i,s,o,r){const h=e/t;let n=o,p=r;return n<i&&(n=i,p=Math.ceil(n/h)),p<s&&(p=s,n=Math.ceil(p*h),n<i&&(n=i,p=Math.ceil(n/h))),n<o&&(n=o,p=Math.ceil(n/h)),p<r&&(p=r,n=Math.ceil(p*h)),{width:n,height:p}},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1);let[e,t]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],e,t,this.cropW,this.cropH):{width:e,height:t};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&e.touches.length===2)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.cropOffsertX,o=i-this.cropOffsertY,this.cropX=s,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(e,t){let i=0,s=0;e&&(e.preventDefault(),i="clientX"in e?e.clientX:e.touches[0].clientX,s="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick(()=>{let o,r,h=i-this.cropX,n=s-this.cropY;if(t&&(h=this.cropOffsertX,n=this.cropOffsertY),h<=0?o=0:h+this.cropW>this.w?o=this.w-this.cropW:o=h,n<=0?r=0:n+this.cropH>this.h?r=this.h-this.cropH:r=n,this.centerBox){let p=this.getImgAxis();o<=p.x1&&(o=p.x1),o+this.cropW>p.x2&&(o=p.x2-this.cropW),r<=p.y1&&(r=p.y1),r+this.cropH>p.y2&&(r=p.y2-this.cropH)}this.cropOffsertX=o,this.cropOffsertY=r,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(e,t,i){e=e||this.x,t=t||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,r=this.trueHeight*i;switch(this.rotate){case 0:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=e+this.trueWidth*(1-i)/2+(o-r)/2,s.x2=s.x1+this.trueHeight*i,s.y1=t+this.trueHeight*(1-i)/2+(r-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break}return s},getCropAxis(){let e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop(e){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(e){let t=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,r=this.trueHeight,h=this.cropOffsertX,n=this.cropOffsertY;i.onload=()=>{if(this.cropW!==0){let c=t.getContext("2d"),f=1;this.high&!this.full&&(f=window.devicePixelRatio),this.enlarge!==1&!this.full&&(f=Math.abs(Number(this.enlarge)));let u=this.cropW*f,x=this.cropH*f,g=o*this.scale*f,m=r*this.scale*f,v=(this.x-h+this.trueWidth*(1-this.scale)/2)*f,d=(this.y-n+this.trueHeight*(1-this.scale)/2)*f;switch(l(u,x),c.save(),this.fillColor&&(c.fillStyle=this.fillColor,c.fillRect(0,0,t.width,t.height)),s){case 0:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m);break;case 1:case-3:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m/this.scale,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m,g,m));break;case 2:case-2:this.full?(l(u/this.scale,x/this.scale),c.rotate(s*90*Math.PI/180),v=v/this.scale,d=d/this.scale,c.drawImage(i,-v-g/this.scale,-d-m/this.scale,g/this.scale,m/this.scale)):(c.rotate(s*90*Math.PI/180),c.drawImage(i,-v-g,-d-m,g,m));break;case 3:case-1:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g/this.scale,v,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g,v,g,m));break;default:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m)}c.restore()}else{let c=o*this.scale,f=r*this.scale,u=t.getContext("2d");switch(u.save(),this.fillColor&&(u.fillStyle=this.fillColor,u.fillRect(0,0,t.width,t.height)),s){case 0:l(c,f),u.drawImage(i,0,0,c,f);break;case 1:case-3:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,0,-f,c,f);break;case 2:case-2:l(c,f),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,-f,c,f);break;case 3:case-1:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,0,c,f);break;default:l(c,f),u.drawImage(i,0,0,c,f)}u.restore()}e(t)};var p=this.img.substr(0,4);p!=="data"&&(i.crossOrigin="Anonymous"),i.src=this.imgs;function l(c,f){t.width=Math.round(c),t.height=Math.round(f)}},getCropData(e){this.getCropChecked(t=>{e(t.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(e){this.getCropChecked(t=>{t.toBlob(i=>e(i),"image/"+this.outputType,this.outputSize)})},showPreview(){if(this.isCanShow)this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);else return!1;let e=this.cropW,t=this.cropH,i=this.scale;var s={};s.div={width:`${e}px`,height:`${t}px`};let o=(this.x-this.cropOffsertX)/i,r=(this.y-this.cropOffsertY)/i,h=0;s.w=e,s.h=t,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate*90}deg)`},s.html=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),H=require("./index-ClnvgeEO.js"),W={};W.getData=e=>new Promise((t,i)=>{let s={};M(e).then(o=>{s.arrayBuffer=o;try{s.orientation=E(o)}catch{s.orientation=-1}t(s)}).catch(o=>{i(o)})});function M(e){let t=null;return new Promise((i,s)=>{if(e.src)if(/^data\:/i.test(e.src))t=N(e.src),i(t);else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(h){t=h.target.result,i(t)},S(e.src,function(h){o.readAsArrayBuffer(h)})}else{var r=new XMLHttpRequest;r.onload=function(){if(this.status==200||this.status===0)t=r.response,i(t);else throw"Could not load image";r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else s("img error")})}function S(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(s){(this.status==200||this.status===0)&&t(this.response)},i.send()}function N(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/mi)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(var i=atob(e),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),r=new Uint16Array(o),h=0;h<s;h++)r[h]=i.charCodeAt(h);return o}function I(e,t,i){var s="",o;for(o=t,i+=t;o<i;o++)s+=String.fromCharCode(e.getUint8(o));return s}function E(e){var t=new DataView(e),i=t.byteLength,s,o,r,h,n,p,l,c,f,u;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(f=2;f<i;){if(t.getUint8(f)===255&&t.getUint8(f+1)===225){l=f;break}f++}if(l&&(o=l+4,r=l+10,I(t,o,4)==="Exif"&&(p=t.getUint16(r),n=p===18761,(n||p===19789)&&t.getUint16(r+2,n)===42&&(h=t.getUint32(r+4,n),h>=8&&(c=r+h)))),c){for(i=t.getUint16(c,n),u=0;u<i;u++)if(f=c+u*12+2,t.getUint16(f,n)===274){f+=8,s=t.getUint16(f,n);break}}return s}const L={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(e){return Array.isArray(e)?Number(e[0])>=0&&Number(e[1])>=0:Number(e)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){let t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE(){return!!window.ActiveXObject||"ActiveXObject"in window},passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(e){e!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(e,t){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(e){e&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(e){var t=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(e,"i");for(var r=0;r<t.length;r++)o.test(t[r])&&(i=t[r]);return i?s=i.split("/")[1].split("."):s=["0","0","0"],s},checkOrientationImage(e,t,i,s){if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){const h=this.getVersion("version");h[0]>13&&h[1]>1&&(t=-1)}else{const h=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(h){let n=h[1];n=n.split("_"),(n[0]>13||n[0]>=13&&n[1]>=4)&&(t=-1)}}let o=document.createElement("canvas"),r=o.getContext("2d");switch(r.save(),t){case 2:o.width=i,o.height=s,r.translate(i,0),r.scale(-1,1);break;case 3:o.width=i,o.height=s,r.translate(i/2,s/2),r.rotate(180*Math.PI/180),r.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,r.translate(0,s),r.scale(1,-1);break;case 5:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:o.width=s,o.height=i,r.translate(s/2,i/2),r.rotate(90*Math.PI/180),r.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,r.rotate(.5*Math.PI),r.translate(i,-s),r.scale(-1,1);break;case 8:o.height=i,o.width=s,r.translate(s/2,i/2),r.rotate(-90*Math.PI/180),r.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}r.drawImage(e,0,0,i,s),r.restore(),o.toBlob(h=>{let n=URL.createObjectURL(h);URL.revokeObjectURL(this.imgs),this.imgs=n},"image/"+this.outputType,1)},checkedImg(){if(this.img===null||this.img===""){this.imgs="",this.clearCrop();return}this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let e=new Image;if(e.onload=()=>{if(this.img==="")return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let i=e.width,s=e.height;W.getData(e).then(o=>{this.orientation=o.orientation||1;let r=Number(this.maxImgSize);if(!this.orientation&&i<r&s<r){this.imgs=this.img;return}i>r&&(s=s/i*r,i=r),s>r&&(i=i/s*r,s=r),this.checkOrientationImage(e,this.orientation,i,s)}).catch(o=>{this.$emit("img-load","error"),this.$emit("img-load-error",o)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},this.img.substr(0,4)!=="data"&&(e.crossOrigin=""),this.isIE){var t=new XMLHttpRequest;t.onload=function(){var i=URL.createObjectURL(this.response);e.src=i},t.open("GET",this.img,!0),t.responseType="blob",t.send()}else e.src=this.img},startMove(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),e.touches.length==2&&(this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(e){e.preventDefault();let t=this.scale;var i={x:this.touches[0].clientX,y:this.touches[0].clientY},s={x:e.touches[0].clientX,y:e.touches[0].clientY},o={x:this.touches[1].clientX,y:this.touches[1].clientY},r={x:e.touches[1].clientX,y:e.touches[1].clientY},h=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),n=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),p=n-h,l=1;l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth,l=l>.1?.1:l;var c=l*p;if(!this.touchNow){if(this.touchNow=!0,p>0?t+=Math.abs(c):p<0&&t>Math.abs(c)&&(t-=Math.abs(c)),this.touches=e.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t}},cancelTouchScale(e){window.removeEventListener("touchmove",this.touchScale)},moveImg(e){if(e.preventDefault(),e.touches&&e.touches.length===2)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.moveX,o=i-this.moveY,this.$nextTick(()=>{if(this.centerBox){let r=this.getImgAxis(s,o,this.scale),h=this.getCropAxis(),n=this.trueHeight*this.scale,p=this.trueWidth*this.scale,l,c,f,u;switch(this.rotate){case 1:case-1:case 3:case-3:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(n-p)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(p-n)/2,f=l-n+this.cropW,u=c-p+this.cropH;break;default:l=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,f=l-p+this.cropW,u=c-n+this.cropH;break}r.x1>=h.x1&&(s=l),r.y1>=h.y1&&(o=c),r.x2<=h.x2&&(s=f),r.y2<=h.y2&&(o=u)}this.x=s,this.y=o,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(e){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(e){e.preventDefault();let t=this.scale;var i=e.deltaY||e.wheelDelta,s=navigator.userAgent.indexOf("Firefox");i=s>0?i*30:i,this.isIE&&(i=-i);var o=this.coe;o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth;var r=o*i;r<0?t+=Math.abs(r):t>Math.abs(r)&&(t-=Math.abs(r));let h=r<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(()=>{this.scaling=!1,this.coe=this.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},changeScale(e){let t=this.scale;e=e||1;var i=20;if(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth,e=e*i,e>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick(()=>{var s=t-this.cropX,o=i-this.cropY;if(s>0?(this.cropW=s+this.cropChangeX>this.w?this.w-this.cropChangeX:s,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(s)>this.w?this.cropChangeX:Math.abs(s),this.cropOffsertX=this.cropChangeX+s>0?this.cropChangeX+s:0),!this.fixed)o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0);else{var r=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];r+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],s>0?this.cropOffsertX=this.cropChangeX:this.cropOffsertX=this.cropChangeX-this.cropW):this.cropH=r,this.cropOffsertY=this.cropOffsertY}})},changeCropSize(e,t,i,s,o){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,i="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;let s=this.w,o=this.h,r=0,h=0;if(this.centerBox){let l=this.getImgAxis(),c=l.x2,f=l.y2;r=l.x1>0?l.x1:0,h=l.y1>0?l.y1:0,s>c&&(s=c),o>f&&(o=f)}const[n,p]=this.checkCropLimitSize();this.$nextTick(()=>{var l=t-this.cropX,c=i-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-l<n?(this.cropW=n,this.cropOffsertX=this.cropOldW+this.cropChangeX-r-n):this.cropOldW-l>0?(this.cropW=s-this.cropChangeX-l<=s-r?this.cropOldW-l:this.cropOldW+this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX-l<=s-r?this.cropChangeX+l:r):(this.cropW=Math.abs(l)+this.cropChangeX<=s?Math.abs(l)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+l<n?this.cropW=n:this.cropOldW+l>0?(this.cropW=this.cropOldW+l+this.cropOffsertX<=s?this.cropOldW+l:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?Math.abs(l+this.cropOldW):this.cropChangeX-r,this.cropOffsertX=s-this.cropChangeX+Math.abs(l+this.cropOldW)<=s-r?this.cropChangeX-Math.abs(l+this.cropOldW):r))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-c<p?(this.cropH=p,this.cropOffsertY=this.cropOldH+this.cropChangeY-h-p):this.cropOldH-c>0?(this.cropH=o-this.cropChangeY-c<=o-h?this.cropOldH-c:this.cropOldH+this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY-c<=o-h?this.cropChangeY+c:h):(this.cropH=Math.abs(c)+this.cropChangeY<=o?Math.abs(c)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+c<p?this.cropH=p:this.cropOldH+c>0?(this.cropH=this.cropOldH+c+this.cropOffsertY<=o?this.cropOldH+c:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?Math.abs(c+this.cropOldH):this.cropChangeY-h,this.cropOffsertY=o-this.cropChangeY+Math.abs(c+this.cropOldH)<=o-h?this.cropChangeY-Math.abs(c+this.cropOldH):h))),this.canChangeX&&this.fixed){var f=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];f<p?(this.cropH=p,this.cropW=this.fixedNumber[0]*p/this.fixedNumber[1],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):f+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.changeCropTypeX===1&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=f}if(this.canChangeY&&this.fixed){var u=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];u<n?(this.cropW=n,this.cropH=this.fixedNumber[1]*n/this.fixedNumber[0]):u+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=u}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})})},checkCropLimitSize(){let{cropW:e,cropH:t,limitMinSize:i}=this,s=new Array;return Array.isArray(i)?s=i:s=[i,i],e=parseFloat(s[0]),t=parseFloat(s[1]),[e,t]},changeCropEnd(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(e,t,i,s,o,r){const h=e/t;let n=o,p=r;return n<i&&(n=i,p=Math.ceil(n/h)),p<s&&(p=s,n=Math.ceil(p*h),n<i&&(n=i,p=Math.ceil(n/h))),n<o&&(n=o,p=Math.ceil(n/h)),p<r&&(p=r,n=Math.ceil(p*h)),{width:n,height:p}},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1);let[e,t]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],e,t,this.cropW,this.cropH):{width:e,height:t};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&e.touches.length===2)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let t="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY,s,o;s=t-this.cropOffsertX,o=i-this.cropOffsertY,this.cropX=s,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(e,t){let i=0,s=0;e&&(e.preventDefault(),i="clientX"in e?e.clientX:e.touches[0].clientX,s="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick(()=>{let o,r,h=i-this.cropX,n=s-this.cropY;if(t&&(h=this.cropOffsertX,n=this.cropOffsertY),h<=0?o=0:h+this.cropW>this.w?o=this.w-this.cropW:o=h,n<=0?r=0:n+this.cropH>this.h?r=this.h-this.cropH:r=n,this.centerBox){let p=this.getImgAxis();o<=p.x1&&(o=p.x1),o+this.cropW>p.x2&&(o=p.x2-this.cropW),r<=p.y1&&(r=p.y1),r+this.cropH>p.y2&&(r=p.y2-this.cropH)}this.cropOffsertX=o,this.cropOffsertY=r,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(e,t,i){e=e||this.x,t=t||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,r=this.trueHeight*i;switch(this.rotate){case 0:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=e+this.trueWidth*(1-i)/2+(o-r)/2,s.x2=s.x1+this.trueHeight*i,s.y1=t+this.trueHeight*(1-i)/2+(r-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=e+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break}return s},getCropAxis(){let e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop(e){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(e){let t=document.createElement("canvas"),i=new Image,s=this.rotate,o=this.trueWidth,r=this.trueHeight,h=this.cropOffsertX,n=this.cropOffsertY;i.onload=()=>{if(this.cropW!==0){let c=t.getContext("2d"),f=1;this.high&!this.full&&(f=window.devicePixelRatio),this.enlarge!==1&!this.full&&(f=Math.abs(Number(this.enlarge)));let u=this.cropW*f,x=this.cropH*f,g=o*this.scale*f,m=r*this.scale*f,v=(this.x-h+this.trueWidth*(1-this.scale)/2)*f,d=(this.y-n+this.trueHeight*(1-this.scale)/2)*f;switch(l(u,x),c.save(),this.fillColor&&(c.fillStyle=this.fillColor,c.fillRect(0,0,t.width,t.height)),s){case 0:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m);break;case 1:case-3:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m/this.scale,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,d,-v-m,g,m));break;case 2:case-2:this.full?(l(u/this.scale,x/this.scale),c.rotate(s*90*Math.PI/180),v=v/this.scale,d=d/this.scale,c.drawImage(i,-v-g/this.scale,-d-m/this.scale,g/this.scale,m/this.scale)):(c.rotate(s*90*Math.PI/180),c.drawImage(i,-v-g,-d-m,g,m));break;case 3:case-1:this.full?(l(u/this.scale,x/this.scale),v=v/this.scale+(g/this.scale-m/this.scale)/2,d=d/this.scale+(m/this.scale-g/this.scale)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g/this.scale,v,g/this.scale,m/this.scale)):(v=v+(g-m)/2,d=d+(m-g)/2,c.rotate(s*90*Math.PI/180),c.drawImage(i,-d-g,v,g,m));break;default:this.full?(l(u/this.scale,x/this.scale),c.drawImage(i,v/this.scale,d/this.scale,g/this.scale,m/this.scale)):c.drawImage(i,v,d,g,m)}c.restore()}else{let c=o*this.scale,f=r*this.scale,u=t.getContext("2d");switch(u.save(),this.fillColor&&(u.fillStyle=this.fillColor,u.fillRect(0,0,t.width,t.height)),s){case 0:l(c,f),u.drawImage(i,0,0,c,f);break;case 1:case-3:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,0,-f,c,f);break;case 2:case-2:l(c,f),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,-f,c,f);break;case 3:case-1:l(f,c),u.rotate(s*90*Math.PI/180),u.drawImage(i,-c,0,c,f);break;default:l(c,f),u.drawImage(i,0,0,c,f)}u.restore()}e(t)};var p=this.img.substr(0,4);p!=="data"&&(i.crossOrigin="Anonymous"),i.src=this.imgs;function l(c,f){t.width=Math.round(c),t.height=Math.round(f)}},getCropData(e){this.getCropChecked(t=>{e(t.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(e){this.getCropChecked(t=>{t.toBlob(i=>e(i),"image/"+this.outputType,this.outputSize)})},showPreview(){if(this.isCanShow)this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);else return!1;let e=this.cropW,t=this.cropH,i=this.scale;var s={};s.div={width:`${e}px`,height:`${t}px`};let o=(this.x-this.cropOffsertX)/i,r=(this.y-this.cropOffsertY)/i,h=0;s.w=e,s.h=t,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate*90}deg)`},s.html=`
|
|
2
2
|
<div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">
|
|
3
3
|
<div style="width: ${e}px; height: ${t}px">
|
|
4
4
|
<img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-ClnvgeEO.js"),I=require("./index-Cn419mF_.js"),b=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=(()=>{if(typeof document>"u")return!1;const n=b[0],r={};for(const t of b)if((t==null?void 0:t[1])in document){for(const[a,f]of t.entries())r[n[a]]=f;return r}return!1})(),C={change:i.fullscreenchange,error:i.fullscreenerror};let s={request(n=document.documentElement,r){return new Promise((t,d)=>{const a=()=>{s.off("change",a),t()};s.on("change",a);const f=n[i.requestFullscreen](r);f instanceof Promise&&f.then(a).catch(d)})},exit(){return new Promise((n,r)=>{if(!s.isFullscreen){n();return}const t=()=>{s.off("change",t),n()};s.on("change",t);const d=document[i.exitFullscreen]();d instanceof Promise&&d.then(t).catch(r)})},toggle(n,r){return s.isFullscreen?s.exit():s.request(n,r)},onchange(n){s.on("change",n)},onerror(n){s.on("error",n)},on(n,r){const t=C[n];t&&document.addEventListener(t,r,!1)},off(n,r){const t=C[n];t&&document.removeEventListener(t,r,!1)},raw:i};Object.defineProperties(s,{isFullscreen:{get:()=>!!document[i.fullscreenElement]},element:{enumerable:!0,get:()=>document[i.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[i.fullscreenEnabled]}});i||(s={isEnabled:!1});const h=s,O=n=>(e.pushScopeId("data-v-62d7f9a6"),n=n(),e.popScopeId(),n),L=O(()=>e.createElementVNode("i",{class:"icon-skin iconfont",title:"布局配置"},null,-1)),D=[L],U=["title"],j={class:"layout-navbars-breadcrumb-user-link"},H=["src"],$=e.defineComponent({name:"layoutBreadcrumbUser"}),G=e.defineComponent({...$,setup(n){const r=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./userNews-DAF39QiJ.js"))),t=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./search-CQukpHG-.js"))),d=I.useLoginController(),a=e.ref(),f=e.ref(),v=l.useRouter(),g=l.useUserInfo(),S=l.useThemeConfig(),{userInfos:_}=l.storeToRefs(g),{themeConfig:E}=l.storeToRefs(S),w=e.ref(),p=e.reactive({isScreenfull:!1,disabledSize:"large"}),N=e.computed(()=>{let o="";const{layout:c,isClassicSplitMenu:u}=E.value;return["defaults","columns"].includes(c)||c==="classic"&&!u?o="1":o="",o}),k=()=>{if(!h.isEnabled)return l.ElMessage.warning("暂不不支持全屏"),!1;h.toggle(),h.on("change",()=>{h.isFullscreen?p.isScreenfull=!0:p.isScreenfull=!1})},x=()=>{var o,c;(c=(o=e.unref(a).popperRef)==null?void 0:o.delayHide)==null||c.call(o)},F=()=>{l.mittBus.emit("openSetingsDrawer")},y=o=>{o==="logOut"?l.ElMessageBox({closeOnClickModal:!1,closeOnPressEscape:!1,title:"提示",message:"此操作将退出登录, 是否继续?",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",buttonSize:"default",beforeClose:(c,u,m)=>{c==="confirm"?(u.confirmButtonLoading=!0,u.confirmButtonText="退出中",d.postAjaxLogout().then(()=>{m()}).finally(()=>{u.confirmButtonLoading=!1})):m()}}).then(()=>{g.logout()}).catch(()=>{}):o==="wareHouse"?window.open("https://www.baidu.com"):v.push(o)},V=()=>{w.value.openSearch()},B=async(o,c)=>{p[c]=await l.systemStore.get("themeConfig").then(u=>l._.get(u,o,"large"))};return e.onMounted(async()=>{await l.systemStore.get("themeConfig")&&await B("globalComponentSize","disabledSize")}),(o,c)=>{const u=e.resolveComponent("ele-Search"),m=e.resolveComponent("el-icon"),q=e.resolveComponent("ele-Bell"),z=e.resolveComponent("el-badge"),R=e.resolveComponent("el-popover"),M=e.resolveComponent("ele-ArrowDown"),P=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown");return e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user pr15",style:e.normalizeStyle({flex:N.value})},[e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:V},[e.createVNode(m,{title:"菜单搜索"},{default:e.withCtx(()=>[e.createVNode(u)]),_:1})]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon",onClick:F},D),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"layout-navbars-breadcrumb-user-icon",ref_key:"userNewsBadgeRef",ref:f},[e.createVNode(z,{"is-dot":!0},{default:e.withCtx(()=>[e.createVNode(m,{title:"消息"},{default:e.withCtx(()=>[e.createVNode(q)]),_:1})]),_:1})])),[[e.unref(l.ClickOutside),x]]),e.createVNode(R,{ref_key:"userNewsRef",ref:a,"virtual-ref":f.value,placement:"bottom",trigger:"click",transition:"el-zoom-in-top","virtual-triggering":"",width:300,persistent:!1},{default:e.withCtx(()=>[e.createVNode(e.unref(r))]),_:1},8,["virtual-ref"]),e.createElementVNode("div",{class:"layout-navbars-breadcrumb-user-icon mr10",onClick:k},[e.createElementVNode("i",{class:e.normalizeClass(["iconfont",p.isScreenfull?"icon-tuichuquanping":"icon-fullscreen"]),title:p.isScreenfull?"关全屏":"开全屏"},null,10,U)]),e.createVNode(A,{"show-timeout":70,"hide-timeout":50,onCommand:y},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(P,{divided:"",command:"logOut"},{default:e.withCtx(()=>[e.createTextVNode("退出登录")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",j,[e.createElementVNode("img",{src:e.unref(_).photo,class:"layout-navbars-breadcrumb-user-link-photo mr5"},null,8,H),e.createTextVNode(" "+e.toDisplayString(e.unref(_).userName===""?"common":e.unref(_).userName)+" ",1),e.createVNode(m,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(M)]),_:1})])]),_:1}),e.createVNode(e.unref(t),{ref_key:"searchRef",ref:w},null,512)],4)}}}),J=l._export_sfc(G,[["__scopeId","data-v-62d7f9a6"]]);exports.default=J;
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as R, defineAsyncComponent as k, ref as S, reactive as Q, computed as W, onMounted as X, resolveComponent as a, openBlock as F, createElementBlock as E, normalizeStyle as Y, createElementVNode as g, createVNode as l, withCtx as u, withDirectives as Z, unref as p, normalizeClass as ee, createTextVNode as y, toDisplayString as ne, pushScopeId as te, popScopeId as oe } from "vue";
|
|
2
|
-
import { a as le, y as se, c as re, s as x, L as B, R as ce, d as ae, m as ue, E as ie, e as fe, _ as me } from "./index-
|
|
3
|
-
import { u as de } from "./index-
|
|
2
|
+
import { a as le, y as se, c as re, s as x, L as B, R as ce, d as ae, m as ue, E as ie, e as fe, _ as me } from "./index-CpRNYfzm.mjs";
|
|
3
|
+
import { u as de } from "./index-BpQ_DNWJ.mjs";
|
|
4
4
|
const N = [
|
|
5
5
|
[
|
|
6
6
|
"requestFullscreen",
|
|
@@ -129,7 +129,7 @@ const b = s, _e = (e) => (te("data-v-62d7f9a6"), e = e(), oe(), e), pe = /* @__P
|
|
|
129
129
|
}), Ce = /* @__PURE__ */ R({
|
|
130
130
|
...Se,
|
|
131
131
|
setup(e) {
|
|
132
|
-
const o = k(() => import("./userNews-
|
|
132
|
+
const o = k(() => import("./userNews-6B-dS4JZ.mjs")), n = k(() => import("./search-BawcZysI.mjs")), m = de(), f = S(), d = S(), M = le(), C = se(), q = re(), { userInfos: w } = x(C), { themeConfig: P } = x(q), v = S(), h = Q({
|
|
133
133
|
isScreenfull: !1,
|
|
134
134
|
disabledSize: "large"
|
|
135
135
|
}), I = W(() => {
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, reactive as p, resolveComponent as u, openBlock as e, createElementBlock as s, createElementVNode as t, createCommentVNode as i, Fragment as b, renderList as h, toDisplayString as a, createBlock as v, pushScopeId as w, popScopeId as k } from "vue";
|
|
2
|
-
import { _ as x } from "./index-
|
|
2
|
+
import { _ as x } from "./index-CpRNYfzm.mjs";
|
|
3
3
|
const y = (n) => (w("data-v-8abed4d4"), n = n(), k(), n), f = { class: "layout-navbars-breadcrumb-user-news" }, C = { class: "head-box" }, L = /* @__PURE__ */ y(() => /* @__PURE__ */ t("div", { class: "head-box-title" }, "通知", -1)), g = { class: "content-box" }, B = { class: "content-box-msg" }, I = { class: "content-box-time" }, N = l({
|
|
4
4
|
name: "layoutBreadcrumbUserNews"
|
|
5
5
|
}), S = /* @__PURE__ */ l({
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-ClnvgeEO.js"),d=o=>(e.pushScopeId("data-v-8abed4d4"),o=o(),e.popScopeId(),o),r={class:"layout-navbars-breadcrumb-user-news"},m={class:"head-box"},p=d(()=>e.createElementVNode("div",{class:"head-box-title"},"通知",-1)),_={class:"content-box"},u={class:"content-box-msg"},b={class:"content-box-time"},k=e.defineComponent({name:"layoutBreadcrumbUserNews"}),v=e.defineComponent({...k,setup(o){const t=e.reactive({newsList:[{label:"关于版本发布的通知",value:"华速消息",time:"2023-12-28"},{label:"关于学习交流的通知",value:"华速消息",time:"2023-12-28"}]}),c=()=>{t.newsList=[]},s=()=>{window.open("https://www.baidu.com")};return(w,y)=>{const l=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("div",m,[p,t.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"head-box-btn",onClick:c},"全部已读")):e.createCommentVNode("",!0)]),e.createElementVNode("div",_,[t.newsList.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.newsList,(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:"content-box-item",key:a},[e.createElementVNode("div",null,e.toDisplayString(n.label),1),e.createElementVNode("div",u,e.toDisplayString(n.value),1),e.createElementVNode("div",b,e.toDisplayString(n.time),1)]))),128)):(e.openBlock(),e.createBlock(l,{key:1,description:"暂无通知"}))]),t.newsList.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"foot-box",onClick:s},"前往通知中心")):e.createCommentVNode("",!0)])}}}),h=i._export_sfc(v,[["__scopeId","data-v-8abed4d4"]]);exports.default=h;
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./userSelect.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./userSelect.vue_vue_type_script_setup_true_lang-CEJctZOU.js");exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),f=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),f=require("./index-ClnvgeEO.js"),h=(o,n)=>Object.assign(o,{other_log_info:{title:n}}),v=(o={})=>(o=h(o,"获取全部用户列表"),f.request({url:"/scmp-web/pri/user/list_all",method:"get",params:o}));function V(){return{getListAll:v}}const b={class:"h-full flex flex-col"},x={class:"flex justify-between items-center"},w=e.createElementVNode("span",null,"* 双击选择",-1),y={class:"flex-1"},N={class:"flex justify-center items-center py-[5px]"},C=e.defineComponent({__name:"userSelect",emits:["refresh","success"],setup(o,{emit:n}){const{getListAll:u}=V(),d=n,l=e.ref([]),c=async()=>{let a={qry_like_info:s.value};const t=await u(a);console.log(t),t.code===1&&(l.value=t.data)};e.onMounted(()=>{c()});const s=e.ref("");return(a,t)=>{const _=e.resolveComponent("hs-input"),r=e.resolveComponent("el-table-column"),m=e.resolveComponent("el-table"),p=e.resolveComponent("hs-button");return e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("div",x,[e.createVNode(_,{modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=i=>s.value=i),placeholder:"请输入姓名,回车检索",clearable:"",class:"max-w-56",onKeydown:e.withKeys(c,["enter"])},null,8,["modelValue"]),w]),e.createElementVNode("div",y,[e.createVNode(m,{data:l.value,style:{width:"100%",height:"100%"}},{default:e.withCtx(()=>[e.createVNode(r,{prop:"name",label:"name"}),e.createVNode(r,{prop:"account",label:"account",width:"180"})]),_:1},8,["data"])]),e.createElementVNode("div",N,[e.createVNode(p,{size:"default",type:"default",class:"ml10",onClick:t[1]||(t[1]=i=>d("success","close"))},{default:e.withCtx(()=>[e.createTextVNode(" 取消 ")]),_:1})])])}}});exports._sfc_main=C;
|