Making JS calls offline [closed]

I have a minified JS file which is available at https://cdn.jsdelivr.net/npm/@lottiefiles/[email protected]/dist/lottie-player.min.js (known vulnerable) I would like to make all API calls made by the file offline so it should run even if it is offline. What is the most easiest way of doing that? I will be running it on a system with no internet access. I know I have to make changes to domain name to host everything on local. But is there a quick solution?