v3.24.2.u1
Earnings Per Share - Dilutive Potential Common Shares (Details) - USD ($)
1 Months Ended 3 Months Ended 6 Months Ended
Mar. 12, 2024
Mar. 31, 2024
Jun. 30, 2024
Jun. 30, 2023
Jun. 30, 2024
Jun. 30, 2023
May 31, 2024
Mar. 21, 2024
Mar. 20, 2024
Dec. 31, 2023
Mar. 31, 2023
Aug. 24, 2022
May 31, 2020
May 29, 2020
May 18, 2020
Jul. 20, 2017
Apr. 04, 2017
Earnings Per Share                                  
Number of dilutive potential shares of common stock         175,347,759 157,083,252                      
Options granted     7,107,625 6,782,043 7,420,625 6,876,593                      
Shares of common stock that can be purchased from warrants issued (in shares)             3,461,371                    
Interest rate (as a percent)     7.00%   7.00%                        
3.75% Convertible Senior Notes                                  
Earnings Per Share                                  
Amount of debt converted $ 138,800,000 $ 138,800,000                              
Interest rate (as a percent) 3.75% 3.75% 3.75%   3.75%     3.75% 3.75%   3.75%   3.75% 3.75% 3.75%    
Principal amount     $ 58,462,000   $ 58,462,000     $ 58,500,000   $ 197,278,000     $ 212,500,000 $ 12,500,000 $ 200,000,000.0    
Conversion of notes through common stock issuance (in shares)     0 0 0 0                      
7.0% Convertible Senior Note                                  
Earnings Per Share                                  
Amount of debt converted     $ 0 $ 0 $ 0 $ 0                      
Interest rate (as a percent) 7.00% 7.00% 7.00%   7.00%       7.00%                
Principal amount $ 140,400,000 $ 140,400,000 $ 140,396,000   $ 140,396,000       $ 140,400,000                
Restricted stock and restricted stock units outstanding                                  
Earnings Per Share                                  
Number of restricted shares granted during period         1,054,057                        
2022 Amazon transaction agreement                                  
Earnings Per Share                                  
Shares of common stock that can be purchased from warrants issued (in shares)                       16,000,000          
Number of warrants exercised to date     0 0 0 0                      
2017 Amazon Transaction Agreement                                  
Earnings Per Share                                  
Shares of common stock that can be purchased from warrants issued (in shares)                                 55,286,696
Number of warrants exercised to date     34,917,912 34,917,912 34,917,912 34,917,912                      
Warrants issued with the Walmart Stores, Inc transaction agreement                                  
Earnings Per Share                                  
Shares of common stock that can be purchased from warrants issued (in shares)                               55,286,696  
Number of warrants exercised to date     13,094,217 13,094,217 13,094,217 13,094,217                      
Warrant issued with Giner Inc earn out settlement agreement                                  
Earnings Per Share                                  
Number of warrants exercised to date     0   0                        
Employee Stock Option                                  
Earnings Per Share                                  
Number of dilutive potential shares of common stock         42,380,705 33,821,392                      
Restricted stock and restricted stock units outstanding                                  
Earnings Per Share                                  
Number of dilutive potential shares of common stock         6,282,815 5,529,831                      
Number of restricted shares granted during period     1,037,057 294,143 1,054,057 388,693                      
Common stock warrants                                  
Earnings Per Share                                  
Number of dilutive potential shares of common stock         82,022,634 78,561,263                      
Convertible Senior Notes                                  
Earnings Per Share                                  
Number of dilutive potential shares of common stock         44,661,605 39,170,766