What is the very first, entirely mechanical source of heat during a star's birth?

Answer

Gravitational collapse

Before nuclear fires ignite, a star begins forming from the collapse of molecular clouds. The initial crunching of matter due to gravity converts gravitational potential energy into kinetic energy of the gas particles, which manifests as heat.

What is the very first, entirely mechanical source of heat during a star's birth?
heatenergynuclear fusionstarastrophysics