Convertible Notes - Additional Information (Details) | Jan. 01, 2021USD ($) | Apr. 30, 2021USD ($)d$ / sharesshares | Apr. 30, 2020USD ($)$ / sharesshares | Aug. 31, 2019USD ($)$ / sharesshares | Sep. 30, 2021USD ($)$ / shares | Sep. 30, 2020USD ($) | Sep. 30, 2021USD ($)$ / sharesshares | Sep. 30, 2020USD ($) | Dec. 31, 2020USD ($) |
Debt Instrument [Line Items] | | | | | | | | | |
Proceeds from issuance of convertible notes, net of issuance costs | | | | | | | $ 1,137,227,000 | $ 988,582,000 | |
Accumulated deficit | | | | | $ (8,307,016,000) | | (8,307,016,000) | | $ (7,891,542,000) |
Convertible senior notes, net | | | | | 2,252,079,000 | | 2,252,079,000 | | $ 1,675,169,000 |
Amortization of debt discount and issuance costs | | | | | 1,109,000 | $ 24,503,000 | 3,301,000 | 56,478,000 | |
Induced conversion expense related to convertible notes | | | | | 4,536,000 | | 41,538,000 | | |
Exchange Agreements | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Induced conversion expense related to convertible notes | | | | | $ 4,500,000 | | 41,500,000 | | |
Shares issued under original terms of general conversion with net carrying amount | | | | | | | $ 1,132,600,000 | | |
Cumulative Effect, Period of Adoption, Adjustment | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Accumulated deficit | $ (95,000,000) | | | | | | | | |
Additional paid-in capital | (664,000,000) | | | | | | | | |
Convertible senior notes, net | $ 569,000,000 | | | | | | | | |
Accounting Standards Update 2020-06 | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Change in accounting principle, accounting standards update, adoption date | | | | | Jan. 1, 2021 | | Jan. 1, 2021 | | |
Change in accounting principle, accounting standards update, early adoption [true false] | | | | | true | | true | | |
Change in accounting principle, accounting standards update, transition option elected | | | | | | | us-gaap:AccountingStandardsUpdate202006RetrospectiveMember | | |
Class A Non-voting Common Stock | Exchange Agreements | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Shares issued upon conversion | shares | | | | | | | 52,400,000 | | |
Additional shares issued upon conversion | shares | | | | | | | 700,000 | | |
Fair value of induced conversion exchange shares | shares | | | | | | | 700,000 | | |
2027 Notes | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt instrument, principal amount | | $ 1,150,000,000 | | | $ 1,150,000,000 | | $ 1,150,000,000 | | |
Indenture date | | Apr. 30, 2021 | | | | | | | |
Proceeds from issuance of convertible notes, net of issuance costs | | $ 1,050,000,000 | | | | | | | |
Debt instrument, maturity date | | May 1, 2027 | | | | | | | |
Debt instrument, redemption price percentage | | 100.00% | | | | | | | |
Debt instrument convertible, amortization period | | | | | | | 5 years 7 months 6 days | | |
Cap price, net cost | | | | | $ 86,800,000 | | $ 86,800,000 | | |
2027 Notes | Class A Non-voting Common Stock | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Number of shares issued upon conversion | shares | | 11.2042 | | | | | | | |
Debt instrument, convertible principal amount used in conversion rate | | $ 1,000 | | | | | | | |
Conversion price per share | $ / shares | | $ 89.25 | | | | | | | |
Debt instrument convertible, percentage of conversion price | | 130.00% | | | | | | | |
Debt instrument convertible, number of trading days | d | | 20 | | | | | | | |
Debt instrument, redemption price percentage | | 100.00% | | | | | | | |
Cap price, per share | $ / shares | | | | | $ 121.02 | | $ 121.02 | | |
2027 Notes | Class A Non-voting Common Stock | Scenario One | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt instrument convertible, percentage of conversion price | | 130.00% | | | | | | | |
Debt instrument convertible, number of trading days | d | | 20 | | | | | | | |
Debt instrument convertible, number of consecutive trading days | d | | 30 | | | | | | | |
2027 Notes | Class A Non-voting Common Stock | Scenario Two | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt instrument, convertible principal amount used in conversion rate | | $ 1,000 | | | | | | | |
Debt instrument convertible, number of consecutive trading days | d | | 10 | | | | | | | |
Debt instrument, convertible, threshold business days | | 5 days | | | | | | | |
2027 Notes | Class A Non-voting Common Stock | Scenario Two | Maximum | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt instrument convertible, percentage of conversion price | | 98.00% | | | | | | | |
2025 Notes | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt instrument, principal amount | | | $ 1,000,000,000 | | $ 284,105,000 | | $ 284,105,000 | | |
Debt instrument, maturity date | | | May 1, 2025 | | | | | | |
Proceeds from issuance of convertible notes, net of issuance costs | | | $ 888,600,000 | | | | | | |
Interest payment beginning date | | | Nov. 1, 2020 | | | | | | |
Debt instrument, interest rate | | | 0.25% | | | | | | |
Debt instrument, interest rate terms | | | | | | | Interest is payable in cash semi-annually in arrears beginning on November 1, 2020 at a rate of 0.25% per year. | | |
Debt instrument convertible, amortization period | | | | | | | 3 years 7 months 6 days | | |
If-converted value exceeding principal amount | | | | | | | $ 683,900,000 | | |
Cap price, net cost | | | | | $ 100,000,000 | | 100,000,000 | | |
2025 Notes | Exchange Agreements | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt conversion, principal amount | | | | | | | $ 715,900,000 | | |
2025 Notes | Class A Non-voting Common Stock | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Number of shares issued upon conversion | shares | | | 46.1233 | | | | | | |
Debt instrument, convertible principal amount used in conversion rate | | | $ 1,000 | | | | | | |
Conversion price per share | $ / shares | | | $ 21.68 | | | | | | |
Cap price, per share | $ / shares | | | | | $ 32.12 | | $ 32.12 | | |
2026 Notes | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt instrument, principal amount | | | | $ 1,265,000,000 | $ 838,495,000 | | $ 838,495,000 | | |
Debt instrument, maturity date | | | | Aug. 1, 2026 | | | | | |
Proceeds from issuance of convertible notes, net of issuance costs | | | | $ 1,150,000,000 | | | | | |
Interest payment beginning date | | | | Feb. 1, 2020 | | | | | |
Debt instrument, interest rate | | | | 0.75% | | | | | |
Debt instrument, interest rate terms | | | | | | | Interest is payable in cash semi-annually in arrears beginning on February 1, 2020 at a rate of 0.75% per year. | | |
Debt instrument convertible, amortization period | | | | | | | 4 years 9 months 18 days | | |
If-converted value exceeding principal amount | | | | | | | $ 1,900,000,000 | | |
Cap price, net cost | | | | | $ 102,100,000 | | 102,100,000 | | |
2026 Notes | Exchange Agreements | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt conversion, principal amount | | | | | | | $ 426,500,000 | | |
2026 Notes | Class A Non-voting Common Stock | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Number of shares issued upon conversion | shares | | | | 43.8481 | | | | | |
Debt instrument, convertible principal amount used in conversion rate | | | | $ 1,000 | | | | | |
Conversion price per share | $ / shares | | | | $ 22.81 | | | | | |
Cap price, per share | $ / shares | | | | | $ 32.58 | | $ 32.58 | | |
2025, 2026 and 2027 Notes | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Amortization of debt issuance costs | | | | | $ 1,100,000 | | $ 3,300,000 | | |
Amortization of debt discount and issuance costs | | | | | | 24,500,000 | | 56,500,000 | |
Contractual interest expense | | | | | $ 1,900,000 | $ 3,000,000 | $ 7,200,000 | $ 8,200,000 | |
Initial Placement | 2027 Notes | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt instrument, principal amount | | $ 1,000,000,000 | | | | | | | |
Over-Allotment Option | 2027 Notes | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Debt instrument, principal amount | | $ 150,000,000 | | | | | | | |