Theory of the rupture of thin bodies with cracks