static JPanel hvgrid_distribute(L components, int gap) {
if (empty(components)) ret jpanel();
int cols = iceil(sqrt(l(components)));
ret hvgrid(listToChunks(cols, components), gap);
}
static JPanel hvgrid_distribute(L components) {
ret hvgrid_distribute(components, 0);
}