${this.safeRender((crawl) =>
            crawl.finished
              ? html`
                  
                `
              : msg(
                  str`Running for ${RelativeDuration.humanize(
                    new Date().valueOf() -
                      new Date(`${crawl.started}Z`).valueOf()
                  )}`
                )
          )}
        
        ${this.safeRender((crawl) =>
          crawl.finished && crawl.type === "crawl"
            ? html`
                ${msg(
                  str`in ${RelativeDuration.humanize(
                    new Date(`${crawl.finished}Z`).valueOf() -
                      new Date(`${crawl.started}Z`).valueOf()
                  )}`
                )}
              
`
            : ""
        )}
      
 
      
        ${this.safeRender((crawl) => {
          if (crawl.finished) {
            return html`
              
            
`;
          }
          const pagesComplete = +(crawl.stats?.done || 0);
          const pagesFound = +(crawl.stats?.found || 0);
          return html` 
            ${pagesFound === 1
              ? msg(
                  str`${this.numberFormatter.format(
                    pagesComplete
                  )} / ${this.numberFormatter.format(pagesFound)} page`
                )
              : msg(
                  str`${this.numberFormatter.format(
                    pagesComplete
                  )} / ${this.numberFormatter.format(pagesFound)} pages`
                )}
          
`;
        })}
        ${this.safeRender((crawl) => {
          if (crawl.type === "upload") {
            // TODO add back once API supports page count
            return;
          }
          if (crawl.finished) {
            const pagesComplete = +(crawl.stats?.done || 0);
            return html`
              
                ${pagesComplete === 1
                  ? msg(str`${this.numberFormatter.format(pagesComplete)} page`)
                  : msg(
                      str`${this.numberFormatter.format(pagesComplete)} pages`
                    )}
              
            `;
          }
          return "";
        })}