erySelector("#preparingTiming").innerHTML = "Preparing: " + (t2 - t1) + " ms";

      document.querySelector("#doGrid").disabled = true;
      // - important to prevent starting new threads of calculations while processing is not finished
      const report = await sidedAdPairsResolve(segments, pairs, brief, "error", "timing", "progressBar");
      document.querySelector("#doGrid").disabled = false;

      document.querySelector("#results").value = report;
    }

    document.querySelector("#doGrid").onclic