function tma__addLang(){var e=tma__getProfileObjFromLS(),t="",t=(e.lang||(window.tildaMembers.settingStyles&&window.tildaMembers.settingStyles.projectlang?window.tildaMembers.settingStyles.projectlang:(navigator.language||navigator.userLanguage).substring(0,2))).toUpperCase();["RU","DE","ES","PT","UK","LV"].includes(t)||(t="EN"),window.tildaMembers.userLang=t,window.lang||(window.lang=t)}function tma__onFuncLoad(i,o,n){function a(e){return"function"==typeof window[e]||"object"==typeof window[e]}var r,s;a(i)?o():(r=Date.now(),s=new Error(i+" is undefined"),setTimeout(function e(){var t=Date.now();if(a(i))o();else{if("complete"===document.readyState&&15e3'),t=document.getElementById("app")),t.insertAdjacentHTML("beforeend",'
'),document.querySelector("."+e))}function tma__showNetworkError(){var e="",e="RU"===window.tildaMembers.userLang?"Произошла ошибка при передаче запроса.\nПожалуйста, проверьте Ваше соединение с Интернетом.":"An error occurred while sending the request.\nPlease check your internet connection.";alert(e)}function tma__showRequestError(e,t){404===e?tma__drawPageNotFound():tma__drawPageError(e,t),tma__showDocumentReady()}function tma__drawPageError(e,t){var i=document.getElementById("app")||document.getElementById("allrecords"),o="",o=(o+='
')+('
Server error: '+e+"
")+'
Sorry, looks like we have internal error on server.
';t&&(o+='
'+t+"
"),o+='
Please, wait a minute, reload the page and try again.
If you see this message several times, please write us: team@tilda.cc.
',i&&(i.innerHTML=o)}function tma__drawPageNotFound(){var e=document.getElementById("app")||document.getElementById("allrecords");e&&(e.innerHTML='
Error: 404. Page not found
Sorry, looks like page not found.
')}function tma__serializeArray(e){for(var t={},i=e.elements,o=0;o-1!==t.indexOf("members.tilda")&&(window.tildaMembers.endpoint=tma__getMembersEndpoint(!0),tma__request(o,n,a,r,e),!0),i=/^\/api\/get[a-z]+\/$/.test(o);s.open("POST",t+o,!0),e||s.setRequestHeader("Content-Type","application/json; charset=UTF-8"),s.onload=function(){if(200<=s.status&&s.status<400)r&&r(s.response),tma__enabledSubmit(a);else if(!(500<=s.status||408<=s.status||410<=s.status||429<=s.status||"timeout"===s.statusText||0===s.status&&4===s.readyState&&""===s.statusText)||!l()){for(var e=["login","recoverpassword","registration","getprofile","editprofile","editpassword"],t=!1,i=0;iBigInt("9223372036854775807")))&&(s.input=r,s.type="novalid")):"password"===r||"newpassword"===r?(l=72,d=5,s.field="password"):-1!==r.indexOf("code")&&(d=l=1),!s.type&&a.lengthl&&(s.input=r,s.type="maxlength"),s.input||s.type)&&i.push(s)}return i}function tma__drawPopup(e){var t=e.main||document.getElementById("allrecords"),i=(t.insertAdjacentHTML("beforeend",tma__getPopupHtml(e)),t.querySelector("#"+e.id)),t=i.querySelector(".tlk-popup__close");if(document.body.style.overflowY="hidden",i.addEventListener("mousedown",function(e){(e.target.classList.contains("tlk-popup__wrap")||e.target.classList.contains("tlk-popup"))&&tma__closePopup(i)}),t.addEventListener("click",function(){tma__closePopup(i)}),e.closeBtns)for(var o=0;o')+'
'+''+('
'+e.content+"
")+"
"+""}function tma__closePopup(e){document.querySelector(".tlk-popup")===e&&document.body.removeAttribute("style"),e.remove()}function tma__disabledSubmit(e){var t;e&&(e.disabled=!0,t=e.querySelector(".tlk-loadicon"))&&(e.style.color="transparent",t.classList.add("tlk-loadicon_show"))}function tma__enabledSubmit(e){var t;e&&(e.disabled=!1,t=e.querySelector(".tlk-loadicon"))&&(t.classList.remove("tlk-loadicon_show"),e.removeAttribute("style"))}function tma__getformatDate(e,t){if(!e)return"";window.tildaMembers.userLang||tma__addLang();var i,t=(t=t)||("RU"===window.tildaMembers.userLang?"d.m.y":"mon d, y"),o=("string"==typeof e&&-1!==e.indexOf("-")&&(e=e.replace(new RegExp("-","g"),"/")),(e=new Date(e)).getFullYear()),n=(n=e.getMonth()+1)<10?"0"+n:n,a=(a=e.getDate())<10?"0"+a:a,r=(r=e.getHours())<10?"0"+r:r,e=(e=e.getMinutes())<10?"0"+e:e,s="";return"d.m.y"===t?s=a+"."+n+"."+o:"mon d, y"===t?(n=parseInt(n,10)-1,i={RU:["Янв.","Февр.","Март","Апр.","Май","Июнь","Июль","Авг.","Сент.","Окт.","Нояб.","Дек."],EN:["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."],DE:["Jan.","Feb.","März","Apr.","Mai","Jun.","Jul.","Aug.","Sept.","Okt.","Nov.","Dez."],ES:["Ene.","Feb.","Mar","Abr","May","Jun.","Jul.","Ago.","Sep.","Oct.","Nov.","Dic."],PT:["Jan.","Fev.","Mar","Abr","Mai","Jun","Jul","Ago.","Set.","Out.","Nov.","Dez."],UK:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],LV:["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec"]},s=window.tildaMembers.userLang in i?i[window.tildaMembers.userLang][n]+" "+a+", "+o:i.EN[n]+" "+a+", "+o):"h:m"===t&&(s=r+":"+e),s}function tma__getValueParamURL(e,t){e=new URLSearchParams(e).get(t);return null===e?"":e}function tma__getSafeRedirectUrl(e){if("string"!=typeof e||!e||/[\u0000-\u001f\s\\]/.test(e))return"";var t="/"===e.charAt(0)&&"/"!==e.charAt(1),i=/^https?:\/\//i.test(e);if(!t&&!i)return tma__getLegacyBareRedirectUrl(e);let o;try{o=new URL(e,window.location.origin)}catch(e){return""}t=o.pathname,i="/members"===t||0===t.indexOf("/members/"),e="/tdocs"===t||0===t.indexOf("/tdocs/");return o.username||o.password||"http:"!==o.protocol&&"https:"!==o.protocol||o.host!==window.location.host||!i&&!e||/%(?:2f|5c)/i.test(t)?"":t+o.search+o.hash}function tma__getLegacyBareRedirectUrl(e){if("/"===e.charAt(0)||-1!==e.indexOf("//")||/^[a-z][a-z0-9+.-]*:/i.test(e)||/["'<>]/.test(e)||/%(?:2f|5c)/i.test(e))return"";e=e.replace(/^\/+/,"");if(!e)return"";var t=e.split(/[?#]/)[0].split("/");for(let e=0;e]/.test(e)||/%(?:2f|5c)/i.test(e))return"";if(/^[a-z][a-z0-9+.-]*:/i.test(e)||-1!==e.indexOf("//"))return"";t=e.replace(/^\/+/,"");if(!t)return"";var i=t.split("/");for(let e=0;e'+e+"")}function tma__createFontFace(e,t,i,o,n){var a="",a=(a=(a+="@font-face {")+('font-family: "'+e+'";')+(' src: url("'+t+'") format("'+i+'");'))+(" font-weight: "+o+";")+" font-style: normal;";return n&&(a+=" font-display: swap;"),a+="}"}function tma__waitForVariable(e,t,i){var o=setInterval(function(){window[e]&&(clearInterval(o),t)&&t()},i)}function tma__showDocumentReady(t){var i=setInterval(function(){var e;window.tildaMembers.loadingFiles&&0===window.tildaMembers.loadingFiles.length&&((e=document.getElementById("tlk-loader"))&&(e.style.opacity=0,setTimeout(function(){document.body.style.overflowY=null,document.body.style.paddingRight=null,e.remove()},200)),t&&t(),clearInterval(i))},300)}function tma__showDocumentLoader(){var e="",t=((e+='
')+'
'+""+""+""+"
"+"
",document.body.insertAdjacentHTML("beforeend",'
'),0),i=setInterval(function(){300===(t+=1)?clearInterval(i):document.getElementById("app")&&(document.body.scrollHeight>window.innerHeight&&(document.body.style.paddingRight=Math.abs(window.innerWidth-document.documentElement.clientWidth)+"px",document.body.style.overflowY="hidden"),clearInterval(i))},100)}function tma__debounce(o,n,a){var r;return function(){var e=this,t=arguments,i=a&&!r;clearTimeout(r),r=setTimeout(function(){r=null,a||o.apply(e,t)},n),i&&o.apply(e,t)}}function tma__hideText(e){var t=e.split("@");return 2!==t.length?e:t[0].substring(0,3)+"***@***."+t[1].split(".").pop()}function tma__drawTooltip(e){var t,i,o,n=e.element;n&&(t={text:n.getAttribute("data-tooltip-text")||"",tooltipClass:"",position:"top",gap:10,maxWidth:300,timeout:500,zIndex:1e3,insertElement:document.body},i=Object.assign(t,e),n.addEventListener("mouseenter",function(){o=setTimeout(function(){var e=tma__getTooltipHtml(i.text,i.tooltipClass),t=document.body,t=((t=i.insertElement?i.insertElement:t).insertAdjacentHTML("beforeend",e),document.querySelector(".tlk-tooltip"));t&&(i.maxWidth&&(t.style.maxWidth=i.maxWidth+"px"),e=tma__getTooltipPosition(i,t),t.style.top=e.top,t.style.left=e.left,t.style.zIndex=i.zIndex)},i.timeout)}),n.addEventListener("mouseleave",function(){var e=document.querySelector(".tlk-tooltip");clearTimeout(o),e&&e.remove()}))}function tma__getTooltipHtml(e,t){var i="";return(i+='
')+('
'+e+"
")+"
"}function tma__getTooltipPosition(e,t){var i=e.element.getBoundingClientRect(),t=t.getBoundingClientRect(),o=i.y+window.pageYOffset,n=i.x+window.pageXOffset,n="top"===e.position?(o=o-t.height-e.gap,n+i.width/2-t.width/2):"bottom"===e.position?(o=o+i.height+e.gap,n+i.width/2-t.width/2):"left"===e.position?(o=o+i.height/2-t.height/2,i.left-t.width-e.gap):(o=o+i.height/2-t.height/2,n+i.width+e.gap);return{top:(o=Math.abs(o))+"px",left:(n=Math.abs(n))+"px"}}function tma__escapeHTML(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return e.replace(/[&<>"']/g,function(e){return t[e]})}function tma__decodeHTML(e){var t={"&":"&","<":"<",">":">",""":'"',"'":"'"};return e.replace(/&|<|>|"|'/g,function(e){return t[e]})}function tma__getDeclinationlNumber(e,t){return t[4{tma__loadPhoneMask(),tma__onFuncLoad("t_form_phonemask__validatePhone",()=>{var e=t_form_phonemask__validatePhone(i);t(e)})})}function tma__sign__isSimplifiedVersion(){return new URLSearchParams(window.location.search).has("simplified","y")}function tma__addGlobalStyles(){tma__loadCSS(window.location.origin+"/tilda-global-styles.min.css")}function tma__initMembers(){var e=!!tma__getProfileObjFromLS();document.getElementById("allrecords")&&(window.tildaMembers.endpoint=tma__getMembersEndpoint()),"function"==typeof tma__handleRedirectUrl&&tma__handleRedirectUrl(),window.tildaMembers.is_init_members=!0,tma__showDocumentLoader(),(e?tma__routeAuthorized:tma__routeNotAuthorized)()}function tma__routeAuthorized(){var e,t=tma__getPath();"members"!==t[0]||t[1]&&"login"!==t[1]&&"signup"!==t[1]&&"recover-password"!==t[1]&&"courses"!==t[1]&&"orderlist"!==t[1]&&"addresses"!==t[1]&&"purchased-products"!==t[1]&&"profile"!==t[1]?(e=tma__getSafeRedirectUrl(tma__getValueParamURL(window.location.search,"redirecturl")))?document.location.replace(e):(tma__loadFiles(["resources_page","profile"]),tma__onFuncLoad("tma__resources__initPage",function(){tma__resources__initPage()})):"login"===t[1]||"signup"===t[1]||"recover-password"===t[1]?(tma__loadFiles(["sign"]),tma__onFuncLoad("tma__sign__init",function(){tma__sign__init(t[1])})):"courses"===t[1]?tma__getObjProfile(function(){tma__getObjStyle(function(){tma__loadFiles(["userbar","courses"]),tma__onFuncLoad("tma__courses__init",function(){tma__courses__init(t)})})}):"orderlist"===t[1]?tma__getObjProfile(function(){window.tildaMembers.is_init_store?tma__getObjStyle(function(){tma__loadFiles(["userbar","orders"]);tma__onAllFuncLoad(["tmst__fetchData","tmst__addHeaderFooter","tmst__getDictObj","tmst__orders__initPage","tmst__createBreadcrumbsEl"],function(){tmst__orders__initPage()})}):document.location.replace("/members/")}):"purchased-products"===t[1]?tma__getObjProfile(function(){window.tildaMembers.is_init_store?tma__getObjStyle(function(){tma__loadFiles(["userbar","purchased"]);tma__onAllFuncLoad(["tmst__fetchData","tmst__getDictObj","tmst__createBreadcrumbsEl","tmst__purchased__initPage"],function(){tmst__purchased__initPage()})}):document.location.replace("/members/")}):"addresses"===t[1]?tma__getObjProfile(function(){window.tildaMembers.is_init_store?tma__getObjStyle(function(){tma__loadFiles(["userbar","addresses"]);tma__onAllFuncLoad(["tmst__fetchData","tmst__getDictObj","tmst__fetchBuyerInfo","tmst__addresses__initPage","tmst__createBreadcrumbsEl"],function(){tmst__addresses__initPage()})}):document.location.replace("/members/")}):"profile"===t[1]?tma__getObjProfile(function(){tma__getObjStyle(function(){tma__loadFiles(["userbar","profile"]);tma__onAllFuncLoad(["tmst__fetchData","tmst__getDictObj","tmst__addHeaderFooter","tmst_profile__initPage","tmst__hexToRgb","tmst__createBreadcrumbsEl"],function(){tmst_profile__initPage()})})}):tma__getObjProfile(function(){tma__getObjStyle(function(){tma__loadFiles(["userbar","store_main"]);tma__onAllFuncLoad(["tmst__fetchData","tmst__getDictObj","tmst__main__initPage","tmst__createBreadcrumbsEl"],function(){tmst__main__initPage(),tma__showDocumentReady()})})})}function tma__routeNotAuthorized(){var e=tma__getPath();"members"!==e[0]||!e[1]||"login"!==e[1]&&"signup"!==e[1]&&"recover-password"!==e[1]?(1===e.length&&""!==e[0]&&"members"!==e[0]||1