var Notyf=function(){"use strict";var t,e=function(){return(e=Object.assign||function(t){for(var e,i=1,o=arguments.length;i")).replace(/&/g,"&");let s=document.getElementById("ratig-layer-"+e);s&&(s.innerHTML=o);let a=document.getElementById("vote-num-id-"+e);a&&(a.innerHTML=i.votenum)}}),HideLoading("")}function doCommentsRate(t,e){ShowLoading(""),ajaxSendJS(dle_root+"engine/ajax/ratingcomments.php","go_rate="+t+"&c_id="+e+"&skin="+dle_skin+"&user_hash="+dle_login_hash,function(t){let i=JSON.parse(t);if(i.success){var o=i.rating;o=(o=(o=o.replace(/</g,"<")).replace(/>/g,">")).replace(/&/g,"&");let s=document.getElementById("comments-ratig-layer-"+e);s&&(s.innerHTML=o);let a=document.getElementById("comments-vote-num-id-"+e);a&&(a.innerHTML=i.votenum)}}),HideLoading("")}function doAddComments(){var t=document.getElementById("dle-comments-form"),e=document.getElementById("dle-comments-form");if(t.post_id===undefined)return false;if("1"==dle_wysiwyg||"2"==dle_wysiwyg){"2"==dle_wysiwyg&&tinyMCE.triggerSave();var i="wysiwyg"}else i="";if(""==t.comments.value||""==t.name.value)return DLEalert(dle_req_field,dle_info),!1;var o=t.question_answer?t.question_answer.value:"",s=t.sec_code?t.sec_code.value:"",a="undefined"!=typeof grecaptcha?grecaptcha.getResponse():"",r=t.allow_subscribe&&1==t.allow_subscribe.checked?"1":"0",l=t.mail?t.mail.value:"";return""==e.comments.value||""==e.name.value?(notyf.error(dle_req_field),!1):(e.allow_subscribe&&1==e.allow_subscribe.checked&&(a=1),e.mail&&(n=e.mail.value),ShowLoading(""),ajaxSendJS(dle_root+"engine/ajax/addcomments.php","post_id="+t.post_id.value+"&comments="+t.comments.value+"&name="+t.name.value+"&mail="+l+"&editor_mode="+i+"&skin="+dle_skin+"&sec_code="+s+"&question_answer="+o+"&g_recaptcha_response="+a+"&allow_subscribe="+r+"&user_hash="+dle_login_hash,function(t){if(document.getElementById("dle-ajax-comments")){$("#dle-ajax-comments").html(t);let e=offset(document.getElementById("dle-ajax-comments"));window.scrollTo({top:e.top-100,behavior:"smooth"})}}),HideLoading(""),!1)}function isHistoryApiAvailable(){return!!(window.history&&history.pushState)}function offset(t){let e=t.getBoundingClientRect(),i=document.documentElement;return{top:e.top+window.pageYOffset-i.clientTop,left:e.left+window.pageXOffset-i.clientLeft}}function CommentsPage(t,e,i){return ShowLoading(""),ajaxSendJS(dle_root+"engine/ajax/comments.php?news_id="+e+"&cstart="+t,"skin="+dle_skin+"&user_hash="+dle_login_hash,function(o){let s=document.getElementById("dle-comm-link");isNaN(t)||isNaN(e)||!s||(s.removeEventListener("click",CommentsPage,!1),s.addEventListener("click",function(i){return CommentsPage(t,e),!1},!1));let a=document.getElementById("dle-comments-list"),r=offset(a);window.scrollTo({top:r.top-100,behavior:"smooth"});let l=JSON.parse(o);a.innerHTML=l.comments,document.getElementsByClassName("dle-comments-navigation")[0].innerHTML=l.navigation,isHistoryApiAvailable()&&window.history.pushState(null,null,i),HideLoading()}),!1}function dle_copy_quote(t){let e="";window.getSelection?e=window.getSelection():document.selection&&(e=document.selection.createRange().text),""!=e&&(e="[quote="+t+"]"+e+"[/quote]")}function AddComplaint(t,e){let i=`
Сообщить о проблеме с плеером
Внимание! У тебя включен блокировщик рекламы, именно он зачастую является источником ряда проблем, связанных с отображением или работоспособностью плеера и других важных элементов сайта.
Внеси наш сайт в список исключений и наверняка проблема решится сама по себе без нашей помощи! Если проблема не разрешилась, то мы поможем:
  • Плеер не отображается (только колесо загрузки либо сообщение)
  • Видео не запускается или черный экран после запуска
  • Звук и видео не совпадают
  • Ошибка в описании
  • Другое
`;$("body").prepend(i),$("body").on("click","#ps-overlay-wrap",function(i){"ps-content"==i.target.id||"ps-overlay-wrap"==i.target.id||"ps-close"==i.target.id?$("#ps-overlay-wrap").remove():"LI"==i.target.tagName&&ajaxSendJS(dle_root+"engine/ajax/complaint.php","id="+t+"&text="+$(i.target).data("issue_id")+"&action="+e+"&user_hash="+dle_login_hash,function(t){"ok"==t?notyf.success("Спасибо за Ваше обращение! Мы обязательно рассмотрим проблему с доступностью видео."):notyf.error(t),$("#ps-overlay-wrap").remove()})})}function fadeIn(t,e){t.style.opacity=0,t.style.display=e||"block",function e(){var i=parseFloat(t.style.opacity);(i+=.1)>1||(t.style.opacity=i,requestAnimationFrame(e))}()}function fadeOut(t){t.style.opacity=1,function e(){(t.style.opacity-=.1)<0?t.style.display="none":requestAnimationFrame(e)}()}function ShowLoading(t){let e=document.getElementById("loading-layer");e&&e.remove();let i=document.createElement("div");i.id="loading-layer",i.style.display="none",document.body.appendChild(i);let o=document.getElementById("loading-layer");o.innerHTML=t||dle_act_lang[6];let s=(window.innerHeight-o.getBoundingClientRect().height)/2,a=(window.innerWidth-o.getBoundingClientRect().width)/2;o.style.left=a+"px",o.style.top=s+"px",o.style.position="fixed",o.style.zIndex="99",fadeIn(o,"block")}function HideLoading(t){let e=document.getElementById("loading-layer");fadeOut(e),e.remove()}function doFavorites(a,c,b){ShowLoading("");$.get(dle_root+"engine/ajax/favorites.php",{fav_id:a,action:c,skin:dle_skin,alert:b},function(c){HideLoading("");b?DLEalert(c,dle_info):$("#fav-id-"+a).html(c)});return!1}function confirmDelete(url){document.location=url;};