How do you beat Baroness Von Bon Bon in Cuphead?

Quick answer: Beat three random candy subjects, ducking to hit the Jelly Bullies, then dodge her thrown heads and the rolling Patsy Menthols while she rides Whippet Creampup.
Show walkthrough
The random subjects
The first three phases are three of five candy subjects in random order: Lord Gob Packer, Kernel Von Pop, Muffsky Chernikov, Sargent Gumbo Gumbull and Sir Waffington III. Each has one main pattern, such as Gumbull’s raining gumballs or Muffsky’s jump and frosting shockwaves. Focus fire on each one and keep moving.
Jelly Bullies
Sword-wielding Jelly Bullies start charging across the floor after the second subject. You can only hit them while ducking, and the pink ones can be parried. Duck and shoot as soon as one appears.
Final phase: Bon Bon and Creampup
Bon Bon rides her dog Whippet Creampup, which now grows huge and chases you. Touching Creampup hurts in this phase. Use the platform for safe positioning and keep shooting the Baroness.
Heads and Patsy Menthol
She throws her head, which homes in on you while you move, and a new head replaces it. Creampup also spits rolling Patsy Menthols that you cannot shoot down. Jump over them, or parry them for extra height.
Reward
Beating her on Regular or Expert gives her soul contract. It also unlocks Aviary Action (Wally Warbles) and the Funfair Fever run and gun level.
