v3.20.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2020
Sep. 30, 2019
Operating activities    
Net loss $ (1,018,048) $ (420,319)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 10,308 9,450
Stock-based compensation 1,028,914 164,650
Amortization of debt issuance costs 2,319 87
Change in fair value of warrants (811) (2,743)
Loss from equity method investments 1,439  
Impairment of assets 674  
Changes in operating assets and liabilities:    
Accounts receivable (112,723) (96,142)
Prepaid expenses and other current assets (16,434) (8,045)
Other assets (14,192) (6,393)
Accounts payable (29,372) (21,133)
Accrued liabilities 33,634 12,105
Deferred revenue, current and noncurrent (30,937) (226,829)
Customer deposits, current and noncurrent (140,162) 102,100
Other noncurrent liabilities 7,071 (6,836)
Net cash used in operating activities (278,320) (500,048)
Investing activities    
Purchases of property and equipment (7,475) (10,947)
Purchase of equity method investment (2,500)  
Net cash used in investing activities (9,975) (10,947)
Financing activities    
Proceeds from the issuance of common stock, net of issuance costs 942,529 100,000
Proceeds from issuance of debt, net of issuance costs 199,369  
Principal payments on borrowings (400,000)  
Proceeds from the exercise of common stock options 79,473 9,337
Repurchase of common stock (3,777) (7,073)
Proceeds from the sale of redeemable convertible preferred stock   7,500
Redemption of redeemable convertible preferred stock   (168,000)
Other financing activities (250) (1,198)
Net cash provided by (used in) financing activities 817,344 (59,434)
Effect of foreign exchange on cash, cash equivalents, and restricted cash (678) (2,992)
Net increase (decrease) in cash, cash equivalents, and restricted cash 528,371 (573,421)
Cash, cash equivalents, and restricted cash—beginning of period 1,401,962 1,266,835
Cash, cash equivalents, and restricted cash—end of period 1,930,333 693,414
Supplemental disclosures of cash flow information:    
Cash paid for income taxes 9,143 1,981
Cash paid for interest 9,737  
Supplemental disclosures of non-cash investing and financing information:    
Receivable from the exercise of common stock options included in prepaid expenses and other current assets 36,557  
Accrued purchase of property and equipment 461  
Convertible Preferred Stock [Member]    
Supplemental disclosures of non-cash investing and financing information:    
Conversion of stock 10,810 7,375
Redeemable Convertible Preferred Stock [Member]    
Supplemental disclosures of non-cash investing and financing information:    
Conversion of stock   26,069
Conversion of Redeemable Convertible Preferred Stock into Convertible Preferred Stock [Member]    
Supplemental disclosures of non-cash investing and financing information:    
Conversion of stock   $ 4,163
Conversion of Redeemable Convertible Preferred Stock to Common Stock [Member]    
Supplemental disclosures of non-cash investing and financing information:    
Conversion of stock 2,138,988  
Conversion Of Convertible Preferred Stock Warrants Into Common Stock Warrants [Member]    
Supplemental disclosures of non-cash investing and financing information:    
Conversion of stock $ 31,007