Topological kinematics of origami metamaterials