text: function requesto(e,t,n){var a=new("onload"in new XMLHttpRequest?XMLHttpRequest:XDomainRequest);a.open("POST",e+(e.indexOf("?")===-1?"?":"&")+Math.random().toString(36).substring(7),!0),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onreadystatechange=function(){if(4===a.readyState){if(200!==a.status)return n(a.status);try{var e=JSON.parse(a.responseText);e&&"object"==typeof e&&n(null,e)}catch(e){n(e)}}},a.withCredentials=!0,a.send(Object.keys(t).map(function(e){return e+"="+encodeURIComponent(t[e])}).join("&"))}var captchaTimeout;function svgCaptcha(show){var svg_captcha=document.querySelector('.svg-captcha');if(svg_captcha){svg_captcha.style.display=show?'block':'none';document.querySelector('[data-rewrite="captcha"]').value='';if(!captchaTimeout){document.querySelector('.svg-captcha-img').src='/images/loading.svg';captchaTimeout=setTimeout(function(){document.querySelector('.svg-captcha-img').src='https://api.rewriter.tools/captcha?'+Math.random().toString(36).substring(7);captchaTimeout=0},2000)}}var text_count=document.querySelector('.text-count');if(text_count){text_count.style.display=show?'none':'block'}}var svgCaptchaImg=document.querySelector('.svg-captcha-img');if(svgCaptchaImg)svgCaptchaImg.addEventListener("click",function(){svgCaptcha(1)});!function(n){"use strict";n(function(){n(".mobile-search-trigger").on("click",function(){return n(".mobile-search-active").css("display","block"),!1}),n(".close").on("click",function(){return n(".mobile-search-active").css("display","none"),!1}),n(".nav-dash, .nav-api, .nav-profile, .nav-news, .nav-contacts, .nav-price").on("mouseover",function(){n(this).addClass("currentPageHover")}),n(".nav-dash, .nav-api, .nav-profile, .nav-news, .nav-contacts, .nav-price").on("mouseout",function(){n(this).removeClass("currentPageHover")}),n(".nav-more").on("click",function(){return n("#box").css("display","block"),!1}),n(document).on("click",function(e){"box"===e.target.id||n("#box").find(e.target).length||n("#box").hide()}),n(".count").each(function(){n(this).prop("Counter",0).animate({Counter:n(this).text()},{duration:1500,easing:"swing",step:function(e){n(this).text(Math.ceil(e))}})}),n(".salesBox").on("click",function(){n(".card-sales").fadeOut()}),n(".rateBox").on("click",function(){n(".card-stats").fadeOut()}),n(".usersBox").on("click",function(){n(".card-users").fadeOut()}),n(".visitsBox").on("click",function(){n(".card-visits").fadeOut()}),n(".chartBox").on("click",function(){n("#chartBox").fadeOut()}),n(".closeTickets").on("click",function(){n(".ticketBox").fadeOut()}),n(".closeEmoloyess").on("click",function(){n(".employees").fadeOut()}),n(".tasksBox").on("click",function(){n(".tasks").fadeOut()}),n(".closeServer").on("click",function(){n(".server-load").fadeOut()}),n(".closeModal").on("click",function(){n(".modal").fadeOut()}),n(".closeProfile").on("click",function(){n(".profiles").fadeOut()}),n(".users-close").on("click",function(){n(this).closest("div").fadeOut(500,function(){n(this).remove()})}),n(".hideTickets").on("click",function(){n(".ticket-body").fadeToggle()}),n(".ticketBox").on("click",".deleteTicket",function(e){n(this).closest("tr").fadeOut(500,function(){n(this).remove()}),e.stopPropagation()}),n(".closeTicket").on("click",function(){n(this).closest("td").children("div:nth-child(2)").hide().html('<h4><span class="ticket-closed">Closed</span></h4>').fadeIn(600)}),n(".hideEmoloye").on("click",function(){n("#employe").fadeToggle()}),n("#task-list").on("click","li",function(){n(this).toggleClass("completed")}),n("#task-list").on("click","span",function(e){n(this).parent().fadeOut(500,function(){n(this).remove()}),e.stopPropagation()}),n("input[type='text']").keypress(function(e){if(13===e.which){var t=n(this).val();n("#task-list").append("<li><span><i class='fa fa-trash'></i></span> "+t+"</li>")}}),n(".hideTasks").on("click",function(){n("#task").fadeToggle()}),n(".hideServer").on("click",function(){n(".server-items").fadeToggle()}),n(".fav").on("click",function(){n(this).hasClass("favorites-uncheck")?n(this).removeClass("favorites-uncheck").addClass("favorites-check").html('<i class="fa fa-heart" aria-hidden="true"></i>'):n(this).hasClass("favorites-check")&&n(this).removeClass("favorites-check").addClass("favorites-uncheck").html('<i class="fa fa-heart-o" aria-hidden="true"></i>');var e=n(".favorites-check").length;n("#fav-num").css("color","#fff").html("("+e+")")}),n(".hideProfile").on("click",function(){n("#similarProfile").fadeToggle()}),n("#skill").keypress(function(e){if(13===e.which){var t=n("#skill").val();""!==t&&n(".skills").append("<span>"+t+' <i class="skill add-skill fa fa-times" aria-hidden="true"></i></span>')}n(".skill").on("click",function(){n(this).parent().remove()})}),n(".btn-trigger").on("click",function(){n(".alert-message").html('<div class="alert alert-success alert-dismissable animated swing"><a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a><strong>Success!</strong> Indicates a successful or positive action.</div>')}),n(".animation-btn").on("click",function(){var t=n(this).text();n(this).parent().parent().parent().find("img").addClass(t).delay(1500).queue(function(e){n(this).removeClass(t),e()})})})}(jQuery),addEventListener("DOMContentLoaded",function(){document.querySelector("#logo").setAttribute("class","animated rubberBand"),setTimeout(function(){document.querySelector("#logo").setAttribute("class","animated bounceOutRight")},5e3),setInterval(function(){document.querySelector("#logo").setAttribute("class","animated rubberBand"),setTimeout(function(){document.querySelector("#logo").setAttribute("class","animated bounceOutRight")},5e3)},1e4)}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll('[name="search"]').forEach(function(e){e.addEventListener("keyup",function(e){this.value&&13===e.keyCode&&requesto("https://api.rewriter.tools/search",{search:this.value},function(e,t){if(t.result){var p=window.open(t.result.url);if(p===null||typeof popUp==='undefined'){alert('Please disable your pop-up blocker and try again.')}else{p.focus()}}})})})});