import{aL as n,s,aM as o}from"./index-CdXhMIt9.js";const i=async()=>{const e=s()?.client;if(!e)return{...o};const t=await e.getClashModeStatus({});return{...o,mode:t.currentMode,"mode-list":t.modeList,modes:t.modeList}},a=async()=>{n.value=await i()},d=async e=>{if(typeof e.mode=="string"){const t=s()?.client;t&&await t.setClashMode({mode:e.mode})}a()};export{a as fetchConfigs,d as updateConfigs};
