1function t431_init(t){var e=document.querySelector("#rec"+t+" .t431 .t431__table");if(e){var r=document.querySelector("#rec"+t+" .t431 .t431__data-part1"),n=document.querySelector("#rec"+t+" .t431 .t431__data-part2"),a=t431__escapeHTML(r&&r.innerHTML||""),l=t431__escapeHTML(n&&n.innerHTML||""),c=e.getAttribute("data-table-width"),i=e.getAttribute("data-target-blank"),o=t431_parseData(a),u=t431_parseData(l),_=t431_parseData(c),s=t431__findMaxRowLengthInTable(o,u),y=t431__setColumnsWidth(_,s,t),f="";o&&(f+=t431__generateTable(o,"th",i,y,s,t)),u&&(f+=t431__generateTable(u,"td",i,y,s,t)),e.insertAdjacentHTML("beforeend",f)}}function t431__findMaxRowLengthInTable(t,e){var r=0,n=0;return t&&(r=t431__findMaxRowLengInArray(t)),e&&(n=t431__findMaxRowLengInArray(e)),n>r?n:r}function t431__escapeHTML(t){var e=t.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/ /g," "),r="",n="";["b","i","u","ul","li","ol","br","img","s","sub","sup","span","hr","pre","code","mark","strong","small"].forEach((function(t){n+=":not("+t+")"}));var a=["alt","class","title","id","src","style","width","height","data-replace-key"],l=function t(e){var r=document.implementation.createHTMLDocument("fake");return r.body.innerHTML=e,r.body.childNodes},c;c=l(e)?l(e):[];for(var i=0;i<c.length;i++){var o=c[i];if(o!==n)if(3!==o.nodeType&&8!==o.nodeType){var u=document.createElement(o.tagName);a.forEach((function(t){null!==o.getAttribute(t)&&u.setAttribute(t,o.getAttribute(t).replace(/javascript:/gi,""))})),u.textContent=o.textContent,r+=u.outerHTML}else r+=o.textContent}return r}function t431__findMaxRowLengInArray(t){for(var e=0,r=0;r<t.length;r++)t[r].length>e&&(e=t[r].length);return e}function t431__setColumnsWidth(t,e,r){if(t)return t[0];var n=document.querySelector("#rec"+r+" .t431 .t-container .t-col"),a;return parseFloat(getComputedStyle(n,null).width.replace("px",""))/e+"px"}function t431__generateTable(t,e,r,n,a,l){var c,i=document.querySelector("#rec"+l+" .t431__table-wrapp …Длинные строки сокращены. Полная версия доступна по ссылке «Полный текст».