TMI kinda gross

So I woke up this morning and my whole vagina was filled with this. I usually get discharge like this but this time it was a LOT more. My period come in 3 days. Why can this be?