function e({status:e,pid:t,state:n,details:r=[]}){let i=e??`unknown`,a=[];t&&a.push(`pid ${t}`),n&&n.toLowerCase()!==i&&a.push(`state ${n}`);for(let e of r)e&&a.push(e);return a.length>0?`${i} (${a.join(`, `)})`:i}export{e as t};
