XML 84 R45.htm IDEA: XBRL DOCUMENT v3.19.1
Significant accounting policies - Fair value of financial instruments (Details) - USD ($)
$ / shares in Units, $ in Thousands
12 Months Ended
Dec. 07, 2017
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2018
Nov. 30, 2017
Mar. 31, 2017
Jan. 31, 2017
Nov. 18, 2016
Jul. 31, 2016
Feb. 29, 2016
Jan. 29, 2016
Jan. 01, 2016
Fair value of financial instruments                        
Cash equivalents   $ 78,182   $ 42,608                
Note receivable       150                
Total   $ 78,182   42,758                
Assumptions to Determine the Fair Value                        
Probability of an Initial Public Offering     40.00%                  
Initial Public Offering                        
Assumptions to Determine the Fair Value                        
Volatility (in percentage) 46.00%                      
Probability of an Initial Public Offering 100.00%                      
Series A-2 Preferred Stock                        
Fair value of financial instruments                        
Warrants to purchase shares                       64,441
Series A-2 Preferred Stock | Initial Public Offering                        
Assumptions to Determine the Fair Value                        
Value of underlying liability $ 4.67                      
Series A-3 Preferred Stock                        
Fair value of financial instruments                        
Warrants to purchase shares   700,000         700,000 700,000   1,300,000   1,300,000
Series A-3 Preferred Stock | Initial Public Offering                        
Assumptions to Determine the Fair Value                        
Value of underlying liability 4.67                      
Series B Preferred Stock                        
Fair value of financial instruments                        
Warrants to purchase shares                 397,530     562,488
Series C Preferred Stock                        
Fair value of financial instruments                        
Warrants to purchase shares   111,114     31,283           57,810 226,733
Series C Preferred Stock | Initial Public Offering                        
Assumptions to Determine the Fair Value                        
Value of underlying liability 4.67                      
Series D Preferred Stock                        
Fair value of financial instruments                        
Warrants to purchase shares           38,828            
Series D Preferred Stock | Initial Public Offering                        
Assumptions to Determine the Fair Value                        
Value of underlying liability $ 4.67                      
Level 1                        
Fair value of financial instruments                        
Cash equivalents   $ 78,182   42,608                
Total   78,182   42,608                
Level 3                        
Fair value of financial instruments                        
Note receivable       150                
Total       $ 150                
Changes in preferred stock warrant liability measured at fair value                        
Balance at beginning   2,802 $ 5,547                  
Changes in fair value of warrants   90 307                  
Warrant exercise   (2,188) (5,258)                  
Conversion to warrants to purchase common stock in connection with IPO   (823)                    
Balance at ending     2,802                  
Level 3 | Debt facility                        
Changes in preferred stock warrant liability measured at fair value                        
Issuance of warrants   $ 119 128                  
Level 3 | Vendor                        
Changes in preferred stock warrant liability measured at fair value                        
Issuance of warrants     $ 2,078