What came into power after the war between Himachal and Sanskrit