TORONTO—Seven weeks ago, the NDP were at the top of the polls. The Conservatives were under siege. The Liberals were bleeding votes and looked vulnerable to even further losses with a weakened party brand and a leader with as many negatives as positives. The NDP had a clear shot at collapsing their opposition rival and vaulting ahead of the governing Conservatives with a majority government in reach.