import{jh as R,lh as y,mh as v}from"./cli-0.5.4-5fpyxq2n.mjs";import{MW as K,pX as E,rV as c}from"./cli-0.5.4-s7k1f0wc.mjs";import{OY as O,PY as N,QY as M,RY as U}from"./cli-0.5.4-mn22gk7g.mjs";import{SY as G}from"./cli-0.5.4-5t3jj85n.mjs";import{Haa as L,_aa as b}from"./cli-0.5.4-cbq01zg3.mjs";import{Vca as Z,fda as W}from"./cli-0.5.4-7grzwf6q.mjs";import{Pea as p}from"./cli-0.5.4-09dvrzcr.mjs";import{Vma as F,Zma as j}from"./cli-0.5.4-aacw1src.mjs";function f(){let q=R();if(!q||!q.available||q.granted)return!1;return y(q)!==null}function r(){if(!f())return!1;let q=L();if(q.hasVisitedExtraUsage)return!1;if((q.overageCreditUpsellSeenCount??0)>=T)return!1;return!0}function C(q){return`${q} in extra usage for third-party apps · /extra-usage`}function w(q){return`${q} in extra usage`}function n(q){let k=S.c(8),{maxWidth:z,twoLine:P}=q,Q,H;if(k[0]!==z||k[1]!==P){H=Symbol.for("react.early_return_sentinel");k:{let A=R();if(!A){H=null;break k}let V=y(A);if(!V){H=null;break k}if(P){let I=w(V),J;if(k[4]!==z)J=z?Z(_,z):_,k[4]=z,k[5]=J;else J=k[5];let Y;if(k[6]!==J)Y=N(K,{dimColor:!0,children:J}),k[6]=J,k[7]=Y;else Y=k[7];H=M(O,{children:[N(K,{color:"claude",children:z?Z(I,z):I}),Y]});break k}let B=C(V),X=z?Z(B,z):B,D=Math.min(w(V).length,X.length);Q=M(K,{dimColor:!0,children:[N(K,{color:"claude",children:X.slice(0,D)}),X.slice(D)]})}k[0]=z,k[1]=P,k[2]=Q,k[3]=H}else Q=k[2],H=k[3];if(H!==Symbol.for("react.early_return_sentinel"))return H;return Q}var S,$,T=3,_="On us. Works on third-party apps · /extra-usage";var l=j(()=>{E();p();v();b();W();U();S=F(c(),1),$=F(G(),1)});
export{f as Vf,r as Wf,n as Xf,l as Yf};
