You are given a grid of rectangular blocks (e.g., a 3×3 HTML grid) and an empty class skeleton. Implement a chainable API for selecting and manipulating those blocks. The API must support at minimum: 1. find(idx) / selectById(id) — locate a specific block by index or ID. 2. color(newColor) —…