A lot of people have declared the US republican party to be on its last legs, but it keeps stumbling onward.
The demographic writing is on the wall for the GOP, and they know it. Basically everything they do, from gerrymandering to trying to dictate who is and is not an American citizen, should be read in that light.