Quarterly report pursuant to Section 13 or 15(d)

BORROWINGS- Schedule of Borrowings (Details)

v3.23.1
BORROWINGS- Schedule of Borrowings (Details) - USD ($)
$ in Thousands
Mar. 31, 2023
Dec. 31, 2022
Debt Instrument [Line Items]    
Senior Secured Convertible Notes, current $ 0 $ 163,556
Senior Secured Convertible Notes, non-current 382,866 382,208
Principal repayment obligation 391,012 557,678
Unamortized debt issuance costs (8,146) (11,914)
Carrying value 382,866 545,764
Senior Secured Convertible Notes due 2025    
Debt Instrument [Line Items]    
Principal repayment obligation, current 0 166,666
Unamortized debt issuance costs, current 0 (3,110)
Senior Secured Convertible Notes, current 0 163,556
Principal repayment obligation, non-current 333,334 333,334
Unamortized debt issuance costs, noncurrent (5,644) (6,219)
Senior Secured Convertible Notes, non-current 327,690 327,115
Senior Notes due 2028    
Debt Instrument [Line Items]    
Principal repayment obligation, non-current 57,678 57,678
Unamortized debt issuance costs, noncurrent (2,502) (2,585)
Senior Secured Convertible Notes, non-current $ 55,176 $ 55,093