EWWWWWWWW that is gross....LOL you poor thing!
I was cat sitting for my daughters cats about a month ago. One is male, other female (neither fixed *sigh*). I have one of those 4inch lovely foam mattress pads on my bed, the kind that just envelope you when you lie down...yep...ahuh...you know what I'm talking about....peaceful comfort

Anyways, the male cat decided that he needed to mark his territory and sprayed all over my bed, soaking the foam mattress pad. I was soooooooooooo

if I had caught that cat....well lets just say I was angry! Do you know how hard it is to get that smell out of foam??? LOL