Maaser from unemployment and other gov. money

Is it necessary to give maaser from unemployment funds or the government stimulus which are direct deposit into a debit card and/ bank account?
What about tax refunds?
And if I have to pay taxes does that amount get deducted from the maaser I owe?

Yes
Yes
I’m assuming you mean that you want to take maaser after deducting the taxes that you’re paying to lower the total. That would be the same with other business expenses. Yes you can do that