v3.22.4
NET (LOSS) INCOME PER SHARE - Schedule of net income per share (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Numerator      
Net income $ (2,624,949) $ 3,624,120 $ 322,317
Less: Income allocated to participating securities 0 (527,162) (214,061)
Net (loss) income attributable to common stockholders, basic $ (2,624,949) $ 3,096,958 $ 108,256
Denominator      
Weighted-average shares of common stock used to compute net (loss) income per share attributable to common stockholders, basic (in shares) 222,314 177,319 68,671
Net (loss) income per share attributable to common stockholders, basic (in dollars per share) $ (11.81) $ 17.47 $ 1.58
Numerator      
Net (loss) income $ (2,624,949) $ 3,624,120 $ 322,317
Less: Income allocated to participating securities 0 (439,229) (194,846)
Add: Interest on convertible notes, net of tax 0 6,208 0
Less: Fair value gain on contingent consideration arrangement, net of tax (6,230) (695) 0
Net (loss) income attributable to common stockholders, diluted $ (2,631,179) $ 3,190,404 $ 127,471
Denominator      
Weighted-average shares of common stock used to compute net (loss) income per share attributable to common stockholders, basic (in shares) 222,314 177,319 68,671
Weighted-average effect of potentially dilutive securities:      
Warrants (in shares) 0 72 392
Convertible notes (in shares) 0 2,388 0
Contingent consideration (in shares) 24 8 0
Weighted-average shares of common stock used to compute net (loss) income per share attributable to common stockholders, diluted (in shares) 222,338 219,965 91,209
Net (loss) income per share attributable to common stockholders, diluted (in dollars per share) $ (11.83) $ 14.50 $ 1.40
Stock options      
Weighted-average effect of potentially dilutive securities:      
Share-based compensation plan (in shares) 0 36,396 22,146
RSUs      
Weighted-average effect of potentially dilutive securities:      
Share-based compensation plan (in shares) 0 3,773 0
Restricted common stock      
Weighted-average effect of potentially dilutive securities:      
Share-based compensation plan (in shares) 0 9 0