If you are on Windows and want to avoid the "online" recovery method, reviews and community guides suggest these alternatives:
If you absolutely need an offline installer and only have a Windows machine, you have two main options: Use a macOS Virtual Machine opencore offline installer windows