Enhancing Whole Slide Image Classification through Supervised Contrastive Domain Adaptation