The eight factors that signaled an end to Apple's good fortunes in 2018, and what Apple needs to do now to pull itself together again.