Quarterly report pursuant to Section 13 or 15(d)

Long-term Debt, Net - Narrative (Details)

v3.23.1
Long-term Debt, Net - Narrative (Details)
1 Months Ended
Oct. 31, 2022
USD ($)
Apr. 22, 2022
USD ($)
lender
$ / shares
shares
Mar. 14, 2022
USD ($)
unaffiliated_lender
day
$ / shares
Aug. 31, 2021
USD ($)
$ / shares
shares
Dec. 31, 2022
USD ($)
Aug. 31, 2022
USD ($)
May 12, 2023
USD ($)
Jan. 31, 2023
USD ($)
Apr. 30, 2022
USD ($)
Mar. 08, 2022
USD ($)
Jan. 31, 2022
USD ($)
Nov. 05, 2018
USD ($)
Debt Instrument [Line Items]                        
Number of unaffiliated lenders | unaffiliated_lender     2                  
Letter of credit or surety bond posted $ 5,500,000 $ 18,300,000               $ 18,300,000    
Restricted cash               $ 4,923,525 $ 6,433,397   $ 1,433,397  
Deferred financing costs               $ 155,041 369,902      
Civil monetary penalty $ 12,000                      
Surety Bond | Collateral Pledged, State of Arizona                        
Debt Instrument [Line Items]                        
Amount of restricted cash moved to unrestricted         $ 1,500,000              
Revolving Credit Facility                        
Debt Instrument [Line Items]                        
Restricted cash   $ 5,000,000                    
2022 Convertible Notes                        
Debt Instrument [Line Items]                        
Debt instrument, face amount of loan     $ 10,000,000                  
Payment for lender legal fees     $ 135,562     $ 60,833            
Amortization period of deferred financing cost debt discount     1 year                  
2022 Convertible Notes | Convertible Debt                        
Debt Instrument [Line Items]                        
Debt instrument, face amount of loan     $ 5,000,000                  
2022 Convertible Notes | Convertible Notes Payable                        
Debt Instrument [Line Items]                        
Conversion price (in dollars per share) | $ / shares     $ 1.00                  
Average closing price of common stock (in dollars per share) | $ / shares     $ 2.00                  
Consecutive trading day period | day     30                  
Debt instrument, term (in years)     5 years                  
Interest rate of debt (as a percent)               12.00%        
2022 Convertible Notes | Convertible Notes Payable | Subsequent Event                        
Debt Instrument [Line Items]                        
Interest rate of debt (as a percent)             14.00%          
2022 Revolving Credit Facility | Revolving Credit Facility                        
Debt Instrument [Line Items]                        
Line of credit, outstanding balance               $ 0        
Deferred financing costs               29,500        
2022 Revolving Credit Facility | Revolving Credit Facility | Warrant                        
Debt Instrument [Line Items]                        
Number of securities called by warrants or rights (in shares) | shares   100,000                    
Exercise price of warrants (in dollars per share) | $ / shares   $ 1.00                    
2022 Revolving Credit Facility | Line of Credit | Revolving Credit Facility                        
Debt Instrument [Line Items]                        
Number of unaffiliated lenders | unaffiliated_lender     2                  
Debt instrument, term (in years)     1 year                  
Interest rate of debt (as a percent)     12.00%                  
Line of credit, maximum borrowing capacity     $ 20,000,000                  
Commitment fee (as a percent)     1.00%                  
Commitment fee     $ 200,000                  
Additional commitment fee (as a percent)     1.00%                  
Replacement period     6 months                  
Intercreditor Agreement                        
Debt Instrument [Line Items]                        
Number of lenders | lender   2                    
Intercreditor Agreement | Warrant                        
Debt Instrument [Line Items]                        
Number of securities called by warrants or rights (in shares) | shares   100,000                    
Exercise period of warrant   5 years                    
Exercise price of warrants (in dollars per share) | $ / shares   $ 1.00                    
Fair value of warrants outstanding   $ 118,000                    
Deferred financing costs               29,500 118,000      
2018 Credit Facility Agreement | Revolving Credit Facility                        
Debt Instrument [Line Items]                        
Line of credit, maximum borrowing capacity     $ 5,000,000                 $ 5,000,000
Line of credit, outstanding balance               5,000,000 $ 5,000,000      
Deferred financing costs               $ 35,065        
Debt instrument, extension term       1 year                
Proceeds from lines of credit       $ 5,000,000                
2018 Credit Facility Agreement | Revolving Credit Facility | Minimum                        
Debt Instrument [Line Items]                        
Interest rate of debt (as a percent)                       12.00%
2018 Credit Facility Agreement | Revolving Credit Facility | Maximum                        
Debt Instrument [Line Items]                        
Interest rate of debt (as a percent)     14.00%                  
2018 Credit Facility Agreement | Revolving Credit Facility | Warrant                        
Debt Instrument [Line Items]                        
Number of securities called by warrants or rights (in shares) | shares       50,000                
Exercise period of warrant       5 years                
Exercise price of warrants (in dollars per share) | $ / shares       $ 5.85                
Fair value of warrants outstanding       $ 137,500                
2018 Credit Facility Agreement | Line of Credit | Revolving Credit Facility                        
Debt Instrument [Line Items]                        
Extension period     1 year                  
15% Senior Secured Note Due 2026 | Secured Debt | Subsequent Event                        
Debt Instrument [Line Items]                        
Debt instrument, face amount of loan             $ 12,400,000          
Interest rate of debt (as a percent)             15.00%