import{UY as K,WY as Z}from"./cli-0.5.3-zg2apr51.mjs";import{XY as J,ZY as Y}from"./cli-0.5.3-ngnshpb7.mjs";import{$2 as D,d0 as B,e3 as F,f3 as G,i0 as W,z3 as X}from"./cli-0.5.3-1vt6twff.mjs";import{D5 as z,V5 as V}from"./cli-0.5.3-vpcrbd8n.mjs";import{Jea as y,Kea as Q}from"./cli-0.5.3-66650sba.mjs";import{Xma as N}from"./cli-0.5.3-0df3r78b.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
export{P as nh,_ as oh};
