Looks like you tried to translate the code through chatgpt? Tell it to only translate the comments instead of the whole code.
Or use my english version above 🙂
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue