XML 18 R8.htm IDEA: XBRL DOCUMENT v3.22.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended 12 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Jun. 30, 2022
Jun. 30, 2021
Dec. 31, 2021
Operating activities          
Net loss     $ (329,785) $ (160,380)  
Adjustments to reconcile net loss to net cash used in operating activities:          
Depreciation of long-lived assets     11,204 9,725  
Amortization of intangible assets     10,374 730  
Stock-based compensation     88,245 20,815  
Amortization of debt issuance costs and discount on convertible senior notes     1,336 1,726  
Provision for common stock warrants     3,942 3,452  
Deferred income tax benefit     (916)    
(Benefit)/loss on service contracts     (18,131) 4,399  
Fair value adjustment to contingent consideration     (2,605) (230)  
Net realized loss on investments $ 468 $ (18) 1,315 (18)  
Amortization of premium on available-for-sale securities     4,560    
Lease origination costs     (3,150) (4,553)  
Loss on disposal of assets     268    
Change in fair value for equity securities 13,484 (323) 18,643 (323)  
Loss on equity method investments 2,191   6,024    
Changes in operating assets and liabilities that provide (use) cash:          
Accounts receivable     31,990 (48,318)  
Inventory     (159,445) (70,588)  
Contract assets     (386)    
Prepaid expenses and other assets     (51,654) (22,967)  
Accounts payable, accrued expenses, and other liabilities     38,663 4,047  
Deferred revenue and other contract liabilities     (55,605) 15,848  
Net cash used in operating activities     (405,113) (246,635)  
Investing activities          
Purchases of property, plant and equipment     (157,838) (33,062)  
Purchases of equipment related to power purchase agreements and equipment related to fuel delivered to customers     (15,268) (7,598)  
Purchase of available-for-sale securities     (143,230) (1,504,891)  
Proceeds from sales of available-for-sale securities     475,676 260,313  
Proceeds from maturities of available-for-sale securities     167,629    
Purchase of equity securities     (4,990) (119,979)  
Net cash paid for acquisitions     (26,473)    
Cash paid for non-consolidated entities and non-marketable equity securities     (30,139)    
Net cash provided by (used in) investing activities     265,367 (1,405,217)  
Financing activities          
Proceeds from exercise of warrants, net of transaction costs       15,450  
Payments of contingent consideration     (2,667)    
Proceeds from public and private offerings, net of transaction costs       3,587,825  
Payments of tax withholding on behalf of employees for net stock settlement of stock-based compensation     (2,660)    
Proceeds from exercise of stock options     820 4,705  
Principal payments on long-term debt     (36,089) (15,564)  
Proceeds from finance obligations     35,048 32,159  
Principal repayments of finance obligations and finance leases     (25,168) (17,281)  
Net cash (used in) provided by financing activities     (30,716) 3,607,294  
Effect of exchange rate changes on cash     (55) (163)  
(Decrease)/increase in cash and cash equivalents     (225,318) 1,847,766  
Increase in restricted cash     54,801 107,513  
Cash, cash equivalents, and restricted cash beginning of period     3,132,194 1,634,284 $ 1,634,284
Cash, cash equivalents, and restricted cash end of period $ 2,961,677 $ 3,589,563 2,961,677 3,589,563 $ 3,132,194
Supplemental disclosure of cash flow information          
Cash paid for interest, net capitalized interest of $5.8 million     18,737 11,261  
Summary of non-cash activity          
Recognition of right of use asset - finance leases     12,644 11,286  
Recognition of right of use asset - operating leases     40,352 39,271  
Intangible assets acquired in a business combination     (5,124)    
Intangible assets acquired in a business combination     60,522    
Conversion of convertible senior notes to common stock       15,345  
Net transfers between inventory and long-lived assets     916    
Accrued purchase of fixed assets, cash to be paid in subsequent period     $ 39,681 $ 6,124