Qatar Airways to take up to 10% stake in LATAM