Annual report pursuant to Section 13 and 15(d)

Debt - Additional Information (Detail)

v3.24.1
Debt - Additional Information (Detail)
1 Months Ended 12 Months Ended
Dec. 13, 2023
USD ($)
$ / shares
shares
Aug. 31, 2023
USD ($)
Nov. 30, 2021
USD ($)
Days
$ / shares
Dec. 31, 2023
USD ($)
$ / shares
Dec. 31, 2022
USD ($)
$ / shares
Nov. 16, 2021
$ / shares
Debt Instrument [Line Items]            
Aggregate principal amount       $ 91,200,000    
Common stock, par value | $ / shares       $ 0.001 $ 0.001  
Gain (Loss) on Extinguishment of Debt       $ 30,023,000 $ 19,097,000  
Gain on debt extinguishment       30,023,000 19,097,000  
Amortization of debt issuance costs       1,082,000 1,191,000  
Convertible debt, if-converted value in excess of principal       $ 0    
Payment for capped call transactions     $ 18,616,000      
Initial cap price | $ / shares       $ 48.55    
Unwinding of capped calls related to convertible notes repurchase         276,000  
Premium over last reported sale price, percentage     75.00%      
Sale price of common stock | $ / shares           $ 27.74
Strike price | $ / shares       $ 35.76    
1.75% Convertible Senior Notes Due 2026 [Member]            
Debt Instrument [Line Items]            
Aggregate principal amount     $ 201,250,000      
Debt instrument, interest rate     1.75% 1.75%    
Additional principal amount     $ 26,250,000      
Debt instrument, frequency of periodic payment       semi-annually    
Debt instrument, payment terms       is payable semi-annually in arrears on May 15 and November 15 of each year, beginning on May 15, 2022.    
Debt Instrument, maturity date, description       The Convertible Notes will mature on November 15, 2026, unless earlier converted, redeemed, or repurchased in accordance with the terms of the Convertible Notes.    
Debt Instrument, maturity date       Nov. 15, 2026    
Number of trading days (whether or not consecutive) | Days     20      
Number of consecutive trading days | Days     30      
Percentage of conversion price     130.00%      
Debt instrument convertible principal amount     $ 1,000,000      
Debt instrument convertible measurement period percentage     98.00%      
Debt instrument, convertible, Date     May 15, 2026      
Initial conversion rate     0.0272068      
Initial conversion price | $ / shares     $ 36.76      
Redemption date     Nov. 20, 2024      
Percentage of conversion stock price, Redemption     130.00%      
Debt instrument, Redeemable, Number of trading days | Days     20      
Debt instrument, Redeemable, Number of consecutive trading days | Days     30      
Redemption price, Percentage of principal amount to be redeemed     100.00%      
Sinking fund     $ 0      
Debt instrument repurchase price due to fundamental change     100.00%      
Net proceeds from issuance of notes       $ 194,945,000    
Debt issuance costs       6,304,000    
Interest expense       $ 3,200,000 $ 4,700,000  
Effective annual interest rate       2.42% 2.42%  
Estimated fair value of convertible notes       $ 29,400,000    
Unwinding of capped calls related to convertible notes repurchase       0    
Prior Credit Agreement            
Debt Instrument [Line Items]            
Aggregate principal amount $ 0          
Term Loan Facility [Member]            
Debt Instrument [Line Items]            
Interest expense       $ 800,000    
Effective annual interest rate       31.30%    
Term Loan Facility [Member] | Senior Secured Term Loan [Member]            
Debt Instrument [Line Items]            
Aggregate principal amount $ 77,500,000          
Debt instrument, interest rate 3.00%          
Consideration on convertible notes $ 37,500,000          
Debt instrument, percentage of principal amount amortized. 2.50%          
Debt instrument, date of first required payment Jun. 01, 2024          
Debt instrument, minimum convertible principal amount required for prepayment in full $ 30,000,000          
Percentage of prepayment premium during second year 14.00%          
Percentage of prepayment premium during third year 7.00%          
Debt instrument, term 4 years          
Percentage of prepayment premium in shares of common stock 10.00%          
Gain (Loss) on Extinguishment of Debt $ 30,000,000          
Debt issuance costs 23,800,000          
Amortization of issuance discount       $ 300,000    
Repurchase of debt instrument 50,000,000          
Gain on debt extinguishment 30,000,000          
Unrestricted cash and cash equivalents required to maintain under covenant 15,000,000          
Capitalized issuance costs $ 3,100,000          
Term Loan Facility [Member] | Commitment Letter [Member] | Senior Secured Term Loan [Member]            
Debt Instrument [Line Items]            
Common stock, par value | $ / shares $ 0.001          
Term Loan Facility [Member] | Credit Parties [Member] | Senior Secured Term Loan [Member]            
Debt Instrument [Line Items]            
Debt instrument, minimum net cash proceeds required for mandatory prepayments $ 10,000,000          
Term Loan Facility [Member] | Lenders [Member]            
Debt Instrument [Line Items]            
Common stock, par value | $ / shares $ 0.001          
Term Loan Facility [Member] | Lenders [Member] | Commitment Letter [Member]            
Debt Instrument [Line Items]            
Debt Instrument, maturity date Dec. 12, 2028          
Warrant exercise price | $ / shares $ 2.576          
Term Loan Facility [Member] | Lenders [Member] | Commitment Letter [Member] | Senior Secured Term Loan [Member]            
Debt Instrument [Line Items]            
Warrant exercise price | $ / shares $ 0.001          
Term Loan Facility [Member] | Lenders [Member] | Minimum [Member]            
Debt Instrument [Line Items]            
Shares of common stock purchased for issuance of warrants | shares 3,008,540          
Term Loan Facility [Member] | Lenders [Member] | Minimum [Member] | Commitment Letter [Member] | Senior Secured Term Loan [Member]            
Debt Instrument [Line Items]            
Shares of common stock purchased for issuance of warrants | shares 3,008,540          
Term Loan Facility [Member] | SOFR [Member] | Senior Secured Term Loan [Member]            
Debt Instrument [Line Items]            
Debt instrument, interest rate 8.50%          
Debt Instrument Floor Interest Rate 3.00%          
Alterna Capital Solutions, LLC | ACS Credit Facility | Credit Agreement            
Debt Instrument [Line Items]            
Credit agreement term   3 years        
Maximum borrowing capacity   $ 30,000,000        
Line of credit facility collateral       domestic receivables and other assets as determined by ACS.    
Credit facility interest rate description       The ACS Credit Facility bears interest at the greater of Prime rate plus 1% or 9.5%, and minimum annual interest of $250 if no funds are drawn under the ACS Credit Facility in a given year.    
Interest rate   9.50%        
Minimum annual interest amount on line of credit   $ 250,000        
Early termination penalties       $ 0    
Alterna Capital Solutions, LLC | ACS Credit Facility | Credit Agreement | Prime Rate [Member]            
Debt Instrument [Line Items]            
Interest rate   1.00%        
2022 Repurchase Transaction [Member] | 1.75% Convertible Senior Notes Due 2026 [Member]            
Debt Instrument [Line Items]            
Unwinding of capped calls related to convertible notes repurchase         $ 276,000  
2022 Repurchase Transaction [Member] | 65 % Convertible Notes [Member]            
Debt Instrument [Line Items]            
Debt instrument, interest rate         65.00%  
Repurchase of debt instrument         $ 60,000,000  
2023 Repurchase Transaction [Member]            
Debt Instrument [Line Items]            
Repurchase of debt instrument       $ 50,000,000    
2023 Repurchase Transaction [Member] | Seventy Five Persentage Convertible Notes [Member]            
Debt Instrument [Line Items]            
Debt instrument, interest rate       75.00%