Push blue button "Open" to start auto opening menu.

Auto mode of opening the menu - it should open with a delay of 1 second. Each subsequent submenu should also open with a delay of 1 second, until it reaches the last nesting.

Manual mode of opening the menu - it should save the history of open nesting. But when you switch menu should close history and open new menu.

Close button shoud close all submenus and menus with delay of 1 second.

Button "Stop" end auto opening or auto closing menu