Quarterly report pursuant to Section 13 or 15(d)

Long-term Debt, Net - Narrative (Details)

v3.22.2.2
Long-term Debt, Net - Narrative (Details)
1 Months Ended
Dec. 15, 2022
USD ($)
Oct. 31, 2022
USD ($)
Apr. 22, 2022
USD ($)
lender
$ / shares
shares
Mar. 14, 2022
USD ($)
day
unaffiliated_lender
$ / shares
Aug. 31, 2021
USD ($)
$ / shares
shares
Aug. 31, 2022
USD ($)
Apr. 30, 2022
USD ($)
Apr. 25, 2022
$ / shares
shares
Mar. 08, 2022
USD ($)
Oct. 31, 2021
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    
Civil monetary penalty   12,000                  
Restricted cash   6,423,525         $ 6,433,397     $ 1,433,397  
Deferred financing costs   331,423         369,902        
Collateral Pledged, State of Arizona                      
Debt Instrument [Line Items]                      
Restricted cash   $ 5,000,000         5,000,000        
Surety Bond | Collateral Pledged, State of Arizona | Subsequent Event                      
Debt Instrument [Line Items]                      
Amount of restricted cash moved to unrestricted $ 1,500,000                    
Warrant                      
Debt Instrument [Line Items]                      
Vesting period of warrant         5 years     5 years      
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       5 years              
Interest rate of debt (as a percent)   12.00%   12.00%              
2022 Revolving Credit Facility | Revolving Credit Facility                      
Debt Instrument [Line Items]                      
Line of credit, outstanding balance   $ 0                  
Deferred financing costs   59,000                  
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]                      
Debt instrument, term       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              
Replacement period       6 months              
Additional commitment fee (as a percent)       1.00%              
Revolving Credit Facility                      
Debt Instrument [Line Items]                      
Restricted cash     $ 5,000,000                
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   59,000         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        
Extension period       1 year              
Deferred financing costs   $ 46,233                  
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 price of warrants (in dollars per share) | $ / shares         $ 5.85            
Fair value of warrants outstanding         $ 137,500