Design and implement an autocomplete system from the frontend perspective. The UI is already provided; you need to write the data-fetching logic. Requirements include: (1) retry logic for failed requests, (2) debounce to limit request frequency as the user types, (3) 'latest-only' semantics so that only the response to the…