def merge_bboxes(bboxes: list):
    """
    Merge bounding boxes.

    :param bboxes: Bounding boxes to be merged.
    :return: Merged bounding box.
    """
    merge_bbox = {
        "x0": min([b['x0'] for b in bboxes]),
        "x1": max([b['x1'] for b in bboxes]),
        "y0": min([b['y0'] for b in bboxes]),
        "y1": max([b['y1'] for b in bboxes]),
        "top": min([b['top'] for b in bboxes]),
        "bottom": max([b['bottom'] for b in bboxes]),
        "page_index": bboxes[0]['page_index'],
    }

    return merge_bbox