INVESTMENTS AND FAIR VALUE MEASUREMENT - Narrative (Details) $ in Thousands |
12 Months Ended | |
|---|---|---|
|
Dec. 31, 2021
USD ($)
|
Feb. 28, 2021
tranche
|
|
| Convertible notes | ||
| Fair Value Measurement Inputs and Valuation Techniques [Line Items] | ||
| Total loss due to changes in fair value | $ | $ 1,918,565 | |
| Warrants | ||
| Fair Value Measurement Inputs and Valuation Techniques [Line Items] | ||
| Total loss due to changes in fair value | $ | $ 127,092 | |
| Convertible notes | ||
| Fair Value Measurement Inputs and Valuation Techniques [Line Items] | ||
| Number of tranches issued | tranche | 2 | |
| Convertible notes | Investor | ||
| Fair Value Measurement Inputs and Valuation Techniques [Line Items] | ||
| Number of tranches issued | tranche | 2 |