Machine-learning informed subtypes of heart failure and their palliative care trajectories: a population-based cohort study | Synapse