XML 77 R67.htm IDEA: XBRL DOCUMENT v3.23.2
Borrowings - Schedule of aggregate principal outstanding of all loans (Details) - USD ($)
$ in Thousands
Jun. 30, 2023
Dec. 31, 2022
Schedule of Borrowings [Line Items]    
Total payments due $ 940,428 $ 997,702
Unamortized debt discount (9,775) (11,308)
Total borrowings 930,653 986,394
Warehouse credit facilities | Revolving Credit Facility    
Schedule of Borrowings [Line Items]    
Total payments due 279,178 336,452
Convertible senior notes    
Schedule of Borrowings [Line Items]    
Total payments due $ 661,250 $ 661,250