Who is attending the pope’s funeral?

Dozens of heads of state - some of whom had better relations with the pope than others - will be in attendance.