Beijing is the world's leading producer of minerals essential for digital technology, automobiles, energy, and weapons.