Outflows -- 17. Heavy Ion Energization, Transport, and Loss in the Earth's Magnetosphere