Panick Attacks

Today I was eating and having a good time with my family and out of no where I felt like I couldnt breath, sweating, heart beating fast, wanted to faint it was horrible. I knew I was having a panick attack but didnt undestand why if nothing triggered it. Do any of u suffer from panick attacks and if so how do u deal with them? Can I take medication for that? Its just so scary not knowing when its gonna happen again. <|3