.map(({ key, rows }) => ({ key, rows: rows.map(([page, link]) => link) }))
.groupBy(p => p[0])
.groupBy(([link, file]) => link)