`)}progress(e,t,r){let n=Number.isFinite(t)?t:0,i=Number.isFinite(r)?r:0,o=i>0?Math.round(n/i*100):0,a={msg:"\u8FDB\u884C\u4E2D",data:{current:n,total:i,percent:Number(o)},action:e,type:"progress"};this.flushResult(a)}spinner(e){return{stop(){},message(){}}}debug(e){this.verbose&&console.error(yt.default.dim(`[DEBUG] ${e}`))}flushResult(e){this.writeStdout(JSON.stringify(e))}writeStdout(e){process.stdout.write(e+`
`)}};K();V();var Ke=O(require("path")),Ou=O(require("os")),ut=O(require("fs")),Lm=!0,Yt=Lm?".quarkclouddrive":".quark-drive",ba="config.json",Uu=`${Yt}/storage.json`,Lu=`${Yt}/search-results`,Ii="./downloads";var Nu=Ke.join(Ou.homedir(),Yt);function Nm(){return Ke.join(Nu,ba)}function Mm(){return Ke.join(Ke.dirname(process.cwd()),Yt,ba)}function Fm(){return Ke.join(process.cwd(),Yt,ba)}function va(){let s=[Nm(),Mm(),Fm()];return[...new Set(s)]}var Mu="cli";function Fu(s){Mu=(s??"").trim().replace(/[^a-zA-Z0-9._-]/g,"_")||"cli"}function $u(){return Mu}var $m="qrcode";function qu(){return Ke.join(Nu,$m)}function Hu(){let s=qu();if(ut.existsSync(s))for(let e of ut.readdirSync(s))try{ut.rmSync(Ke.join(s,e),{recursive:!0,force:!0})}catch{}}function zu(){let s=qu();return ut.existsSync(s)||ut.mkdirSync(s,{recursive:!0}),Ke.join(s,"unauthorize-qr.png")}function An(s=new Date){let e=(i,o=2)=>String(i).padStart(o,"0"),t=-s.getTimezoneOffset(),r=t>=0?"+":"-",n=Math.abs(t);return`${s.getFullYear()}-${e(s.getMonth()+1)}-${e(s.getDate())} ${e(s.getHours())}:${e(s.getMinutes())}:${e(s.getSeconds())}.${e(s.getMilliseconds(),3)} ${r}${e(Math.floor(n/60))}:${e(n%60)}`}function wn(s){let e=/[?&]req_id=([^&]+)/.exec(s);return e?decodeURIComponent(e[1]):""}function Pr(s){return s?s.length<=12?s:`${s.slice(0,12)}\u2026`:""}var B=class extends Error{constructor(e,t,r,n=1,i={}){super(r),this.name="CliExitError",this.exitCode=n,this.action=e,this.errorCode=t,this.errorMsg=r,this.data=i}},Ci=class{constructor(e){this.verbose=e.verbose,this.output=new ws(this.verbose)}finish(e,t={}
...[truncated 27 chars]