v3.22.2.2
Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Operating activities    
Net loss $ (180,703) $ (167,183)
Adjustments to reconcile net loss to net cash used in operating activities:    
Amortization of debt discount and deferred financing 1,963 1,852
Depreciation and amortization 4,031 4,691
Stock-based compensation 57,886 43,931
Loss on extinguishment of debt 0 257
Non-cash changes in the fair value of contingent consideration payable (506) 4,780
Foreign currency remeasurement loss 2,828 4,247
Asset impairment charges and other asset write-offs 17,271 0
Changes in operating assets and liabilities:    
Accounts receivable (7,426) (6,372)
Inventories 4,913 (3,022)
Prepaid expenses and other current assets (5,583) 9,080
Accounts payable, accrued expenses, and other current liabilities 25,465 (22,068)
Other non-current assets and liabilities (5,942) (2,170)
Net cash used in operating activities (85,803) (131,977)
Investing activities    
Sale and redemption of marketable securities 259,920 342,343
Purchases of marketable securities (99,811) (193,369)
Capital expenditures (1,089) (2,124)
Net cash provided by investing activities 159,020 146,850
Financing activities    
Payment of finance leases (92) (460)
Proceeds from warrants exercised, net 0 19,230
Purchase of vested restricted stock units, net of taxes (11,119) (14,700)
Proceeds from issuance of common stock from equity financing and pre-funded warrants, net of issuance costs 0 199,750
Proceeds from stock options exercised, net 3,191 8,357
Net cash (used in) provided by financing activities (8,020) 212,177
Effect of exchange rate changes on cash, cash equivalents, and restricted cash (33,120) (4,141)
Net increase in cash, cash equivalents, and restricted cash at the end of the period 32,077 222,909
Cash, cash equivalents, and restricted cash at the beginning of period 249,456 166,162
Cash, cash equivalents, and restricted cash at the end of period 281,533 389,071
Supplemental disclosures of cash flow information    
Cash paid during the period for interest 24,058 22,788
Cash paid for taxes 935 9,854
Capital expenditures unpaid at the end of period 53 327
Tenant improvements paid through lease incentives $ 0 $ 67