XML 30 R8.htm IDEA: XBRL DOCUMENT v3.22.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Operating Activities      
Net loss attributable to the Company $ (459,965) $ (596,155) $ (83,743)
Adjustments to reconcile net loss to net cash used in operating activities:      
Depreciation of long-lived assets 20,900 14,434 11,938
Amortization of intangible assets 2,469 1,135 698
Stock-based compensation 76,470 17,135 10,890
(Gain) loss on extinguishment of debt   (17,686) 518
Amortization of debt issuance costs and discount on convertible senior notes 3,018 17,061 9,006
Provision for common stock warrants 6,566 425,047 6,513
Deferred income tax benefit (16,197) (30,845)  
Impairment of long-lived assets 10,224 6,430  
Loss (benefit) on service contracts 63,124 33,125 (1,643)
Fair value adjustment to contingent consideration 11,176 (1,160)  
Net realized loss on investments 81    
Amortization of premium on available-for-sale securities 9,232    
Lease origination costs (10,410)    
Change in fair value for equity securities (6,738)    
Loss on equity method investments 5,704    
Provision for bad debts and other assets   700 1,981
Loss on disposal of leased assets     212
Change in fair value of common stock warrant liability     (79)
Changes in operating assets and liabilities that provide (use) cash:      
Accounts receivable (27,601) (15,701) 10,594
Inventory (98,791) (63,389) (24,633)
Contract assets (10,608)    
Prepaid expenses and other assets (32,392) (18,401) (8,110)
Accounts payable, accrued expenses, and other liabilities 24,908 51,880 17,234
Deferred revenue 70,654 20,914 (4,700)
Net cash used in operating activities (358,176) (155,476) (53,324)
Investing activities      
Purchases of property, plant and equipment (172,166) (22,526) (5,683)
Purchase of intangible assets (928) (1,957) (2,404)
Purchases of equipment related to power purchase agreements and equipment related to fuel delivered to customers (20,172) (25,738) (6,532)
Purchase of available-for-sale securities (3,159,372)    
Proceeds from sales of available-for-sale securities 778,038    
Proceeds from maturities of available-for-sale securities 1,129,088    
Purchase of equity securities (169,793)    
Proceeds from sales of equities 28,536    
Net cash paid for acquisitions (136,526) (45,113)  
Cash paid for non-consolidated entities and non marketable equity securities (17,596)    
Proceeds from sale of leased assets     375
Net cash used in investing activities (1,740,891) (95,334) (14,244)
Financing activities      
Proceeds from exercise of warrants, net of transaction costs 15,445   14,089
Payments of contingent consideration (1,541)    
Proceeds from public and private offerings, net of transaction costs 3,587,833 1,271,714 158,343
Payments of tax withholding on behalf of employees for net stock settlement of stock-based compensation (32,092)    
Proceeds from exercise of stock options 7,520 32,023 1,217
Payments for redemption of preferred stock     (4,040)
Proceeds from issuance of convertible senior notes, net   205,098 39,052
Repurchase of convertible senior notes   (90,238)  
Purchase of capped calls and common stock forward   (16,253)  
Proceeds from long-term debt, net   99,000 119,186
Proceeds from termination of capped calls   24,158  
Principal payments on long-term debt (48,681) (48,020) (25,345)
Proceeds from finance obligations 108,925 65,259 83,668
Repayments of finance obligations and finance leases (39,630) (27,212) (59,196)
Net cash provided by financing activities 3,597,779 1,515,529 326,974
Effect of exchange rate changes on cash (802) 65 (59)
Increase in cash, cash equivalents and restricted cash 1,497,910 1,264,784 259,347
Cash, cash equivalents, and restricted cash beginning of period 1,634,284 369,500 110,153
Cash, cash equivalents, and restricted cash end of period 3,132,194 1,634,284 369,500
Supplemental disclosure of cash flow information      
Cash paid for interest, net capitalized interest of $4.8 million, $0 and $0 19,327 28,942 19,180
Summary of non-cash activity      
Recognition of right of use asset - finance leases 28,180    
Recognition of right of use asset - operating leases 110,337 55,651 52,924
Net tangible assets (liabilities) acquired (assumed) in a business combination (26,066) 8,751  
Common stock issued for acquisitions 46,697    
Intangible assets acquired in a business combination 120,962 32,268  
Conversion of convertible senior notes to common stock   62,553  
Net transfers between inventory and long-lived assets 6,297    
Conversion of convertible senior notes to common stock 15,345 62,553  
Accrued purchase of fixed assets, cash to be paid in subsequent period 14,006    
Settlement of intercompany liability from acquisition $ 7,100    
Conversion of preferred stock to common stock   $ 1,179 $ 28,392