v3.22.0.1

Net Loss per Share (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2021
Earnings Per Share [Abstract] |
Computation of Basic and Diluted Earnings per Share of Common Stock | The following table sets forth the computation of basic and diluted net loss per share attributable to common stockholders for the periods indicated (in thousands, except per share amounts):
| Year Ended December 31,
| 2019 | 2020 | 2021
Net loss attributable to Class A and Class B common stockholders | $ | (674,339) |  | $ | (4,584,716) |  | $ | (352,034) |
Weighted-average shares in computing net loss per share attributable to Class A and Class B common stockholders, basic and diluted | 260,556 |  | 284,363 |  | 615,891 |
Net loss per share attributable to Class A and Class B common stockholders, basic and diluted | $ | (2.59) |  | $ | (16.12) |  | $ | (0.57) |
Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share | Additionally, the following securities were not included in the computation of diluted shares outstanding because the effect would be anti-dilutive (in thousands):
| Year Ended December 31,
| 2019 | 2020 | 2021
2026 Notes(1) | — |  | — |  | 11,086 |
Warrants | — |  | 7,935 |  | 7,935 |
Escrow shares | 644 |  | 644 |  | 74 |
Stock options | 46,512 |  | 41,421 |  | 24,122 |
Restricted stock awards | 354 |  | 212 |  | 127 |
Restricted stock units | 5,931 |  | 35,738 |  | 26,041 |
Employee stock purchase plan | — |  | 561 |  | 365 |
Redeemable convertible preferred stock | 240,911 |  | — |  | — |
Total | 294,352 |  | 86,511 |  | 69,750 |
(1)Holders of the 2026 Notes who convert their 2026 Notes in connection with certain corporate events that constitute a make-whole fundamental change are entitled to an increase in the conversion rate. The 11.1 million shares represents the maximum number of shares that can be issued upon conversion after considering the make-whole fundamental change adjustment on an unweighted basis.

X
- References No definition available. + Details
Name: | us-gaap_EarningsPerShareAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by antidilutive securities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration