Exact Analysis of ESR Shift in the Spin-1/2 Heisenberg Antiferromagnetic Chain