When I parent my mesh and armature with automatic weights, the weights don't work properly. I have tried recalculating normals, but it did not work.

This is my mesh and armature:  

[![This is my mesh and armature.](https://i.stack.imgur.com/he3oG.png)](https://i.stack.imgur.com/he3oG.png)

This is the way the automatic weights are getting assigned:  

[![This is the way the automatic weights are getting assigned.](https://i.stack.imgur.com/Bv6Kf.png)](https://i.stack.imgur.com/Bv6Kf.png)

This problem is occurring for all bones. I also tried deleting the armature and used a new armature, but the same problem occurred.

[Blender File](https://drive.google.com/file/d/1-vN7FM3090J54ogq-O5aAbXj85c45Vz4/view?usp=sharing)