• {#each $operating_currency as currency} {@const num = shown_balance[currency]} {@const cost_num = shown_cost?.[currency] ?? 0} {#if num} {$ctx.num(invert * num, currency)} {#if cost_num && num - cost_num} {@const diff = invert * (num - cost_num)} {/if} {/if} {/each} {#each shown_balance_other as [currency, num]} {@const cost_num = shown_cost?.[currency] ?? 0} {$ctx.amount(invert * num, currency)} {#if cost_num && num - cost_num} {@const diff = invert * (num - cost_num)} {/if}
    {/each}

    {#if !is_toggled && children.some((n) => !$not_shown.has(n.account))}
      {#each children.filter((n) => !$not_shown.has(n.account)) as child (child.account)} {/each}
    {/if}