v3.22.2.2
CONVERTIBLE SENIOR NOTES, TERM LOAN AND CAPPED CALLS - 2024 Notes and Capped Call (Details)
$ / shares in Units, shares in Millions
1 Months Ended 6 Months Ended
Dec. 31, 2021
USD ($)
Nov. 30, 2019
USD ($)
Feb. 28, 2019
USD ($)
d
$ / shares
shares
Sep. 30, 2022
USD ($)
Sep. 30, 2021
USD ($)
Aug. 10, 2022
USD ($)
Apr. 01, 2022
USD ($)
Mar. 31, 2022
USD ($)
Debt Instrument [Line Items]                
Net proceeds from term loan       $ 232,861,000 $ 0      
Accumulated deficit       757,448,000       $ 766,438,000
Additional paid-in capital       (867,063,000)       (956,599,000)
Convertible Debt | Accounting Standards Update 2020-06                
Debt Instrument [Line Items]                
Accumulated deficit             $ 46,700,000  
Additional paid-in capital             92,800,000  
Convertible senior notes             $ 46,200,000  
Convertible Debt | Convertible Senior Notes 2024                
Debt Instrument [Line Items]                
Debt instrument, face value     $ 287,500,000 $ 90,165,000   $ 403,800,000   $ 500,000,000
Debt instrument, interest rate     0.50%          
Net proceeds from term loan     $ 245,800,000          
Debt instrument, convertible, conversion ratio     0.0389484          
Common stock, par value per share (in dollars per share) | $ / shares     $ 0.001          
Debt instrument, convertible, conversion price (in dollars per share) | $ / shares     $ 25.68          
Debt instrument, convertible, threshold trading days | d     20          
Debt instrument, convertible, threshold consecutive trading days | d     30          
Debt instrument, convertible, threshold percentage of stock price trigger     130.00%          
Debt instrument, convertible, measurement period | d     5          
Debt instrument, convertible, threshold consecutive trading days preceding measurement period | d     10          
Debt instrument, threshold percentage of sales price per share     98.00%          
Debt instrument, redemption price, percentage     100.00%          
Unamortized debt discount and issuance costs       16 months        
Debt instrument, strike price per share (in dollars per share) | $ / shares     $ 25.68          
Debt instrument, initial cap price per share (in dollars per share) | $ / shares     $ 39.50          
Convertible Debt | Convertible Senior Notes 2024 | Call Option                
Debt Instrument [Line Items]                
Option indexed to issuer's equity, indexed shares (in shares) | shares     14.1          
Convertible Debt | First Additional Notes                
Debt Instrument [Line Items]                
Debt instrument, face value   $ 75,000,000            
Debt instrument, interest rate   0.50%            
Net proceeds from term loan   $ 64,600,000            
Convertible Debt | Second Additional Notes                
Debt Instrument [Line Items]                
Debt instrument, face value $ 137,500,000              
Debt instrument, interest rate 0.50%              
Net proceeds from term loan $ 134,300,000              
Convertible Debt | Aggregate Notes                
Debt Instrument [Line Items]                
Debt instrument, face value $ 500,000,000.0