{#if loading && !profile}
{:else if failed && !profile}

{failed}

{:else if profile}

{#if profile.level_info?.title} {profile.level_info.title}{/if} {online ? 'Online now' : 'Offline'}
Level {profile.level_info?.level ?? 1} {#if profile.guild} [{profile.guild.tag}] {profile.guild.name}{/if} {#if profile.rank}{profile.rank.display}{/if}
Playtime{hours(profile.stats?.playtime_secs ?? 0)}
K/D{kd}
Favourite{profile.favorite_server ?? '–'}
Awards{profile.achievements_count ?? 0}
{#if profile.bio}

{profile.bio}

{/if}
{#if isMe}

This is you.

{:else if !signedIn}

Sign in with a SCOPENET account to send requests and messages.

{:else if !online}

{name} isn't online on this server, so they can't be reached from the map.

{/if}
e.key === 'Enter' && send()} />
{/if}