CONVERTIBLE PREFERRED STOCK - Narrative (Details) | | | | | 1 Months Ended | 2 Months Ended | 3 Months Ended | 9 Months Ended | 12 Months Ended | 16 Months Ended | | | |
Jul. 23, 2021 shares | Dec. 31, 2020 USD ($) shares | Dec. 24, 2020 USD ($) shares | Dec. 22, 2020 USD ($) shares | Apr. 30, 2021 USD ($) $ / shares shares | Mar. 31, 2021 USD ($) | Feb. 28, 2021 USD ($) $ / shares shares | Dec. 31, 2020 USD ($) $ / shares shares | Sep. 30, 2020 USD ($) condition $ / shares shares | Aug. 31, 2020 USD ($) $ / shares shares | Jun. 30, 2020 USD ($) shares | Mar. 31, 2020 USD ($) shares | Oct. 31, 2019 USD ($) | Apr. 30, 2019 USD ($) | Apr. 30, 2021 USD ($) $ / shares shares | Sep. 30, 2022 USD ($) shares | Sep. 30, 2021 USD ($) shares | Sep. 30, 2022 USD ($) shares | Sep. 30, 2021 USD ($) shares | Dec. 31, 2021 USD ($) shares | Dec. 31, 2020 USD ($) shares | Dec. 31, 2019 USD ($) $ / shares shares | Dec. 31, 2019 USD ($) $ / shares shares | Jul. 22, 2021 shares | Jun. 30, 2021 USD ($) shares | Dec. 31, 2018 USD ($) |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible preferred stock, shares issued (in shares) | shares | | | | | | | | | | | | | | | | | | | 0 | | | 0 | | | 0 | | | | | 437,182,072 | | | |
Convertible preferred stock, shares outstanding (in shares) | shares | | | 957,159,704 | [1] | | | | | | 957,159,704 | [1] | | | | | | | | 0 | 0 | [2] | 0 | 0 | [2] | 0 | 957,159,704 | [1] | | | 437,182,072 | 1,155,909,367 | [2] | |
Convertible preferred stock, value | | | $ 2,494,076,000 | | | | | | | $ 2,494,076,000 | | | | | | | | | | $ 0 | | | $ 0 | | | $ 2,494,076,000 | | | | | $ 5,836,785,000 | | |
Number of milestone conditions required to receive funding | condition | | | | | | | | | | | | 2 | | | | | | | | | | | | | | | | | | | | | |
Increase in fair value of forward contracts | | | | | | | | | | | | | | | | | | | | | | $ 0 | (454,546,000) | | | | | | | | | | |
Stock-based compensation expense | | | | | | | | | | | | | | | | | | | $ 83,302,000 | $ 236,956,000 | | $ 352,245,000 | $ 366,200,000 | | | | | | | | | | |
Common stock, shares authorized (in shares) | shares | | | | | | | | | 1,316,758,889 | | | | | | | | | | 15,000,000,000 | | | 15,000,000,000 | | | 15,000,000,000 | | | | | | | | |
Convertible preferred stock, shares authorized (in shares) | shares | | | | | | | | | 1,155,909,398 | | | | | | | | | | | | | | | | | | | | | | | | |
Eligible Holders | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Aggregate value of convertible preferred shares approved for issuance | | | | | | | | | $ 71,000,000 | | | | | | | | | | | | | | | | | | | | | | | | |
Series E Contingent Forward Contract Liability | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Contingent forward contract, fair value | | | 110,500,000 | | $ 110,500,000 | | $ 722,400,000 | | 1,444,900,000 | 110,500,000 | | $ 800,000 | | | | | | $ 722,400,000 | | | | | | | $ 0 | 110,500,000 | | | | | | | |
Increase in fair value of forward contracts | | | | | | | | | | 109,700,000 | | | | | | | | | | | | | | | | (109,700,000) | | | | | | | |
Series C | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Repurchase of convertible preferred shares (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 11,331,430 | | | | |
Repurchase of convertible preferred shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 60,000,000 | | | | |
Price of stock repurchased (in dollars per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 5.30 | | | | |
Series C | Third Company Repurchase | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Price of stock repurchased (in dollars per share) | $ / shares | | | | | | | | | | | | | $ 1.02 | | | | | | | | | | | | | | | | | | | | |
Number of shares authorized to be repurchased (in shares) | shares | | | | | | | | | | | | | 9,656,589 | | | | | | | | | | | | | | | | | | | | |
Payments for repurchase of convertible preferred stock | | | | | | | | | | | | | $ 9,900,000 | | | | | | | | | | | | | | | | | | | | |
Convertible preferred stock, value | | | | | | | | | | | | | $ 20,400,000 | | | | | | | | | | | | | | | | | | | | |
Cumulative adjustments to additional paid in capital for share repurchases | | | $ 10,500,000 | | | | | | | $ 10,500,000 | | | | | | | | | | | | | | | | $ 10,500,000 | | | | | | | |
Series C | Fourth Company Repurchase | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Price of stock repurchased (in dollars per share) | $ / shares | | | | | | | | | | $ 1.21 | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares authorized to be repurchased (in shares) | shares | | | 1,850,800 | | | | | | | 1,850,800 | | | | | | | | | | | | | | | | 1,850,800 | | | | | | | |
Payments for repurchase of convertible preferred stock | | | | | | | | | | $ 2,200,000 | | | | | | | | | | | | | | | | | | | | | | | |
Convertible preferred stock, value | | | | | | | | | | | | $ 4,500,000 | | | | | | | | | | | | | | | | | | | | | |
Cumulative adjustments to additional paid in capital for share repurchases | | | $ 2,200,000 | | | | | | | 2,200,000 | | | | | | | | | | | | | | | | $ 2,200,000 | | | | | | | |
Convertible preferred stock, fair value (in dollars per share) | $ / shares | | | | | | | | | | | | $ 2.42 | | | | | | | | | | | | | | | | | | | | | |
Series B | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Repurchase of convertible preferred shares (in shares) | shares | [1] | | | | | | | | | | | | | | | | | | | | | | 3,525,365 | | | | | | | | | | |
Payments for repurchase of convertible preferred stock | | | | | | | | | | | | | | | | | | | | | | $ 0 | $ 3,000,000 | | | | | | | | | | |
Series B | Fifth Company Repurchase | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares authorized to be repurchased (in shares) | shares | | | | | | 3,525,332 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Payments for repurchase of convertible preferred stock | | | | | | $ 3,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible preferred stock, value | | | | | | 4,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Cumulative adjustments to additional paid in capital for share repurchases | | | | | | $ 1,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible preferred shares subject to repurchase, mandatory redemption term | | | 45 days | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Series D | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible preferred stock issuable, value | | | | | | | | | | | | | | | $ 400,000,000 | | | | | | | | | | | | | | | | | | |
Proceeds from issuance of convertible preferred stock | | | | | | | | | | | | | | $ 200,000,000 | $ 200,000,000 | $ 400,000,000 | $ 200,000,000 | | | | | 0 | 3,000,000 | | | | | | | | | | |
Conversion of convertible notes | | | | | | | | | | | | | | | | | $ 271,985,000 | | | | | | | | | | | $ 272,000,000 | | | | | |
Issuance of convertible preferred shares (in shares) | shares | | | | | | | | | | | | | | 82,496,121 | 82,496,092 | | | | | | | | | | | | | 374,777,280 | | | | | |
Preferred stock, price (in dollars per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 2.33 | $ 2.33 | | | | |
Proceeds from issuance of convertible preferred stock and conversion of convertible debt | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 872,000,000 | | | | | |
Series D Preferred Stock, Tranche One | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible preferred stock issuable, value | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 200,000,000 |
Series D Preferred Stock, Tranche Three | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible preferred stock issuable, value | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 400,000,000 |
Series D Preferred Stock, Tranche Two | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible preferred stock issuable, value | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 400,000,000 |
Series E | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Proceeds from issuance of convertible preferred stock | | | | | $ 400,000,000 | | $ 92,900,000 | $ 107,100,000 | $ 400,000,000 | $ 400,000,000 | | $ 500,000,000 | | | | | | $ 200,000,000 | | | | $ 0 | $ 600,000,000 | | | | | | | | | | |
Issuance of convertible preferred shares (in shares) | shares | | | | | 133,818,821 | | 66,909,408 | | 133,818,821 | | | 167,273,525 | | | | | | | | | | | 200,728,229 | [1] | | | | | | | | | |
Preferred stock, price (in dollars per share) | $ / shares | | | | | | | $ 2.99 | | $ 2.99 | | | $ 2.99 | | | | | | $ 2.99 | | | | | | | | | | | | | | | |
Convertible preferred stock, additional shares approved for issuance (in shares) | shares | | | | | | | | | 200,700,000 | | | | | | | | | | | | | | | | | | | | | | | | |
Stock-based compensation expense | | | | | | | | | | | | | | | | | | | | | | | | | $ 123,600,000 | | | | | | | | |
Series E | Eligible Holders | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock, price (in dollars per share) | $ / shares | | | | | | | | | $ 2.99 | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible preferred shares approved for issuance (in shares) | shares | | | | | | | | | 23,737,221 | | | | | | | | | | | | | | | | | | | | | | | | |
Series E | Additional Purchasers | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Preferred stock, price (in dollars per share) | $ / shares | | | | | | | | | $ 2.99 | | | | | | | | | | | | | | | | | | | | | | | | |
Series E | Management | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of convertible preferred shares (in shares) | shares | | | | | | | | | | | | | | | | | | 3,034,194 | | | | | | | | | | | | | | | |
Series E | Director | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of convertible preferred shares (in shares) | shares | | | | | | | | | | | | | | | | | | 1,658,705 | | | | | | | | | | | | | | | |
Series E | Chief Executive Officer | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Issuance of convertible preferred shares (in shares) | shares | | | | | | | 535,275 | | | | | | | | | | | | | | | | | | | | | | | | | | |
Common Stock | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Conversion of convertible preferred stock into common stock in connection with the reverse recapitalization (in shares) | shares | | 1,155,909,367 | | | | | | | | | | | | | | | | | | 1,155,909,367 | [2] | | 1,155,909,367 | [1] | | | | | | | | | |
Legacy Preferred Shareholders | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock converted, after exchange ratio (in shares) | shares | | 1,155,909,367 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| |
[1]The number of shares of convertible preferred stock and common stock issued and outstanding prior to the Merger have been retroactively adjusted by the Exchange Ratio to give effect to the reverse recapitalization treatment of the Merger. See Note 1 “Description of Business” and Note 3 “Reverse Capitalization” for more information.[2]The number of shares of convertible preferred stock and common stock issued and outstanding prior to the Merger have been retroactively adjusted by the Exchange Ratio to give effect to the reverse recapitalization treatment of the Merger. See Note 1 “Description of Business” and Note 3 “Reverse Capitalization” for more information. | |