Here is a diagram that shows the scale of this system and the flow of material. 1 au = the distance between the Earth and the Sun.
Gas falls from the nebula onto the disk surrounding the forming star, before being pulled into the star itself. The protostar and the disk also work together to eject material, which carves a cavity above and below the disk.
Credit: Tobin et al. 2012
https://arxiv.org/abs/1212.0861
@kellylepo why -au pls?