// @ts-nocheck// This file is generated by Umi automatically// DO NOT CHANGE IT MANUALLY!letcount=0;letgroupLevel=0;functionsend(type:string,message?:string){if(process.env.NODE_ENV==='production'){return;}else{constencodedMessage=message?`&m=${encodeURI(message)}`:'';fetch(`/__umi/api/terminal?type=${type}&t=${Date.now()}&c=${count++}&g=${groupLevel}${encodedMessage}`,{mode:'no-cors'})}}functionprettyPrint(obj:any){returnJSON.stringify(obj,null,2);}functionstringifyObjs(objs:any[]){constobj=objs.length>1?objs.map(stringify).join(' '):objs[0];returntypeofobj==='object'?`${prettyPrint(obj)}`:obj.toString();}functionstringify(obj:any){returntypeofobj==='object'?`${JSON.stringify(obj)}`:obj.toString();}constterminal={log(...objs:any[]){send('log',stringifyObjs(objs))},info(...objs:any[]){send('info',stringifyObjs(objs))},warn(...objs:any[]){send('warn',stringifyObjs(objs))},error(...objs:any[]){send('error',stringifyObjs(objs))},group(){groupLevel++},groupCollapsed(){groupLevel++},groupEnd(){groupLevel&&--groupLevel},clear(){send('clear')},trace(...args:any[]){console.trace(...args)},profile(...args:any[]){console.profile(...args)},profileEnd(...args:any[]){console.profileEnd(...args)},};export{terminal};