Equilibrium state of a trapped two-dimensional Bose gas