import{q as a}from"./index-BCSjj6Us.js";class d{static async getOB11Config(){return(await a.post("/OB11Config/GetConfig")).data.data}static async setOB11Config(t){await a.post("/OB11Config/SetConfig",{config:JSON.stringify(t)})}static async checkQQLoginStatus(){return(await a.post("/QQLogin/CheckLoginStatus")).data.data}static async checkQQLoginStatusWithQrcode(){return(await a.post("/QQLogin/CheckLoginStatus")).data.data}static async refreshQRCode(){await a.post("/QQLogin/RefreshQRcode")}static async getQQLoginQrcode(){return(await a.post("/QQLogin/GetQQLoginQrcode")).data.data.qrcode}static async getQQQuickLoginList(){return(await a.post("/QQLogin/GetQuickLoginList")).data.data}static async getQQQuickLoginListNew(){return(await a.post("/QQLogin/GetQuickLoginListNew")).data.data}static async setQuickLogin(t){await a.post("/QQLogin/SetQuickLogin",{uin:t})}static async getQQLoginInfo(t){return(await a.post("/QQLogin/GetQQLoginInfo",{},t)).data.data}static async getQuickLoginQQ(){const{data:t}=await a.post("/QQLogin/GetQuickLoginQQ");return t.data}static async setQuickLoginQQ(t){await a.post("/QQLogin/SetQuickLoginQQ",{uin:t})}static async passwordLogin(t,i){return(await a.post("/QQLogin/PasswordLogin",{uin:t,passwordMd5:i})).data.data}static async captchaLogin(t,i,s,n,o){return(await a.post("/QQLogin/CaptchaLogin",{uin:t,passwordMd5:i,ticket:s,randstr:n,sid:o})).data.data}static async newDeviceLogin(t,i,s){return(await a.post("/QQLogin/NewDeviceLogin",{uin:t,passwordMd5:i,newDevicePullQrCodeSig:s})).data.data}static async getNewDeviceQRCode(t,i){const n=(await a.post("/QQLogin/GetNewDeviceQRCode",{uin:t,jumpUrl:i})).data.data;if(n!=null&&n.str_url){let o=n.bytes_token||"";if(!o&&n.str_url)try{const e=new URL(n.str_url).searchParams.get("str_url")||"";o=e?btoa(e):""}catch{o=""}return{str_url:n.str_url,bytes_token:o,uint32_guarantee_status:n.uint32_guarantee_status,ActionStatus:n.ActionStatus,ErrorCode:n.ErrorCode,ErrorInfo:n.ErrorInfo}}return n}static async pollNewDeviceQR(t,i){return(await a.post("/QQLogin/PollNewDeviceQR",{uin:t,bytesToken:i})).data.data}static async resetDeviceID(){await a.post("/QQLogin/ResetDeviceID")}static async restartNapCat(){await a.post("/QQLogin/RestartNapCat")}static async getDeviceGUID(){return(await a.post("/QQLogin/GetDeviceGUID")).data.data}static async setDeviceGUID(t){await a.post("/QQLogin/SetDeviceGUID",{guid:t})}static async getGUIDBackups(){return(await a.post("/QQLogin/GetGUIDBackups")).data.data}static async restoreGUIDBackup(t){await a.post("/QQLogin/RestoreGUIDBackup",{backupName:t})}static async createGUIDBackup(){return(await a.post("/QQLogin/CreateGUIDBackup")).data.data}static async getPlatformInfo(){return(await a.post("/QQLogin/GetPlatformInfo")).data.data}static async getLinuxMAC(){return(await a.post("/QQLogin/GetLinuxMAC")).data.data}static async setLinuxMAC(t){await a.post("/QQLogin/SetLinuxMAC",{mac:t})}static async getLinuxMachineId(){return(await a.post("/QQLogin/GetLinuxMachineId")).data.data}static async computeLinuxGUID(t,i){return(await a.post("/QQLogin/ComputeLinuxGUID",{mac:t,machineId:i})).data.data}static async getLinuxMachineInfoBackups(){return(await a.post("/QQLogin/GetLinuxMachineInfoBackups")).data.data}static async createLinuxMachineInfoBackup(){return(await a.post("/QQLogin/CreateLinuxMachineInfoBackup")).data.data}static async restoreLinuxMachineInfoBackup(t){await a.post("/QQLogin/RestoreLinuxMachineInfoBackup",{backupName:t})}static async resetLinuxDeviceID(){await a.post("/QQLogin/ResetLinuxDeviceID")}static async getNapCatConfig(){const{data:t}=await a.get("/NapCatConfig/GetConfig");return t.data}static async setNapCatConfig(t){await a.post("/NapCatConfig/SetConfig",t)}static async getNapCatUinConfig(){const{data:t}=await a.get("/NapCatConfig/GetUinConfig");return t.data}static async setNapCatUinConfig(t){await a.post("/NapCatConfig/SetUinConfig",t)}}export{d as Q};
