 = 'errors';

        const CODE_PROTO_ID = 'code-proto';
        const CODE_GO_ID = 'code-go';


        const servicePromise = new Promise((resolve) => {
            window['xtoproto-service-available'] = resolve;
        });
        document.addEventListener("DOMContentLoaded", onLoad);

        function getVal(id) {
            return document.getElementById(id).value;
        }
        function setValIfEmpty(id, value) {
            const elem = document.getElementById(id);
            if (!elem.value)