High-resolution imaging of the cosmic mass distribution from gravitational lensing of pre-galactic H i