import{L7 as x,Y6 as X,a7 as k,p7 as Y}from"./cli-0.5.12-g4wb8mj2.mjs";import{eda as $}from"./cli-0.5.12-vp5smcs1.mjs";import{aoa as Z}from"./cli-0.5.12-xzeb7mtb.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await I(J);return q}catch{return}}var M=Z(()=>{$();k();x()});
export{H as zb,M as Ab};
