XML 100 R84.htm IDEA: XBRL DOCUMENT v3.22.0.1
Income taxes - Loss from operations before tax (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Income Tax Disclosure [Abstract]      
Domestic $ (487,726) $ (452,475) $ (231,915)
Foreign (30,614) 49,543 (8,011)
Loss before income tax expense $ (518,340) $ (402,932) $ (239,926)