diff --git a/theme.info b/theme.info index e9a1b12fb..cc211a0fe 100644 --- a/theme.info +++ b/theme.info @@ -1,7 +1,7 @@ desc=Authentic Theme longdesc=Webmin/Usermin/Virtualmin/Cloudmin theme based on Bootstrap and Font Awesome (https://github.com/authentic-theme/authentic-theme) version=19.43-RC2 -mversion=02 +mversion=03 depends=1.932 1.781 webmin=1 usermin=1 \ No newline at end of file diff --git a/unauthenticated/js/bundle.min.js b/unauthenticated/js/bundle.min.js index d2236ce31..bc59def4f 100644 --- a/unauthenticated/js/bundle.min.js +++ b/unauthenticated/js/bundle.min.js @@ -246,10 +246,10 @@ function(t,e){"object"==typeof module&&module.exports?module.exports=e():"functi * Copyright Ilia Rostovtsev * Licensed under MIT (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE) */ -Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var a=Object(this),n=a.length>>>0;if(0===n)return!1;var r,i,o=0|t,s=Math.max(o>=0?o:n-Math.abs(o),0);for(;s>>0,r=0;r-1&&navigator.userAgent&&!navigator.userAgent.match("CriOS");return e?a:n},firefox:function(){return/firefox/i.test(navigator.userAgent)}},storage:{size:function(e){var t=String(),a=e?"MB":"KB";for(var n in window.localStorage)window.localStorage.hasOwnProperty(n)&&(t+=window.localStorage[n]);return t?((3+16*t.length/8192)/(e?1024:1)).toFixed(2)+" "+a:"Empty (0 "+a+")"}}},platform={detect:function(){var e=window.navigator.userAgent,t=window.navigator.platform,a=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?a="mac":-1!==["iPhone","iPad","iPod"].indexOf(t)?a="ios":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?a="windows":/Android/.test(e)?a="android":!a&&/Linux/.test(t)&&(a="linux"),a},set:function(){var e=this.detect();e&&$(document.body).attr("data-platform",e)}},Convert={arrFlip:function(e){var t,a={};for(t in e)e.hasOwnProperty(t)&&(a[e[t]]=t);return a},uriDecodeComponent:function(e,t){var a,n,r,i=String(),o=0;if(void 0===t&&(t=0),a=e?e.split(/(%(?:d0|d1)%.{2})/):[],$.isEmptyObject(a))return e;for(n=a.length;o":">",'"':""","'":"'","=":"="};return String(e).replace(/[&<>"'=]/g,function(e){return t[e]})},htmlUnEscape:function(e){var t=[["amp","&"],["apos","'"],["#x27","'"],["#x2F","/"],["#39","'"],["#47","/"],["#61","="],["lt","<"],["gt",">"],["nbsp"," "],["quot",'"']];if(e)for(var a=0,n=t.length;a=1e3&&l=5&&c<=100?c=5*Math.round(c/5):c>100&&c<=1e3?c=50*Math.round(c/50):c>1e3&&c<=1e4?c=100*Math.round(c/100):c>1e4&&c<=1e5?c=250*Math.round(c/250):c>1e5&&(c=500*Math.round(c/500))),c+" "+s[l]}},core={get_global_vars:function(e,t){for(var a=t?{}:[],n=window,r=0;r-1},curModuleFileQuery:function(e,t,a){return $('body[class*="'+e+'"]').length&&v___location_file==t&&v___location_query&&-1!==v___location_query.indexOf(a)},curModuleFile:function(e,t){return $('body[class*="'+e+'"]').length&&v___location_file==t},curModule:function(e,t){return t=t?String():"*",$("body[class"+t+'="'+e+'"]').length},moduleFile:function(e,t,a){if(e.includes("/")&&e.includes(".cgi")){var n,r,i,o=e.split("/");if(o.filter(function(e,t){e.includes(".cgi")&&(n=t)}),r=o[n-1],i=o[n],r&&r.includes(t)&&i&&i.includes(a))return 1}return 0},updateModuleData:function(e,t,a){$.ajax({type:"POST",url:v___location_prefix+e,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var n=$(e).find("form.ui_form");$.each(a,function(e,t){n.find('[name="'+e+'"]').val(t)}),setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+t,data:$(n).serialize(),dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)&&(v___available_session=0)},error:function(){}})},100)}},error:function(){}})},getModuleData:function(e){return $.ajax({type:"POST",url:v___location_prefix+e,data:!1,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)&&(v___available_session=0)},error:function(){}})},setModuleData:function(e,t){this.getModuleData(e).then(function(e){return $(e).find("form.ui_form").serializeArray()}).done(function(e){var a={};$.each($(e),function(){a[this.name]=this.value}).promise().done(function(){$.each(t,function(e,t){var n=$('[name="'+t+'"]');n.val(a[t]),n.is("select")&&n.find("[data-clear]").remove()})})})}},HTML={bottom_progress:function(e,t,a){return'
'+(a?'
':"")+'
'+(a?"":"1%")+(a?'':"")+'
'},label:{temperature:function(e,t){var a="bg-semi-transparent";return t?e<=30?a:e>30&&e<=60?a:e>60&&e<=80?"bg-warning":e>80?"bg-danger":"":e<=86?a:e>86&&e<=140?a:e>140&&e<=176?"bg-warning":e>176?"bg-danger":""},rpm:function(e){return e<=2*rpmFactor?bg_semi_tr:e>2*rpmFactor&&e<=3*rpmFactor?bg_semi_tr:e>3*rpmFactor&&e<=4*rpmFactor?bg_warn:e>4*rpmFactor?bg_danger:""}},template:{accordion:function(e,t,a,n){for(var r='
',i=0;i
'+a[i]+"
"}return r+=""},page_content_preloader:function(e,t){return'
 '+e+'
'},reauthenticate:function(e){var t=Test.strContains(get_server_data("webprefix"),"servers/link.cgi")?1:0;return'

'+theme_language("session_expired")+"

"+theme_language("session_expired_details")+'
"}}},load={loaded:[],bundle:function($scripts__,$css__,callBack__,callBackCalledNoEval__){var execute_load=function($script,$css,callBack,callBackCalledNoEval){var head=$("head"),initial_name=$script;callBack="object"==typeof callBack&&callBack;var css=($css?1===$css?$script:$css:0)+"."+v___source_type+".css",js=$script+"."+v___source_type+".js";Test.strContains(initial_name,v___server_extensions_path)||Test.strContains(initial_name,v___server_js_path)||(css=v___server_css_path+"/"+css,js=v___server_js_path+"/"+js);var processCallbacks=function(_callBack,_callBackCalledNoEval){_callBack&&!_callBackCalledNoEval?$.each(_callBack,function(i2,v2){try{eval(v2)}catch(e){var attemp=0,check_loaded_func=setInterval(function(){attemp++,attemp>1e3&&clearInterval(check_loaded_func);try{eval(v2),clearInterval(check_loaded_func)}catch(e){}},10)}}):_callBack&&_callBackCalledNoEval&&2!==_callBackCalledNoEval&&3!==_callBackCalledNoEval?$.each(_callBack,function(e,t){t.call()}):_callBack&&_callBackCalledNoEval&&(2===_callBackCalledNoEval||3===_callBackCalledNoEval)&&$.each(_callBack,function(e,t){3===_callBackCalledNoEval?window[e].call(null,t):window[e].apply(null,t)})};if(load.loaded.includes(initial_name))(callBack||callBackCalledNoEval)&&processCallbacks(callBack,callBackCalledNoEval);else{o___gotten_scripts.push(js),load.loaded.push(initial_name);var thecsslink='';$css&&(css.includes(v___server_extensions_path)?head.append(thecsslink):head.find('link[rel="stylesheet"]:first').before(thecsslink)),$.getScript(js+"?"+v___theme_version_plain,function(){processCallbacks(callBack,callBackCalledNoEval)}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)})}};$.isArray($scripts__)?$scripts__.forEach(function(e,t,a){Object.is(a.length-1,t)?execute_load(e,$css__,callBack__,callBackCalledNoEval__):execute_load(e,$css__,0,0)}):execute_load($scripts__,$css__,callBack__,callBackCalledNoEval__)}},page={handle:{content:{offset:function(e){var t=core.curModuleFileQuery("syslog","save_log.cgi","view=")||core.curModuleFile("virtual-server","edit_html.cgi")||core.curModuleFile("mysql","view_table.cgi")||core.curModuleFile("postgresql","view_table.cgi")||core.curModuleFile("mailbox","")||core.curModuleFile("mailbox","index.cgi")||core.curModule(v___module_file_manager)||v___page_hasEditor||!settings_enable_container_offset?0:1;if(!e)return t;var a=$(".container-fluid");page.handle.content.offset()?a.addClass("col-lg-10 col-lg-offset-1").removeClass("margined-top-15"):a.removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15")},preloader_dismiss:function(){$(".container-fluid-loading").length&&page.handle.content.preloader()},preloader:function(e,t){var a=this,n=$("#content"),r=$(".container-fluid"),i=$(".container-fluid-loading"),o=t||$("span[data-main_title]").text(),s=-2===e?"container-fluid-loading-persistent":0,l=HTML.template.page_content_preloader(o,s);if(-2!==e&&i.length&&i.hasClass("container-fluid-loading-persistent"))i.removeClass("container-fluid-loading-persistent");else{if(-1===e)return n.hasClass("progressing");i.length?(i.remove(),r.removeClass("invisible"),n.removeClass("progressing progressing-preloading"),setTimeout(function(){progress.progress()&&progress.end()},10)):(n.addClass("progressing progressing-preloading").prepend(l),r.addClass("invisible")),e&&-2!==e&&setTimeout(function(){a.preloader()},e)}}}},render:{content:{filter:{init:function(e,t){var a=this,n="container-fluid .nav.nav-tabs",r="dataTables_filter",i=$(".__page ."+r),o=$(".__page .panel-filter"),s=".panel-filter .panel.panel-default",l="filter-value",c="btn-filter-top-right",d="btn-accordion-filter",f=$("body");(i.length||o.length)&&setTimeout(function(){$("."+c).length||$("."+d).length||($("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend(''+(e?'':""))),$(".btn-filter-gl").data("title",theme_language("datatable_filter")).attr("aria-label",theme_language("datatable_filter")),$(".btn-toggle-accordions").data("title",theme_language("toggle_accordions")).attr("aria-label",theme_language("toggle_accordions")),$(".btn-group").tooltip({selector:'a[data-toggle="tooltip"][data-skip]',container:"body",trigger:"hover",delay:{show:600,hide:30}}),a.clear(),$("."+n).length&&(e&&f.on("hide.bs.tab",'a[data-toggle="tab"]',function(e){a.clear()}),f.on("shown.bs.tab",'a[data-toggle="tab"]',function(e){var t=$(e.target).parent(".active");t.data(l)?$(".dataTable-mirror").val(t.data(l)).trigger("input"):$(".dataTable-mirror").val("").trigger("input"),a.visibility(c,d,"btn-toggle-accordions",n)})),f.undelegate(s,"shown.bs.collapse.config hidden.bs.collapse.config"),f.on("shown.bs.collapse.config hidden.bs.collapse.config",s,function(e){$(".container-fluid .collapsing").length||setTimeout(function(){var e=$(".container-fluid").find(".btn-toggle-accordions").find("i");o.find(".panel-collapse").length===o.find(".panel-collapse.in").length?e.addClass("fa-toggle-switch text-light"):e.removeClass("fa-toggle-switch text-light")},0)});var t,i=$(".btn-toggle-accordions");e?$(o).find('a[data-toggle="collapse"]').on("click",function(e){$.trim($(".dataTable-mirror").val()).length&&page.render.content.filter.clear(),e.originalEvent&&$(".btn-toggle-accordions").find("i").removeClass("fa-toggle-switch text-light")}):$("."+r).hide();function u(t){var a=t.val(),o=$(".__page .panel-filter:visible");if(e)if(a){$.support.transition&&($.support.transition=!1),i.find(".fa-toggle-switch-off:not(.fa-toggle-switch)").trigger("click"),o.find(".panel tr:not([data-empty-row]):not(.hidden-skip)").addClass("hidden-forged"),o.find('.panel tbody tr:containsi("'+a+'")').removeClass("hidden-forged"),$.each($(s=" .hidden-dependent-skip"),function(e){$(this).hasClass("hidden-forged")?$(this).nextAll(".hidden-skip").addClass("hidden-forged"):$(this).nextAll(".hidden-skip").removeClass("hidden-forged")});var f=$(".__page .panel-filter:visible");$.each(f.find(".panel"),function(){var e=$(this).find("tr").first().find("td").length;rows=$(this).find("tbody").find("tr:not([data-empty-row])"),hidden_rows=$(this).find("tbody tr:not([data-empty-row]):hidden");var t=$(this).find("tbody tr[data-empty-row]");rows.length===hidden_rows.length?t.length?$(this).find("tbody").find("var[data-query-str]").text(a):$(this).find("tbody").append(''+theme_language("filter_content_no_matches_query").replace("%str",""+a+"")+""):t.remove()})}else i.find(".fa-toggle-switch").trigger("click"),o.find(".panel tr").removeClass("hidden-forged"),o.find(".panel tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"});else{var u="."+r+" input";$("."+n).length?($(".nav-tabs li.active").data(l,a),$(".active "+u).val(a).trigger("input")):$(u).val(a).trigger("input")}var p="."+c+" span, ."+d+" span",g="."+c+" i, ."+d+" i";$.trim(a).length>0?($(p).removeClass("text-lighter"),$(g).addClass("text-danger")):($(p).addClass("text-lighter"),$(g).removeClass("text-danger"))}$(".filter_mirror_clear").mousedown(function(e){$(e.target).is(".filter_mirror_clear")&&a.clear()}),$("."+c+", ."+d).click(function(e){!$(e.target).is("input")&&$(this).find("label").slideToggle(300,function(){$(this).find("input").focus()})}),i.click(function(e){e.stopImmediatePropagation();var t=$(this).find(".fa"),n=$(this).find(".fa-toggle-switch").length?1:0,r=$(".__page .panel-filter:visible");0===n?(r.find(".panel-collapse.in").length,r.find(".panel-collapse").length,r.find(".panel-collapse:not(.in):not(.collapsing)").filter(function(){$(this).removeData("bs.collapse").collapse({parent:!0,toggle:!1}).collapse("show").removeData("bs.collapse")})):r.find(".panel-collapse.in:not(.collapsing)").filter(function(){"true"!==$(this).attr("aria-static")&&$(this).collapse("hide")}),t.toggleClass("fa-toggle-switch text-light"),void 0!==e.originalEvent&&$("."+d+" input").val().length&&a.clear()});$(".dataTable-mirror").keydown(function(e){var n=void 0!==e.originalEvent?200:0;76==e.keyCode&&e.ctrlKey?(e.preventDefault(),e.stopPropagation(),n?setTimeout(function(){a.clear()},n):a.clear()):n&&clearTimeout(t)}).on("input keyup",function(e){var a=$(this),n=void 0!==e.originalEvent?200:0;$(".btn-filter-gl").tooltip("hide"),n?(clearTimeout(t),t=setTimeout(function(){u(a)},n)):u(a)}),$("."+c+" input, ."+d+" input").blur(function(e){$(this).parent("label").slideToggle(0)}),a.visibility(c,d,"btn-toggle-accordions",n)},0)},visibility:function(e,t,a,n){var r=$("."+e+", ."+t+", ."+a);$("."+n).length&&($(".active .dataTables_filter").length||$(".active #conf-_-gr").length)||!$("."+n).length&&($(".dataTables_filter").length||$("#conf-_-gr").length)?r.show():r.hide()},clear:function(){var e=$(".btn-filter-top-right .dataTable-mirror, .btn-accordion-filter .dataTable-mirror"),t=$(".btn-filter-top-right input, .btn-accordion-filter input");e.val("").trigger("input"),t.is(":visible")&&t.trigger("blur"),$(".panel-filter").find("tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"})}}},module_config:function(e){var t=v___page_container.find(".table-title:visible").parents(".table:visible"),a=t.parent("div.table-responsive:visible"),n=t.find("tbody > tr > td > table:visible"),r=0,i=1;$.each(n.find("tr"),function(e,t){var a=$(this);a.find(".col_header").length?(r+=1,a.attr("tj",r+":0")):a.attr("tj",r+":1")}).promise().done(function(){var n=$('tr[tj$=":0"]').map(function(){return $.trim($(this).text())});0===n.length&&(n.push(theme_language("config_configurable_options")),i=0);for(var r=[],o=1;o tr[tj="0:1"]')).map(function(){return this.outerHTML}).get().join("\n"),s+="",r[o-1]=s}var l="conf-_-gr";a.replaceWith(HTML.template.accordion(l,n,r,i?e:[2])),page.render.content.filter.init(1),$(".container-fluid > .panel > .panel-body").on("hide.bs.collapse show.bs.collapse","#conf-_-gr",function(){$(".module-help .close-popover-trigger").trigger("click")})})}}},pjax={clear:{modules:function(e){"csf"===v___module&&"function"==typeof __c_____undel&&__c_____undel(e.url),v___module===v___module_file_manager&&"function"==typeof __f_____undel&&"object"==typeof jsPanel&&"string"==typeof $v__fm__container_fluid&&(Test.strContains(e.url,v___module_file_manager+"/config.cgi")||Test.strContains(e.url,v___module_file_manager+"/index.cgi")||Test.strContains(e.url,"save_config.cgi")||__f_____undel()),"mysql"!==v___module&&"postgresql"!==v___module||"function"!=typeof __sql_____undel||__sql_____undel(),"syslog"===v___module&&"number"==typeof refreshTimer&&clearInterval(refreshTimer)}}},progress_percent={body:"body",control:function(e,t,a,n){$(this.body).find(".bottom_progresses").length||$(this.body).append('
');var r=$(this.body).find(".bottom_progresses");if(!r.find('div[data-progress-id="'+e+'"]').length){if(r.append(HTML.bottom_progress(e,t,n)),n||r.find(".bottom_progress_horizontal").length){var i=(r=$(this.body).find(".bottom_progresses")).find('.bottom_progress:not(".bottom_progress_horizontal")').addClass("no-animation").detach();r.prepend(i)}r.find('div[data-progress-id="'+e+'"]').find(".bottom_progress_cancel").one("click",function(){var e=$(this).parent(),t=e.data("progress-id");e.find(".bottom_progress_level").removeClass("success").addClass("danger"),$(this).remove(),setTimeout(function(){e.remove(),0===r.find("div[data-progress-id]").length&&r.remove()},1e3),window["progress_id_ref_"+t].abort(),n&&window["progress_id_ref_"+t+"_tracker"].abort()})}var o=r.find('div[data-progress-id="'+e+'"]');if(o.find(".bottom_progress_level").css("height",a+"%"),n){var s=o.find(".bottom_progress_overlay"),l=".bottom_progress_";o.find(l+"filename").html(''+Convert.htmlEscape(Convert.textTruncate(Convert.htmlDecode(n[0]),24))).attr("title",Convert.htmlEscape(n[0])),s.find(l+"data").text($(Convert.htmlDecode(n[1])).text()),s.find(l+"percent").text(n[2]+"%")}else o.find(".bottom_progress_overlay").text(a+"%");100==a&&(o.find(".bottom_progress_cancel").remove(),setTimeout(function(){o.remove(),0===r.find("div[data-progress-id]").length&&r.remove()},1e3))}},progress={target:"body",element:"top-aprogress",progress:function(){return!settings_hide_top_loader},start:function(){var e=this;setTimeout(function(){e.progress()&&!$(e.target).find("."+e.element).length&&vars.allow_ui_features&&$(e.target).append('
')},100)},end:function(){0===v___theme_progress?$(this.target).find("."+this.element).remove():setTimeout(function(){v___theme_progress=0},0)}},session={reauthenticate:{start:function(){var e=this,t=e.target;!$("."+t).length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi",data:!1,dataType:"text",success:function(a){var n=Test.strContains(a,v___page_signin_form+" pam_");if(!Test.strContains(a,v___page_signin_banner)){var r=$(a).find('input[name="twofactor"]').length,i=e.lock_targets,o=e.lock_type,s=$("body").find(".-shell-port-"),l='',c=$(a).find("._logo_welcome > img").attr("src");$(i).addClass(o),$("body").append(HTML.template.reauthenticate(t)),plugins.navigation.load.stop(),plugins.navigation.detect(),plugins.navigation.switch.reset(),despinnerfy_buttons(),plugins.shell.unlock(),plugins.shell.close(s),r||$("."+t).find("[data-container-twofactor]").remove(),c&&$("."+t).append(""),$("."+t).find("form").on("submit",function(e){(e.preventDefault(),e.stopImmediatePropagation(),n)&&$("."+t).find('form input[name="user"]').attr("name","answer").val(get_server_data("user"));var r=$(a).find("form").append(l).attr("action"),i=$("."+t).find("form").serialize(),o=$("."+t).find("[data-submit]"),s=$("."+t+"-header-icon i"),c=$("."+t+"-header-title h3"),d=$("."+t+"-header-title small");function f(e,a,n,r){if(a){var i="session_failed"===theme_language(a,1)?theme_language("session_failed_password"):a;i.endsWith(".")||(i+="."),i=i.replace(/\n/gm,""),d.text(i).addClass("text-danger").removeClass("loading-dots"),o.removeClass("btn-grey disabled").addClass("btn-success");var l=$(r).find(".alert[data-twofactor]").length?$("."+t).find('input[name="twofactor"]'):$("."+t).find('input:not([name="user"]):not([name="twofactor"])');l.addClass("faa-horizontal animated"),l[0].focus(),setTimeout(function(){l.removeClass("faa-horizontal animated")},1e3)}else e&&!n&&(d.text(theme_language("signing_success")).removeClass("text-danger").removeClass("loading-dots").addClass("text-success"),s.removeClass("fa-lock").addClass("fa-unlock fa-rotate-180 fa-flip-horizontal"),c.text(theme_language("session_unlocked")),v___available_session=1,setTimeout(function(){session.reauthenticate.end()},1800))}o.hasClass("disabled")||(d.text(theme_language("signing_in")+"").removeClass("text-danger").addClass("loading-dots"),o.addClass("btn-grey disabled").removeClass("btn-success"),$.ajax({type:"GET",url:r,data:i,dataType:"text",success:function(e){var a=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),o=i.length;if(n){var s=$(e).find("form").append(l),c=(s.find('input[name="answer"]').val($("."+t).find('input[type="password"]').val()),s.serialize());$.ajax({type:"GET",url:r,data:c,dataType:"text",success:function(e){a=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),o=i.length,f(a,i,o,e)}})}else f(a,i,o,e)},error:function(){o.removeClass("btn-grey disabled").addClass("btn-success"),d.text(theme_language("connection_error")).addClass("text-danger").addClass("loading-dots")}}))})}}})},end:function(){v___available_session=1,$("."+this.target).remove(),$(this.lock_targets).removeClass(this.lock_type)},target:"session-reauthenticate",lock_targets:"aside, aside .navigation, .form-control.sidebar-search, .jsPanel, #jsPanel-replacement-container, .popover, .container-fluid, .right-side-tabs, .right-side-tabs-toggler",lock_type:"pointer-events-none bg-filter-blur3-grayscale100-opacity35-contrast1-2-brightness0-9 disabled"}},Test={true:function(e){return!/^(false|0)$/i.test(e)&&!!e},false:function(e){return/^(false|0)$/i.test(e)||!e},numeric:function(e){return Number(parseFloat(e))==e},string:function(e){return"string"==typeof e||e instanceof String?1:0},strContains:function(e,t){return"string"==typeof e&&!!~e.indexOf(t)},str_contains_multi:function(e,t){for(var a in t){var n=t[a];if(e.indexOf(n)>-1)return!0}return!1},arrContains:function(e,t,a){return void 0===a&&(a=0),e=$.inArray(t,e),a?e:-1=n},occurrences:function(e,t,a){if(e+="",(t+="").length<=0)return e.length+1;for(var n=0,r=0,i=a?1:t.length;(r=e.indexOf(t,r))>=0;)++n,r+=i;return n},editing:function(){return $("input:focus").length||$("textarea:focus").length||$('[contenteditable="true"]:focus').length||$('[contenteditable="true"]:focus').length}},theme={download:function(e,t,a,n){if(n=void 0===n||1==n||!0===n?String():'target="_blank"',e&&t){t="string"==typeof t?t:$.param(t);var r="";$.each(t.split("&"),function(){var e=this.split("=");r+=''}),$("
'+r+"
").appendTo("body").submit().remove()}},veiled:function(e){var t=$(".container-fluid, .jsPanel").add($("aside")).add($("#right-side-tabs")).add($(".right-side-tabs-toggler")),a="pointer-events-none bg-filter-blur-grayscale-opacity50";if(-1===e)return t.hasClass(a);e?t.addClass(a):t.removeClass(a)},update:function(e,t){var a=1===e?"-release":"-beta";theme.veiled(1),set_onbeforeunload_status(1,0),plugins.messenger.post(''+theme_language("git_patch_initiated")+" "+theme_language("global_please_wait")+'   ',1800,"info","themeUpgrade",0),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-update=1&xhr-update-type="+a+"&xhr-update-force="+t,data:!1,dataType:"json",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:e[0]&&e[0].success?(plugins.messenger.post(''+e[0].success,4,"success","themeUpgrade"),plugins.slider.notifications.dismiss("authentic_remote_version"),set_server_theme_temp_data("goto",v___location_prefix+"/sysinfo.cgi"),setTimeout(function(){theme_reload()},2e3)):e[0]&&e[0].no_connection?(plugins.messenger.post(''+e[0].no_connection,40,"warning","themeUpgrade"),theme.veiled(0)):e[0]&&e[0].no_git?(plugins.messenger.post(''+e[0].no_git,20,"warning","themeUpgrade"),theme.veiled(0)):e[0]&&e[0].incompatible?(plugins.messenger.post(''+e[0].incompatible,120,"error","themeUpgrade"),theme.veiled(0)):(plugins.messenger.post(''+theme_language("git_patch_update"),20,"error","themeUpgrade"),theme.veiled(0))},error:function(e){plugins.messenger.post(''+theme_language("git_patch_update"),20,"error","themeUpgrade"),theme.veiled(0)},complete:function(e){set_onbeforeunload_status(0,0)}})},version:function(){return v___theme_version},visibility:function(e){0===v___theme_visibility_check&&(v___theme_visibility_check=1,settings_sysinfo_real_time_stored||(0===e?"object"==typeof stats&&stats.general.disable():"object"==typeof stats&&stats.general.enable()),setTimeout(function(){v___theme_visibility_check=0,vars.events.keypressed.shift=!1,vars.events.keypressed.alt=!1},0))}},quirks={active_element:function(){return document.activeElement&&$(document.activeElement).is("body")?v___page_activeElement:document.activeElement},local_storage:{safari:function(){if("object"==typeof localStorage)try{localStorage.setItem("d41d8cd98f00",1),localStorage.removeItem("d41d8cd98f00")}catch(e){Storage.prototype._setItem=Storage.prototype.setItem,Storage.prototype.setItem=function(){},vars.local_storage=0}}},render:{apple:function(){browser.detect.safari(1)&&$("html").css("overflow","auto");var e=$(".__page");browser.detect.safari()&&e.addClass("browser_safari"),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&e.attr("style","-webkit-overflow-scrolling: touch !important; overflow-y: scroll !important;")}}},regex={matches:function(e,t,a,n){a||(a=1);for(var r,i=[];r=t.exec(e);)i.push(r[a]);return n&&(i=i.slice(-1)[0]),i}},XHR={headers:function(e){return[e.getAllResponseHeaders(),e.getResponseHeader("content-type"),e.getResponseHeader("content-disposition"),e.getResponseHeader("content-length")]}};const plugins={};plugins.shell=function(){var e=function(){return $("body").find(".-shell-port-").hasClass("opened")},t=function(){return $t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length},a=function(e,t,a,i){return''},n=function(e){var a=t(),i=$('select[name="sid"]').val();e||(e=""),i||(i=0),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-shell-insert=1&xhr-shell-inserted="+e+"&xhr-shell-cms="+a+"&xhr-shell-cmsid="+i,dataType:"text",complete:function(e){if(e=e.responseText,Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=JSON.parse(e);localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(t))}}})},s=function(e,t,a){$(e).next("pre").remove(),c(),o(t),a.scrollTop(a[0].scrollHeight),setTimeout(function(){vars.shell.processing=0,vars.shell.history=0,t.removeAttr("readonly").focus()},100)},o=function(e){e.val(""),e.focus()},r=function(e){var t=$("body").find(".-shell-port-"),a=a=void 0!==e&&(e.startsWith("!")?e.substr(1):e),i=t.find("input"),s=(t.find(".-shell-port-pwd").attr("data-pwd"),t.find("[data-shell-host]")),o=s.attr("data-shell-host");if($t_uri_cloudmin){var r=$('aside [name="sid"] option:selected');current_host_name=r.attr("title")||r.text(),s.text(current_host_name)}else s.text(o);if(n(!1),a){i.val(a);var l=$.Event("keydown");l.which=13,i.trigger(l)}t.css("bottom","0vh").addClass("opened"),p(),c(),setTimeout(function(){a||(focus(),i.focus())},20)},l=function(){$("body").find(".-shell-port-").css("bottom","100vh").removeClass("opened"),v___module==v___module_file_manager&&"function"==typeof __f__state__changed&&__f__state__changed(),$(".command-shell-editor-spinner").remove(),p(!0)},_=function(e){var t=$(".-shell-port-container .-shell-port-cmd");e?t.addClass("invisible"):t.removeClass("invisible")},c=function(){if(1==core.moduleAvailable("shell")){var e=parseInt($("body").find(".-shell-port-cmd").width()),t=parseInt($("body").find(".-shell-port-prompt").width());$("body").find('.-shell-port- input[data-command="true"]').css("width",e-t-50+"px")}},d=function(){var e=t();return 1==core.moduleAvailable("shell")||e?1:0},p=function(p){var f=$(document.body).find(".-shell-port-"),u=f.find('input[data-command="true"]'),m=f.find("div[data-output]"),h=f.find(".-shell-port-container"),v=f.data("autocomplete"),b=$(window),x=".plugin-shell";if(p)return b.off("keydown"+x),b.off("keyup"+x),void h.off("click"+x);b.on("keydown"+x,function(t){var a=this,i=e(),n=$(".modal-shell-config:visible").length,s=String.fromCharCode(t.which).toLowerCase();if(t[settings_hotkey_toggle_modifier]&&s==settings_hotkey_shell&&theme_shortcuts_modifier_unique(t))return t.preventDefault(),void(i&&l());if((t.altKey||t.ctrlKey)&&"l"==String.fromCharCode(t.which).toLowerCase()&&t.preventDefault(),void 0===a.shell_request_interrupted&&(a.shell_request_interrupted=0),void 0===this.last_pressed_times?this.last_pressed_times=0:this.last_pressed_times+=1,setTimeout(function(){a.last_pressed_times=0},vars.event.double_click_delay),"c"===s&&a.last_pressed_times>1&&t.ctrlKey&&!t.shiftKey&&!t.altKey&&!t.metaKey)return a.shell_request_interrupted=1,"object"==typeof a.shell_request&&"pending"===a.shell_request.state()&&a.shell_request.abort(),void setTimeout(function(){a.shell_request_interrupted=0},1e3);if(this.searching||"r"===s&&t.ctrlKey&&!t.shiftKey&&!t.altKey&&!t.metaKey){if(t.preventDefault(),"object"==typeof a.shell_request&&"pending"===a.shell_request.state())return;var o=$(".-shell-port-type"),r=$('.-shell-port- input[data-command="true"]');if(h.scrollTop(h[0].scrollHeight),this.searching=1,run_search=function(e){var t=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")).filter(function(t){return t.includes(e)});return $.unique(t).reverse()},update_search=function(e,i){if(this.used_index&&!i||(this.used_index=0),t.ctrlKey){if("c"===s)return void cancel_search(1);if("r"!==s)return}JSON.stringify(e)!=JSON.stringify(this.results)||i?this.results=e:t.shiftKey?--this.used_index:++this.used_index,e.length<=this.used_index&&(this.used_index=0),this.used_index<0&&(this.used_index=e.length-this.used_index-2);var n=this.searching_shell_str_replaced.find("span[data-searching]"),o=n.text(),l=localStorage.getItem(v___server_hostname+"-shell_command_last");if(!a.pre_searched&&l&&("undefined"===l&&(l=String()),a.pre_searched=l),o||!a.pre_searched)o&&e.length?(success_search(),e&&r.val(Convert.htmlUnEscape(e[this.used_index])),c()):failed_search();else{n.text(a.pre_searched);var _=run_search(a.pre_searched);update_search(_,0)}},failed_search=function(){var e=a.searching_shell_str_replaced.html();e.includes("failed reverse")||a.searching_shell_str_replaced.html(e.replace("reverse-i-search","failed reverse-i-search")),c(),new Audio("data:audio/ogg; codecs=opus;base64,T2dnUwACAAAAAAAAAAArS957AAAAAAff6O0BHgF2b3JiaXMAAAAAAkSsAAAAAAAAAO4CAAAAAAC4AU9nZ1MAAAAAAAAAAAAAK0veewEAAABiry0KEC3//////////////////3EDdm9yYmlzHQAAAFhpcGguT3JnIGxpYlZvcmJpcyBJIDIwMDcwNjIyAAAAAAEFdm9yYmlzK0JDVgEACAAAADFMIMWA0JBVAAAQAABgJCkOk2ZJKaWUoSh5mJRISSmllMUwiZiUicUYY4wxxhhjjDHGGGOMIDRkFQAABACAKAmOo+ZJas45ZxgnjnKgOWlOOKcgB4pR4DkJwvUmY26mtKZrbs4pJQgNWQUAAAIAQEghhRRSSCGFFGKIIYYYYoghhxxyyCGnnHIKKqigggoyyCCDTDLppJNOOumoo4466ii00EILLbTSSkwx1VZjrr0GXXxzzjnnnHPOOeecc84JQkNWAQAgAAAEQgYZZBBCCCGFFFKIKaaYcgoyyIDQkFUAACAAgAAAAABHkRRJsRTLsRzN0SRP8ixREzXRM0VTVE1VVVVVdV1XdmXXdnXXdn1ZmIVbuH1ZuIVb2IVd94VhGIZhGIZhGIZh+H3f933f930gNGQVACABAKAjOZbjKaIiGqLiOaIDhIasAgBkAAAEACAJkiIpkqNJpmZqrmmbtmirtm3LsizLsgyEhqwCAAABAAQAAAAAAKBpmqZpmqZpmqZpmqZpmqZpmqZpmmZZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZQGjIKgBAAgBAx3Ecx3EkRVIkx3IsBwgNWQUAyAAACABAUizFcjRHczTHczzHczxHdETJlEzN9EwPCA1ZBQAAAgAIAAAAAABAMRzFcRzJ0SRPUi3TcjVXcz3Xc03XdV1XVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVYHQkFUAAAQAACGdZpZqgAgzkGEgNGQVAIAAAAAYoQhDDAgNWQUAAAQAAIih5CCa0JrzzTkOmuWgqRSb08GJVJsnuamYm3POOeecbM4Z45xzzinKmcWgmdCac85JDJqloJnQmnPOeRKbB62p0ppzzhnnnA7GGWGcc85p0poHqdlYm3POWdCa5qi5FJtzzomUmye1uVSbc84555xzzjnnnHPOqV6czsE54Zxzzonam2u5CV2cc875ZJzuzQnhnHPOOeecc84555xzzglCQ1YBAEAAAARh2BjGnYIgfY4GYhQhpiGTHnSPDpOgMcgppB6NjkZKqYNQUhknpXSC0JBVAAAgAACEEFJIIYUUUkghhRRSSCGGGGKIIaeccgoqqKSSiirKKLPMMssss8wyy6zDzjrrsMMQQwwxtNJKLDXVVmONteaec645SGultdZaK6WUUkoppSA0ZBUAAAIAQCBkkEEGGYUUUkghhphyyimnoIIKCA1ZBQAAAgAIAAAA8CTPER3RER3RER3RER3RER3P8RxREiVREiXRMi1TMz1VVFVXdm1Zl3Xbt4Vd2HXf133f141fF4ZlWZZlWZZlWZZlWZZlWZZlCUJDVgEAIAAAAEIIIYQUUkghhZRijDHHnINOQgmB0JBVAAAgAIAAAAAAR3EUx5EcyZEkS7IkTdIszfI0T/M00RNFUTRNUxVd0RV10xZlUzZd0zVl01Vl1XZl2bZlW7d9WbZ93/d93/d93/d93/d939d1IDRkFQAgAQCgIzmSIimSIjmO40iSBISGrAIAZAAABACgKI7iOI4jSZIkWZImeZZniZqpmZ7pqaIKhIasAgAAAQAEAAAAAACgaIqnmIqniIrniI4oiZZpiZqquaJsyq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7rukBoyCoAQAIAQEdyJEdyJEVSJEVyJAcIDVkFAMgAAAgAwDEcQ1Ikx7IsTfM0T/M00RM90TM9VXRFFwgNWQUAAAIACAAAAAAAwJAMS7EczdEkUVIt1VI11VItVVQ9VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV1TRN0zSB0JCVAAAZAAACKcWahFCSQU5K7EVpxiAHrQblKYQYk9iL6ZhCyFFQKmQMGeRAydQxhhDzYmOnFELMi/Glc4xBL8a4UkIowQhCQ1YEAFEAAAZJIkkkSfI0okj0JM0jijwRgCR6PI/nSZ7I83geAEkUeR7Pk0SR5/E8AQAAAQ4AAAEWQqEhKwKAOAEAiyR5HknyPJLkeTRNFCGKkqaJIs8zTZ5mikxTVaGqkqaJIs8zTZonmkxTVaGqniiqKlV1XarpumTbtmHLniiqKlV1XabqumzZtiHbAAAAJE9TTZpmmjTNNImiakJVJc0zVZpmmjTNNImiqUJVPVN0XabpukzTdbmuLEOWPdF0XaapukzTdbmuLEOWAQAASJ6nqjTNNGmaaRJFU4VqSp6nqjTNNGmaaRJFVYWpeqbpukzTdZmm63JlWYYte6bpukzTdZmm65JdWYYsAwAA0EzTlomi7BJF12WargvX1UxTtomiKxNF12WargvXFVXVlqmmLVNVWea6sgxZFlVVtpmqbFNVWea6sgxZBgAAAAAAAAAAgKiqtk1VZZlqyjLXlWXIsqiqtk1VZZmpyjLXtWXIsgAAgAEHAIAAE8pAoSErAYAoAACH4liWpokix7EsTRNNjmNZmmaKJEnTPM80oVmeZ5rQNFFUVWiaKKoqAAACAAAKHAAAAmzQlFgcoNCQlQBASACAw3EsS9M8z/NEUTRNk+NYlueJoiiapmmqKsexLM8TRVE0TdNUVZalaZ4niqJomqqqqtA0zxNFUTRNVVVVaJoomqZpqqqqui40TRRN0zRVVVVdF5rmeaJomqrquq4LPE8UTVNVXdd1AQAAAAAAAAAAAAAAAAAAAAAEAAAcOAAABBhBJxlVFmGjCRcegEJDVgQAUQAAgDGIMcWYUQpCKSU0SkEJJZQKQmmppJRJSK211jIpqbXWWiWltJZay6Ck1lprmYTWWmutAACwAwcAsAMLodCQlQBAHgAAgoxSjDnnHDVGKcacc44aoxRjzjlHlVLKOecgpJQqxZxzDlJKGXPOOecopYw555xzlFLnnHPOOUqplM455xylVErnnHOOUiolY845JwAAqMABACDARpHNCUaCCg1ZCQCkAgAYHMeyPM/zTNE0LUnSNFEURdNUVUuSNE0UTVE1VZVlaZoomqaqui5N0zRRNE1VdV2q6nmmqaqu67pUV/RMU1VdV5YBAAAAAAAAAAAAAQDgCQ4AQAU2rI5wUjQWWGjISgAgAwAAMQYhZAxCyBiEFEIIKaUQEgAAMOAAABBgQhkoNGQlAJAKAAAYo5RzzklJpUKIMecglNJShRBjzkEopaWoMcYglJJSa1FjjEEoJaXWomshlJJSSq1F10IoJaXWWotSqlRKaq3FGKVUqZTWWosxSqlzSq3FGGOUUveUWoux1iildDLGGGOtzTnnZIwxxloLAEBocAAAO7BhdYSTorHAQkNWAgB5AAAIQkoxxhhjECGlGGPMMYeQUowxxhhUijHGHGMOQsgYY4wxByFkjDHnnIMQMsYYY85BCJ1zjjHnIITQOceYcxBC55xjzDkIoXOMMeacAACgAgcAgAAbRTYnGAkqNGQlABAOAAAYw5hzjDkGnYQKIecgdA5CKqlUCDkHoXMQSkmpeA46KSGUUkoqxXMQSgmhlJRaKy6GUkoopaTUUpExhFJKKSWl1ooxpoSQUkqptVaMMaGEVFJKKbZijI2lpNRaa60VY2wsJZXWWmutGGOMaym1FmOsxRhjXEuppRhrLMYY43tqLcZYYzHGGJ9baimmXAsAMHlwAIBKsHGGlaSzwtHgQkNWAgC5AQAIQkoxxphjzjnnnHPOSaUYc8455yCEEEIIIZRKMeacc85BByGEEEIoGXPOOQchhBBCCCGEUFLqmHMOQgghhBBCCCGl1DnnIIQQQgghhBBCSqlzzkEIIYQQQgghhJRSCCGEEEIIIYQQQggppZRCCCGEEEIIIZQSUkophRBCCCWEEkoIJaSUUgohhBBCKaWEUkJJKaUUQgillFBKKaGUkFJKKaUQQiillFBKKSWllFJKJZRSSikllFBKSimllEoooZRQSimllJRSSimVUkopJZRSSgkppZRSSqmUUkoppZRSUkoppZRSKaWUUkoppaSUUkoppVJKKaWUEkpJKaWUUkqllFBKKaWUUlJKKaWUSgqllFJKKaUAAKADBwCAACMqLcROM648AkcUMkxAhYasBABSAQAAQiillFJKKTWMUUoppZRSihyklFJKKaWUUkoppZRSSimVUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKAcDdFw6APhM2rI5wUjQWWGjISgAgFQAAMIYxxphyzjmllHPOOQadlEgp5yB0TkopPYQQQgidhJR6ByGEEEIpKfUYQyghlJRS67GGTjoIpbTUaw8hhJRaaqn3HjKoKKWSUu89tVBSainG3ntLJbPSWmu9595LKinG2nrvObeSUkwtFgBgEuEAgLhgw+oIJ0VjgYWGrAIAYgAACEMMQkgppZRSSinGGGOMMcYYY4wxxhhjjDHGGGOMMQEAgAkOAAABVrArs7Rqo7ipk7zog8AndMRmZMilVMzkRNAjNdRiJdihFdzgBWChISsBADIAAMRRrDXGXitiGISSaiwNQYxBibllxijlJObWKaWUk1hTyJRSzFmKJXRMKUYpphJCxpSkGGOMKXTSWs49t1RKCwAAgCAAwECEzAQCBVBgIAMADhASpACAwgJDx3AREJBLyCgwKBwTzkmnDQBAECIzRCJiMUhMqAaKiukAYHGBIR8AMjQ20i4uoMsAF3Rx14EQghCEIBYHUEACDk644Yk3POEGJ+gUlToQAAAAAAAIAHgAAEg2gIhoZuY4Ojw+QEJERkhKTE5QUlQEAAAAAAAQAD4AAJIVICKamTmODo8PkBCREZISkxOUFJUAAEAAAQAAAAAQQAACAgIAAAAAAAEAAAACAk9nZ1MAAEAUAAAAAAAAK0veewIAAABnj+O9HJeVV1dTVZqZlJWTVZOLl//3WFxXYJeV//8Y/+Tc/UxIYKVFdYLOWPcLKpEsrrEHETnXiqysLLNdS6y95/ef+7Vi79Z9zVZ919e44pxH0T+fHGONcSbr+Qza425fEvs1zysffUT9+zQaHgrT7V/01BzsuyrXpCXz0qMP4mSLYZ2iYZT7dVnREnYkX1fr+76Ya2rOIWxZqt/+8fu7dPBeNIMvH50Ln/UwOVyC7df/vwOSxAYAnB1ByNXUFeZiWLQlkZiQm/UrEE59c0TW7pJx5T1in2f5ufWtNeqfPh5UhKJ5rdkW3euzR5Bnxl6ZzVEj9x8jle81vvdbX+QF7AwF9aGXl0vbqWO385cr/4ltd2sspXI3JZbe9d13usNKvuGcrs55V9wupuJlY2SjF3pHn3vGm7VOUVPVZ8767T912a/rarz46AM0sASMAUWc62z2vGvAFJAwodfkUjqDTLGzVPSOi9SKWYilemD7LM7PZDfiZ1+7Wd9jc3HC0/tMv7uMv+Oc0Otg3fEj4k2cmQf4d5xhlz5+lH9zf9pbh576EAJ09fQ8F1hhUuCwmTShJhOPShKBifF//C2oGLikd4xiSI4XPjMvcC/fz6+Y/NSLZJ949nOVksu7IHcbrNCJ7jqvFvahjonXr/Z5SS6ZyX96/29uk57eKQOU8TwkAAINXFDOfChOgCQRgSE25x89VUuxy5tRsMqCWWx3Cft8rdllSMbllX0bvbfFfosLI3sPree1B0v9TTQ7+jL2841/MKsdSr507La/nkbdBYzxfDJhDtLNyW4bkMIJJCCnyDDlv/RQX4SoeaMobphUZvcB8vmn/K3t5z2X7sj+XX1JmOxl07wOHVdzgCU7/dclLZ806G8sziRsKGVPB9v+1wbZmgGc/TBJJAABVw8riiaxOplhpajhMd+fXbRlhCYzzmLvec4vr6tsmj35n+/XQzM352aNu+e0RpP7tawxRql5rht79+81u/Jz/vuUY01kENkbGLKS5UTaS6Va3/++pPF1Xr9O0bz3GvvHouGXQ5J7zb2GKsn9v9VK4nl64fFb0yekKdnWf8P31ynuiHxEwzj+eyudorVr7ed53cwB1A09yjNcLxdb7GCfM+pYEFodXu7nmv79yoNZu7rU36bw6+1r5r37+9mw9dentyvZd5i+WLfGXe/fx7WbEbTu+bNikUDTOz9t12eXvXHf3S0Xr56ufnpbeuS7LSqIHUseattE6vKT8vcDl399cvnIjOLhZVX8/P795f31Ydb/J3H8e3HM7Z9u9TZq58odu57+hutTjjvoDZcwBEa9MNiNz/7Ix0ic6kNwyIbxR20/4uzp+JHIcej6xV4Zo82535pzx/65rWuPZmp2j8yj0ryPj0hXwFUf7Oaz8vPKeS+/OGuFJMOpeO6rx59Vqw4/lVTbffsixD6Gq7eXQ/9X177EP51Hm2rPIlr3q9Ztc7XS3v9sDrHm5/y1lv4Me6165m8OO9NwP87y/acOWh0LABRaRZtYF/+L4LqLWeASZv8aDUXgrdeoqGxf7Vno0uhKTrPz9j7HfK/Rc32P++ftHOO2Wr5iTPb/qNyYvXJk7Ht8nn7jrVlkWK/arnPYU6Lw8PXlE5GdX/MeNaf/C7spMYwCI3LH0KN+tyzb/ancv1y/ePfoOTkXF4g1Z1dM/58v7/0OXeG3l+819X0kMCo+t//wh0kAtGH1IxciZPnRX18fVrpcoMc+jYeed+43PgCN5kLMzu9nxvpJM2dhFiOLa/ZsHk1sWJHd0ytwHSWpl52utUZc3z12TquTYTTviwy6tvIrpesF9lQpoj4Mt5D16Y9/92pXBjZ0ee92bmE7m5du1YT+1oa76ndJvEL6vFN1IbLTCv6+X9/JiivLYm7vHrftvL5+PgEA/EX1IZeObBdctRf12FzJau7WCJVw0kTZprqtCDKop3ifxDvfiaVfd5377OHy3v0Us1Xe/NvK4uf/jzjn0hjvvmoeKtnUjLdPQvCyiDNm8fvLrbUmAARScQ7CfBpJDZp7VbEnzO86Mojtrl5X3zU9Qugxe91zvP1KiJVfZ3+4Z2M4V2aP5hxTWJlxW5+59qYrtB923ztvflqf2YHcepBwsXLILn65YTJ0C+o/yav4U49aXvSnD/c1RI/AF0/dvx7auZM39VHYvumRHtxFN/vf36FKN8V36azKWplP9G3dxdXsSCETskQDAORBCZ0rznlH2jn6poDkikd7BYS72r9VFu2OaDLXyD/dfc/NRuuKa7vrZUSNbFU7W3GO+PWXzZ7H5hGZJLBeLfnHPbzAzFrXoN5Zq0y8QOEdlO1f9O51qhOBuPu+R2rlVnTvoH9IvyKOZnsuvkf87oHOtZ06/69D8W2sfnzveExRd36D3e3McN0JKQC0SXUmMSN87QvKw0LDr6uiPFezdj11Es/zLrHGdGIh1vdntezxaOw+Vv99jH3/bKuv1Tr4QDxlaSYR1RZ7/m69ptWIVr9HjiDDoPnSzh6NX9J5t1CmZ1x/CKvTNa5hCh8Wt3m+iR7ulbabrz8lOa9txqPm1L2dXPwvVOLJd/r2Wnqn1tU3/ex66lu3/s/L9znGc9teLgAAcufkZfE73M4sm1rDr3r+1pqBbl7/dYjrNtas5Dilf+638lzfX93+/D++TR+1zYv9cP7wNXu01LO3Yk+vV1/kmO157N4A3DzFdRcrJfPaAADAj3KvHMeMrLq8OO/Cm4Vm8u+7rXmlh8Sh97fy44euqzcHY/m4mH1tO3/81OsZudgez3e4PWWaQ1tb0wQRpy+6h1NXOTXbrXDtT1leSxuzbyXoul7f15/9fb1752X7xlNtwlw6x8fj8Ls84rfn1sWci5vhsfl+t/PtoXtdOgk3Om+XwMpd3lP7zs2691IP8JBRjNHwPMX8aJPVGd97Z8+RzO7/+9NAhqjpHMUzjtZO8h3O+K1ecoplrYpWl/V83WH2Pjvu2O5uubrOjZvOca73h6q4zq/z6yuNzXzynM7Xw/5Q3cbV/u+ZQh18pohPyJJyW+/uwGAurL0ssIuszAjUH+IoRiksphmNYqkrMorVvZd60ZTVEpbaRm51aS2ap37ueWd6UVs8hPU/ZTJZayFMPRrqlxKsBCABqrV9DFWbsTOFKDA3J6+Hslbecp/eng26l/cby43G4qRpIJdJZzDd7wwY3IEk+od/a/1hdbszvan+cn8JwGvomufx7p7NJUNXTlzp3zQXXaqWOhQfdCnB23pzyWgmZ7hMfN6AcQb2MwavchM4AHQ1r50Se44/Hsa8avmatYGCiLYqyFHgt/zd94qtLNUoghdG8aftHPetsqKvrQOmUwt8mZzyoO9xoplpbgyrXzjvh2fO27KjkptUmXkp78XeDfnYzcPEzwCEHV9/enrUVLhcSdgx5WuePT1FuCNeafR41ldr3hdCCbwpxVIJkZv2rvtSKp61qSkn8WK99H0Xw9T5xf6dMaul7VsaYlNJ6ZoT5pZnJ3b029bX8UpP0vu5x79fAZQpX/9k270+CFwYm4A/fvHs2YkMgTLgrfZWzL4geEMG9UahK891+aRnUhIWqpuO6ys+8OV+7G9LjH3Ztrv4TSa1SoyTTpqaCeM3sSX+dM+wRVZsm6dHAqQxf/DysHM45sDJFa8L+qMfHuOKSwTwX/FeI90L9MSHqEkKsy5ylhvYlPlnZquC3V3/OpfO+/m/Ph8l8Zwy/hZZbpv7fS4f2o3147IRS0lSfvE+L0EeTYx8L2ciPvS8AZxRX//xhnx66HvCjKu+9nuk3FzYDvl+9e67/iZWq2K1ucYaaz2v+xjn+VuuVTdltEkpf8fQmOK0V1ypeCWrGlPh1fdcP/xzv/x083bdX7mmxV9KE1Uvq2LnU1+MW/+f3a3972857cnp+eyNTlrsduzq5ylZP7ef/vfmT/t6esfNLO6R6euW/p7eof2zT49tc+mXbl3hvQKkUV/7Dnv7cfDVrTbpq98GeflYEd915pMZ50crWMG9NmmHte+N2PEJMZ5tK1Grc3qufNJzNdNee/Yb8VVQZIOxdS3YzncMMXJ/GRTSf+/96gzTIvfLxu/Z1Q9Vz6U3eql47z8t32Qmg7S/nUYcrL08VMzWEuldnpx35OvoOUfHt/7Y2vatI1unvs6tU6ddJXzL3N7dCzpG3Mz1S8ABUDf97feQvc3D8FbD55dw08SH0K/bzSMFiBjeauj81yFyXU/1tdeOGPb++u2yp3ld+sAbuaL11OxgaQLmrt6AuvQCMHquK0mxhR2bRJIAzu/tCPlZ4V4xjQ5WF88td97erBgaq0GP+2gpiDdm41R7c9X5FtrZ0q+Wfao9CcY4f+tQbLu6k9IkiWUwSa9Vxav8Px+HbVOnzPXxS1dHxscP5uX2YXO5XvamuzVPd3KvrllzXYnD9aN260vlcibOvy1mujgzjand6qpaRiLrS6WLSq/lxW8T/cNCAmBh6T/DkUHMOe85evrYKWz3z9WsX79c4ppaPvVEFnvt+5CdkcXIZFpk/fq6f08TpqyDHMz9q0xXl3Vc53o0PvnpnIsuKbT3i6y2yh81v533U78uG6ZPTEbGZpT9IQnjeK3XyopF/eJf2nAuFvd9FRZtO9+UxVQCK+z+nCD3CePyW+IM35aGnn+0W/yWuFynSXuo8XtssfSC+l/1PzNd2kzCfgZWMVk/LD1e8euHe4jclkz+bEFpERv78XepH3Cbit8XMdm07dP8T2QczzsHLpJ+Kz5tzLmTb9Eqhizfx+VzAB6eOxbm+mt2+r3Ihb2/Ii+kyi34F5zNp2v+MDgqdoGxnxFfgew1c/bvT++jTVt9Ul757I/Ur/L1Gc3z1u8CfDZVwrUyMjK/XKB4Q21PlyYttwIJAH4V3Eh5qV440zVkyXLGuwoOK3dhH/hDL+uUDbf/ydnuo7eMW675bJxuP59ZebtEmgYvMM5fN3MkVNfUG4DnbQDOOaMmxHZyEQAAGNWWw9TaU9go20s5zr3/B4I4bQctWRG951dK5aNP8LU0z8bIgB09k6p5JBPUjqDY1KwxVp4+LYCHazhrfHjfx1kV54nPzvWKs9SmRcjqsMZbhPouSphMdumV42pkYb/vt5isZ7qoFFaPUk8vSmB68axdvNNVHo4cuF+brNdtbxk2F7dG6aUnsm3UdvlcJmuD825wKvVMfd7Xy+eSc3+pv5/7c4vKy33u0+/fNGHBdJx9tl0sPu8T+79/DkEum0XWJ0eMvryPxfnfDSiWYXQ/L9DE+fkmuoai7InztpFbl5ds813gv9cfZ35x9s9k++zfJe39h+8yQHnQnNn9QHx2htsxffyx4DUyIzW/CeXUpZx/+kE5FXTJwv39Ur2Nxbtl1HLGGxoiietr7YICeHNWvstOd03plLV6tGQXP7Ct+lX21wvsWuapzvnc99/unoY4kQD5/+2egDAN0AOw83322WeigBAjZUUNi3yffd5nMnqGh1/cCvW/zYsF9nlH8N9zn+gBpk1z8r68KGO8e9YMvTvJijVTFzwBAE9nZ1MABAcYAAAAAAAAK0veewMAAAD63TjdAv/mPjWE51OfDSVdk9Eu11E1xM/X++JzOgLu0t2GOOH1n1Ws15//P+eIvXbQx7tjr+el59oLl11Wgw2g4nryAWpMvErF6MYxEgAAAEwJPe9Xlt/pk++eZK/lHE9KfcTQ6+D852DtPkt3soWb7tNULn++n+/rOr38+vT5burg9vnpWHko+qXJvaGl+9vP93o7FLq5ua6Rw/j9PtDT+7w/77Pvz31xvP6Sy5d3J5yrcSkf0LVnPSvpkkuZpHTZwWTtI/nhR95ZHU1YL+UqYkfz8Zvvz6VUl+ulY8GcfSaul+vlPLXrvHz7t2n66YGpX24Xx50YKRUtDrd/70H9f49u1ktNvfQ+0xlnlPu359vTPX0iAyC13P+/f2etbH3lS5uk/92ltLqWdVkj4/patxUt4/j4XOAfSxhbsS8e/b/jm/zha1MBM8nfAr8vym/++MeV5himtKKsn853EtfX16WAXl97b76q5Mgun32iLMqAaaQvvrIAnpHmkqVjWCz0tg7H1F9e7tzNNBkZ9u37PaZf7OVnnsmKI/AuP7odx7ulcTweA84yr8uzDz3LXO6dyTPnqS2yd0bu34a/ns5WAniVgWZ5zWXcp425/7a1pQIA3pSGHse7tGdraQCoPAFuBOXJC0/88nTUywU=").play()},success_search=function(){var e=a.searching_shell_str_replaced.html();a.searching_shell_str_replaced.html(e.replace("failed reverse-i-search","reverse-i-search")),c()},cancel_search=function(e){o.html(a.searching_shell_str),a.searching_shell_str=0,a.searching_shell_str_replaced=0,a.searching=0,e&&r.val(String()),c()},this.searching_shell_str||(this.searching_shell_str=o.html()),this.searching_shell_str_replaced){var _=this.searching_shell_str_replaced.find("span[data-searching]"),d=_.text();if(t.key&&1===t.key.length){var p=t.ctrlKey||t.altKey||t.metaKey?String():t.key,b=d+p;b&&(a.pre_searched=b,localStorage.setItem(v___server_hostname+"-shell_command_last",b)),_.text(b);var x=run_search(_.text());update_search(x,p)}}else this.searching_shell_str_replaced=o.html("(reverse-i-search)`': "),c();if(8===t.keyCode){var y=this.searching_shell_str_replaced.find("span[data-searching]"),A=y.text(),k=A.slice(0,-1);A&&(a.pre_searched=k,localStorage.setItem(v___server_hostname+"-shell_command_last",b)),y.text(k);var w=run_search(y.text());return void update_search(w,1)}9!==t.keyCode&&13!==t.keyCode&&27!==t.keyCode&&37!==t.keyCode&&38!==t.keyCode&&39!==t.keyCode&&40!==t.keyCode||cancel_search()}else if(!i||27!==t.keyCode||n){if(i&&38===t.keyCode&&t.preventDefault(),i&&9===t.keyCode&&u.is(":focus")){if(t.preventDefault(),!v)return;var C=u.val().trim().split(/\s+(?!-)/),S=C.length,I=C[0]&&-1===C[0].indexOf("-")?0:1,V=C[1]&&-1===C[1].indexOf(":")?0:1,T=u.val().endsWith(" "),O="service"===$.trim(C[0]),z="systemctl"===$.trim(C[0]),E=$.trim(C[0])&&$.trim(C[0]).startsWith("chown"),Z=1!==C.length||!u.val().length||I||T?O||z?"services":E?"permissions":"lists":"commands";if(!$.trim(u.val()).length)return;var U=u.val(),q=f.find(".-shell-port-pwd").attr("data-pwd");if("services"===Z){if("systemctl"===(Z=O?"service":"systemctl")&&3!==C.length)return;U="service"==Z?$.trim(C[1]):$.trim(C[2]),"service"===$.trim(C[0])&&(2===C.length&&T||3===C.length)&&(U=3===C.length?"::::"+$.trim(C[1])+"::::"+$.trim(C[2]):"::::"+$.trim(C[1]))}if(E){if(1===S&&!T)return void u.val($.trim(C[0])+" ");V&&$.trim(C[1])?T||C[2]?(Z="lists",U=q+"/::::"+$.trim(C[2])):(Z="groups",U=$.trim($.trim(C[1]).split(":")[1])):(Z="users",U=$.trim(C[1]))}"lists"!==Z||E||(U=q+"/::::"+$.trim(C[1])+"::::"+$.trim(C[0])+"::::"+$.trim(C[2])),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_autocompletes=1&xhr-get_autocomplete_type="+Z+"&xhr-get_autocomplete_string="+U,data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.length;if(1===t)if("service"===Z||"systemctl"===Z||"lists"===Z){var a=$.trim(C[0]),i=$.trim(C[0])+" "+$.trim(C[1]);"lists"===Z?("cd"===a&&e[0].endsWith("/")||"cd"!==a)&&("cd"===a||"cat"===a?u.val(a+" "+e[0]):$.trim(C[2])?u.val(i+" "+e[0]):u.val(a+" "+e[0])):"service"!==a||2!==C.length&&3!==C.length?"systemctl"===a&&3===C.length&&u.val(a+" "+$.trim(C[1])+" "+e[0]):2===C.length?u.val(a+" "+e[0]+" "):3===C.length&&u.val($.trim(C[0])+" "+$.trim(C[1])+" "+e[0])}else E?V?T||C[2]?u.val($.trim(C[0])+" "+$.trim(C[1])+" "+e[0]):u.val($.trim(C[0])+" "+$.trim($.trim(C[1]).split(":")[0])+":"+e[0]+" "):u.val($.trim(C[0])+" "+e[0]+":"):u.val(e[0]+" ");else if(t>1){var n=""+g()+" "+Convert.htmlEscape(u.val())+"\n";m.find("pre").append(n),m.find("pre").append(Convert.htmlEscape(e.join("\n")+"\n")),h.scrollTop(h[0].scrollHeight)}setTimeout(function(){u.focus().mousedown()},10)}},error:function(){}})}}else l()}).on("keyup"+x,function(d){var p=this,h=e(),v=$(".modal-shell-config:visible").length;if(h&&!v){var b=0,x=0,y=0,A=$(".form-control.sidebar-search"),k=t(),w=$('select[name="sid"]').val(),C=0,S=t()?v___location_prefix+"/server-manager/shell.cgi":core.moduleAvailable("shell")?v___location_prefix+"/shell/index.cgi":0;if(!S)return;if((h||A.is(":focus"))&&8===d.keyCode&&(vars.shell.history=0),h?(b=$.trim(u.val()),x=1,y=1):(b=A.val(),x=void 0!==A.val(),y=0),(y||x&&(!b.trim()||b.trim().startsWith("!")))&&(38==d.keyCode||40==d.keyCode)){d.preventDefault(),d.stopPropagation(),void 0===localStorage.getItem(v___server_hostname+"-shell_commands")&&localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var I=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),V=I?I.length:0;if(0===vars.shell.history&&!b&&40==d.keyCode)return;if(0===vars.shell.history&&b&&38==d.keyCode)return void(C=1);if(vars.shell.history=40==d.keyCode?++vars.shell.history:--vars.shell.history,vars.shell.history<0&&38===d.keyCode?vars.shell.history=V-1:vars.shell.history>V&&(vars.shell.history=0),I&&I[vars.shell.history%V]){if(!$.isEmptyObject(I)&&(vars.shell.history==V&&38===d.keyCode||vars.shell.history==V&&40===d.keyCode||C))return h?u.val("").focus():A.val("").focus(),void(vars.shell.history=0);if(h){var T=I[vars.shell.history%V].replace(/^!/,"");u.val(Convert.htmlUnEscape(T)).focus()}}return}if(x&&b.trim().startsWith("!")&&27==d.keyCode)return d.preventDefault(),d.stopPropagation(),void A.val("").focus();if(x&&b.trim().startsWith("!")&&13==d.keyCode&&(A.addClass("_shell_form_"),d.preventDefault(),d.stopPropagation(),1==core.moduleAvailable("shell")||k)){u.val(b.trim().substring(1)).focus(),r();var O=$.Event("keyup");O.keyCode=13,u.trigger(O)}var z=f.find(".-shell-port-container"),E=f.find(".-shell-port-pwd"),Z=E.attr("data-pwd"),U=$.trim(u.val()),q=0,J=d.keyCode?d.keyCode:d.which,K=(d.altKey||d.ctrlKey)&&"l"==String.fromCharCode(d.which).toLowerCase();if(u.is(":focus")||check_selected_text()||(d.ctrlKey||d.altKey||d.shiftKey||d.metaKey||u.val(u.val()+String.fromCharCode(d.which).toLowerCase()),u.focus()),U&&13===J||K){if(z.find("[data-searching]").length)return;if(core.moduleAvailable("shell")||k){if(1===vars.shell.processing)return;vars.shell.processing=1,("clear"===U||"reset"===U||"exit"===U||K)&&(m.find("pre").html(""),o(u),"exit"==U&&l()),"cd ~"===U&&(q=U,U="cd "+E.attr("data-home"));var M=!1;if("cd /"===U&&(M="/"),"history -c"===U){localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var j=""+g()+" "+Convert.htmlEscape(U)+"\n";m.find("pre").append(j),o(u),z.scrollTop(z[0].scrollHeight);var Q=a(S,k,null,Z),R=new FormData($(Q)[0]);return void $.ajax({type:"POST",url:S+"?stripped=1&stripped=2",data:R,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(n(U),vars.shell.processing=0)},error:function(e){}})}if($.trim(U).startsWith("history -d")){var W=U.split(" ")[2];return W&&W.length&&Test.numeric(W)&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-shell-pop="+W+"&xhr-shell-cms="+k+"&xhr-shell-cmsid="+w,data:!1,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if("1"==e){var t=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands"));localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(t.filter(function(e,t){return t!==parseInt(W)-1})))}n(U)},error:function(e){}}),o(u),void(vars.shell.processing=0)}if(U.startsWith("history")){o(u);var D=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),P=D?D.length:0,N=P?P.toString().length:0;j=""+g()+" "+Convert.htmlEscape(U)+"\n";return $.each($(D),function(e,t){var a=e.toString().length,n="";for(i=0;i"+g()+" "+Convert.htmlEscape(u.val());return H.endsWith("/")||H.includes("../")?(F.append(L+" \nCan not open file editor. Unsupported path expression.\n"),void s(ae,u,z)):(edit_file(G[1],Z,[{call:"plugins.shell.toggle"},{call:"plugins.shell.done",params:[ae,u,z]},{call:"plugins.shell.close"}]),F.append(L+" \nOpening internal file editor. "+theme_spinner_small(void 0,"white command-shell-editor-spinner")+"\n"),_(1),z.scrollTop(z[0].scrollHeight),void n(U))}if("clear"===$.trim(U)||"reset"===$.trim(U)||"exit"===$.trim(U)||K)return vars.shell.processing=0,vars.shell.history=0,c(),u.focus(),void(!K&&n(U));var Y=a(S,k,U,Z),B=new FormData($(Y)[0]);u.attr("readonly","true");var ee=0,te=0,ae=".-shell-port-cmd",ie=!1,ne=0;p.shell_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var t=e.target.responseText;if(Test.strContains(t,v___page_signin_form))return v___available_session=0,void p.shell_request.abort();if(t&&t.length&&/[\x1B]/.test(t))return ne=1,void p.shell_request.abort();if(t&&te++,te>=1&&!ee)t&&($(ae).after("
"),ee++,$(".-shell-port-container").addClass("progressing"));else if(ee){var a=extract_content(t,"
","
",1);a&&(a=a.replace(/<(b)[^>]*>[^<]*(<\/b>)/i,""),ie=a,$(ae).next("pre").replaceWith(a)),z.scrollTop(z[0].scrollHeight)}},!1),e},type:"POST",url:S+"?stripped=1&stripped=2",data:B,dataType:"text",cache:!1,contentType:!1,processData:!1,complete:function(e){$(".-shell-port-container").removeClass("progressing");var t=e.status;if(e=e.responseText,Test.strContains(e,v___page_signin_form))v___available_session=0;else{var a="reboot"===$.trim(U),i="shutdown -h now"===$.trim(U);if(ne||200!==t||3!==get_access_level()&&(a||i)){var o=theme_language("shell_aborted");a?o="The system is rebooting..":i&&(o="The system has been powered off!");var r=200!==t?$.trim(extract_content(ie,"
","
",0))+(p.shell_request_interrupted?"\n^C":String()):o;return 0===t&&(r="Cannot establish connection to the host."),m.find("pre").append(""+g()+" "+Convert.htmlEscape(u.val())+" \n"+r+"\n"),n(U),void s(ae,u,z)}var l=g(),_=($(e).find("pre").length?$(e).find("pre"):$(e).filter("pre")).html().replace(/>>/g,">"+l),c=$(e).find('input[name="previous"][type="hidden"]').map(function(){return Convert.htmlEscape($(this).val())}).get();localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(c)),newPwd=$(e).find('input[name="pwd"]').val(),m.find("pre").append(q?_.replace(new RegExp(U,"g"),q):_),E.text(M||(newPwd==E.attr("data-home")?"~":newPwd.split("/").filter(function(e){return $.trim(e)}).slice(-1)[0])).attr("data-pwd",Convert.htmlEscape(M||newPwd)).attr("title",Convert.htmlEscape(M||newPwd)),"cd .."===U&&"/"===newPwd&&E.text("/"),s(ae,u,z)}},error:function(e){}})}}}}),h.on("click"+x,"[data-shell-config]",function(){3!==get_access_level()&&$.ajax({type:"GET",url:v___location_prefix+"/config.cgi?shell",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=$(e).find(".ui_form").find("table.sub_table_container"),a=v___location_prefix+"/config_save.cgi";t.find("a").contents().unwrap();var i=t.find("tbody"),n=$(e).find("tr th.table-title b").text();theme_alert(n,'
'+i[0].outerHTML+'
",!1,"md","info","cogs",'10 modal-shell-config" data-keyboard="false" data-backdrop="static',0),setTimeout(function(){$("[data-save-shell-config]").on("click",function(e){e.preventDefault();var t=$(this);if(!t.hasClass("disabled")){var i=$(".modal-shell-config"),n=i.find("form").serialize();t.addClass("disabled").find("i").replaceWith(theme_spinner_small(!1," ")),$.ajax({type:"POST",url:a,data:n,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:i.find('[data-dismiss="modal"]').trigger("click")},error:function(){}})}})},300)}}})}).on("click"+x,".-shell-port-close",function(){d()&&l()})},g=function(){return Convert.htmlEscape($(".-shell-port-type").text())};return{type:t,init:p,status:e,link:function(){d()?0!=settings_show_terminal_link&&$(".user-link.ported-console").removeClass("hidden"):$(".user-link.ported-console").addClass("hidden")},unlock:function(){vars.shell.processing=0,$('.-shell-port- input[data-command="true"]').removeAttr("readonly")},open:r,close:l,toggle:_,done:s,available:d,adjust:c,set:function(e){var t=$("body").find(".-shell-port-").find(".-shell-port-pwd"),a=t.attr("data-home");if("string"==typeof e){var i=((e=Convert.uriDecodeComponent(e))&&e.endsWith("/")?e.slice(0,-1):e).split("/").pop();i||(i="/",e="/"),2==get_access_level()&&(e=get_user_home()+e),e===a&&(i="~"),e=Convert.htmlEscape(e),t.attr("data-pwd",e).attr("title",e).text(i)}}}}(),plugins.favicon=function(){var e=function(e){a.badge(e),titlenotifier.set(e),a.lastNum=e},t=0;"object"==typeof a&&a.lastNum&&(t=a.lastNum);var a=new Favico({animation:"none"});return e(t),{set:e}}(),plugins.slider=function(){var test_visibility=function(){!0!==settings_side_slider_fixed||$(".mobile-menu-toggler:visible").length&&!vars.navigation_pinned||!$.support.spa||!0===settings_side_slider_fixed&&window.matchMedia("(max-width: 1365px)").matches?set_visibility(0):set_visibility(1)},set_visibility=function(e,t){if(1!==vars.slider_pinned||e||!$(".right-side-tabs i.fa2-collapse-right:visible").length){var a="body .right-side-tabs";"0"==get_server_data("access-level")&&(e?($(a+"-toggler").addClass("hidden"),$(a).css("right","0px").addClass("right-side-tabs-fixed"),settings_side_slider_enabled&&get_server_data("data-slider-fixed","1")):(settings_side_slider_enabled&&(t?$(a+"-toggler").removeClass("hidden").addClass("opened").css("right","300px"):$(a+"-toggler").removeClass("hidden opened").css("right","0")),t?$(a).css("right","0px"):$(a).css("right","-302px"),$(a).removeClass("right-side-tabs-fixed"),get_server_data("data-slider-fixed","0")))}},display_badges=function(){if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e="right-side-tab-notification-asterix",t="hidden hidden-force",a=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;plugins.favicon.set(a),a>0?($(".right-side-tabs-toggler button span.badge").removeClass(t).text(a),$("#right-side-tabs ."+e).removeClass(t).text(a)):($(".right-side-tabs-toggler button span.badge").addClass(t).text(0),$("#right-side-tabs ."+e).addClass(t).text(0))}},check_notifications=function(){var $current_localData_notifications={};$.each(localStorage,function(e,t){if("string"==typeof e&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1){var a=e.split("_")[1],i=JSON.parse(t),n=i.title,s=i.time,o=i.timestamp,r=i.message,l=i.readStatus,_=i.type,c=i.link,d=s+"_"+n;"csf_deny"===_&&(d=s+"_"+n.replace(/\W/g,"")+r.replace(/\W/g,"")),$current_localData_notifications[d]=a+"~~~~"+n+"~~~~"+s+"~~~~"+o+"~~~~"+r+"~~~~"+l+"~~~~"+_+"~~~~"+c,$('.list-group-item[id="'+a+'"][data-type="'+_+'"]').length&&$('.list-group-item[id="'+a+'"][data-type="'+_+'"] .list-group-item-heading small').text(moment.unix(s).fromNow())}});var package_message_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("package_message")>-1}).length,csf_remote_version_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("csf_remote_version")>-1}).length,authentic_remote_version_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("authentic_remote_version")>-1}).length,csf_title_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("csf_title")>-1}).length,keys=[];for(var key in $current_localData_notifications)$current_localData_notifications.hasOwnProperty(key)&&keys.push(key);$current_localData_notifications_sorted_keys=keys.sort(),$.each($current_localData_notifications_sorted_keys,function(i,v){var vx=$current_localData_notifications[v],$__id__=vx.split("~~~~")[0],$__data__title=vx.split("~~~~")[1],$__data__time=vx.split("~~~~")[2],$__data__timestamp=vx.split("~~~~")[3],$__data__message=vx.split("~~~~")[4],$__data__readStatus=vx.split("~~~~")[5],$__data__type=vx.split("~~~~")[6],$__data__link=vx.split("~~~~")[7];if("package_message"==$__data__type||"csf_remote_version"==$__data__type||"authentic_remote_version"==$__data__type||"csf_title"==$__data__type){var $__num=eval($__data__type+"_num");i+1<$__num&&($__data__readStatus=1)}$('.list-group-item[id="'+$__id__+'"][data-type="'+$__data__type+'"]').length||add_notification($__id__,$__data__title,$__data__time,$__data__timestamp,$__data__message,$__data__readStatus,$__data__type,$__data__link)})},remove_all_notifications=function(){$.each(localStorage,function(e,t){"string"==typeof e&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1&&delete localStorage[e]})},mark_notification_read=function(e,t,a,i){var n=JSON.parse(localStorage.getItem(v___server_hostname+"-notifications_"+e+"_"+t));n&&localStorage.setItem(v___server_hostname+"-notifications_"+e+"_"+t,JSON.stringify({title:n.title,time:n.time,timestamp:n.timestamp,message:n.message,readStatus:a,type:n.type,link:n.link})),i&&display_badges()},mark_group_notifications_read=function(e){var t="";e&&(t='[data-type="'+e+'"]'),$(".right-side-tabs .list-group-item"+t+":not(.no-notifications)").each(function(){$(this).addClass("opacity-0_3"),mark_notification_read($(this).attr("id"),$(this).data("type"),1,0)}).promise().done(function(){display_badges()})},add_notification=function(e,t,a,i,n,s,o,r){$(".right-side-tabs .list-group").prepend('
'+t+" "+moment.unix(a).fromNow()+"
"+n+"
"),$(".right-side-tabs-no-notifications").remove(),display_badges(),v___initial_load||mark_no_notifications()},mark_no_notifications=function(){var e=browser.detect.safari(1),t=e?2:0,a=function(){var e=theme_language("notification_none");$(".right-side-tabs .list-group").prepend('
'+e.toUpperCase()+"
"),$(".right-side-tabs-no-notifications").animate({opacity:"1"},175,function(){})};0===$(".right-side-tabs .list-group-item").length&&(e?setTimeout(function(){a()},2):a()),setTimeout(function(){display_badges()},175+t)},update_right_pane_favorites=function(){if("function"==typeof plugins.favorites.fetch){var e=plugins.favorites.fetch(),t=$("#right-side-tabs .no-favorites_data");$("#right-side-tabs .favorites-dcontainer .right_pane_favorites_link, #right-side-tabs .favorites-dcontainer .right_pane_favorites_num").remove(),e.length?($.each(e,function(e,t){var a=$("#right-side-tabs .favorites-dcontainer");get_server_data("webprefix")&&!t.link.includes("!edit")&&(t.link=get_server_data("webprefix")+t.link),a.append(''+(e+1)+'  '+t.title+"")}),t.addClass("hidden")):t.removeClass("hidden")}},sysinfo_update=function(){if(!$("body .modal.in").length){if(!e)var e=get_server_data("webprefix");if(0==v___user_level){var t=$("body").find("#system-status"),a=t.length?t[0]:0;$("#right-side-tabs-sysinfo .graph-container").length||$("#right-side-tabs .info-container").html(function(){$_____________got_rp__sys_dat=1;var e=core.moduleAvailable("package-updates"),t=core.moduleAvailable("proc")?"":" pointer-events-none",a=core.moduleAvailable("disk-usage")||core.moduleAvailable("quota")?"":" pointer-events-none",i=e?"":' class="hidden"',n=localStorage.getItem(v___server_hostname+"-sysinfo_package_message"),s=vars.local_storage?String():" hidden",o=$(localStorage.getItem(v___server_hostname+"-sysinfo_local_time")).attr("data-convertible-timestamp-full");return'
'+theme_language("notification_no_data").toUpperCase()+"
"}());var i=$(".right-side-tabs-dismiss .fa-reload");i.addClass("fa-spin-fastest cursor-na"),setTimeout(function(){i.removeClass("fa-spin-fastest cursor-na")},3e3),$.ajax({type:"GET",url:e+"/index.cgi/?xhr-info=1&webprefix="+get_server_data("webprefix"),data:!1,dataType:"json",success:function(t){Test.strContains(t,v___page_signin_form)?v___available_session=0:($.each(t[0],function(t,i){var n=$('#right-side-tabs [data-data="'+t+'"]');if(n=(n=n.add(n.prev("br"))).add(n.prev("strong")),null!=i?n.removeClass("hidden hidden-force"):n.addClass("hidden hidden-force"),"cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||(Test.numeric(i)?localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_stats",i):localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_stats","")),a){if($(a).find('span[data-id="sysinfo_'+t+'"]').html(i),"local_time"==t||"uptime"==t||"proc"==t){var s=$(a).find('span[data-id="sysinfo_'+t+'"]'),o=s.find("a").length?s.find("a"):s.find("span"),r=$(a).find('span[data-id="sysinfo_'+t+'"]').text();"local_time"==t?snippets.datetime.tictac(1,1):o&&o.length&&s.html(o.html(r))}if(page_sysinfo_sensor_update_label(),$(a).find('.piechart[data-charts="sysinfo_'+t+'"]').length){var l=$("body").find('.piechart[data-charts="sysinfo_'+t+'"]');l.length&&!isNaN(parseInt(i))&&l.data("easyPieChart").update(i)}"cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_seen",i),$(a).find(".modal-backdrop").remove()}if($__id__=moment().unix(),"cpu_percent"==t||"mem_percent"==t||"virt_percent"==t||"disk_percent"==t||"csf_title"==t||"csf_remote_version"==t||"authentic_remote_version"==t||"package_message"==t?localStorage.getItem(v___server_hostname+"-sysinfo_"+t)||localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i):i&&null!=i&&NaN!=i?localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i):localStorage.setItem(v___server_hostname+"-sysinfo_"+t,""),localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial")||localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",1),"authentic_theme_version"==t&&!localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_data"==t&&!localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_title"==t||"csf_data"==t||"csf_remote_version"==t||"authentic_remote_version"==t||"authentic_theme_version"==t||"package_message"==t){if("package_message"===t&&!core.curModuleFile("package-updates","update.cgi")){if((localStorage.getItem(v___server_hostname+"-sysinfo_"+t)!=i||1==localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial"))&&i&&i.indexOf("badge-danger")>-1){var _=theme_language("notifications_packages_updates"),c=$(i).html().replace(/badge-danger/g,"badge-success"),d=e+"/package-updates/index.cgi?mode=updates";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_package_message",JSON.stringify({title:_,time:$__id__,timestamp:$__id__,message:c,readStatus:0,type:t,link:d})),plugins.slider.notifications.dismiss("package_message"),localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i),localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",0),notifications(_,c,t,d)}else"package_message"===t&&localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i);$(i).find("i.badge:first-child").length||plugins.slider.notifications.dismiss("package_message")}var p=localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version");if(settings_sysinfo_theme_updates&&(0==localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&localStorage.removeItem(v___server_hostname+"-sysinfo_authentic_remote_version"),p&&localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&"authentic_remote_version"==t&&p-1&&1!=localStorage.getItem(v___server_hostname+"-sysinfo_csf_not_running")){var v=theme_language("notifications_firewall_danger"),b=theme_language("notifications_firewall_danger_message").replace("%v",moment.unix($__id__).format(config_portable_theme_locale_format_long));d=e+"/csf/index.cgi?action=lfdstatus";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_title",JSON.stringify({title:v,time:$__id__,timestamp:$__id__,message:b,readStatus:0,type:t,link:d})),plugins.slider.notifications.dismiss("csf_title"),localStorage.setItem(v___server_hostname+"-sysinfo_csf_not_running",1),notifications(v,b,"csf_remote_version",d)}else i&&-1===i.indexOf("label-danger")&&(plugins.slider.notifications.dismiss("csf_title"),localStorage.removeItem(v___server_hostname+"-sysinfo_csf_not_running"))}if("csf_deny"==t){var x=JSON.parse(i);$.each(x,function(a,i){var n=(i=i.split("|"))[0],s=i[1],o=i[2],r=i[3],l=(i[4],i[5],i[6],i[7]);if(l=l.replace("*Port Scan*",o&&r?'Port '+r+" scan":"Port scan"),!localStorage.getItem(v___server_hostname+"-allowed_trigger_"+(n+s.replace(/\./g,"0"))+"_csf_deny")){var _=theme_language("notifications_firewall_warning"),c=l+(o&&r?" ("+o+":"+r+")":""),d=e+"/csf/index.cgi?action=temp";localStorage.setItem(v___server_hostname+"-notifications_"+(n+s.replace(/\./g,"0"))+"_csf_deny",JSON.stringify({title:_,time:$__id__,timestamp:$__id__,message:c,readStatus:0,type:t,link:d})),localStorage.setItem(v___server_hostname+"-allowed_trigger_"+(n+s.replace(/\./g,"0"))+"_csf_deny",1),notifications(_,c,t,d)}})}if("cpu_percent"==t||"mem_percent"==t||"virt_percent"==t||"disk_percent"==t){var y=$("#right-side-tabs .graph-container-fw."+t);y=y.add(y.next("br")),null!=i?y.removeClass("hidden-force"):y.addClass("hidden-force")}if((localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats"))&&$("#right-side-tabs-sysinfo .graph-container").length){var A=!localStorage.getItem(v___server_hostname+"-sysinfo_"+t+"_stats"),k=$(".info-container .graph-container."+t);if(A?k.addClass("hidden").next("br").addClass("hidden"):k.removeClass("hidden").next("br").removeClass("hidden"),"cpu_percent"==t){var w=localStorage.getItem(v___server_hostname+"-sysinfo_cpu"),C=w?"("+w+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_cpu")).text(theme_language("global_cpu_load")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"% "+C),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"%")}if("mem_percent"==t){var S=localStorage.getItem(v___server_hostname+"-sysinfo_mem"),I=S?"("+S+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_mem")).text(theme_language("body_real")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"% "+I),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"%")}if("virt_percent"==t){var V=localStorage.getItem(v___server_hostname+"-sysinfo_virt"),T=V?"("+V+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_virt")).text(theme_language("body_virt")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"% "+T),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"%")}if("disk_percent"==t){var O=localStorage.getItem(v___server_hostname+"-sysinfo_disk"),z=O?"("+O+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_disk")).text(theme_language("body_disk")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"% "+z),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"%")}}if($('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]').html(i),"package_message"==t&&core.moduleAvailable("package-updates")){var E=i;E&&$('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]').html($(E).html($(E).html().split(",")[0])[0].outerHTML)}if("local_time"==t){var Z=$('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]'),U=Z.find("a").length?Z.find("a"):Z.find("span");U&&U.length&&U.html(U.next("span").detach()),settings_theme_make_date?snippets.datetime.tictac(1,1):Z.html(i)}if("cpu_temperature"==t){var q=0;$.each($(i).filter(".badge-cpustatus"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=n,o=$(this).text().indexOf("°C")>-1;"bg-warning"!=(a=$(this).text().indexOf("RPM")>-1?HTML.label.rpm(s):HTML.label.temperature(n,o))&&"bg-danger"!=a||(q=1),$("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus").length||$('strong[data-stats="cpu"] + br[data-stats="cpu"]').after(i.replace(/
| /gi,"")),$($("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus")[e]).html($(this).text()).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(a+"-dark")}).promise().done(function(){q||"undefined"!=typeof config_custom_force_display_cpu_sensors?$('.info-container [data-stats="cpu"]').removeClass("hidden"):$('.info-container [data-stats="cpu"]').addClass("hidden")})}if("hdd_temperature"==t){var J=0;$.each($(i).filter(".badge-drivestatus:not(.badge-cpustatus)"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=$(this).text().indexOf("°C")>-1;"bg-warning"!=(a=HTML.label.temperature(n,s))&&"bg-danger"!=a||(J=1),$("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)").length||$('strong[data-stats="drive"] + br[data-stats="drive"]').after(i.replace(/
| /gi,"")),$($("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)")[e]).html($(this).text()).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(a+"-dark")}).promise().done(function(){J||"undefined"!=typeof config_custom_force_display_drive_sensors?$('.info-container [data-stats="drive"]').removeClass("hidden"):$('.info-container [data-stats="drive"]').addClass("hidden")})}if("warning_si"==t){var K=$("#right-side-tabs .info-container .warning-list-data"),M=i.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/type='submit'/g,"formtarget='page' type='submit'").replace(/class='ui_submit/g,"class='ui_submit btn btn-default btn-xs").replace(/ui_form_end_submit" type="button"/g,'ui_form_end_submit" type="submit" formtarget="page"').replace(/ui_form_end_submit/g,"ui_form_end_submit btn-tiny");K.html(M),"
"===i&&K.empty(),plugins.dashboard.update.alerts(i)}if("extended_si"==t){K=$("#right-side-tabs .info-container .extended-list-data");var j=i.replace(/aria-expanded="true"/gi,'aria-expanded="false"').replace(/collapse in/gi,"collapse");opened_tabs=$("#extended_sysinfo .panel .in").map(function(){j=(j=j.replace('data-toggle="collapse" href="#'+this.id+'" aria-expanded="false" aria-controls="'+this.id+'"','data-toggle="collapse" href="#'+this.id+'" aria-expanded="true" aria-controls="'+this.id+'"')).replace('div id="'+this.id+'" class="panel-collapse collapse"','div id="'+this.id+'" class="panel-collapse collapse in"')}).promise().done(function(){K.html('
'+j);var e=$("#right-side-tabs .extended-list-data");e.find("div.panel-heading:not(#mount_disks_info-mount):not(#status_services-status):not(#status-virtual-server):not(#acl_logins-acl):not(#sysinfo-virtual-server):not(#quota-virtual-server):not(#bw-virtual-server)").parent().remove(),$.each(e.find("div.panel-heading .panel-title"),function(){var e=$(this).find("a"),t="true"!=$(this).find("a").attr("aria-expanded")?1:0,a=t?"+":"—";$(this).append(''+a+""),e.text(Convert.strUpFirst($.trim(e.text())))}),e.find(".panel.panel-default").detach().appendTo("#right-side-tabs #extended_sysinfo"),e.find("div.panel-body").find("img").remove(),e.find('input[type="submit"]').addClass("btn btn-default btn-xs"),e.find('input[type="submit"]').parents("form").attr("formtarget","page"),e.find('button[type="button"].ui_submit').addClass("btn btn-default btn-xs"),e.find('button[type="button"].ui_submit').parents("form").attr("formtarget","page");var t=e.find('[data-referrer="acl_logins"] .panel-body > table:first-child');t.removeClass().addClass("table table-striped table-hover"),t.wrap('
'),$("#extended_sysinfo .panel").on("show.bs.collapse",function(){$(this).find(".panel-title-status").removeClass("margined-right-2").text("—")}).on("hide.bs.collapse",function(){$(this).find(".panel-title-status").addClass("margined-right-2").text("+")})})}"collect_interval"==t&&(Test.numeric(i)?settings_side_slider_background_refresh_time=parseFloat(i):settings_side_slider_background_refresh_time=0),$.trim($(".info-list-data").text()).length&&setTimeout(function(){$("#right-side-tabs .is-sysinfo_data").removeClass("hidden"),$("#right-side-tabs .no-sysinfo_data").addClass("hidden")},100)}),sysinfo_replace_dismiss_buttons(),setTimeout(function(){plugins.slider.notifications.check()},3e3),snippets.datetime.locale())}})}settings_side_slider_enabled&&("number"==typeof iupdateTimer&&clearInterval(iupdateTimer),settings_side_slider_background_refresh_time>0&&(iupdateTimer=setInterval(function(){sysinfo_update()},6e4*settings_side_slider_background_refresh_time)))}};return document.addEventListener("DOMContentLoaded",function(){if($(document.body).on("click",".right-side-tabs-dismiss i.fa-reload, ._sync_sysinfo_.fa-reload",function(){if(!$(this).hasClass("cursor-na")){var e=core.moduleAvailable("virtual-server")?"virtual-server":"system-status",t=$(this);t.addClass("fa-spin-fastest cursor-na"),$.ajax({type:"GET",url:v___location_prefix+"/"+e+"/recollect.cgi",data:!1,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:("sysinfo.cgi"===v___location_file&&get_pjax_content(v___location_prefix+"/sysinfo.cgi"),sysinfo_update())},error:function(e){t.removeClass("fa-spin-fastest cursor-na"),plugins.messenger.post(''+theme_language("sysinfo_update_failed"),20,"error","sysinfoRecollect")}})}}),0==v___user_level&&$.support.spa){var e=localStorage.getItem(v___server_hostname+"-right-side-tab")?localStorage.getItem(v___server_hostname+"-right-side-tab"):"#right-side-tabs-sysinfo",t='
'+theme_language("notification_no_data").toUpperCase()+"
",a='
'+theme_language("notification_no_favorites").toUpperCase()+"
",i=String(),n=document.querySelector("aside");n&&n.style&&n.style.filter&&"nav"===settings_side_slider_palette&&(i="filter: "+n.style.filter);var s='';browser.detect.safari(1)?setTimeout(function(){$(document.body).append(s),test_visibility()}):($(document.body).append(s),test_visibility()),$('a[href="'+e+'"]:visible').length||$("#right-side-tabs ul.nav-tabs li a:visible").trigger("click"),$('#right-side-tabs .nav.nav-tabs a[data-toggle="tab"]').on("shown.bs.tab",function(e){var t=$(e.target).attr("href");localStorage.setItem(v___server_hostname+"-right-side-tab",t)}),$(document.body).on("click",'i[data-trigger="side_slider_pinned"]',function(e){e.stopImmediatePropagation();var t="1"==get_server_data("data-slider-fixed")?0:1;vars.slider_pinned=t,settings_side_slider_fixed=!settings_side_slider_fixed,set_visibility(t,void 0!==e.originalEvent?1:0),$(".dropdown.open.obj-settings .dropdown-toggle").dropdown("toggle"),$(window).resize()}).on("click",".right-side-tabs-favorites-ctl",function(e){$(".favorites-menu-outer").hasClass("hover")?$(".favorites-menu-close").trigger("click"):$(".user-link.favorites").trigger("click")}).on("click",'#right-side-tabs a:not([data-toggle="collapse"]):not([role="tab"]):not(.list-group-item)',function(e){$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}).on("click","#right-side-tabs .info-container .graph-container-fw",function(e){var t,a=core.moduleAvailable("proc"),i=$(this).attr("class"),n=i.indexOf("cpu_")>-1?"cpu":i.indexOf("mem_")>-1?"mem":i.indexOf("virt_")>-1?"virt":"disk";"cpu"==n&&a?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=n&&"virt"!=n||!a?"disk"==n&&core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==n&&core.moduleAvailable("quota")&&(t=v___location_prefix+"/quota/list_users.cgi?dir=%2F"):t=v___location_prefix+"/proc/index_size.cgi",t&&get_pjax_content(t),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}).on("click","#right-side-tabs .fa-dashboard",function(e){get_onbeforeunload_status()?(this.href=v___location_prefix+"/sysinfo.cgi",get_onbeforeunload_message(e,this)):get_pjax_content(v___location_prefix+"/sysinfo.cgi"),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}).on("click","#right-side-tabs [data-click-about]",function(e){theme_update_notice(0)}).on("click",".right-side-tabs-toggler:not(.hidden)",function(e){$(this).hasClass("opened")?($(this).removeClass("opened"),$(this).animate({right:"0"},175),$(".right-side-tabs").animate({right:"-302"},175)):($(this).addClass("opened"),$(this).animate({right:"300"},350),$(".right-side-tabs").animate({right:"0"},350))}),$(".right-side-tabs .tab-pane").each(function(){$(this).css("height",$(document.body).outerHeight()-13)}),$(".right-side-tabs").on("mouseover",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").removeClass("hidden"),!$(this).hasClass("opacity-0_3")&&$(this).find(".fa-clear-all").removeClass("hidden")}).on("mouseout",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").addClass("hidden"),$(this).find(".fa-clear-all").addClass("hidden")}),$(".right-side-tabs").on("click","[data-port-href]",function(e){e.preventDefault(),e.stopPropagation(),open($(this).data("port-href"))}),$(".right-side-tabs").on("click",'a.list-group-item[data-type="csf_deny"]',function(e){e.preventDefault(),e.stopPropagation(),$(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")||(get_bundle_csf(),$(document.body).append(''),$("form#csf_temporary_ip_entries").submit().remove(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"))}),$(".right-side-tabs").on("click contextmenu","a.list-group-item",function(e){e.preventDefault();var t=$(e.target).is(".fa.fa-trash-o"),a=$(e.target).is(".fa-clear-all"),i=$(e.target).is("[data-port-href]");if((t||a||i)&&(e.stopPropagation(),e.stopImmediatePropagation()),"contextmenu"==e.type)return $(this).find(".fa-clear-all").trigger("click"),e.preventDefault(),void e.stopPropagation();if(t||a||i){if($(e.target).is(".fa-clear-all"))return $(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),void mark_notification_read($(this).attr("id"),$(this).data("type"),1,1);$(this).animate({opacity:"0"},175,function(){$(this).remove(),localStorage.removeItem(v___server_hostname+"-notifications_"+$(this).attr("id")+"_"+$(this).data("type")),mark_no_notifications()})}else $(this).attr("href")&&$(this).attr("href").length&&"undefined"!=$(this).attr("href")&&"csf_deny"!=$(this).attr("data-type")?($(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),mark_notification_read($(this).attr("id"),$(this).data("type"),1,1),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"),get_pjax_content($(this).attr("href"))):($(this).addClass("opacity-0_3"),mark_notification_read($(this).attr("id"),$(this).data("type"),1,1))}),$(".right-side-tabs-dismiss i.fa-clear-all").click(function(e){mark_group_notifications_read(!1)}),$(".right-side-tabs-dismiss i.fa-trash").click(function(e){$(".right-side-tabs .list-group-item:not(.no-notifications)").animate({opacity:"0"},175,function(){$(this).remove(),remove_all_notifications(),mark_no_notifications()})}),$(".right-side-tabs .tab-pane").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1}),mark_no_notifications(),check_notifications()}else get_server_data("data-slider-fixed","0"),$(".right-side-tabs-toggler").addClass("hidden")}),{test:test_visibility,state:set_visibility,badge:display_badges,notifications:{check:check_notifications,dismiss:mark_group_notifications_read},update:{favorites:update_right_pane_favorites},data:{fetch:sysinfo_update}}}(),plugins.dashboard=function(){var e=".container-fluid .panel-group .panel:not(#system-status)";return document.addEventListener("DOMContentLoaded",function(){$(document.body).on("shown.bs.collapse hidden.bs.collapse",""+e,function(){var t=$(""+e),a={};$.each(t,function(){$target=$(this).find(".panel-heading"),id=$target.attr("id"),state=$target.next(".panel-collapse").hasClass("in"),a[id]=state}),localStorage.setItem(v___server_hostname+"-dashboard_panels",JSON.stringify(a))})}),{restore:function(){if(v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){var t=localStorage.getItem(v___server_hostname+"-dashboard_panels");if(null!=t){t=Object.entries(JSON.parse(t));for(var a=0;a"!==e?1:0,a=$("#system-status > .panel-body > .table.table-hover");a.length&&(a.nextAll().remove(),t&&a.after(e))}}}}(),plugins.favorites=function(){var e=function(){return $("#favorites-menu .favorites-menu-content li:not(.exclude)").length},t=function(){var e=[];return $.each($("#favorites-menu .favorites-menu-content li:not(.exclude) a"),function(){var t=$(this).text(),a=$(this).attr("href"),i=$(this).find("[data-product]").attr("data-product");favorite={},get_server_data("webprefix")&&!a.includes("!edit")?favorite.link=link_type_convert(a.replace(get_server_data("webprefix"),""),1):favorite.link=link_type_convert(a,1),favorite.title=t.trim(),favorite.icon="virtualmin"==i?i+"":i,e.push(favorite)}),e},a=function(){$.ajax({type:"POST",url:v___location_prefix+"/settings-favorites_save.cgi",data:{favorites:'{"favorites":'+JSON.stringify(t(),null,4).replace(/\\n/g,"\\n").replace(/\\'/g,"\\'").replace(/\\"/g,'\\"').replace(/\\&/g,"\\&").replace(/\\r/g,"\\r").replace(/\\t/g,"\\t").replace(/\\b/g,"\\b").replace(/\\f/g,"\\f")+"}"},success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:plugins.slider.update.favorites()},error:function(e){}}),sortable("#favorites-menu > div > nav > ul")},i=function(){var t="favorites-menu .favorites-menu-content";0===e()&&($("#"+t+" li.favorites-no-message").removeClass("hidden"),$("#"+t+" .favorites-title sup a").addClass("hidden"))},n=function(t,a,i){var n,s="favorites-menu .favorites-menu-content";0===e()&&($("#"+s+" li.favorites-no-message").addClass("hidden"),$("#"+s+" .favorites-title sup a").removeClass("hidden")),n='class="wbm-'+i+' wbm-sm"',$("#"+s+" li.favorites-title").after('')},s=function(e,t){$("#favorites-menu .favorites-menu-content").find('a[href="'+e+'"], a[href="'+link_type_convert(e,2)+'"]').parent("li").remove(),!e.startsWith("!edit")&&$("#headln2c > .favorites, .xcustom-favorites").addClass("fa-star-o").removeClass("fa-star text-warning"),t||(i(),a())};return document.addEventListener("DOMContentLoaded",function(){$(document.body).on("click",'.favorites-menu a.menu-exclude-link, .right_pane_favorites_link:not([href^="!edit"])',function(){var e=$(this).attr("href"),t=e.startsWith("!edit"),a=Test.strContains(e,"virtual-server/")?"dom":!!Test.strContains(e,"server-manager/")&&"id",i=Test.strContains(e,"gparent")?"gparent":a,n=URI.parseQuery(URI(e).query())[i],s=$('.switch-toggle input:not([id="open_'+("dom"===a?"virtualmin":"id"===a?"cloudmin":"webmin")+'"]):checked').length;a?setTimeout(function(){$("aside select").val()!=n&&("dom"===a?plugins.navigation.get.virtualmin(n):"id"===a&&plugins.navigation.get.cloudmin(n))},300):!t&&s&&plugins.navigation.get.webmin()}).on("click","#headln2c > .favorites:not(.dummy), .xcustom-favorites:not(.dummy), button.favorites-editor",function(e){e.preventDefault();var t,i=URI(v___location).resource(),o=function(e){var t=Convert.htmlEscape(e.prev("strong").text()).match(/([^]+)\s\(([^)]+)\)/),a=t[1],i=t[2]+"/"+a;return i=i.replace(/\/\//g,"/")},r=function(e){var t=theme_language("favorites_remove");e.removeClass("fa-star-o").addClass("fa-star text-warning").attr("aria-label",t),e.attr("data-original-title",t).tooltip("fixTitle")},l=function(e){var t=theme_language("favorites_add");e.addClass("fa-star-o").removeClass("fa-star text-warning").attr("aria-label",t),e.attr("data-original-title",t).tooltip("fixTitle")},_=$(this),c=_.is(".favorites-editor"),d=$(".jsPanel button.favorites-editor").not(_);if(_.hasClass("fa-star-o")){if(r(_),c){$.each(d,function(){o($(this))===o(_)&&r($(this))}),t=o(_);var p=_.prev("[data-file-container]").attr("title")||t;t&&n("!edit "+t,theme_language("file_editor")+" - "+p,"editor")}else{var g=$("#headln2c > span[data-main_title]").text().trim(),f=$(".has-sub.active").text().trim(),u=$(".sub_active").text().trim(),m=u.trim()!==g.trim(),h="",v="";($t_uri_virtualmin||$t_uri_cloudmin)&&(h=$("aside .ui_select option:selected").text()),$('body[class^="'+v___module_file_manager+'"]').length&&(v=(v=URI.parseQuery(URI(v___location).query()).path)?"["+v+"]":"[/]"),n(i,(h.length?h+" - ":"")+(f.length?f+"/":"")+(u.length?u+(g.length&&m?": ":""):"")+(m?g:"")+(v.length?" "+v:""),$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":"webmin")}a()}else l(_),c?($.each(d,function(){o($(this))===o(_)&&l($(this))}),(t=o(_))&&s("!edit "+t)):s(link_type_convert(i,1))}).on("click","#right-side-tabs .right_pane_favorites_link",function(e){$(".favorites-menu-outer.hover + .favorites-menu-close").trigger("click")}).on("click",".favorites-menu-close, nav.favorites-menu li a",function(){$(".favorites-menu-outer").removeClass("hover")}).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").removeClass("hidden")}).on("mouseleave","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").addClass("hidden")}),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) small",function(){$(this).find(".fa-times").removeClass("fa-times").addClass("fa-times-circle"),$(this).animate({"font-size":"0.7em","margin-top":"-2px","margin-left":"-1px"},160)}).on("mouseleave","li:not(.exclude) small",function(){$(this).find(".fa-times-circle").removeClass("fa-times-circle").addClass("fa-times"),$(this).animate({"font-size":"0.6em","margin-top":"-1px","margin-left":"0"},80)}),$("#favorites-menu .favorites-menu-content").on("click","li:not(.exclude) small .fa-times-circle",function(e){e.preventDefault(),e.stopPropagation(),s($(this).parents("a").attr("href"))}),"function"==typeof sortable&&$("#favorites-menu > div > nav > ul").length&&sortable("#favorites-menu > div > nav > ul",{items:":not(.favorites-title)",forcePlaceholderSize:!1}).on("sortupdate",function(){a()})}),{detect:function(e,t){i();var a,n,s,o=$("#favorites-menu .favorites-menu-content li:not(.exclude) a").map(function(e,t){return link_type_convert($(t).attr("href"),1)}).toArray();if(e?s=e.find(".favorites-editor"):(s=$("#headln2c > .favorites, .xcustom-favorites"),n=(a=link_type_convert(URI(v___location).resource(),1)).includes("index.cgi")?a.replace("index.cgi",""):a+"index.cgi"),t&&(t=t.replace(/\/\//g,"/")),a&&$.inArray(a,o)>-1||n&&$.inArray(n,o)>-1||o.includes("!edit "+t)){var r=theme_language("favorites_remove");s.addClass("fa-star").removeClass("fa-star-o").attr("aria-label",r),s.attr("data-original-title",r).tooltip("fixTitle")}else{var l=theme_language("favorites_add");s.removeClass("fa-star").addClass("fa-star-o").attr("aria-label",l),s.attr("data-original-title",l).tooltip("fixTitle")}},fetch:t,remove:function(e){var t=$("#favorites-menu li a.menu-exclude-link"),n=$('aside select option[value="'+e+'"]').attr("title");t&&t.length&&$.each(t,function(t,a){var i=$(a),o=i.attr("href"),r=i.find("span").text();o&&(o.includes(e)||r&&$.trim(r).startsWith(n))&&s(o,1)}).promise().done(function(){setTimeout(function(){i(),a()},300)})}}}(),plugins.update_notice=function(){var e="pointer-events-none bg-filter-grayscale-opacity50",t="bg-filter-blur-grayscale-opacity50";$(document.body).on("hide.bs.modal","#update_notice",function(){$(this).hasClass("r")?($(document.body).append('
'),$("div.update_notice_overlay").animate({opacity:1},480,function(){setTimeout(function(){theme_reload()},100)})):("0px"==___________content_initial_?$("#content").removeAttr("style"):$("#content").animate({"margin-left":___________content_initial_},320/1.5),$("aside").animate({"margin-left":0},320/1.5,function(){$(".right-side-tabs, .right-side-tabs-toggler").removeClass(e),setTimeout(function(){$(".container-fluid").removeClass(e+" "+t)},0)})),$("#update_notice").remove()}).on("show.bs.modal","#update_notice",function(){$("#update_notice").length;var a=$(this),i=$("aside").css("left");___________content_initial_=$("#content").css("margin-left"),________version_date_obj=a.find(".modal-body > h4:first-child"),________version_curr_text=________version_date_obj.text().split(/\s+/)[1],________version_first_text=$(".versionSeparator:last").text(),________multi_in_branch=$(".versionSeparator").length,_____version__x=________version_first_text+"..."+v___theme_version;var n=$(".versionSeparator"),s=theme_language("global_development_version");$.each(n,function(){$(this).attr("target","_blank")}),setTimeout(function(){$(".container-fluid").addClass(t)},0),$("#content").animate({"margin-left":0},320),$("aside").animate({"margin-left":i},320),$(".right-side-tabs, .right-side-tabs-toggler, .container-fluid").addClass(e);var o=$(this).find(".modal-body h4"),r=$(this).find(".modal-body h4:first");if(!$(this).find(".modal-body h4:first .diffctl").length){var l=new RegExp(RegExp.quote(________version_curr_text),"g");________multi_in_branch&&(o.replaceText(l,""+_____version__x+""),o.replaceText(/Version/,"Versions"));var _=$(this).find('.modal-body h4:contains("alpha"), .modal-body h4:contains("beta"), .modal-body h4:contains("RC")').length;if(o.length&&_){var c=$(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/);latest_release=parseFloat(c?c[0]:v___theme_version);var d=r.text().split("..."),p=0,g=$('a.versionSeparator[href*="releases"]:not(:empty)').first().text();d[1]&&(p=d[0].replace("Versions ",""),r.text(r.text().replace(p,g))),r.append(''),r.after(''+s+"")}else r.append('').append(''+________version_curr_text+"")}var f=[];$.each($(this).find('li:contains("Fix")'),function(){var e=$.trim($(this).text()),t="Fix bugs".replace(/\s/," other minor ");if("Fix bugs"===e||e===t){var a=$(this).parent("ul"),i=a.find("li").length,n=a.find("li:contains("+t+")").length;if(1===i||n){var s=a.prev("hr"),o=s.prev(".versionSeparator"),r=o.prev("ul").length,l=o.text();if(r){var _=a.next(".versionSeparator"),c=_.next().next("ul"),d=_.text();d&&(d=d.split("-")[0],_.text(d+"-"+l.split("-").pop()),o.remove(),s.remove(),a.remove(),n||c.find("li:contains(Fix bugs)").length||c.append("
  • Fix bugs
  • "))}}}if($(this).find(".label").length){$(this);var p=$(this),g=p.parent("ul"),u=p.find("a:not(.bctl)");u.length;________multi_in_branch?(f.push(u),1===g.find("li").length&&(g.prev("hr").prev("a").remove(),g.prev("hr").remove(),g.addClass("no-data")),p.remove()):(p.find("a:first").before(''),p.find("a.bctl").click(function(e){u.toggleClass("hidden"),p.find("a.bctl i").toggleClass("fa-minus-square-o")}),u.addClass("obj-popup hidden"))}}).promise().done(function(){if(________multi_in_branch&&!$(".bctl").length&&f.length){$(".modal-body h4[data-development]").prev("hr").before('
    • Fix bugs
    '),$(".modal-body span[data-bugs-container]").append(f);$(".modal-body span[data-bugs-container] a").sort(function(e,t){return parseInt($(t).text().replace("#",""))'),e.find("a.bctl").click(function(){t.toggleClass("hidden"),e.find("a.bctl i").toggleClass("fa-minus-square-o")}),t.addClass("obj-popup hidden");var i=$("div[data-bugs]"),n=i.find("a:not(.bctl)").length;!n&&i.prev(".hr-dashed").remove(),!n&&i.remove()}var s=$(".modal#update_notice h4 span");if(Test.strContains(s.text(),"...")&&Test.strContains(s.text(),"patch")){var o=parseInt(s.text().split("...")[1].substr(-1,1));o&&$.each($(".versionSeparator:not(.version_dev)"),function(e,t){e+1!=o?$(this).addClass("hidden"):$(this).text($(this).text()+"-"+theme_language("global_release").toLowerCase())})}})})},plugins.icons_row=function(){$(document.body).on("click",".inline-row input",function(e){$(this).is(":checked")?$(this).parents(".gl-icon-container").addClass("highlighted"):$(this).parents(".gl-icon-container").removeClass("highlighted")}).on("click contextmenu","div.icons-container, div.small-icons-container",function(e){var t=$(e.target).find("a[href]").first();if("click"===e.type&&$(e.target).is($(this))&&t.length)t.trigger("click");else{if("click"===e.type&&$(e.target).is(".gl-icon-select")&&!$.support.spa)e.preventDefault(),$(this).trigger("contextmenu");else if("contextmenu"===e.type){e.preventDefault(),$(this).find("input").is(":checked")?($(this).find("input").prop("checked",!1),$(this).removeClass("highlighted")):$(this).find("input").length&&($(this).find("input").prop("checked",!0),$(this).addClass("highlighted"));var a=$(e.target).is(".icon_link")?$(e.target).parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).is(".gl-icon-select")?$(e.target):$(e.target).is("img")?$(e.target).parent("a").parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).find(".fa-select, .fa-selected");a.hasClass("fa-select")?a.removeClass("fa-select").addClass("fa-selected"):a.removeClass("fa-selected").addClass("fa-select")}"function"==typeof db_check_selected&&db_check_selected()}}).on("click",".row.icons-row.vertical-align .icons-container, .row.icons-row.vertical-align .small-icons-container",function(){$(this).hasClass("forged-xx-skip")})},plugins.chooser=function(){var e=!1,t=!1,a=function(e){$(".mppopup .cspinner.hidden").removeClass("hidden"),$.ajax({type:"POST",url:e,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(t).filter(".table").html(),i=$(t).filter(".table").prev("b").html();i=o(i),a&&(a=a.replace(//gm,'').replace(//gm,'')),$(".mppopup .modal-body").html(i+''+a+"
    "),$v__mpp__g_gp=0,$(".mppopup_filter_input").focus(),$(".mppopup_filter_input").val("")}}})},i=function(e){return e.replace(/&file.*&chroot/,"&file="+Convert.uriEncodeComponent(($v__mpp__g_ol+"/").replace(/\/\/+/g,"/").replace(/:\//g,"://"))+"&chroot")},n=function(e,t){var a=e.prev('input[type="text"], input[name]');return a.is("input")||e.prev("textarea").length||e.prev("br").prev("textarea").length?a.length||a.is("input")||!t||(a=e.prev("textarea")).length||(a=e.prev("br").prev("textarea")):a=e.prev("span:not(.awradio)").find('input[type="text"]'),a},s=function(a,i,n){if(e&&(t=a),n){if($(".refInputData").is("textarea")){var s=$(".refInputData");s.val()?s.val(s.val()+"\n"+a.replace(/\/\/+/g,"/").replace(/:\//g,"://")):s.val(a.replace(/\/\/+/g,"/").replace(/:\//g,"://"))}else $(".refInputData").val(a.replace(/\/\/+/g,"/").replace(/:\//g,"://"));var o=$(".refInputData").parent("td").prev("td").find('input[type="radio"]'),r=$(".refInputData").parent("span").prev("span").find('input[type="radio"]'),l=$(".refInputData").prev("span").find('input[type="radio"]'),_=$(".refInputData").prev("select").find('option[value="*"]');r.length?r.trigger("click"):l.length?l.trigger("click"):_.length?_.parent("select").val("*").trigger("change"):o.trigger("click")}i&&$("body .mppopup").modal("hide")},o=function(e){e=$.url(e).attr("path").replace(/\/$/g,"").split("/");var t="",a="/",i=a,n=2==get_access_level()||3==get_access_level(),s=get_user_home();return n&&(i=s),$.each(e,function(e,o){if(""===o){var r="onclick=\"parentdir('"+i+"'); return false\"";n&&(r=String()),t+=""+(0==get_access_level()?'':'')+"\n"}else{r="onclick=\"parentdir('"+(a+=o+"/")+"'); return false\"";n&&!a.includes(s)&&(r=String()),t+=""+o+"\n"}}),'"+''};return document.addEventListener("DOMContentLoaded",function(){var r;r=document.body,$(r).on("dblclick",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){e.preventDefault()}).on("dblclick",'.mppopup a[onclick*="select("]',function(){$(".mppopup button[data-mppopup_confirm]").trigger("click")}).on("click",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();var t=this;if(t.clicks||(t.clicks=0),t.timer||(t.timer=null),t.clicks++,$data_mppopup_value.val($v__mpp__g_ol),1===t.clicks)t.timer=setTimeout(function(){if(t.clicks=0,"undefined"==typeof $v__mpp__g_gp&&($v__mpp__g_gp=0),$v__mpp__g_gp){var e=i($v__mpp__g_op);a(e)}else s($v__mpp__g_ol,0,0);$v__mpp__g_gp=0},vars.event.double_click_delay);else if(clearTimeout(t.timer),t.clicks=0,$v__mpp__g_olt){var n=i($v__mpp__g_op);a(n)}else s($v__mpp__g_ol,1,1)}).on("click",".mppopup button[data-mppopup_confirm]",function(){var e=$data_mppopup_value.val();s(e,1,1),core.curModule("custom")&&refInput.trigger("input")}).on("show.bs.modal",".mppopup",function(){v__mpp__ml_t__e=0,$data_mppopup_value=$(".mppopup input[data-mppopup_value]"),$('.mppopup input[data-role="tagsinput"]').tagsinput({onTagExists:function(e,t){t.hide().fadeIn(),v__mpp__ml_t__e=1}})}).on("shown.bs.modal",".mppopup",function(){var e=$("body .mppopup").find(".modal-head");$("body .mppopup").find(".modal-body"),$("body .mppopup").find(".modal-body table"),e.find(".mppopup_filter > input"),setTimeout(function(){$(".mppopup_filter_input").animate({opacity:1},0),$(".mppopup_filter_input").focus()},0)}).on("hidden.bs.modal",".mppopup",function(){refInput.removeClass("refInputData"),$('.mppopup input[data-role="tagsinput"]').tagsinput("destroy"),$("body .mppopup").remove(),$("button[data-mmclick].disabled, input[data-mmclick].disabled").removeClass("disabled").removeAttr("disabled")}).on("click",".mppopup_multi_done",function(){refInput.val($.trim($('.mppopup input[data-role="tagsinput"]').val().replace(/,/g," "))),$('.mppopup span[aria-hidden="true"]').trigger("click")}).on("keyup",".mppopup_filter_input",function(e){var t=e.which,a=$(".mppopup table tbody tr:visible"),i=a.find("td:first-child a");if(!$(".mppopup .breadcrumbx").length){if(13!=t||1!==a.length||e.shiftKey){if(13==t&&1===a.length&&e.shiftKey){i.trigger("click").trigger("dblclick");var n=$(".mppopup .mppopup_multi_done:visible");n.length&&setTimeout(function(){n.trigger("click")},240)}}else i.trigger("click");$(".mppopup table tbody tr.noresults").length||$(".mppopup table tbody").append(''+theme_language("global_no_results_found")+"");var s=$(".mppopup table tbody tr:visible:not(.noresults)"),o=$(".mppopup table tbody tr.noresults");s.length?o.addClass("hidden"):o.removeClass("hidden")}}).on("click","button[data-mmclick]:not(.disabled), input[data-mmclick]:not(.disabled)",function(a){a.preventDefault(),a.stopPropagation(),refInput=n($(this),1),e=!!+$(this).parent("._xcustom_file_select").length,custom_window={shown:function(){t=!1,!0},hidden:function(){!1,e=!1,$("._xcustom_file_select").remove()}};var i=$(this),s=refInput.val(),r=encodeURIComponent(s),l=$(this).attr("data-mmclick").match("window.open\\(['\"]*(.*?)(\\s*['\"]*,.*?)"),_=l[1].match(/(\w+\.[a-z]{3,4})/gi)[0].replace(".cgi","");if(i.addClass("disabled").attr("disabled","disabled"),l[1]){var c=l[1].replace("encodeURIComponent(ifield.value)","refInputCurrValSafe");c=c.replace('"+"',"").replace('"+',"").replace("refInputCurrValSafe",r);var d=function(t,a,i,n,o,r,l,c,d,p,g){var f;r||(r=String()),l||(l=String()),f=o?'":'";var u='";$(document.body).append(u),refInput.addClass("refInputData"),$("body .mppopup").on("show.bs.modal",function(){g&&"function"==typeof g&&g()}).on("shown.bs.modal",function(){p&&"function"==typeof p&&p(),e&&custom_window.shown()}).on("hidden.bs.modal",function(){e&&custom_window.hidden()}).modal("show")},p=function(e){core.curModule("cluster-useradmin")&&(e[1].startsWith("my_user_chooser")||e[1].startsWith("my_group_chooser"))?$v__mpp__g_op=v___location_prefix+"/useradmin/"+e[1]:e[1].startsWith("/")?$v__mpp__g_op=e[1]:$v__mpp__g_op="/"+e[1]},g=String(),f='form[action*="backup_sched.cgi"], form[action*="save_newquotas.cgi"], form[action*="save_validate.cgi"]';"cron_chooser"===_&&(g="cron_chooser.cgi?complex="+$(f).find('[name="enabled_hidden"], [name="sched_hidden"]').val()),$.ajax({type:"POST",url:g||c,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e,a=e.match(''+i+"",0,0,refInput,1,"modal-lg","modal-no-header",1,1,function(){$(".popup_cron_chooser form").on("submit",function(e){e.preventDefault(),e.stopPropagation();var t=$(this),a=$(f),i=t.parents(".modal.mppopup.in"),n=t.serialize();$.ajax({type:"POST",url:$(this).attr("action"),data:n,dataType:"text",success:function(e){var t=e.match(/top\.opener\.hfield\.value\s*=\s*"(.*?)"/),n=e.match(/top\.opener\.cfield\.value\s*=\s*"(.*?)"/);n&&refInput.val(n[1]),t&&a.find('[name="enabled_hidden"], [name="sched_hidden"]').val(t[1]),i.modal("hide")}})})},function(){page_radios_evolve('.popup_cron_chooser input[type="radio"]:not(.iawobject)')})}else if($.isArray(a)&&a[1]&&-1===a[1].indexOf("&multi=1"))p(a),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(t).filter(".table").html(),i=$(t).filter(".table").prev("b").html(),n=o(i);0===$(a).find("td").length&&(a=(a=a.replace("thead","tbody")).replace("",''+theme_language("datatable_semptydirectory")+"")),(t=n+''+a+"
    ")&&(t=t.replace(//gm,'').replace(//gm,'')),d(t,0,0,refInput,0)}}});else if($.isArray(a))p(a),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(t).filter("table").html();d(t=''+a+"
    ",0,0,refInput,1)}}});else{if($.isArray(a)&&-1===a[1].indexOf("&multi=1"))return;i=t;var n=$(i).filter("table").html();d(''+n+"
    ",0,0,refInput,0)}}}})}else $(this).removeClass("disabled"),$(this).attr("onclick",$(this).attr("data-mmclick")).removeAttr("data-mmclick"),$(this).trigger("click")})}),{target:n,file:function(a){var i=String();!a&&(a={}),a.file&&(i=a.file);var n='';if($("body").append(n),$(document).find("._xcustom_file_select button[data-custom-chooser]").trigger("click"),!1!==a.resolve)return new Promise(function(a){setTimeout(function(){var i=setInterval(function(){e||(clearInterval(i),a(t),t=!1)},100)},10)})}}}(),plugins.navigation=function(){document.addEventListener("DOMContentLoaded",function(){n(),o(),$("aside").on("click",".select2-container .select2-selection__arrow b",function(e){e.preventDefault(),e.stopPropagation()}).on("click",'a[href*="/file/"], a[href*="history.cgi"]',function(e){e.preventDefault(),e.stopPropagation(),window.open($(this).attr("href"),"_blank")}).on("contextmenu",".switch-toggle label",function(e){e.preventDefault();var t=$(this).attr("for").replace("open_","");if($(this).prev("input").is(":checked")){var a=v___location_href;set_server_theme_temp_data("goto",link_type_convert(a,1)),setTimeout(function(){theme_open_new_tab(a)},200)}else if("virtualmin"===t||"cloudmin"===t){var i;i="cloudmin"===t?"/server-manager/index.cgi":"/virtual-server/index.cgi";var n=link_type_convert(i,2);set_server_theme_temp_data("goto",link_type_convert(n,1)),setTimeout(function(){theme_open_new_tab(n)},200)}else if("webmail"===t){var s=v___location_prefix+"/mailbox/index.cgi?"+$__theme_navigation;set_server_theme_temp_data("goto",link_type_convert(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}else{s=v___location_prefix+"/sysinfo.cgi?"+$__theme_navigation;set_server_theme_temp_data("goto",link_type_convert(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}}).on("click",".switch-toggle input.dynamic",function(e){if(get_onbeforeunload_status()){e.preventDefault();var t=$(".switch-toggle input:checked").attr("id");get_onbeforeunload_message([],{href:"::switch::"+t})}else"open_thirdlane"!=$(this).attr("id")?(d($(this).attr("id").replace("open_","")),"open_dashboard"!=$(this).attr("id")?get_navigation_and_content($(this).attr("id").replace("open_",""),0,0):get_pjax_content(v___location_prefix+"/sysinfo.cgi")):location.href=v___location_prefix+"/asterisk/index.cgi"}).on("focus",".sidebar-search",function(){$("body").hasClass("loading-bg")?$(this).blur():l("c",!1)}).on("blur",".sidebar-search",function(){setTimeout(function(){l("c",!0)},150)}).on("click",'.navigation a[target="page"], .user-links a[target="page"]',function(){s()}).on("click",".navigation > li .navigation_external_link",function(e){e.preventDefault(),e.stopPropagation(),b=$(this),window.open(b.attr("href"),"_blank")}).on("click",".navigation > li:not('.sub-wrapper'):not('.menu-container'):not('.navigation_external'):not([data-linked])",function(e){if(e.preventDefault(),e.stopPropagation(),v___blocked_navigation=1,"undefined"==typeof $processing&&($processing=!1),!$processing){$processing=!0;var t=$("a",this).attr("href"),a=$("a",this).attr("target"),i=$(this);a&&$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$.when($("#sidebar .navigation > li").each(function(){var e=$(this),t=e.find("a").is("[data-has-sub-link]");e.is(i)||(e.removeClass("active"),"#search"!=e.find("a").attr("href")&&t&&$(e.find("a").attr("href")).slideUp(175))})).done(function(){i.hasClass("active")?i.removeClass("active"):"#hide"!=t&&!a&&i.addClass("active"),setTimeout(function(){$(t).is(":visible")&&"#hide"!=t&&!a?i.addClass("active"):i.removeClass("active"),$processing=!1},350),$(t).slideToggle(175)}),"#search"==t&&$('#sidebar input[name="search"]').focus()}}).on("click",".navigation > li > ul.sub > li:not('.menu-container')",function(e){if(!e.target||!$(e.target).is("li")){var t="MacIntel"===window.navigator.platform?1:0;if(!(!t&&e.ctrlKey||t&&e.metaKey)){var a=$(this);$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$("#webmin_search_form").find('input[name="search"]').val(""),a.addClass("sub_active").append('')}}}).on("click",'a[data-refresh="true"]',function(e){e.preventDefault(),page_refresh()}).on("focus",".form-control.sidebar-search",function(e){$(".__logo").addClass("inited"),e.preventDefault(),e.stopPropagation(),vars.shell.history=0}).on("keydown","#webmin_search_form",function(e){var t=$(this).find("input.sidebar-search"),a=t.val();$("body").find(".-shell-port-");if(a&&13===e.keyCode)if(e.preventDefault(),a.startsWith("!"))core.moduleAvailable("shell")&&plugins.shell.open(a);else{$(this).find('input[name="mod"], input[name="title"]').remove(),"virtual-server"!==h()&&"server-manager"!==h()||$("").attr({type:"hidden",name:"mod",value:h()}).appendTo($(this));var i=h(1),n=theme_language("search_in_"+("mailbox"===i?"usermin":i));n=n||theme_language("filemanager_context_search"),$("").attr({type:"hidden",name:"title",value:n}).appendTo($(this));var s=$(this).attr("action")+"?"+$(this).serialize();get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:s}):(get_pjax_content(s),t.val(""))}}).on("click","[data-collapse-trigger]",function(e){e.stopImmediatePropagation();var t="1"==get_server_data("data-navigation-collapsed")?0:1;vars.navigation_pinned=t,settings_navigation_always_collapse=!settings_navigation_always_collapse,settings_navigation_always_collapse?(get_server_data("data-navigation-collapsed",1),$(".mobile-menu-toggler").removeClass("visible-xs"),s(1,void 0!==e.originalEvent?1:0)):(get_server_data("data-navigation-collapsed",0),$(".mobile-menu-toggler").addClass("visible-xs")),setTimeout(function(){page_resized()},0),$(window).resize()}).on("click",".user-links > li.favorites",function(e){$(".favorites-menu-outer").addClass("hover")}).on("click",".user-link.palette-toggle",function(e){theme_toggle_night_mode()}).on("click",".user-link.ported-console",function(e){plugins.shell.available()&&plugins.shell.open()}).on("click",'li[data-linked] a[href="'+v___location_prefix+'/shell/"], a[href="'+v___location_prefix+'/server-manager/shell.cgi"], a[href*="shell=1"]:not(a[href*="login.cgi"])',function(e){e.preventDefault(),e.stopPropagation(),plugins.shell.open()}).on("click",".__logout-link",function(e){progress.start(),get_server_theme_temp_data("goto",0)}).mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1,callbacks:{onScroll:function(){$(".mobile-menu-toggler").is(":visible")||($(".form-control.sidebar-search").blur(),$("aside select")&&$("aside select").length>0&&$("aside select").hasClass("select2-hidden-accessible")&&$("aside select").select2("close"))}}})});var e=function(){var e=".navigation";$(e+" li.has-sub").removeClass("sub_active"),$(e+" > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$(e+" > li > ul.sub > li").removeClass("sub_active").find("span.current").remove(),$(e+" > li.has-sub").removeClass("active"),$(e+" > li > ul.sub").hide(),$(e+" > li > a > i.fa.fa-folder-open-o").removeClass("fa-folder-open-o")},t=function(t,a){if(Test.arrContains(["webmin_search.cgi","settings-user.cgi","settings-editor_favorites_read.cgi"],v___location_file))e();else if(!v___blocked_navigation){if(void 0===a){var i=1,n=0,s=$('.navigation a[href*="'+v___location_path+'"]:not([data-parent-hidden]):first');$('.navigation a[href="'+v___location_resource+'"]:not([data-parent-hidden]):first, .navigation a[href*="'+link_type_convert(v___location_path,2)+'"]:not([data-parent-hidden]):first').length?(t=v___location_resource,n=1):$('.navigation a[href^="'+v___location_resource+'"]:not([data-parent-hidden]):first').length?(t=v___location_resource,i=0):Test.strContains(v___location_file,"cgi")&&s.length&&(t=s.attr("href"),i=0,"save_log.cgi"===v___location_file&&Test.strContains(v___location_query,"error")&&Test.strContains(t,"_log")&&(Test.strContains(t,"file=")||Test.strContains(t,"extra="))&&(t=$('.navigation a[href*="'+v___location_path+'"][href*="error"]:not([data-parent-hidden]):first').attr("href")));t=t?t.replace("/edit_users.cgi","/list_users.cgi").replace("/edit_user.cgi","/list_users.cgi").replace("/edit_alias.cgi","/list_aliases.cgi").replace("/edit_database.cgi","/list_databases.cgi").replace("/save_database.cgi","/list_databases.cgi").replace("/edit_script.cgi","/list_scripts.cgi").replace("/script_form.cgi","/list_scripts.cgi"):t;!i||"config.cgi"!==v___location_file&&"uconfig.cgi"!==v___location_file||(t=$t_uri_virtualmin?v___location_prefix+"/config.cgi?virtual-server":$t_uri_cloudmin?v___location_prefix+"/config.cgi?server-manager":$t_uri_webmail?v___location_prefix+"/uconfig.cgi?mailbox":v___location_prefix+"/"+v___location_query+"/");var o=$t_uri_webmin||$t_uri_usermin;if(!t&&o)if(Test.strContains(v___location_file,".cgi")&&!Test.strContains(v___location_file,"sysinfo.cgi"))t=v___location_path.replace(v___location_file,""),page_extended()&&(t=v___location_prefix+"/webmin/");else if(!t){var r=new RegExp("^"+v___location_prefix,"i");t=get_server_data("data-uri").replace(r,"").split("/").filter(function(e){return 0!==e.length})[0],t=v___location_prefix+"/"+t}targeted_menu_link=n?$('.navigation a[href="'+t+'"]:not([data-parent-hidden]):first, .navigation a[href="'+link_type_convert(t,2)+'"]:not([data-parent-hidden]):first'):$('.navigation a[href^="'+t+'"]:not([data-parent-hidden]):first'),targeted_menu_link.length&&e()}else targeted_menu_link=$('.navigation a[href^="'+t+'"]:not([data-parent-hidden]):first'),targeted_menu_link.length&&e();targeted_menu_link.parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('').parent("ul.sub").show().parent("li:not(.menu-exclude):not(.user-link)").prev("li").addClass("active")}},a=function(){$(".mCSB_container, .mCSB_dragger").css("top","0"),!$("#_menu_loader").length&&$("body ul.navigation").before(''),$("body aside .mCSB_scrollTools, body ul.navigation, body ul.user-links").css("visibility","hidden"),$("aside ul.user-html").addClass("invisible")},i=function(){$("aside ul.user-html").removeClass("invisible"),$("body aside .mCSB_scrollTools, body ul.navigation, body ul.user-links").css("visibility","visible"),$("#_menu_loader").remove(),o(),bind_sameorigin(1),theme_to_new_tab()},n=function(){"none"==$("aside").css("transform")&&"1"!=$("html").attr("data-navigation-collapsed")&&($("aside").transition({x:settings_leftmenu_width},437.5,function(){$(".__logo")&&"none"==$(".__logo").css("transform")&&!$(".mobile-menu-toggler:visible").length&&$(".__logo").transition({y:"-140px"},262.5)}),setTimeout(function(){$(".switch-toggle").css("display","table")},1))},s=function(e,t){var a="mobile-menu-toggler",i=$(quirks.active_element()).is('input[name="settings_navigation_always_collapse"]');if(e&&(i=1),t)return $("."+a).addClass("selected").find("button").addClass("btn-primary").removeClass("btn-default"),void $("."+a).css("transform","translate("+settings_leftmenu_width+"px, 0px)");"function"==typeof jQuery().transition&&$("."+a+":visible").length&&$("."+a).attr("style")&&-1==$("."+a).attr("style").indexOf("ease")&&($(".__logo")&&$(".__logo").transition({y:0},262.5),$("aside, ."+a).transition({x:0},i?0:175,function(){$("."+a).removeClass("selected"),$(".switch-toggle").css("display","none"),$("aside").addClass("hidden-xs")}))},o=function(e){vars.navigation.select.back=!1,$(".form-control.sidebar-search").is(":focus")||$.each($("aside select > option"),function(){var e=$(this).text().match(/^\s{0,4}/)[0].length,t=$(this).text();settings_leftmenu_vm_cm_dropdown_icons&&(4===e&&-1===t.indexOf("↱")?$(this).html("    ↱ "+t.replace(/\s/g,"")):2===e&&-1===t.indexOf("↴")&&$(this).html("  ↴ "+t.replace(/\s/g,"")))}).promise().done(function(){var t=$("aside select");if(t.removeAttr("id"),t.length){t.removeAttr("onchange disabled"),t.data("select2")&&t.select2("destroy"),t.unbind("select2:select"),t.select2({minimumResultsForSearch:3});t.data("select2");e&&t.select2("open"),t.on("select2:selecting",function(){t.data("previous-value",$(this).val())}),t.on("select2:select",function(e){var t=e.currentTarget.value;"dom"===e.currentTarget.name?get_onbeforeunload_status()?(vars.navigation.select.back=!0,get_onbeforeunload_message(e,this,{"plugins.navigation.get.virtualmin":[t],get_default_virtualmin_content:[t]})):(g(t),get_default_virtualmin_content(t)):"sid"===e.currentTarget.name&&(get_onbeforeunload_status()?(vars.navigation.select.back=!0,get_onbeforeunload_message(e,this,{"plugins.navigation.get.cloudmin":[t],get_default_cloudmin_content:[t]})):(f(t),get_default_cloudmin_content(t)))}),t.on("select2:open",function(e){$.each($("select > option"),function(){if($(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1){var e=$(this);setTimeout(function(){$("body").find('li[id$="'+e.attr("value")+'"]').attr("style","color: #"+(v___theme_night_mode_enabled?"9a5150":"e97471")+" !important;")},1)}}),$("body").find(".select2-container:not(.select2), "+v___class_select2_leak).addClass("select2-aside")}),t.on("select2:closing",function(e){$("body").find(".select2-container, "+v___class_select2_leak).removeClass("select2-aside")}),1===$("aside select option").length&&($(".select2 span").css("cursor","default"),$(".select2 .select2-selection__arrow").remove(),t.on("select2:open",function(){$(".select2-container .select2-dropdown").css("opacity","0")})),$.each($("aside select > option"),function(){$(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1&&$(".select2-selection > .select2-selection__rendered").text().trim()==$(this).text().trim()&&$(".select2-selection > .select2-selection__rendered").attr("style","color: #"+(v___theme_night_mode_enabled?"9a5150":"e97471")+" !important;")})}})},r=function(e,t){var a=$("aside select");a.val(e).trigger("change"),t&&a.trigger("select2:select")},l=function(e,t){var i=function(e){return e&&(e.includes("http://")||e.includes("https://")||e.includes("ftp://")||e.includes("ftps://"))?1:0};if("c"!=e||($(".autocomplete-suggestions").remove(),$(".form-control.sidebar-search").removeAttr("disabled"),$(".form-control.sidebar-search").autocomplete("dispose"),!get_onbeforeunload_status()&&$(".form-control.sidebar-search").val(""),!t)){var n={},o="li:not(.menu-exclude):not(.user-link)";$.each($(o+' > ul[id^="global_"].sub > '+o+' > a, ul.navigation > [data-after] > a, ul.navigation > li > a[href*="virtual-server/index.cgi"], ul.navigation > li > a[href*="server-manager/index.cgi"]'),function(){var e=$(this).attr("href"),t=i(e),a=("/"==e.substring(0,1)?"":"/")+e;t&&(a=e),n[a]=$.trim($(this).text())}),$('li > a[target="page"][data-href="/virtual-server/index.cgi"], '+o+' > a[target="page"][data-href="/sysinfo.cgi"], '+o+' > a[target="page"][data-href="/virtual-server/pro/history.cgi"], '+o+' > a[target="page"][data-href="/server-manager/one_history.cgi"], '+o+' > a[target="page"][data-href="/server-manager/history.cgi"], '+o+' > a[target="page"][data-href="/mailbox/list_folders.cgi"], '+o+' > a[target="page"][data-href="/mailbox/list_ifolders.cgi"], '+o+' > a[target="page"][data-href="/mailbox/list_addresses.cgi"], '+o+' > a[target="page"][data-href="/filter/edit_forward.cgi"], '+o+' > a[target="page"][data-href="/filter/edit_auto.cgi"], '+o+' > a[target="page"][data-href="/filter/edit_auto.cgi"], '+o+' > a[target="page"][data-href="/filter/"], '+o+' > a[target="page"][data-href="/mailbox/edit_sig.cgi"]').each(function(){n[$(this).attr("data-href")]=$.trim($(this).text())});var l=$.map(n,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:m()}}}),c={};(core.curModule("custom")||v___location_path==v___location_prefix+"/backup-config/"||v___location_path==v___location_prefix+"/backup-config/index.cgi"||v___location_path==v___location_prefix+"/usermin/"||v___location_path==v___location_prefix+"/usermin/index.cgi"||v___location_path==v___location_prefix+"/webmin/"||v___location_path==v___location_prefix+"/webmin/index.cgi"||v___location_path==v___location_prefix+"/acl/"||v___location_path==v___location_prefix+"/acl/index.cgi"||v___location_path==v___location_prefix+"/init/"||v___location_path==v___location_prefix+"/init/index.cgi"||v___location_path==v___location_prefix+"/mount/"||v___location_path==v___location_prefix+"/mount/index.cgi"||v___location_path==v___location_prefix+"/quota/"||v___location_path==v___location_prefix+"/quota/index.cgi"||v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"||v___location_path==v___location_prefix+"/inittab/"||v___location_path==v___location_prefix+"/inittab/index.cgi"||v___location_path==v___location_prefix+"/logrotate/"||v___location_path==v___location_prefix+"/logrotate/index.cgi"||v___location_path==v___location_prefix+"/mailcap/"||v___location_path==v___location_prefix+"/mailcap/index.cgi"||v___location_path==v___location_prefix+"/pam/"||v___location_path==v___location_prefix+"/pam/index.cgi"||v___location_path==v___location_prefix+"/proc/"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"||v___location_path==v___location_prefix+"/cron/"||v___location_path==v___location_prefix+"/cron/index.cgi"||v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi"||v___location_path==v___location_prefix+"/useradmin/"||v___location_path==v___location_prefix+"/useradmin/index.cgi"||v___location_path==v___location_prefix+"/apache/"||v___location_path==v___location_prefix+"/apache/index.cgi"||v___location_path==v___location_prefix+"/bind8/"||v___location_path==v___location_prefix+"/bind8/index.cgi"||v___location_path==v___location_prefix+"/dhcpd/"||v___location_path==v___location_prefix+"/dhcpd/index.cgi"||v___location_path==v___location_prefix+"/dovecot/"||v___location_path==v___location_prefix+"/dovecot/index.cgi"||v___location_path==v___location_prefix+"/ldap-server/"||v___location_path==v___location_prefix+"/ldap-server/index.cgi"||v___location_path==v___location_prefix+"/virtualmin-nginx/"||v___location_path==v___location_prefix+"/virtualmin-nginx/index.cgi"||v___location_path==v___location_prefix+"/fetchmail/"||v___location_path==v___location_prefix+"/fetchmail/index.cgi"||v___location_path==v___location_prefix+"/mysql/"||v___location_path==v___location_prefix+"/mysql/index.cgi"||v___location_path==v___location_prefix+"/mysql/edit_dbase.cgi"||v___location_path==v___location_prefix+"/postgresql/"||v___location_path==v___location_prefix+"/postgresql/index.cgi"||v___location_path==v___location_prefix+"/postgresql/edit_dbase.cgi"||v___location_path==v___location_prefix+"/postfix/"||v___location_path==v___location_prefix+"/postfix/index.cgi"||v___location_path==v___location_prefix+"/procmail/"||v___location_path==v___location_prefix+"/procmail/index.cgi"||v___location_path==v___location_prefix+"/proftpd/"||v___location_path==v___location_prefix+"/proftpd/index.cgi"||v___location_path==v___location_prefix+"/mailboxes/"||v___location_path==v___location_prefix+"/mailboxes/index.cgi"||v___location_path==v___location_prefix+"/mailboxes/list_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/"||v___location_path==v___location_prefix+"/mailbox/index.cgi"||v___location_path==v___location_prefix+"/samba/"||v___location_path==v___location_prefix+"/samba/index.cgi"||v___location_path==v___location_prefix+"/spam/"||v___location_path==v___location_prefix+"/spam/index.cgi"||v___location_path==v___location_prefix+"/squid/"||v___location_path==v___location_prefix+"/squid/index.cgi"||v___location_path==v___location_prefix+"/sshd/"||v___location_path==v___location_prefix+"/sshd/index.cgi"||v___location_path==v___location_prefix+"/webalizer/"||v___location_path==v___location_prefix+"/webalizer/index.cgi"||v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"||v___location_path==v___location_prefix+"/htaccess-htpasswd/"||v___location_path==v___location_prefix+"/htaccess-htpasswd/index.cgi"||v___location_path==v___location_prefix+"/status/"||v___location_path==v___location_prefix+"/status/index.cgi"||v___location_path==v___location_prefix+"/net/"||v___location_path==v___location_prefix+"/net/index.cgi"||v___location_path==v___location_prefix+"/tcpwrappers/"||v___location_path==v___location_prefix+"/tcpwrappers/index.cgi"||v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"||v___location_path==v___location_prefix+"/fail2ban/"||v___location_path==v___location_prefix+"/fail2ban/index.cgi"||v___location_path==v___location_prefix+"/nis/"||v___location_path==v___location_prefix+"/nis/index.cgi"||v___location_path==v___location_prefix+"/passwd/"||v___location_path==v___location_prefix+"/passwd/index.cgi")&&$($(".container-fluid .panel-body a[href]:not([href*='javascript'],[href*='list_users.cgi?dom'],[href*='edit_hdparm.cgi?disk'],[href*='blink.cgi?disk'],[href*='smart-status/index.cgi?drive'],[href*='help.cgi'],[href*='edit_user.cgi?new='],[href*='edit_user.cgi?idx='],[href*='edit_recipe.cgi'],[href*='up.cgi'],[href*='down.cgi'],[href*='virt_index.cgi'],[href*='save_log.cgi'],[href*='backup.cgi'],[href*='activate.cgi'],[href*='#'])")).each(function(){if(v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi")c["/"+v___location_path_lead_unslashed+$(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").next("td[data-td-e]").find("a").attr("href")]=$.trim($(this).text());else{v___location_path==v___location_prefix+"/backup-config/"||v___location_path==v___location_prefix+"/backup-config/index.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text()):v___location_path==v___location_prefix+"/mount/"||v___location_path==v___location_prefix+"/mount/index.cgi"||v___location_path==v___location_prefix+"/quota/"||v___location_path==v___location_prefix+"/quota/index.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text()):v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").find("tt").find("tt").text()):v___location_path==v___location_prefix+"/proc/"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"?v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" — "+$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").text()):v___location_path==v___location_prefix+"/proc/index_search.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" — "+$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").text()):$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" — "+$.trim($(this).parents("td").next("td").next("td").next("td").text()):v___location_path==v___location_prefix+"/useradmin/"||v___location_path==v___location_prefix+"/useradmin/index.cgi"?$description=$.trim($(this).parents("td").next("td").find("label").text())+" — "+$(this).text()+":"+$.trim($(this).parents("td").next("td").next("td").find("label").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").find("label").text())+", "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").next("td").find("label").text()):v___location_path==v___location_prefix+"/mailboxes/list_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/"||v___location_path==v___location_prefix+"/mailbox/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").text())+" — "+$.trim($(this).parents("td").next("td").find("label").text())+" ["+$.trim($(this).parents("td").next("td").next("td").find("label").text())+"]":v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").find("label").text()):v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" - "+$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text()):$description=$.trim($(this).parent("td").next("td[data-td-e]").text()),$description?$_description=!0:$_description=!1;var e=$.trim($(this).text());if(core.curModule("bind8")){var t=$(this).parents("form").prev("br").prev("b").find("tt");if(t.length){var a=t.text();!$(this).parent(".ui_links_row").length&&a&&(e=e+" ("+a+")")}}c[("/"==$(this).attr("href").substring(0,1)?"":"/")+v___location_directory_unslashed_trail_slashed+$(this).attr("href")]=e+($_description?" (":"")+$description+($_description?")":"")}});var p=$.map(c,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:get_module_title()}}}),g={};$.each($(o+' > ul.sub:not([id^="global_"]) > '+o+' > a, ul.navigation > [data-linked]:not([data-after]) > a:not([href*="virtual-server/index.cgi"]):not([href*="server-manager/index.cgi"])'),function(e,t){g[("/"==$(this).attr("href").substring(0,1)?"":"/")+$(this).attr("href")]=$.trim($(this).text())}),$(o+' > a[target="page"]:not([data-href="/acl/edit_user.cgi"],[data-href="/virtual-server/index.cgi"],[data-href="/sysinfo.cgi"],[data-href="/virtual-server/pro/history.cgi"], [data-href="/mailbox/list_folders.cgi"], [data-href="/mailbox/list_ifolders.cgi"], [data-href="/mailbox/list_addresses.cgi"], [data-href="/filter/edit_forward.cgi"], [data-href="/filter/edit_auto.cgi"], [data-href="/filter/edit_auto.cgi"], [data-href="/filter/"], [data-href="/mailbox/edit_sig.cgi"])').each(function(e,t){$t_uri_usermin||_()||(g[$(this).attr("data-href")]=$.trim($(this).text()))});var f=$.map(g,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:$("aside .select2-selection__rendered").text()?''+$("aside .select2-selection__rendered").clone().children().remove().end().text()+"":m()}}}),u={};$("aside select option").each(function(){u[$(this).val()+":::"+$(this).parent("select").attr("name")]=$.trim($(this).text())});var h=$.map(u,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:$("aside select").data("autocomplete-title")}}}).concat(p).concat(f).concat(l);$(".form-control.sidebar-search").on("keydown",function(e){34!=e.keyCode&&33!=e.keyCode&&20!=e.keyCode&&17!=e.keyCode&&16!=e.keyCode&&9!=e.keyCode||(e.preventDefault(),e.stopPropagation())}),$(".form-control.sidebar-search").autocomplete({lookup:h,onSelect:function(e,t){var n=$.Autocomplete.externalEvent;if(!$.isEmptyObject(n)){var o=n.keyCode?n.keyCode:n.which;if(n.ctrlKey||n.shiftKey||n.altKey||n.metaKey||20===o||32===o||33===o||34===o||35===o||36===o||37===o||38===o||39===o||40===o||45===o||46===o||112===o||113===o||114===o||115===o||116===o||117===o||118===o||119===o||120===o||121===o||122===o||123===o||144===o||145===o)return}!0===_()&&$t_uri_dashboard&&2!=get_access_level()&&4!=get_access_level()&&d("webmin"),$(this).val("").blur(),s();var l=i(e.url);if("/"==e.url.substring(0,1)||l){if(e.url&&(l||e.url.includes("virtual-server/pro/history.cgi")||e.url.includes("server-manager/history.cgi")||e.url.includes("server-manager/one_history.cgi")))return void theme_open_new_tab(e.url,1);var c=e.url;if(v___location_prefix&&!c.startsWith(v___location_prefix)&&(c=v___location_prefix+c),Test.strContains(v___location_prefix,v___target_servers_index)&&c&&c.endsWith("/servers/"))return;if(c&&(c.includes("switch_user.cgi")||c.includes("/shell")||c.includes("shell=1")))return set_onbeforeunload_status(0,0),void $('aside [data-linked] a[href="'+e.url+'"]').click();get_onbeforeunload_status()?(t&&t.preventDefault(),get_onbeforeunload_message([],{href:c})):get_pjax_content(c,["reference"])}else if(e.url&&e.url.indexOf(":::")>-1){var p=e.url.split(":::")[0];get_onbeforeunload_status()?get_onbeforeunload_message(f,this,{"plugins.navigation.select.set":[p,1]}):(a(),r(p,1))}},groupBy:"category"})}},_=function(){return"1"==c("dashboard")},c=function(e){return e=e?'[id="open_'+e+'"]':String(),$(".switch-toggle input"+e).length},d=function(e){get_onbeforeunload_status()||($('.switch-toggle input:not([id="open_'+e+'"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){$("#open_"+e).length?$("#open_"+e).prop("checked",!0):$('.dynamic[name="product-switcher"]').first().prop("checked",!0)}),v())},p=function(n){get_onbeforeunload_status()||(a(),d("webmail"==n?"webmail":get_server_data("product")),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type="+("webmail"==n?"webmail":"webmin"),data:!1,dataType:"text",success:function(a){if(Test.strContains(a,v___page_signin_form))return v___available_session=0,i(),void e();v___theme_navigation_active="webmail"==n?"webmail":get_server_data("product"),$("body ul.navigation").html(a),u(),i(),!get_server_data("loading")&&t(),"webmail"===n&&settings_mail_ui&&("object"==typeof mail?mail.folders.get():load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.folders.get()"]))}}))},g=function(n){get_onbeforeunload_status()||(a(),d("virtualmin"),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=virtualmin"+(n?"&dom="+n:settings_right_virtualmin_default?"&dom="+settings_right_virtualmin_default:""),data:!1,dataType:"text",success:function(a){if(Test.strContains(a,v___page_signin_form))return v___available_session=0,i(),void e();v___theme_navigation_active="virtualmin",$("body ul.navigation").html(a),u(),i(),!get_server_data("loading")&&t()}}))},f=function(n){get_onbeforeunload_status()||(a(),d("cloudmin"),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=cloudmin"+(n||0===n?"&sid="+n:settings_right_cloudmin_default?"&sid="+settings_right_cloudmin_default:""),data:!1,dataType:"text",success:function(a){if(Test.strContains(a,v___page_signin_form))return v___available_session=0,i(),void e();v___theme_navigation_active="cloudmin",$("body ul.navigation").html(a),u(),i(),!get_server_data("loading")&&t()}}))},u=function(){var e=$("body ul.navigation").find("[data-x-buttons]"),t=e.find("ul[data-x-container]").html();$("body ul.user-links").html(t),e.remove(),plugins.shell.link()},m=function(){return $t_uri_webmin?theme_language("titles_wm"):$t_uri_usermin?theme_language("titles_um"):$t_uri_virtualmin?theme_language("titles_vm"):$t_uri_cloudmin?theme_language("titles_cm"):$t_uri_webmail?theme_language("titles_mail"):$t_uri_dashboard?theme_language("titles_dashboard"):void 0},h=function(e,t){return $t_uri_webmin?"webmin":$t_uri_usermin?"usermin":$t_uri_dashboard?"dashboard":$t_uri_virtualmin?t?"virtualmin":e?"virtualserver":"virtual-server":$t_uri_cloudmin?t?"cloudmin":e?"servermanager":"server-manager":$t_uri_webmail?"mailbox":void 0},v=function(){$t_uri_webmin=$('.switch-toggle input[id="open_webmin"]:checked').length?1:0,$t_uri_usermin=$('.switch-toggle input[id="open_usermin"]:checked').length?1:0,$t_uri_virtualmin=$('.switch-toggle input[id="open_virtualmin"]:checked').length?1:0,$t_uri_cloudmin=$('.switch-toggle input[id="open_cloudmin"]:checked').length?1:0,$t_uri_webmail=$('.switch-toggle input[id="open_webmail"]:checked').length?1:0,$t_uri_dashboard=$('.switch-toggle input[id="open_dashboard"]:checked').length?1:0};return{reset:e,select:{set:r,back:function(){if(vars.navigation.select.back){var e=$("aside select");r(e.data("previous-value"),0),vars.navigation.select.back=!1}},load:o},detect:t,load:{start:a,stop:i},collapse:s,reload:function(e){if(!get_onbeforeunload_status()){e=void 0===e||-1==e||""==e?$("aside select").val():e;var t=$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":$t_uri_usermin?"usermin":$t_uri_webmin?"webmin":"mail";"webmin"==t?(d("webmin"),p("webmin")):"virtualmin"==t?(d("virtualmin"),g(e)):"cloudmin"==t?(d("cloudmin"),f(e)):"usermin"==t?(d("usermin"),p("usermin")):"mail"==t&&(d("webmail"),p("webmail"))}},update:function(e,t){t||(t=600);var i=$(".switch-toggle"+(e?" #open_"+e:' [id^="open_"]')+":checked");if(i.length){a();var n=0;n||(n++,setTimeout(function(){i.click()},t))}},deform:function(e){var t=$("aside select"),a=t.data("select2");e||(vars.navigation_select=a&&"undefined"!=a&&!e&&t.select2("isOpen")),e?$.each($("aside").find("forms"),function(){$(this).replaceTagName("form")}).promise().done(function(){o(vars.navigation_select)}):(a&&t.select2("destroy"),$.each($("aside").find("form"),function(){$(this).replaceTagName("forms")}))},lock:function(){if("undefined"==typeof settings_leftmenu_width_initial&&(settings_leftmenu_width_initial=settings_leftmenu_width),matchMedia("(max-width: 1080px)").matches||"1"==$("html").attr("data-navigation-collapsed"))settings_leftmenu_width=260,page_adjust(settings_leftmenu_width,0);else{if(1===v___initial_load)return;settings_leftmenu_width=settings_leftmenu_width_initial,page_adjust(settings_leftmenu_width,settings_leftmenu_width)}},switch:{dashboard:{get:_,set:function(){d("dashboard"),e(),get_pjax_content(v___location_prefix+"/sysinfo.cgi")}},available:c,set:d,reset:function(){Test.string(v___theme_navigation_active)&&d(v___theme_navigation_active)}},get:{webmin:p,virtualmin:g,cloudmin:f,buttons:u},intersect:{virtualmin:function(e){e="object"==typeof e?e.attr("href"):e;var t=URI.parseQuery(URI(e).query()).dom||URI.parseQuery(URI(e).query()).gparent,a=$('select[name="dom"]').val();t&&t!=a&&g(t)},cloudmin:function(e){e="object"==typeof e?e.attr("href"):e;var t=(t=URI.parseQuery(URI(e).query()).id)||URI.parseQuery(URI(e).query()).d,a=$('select[name="sid"]').val();t&&t!=a&&f(t)}},state:{title:m,module:h,update:v,loading:function(){return $("#_menu_loader").length}}}}(),plugins.messenger=(document.addEventListener("DOMContentLoaded",function(){(function(){if("function"==typeof Messenger.Message){var e,t,a,i={}.hasOwnProperty;e=jQuery,a='
    \n \n \n \n \n \n \n
    ',t=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return function(e,t){for(var a in t)i.call(t,a)&&(e[a]=t[a]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(n,Messenger.Message),n.prototype.template=function(t){var i;return(i=n.__super__.template.apply(this,arguments)).append(e(a)),i},n}(),Messenger.themes.air={Message:t},Messenger.options={extraClasses:"messenger-fixed messenger-on-bottom",theme:"air"}}}).call(this)}),{post:function(e,t,a,i,n,s,o){var r=void 0===i?1:i,l=void 0===n||n;if(s=void 0===s?"":s,o=void 0===o?{}:o,"hide-all"!==e){if($.isArray(e)&&(e=' '+e[1]),$.isArray(s)){var _=s;s="messenger-fixed ",s+="messenger-on-"+_.join(" messenger-on-")}else s=s.length?"messenger-fixed messenger-on-"+s:"messenger-fixed messenger-on-bottom";return"function"==typeof Messenger?(Messenger.options={extraClasses:s,theme:"air"},window["Messenger_"+r]=Messenger().post({message:e,extraClasses:s,hideAfter:t,showCloseButton:l,type:a,id:r,actions:o})):void 0}Messenger().hideAll()}}),plugins.upload=function(e){e.removeAttr("onsubmit"),e.on("submit.fm",function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();var t=moment().unix()+""+parseInt(1e5*Math.random()),a=$(this),i=a.find(".ui_form_end_submit"),n=a.find('input[type="file"]')[0],s=n.files.length,o=a.find('input[name="dir"]').val(),r=$(n.files).map(function(e,t){return t.name}).get().join("\n"),l=function(){theme_restore_buttons_class(),$.fn.bootstrapFileInputReset(a),despinnerfy_buttons(0,i),i.addClass("disabled")},_=function(){s>1?plugins.messenger.post(''+theme_language("upload_successful").replace("$1",""+s+"").replace("$2","`"+o+"`").replace("'+theme_language("upload_successful_single").replace("$1",""+s+"").replace("$2","`"+o+"`").replace("'+theme_language("global_error")+": "+a.replace(/\s:\s/g," — "),15,"error","uploadError_"+t,0,["top","right"]),1):0}(e)||200===e.status&&_()},error:function(){$("[data-progress-id="+t+"] .bottom_progress_cancel").trigger("click")}}),theme_message_dismiss("upload_error");var c=1;window["progress_id_ref_"+t+"_tracker"]=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var a=e.target.responseText,i=regex.matches(a,/.file\.value\s+=\s+"(.*)";/g,0,1),n=regex.matches(a,/.size\.value\s+=\s+"(.*)";/g,0,1),s=regex.matches(a,/.pc\.value\s+=\s+"(.*)";/g,0,1);i&&n&&s&&(c&&(c=0,l()),(s=parseInt((s.match(/|/g)||[]).length/50*100))>100&&(s=100),progress_percent.control(t,"success",s,[i,n,s]));if(Test.strContains(a,v___page_signin_form))return v___available_session=0,window["progress_id_ref_"+t].abort(),void window["progress_id_ref_"+t+"_tracker"].abort()},!1),e},type:a.attr("method"),url:v___location_prefix+"/uptracker.cgi?id="+t+"&uid="+(0===get_access_level()||1===get_access_level()?"":get_server_data("user-id")),complete:function(e){c&&(c=0,l()),theme_message_exists("uploadError_"+t)||200===e.status&&_()}})})};const snippets={datetime:{},page:{},patches:{},initial:function(){plugins.dashboard.reset(),snippets.get_goto(),plugins.navigation.update("webmail")},form_pre_submitter:function(){$("body").on("click",'button.ui_form_end_submit[type="button"]:not(.disabled)',function(){var e=$(this).next('input[type="submit"].hidden'),t=$(this).parent(".btn-group").next('input[type="submit"].hidden');e.length||(e=t);var i=e.parent(),a=(i.parent("tr").find("form"),e.parents("form"));if(!a.length)return(a=e.closest("form")).length||(a=i.prev("form")),a.length||(a=i.prev().prev("form")),a.length||(a=i.prev().prev().prev("form")),a.append(a.nextUntil(i)),void $.each(i.find("select, input"),function(){$('').attr({type:"hidden",name:$(this).attr("name")?$(this).attr("name"):$(this).attr("id"),value:$(this).val()}).appendTo(a)}).promise().done(function(){a.submit()});var n=e.attr("name")?e.attr("name"):e.attr("id"),s=$.trim(e.val());$('').attr({type:"hidden",name:n,value:s}).appendTo(a),e.trigger("click")}),$("body").on("click",'.ui_form_end_submit:not(.disabled), .page_footer_submit:not(.disabled):not([href*="javascript:history"])',function(){core.curModule("csf")?spinnerfy_buttons($(this),[2,-29,"small",!1]):spinnerfy_buttons($(this),!1,!1,!1)})},form_input_tester:function(e){if(e)return $(".btn-group.end_submits:visible button.ui_form_end_submit").hasClass("btn-warning dt-tester-btn");$(document).on("input.tester",'form:not([data-tester="1"]):not(#webmin_search_form)',function(e){if(void 0!==e.originalEvent&&!vars.pjax.post_page_fetch&&v___location_file&&"index.cgi"!==v___location_file){var t=$(this);if(1!=t.attr("data-tester")){var i=t.find(".CodeMirror").length,a=$(this).attr("action");if(i&&!core.curModule("init")||(core.curModuleFile("mysql","")||core.curModuleFile("postgresql","")||core.curModuleFile("mysql","index.cgi")||core.curModuleFile("postgresql","index.cgi"))&&$(".ui_grid_table.table-hardcoded").length||core.curModuleFile("bind8","")||core.curModuleFile("bind8","index.cgi")||core.curModuleFile("mailbox","reply_mail.cgi")||core.curModuleFile("virtual-server","wizard.cgi")||core.curModuleFile("virtual-server","list_scripts.cgi")||core.curModuleFile("virtual-server","list_scripts.cgi")||core.curModuleFile("mysql","list_vars.cgi")||core.curModuleFile("ruby-gems","index.cgi")||a&&a.includes("edit_tmpl.cgi")||$(".modal.in.mppopup").length)t.attr("data-tester",1);else{var n=$(e.target).is('input[type="checkbox"], input[type="radio"]'),s=$(e.target).parents("tr");if(!(n&&s&&s.length&&s.attr("class")&&s.attr("class").includes("ui_checked"))){theme_restore_buttons_class();var o=t.find(".btn-group.end_submits:visible button.ui_form_end_submit"),r=o.first(),l=String("btn-xclass"),_=1===o.data("click-event");if(r[0]&&r[0].classList){var c=r[0].classList.value.match(/.*(btn-\S+)/);c&&(l=c[1],r.attr("data-class-restore",l))}o&&o.length&&(set_onbeforeunload_status(1),_||(o.data("click-event",1),r.removeClass(l).addClass("btn-warning dt-tester-btn"),t.attr("data-tester",1),o.one("click",function(){o.data("click-event",0),t.attr("data-tester",0),set_onbeforeunload_status(0)}),t.on("keydown",function(e){var t=e.keyCode?e.keyCode:e.which;(13===t&&!$(e.target).is("textarea")||13===t&&e.ctrlKey&&$(e.target).is("textarea"))&&(r.hasClass("btn-warning dt-tester-btn")?(e.preventDefault(),r.trigger("click")):set_onbeforeunload_status(0))})))}}}}})},inject_extra_option:function(e,t,i,a){if("tr/yes:no"===e){var n=$("body"),s=t.parents("form");t.parents("td.col_value").parent("tr").after(' '+a+' ");var o="submit."+i;n.off(o),n.one(o,s,function(){var e=Test.true($("[name="+i+"]:checked").val());window[i]=e,theme_config_store()})}}};snippets.datetime.tictac=function(e,t){var i=t?"convertible-date-full":"convertible-timestamp-full",a=$("[data-"+i+"]");if(a.parent().contents().filter(function(){return 3===this.nodeType}).remove(),"undefined"!=typeof moment){if(t){var n=a.data(i);if(n){var s=new Date(n);a.data(i,s),s.setSeconds(s.getSeconds()+1),a.text(moment(s.toISOString()).format(config_portable_theme_locale_format_full))}}else a.data(i,parseInt(a.data(i))+1),a.text(moment.unix(a.data(i)).format(config_portable_theme_locale_format_full));!e&&setInterval(snippets.datetime.tictac.bind(null,1,t),1e3)}},snippets.datetime.locale=function(e){if(e){var t=theme_language("title_language_locale"),i=core.curModule("language"),a=core.curModule("change-user"),n=core.curModuleFile("webmin","edit_lang.cgi"),s=$('.container-fluid form select[name="lang"]'),o=i?s.next(".ui_form_end_buttons").find("tbody"):s.parents("tr").first().parent("tbody"),r=o.parents("form").first(),l=i?o:o.find('select[name="lang"]').parents("tr").first();if("insert"===e.type){if(core.curModule("webmin")){var _=$('.icons-container a[href*="edit_lang.cgi"]'),c=$('.small-icons-container a[href*="edit_lang.cgi"]'),d=$('a[href*="edit_lang.cgi"] p > .fa-angle-right');if(_.length){var p=_.find("img").detach();_.text(t).prepend(p,"
    ")}else c.length?(c.find(".hidden").text(t),c.parent().attr("title",t)):d.length&&d.parent().html('  '+t)}if((n||a||i)&&!e.history){a&&$('[name="overlay"]').parent("td").parent("tr").addClass("hidden"),a||$("span[data-main_title]").text(t);var h=' '+(a?theme_language("title_webmin_ui_locale"):theme_language("title_locale_config"))+(i?":   ":"")+' '+(a?theme_language("title_locale_config_format_ui"):theme_language("title_locale_config_format"))+' '+(i?"    ":"")+" "+theme_language("title_locale_lang_based")+'    '+theme_language("title_locale_full")+'  `LLLL`

    "+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_full)+'

    ">
     
    '+theme_language("title_locale_long")+'  `LL`

    "+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_long)+'

    ">
     
    '+theme_language("title_locale_short")+'  `L`

    "+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_short)+'

    ">
     
    '+theme_language("title_locale_time_format")+'  `LTS`

    "+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_time)+'

    ">
    '+(core.moduleAvailable("webmin")?'
    '+theme_language("title_locale_non_ui_config")+' 
    ':"")+" ";i?l.prepend(h):(l.after(h),core.setModuleData("/webmin/edit_ui.cgi",["dateformat"]))}return}if("init"===e.type)return void((n||a||i)&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_theme_locale_languages=1",data:!1,dataType:"text",async:$.support.spa,success:function(e){$('select[data-select="locales"]').replaceWith(e),$('#config_portable_theme_locale_languages option[value="ru-su"]').remove();var t='input[id*="config_portable_theme_locale_language"], select[name="config_portable_theme_locale_languages"], input[name="config_portable_theme_locale_format_full"], input[name="config_portable_theme_locale_format_long"], input[name="config_portable_theme_locale_format_short"], input[name="config_portable_theme_locale_format_time"]',i=$(t);$(i).on("change keyup focus",function(e){var t=$(this).attr("name"),i=$(this).parent(),a=i.data("title"),n=$('select[name="config_portable_theme_locale_languages"]').val();fleeting_format=$(this).val(),fleeting_format||(t.includes("short")?fleeting_format="L":t.includes("long")?fleeting_format="LL":t.includes("full")?fleeting_format="LLLL":t.includes("time")&&(fleeting_format="LTS")),t.indexOf("theme_locale_format_")>-1&&setTimeout(function(){i.attr("title",a.replace(/g'>(.*)<\/i>/g,"g'>"+(n?moment().locale(n).format(fleeting_format):moment().format(fleeting_format))+"")).tooltip("fixTitle").tooltip("show")},"focus"===e.type?500:0);var s=$("._locale_config");"config_portable_theme_locale_language"===t&&"1"!=fleeting_format?"focus"!=e.type&&s.addClass("hidden"):"focus"!=e.type&&s.removeClass("hidden")}),$(r).on("submit",function(){var e=$('[name="dateformat"]');e.length&&core.updateModuleData("/webmin/edit_ui.cgi","/webmin/change_ui.cgi",{dateformat:$.trim(e.val())}),$.each($(t.replace('locale_language"]','locale_language"]:checked')),function(){var e=$(this).attr("name"),t=$(this).val();"config_portable_theme_locale_languages"===e&&""===t&&(t=get_server_data("language-full")),localStorage.setItem(v___server_hostname+"-"+e,t),window[e]=t}).promise().done(function(){var e=r.find('select[name="lang"]').val();if(e.indexOf(".")>-1&&(e=e.split(".")[0]),a&&"1"==r.find('[name="lang_def"]:checked').val()){var t=$('[name="lang_def"][value="1"]').next("label").text().match(/\(([^)]+)\)/);(t=t&&t[0]&&t[1]?t[1]:get_server_data("language-full")).indexOf(".")>-1&&(t=t.split(".")[0]),e=t}moment.locale(config_portable_theme_locale_language&&"0"!=config_portable_theme_locale_language?config_portable_theme_locale_languages:e),theme_config("save"),setTimeout(function(){plugins.navigation.reload()},2e3)})})}}))}var u="x-md-",f=function(e,t){var i=e.tagName.endsWith("-d".toUpperCase())?1:0,a=e.tagName.includes(u+"t")?0:1,n=e.outerHTML.indexOf(";1")>-1?1:0,s=e.outerHTML.indexOf(";2")>-1?1:0,o=e.outerHTML.indexOf(";-1")>-1?1:0,r=core.curModule("proc")?1:0,l=$(e).text(),_=i?l.split(";")[0]:l,c=config_portable_theme_locale_format_short||"L",d=config_portable_theme_locale_format_long||"LL",p=config_portable_theme_locale_format_time||"LTS",h=moment.unix(_).format("l");h=h.indexOf("/")>-1?"/":h.indexOf("-")>-1?"-":".";var f,g=moment.unix(_).format(p),m=s?moment.unix(_).format("YYYY["+h+"]MM["+h+"]DD")+" "+(a?String():g):moment.unix(_).format(n?d:c);if(r&&(o=1,e&&"string"==typeof e.outerHTML&&e.outerHTML.includes(u+"t")&&$(e).remove()),o){isNaN(_)||(_*=1e3);var v=moment(_).fromNow();g=v,m=v}(f=$(e).is("td")?$(e):$(e).parent("td")).is("td")&&f.attr("data-order",_);if(t)return i?m:g;$(e).replaceWith(i?"-1?' data-placement="auto top" data-container="body" data-toggle="tooltip" data-title="'+(o?moment(_).calendar(null,{sameElse:"LLL"}):moment.unix(_).fromNow())+'"':"")+">"+m+"":g)};$.each($(u+"d").add(u+"t").add($("td:contains("+u+"d)").last()).add($("td:contains("+u+"t)").last()).add("option:contains("+u+"d)").add("option:contains("+u+"t)"),function(e,t){if(!t.tagName.startsWith(u.toUpperCase())){var i=$(t).text(),a=Convert.htmlUnEscape(i),n="";$.each($(a),function(e,t){$(t)[0].tagName&&$(t)[0].tagName.startsWith("x-md".toUpperCase())&&(n+=f($(t)[0],1)+" ")}).promise().done(function(){$(t).text(n)})}else f(t,0)})},snippets.ajax=function(){$(document).ajaxStop(function(){setTimeout(function(){0===v___available_session&&session.reauthenticate.start()},300)}).ajaxSuccess(function(){v___theme_ajax_error=0,"object"==typeof stats&&stats.general.error&&0===get_access_level()&&settings_sysinfo_real_time_status&&(stats.general.disable(),stats.general.enable(),stats.general.error=0)}).ajaxError(function(e,t){"canceled"!==t.statusText&&connection_error(t,0)}),$.ajaxSetup({complete:function(e,t){(Test.strContains(e.responseText,v___page_signin_form)||e&&("auth-required=1"===e.getResponseHeader("Auth-type")||e.responseText&&e.responseText.indexOf("reset-fonts-grids-base")>-1&&e.responseText.indexOf("window.top.location = window.location;")>-1))&&session.reauthenticate.start()},beforeSend:function(e,t){t.url=link_type_convert(t.url,1),e.setRequestHeader("X-Requested-From",v___module||v___module_previous),e.setRequestHeader("X-Requested-From-Tab",plugins.navigation.state.module())}})},snippets.pjax=function(){$(document).on("submit","form",function(e){if(void 0!==e.originalEvent&&(v___theme_content_history=0),"true"!=$(this).attr("data-download"))if("_blank"!==e.target.target)e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(e,this):get_pjax_action_submit(e);else{var t=$(this);setTimeout(function(){t.removeAttr("target"),get_pjax_content(v___location_resource)},100)}}),$(document).on("click","a"+$__theme_default_deselectors,function(e){if(void 0!==e.originalEvent&&(v___theme_content_history=0),get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors)&&(!this.href||this.href&&this.href.length>0&&!this.href.includes("!edit"))){if(e.preventDefault(),null===this.getAttribute("href"))return;get_onbeforeunload_message(e,this)}else get_pjax_action_click(e,this)}),$(document).on("pjax:error",function(e,t,i,a,n){if("error"===i){var s=$.active;if(s&&($.active=s-1),Test.strContains(n.url,"/csf/index.cgi"))return void theme_reload()}}),$(document).on("pjax:start",function(e,t,i){t&&(get_server_data("loading",1),$("body").addClass("loading-bg")),vars.page_user_inactive=1,vars.requested_page=i.url,"number"==typeof set_server_theme_temp_data_timeout&&clearTimeout(set_server_theme_temp_data_timeout)}),$(document).on("pjax:beforeReplace",function(e,t,i){settings_mail_ui&&-1===uri_parse("directory",i.url).indexOf("/mailboxes")&&uri_parse("directory",i.url).indexOf("/mailbox")>-1&&(!uri_parse("file",i.url)||uri_parse("file",i.url).indexOf("index.cgi")>-1)&&(vars.pjax_replace_contents=0),plugins.navigation.deform(0),pjax.clear.modules(i),!1===i.push&&(Test.strContains(i.url,"/config.cgi?")||Test.strContains(i.url,"/uconfig.cgi?"))&&t.find(".btn-accordion-filter, .btn-toggle-accordions").remove()}),$(document).on("ready pjax:beforeSend",function(e,t,i){if(1===vars.pjax_cancel)return vars.pjax_cancel=0,!1;if(theme_download_link(i))return!1;if($t_uri_webmail&&settings_mail_ui&&core.moduleAvailable("mailbox")&&("object"==typeof mail?0===$("aside .fancytree-container").length&&mail_load_folders():load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.folders.get()"])),settings_mail_ui&&core.curModule("mailbox")&&(core.curModuleFile("mailbox","")||core.curModuleFile("mailbox","index.cgi"))&&-1===uri_parse("directory",i.url).indexOf("/mailboxes")&&uri_parse("directory",i.url).indexOf("/mailbox")>-1&&(!uri_parse("file",i.url)||uri_parse("file",i.url).indexOf("index.cgi")>-1))return mail_load(i.url),!1;progress.start(),"number"==typeof v___theme_postponed_fetcher&&clearInterval(v___theme_postponed_fetcher);var a=$(e.relatedTarget),n=a.attr("href");n=n||i.url.replace(v___location_origin,""),clicked_in_nav_menu=a.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle")||"object"==typeof i.callback&&"reference"===i.callback[0],clicked_in_nav_menu&&check_bundle(n),"object"==typeof i.callback&&"beforeSend"===i.callback[0]&&(i.callback[3]?setTimeout(function(){window[i.callback[1].apply(this,i.callback[2])]},i.callback[3]):window[i.callback[1].apply(this,i.callback[2])]),v___theme_pjax_call+=1}),$(document).on("pjax:success",function(event,data,status,xhr,options){theme_message_dismiss("ajaxError"),"object"==typeof options.callback&&"success"===options.callback[0]&&(options.callback[3]?setTimeout(function(){"string"==typeof options.callback[1]?eval(options.callback[1]):window[options.callback[1].apply(this,options.callback[2])]},options.callback[3]):"string"==typeof options.callback[1]?eval(options.callback[1]):window[options.callback[1].apply(this,options.callback[2])])}),$(document).on("pjax:complete",function(e,t,i){vars.allow_ui_features=1,v___theme_reload&&theme_reload(),setTimeout(function(){$(".container-fluid-loading").length||progress.end()},10),get_server_data("loading",0,1),$("body").removeClass("loading-bg"),v___theme_connection_triggered_origin=0,"object"==typeof stats&&stats.general.error&&(stats.general.disable(),stats.general.enable())}),$(document).on("ready pjax:end",function(e,t){pjax_cache(),vars.pjax.event.end&&0!==v___available_session&&1!==v___theme_reload&&(void 0!=t&&t.responseText&&t.responseText.includes("data-predownload")||(plugins.navigation.deform(1),get_pjax_event_end(e,t),setTimeout(function(){var e=link_type_convert(location.hash,1).replace("#","");if(e&&e.length>0){var t=$('[name="'+e+'"]');t.length&&t[0].scrollIntoView({duration:200,smooth:!0,direction:"vertical",complete:function(){}})}},200),v___page_container.find(".panel > .panel-body:first").one("click mousedown keypress",function(){vars.page_user_inactive=0}),vars.pjax.post_page_fetch=!0,setTimeout(function(){vars.pjax.post_page_fetch=!1},100)))}),$(document).on("pjax:popstate",function(e){e.state;var t=vars.pjax.page_cache&&"csf"!==v___module&&"postfix"!==v___module&&v___module!==v___module_file_manager&&!core.curModuleFile("webmin","edit_themes.cgi")&&"settings-user.cgi"!==v___location_file;e.hasContents&&get_pjax_event_end_funcs(0,!t),vars.previous_request=String(),vars.source_request=String()})},snippets.get_goto=function(){v___theme_navigation_active=$(".switch-toggle input:checked").attr("id"),v___theme_navigation_active=v___theme_navigation_active?v___theme_navigation_active.replace("open_",""):get_server_data("product"),setTimeout(function(){var e=function(){$t_uri_virtualmin&&"undefined"==typeof t_uri_get_content&&get_default_virtualmin_content(!1),$t_uri_cloudmin&&"undefined"==typeof t_uri_get_content&&get_default_cloudmin_content(!1),$t_uri_virtualmin||$t_uri_cloudmin||"undefined"!=typeof t_uri_get_content||get_default_content(),t_uri_get_content=1};$.when(get_server_theme_temp_data("goto",0,e)).then(function(t,i,a){if(!a.responseText||get_server_data("initial-wizard")||unbuffered_header_processor_allow(a.responseText))e();else{if(Test.strContains(a.responseText,v___module_file_manager+"/config.cgi"))return void get_pjax_content(v___location_prefix+"/"+v___module_file_manager);if(Test.strContains(a.responseText,"//")&&URI(a.responseText).hostname()!==URI(location.href).hostname()||Test.strContains(a.responseText,"/servers/link.cgi/")||Test.strContains(a.responseText,"settings-user.cgi")||Test.strContains(a.responseText,"/xerror")||"/"===a.responseText||a.responseText==="/?"+$__theme_navigation)return void get_pjax_content(v___location_prefix+"/sysinfo.cgi");if(Test.strContains(a.responseText,"virtual-server")){var n=URI.parseQuery(URI(a.responseText).query()).dom,s=$('select[name="dom"]').val(),o=n||s;plugins.navigation.switch.set("virtualmin"),(!s||n!=s)&&plugins.navigation.get.virtualmin(o||!1)}else if(Test.strContains(a.responseText,"server-manager")){var r=URI.parseQuery(URI(a.responseText).query()).id,l=r||$('select[name="sid"]').val();plugins.navigation.switch.set("cloudmin"),plugins.navigation.get.cloudmin(l||!1)}else $t_uri_webmin||2==v___user_level||3==v___user_level||(plugins.navigation.switch.set("webmin"),plugins.navigation.get.webmin("webmin")),3==v___user_level&&!$t_uri_webmail&&Test.strContains(a.responseText,"mailbox")&&core.moduleAvailable("mailbox")?(plugins.navigation.switch.set("webmail"),setTimeout(function(){plugins.navigation.get.webmin("webmail")},10)):3!=v___user_level||$t_uri_usermin||Test.strContains(a.responseText,"mailbox")||(plugins.navigation.switch.set("usermin"),setTimeout(function(){plugins.navigation.get.webmin("webmin")},10));check_bundle(a.responseText),get_pjax_content(a.responseText,["success","v___theme_content_history = 1"])}})},20),$.each(theme_config("get_options"),function(e,t){localStorage.setItem(v___server_hostname+"-"+t,window[t])}),setTimeout(function(){plugins.slider.update.favorites()},300)},snippets.tooltips=function(e){if(e){$(".__page").tooltip("destroy").tooltip({selector:'[data-toggle="tooltip"]:not([data-skip]), [data-toggle="virtualmin-license"], .panel-body td a:not([data-skip]), .icons-container',sanitize:!1,placement:"auto "+($(".gl-icon-container").length||$("[data-fbplacement]").length?"bottom":"top"),trigger:"hover",html:!0,delay:{show:600,hide:30}})}else $("aside").tooltip({selector:'li[data-toggle="tooltip"], li > a[data-toggle="tooltip"].menu-exclude-link, label[data-toggle="tooltip"]',sanitize:!1,container:"body",html:!0,delay:{show:600,hide:30}})},snippets.progressive_button=function(e,t){var i=e.querySelector(".progressing");i&&(i.style.width=t+"%")},snippets.help_popup=function(){var e=$("body");e.on("click",".help_popup",function(t){t.stopPropagation(),t.preventDefault();var i=$(this),a=$(this).attr("href"),n=$(this).parent();n.append(''),$.ajax({type:"POST",url:i.attr("href").indexOf("showpass.cgi")>-1?v___location_directory_trail_slashed+i.attr("href"):i.attr("href"),data:!1,dataType:"text",success:function(t){if(Test.strContains(t,v___page_signin_form))v___available_session=0;else{n.find("._tmp_help_content").html(t.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"")),$help_title=n.find("._tmp_help_content .ui_subheading").first().text(),$help_body=n.find("._tmp_help_content title").remove(),$help_body=n.find("._tmp_help_content h3.ui_subheading").remove(),$help_body=n.find("._tmp_help_content h3").addClass("h3_help"),$help_body=n.find("._tmp_help_content hr").remove();var s=n.find("._tmp_help_content a");void 0!==s.attr("href")&&$.each(s,function(){var t=$(this).attr("href");t.startsWith("http")?$help_body=n.find("._tmp_help_content a").attr("target","_blank").css("text-decoration","none").css("font-style","italic"):e.undelegate('a[href="'+t+'"]',"click").one("click",'a[href="'+t+'"]',function(e){if($(e.target).is($('a[href="'+t+'"]'))){e.preventDefault();var n=Convert.pathnamePopLast(i.attr("href"))+"/"+t;$('a[href="'+a+'"].help_popup').attr("data-initial",a).attr("data-substituted",n),$('a[href="'+a+'"].help_popup').attr("href",n),i.trigger("click")}})}),$help_body=n.find("._tmp_help_content").html(),n.find("._tmp_help_content").remove();var o='',r=i.attr("href").indexOf("showpass.cgi")>-1,l=i.attr("href").indexOf("/locale")>-1;r&&(o=""),i.popover({html:!0,sanitize:!1,container:".container-fluid",template:'',title:function(){return o+$help_title},content:function(){return $help_body},placement:matchMedia("(max-width: 767px)").matches?"bottom":"right"}),i.popover("show"),i.on("shown.bs.popover",function(){$help_body.indexOf("")>-1&&$(".popover").animate({"max-width":"540px"},300),e.find(".popover:visible").addClass("module-help"),$('body[class*="'+v___module_file_manager+'"]').find(".popover:visible").addClass("file-manager-help"),setTimeout(function(){var e=$(".module-help"),t=e.length;$.each(e,function(e){t===e+1&&popover_visibility_position($(this))})},10)}),i.on("hidden.bs.popover",function(){e.undelegate(":not(tt)","click"),i.attr("data-initial")&&(i.attr("href",i.attr("data-initial")),i.removeAttr("data-initial").removeAttr("data-substituted"))})}}})})},snippets.page.render_links=function(e){theme_buttonify(["/syslog-ng/list_destinations.cgi"],".container-fluid .table tbody tr td:last-child",'a[href*="view_log.cgi"]',"btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1",""),theme_buttonify(["/virtual-server/edit_newmysqls.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-cog"),theme_buttonify(["/cluster-cron/","/cluster-cron/index.cgi","/cluster-copy/","/cluster-copy/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-play"),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td[data-td-e]",'a[href*="delete.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-top-1 ---forced","fa-times-circle","","","","|"),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td[data-td-e]",'a[href*="//"]',"btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced",""),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td[data-td-e]",'a[href*="help.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced",""),theme_buttonify(["/webalizer/","/webalizer/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1",0),theme_buttonify(["/cpan/edit_mod.cgi"],".container-fluid .table tbody tr td","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-3 margined-right--1 btn-dnwo ---forced","","","","","|"),theme_buttonify(["/forward/index.cgi","/forward/"],".container-fluid",'.panel-body > a:first[href*="simple"]',"btn btn-default _btn-links-top btn-xs vertical-align-top margined-top-1 margined-left-3",0,"","","","|"),theme_buttonify(["/forward/index.cgi","/forward/"],".container-fluid",".panel-body > span[data-unckecked]","btn btn-info _btn-links-top btn-xs vertical-align-top margined-top-1 margined-left-3",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td[data-td-e]",'a[href*="webminlog/"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 ---forced",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td[data-td-e]",'a[href*="delete_session.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced","fa-unplugged"),theme_buttonify(["/sysinfo.cgi","/virtual-server/edit_newchangelog.cgi","/server-manager/edit_newchangelog.cgi"],".container-fluid #newfeatures-virtual-server-1-collapse dt, .container-fluid #newfeatures-server-manager-1-collapse dt, .container-fluid .table td dt","a","btn btn-link btn-link-bordered btn-xxs btn-dnwo f__lnk_t_btn-el margined-left-3 vertical-align-top margined-top-1","fa-eye","|",""),theme_buttonify(["/virtual-server/","/virtual-server/index.cgi","/virtual-server/edit_plan.cgi","/virtual-server/search.cgi"],".container-fluid form table tbody td",'a[href*="list_users.cgi?"], a[href*="list_aliases.cgi?"]',"btn btn-link btn-link-bordered btn-xxs btn-hover-hide vertical-align-top margined-top-1",0,"(~)"," ~ ",""),theme_buttonify(["/server-manager/","/server-manager/index.cgi"],".container-fluid form table tbody td",'a[href*="mass_update_form.cgi?"]',"btn btn-link btn-link-bordered btn-xxs btn-transparent btn-link-bordered vertical-align-top margined-left-3 margined-top-1",0,"","","","-"),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td[data-td-e]",'a[href*="activate.cgi"][href*="&active=3"]',"btn btn-warning btn-xxs vertical-align-top margined-top-1","fa-ban"),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td[data-td-e]",'a[href*="activate.cgi"][href*="&active=0"]',"btn btn-success btn-xxs vertical-align-top margined-top-1","fa-check-circle-o"),theme_buttonify(["/virtualmin-google-analytics/","/virtualmin-google-analytics/index.cgi"],".container-fluid .table tbody td[data-td-e]",'a[href*="edit.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-top-1","fa-pencil-square"),theme_buttonify(["/apache/","/apache/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-external-link"),theme_buttonify(["/ldap-server/edit_schema.cgi"],".container-fluid table tr.ui_checked_columns td",'a[href*="view_sfile.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 ---forced",0,"","","","|"),theme_buttonify(["/ldap-server/edit_schema.cgi"],".container-fluid table tr.ui_checked_columns td",'a[href*="edit_sfile.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced","fa-pencil-square-o");var t=$(".container-fluid .ui_links_row");if((core.curModule("firewall",1)||core.curModule("firewall6",1))&&t.first().find(".ui_link_empty").addClass("btn-warning").removeClass("btn-success"),($('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file||v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"||v___location_path==v___location_prefix+"/software/list_pack.cgi"||v___location_path==v___location_prefix+"/mailboxes/view_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/view_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"||v___location_path==v___location_prefix+"/phpini/"||v___location_path==v___location_prefix+"/phpini/index.cgi"||v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"||v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"||v___location_path==v___location_prefix+"/virtualmin-awstats/"||v___location_path==v___location_prefix+"/virtualmin-awstats/index.cgi"||v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi")&&($.each($('tr td:last-child > .ui_links_row, tr td:last-child:contains("|")'),function(){var e=$(this).parent(),t="ui_link btn-inverse btn-tiny>";v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"&&(e.find('a[href^="backup_form.cgi"]').html(e.find('a[href^="backup_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass(t).prepend('  '),e.find('a[href^="restore_form.cgi"]').html(e.find('a[href^="restore_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass(t).prepend('  '),e.find('a[href^="backuplog.cgi"]').html(e.find('a[href^="backuplog.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass(t).prepend('  ')),v___location_path!=v___location_prefix+"/phpini/"&&v___location_path!=v___location_prefix+"/phpini/index.cgi"||(e.find('a[href^="list_ini.cgi"]').html(e.find('a[href^="list_ini.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass(t).prepend('  '),e.find('a[href^="edit_manual.cgi"]').html(e.find('a[href^="edit_manual.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass(t).prepend('  ')),v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"||(e.find('a[href^="edit_hdparm.cgi"]').html(e.find('a[href^="edit_hdparm.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t),e.find('a[href*="smart-status/index.cgi"]').html(e.find('a[href*="smart-status/index.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t),e.find('a[href^="blink.cgi"]').html(e.find('a[href^="blink.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t)),v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"&&(e.find('a[href^="index.cgi"]').html(e.find('a[href^="index.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('  '),e.find('a[href^="edit_auto.cgi"]').html(e.find('a[href^="edit_auto.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('  '),e.find('a[href^="copy_form.cgi"]').html(e.find('a[href^="copy_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('  ')),v___location_path!=v___location_prefix+"/mailboxes/view_mail.cgi"&&v___location_path!=v___location_prefix+"/mailbox/view_mail.cgi"||(e.find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').html(e.find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('  '),e.find('a[href*="detach.cgi"][target="_blank"]').html(e.find('a[href*="detach.cgi"][target="_blank"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass(t).prepend('  '),e.find('a[href*="&save=1"]:not([target="_blank"])').html(e.find('a[href*="&save=1"]:not([target="_blank"])').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass(t).prepend('  ')),v___location_path!=v___location_prefix+"/virtualmin-awstats/"&&v___location_path!=v___location_prefix+"/virtualmin-awstats/index.cgi"||(e.find('a[href^="view.cgi"]').html(e.find('a[href^="view.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t).prepend('  '),e.find('a[href^="config.cgi"]').html(e.find('a[href^="config.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t).prepend('  '))}).promise().done(function(){$(this).is(".ui_links_row")?$(this).contents().unwrap():$('tr td:last-child:contains("|")').replaceText(/\s*/gi,"").replaceText(/\|/gi,"")}),$('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file?($('a[href*="edit_mon.cgi?id"]').addClass("ui_link_replaced btn btn-default btn-xxs").removeClass("heighter-34").removeClass("ui_link"),$('a[href*="edit_mon.cgi?id"]').last().css("margin-left","-1px"),$('tr td:last-child:contains("|")').replaceText(/\|/gi,"")):$('tr td:last-child:contains("|")').contents().filter(function(){return 3==this.nodeType}).remove(),v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"||$("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').html($("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link"),v___location_path!=v___location_prefix+"/fsdump/"&&v___location_path!=v___location_prefix+"/fsdump/index.cgi"||$.each($("tr td:last-child"),function(){$(this).find('a[href^="backup.cgi"]').html($(this).find('a[href^="backup.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('  '),$(this).find('a[href^="kill.cgi"]').html($(this).find('a[href^="kill.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-danger btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('  ')}),v___location_path!=v___location_prefix+"/syslog/"&&v___location_path!=v___location_prefix+"/syslog/index.cgi"||$.each($("tr td:last-child"),function(){$(this).find('a[href*="save_log.cgi"][href*="view=1"]').html($(this).find('a[href*="save_log.cgi"][href*="view=1"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link")}),v___location_path==v___location_prefix+"/software/list_pack.cgi")){$('td a.ui_link[href*="view.cgi"]').html('').addClass("ui_link_replaced btn btn-default btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").attr("style","margin-top: 2px !important; margin-bottom: 0 !important; margin-right: 15px").removeClass("ui_link").prepend('')}if(v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"proc/"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/index.cgi"||((v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proc/"&&v___location_file&&v___location_file.indexOf("index_")>-1||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/index.cgi"||v___location_path===v___location_prefix+"/proc/")&&($("a.ui_link + b").addClass("btn").css("margin-left","3px"),$("b + a.ui_link").addClass("btn").css("margin-left","3px"),$('.panel-body > b:first-child:contains("Display")').length>0&&$(".panel-body > b:first-child").remove(),$(".panel-body > b").addClass("btn btn-success")),$(".panel-body").contents().filter(function(){return 3==this.nodeType}).remove(),$(".panel-body > a.ui_link").addClass("btn").css("margin-left","3px")),!e){v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"fdisk/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"postfix/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"pam/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"syslog/"||$("p > a[href], table + a[href], div.panel-body > a.ui_link").each(function(e,t){$(this).text($(this).text().replace(/\.$/,""))});$(".container-fluid .panel-body a.select_all,.container-fluid .panel-body a.select_invert,.container-fluid .panel-body a.select_invert ~ .ui_link,.container-fluid .panel-body .ui_links_row > *:not(.ui_link_empty, .ui_link_replaced),.container-fluid .panel-body .ui_link:not(.ui_link_empty)").each(function(){if(!(core.curModule("acl")&&this.href&&this.href.includes("edit_user.cgi?user"))&&!($(this).parent("td").length||$(this).parent("label").length||$(this).parent("tt").length||$(this).parents("b").length||$(this).parent("pre").length||v___location_path==v___location_prefix+"/webmin_search.cgi")&&(!core.curModuleFile("virtual-server","history.cgi")&&!core.curModuleFile("server-manager","one_history.cgi")&&!core.curModule("proc")&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"passwd/"&&$(this).text()&&v___location_path!=v___location_prefix+"/mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_path!=v___location_prefix+"/usermin/list_configs.cgi"&&!$(this).hasClass("help_popup")||core.curModule("procmail"))){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced"),$(this).text($(this).text().replace(/\.$/,""));var e=$(this).parent().contents().filter(function(){return 3==this.nodeType});e&&$.each(e,function(){$(this).text()&&$(this).text().length<=3&&$(this).remove()}),$(this).hasClass("select_all")&&$(this).html(' '+$(this).text()),$(this).hasClass("select_invert")&&$(this).html(' '+$(this).text()),(core.curModuleFile("server-manager","index.cgi")||core.curModuleFile("server-manager",""))&&($(this).parent('form[action="mass.cgi"]').length||$(this).parent(".ui_links_row").parent('form[action="mass.cgi"]').length)&&(($(this).is(":nth-child(1)")||$(this).is(":nth-child(6)"))&&$(this).html(' '+$(this).text()),($(this).is(":nth-child(2)")||$(this).is(":nth-child(7)"))&&$(this).html(' '+$(this).text()),($(this).is(":nth-child(3)")||$(this).is(":nth-child(8)"))&&$(this).html(' '+$(this).text())),$(this).attr("href")&&(0===$(this).attr("href").indexOf("edit")&&0!==$(this).attr("href").indexOf("edit_allow")||0===$(this).attr("href").indexOf("master_form")||0===$(this).attr("href").indexOf("slave_form")||0===$(this).attr("href").indexOf("stub_form")||0===$(this).attr("href").indexOf("forward_form")||0===$(this).attr("href").indexOf("delegation_form")||0===$(this).attr("href").indexOf("mass_form")||0===$(this).attr("href").indexOf("newdb_form"))?$(this).html(' '+$(this).html()):$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_allow")?$(this).html(' '+$(this).text()):($(this).attr("href")&&0===$(this).attr("href").indexOf("mass_ucreate")&&$(this).html(' '+$(this).text()),$(this).attr("href")&&$(this).attr("href").indexOf("grace_form")>-1&&$(this).html(' '+$(this).text())),$(this).attr("href")&&$(this).attr("href").indexOf("edit_manual")>-1&&$(this).html(' '+$(this).text()),core.curModule("custom")&&($(this).attr("href")&&0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html(' '+$(this).text()),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html(' '+$(this).text()),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html(' '+$(this).text())),$(this).attr("href")||$(this).remove()}});$.each($(".btn-group.ui_links_row > .ui_link_empty"),function(){($(this).prev(".btn-tiny.ui_link_replaced").length||$(this).next(".btn-tiny.ui_link_replaced").length)&&$(this).addClass("btn-tiny ui_link_replaced")}),$.each($(".btn-tiny.ui_link_replaced"),function(){$(this).prev('[class="table table-striped table-condensed"]').length&&$(this).next(':not(".ui_link_replaced")').length&&$(this).removeClass("btn-tiny ui_link_replaced").addClass("ui_link_re-replaced")}),$("a.ui_link_replaced").each(function(){$(this).prev().is("b")&&$(this).prev("b").addClass("btn btn-success btn-tiny"),$(this).next().is("b")&&$(this).next("b").addClass("btn btn-success btn-tiny"),core.curModule("htaccess-htpasswd")&&$("table tr.ui_checked_columns .ui_links_row > a").addClass("btn-link btn-link-bordered btn-xxs btn-hover-hide").removeClass("btn-tiny btn-inverse")}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fetchmail/"&&$("a.ui_link").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").css("margin-bottom","10px").css("margin-top","4px"),$(this).text($(this).text().replace(/\.$/,"")),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove();var e=function(e){return' '};$(this).attr("href").indexOf("edit_poll")>-1&&$(this).prepend(e("plus-square-o")),$(this).attr("href").indexOf("edit_global")>-1&&$(this).prepend(e("pencil-square-o")),$(this).attr("href").indexOf("check")>-1&&$(this).prepend(e("check-square-o"))}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"filter/"&&$("a.ui_link").each(function(){function e(e){return' '}$(this).attr("href").indexOf("edit_auto")>-1&&$(this).find("i").replaceWith(e("reply")),$(this).attr("href").indexOf("edit_forward")>-1&&$(this).find("i").replaceWith(e("reply-all"))})}v___location_path!=v___location_prefix+"/virtual-server/domain_form.cgi"&&v___location_path!=v___location_prefix+"/server-manager/list_images.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/bwgraph.cgi"||($(".panel-body > .ui_links_row > ").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).hasClass("btn-success")&&$(this).removeClass("btn-inverse")}),$.each($(".panel-body > .ui_links_row > .ui_link_empty"),function(){$(this).text().replace(/[\t\n]+/g," ").length<4?$(this).remove():($(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,"")),$(this).prev().is("img")&&$(this).removeClass().addClass("margined-left-3"))}),$(".panel-body > b").css("margin-right","7px"),v___location_path==v___location_prefix+"/virtual-server/domain_form.cgi"&&$.each($(".panel-body > .ui_links_row > .btn"),function(e,t){0==e&&$(this).html(' '+$(this).text()),1==e&&$(this).html(' '+$(this).text()),2==e&&$(this).html(' '+$(this).text()),3==e&&$(this).html(' '+$(this).text())})),v___location_path!=v___location_prefix+"/server-manager/edit_serv.cgi"&&v___location_path!=v___location_prefix+"/server-manager/edit_owner.cgi"||($('.table-striped .col_value a[href^="edit_serv.cgi"], .table-striped .col_value a[href^="edit_owner.cgi"]').each(function(){$(this).addClass("btn btn-inverse btn-xxs ui_link_replaced margined-right--2").removeClass("btn-tiny ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).hasClass("btn-success")&&$(this).removeClass("btn-inverse")}),$.each($(".table-striped .col_value .ui_links_row > .ui_link_empty"),function(){$(this).addClass("btn-xxs ui_link_replaced").removeClass("btn-tiny ui_link"),$(this).text().length<4?$(this).remove():$(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,""))})),$("a.ui_link, .btn").each(function(){if("."==$(this).text().substr(-1)&&!$(this).parent().is("label")){var e="."==$(this).text().substr(-1)&&".."==$(this).text().substr(-2)?2:1;$(this).text($(this).text().substr(0,$(this).text().length-e))}})},snippets.page.render=function($is_history_action){var body;if(page_control_header(),plugins.dashboard.restore(),plugins.navigation.state.update(),$is_history_action&&$(".popover.in").remove(),$is_history_action&&"undefined"!=typeof __cm_editor_static&&(__cm_editor_static.toTextArea(),$('button[data-form="submitter"]').unwrap(),$('.CodeMirror, button[data-form="submitter"] + button, .-helper.__helper, .-helper.soft_wt').remove()),body=$("body"),body.off("mousedown.cm1 keydown.cm1"),body.undelegate('button[type="submit"]:not(.disabled)',"click.cm"),body.undelegate('button[data-form="submitter"]:not(.disabled)',"click.cm"),table_proc_size_columns(),$("body").attr("style",get_server_data("style")),$.each($('select[onchange="form.submit()"]'),function(){$(this).removeAttr("onchange").addClass("onchange_form_submit_triggger")}),page.handle.content.offset(!0),editor_init_check()){var select_for_edited_file=$('select[name="file"]:first, select[name="manual"]:first');select_for_edited_file.addClass("onchange_form_submit_triggger"),select_for_edited_file.next("button.ui_form_end_submit").addClass("hidden")}if(snippets.datetime.locale(),snippets.datetime.locale({type:"insert",history:$is_history_action}),snippets.datetime.locale({type:"init"}),3==get_access_level()&&core.curModule("quota"))var $_table_quota=$(".container-fluid .panel-body .table"),$_table_quota_empty_label=$_table_quota.find("thead:first-child").add($_table_quota.find("thead:first-child").next("tbody")).remove();$.support.spa&&core.curModule("tunnel")&&$("form").on("submit",function(e){var t=$(quirks.active_element());e.preventDefault(),e.stopPropagation(),$.ajax({type:$(this).attr("method")?"GET":"POST",url:v___location_prefix+"/"+v___module+"/"+$(this).attr("action"),data:get_form_data($(this)),dataType:"text",complete:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(theme_open_new_tab(this.url),t.removeClass("disabled").find("i").removeClass("invisible").next(".cspinner_container").remove())}})}),check_location_resource("/config.cgi?tunnel")&&$('table table[width="100%"] tr:first-child').addClass("hidden"),$.each($('tr td:last-child a:contains("..")'),function(){if(v___location_path==v___location_prefix+"/virtual-server/list_databases.cgi"){if($(this).attr("href")&&$(this).attr("href").includes("showpass.cgi"))return!0;$(this).html($(this).text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn f__lnk_t_btn-el btn-transparent btn-link-bordered btn-xxs margined-top--3").removeClass("ui_link")}}),$.support.spa&&!$is_history_action&&$("#headln2c").prepend(" '),plugins.favorites.detect(),$(".switch-toggle").find('label[for="open_thirdlane"]').length&&$('.switch-toggle input:not([id="open_webmin"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){$("#open_webmin").prop("checked",!0)}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"&&$("table.table tbody tr").addClass("ui_checked_columns"),page_table_rows_control(),!$is_history_action&&page_radios_evolve();var $onLoad_checkBox=$('.ui_checked_columns td.ui_checked_checkbox input[type="checkbox"]:checked:not(disabled)').parents("tr.ui_checked_columns").addClass("hl-aw");if($("body").hasClass("servers")&&$('form[action="delete_servs.cgi"] a.icon_link, form[action="delete_servs.cgi"] a.ui_link, form[action="delete_servs.cgi"] .col-xs-1').on("click",function(e){if($(e.target).is(".gl-icon-select"))$.support.spa?$(this).trigger("contextmenu"):$(this).parents(".gl-icon-container").trigger("contextmenu");else{var t=v___location_href+$(this).attr("href"),i=$(this).attr("href");$(this);i&&i.indexOf("edit_serv.cgi")>-1||i&&i.indexOf("logout.cgi")>-1?void 0!==e.originalEvent&&$.pjax.click(e,{timeout:0,push:get_pjax_push(),type:get_pjax_type(),container:"[data-dcontainer]",fragment:"[data-dcontainer]"}):i&&-1===i.indexOf("://")?open(link_type_convert(t,1)):open(i),e.preventDefault(),e.stopPropagation()}}),core.curModule("servers")&&$.each($('form[action*="delete_servs.cgi"] a[href*="link.cgi"]'),function(){var e=$(this).attr("href");e&&e.match(/(link.cgi\/\d+)/)&&$(this).attr("target","_blank")}),v___location_path!=v___location_prefix+"/apache/edit_global.cgi"&&v___location_path!=v___location_prefix+"/apache/edit_virt.cgi"&&v___location_path!=v___location_prefix+"/apache/edit_dir.cgi"||$.each($(".ui_opt_textbox.form-control"),function(){$(this).parent("span").next("button.btn.btn-default.chooser_button").length>0&&$(this).css("margin-right","4px")}),!$is_history_action){$(".opener_container").length&&$.each($(".opener_container"),function(){$(this).find(".opener_shown").is(":visible")&&$(this).parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed")}),$(".opener_shown, .opener_hidden").length>0&&$(".opener_trigger").length>0&&($(".panel-body .ui_form .table tbody tr").removeClass("thead"),$(".opener_trigger").parents("table.table").addClass("opener_table_style"),$(".opener_trigger").parents("tr").addClass("_c__op_r").attr("style","border: 0 !important"),$(".opener_trigger").parent("td").addClass("_c__op_d"),$(".opener_trigger").parent("td").find("a").addClass("link_hover_effect link_hover_effect_style_extra"));var target_restore_selector='a[id*="opener"][id$="_restore"]';$(target_restore_selector).parent().is("p")&&($(target_restore_selector).next("a").parent("p").replaceTagName("div"),$(target_restore_selector).next("a").removeClass().addClass("opener_extra_container_a_style link_hover_effect").parent("div").addClass("opener_extra_container opener_extra_container_style margined-top-10"),$(target_restore_selector).remove()),$('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').length>0&&($('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').each(function(e,t){var i=!!(v___location_path==v___location_prefix+"/virtual-server/backup_form.cgi"&&v___location_href&&v___location_href.indexOf("?sched=")>-1);if($(this).find("img").length>0&&$(this).remove(),$(this).css("border-bottom","0"),$(this).parents("table.table").addClass("opener_table_style_small"),$(this).parent("td").addClass("opener_table_cell_style_small"),i||($(this).parent("td").addClass("opener_table_cell_style_small opener_table_cell_style_small_exclusion_border_top"),$(this).parent("td").parent("tr").parent("tbody").parent("table").parent("div.opener_hidden").addClass("opener_shown_inner").parent(".opener_container").addClass("has_sub_inner")),$(this).parent("td").find("a").addClass("link_hover_effect link_hover_effect_style"),$(this).parent().is(".panel-body")||$(this).parent().is(".ui_form")||$(this).parent().is("p")){var a=$(this),n=a.parent().is(".panel-body")?".panel-body":a.parent().is("p")?"p":".ui_form",s=a.parent(n).find('a[href^="javascript:hidden_opener"]'),o='
    ';core.curModuleFile("bind8","edit_zonekey.cgi")?(s.eq(1).wrapAll(o),s.eq(e+1).wrapAll(o)):s.eq(e+1).wrapAll(o),a.parent('.panel-body > a[href^="javascript:hidden_opener"]:first-child').remove();var r=a.parent(n).find(".opener_extra_container");$(r).next("br").remove(),$(r).addClass("opener_extra_container_style"),$(r).find("a").addClass("opener_extra_container_a_style link_hover_effect"),$(r).next(".opener_hidden").attr("style","padding:8px")}}),$.each($(".opener_hidden"),function(){$(this).css("display","none")})),$("a.opener_trigger").each(function(){$(this).parent("td").css("text-align","left")}),$('form[action*="seen_newfeatures.cgi"]').each(function(){$(this).parents("table.table-striped").next(".ui_form_end_buttons").css("margin-top","14px")}),$("#tall_0").before("
    "),$(".opener_container").each(function(e,t){$(this).find("div").hasClass("opener_hidden")?$(this).hide():$(this).show()}),$.each($("div.barchart"),function(){var e=$(this).find('img[src*="red.gif"]'),t=$(this).parent("td").contents().filter(function(){return 3==this.nodeType}).text();e&&e.attr("width")&&$(this).parent("td").html('
    '+t+'
    '+e.attr("width")+"
    ")}),$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody > tr").css("border","none").parents("table").css("margin-top","20px"),$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody").css("border","none"),$('.ui_grid_table > tbody > tr.ui_grid_row > td:has(button[type="submit"])').parents("table.ui_grid_table").css("border","none"),$("form.ui_form > table label.radio, form.ui_form > table label.checkbox").each(function(){var e=$(this),t=e.find("i.fa"),i=e.find("i.fa").text().trim(),a=e.text().trim();0===i.length&&0===a.length&&t.parent("label").remove()})}if(v___location_path&&(v___location_path.indexOf("/webmin/edit_themes.cgi")>-1||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi")){if(v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi"){plugins.navigation.reset();var $target_parents_row=$('[name="settings_navigation_color"]').parent("td").parent("tr"),rows=' '+theme_language("settings_grayscale_level_navigation")+'
    '+theme_language("settings_grayscale_level_navigation_description")+'
    '+theme_language("settings_sepia_level_navigation")+'
    '+theme_language("settings_sepia_level_navigation_description")+'
    '+theme_language("settings_saturate_level_navigation")+'
    '+theme_language("settings_saturate_level_navigation_description")+'
    '+theme_language("settings_hue_level_navigation")+'
    '+theme_language("settings_hue_level_navigation_description")+'
    '+theme_language("settings_invert_level_navigation")+'
    '+theme_language("settings_invert_level_navigation_description")+'
    '+theme_language("settings_brightness_level_navigation")+'
    '+theme_language("settings_brightness_level_navigation_description")+'
    '+theme_language("settings_contrast_level_navigation")+'
    '+theme_language("settings_contrast_level_navigation_description")+'
    ';$target_parents_row.after(rows)}var ev_change_atsettings='#atsettings form[action*="settings.cgi"] select, form[action*="save_config.cgi"]#settings_ select, #atsettings form[action*="settings.cgi"] input, form[action*="save_config.cgi"]#settings_ input';$("body").undelegate(ev_change_atsettings,"change"),$("body").on("change",ev_change_atsettings,function(e){var t=$(this).val();if("true"==t||"false"==t?"true"==t?c=!0:"false"==t&&(c=!1):c=t,window[$(this).attr("name")]=Test.numeric(c)?c&&c.length>16?c:parseFloat(c):c,void 0!==e.originalEvent)if(v___initial_load&&"settings-user.cgi"!==v___location_file)v___initial_load=0;else{var i='input[name="settings_side_slider_enabled"]';!$(e.target).is(i)&&$(e.target).is(i)||theme_config_controls(1)}});var ev_keydown_atsettings='#atsettings form[action*="settings.cgi"] input, form[action*="save_config.cgi"]#settings_ input';function a(){$("body").undelegate("#atrestore:not(.disabled)","click"),$("#atrestore:not(.disabled)").off("click.confirm"),$("#atrestore:not(.disabled)").on("click",function(){var e=get_onbeforeunload_status();set_onbeforeunload_status(0),e&&setTimeout(function(){set_onbeforeunload_status(e)},2500)}),$("#atrestore:not(.disabled)").confirmation({classNameRemove:"btn-default"},function(){$(this).off();var e=$(this);e.hasClass("btn-inverse")||setTimeout(function(){spinnerfy_buttons(e,[1.5,-33,"small",!1]);var t=$(".ui_form").serialize();$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&restore=1",data:t,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:theme_reload()},error:function(t){e.addClass("btn-danger").removeClass("btn-default btn-inverse opacity-0_5")}})},0)})}$("body").undelegate(ev_keydown_atsettings,"keydown"),$("body").on("keydown",ev_keydown_atsettings,function(e){void 0!==e.originalEvent&&theme_config_controls(1)}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi"&&$('button[type="button"][name="save_user"]').on("click",function(e){e.preventDefault(),e.stopPropagation(),theme_config_update(),theme_config("save"),plugins.navigation.load.start(),spinnerfy_buttons($(this),[-.5,-25,"small"]),setTimeout(function(){plugins.navigation.reload()},1400)}),core.moduleAvailable("webmin")&&!$is_history_action&&($(".container-fluid .nav.nav-tabs").prepend('
  • '),$(".container-fluid .tab-pane").first().before('
    '),$('.container-fluid .nav-tabs a[href="#atsettings"]').tab("show")),$is_history_action||$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-settings=1",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{$("#atsettings").html(e);var t=get_server_data("theme-version"),i=$('input[name="settings_sysinfo_theme_updates"]').first().parents("td").parent("tr.atshover"),n=i.find("td").first().find(".smaller");i.next("tr").find("td").first().find("b");n.append(' ('+theme_language("global_installed_version").toLowerCase()+" "+t+')'+theme_spinner_small("in-btn-md tmp_spinner_theme_version"," ","width:10px; height:10px; margin-left: 5px;")),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-theme_latest_version=1",data:!1,dataType:"json",success:function(e){var i=String(),a=e[0],n=a!=e[1]&&e[1],s=$("[data-text-installed]"),o=$(".tmp_spinner_theme_version"),r=$("em[data-theme-stable-version]"),l=$("span[data-theme-versions]");a&&a!=t&&(i+=", "+theme_language("global_latest_stable").toLowerCase()+' '+a+""),n&&n!=t&&(i+=", "+theme_language("global_latest_beta").toLowerCase()+' '+n+""),t&&t.length<=5&&a&&a.length<=5&&a!=t&&r.addClass("text-danger"),i&&!i.length&&(s.text(theme_language("global_installed_and_latest_version").toLowerCase()),r.addClass("text-success")),l.replaceWith(i),o.remove()},error:function(){}}),page.render.module_config([0,1,0,0,0,0,0,0,1]);var s=$("div#atsettings").find(".ui_form");$__theme_text_right_save=s.data("text-save"),$__theme_text_right_saved=s.data("text-settings_right_saved"),$__theme_text_right_saving=s.data("text-settings_right_saving"),$__theme_text_right_restore_defaults=s.data("text-settings_right_restore_defaults"),$__theme_text_right_restored=s.data("text-settings_right_restored"),$__theme_text_right_restoring=s.data("text-settings_right_restoring"),$__theme_text_right_error=s.data("text-error"),$('.container-fluid .nav-tabs a[href="#atsettings"]').text(s.data("text-current_theme")),$("div#atsettings").removeClass("text-center"),a(),theme_config_update();var o=$("body").find(".fa.fa-sub-title").parent("span");$(o).next("br").remove(),$(o).next("div.smaller").attr("style","margin-top: -15px !important"),o.remove(),u(),$('input[name="settings_right_hide_table_icons"]').on("change",function(){u($(this))}),f(),$('input[name="settings_hotkeys_active"]').on("change",function(){f($(this))}),g(),$('input[name="settings_side_slider_enabled"]').on("change",function(){g($(this))}),m(),$('input[name="settings_sysinfo_real_time_status"]').on("change",function(){m($(this))}),v(),$('input[name="settings_sysinfo_real_time_stored"]').on("change",function(){v($(this))});var r=$('input[name="settings_sysinfo_real_time_stored_length"]');r.on("input",function(){var e=$(this).next("span"),t=parseFloat(this.value),i=t+" "+theme_language("theme_xhred_global_hour").toLowerCase();t<1?i=10*Math.round(Math.round(60*t)/10)+" "+theme_language("theme_xhred_global_minutes").toLowerCase():1!==t&&t>1&&(i=t+" "+theme_language("theme_xhred_global_hours").toLowerCase()),i=" ("+i+")",e.is("span")?e.text(i):$(this).after('  '+i+"")}),r.trigger("input");var l=$('input[name="settings_table_init_datatables"]');l.on("input",function(){var e=$(this).next("span"),t=parseFloat(this.value)+" "+theme_language("theme_xhred_global_rows").toLowerCase();t=" ("+t+")",e.is("span")?e.text(t):$(this).after('  '+t+"")}),l.trigger("input"),b(),$('input[name="settings_sysinfo_easypie_charts"]').on("change",function(){b($(this))}),x(),$('input[name="settings_sysinfo_theme_updates"]').on("change",function(){x($(this))}),$('select[name="settings_navigation_color"]').on("keyup change",function(e){var t=$(this).val(),i=$("link[data-palette]"),a="blue"!=t;a&&$("head").append(''),setTimeout(function(){get_server_data("data-theme",t),i.remove(),get_server_data("data-default-theme",t),$("body .user-link.palette-toggle").find(".fa-sun").trigger("click"),theme_config_update()},a?800:0)}),$('select[name="settings_background_color"]').on("click keyup change",function(){var e=$(this).val();get_server_data("data-bgs",e),get_server_data("data-bgs",e),$("link[data-palette]").remove(),"gainsboro"!=e&&($("head").append(''),$('select[name="settings_navigation_color"]').val("gunmetal").trigger("change")),theme_config_update()}),$('input[name="settings_enable_container_offset"]').change(function(){var e=$(this).val(),t=$(".container-fluid");"false"==e?t.removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15"):t.addClass("col-lg-10 col-lg-offset-1").removeClass("margined-top-15")}),$('input[name="settings_contrast_mode"]').change(function(){var e=$(this).val();$("link[data-high-contrast]").remove(),"true"==e&&$("head").append(''),get_server_data("data-high-contrast","true"==e?"1":"0")}),$('input[name="settings_right_page_hide_persistent_vscroll"]').change(function(){var e=$(this).val(),t=$("#content.__page");"true"==e?t.removeClass("fvscroll"):t.addClass("fvscroll")}),$('select[name="settings_side_slider_palette"]').change(function(){$("body .right-side-tabs, body .right-side-tabs-toggler").attr("data-bgs",$(this).val()),"nav"===$(this).val()?setTimeout(function(){$('input[name="settings_saturate_level_navigation"]').click()}):$("#right-side-tabs").add("#right-side-tabs + .right-side-tabs-toggler").css({filter:""})}),$('input[name="settings_side_slider_enabled"]').change(function(){"true"==$(this).val()?($("body .right-side-tabs-toggler").removeClass("hidden"),$("body .right-side-tabs").removeClass("hidden"),$('input[name="settings_side_slider_sysinfo_enabled"][value="true"], input[name="settings_side_slider_notifications_enabled"][value="true"], input[name="settings_side_slider_favorites_enabled"][value="true"]').trigger("click")):($("body .right-side-tabs-toggler").addClass("hidden"),$("body .right-side-tabs").addClass("hidden")),theme_config_update(),page_resized()}),$('input[name="settings_side_slider_fixed"]').change(function(){vars.slider_pinned=-1;var e=$(".right-side-tabs-dismiss .fa2-collapse-right");"true"==$(this).val()?(plugins.slider.state(1),e.removeClass("fa-rotate-45")):(plugins.slider.state(0),e.addClass("fa-rotate-45")),theme_config_update()}),$('input[name="settings_side_slider_fixed_toggle"]').change(function(e){var t=$(".right-side-tabs-dismiss .fa2-collapse-right");"true"==$(this).val()?t.removeClass("hidden"):(("true"==$('input[name="settings_side_slider_fixed"]:checked').val()&&t.hasClass("fa-rotate-45")||"false"==$('input[name="settings_side_slider_fixed"]:checked').val()&&!t.hasClass("fa-rotate-45"))&&t.trigger("click"),t.addClass("hidden")),vars.slider_pinned=-1,theme_config_update()}),$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').change(function(e){var t="right-side-tabs-"+$(this).attr("name").split("_")[3],i=$(this).attr("name"),a=$("body").find("#"+t).hasClass("active"),n=$('input[name="settings_side_slider_sysinfo_enabled"][value="true"]:checked, input[name="settings_side_slider_notifications_enabled"][value="true"]:checked, input[name="settings_side_slider_favorites_enabled"][value="true"]:checked').length;"true"==$(this).val()?($("body").find('a[href="#'+t+'"], #'+t).removeClass("hidden").parent().removeClass("hidden"),"settings_side_slider_notifications_enabled"===i&&($(".right-side-tab-notification-asterix").removeClass("invisible hidden hidden-forged"),$(".right-side-tabs-toggler .badge.badge-danger").removeClass("invisible hidden hidden-forged"),setTimeout(function(){"function"==typeof plugins.slider.badge&&plugins.slider.badge()},300))):($("body").find('a[href="#'+t+'"], #'+t).addClass("hidden"),a&&n?$("body #right-side-tabs").find("li:not(.active) a:not(.hidden)").first().trigger("click"):0===n&&$('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),"settings_side_slider_notifications_enabled"===i&&($(".right-side-tab-notification-asterix").addClass("invisible hidden hidden-forged"),$(".right-side-tabs-toggler .badge.badge-danger").addClass("invisible hidden hidden-forged"),plugins.favicon.set(0))),theme_config_update()}),$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').each(function(){$('input[name="'+$(this).attr("name")+'"][value="'+window[$(this).attr("name")]+'"]').trigger("change")}),$('select[name="settings_navigation_color"]').after(' ');var _=$(this).attr("data-name")+"_controller";window[_]="hidden",$(".settings_navigation_color_toggle, .settings_background_color_toggle").on("click",function(){void 0===window[_]||"hidden"==window[_]?($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").removeClass("hidden"),window[_]="shown"):($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").addClass("hidden"),window[_]="hidden"),$(this).toggleClass("forced")}),$(".settings_navigation_color_reset").on("click",function(){if("settings_navigation_color"==$(this).attr("data-name")){var e="grayscale(0) sepia(0) saturate(1) hue-rotate(0deg) invert(0) brightness(1) contrast(1)",t="filter: "+e+";";$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+t),$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+t),"nav"===settings_side_slider_palette&&$("#right-side-tabs").add("#right-side-tabs + .right-side-tabs-toggler").css({filter:e}),$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"]').val(0),$('input[name="settings_saturate_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]').val(1),$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_saturate_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]').each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val())})}});var c=$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_saturate_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]');c.on("click keyup change",function(e){var t="grayscale("+$('input[name="settings_grayscale_level_navigation"]').val()+") sepia("+$('input[name="settings_sepia_level_navigation"]').val()+") saturate("+$('input[name="settings_saturate_level_navigation"]').val()+") hue-rotate("+$('input[name="settings_hue_level_navigation"]').val()+"deg) invert("+$('input[name="settings_invert_level_navigation"]').val()+") brightness("+$('input[name="settings_brightness_level_navigation"]').val()+") contrast("+$('input[name="settings_contrast_level_navigation"]').val()+")";style="filter: "+t+";",$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+style),$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+style),"nav"===settings_side_slider_palette&&$("#right-side-tabs").add("#right-side-tabs + .right-side-tabs-toggler").css({filter:t}),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_config_update()}),c.each(function(e,t){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),$(this).parent().parent("td").parent("tr.atshover").addClass("hidden settings_navigation_color_rows hidden-skip"),0===e&&$(this).parent().parent("td").parent("tr.atshover").prev("tr").addClass("hidden-dependent-skip")}),setTimeout(function(){$(".mobile-menu-toggler:visible").length&&$('input[name="settings_leftmenu_width"]').prop("disabled",!0)},100);var d=$('input[name="settings_leftmenu_width"]');d.on("click keyup change",function(e){page_adjust($(this).val(),$(this).val()),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_config_update(),settings_leftmenu_width_initial=$(this).val()}),$('input[name="settings_navigation_always_collapse"]').change(function(e){y($(this)),"true"==$(this).val()?($("html").attr("data-navigation-collapsed",1),$(".mobile-menu-toggler").removeClass("visible-xs"),plugins.navigation.collapse()):"false"==$(this).val()&&($("html").attr("data-navigation-collapsed",0),$(".mobile-menu-toggler").addClass("visible-xs")),setTimeout(function(){page_resized()},10)}),y(),d.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),settings_leftmenu_width_initial=$(this).val()}),"restored"==v___location_query&&(c.trigger("click"),d.trigger("click"),$('select[name="settings_navigation_color"], select[name="settings_background_color"]').trigger("change")),$("aside ul.user-html li.user-html-string").html($('input[name="settings_leftmenu_user_html"]').val()),$('input[name="settings_leftmenu_user_html"]').keyup(function(){$("aside ul.user-html li.user-html-string").html($(this).val())}),plugins.navigation.switch.dashboard.get()&&$('input[name="settings_sysinfo_link_mini"]').parent().parent().parent().parent("tr").remove(),$('input[name^="settings_leftmenu_netdata_link"], input[name^="settings_leftmenu_user_html_only_for_administrator"], input[name="settings_sysinfo_real_time_status_disk"], input[name="settings_sysinfo_real_time_stored_length"], input[name="settings_sysinfo_easypie_charts_size"], input[name="settings_sysinfo_easypie_charts_width"], input[name="settings_sysinfo_easypie_charts_scale"], input[name="settings_show_theme_configuration_for_admins_only"]').parents("td.col_value.atscontent").parent("tr.atshover").addClass("settings_option_padded"),$('input[data-role="tagsinput"]').tagsinput(),$("body").css("overflow","auto"),$.getScript(v___location_prefix+"/unauthenticated/js/detector."+v___source_type+".js?"+v___theme_version_plain,function(){var e=new Detector;$.each($('select[name="settings_font_family"] option'),function(){var t=$(this).text();e.detect(t)||"system-default"==$(this).val()||$(this).attr("disabled","disabled").text(t+" ("+theme_language("global_not_available")+")")}),$('select[name="settings_font_family"]').on("keyup change",function(e){var t=$(this).val(),i=($.merge($("head"),$("head")),$("head").find('link[href*="font-"]').add($("head").find('link[href*="font-"]')).add($("head").find('link[href*="fonts-roboto"]')).add($("head").find('link[href*="fonts-roboto"]'))),a=(a=$.merge($("head").find('link[href*="/authentic."]'),$("head").find('link[href*="/authentic."]'))).length?a:$.merge($("head").find('link[href*="/bundle."]'),$("head").find('link[href*="/bundle."]'));i.remove(),"0"==t||"1"==t?"0"==t&&a.after(''):a.after('')})}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)}),$('input[name="settings_leftmenu_netdata"]').on("change",function(){var e=$('input[name="settings_leftmenu_netdata_link"]');"true"==$(this).val()?e.removeAttr("disabled"):e.attr("disabled","disabled")}),$('input[name="settings_leftmenu_netdata"]:checked').trigger("change"),$(".right-side-tabs-toggler").length||($('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),$('input[name="settings_side_slider_enabled"]').attr("disabled","disabled")),page_resized(),$('input[name="settings_show_webmin_tab"]').parents("td").parent("tr").addClass("hidden"),$('[data-toggle="popover"]').popover({sanitize:!1});var p=$('textarea[name="settings_leftmenu_custom_links"]'),h=p.val();p.length&&p.val(Convert.htmlDecode(h).replace(///g,"/"));$('form[action*="settings.cgi"] textarea').on("input",function(e){void 0!==e.originalEvent&&theme_config_controls(1)}),theme_config_controls(0),set_onbeforeunload_status(0,0)}function u(e){void 0===e&&(e=$('input[name="settings_right_hide_table_icons"]:checked'));var t=["settings_right_small_table_icons","settings_right_animate_table_icons","settings_right_grayscaled_table_icons"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0),$('input[name="'+t+'"]').parent(".aradio").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1),$('input[name="'+t+'"]').parent(".aradio").removeClass("disabled")})}function f(e){void 0===e&&(e=$('input[name="settings_hotkeys_active"]:checked'));var t=["settings_hotkey_custom_1","settings_hotkey_custom_2","settings_hotkey_custom_3","settings_hotkey_custom_4","settings_hotkey_custom_5","settings_hotkey_custom_6","settings_hotkey_custom_7","settings_hotkey_custom_8","settings_hotkey_custom_9","settings_hotkey_toggle_modifier","settings_hotkey_toggle_key_webmin","settings_hotkey_toggle_key_virtualmin","settings_hotkey_toggle_key_cloudmin","settings_hotkey_toggle_key_usermin","settings_hotkey_toggle_key_webmail","settings_hotkey_shell","settings_hotkey_focus_search","settings_hotkey_navigation","settings_hotkey_slider","settings_hotkey_toggle_slider","settings_hotkey_reload","settings_hotkey_reload","settings_hotkey_toggle_key_night_mode","settings_hotkey_sysinfo","settings_hotkey_favorites"];"false"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!0)}):$.each(t,function(e,t){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!1)})}function g(e){void 0===e&&(e=$('input[name="settings_side_slider_enabled"]:checked'));var t=["settings_side_slider_palette","settings_side_slider_fixed","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled"];"false"==e.val()?$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),setTimeout(function(){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!0).parent(".aradio").addClass("disabled")},10)}):$.each(t,function(e,t){("settings_side_slider_fixed"!=t||"settings_side_slider_fixed"==t&&"true"!=$('input[name="settings_navigation_always_collapse"]:checked').val())&&("settings_side_slider_fixed_toggle"!=t||"settings_side_slider_fixed_toggle"==t&&"true"!=$('input[name="settings_navigation_always_collapse"]:checked').val())&&$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!1).parent(".aradio").removeClass("disabled")})}function m(e){void 0===e&&(e=$('input[name="settings_sysinfo_real_time_status"]:checked'));var t=["settings_sysinfo_real_time_timeout","settings_sysinfo_real_time_status_disk","settings_sysinfo_real_time_stored","settings_sysinfo_real_time_stored_length"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function v(e){void 0===e&&(e=$('input[name="settings_sysinfo_real_time_stored"]:checked'));var t=["settings_sysinfo_real_time_stored_length"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function b(e){void 0===e&&(e=$('input[name="settings_sysinfo_easypie_charts"]:checked'));var t=["settings_sysinfo_easypie_charts_size","settings_sysinfo_easypie_charts_width","settings_sysinfo_easypie_charts_scale"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function x(e){void 0===e&&(e=$('input[name="settings_sysinfo_theme_updates"]:checked'));var t=["settings_cache_interval"];"true"==e.val()?$.each(t,function(e,t){$('[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function y(e){void 0===e&&(e=$('input[name="settings_navigation_always_collapse"]:checked'));var t=["settings_side_slider_fixed","settings_side_slider_fixed_toggle","settings_leftmenu_width"];"true"==e.val()?(vars.slider_pinned=-1,$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),setTimeout(function(){$('input[name="'+t+'"]').prop("disabled",!0).parent(".aradio").addClass("disabled")},10)})):$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||"false"==$('input[name="settings_side_slider_enabled"]:checked').val()||$('input[name="'+t+'"]').prop("disabled",!1).parent(".aradio").removeClass("disabled")})}}});var ev_click_atsettings="#atsave:not(.btn-inverse):not(.disabled)";$("body").undelegate(ev_click_atsettings,"click"),$("body").on("click",ev_click_atsettings,function(e){e.preventDefault();var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small"]),set_onbeforeunload_status(0,0),theme_config_update(),theme_config("save"),core.updateModuleData("/webmin/edit_startpage.cgi","/webmin/change_startpage.cgi",{gotomodule:$.trim($('select[name="goto_webmin_default_module"]').val())}),setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&save=1",data:core.get_global_vars(["settings_"],1),dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(plugins.navigation.reload(),theme_config_controls(0),despinnerfy_buttons(0,t),settings_sysinfo_real_time_status?"object"==typeof stats?(stats.general.timeout=settings_sysinfo_real_time_timeout,stats.general.enable()):load.bundle(v___server_extensions_path+"/stats/stats",0,["stats.general.timeout = settings_sysinfo_real_time_timeout","stats.general.query()"]):"object"==typeof stats&&stats.general.disable())},error:function(){t.addClass("btn-danger").removeClass("btn-success btn-inverse opacity-0_5")}})},1e3)})}var theme_control_pages=v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-backgrounds.cgi";if($is_history_action||!theme_control_pages&&!core.curModuleFile("webmin","edit_themes.cgi")||plugins.navigation.reset(),!$is_history_action&&theme_control_pages){check_location_resource("/settings-logos.cgi?saved=1")&&$.each($(".file_chooser_button_preview:first"),function(){$(this).hasClass("disabled")?$("aside + .__logo").remove():matchMedia("(max-width: 1080px)").matches||($("aside + .__logo").length?($(".__logo img").attr("src",$("[data-image-lga]").attr("data-image")),$("aside + .__logo").attr("style","transform: translate(0px, 0px);"),setTimeout(function(){$(".__logo").transition({y:"-140px"},1200)},400)):($("aside").after(''),setTimeout(function(){$(".__logo").transition({y:"-140px"},1200)},400)))});var ev_click_atsettings2=".authentic_update:not(.disabled), .page_footer_ajax_submit:not(.disabled)";$("body").undelegate(ev_click_atsettings2,"click"),$("body").on("click",ev_click_atsettings2,function(){spinnerfy_buttons($(this),[1.5,-28,"small",!1])}),setTimeout(function(){v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"&&$(".end_submits").parent("td").after(' '+theme_language("settings_right_theme_bgs")+' '+theme_language("settings_right_theme_logos")+" '+theme_language("global_save")+" ")},1300)},10)}if($is_history_action||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-backgrounds.cgi"||($(function(){var e=$('input[name="authenticated_logo"]:checked, input[name="authenticated_bg"]:checked'),t=e.val(),i=$('input[name="unauthenticated_logo"]:checked, input[name="unauthenticated_bg"]:checked');i.val();function a(i){void 0===i&&(i=e);var a=["authenticated_logo_file","authenticated_bg_file"];"1"!=i.val()?$.each(a,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")}):$.each(a,function(e,i){$('input[name="'+i+'"]').parents(".file-input-wrapper").removeClass("disabled"),"1"==t&&$('input[name="'+i+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}function n(e){void 0===e&&(e=i);var t=["unauthenticated_logo_file","unauthenticated_bg_file"];"1"!=e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").removeClass("disabled"),"1"==i&&$('input[name="'+t+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}a(),$('input[name="authenticated_logo"], input[name="authenticated_bg"]').on("change",function(){a($(this))}),n(),$('input[name="unauthenticated_logo"], input[name="unauthenticated_bg"]').on("change",function(){n($(this))})}),$(".file_chooser_button_preview").on("mouseout",function(e){$(this).css("background","white")}).on("mouseover",function(e){$(this).css("background","#eee")}),$.each($(".file_chooser_button_preview"),function(){$(this).data("image")&&$(this).popover({trigger:"hover",sanitize:!1,html:!0,content:function(){return""}})})),$("#system-status > div.panel-body > table > tbody > tr > td").on("mouseover",function(){$(this).find(".btn-hidden").removeClass("hidden")}).on("mouseout",function(){$(this).find(".btn-hidden").addClass("hidden")}),core.curModule("bind8")){var $table_data_recursive_tree=$(".container-fluid table[data-recursive_tree]");$table_data_recursive_tree.length&&($table_data_recursive_tree.removeClass().addClass("table table-hover"),$.each($table_data_recursive_tree.find('img[src*="images/"]'),function(e,t){var i=$(this);Test.strContains(i.attr("src"),"close")&&i.replaceWith(''),Test.strContains(i.attr("src"),"open")&&i.replaceWith(''),Test.strContains(i.attr("src"),"smallicon")&&i.replaceWith('')}))}if((core.curModule("software")&&(Test.strContains(v___location_file,"tree.cgi")||Test.strContains(v___location_file,"ipkg-tree.cgi"))||core.curModuleFile("cluster-software","edit_host.cgi"))&&($('img[src*="images/"]').each(function(e,t){var i=$(this);i.next("a").removeClass(),Test.strContains(i.attr("src"),"close")&&i.replaceWith(''),Test.strContains(i.attr("src"),"open")&&i.replaceWith(''),Test.strContains(i.attr("src"),"pack")&&i.replaceWith('')}),Test.strContains(v___location_file,"ipkg-tree.cgi")&&$('form[action*="ipkg-tree.cgi"] + script + p > a, form[action*="ipkg-tree.cgi"] + script + p + table +p > a').addClass("margined-top-10")),(core.curModule("mysql")||core.curModule("postgresql"))&&($('a > img[src*="images/left.gif"]').each(function(e,t){$(this).replaceWith('')}),$('a > img[src*="images/right.gif"]').each(function(e,t){$(this).replaceWith('')})),core.curModuleFile("virtual-server","list_scripts.cgi")&&($('td > a > img[src*="images/staroff.gif"]').each(function(e,t){$(this);$(t).attr("src",v___location_prefix+"/images/staroff.gif")}),$('td > a > img[src*="images/staron.gif"]').each(function(e,t){$(this);$(t).attr("src",v___location_prefix+"/images/staron.gif")})),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"status/"&&($('td img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){$(t).replaceWith('')}),$('td img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){$(t).replaceWith('')}),$('td img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){$(t).replaceWith('')})),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/up.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/up.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('')}),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/down.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/down.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('')}),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/not.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/not.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('')}),(core.curModule("proc")||core.curModule("firewall")||core.curModule("firewall6")||core.curModule("shorewall")||core.curModule("shorewall6")||core.curModuleFile("pam","edit_pam.cgi")||core.curModule("filter"))&&($("td a img[src], td label a img[src]").parents("td").addClass("text-center"),$('td img[src*="images/gap.gif"]').replaceWith(''),$('td a img[src*="images/down.gif"]').replaceWith(''),$('td a img[src*="images/up.gif"]').replaceWith(''),$('td a img[src*="images/after.gif"]').replaceWith(''),$('td a img[src*="images/before.gif"]').replaceWith('')),(core.curModule("squid")||core.curModule("cron"))&&($('td a img[src*="images/movedown.gif"]').replaceWith(''),$('td a img[src*="images/moveup.gif"]').replaceWith('')),core.curModule("cron")&&($('td a img[src*="images/bottom.gif"]').replaceWith(''),$('td a img[src*="images/top.gif"]').replaceWith('')),$("input").each(function(e,t){"images/ok.gif"==$(this).attr("src")&&($(t).attr("src",v___location_prefix+"/"+$(this).attr("src")),$(this).parents("td").attr("style","white-space: nowrap"))}),core.curModule("commands")&&$("body").addClass("custom"),!$is_history_action){if(core.curModuleFile("custom","view.cgi")){var $_t_title=$('form[action="save.cgi"]').find(".table-title"),$_tt=$_t_title.find("tt").detach();$("#headln2c").find("[data-main_title]").after("
    "+$_tt[0].outerHTML+"
    "),$_t_title.remove()}if($.each($("form > table"),function(){$(this).next('input[type="submit"]')&&$(this).attr("style")}),$.each($("table tr"),function(){$(this).is(":empty")&&$(this).remove()}),$.each($("span > input"),function(){var e=$(this).parent("span").next(".chooser_button"),t=$(this).parent("span").next('input[type="button"][onclick]');$(this).parent("span").next("select");e&&e.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; margin-top:4px !important;").find("i.fa-files-o").css("margin-top","0").addClass("vertical-align-middle"),$(this).parents(".tab-content")&&e.css("margin-top","4px"),t&&(t.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-files-o").css("margin-top","11px").addClass("vertical-align-middle"),t.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-calendar").attr("style","margin-top: 21px !important; font-size: 11px; margin-left: -27px; pointer-events: none;"))}),$.each($('input[type="button"][onclick^="ifield"]'),function(e,t){$(this).css("margin-left","0").css("width","40px").css("height","28px")}),$('.ui_form[action="switch.cgi"] > input.form-control.ui_textbox').next('input[type="button"][onclick^="ifield"]').attr("style","margin-top: 2px !important; margin-bottom: 2px !important; margin-left: 0 !important"),setTimeout(function(){$('.ui_form[action="switch.cgi"] .file_chooser_button_attached').attr("style","font-size: 11px; pointer-events: none; margin-top: 14px !important;")},10),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cshrc/"&&$("textarea").each(function(e,t){$(this).attr("style","height: 20em !important")}),v___location_path!=v___location_prefix+"/acl/"&&v___location_path!=v___location_prefix+"/acl/edit_user.cgi"||$('.ui_grid_table.table-hardcoded .ui_grid_row .ui_grid_cell input[type="checkbox"], .table-hardcoded .col_value input[type="checkbox"]').each(function(e,t){$(this).attr("style","vertical-align: bottom !important")}),core.curModule("custom")||core.curModule("commands")){$(".panel-body > .ui_grid_table.table-hardcoded").each(function(e,t){$(this).attr("style","margin-top: 3px !important")}),$(".panel-body td > .ui_form").each(function(){$(this).attr("style","padding-top: 0 !important")}),$(".panel-body > a.ui_link").each(function(e,t){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html(' '+$(this).text())}),$.each($("td[data-td-e] > .ui_links_row"),function(){var e=$(this).parent();e.find('a[href^="edit_"]').addClass("ui_link_replaced btn btn-xxs btn-transparent btn-link-bordered f__lnk_t_btn-el").css("margin-right","3px").removeClass("ui_link").prepend(' '),e.parents("table").find("thead > tr > th:eq(2)").addClass("pointer-events-none")}).promise().done(function(){$(this).is(".ui_links_row")&&$(this).contents().unwrap()}),$.each($("td.col_value.col_header > .ui_links_row"),function(){}).promise().done(function(){$(this).is(".ui_links_row")&&$(this).contents().unwrap()}),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="form.cgi"]',"btn btn-primary btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-cog","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="run.cgi"], a[href^="sql.cgi"]',"btn btn-success btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-play fa-0_85x","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="view.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-pencil-square-o","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="sqlform.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-cog","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi"],".container-fluid table.ui_grid_table td:last-child",'a.ui_link[href^="edit_"]',"btn btn-default btn-transparent btn-transparent-link btn-xxs vertical-align-top margined-top-1 margined-right-5 pull-right btn-dnwo ---forced","fa-pencil","","","","|"),$('body[class*="custom"] table.ui_grid_table tr td > form .table-responsive table tr:first-child td.col_header button.ui_submit').prepend(''),$.fn.mytxtW=function(e,t){return $.fn.mytxtW.fakeEl||($.fn.mytxtW.fakeEl=$("").hide().appendTo(document.body)),$.fn.mytxtW.fakeEl.text(e||this.val()||this.text()||this.attr("placeholder")).css("font",t||this.css("font")),$.fn.mytxtW.fakeEl.width()+2},$('table.ui_grid_table td input[type="text"], table.ui_grid_table td input[type="password"], table.ui_grid_table td textarea').on("input",function(){var e=$(this).mytxtW()+15;$(this).attr("type"),$(this).css({width:e})}).trigger("input");var is_two_columns=$(".sub_table_container").first().find('td[colspan="4"]').length?0:1,$empty_cells=$("table.ui_grid_table tbody tr.ui_grid_row td.ui_grid_cell");$.each($empty_cells,function(){var e=$(this).html();("
    "==e||e.length<10)&&$(this).remove(),is_two_columns&&($(this).addClass("no-contents"),$(this).parent("tr").addClass("no-contents"))})}if(check_current_file("config.cgi")&&v___location_query&&v___location_query.includes("custom")&&$('[name="width_def"], [name="height_def"], [name="wrap"]').parent().parent("td").parent("tr").addClass("hidden"),snippets.page.render_links($is_history_action),v___location_path==v___location_prefix+"/fdisk/edit_disk.cgi"){var __delete=[];$.each($(".panel-body > table.table.table-striped tbody tr"),function(e,t){($(this).find("td:nth-child(3)").find('img[src*="images/use"]').length||$(this).find("td:nth-child(3)").find('img[src*="images/gap"]').length)&&($(this).find("td:nth-child(3)").remove(),__delete.push(e))}),$.isEmptyObject(__delete)||($(".panel-body > table.table.table-striped thead").find("th:nth-child(3)").remove(),delete __delete)}if(v___location_path==v___location_prefix+"/virtual-server/edit_link.cgi"&&$(".table-hardcoded").find('input[name="open"]').parent("td").parent("tr").remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"&&$('.table.table-striped.table-condensed tr.tr_tag td[data-td-e] input[type="checkbox"]').each(function(e,t){$(this).attr("style","vertical-align: middle !important")}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"&&$("#signal").attr("style","margin-bottom: 0 !important;"),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"procmail/"&&($(".panel-body p:first-child").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),$(".panel-body p:last-child").prev("a.ui_link").remove()),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"cron/"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"cron/index.cgi"||$('.panel-body form.ui_form[action="index.cgi"]').next("script").next("b").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"filter/"&&$(".panel-body > b").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"dhcpd/"){var $dhcp_target=$(".panel-body > p");$dhcp_target.find('a[href*="../software"]').length||$dhcp_target.contents().filter(function(){return 3==this.nodeType}).remove()}v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"htaccess-htpasswd/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"forward/"||$("td table.table-hardcoded.table.table-subtable").removeClass("table-striped"),$(".ui_buttons_hr > td > table.table-hardcoded > tbody > tr > td[nowrap]").each(function(){$(this).parents("table").attr("style","margin-bottom: 15px !important")}),$("textarea.form-control.ui_textarea").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important"),$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")}),$("textarea.form-control.ui_textarea").next("br").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important"),$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")}),$(".table-hardcoded > tbody > tr > td > input.form-control.ui_textbox").next('button[type="button"].ui_button').each(function(){$(this).attr("style","margin-top: 2px !important")}),$(".table-hardcoded > tbody > tr > td.col_label b a, .ui_table_row td a").each(function(e,t){$(this).attr("href")||$(this).attr("style","color: #333; text-decoration: none; cursor:default")}),$('input[name="all_weekdays"], .ui_grid_cell > table.table-condensed, table.table-hardcoded table.table-condensed, select[multiple][name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important; padding-left:2px; padding-right:2px;")}),$('input[type="submit"]').each(function(){$(this).addClass("btn btn-default")}),$("table tr th").each(function(){$(this).text()&&$(this).attr("style","width: auto")}),$("table thead th:not(.table-title)").each(function(){$(this).css("border-top","none"),$(this).css("border-bottom","none")}),$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1&&(!$("body").hasClass("file-manager")&&$("body").addClass("file-manager"),$("#headln2l").prepend("'));var $table_header_links=$(".panel-heading > .header > div a");$.each($table_header_links,function(){if($(this).attr("href")&&$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==v___location_directory_trail_slashed||$(this).attr("href").indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"||$(this).attr("href").indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"||$(this).attr("href").indexOf("restart_zone.cgi")>-1||$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1||$(this).attr("href").indexOf("start.cgi")>-1||$(this).attr("href").indexOf("stop.cgi")>-1||"//"==$(this).attr("href")&&(v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi")||$(this).attr("href").indexOf("delete_")>-1||$(this).attr("href").indexOf("list_mail.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1||$(this).attr("href").indexOf("help.cgi")>-1){if($.each($(this).next("br"),function(){$(this).remove()}),$.each($(this).prev("br"),function(){$(this).remove()}),$(this).attr("href").indexOf("help.cgi")>-1){var e=$(this),t=$(this).parent("div");$(this).remove(),t.append(e)}$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==v___location_directory_trail_slashed||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1?($iconized_class="fa-arrow-left",$(this).data("title","").data("back",1)):"//"!=$(this).attr("href")||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi"?$(this).attr("href").indexOf("config.cgi")>-1?($iconized_class="fa-cog",$(this).data("title","")):$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1?$iconized_class="fa-refresh":$(this).attr("href").indexOf("restart_zone.cgi")>-1?$iconized_class="fa-retweet":$(this).attr("href").indexOf("start.cgi")>-1?$iconized_class="fa-play":$(this).attr("href").indexOf("stop.cgi")>-1?$iconized_class="fa-square":$(this).attr("href").indexOf("man/search.cgi")>-1?$iconized_class="fa-search":$(this).attr("href").indexOf("delete_")>-1?$iconized_class="fa-trash-o":$(this).attr("href").indexOf("list_mail.cgi")>-1?$iconized_class="fa-inbox":$(this).attr("href").indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"?$iconized_class="fa-cogs":$(this).attr("href").indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"&&($iconized_class="fa-arrow-left",$(this).data("back",1)):($iconized_class="fa-arrow-left",$(this).attr("href",v___location_prefix+"/webmin/edit_themes.cgi").data("title","").data("back",1));var i=$(this).attr("href").indexOf("help.cgi")>-1;i&&($iconized_class="fa-question-circle",$(this).data("title",""));var a=Convert.strUpInitial(i?theme_language("global_help"):1===$(this).data("back")?core.curModule(v___module_file_manager)?"":theme_language("global_return_to_module_index"):$(this).text());$(this).data("toggle","tooltip").data("title",a).attr("data-container","body").addClass("btn btn-link text-lighter").removeClass("ui_link").append(''),$(this).attr("aria-label",a),$(this).contents().filter(function(){return 3==this.nodeType}).remove(),$(this).tooltip({container:"body",placement:"auto top",trigger:"hover",delay:{show:600,hide:30}}),((v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"apache/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proftpd/")&&($(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1)||$(this).parent("div").find("a")&&1==$(this).parent("div").find("a").length||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1)&&(($(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1)&&$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1?$(this).attr("style","margin-right: 0 !important; padding: 6px 12px"):$(this).attr("style","margin-right: 0 !important"))}$("#headln2l").removeClass("invisible")}),$.each($('td.ui_grid_cell:contains("|")'),function(){$(this).contents().filter(function(){return 3==this.nodeType}).remove()}),$('a[href*="help.cgi"][onclick], a[href*="help.cgi/"], a[href*="showpass.cgi?"][onclick]').attr("onclick","").unbind("click").addClass("help_popup"),$(".help_popup").each(function(){$(this).attr("style","color: #333; text-decoration: none; cursor:help")})}if(!$is_history_action){if($('select.ui_select[name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important")}),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailbox/"&&v___location_path!=v___location_prefix+"/postfix/view_mailq.cgi"||(v___location_file?"list_mail.cgi"==v___location_file&&$('.container-fluid input:not([type="checkbox"]), .container-fluid .ui_form_end_submit, .container-fluid select').addClass("heighter-34").removeClass("heighter-28").css("margin-bottom","-1px"):($(".ui_form_end_submit").css("margin-top","0"),$("input#user").addClass("heighter-34 vertical-align-top")),$("body").find("form").removeAttr("onsubmit"),$header_tables=$("body").find('input[name="from"]').parents(".tab-pane").parent("td"),$header_tables.children("table").hide(),$.each($header_tables.find("input, textarea, select"),function(){$(this).hasClass("ui_select")||$(this).attr("onclick")||"checkbox"==$(this).attr("type")||"submit"==$(this).attr("type")||$(this).attr("style","width: 60%").addClass("inline-block"),$(this).attr("onclick")&&$(this).addClass("inline-block")}),onbeforeunload=null,1==$("body").find('input.ui_hidden[name="html_edit"]').val()&&editor_html_init(["body",2,!1,"edit_web"],"basic"),$("body").find('input[name="from"]').parents(".tab-pane").prev("table").remove(),$("body").find('input[name="from"]').parents(".tab-pane ").parent("td").find("div, table").each(function(e,t){$(this).find(".col_label").css("width","20%"),$(this).find('input[name="subject"]').parent("td").prev("td").find("b").attr("style","font-size: 13px !important"),$(this).find('input[name="subject"]').parents("table").show(),$(this).find('input[name="subject"]').parent("td").find(".submitter").remove()}),$editor_mode_link_container=$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th:last-child"),$editor_mode_link=$editor_mode_link_container.find("a").addClass("editor_mode_link"),$editor_mode_link_container.parent("tr").find("th:first-child").append($editor_mode_link),$editor_mode_link_container.remove(),$editor_mode_link_button=$("body").find('textarea[id="body"]').parents("table").find(".editor_mode_link"),$editor_mode_link_button_state=!!$editor_mode_link_button.attr("href")&&$editor_mode_link_button.attr("href").indexOf("html=0"),$editor_mode_link_button.attr("title",$editor_mode_link_button.text()).addClass("editor_mode_link_button pull-right btn btn-sm "+(-1==$editor_mode_link_button_state?"btn-success":"btn-primary")).html(' '),$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th").find("b").css("padding-left","45px"),$(".editor_mode_link_button").tooltip(),$fileinput_container=$("body").find('a[onclick="return add_ss_attachment()"]'),$fileinput_container.parent("td").contents().filter(function(){return 3==this.nodeType}).remove(),$fileinput_container.remove(),$fileinput_add_another_attachment=$("body").find('a[onclick="return add_attachment()"]'),$fileinput_add_another_attachment.addClass("btn btn-default"),$fileinput_add_another_attachment.text($fileinput_add_another_attachment.text().replace(/\.$/,"")),(v___location_path.indexOf("view_mail.cgi")>-1||v___location_path.indexOf("view_mailq.cgi")>-1)&&($table_title_header_container=$(".ui_form").find("div.table-responsive").first().find(".table-title"),$table_title_links_container=$table_title_header_container.next(),$table_title_links_container.contents().filter(function(){return 3==this.nodeType}).remove(),$table_title_links_container.find("a").removeClass("btn-inverse").parent(".ui_links_row").contents().unwrap(),$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny"),$table_title_links=$table_title_links_container.html(),$table_title_header_container.append($table_title_links),$table_title_links_container.remove(),$table_title_header_container_text_padding=35,$(".table-title > a.table_title_links").each(function(){$table_title_header_container_text_padding=v___location_path==v___location_prefix+"/postfix/view_mailq.cgi"?120:235}),$(".table_title_links_container a").each(function(){$table_title_header_container_text_padding+=$(this).width()}),$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding),$table_title_second_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child"),$table_title_header_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:first-child"),$table_title_links_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:last-child"),2==$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th").length&&$table_title_links_container.remove(),$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-tiny"),$table_title_links_container.find("a").attr("href")&&$table_title_links_container.find("a").attr("href").indexOf("body=1")>-1?$table_title_links_container.find("a").addClass("btn-info"):$table_title_links_container.find("a").addClass("btn-warning"),$table_title_links_container.find("a").removeClass("btn-inverse").parent(".ui_links_row").contents().unwrap(),$table_title_links=$table_title_links_container.html(),$table_title_header_container.append($table_title_links),$table_title_header_container_text_padding=10,$table_title_header_container.find("a").each(function(){$table_title_header_container_text_padding+=$(this).width()}),setTimeout(function(){if($(".ui_form").find("div.table-responsive").first().find("table:first-child").outerWidth()!=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child").outerWidth()){var e=parseInt($(".ui_form").find("div.table-responsive").first().find("table:first-child").width()/2);$table_title_second_container.find(".table-title").addClass("left").find("b").css("padding-left",e-175),$table_title_second_container.find(".pull-right").removeClass("pull-right").addClass("pull-left")}$.each($table_title_second_container.find("table"),function(){$(this).removeClass().addClass("clear-formatting"),$.each($(this).find("td.col_value"),function(){$(this).css("background-color","white")})})},30),$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding),$table_title_header_container.find("b")&&$table_title_header_container.find("b").length>1&&$table_title_header_container.find("b:first-child").text()==$table_title_header_container.find("b:last-child").text()&&$table_title_header_container.find("b:last-child").remove()),$("td > a").on("click",function(){$(this).attr("onclick"),$("input[type=file]").each(function(){$(this).parent("a").hasClass("file-input-wrapper")||$(this).bootstrapFileInput()})}),settings_mailbox_slash_delimiter&&$('.container-fluid select.ui_select[name="id"] > option').each(function(e,t){$(t).text($(t).text().replace(/\./g,"/").replace(/\/\//g,"/"))}),$.each($('table td[align="right"], table td[align="left"]'),function(e,t){$(this).attr("style","border: 0 !important;"),$(this).parents("tbody").attr("style","border: 0 !important;"),$(this).parents("table.table-hardcoded.table.table-striped.table-condensed.table-subtable").removeClass("table-hardcoded table table-striped table-condensed table-subtable")}),$.each($("div.table-responsive > table tbody tr td > table.table-hardcoded"),function(e,t){$(this).find("tr > td.col_label > b").removeAttr("style"),$(this).removeClass("table table-condensed")}),$.each($("div.table-responsive > table tbody tr td > div.tab-pane"),function(e,t){$(this).find("table").removeClass("table"),$(this).parents("div.table-responsive").find("table").removeClass("table-striped table-subtable")}),$.each($('div.table-responsive > table tbody tr td > div.tab-pane .col_value > input[type="button"][onclick^="ifield"]'),function(e,t){$(this).attr("style","margin-left: 0; margin-top: -27px !important")})),$.each($(".barchart"),function(){$(this).find("img").attr("height",4)}),$("a").each(function(){$(this).attr("href")||$(this).addClass("no_effect")}),$.each($(".container-fluid input:not(.ui_upload)"),function(){"28px"==$(this).css("height")&&$(this).prev("input").addClass("heighter-28")}),(core.curModule("syslog")||core.curModule("phpini"))&&$(".container-fluid .chooser_button + .ui_form_end_submit").addClass("heighter-28"),core.curModuleFile("gnupg","edit_key.cgi")&&$(".container-fluid .sub_table_container .table-condensed .btn-success").addClass("heighter-28").removeClass("btn-success").addClass("btn-default"),core.curModuleFile("virtual-server","backuplog.cgi")&&$('.container-fluid input[name="search"]').addClass("margined-top--1"),core.curModuleFile("usermin","list_sessions.cgi")&&$('.container-fluid input[name="user"] + button + button').addClass("heighter-34-force"),$.each($(".container-fluid select"),function(){32==$(this).next("input").outerHeight()&&$(this).addClass("heighter-34")}),$.each($(".container-fluid .ui_buttons_row input, .container-fluid .ui_buttons_row select"),function(){$(this).addClass("heighter-34")}),core.curModuleFile("gnupg","list_keys.cgi")&&$('.container-fluid input[id="id"]').addClass("heighter-34"),core.curModule("language")&&$('select[name="lang"]').addClass("heighter-34"),core.curModuleFile("virtual-server","edit_script.cgi")){var x1z1x1c41=$('input[name="version"]');x1z1x1c41.length&&x1z1x1c41.attr("style",x1z1x1c41.attr("style").replace("n: middle","n: bottom !important")).addClass("heighter-34")}if($.each($("tr > .ui_form"),function(){$(this).next().next("td").find("input.submitter")&&$(this).next().next("td").find("input.submitter").addClass("heighter-34")}),$.each($("input.heighter-34").next(".chooser_button"),function(){$(this).addClass("heighter-34"),$(this).find(".fa.fa-files-o").css("margin-top","0").addClass("vertical-align-middle")}),setTimeout(function(){$.each($(".container-fluid select"),function(){32==$(this).next("input").outerHeight()||32==$(this).prev("input").outerHeight()?$(this).addClass("heighter-34").removeClass("heighter-28"):28!=$(this).next("input").outerHeight()&&28!=$(this).prev("input").outerHeight()||$(this).addClass("heighter-28").removeClass("heighter-34")})},1),core.curModule("term")||core.curModuleFile("server-manager","login.cgi")){var tmp__is__m__term=$("iframe");if(tmp__is__m__term.length){var $this=tmp__is__m__term;$this.on("load",function(){$this.contents().find("#term").css("width","99.3%").css("height","96vh").css("margin-top","1px")}),$(this).next("br").remove().next('input[type="button"]').remove(),$(this).next('input[type="button"]').remove(),$(this).next("p").remove()}}if($.each($(".chooser_button"),function(){$(this).prev("input").attr("style")&&$(this).prev("input").attr("style").indexOf("max-width: 100%")>-1&&$(this).prev("input").css("max-width","93%")}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi"&&1==settings_sysinfo_link_mini&&$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$.each($('input[value="..."], input[value=" ..."], input[value=" ..."], input[value="... "], input[value="... "], input[value=" ... "], input[value=" ... "]'),function(){$(this).after(''),$(this).attr("value","").addClass("file_chooser_button_attached_input")}),$.each($(".chooser_button"),function(){$(this).prev("input").css("margin-top","2px").css("margin-bottom","2px")}),$.each($(".file_chooser_button_attached"),function(){$(this).prev('input[type="button"]').prev("input").css("margin-top","2px").css("margin-bottom","2px"),$(this).parents(".ui_buttons_label").length||$(this).parents(".table-subtable").length||$(this).css("margin-top","11px")}),$.each($(".container-fluid .ui_form > .file_chooser_button_attached"),function(){($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length||$(this).next(".heighter-34")&&$(this).next(".heighter-34").length)&&($(this).css("margin-top","16px"),$(this).prev("input[onclick]").css("width","40px"))}),$.each($('.container-fluid .ui_form[action="init_cache.cgi"] > .file_chooser_button_attached'),function(){($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length||$(this).next(".heighter-34")&&$(this).next(".heighter-34").length)&&$(this).css("margin-top","14px")}),$.each($(".col_value > .file_chooser_button_attached"),function(){$(this).prev("input[onclick]").css("width","40px").css("margin-left","0")}),v___location_path!=v___location_prefix+"/virtualmin-mailman/"&&v___location_path!=v___location_prefix+"/virtualmin-mailman/index.cgi"||$("input[name^=reset_]").addClass("heighter-28"),v___location_path!=v___location_prefix+"/software/edit_pack.cgi"&&v___location_path!=v___location_prefix+"/apache/show.cgi"&&v___location_path!=v___location_prefix+"/proc/index_search.cgi"||$.each($(".container-fluid .panel-body .btn:not(.chooser_button)"),function(){$(this).removeClass("heighter-28").addClass("heighter-34")}),v___location_path!=v___location_prefix+"/virtualmin-svn/"&&v___location_path!=v___location_prefix+"/virtualmin-svn/index.cgi"||$.each($("tr > td[data-td-e] > button"),function(){$(this).addClass("btn-hover-wash_off-in-row bhw-sm heighter-28 heighter-28-force margined-top-2 margined-bottom-2"),$(this).find(".fa-backup").length&&$(this).removeClass("heighter-28-force")}),v___location_path!=v___location_prefix+"/virtualmin-init/"&&v___location_path!=v___location_prefix+"/virtualmin-dav/list_shares.cgi"&&v___location_path!=v___location_prefix+"/squid/edit_acl.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-nginx/"&&v___location_path!=v___location_prefix+"/fdisk/edit_disk.cgi"&&v___location_path!=v___location_prefix+"/server-manager/edit_newlinks.cgi"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"backup-config/"||$.each($(".container-fluid .panel-body .ui_link_re-replaced"),function(){$(this).addClass("btn-tiny").removeClass("heighter-34")}),v___location_path==v___location_prefix+"/pam/"&&$(".panel-body > a.ui_link").addClass("btn-tiny"),v___location_path!=v___location_prefix+"/software/"&&v___location_path!=v___location_prefix+"/software/index.cgi"||($(".container-fluid input#search").addClass("heighter-34 vertical-align-top"),$('form[action="file_info.cgi"] > .ui_form_end_submit').addClass("heighter-28 heighter-28-force margined-top-0")),v___location_path==v___location_prefix+"/software/tree.cgi"&&$(".ui_link").addClass("margined-top-10"),v___location_path==v___location_prefix+"/syslog/save_log.cgi"&&($.each($(".container-fluid .heighter-34"),function(){$(this).removeClass("heighter-34").addClass("heighter-28")}),$("form:first").next("script").next("br").remove(),$("form:last").css("margin-top","5px")),v___location_path==v___location_prefix+"/status/edit_mon.cgi"&&($('td.col_value > table[cellspacing="1"] tbody').attr("style","border: 0 !important;"),$(".opener_trigger:last-child").css("font-size","16px"),$.each($("table.sub_table_container td > font"),function(){$(this).parents("tbody"),$(this).contents().unwrap().wrap(' ')})),v___location_path!=v___location_prefix+"/shell/"&&v___location_path!=v___location_prefix+"/shell/index.cgi"&&v___location_path!=v___location_prefix+"/server-manager/shell.cgi"&&v___location_path!=v___location_prefix+"/server-manager/massshell.cgi"||($.each($(".container-fluid .btn:not(.btn-link), .container-fluid select, .container-fluid input"),function(){$(this).removeClass("heighter-28").addClass("heighter-34"),$(this).is('input[type="button"]')&&$($(this).addClass("submitter")),$(".form-control.sidebar-search").val()&&$(".form-control.sidebar-search").val().trim().startsWith("!")&&$(".form-control.sidebar-search").val(""),$(".ui_form").find("input.btn.btn-default:first").addClass("btn-success")}),$(".container-fluid input#cmd").focus(),setTimeout(function(){var e=$("#content"),t=e.find(v___page_container).outerHeight();e.scrollTop(t)})),$.each($("input"),function(){28==$(this).outerHeight()&&28!=$(this).next("input").outerHeight()&&$(this).is(':not([type="hidden"])')&&$(this).next("input").addClass("heighter-28")}),$.each($(".container-fluid select"),function(){32==$(this).outerHeight()&&32!=$(this).next("select").outerHeight()&&$(this).next("select").addClass("heighter-34")}),v___location_path==v___location_prefix+"/cluster-passwd/edit_passwd.cgi"&&$.each($("input + button"),function(e,t){"28px"==$(this).css("height")&&$(this).addClass("heighter-28").css("line-height","12px").css("margin-top","2px")}),v___location_path==v___location_prefix+"/cluster-shell/"||v___location_path==v___location_prefix+"/cluster-shell/index.cgi"){var $__btn_to_rep=$('button[onclick*="run.cgi?clear"]');if($__btn_to_rep.length){var btn_txt=$__btn_to_rep.text();$__btn_to_rep.replaceWith('")}}if(v___location.pathname!=v___location_prefix+"/virtual-server/pro/history.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/bwgraph.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/history.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/one_history.cgi"||($("body").find("table.ui_form_end_buttons .btn.btn-default.submitter.ui_submit").addClass("btn-success"),$(".panel-body > table tr td .ui_link_empty").each(function(e,t){$(this).addClass("btn-tiny ui_link_replaced")}),$(".panel-body > table a").each(function(e,t){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).text()&&$(this).text().indexOf("<<")>-1&&($(this).text($(this).text().replace(/\<\ '+$(this).text())),$(this).text()&&$(this).text().indexOf(">>")>-1&&($(this).text($(this).text().replace(/\>\>/,"")),$(this).html($(this).text()+' ')),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html(' '+$(this).text()),$(this).parents("table").css("margin-bottom","3px")}),$("#history").next("table.ui_grid_table").next("a").length?($("#history").next("table").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank"),$("#history").next("table").next("a").text($("#history").next("table").next("a").text().replace(/\.\.$/,"")),$("#history").next("table").next("a").html(' '+$("#history").next("table").next("a").text())):($("#history").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank"),$("#history").next("a").text($("#history").next("a").text().replace(/\.\.$/,"")),$("#history").next("a").html(' '+$("#history").next("a").text())),$(".panel-body > hr + b").attr("style","font-size: 16px; font-weight: normal;"),$(".panel-body > hr + b").text($(".panel-body > hr + b").text().replace(/\:$/,"")),onLoad()),$.each($('tr > td[valign="top"][width="50%"]'),function(){var e=$(this).attr("style");$(this).attr("style","vertical-align: top !important; "+(e||""))}),$("body table").each(function(e,t){$(this);$(t).hasClass("table")||$(t).hasClass("header")||$(t).hasClass("ui_form_end_buttons")||$(t).hasClass("ui_table")||($(t).addClass("table-hardcoded"),$t_uri_usermin&&($(t).addClass("table-subtable"),$(t).find("tr.thead").length||$(t).hasClass("sub_table_container table-hardcoded table-subtable")?($(t).find("tr.thead").attr("style","border: 1px solid #efefef"),$(t).attr("style","border: 1px solid #efefef")):$(t).attr("style")&&v___location_path.indexOf("view_mail.cgi")>-1||$(t).attr("style","margin-top: 10px;")))}),v___location_path==v___location_prefix+"/virtual-server/list_scripts.cgi"&&table_data_init($("#att_existing > form > table.table.table-striped.table-condensed, #att_new > form > table.table.table-striped.table-condensed"),!1,!1,{orderable:!1,targets:[0,-1]}),v___location_path==v___location_prefix+"/virtual-server/edit_newscripts.cgi"&&table_data_init($("#att_summary > table.table.table-striped.table-condensed")),v___location_path!=v___location_prefix+"/server-manager/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-htpasswd/index.cgi"||table_data_init($("body form > table.table.table-striped.table-condensed")),($('body[class*="status"]').length&&!v___location_file&&!$('body[class*="smart-status"]').length||v___location_path==v___location_prefix+"/servers/"||v___location_path==v___location_prefix+"/servers/index.cgi"||v___location_path==v___location_prefix+"/webminlog/search.cgi")&&table_data_init($("table.table-striped.table-condensed")),core.curModule("smart-status")&&($('select[name="drive"]').addClass("heighter-34"),$('select[name="drive"] + .ui_form_end_submit').addClass("heighter-34")),$('body[class*="ldap-useradmin"]').length&&table_data_init($("form > table.table.table-striped.table-condensed")),v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"&&table_data_init($(".table.table-striped.table-hover.table-condensed"),!1,!1,{orderable:!1,targets:[0,-1]}),v___location_path!=v___location_prefix+"/servers/"&&v___location_path!=v___location_prefix+"/servers/index.cgi"||($(".ui_checked_columns td table tr td").find('a.ui_link[href*="edit_serv.cgi"]').addClass("margined-left-4 label label-sm label-primary hidden").html(''),$(".ui_checked_columns").hover(function(){$(this).find("td table tr a.ui_link.label.hidden").removeClass("hidden")},function(){$(this).find("td table tr a.ui_link.label").addClass("hidden")})),$.each($('table.table.table-striped.table-condensed.dataTable.no-footer > thead > tr[role="row"]:first-child'),function(e,t){$(this).attr("style","border-top: 4px solid #f2f2f2 !important")}),$.each($('button[onclick^="ifield"].btn.btn-default.ui_button'),function(){$(this).addClass("file_chooser_button_emulate")}),$.each($(".file_chooser_button_emulate"),function(){$(this).find(".fa-files-o").length||$(this).append(''),"28px"==$(this).prev("input").css("height")&&$(this).addClass("heighter-28")}),$.each($("label > img"),function(e,t){$(this).attr("style","vertical-align: baseline !important")}),$.each($('select[multiple][name="weekdays"]'),function(){$(this).parents('td[valign="top"], td[data-td-e]').attr("style","vertical-align: top !important"),$(this).parents('table[width="100%"]').parents(".ui_radio_table.table-hardcoded").css("width","100%")}),$.each($("label").find("br"),function(){$(this).parent("label").prev(".aradio, .acheckbox").attr("style","margin-left: 0 !important;"),$(this).parent("label").next(".aradio, .acheckbox").attr("style","margin-left: 0 !important;")}),$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".heighter-34").length&&$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".btn").addClass("heighter-34")})}),v___location_path==v___location_prefix+"/cpan/edit_mod.cgi"&&$('.container-fluid form[action="download.cgi"]').next().next().next().find(".submitter.ui_submit").addClass("heighter-34"),v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"){var cpan_button=$('input[name="cpan"]').next("button");cpan_button.length&&(cpan_button.html('').attr("style","width: 40px; height: 28px; vertical-align:middle !important; margin-top:2px; margin-bottom:2px;"),cpan_button.attr("onclick",cpan_button.attr("onclick").replace("document.forms[0]","document.forms[1]")))}function __m_ico_row_tb(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px","padding-bottom":"8px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef")}function __m_ico_row_t(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"18px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef")}if($("form").find(".icons-row:not(.inline-row)").length&&$("form").find(".icons-row").addClass("_processed_").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef").find(".icons-container").addClass("icons-container-stretched"),$(".ui_subheading + .ui_links_row ~ .icons-row:not(.inline-row)").length&&$(".ui_subheading + .ui_links_row ~ .icons-row:not(.inline-row)").addClass("_processed_").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef").find(".icons-container").addClass("icons-container-stretched"),v___location_path!=v___location_prefix+"/lvm/"&&v___location_path!=v___location_prefix+"/lvm/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-support/"&&v___location_path!=v___location_prefix+"/virtualmin-support/index.cgi"&&v___location_path!=v___location_prefix+"/proftpd/virt_index.cgi"&&v___location_path!=v___location_prefix+"/dhcpd/"&&v___location_path!=v___location_prefix+"/dhcpd/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-usermin/"&&v___location_path!=v___location_prefix+"/cluster-usermin/index.cgi"&&v___location_path!=v___location_prefix+"/bind8/"&&v___location_path!=v___location_prefix+"/bind8/index.cgi"&&v___location_path!=v___location_prefix+"/grub/"&&v___location_path!=v___location_prefix+"/grub/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-software/"&&v___location_path!=v___location_prefix+"/cluster-software/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-useradmin/edit_user.cgi"&&v___location_path!=v___location_prefix+"/cluster-useradmin/edit_group.cgi"&&v___location_path!=v___location_prefix+"/cluster-webmin/edit_mod.cgi"&&v___location_path!=v___location_prefix+"/cluster-usermin/edit_mod.cgi"&&v___location_path!=v___location_prefix+"/cluster-software/edit_pack.cgi"&&v___location_path!=v___location_prefix+"/cluster-useradmin/"&&v___location_path!=v___location_prefix+"/cluster-useradmin/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-usermin/"&&v___location_path!=v___location_prefix+"/cluster-usermin/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-webmin/"&&v___location_path!=v___location_prefix+"/cluster-webmin/index.cgi"||__m_ico_row_tb(),v___location_path!=v___location_prefix+"/proftpd/"&&v___location_path!=v___location_prefix+"/proftpd/index.cgi"&&v___location_path!=v___location_prefix+"/mysql/"&&v___location_path!=v___location_prefix+"/mysql/index.cgi"&&v___location_path!=v___location_prefix+"/postgresql/"&&v___location_path!=v___location_prefix+"/postgresql/index.cgi"&&v___location_path!=v___location_prefix+"/bacula-backup/"&&v___location_path!=v___location_prefix+"/bacula-backup/index.cgi"||__m_ico_row_t(),$.each($(".row.icons-row.inline-row"),function(){$(this).find("a.icon_link").contents().filter(function(){return 3==this.nodeType}).remove()}),$.each($(".row.icons-row:not(.inline-row) .icons-container"),function(){$(this).removeAttr("data-title").removeAttr("data-toggle").removeAttr("data-placement").removeAttr("data-container")}),($("body").find(".icons-row > div.icons-container").length||$("body").find(".icons-row > div.small-icons-container").length)&&($.each($(".icons-row .hidden-forged-6"),function(){$(this).find("input").is(":checked")&&$(this).parents('div[class*="icons-container"]').addClass("highlighted")}),$.each($(".hidden-forged-7 > a"),function(){$(this).removeClass(),$(this).parents(".hidden-forged-7").hasClass("hidden-forged-7-small")?($(this).html(' '),$(this).parent().parent().prepend('')):($(this).html(' '),$(this).parent().parent().prepend(''))})),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtualmin-registrar/"&&$.each($("td > input "),function(){$(this).parents("table.table-hardcoded").find('form[action="edit.cgi"]').length&&($(this).css("margin-left","5px"),$(this).parent("td").prev("td").find("select").css("margin-left","5px"))}),v___location_path!=v___location_prefix+"/virtual-server/list_scripts.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_newscripts.cgi"||$('form[action="disable_scripts.cgi"] thead + thead tr th, form[action="disable_scripts.cgi"] tbody + thead tr th, form[action="script_form.cgi"] thead + thead tr th, form[action="script_form.cgi"] tbody + thead tr th').attr("colspan","5"),$.each($(".file_chooser_button_attached"),function(e,t){$(this).prev('input[onclick*=".cgi"]')&&$(this).prev('input[onclick*=".cgi"]').css("width","40px")}),!$t_uri_cloudmin||v___location_path!=v___location_prefix+"/server-manager/add_form.cgi"&&v___location_path!=v___location_prefix+"/server-manager/scan_form.cgi"||$.each($("label"),function(){$(this).find("br").remove()}),(v___location_path==v___location_prefix+"/mysql/view_table.cgi"||v___location_path==v___location_prefix+"/postgresql/view_table.cgi")&&$("td[data-td-e] > table.table-hardcoded")){var $tables=$("form .table.table-striped.table-hover.table-condensed");$tables.addClass("table-resizable").resizeableTableColumns(uri_parse_param("table",vars.source_request)||uri_parse_param("table",vars.source_request)||uri_parse_param("table",v___location_file+"?"+$(vars.previous_request.target).serialize())),$tables.find(".ui_checked_checkbox").length&&$tables.find("thead tr th:first-child").addClass("nonresizable");var $___colspan=$("td[data-td-e] > table.table-hardcoded").parents("table").find("thead").find("tr").find("th").length;$("td[data-td-e] > table.table-hardcoded").parent("td[data-td-e]").attr("colspan",$___colspan).attr("style","padding: 1px !important;")}if(v___location_path==v___location_prefix+"/virtual-server/backup_form.cgi"&&v___location_href&&v___location_href.indexOf("?sched=")>-1&&($("body > div > div > div.panel-body > form > table:nth-child(4) > tbody > tr:nth-child(2) > td").css("display","table-cell"),setTimeout(function(){$("a[href=\"javascript:hidden_opener('hiddendiv_adddest', 'hiddenopener_adddest')\"]").next().attr("style","").addClass("btn btn-tiny btn-default")},10)),"/config.cgi"===v___location_path&&$("thead tr th.table-title").prepend('  '),$.each($('form[action="save_global.cgi"], form[action="save_iptables.cgi"], form[action="save_domain.cgi"],form[action="domain_setup.cgi"],form[action="mass_create.cgi"],form[action="save_roundrobin.cgi"],form[action="save_alert.cgi"], body.time form[action="apply.cgi"]'),function(){$(this).find(".col_header").removeClass("col_header")}),(check_location_resource("/virtual-server/edit_newchangelog.cgi")||check_location_resource("/server-manager/edit_newchangelog.cgi")||check_location_resource("/shell/")||check_location_resource("/shell/index.cgi")||check_location_resource("/server-manager/shell.cgi"))&&$("td.col_value.col_value").removeClass("col_header"),check_location_resource("/ldap-server/edit_ldif.cgi")&&$("span > input.ui_opt_textbox").unwrap(),v___location_path==v___location_prefix+"/server-manager/gvnc.cgi"&&$("body.server-manager p > ").css("height","100%").parent("p").attr("style","display: block; height: "+parseInt($(window).outerHeight()/1.4)+"px"),v___location_path==v___location_prefix+"/spam/edit_simple.cgi"||v___location_path==v___location_prefix+"/spam/edit_header.cgi"){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link),container.remove(),target.find("a").addClass("table_title_links pull-right btn btn-xs btn-warning").attr("style","position: absolute; right: 23px; margin-top: 7px !important;")}if(v___location_path==v___location_prefix+"/server-manager/edit_pass.cgi"&&$('form[action="save_pass.cgi"]').find('a[href*="edit_pass.cgi?"]:not(.btn)').length){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link),container.remove(),target.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny").attr("style","position: absolute; right: 20px; margin-top: 3px !important;")}if($('.panel-default + a[href="/virtual-server/"]').attr("href",v___location_prefix+"/virtual-server/index.cgi"),$('.panel-default + a[href="/server-manager/"]').attr("href",v___location_prefix+"/server-manager/index.cgi"),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"acl/"){$("body.acl > div > div > div.panel-body > form > div > table > tbody > tr > td > table > tbody > tr:nth-child(1) > td > table > tbody").attr("style","border: 0 !important");var $t__acl_title=$("br").next(".ui_grid_table.table-hardcoded").find("tbody").addClass("border-global-color").parent("table").prev("br").prev("b");$("br").next(".ui_grid_table.table-hardcoded").css("margin-bottom","3px"),$.each($t__acl_title,function(e,t){""==$(this).text()&&($(this).next("br").remove(),$(this).remove())}),$t__acl_title.attr("style","margin-bottom: -3px !important").next("br").remove()}$('body[class*="bandwidth"]').length&&$(".fa.fa-calendar.file_chooser_button_attached").attr("style","font-size: 11px; margin-top: 9px !important; pointer-events: none; margin-left: -27px !important;"),v___location_path!=v___location_prefix+"/mysql/exec_form.cgi"&&v___location_path!=v___location_prefix+"/postgresql/exec_form.cgi"||($('select[name="old"], input[name="clear"], select[name="charset"]').removeClass("heighter-34").addClass("heighter-28"),$('input[name="clear"]').attr("style","margin-bottom: 3px !important;"),$('select[name="old"]').attr("style","margin-bottom: 3px !important; margin-right: 0 !important;")),"config.cgi"!=v___location_file&&"uconfig.cgi"!=v___location_file||"mysql"!=v___location_query&&"postgresql"!=v___location_query||$('input[name="style"]').parents("td.col_value").parent("tr").after(' '+theme_language("xsql_fit_content_screen_height")+' "),core.curModuleFile("virtual-server","edit_limits.cgi")&&0===get_access_level()&&setTimeout(function(){var e="settings_show_webmin_tab_"+$("#headln2c tt").text().replace(/\..*/g,"").replace(/\.|\-/g,"");snippets.inject_extra_option("tr/yes:no",$('input[name="demo"]'),e,theme_language("settings_show_webmin_tab"))},300),$(".ui_post_header.hidden").html()&&$(".ui_post_header.hidden").html().length>5?($("#headln2c").append(""+$(".ui_post_header.hidden").html()+""),$(".ui_post_header.hidden").remove()):$("#headln2c").append('

    ')}if(v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){if(!$is_history_action){var status_id="#system-status",$status_panel_content=$(status_id+" .panel-body");!$status_panel_content.text().trim()&&$status_panel_content.parent(status_id).remove(),$('#status_services-status-1-collapse .tr_tag [data-td-e] > img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('')}),$('#status_services-status-1-collapse .tr_tag [data-td-e] > img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('')}),$('#status_services-status-1-collapse .tr_tag [data-td-e] > img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('')}),$.each($(".piechart"),function(){isNaN($(this).data("percent"))&&$(this).parents(".text-center").remove()}).promise().done(function(){var e=$("span[data-charts]"),t='div[class^="col-md-"]',i=e.parents(".row").find(t).length,a=12/i,n=2===i?"3":"1"===i?"6":"";a=n||a;$.each(e.parents(".row"),function(e,n){if($(this).find(t).removeClass().addClass("col-md-"+(2===i?6:a)+" col-md-"+1.5*a+" col-xs-"+1.5*a+" col-xs-"+2*a+" text-center xx"),3===i){$(this).find(t).last().removeClass("col-xs-6 col-xs-8").addClass("col-xs-12")}})});var sorted_data=$(".__page .panel-group .panel-default").sort(function(e,t){return $(e).data("sorter")>$(t).data("sorter")?1:-1}).appendTo("#extended_sysinfo-1.panel-group");$('span[data-entry="nf_seen"]').parent("button").on("click",function(e){e.preventDefault();var t=$(this),i=$('form[action*="seen_newfeatures.cgi"]');$.ajax({type:"GET",url:i.attr("action"),data:!1,statusCode:{200:function(){t.parents(".panel.panel-default").remove()}}})});var aria_label_attr="aria-label";$.each($(".__page [data-title]:not(["+aria_label_attr+"]), .__page [title]:not(["+aria_label_attr+"])"),function(e,t){$(this).attr(aria_label_attr,$(t).attr("data-title")||$(t).attr("title"))})}snippets.datetime.tictac(1,1),setTimeout(theme_title_generate),$("#live_stats-collapse").on("shown.bs.collapse",function(){if(stats&&stats.general){var e=[];Object.keys(stats.general).forEach(function(t){t.startsWith("chart_")&&e.push(t)}),e.forEach(function(e){var t=stats.general[e];"function"==typeof t.resizeListener&&t.resizeListener()})}})}if($is_history_action)reset_dnd_uploads(),init_dnd_uploads();else{if(v___location_path==v___location_prefix+"/virtual-server/edit_phpmode.cgi"&&$("#hiddendiv_phpinfo table tbody tr").css("border","1px solid #"+(v___theme_night_mode_enabled?"393b3f":"eee")),$.each($('a[href*="showpass.cgi?"][onclick]'),function(){$(this).html('').css("color","#555")}),v___location_path==v___location_prefix+"/webmin/edit_startpage.cgi"&&($('select[name="deftab"]').parents("td.col_value").parent("tr").hide(),$('select[name="gotomodule"] option').each(function(){("virtual-server"==$(this).val()||"server-manager"==$(this).val())&&$(this).remove()})),v___location_path==v___location_prefix+"/webmin/edit_ui.cgi"||v___location_path==v___location_prefix+"/usermin/edit_ui.cgi"){$('select[name*="sysinfo"], select[name*="dateformat"], input[name*="showlogin"], input[name*="showhost"], input[name*="sizefile_def"], input[name*="sizeuser_def"], input[name*="sizemodule_def"], input[name*="sizeusers_def"], input[name*="sizemodules_w"], input[name*="cs_link_def"], input[name*="cs_header_def"], input[name*="cs_table_def"], input[name*="cs_text_def"], input[name*="cs_page_def"], input[name*="width_def"], input[name*="height_def"], input[name*="sizedate_def"], input[name*="texttitles"]').parents("td.col_value").parent("tr").addClass("hidden"),$(".sub_table_container tr td.no-border").parent("tr").addClass("hidden");var $container_ui_interface=$(".container-fluid .panel-body");$container_ui_interface.contents().filter(function(){return 3==this.nodeType}).remove(),$container_ui_interface.find("p").first().remove()}if((check_location_resource("/config.cgi?virtual-server")||check_location_resource("/config.cgi?server-manager"))&&($('input[name="theme_image"], input[name="theme_link"], input[name="theme_alt"]').parents("td.col_value").parent("tr").hide(),0===$('input[name="show_sysinfo"]:checked').length&&$('input[name="show_sysinfo"][value="1"]').attr("checked","checked")),v___location_path==v___location_prefix+"/virtual-server/edit_resel.cgi"&&$('input[name="logo"][id="logo"], input[name="link"]').parents("td.col_value").parent("tr").hide(),v___location_path==v___location_prefix+"/virtual-server/edit_newfeatures.cgi"){$('.container-fluid tr td:last-child label:contains("|")').replaceText(/\|/gi,"");var $targets_features_and_plugins_links=$(".container-fluid td a.ui_link");$targets_features_and_plugins_links.addClass("ui_link_replaced btn btn-transparent btn-link-bordered f__lnk_t_btn-el margined-left--2 btn-xxs").removeClass("heighter-34").removeClass("ui_link btn-inverse btn-tiny").prepend(''),$.each($targets_features_and_plugins_links,function(){var e=$(this).parent();e.is(".ui_links_row")&&(e.parent().is("label")&&e.parent().contents().unwrap(),e.contents().unwrap()),$(this).parents("td.cursor-pointer").attr("data-td-e",1)})}if($("#headln2l .btn .fa-arrow-left").length){$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1||$("#headln2l .btn .fa-arrow-left").parent("a").attr("href",$("#headln2l .btn .fa-arrow-left").parent("a").attr("href").replace("index.cgi",""));var v___URI=URI(v___location);v___location_file=v___URI.filename()}$("#headln2r, #headln2l").prepend('
    ').append("
    "),$("#headln2r a").detach().appendTo("#headln2r .btn-group"),$("#headln2l a").detach().appendTo("#headln2l .btn-group"),$.support.spa||$("body").hasClass("file-manager")||$("#headln2l .btn-group").prepend(''),$.support.spa||$("body").hasClass("file-manager")||get_server_data("data-slider-fixed",0),$.each($(".ui_form_end_submit"),function(){if(v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/kill_proc.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/renice_proc.cgi"&&"edit_dbase.cgi"!=v___location_file&&"edit_pam.cgi"!=v___location_file&&"list_records.cgi"!=v___location_file&&!core.curModule("mailbox")&&!core.curModule("mailboxes")){var e=$(this).parent().find(".ui_form_end_submit");!e.parents(".btn-group").length&&e.length>1&&$(this).parent().find(".ui_form_end_submit, .ui_form_end_submit + input").wrapAll('
    ')}}).promise().done(function(){$.each($(".end_submits"),function(e,t){($(this).prev(".heighter-28").length||"28px"==$(this).prev("input, select").css("height"))&&$(this).find(".ui_form_end_submit").addClass("heighter-28");var i=$('select[name*="parentuser"]').first();if(core.curModule("virtual-server")&&1===i.length){var a=i.addClass("heighter-34 pull-left").attr("style","margin-top: -1px !important; margin-right: -1px;").detach();$('button[name="add1"] + input').after(a)}})}),$.each($(".btn-group").find("span"),function(){$(this).not("[class]").length&&!$.trim($(this).text()).length&&$(this).remove()}),2===$(".panel-default").nextAll("a.btn.btn-primary").length&&$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left"),3===$(".panel-default").nextAll("a.btn.btn-primary").length&&($(".panel-default").next("a.btn.btn-primary").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-left"),$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left")),v___location_path==v___location_prefix+"/init/reboot.cgi"&&$("input.btn-success").removeClass("btn-success").addClass("btn-warning"),v___location_path==v___location_prefix+"/init/shutdown.cgi"&&$("input.btn-success").removeClass("btn-success").addClass("btn-danger"),$.support.spa||page_display(),$("table tr.thead td").addClass("tdhead"),(core.curModuleFile("virtual-server","edit_newchroot.cgi")||core.curModuleFile("virtual-server","edit_newglobal.cgi")||core.curModuleFile("virtual-server","edit_newshells.cgi")||core.curModuleFile("virtual-server","edit_newshells.cgi")||core.curModuleFile("virtual-server","view_backuplog.cgi")||core.curModuleFile("virtual-server","edit_phpver.cgi")||core.curModuleFile("virtual-server","edit_spf.cgi")||core.curModuleFile("virtual-server","ratelimit.cgi")||core.curModuleFile("virtual-server","edit_newfields.cgi")||core.curModuleFile("server-manager","edit_docker.cgi")||core.curModuleFile("server-manager","edit_vserver.cgi")||core.curModuleFile("server-manager","edit_zone.cgi")||core.curModuleFile("server-manager","edit_openvz.cgi")||core.curModuleFile("server-manager","list_locations.cgi")||core.curModuleFile("server-manager","edit_lxc.cgi")||core.curModuleFile("server-manager","list_ips.cgi")||core.curModuleFile("squid","edit_cachemgr.cgi")||core.curModuleFile("fsdump","edit_dump.cgi")||core.curModuleFile("mysql","backup_form.cgi")||core.curModuleFile("mysql","table_form.cgi")||core.curModuleFile("postgresql","backup_form.cgi")||core.curModuleFile("cron","edit_cron.cgi")||core.curModuleFile("cluster-copy","edit.cgi")||core.curModuleFile("cluster-cron","edit.cgi")||core.curModuleFile("webalizer","edit_log.cgi")||core.curModuleFile("apache","edit_global.cgi")||core.curModuleFile("logrotate","edit_sched.cgi")||core.curModuleFile("fetchmail","edit_cron.cgi")||$('body[class*="bind8"]').length&&v___location_file||$('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_sql.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_cmd.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_file.cgi"==v___location_file)&&$(".table:not(.opener_table_style)").removeClass("table-hover").addClass("no-hover");var dynamic_switch_off_on=$(".fa-toggle-switch-off").parent("button.btn-default");if(1===dynamic_switch_off_on.length){var dynamic_switch__val=dynamic_switch_off_on.parent("td").find('input[type="radio"]:checked').val();"1"==dynamic_switch__val&&dynamic_switch_off_on.find(".fa-toggle-switch-off").addClass("fa-toggle-switch").removeClass("fa-toggle-switch-off")}var $parent_td=dynamic_switch_off_on.parents("td");$parent_td.find('[type="radio"]').length&&$parent_td.addClass("vertical-align-bottom");var my_editor_page=$('form[action*="manual"] > select[name="file"], form[action*="manual.cgi"] > select[name="manual"], form[action*="edit_"] > select[name="file"]');my_editor_page.length&&(my_editor_page.addClass("heighter-34"),$('form[action*="manual"], form[action*="edit_"]').css("margin-bottom","2px")),core.curModule("firewalld")&&($("select#zone").addClass("heighter-34"),$('form[action="save_ifaces.cgi"] button').addClass("heighter-28-force")),$('body[class*="proftpd"] .table-hardcoded tr td > input + input.btn.btn-default').removeClass("heighter-28").addClass("heighter-34").prev("input").addClass("heighter-34"),$('body[class*="proftpd"] form[action="find_ftpaccess.cgi"] > input:first-child').removeClass("heighter-34").addClass("heighter-28"),"edit_simple.cgi"==v___location_file&&$('body[class*="spam"]').length&&$("tr td").contents().filter(function(){return 3==this.nodeType}).remove(),"edit_awl.cgi"==v___location_file&&$('body[class*="spam"]').length&&$('input[name="user"]').next("input").addBack().addClass("heighter-34"),core.curModuleFile("usermin","list_sessions.cgi")&&$('.container-fluid #user, .container-fluid input[type="button"]').addClass("heighter-34"),(core.curModuleFile("htaccess-htpasswd","")||core.curModuleFile("htaccess-htpasswd","index.cgi"))&&($("#search, .chooser_button").addClass("heighter-34").css("margin-bottom","-1px"),$("#search").css("margin-top","1px"),$('form[action*="search.cgi"] .ui_form_end_submit').css("margin-top","2px").css("margin-right","-4px")),(core.curModuleFile("mailboxes","")||core.curModuleFile("mailboxes","index.cgi"))&&($("#user").addClass("heighter-34 vertical-align-middle margined-bottom-1"),$(".chooser_button").addClass("margined-top-2 margined-bottom-2")),core.curModuleFile("mailboxes","list_mail.cgi")&&$("#mfolder1, #mfolder2").addClass("heighter-34").css("margin-bottom","-1px").css("margin-top","-1px"),core.curModuleFile("quota","list_users.cgi")&&$("#user, #user + input").addClass("heighter-34"),core.curModuleFile("quota","list_groups.cgi")&&$("#group, #group + input").addClass("heighter-34"),(core.curModuleFile("apache","htaccess.cgi")||core.curModuleFile("virtualmin-registrar","index.cgi")||core.curModuleFile("virtualmin-registrar",""))&&$(".ui_form_end_submit").addClass("heighter-28-force");var attempt_make_all_elem=$('form:not([action="save_log.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > select, form:not([action="save_log.cgi"], [action="save_net.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > input, form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > select, form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > input, form[action="save_newglobal.cgi"] > table tbody tr td input, form[action="save_newfields.cgi"] > table tbody tr td input, form[action="save_newfields.cgi"] > table tbody tr td select, form[action="save_newshells.cgi"] > table tbody tr td select, form[action="save_newshells.cgi"] > table tbody tr td input, form[action="save_linkcats.cgi"] > table tbody tr td input, form[action="save_gen.cgi"] > table tbody tr td input ');$.each(attempt_make_all_elem,function(e,t){$(this).parent().find("input[data-mmclick]").length||$(this).parent().find("button[data-mmclick]").length||$(this).parent().find('input[onclick*="window.open"]').length||$(this).parent().find('button[onclick*="window.open"]').length||($(this).prev(".awobject").length?$(this).css("width","auto"):1==$(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length?$(this).css("width","100%").css("min-width","100%"):2==$(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length&&($(this).parent().find("input, select").first().css("width","39%"),$(this).parent().find("input, select").last().css("width","60%").css("float","right")))});var $edit_new_style_target=$('a[onclick^="window.open(\\"thumb_style.cgi?"]');if(core.curModuleFile("virtual-server","edit_newstyles.cgi")?$edit_new_style_target.html('').addClass("btn btn-transparent btn-link-bordered btn-xxs margined-top--3"):core.curModule("virtual-server")&&$edit_new_style_target.html('').addClass("btn btn-transparent btn-link-bordered heighter-28-force"),$edit_new_style_target.on("click",function(e){e.stopPropagation()}),core.curModuleFile("virtual-server","edit_html.cgi")){$('.ui_form_end_submit:not([name="create"], [name="cancel"], [name="save"], [name="delete"])').addClass("heighter-28-force");var is_html_mode_edit_web_pages=-1!==v___location_query.indexOf("editok")||-1!==v___location_query.indexOf("createok"),is_text_mode_edit_web_pages=-1!==v___location_query.indexOf("textok");is_html_mode_edit_web_pages&&$("#body").length?($("#editok").removeClass("btn-default").addClass("btn-grey"),$("#body").css("display","none"),$("hr + b").addClass("hidden"),$("#body").after('
    '),editor_html_init(["body",2,!0,"edit_web"])):is_text_mode_edit_web_pages&&($("#textok").removeClass("btn-default").addClass("btn-grey"),editor_init_check()&&editor_init($(".container-fluid > .panel > .panel-body textarea"),!1,!1,"static",!1,!0,!1,$is_history_action)),$(".ui_form_end_submit").click(function(){set_onbeforeunload_status(0,0)}),$("input:file").change(function(){var e=$(this);setTimeout(function(){$('form[action*="upload_html.cgi"]').append(e)},500)})}var $magic_button_selector=' body button[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]), body input[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]), body button[onclick*="window.open"][onclick*="choose"][onclick*="cron_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="cron_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="interface_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="interface_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"] ';if($($magic_button_selector).length&&$($magic_button_selector).each(function(){$(this).attr("data-mmclick",$(this).attr("onclick")).removeAttr("onclick"),plugins.chooser.target($(this),0)}),core.curModuleFile("virtualmin-nginx","")||core.curModuleFile("virtualmin-awstats","")||core.curModuleFile("fdisk","edit_disk.cgi")||core.curModuleFile("virtual-server","edit_newlinks.cgi")||core.curModuleFile("virtualmin-dav","list_shares.cgi")||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"pam/"&&!v___location_file||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"syslog/"&&(!v___location_file||"index.cgi"===v___location_file)||v___location_path==v___location_prefix+"/postfix/master.cgi"){var obj=$('.panel-body > .ui_link, .panel-body > .ui_link_replaced, body[data-uri*="virtualmin-awstats"] .panel-body > form > .ui_link_replaced, body[data-uri*="edit_disk.cgi"] .panel-body p > a.ui_link_replaced, body[data-uri*="edit_newlinks.cgi"] .panel-body > form > .ui_link_replaced, body[data-uri*="edit_newlinks.cgi"] .panel-body > .ui_emptymsg + p > .ui_link_replaced'),text=$.trim(obj.first().text()),href=obj.first().attr("href");"undefined"!=typeof settings_hidden_force_table_header_links?href&&($("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend(' '),obj.next("br").remove(),obj.remove()):(obj.addClass("btn btn-inverse btn-tiny ui_link_replaced"),obj.find(".fa").length||obj.prepend(' '))}if(v___theme_night_mode_enabled||v___theme_night_mode){if($(".opener_shown").length>0){var __tmp_ui_grinTable=$(".opener_container, .opener_container:hidden").find(".ui_grid_table, .ui_grid_table:hidden");__tmp_ui_grinTable.length&&$.each(__tmp_ui_grinTable,function(e,t){$(this).parent("td").attr("style","padding: 0 !important")})}if($(".opener_table_style_small").length>0){var __tmp_ui_hardTable=$(".opener_table_style_small, .opener_table_style_small:hidden").find(".sub_table_container.table-hardcoded, .sub_table_container.table-hardcoded:hidden");__tmp_ui_hardTable.length&&$.each(__tmp_ui_hardTable,function(e,t){$(this).parent("td").attr("style","padding: 0 !important"),$(this).find("tbody tr td").attr("style","padding-left: 3px !important; padding-right: 3px !important")})}}if($('html[data-script-name*="webmin/edit_assignment.cgi"] table table tbody tr td, html[data-script-name*="usermin/edit_assignment.cgi"] table table tbody tr td').hover(function(){$(this).is("td:nth-child(1)")||$(this).is("td:nth-child(3)")?$(this).addClass("hl-ow").next("td").addClass("hl-ow"):($(this).is("td:nth-child(2)")||$(this).is("td:nth-child(4)"))&&$(this).addClass("hl-ow").prev("td").addClass("hl-ow")},function(){$(this).removeClass("hl-ow").next("td").removeClass("hl-ow"),$(this).removeClass("hl-ow").prev("td").removeClass("hl-ow")}),(core.curModuleFile("server-manager","edit_pass.cgi")&&!v___location_query.includes("force=1")||core.curModuleFile("virtual-server","list_databases.cgi")||core.curModuleFileQuery("virtualmin-registrar","edit.cgi","registrar=")||core.curModuleFileQuery("htaccess-htpasswd","edit_user.cgi","new=")||core.curModuleFile("useradmin","edit_group.cgi")||core.curModuleFile("useradmin","edit_user.cgi"))&&setTimeout(function(){$("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend(' ')},0),0==v___user_level||(settings_side_slider_enabled=!1,settings_side_slider_enabled=!1,get_server_data("data-slider-fixed","0"),$("#right-side-tabs, .right-side-tabs-toggler").addClass("hidden")),core.curModuleFile("bind8","edit_zonekey.cgi")&&g__text_breaker($("textarea#ds"),$("#headln2c").find("span[data-sub_title]").text()),core.curModuleFile("virtual-server","edit_script.cgi")&&$('select[name="version"]').addClass("heighter-34 margined-top-4"),core.curModuleFile("virtual-server","transfer_form.cgi")&&$('input[name="newttl"]').addClass("heighter-34"),core.curModule("passwd")&&$('.container-fluid .panel-body input[name="user"]').addClass("heighter-34"),$.each($(".gl-icon-container"),function(e,t){$(this).find("a:first").find("i.fa-edit").length||($(this).find("a:first").prepend(''),$(this).find("a:first").prepend(''))}),v___location_path==v___location_prefix+"/proc/index_search.cgi"&&$(".col_header").removeClass("col_header"),v___module!=v___module_file_manager&&("config.cgi"===v___location_file||"uconfig.cgi"===v___location_file||"settings-user.cgi"===v___location_file)){var visibility=[];"settings-user.cgi"===v___location_file&&(visibility=[1,0,0]),page.render.module_config(visibility)}var $file_upload_inputs=$('input[type="file"]:not([name="upfiles"])');core.curModule("updown")||core.curModuleFile("updown","index.cgi")?init_dnd_uploads():$file_upload_inputs.bootstrapFileInput()}function reset_dnd_uploads(){if(core.curModule("updown")||core.curModuleFile("updown","index.cgi")){var e=$('form.ui_form[action*="upload.cgi"]'),t=e.find(".ui_submit.ui_form_end_submit"),i=e.find(".file-input-wrapper");theme_restore_buttons_class(),$.fn.bootstrapFileInputReset(e),despinnerfy_buttons(0,t),i.find("span").remove(),i.contents().unwrap()}}function init_dnd_uploads(){if(core.curModule("updown")||core.curModuleFile("updown","index.cgi")){var e=$('input[type="file"]:not([name="upfiles"])'),t='form.ui_form[action*="upload.cgi"]',i=$(t+" .ui_submit.ui_form_end_submit");$(t+' input[name^="upload"]:not([name="upload0"])').remove(),e.bootstrapFileInput(["dnd dnd_updown",i]),i.addClass("disabled"),plugins.upload($("#att_upload .ui_form")),init_dnd_form($(t))}}function init_dnd_form(e){e.on("drag dragstart dragend dragover dragenter dragleave drop",function(e){e.preventDefault(),e.stopPropagation()}).on("drop",function(e){droppedFiles=e.originalEvent.dataTransfer.files,$(this).trigger("input").find('input[type="file"]').prop("files",droppedFiles).trigger("change.fiw")}),e.find(".file-input-wrapper").on("dragover dragenter",function(){$(this).addClass("pulse")}).on("dragleave dragend drop",function(){$(this).removeClass("pulse")})}if(core.curModuleFile("virtual-server","index.cgi")||core.curModuleFile("virtual-server","")){var ui_checked_columns="ui_checked_columns",class_sel="."+ui_checked_columns,$checked_columns=v___page_container.find(class_sel),extra_selector=$checked_columns.length?class_sel:'a[href*="edit_domain.cgi"]';$('a[href*="list_users.cgi"], a[href*="list_aliases.cgi"], '+extra_selector).on("click",function(e){var t=$(this);t.off("click"),$(e.target).is('input[type="checkbox"]')||(t.is(class_sel)&&(t=$(this).find("a").first()),plugins.navigation.intersect.virtualmin(t))})}(core.curModuleFile("server-manager","index.cgi")||core.curModuleFile("server-manager","")||vars.requested_page&&vars.requested_page.includes("/server-manager/index.cgi"))&&$('a[href*="mass_update_form.cgi"], .ui_checked_columns').on("click",function(e){var t=$(this);t.off("click"),$(e.target).is('input[type="checkbox"]')||(t.is(".ui_checked_columns")&&(t=$(this).find("a").first()),plugins.navigation.intersect.cloudmin(t))});var codemirror_target_cnt=".container-fluid > .panel > .panel-body";if(editor_init_check()&&editor_init($(codemirror_target_cnt+" textarea"),!1,!1,"static",!1,!0,!1,$is_history_action),core.curModule("cshrc")||core.curModule("plan")||core.curModuleFile("virtual-server","mass_aedit_form.cgi")){var cshrc1=$(codemirror_target_cnt+" form:eq(0) > textarea:visible"),cshrc2=$(codemirror_target_cnt+" form:eq(1) > textarea:visible");$is_history_action&&page_refresh(1),cshrc2.length?(editor_init(cshrc1,!1,!1,"static1",!0,!1,!1,$is_history_action,.36),editor_init(cshrc2,!1,!1,"static2",!0,!1,!1,$is_history_action,.36)):editor_init(cshrc1,!1,!1,"static1",!0,!1,!1,$is_history_action,.51)}if(viewer_init_check()&&viewer_init(),settings_sysinfo_easypie_charts&&v___location_path==v___location_prefix+"/sysinfo.cgi"){var isNR=v___theme_night_mode_enabled||v___theme_night_mode?1:0;$("body").find("#system-status").find(".piechart").easyPieChart({barColor:function(e){return e<50?isNR?"#269373":"#5cb85c":e<85?isNR?"#c38d40":"#f0ad4e":"#cb3935"},trackColor:isNR?"#3b424b":"#f8f8f8",scaleColor:isNR?"#3b424b":"#dfe0e0",size:parseInt(settings_sysinfo_easypie_charts_size),scaleLength:parseInt(settings_sysinfo_easypie_charts_scale),trackWidth:parseInt(settings_sysinfo_easypie_charts_width),lineWidth:0,lineCap:"square",onStep:function(e,t,i){$(this.el).find(".percent").text(Math.round(i))}})}if(((-1===v___location_path.indexOf(".cgi")||-1!==v___location_path.indexOf("link.cgi")||v___location_path==v___location_prefix+"/proc/open_files.cgi"||v___location_path==v___location_prefix+"/webmin/edit_webmincron.cgi"||v___location_path==v___location_prefix+"/postfix/mailq.cgi"||v___location_path==v___location_prefix+"/webmin_search.cgi"||v___location_path==v___location_prefix+"/useradmin/index.cgi"||v___location_path==v___location_prefix+"/quota/list_users.cgi"||v___location_path==v___location_prefix+"/quota/list_groups.cgi"||v___location_path==v___location_prefix+"/init/index.cgi")&&(v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"webmin/"&&-1===v___location_prefix.indexOf("servers/link.cgi")||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proc/"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"webmin_search.cgi"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"postfix/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtual-server/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"mount/"||core.curModule("custom")||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"quota/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"php-pear/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fsdump/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"inittab/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"logrotate/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"mailcap/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cron/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"software/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"syslog/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"useradmin/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"apache/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"webalizer/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cpan/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"htaccess-htpasswd/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fdisk/")||core.curModuleFile("mysql","index.cgi")||core.curModuleFile("mysql","list_vars.cgi")||core.curModuleFile("postgresql","index.cgi")||core.curModuleFile("cron","index.cgi")||core.curModuleFile("cluster-cron","")||core.curModuleFile("cluster-cron","index.cgi")||core.curModuleFile("cluster-copy","")||core.curModuleFile("cluster-copy","index.cgi")||core.curModuleFile("ruby-gems","index.cgi")||core.curModuleFile("postfix","master.cgi")||core.curModuleFile("postfix","virtual.cgi")||core.curModuleFile("postfix","aliases.cgi")||core.curModuleFile("fail2ban","list_filters.cgi")||core.curModuleFile("fail2ban","list_actions.cgi")||core.curModuleFile("fail2ban","list_jails.cgi")||core.curModuleFile("virtual-server","list_databases.cgi")||core.curModuleFile("virtual-server","connectivity.cgi")||core.curModuleFile("fdisk","edit_disk.cgi")||core.curModuleFile("virtualmin-git","")||core.curModuleFile("virtualmin-git","index.cgi")||core.curModuleFile("virtualmin-svn","")||core.curModuleFile("virtualmin-svn","index.cgi")||core.curModuleFile("help","search.cgi")||core.curModuleFile("server-manager","edit_domains.cgi")||core.curModuleFile("net","list_ifcs.cgi")||core.curModuleFile("net","list_hosts.cgi")||core.curModuleFile("bind8","edit_recs.cgi")||core.curModuleFile("bind8","index.cgi")||core.curModuleFile("bind8","")||core.curModuleFile("cpan","index.cgi")||core.curModuleFile("virtual-server","list_records.cgi")||core.curModule("firewall")||core.curModule("firewall6")||core.curModule("ruby-gems")||v___location_path==v___location_prefix+"/at/"||v___location_path==v___location_prefix+"/at/index.cgi"||v___location_path==v___location_prefix+"/useradmin/list_logins.cgi"||v___location_path==v___location_prefix+"/man/search.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"||v___location_path==v___location_prefix+"/software/search.cgi"||v___location_path==v___location_prefix+"/software/file_info.cgi"||v___location_path==v___location_prefix+"/software/list_pack.cgi"||v___location_path==v___location_prefix+"/cluster-software/list_pack.cgi"||v___location_path==v___location_prefix+"/virtual-server/index.cgi"||v___location_path==v___location_prefix+"/virtual-server/list_users.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newplan.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newfeatures.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newtmpl.cgi"||v___location_path==v___location_prefix+"/virtual-server/backuplog.cgi"||v___location_path==v___location_prefix+"/package-updates/"||v___location_path==v___location_prefix+"/package-updates/index.cgi"||v___location_path==v___location_prefix+"/package-updates/update.cgi"||v___location_path==v___location_prefix+"/security-updates/index.cgi"||v___location_path==v___location_prefix+"/virtual-server/usage.cgi"||v___location_path==v___location_prefix+"/virtual-server/search.cgi"||v___location_path==v___location_prefix+"/fetchmail/"||v___location_path==v___location_prefix+"/filter/")&&$(".__page table.table").each(function(){table_data_init($(this))}).promise().done(function(){page.render.content.filter.init()}),$(".select_all").on("click",function(){var e=$(this).parents("form");e.find('.icons-row div[class*="icons-container"]').length&&$.each(e.find(".icons-row .hidden-forged-6"),function(){$(this).parents('div[class*="icons-container"]').addClass("highlighted").find(".fa-select").removeClass("fa-select").addClass("fa-selected")})}),$(".select_invert").on("click",function(){var e=$(this).parents("form");$.each(e.find(".icons-row .hidden-forged-6"),function(){var e=$(this).parents('div[class*="icons-container"]');$(this).find("input").is(":checked")?e.addClass("highlighted").find(".fa-select, .fa-selected").removeClass("fa-select").addClass("fa-selected"):e.removeClass("highlighted").find(".fa-select, .fa-selected").removeClass("fa-selected").addClass("fa-select")})}),$('.icons-row div[class*="icons-container"]').on("mouseover",function(e){$(this).find(".hidden-forged-7").removeClass("hidden-forged")}).on("mouseout",function(e){$(this).find(".hidden-forged-7").addClass("hidden-forged")}),"?dashboard"!=v___location.search&&1==plugins.navigation.switch.dashboard.get()&&("sysinfo.cgi"==v___location_file?(plugins.navigation.switch.set("dashboard"),plugins.navigation.reset()):$("#open_webmin").length>0&&"open_webmin"!=$(".switch-toggle input:checked").attr("id")?plugins.navigation.switch.set("webmin"):$("#open_virtualmin").length>0&&"open_virtualmin"!=$(".switch-toggle input:checked").attr("id")?plugins.navigation.switch.set("virtualmin"):$("#open_cloudmin").length>0&&"open_cloudmin"!=$(".switch-toggle input:checked").attr("id")?plugins.navigation.switch.set("cloudmin"):$("#open_usermin").length>0&&"open_usermin"!=$(".switch-toggle input:checked").attr("id")&&plugins.navigation.switch.set("usermin")),$('form[action="bootup.cgi"]').on("submit",function(e){$("#starting").length>0?($("#starting").remove(),$(this).append('')):$("#table").length>0?$(this).append(''):$('input[name="boot"][type="hidden"]').length>0&&($('input[name="boot"][type="hidden"]').remove(),$(this).append(''))}),$('input[name="config_portable_module_xsql_fit_content_screen_height"]').on("change",function(){var e=$(this).attr("name"),t="true"==$(this).val();localStorage.setItem(v___server_hostname+"-"+e,t),window[e]=t,theme_config("save")}),$('.ui_form_end_submit[onclick^="window.open"]').click(function(){var e=$(this);setTimeout(function(){e.removeClass("disabled"),plugins.navigation.load.stop()},100)}),v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){sysinfo_replace_dismiss_buttons(),$("body").undelegate(".piechart canvas","mouseover mouseleave"),$("body").on("mouseover",".piechart canvas",function(){var e=$(this).parent("span").attr("data-charts").split("_")[1];("cpu"!=e&&"mem"!=e&&"virt"!=e||core.moduleAvailable("proc"))&&("disk"!=e||core.moduleAvailable("disk-usage")||core.moduleAvailable("quota"))&&$(this).addClass("cursor-alias")}),$("body").undelegate("canvas","click"),$("body").on("click","canvas",function(e){e.preventDefault();var t,i=$(this).parent("span").attr("data-charts").split("_")[1];"cpu"==i&&core.moduleAvailable("proc")?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=i&&"virt"!=i||!core.moduleAvailable("proc")?"disk"==i&&core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==i&&core.moduleAvailable("quota")&&(t=v___location_prefix+"/quota/list_users.cgi?dir=%2F"):t=v___location_prefix+"/proc/index_size.cgi",t&&t.length&&get_pjax_content(t)}),page_sysinfo_sensor_update_label(),"0"==v___user_level&&plugins.slider.data.fetch();var chart_size_def_value=172;if(settings_sysinfo_easypie_charts_size!=chart_size_def_value){var diff=parseInt(settings_sysinfo_easypie_charts_size-chart_size_def_value),position_diff_label=.9*diff,position_diff_percent=.2*diff,font_diff_label=settings_sysinfo_easypie_charts_size";$.each($(target+":not([data-processed])").parent("button"),function(e,t){if($(this).addClass("btn-xxs").find("i").attr("data-processed",1),$(this).wrap('
    '),$(this).after('"),current_refresh_timer&&"0"!=current_refresh_timer){var i=$(btn_str);$(this).find("i").before(timeout_box),$(this).find("i").remove();var a=current_refresh_timer;"number"==typeof refreshTimer&&clearInterval(refreshTimer),refreshTimer=setInterval(function(){--a,$(refresh_timer_str).text(a),a<=0&&($(i[0]).parent().trigger("click"),clearInterval(refreshTimer))},1e3)}}).promise().done(function(){$(".refresh-timer-select li").click(function(){"number"==typeof refreshTimer&&clearInterval(refreshTimer);var e=''+(current_refresh_timer||"0")+" ";localStorage.setItem(v___server_hostname+"-option_"+v___module+"_refresh",$(this).find("a").data("timeout")),current_refresh_timer=localStorage.getItem(v___server_hostname+"-option_"+v___module+"_refresh");var t=$(btn_str).parent();if(current_refresh_timer&&"0"!=current_refresh_timer){t.find(refresh_timer_str).length||t.prepend(e),t.find(refresh_timer_str).html(current_refresh_timer+" "),$(current_icon_class_str).remove();var i=current_refresh_timer;refreshTimer=setInterval(function(){if(--i,$(refresh_timer_str).text(i),i<=0){var e=$(btn_str);$(e[0]).parent().trigger("click"),clearInterval(refreshTimer)}},1e3)}else $(refresh_timer_str).remove(),!t.find(current_icon_class_str).length&&t.prepend('')})}),$.each($('form[action*="save_log.cgi"] select[name="idx"]'),function(){$(this).on("change",function(){var e=$("button.ui_submit.ui_form_end_submit");$(this).next().next('[name="filter"]').val(""),e.first().trigger("click"),e.addClass("disabled")})})}if(core.curModuleFile("virtual-server","summary_domain.cgi")&&$(".__page #headln2l .btn-group, .__page .page_footer_submit").remove(),settings_side_slider_enabled&&(core.curModule("package-updates")&&plugins.slider.notifications.dismiss("package_message"),core.curModule("csf")&&(plugins.slider.notifications.dismiss("csf_remote_version"),plugins.slider.notifications.dismiss("csf_title"))),snippets.tooltips(!0), +Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var a=Object(this),n=a.length>>>0;if(0===n)return!1;var r,i,o=0|t,s=Math.max(o>=0?o:n-Math.abs(o),0);for(;s>>0,r=0;r-1&&navigator.userAgent&&!navigator.userAgent.match("CriOS");return e?a:n},firefox:function(){return/firefox/i.test(navigator.userAgent)}},storage:{size:function(e){var t=String(),a=e?"MB":"KB";for(var n in window.localStorage)window.localStorage.hasOwnProperty(n)&&(t+=window.localStorage[n]);return t?((3+16*t.length/8192)/(e?1024:1)).toFixed(2)+" "+a:"Empty (0 "+a+")"}}},platform={detect:function(){var e=window.navigator.userAgent,t=window.navigator.platform,a=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?a="mac":-1!==["iPhone","iPad","iPod"].indexOf(t)?a="ios":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?a="windows":/Android/.test(e)?a="android":!a&&/Linux/.test(t)&&(a="linux"),a},set:function(){var e=this.detect();e&&$(document.body).attr("data-platform",e)}},Convert={arrFlip:function(e){var t,a={};for(t in e)e.hasOwnProperty(t)&&(a[e[t]]=t);return a},uriDecodeComponent:function(e,t){var a,n,r,i=String(),o=0;if(void 0===t&&(t=0),a=e?e.split(/(%(?:d0|d1)%.{2})/):[],$.isEmptyObject(a))return e;for(n=a.length;o":">",'"':""","'":"'","=":"="};return String(e).replace(/[&<>"'=]/g,function(e){return t[e]})},htmlUnEscape:function(e){var t=[["amp","&"],["apos","'"],["#x27","'"],["#x2F","/"],["#39","'"],["#47","/"],["#61","="],["lt","<"],["gt",">"],["nbsp"," "],["quot",'"']];if(e)for(var a=0,n=t.length;a=1e3&&l=5&&c<=100?c=5*Math.round(c/5):c>100&&c<=1e3?c=50*Math.round(c/50):c>1e3&&c<=1e4?c=100*Math.round(c/100):c>1e4&&c<=1e5?c=250*Math.round(c/250):c>1e5&&(c=500*Math.round(c/500))),c+" "+s[l]}},core={get_global_vars:function(e,t){for(var a=t?{}:[],n=window,r=0;r-1},curModuleFileQuery:function(e,t,a){return $('body[class*="'+e+'"]').length&&v___location_file==t&&v___location_query&&-1!==v___location_query.indexOf(a)},curModuleFile:function(e,t){return $('body[class*="'+e+'"]').length&&v___location_file==t},curModule:function(e,t){return t=t?String():"*",$("body[class"+t+'="'+e+'"]').length},moduleFile:function(e,t,a){if(e.includes("/")&&e.includes(".cgi")){var n,r,i,o=e.split("/");if(o.filter(function(e,t){e.includes(".cgi")&&(n=t)}),r=o[n-1],i=o[n],r&&r.includes(t)&&i&&i.includes(a))return 1}return 0},updateModuleData:function(e,t,a){$.ajax({type:"POST",url:v___location_prefix+e,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var n=$(e).find("form.ui_form");$.each(a,function(e,t){n.find('[name="'+e+'"]').val(t)}),setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+t,data:$(n).serialize(),dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)&&(v___available_session=0)},error:function(){}})},100)}},error:function(){}})},getModuleData:function(e){return $.ajax({type:"POST",url:v___location_prefix+e,data:!1,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)&&(v___available_session=0)},error:function(){}})},setModuleData:function(e,t){this.getModuleData(e).then(function(e){return $(e).find("form.ui_form").serializeArray()}).done(function(e){var a={};$.each($(e),function(){a[this.name]=this.value}).promise().done(function(){$.each(t,function(e,t){var n=$('[name="'+t+'"]');n.val(a[t]),n.is("select")&&n.find("[data-clear]").remove()})})})}},HTML={bottom_progress:function(e,t,a){return'
    '+(a?'
    ':"")+'
    '+(a?"":"1%")+(a?'':"")+'
    '},label:{temperature:function(e,t){var a="bg-semi-transparent";return t?e<=30?a:e>30&&e<=60?a:e>60&&e<=80?"bg-warning":e>80?"bg-danger":"":e<=86?a:e>86&&e<=140?a:e>140&&e<=176?"bg-warning":e>176?"bg-danger":""},rpm:function(e){return e<=2*rpmFactor?bg_semi_tr:e>2*rpmFactor&&e<=3*rpmFactor?bg_semi_tr:e>3*rpmFactor&&e<=4*rpmFactor?bg_warn:e>4*rpmFactor?bg_danger:""}},template:{accordion:function(e,t,a,n){for(var r='
    ',i=0;i
    '+a[i]+"
    "}return r+=""},page_content_preloader:function(e,t){return'
     '+e+'
    '},reauthenticate:function(e){var t=Test.strContains(get_server_data("webprefix"),"servers/link.cgi")?1:0;return'

    '+theme_language("session_expired")+"

    "+theme_language("session_expired_details")+'
    "}}},load={loaded:[],bundle:function($scripts__,$css__,callBack__,callBackCalledNoEval__){var execute_load=function($script,$css,callBack,callBackCalledNoEval){var head=$("head"),initial_name=$script;callBack="object"==typeof callBack&&callBack;var css=($css?1===$css?$script:$css:0)+"."+v___source_type+".css",js=$script+"."+v___source_type+".js";Test.strContains(initial_name,v___server_extensions_path)||Test.strContains(initial_name,v___server_js_path)||(css=v___server_css_path+"/"+css,js=v___server_js_path+"/"+js);var processCallbacks=function(_callBack,_callBackCalledNoEval){_callBack&&!_callBackCalledNoEval?$.each(_callBack,function(i2,v2){try{eval(v2)}catch(e){var attemp=0,check_loaded_func=setInterval(function(){attemp++,attemp>1e3&&clearInterval(check_loaded_func);try{eval(v2),clearInterval(check_loaded_func)}catch(e){}},10)}}):_callBack&&_callBackCalledNoEval&&2!==_callBackCalledNoEval&&3!==_callBackCalledNoEval?$.each(_callBack,function(e,t){t.call()}):_callBack&&_callBackCalledNoEval&&(2===_callBackCalledNoEval||3===_callBackCalledNoEval)&&$.each(_callBack,function(e,t){3===_callBackCalledNoEval?window[e].call(null,t):window[e].apply(null,t)})};if(load.loaded.includes(initial_name))(callBack||callBackCalledNoEval)&&processCallbacks(callBack,callBackCalledNoEval);else{o___gotten_scripts.push(js),load.loaded.push(initial_name);var thecsslink='';$css&&(css.includes(v___server_extensions_path)?head.append(thecsslink):head.find('link[rel="stylesheet"]:first').before(thecsslink)),$.getScript(js+"?"+v___theme_version_plain,function(){processCallbacks(callBack,callBackCalledNoEval)}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)})}};$.isArray($scripts__)?$scripts__.forEach(function(e,t,a){Object.is(a.length-1,t)?execute_load(e,$css__,callBack__,callBackCalledNoEval__):execute_load(e,$css__,0,0)}):execute_load($scripts__,$css__,callBack__,callBackCalledNoEval__)}},page={handle:{content:{offset:function(e){var t=core.curModuleFileQuery("syslog","save_log.cgi","view=")||core.curModuleFile("virtual-server","edit_html.cgi")||core.curModuleFile("mysql","view_table.cgi")||core.curModuleFile("postgresql","view_table.cgi")||core.curModuleFile("mailbox","")||core.curModuleFile("mailbox","index.cgi")||core.curModule(v___module_file_manager)||v___page_hasEditor||!settings_enable_container_offset?0:1;if(!e)return t;var a=$(".container-fluid");page.handle.content.offset()?a.addClass("col-lg-10 col-lg-offset-1").removeClass("margined-top-15"):a.removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15")},preloader_dismiss:function(){$(".container-fluid-loading").length&&page.handle.content.preloader()},preloader:function(e,t){var a=this,n=$("#content"),r=$(".container-fluid"),i=$(".container-fluid-loading"),o=t||$("span[data-main_title]").text(),s=-2===e?"container-fluid-loading-persistent":0,l=HTML.template.page_content_preloader(o,s);if(-2!==e&&i.length&&i.hasClass("container-fluid-loading-persistent"))i.removeClass("container-fluid-loading-persistent");else{if(-1===e)return n.hasClass("progressing");i.length?(i.remove(),r.removeClass("invisible"),n.removeClass("progressing progressing-preloading"),setTimeout(function(){progress.progress()&&progress.end()},10)):(n.addClass("progressing progressing-preloading").prepend(l),r.addClass("invisible")),e&&-2!==e&&setTimeout(function(){a.preloader()},e)}}}},render:{content:{filter:{init:function(e,t){var a=this,n="container-fluid .nav.nav-tabs",r="dataTables_filter",i=$(".__page ."+r),o=$(".__page .panel-filter"),s=".panel-filter .panel.panel-default",l="filter-value",c="btn-filter-top-right",d="btn-accordion-filter",f=$("body");(i.length||o.length)&&setTimeout(function(){$("."+c).length||$("."+d).length||($("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend(''+(e?'':""))),$(".btn-filter-gl").data("title",theme_language("datatable_filter")).attr("aria-label",theme_language("datatable_filter")),$(".btn-toggle-accordions").data("title",theme_language("toggle_accordions")).attr("aria-label",theme_language("toggle_accordions")),$(".btn-group").tooltip({selector:'a[data-toggle="tooltip"][data-skip]',container:"body",trigger:"hover",delay:{show:600,hide:30}}),a.clear(),$("."+n).length&&(e&&f.on("hide.bs.tab",'a[data-toggle="tab"]',function(e){a.clear()}),f.on("shown.bs.tab",'a[data-toggle="tab"]',function(e){var t=$(e.target).parent(".active");t.data(l)?$(".dataTable-mirror").val(t.data(l)).trigger("input"):$(".dataTable-mirror").val("").trigger("input"),a.visibility(c,d,"btn-toggle-accordions",n)})),f.undelegate(s,"shown.bs.collapse.config hidden.bs.collapse.config"),f.on("shown.bs.collapse.config hidden.bs.collapse.config",s,function(e){$(".container-fluid .collapsing").length||setTimeout(function(){var e=$(".container-fluid").find(".btn-toggle-accordions").find("i");o.find(".panel-collapse").length===o.find(".panel-collapse.in").length?e.addClass("fa-toggle-switch text-light"):e.removeClass("fa-toggle-switch text-light")},0)});var t,i=$(".btn-toggle-accordions");e?$(o).find('a[data-toggle="collapse"]').on("click",function(e){$.trim($(".dataTable-mirror").val()).length&&page.render.content.filter.clear(),e.originalEvent&&$(".btn-toggle-accordions").find("i").removeClass("fa-toggle-switch text-light")}):$("."+r).hide();function u(t){var a=t.val(),o=$(".__page .panel-filter:visible");if(e)if(a){$.support.transition&&($.support.transition=!1),i.find(".fa-toggle-switch-off:not(.fa-toggle-switch)").trigger("click"),o.find(".panel tr:not([data-empty-row]):not(.hidden-skip)").addClass("hidden-forged"),o.find('.panel tbody tr:containsi("'+a+'")').removeClass("hidden-forged"),$.each($(s=" .hidden-dependent-skip"),function(e){$(this).hasClass("hidden-forged")?$(this).nextAll(".hidden-skip").addClass("hidden-forged"):$(this).nextAll(".hidden-skip").removeClass("hidden-forged")});var f=$(".__page .panel-filter:visible");$.each(f.find(".panel"),function(){var e=$(this).find("tr").first().find("td").length;rows=$(this).find("tbody").find("tr:not([data-empty-row])"),hidden_rows=$(this).find("tbody tr:not([data-empty-row]):hidden");var t=$(this).find("tbody tr[data-empty-row]");rows.length===hidden_rows.length?t.length?$(this).find("tbody").find("var[data-query-str]").text(a):$(this).find("tbody").append(''+theme_language("filter_content_no_matches_query").replace("%str",""+a+"")+""):t.remove()})}else i.find(".fa-toggle-switch").trigger("click"),o.find(".panel tr").removeClass("hidden-forged"),o.find(".panel tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"});else{var u="."+r+" input";$("."+n).length?($(".nav-tabs li.active").data(l,a),$(".active "+u).val(a).trigger("input")):$(u).val(a).trigger("input")}var p="."+c+" span, ."+d+" span",g="."+c+" i, ."+d+" i";$.trim(a).length>0?($(p).removeClass("text-lighter"),$(g).addClass("text-danger")):($(p).addClass("text-lighter"),$(g).removeClass("text-danger"))}$(".filter_mirror_clear").mousedown(function(e){$(e.target).is(".filter_mirror_clear")&&a.clear()}),$("."+c+", ."+d).click(function(e){!$(e.target).is("input")&&$(this).find("label").slideToggle(300,function(){$(this).find("input").focus()})}),i.click(function(e){e.stopImmediatePropagation();var t=$(this).find(".fa"),n=$(this).find(".fa-toggle-switch").length?1:0,r=$(".__page .panel-filter:visible");0===n?(r.find(".panel-collapse.in").length,r.find(".panel-collapse").length,r.find(".panel-collapse:not(.in):not(.collapsing)").filter(function(){$(this).removeData("bs.collapse").collapse({parent:!0,toggle:!1}).collapse("show").removeData("bs.collapse")})):r.find(".panel-collapse.in:not(.collapsing)").filter(function(){"true"!==$(this).attr("aria-static")&&$(this).collapse("hide")}),t.toggleClass("fa-toggle-switch text-light"),void 0!==e.originalEvent&&$("."+d+" input").val().length&&a.clear()});$(".dataTable-mirror").keydown(function(e){var n=void 0!==e.originalEvent?200:0;76==e.keyCode&&e.ctrlKey?(e.preventDefault(),e.stopPropagation(),n?setTimeout(function(){a.clear()},n):a.clear()):n&&clearTimeout(t)}).on("input keyup",function(e){var a=$(this),n=void 0!==e.originalEvent?200:0;$(".btn-filter-gl").tooltip("hide"),n?(clearTimeout(t),t=setTimeout(function(){u(a)},n)):u(a)}),$("."+c+" input, ."+d+" input").blur(function(e){$(this).parent("label").slideToggle(0)}),a.visibility(c,d,"btn-toggle-accordions",n)},0)},visibility:function(e,t,a,n){var r=$("."+e+", ."+t+", ."+a);$("."+n).length&&($(".active .dataTables_filter").length||$(".active #conf-_-gr").length)||!$("."+n).length&&($(".dataTables_filter").length||$("#conf-_-gr").length)?r.show():r.hide()},clear:function(){var e=$(".btn-filter-top-right .dataTable-mirror, .btn-accordion-filter .dataTable-mirror"),t=$(".btn-filter-top-right input, .btn-accordion-filter input");e.val("").trigger("input"),t.is(":visible")&&t.trigger("blur"),$(".panel-filter").find("tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"})}}},module_config:function(e){var t=v___page_container.find(".table-title:visible").parents(".table:visible"),a=t.parent("div.table-responsive:visible"),n=t.find("tbody > tr > td > table:visible"),r=0,i=1;$.each(n.find("tr"),function(e,t){var a=$(this);a.find(".col_header").length?(r+=1,a.attr("tj",r+":0")):a.attr("tj",r+":1")}).promise().done(function(){var n=$('tr[tj$=":0"]').map(function(){return $.trim($(this).text())});0===n.length&&(n.push(theme_language("config_configurable_options")),i=0);for(var r=[],o=1;o tr[tj="0:1"]')).map(function(){return this.outerHTML}).get().join("\n"),s+="",r[o-1]=s}var l="conf-_-gr";a.replaceWith(HTML.template.accordion(l,n,r,i?e:[2])),page.render.content.filter.init(1),$(".container-fluid > .panel > .panel-body").on("hide.bs.collapse show.bs.collapse","#conf-_-gr",function(){$(".module-help .close-popover-trigger").trigger("click")})})}}},pjax={clear:{modules:function(e){"csf"===v___module&&"function"==typeof __c_____undel&&__c_____undel(e.url),v___module===v___module_file_manager&&"function"==typeof __f_____undel&&"object"==typeof jsPanel&&"string"==typeof $v__fm__container_fluid&&(Test.strContains(e.url,v___module_file_manager+"/config.cgi")||Test.strContains(e.url,v___module_file_manager+"/index.cgi")||Test.strContains(e.url,"save_config.cgi")||__f_____undel()),"mysql"!==v___module&&"postgresql"!==v___module||"function"!=typeof __sql_____undel||__sql_____undel(),"syslog"===v___module&&"number"==typeof refreshTimer&&clearInterval(refreshTimer)}}},progress_percent={body:"body",control:function(e,t,a,n){$(this.body).find(".bottom_progresses").length||$(this.body).append('
    ');var r=$(this.body).find(".bottom_progresses");if(!r.find('div[data-progress-id="'+e+'"]').length){if(r.append(HTML.bottom_progress(e,t,n)),n||r.find(".bottom_progress_horizontal").length){var i=(r=$(this.body).find(".bottom_progresses")).find('.bottom_progress:not(".bottom_progress_horizontal")').addClass("no-animation").detach();r.prepend(i)}r.find('div[data-progress-id="'+e+'"]').find(".bottom_progress_cancel").one("click",function(){var e=$(this).parent(),t=e.data("progress-id");e.find(".bottom_progress_level").removeClass("success").addClass("danger"),$(this).remove(),setTimeout(function(){e.remove(),0===r.find("div[data-progress-id]").length&&r.remove()},1e3),window["progress_id_ref_"+t].abort(),n&&window["progress_id_ref_"+t+"_tracker"].abort()})}var o=r.find('div[data-progress-id="'+e+'"]');if(o.find(".bottom_progress_level").css("height",a+"%"),n){var s=o.find(".bottom_progress_overlay"),l=".bottom_progress_";o.find(l+"filename").html(''+Convert.htmlEscape(Convert.textTruncate(Convert.htmlDecode(n[0]),24))).attr("title",Convert.htmlEscape(n[0])),s.find(l+"data").text($(Convert.htmlDecode(n[1])).text()),s.find(l+"percent").text(n[2]+"%")}else o.find(".bottom_progress_overlay").text(a+"%");100==a&&(o.find(".bottom_progress_cancel").remove(),setTimeout(function(){o.remove(),0===r.find("div[data-progress-id]").length&&r.remove()},1e3))}},progress={target:"body",element:"top-aprogress",progress:function(){return!settings_hide_top_loader},start:function(){var e=this;setTimeout(function(){e.progress()&&!$(e.target).find("."+e.element).length&&vars.allow_ui_features&&$(e.target).append('
    ')},100)},end:function(){0===v___theme_progress?$(this.target).find("."+this.element).remove():setTimeout(function(){v___theme_progress=0},0)}},session={reauthenticate:{start:function(){var e=this,t=e.target;!$("."+t).length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi",data:!1,dataType:"text",success:function(a){var n=Test.strContains(a,v___page_signin_form+" pam_");if(!Test.strContains(a,v___page_signin_banner)){var r=$(a).find('input[name="twofactor"]').length,i=e.lock_targets,o=e.lock_type,s=$("body").find(".-shell-port-"),l='',c=$(a).find("._logo_welcome > img").attr("src");$(i).addClass(o),$("body").append(HTML.template.reauthenticate(t)),plugins.navigation.load.stop(),plugins.navigation.detect(),plugins.navigation.switch.reset(),despinnerfy_buttons(),plugins.shell.unlock(),plugins.shell.close(s),r||$("."+t).find("[data-container-twofactor]").remove(),c&&$("."+t).append(""),$("."+t).find("form").on("submit",function(e){(e.preventDefault(),e.stopImmediatePropagation(),n)&&$("."+t).find('form input[name="user"]').attr("name","answer").val(get_server_data("user"));var r=$(a).find("form").append(l).attr("action"),i=$("."+t).find("form").serialize(),o=$("."+t).find("[data-submit]"),s=$("."+t+"-header-icon i"),c=$("."+t+"-header-title h3"),d=$("."+t+"-header-title small");function f(e,a,n,r){if(a){var i="session_failed"===theme_language(a,1)?theme_language("session_failed_password"):a;i.endsWith(".")||(i+="."),i=i.replace(/\n/gm,""),d.text(i).addClass("text-danger").removeClass("loading-dots"),o.removeClass("btn-grey disabled").addClass("btn-success");var l=$(r).find(".alert[data-twofactor]").length?$("."+t).find('input[name="twofactor"]'):$("."+t).find('input:not([name="user"]):not([name="twofactor"])');l.addClass("faa-horizontal animated"),l[0].focus(),setTimeout(function(){l.removeClass("faa-horizontal animated")},1e3)}else e&&!n&&(d.text(theme_language("signing_success")).removeClass("text-danger").removeClass("loading-dots").addClass("text-success"),s.removeClass("fa-lock").addClass("fa-unlock fa-rotate-180 fa-flip-horizontal"),c.text(theme_language("session_unlocked")),v___available_session=1,setTimeout(function(){session.reauthenticate.end()},1800))}o.hasClass("disabled")||(d.text(theme_language("signing_in")+"").removeClass("text-danger").addClass("loading-dots"),o.addClass("btn-grey disabled").removeClass("btn-success"),$.ajax({type:"GET",url:r,data:i,dataType:"text",success:function(e){var a=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),o=i.length;if(n){var s=$(e).find("form").append(l),c=(s.find('input[name="answer"]').val($("."+t).find('input[type="password"]').val()),s.serialize());$.ajax({type:"GET",url:r,data:c,dataType:"text",success:function(e){a=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),o=i.length,f(a,i,o,e)}})}else f(a,i,o,e)},error:function(){o.removeClass("btn-grey disabled").addClass("btn-success"),d.text(theme_language("connection_error")).addClass("text-danger").addClass("loading-dots")}}))})}}})},end:function(){v___available_session=1,$("."+this.target).remove(),$(this.lock_targets).removeClass(this.lock_type)},target:"session-reauthenticate",lock_targets:"aside, aside .navigation, .form-control.sidebar-search, .jsPanel, #jsPanel-replacement-container, .popover, .container-fluid, .right-side-tabs, .right-side-tabs-toggler",lock_type:"pointer-events-none bg-filter-blur3-grayscale100-opacity35-contrast1-2-brightness0-9 disabled"}},Test={true:function(e){return!/^(false|0)$/i.test(e)&&!!e},false:function(e){return/^(false|0)$/i.test(e)||!e},numeric:function(e){return Number(parseFloat(e))==e},string:function(e){return"string"==typeof e||e instanceof String?1:0},strContains:function(e,t){return"string"==typeof e&&!!~e.indexOf(t)},str_contains_multi:function(e,t){for(var a in t){var n=t[a];if(e.indexOf(n)>-1)return!0}return!1},arrContains:function(e,t,a){return void 0===a&&(a=0),e=$.inArray(t,e),a?e:-1=n},occurrences:function(e,t,a){if(e+="",(t+="").length<=0)return e.length+1;for(var n=0,r=0,i=a?1:t.length;(r=e.indexOf(t,r))>=0;)++n,r+=i;return n},editing:function(){return $("input:focus").length||$("textarea:focus").length||$('[contenteditable="true"]:focus').length||$('[contenteditable="true"]:focus').length}},theme={download:function(e,t,a,n){if(n=void 0===n||1==n||!0===n?String():'target="_blank"',e&&t){t="string"==typeof t?t:$.param(t);var r="";$.each(t.split("&"),function(){var e=this.split("=");r+=''}),$("
    '+r+"
    ").appendTo("body").submit().remove()}},veiled:function(e){var t=$(".container-fluid, .jsPanel").add($("aside")).add($("#right-side-tabs")).add($(".right-side-tabs-toggler")),a="pointer-events-none bg-filter-blur-grayscale-opacity50";if(-1===e)return t.hasClass(a);e?t.addClass(a):t.removeClass(a)},update:function(e,t){var a=1===e?"-release":"-beta";theme.veiled(1),set_onbeforeunload_status(1,0),plugins.messenger.post(''+theme_language("git_patch_initiated")+" "+theme_language("global_please_wait")+'   ',1800,"info","themeUpgrade",0),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-update=1&xhr-update-type="+a+"&xhr-update-force="+t,data:!1,dataType:"json",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:e[0]&&e[0].success?(plugins.messenger.post(''+e[0].success,4,"success","themeUpgrade"),plugins.slider.notifications.dismiss("authentic_remote_version"),set_server_theme_temp_data("goto",v___location_prefix+"/sysinfo.cgi"),setTimeout(function(){theme_reload()},2e3)):e[0]&&e[0].no_connection?(plugins.messenger.post(''+e[0].no_connection,40,"warning","themeUpgrade"),theme.veiled(0)):e[0]&&e[0].no_git?(plugins.messenger.post(''+e[0].no_git,20,"warning","themeUpgrade"),theme.veiled(0)):e[0]&&e[0].incompatible?(plugins.messenger.post(''+e[0].incompatible,120,"error","themeUpgrade"),theme.veiled(0)):(plugins.messenger.post(''+theme_language("git_patch_update"),20,"error","themeUpgrade"),theme.veiled(0))},error:function(e){plugins.messenger.post(''+theme_language("git_patch_update"),20,"error","themeUpgrade"),theme.veiled(0)},complete:function(e){set_onbeforeunload_status(0,0)}})},version:function(){return v___theme_version},visibility:function(e){0===v___theme_visibility_check&&(v___theme_visibility_check=1,settings_sysinfo_real_time_stored||(0===e?"object"==typeof stats&&stats.general.disable():"object"==typeof stats&&stats.general.enable()),setTimeout(function(){v___theme_visibility_check=0,vars.events.keypressed.shift=!1,vars.events.keypressed.alt=!1},0))}},quirks={active_element:function(){return document.activeElement&&$(document.activeElement).is("body")?v___page_activeElement:document.activeElement},local_storage:{safari:function(){if("object"==typeof localStorage)try{localStorage.setItem("d41d8cd98f00",1),localStorage.removeItem("d41d8cd98f00")}catch(e){Storage.prototype._setItem=Storage.prototype.setItem,Storage.prototype.setItem=function(){},vars.local_storage=0}}},render:{apple:function(){browser.detect.safari(1)&&$("html").css("overflow","auto");var e=$(".__page");browser.detect.safari()&&e.addClass("browser_safari"),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&e.attr("style","-webkit-overflow-scrolling: touch !important; overflow-y: scroll !important;")}}},regex={matches:function(e,t,a,n){a||(a=1);for(var r,i=[];r=t.exec(e);)i.push(r[a]);return n&&(i=i.slice(-1)[0]),i}},XHR={headers:function(e){return[e.getAllResponseHeaders(),e.getResponseHeader("content-type"),e.getResponseHeader("content-disposition"),e.getResponseHeader("content-length")]}};const plugins={};plugins.shell=function(){var e=function(){return $("body").find(".-shell-port-").hasClass("opened")},t=function(){return $t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length},a=function(e,t,a,i){return''},n=function(e){var a=t(),i=$('select[name="sid"]').val();e||(e=""),i||(i=0),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-shell-insert=1&xhr-shell-inserted="+e+"&xhr-shell-cms="+a+"&xhr-shell-cmsid="+i,dataType:"text",complete:function(e){if(e=e.responseText,Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=JSON.parse(e);localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(t))}}})},s=function(e,t,a){$(e).next("pre").remove(),c(),o(t),a.scrollTop(a[0].scrollHeight),setTimeout(function(){vars.shell.processing=0,vars.shell.history=0,t.removeAttr("readonly").focus()},100)},o=function(e){e.val(""),e.focus()},r=function(e){var t=$("body").find(".-shell-port-"),a=a=void 0!==e&&(e.startsWith("!")?e.substr(1):e),i=t.find("input"),s=(t.find(".-shell-port-pwd").attr("data-pwd"),t.find("[data-shell-host]")),o=s.attr("data-shell-host");if($t_uri_cloudmin){var r=$('aside [name="sid"] option:selected');current_host_name=r.attr("title")||r.text(),s.text(current_host_name)}else s.text(o);if(n(!1),a){i.val(a);var l=$.Event("keydown");l.which=13,i.trigger(l)}t.css("bottom","0vh").addClass("opened"),p(),c(),setTimeout(function(){a||(focus(),i.focus())},20)},l=function(){$("body").find(".-shell-port-").css("bottom","100vh").removeClass("opened"),v___module==v___module_file_manager&&"function"==typeof __f__state__changed&&__f__state__changed(),$(".command-shell-editor-spinner").remove(),p(!0)},_=function(e){var t=$(".-shell-port-container .-shell-port-cmd");e?t.addClass("invisible"):t.removeClass("invisible")},c=function(){if(1==core.moduleAvailable("shell")){var e=parseInt($("body").find(".-shell-port-cmd").width()),t=parseInt($("body").find(".-shell-port-prompt").width());$("body").find('.-shell-port- input[data-command="true"]').css("width",e-t-50+"px")}},d=function(){var e=t();return 1==core.moduleAvailable("shell")||e?1:0},p=function(p){var f=$(document.body).find(".-shell-port-"),u=f.find('input[data-command="true"]'),m=f.find("div[data-output]"),h=f.find(".-shell-port-container"),v=f.data("autocomplete"),b=$(window),x=".plugin-shell";if(p)return b.off("keydown"+x),b.off("keyup"+x),void h.off("click"+x);b.on("keydown"+x,function(t){var a=this,i=e(),n=$(".modal-shell-config:visible").length,s=String.fromCharCode(t.which).toLowerCase();if(t[settings_hotkey_toggle_modifier]&&s==settings_hotkey_shell&&theme_shortcuts_modifier_unique(t))return t.preventDefault(),void(i&&l());if((t.altKey||t.ctrlKey)&&"l"==String.fromCharCode(t.which).toLowerCase()&&t.preventDefault(),void 0===a.shell_request_interrupted&&(a.shell_request_interrupted=0),void 0===this.last_pressed_times?this.last_pressed_times=0:this.last_pressed_times+=1,setTimeout(function(){a.last_pressed_times=0},vars.event.double_click_delay),"c"===s&&a.last_pressed_times>1&&t.ctrlKey&&!t.shiftKey&&!t.altKey&&!t.metaKey)return a.shell_request_interrupted=1,"object"==typeof a.shell_request&&"pending"===a.shell_request.state()&&a.shell_request.abort(),void setTimeout(function(){a.shell_request_interrupted=0},1e3);if(this.searching||"r"===s&&t.ctrlKey&&!t.shiftKey&&!t.altKey&&!t.metaKey){if(t.preventDefault(),"object"==typeof a.shell_request&&"pending"===a.shell_request.state())return;var o=$(".-shell-port-type"),r=$('.-shell-port- input[data-command="true"]');if(h.scrollTop(h[0].scrollHeight),this.searching=1,run_search=function(e){var t=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")).filter(function(t){return t.includes(e)});return $.unique(t).reverse()},update_search=function(e,i){if(this.used_index&&!i||(this.used_index=0),t.ctrlKey){if("c"===s)return void cancel_search(1);if("r"!==s)return}JSON.stringify(e)!=JSON.stringify(this.results)||i?this.results=e:t.shiftKey?--this.used_index:++this.used_index,e.length<=this.used_index&&(this.used_index=0),this.used_index<0&&(this.used_index=e.length-this.used_index-2);var n=this.searching_shell_str_replaced.find("span[data-searching]"),o=n.text(),l=localStorage.getItem(v___server_hostname+"-shell_command_last");if(!a.pre_searched&&l&&("undefined"===l&&(l=String()),a.pre_searched=l),o||!a.pre_searched)o&&e.length?(success_search(),e&&r.val(Convert.htmlUnEscape(e[this.used_index])),c()):failed_search();else{n.text(a.pre_searched);var _=run_search(a.pre_searched);update_search(_,0)}},failed_search=function(){var e=a.searching_shell_str_replaced.html();e.includes("failed reverse")||a.searching_shell_str_replaced.html(e.replace("reverse-i-search","failed reverse-i-search")),c(),new Audio("data:audio/ogg; codecs=opus;base64,T2dnUwACAAAAAAAAAAArS957AAAAAAff6O0BHgF2b3JiaXMAAAAAAkSsAAAAAAAAAO4CAAAAAAC4AU9nZ1MAAAAAAAAAAAAAK0veewEAAABiry0KEC3//////////////////3EDdm9yYmlzHQAAAFhpcGguT3JnIGxpYlZvcmJpcyBJIDIwMDcwNjIyAAAAAAEFdm9yYmlzK0JDVgEACAAAADFMIMWA0JBVAAAQAABgJCkOk2ZJKaWUoSh5mJRISSmllMUwiZiUicUYY4wxxhhjjDHGGGOMIDRkFQAABACAKAmOo+ZJas45ZxgnjnKgOWlOOKcgB4pR4DkJwvUmY26mtKZrbs4pJQgNWQUAAAIAQEghhRRSSCGFFGKIIYYYYoghhxxyyCGnnHIKKqigggoyyCCDTDLppJNOOumoo4466ii00EILLbTSSkwx1VZjrr0GXXxzzjnnnHPOOeecc84JQkNWAQAgAAAEQgYZZBBCCCGFFFKIKaaYcgoyyIDQkFUAACAAgAAAAABHkRRJsRTLsRzN0SRP8ixREzXRM0VTVE1VVVVVdV1XdmXXdnXXdn1ZmIVbuH1ZuIVb2IVd94VhGIZhGIZhGIZh+H3f933f930gNGQVACABAKAjOZbjKaIiGqLiOaIDhIasAgBkAAAEACAJkiIpkqNJpmZqrmmbtmirtm3LsizLsgyEhqwCAAABAAQAAAAAAKBpmqZpmqZpmqZpmqZpmqZpmqZpmmZZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZQGjIKgBAAgBAx3Ecx3EkRVIkx3IsBwgNWQUAyAAACABAUizFcjRHczTHczzHczxHdETJlEzN9EwPCA1ZBQAAAgAIAAAAAABAMRzFcRzJ0SRPUi3TcjVXcz3Xc03XdV1XVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVYHQkFUAAAQAACGdZpZqgAgzkGEgNGQVAIAAAAAYoQhDDAgNWQUAAAQAAIih5CCa0JrzzTkOmuWgqRSb08GJVJsnuamYm3POOeecbM4Z45xzzinKmcWgmdCac85JDJqloJnQmnPOeRKbB62p0ppzzhnnnA7GGWGcc85p0poHqdlYm3POWdCa5qi5FJtzzomUmye1uVSbc84555xzzjnnnHPOqV6czsE54Zxzzonam2u5CV2cc875ZJzuzQnhnHPOOeecc84555xzzglCQ1YBAEAAAARh2BjGnYIgfY4GYhQhpiGTHnSPDpOgMcgppB6NjkZKqYNQUhknpXSC0JBVAAAgAACEEFJIIYUUUkghhRRSSCGGGGKIIaeccgoqqKSSiirKKLPMMssss8wyy6zDzjrrsMMQQwwxtNJKLDXVVmONteaec645SGultdZaK6WUUkoppSA0ZBUAAAIAQCBkkEEGGYUUUkghhphyyimnoIIKCA1ZBQAAAgAIAAAA8CTPER3RER3RER3RER3RER3P8RxREiVREiXRMi1TMz1VVFVXdm1Zl3Xbt4Vd2HXf133f141fF4ZlWZZlWZZlWZZlWZZlWZZlCUJDVgEAIAAAAEIIIYQUUkghhZRijDHHnINOQgmB0JBVAAAgAIAAAAAAR3EUx5EcyZEkS7IkTdIszfI0T/M00RNFUTRNUxVd0RV10xZlUzZd0zVl01Vl1XZl2bZlW7d9WbZ93/d93/d93/d93/d939d1IDRkFQAgAQCgIzmSIimSIjmO40iSBISGrAIAZAAABACgKI7iOI4jSZIkWZImeZZniZqpmZ7pqaIKhIasAgAAAQAEAAAAAACgaIqnmIqniIrniI4oiZZpiZqquaJsyq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7rukBoyCoAQAIAQEdyJEdyJEVSJEVyJAcIDVkFAMgAAAgAwDEcQ1Ikx7IsTfM0T/M00RM90TM9VXRFFwgNWQUAAAIACAAAAAAAwJAMS7EczdEkUVIt1VI11VItVVQ9VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV1TRN0zSB0JCVAAAZAAACKcWahFCSQU5K7EVpxiAHrQblKYQYk9iL6ZhCyFFQKmQMGeRAydQxhhDzYmOnFELMi/Glc4xBL8a4UkIowQhCQ1YEAFEAAAZJIkkkSfI0okj0JM0jijwRgCR6PI/nSZ7I83geAEkUeR7Pk0SR5/E8AQAAAQ4AAAEWQqEhKwKAOAEAiyR5HknyPJLkeTRNFCGKkqaJIs8zTZ5mikxTVaGqkqaJIs8zTZonmkxTVaGqniiqKlV1XarpumTbtmHLniiqKlV1XabqumzZtiHbAAAAJE9TTZpmmjTNNImiakJVJc0zVZpmmjTNNImiqUJVPVN0XabpukzTdbmuLEOWPdF0XaapukzTdbmuLEOWAQAASJ6nqjTNNGmaaRJFU4VqSp6nqjTNNGmaaRJFVYWpeqbpukzTdZmm63JlWYYte6bpukzTdZmm65JdWYYsAwAA0EzTlomi7BJF12WargvX1UxTtomiKxNF12WargvXFVXVlqmmLVNVWea6sgxZFlVVtpmqbFNVWea6sgxZBgAAAAAAAAAAgKiqtk1VZZlqyjLXlWXIsqiqtk1VZZmpyjLXtWXIsgAAgAEHAIAAE8pAoSErAYAoAACH4liWpokix7EsTRNNjmNZmmaKJEnTPM80oVmeZ5rQNFFUVWiaKKoqAAACAAAKHAAAAmzQlFgcoNCQlQBASACAw3EsS9M8z/NEUTRNk+NYlueJoiiapmmqKsexLM8TRVE0TdNUVZalaZ4niqJomqqqqtA0zxNFUTRNVVVVaJoomqZpqqqqui40TRRN0zRVVVVdF5rmeaJomqrquq4LPE8UTVNVXdd1AQAAAAAAAAAAAAAAAAAAAAAEAAAcOAAABBhBJxlVFmGjCRcegEJDVgQAUQAAgDGIMcWYUQpCKSU0SkEJJZQKQmmppJRJSK211jIpqbXWWiWltJZay6Ck1lprmYTWWmutAACwAwcAsAMLodCQlQBAHgAAgoxSjDnnHDVGKcacc44aoxRjzjlHlVLKOecgpJQqxZxzDlJKGXPOOecopYw555xzlFLnnHPOOUqplM455xylVErnnHOOUiolY845JwAAqMABACDARpHNCUaCCg1ZCQCkAgAYHMeyPM/zTNE0LUnSNFEURdNUVUuSNE0UTVE1VZVlaZoomqaqui5N0zRRNE1VdV2q6nmmqaqu67pUV/RMU1VdV5YBAAAAAAAAAAAAAQDgCQ4AQAU2rI5wUjQWWGjISgAgAwAAMQYhZAxCyBiEFEIIKaUQEgAAMOAAABBgQhkoNGQlAJAKAAAYo5RzzklJpUKIMecglNJShRBjzkEopaWoMcYglJJSa1FjjEEoJaXWomshlJJSSq1F10IoJaXWWotSqlRKaq3FGKVUqZTWWosxSqlzSq3FGGOUUveUWoux1iildDLGGGOtzTnnZIwxxloLAEBocAAAO7BhdYSTorHAQkNWAgB5AAAIQkoxxhhjECGlGGPMMYeQUowxxhhUijHGHGMOQsgYY4wxByFkjDHnnIMQMsYYY85BCJ1zjjHnIITQOceYcxBC55xjzDkIoXOMMeacAACgAgcAgAAbRTYnGAkqNGQlABAOAAAYw5hzjDkGnYQKIecgdA5CKqlUCDkHoXMQSkmpeA46KSGUUkoqxXMQSgmhlJRaKy6GUkoopaTUUpExhFJKKSWl1ooxpoSQUkqptVaMMaGEVFJKKbZijI2lpNRaa60VY2wsJZXWWmutGGOMaym1FmOsxRhjXEuppRhrLMYY43tqLcZYYzHGGJ9baimmXAsAMHlwAIBKsHGGlaSzwtHgQkNWAgC5AQAIQkoxxphjzjnnnHPOSaUYc8455yCEEEIIIZRKMeacc85BByGEEEIoGXPOOQchhBBCCCGEUFLqmHMOQgghhBBCCCGl1DnnIIQQQgghhBBCSqlzzkEIIYQQQgghhJRSCCGEEEIIIYQQQggppZRCCCGEEEIIIZQSUkophRBCCCWEEkoIJaSUUgohhBBCKaWEUkJJKaUUQgillFBKKaGUkFJKKaUQQiillFBKKSWllFJKJZRSSikllFBKSimllEoooZRQSimllJRSSimVUkopJZRSSgkppZRSSqmUUkoppZRSUkoppZRSKaWUUkoppaSUUkoppVJKKaWUEkpJKaWUUkqllFBKKaWUUlJKKaWUSgqllFJKKaUAAKADBwCAACMqLcROM648AkcUMkxAhYasBABSAQAAQiillFJKKTWMUUoppZRSihyklFJKKaWUUkoppZRSSimVUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKAcDdFw6APhM2rI5wUjQWWGjISgAgFQAAMIYxxphyzjmllHPOOQadlEgp5yB0TkopPYQQQgidhJR6ByGEEEIpKfUYQyghlJRS67GGTjoIpbTUaw8hhJRaaqn3HjKoKKWSUu89tVBSainG3ntLJbPSWmu9595LKinG2nrvObeSUkwtFgBgEuEAgLhgw+oIJ0VjgYWGrAIAYgAACEMMQkgppZRSSinGGGOMMcYYY4wxxhhjjDHGGGOMMQEAgAkOAAABVrArs7Rqo7ipk7zog8AndMRmZMilVMzkRNAjNdRiJdihFdzgBWChISsBADIAAMRRrDXGXitiGISSaiwNQYxBibllxijlJObWKaWUk1hTyJRSzFmKJXRMKUYpphJCxpSkGGOMKXTSWs49t1RKCwAAgCAAwECEzAQCBVBgIAMADhASpACAwgJDx3AREJBLyCgwKBwTzkmnDQBAECIzRCJiMUhMqAaKiukAYHGBIR8AMjQ20i4uoMsAF3Rx14EQghCEIBYHUEACDk644Yk3POEGJ+gUlToQAAAAAAAIAHgAAEg2gIhoZuY4Ojw+QEJERkhKTE5QUlQEAAAAAAAQAD4AAJIVICKamTmODo8PkBCREZISkxOUFJUAAEAAAQAAAAAQQAACAgIAAAAAAAEAAAACAk9nZ1MAAEAUAAAAAAAAK0veewIAAABnj+O9HJeVV1dTVZqZlJWTVZOLl//3WFxXYJeV//8Y/+Tc/UxIYKVFdYLOWPcLKpEsrrEHETnXiqysLLNdS6y95/ef+7Vi79Z9zVZ919e44pxH0T+fHGONcSbr+Qza425fEvs1zysffUT9+zQaHgrT7V/01BzsuyrXpCXz0qMP4mSLYZ2iYZT7dVnREnYkX1fr+76Ya2rOIWxZqt/+8fu7dPBeNIMvH50Ln/UwOVyC7df/vwOSxAYAnB1ByNXUFeZiWLQlkZiQm/UrEE59c0TW7pJx5T1in2f5ufWtNeqfPh5UhKJ5rdkW3euzR5Bnxl6ZzVEj9x8jle81vvdbX+QF7AwF9aGXl0vbqWO385cr/4ltd2sspXI3JZbe9d13usNKvuGcrs55V9wupuJlY2SjF3pHn3vGm7VOUVPVZ8767T912a/rarz46AM0sASMAUWc62z2vGvAFJAwodfkUjqDTLGzVPSOi9SKWYilemD7LM7PZDfiZ1+7Wd9jc3HC0/tMv7uMv+Oc0Otg3fEj4k2cmQf4d5xhlz5+lH9zf9pbh576EAJ09fQ8F1hhUuCwmTShJhOPShKBifF//C2oGLikd4xiSI4XPjMvcC/fz6+Y/NSLZJ949nOVksu7IHcbrNCJ7jqvFvahjonXr/Z5SS6ZyX96/29uk57eKQOU8TwkAAINXFDOfChOgCQRgSE25x89VUuxy5tRsMqCWWx3Cft8rdllSMbllX0bvbfFfosLI3sPree1B0v9TTQ7+jL2841/MKsdSr507La/nkbdBYzxfDJhDtLNyW4bkMIJJCCnyDDlv/RQX4SoeaMobphUZvcB8vmn/K3t5z2X7sj+XX1JmOxl07wOHVdzgCU7/dclLZ806G8sziRsKGVPB9v+1wbZmgGc/TBJJAABVw8riiaxOplhpajhMd+fXbRlhCYzzmLvec4vr6tsmj35n+/XQzM352aNu+e0RpP7tawxRql5rht79+81u/Jz/vuUY01kENkbGLKS5UTaS6Va3/++pPF1Xr9O0bz3GvvHouGXQ5J7zb2GKsn9v9VK4nl64fFb0yekKdnWf8P31ynuiHxEwzj+eyudorVr7ed53cwB1A09yjNcLxdb7GCfM+pYEFodXu7nmv79yoNZu7rU36bw6+1r5r37+9mw9dentyvZd5i+WLfGXe/fx7WbEbTu+bNikUDTOz9t12eXvXHf3S0Xr56ufnpbeuS7LSqIHUseattE6vKT8vcDl399cvnIjOLhZVX8/P795f31Ydb/J3H8e3HM7Z9u9TZq58odu57+hutTjjvoDZcwBEa9MNiNz/7Ix0ic6kNwyIbxR20/4uzp+JHIcej6xV4Zo82535pzx/65rWuPZmp2j8yj0ryPj0hXwFUf7Oaz8vPKeS+/OGuFJMOpeO6rx59Vqw4/lVTbffsixD6Gq7eXQ/9X177EP51Hm2rPIlr3q9Ztc7XS3v9sDrHm5/y1lv4Me6165m8OO9NwP87y/acOWh0LABRaRZtYF/+L4LqLWeASZv8aDUXgrdeoqGxf7Vno0uhKTrPz9j7HfK/Rc32P++ftHOO2Wr5iTPb/qNyYvXJk7Ht8nn7jrVlkWK/arnPYU6Lw8PXlE5GdX/MeNaf/C7spMYwCI3LH0KN+tyzb/ancv1y/ePfoOTkXF4g1Z1dM/58v7/0OXeG3l+819X0kMCo+t//wh0kAtGH1IxciZPnRX18fVrpcoMc+jYeed+43PgCN5kLMzu9nxvpJM2dhFiOLa/ZsHk1sWJHd0ytwHSWpl52utUZc3z12TquTYTTviwy6tvIrpesF9lQpoj4Mt5D16Y9/92pXBjZ0ee92bmE7m5du1YT+1oa76ndJvEL6vFN1IbLTCv6+X9/JiivLYm7vHrftvL5+PgEA/EX1IZeObBdctRf12FzJau7WCJVw0kTZprqtCDKop3ifxDvfiaVfd5377OHy3v0Us1Xe/NvK4uf/jzjn0hjvvmoeKtnUjLdPQvCyiDNm8fvLrbUmAARScQ7CfBpJDZp7VbEnzO86Mojtrl5X3zU9Qugxe91zvP1KiJVfZ3+4Z2M4V2aP5hxTWJlxW5+59qYrtB923ztvflqf2YHcepBwsXLILn65YTJ0C+o/yav4U49aXvSnD/c1RI/AF0/dvx7auZM39VHYvumRHtxFN/vf36FKN8V36azKWplP9G3dxdXsSCETskQDAORBCZ0rznlH2jn6poDkikd7BYS72r9VFu2OaDLXyD/dfc/NRuuKa7vrZUSNbFU7W3GO+PWXzZ7H5hGZJLBeLfnHPbzAzFrXoN5Zq0y8QOEdlO1f9O51qhOBuPu+R2rlVnTvoH9IvyKOZnsuvkf87oHOtZ06/69D8W2sfnzveExRd36D3e3McN0JKQC0SXUmMSN87QvKw0LDr6uiPFezdj11Es/zLrHGdGIh1vdntezxaOw+Vv99jH3/bKuv1Tr4QDxlaSYR1RZ7/m69ptWIVr9HjiDDoPnSzh6NX9J5t1CmZ1x/CKvTNa5hCh8Wt3m+iR7ulbabrz8lOa9txqPm1L2dXPwvVOLJd/r2Wnqn1tU3/ex66lu3/s/L9znGc9teLgAAcufkZfE73M4sm1rDr3r+1pqBbl7/dYjrNtas5Dilf+638lzfX93+/D++TR+1zYv9cP7wNXu01LO3Yk+vV1/kmO157N4A3DzFdRcrJfPaAADAj3KvHMeMrLq8OO/Cm4Vm8u+7rXmlh8Sh97fy44euqzcHY/m4mH1tO3/81OsZudgez3e4PWWaQ1tb0wQRpy+6h1NXOTXbrXDtT1leSxuzbyXoul7f15/9fb1752X7xlNtwlw6x8fj8Ls84rfn1sWci5vhsfl+t/PtoXtdOgk3Om+XwMpd3lP7zs2691IP8JBRjNHwPMX8aJPVGd97Z8+RzO7/+9NAhqjpHMUzjtZO8h3O+K1ecoplrYpWl/V83WH2Pjvu2O5uubrOjZvOca73h6q4zq/z6yuNzXzynM7Xw/5Q3cbV/u+ZQh18pohPyJJyW+/uwGAurL0ssIuszAjUH+IoRiksphmNYqkrMorVvZd60ZTVEpbaRm51aS2ap37ueWd6UVs8hPU/ZTJZayFMPRrqlxKsBCABqrV9DFWbsTOFKDA3J6+Hslbecp/eng26l/cby43G4qRpIJdJZzDd7wwY3IEk+od/a/1hdbszvan+cn8JwGvomufx7p7NJUNXTlzp3zQXXaqWOhQfdCnB23pzyWgmZ7hMfN6AcQb2MwavchM4AHQ1r50Se44/Hsa8avmatYGCiLYqyFHgt/zd94qtLNUoghdG8aftHPetsqKvrQOmUwt8mZzyoO9xoplpbgyrXzjvh2fO27KjkptUmXkp78XeDfnYzcPEzwCEHV9/enrUVLhcSdgx5WuePT1FuCNeafR41ldr3hdCCbwpxVIJkZv2rvtSKp61qSkn8WK99H0Xw9T5xf6dMaul7VsaYlNJ6ZoT5pZnJ3b029bX8UpP0vu5x79fAZQpX/9k270+CFwYm4A/fvHs2YkMgTLgrfZWzL4geEMG9UahK891+aRnUhIWqpuO6ys+8OV+7G9LjH3Ztrv4TSa1SoyTTpqaCeM3sSX+dM+wRVZsm6dHAqQxf/DysHM45sDJFa8L+qMfHuOKSwTwX/FeI90L9MSHqEkKsy5ylhvYlPlnZquC3V3/OpfO+/m/Ph8l8Zwy/hZZbpv7fS4f2o3147IRS0lSfvE+L0EeTYx8L2ciPvS8AZxRX//xhnx66HvCjKu+9nuk3FzYDvl+9e67/iZWq2K1ucYaaz2v+xjn+VuuVTdltEkpf8fQmOK0V1ypeCWrGlPh1fdcP/xzv/x083bdX7mmxV9KE1Uvq2LnU1+MW/+f3a3972857cnp+eyNTlrsduzq5ylZP7ef/vfmT/t6esfNLO6R6euW/p7eof2zT49tc+mXbl3hvQKkUV/7Dnv7cfDVrTbpq98GeflYEd915pMZ50crWMG9NmmHte+N2PEJMZ5tK1Grc3qufNJzNdNee/Yb8VVQZIOxdS3YzncMMXJ/GRTSf+/96gzTIvfLxu/Z1Q9Vz6U3eql47z8t32Qmg7S/nUYcrL08VMzWEuldnpx35OvoOUfHt/7Y2vatI1unvs6tU6ddJXzL3N7dCzpG3Mz1S8ABUDf97feQvc3D8FbD55dw08SH0K/bzSMFiBjeauj81yFyXU/1tdeOGPb++u2yp3ld+sAbuaL11OxgaQLmrt6AuvQCMHquK0mxhR2bRJIAzu/tCPlZ4V4xjQ5WF88td97erBgaq0GP+2gpiDdm41R7c9X5FtrZ0q+Wfao9CcY4f+tQbLu6k9IkiWUwSa9Vxav8Px+HbVOnzPXxS1dHxscP5uX2YXO5XvamuzVPd3KvrllzXYnD9aN260vlcibOvy1mujgzjand6qpaRiLrS6WLSq/lxW8T/cNCAmBh6T/DkUHMOe85evrYKWz3z9WsX79c4ppaPvVEFnvt+5CdkcXIZFpk/fq6f08TpqyDHMz9q0xXl3Vc53o0PvnpnIsuKbT3i6y2yh81v533U78uG6ZPTEbGZpT9IQnjeK3XyopF/eJf2nAuFvd9FRZtO9+UxVQCK+z+nCD3CePyW+IM35aGnn+0W/yWuFynSXuo8XtssfSC+l/1PzNd2kzCfgZWMVk/LD1e8euHe4jclkz+bEFpERv78XepH3Cbit8XMdm07dP8T2QczzsHLpJ+Kz5tzLmTb9Eqhizfx+VzAB6eOxbm+mt2+r3Ihb2/Ii+kyi34F5zNp2v+MDgqdoGxnxFfgew1c/bvT++jTVt9Ul757I/Ur/L1Gc3z1u8CfDZVwrUyMjK/XKB4Q21PlyYttwIJAH4V3Eh5qV440zVkyXLGuwoOK3dhH/hDL+uUDbf/ydnuo7eMW675bJxuP59ZebtEmgYvMM5fN3MkVNfUG4DnbQDOOaMmxHZyEQAAGNWWw9TaU9go20s5zr3/B4I4bQctWRG951dK5aNP8LU0z8bIgB09k6p5JBPUjqDY1KwxVp4+LYCHazhrfHjfx1kV54nPzvWKs9SmRcjqsMZbhPouSphMdumV42pkYb/vt5isZ7qoFFaPUk8vSmB68axdvNNVHo4cuF+brNdtbxk2F7dG6aUnsm3UdvlcJmuD825wKvVMfd7Xy+eSc3+pv5/7c4vKy33u0+/fNGHBdJx9tl0sPu8T+79/DkEum0XWJ0eMvryPxfnfDSiWYXQ/L9DE+fkmuoai7InztpFbl5ds813gv9cfZ35x9s9k++zfJe39h+8yQHnQnNn9QHx2htsxffyx4DUyIzW/CeXUpZx/+kE5FXTJwv39Ur2Nxbtl1HLGGxoiietr7YICeHNWvstOd03plLV6tGQXP7Ct+lX21wvsWuapzvnc99/unoY4kQD5/+2egDAN0AOw83322WeigBAjZUUNi3yffd5nMnqGh1/cCvW/zYsF9nlH8N9zn+gBpk1z8r68KGO8e9YMvTvJijVTFzwBAE9nZ1MABAcYAAAAAAAAK0veewMAAAD63TjdAv/mPjWE51OfDSVdk9Eu11E1xM/X++JzOgLu0t2GOOH1n1Ws15//P+eIvXbQx7tjr+el59oLl11Wgw2g4nryAWpMvErF6MYxEgAAAEwJPe9Xlt/pk++eZK/lHE9KfcTQ6+D852DtPkt3soWb7tNULn++n+/rOr38+vT5burg9vnpWHko+qXJvaGl+9vP93o7FLq5ua6Rw/j9PtDT+7w/77Pvz31xvP6Sy5d3J5yrcSkf0LVnPSvpkkuZpHTZwWTtI/nhR95ZHU1YL+UqYkfz8Zvvz6VUl+ulY8GcfSaul+vlPLXrvHz7t2n66YGpX24Xx50YKRUtDrd/70H9f49u1ktNvfQ+0xlnlPu359vTPX0iAyC13P+/f2etbH3lS5uk/92ltLqWdVkj4/patxUt4/j4XOAfSxhbsS8e/b/jm/zha1MBM8nfAr8vym/++MeV5himtKKsn853EtfX16WAXl97b76q5Mgun32iLMqAaaQvvrIAnpHmkqVjWCz0tg7H1F9e7tzNNBkZ9u37PaZf7OVnnsmKI/AuP7odx7ulcTweA84yr8uzDz3LXO6dyTPnqS2yd0bu34a/ns5WAniVgWZ5zWXcp425/7a1pQIA3pSGHse7tGdraQCoPAFuBOXJC0/88nTUywU=").play()},success_search=function(){var e=a.searching_shell_str_replaced.html();a.searching_shell_str_replaced.html(e.replace("failed reverse-i-search","reverse-i-search")),c()},cancel_search=function(e){o.html(a.searching_shell_str),a.searching_shell_str=0,a.searching_shell_str_replaced=0,a.searching=0,e&&r.val(String()),c()},this.searching_shell_str||(this.searching_shell_str=o.html()),this.searching_shell_str_replaced){var _=this.searching_shell_str_replaced.find("span[data-searching]"),d=_.text();if(t.key&&1===t.key.length){var p=t.ctrlKey||t.altKey||t.metaKey?String():t.key,b=d+p;b&&(a.pre_searched=b,localStorage.setItem(v___server_hostname+"-shell_command_last",b)),_.text(b);var x=run_search(_.text());update_search(x,p)}}else this.searching_shell_str_replaced=o.html("(reverse-i-search)`': "),c();if(8===t.keyCode){var y=this.searching_shell_str_replaced.find("span[data-searching]"),A=y.text(),k=A.slice(0,-1);A&&(a.pre_searched=k,localStorage.setItem(v___server_hostname+"-shell_command_last",b)),y.text(k);var w=run_search(y.text());return void update_search(w,1)}9!==t.keyCode&&13!==t.keyCode&&27!==t.keyCode&&37!==t.keyCode&&38!==t.keyCode&&39!==t.keyCode&&40!==t.keyCode||cancel_search()}else if(!i||27!==t.keyCode||n){if(i&&38===t.keyCode&&t.preventDefault(),i&&9===t.keyCode&&u.is(":focus")){if(t.preventDefault(),!v)return;var C=u.val().trim().split(/\s+(?!-)/),S=C.length,I=C[0]&&-1===C[0].indexOf("-")?0:1,V=C[1]&&-1===C[1].indexOf(":")?0:1,T=u.val().endsWith(" "),O="service"===$.trim(C[0]),z="systemctl"===$.trim(C[0]),E=$.trim(C[0])&&$.trim(C[0]).startsWith("chown"),Z=1!==C.length||!u.val().length||I||T?O||z?"services":E?"permissions":"lists":"commands";if(!$.trim(u.val()).length)return;var U=u.val(),q=f.find(".-shell-port-pwd").attr("data-pwd");if("services"===Z){if("systemctl"===(Z=O?"service":"systemctl")&&3!==C.length)return;U="service"==Z?$.trim(C[1]):$.trim(C[2]),"service"===$.trim(C[0])&&(2===C.length&&T||3===C.length)&&(U=3===C.length?"::::"+$.trim(C[1])+"::::"+$.trim(C[2]):"::::"+$.trim(C[1]))}if(E){if(1===S&&!T)return void u.val($.trim(C[0])+" ");V&&$.trim(C[1])?T||C[2]?(Z="lists",U=q+"/::::"+$.trim(C[2])):(Z="groups",U=$.trim($.trim(C[1]).split(":")[1])):(Z="users",U=$.trim(C[1]))}"lists"!==Z||E||(U=q+"/::::"+$.trim(C[1])+"::::"+$.trim(C[0])+"::::"+$.trim(C[2])),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_autocompletes=1&xhr-get_autocomplete_type="+Z+"&xhr-get_autocomplete_string="+U,data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.length;if(1===t)if("service"===Z||"systemctl"===Z||"lists"===Z){var a=$.trim(C[0]),i=$.trim(C[0])+" "+$.trim(C[1]);"lists"===Z?("cd"===a&&e[0].endsWith("/")||"cd"!==a)&&("cd"===a||"cat"===a?u.val(a+" "+e[0]):$.trim(C[2])?u.val(i+" "+e[0]):u.val(a+" "+e[0])):"service"!==a||2!==C.length&&3!==C.length?"systemctl"===a&&3===C.length&&u.val(a+" "+$.trim(C[1])+" "+e[0]):2===C.length?u.val(a+" "+e[0]+" "):3===C.length&&u.val($.trim(C[0])+" "+$.trim(C[1])+" "+e[0])}else E?V?T||C[2]?u.val($.trim(C[0])+" "+$.trim(C[1])+" "+e[0]):u.val($.trim(C[0])+" "+$.trim($.trim(C[1]).split(":")[0])+":"+e[0]+" "):u.val($.trim(C[0])+" "+e[0]+":"):u.val(e[0]+" ");else if(t>1){var n=""+g()+" "+Convert.htmlEscape(u.val())+"\n";m.find("pre").append(n),m.find("pre").append(Convert.htmlEscape(e.join("\n")+"\n")),h.scrollTop(h[0].scrollHeight)}setTimeout(function(){u.focus().mousedown()},10)}},error:function(){}})}}else l()}).on("keyup"+x,function(d){var p=this,h=e(),v=$(".modal-shell-config:visible").length;if(h&&!v){var b=0,x=0,y=0,A=$(".form-control.sidebar-search"),k=t(),w=$('select[name="sid"]').val(),C=0,S=t()?v___location_prefix+"/server-manager/shell.cgi":core.moduleAvailable("shell")?v___location_prefix+"/shell/index.cgi":0;if(!S)return;if((h||A.is(":focus"))&&8===d.keyCode&&(vars.shell.history=0),h?(b=$.trim(u.val()),x=1,y=1):(b=A.val(),x=void 0!==A.val(),y=0),(y||x&&(!b.trim()||b.trim().startsWith("!")))&&(38==d.keyCode||40==d.keyCode)){d.preventDefault(),d.stopPropagation(),void 0===localStorage.getItem(v___server_hostname+"-shell_commands")&&localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var I=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),V=I?I.length:0;if(0===vars.shell.history&&!b&&40==d.keyCode)return;if(0===vars.shell.history&&b&&38==d.keyCode)return void(C=1);if(vars.shell.history=40==d.keyCode?++vars.shell.history:--vars.shell.history,vars.shell.history<0&&38===d.keyCode?vars.shell.history=V-1:vars.shell.history>V&&(vars.shell.history=0),I&&I[vars.shell.history%V]){if(!$.isEmptyObject(I)&&(vars.shell.history==V&&38===d.keyCode||vars.shell.history==V&&40===d.keyCode||C))return h?u.val("").focus():A.val("").focus(),void(vars.shell.history=0);if(h){var T=I[vars.shell.history%V].replace(/^!/,"");u.val(Convert.htmlUnEscape(T)).focus()}}return}if(x&&b.trim().startsWith("!")&&27==d.keyCode)return d.preventDefault(),d.stopPropagation(),void A.val("").focus();if(x&&b.trim().startsWith("!")&&13==d.keyCode&&(A.addClass("_shell_form_"),d.preventDefault(),d.stopPropagation(),1==core.moduleAvailable("shell")||k)){u.val(b.trim().substring(1)).focus(),r();var O=$.Event("keyup");O.keyCode=13,u.trigger(O)}var z=f.find(".-shell-port-container"),E=f.find(".-shell-port-pwd"),Z=E.attr("data-pwd"),U=$.trim(u.val()),q=0,J=d.keyCode?d.keyCode:d.which,K=(d.altKey||d.ctrlKey)&&"l"==String.fromCharCode(d.which).toLowerCase();if(u.is(":focus")||check_selected_text()||(d.ctrlKey||d.altKey||d.shiftKey||d.metaKey||u.val(u.val()+String.fromCharCode(d.which).toLowerCase()),u.focus()),U&&13===J||K){if(z.find("[data-searching]").length)return;if(core.moduleAvailable("shell")||k){if(1===vars.shell.processing)return;vars.shell.processing=1,("clear"===U||"reset"===U||"exit"===U||K)&&(m.find("pre").html(""),o(u),"exit"==U&&l()),"cd ~"===U&&(q=U,U="cd "+E.attr("data-home"));var M=!1;if("cd /"===U&&(M="/"),"history -c"===U){localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var j=""+g()+" "+Convert.htmlEscape(U)+"\n";m.find("pre").append(j),o(u),z.scrollTop(z[0].scrollHeight);var Q=a(S,k,null,Z),R=new FormData($(Q)[0]);return void $.ajax({type:"POST",url:S+"?stripped=1&stripped=2",data:R,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(n(U),vars.shell.processing=0)},error:function(e){}})}if($.trim(U).startsWith("history -d")){var W=U.split(" ")[2];return W&&W.length&&Test.numeric(W)&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-shell-pop="+W+"&xhr-shell-cms="+k+"&xhr-shell-cmsid="+w,data:!1,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if("1"==e){var t=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands"));localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(t.filter(function(e,t){return t!==parseInt(W)-1})))}n(U)},error:function(e){}}),o(u),void(vars.shell.processing=0)}if(U.startsWith("history")){o(u);var D=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),P=D?D.length:0,N=P?P.toString().length:0;j=""+g()+" "+Convert.htmlEscape(U)+"\n";return $.each($(D),function(e,t){var a=e.toString().length,n="";for(i=0;i"+g()+" "+Convert.htmlEscape(u.val());return H.endsWith("/")||H.includes("../")?(F.append(L+" \nCan not open file editor. Unsupported path expression.\n"),void s(ae,u,z)):(edit_file(G[1],Z,[{call:"plugins.shell.toggle"},{call:"plugins.shell.done",params:[ae,u,z]},{call:"plugins.shell.close"}]),F.append(L+" \nOpening internal file editor. "+theme_spinner_small(void 0,"white command-shell-editor-spinner")+"\n"),_(1),z.scrollTop(z[0].scrollHeight),void n(U))}if("clear"===$.trim(U)||"reset"===$.trim(U)||"exit"===$.trim(U)||K)return vars.shell.processing=0,vars.shell.history=0,c(),u.focus(),void(!K&&n(U));var Y=a(S,k,U,Z),B=new FormData($(Y)[0]);u.attr("readonly","true");var ee=0,te=0,ae=".-shell-port-cmd",ie=!1,ne=0;p.shell_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var t=e.target.responseText;if(Test.strContains(t,v___page_signin_form))return v___available_session=0,void p.shell_request.abort();if(t&&t.length&&/[\x1B]/.test(t))return ne=1,void p.shell_request.abort();if(t&&te++,te>=1&&!ee)t&&($(ae).after("
    "),ee++,$(".-shell-port-container").addClass("progressing"));else if(ee){var a=extract_content(t,"
    ","
    ",1);a&&(a=a.replace(/<(b)[^>]*>[^<]*(<\/b>)/i,""),ie=a,$(ae).next("pre").replaceWith(a)),z.scrollTop(z[0].scrollHeight)}},!1),e},type:"POST",url:S+"?stripped=1&stripped=2",data:B,dataType:"text",cache:!1,contentType:!1,processData:!1,complete:function(e){$(".-shell-port-container").removeClass("progressing");var t=e.status;if(e=e.responseText,Test.strContains(e,v___page_signin_form))v___available_session=0;else{var a="reboot"===$.trim(U),i="shutdown -h now"===$.trim(U);if(ne||200!==t||3!==get_access_level()&&(a||i)){var o=theme_language("shell_aborted");a?o="The system is rebooting..":i&&(o="The system has been powered off!");var r=200!==t?$.trim(extract_content(ie,"
    ","
    ",0))+(p.shell_request_interrupted?"\n^C":String()):o;return 0===t&&(r="Cannot establish connection to the host."),m.find("pre").append(""+g()+" "+Convert.htmlEscape(u.val())+" \n"+r+"\n"),n(U),void s(ae,u,z)}var l=g(),_=($(e).find("pre").length?$(e).find("pre"):$(e).filter("pre")).html().replace(/>>/g,">"+l),c=$(e).find('input[name="previous"][type="hidden"]').map(function(){return Convert.htmlEscape($(this).val())}).get();localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(c)),newPwd=$(e).find('input[name="pwd"]').val(),m.find("pre").append(q?_.replace(new RegExp(U,"g"),q):_),E.text(M||(newPwd==E.attr("data-home")?"~":newPwd.split("/").filter(function(e){return $.trim(e)}).slice(-1)[0])).attr("data-pwd",Convert.htmlEscape(M||newPwd)).attr("title",Convert.htmlEscape(M||newPwd)),"cd .."===U&&"/"===newPwd&&E.text("/"),s(ae,u,z)}},error:function(e){}})}}}}),h.on("click"+x,"[data-shell-config]",function(){3!==get_access_level()&&$.ajax({type:"GET",url:v___location_prefix+"/config.cgi?shell",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=$(e).find(".ui_form").find("table.sub_table_container"),a=v___location_prefix+"/config_save.cgi";t.find("a").contents().unwrap();var i=t.find("tbody"),n=$(e).find("tr th.table-title b").text();theme_alert(n,'
    '+i[0].outerHTML+'
    ",!1,"md","info","cogs",'10 modal-shell-config" data-keyboard="false" data-backdrop="static',0),setTimeout(function(){$("[data-save-shell-config]").on("click",function(e){e.preventDefault();var t=$(this);if(!t.hasClass("disabled")){var i=$(".modal-shell-config"),n=i.find("form").serialize();t.addClass("disabled").find("i").replaceWith(theme_spinner_small(!1," ")),$.ajax({type:"POST",url:a,data:n,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:i.find('[data-dismiss="modal"]').trigger("click")},error:function(){}})}})},300)}}})}).on("click"+x,".-shell-port-close",function(){d()&&l()})},g=function(){return Convert.htmlEscape($(".-shell-port-type").text())};return{type:t,init:p,status:e,link:function(){d()?0!=settings_show_terminal_link&&$(".user-link.ported-console").removeClass("hidden"):$(".user-link.ported-console").addClass("hidden")},unlock:function(){vars.shell.processing=0,$('.-shell-port- input[data-command="true"]').removeAttr("readonly")},open:r,close:l,toggle:_,done:s,available:d,adjust:c,set:function(e){var t=$("body").find(".-shell-port-").find(".-shell-port-pwd"),a=t.attr("data-home");if("string"==typeof e){var i=((e=Convert.uriDecodeComponent(e))&&e.endsWith("/")?e.slice(0,-1):e).split("/").pop();i||(i="/",e="/"),2==get_access_level()&&(e=get_user_home()+e),e===a&&(i="~"),e=Convert.htmlEscape(e),t.attr("data-pwd",e).attr("title",e).text(i)}}}}(),plugins.favicon=function(){var e=function(e){a.badge(e),titlenotifier.set(e),a.lastNum=e},t=0;"object"==typeof a&&a.lastNum&&(t=a.lastNum);var a=new Favico({animation:"none"});return e(t),{set:e}}(),plugins.slider=function(){var test_visibility=function(){!0!==settings_side_slider_fixed||$(".mobile-menu-toggler:visible").length&&!vars.navigation_pinned||!$.support.spa||!0===settings_side_slider_fixed&&window.matchMedia("(max-width: 1365px)").matches?set_visibility(0):set_visibility(1)},set_visibility=function(e,t){if(1!==vars.slider_pinned||e||!$(".right-side-tabs i.fa2-collapse-right:visible").length){var a="body .right-side-tabs";"0"==get_server_data("access-level")&&(e?($(a+"-toggler").addClass("hidden"),$(a).css("right","0px").addClass("right-side-tabs-fixed"),settings_side_slider_enabled&&get_server_data("data-slider-fixed","1")):(settings_side_slider_enabled&&(t?$(a+"-toggler").removeClass("hidden").addClass("opened").css("right","300px"):$(a+"-toggler").removeClass("hidden opened").css("right","0")),t?$(a).css("right","0px"):$(a).css("right","-302px"),$(a).removeClass("right-side-tabs-fixed"),get_server_data("data-slider-fixed","0")))}},display_badges=function(){if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e="right-side-tab-notification-asterix",t="hidden hidden-force",a=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;plugins.favicon.set(a),a>0?($(".right-side-tabs-toggler button span.badge").removeClass(t).text(a),$("#right-side-tabs ."+e).removeClass(t).text(a)):($(".right-side-tabs-toggler button span.badge").addClass(t).text(0),$("#right-side-tabs ."+e).addClass(t).text(0))}},check_notifications=function(){var $current_localData_notifications={};$.each(localStorage,function(e,t){if("string"==typeof e&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1){var a=e.split("_")[1],i=JSON.parse(t),n=i.title,s=i.time,o=i.timestamp,r=i.message,l=i.readStatus,_=i.type,c=i.link,d=s+"_"+n;"csf_deny"===_&&(d=s+"_"+n.replace(/\W/g,"")+r.replace(/\W/g,"")),$current_localData_notifications[d]=a+"~~~~"+n+"~~~~"+s+"~~~~"+o+"~~~~"+r+"~~~~"+l+"~~~~"+_+"~~~~"+c,$('.list-group-item[id="'+a+'"][data-type="'+_+'"]').length&&$('.list-group-item[id="'+a+'"][data-type="'+_+'"] .list-group-item-heading small').text(moment.unix(s).fromNow())}});var package_message_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("package_message")>-1}).length,csf_remote_version_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("csf_remote_version")>-1}).length,authentic_remote_version_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("authentic_remote_version")>-1}).length,csf_title_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("csf_title")>-1}).length,keys=[];for(var key in $current_localData_notifications)$current_localData_notifications.hasOwnProperty(key)&&keys.push(key);$current_localData_notifications_sorted_keys=keys.sort(),$.each($current_localData_notifications_sorted_keys,function(i,v){var vx=$current_localData_notifications[v],$__id__=vx.split("~~~~")[0],$__data__title=vx.split("~~~~")[1],$__data__time=vx.split("~~~~")[2],$__data__timestamp=vx.split("~~~~")[3],$__data__message=vx.split("~~~~")[4],$__data__readStatus=vx.split("~~~~")[5],$__data__type=vx.split("~~~~")[6],$__data__link=vx.split("~~~~")[7];if("package_message"==$__data__type||"csf_remote_version"==$__data__type||"authentic_remote_version"==$__data__type||"csf_title"==$__data__type){var $__num=eval($__data__type+"_num");i+1<$__num&&($__data__readStatus=1)}$('.list-group-item[id="'+$__id__+'"][data-type="'+$__data__type+'"]').length||add_notification($__id__,$__data__title,$__data__time,$__data__timestamp,$__data__message,$__data__readStatus,$__data__type,$__data__link)})},remove_all_notifications=function(){$.each(localStorage,function(e,t){"string"==typeof e&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1&&delete localStorage[e]})},mark_notification_read=function(e,t,a,i){var n=JSON.parse(localStorage.getItem(v___server_hostname+"-notifications_"+e+"_"+t));n&&localStorage.setItem(v___server_hostname+"-notifications_"+e+"_"+t,JSON.stringify({title:n.title,time:n.time,timestamp:n.timestamp,message:n.message,readStatus:a,type:n.type,link:n.link})),i&&display_badges()},mark_group_notifications_read=function(e){var t="";e&&(t='[data-type="'+e+'"]'),$(".right-side-tabs .list-group-item"+t+":not(.no-notifications)").each(function(){$(this).addClass("opacity-0_3"),mark_notification_read($(this).attr("id"),$(this).data("type"),1,0)}).promise().done(function(){display_badges()})},add_notification=function(e,t,a,i,n,s,o,r){$(".right-side-tabs .list-group").prepend('
    '+t+" "+moment.unix(a).fromNow()+"
    "+n+"
    "),$(".right-side-tabs-no-notifications").remove(),display_badges(),v___initial_load||mark_no_notifications()},mark_no_notifications=function(){var e=browser.detect.safari(1),t=e?2:0,a=function(){var e=theme_language("notification_none");$(".right-side-tabs .list-group").prepend('
    '+e.toUpperCase()+"
    "),$(".right-side-tabs-no-notifications").animate({opacity:"1"},175,function(){})};0===$(".right-side-tabs .list-group-item").length&&(e?setTimeout(function(){a()},2):a()),setTimeout(function(){display_badges()},175+t)},update_right_pane_favorites=function(){if("function"==typeof plugins.favorites.fetch){var e=plugins.favorites.fetch(),t=$("#right-side-tabs .no-favorites_data");$("#right-side-tabs .favorites-dcontainer .right_pane_favorites_link, #right-side-tabs .favorites-dcontainer .right_pane_favorites_num").remove(),e.length?($.each(e,function(e,t){var a=$("#right-side-tabs .favorites-dcontainer");get_server_data("webprefix")&&!t.link.includes("!edit")&&(t.link=get_server_data("webprefix")+t.link),a.append(''+(e+1)+'  '+t.title+"")}),t.addClass("hidden")):t.removeClass("hidden")}},sysinfo_update=function(){if(!$("body .modal.in").length){if(!e)var e=get_server_data("webprefix");if(0==v___user_level){var t=$("body").find("#system-status"),a=t.length?t[0]:0;$("#right-side-tabs-sysinfo .graph-container").length||$("#right-side-tabs .info-container").html(function(){$_____________got_rp__sys_dat=1;var e=core.moduleAvailable("package-updates"),t=core.moduleAvailable("proc")?"":" pointer-events-none",a=core.moduleAvailable("disk-usage")||core.moduleAvailable("quota")?"":" pointer-events-none",i=e?"":' class="hidden"',n=localStorage.getItem(v___server_hostname+"-sysinfo_package_message"),s=vars.local_storage?String():" hidden",o=$(localStorage.getItem(v___server_hostname+"-sysinfo_local_time")).attr("data-convertible-timestamp-full");return'
    '+theme_language("notification_no_data").toUpperCase()+"
    "}());var i=$(".right-side-tabs-dismiss .fa-reload");i.addClass("fa-spin-fastest cursor-na"),setTimeout(function(){i.removeClass("fa-spin-fastest cursor-na")},3e3),$.ajax({type:"GET",url:e+"/index.cgi/?xhr-info=1&webprefix="+get_server_data("webprefix"),data:!1,dataType:"json",success:function(t){Test.strContains(t,v___page_signin_form)?v___available_session=0:($.each(t[0],function(t,i){var n=$('#right-side-tabs [data-data="'+t+'"]');if(n=(n=n.add(n.prev("br"))).add(n.prev("strong")),null!=i?n.removeClass("hidden hidden-force"):n.addClass("hidden hidden-force"),"cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||(Test.numeric(i)?localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_stats",i):localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_stats","")),a){if($(a).find('span[data-id="sysinfo_'+t+'"]').html(i),"local_time"==t||"uptime"==t||"proc"==t){var s=$(a).find('span[data-id="sysinfo_'+t+'"]'),o=s.find("a").length?s.find("a"):s.find("span"),r=$(a).find('span[data-id="sysinfo_'+t+'"]').text();"local_time"==t?snippets.datetime.tictac(1,1):o&&o.length&&s.html(o.html(r))}if(page_sysinfo_sensor_update_label(),$(a).find('.piechart[data-charts="sysinfo_'+t+'"]').length){var l=$("body").find('.piechart[data-charts="sysinfo_'+t+'"]');l.length&&!isNaN(parseInt(i))&&l.data("easyPieChart").update(i)}"cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_seen",i),$(a).find(".modal-backdrop").remove()}if($__id__=moment().unix(),"cpu_percent"==t||"mem_percent"==t||"virt_percent"==t||"disk_percent"==t||"csf_title"==t||"csf_remote_version"==t||"authentic_remote_version"==t||"package_message"==t?localStorage.getItem(v___server_hostname+"-sysinfo_"+t)||localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i):i&&null!=i&&NaN!=i?localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i):localStorage.setItem(v___server_hostname+"-sysinfo_"+t,""),localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial")||localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",1),"authentic_theme_version"==t&&!localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_data"==t&&!localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_title"==t||"csf_data"==t||"csf_remote_version"==t||"authentic_remote_version"==t||"authentic_theme_version"==t||"package_message"==t){if("package_message"===t&&!core.curModuleFile("package-updates","update.cgi")){if((localStorage.getItem(v___server_hostname+"-sysinfo_"+t)!=i||1==localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial"))&&i&&i.indexOf("badge-danger")>-1){var _=theme_language("notifications_packages_updates"),c=$(i).html().replace(/badge-danger/g,"badge-success"),d=e+"/package-updates/index.cgi?mode=updates";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_package_message",JSON.stringify({title:_,time:$__id__,timestamp:$__id__,message:c,readStatus:0,type:t,link:d})),plugins.slider.notifications.dismiss("package_message"),localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i),localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",0),notifications(_,c,t,d)}else"package_message"===t&&localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i);$(i).find("i.badge:first-child").length||plugins.slider.notifications.dismiss("package_message")}var p=localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version");if(settings_sysinfo_theme_updates&&(0==localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&localStorage.removeItem(v___server_hostname+"-sysinfo_authentic_remote_version"),p&&localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&"authentic_remote_version"==t&&p-1&&1!=localStorage.getItem(v___server_hostname+"-sysinfo_csf_not_running")){var v=theme_language("notifications_firewall_danger"),b=theme_language("notifications_firewall_danger_message").replace("%v",moment.unix($__id__).format(config_portable_theme_locale_format_long));d=e+"/csf/index.cgi?action=lfdstatus";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_title",JSON.stringify({title:v,time:$__id__,timestamp:$__id__,message:b,readStatus:0,type:t,link:d})),plugins.slider.notifications.dismiss("csf_title"),localStorage.setItem(v___server_hostname+"-sysinfo_csf_not_running",1),notifications(v,b,"csf_remote_version",d)}else i&&-1===i.indexOf("label-danger")&&(plugins.slider.notifications.dismiss("csf_title"),localStorage.removeItem(v___server_hostname+"-sysinfo_csf_not_running"))}if("csf_deny"==t){var x=JSON.parse(i);$.each(x,function(a,i){var n=(i=i.split("|"))[0],s=i[1],o=i[2],r=i[3],l=(i[4],i[5],i[6],i[7]);if(l=l.replace("*Port Scan*",o&&r?'Port '+r+" scan":"Port scan"),!localStorage.getItem(v___server_hostname+"-allowed_trigger_"+(n+s.replace(/\./g,"0"))+"_csf_deny")){var _=theme_language("notifications_firewall_warning"),c=l+(o&&r?" ("+o+":"+r+")":""),d=e+"/csf/index.cgi?action=temp";localStorage.setItem(v___server_hostname+"-notifications_"+(n+s.replace(/\./g,"0"))+"_csf_deny",JSON.stringify({title:_,time:$__id__,timestamp:$__id__,message:c,readStatus:0,type:t,link:d})),localStorage.setItem(v___server_hostname+"-allowed_trigger_"+(n+s.replace(/\./g,"0"))+"_csf_deny",1),notifications(_,c,t,d)}})}if("cpu_percent"==t||"mem_percent"==t||"virt_percent"==t||"disk_percent"==t){var y=$("#right-side-tabs .graph-container-fw."+t);y=y.add(y.next("br")),null!=i?y.removeClass("hidden-force"):y.addClass("hidden-force")}if((localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats"))&&$("#right-side-tabs-sysinfo .graph-container").length){var A=!localStorage.getItem(v___server_hostname+"-sysinfo_"+t+"_stats"),k=$(".info-container .graph-container."+t);if(A?k.addClass("hidden").next("br").addClass("hidden"):k.removeClass("hidden").next("br").removeClass("hidden"),"cpu_percent"==t){var w=localStorage.getItem(v___server_hostname+"-sysinfo_cpu"),C=w?"("+w+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_cpu")).text(theme_language("global_cpu_load")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"% "+C),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"%")}if("mem_percent"==t){var S=localStorage.getItem(v___server_hostname+"-sysinfo_mem"),I=S?"("+S+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_mem")).text(theme_language("body_real")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"% "+I),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"%")}if("virt_percent"==t){var V=localStorage.getItem(v___server_hostname+"-sysinfo_virt"),T=V?"("+V+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_virt")).text(theme_language("body_virt")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"% "+T),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"%")}if("disk_percent"==t){var O=localStorage.getItem(v___server_hostname+"-sysinfo_disk"),z=O?"("+O+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_disk")).text(theme_language("body_disk")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"% "+z),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"%")}}if($('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]').html(i),"package_message"==t&&core.moduleAvailable("package-updates")){var E=i;E&&$('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]').html($(E).html($(E).html().split(",")[0])[0].outerHTML)}if("local_time"==t){var Z=$('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]'),U=Z.find("a").length?Z.find("a"):Z.find("span");U&&U.length&&U.html(U.next("span").detach()),settings_theme_make_date?snippets.datetime.tictac(1,1):Z.html(i)}if("cpu_temperature"==t){var q=0;$.each($(i).filter(".badge-cpustatus"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=n,o=$(this).text().indexOf("°C")>-1;"bg-warning"!=(a=$(this).text().indexOf("RPM")>-1?HTML.label.rpm(s):HTML.label.temperature(n,o))&&"bg-danger"!=a||(q=1),$("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus").length||$('strong[data-stats="cpu"] + br[data-stats="cpu"]').after(i.replace(/
    | /gi,"")),$($("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus")[e]).html($(this).text()).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(a+"-dark")}).promise().done(function(){q||"undefined"!=typeof config_custom_force_display_cpu_sensors?$('.info-container [data-stats="cpu"]').removeClass("hidden"):$('.info-container [data-stats="cpu"]').addClass("hidden")})}if("hdd_temperature"==t){var J=0;$.each($(i).filter(".badge-drivestatus:not(.badge-cpustatus)"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=$(this).text().indexOf("°C")>-1;"bg-warning"!=(a=HTML.label.temperature(n,s))&&"bg-danger"!=a||(J=1),$("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)").length||$('strong[data-stats="drive"] + br[data-stats="drive"]').after(i.replace(/
    | /gi,"")),$($("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)")[e]).html($(this).text()).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(a+"-dark")}).promise().done(function(){J||"undefined"!=typeof config_custom_force_display_drive_sensors?$('.info-container [data-stats="drive"]').removeClass("hidden"):$('.info-container [data-stats="drive"]').addClass("hidden")})}if("warning_si"==t){var K=$("#right-side-tabs .info-container .warning-list-data"),M=i.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/type='submit'/g,"formtarget='page' type='submit'").replace(/class='ui_submit/g,"class='ui_submit btn btn-default btn-xs").replace(/ui_form_end_submit" type="button"/g,'ui_form_end_submit" type="submit" formtarget="page"').replace(/ui_form_end_submit/g,"ui_form_end_submit btn-tiny");K.html(M),"
    "===i&&K.empty(),plugins.dashboard.update.alerts(i)}if("extended_si"==t){K=$("#right-side-tabs .info-container .extended-list-data");var j=i.replace(/aria-expanded="true"/gi,'aria-expanded="false"').replace(/collapse in/gi,"collapse");opened_tabs=$("#extended_sysinfo .panel .in").map(function(){j=(j=j.replace('data-toggle="collapse" href="#'+this.id+'" aria-expanded="false" aria-controls="'+this.id+'"','data-toggle="collapse" href="#'+this.id+'" aria-expanded="true" aria-controls="'+this.id+'"')).replace('div id="'+this.id+'" class="panel-collapse collapse"','div id="'+this.id+'" class="panel-collapse collapse in"')}).promise().done(function(){K.html('
    '+j);var e=$("#right-side-tabs .extended-list-data");e.find("div.panel-heading:not(#mount_disks_info-mount):not(#status_services-status):not(#status-virtual-server):not(#acl_logins-acl):not(#sysinfo-virtual-server):not(#quota-virtual-server):not(#bw-virtual-server)").parent().remove(),$.each(e.find("div.panel-heading .panel-title"),function(){var e=$(this).find("a"),t="true"!=$(this).find("a").attr("aria-expanded")?1:0,a=t?"+":"—";$(this).append(''+a+""),e.text(Convert.strUpFirst($.trim(e.text())))}),e.find(".panel.panel-default").detach().appendTo("#right-side-tabs #extended_sysinfo"),e.find("div.panel-body").find("img").remove(),e.find('input[type="submit"]').addClass("btn btn-default btn-xs"),e.find('input[type="submit"]').parents("form").attr("formtarget","page"),e.find('button[type="button"].ui_submit').addClass("btn btn-default btn-xs"),e.find('button[type="button"].ui_submit').parents("form").attr("formtarget","page");var t=e.find('[data-referrer="acl_logins"] .panel-body > table:first-child');t.removeClass().addClass("table table-striped table-hover"),t.wrap('
    '),$("#extended_sysinfo .panel").on("show.bs.collapse",function(){$(this).find(".panel-title-status").removeClass("margined-right-2").text("—")}).on("hide.bs.collapse",function(){$(this).find(".panel-title-status").addClass("margined-right-2").text("+")})})}"collect_interval"==t&&(Test.numeric(i)?settings_side_slider_background_refresh_time=parseFloat(i):settings_side_slider_background_refresh_time=0),$.trim($(".info-list-data").text()).length&&setTimeout(function(){$("#right-side-tabs .is-sysinfo_data").removeClass("hidden"),$("#right-side-tabs .no-sysinfo_data").addClass("hidden")},100)}),sysinfo_replace_dismiss_buttons(),setTimeout(function(){plugins.slider.notifications.check()},3e3),snippets.datetime.locale())}})}settings_side_slider_enabled&&("number"==typeof iupdateTimer&&clearInterval(iupdateTimer),settings_side_slider_background_refresh_time>0&&(iupdateTimer=setInterval(function(){sysinfo_update()},6e4*settings_side_slider_background_refresh_time)))}};return document.addEventListener("DOMContentLoaded",function(){if($(document.body).on("click",".right-side-tabs-dismiss i.fa-reload, ._sync_sysinfo_.fa-reload",function(){if(!$(this).hasClass("cursor-na")){var e=core.moduleAvailable("virtual-server")?"virtual-server":"system-status",t=$(this);t.addClass("fa-spin-fastest cursor-na"),$.ajax({type:"GET",url:v___location_prefix+"/"+e+"/recollect.cgi",data:!1,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:("sysinfo.cgi"===v___location_file&&get_pjax_content(v___location_prefix+"/sysinfo.cgi"),sysinfo_update())},error:function(e){t.removeClass("fa-spin-fastest cursor-na"),plugins.messenger.post(''+theme_language("sysinfo_update_failed"),20,"error","sysinfoRecollect")}})}}),0==v___user_level&&$.support.spa){var e=localStorage.getItem(v___server_hostname+"-right-side-tab")?localStorage.getItem(v___server_hostname+"-right-side-tab"):"#right-side-tabs-sysinfo",t='
    '+theme_language("notification_no_data").toUpperCase()+"
    ",a='
    '+theme_language("notification_no_favorites").toUpperCase()+"
    ",i=String(),n=document.querySelector("aside");n&&n.style&&n.style.filter&&"nav"===settings_side_slider_palette&&(i="filter: "+n.style.filter);var s='';browser.detect.safari(1)?setTimeout(function(){$(document.body).append(s),test_visibility()}):($(document.body).append(s),test_visibility()),$('a[href="'+e+'"]:visible').length||$("#right-side-tabs ul.nav-tabs li a:visible").trigger("click"),$('#right-side-tabs .nav.nav-tabs a[data-toggle="tab"]').on("shown.bs.tab",function(e){var t=$(e.target).attr("href");localStorage.setItem(v___server_hostname+"-right-side-tab",t)}),$(document.body).on("click",'i[data-trigger="side_slider_pinned"]',function(e){e.stopImmediatePropagation();var t="1"==get_server_data("data-slider-fixed")?0:1;vars.slider_pinned=t,settings_side_slider_fixed=!settings_side_slider_fixed,set_visibility(t,void 0!==e.originalEvent?1:0),$(".dropdown.open.obj-settings .dropdown-toggle").dropdown("toggle"),$(window).resize()}).on("click",".right-side-tabs-favorites-ctl",function(e){$(".favorites-menu-outer").hasClass("hover")?$(".favorites-menu-close").trigger("click"):$(".user-link.favorites").trigger("click")}).on("click",'#right-side-tabs a:not([data-toggle="collapse"]):not([role="tab"]):not(.list-group-item)',function(e){$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}).on("click","#right-side-tabs .info-container .graph-container-fw",function(e){var t,a=core.moduleAvailable("proc"),i=$(this).attr("class"),n=i.indexOf("cpu_")>-1?"cpu":i.indexOf("mem_")>-1?"mem":i.indexOf("virt_")>-1?"virt":"disk";"cpu"==n&&a?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=n&&"virt"!=n||!a?"disk"==n&&core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==n&&core.moduleAvailable("quota")&&(t=v___location_prefix+"/quota/list_users.cgi?dir=%2F"):t=v___location_prefix+"/proc/index_size.cgi",t&&get_pjax_content(t),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}).on("click","#right-side-tabs .fa-dashboard",function(e){get_onbeforeunload_status()?(this.href=v___location_prefix+"/sysinfo.cgi",get_onbeforeunload_message(e,this)):get_pjax_content(v___location_prefix+"/sysinfo.cgi"),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}).on("click","#right-side-tabs [data-click-about]",function(e){theme_update_notice(0)}).on("click",".right-side-tabs-toggler:not(.hidden)",function(e){$(this).hasClass("opened")?($(this).removeClass("opened"),$(this).animate({right:"0"},175),$(".right-side-tabs").animate({right:"-302"},175)):($(this).addClass("opened"),$(this).animate({right:"300"},350),$(".right-side-tabs").animate({right:"0"},350))}),$(".right-side-tabs .tab-pane").each(function(){$(this).css("height",$(document.body).outerHeight()-13)}),$(".right-side-tabs").on("mouseover",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").removeClass("hidden"),!$(this).hasClass("opacity-0_3")&&$(this).find(".fa-clear-all").removeClass("hidden")}).on("mouseout",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").addClass("hidden"),$(this).find(".fa-clear-all").addClass("hidden")}),$(".right-side-tabs").on("click","[data-port-href]",function(e){e.preventDefault(),e.stopPropagation(),open($(this).data("port-href"))}),$(".right-side-tabs").on("click",'a.list-group-item[data-type="csf_deny"]',function(e){e.preventDefault(),e.stopPropagation(),$(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")||(get_bundle_csf(),$(document.body).append(''),$("form#csf_temporary_ip_entries").submit().remove(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"))}),$(".right-side-tabs").on("click contextmenu","a.list-group-item",function(e){e.preventDefault();var t=$(e.target).is(".fa.fa-trash-o"),a=$(e.target).is(".fa-clear-all"),i=$(e.target).is("[data-port-href]");if((t||a||i)&&(e.stopPropagation(),e.stopImmediatePropagation()),"contextmenu"==e.type)return $(this).find(".fa-clear-all").trigger("click"),e.preventDefault(),void e.stopPropagation();if(t||a||i){if($(e.target).is(".fa-clear-all"))return $(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),void mark_notification_read($(this).attr("id"),$(this).data("type"),1,1);$(this).animate({opacity:"0"},175,function(){$(this).remove(),localStorage.removeItem(v___server_hostname+"-notifications_"+$(this).attr("id")+"_"+$(this).data("type")),mark_no_notifications()})}else $(this).attr("href")&&$(this).attr("href").length&&"undefined"!=$(this).attr("href")&&"csf_deny"!=$(this).attr("data-type")?($(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),mark_notification_read($(this).attr("id"),$(this).data("type"),1,1),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"),get_pjax_content($(this).attr("href"))):($(this).addClass("opacity-0_3"),mark_notification_read($(this).attr("id"),$(this).data("type"),1,1))}),$(".right-side-tabs-dismiss i.fa-clear-all").click(function(e){mark_group_notifications_read(!1)}),$(".right-side-tabs-dismiss i.fa-trash").click(function(e){$(".right-side-tabs .list-group-item:not(.no-notifications)").animate({opacity:"0"},175,function(){$(this).remove(),remove_all_notifications(),mark_no_notifications()})}),$(".right-side-tabs .tab-pane").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1}),mark_no_notifications(),check_notifications()}else get_server_data("data-slider-fixed","0"),$(".right-side-tabs-toggler").addClass("hidden")}),{test:test_visibility,state:set_visibility,badge:display_badges,notifications:{check:check_notifications,dismiss:mark_group_notifications_read},update:{favorites:update_right_pane_favorites},data:{fetch:sysinfo_update}}}(),plugins.dashboard=function(){var e=".container-fluid .panel-group .panel:not(#system-status)";return document.addEventListener("DOMContentLoaded",function(){$(document.body).on("shown.bs.collapse hidden.bs.collapse",""+e,function(){var t=$(""+e),a={};$.each(t,function(){$target=$(this).find(".panel-heading"),id=$target.attr("id"),state=$target.next(".panel-collapse").hasClass("in"),a[id]=state}),localStorage.setItem(v___server_hostname+"-dashboard_panels",JSON.stringify(a))})}),{restore:function(){if(v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){var t=localStorage.getItem(v___server_hostname+"-dashboard_panels");if(null!=t){t=Object.entries(JSON.parse(t));for(var a=0;a"!==e?1:0,a=$("#system-status > .panel-body > .table.table-hover");a.length&&(a.nextAll().remove(),t&&a.after(e))}}}}(),plugins.favorites=function(){var e=function(){return $("#favorites-menu .favorites-menu-content li:not(.exclude)").length},t=function(){var e=[];return $.each($("#favorites-menu .favorites-menu-content li:not(.exclude) a"),function(){var t=$(this).text(),a=$(this).attr("href"),i=$(this).find("[data-product]").attr("data-product");favorite={},get_server_data("webprefix")&&!a.includes("!edit")?favorite.link=link_type_convert(a.replace(get_server_data("webprefix"),""),1):favorite.link=link_type_convert(a,1),favorite.title=t.trim(),favorite.icon="virtualmin"==i?i+"":i,e.push(favorite)}),e},a=function(){$.ajax({type:"POST",url:v___location_prefix+"/settings-favorites_save.cgi",data:{favorites:'{"favorites":'+JSON.stringify(t(),null,4).replace(/\\n/g,"\\n").replace(/\\'/g,"\\'").replace(/\\"/g,'\\"').replace(/\\&/g,"\\&").replace(/\\r/g,"\\r").replace(/\\t/g,"\\t").replace(/\\b/g,"\\b").replace(/\\f/g,"\\f")+"}"},success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:plugins.slider.update.favorites()},error:function(e){}}),sortable("#favorites-menu > div > nav > ul")},i=function(){var t="favorites-menu .favorites-menu-content";0===e()&&($("#"+t+" li.favorites-no-message").removeClass("hidden"),$("#"+t+" .favorites-title sup a").addClass("hidden"))},n=function(t,a,i){var n,s="favorites-menu .favorites-menu-content";0===e()&&($("#"+s+" li.favorites-no-message").addClass("hidden"),$("#"+s+" .favorites-title sup a").removeClass("hidden")),n='class="wbm-'+i+' wbm-sm"',$("#"+s+" li.favorites-title").after('')},s=function(e,t){$("#favorites-menu .favorites-menu-content").find('a[href="'+e+'"], a[href="'+link_type_convert(e,2)+'"]').parent("li").remove(),!e.startsWith("!edit")&&$("#headln2c > .favorites, .xcustom-favorites").addClass("fa-star-o").removeClass("fa-star text-warning"),t||(i(),a())};return document.addEventListener("DOMContentLoaded",function(){$(document.body).on("click",'.favorites-menu a.menu-exclude-link, .right_pane_favorites_link:not([href^="!edit"])',function(){var e=$(this).attr("href"),t=e.startsWith("!edit"),a=Test.strContains(e,"virtual-server/")?"dom":!!Test.strContains(e,"server-manager/")&&"id",i=Test.strContains(e,"gparent")?"gparent":a,n=URI.parseQuery(URI(e).query())[i],s=$('.switch-toggle input:not([id="open_'+("dom"===a?"virtualmin":"id"===a?"cloudmin":"webmin")+'"]):checked').length;a?setTimeout(function(){$("aside select").val()!=n&&("dom"===a?plugins.navigation.get.virtualmin(n):"id"===a&&plugins.navigation.get.cloudmin(n))},300):!t&&s&&plugins.navigation.get.webmin()}).on("click","#headln2c > .favorites:not(.dummy), .xcustom-favorites:not(.dummy), button.favorites-editor",function(e){e.preventDefault();var t,i=URI(v___location).resource(),o=function(e){var t=Convert.htmlEscape(e.prev("strong").text()).match(/([^]+)\s\(([^)]+)\)/),a=t[1],i=t[2]+"/"+a;return i=i.replace(/\/\//g,"/")},r=function(e){var t=theme_language("favorites_remove");e.removeClass("fa-star-o").addClass("fa-star text-warning").attr("aria-label",t),e.attr("data-original-title",t).tooltip("fixTitle")},l=function(e){var t=theme_language("favorites_add");e.addClass("fa-star-o").removeClass("fa-star text-warning").attr("aria-label",t),e.attr("data-original-title",t).tooltip("fixTitle")},_=$(this),c=_.is(".favorites-editor"),d=$(".jsPanel button.favorites-editor").not(_);if(_.hasClass("fa-star-o")){if(r(_),c){$.each(d,function(){o($(this))===o(_)&&r($(this))}),t=o(_);var p=_.prev("[data-file-container]").attr("title")||t;t&&n("!edit "+t,theme_language("file_editor")+" - "+p,"editor")}else{var g=$("#headln2c > span[data-main_title]").text().trim(),f=$(".has-sub.active").text().trim(),u=$(".sub_active").text().trim(),m=u.trim()!==g.trim(),h="",v="";($t_uri_virtualmin||$t_uri_cloudmin)&&(h=$("aside .ui_select option:selected").text()),$('body[class^="'+v___module_file_manager+'"]').length&&(v=(v=URI.parseQuery(URI(v___location).query()).path)?"["+v+"]":"[/]"),n(i,(h.length?h+" - ":"")+(f.length?f+"/":"")+(u.length?u+(g.length&&m?": ":""):"")+(m?g:"")+(v.length?" "+v:""),$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":"webmin")}a()}else l(_),c?($.each(d,function(){o($(this))===o(_)&&l($(this))}),(t=o(_))&&s("!edit "+t)):s(link_type_convert(i,1))}).on("click","#right-side-tabs .right_pane_favorites_link",function(e){$(".favorites-menu-outer.hover + .favorites-menu-close").trigger("click")}).on("click",".favorites-menu-close, nav.favorites-menu li a",function(){$(".favorites-menu-outer").removeClass("hover")}).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").removeClass("hidden")}).on("mouseleave","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").addClass("hidden")}),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) small",function(){$(this).find(".fa-times").removeClass("fa-times").addClass("fa-times-circle"),$(this).animate({"font-size":"0.7em","margin-top":"-2px","margin-left":"-1px"},160)}).on("mouseleave","li:not(.exclude) small",function(){$(this).find(".fa-times-circle").removeClass("fa-times-circle").addClass("fa-times"),$(this).animate({"font-size":"0.6em","margin-top":"-1px","margin-left":"0"},80)}),$("#favorites-menu .favorites-menu-content").on("click","li:not(.exclude) small .fa-times-circle",function(e){e.preventDefault(),e.stopPropagation(),s($(this).parents("a").attr("href"))}),"function"==typeof sortable&&$("#favorites-menu > div > nav > ul").length&&sortable("#favorites-menu > div > nav > ul",{items:":not(.favorites-title)",forcePlaceholderSize:!1}).on("sortupdate",function(){a()})}),{detect:function(e,t){i();var a,n,s,o=$("#favorites-menu .favorites-menu-content li:not(.exclude) a").map(function(e,t){return link_type_convert($(t).attr("href"),1)}).toArray();if(e?s=e.find(".favorites-editor"):(s=$("#headln2c > .favorites, .xcustom-favorites"),n=(a=link_type_convert(URI(v___location).resource(),1)).includes("index.cgi")?a.replace("index.cgi",""):a+"index.cgi"),t&&(t=t.replace(/\/\//g,"/")),a&&$.inArray(a,o)>-1||n&&$.inArray(n,o)>-1||o.includes("!edit "+t)){var r=theme_language("favorites_remove");s.addClass("fa-star").removeClass("fa-star-o").attr("aria-label",r),s.attr("data-original-title",r).tooltip("fixTitle")}else{var l=theme_language("favorites_add");s.removeClass("fa-star").addClass("fa-star-o").attr("aria-label",l),s.attr("data-original-title",l).tooltip("fixTitle")}},fetch:t,remove:function(e){var t=$("#favorites-menu li a.menu-exclude-link"),n=$('aside select option[value="'+e+'"]').attr("title");t&&t.length&&$.each(t,function(t,a){var i=$(a),o=i.attr("href"),r=i.find("span").text();o&&(o.includes(e)||r&&$.trim(r).startsWith(n))&&s(o,1)}).promise().done(function(){setTimeout(function(){i(),a()},300)})}}}(),plugins.update_notice=function(){var e="pointer-events-none bg-filter-grayscale-opacity50",t="bg-filter-blur-grayscale-opacity50";$(document.body).on("hide.bs.modal","#update_notice",function(){$(this).hasClass("r")?($(document.body).append('
    '),$("div.update_notice_overlay").animate({opacity:1},480,function(){setTimeout(function(){theme_reload()},100)})):("0px"==___________content_initial_?$("#content").removeAttr("style"):$("#content").animate({"margin-left":___________content_initial_},320/1.5),$("aside").animate({"margin-left":0},320/1.5,function(){$(".right-side-tabs, .right-side-tabs-toggler").removeClass(e),setTimeout(function(){$(".container-fluid").removeClass(e+" "+t)},0)})),$("#update_notice").remove()}).on("show.bs.modal","#update_notice",function(){$("#update_notice").length;var a=$(this),i=$("aside").css("left");___________content_initial_=$("#content").css("margin-left"),________version_date_obj=a.find(".modal-body > h4:first-child"),________version_curr_text=________version_date_obj.text().split(/\s+/)[1],________version_first_text=$(".versionSeparator:last").text(),________multi_in_branch=$(".versionSeparator").length,_____version__x=________version_first_text+"..."+v___theme_version;var n=$(".versionSeparator"),s=theme_language("global_development_version");$.each(n,function(){$(this).attr("target","_blank")}),setTimeout(function(){$(".container-fluid").addClass(t)},0),$("#content").animate({"margin-left":0},320),$("aside").animate({"margin-left":i},320),$(".right-side-tabs, .right-side-tabs-toggler, .container-fluid").addClass(e);var o=$(this).find(".modal-body h4"),r=$(this).find(".modal-body h4:first");if(!$(this).find(".modal-body h4:first .diffctl").length){var l=new RegExp(RegExp.quote(________version_curr_text),"g");________multi_in_branch&&(o.replaceText(l,""+_____version__x+""),o.replaceText(/Version/,"Versions"));var _=$(this).find('.modal-body h4:contains("alpha"), .modal-body h4:contains("beta"), .modal-body h4:contains("RC")').length;if(o.length&&_){var c=$(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/);latest_release=parseFloat(c?c[0]:v___theme_version);var d=r.text().split("..."),p=0,g=$('a.versionSeparator[href*="releases"]:not(:empty)').first().text();d[1]&&(p=d[0].replace("Versions ",""),r.text(r.text().replace(p,g))),r.append(''),r.after(''+s+"")}else r.append('').append(''+________version_curr_text+"")}var f=[];$.each($(this).find('li:contains("Fix")'),function(){var e=$.trim($(this).text()),t="Fix bugs".replace(/\s/," other minor ");if("Fix bugs"===e||e===t){var a=$(this).parent("ul"),i=a.find("li").length,n=a.find("li:contains("+t+")").length;if(1===i||n){var s=a.prev("hr"),o=s.prev(".versionSeparator"),r=o.prev("ul").length,l=o.text();if(r){var _=a.next(".versionSeparator"),c=_.next().next("ul"),d=_.text();d&&(d=d.split("-")[0],_.text(d+"-"+l.split("-").pop()),o.remove(),s.remove(),a.remove(),n||c.find("li:contains(Fix bugs)").length||c.append("
  • Fix bugs
  • "))}}}if($(this).find(".label").length){$(this);var p=$(this),g=p.parent("ul"),u=p.find("a:not(.bctl)");u.length;________multi_in_branch?(f.push(u),1===g.find("li").length&&(g.prev("hr").prev("a").remove(),g.prev("hr").remove(),g.addClass("no-data")),p.remove()):(p.find("a:first").before(''),p.find("a.bctl").click(function(e){u.toggleClass("hidden"),p.find("a.bctl i").toggleClass("fa-minus-square-o")}),u.addClass("obj-popup hidden"))}}).promise().done(function(){if(________multi_in_branch&&!$(".bctl").length&&f.length){$(".modal-body h4[data-development]").prev("hr").before('
    • Fix bugs
    '),$(".modal-body span[data-bugs-container]").append(f);$(".modal-body span[data-bugs-container] a").sort(function(e,t){return parseInt($(t).text().replace("#",""))'),e.find("a.bctl").click(function(){t.toggleClass("hidden"),e.find("a.bctl i").toggleClass("fa-minus-square-o")}),t.addClass("obj-popup hidden");var i=$("div[data-bugs]"),n=i.find("a:not(.bctl)").length;!n&&i.prev(".hr-dashed").remove(),!n&&i.remove()}var s=$(".modal#update_notice h4 span");if(Test.strContains(s.text(),"...")&&Test.strContains(s.text(),"patch")){var o=parseInt(s.text().split("...")[1].substr(-1,1));o&&$.each($(".versionSeparator:not(.version_dev)"),function(e,t){e+1!=o?$(this).addClass("hidden"):$(this).text($(this).text()+"-"+theme_language("global_release").toLowerCase())})}})})},plugins.icons_row=function(){$(document.body).on("click",".inline-row input",function(e){$(this).is(":checked")?$(this).parents(".gl-icon-container").addClass("highlighted"):$(this).parents(".gl-icon-container").removeClass("highlighted")}).on("click contextmenu","div.icons-container, div.small-icons-container",function(e){var t=$(e.target).find("a[href]").first();if("click"===e.type&&$(e.target).is($(this))&&t.length)t.trigger("click");else{if("click"===e.type&&$(e.target).is(".gl-icon-select")&&!$.support.spa)e.preventDefault(),$(this).trigger("contextmenu");else if("contextmenu"===e.type){e.preventDefault(),$(this).find("input").is(":checked")?($(this).find("input").prop("checked",!1),$(this).removeClass("highlighted")):$(this).find("input").length&&($(this).find("input").prop("checked",!0),$(this).addClass("highlighted"));var a=$(e.target).is(".icon_link")?$(e.target).parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).is(".gl-icon-select")?$(e.target):$(e.target).is("img")?$(e.target).parent("a").parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).find(".fa-select, .fa-selected");a.hasClass("fa-select")?a.removeClass("fa-select").addClass("fa-selected"):a.removeClass("fa-selected").addClass("fa-select")}"function"==typeof db_check_selected&&db_check_selected()}}).on("click",".row.icons-row.vertical-align .icons-container, .row.icons-row.vertical-align .small-icons-container",function(){$(this).hasClass("forged-xx-skip")})},plugins.chooser=function(){var e=!1,t=!1,a=function(e){$(".mppopup .cspinner.hidden").removeClass("hidden"),$.ajax({type:"POST",url:e,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(t).filter(".table").html(),i=$(t).filter(".table").prev("b").html();i=o(i),a&&(a=a.replace(//gm,'').replace(//gm,'')),$(".mppopup .modal-body").html(i+''+a+"
    "),$v__mpp__g_gp=0,$(".mppopup_filter_input").focus(),$(".mppopup_filter_input").val("")}}})},i=function(e){return e.replace(/&file.*&chroot/,"&file="+Convert.uriEncodeComponent(($v__mpp__g_ol+"/").replace(/\/\/+/g,"/").replace(/:\//g,"://"))+"&chroot")},n=function(e,t){var a=e.prev('input[type="text"], input[name]');return a.is("input")||e.prev("textarea").length||e.prev("br").prev("textarea").length?a.length||a.is("input")||!t||(a=e.prev("textarea")).length||(a=e.prev("br").prev("textarea")):a=e.prev("span:not(.awradio)").find('input[type="text"]'),a},s=function(a,i,n){if(e&&(t=a),n){if($(".refInputData").is("textarea")){var s=$(".refInputData");s.val()?s.val(s.val()+"\n"+a.replace(/\/\/+/g,"/").replace(/:\//g,"://")):s.val(a.replace(/\/\/+/g,"/").replace(/:\//g,"://"))}else $(".refInputData").val(a.replace(/\/\/+/g,"/").replace(/:\//g,"://"));var o=$(".refInputData").parent("td").prev("td").find('input[type="radio"]'),r=$(".refInputData").parent("span").prev("span").find('input[type="radio"]'),l=$(".refInputData").prev("span").find('input[type="radio"]'),_=$(".refInputData").prev("select").find('option[value="*"]');r.length?r.trigger("click"):l.length?l.trigger("click"):_.length?_.parent("select").val("*").trigger("change"):o.trigger("click")}i&&$("body .mppopup").modal("hide")},o=function(e){e=$.url(e).attr("path").replace(/\/$/g,"").split("/");var t="",a="/",i=a,n=2==get_access_level()||3==get_access_level(),s=get_user_home();return n&&(i=s),$.each(e,function(e,o){if(""===o){var r="onclick=\"parentdir('"+i+"'); return false\"";n&&(r=String()),t+=""+(0==get_access_level()?'':'')+"\n"}else{r="onclick=\"parentdir('"+(a+=o+"/")+"'); return false\"";n&&!a.includes(s)&&(r=String()),t+=""+o+"\n"}}),'"+''};return document.addEventListener("DOMContentLoaded",function(){var r;r=document.body,$(r).on("dblclick",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){e.preventDefault()}).on("dblclick",'.mppopup a[onclick*="select("]',function(){$(".mppopup button[data-mppopup_confirm]").trigger("click")}).on("click",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();var t=this;if(t.clicks||(t.clicks=0),t.timer||(t.timer=null),t.clicks++,$data_mppopup_value.val($v__mpp__g_ol),1===t.clicks)t.timer=setTimeout(function(){if(t.clicks=0,"undefined"==typeof $v__mpp__g_gp&&($v__mpp__g_gp=0),$v__mpp__g_gp){var e=i($v__mpp__g_op);a(e)}else s($v__mpp__g_ol,0,0);$v__mpp__g_gp=0},vars.event.double_click_delay);else if(clearTimeout(t.timer),t.clicks=0,$v__mpp__g_olt){var n=i($v__mpp__g_op);a(n)}else s($v__mpp__g_ol,1,1)}).on("click",".mppopup button[data-mppopup_confirm]",function(){var e=$data_mppopup_value.val();s(e,1,1),core.curModule("custom")&&refInput.trigger("input")}).on("show.bs.modal",".mppopup",function(){v__mpp__ml_t__e=0,$data_mppopup_value=$(".mppopup input[data-mppopup_value]"),$('.mppopup input[data-role="tagsinput"]').tagsinput({onTagExists:function(e,t){t.hide().fadeIn(),v__mpp__ml_t__e=1}})}).on("shown.bs.modal",".mppopup",function(){var e=$("body .mppopup").find(".modal-head");$("body .mppopup").find(".modal-body"),$("body .mppopup").find(".modal-body table"),e.find(".mppopup_filter > input"),setTimeout(function(){$(".mppopup_filter_input").animate({opacity:1},0),$(".mppopup_filter_input").focus()},0)}).on("hidden.bs.modal",".mppopup",function(){refInput.removeClass("refInputData"),$('.mppopup input[data-role="tagsinput"]').tagsinput("destroy"),$("body .mppopup").remove(),$("button[data-mmclick].disabled, input[data-mmclick].disabled").removeClass("disabled").removeAttr("disabled")}).on("click",".mppopup_multi_done",function(){refInput.val($.trim($('.mppopup input[data-role="tagsinput"]').val().replace(/,/g," "))),$('.mppopup span[aria-hidden="true"]').trigger("click")}).on("keyup",".mppopup_filter_input",function(e){var t=e.which,a=$(".mppopup table tbody tr:visible"),i=a.find("td:first-child a");if(!$(".mppopup .breadcrumbx").length){if(13!=t||1!==a.length||e.shiftKey){if(13==t&&1===a.length&&e.shiftKey){i.trigger("click").trigger("dblclick");var n=$(".mppopup .mppopup_multi_done:visible");n.length&&setTimeout(function(){n.trigger("click")},240)}}else i.trigger("click");$(".mppopup table tbody tr.noresults").length||$(".mppopup table tbody").append(''+theme_language("global_no_results_found")+"");var s=$(".mppopup table tbody tr:visible:not(.noresults)"),o=$(".mppopup table tbody tr.noresults");s.length?o.addClass("hidden"):o.removeClass("hidden")}}).on("click","button[data-mmclick]:not(.disabled), input[data-mmclick]:not(.disabled)",function(a){a.preventDefault(),a.stopPropagation(),refInput=n($(this),1),e=!!+$(this).parent("._xcustom_file_select").length,custom_window={shown:function(){t=!1,!0},hidden:function(){!1,e=!1,$("._xcustom_file_select").remove()}};var i=$(this),s=refInput.val(),r=encodeURIComponent(s),l=$(this).attr("data-mmclick").match("window.open\\(['\"]*(.*?)(\\s*['\"]*,.*?)"),_=l[1].match(/(\w+\.[a-z]{3,4})/gi)[0].replace(".cgi","");if(i.addClass("disabled").attr("disabled","disabled"),l[1]){var c=l[1].replace("encodeURIComponent(ifield.value)","refInputCurrValSafe");c=c.replace('"+"',"").replace('"+',"").replace("refInputCurrValSafe",r);var d=function(t,a,i,n,o,r,l,c,d,p,g){var f;r||(r=String()),l||(l=String()),f=o?'":'";var u='";$(document.body).append(u),refInput.addClass("refInputData"),$("body .mppopup").on("show.bs.modal",function(){g&&"function"==typeof g&&g()}).on("shown.bs.modal",function(){p&&"function"==typeof p&&p(),e&&custom_window.shown()}).on("hidden.bs.modal",function(){e&&custom_window.hidden()}).modal("show")},p=function(e){core.curModule("cluster-useradmin")&&(e[1].startsWith("my_user_chooser")||e[1].startsWith("my_group_chooser"))?$v__mpp__g_op=v___location_prefix+"/useradmin/"+e[1]:e[1].startsWith("/")?$v__mpp__g_op=e[1]:$v__mpp__g_op="/"+e[1]},g=String(),f='form[action*="backup_sched.cgi"], form[action*="save_newquotas.cgi"], form[action*="save_validate.cgi"]';"cron_chooser"===_&&(g="cron_chooser.cgi?complex="+$(f).find('[name="enabled_hidden"], [name="sched_hidden"]').val()),$.ajax({type:"POST",url:g||c,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e,a=e.match(''+i+"",0,0,refInput,1,"modal-lg","modal-no-header",1,1,function(){$(".popup_cron_chooser form").on("submit",function(e){e.preventDefault(),e.stopPropagation();var t=$(this),a=$(f),i=t.parents(".modal.mppopup.in"),n=t.serialize();$.ajax({type:"POST",url:$(this).attr("action"),data:n,dataType:"text",success:function(e){var t=e.match(/top\.opener\.hfield\.value\s*=\s*"(.*?)"/),n=e.match(/top\.opener\.cfield\.value\s*=\s*"(.*?)"/);n&&refInput.val(n[1]),t&&a.find('[name="enabled_hidden"], [name="sched_hidden"]').val(t[1]),i.modal("hide")}})})},function(){page_radios_evolve('.popup_cron_chooser input[type="radio"]:not(.iawobject)')})}else if($.isArray(a)&&a[1]&&-1===a[1].indexOf("&multi=1"))p(a),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(t).filter(".table").html(),i=$(t).filter(".table").prev("b").html(),n=o(i);0===$(a).find("td").length&&(a=(a=a.replace("thead","tbody")).replace("",''+theme_language("datatable_semptydirectory")+"")),(t=n+''+a+"
    ")&&(t=t.replace(//gm,'').replace(//gm,'')),d(t,0,0,refInput,0)}}});else if($.isArray(a))p(a),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(t).filter("table").html();d(t=''+a+"
    ",0,0,refInput,1)}}});else{if($.isArray(a)&&-1===a[1].indexOf("&multi=1"))return;i=t;var n=$(i).filter("table").html();d(''+n+"
    ",0,0,refInput,0)}}}})}else $(this).removeClass("disabled"),$(this).attr("onclick",$(this).attr("data-mmclick")).removeAttr("data-mmclick"),$(this).trigger("click")})}),{target:n,file:function(a){var i=String();!a&&(a={}),a.file&&(i=a.file);var n='';if($("body").append(n),$(document).find("._xcustom_file_select button[data-custom-chooser]").trigger("click"),!1!==a.resolve)return new Promise(function(a){setTimeout(function(){var i=setInterval(function(){e||(clearInterval(i),a(t),t=!1)},100)},10)})}}}(),plugins.navigation=function(){document.addEventListener("DOMContentLoaded",function(){n(),o(),$("aside").on("click",".select2-container .select2-selection__arrow b",function(e){e.preventDefault(),e.stopPropagation()}).on("click",'a[href*="/file/"], a[href*="history.cgi"]',function(e){e.preventDefault(),e.stopPropagation(),window.open($(this).attr("href"),"_blank")}).on("contextmenu",".switch-toggle label",function(e){e.preventDefault();var t=$(this).attr("for").replace("open_","");if($(this).prev("input").is(":checked")){var a=v___location_href;set_server_theme_temp_data("goto",link_type_convert(a,1)),setTimeout(function(){theme_open_new_tab(a)},200)}else if("virtualmin"===t||"cloudmin"===t){var i;i="cloudmin"===t?"/server-manager/index.cgi":"/virtual-server/index.cgi";var n=link_type_convert(i,2);set_server_theme_temp_data("goto",link_type_convert(n,1)),setTimeout(function(){theme_open_new_tab(n)},200)}else if("webmail"===t){var s=v___location_prefix+"/mailbox/index.cgi?"+$__theme_navigation;set_server_theme_temp_data("goto",link_type_convert(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}else{s=v___location_prefix+"/sysinfo.cgi?"+$__theme_navigation;set_server_theme_temp_data("goto",link_type_convert(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}}).on("click",".switch-toggle input.dynamic",function(e){if(get_onbeforeunload_status()){e.preventDefault();var t=$(".switch-toggle input:checked").attr("id");get_onbeforeunload_message([],{href:"::switch::"+t})}else"open_thirdlane"!=$(this).attr("id")?(d($(this).attr("id").replace("open_","")),"open_dashboard"!=$(this).attr("id")?get_navigation_and_content($(this).attr("id").replace("open_",""),0,0):get_pjax_content(v___location_prefix+"/sysinfo.cgi")):location.href=v___location_prefix+"/asterisk/index.cgi"}).on("focus",".sidebar-search",function(){$("body").hasClass("loading-bg")?$(this).blur():l("c",!1)}).on("blur",".sidebar-search",function(){setTimeout(function(){l("c",!0)},150)}).on("click",'.navigation a[target="page"], .user-links a[target="page"]',function(){s()}).on("click",".navigation > li .navigation_external_link",function(e){e.preventDefault(),e.stopPropagation(),b=$(this),window.open(b.attr("href"),"_blank")}).on("click",".navigation > li:not('.sub-wrapper'):not('.menu-container'):not('.navigation_external'):not([data-linked])",function(e){if(e.preventDefault(),e.stopPropagation(),v___blocked_navigation=1,"undefined"==typeof $processing&&($processing=!1),!$processing){$processing=!0;var t=$("a",this).attr("href"),a=$("a",this).attr("target"),i=$(this);a&&$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$.when($("#sidebar .navigation > li").each(function(){var e=$(this),t=e.find("a").is("[data-has-sub-link]");e.is(i)||(e.removeClass("active"),"#search"!=e.find("a").attr("href")&&t&&$(e.find("a").attr("href")).slideUp(175))})).done(function(){i.hasClass("active")?i.removeClass("active"):"#hide"!=t&&!a&&i.addClass("active"),setTimeout(function(){$(t).is(":visible")&&"#hide"!=t&&!a?i.addClass("active"):i.removeClass("active"),$processing=!1},350),$(t).slideToggle(175)}),"#search"==t&&$('#sidebar input[name="search"]').focus()}}).on("click",".navigation > li > ul.sub > li:not('.menu-container')",function(e){if(!e.target||!$(e.target).is("li")){var t="MacIntel"===window.navigator.platform?1:0;if(!(!t&&e.ctrlKey||t&&e.metaKey)){var a=$(this);$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$("#webmin_search_form").find('input[name="search"]').val(""),a.addClass("sub_active").append('')}}}).on("click",'a[data-refresh="true"]',function(e){e.preventDefault(),page_refresh()}).on("focus",".form-control.sidebar-search",function(e){$(".__logo").addClass("inited"),e.preventDefault(),e.stopPropagation(),vars.shell.history=0}).on("keydown","#webmin_search_form",function(e){var t=$(this).find("input.sidebar-search"),a=t.val();$("body").find(".-shell-port-");if(a&&13===e.keyCode)if(e.preventDefault(),a.startsWith("!"))core.moduleAvailable("shell")&&plugins.shell.open(a);else{$(this).find('input[name="mod"], input[name="title"]').remove(),"virtual-server"!==h()&&"server-manager"!==h()||$("").attr({type:"hidden",name:"mod",value:h()}).appendTo($(this));var i=h(1),n=theme_language("search_in_"+("mailbox"===i?"usermin":i));n=n||theme_language("filemanager_context_search"),$("").attr({type:"hidden",name:"title",value:n}).appendTo($(this));var s=$(this).attr("action")+"?"+$(this).serialize();get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:s}):(get_pjax_content(s),t.val(""))}}).on("click","[data-collapse-trigger]",function(e){e.stopImmediatePropagation();var t="1"==get_server_data("data-navigation-collapsed")?0:1;vars.navigation_pinned=t,settings_navigation_always_collapse=!settings_navigation_always_collapse,settings_navigation_always_collapse?(get_server_data("data-navigation-collapsed",1),$(".mobile-menu-toggler").removeClass("visible-xs"),s(1,void 0!==e.originalEvent?1:0)):(get_server_data("data-navigation-collapsed",0),$(".mobile-menu-toggler").addClass("visible-xs")),setTimeout(function(){page_resized()},0),$(window).resize()}).on("click",".user-links > li.favorites",function(e){$(".favorites-menu-outer").addClass("hover")}).on("click",".user-link.palette-toggle",function(e){theme_toggle_night_mode()}).on("click",".user-link.ported-console",function(e){plugins.shell.available()&&plugins.shell.open()}).on("click",'li[data-linked] a[href="'+v___location_prefix+'/shell/"], a[href="'+v___location_prefix+'/server-manager/shell.cgi"], a[href*="shell=1"]:not(a[href*="login.cgi"])',function(e){e.preventDefault(),e.stopPropagation(),plugins.shell.open()}).on("click",".__logout-link",function(e){progress.start(),get_server_theme_temp_data("goto",0)}).mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1,callbacks:{onScroll:function(){$(".mobile-menu-toggler").is(":visible")||($(".form-control.sidebar-search").blur(),$("aside select")&&$("aside select").length>0&&$("aside select").hasClass("select2-hidden-accessible")&&$("aside select").select2("close"))}}})});var e=function(){var e=".navigation";$(e+" li.has-sub").removeClass("sub_active"),$(e+" > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$(e+" > li > ul.sub > li").removeClass("sub_active").find("span.current").remove(),$(e+" > li.has-sub").removeClass("active"),$(e+" > li > ul.sub").hide(),$(e+" > li > a > i.fa.fa-folder-open-o").removeClass("fa-folder-open-o")},t=function(t,a){if(Test.arrContains(["webmin_search.cgi","settings-user.cgi","settings-editor_favorites_read.cgi"],v___location_file))e();else if(!v___blocked_navigation){if(void 0===a){var i=1,n=0,s=$('.navigation a[href*="'+v___location_path+'"]:not([data-parent-hidden]):first');$('.navigation a[href="'+v___location_resource+'"]:not([data-parent-hidden]):first, .navigation a[href*="'+link_type_convert(v___location_path,2)+'"]:not([data-parent-hidden]):first').length?(t=v___location_resource,n=1):$('.navigation a[href^="'+v___location_resource+'"]:not([data-parent-hidden]):first').length?(t=v___location_resource,i=0):Test.strContains(v___location_file,"cgi")&&s.length&&(t=s.attr("href"),i=0,"save_log.cgi"===v___location_file&&Test.strContains(v___location_query,"error")&&Test.strContains(t,"_log")&&(Test.strContains(t,"file=")||Test.strContains(t,"extra="))&&(t=$('.navigation a[href*="'+v___location_path+'"][href*="error"]:not([data-parent-hidden]):first').attr("href")));t=t?t.replace("/edit_users.cgi","/list_users.cgi").replace("/edit_user.cgi","/list_users.cgi").replace("/edit_alias.cgi","/list_aliases.cgi").replace("/edit_database.cgi","/list_databases.cgi").replace("/save_database.cgi","/list_databases.cgi").replace("/edit_script.cgi","/list_scripts.cgi").replace("/script_form.cgi","/list_scripts.cgi"):t;!i||"config.cgi"!==v___location_file&&"uconfig.cgi"!==v___location_file||(t=$t_uri_virtualmin?v___location_prefix+"/config.cgi?virtual-server":$t_uri_cloudmin?v___location_prefix+"/config.cgi?server-manager":$t_uri_webmail?v___location_prefix+"/uconfig.cgi?mailbox":v___location_prefix+"/"+v___location_query+"/");var o=$t_uri_webmin||$t_uri_usermin;if(!t&&o)if(Test.strContains(v___location_file,".cgi")&&!Test.strContains(v___location_file,"sysinfo.cgi"))t=v___location_path.replace(v___location_file,""),page_extended()&&(t=v___location_prefix+"/webmin/");else if(!t){var r=new RegExp("^"+v___location_prefix,"i");t=get_server_data("data-uri").replace(r,"").split("/").filter(function(e){return 0!==e.length})[0],t=v___location_prefix+"/"+t}targeted_menu_link=n?$('.navigation a[href="'+t+'"]:not([data-parent-hidden]):first, .navigation a[href="'+link_type_convert(t,2)+'"]:not([data-parent-hidden]):first'):$('.navigation a[href^="'+t+'"]:not([data-parent-hidden]):first'),targeted_menu_link.length&&e()}else targeted_menu_link=$('.navigation a[href^="'+t+'"]:not([data-parent-hidden]):first'),targeted_menu_link.length&&e();targeted_menu_link.parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('').parent("ul.sub").show().parent("li:not(.menu-exclude):not(.user-link)").prev("li").addClass("active")}},a=function(){$(".mCSB_container, .mCSB_dragger").css("top","0"),!$("#_menu_loader").length&&$("body ul.navigation").before(''),$("body aside .mCSB_scrollTools, body ul.navigation, body ul.user-links").css("visibility","hidden"),$("aside ul.user-html").addClass("invisible")},i=function(){$("aside ul.user-html").removeClass("invisible"),$("body aside .mCSB_scrollTools, body ul.navigation, body ul.user-links").css("visibility","visible"),$("#_menu_loader").remove(),o(),bind_sameorigin(1),theme_to_new_tab()},n=function(){"none"==$("aside").css("transform")&&"1"!=$("html").attr("data-navigation-collapsed")&&($("aside").transition({x:settings_leftmenu_width},437.5,function(){$(".__logo")&&"none"==$(".__logo").css("transform")&&!$(".mobile-menu-toggler:visible").length&&$(".__logo").transition({y:"-140px"},262.5)}),setTimeout(function(){$(".switch-toggle").css("display","table")},1))},s=function(e,t){var a="mobile-menu-toggler",i=$(quirks.active_element()).is('input[name="settings_navigation_always_collapse"]');if(e&&(i=1),t)return $("."+a).addClass("selected").find("button").addClass("btn-primary").removeClass("btn-default"),void $("."+a).css("transform","translate("+settings_leftmenu_width+"px, 0px)");"function"==typeof jQuery().transition&&$("."+a+":visible").length&&$("."+a).attr("style")&&-1==$("."+a).attr("style").indexOf("ease")&&($(".__logo")&&$(".__logo").transition({y:0},262.5),$("aside, ."+a).transition({x:0},i?0:175,function(){$("."+a).removeClass("selected"),$(".switch-toggle").css("display","none"),$("aside").addClass("hidden-xs")}))},o=function(e){vars.navigation.select.back=!1,$(".form-control.sidebar-search").is(":focus")||$.each($("aside select > option"),function(){var e=$(this).text().match(/^\s{0,4}/)[0].length,t=$(this).text();settings_leftmenu_vm_cm_dropdown_icons&&(4===e&&-1===t.indexOf("↱")?$(this).html("    ↱ "+t.replace(/\s/g,"")):2===e&&-1===t.indexOf("↴")&&$(this).html("  ↴ "+t.replace(/\s/g,"")))}).promise().done(function(){var t=$("aside select");if(t.removeAttr("id"),t.length){t.removeAttr("onchange disabled"),t.data("select2")&&t.select2("destroy"),t.unbind("select2:select"),t.select2({minimumResultsForSearch:3});t.data("select2");e&&t.select2("open"),t.on("select2:selecting",function(){t.data("previous-value",$(this).val())}),t.on("select2:select",function(e){var t=e.currentTarget.value;"dom"===e.currentTarget.name?get_onbeforeunload_status()?(vars.navigation.select.back=!0,get_onbeforeunload_message(e,this,{"plugins.navigation.get.virtualmin":[t],get_default_virtualmin_content:[t]})):(g(t),get_default_virtualmin_content(t)):"sid"===e.currentTarget.name&&(get_onbeforeunload_status()?(vars.navigation.select.back=!0,get_onbeforeunload_message(e,this,{"plugins.navigation.get.cloudmin":[t],get_default_cloudmin_content:[t]})):(f(t),get_default_cloudmin_content(t)))}),t.on("select2:open",function(e){$.each($("select > option"),function(){if($(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1){var e=$(this);setTimeout(function(){$("body").find('li[id$="'+e.attr("value")+'"]').attr("style","color: #"+(v___theme_night_mode_enabled?"9a5150":"e97471")+" !important;")},1)}}),$("body").find(".select2-container:not(.select2), "+v___class_select2_leak).addClass("select2-aside")}),t.on("select2:closing",function(e){$("body").find(".select2-container, "+v___class_select2_leak).removeClass("select2-aside")}),1===$("aside select option").length&&($(".select2 span").css("cursor","default"),$(".select2 .select2-selection__arrow").remove(),t.on("select2:open",function(){$(".select2-container .select2-dropdown").css("opacity","0")})),$.each($("aside select > option"),function(){$(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1&&$(".select2-selection > .select2-selection__rendered").text().trim()==$(this).text().trim()&&$(".select2-selection > .select2-selection__rendered").attr("style","color: #"+(v___theme_night_mode_enabled?"9a5150":"e97471")+" !important;")})}})},r=function(e,t){var a=$("aside select");a.val(e).trigger("change"),t&&a.trigger("select2:select")},l=function(e,t){var i=function(e){return e&&(e.includes("http://")||e.includes("https://")||e.includes("ftp://")||e.includes("ftps://"))?1:0};if("c"!=e||($(".autocomplete-suggestions").remove(),$(".form-control.sidebar-search").removeAttr("disabled"),$(".form-control.sidebar-search").autocomplete("dispose"),!get_onbeforeunload_status()&&$(".form-control.sidebar-search").val(""),!t)){var n={},o="li:not(.menu-exclude):not(.user-link)";$.each($(o+' > ul[id^="global_"].sub > '+o+' > a, ul.navigation > [data-after] > a, ul.navigation > li > a[href*="virtual-server/index.cgi"], ul.navigation > li > a[href*="server-manager/index.cgi"]'),function(){var e=$(this).attr("href"),t=i(e),a=("/"==e.substring(0,1)?"":"/")+e;t&&(a=e),n[a]=$.trim($(this).text())}),$('li > a[target="page"][data-href="/virtual-server/index.cgi"], '+o+' > a[target="page"][data-href="/sysinfo.cgi"], '+o+' > a[target="page"][data-href="/virtual-server/pro/history.cgi"], '+o+' > a[target="page"][data-href="/server-manager/one_history.cgi"], '+o+' > a[target="page"][data-href="/server-manager/history.cgi"], '+o+' > a[target="page"][data-href="/mailbox/list_folders.cgi"], '+o+' > a[target="page"][data-href="/mailbox/list_ifolders.cgi"], '+o+' > a[target="page"][data-href="/mailbox/list_addresses.cgi"], '+o+' > a[target="page"][data-href="/filter/edit_forward.cgi"], '+o+' > a[target="page"][data-href="/filter/edit_auto.cgi"], '+o+' > a[target="page"][data-href="/filter/edit_auto.cgi"], '+o+' > a[target="page"][data-href="/filter/"], '+o+' > a[target="page"][data-href="/mailbox/edit_sig.cgi"]').each(function(){n[$(this).attr("data-href")]=$.trim($(this).text())});var l=$.map(n,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:m()}}}),c={};(core.curModule("custom")||v___location_path==v___location_prefix+"/backup-config/"||v___location_path==v___location_prefix+"/backup-config/index.cgi"||v___location_path==v___location_prefix+"/usermin/"||v___location_path==v___location_prefix+"/usermin/index.cgi"||v___location_path==v___location_prefix+"/webmin/"||v___location_path==v___location_prefix+"/webmin/index.cgi"||v___location_path==v___location_prefix+"/acl/"||v___location_path==v___location_prefix+"/acl/index.cgi"||v___location_path==v___location_prefix+"/init/"||v___location_path==v___location_prefix+"/init/index.cgi"||v___location_path==v___location_prefix+"/mount/"||v___location_path==v___location_prefix+"/mount/index.cgi"||v___location_path==v___location_prefix+"/quota/"||v___location_path==v___location_prefix+"/quota/index.cgi"||v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"||v___location_path==v___location_prefix+"/inittab/"||v___location_path==v___location_prefix+"/inittab/index.cgi"||v___location_path==v___location_prefix+"/logrotate/"||v___location_path==v___location_prefix+"/logrotate/index.cgi"||v___location_path==v___location_prefix+"/mailcap/"||v___location_path==v___location_prefix+"/mailcap/index.cgi"||v___location_path==v___location_prefix+"/pam/"||v___location_path==v___location_prefix+"/pam/index.cgi"||v___location_path==v___location_prefix+"/proc/"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"||v___location_path==v___location_prefix+"/cron/"||v___location_path==v___location_prefix+"/cron/index.cgi"||v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi"||v___location_path==v___location_prefix+"/useradmin/"||v___location_path==v___location_prefix+"/useradmin/index.cgi"||v___location_path==v___location_prefix+"/apache/"||v___location_path==v___location_prefix+"/apache/index.cgi"||v___location_path==v___location_prefix+"/bind8/"||v___location_path==v___location_prefix+"/bind8/index.cgi"||v___location_path==v___location_prefix+"/dhcpd/"||v___location_path==v___location_prefix+"/dhcpd/index.cgi"||v___location_path==v___location_prefix+"/dovecot/"||v___location_path==v___location_prefix+"/dovecot/index.cgi"||v___location_path==v___location_prefix+"/ldap-server/"||v___location_path==v___location_prefix+"/ldap-server/index.cgi"||v___location_path==v___location_prefix+"/virtualmin-nginx/"||v___location_path==v___location_prefix+"/virtualmin-nginx/index.cgi"||v___location_path==v___location_prefix+"/fetchmail/"||v___location_path==v___location_prefix+"/fetchmail/index.cgi"||v___location_path==v___location_prefix+"/mysql/"||v___location_path==v___location_prefix+"/mysql/index.cgi"||v___location_path==v___location_prefix+"/mysql/edit_dbase.cgi"||v___location_path==v___location_prefix+"/postgresql/"||v___location_path==v___location_prefix+"/postgresql/index.cgi"||v___location_path==v___location_prefix+"/postgresql/edit_dbase.cgi"||v___location_path==v___location_prefix+"/postfix/"||v___location_path==v___location_prefix+"/postfix/index.cgi"||v___location_path==v___location_prefix+"/procmail/"||v___location_path==v___location_prefix+"/procmail/index.cgi"||v___location_path==v___location_prefix+"/proftpd/"||v___location_path==v___location_prefix+"/proftpd/index.cgi"||v___location_path==v___location_prefix+"/mailboxes/"||v___location_path==v___location_prefix+"/mailboxes/index.cgi"||v___location_path==v___location_prefix+"/mailboxes/list_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/"||v___location_path==v___location_prefix+"/mailbox/index.cgi"||v___location_path==v___location_prefix+"/samba/"||v___location_path==v___location_prefix+"/samba/index.cgi"||v___location_path==v___location_prefix+"/spam/"||v___location_path==v___location_prefix+"/spam/index.cgi"||v___location_path==v___location_prefix+"/squid/"||v___location_path==v___location_prefix+"/squid/index.cgi"||v___location_path==v___location_prefix+"/sshd/"||v___location_path==v___location_prefix+"/sshd/index.cgi"||v___location_path==v___location_prefix+"/webalizer/"||v___location_path==v___location_prefix+"/webalizer/index.cgi"||v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"||v___location_path==v___location_prefix+"/htaccess-htpasswd/"||v___location_path==v___location_prefix+"/htaccess-htpasswd/index.cgi"||v___location_path==v___location_prefix+"/status/"||v___location_path==v___location_prefix+"/status/index.cgi"||v___location_path==v___location_prefix+"/net/"||v___location_path==v___location_prefix+"/net/index.cgi"||v___location_path==v___location_prefix+"/tcpwrappers/"||v___location_path==v___location_prefix+"/tcpwrappers/index.cgi"||v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"||v___location_path==v___location_prefix+"/fail2ban/"||v___location_path==v___location_prefix+"/fail2ban/index.cgi"||v___location_path==v___location_prefix+"/nis/"||v___location_path==v___location_prefix+"/nis/index.cgi"||v___location_path==v___location_prefix+"/passwd/"||v___location_path==v___location_prefix+"/passwd/index.cgi")&&$($(".container-fluid .panel-body a[href]:not([href*='javascript'],[href*='list_users.cgi?dom'],[href*='edit_hdparm.cgi?disk'],[href*='blink.cgi?disk'],[href*='smart-status/index.cgi?drive'],[href*='help.cgi'],[href*='edit_user.cgi?new='],[href*='edit_user.cgi?idx='],[href*='edit_recipe.cgi'],[href*='up.cgi'],[href*='down.cgi'],[href*='virt_index.cgi'],[href*='save_log.cgi'],[href*='backup.cgi'],[href*='activate.cgi'],[href*='#'])")).each(function(){if(v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi")c["/"+v___location_path_lead_unslashed+$(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").next("td[data-td-e]").find("a").attr("href")]=$.trim($(this).text());else{v___location_path==v___location_prefix+"/backup-config/"||v___location_path==v___location_prefix+"/backup-config/index.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text()):v___location_path==v___location_prefix+"/mount/"||v___location_path==v___location_prefix+"/mount/index.cgi"||v___location_path==v___location_prefix+"/quota/"||v___location_path==v___location_prefix+"/quota/index.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text()):v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").find("tt").find("tt").text()):v___location_path==v___location_prefix+"/proc/"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"?v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" — "+$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").text()):v___location_path==v___location_prefix+"/proc/index_search.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" — "+$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").text()):$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" — "+$.trim($(this).parents("td").next("td").next("td").next("td").text()):v___location_path==v___location_prefix+"/useradmin/"||v___location_path==v___location_prefix+"/useradmin/index.cgi"?$description=$.trim($(this).parents("td").next("td").find("label").text())+" — "+$(this).text()+":"+$.trim($(this).parents("td").next("td").next("td").find("label").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").find("label").text())+", "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").next("td").find("label").text()):v___location_path==v___location_prefix+"/mailboxes/list_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/"||v___location_path==v___location_prefix+"/mailbox/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").text())+" — "+$.trim($(this).parents("td").next("td").find("label").text())+" ["+$.trim($(this).parents("td").next("td").next("td").find("label").text())+"]":v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").find("label").text()):v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" - "+$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text()):$description=$.trim($(this).parent("td").next("td[data-td-e]").text()),$description?$_description=!0:$_description=!1;var e=$.trim($(this).text());if(core.curModule("bind8")){var t=$(this).parents("form").prev("br").prev("b").find("tt");if(t.length){var a=t.text();!$(this).parent(".ui_links_row").length&&a&&(e=e+" ("+a+")")}}c[("/"==$(this).attr("href").substring(0,1)?"":"/")+v___location_directory_unslashed_trail_slashed+$(this).attr("href")]=e+($_description?" (":"")+$description+($_description?")":"")}});var p=$.map(c,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:get_module_title()}}}),g={};$.each($(o+' > ul.sub:not([id^="global_"]) > '+o+' > a, ul.navigation > [data-linked]:not([data-after]) > a:not([href*="virtual-server/index.cgi"]):not([href*="server-manager/index.cgi"])'),function(e,t){g[("/"==$(this).attr("href").substring(0,1)?"":"/")+$(this).attr("href")]=$.trim($(this).text())}),$(o+' > a[target="page"]:not([data-href="/acl/edit_user.cgi"],[data-href="/virtual-server/index.cgi"],[data-href="/sysinfo.cgi"],[data-href="/virtual-server/pro/history.cgi"], [data-href="/mailbox/list_folders.cgi"], [data-href="/mailbox/list_ifolders.cgi"], [data-href="/mailbox/list_addresses.cgi"], [data-href="/filter/edit_forward.cgi"], [data-href="/filter/edit_auto.cgi"], [data-href="/filter/edit_auto.cgi"], [data-href="/filter/"], [data-href="/mailbox/edit_sig.cgi"])').each(function(e,t){$t_uri_usermin||_()||(g[$(this).attr("data-href")]=$.trim($(this).text()))});var f=$.map(g,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:$("aside .select2-selection__rendered").text()?''+$("aside .select2-selection__rendered").clone().children().remove().end().text()+"":m()}}}),u={};$("aside select option").each(function(){u[$(this).val()+":::"+$(this).parent("select").attr("name")]=$.trim($(this).text())});var h=$.map(u,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:$("aside select").data("autocomplete-title")}}}).concat(p).concat(f).concat(l);$(".form-control.sidebar-search").on("keydown",function(e){34!=e.keyCode&&33!=e.keyCode&&20!=e.keyCode&&17!=e.keyCode&&16!=e.keyCode&&9!=e.keyCode||(e.preventDefault(),e.stopPropagation())}),$(".form-control.sidebar-search").autocomplete({lookup:h,onSelect:function(e,t){var n=$.Autocomplete.externalEvent;if(!$.isEmptyObject(n)){var o=n.keyCode?n.keyCode:n.which;if(n.ctrlKey||n.shiftKey||n.altKey||n.metaKey||20===o||32===o||33===o||34===o||35===o||36===o||37===o||38===o||39===o||40===o||45===o||46===o||112===o||113===o||114===o||115===o||116===o||117===o||118===o||119===o||120===o||121===o||122===o||123===o||144===o||145===o)return}!0===_()&&$t_uri_dashboard&&2!=get_access_level()&&4!=get_access_level()&&d("webmin"),$(this).val("").blur(),s();var l=i(e.url);if("/"==e.url.substring(0,1)||l){if(e.url&&(l||e.url.includes("virtual-server/pro/history.cgi")||e.url.includes("server-manager/history.cgi")||e.url.includes("server-manager/one_history.cgi")))return void theme_open_new_tab(e.url,1);var c=e.url;if(v___location_prefix&&!c.startsWith(v___location_prefix)&&(c=v___location_prefix+c),Test.strContains(v___location_prefix,v___target_servers_index)&&c&&c.endsWith("/servers/"))return;if(c&&(c.includes("switch_user.cgi")||c.includes("/shell")||c.includes("shell=1")))return set_onbeforeunload_status(0,0),void $('aside [data-linked] a[href="'+e.url+'"]').click();get_onbeforeunload_status()?(t&&t.preventDefault(),get_onbeforeunload_message([],{href:c})):get_pjax_content(c,["reference"])}else if(e.url&&e.url.indexOf(":::")>-1){var p=e.url.split(":::")[0];get_onbeforeunload_status()?get_onbeforeunload_message(f,this,{"plugins.navigation.select.set":[p,1]}):(a(),r(p,1))}},groupBy:"category"})}},_=function(){return"1"==c("dashboard")},c=function(e){return e=e?'[id="open_'+e+'"]':String(),$(".switch-toggle input"+e).length},d=function(e){get_onbeforeunload_status()||($('.switch-toggle input:not([id="open_'+e+'"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){$("#open_"+e).length?$("#open_"+e).prop("checked",!0):$('.dynamic[name="product-switcher"]').first().prop("checked",!0)}),v())},p=function(n){get_onbeforeunload_status()||(a(),d("webmail"==n?"webmail":get_server_data("product")),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type="+("webmail"==n?"webmail":"webmin"),data:!1,dataType:"text",success:function(a){if(Test.strContains(a,v___page_signin_form))return v___available_session=0,i(),void e();v___theme_navigation_active="webmail"==n?"webmail":get_server_data("product"),$("body ul.navigation").html(a),u(),i(),!get_server_data("loading")&&t(),"webmail"===n&&settings_mail_ui&&("object"==typeof mail?mail.folders.get():load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.folders.get()"]))}}))},g=function(n){get_onbeforeunload_status()||(a(),d("virtualmin"),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=virtualmin"+(n?"&dom="+n:settings_right_virtualmin_default?"&dom="+settings_right_virtualmin_default:""),data:!1,dataType:"text",success:function(a){if(Test.strContains(a,v___page_signin_form))return v___available_session=0,i(),void e();v___theme_navigation_active="virtualmin",$("body ul.navigation").html(a),u(),i(),!get_server_data("loading")&&t()}}))},f=function(n){get_onbeforeunload_status()||(a(),d("cloudmin"),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=cloudmin"+(n||0===n?"&sid="+n:settings_right_cloudmin_default?"&sid="+settings_right_cloudmin_default:""),data:!1,dataType:"text",success:function(a){if(Test.strContains(a,v___page_signin_form))return v___available_session=0,i(),void e();v___theme_navigation_active="cloudmin",$("body ul.navigation").html(a),u(),i(),!get_server_data("loading")&&t()}}))},u=function(){var e=$("body ul.navigation").find("[data-x-buttons]"),t=e.find("ul[data-x-container]").html();$("body ul.user-links").html(t),e.remove(),plugins.shell.link()},m=function(){return $t_uri_webmin?theme_language("titles_wm"):$t_uri_usermin?theme_language("titles_um"):$t_uri_virtualmin?theme_language("titles_vm"):$t_uri_cloudmin?theme_language("titles_cm"):$t_uri_webmail?theme_language("titles_mail"):$t_uri_dashboard?theme_language("titles_dashboard"):void 0},h=function(e,t){return $t_uri_webmin?"webmin":$t_uri_usermin?"usermin":$t_uri_dashboard?"dashboard":$t_uri_virtualmin?t?"virtualmin":e?"virtualserver":"virtual-server":$t_uri_cloudmin?t?"cloudmin":e?"servermanager":"server-manager":$t_uri_webmail?"mailbox":void 0},v=function(){$t_uri_webmin=$('.switch-toggle input[id="open_webmin"]:checked').length?1:0,$t_uri_usermin=$('.switch-toggle input[id="open_usermin"]:checked').length?1:0,$t_uri_virtualmin=$('.switch-toggle input[id="open_virtualmin"]:checked').length?1:0,$t_uri_cloudmin=$('.switch-toggle input[id="open_cloudmin"]:checked').length?1:0,$t_uri_webmail=$('.switch-toggle input[id="open_webmail"]:checked').length?1:0,$t_uri_dashboard=$('.switch-toggle input[id="open_dashboard"]:checked').length?1:0};return{reset:e,select:{set:r,back:function(){if(vars.navigation.select.back){var e=$("aside select");r(e.data("previous-value"),0),vars.navigation.select.back=!1}},load:o},detect:t,load:{start:a,stop:i},collapse:s,reload:function(e){if(!get_onbeforeunload_status()){e=void 0===e||-1==e||""==e?$("aside select").val():e;var t=$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":$t_uri_usermin?"usermin":$t_uri_webmin?"webmin":"mail";"webmin"==t?(d("webmin"),p("webmin")):"virtualmin"==t?(d("virtualmin"),g(e)):"cloudmin"==t?(d("cloudmin"),f(e)):"usermin"==t?(d("usermin"),p("usermin")):"mail"==t&&(d("webmail"),p("webmail"))}},update:function(e,t){t||(t=600);var i=$(".switch-toggle"+(e?" #open_"+e:' [id^="open_"]')+":checked");if(i.length){a();var n=0;n||(n++,setTimeout(function(){i.click()},t))}},deform:function(e){var t=$("aside select"),a=t.data("select2");e||(vars.navigation_select=a&&"undefined"!=a&&!e&&t.select2("isOpen")),e?$.each($("aside").find("forms"),function(){$(this).replaceTagName("form")}).promise().done(function(){o(vars.navigation_select)}):(a&&t.select2("destroy"),$.each($("aside").find("form"),function(){$(this).replaceTagName("forms")}))},lock:function(){if("undefined"==typeof settings_leftmenu_width_initial&&(settings_leftmenu_width_initial=settings_leftmenu_width),matchMedia("(max-width: 1080px)").matches||"1"==$("html").attr("data-navigation-collapsed"))settings_leftmenu_width=260,page_adjust(settings_leftmenu_width,0);else{if(1===v___initial_load)return;settings_leftmenu_width=settings_leftmenu_width_initial,page_adjust(settings_leftmenu_width,settings_leftmenu_width)}},switch:{dashboard:{get:_,set:function(){d("dashboard"),e(),get_pjax_content(v___location_prefix+"/sysinfo.cgi")}},available:c,set:d,reset:function(){Test.string(v___theme_navigation_active)&&d(v___theme_navigation_active)}},get:{webmin:p,virtualmin:g,cloudmin:f,buttons:u},intersect:{virtualmin:function(e){e="object"==typeof e?e.attr("href"):e;var t=URI.parseQuery(URI(e).query()).dom||URI.parseQuery(URI(e).query()).gparent,a=$('select[name="dom"]').val();t&&t!=a&&g(t)},cloudmin:function(e){e="object"==typeof e?e.attr("href"):e;var t=(t=URI.parseQuery(URI(e).query()).id)||URI.parseQuery(URI(e).query()).d,a=$('select[name="sid"]').val();t&&t!=a&&f(t)}},state:{title:m,module:h,update:v,loading:function(){return $("#_menu_loader").length}}}}(),plugins.messenger=(document.addEventListener("DOMContentLoaded",function(){(function(){if("function"==typeof Messenger.Message){var e,t,a,i={}.hasOwnProperty;e=jQuery,a='
    \n \n \n \n \n \n \n
    ',t=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return function(e,t){for(var a in t)i.call(t,a)&&(e[a]=t[a]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(n,Messenger.Message),n.prototype.template=function(t){var i;return(i=n.__super__.template.apply(this,arguments)).append(e(a)),i},n}(),Messenger.themes.air={Message:t},Messenger.options={extraClasses:"messenger-fixed messenger-on-bottom",theme:"air"}}}).call(this)}),{post:function(e,t,a,i,n,s,o){var r=void 0===i?1:i,l=void 0===n||n;if(s=void 0===s?"":s,o=void 0===o?{}:o,"hide-all"!==e){if($.isArray(e)&&(e=' '+e[1]),$.isArray(s)){var _=s;s="messenger-fixed ",s+="messenger-on-"+_.join(" messenger-on-")}else s=s.length?"messenger-fixed messenger-on-"+s:"messenger-fixed messenger-on-bottom";return"function"==typeof Messenger?(Messenger.options={extraClasses:s,theme:"air"},window["Messenger_"+r]=Messenger().post({message:e,extraClasses:s,hideAfter:t,showCloseButton:l,type:a,id:r,actions:o})):void 0}Messenger().hideAll()}}),plugins.upload=function(e){e.removeAttr("onsubmit"),e.on("submit.fm",function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();var t=moment().unix()+""+parseInt(1e5*Math.random()),a=$(this),i=a.find(".ui_form_end_submit"),n=a.find('input[type="file"]')[0],s=n.files.length,o=a.find('input[name="dir"]').val(),r=$(n.files).map(function(e,t){return t.name}).get().join("\n"),l=function(){theme_restore_buttons_class(),$.fn.bootstrapFileInputReset(a),despinnerfy_buttons(0,i),i.addClass("disabled")},_=function(){s>1?plugins.messenger.post(''+theme_language("upload_successful").replace("$1",""+s+"").replace("$2","`"+o+"`").replace("'+theme_language("upload_successful_single").replace("$1",""+s+"").replace("$2","`"+o+"`").replace("'+theme_language("global_error")+": "+a.replace(/\s:\s/g," — "),15,"error","uploadError_"+t,0,["top","right"]),1):0}(e)||200===e.status&&_()},error:function(){$("[data-progress-id="+t+"] .bottom_progress_cancel").trigger("click")}}),theme_message_dismiss("upload_error");var c=1;window["progress_id_ref_"+t+"_tracker"]=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var a=e.target.responseText,i=regex.matches(a,/.file\.value\s+=\s+"(.*)";/g,0,1),n=regex.matches(a,/.size\.value\s+=\s+"(.*)";/g,0,1),s=regex.matches(a,/.pc\.value\s+=\s+"(.*)";/g,0,1);i&&n&&s&&(c&&(c=0,l()),(s=parseInt((s.match(/|/g)||[]).length/50*100))>100&&(s=100),progress_percent.control(t,"success",s,[i,n,s]));if(Test.strContains(a,v___page_signin_form))return v___available_session=0,window["progress_id_ref_"+t].abort(),void window["progress_id_ref_"+t+"_tracker"].abort()},!1),e},type:a.attr("method"),url:v___location_prefix+"/uptracker.cgi?id="+t+"&uid="+(0===get_access_level()||1===get_access_level()?"":get_server_data("user-id")),complete:function(e){c&&(c=0,l()),theme_message_exists("uploadError_"+t)||200===e.status&&_()}})})};const snippets={datetime:{},page:{},patches:{},initial:function(){plugins.dashboard.reset(),snippets.get_goto(),plugins.navigation.update("webmail")},form_pre_submitter:function(){$("body").on("click",'button.ui_form_end_submit[type="button"]:not(.disabled)',function(){var e=$(this).next('input[type="submit"].hidden'),t=$(this).parent(".btn-group").next('input[type="submit"].hidden');e.length||(e=t);var i=e.parent(),a=(i.parent("tr").find("form"),e.parents("form"));if(!a.length)return(a=e.closest("form")).length||(a=i.prev("form")),a.length||(a=i.prev().prev("form")),a.length||(a=i.prev().prev().prev("form")),a.append(a.nextUntil(i)),void $.each(i.find("select, input"),function(){$('').attr({type:"hidden",name:$(this).attr("name")?$(this).attr("name"):$(this).attr("id"),value:$(this).val()}).appendTo(a)}).promise().done(function(){a.submit()});var n=e.attr("name")?e.attr("name"):e.attr("id"),s=$.trim(e.val());$('').attr({type:"hidden",name:n,value:s}).appendTo(a),e.trigger("click")}),$("body").on("click",'.ui_form_end_submit:not(.disabled), .page_footer_submit:not(.disabled):not([href*="javascript:history"])',function(){core.curModule("csf")?spinnerfy_buttons($(this),[2,-29,"small",!1]):spinnerfy_buttons($(this),!1,!1,!1)})},form_input_tester:function(e){if(e)return $(".btn-group.end_submits:visible button.ui_form_end_submit").hasClass("btn-warning dt-tester-btn");$(document).on("input.tester",'form:not([data-tester="1"]):not(#webmin_search_form)',function(e){if(void 0!==e.originalEvent&&!vars.pjax.post_page_fetch&&v___location_file&&"index.cgi"!==v___location_file){var t=$(this);if(1!=t.attr("data-tester")){var i=t.find(".CodeMirror").length,a=$(this).attr("action");if(i&&!core.curModule("init")||(core.curModuleFile("mysql","")||core.curModuleFile("postgresql","")||core.curModuleFile("mysql","index.cgi")||core.curModuleFile("postgresql","index.cgi"))&&$(".ui_grid_table.table-hardcoded").length||core.curModuleFile("bind8","")||core.curModuleFile("bind8","index.cgi")||core.curModuleFile("mailbox","reply_mail.cgi")||core.curModuleFile("virtual-server","wizard.cgi")||core.curModuleFile("virtual-server","list_scripts.cgi")||core.curModuleFile("virtual-server","list_scripts.cgi")||core.curModuleFile("mysql","list_vars.cgi")||core.curModuleFile("ruby-gems","index.cgi")||a&&a.includes("edit_tmpl.cgi")||$(".modal.in.mppopup").length)t.attr("data-tester",1);else{var n=$(e.target).is('input[type="checkbox"], input[type="radio"]'),s=$(e.target).parents("tr");if(!(n&&s&&s.length&&s.attr("class")&&s.attr("class").includes("ui_checked"))){theme_restore_buttons_class();var o=t.find(".btn-group.end_submits:visible button.ui_form_end_submit"),r=o.first(),l=String("btn-xclass"),_=1===o.data("click-event");if(r[0]&&r[0].classList){var c=r[0].classList.value.match(/.*(btn-\S+)/);c&&(l=c[1],r.attr("data-class-restore",l))}o&&o.length&&(set_onbeforeunload_status(1),_||(o.data("click-event",1),r.removeClass(l).addClass("btn-warning dt-tester-btn"),t.attr("data-tester",1),o.one("click",function(){o.data("click-event",0),t.attr("data-tester",0),set_onbeforeunload_status(0)}),t.on("keydown",function(e){var t=e.keyCode?e.keyCode:e.which;(13===t&&!$(e.target).is("textarea")||13===t&&e.ctrlKey&&$(e.target).is("textarea"))&&(r.hasClass("btn-warning dt-tester-btn")?(e.preventDefault(),r.trigger("click")):set_onbeforeunload_status(0))})))}}}}})},inject_extra_option:function(e,t,i,a){if("tr/yes:no"===e){var n=$("body"),s=t.parents("form");t.parents("td.col_value").parent("tr").after(' '+a+' ");var o="submit."+i;n.off(o),n.one(o,s,function(){var e=Test.true($("[name="+i+"]:checked").val());window[i]=e,theme_config_store()})}}};snippets.datetime.tictac=function(e,t){var i=t?"convertible-date-full":"convertible-timestamp-full",a=$("[data-"+i+"]");if(a.parent().contents().filter(function(){return 3===this.nodeType}).remove(),"undefined"!=typeof moment){if(t){var n=a.data(i);if(n){var s=new Date(n);a.data(i,s),s.setSeconds(s.getSeconds()+1),a.text(moment(s.toISOString()).format(config_portable_theme_locale_format_full))}}else a.data(i,parseInt(a.data(i))+1),a.text(moment.unix(a.data(i)).format(config_portable_theme_locale_format_full));!e&&setInterval(snippets.datetime.tictac.bind(null,1,t),1e3)}},snippets.datetime.locale=function(e){if(e){var t=theme_language("title_language_locale"),i=core.curModule("language"),a=core.curModule("change-user"),n=core.curModuleFile("webmin","edit_lang.cgi"),s=$('.container-fluid form select[name="lang"]'),o=i?s.next(".ui_form_end_buttons").find("tbody"):s.parents("tr").first().parent("tbody"),r=o.parents("form").first(),l=i?o:o.find('select[name="lang"]').parents("tr").first();if("insert"===e.type){if(core.curModule("webmin")){var _=$('.icons-container a[href*="edit_lang.cgi"]'),c=$('.small-icons-container a[href*="edit_lang.cgi"]'),d=$('a[href*="edit_lang.cgi"] p > .fa-angle-right');if(_.length){var p=_.find("img").detach();_.text(t).prepend(p,"
    ")}else c.length?(c.find(".hidden").text(t),c.parent().attr("title",t)):d.length&&d.parent().html('  '+t)}if((n||a||i)&&!e.history){a&&$('[name="overlay"]').parent("td").parent("tr").addClass("hidden"),a||$("span[data-main_title]").text(t);var h=' '+(a?theme_language("title_webmin_ui_locale"):theme_language("title_locale_config"))+(i?":   ":"")+' '+(a?theme_language("title_locale_config_format_ui"):theme_language("title_locale_config_format"))+' '+(i?"    ":"")+" "+theme_language("title_locale_lang_based")+'    '+theme_language("title_locale_full")+'  `LLLL`

    "+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_full)+'

    ">
     
    '+theme_language("title_locale_long")+'  `LL`

    "+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_long)+'

    ">
     
    '+theme_language("title_locale_short")+'  `L`

    "+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_short)+'

    ">
     
    '+theme_language("title_locale_time_format")+'  `LTS`

    "+theme_language("global_output_example")+": "+moment().format(config_portable_theme_locale_format_time)+'

    ">
    '+(core.moduleAvailable("webmin")?'
    '+theme_language("title_locale_non_ui_config")+' 
    ':"")+" ";i?l.prepend(h):(l.after(h),core.setModuleData("/webmin/edit_ui.cgi",["dateformat"]))}return}if("init"===e.type)return void((n||a||i)&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_theme_locale_languages=1",data:!1,dataType:"text",async:$.support.spa,success:function(e){$('select[data-select="locales"]').replaceWith(e),$('#config_portable_theme_locale_languages option[value="ru-su"]').remove();var t='input[id*="config_portable_theme_locale_language"], select[name="config_portable_theme_locale_languages"], input[name="config_portable_theme_locale_format_full"], input[name="config_portable_theme_locale_format_long"], input[name="config_portable_theme_locale_format_short"], input[name="config_portable_theme_locale_format_time"]',i=$(t);$(i).on("change keyup focus",function(e){var t=$(this).attr("name"),i=$(this).parent(),a=i.data("title"),n=$('select[name="config_portable_theme_locale_languages"]').val();fleeting_format=$(this).val(),fleeting_format||(t.includes("short")?fleeting_format="L":t.includes("long")?fleeting_format="LL":t.includes("full")?fleeting_format="LLLL":t.includes("time")&&(fleeting_format="LTS")),t.indexOf("theme_locale_format_")>-1&&setTimeout(function(){i.attr("title",a.replace(/g'>(.*)<\/i>/g,"g'>"+(n?moment().locale(n).format(fleeting_format):moment().format(fleeting_format))+"")).tooltip("fixTitle").tooltip("show")},"focus"===e.type?500:0);var s=$("._locale_config");"config_portable_theme_locale_language"===t&&"1"!=fleeting_format?"focus"!=e.type&&s.addClass("hidden"):"focus"!=e.type&&s.removeClass("hidden")}),$(r).on("submit",function(){var e=$('[name="dateformat"]');e.length&&core.updateModuleData("/webmin/edit_ui.cgi","/webmin/change_ui.cgi",{dateformat:$.trim(e.val())}),$.each($(t.replace('locale_language"]','locale_language"]:checked')),function(){var e=$(this).attr("name"),t=$(this).val();"config_portable_theme_locale_languages"===e&&""===t&&(t=get_server_data("language-full")),localStorage.setItem(v___server_hostname+"-"+e,t),window[e]=t}).promise().done(function(){var e=r.find('select[name="lang"]').val();if(e.indexOf(".")>-1&&(e=e.split(".")[0]),a&&"1"==r.find('[name="lang_def"]:checked').val()){var t=$('[name="lang_def"][value="1"]').next("label").text().match(/\(([^)]+)\)/);(t=t&&t[0]&&t[1]?t[1]:get_server_data("language-full")).indexOf(".")>-1&&(t=t.split(".")[0]),e=t}moment.locale(config_portable_theme_locale_language&&"0"!=config_portable_theme_locale_language?config_portable_theme_locale_languages:e),theme_config("save"),setTimeout(function(){plugins.navigation.reload()},2e3)})})}}))}var u="x-md-",f=function(e,t){var i=e.tagName.endsWith("-d".toUpperCase())?1:0,a=e.tagName.includes(u+"t")?0:1,n=e.outerHTML.indexOf(";1")>-1?1:0,s=e.outerHTML.indexOf(";2")>-1?1:0,o=e.outerHTML.indexOf(";-1")>-1?1:0,r=core.curModule("proc")?1:0,l=$(e).text(),_=i?l.split(";")[0]:l,c=config_portable_theme_locale_format_short||"L",d=config_portable_theme_locale_format_long||"LL",p=config_portable_theme_locale_format_time||"LTS",h=moment.unix(_).format("l");h=h.indexOf("/")>-1?"/":h.indexOf("-")>-1?"-":".";var f,g=moment.unix(_).format(p),m=s?moment.unix(_).format("YYYY["+h+"]MM["+h+"]DD")+" "+(a?String():g):moment.unix(_).format(n?d:c);if(r&&(o=1,e&&"string"==typeof e.outerHTML&&e.outerHTML.includes(u+"t")&&$(e).remove()),o){isNaN(_)||(_*=1e3);var v=moment(_).fromNow();g=v,m=v}(f=$(e).is("td")?$(e):$(e).parent("td")).is("td")&&f.attr("data-order",_);if(t)return i?m:g;$(e).replaceWith(i?"-1?' data-placement="auto top" data-container="body" data-toggle="tooltip" data-title="'+(o?moment(_).calendar(null,{sameElse:"LLL"}):moment.unix(_).fromNow())+'"':"")+">"+m+"
    ":g)};$.each($(u+"d").add(u+"t").add($("td:contains("+u+"d)").last()).add($("td:contains("+u+"t)").last()).add("option:contains("+u+"d)").add("option:contains("+u+"t)"),function(e,t){if(!t.tagName.startsWith(u.toUpperCase())){var i=$(t).text(),a=Convert.htmlUnEscape(i),n="";$.each($(a),function(e,t){$(t)[0].tagName&&$(t)[0].tagName.startsWith("x-md".toUpperCase())&&(n+=f($(t)[0],1)+" ")}).promise().done(function(){$(t).text(n)})}else f(t,0)})},snippets.ajax=function(){$(document).ajaxStop(function(){setTimeout(function(){0===v___available_session&&session.reauthenticate.start()},300)}).ajaxSuccess(function(){v___theme_ajax_error=0,"object"==typeof stats&&stats.general.error&&0===get_access_level()&&settings_sysinfo_real_time_status&&(stats.general.disable(),stats.general.enable(),stats.general.error=0)}).ajaxError(function(e,t){"canceled"!==t.statusText&&connection_error(t,0)}),$.ajaxSetup({complete:function(e,t){(Test.strContains(e.responseText,v___page_signin_form)||e&&("auth-required=1"===e.getResponseHeader("Auth-type")||e.responseText&&e.responseText.indexOf("reset-fonts-grids-base")>-1&&e.responseText.indexOf("window.top.location = window.location;")>-1))&&session.reauthenticate.start()},beforeSend:function(e,t){t.url=link_type_convert(t.url,1),e.setRequestHeader("X-Requested-From",v___module||v___module_previous),e.setRequestHeader("X-Requested-From-Tab",plugins.navigation.state.module())}})},snippets.pjax=function(){$(document).on("submit","form",function(e){if(void 0!==e.originalEvent&&(v___theme_content_history=0),"true"!=$(this).attr("data-download"))if("_blank"!==e.target.target)e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(e,this):get_pjax_action_submit(e);else{var t=$(this);setTimeout(function(){t.removeAttr("target"),get_pjax_content(v___location_resource)},100)}}),$(document).on("click","a"+$__theme_default_deselectors,function(e){if(void 0!==e.originalEvent&&(v___theme_content_history=0),get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors)&&(!this.href||this.href&&this.href.length>0&&!this.href.includes("!edit"))){if(e.preventDefault(),null===this.getAttribute("href"))return;get_onbeforeunload_message(e,this)}else get_pjax_action_click(e,this)}),$(document).on("pjax:error",function(e,t,i,a,n){if("error"===i){var s=$.active;if(s&&($.active=s-1),Test.strContains(n.url,"/csf/index.cgi"))return void theme_reload()}}),$(document).on("pjax:start",function(e,t,i){t&&(get_server_data("loading",1),$("body").addClass("loading-bg")),vars.page_user_inactive=1,vars.requested_page=i.url,"number"==typeof set_server_theme_temp_data_timeout&&clearTimeout(set_server_theme_temp_data_timeout)}),$(document).on("pjax:beforeReplace",function(e,t,i){settings_mail_ui&&-1===uri_parse("directory",i.url).indexOf("/mailboxes")&&uri_parse("directory",i.url).indexOf("/mailbox")>-1&&(!uri_parse("file",i.url)||uri_parse("file",i.url).indexOf("index.cgi")>-1)&&(vars.pjax_replace_contents=0),plugins.navigation.deform(0),pjax.clear.modules(i),!1===i.push&&(Test.strContains(i.url,"/config.cgi?")||Test.strContains(i.url,"/uconfig.cgi?"))&&t.find(".btn-accordion-filter, .btn-toggle-accordions").remove()}),$(document).on("ready pjax:beforeSend",function(e,t,i){if(1===vars.pjax_cancel)return vars.pjax_cancel=0,!1;if(theme_download_link(i))return!1;if($t_uri_webmail&&settings_mail_ui&&core.moduleAvailable("mailbox")&&("object"==typeof mail?0===$("aside .fancytree-container").length&&mail_load_folders():load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.folders.get()"])),settings_mail_ui&&core.curModule("mailbox")&&(core.curModuleFile("mailbox","")||core.curModuleFile("mailbox","index.cgi"))&&-1===uri_parse("directory",i.url).indexOf("/mailboxes")&&uri_parse("directory",i.url).indexOf("/mailbox")>-1&&(!uri_parse("file",i.url)||uri_parse("file",i.url).indexOf("index.cgi")>-1))return mail_load(i.url),!1;progress.start(),"number"==typeof v___theme_postponed_fetcher&&clearInterval(v___theme_postponed_fetcher);var a=$(e.relatedTarget),n=a.attr("href");n=n||i.url.replace(v___location_origin,""),clicked_in_nav_menu=a.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle")||"object"==typeof i.callback&&"reference"===i.callback[0],clicked_in_nav_menu&&check_bundle(n),"object"==typeof i.callback&&"beforeSend"===i.callback[0]&&(i.callback[3]?setTimeout(function(){window[i.callback[1].apply(this,i.callback[2])]},i.callback[3]):window[i.callback[1].apply(this,i.callback[2])]),v___theme_pjax_call+=1}),$(document).on("pjax:success",function(event,data,status,xhr,options){theme_message_dismiss("ajaxError"),"object"==typeof options.callback&&"success"===options.callback[0]&&(options.callback[3]?setTimeout(function(){"string"==typeof options.callback[1]?eval(options.callback[1]):window[options.callback[1].apply(this,options.callback[2])]},options.callback[3]):"string"==typeof options.callback[1]?eval(options.callback[1]):window[options.callback[1].apply(this,options.callback[2])])}),$(document).on("pjax:complete",function(e,t,i){vars.allow_ui_features=1,v___theme_reload&&theme_reload(),setTimeout(function(){$(".container-fluid-loading").length||progress.end()},10),get_server_data("loading",0,1),$("body").removeClass("loading-bg"),v___theme_connection_triggered_origin=0,"object"==typeof stats&&stats.general.error&&(stats.general.disable(),stats.general.enable())}),$(document).on("ready pjax:end",function(e,t){pjax_cache(),vars.pjax.event.end&&0!==v___available_session&&1!==v___theme_reload&&(void 0!=t&&t.responseText&&t.responseText.includes("data-predownload")||(plugins.navigation.deform(1),get_pjax_event_end(e,t),setTimeout(function(){var e=link_type_convert(location.hash,1).replace("#","");if(e&&e.length>0){var t=$('[name="'+e+'"]');t.length&&t[0].scrollIntoView({duration:200,smooth:!0,direction:"vertical",complete:function(){}})}},200),v___page_container.find(".panel > .panel-body:first").one("click mousedown keypress",function(){vars.page_user_inactive=0}),vars.pjax.post_page_fetch=!0,setTimeout(function(){vars.pjax.post_page_fetch=!1},100)))}),$(document).on("pjax:popstate",function(e){e.state;var t=vars.pjax.page_cache&&"csf"!==v___module&&"postfix"!==v___module&&v___module!==v___module_file_manager&&!core.curModuleFile("webmin","edit_themes.cgi")&&"settings-user.cgi"!==v___location_file;e.hasContents&&get_pjax_event_end_funcs(0,!t),vars.previous_request=String(),vars.source_request=String()})},snippets.get_goto=function(){v___theme_navigation_active=$(".switch-toggle input:checked").attr("id"),v___theme_navigation_active=v___theme_navigation_active?v___theme_navigation_active.replace("open_",""):get_server_data("product"),setTimeout(function(){var e=function(){$t_uri_virtualmin&&"undefined"==typeof t_uri_get_content&&get_default_virtualmin_content(!1),$t_uri_cloudmin&&"undefined"==typeof t_uri_get_content&&get_default_cloudmin_content(!1),$t_uri_virtualmin||$t_uri_cloudmin||"undefined"!=typeof t_uri_get_content||get_default_content(),t_uri_get_content=1};$.when(get_server_theme_temp_data("goto",0,e)).then(function(t,i,a){if(!a.responseText||get_server_data("initial-wizard")||unbuffered_header_processor_allow(a.responseText))e();else{if(Test.strContains(a.responseText,v___module_file_manager+"/config.cgi"))return void get_pjax_content(v___location_prefix+"/"+v___module_file_manager);if(Test.strContains(a.responseText,"//")&&URI(a.responseText).hostname()!==URI(location.href).hostname()||Test.strContains(a.responseText,"/servers/link.cgi/")||Test.strContains(a.responseText,"settings-user.cgi")||Test.strContains(a.responseText,"xerror")||"/"===a.responseText||"%2F"===a.responseText||a.responseText==="/?"+$__theme_navigation)return void get_pjax_content(v___location_prefix+"/sysinfo.cgi");if(Test.strContains(a.responseText,"virtual-server")){var n=URI.parseQuery(URI(a.responseText).query()).dom,s=$('select[name="dom"]').val(),o=n||s;plugins.navigation.switch.set("virtualmin"),(!s||n!=s)&&plugins.navigation.get.virtualmin(o||!1)}else if(Test.strContains(a.responseText,"server-manager")){var r=URI.parseQuery(URI(a.responseText).query()).id,l=r||$('select[name="sid"]').val();plugins.navigation.switch.set("cloudmin"),plugins.navigation.get.cloudmin(l||!1)}else $t_uri_webmin||2==v___user_level||3==v___user_level||(plugins.navigation.switch.set("webmin"),plugins.navigation.get.webmin("webmin")),3==v___user_level&&!$t_uri_webmail&&Test.strContains(a.responseText,"mailbox")&&core.moduleAvailable("mailbox")?(plugins.navigation.switch.set("webmail"),setTimeout(function(){plugins.navigation.get.webmin("webmail")},10)):3!=v___user_level||$t_uri_usermin||Test.strContains(a.responseText,"mailbox")||(plugins.navigation.switch.set("usermin"),setTimeout(function(){plugins.navigation.get.webmin("webmin")},10));check_bundle(a.responseText),get_pjax_content(a.responseText,["success","v___theme_content_history = 1"])}})},20),$.each(theme_config("get_options"),function(e,t){localStorage.setItem(v___server_hostname+"-"+t,window[t])}),setTimeout(function(){plugins.slider.update.favorites()},300)},snippets.tooltips=function(e){if(e){$(".__page").tooltip("destroy").tooltip({selector:'[data-toggle="tooltip"]:not([data-skip]), [data-toggle="virtualmin-license"], .panel-body td a:not([data-skip]), .icons-container',sanitize:!1,placement:"auto "+($(".gl-icon-container").length||$("[data-fbplacement]").length?"bottom":"top"),trigger:"hover",html:!0,delay:{show:600,hide:30}})}else $("aside").tooltip({selector:'li[data-toggle="tooltip"], li > a[data-toggle="tooltip"].menu-exclude-link, label[data-toggle="tooltip"]',sanitize:!1,container:"body",html:!0,delay:{show:600,hide:30}})},snippets.progressive_button=function(e,t){var i=e.querySelector(".progressing");i&&(i.style.width=t+"%")},snippets.help_popup=function(){var e=$("body");e.on("click",".help_popup",function(t){t.stopPropagation(),t.preventDefault();var i=$(this),a=$(this).attr("href"),n=$(this).parent();n.append(''),$.ajax({type:"POST",url:i.attr("href").indexOf("showpass.cgi")>-1?v___location_directory_trail_slashed+i.attr("href"):i.attr("href"),data:!1,dataType:"text",success:function(t){if(Test.strContains(t,v___page_signin_form))v___available_session=0;else{n.find("._tmp_help_content").html(t.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"")),$help_title=n.find("._tmp_help_content .ui_subheading").first().text(),$help_body=n.find("._tmp_help_content title").remove(),$help_body=n.find("._tmp_help_content h3.ui_subheading").remove(),$help_body=n.find("._tmp_help_content h3").addClass("h3_help"),$help_body=n.find("._tmp_help_content hr").remove();var s=n.find("._tmp_help_content a");void 0!==s.attr("href")&&$.each(s,function(){var t=$(this).attr("href");t.startsWith("http")?$help_body=n.find("._tmp_help_content a").attr("target","_blank").css("text-decoration","none").css("font-style","italic"):e.undelegate('a[href="'+t+'"]',"click").one("click",'a[href="'+t+'"]',function(e){if($(e.target).is($('a[href="'+t+'"]'))){e.preventDefault();var n=Convert.pathnamePopLast(i.attr("href"))+"/"+t;$('a[href="'+a+'"].help_popup').attr("data-initial",a).attr("data-substituted",n),$('a[href="'+a+'"].help_popup').attr("href",n),i.trigger("click")}})}),$help_body=n.find("._tmp_help_content").html(),n.find("._tmp_help_content").remove();var o='',r=i.attr("href").indexOf("showpass.cgi")>-1,l=i.attr("href").indexOf("/locale")>-1;r&&(o=""),i.popover({html:!0,sanitize:!1,container:".container-fluid",template:'',title:function(){return o+$help_title},content:function(){return $help_body},placement:matchMedia("(max-width: 767px)").matches?"bottom":"right"}),i.popover("show"),i.on("shown.bs.popover",function(){$help_body.indexOf("")>-1&&$(".popover").animate({"max-width":"540px"},300),e.find(".popover:visible").addClass("module-help"),$('body[class*="'+v___module_file_manager+'"]').find(".popover:visible").addClass("file-manager-help"),setTimeout(function(){var e=$(".module-help"),t=e.length;$.each(e,function(e){t===e+1&&popover_visibility_position($(this))})},10)}),i.on("hidden.bs.popover",function(){e.undelegate(":not(tt)","click"),i.attr("data-initial")&&(i.attr("href",i.attr("data-initial")),i.removeAttr("data-initial").removeAttr("data-substituted"))})}}})})},snippets.page.render_links=function(e){theme_buttonify(["/syslog-ng/list_destinations.cgi"],".container-fluid .table tbody tr td:last-child",'a[href*="view_log.cgi"]',"btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1",""),theme_buttonify(["/virtual-server/edit_newmysqls.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-cog"),theme_buttonify(["/cluster-cron/","/cluster-cron/index.cgi","/cluster-copy/","/cluster-copy/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-play"),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td[data-td-e]",'a[href*="delete.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-top-1 ---forced","fa-times-circle","","","","|"),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td[data-td-e]",'a[href*="//"]',"btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced",""),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td[data-td-e]",'a[href*="help.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced",""),theme_buttonify(["/webalizer/","/webalizer/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1",0),theme_buttonify(["/cpan/edit_mod.cgi"],".container-fluid .table tbody tr td","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-3 margined-right--1 btn-dnwo ---forced","","","","","|"),theme_buttonify(["/forward/index.cgi","/forward/"],".container-fluid",'.panel-body > a:first[href*="simple"]',"btn btn-default _btn-links-top btn-xs vertical-align-top margined-top-1 margined-left-3",0,"","","","|"),theme_buttonify(["/forward/index.cgi","/forward/"],".container-fluid",".panel-body > span[data-unckecked]","btn btn-info _btn-links-top btn-xs vertical-align-top margined-top-1 margined-left-3",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td[data-td-e]",'a[href*="webminlog/"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 ---forced",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td[data-td-e]",'a[href*="delete_session.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced","fa-unplugged"),theme_buttonify(["/sysinfo.cgi","/virtual-server/edit_newchangelog.cgi","/server-manager/edit_newchangelog.cgi"],".container-fluid #newfeatures-virtual-server-1-collapse dt, .container-fluid #newfeatures-server-manager-1-collapse dt, .container-fluid .table td dt","a","btn btn-link btn-link-bordered btn-xxs btn-dnwo f__lnk_t_btn-el margined-left-3 vertical-align-top margined-top-1","fa-eye","|",""),theme_buttonify(["/virtual-server/","/virtual-server/index.cgi","/virtual-server/edit_plan.cgi","/virtual-server/search.cgi"],".container-fluid form table tbody td",'a[href*="list_users.cgi?"], a[href*="list_aliases.cgi?"]',"btn btn-link btn-link-bordered btn-xxs btn-hover-hide vertical-align-top margined-top-1",0,"(~)"," ~ ",""),theme_buttonify(["/server-manager/","/server-manager/index.cgi"],".container-fluid form table tbody td",'a[href*="mass_update_form.cgi?"]',"btn btn-link btn-link-bordered btn-xxs btn-transparent btn-link-bordered vertical-align-top margined-left-3 margined-top-1",0,"","","","-"),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td[data-td-e]",'a[href*="activate.cgi"][href*="&active=3"]',"btn btn-warning btn-xxs vertical-align-top margined-top-1","fa-ban"),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td[data-td-e]",'a[href*="activate.cgi"][href*="&active=0"]',"btn btn-success btn-xxs vertical-align-top margined-top-1","fa-check-circle-o"),theme_buttonify(["/virtualmin-google-analytics/","/virtualmin-google-analytics/index.cgi"],".container-fluid .table tbody td[data-td-e]",'a[href*="edit.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-top-1","fa-pencil-square"),theme_buttonify(["/apache/","/apache/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-external-link"),theme_buttonify(["/ldap-server/edit_schema.cgi"],".container-fluid table tr.ui_checked_columns td",'a[href*="view_sfile.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 ---forced",0,"","","","|"),theme_buttonify(["/ldap-server/edit_schema.cgi"],".container-fluid table tr.ui_checked_columns td",'a[href*="edit_sfile.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced","fa-pencil-square-o");var t=$(".container-fluid .ui_links_row");if((core.curModule("firewall",1)||core.curModule("firewall6",1))&&t.first().find(".ui_link_empty").addClass("btn-warning").removeClass("btn-success"),($('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file||v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"||v___location_path==v___location_prefix+"/software/list_pack.cgi"||v___location_path==v___location_prefix+"/mailboxes/view_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/view_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"||v___location_path==v___location_prefix+"/phpini/"||v___location_path==v___location_prefix+"/phpini/index.cgi"||v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"||v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"||v___location_path==v___location_prefix+"/virtualmin-awstats/"||v___location_path==v___location_prefix+"/virtualmin-awstats/index.cgi"||v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi")&&($.each($('tr td:last-child > .ui_links_row, tr td:last-child:contains("|")'),function(){var e=$(this).parent(),t="ui_link btn-inverse btn-tiny>";v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"&&(e.find('a[href^="backup_form.cgi"]').html(e.find('a[href^="backup_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass(t).prepend('  '),e.find('a[href^="restore_form.cgi"]').html(e.find('a[href^="restore_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass(t).prepend('  '),e.find('a[href^="backuplog.cgi"]').html(e.find('a[href^="backuplog.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass(t).prepend('  ')),v___location_path!=v___location_prefix+"/phpini/"&&v___location_path!=v___location_prefix+"/phpini/index.cgi"||(e.find('a[href^="list_ini.cgi"]').html(e.find('a[href^="list_ini.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass(t).prepend('  '),e.find('a[href^="edit_manual.cgi"]').html(e.find('a[href^="edit_manual.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass(t).prepend('  ')),v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"||(e.find('a[href^="edit_hdparm.cgi"]').html(e.find('a[href^="edit_hdparm.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t),e.find('a[href*="smart-status/index.cgi"]').html(e.find('a[href*="smart-status/index.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t),e.find('a[href^="blink.cgi"]').html(e.find('a[href^="blink.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t)),v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"&&(e.find('a[href^="index.cgi"]').html(e.find('a[href^="index.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('  '),e.find('a[href^="edit_auto.cgi"]').html(e.find('a[href^="edit_auto.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('  '),e.find('a[href^="copy_form.cgi"]').html(e.find('a[href^="copy_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('  ')),v___location_path!=v___location_prefix+"/mailboxes/view_mail.cgi"&&v___location_path!=v___location_prefix+"/mailbox/view_mail.cgi"||(e.find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').html(e.find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('  '),e.find('a[href*="detach.cgi"][target="_blank"]').html(e.find('a[href*="detach.cgi"][target="_blank"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass(t).prepend('  '),e.find('a[href*="&save=1"]:not([target="_blank"])').html(e.find('a[href*="&save=1"]:not([target="_blank"])').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass(t).prepend('  ')),v___location_path!=v___location_prefix+"/virtualmin-awstats/"&&v___location_path!=v___location_prefix+"/virtualmin-awstats/index.cgi"||(e.find('a[href^="view.cgi"]').html(e.find('a[href^="view.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t).prepend('  '),e.find('a[href^="config.cgi"]').html(e.find('a[href^="config.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t).prepend('  '))}).promise().done(function(){$(this).is(".ui_links_row")?$(this).contents().unwrap():$('tr td:last-child:contains("|")').replaceText(/\s*/gi,"").replaceText(/\|/gi,"")}),$('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file?($('a[href*="edit_mon.cgi?id"]').addClass("ui_link_replaced btn btn-default btn-xxs").removeClass("heighter-34").removeClass("ui_link"),$('a[href*="edit_mon.cgi?id"]').last().css("margin-left","-1px"),$('tr td:last-child:contains("|")').replaceText(/\|/gi,"")):$('tr td:last-child:contains("|")').contents().filter(function(){return 3==this.nodeType}).remove(),v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"||$("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').html($("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link"),v___location_path!=v___location_prefix+"/fsdump/"&&v___location_path!=v___location_prefix+"/fsdump/index.cgi"||$.each($("tr td:last-child"),function(){$(this).find('a[href^="backup.cgi"]').html($(this).find('a[href^="backup.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('  '),$(this).find('a[href^="kill.cgi"]').html($(this).find('a[href^="kill.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-danger btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('  ')}),v___location_path!=v___location_prefix+"/syslog/"&&v___location_path!=v___location_prefix+"/syslog/index.cgi"||$.each($("tr td:last-child"),function(){$(this).find('a[href*="save_log.cgi"][href*="view=1"]').html($(this).find('a[href*="save_log.cgi"][href*="view=1"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link")}),v___location_path==v___location_prefix+"/software/list_pack.cgi")){$('td a.ui_link[href*="view.cgi"]').html('').addClass("ui_link_replaced btn btn-default btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").attr("style","margin-top: 2px !important; margin-bottom: 0 !important; margin-right: 15px").removeClass("ui_link").prepend('')}if(v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"proc/"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/index.cgi"||((v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proc/"&&v___location_file&&v___location_file.indexOf("index_")>-1||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/index.cgi"||v___location_path===v___location_prefix+"/proc/")&&($("a.ui_link + b").addClass("btn").css("margin-left","3px"),$("b + a.ui_link").addClass("btn").css("margin-left","3px"),$('.panel-body > b:first-child:contains("Display")').length>0&&$(".panel-body > b:first-child").remove(),$(".panel-body > b").addClass("btn btn-success")),$(".panel-body").contents().filter(function(){return 3==this.nodeType}).remove(),$(".panel-body > a.ui_link").addClass("btn").css("margin-left","3px")),!e){v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"fdisk/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"postfix/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"pam/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"syslog/"||$("p > a[href], table + a[href], div.panel-body > a.ui_link").each(function(e,t){$(this).text($(this).text().replace(/\.$/,""))});$(".container-fluid .panel-body a.select_all,.container-fluid .panel-body a.select_invert,.container-fluid .panel-body a.select_invert ~ .ui_link,.container-fluid .panel-body .ui_links_row > *:not(.ui_link_empty, .ui_link_replaced),.container-fluid .panel-body .ui_link:not(.ui_link_empty)").each(function(){if(!(core.curModule("acl")&&this.href&&this.href.includes("edit_user.cgi?user"))&&!($(this).parent("td").length||$(this).parent("label").length||$(this).parent("tt").length||$(this).parents("b").length||$(this).parent("pre").length||v___location_path==v___location_prefix+"/webmin_search.cgi")&&(!core.curModuleFile("virtual-server","history.cgi")&&!core.curModuleFile("server-manager","one_history.cgi")&&!core.curModule("proc")&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"passwd/"&&$(this).text()&&v___location_path!=v___location_prefix+"/mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_path!=v___location_prefix+"/usermin/list_configs.cgi"&&!$(this).hasClass("help_popup")||core.curModule("procmail"))){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced"),$(this).text($(this).text().replace(/\.$/,""));var e=$(this).parent().contents().filter(function(){return 3==this.nodeType});e&&$.each(e,function(){$(this).text()&&$(this).text().length<=3&&$(this).remove()}),$(this).hasClass("select_all")&&$(this).html(' '+$(this).text()),$(this).hasClass("select_invert")&&$(this).html(' '+$(this).text()),(core.curModuleFile("server-manager","index.cgi")||core.curModuleFile("server-manager",""))&&($(this).parent('form[action="mass.cgi"]').length||$(this).parent(".ui_links_row").parent('form[action="mass.cgi"]').length)&&(($(this).is(":nth-child(1)")||$(this).is(":nth-child(6)"))&&$(this).html(' '+$(this).text()),($(this).is(":nth-child(2)")||$(this).is(":nth-child(7)"))&&$(this).html(' '+$(this).text()),($(this).is(":nth-child(3)")||$(this).is(":nth-child(8)"))&&$(this).html(' '+$(this).text())),$(this).attr("href")&&(0===$(this).attr("href").indexOf("edit")&&0!==$(this).attr("href").indexOf("edit_allow")||0===$(this).attr("href").indexOf("master_form")||0===$(this).attr("href").indexOf("slave_form")||0===$(this).attr("href").indexOf("stub_form")||0===$(this).attr("href").indexOf("forward_form")||0===$(this).attr("href").indexOf("delegation_form")||0===$(this).attr("href").indexOf("mass_form")||0===$(this).attr("href").indexOf("newdb_form"))?$(this).html(' '+$(this).html()):$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_allow")?$(this).html(' '+$(this).text()):($(this).attr("href")&&0===$(this).attr("href").indexOf("mass_ucreate")&&$(this).html(' '+$(this).text()),$(this).attr("href")&&$(this).attr("href").indexOf("grace_form")>-1&&$(this).html(' '+$(this).text())),$(this).attr("href")&&$(this).attr("href").indexOf("edit_manual")>-1&&$(this).html(' '+$(this).text()),core.curModule("custom")&&($(this).attr("href")&&0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html(' '+$(this).text()),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html(' '+$(this).text()),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html(' '+$(this).text())),$(this).attr("href")||$(this).remove()}});$.each($(".btn-group.ui_links_row > .ui_link_empty"),function(){($(this).prev(".btn-tiny.ui_link_replaced").length||$(this).next(".btn-tiny.ui_link_replaced").length)&&$(this).addClass("btn-tiny ui_link_replaced")}),$.each($(".btn-tiny.ui_link_replaced"),function(){$(this).prev('[class="table table-striped table-condensed"]').length&&$(this).next(':not(".ui_link_replaced")').length&&$(this).removeClass("btn-tiny ui_link_replaced").addClass("ui_link_re-replaced")}),$("a.ui_link_replaced").each(function(){$(this).prev().is("b")&&$(this).prev("b").addClass("btn btn-success btn-tiny"),$(this).next().is("b")&&$(this).next("b").addClass("btn btn-success btn-tiny"),core.curModule("htaccess-htpasswd")&&$("table tr.ui_checked_columns .ui_links_row > a").addClass("btn-link btn-link-bordered btn-xxs btn-hover-hide").removeClass("btn-tiny btn-inverse")}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fetchmail/"&&$("a.ui_link").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").css("margin-bottom","10px").css("margin-top","4px"),$(this).text($(this).text().replace(/\.$/,"")),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove();var e=function(e){return' '};$(this).attr("href").indexOf("edit_poll")>-1&&$(this).prepend(e("plus-square-o")),$(this).attr("href").indexOf("edit_global")>-1&&$(this).prepend(e("pencil-square-o")),$(this).attr("href").indexOf("check")>-1&&$(this).prepend(e("check-square-o"))}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"filter/"&&$("a.ui_link").each(function(){function e(e){return' '}$(this).attr("href").indexOf("edit_auto")>-1&&$(this).find("i").replaceWith(e("reply")),$(this).attr("href").indexOf("edit_forward")>-1&&$(this).find("i").replaceWith(e("reply-all"))})}v___location_path!=v___location_prefix+"/virtual-server/domain_form.cgi"&&v___location_path!=v___location_prefix+"/server-manager/list_images.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/bwgraph.cgi"||($(".panel-body > .ui_links_row > ").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).hasClass("btn-success")&&$(this).removeClass("btn-inverse")}),$.each($(".panel-body > .ui_links_row > .ui_link_empty"),function(){$(this).text().replace(/[\t\n]+/g," ").length<4?$(this).remove():($(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,"")),$(this).prev().is("img")&&$(this).removeClass().addClass("margined-left-3"))}),$(".panel-body > b").css("margin-right","7px"),v___location_path==v___location_prefix+"/virtual-server/domain_form.cgi"&&$.each($(".panel-body > .ui_links_row > .btn"),function(e,t){0==e&&$(this).html(' '+$(this).text()),1==e&&$(this).html(' '+$(this).text()),2==e&&$(this).html(' '+$(this).text()),3==e&&$(this).html(' '+$(this).text())})),v___location_path!=v___location_prefix+"/server-manager/edit_serv.cgi"&&v___location_path!=v___location_prefix+"/server-manager/edit_owner.cgi"||($('.table-striped .col_value a[href^="edit_serv.cgi"], .table-striped .col_value a[href^="edit_owner.cgi"]').each(function(){$(this).addClass("btn btn-inverse btn-xxs ui_link_replaced margined-right--2").removeClass("btn-tiny ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).hasClass("btn-success")&&$(this).removeClass("btn-inverse")}),$.each($(".table-striped .col_value .ui_links_row > .ui_link_empty"),function(){$(this).addClass("btn-xxs ui_link_replaced").removeClass("btn-tiny ui_link"),$(this).text().length<4?$(this).remove():$(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,""))})),$("a.ui_link, .btn").each(function(){if("."==$(this).text().substr(-1)&&!$(this).parent().is("label")){var e="."==$(this).text().substr(-1)&&".."==$(this).text().substr(-2)?2:1;$(this).text($(this).text().substr(0,$(this).text().length-e))}})},snippets.page.render=function($is_history_action){var body;if(page_control_header(),plugins.dashboard.restore(),plugins.navigation.state.update(),$is_history_action&&$(".popover.in").remove(),$is_history_action&&"undefined"!=typeof __cm_editor_static&&(__cm_editor_static.toTextArea(),$('button[data-form="submitter"]').unwrap(),$('.CodeMirror, button[data-form="submitter"] + button, .-helper.__helper, .-helper.soft_wt').remove()),body=$("body"),body.off("mousedown.cm1 keydown.cm1"),body.undelegate('button[type="submit"]:not(.disabled)',"click.cm"),body.undelegate('button[data-form="submitter"]:not(.disabled)',"click.cm"),table_proc_size_columns(),$("body").attr("style",get_server_data("style")),$.each($('select[onchange="form.submit()"]'),function(){$(this).removeAttr("onchange").addClass("onchange_form_submit_triggger")}),page.handle.content.offset(!0),editor_init_check()){var select_for_edited_file=$('select[name="file"]:first, select[name="manual"]:first');select_for_edited_file.addClass("onchange_form_submit_triggger"),select_for_edited_file.next("button.ui_form_end_submit").addClass("hidden")}if(snippets.datetime.locale(),snippets.datetime.locale({type:"insert",history:$is_history_action}),snippets.datetime.locale({type:"init"}),3==get_access_level()&&core.curModule("quota"))var $_table_quota=$(".container-fluid .panel-body .table"),$_table_quota_empty_label=$_table_quota.find("thead:first-child").add($_table_quota.find("thead:first-child").next("tbody")).remove();$.support.spa&&core.curModule("tunnel")&&$("form").on("submit",function(e){var t=$(quirks.active_element());e.preventDefault(),e.stopPropagation(),$.ajax({type:$(this).attr("method")?"GET":"POST",url:v___location_prefix+"/"+v___module+"/"+$(this).attr("action"),data:get_form_data($(this)),dataType:"text",complete:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(theme_open_new_tab(this.url),t.removeClass("disabled").find("i").removeClass("invisible").next(".cspinner_container").remove())}})}),check_location_resource("/config.cgi?tunnel")&&$('table table[width="100%"] tr:first-child').addClass("hidden"),$.each($('tr td:last-child a:contains("..")'),function(){if(v___location_path==v___location_prefix+"/virtual-server/list_databases.cgi"){if($(this).attr("href")&&$(this).attr("href").includes("showpass.cgi"))return!0;$(this).html($(this).text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn f__lnk_t_btn-el btn-transparent btn-link-bordered btn-xxs margined-top--3").removeClass("ui_link")}}),$.support.spa&&!$is_history_action&&$("#headln2c").prepend(" '),plugins.favorites.detect(),$(".switch-toggle").find('label[for="open_thirdlane"]').length&&$('.switch-toggle input:not([id="open_webmin"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){$("#open_webmin").prop("checked",!0)}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"&&$("table.table tbody tr").addClass("ui_checked_columns"),page_table_rows_control(),!$is_history_action&&page_radios_evolve();var $onLoad_checkBox=$('.ui_checked_columns td.ui_checked_checkbox input[type="checkbox"]:checked:not(disabled)').parents("tr.ui_checked_columns").addClass("hl-aw");if($("body").hasClass("servers")&&$('form[action="delete_servs.cgi"] a.icon_link, form[action="delete_servs.cgi"] a.ui_link, form[action="delete_servs.cgi"] .col-xs-1').on("click",function(e){if($(e.target).is(".gl-icon-select"))$.support.spa?$(this).trigger("contextmenu"):$(this).parents(".gl-icon-container").trigger("contextmenu");else{var t=v___location_href+$(this).attr("href"),i=$(this).attr("href");$(this);i&&i.indexOf("edit_serv.cgi")>-1||i&&i.indexOf("logout.cgi")>-1?void 0!==e.originalEvent&&$.pjax.click(e,{timeout:0,push:get_pjax_push(),type:get_pjax_type(),container:"[data-dcontainer]",fragment:"[data-dcontainer]"}):i&&-1===i.indexOf("://")?open(link_type_convert(t,1)):open(i),e.preventDefault(),e.stopPropagation()}}),core.curModule("servers")&&$.each($('form[action*="delete_servs.cgi"] a[href*="link.cgi"]'),function(){var e=$(this).attr("href");e&&e.match(/(link.cgi\/\d+)/)&&$(this).attr("target","_blank")}),v___location_path!=v___location_prefix+"/apache/edit_global.cgi"&&v___location_path!=v___location_prefix+"/apache/edit_virt.cgi"&&v___location_path!=v___location_prefix+"/apache/edit_dir.cgi"||$.each($(".ui_opt_textbox.form-control"),function(){$(this).parent("span").next("button.btn.btn-default.chooser_button").length>0&&$(this).css("margin-right","4px")}),!$is_history_action){$(".opener_container").length&&$.each($(".opener_container"),function(){$(this).find(".opener_shown").is(":visible")&&$(this).parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed")}),$(".opener_shown, .opener_hidden").length>0&&$(".opener_trigger").length>0&&($(".panel-body .ui_form .table tbody tr").removeClass("thead"),$(".opener_trigger").parents("table.table").addClass("opener_table_style"),$(".opener_trigger").parents("tr").addClass("_c__op_r").attr("style","border: 0 !important"),$(".opener_trigger").parent("td").addClass("_c__op_d"),$(".opener_trigger").parent("td").find("a").addClass("link_hover_effect link_hover_effect_style_extra"));var target_restore_selector='a[id*="opener"][id$="_restore"]';$(target_restore_selector).parent().is("p")&&($(target_restore_selector).next("a").parent("p").replaceTagName("div"),$(target_restore_selector).next("a").removeClass().addClass("opener_extra_container_a_style link_hover_effect").parent("div").addClass("opener_extra_container opener_extra_container_style margined-top-10"),$(target_restore_selector).remove()),$('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').length>0&&($('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').each(function(e,t){var i=!!(v___location_path==v___location_prefix+"/virtual-server/backup_form.cgi"&&v___location_href&&v___location_href.indexOf("?sched=")>-1);if($(this).find("img").length>0&&$(this).remove(),$(this).css("border-bottom","0"),$(this).parents("table.table").addClass("opener_table_style_small"),$(this).parent("td").addClass("opener_table_cell_style_small"),i||($(this).parent("td").addClass("opener_table_cell_style_small opener_table_cell_style_small_exclusion_border_top"),$(this).parent("td").parent("tr").parent("tbody").parent("table").parent("div.opener_hidden").addClass("opener_shown_inner").parent(".opener_container").addClass("has_sub_inner")),$(this).parent("td").find("a").addClass("link_hover_effect link_hover_effect_style"),$(this).parent().is(".panel-body")||$(this).parent().is(".ui_form")||$(this).parent().is("p")){var a=$(this),n=a.parent().is(".panel-body")?".panel-body":a.parent().is("p")?"p":".ui_form",s=a.parent(n).find('a[href^="javascript:hidden_opener"]'),o='
    ';core.curModuleFile("bind8","edit_zonekey.cgi")?(s.eq(1).wrapAll(o),s.eq(e+1).wrapAll(o)):s.eq(e+1).wrapAll(o),a.parent('.panel-body > a[href^="javascript:hidden_opener"]:first-child').remove();var r=a.parent(n).find(".opener_extra_container");$(r).next("br").remove(),$(r).addClass("opener_extra_container_style"),$(r).find("a").addClass("opener_extra_container_a_style link_hover_effect"),$(r).next(".opener_hidden").attr("style","padding:8px")}}),$.each($(".opener_hidden"),function(){$(this).css("display","none")})),$("a.opener_trigger").each(function(){$(this).parent("td").css("text-align","left")}),$('form[action*="seen_newfeatures.cgi"]').each(function(){$(this).parents("table.table-striped").next(".ui_form_end_buttons").css("margin-top","14px")}),$("#tall_0").before("
    "),$(".opener_container").each(function(e,t){$(this).find("div").hasClass("opener_hidden")?$(this).hide():$(this).show()}),$.each($("div.barchart"),function(){var e=$(this).find('img[src*="red.gif"]'),t=$(this).parent("td").contents().filter(function(){return 3==this.nodeType}).text();e&&e.attr("width")&&$(this).parent("td").html('
    '+t+'
    '+e.attr("width")+"
    ")}),$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody > tr").css("border","none").parents("table").css("margin-top","20px"),$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody").css("border","none"),$('.ui_grid_table > tbody > tr.ui_grid_row > td:has(button[type="submit"])').parents("table.ui_grid_table").css("border","none"),$("form.ui_form > table label.radio, form.ui_form > table label.checkbox").each(function(){var e=$(this),t=e.find("i.fa"),i=e.find("i.fa").text().trim(),a=e.text().trim();0===i.length&&0===a.length&&t.parent("label").remove()})}if(v___location_path&&(v___location_path.indexOf("/webmin/edit_themes.cgi")>-1||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi")){if(v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi"){plugins.navigation.reset();var $target_parents_row=$('[name="settings_navigation_color"]').parent("td").parent("tr"),rows=' '+theme_language("settings_grayscale_level_navigation")+'
    '+theme_language("settings_grayscale_level_navigation_description")+'
    '+theme_language("settings_sepia_level_navigation")+'
    '+theme_language("settings_sepia_level_navigation_description")+'
    '+theme_language("settings_saturate_level_navigation")+'
    '+theme_language("settings_saturate_level_navigation_description")+'
    '+theme_language("settings_hue_level_navigation")+'
    '+theme_language("settings_hue_level_navigation_description")+'
    '+theme_language("settings_invert_level_navigation")+'
    '+theme_language("settings_invert_level_navigation_description")+'
    '+theme_language("settings_brightness_level_navigation")+'
    '+theme_language("settings_brightness_level_navigation_description")+'
    '+theme_language("settings_contrast_level_navigation")+'
    '+theme_language("settings_contrast_level_navigation_description")+'
    ';$target_parents_row.after(rows)}var ev_change_atsettings='#atsettings form[action*="settings.cgi"] select, form[action*="save_config.cgi"]#settings_ select, #atsettings form[action*="settings.cgi"] input, form[action*="save_config.cgi"]#settings_ input';$("body").undelegate(ev_change_atsettings,"change"),$("body").on("change",ev_change_atsettings,function(e){var t=$(this).val();if("true"==t||"false"==t?"true"==t?c=!0:"false"==t&&(c=!1):c=t,window[$(this).attr("name")]=Test.numeric(c)?c&&c.length>16?c:parseFloat(c):c,void 0!==e.originalEvent)if(v___initial_load&&"settings-user.cgi"!==v___location_file)v___initial_load=0;else{var i='input[name="settings_side_slider_enabled"]';!$(e.target).is(i)&&$(e.target).is(i)||theme_config_controls(1)}});var ev_keydown_atsettings='#atsettings form[action*="settings.cgi"] input, form[action*="save_config.cgi"]#settings_ input';function a(){$("body").undelegate("#atrestore:not(.disabled)","click"),$("#atrestore:not(.disabled)").off("click.confirm"),$("#atrestore:not(.disabled)").on("click",function(){var e=get_onbeforeunload_status();set_onbeforeunload_status(0),e&&setTimeout(function(){set_onbeforeunload_status(e)},2500)}),$("#atrestore:not(.disabled)").confirmation({classNameRemove:"btn-default"},function(){$(this).off();var e=$(this);e.hasClass("btn-inverse")||setTimeout(function(){spinnerfy_buttons(e,[1.5,-33,"small",!1]);var t=$(".ui_form").serialize();$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&restore=1",data:t,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:theme_reload()},error:function(t){e.addClass("btn-danger").removeClass("btn-default btn-inverse opacity-0_5")}})},0)})}$("body").undelegate(ev_keydown_atsettings,"keydown"),$("body").on("keydown",ev_keydown_atsettings,function(e){void 0!==e.originalEvent&&theme_config_controls(1)}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi"&&$('button[type="button"][name="save_user"]').on("click",function(e){e.preventDefault(),e.stopPropagation(),theme_config_update(),theme_config("save"),plugins.navigation.load.start(),spinnerfy_buttons($(this),[-.5,-25,"small"]),setTimeout(function(){plugins.navigation.reload()},1400)}),core.moduleAvailable("webmin")&&!$is_history_action&&($(".container-fluid .nav.nav-tabs").prepend('
  • '),$(".container-fluid .tab-pane").first().before('
    '),$('.container-fluid .nav-tabs a[href="#atsettings"]').tab("show")),$is_history_action||$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-settings=1",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{$("#atsettings").html(e);var t=get_server_data("theme-version"),i=$('input[name="settings_sysinfo_theme_updates"]').first().parents("td").parent("tr.atshover"),n=i.find("td").first().find(".smaller");i.next("tr").find("td").first().find("b");n.append(' ('+theme_language("global_installed_version").toLowerCase()+" "+t+')'+theme_spinner_small("in-btn-md tmp_spinner_theme_version"," ","width:10px; height:10px; margin-left: 5px;")),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-theme_latest_version=1",data:!1,dataType:"json",success:function(e){var i=String(),a=e[0],n=a!=e[1]&&e[1],s=$("[data-text-installed]"),o=$(".tmp_spinner_theme_version"),r=$("em[data-theme-stable-version]"),l=$("span[data-theme-versions]");a&&a!=t&&(i+=", "+theme_language("global_latest_stable").toLowerCase()+' '+a+""),n&&n!=t&&(i+=", "+theme_language("global_latest_beta").toLowerCase()+' '+n+""),t&&t.length<=5&&a&&a.length<=5&&a!=t&&r.addClass("text-danger"),i&&!i.length&&(s.text(theme_language("global_installed_and_latest_version").toLowerCase()),r.addClass("text-success")),l.replaceWith(i),o.remove()},error:function(){}}),page.render.module_config([0,1,0,0,0,0,0,0,1]);var s=$("div#atsettings").find(".ui_form");$__theme_text_right_save=s.data("text-save"),$__theme_text_right_saved=s.data("text-settings_right_saved"),$__theme_text_right_saving=s.data("text-settings_right_saving"),$__theme_text_right_restore_defaults=s.data("text-settings_right_restore_defaults"),$__theme_text_right_restored=s.data("text-settings_right_restored"),$__theme_text_right_restoring=s.data("text-settings_right_restoring"),$__theme_text_right_error=s.data("text-error"),$('.container-fluid .nav-tabs a[href="#atsettings"]').text(s.data("text-current_theme")),$("div#atsettings").removeClass("text-center"),a(),theme_config_update();var o=$("body").find(".fa.fa-sub-title").parent("span");$(o).next("br").remove(),$(o).next("div.smaller").attr("style","margin-top: -15px !important"),o.remove(),u(),$('input[name="settings_right_hide_table_icons"]').on("change",function(){u($(this))}),f(),$('input[name="settings_hotkeys_active"]').on("change",function(){f($(this))}),g(),$('input[name="settings_side_slider_enabled"]').on("change",function(){g($(this))}),m(),$('input[name="settings_sysinfo_real_time_status"]').on("change",function(){m($(this))}),v(),$('input[name="settings_sysinfo_real_time_stored"]').on("change",function(){v($(this))});var r=$('input[name="settings_sysinfo_real_time_stored_length"]');r.on("input",function(){var e=$(this).next("span"),t=parseFloat(this.value),i=t+" "+theme_language("theme_xhred_global_hour").toLowerCase();t<1?i=10*Math.round(Math.round(60*t)/10)+" "+theme_language("theme_xhred_global_minutes").toLowerCase():1!==t&&t>1&&(i=t+" "+theme_language("theme_xhred_global_hours").toLowerCase()),i=" ("+i+")",e.is("span")?e.text(i):$(this).after('  '+i+"")}),r.trigger("input");var l=$('input[name="settings_table_init_datatables"]');l.on("input",function(){var e=$(this).next("span"),t=parseFloat(this.value)+" "+theme_language("theme_xhred_global_rows").toLowerCase();t=" ("+t+")",e.is("span")?e.text(t):$(this).after('  '+t+"")}),l.trigger("input"),b(),$('input[name="settings_sysinfo_easypie_charts"]').on("change",function(){b($(this))}),x(),$('input[name="settings_sysinfo_theme_updates"]').on("change",function(){x($(this))}),$('select[name="settings_navigation_color"]').on("keyup change",function(e){var t=$(this).val(),i=$("link[data-palette]"),a="blue"!=t;a&&$("head").append(''),setTimeout(function(){get_server_data("data-theme",t),i.remove(),get_server_data("data-default-theme",t),$("body .user-link.palette-toggle").find(".fa-sun").trigger("click"),theme_config_update()},a?800:0)}),$('select[name="settings_background_color"]').on("click keyup change",function(){var e=$(this).val();get_server_data("data-bgs",e),get_server_data("data-bgs",e),$("link[data-palette]").remove(),"gainsboro"!=e&&($("head").append(''),$('select[name="settings_navigation_color"]').val("gunmetal").trigger("change")),theme_config_update()}),$('input[name="settings_enable_container_offset"]').change(function(){var e=$(this).val(),t=$(".container-fluid");"false"==e?t.removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15"):t.addClass("col-lg-10 col-lg-offset-1").removeClass("margined-top-15")}),$('input[name="settings_contrast_mode"]').change(function(){var e=$(this).val();$("link[data-high-contrast]").remove(),"true"==e&&$("head").append(''),get_server_data("data-high-contrast","true"==e?"1":"0")}),$('input[name="settings_right_page_hide_persistent_vscroll"]').change(function(){var e=$(this).val(),t=$("#content.__page");"true"==e?t.removeClass("fvscroll"):t.addClass("fvscroll")}),$('select[name="settings_side_slider_palette"]').change(function(){$("body .right-side-tabs, body .right-side-tabs-toggler").attr("data-bgs",$(this).val()),"nav"===$(this).val()?setTimeout(function(){$('input[name="settings_saturate_level_navigation"]').click()}):$("#right-side-tabs").add("#right-side-tabs + .right-side-tabs-toggler").css({filter:""})}),$('input[name="settings_side_slider_enabled"]').change(function(){"true"==$(this).val()?($("body .right-side-tabs-toggler").removeClass("hidden"),$("body .right-side-tabs").removeClass("hidden"),$('input[name="settings_side_slider_sysinfo_enabled"][value="true"], input[name="settings_side_slider_notifications_enabled"][value="true"], input[name="settings_side_slider_favorites_enabled"][value="true"]').trigger("click")):($("body .right-side-tabs-toggler").addClass("hidden"),$("body .right-side-tabs").addClass("hidden")),theme_config_update(),page_resized()}),$('input[name="settings_side_slider_fixed"]').change(function(){vars.slider_pinned=-1;var e=$(".right-side-tabs-dismiss .fa2-collapse-right");"true"==$(this).val()?(plugins.slider.state(1),e.removeClass("fa-rotate-45")):(plugins.slider.state(0),e.addClass("fa-rotate-45")),theme_config_update()}),$('input[name="settings_side_slider_fixed_toggle"]').change(function(e){var t=$(".right-side-tabs-dismiss .fa2-collapse-right");"true"==$(this).val()?t.removeClass("hidden"):(("true"==$('input[name="settings_side_slider_fixed"]:checked').val()&&t.hasClass("fa-rotate-45")||"false"==$('input[name="settings_side_slider_fixed"]:checked').val()&&!t.hasClass("fa-rotate-45"))&&t.trigger("click"),t.addClass("hidden")),vars.slider_pinned=-1,theme_config_update()}),$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').change(function(e){var t="right-side-tabs-"+$(this).attr("name").split("_")[3],i=$(this).attr("name"),a=$("body").find("#"+t).hasClass("active"),n=$('input[name="settings_side_slider_sysinfo_enabled"][value="true"]:checked, input[name="settings_side_slider_notifications_enabled"][value="true"]:checked, input[name="settings_side_slider_favorites_enabled"][value="true"]:checked').length;"true"==$(this).val()?($("body").find('a[href="#'+t+'"], #'+t).removeClass("hidden").parent().removeClass("hidden"),"settings_side_slider_notifications_enabled"===i&&($(".right-side-tab-notification-asterix").removeClass("invisible hidden hidden-forged"),$(".right-side-tabs-toggler .badge.badge-danger").removeClass("invisible hidden hidden-forged"),setTimeout(function(){"function"==typeof plugins.slider.badge&&plugins.slider.badge()},300))):($("body").find('a[href="#'+t+'"], #'+t).addClass("hidden"),a&&n?$("body #right-side-tabs").find("li:not(.active) a:not(.hidden)").first().trigger("click"):0===n&&$('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),"settings_side_slider_notifications_enabled"===i&&($(".right-side-tab-notification-asterix").addClass("invisible hidden hidden-forged"),$(".right-side-tabs-toggler .badge.badge-danger").addClass("invisible hidden hidden-forged"),plugins.favicon.set(0))),theme_config_update()}),$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').each(function(){$('input[name="'+$(this).attr("name")+'"][value="'+window[$(this).attr("name")]+'"]').trigger("change")}),$('select[name="settings_navigation_color"]').after(' ');var _=$(this).attr("data-name")+"_controller";window[_]="hidden",$(".settings_navigation_color_toggle, .settings_background_color_toggle").on("click",function(){void 0===window[_]||"hidden"==window[_]?($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").removeClass("hidden"),window[_]="shown"):($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").addClass("hidden"),window[_]="hidden"),$(this).toggleClass("forced")}),$(".settings_navigation_color_reset").on("click",function(){if("settings_navigation_color"==$(this).attr("data-name")){var e="grayscale(0) sepia(0) saturate(1) hue-rotate(0deg) invert(0) brightness(1) contrast(1)",t="filter: "+e+";";$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+t),$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+t),"nav"===settings_side_slider_palette&&$("#right-side-tabs").add("#right-side-tabs + .right-side-tabs-toggler").css({filter:e}),$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"]').val(0),$('input[name="settings_saturate_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]').val(1),$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_saturate_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]').each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val())})}});var c=$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_saturate_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]');c.on("click keyup change",function(e){var t="grayscale("+$('input[name="settings_grayscale_level_navigation"]').val()+") sepia("+$('input[name="settings_sepia_level_navigation"]').val()+") saturate("+$('input[name="settings_saturate_level_navigation"]').val()+") hue-rotate("+$('input[name="settings_hue_level_navigation"]').val()+"deg) invert("+$('input[name="settings_invert_level_navigation"]').val()+") brightness("+$('input[name="settings_brightness_level_navigation"]').val()+") contrast("+$('input[name="settings_contrast_level_navigation"]').val()+")";style="filter: "+t+";",$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+style),$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+style),"nav"===settings_side_slider_palette&&$("#right-side-tabs").add("#right-side-tabs + .right-side-tabs-toggler").css({filter:t}),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_config_update()}),c.each(function(e,t){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),$(this).parent().parent("td").parent("tr.atshover").addClass("hidden settings_navigation_color_rows hidden-skip"),0===e&&$(this).parent().parent("td").parent("tr.atshover").prev("tr").addClass("hidden-dependent-skip")}),setTimeout(function(){$(".mobile-menu-toggler:visible").length&&$('input[name="settings_leftmenu_width"]').prop("disabled",!0)},100);var d=$('input[name="settings_leftmenu_width"]');d.on("click keyup change",function(e){page_adjust($(this).val(),$(this).val()),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_config_update(),settings_leftmenu_width_initial=$(this).val()}),$('input[name="settings_navigation_always_collapse"]').change(function(e){y($(this)),"true"==$(this).val()?($("html").attr("data-navigation-collapsed",1),$(".mobile-menu-toggler").removeClass("visible-xs"),plugins.navigation.collapse()):"false"==$(this).val()&&($("html").attr("data-navigation-collapsed",0),$(".mobile-menu-toggler").addClass("visible-xs")),setTimeout(function(){page_resized()},10)}),y(),d.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),settings_leftmenu_width_initial=$(this).val()}),"restored"==v___location_query&&(c.trigger("click"),d.trigger("click"),$('select[name="settings_navigation_color"], select[name="settings_background_color"]').trigger("change")),$("aside ul.user-html li.user-html-string").html($('input[name="settings_leftmenu_user_html"]').val()),$('input[name="settings_leftmenu_user_html"]').keyup(function(){$("aside ul.user-html li.user-html-string").html($(this).val())}),plugins.navigation.switch.dashboard.get()&&$('input[name="settings_sysinfo_link_mini"]').parent().parent().parent().parent("tr").remove(),$('input[name^="settings_leftmenu_netdata_link"], input[name^="settings_leftmenu_user_html_only_for_administrator"], input[name="settings_sysinfo_real_time_status_disk"], input[name="settings_sysinfo_real_time_stored_length"], input[name="settings_sysinfo_easypie_charts_size"], input[name="settings_sysinfo_easypie_charts_width"], input[name="settings_sysinfo_easypie_charts_scale"], input[name="settings_show_theme_configuration_for_admins_only"]').parents("td.col_value.atscontent").parent("tr.atshover").addClass("settings_option_padded"),$('input[data-role="tagsinput"]').tagsinput(),$("body").css("overflow","auto"),$.getScript(v___location_prefix+"/unauthenticated/js/detector."+v___source_type+".js?"+v___theme_version_plain,function(){var e=new Detector;$.each($('select[name="settings_font_family"] option'),function(){var t=$(this).text();e.detect(t)||"system-default"==$(this).val()||$(this).attr("disabled","disabled").text(t+" ("+theme_language("global_not_available")+")")}),$('select[name="settings_font_family"]').on("keyup change",function(e){var t=$(this).val(),i=($.merge($("head"),$("head")),$("head").find('link[href*="font-"]').add($("head").find('link[href*="font-"]')).add($("head").find('link[href*="fonts-roboto"]')).add($("head").find('link[href*="fonts-roboto"]'))),a=(a=$.merge($("head").find('link[href*="/authentic."]'),$("head").find('link[href*="/authentic."]'))).length?a:$.merge($("head").find('link[href*="/bundle."]'),$("head").find('link[href*="/bundle."]'));i.remove(),"0"==t||"1"==t?"0"==t&&a.after(''):a.after('')})}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)}),$('input[name="settings_leftmenu_netdata"]').on("change",function(){var e=$('input[name="settings_leftmenu_netdata_link"]');"true"==$(this).val()?e.removeAttr("disabled"):e.attr("disabled","disabled")}),$('input[name="settings_leftmenu_netdata"]:checked').trigger("change"),$(".right-side-tabs-toggler").length||($('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),$('input[name="settings_side_slider_enabled"]').attr("disabled","disabled")),page_resized(),$('input[name="settings_show_webmin_tab"]').parents("td").parent("tr").addClass("hidden"),$('[data-toggle="popover"]').popover({sanitize:!1});var p=$('textarea[name="settings_leftmenu_custom_links"]'),h=p.val();p.length&&p.val(Convert.htmlDecode(h).replace(///g,"/"));$('form[action*="settings.cgi"] textarea').on("input",function(e){void 0!==e.originalEvent&&theme_config_controls(1)}),theme_config_controls(0),set_onbeforeunload_status(0,0)}function u(e){void 0===e&&(e=$('input[name="settings_right_hide_table_icons"]:checked'));var t=["settings_right_small_table_icons","settings_right_animate_table_icons","settings_right_grayscaled_table_icons"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0),$('input[name="'+t+'"]').parent(".aradio").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1),$('input[name="'+t+'"]').parent(".aradio").removeClass("disabled")})}function f(e){void 0===e&&(e=$('input[name="settings_hotkeys_active"]:checked'));var t=["settings_hotkey_custom_1","settings_hotkey_custom_2","settings_hotkey_custom_3","settings_hotkey_custom_4","settings_hotkey_custom_5","settings_hotkey_custom_6","settings_hotkey_custom_7","settings_hotkey_custom_8","settings_hotkey_custom_9","settings_hotkey_toggle_modifier","settings_hotkey_toggle_key_webmin","settings_hotkey_toggle_key_virtualmin","settings_hotkey_toggle_key_cloudmin","settings_hotkey_toggle_key_usermin","settings_hotkey_toggle_key_webmail","settings_hotkey_shell","settings_hotkey_focus_search","settings_hotkey_navigation","settings_hotkey_slider","settings_hotkey_toggle_slider","settings_hotkey_reload","settings_hotkey_reload","settings_hotkey_toggle_key_night_mode","settings_hotkey_sysinfo","settings_hotkey_favorites"];"false"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!0)}):$.each(t,function(e,t){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!1)})}function g(e){void 0===e&&(e=$('input[name="settings_side_slider_enabled"]:checked'));var t=["settings_side_slider_palette","settings_side_slider_fixed","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled"];"false"==e.val()?$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),setTimeout(function(){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!0).parent(".aradio").addClass("disabled")},10)}):$.each(t,function(e,t){("settings_side_slider_fixed"!=t||"settings_side_slider_fixed"==t&&"true"!=$('input[name="settings_navigation_always_collapse"]:checked').val())&&("settings_side_slider_fixed_toggle"!=t||"settings_side_slider_fixed_toggle"==t&&"true"!=$('input[name="settings_navigation_always_collapse"]:checked').val())&&$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!1).parent(".aradio").removeClass("disabled")})}function m(e){void 0===e&&(e=$('input[name="settings_sysinfo_real_time_status"]:checked'));var t=["settings_sysinfo_real_time_timeout","settings_sysinfo_real_time_status_disk","settings_sysinfo_real_time_stored","settings_sysinfo_real_time_stored_length"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function v(e){void 0===e&&(e=$('input[name="settings_sysinfo_real_time_stored"]:checked'));var t=["settings_sysinfo_real_time_stored_length"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function b(e){void 0===e&&(e=$('input[name="settings_sysinfo_easypie_charts"]:checked'));var t=["settings_sysinfo_easypie_charts_size","settings_sysinfo_easypie_charts_width","settings_sysinfo_easypie_charts_scale"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function x(e){void 0===e&&(e=$('input[name="settings_sysinfo_theme_updates"]:checked'));var t=["settings_cache_interval"];"true"==e.val()?$.each(t,function(e,t){$('[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function y(e){void 0===e&&(e=$('input[name="settings_navigation_always_collapse"]:checked'));var t=["settings_side_slider_fixed","settings_side_slider_fixed_toggle","settings_leftmenu_width"];"true"==e.val()?(vars.slider_pinned=-1,$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),setTimeout(function(){$('input[name="'+t+'"]').prop("disabled",!0).parent(".aradio").addClass("disabled")},10)})):$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||"false"==$('input[name="settings_side_slider_enabled"]:checked').val()||$('input[name="'+t+'"]').prop("disabled",!1).parent(".aradio").removeClass("disabled")})}}});var ev_click_atsettings="#atsave:not(.btn-inverse):not(.disabled)";$("body").undelegate(ev_click_atsettings,"click"),$("body").on("click",ev_click_atsettings,function(e){e.preventDefault();var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small"]),set_onbeforeunload_status(0,0),theme_config_update(),theme_config("save"),core.updateModuleData("/webmin/edit_startpage.cgi","/webmin/change_startpage.cgi",{gotomodule:$.trim($('select[name="goto_webmin_default_module"]').val())}),setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&save=1",data:core.get_global_vars(["settings_"],1),dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(plugins.navigation.reload(),theme_config_controls(0),despinnerfy_buttons(0,t),settings_sysinfo_real_time_status?"object"==typeof stats?(stats.general.timeout=settings_sysinfo_real_time_timeout,stats.general.enable()):load.bundle(v___server_extensions_path+"/stats/stats",0,["stats.general.timeout = settings_sysinfo_real_time_timeout","stats.general.query()"]):"object"==typeof stats&&stats.general.disable())},error:function(){t.addClass("btn-danger").removeClass("btn-success btn-inverse opacity-0_5")}})},1e3)})}var theme_control_pages=v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-backgrounds.cgi";if($is_history_action||!theme_control_pages&&!core.curModuleFile("webmin","edit_themes.cgi")||plugins.navigation.reset(),!$is_history_action&&theme_control_pages){check_location_resource("/settings-logos.cgi?saved=1")&&$.each($(".file_chooser_button_preview:first"),function(){$(this).hasClass("disabled")?$("aside + .__logo").remove():matchMedia("(max-width: 1080px)").matches||($("aside + .__logo").length?($(".__logo img").attr("src",$("[data-image-lga]").attr("data-image")),$("aside + .__logo").attr("style","transform: translate(0px, 0px);"),setTimeout(function(){$(".__logo").transition({y:"-140px"},1200)},400)):($("aside").after(''),setTimeout(function(){$(".__logo").transition({y:"-140px"},1200)},400)))});var ev_click_atsettings2=".authentic_update:not(.disabled), .page_footer_ajax_submit:not(.disabled)";$("body").undelegate(ev_click_atsettings2,"click"),$("body").on("click",ev_click_atsettings2,function(){spinnerfy_buttons($(this),[1.5,-28,"small",!1])}),setTimeout(function(){v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"&&$(".end_submits").parent("td").after(' '+theme_language("settings_right_theme_bgs")+' '+theme_language("settings_right_theme_logos")+" '+theme_language("global_save")+" ")},1300)},10)}if($is_history_action||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-backgrounds.cgi"||($(function(){var e=$('input[name="authenticated_logo"]:checked, input[name="authenticated_bg"]:checked'),t=e.val(),i=$('input[name="unauthenticated_logo"]:checked, input[name="unauthenticated_bg"]:checked');i.val();function a(i){void 0===i&&(i=e);var a=["authenticated_logo_file","authenticated_bg_file"];"1"!=i.val()?$.each(a,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")}):$.each(a,function(e,i){$('input[name="'+i+'"]').parents(".file-input-wrapper").removeClass("disabled"),"1"==t&&$('input[name="'+i+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}function n(e){void 0===e&&(e=i);var t=["unauthenticated_logo_file","unauthenticated_bg_file"];"1"!=e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").removeClass("disabled"),"1"==i&&$('input[name="'+t+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}a(),$('input[name="authenticated_logo"], input[name="authenticated_bg"]').on("change",function(){a($(this))}),n(),$('input[name="unauthenticated_logo"], input[name="unauthenticated_bg"]').on("change",function(){n($(this))})}),$(".file_chooser_button_preview").on("mouseout",function(e){$(this).css("background","white")}).on("mouseover",function(e){$(this).css("background","#eee")}),$.each($(".file_chooser_button_preview"),function(){$(this).data("image")&&$(this).popover({trigger:"hover",sanitize:!1,html:!0,content:function(){return""}})})),$("#system-status > div.panel-body > table > tbody > tr > td").on("mouseover",function(){$(this).find(".btn-hidden").removeClass("hidden")}).on("mouseout",function(){$(this).find(".btn-hidden").addClass("hidden")}),core.curModule("bind8")){var $table_data_recursive_tree=$(".container-fluid table[data-recursive_tree]");$table_data_recursive_tree.length&&($table_data_recursive_tree.removeClass().addClass("table table-hover"),$.each($table_data_recursive_tree.find('img[src*="images/"]'),function(e,t){var i=$(this);Test.strContains(i.attr("src"),"close")&&i.replaceWith(''),Test.strContains(i.attr("src"),"open")&&i.replaceWith(''),Test.strContains(i.attr("src"),"smallicon")&&i.replaceWith('')}))}if((core.curModule("software")&&(Test.strContains(v___location_file,"tree.cgi")||Test.strContains(v___location_file,"ipkg-tree.cgi"))||core.curModuleFile("cluster-software","edit_host.cgi"))&&($('img[src*="images/"]').each(function(e,t){var i=$(this);i.next("a").removeClass(),Test.strContains(i.attr("src"),"close")&&i.replaceWith(''),Test.strContains(i.attr("src"),"open")&&i.replaceWith(''),Test.strContains(i.attr("src"),"pack")&&i.replaceWith('')}),Test.strContains(v___location_file,"ipkg-tree.cgi")&&$('form[action*="ipkg-tree.cgi"] + script + p > a, form[action*="ipkg-tree.cgi"] + script + p + table +p > a').addClass("margined-top-10")),(core.curModule("mysql")||core.curModule("postgresql"))&&($('a > img[src*="images/left.gif"]').each(function(e,t){$(this).replaceWith('')}),$('a > img[src*="images/right.gif"]').each(function(e,t){$(this).replaceWith('')})),core.curModuleFile("virtual-server","list_scripts.cgi")&&($('td > a > img[src*="images/staroff.gif"]').each(function(e,t){$(this);$(t).attr("src",v___location_prefix+"/images/staroff.gif")}),$('td > a > img[src*="images/staron.gif"]').each(function(e,t){$(this);$(t).attr("src",v___location_prefix+"/images/staron.gif")})),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"status/"&&($('td img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){$(t).replaceWith('')}),$('td img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){$(t).replaceWith('')}),$('td img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){$(t).replaceWith('')})),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/up.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/up.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('')}),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/down.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/down.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('')}),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/not.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/not.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('')}),(core.curModule("proc")||core.curModule("firewall")||core.curModule("firewall6")||core.curModule("shorewall")||core.curModule("shorewall6")||core.curModuleFile("pam","edit_pam.cgi")||core.curModule("filter"))&&($("td a img[src], td label a img[src]").parents("td").addClass("text-center"),$('td img[src*="images/gap.gif"]').replaceWith(''),$('td a img[src*="images/down.gif"]').replaceWith(''),$('td a img[src*="images/up.gif"]').replaceWith(''),$('td a img[src*="images/after.gif"]').replaceWith(''),$('td a img[src*="images/before.gif"]').replaceWith('')),(core.curModule("squid")||core.curModule("cron"))&&($('td a img[src*="images/movedown.gif"]').replaceWith(''),$('td a img[src*="images/moveup.gif"]').replaceWith('')),core.curModule("cron")&&($('td a img[src*="images/bottom.gif"]').replaceWith(''),$('td a img[src*="images/top.gif"]').replaceWith('')),$("input").each(function(e,t){"images/ok.gif"==$(this).attr("src")&&($(t).attr("src",v___location_prefix+"/"+$(this).attr("src")),$(this).parents("td").attr("style","white-space: nowrap"))}),core.curModule("commands")&&$("body").addClass("custom"),!$is_history_action){if(core.curModuleFile("custom","view.cgi")){var $_t_title=$('form[action="save.cgi"]').find(".table-title"),$_tt=$_t_title.find("tt").detach();$("#headln2c").find("[data-main_title]").after("
    "+$_tt[0].outerHTML+"
    "),$_t_title.remove()}if($.each($("form > table"),function(){$(this).next('input[type="submit"]')&&$(this).attr("style")}),$.each($("table tr"),function(){$(this).is(":empty")&&$(this).remove()}),$.each($("span > input"),function(){var e=$(this).parent("span").next(".chooser_button"),t=$(this).parent("span").next('input[type="button"][onclick]');$(this).parent("span").next("select");e&&e.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; margin-top:4px !important;").find("i.fa-files-o").css("margin-top","0").addClass("vertical-align-middle"),$(this).parents(".tab-content")&&e.css("margin-top","4px"),t&&(t.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-files-o").css("margin-top","11px").addClass("vertical-align-middle"),t.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-calendar").attr("style","margin-top: 21px !important; font-size: 11px; margin-left: -27px; pointer-events: none;"))}),$.each($('input[type="button"][onclick^="ifield"]'),function(e,t){$(this).css("margin-left","0").css("width","40px").css("height","28px")}),$('.ui_form[action="switch.cgi"] > input.form-control.ui_textbox').next('input[type="button"][onclick^="ifield"]').attr("style","margin-top: 2px !important; margin-bottom: 2px !important; margin-left: 0 !important"),setTimeout(function(){$('.ui_form[action="switch.cgi"] .file_chooser_button_attached').attr("style","font-size: 11px; pointer-events: none; margin-top: 14px !important;")},10),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cshrc/"&&$("textarea").each(function(e,t){$(this).attr("style","height: 20em !important")}),v___location_path!=v___location_prefix+"/acl/"&&v___location_path!=v___location_prefix+"/acl/edit_user.cgi"||$('.ui_grid_table.table-hardcoded .ui_grid_row .ui_grid_cell input[type="checkbox"], .table-hardcoded .col_value input[type="checkbox"]').each(function(e,t){$(this).attr("style","vertical-align: bottom !important")}),core.curModule("custom")||core.curModule("commands")){$(".panel-body > .ui_grid_table.table-hardcoded").each(function(e,t){$(this).attr("style","margin-top: 3px !important")}),$(".panel-body td > .ui_form").each(function(){$(this).attr("style","padding-top: 0 !important")}),$(".panel-body > a.ui_link").each(function(e,t){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html(' '+$(this).text())}),$.each($("td[data-td-e] > .ui_links_row"),function(){var e=$(this).parent();e.find('a[href^="edit_"]').addClass("ui_link_replaced btn btn-xxs btn-transparent btn-link-bordered f__lnk_t_btn-el").css("margin-right","3px").removeClass("ui_link").prepend(' '),e.parents("table").find("thead > tr > th:eq(2)").addClass("pointer-events-none")}).promise().done(function(){$(this).is(".ui_links_row")&&$(this).contents().unwrap()}),$.each($("td.col_value.col_header > .ui_links_row"),function(){}).promise().done(function(){$(this).is(".ui_links_row")&&$(this).contents().unwrap()}),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="form.cgi"]',"btn btn-primary btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-cog","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="run.cgi"], a[href^="sql.cgi"]',"btn btn-success btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-play fa-0_85x","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="view.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-pencil-square-o","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="sqlform.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-cog","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi"],".container-fluid table.ui_grid_table td:last-child",'a.ui_link[href^="edit_"]',"btn btn-default btn-transparent btn-transparent-link btn-xxs vertical-align-top margined-top-1 margined-right-5 pull-right btn-dnwo ---forced","fa-pencil","","","","|"),$('body[class*="custom"] table.ui_grid_table tr td > form .table-responsive table tr:first-child td.col_header button.ui_submit').prepend(''),$.fn.mytxtW=function(e,t){return $.fn.mytxtW.fakeEl||($.fn.mytxtW.fakeEl=$("").hide().appendTo(document.body)),$.fn.mytxtW.fakeEl.text(e||this.val()||this.text()||this.attr("placeholder")).css("font",t||this.css("font")),$.fn.mytxtW.fakeEl.width()+2},$('table.ui_grid_table td input[type="text"], table.ui_grid_table td input[type="password"], table.ui_grid_table td textarea').on("input",function(){var e=$(this).mytxtW()+15;$(this).attr("type"),$(this).css({width:e})}).trigger("input");var is_two_columns=$(".sub_table_container").first().find('td[colspan="4"]').length?0:1,$empty_cells=$("table.ui_grid_table tbody tr.ui_grid_row td.ui_grid_cell");$.each($empty_cells,function(){var e=$(this).html();("
    "==e||e.length<10)&&$(this).remove(),is_two_columns&&($(this).addClass("no-contents"),$(this).parent("tr").addClass("no-contents"))})}if(check_current_file("config.cgi")&&v___location_query&&v___location_query.includes("custom")&&$('[name="width_def"], [name="height_def"], [name="wrap"]').parent().parent("td").parent("tr").addClass("hidden"),snippets.page.render_links($is_history_action),v___location_path==v___location_prefix+"/fdisk/edit_disk.cgi"){var __delete=[];$.each($(".panel-body > table.table.table-striped tbody tr"),function(e,t){($(this).find("td:nth-child(3)").find('img[src*="images/use"]').length||$(this).find("td:nth-child(3)").find('img[src*="images/gap"]').length)&&($(this).find("td:nth-child(3)").remove(),__delete.push(e))}),$.isEmptyObject(__delete)||($(".panel-body > table.table.table-striped thead").find("th:nth-child(3)").remove(),delete __delete)}if(v___location_path==v___location_prefix+"/virtual-server/edit_link.cgi"&&$(".table-hardcoded").find('input[name="open"]').parent("td").parent("tr").remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"&&$('.table.table-striped.table-condensed tr.tr_tag td[data-td-e] input[type="checkbox"]').each(function(e,t){$(this).attr("style","vertical-align: middle !important")}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"&&$("#signal").attr("style","margin-bottom: 0 !important;"),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"procmail/"&&($(".panel-body p:first-child").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),$(".panel-body p:last-child").prev("a.ui_link").remove()),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"cron/"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"cron/index.cgi"||$('.panel-body form.ui_form[action="index.cgi"]').next("script").next("b").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"filter/"&&$(".panel-body > b").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"dhcpd/"){var $dhcp_target=$(".panel-body > p");$dhcp_target.find('a[href*="../software"]').length||$dhcp_target.contents().filter(function(){return 3==this.nodeType}).remove()}v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"htaccess-htpasswd/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"forward/"||$("td table.table-hardcoded.table.table-subtable").removeClass("table-striped"),$(".ui_buttons_hr > td > table.table-hardcoded > tbody > tr > td[nowrap]").each(function(){$(this).parents("table").attr("style","margin-bottom: 15px !important")}),$("textarea.form-control.ui_textarea").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important"),$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")}),$("textarea.form-control.ui_textarea").next("br").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important"),$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")}),$(".table-hardcoded > tbody > tr > td > input.form-control.ui_textbox").next('button[type="button"].ui_button').each(function(){$(this).attr("style","margin-top: 2px !important")}),$(".table-hardcoded > tbody > tr > td.col_label b a, .ui_table_row td a").each(function(e,t){$(this).attr("href")||$(this).attr("style","color: #333; text-decoration: none; cursor:default")}),$('input[name="all_weekdays"], .ui_grid_cell > table.table-condensed, table.table-hardcoded table.table-condensed, select[multiple][name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important; padding-left:2px; padding-right:2px;")}),$('input[type="submit"]').each(function(){$(this).addClass("btn btn-default")}),$("table tr th").each(function(){$(this).text()&&$(this).attr("style","width: auto")}),$("table thead th:not(.table-title)").each(function(){$(this).css("border-top","none"),$(this).css("border-bottom","none")}),$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1&&(!$("body").hasClass("file-manager")&&$("body").addClass("file-manager"),$("#headln2l").prepend("'));var $table_header_links=$(".panel-heading > .header > div a");$.each($table_header_links,function(){if($(this).attr("href")&&$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==v___location_directory_trail_slashed||$(this).attr("href").indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"||$(this).attr("href").indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"||$(this).attr("href").indexOf("restart_zone.cgi")>-1||$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1||$(this).attr("href").indexOf("start.cgi")>-1||$(this).attr("href").indexOf("stop.cgi")>-1||"//"==$(this).attr("href")&&(v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi")||$(this).attr("href").indexOf("delete_")>-1||$(this).attr("href").indexOf("list_mail.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1||$(this).attr("href").indexOf("help.cgi")>-1){if($.each($(this).next("br"),function(){$(this).remove()}),$.each($(this).prev("br"),function(){$(this).remove()}),$(this).attr("href").indexOf("help.cgi")>-1){var e=$(this),t=$(this).parent("div");$(this).remove(),t.append(e)}$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==v___location_directory_trail_slashed||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1?($iconized_class="fa-arrow-left",$(this).data("title","").data("back",1)):"//"!=$(this).attr("href")||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi"?$(this).attr("href").indexOf("config.cgi")>-1?($iconized_class="fa-cog",$(this).data("title","")):$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1?$iconized_class="fa-refresh":$(this).attr("href").indexOf("restart_zone.cgi")>-1?$iconized_class="fa-retweet":$(this).attr("href").indexOf("start.cgi")>-1?$iconized_class="fa-play":$(this).attr("href").indexOf("stop.cgi")>-1?$iconized_class="fa-square":$(this).attr("href").indexOf("man/search.cgi")>-1?$iconized_class="fa-search":$(this).attr("href").indexOf("delete_")>-1?$iconized_class="fa-trash-o":$(this).attr("href").indexOf("list_mail.cgi")>-1?$iconized_class="fa-inbox":$(this).attr("href").indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"?$iconized_class="fa-cogs":$(this).attr("href").indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"&&($iconized_class="fa-arrow-left",$(this).data("back",1)):($iconized_class="fa-arrow-left",$(this).attr("href",v___location_prefix+"/webmin/edit_themes.cgi").data("title","").data("back",1));var i=$(this).attr("href").indexOf("help.cgi")>-1;i&&($iconized_class="fa-question-circle",$(this).data("title",""));var a=Convert.strUpInitial(i?theme_language("global_help"):1===$(this).data("back")?core.curModule(v___module_file_manager)?"":theme_language("global_return_to_module_index"):$(this).text());$(this).data("toggle","tooltip").data("title",a).attr("data-container","body").addClass("btn btn-link text-lighter").removeClass("ui_link").append(''),$(this).attr("aria-label",a),$(this).contents().filter(function(){return 3==this.nodeType}).remove(),$(this).tooltip({container:"body",placement:"auto top",trigger:"hover",delay:{show:600,hide:30}}),((v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"apache/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proftpd/")&&($(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1)||$(this).parent("div").find("a")&&1==$(this).parent("div").find("a").length||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1)&&(($(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1)&&$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1?$(this).attr("style","margin-right: 0 !important; padding: 6px 12px"):$(this).attr("style","margin-right: 0 !important"))}$("#headln2l").removeClass("invisible")}),$.each($('td.ui_grid_cell:contains("|")'),function(){$(this).contents().filter(function(){return 3==this.nodeType}).remove()}),$('a[href*="help.cgi"][onclick], a[href*="help.cgi/"], a[href*="showpass.cgi?"][onclick]').attr("onclick","").unbind("click").addClass("help_popup"),$(".help_popup").each(function(){$(this).attr("style","color: #333; text-decoration: none; cursor:help")})}if(!$is_history_action){if($('select.ui_select[name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important")}),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailbox/"&&v___location_path!=v___location_prefix+"/postfix/view_mailq.cgi"||(v___location_file?"list_mail.cgi"==v___location_file&&$('.container-fluid input:not([type="checkbox"]), .container-fluid .ui_form_end_submit, .container-fluid select').addClass("heighter-34").removeClass("heighter-28").css("margin-bottom","-1px"):($(".ui_form_end_submit").css("margin-top","0"),$("input#user").addClass("heighter-34 vertical-align-top")),$("body").find("form").removeAttr("onsubmit"),$header_tables=$("body").find('input[name="from"]').parents(".tab-pane").parent("td"),$header_tables.children("table").hide(),$.each($header_tables.find("input, textarea, select"),function(){$(this).hasClass("ui_select")||$(this).attr("onclick")||"checkbox"==$(this).attr("type")||"submit"==$(this).attr("type")||$(this).attr("style","width: 60%").addClass("inline-block"),$(this).attr("onclick")&&$(this).addClass("inline-block")}),onbeforeunload=null,1==$("body").find('input.ui_hidden[name="html_edit"]').val()&&editor_html_init(["body",2,!1,"edit_web"],"basic"),$("body").find('input[name="from"]').parents(".tab-pane").prev("table").remove(),$("body").find('input[name="from"]').parents(".tab-pane ").parent("td").find("div, table").each(function(e,t){$(this).find(".col_label").css("width","20%"),$(this).find('input[name="subject"]').parent("td").prev("td").find("b").attr("style","font-size: 13px !important"),$(this).find('input[name="subject"]').parents("table").show(),$(this).find('input[name="subject"]').parent("td").find(".submitter").remove()}),$editor_mode_link_container=$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th:last-child"),$editor_mode_link=$editor_mode_link_container.find("a").addClass("editor_mode_link"),$editor_mode_link_container.parent("tr").find("th:first-child").append($editor_mode_link),$editor_mode_link_container.remove(),$editor_mode_link_button=$("body").find('textarea[id="body"]').parents("table").find(".editor_mode_link"),$editor_mode_link_button_state=!!$editor_mode_link_button.attr("href")&&$editor_mode_link_button.attr("href").indexOf("html=0"),$editor_mode_link_button.attr("title",$editor_mode_link_button.text()).addClass("editor_mode_link_button pull-right btn btn-sm "+(-1==$editor_mode_link_button_state?"btn-success":"btn-primary")).html(' '),$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th").find("b").css("padding-left","45px"),$(".editor_mode_link_button").tooltip(),$fileinput_container=$("body").find('a[onclick="return add_ss_attachment()"]'),$fileinput_container.parent("td").contents().filter(function(){return 3==this.nodeType}).remove(),$fileinput_container.remove(),$fileinput_add_another_attachment=$("body").find('a[onclick="return add_attachment()"]'),$fileinput_add_another_attachment.addClass("btn btn-default"),$fileinput_add_another_attachment.text($fileinput_add_another_attachment.text().replace(/\.$/,"")),(v___location_path.indexOf("view_mail.cgi")>-1||v___location_path.indexOf("view_mailq.cgi")>-1)&&($table_title_header_container=$(".ui_form").find("div.table-responsive").first().find(".table-title"),$table_title_links_container=$table_title_header_container.next(),$table_title_links_container.contents().filter(function(){return 3==this.nodeType}).remove(),$table_title_links_container.find("a").removeClass("btn-inverse").parent(".ui_links_row").contents().unwrap(),$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny"),$table_title_links=$table_title_links_container.html(),$table_title_header_container.append($table_title_links),$table_title_links_container.remove(),$table_title_header_container_text_padding=35,$(".table-title > a.table_title_links").each(function(){$table_title_header_container_text_padding=v___location_path==v___location_prefix+"/postfix/view_mailq.cgi"?120:235}),$(".table_title_links_container a").each(function(){$table_title_header_container_text_padding+=$(this).width()}),$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding),$table_title_second_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child"),$table_title_header_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:first-child"),$table_title_links_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:last-child"),2==$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th").length&&$table_title_links_container.remove(),$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-tiny"),$table_title_links_container.find("a").attr("href")&&$table_title_links_container.find("a").attr("href").indexOf("body=1")>-1?$table_title_links_container.find("a").addClass("btn-info"):$table_title_links_container.find("a").addClass("btn-warning"),$table_title_links_container.find("a").removeClass("btn-inverse").parent(".ui_links_row").contents().unwrap(),$table_title_links=$table_title_links_container.html(),$table_title_header_container.append($table_title_links),$table_title_header_container_text_padding=10,$table_title_header_container.find("a").each(function(){$table_title_header_container_text_padding+=$(this).width()}),setTimeout(function(){if($(".ui_form").find("div.table-responsive").first().find("table:first-child").outerWidth()!=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child").outerWidth()){var e=parseInt($(".ui_form").find("div.table-responsive").first().find("table:first-child").width()/2);$table_title_second_container.find(".table-title").addClass("left").find("b").css("padding-left",e-175),$table_title_second_container.find(".pull-right").removeClass("pull-right").addClass("pull-left")}$.each($table_title_second_container.find("table"),function(){$(this).removeClass().addClass("clear-formatting"),$.each($(this).find("td.col_value"),function(){$(this).css("background-color","white")})})},30),$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding),$table_title_header_container.find("b")&&$table_title_header_container.find("b").length>1&&$table_title_header_container.find("b:first-child").text()==$table_title_header_container.find("b:last-child").text()&&$table_title_header_container.find("b:last-child").remove()),$("td > a").on("click",function(){$(this).attr("onclick"),$("input[type=file]").each(function(){$(this).parent("a").hasClass("file-input-wrapper")||$(this).bootstrapFileInput()})}),settings_mailbox_slash_delimiter&&$('.container-fluid select.ui_select[name="id"] > option').each(function(e,t){$(t).text($(t).text().replace(/\./g,"/").replace(/\/\//g,"/"))}),$.each($('table td[align="right"], table td[align="left"]'),function(e,t){$(this).attr("style","border: 0 !important;"),$(this).parents("tbody").attr("style","border: 0 !important;"),$(this).parents("table.table-hardcoded.table.table-striped.table-condensed.table-subtable").removeClass("table-hardcoded table table-striped table-condensed table-subtable")}),$.each($("div.table-responsive > table tbody tr td > table.table-hardcoded"),function(e,t){$(this).find("tr > td.col_label > b").removeAttr("style"),$(this).removeClass("table table-condensed")}),$.each($("div.table-responsive > table tbody tr td > div.tab-pane"),function(e,t){$(this).find("table").removeClass("table"),$(this).parents("div.table-responsive").find("table").removeClass("table-striped table-subtable")}),$.each($('div.table-responsive > table tbody tr td > div.tab-pane .col_value > input[type="button"][onclick^="ifield"]'),function(e,t){$(this).attr("style","margin-left: 0; margin-top: -27px !important")})),$.each($(".barchart"),function(){$(this).find("img").attr("height",4)}),$("a").each(function(){$(this).attr("href")||$(this).addClass("no_effect")}),$.each($(".container-fluid input:not(.ui_upload)"),function(){"28px"==$(this).css("height")&&$(this).prev("input").addClass("heighter-28")}),(core.curModule("syslog")||core.curModule("phpini"))&&$(".container-fluid .chooser_button + .ui_form_end_submit").addClass("heighter-28"),core.curModuleFile("gnupg","edit_key.cgi")&&$(".container-fluid .sub_table_container .table-condensed .btn-success").addClass("heighter-28").removeClass("btn-success").addClass("btn-default"),core.curModuleFile("virtual-server","backuplog.cgi")&&$('.container-fluid input[name="search"]').addClass("margined-top--1"),core.curModuleFile("usermin","list_sessions.cgi")&&$('.container-fluid input[name="user"] + button + button').addClass("heighter-34-force"),$.each($(".container-fluid select"),function(){32==$(this).next("input").outerHeight()&&$(this).addClass("heighter-34")}),$.each($(".container-fluid .ui_buttons_row input, .container-fluid .ui_buttons_row select"),function(){$(this).addClass("heighter-34")}),core.curModuleFile("gnupg","list_keys.cgi")&&$('.container-fluid input[id="id"]').addClass("heighter-34"),core.curModule("language")&&$('select[name="lang"]').addClass("heighter-34"),core.curModuleFile("virtual-server","edit_script.cgi")){var x1z1x1c41=$('input[name="version"]');x1z1x1c41.length&&x1z1x1c41.attr("style",x1z1x1c41.attr("style").replace("n: middle","n: bottom !important")).addClass("heighter-34")}if($.each($("tr > .ui_form"),function(){$(this).next().next("td").find("input.submitter")&&$(this).next().next("td").find("input.submitter").addClass("heighter-34")}),$.each($("input.heighter-34").next(".chooser_button"),function(){$(this).addClass("heighter-34"),$(this).find(".fa.fa-files-o").css("margin-top","0").addClass("vertical-align-middle")}),setTimeout(function(){$.each($(".container-fluid select"),function(){32==$(this).next("input").outerHeight()||32==$(this).prev("input").outerHeight()?$(this).addClass("heighter-34").removeClass("heighter-28"):28!=$(this).next("input").outerHeight()&&28!=$(this).prev("input").outerHeight()||$(this).addClass("heighter-28").removeClass("heighter-34")})},1),core.curModule("term")||core.curModuleFile("server-manager","login.cgi")){var tmp__is__m__term=$("iframe");if(tmp__is__m__term.length){var $this=tmp__is__m__term;$this.on("load",function(){$this.contents().find("#term").css("width","99.3%").css("height","96vh").css("margin-top","1px")}),$(this).next("br").remove().next('input[type="button"]').remove(),$(this).next('input[type="button"]').remove(),$(this).next("p").remove()}}if($.each($(".chooser_button"),function(){$(this).prev("input").attr("style")&&$(this).prev("input").attr("style").indexOf("max-width: 100%")>-1&&$(this).prev("input").css("max-width","93%")}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi"&&1==settings_sysinfo_link_mini&&$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$.each($('input[value="..."], input[value=" ..."], input[value=" ..."], input[value="... "], input[value="... "], input[value=" ... "], input[value=" ... "]'),function(){$(this).after(''),$(this).attr("value","").addClass("file_chooser_button_attached_input")}),$.each($(".chooser_button"),function(){$(this).prev("input").css("margin-top","2px").css("margin-bottom","2px")}),$.each($(".file_chooser_button_attached"),function(){$(this).prev('input[type="button"]').prev("input").css("margin-top","2px").css("margin-bottom","2px"),$(this).parents(".ui_buttons_label").length||$(this).parents(".table-subtable").length||$(this).css("margin-top","11px")}),$.each($(".container-fluid .ui_form > .file_chooser_button_attached"),function(){($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length||$(this).next(".heighter-34")&&$(this).next(".heighter-34").length)&&($(this).css("margin-top","16px"),$(this).prev("input[onclick]").css("width","40px"))}),$.each($('.container-fluid .ui_form[action="init_cache.cgi"] > .file_chooser_button_attached'),function(){($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length||$(this).next(".heighter-34")&&$(this).next(".heighter-34").length)&&$(this).css("margin-top","14px")}),$.each($(".col_value > .file_chooser_button_attached"),function(){$(this).prev("input[onclick]").css("width","40px").css("margin-left","0")}),v___location_path!=v___location_prefix+"/virtualmin-mailman/"&&v___location_path!=v___location_prefix+"/virtualmin-mailman/index.cgi"||$("input[name^=reset_]").addClass("heighter-28"),v___location_path!=v___location_prefix+"/software/edit_pack.cgi"&&v___location_path!=v___location_prefix+"/apache/show.cgi"&&v___location_path!=v___location_prefix+"/proc/index_search.cgi"||$.each($(".container-fluid .panel-body .btn:not(.chooser_button)"),function(){$(this).removeClass("heighter-28").addClass("heighter-34")}),v___location_path!=v___location_prefix+"/virtualmin-svn/"&&v___location_path!=v___location_prefix+"/virtualmin-svn/index.cgi"||$.each($("tr > td[data-td-e] > button"),function(){$(this).addClass("btn-hover-wash_off-in-row bhw-sm heighter-28 heighter-28-force margined-top-2 margined-bottom-2"),$(this).find(".fa-backup").length&&$(this).removeClass("heighter-28-force")}),v___location_path!=v___location_prefix+"/virtualmin-init/"&&v___location_path!=v___location_prefix+"/virtualmin-dav/list_shares.cgi"&&v___location_path!=v___location_prefix+"/squid/edit_acl.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-nginx/"&&v___location_path!=v___location_prefix+"/fdisk/edit_disk.cgi"&&v___location_path!=v___location_prefix+"/server-manager/edit_newlinks.cgi"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"backup-config/"||$.each($(".container-fluid .panel-body .ui_link_re-replaced"),function(){$(this).addClass("btn-tiny").removeClass("heighter-34")}),v___location_path==v___location_prefix+"/pam/"&&$(".panel-body > a.ui_link").addClass("btn-tiny"),v___location_path!=v___location_prefix+"/software/"&&v___location_path!=v___location_prefix+"/software/index.cgi"||($(".container-fluid input#search").addClass("heighter-34 vertical-align-top"),$('form[action="file_info.cgi"] > .ui_form_end_submit').addClass("heighter-28 heighter-28-force margined-top-0")),v___location_path==v___location_prefix+"/software/tree.cgi"&&$(".ui_link").addClass("margined-top-10"),v___location_path==v___location_prefix+"/syslog/save_log.cgi"&&($.each($(".container-fluid .heighter-34"),function(){$(this).removeClass("heighter-34").addClass("heighter-28")}),$("form:first").next("script").next("br").remove(),$("form:last").css("margin-top","5px")),v___location_path==v___location_prefix+"/status/edit_mon.cgi"&&($('td.col_value > table[cellspacing="1"] tbody').attr("style","border: 0 !important;"),$(".opener_trigger:last-child").css("font-size","16px"),$.each($("table.sub_table_container td > font"),function(){$(this).parents("tbody"),$(this).contents().unwrap().wrap(' ')})),v___location_path!=v___location_prefix+"/shell/"&&v___location_path!=v___location_prefix+"/shell/index.cgi"&&v___location_path!=v___location_prefix+"/server-manager/shell.cgi"&&v___location_path!=v___location_prefix+"/server-manager/massshell.cgi"||($.each($(".container-fluid .btn:not(.btn-link), .container-fluid select, .container-fluid input"),function(){$(this).removeClass("heighter-28").addClass("heighter-34"),$(this).is('input[type="button"]')&&$($(this).addClass("submitter")),$(".form-control.sidebar-search").val()&&$(".form-control.sidebar-search").val().trim().startsWith("!")&&$(".form-control.sidebar-search").val(""),$(".ui_form").find("input.btn.btn-default:first").addClass("btn-success")}),$(".container-fluid input#cmd").focus(),setTimeout(function(){var e=$("#content"),t=e.find(v___page_container).outerHeight();e.scrollTop(t)})),$.each($("input"),function(){28==$(this).outerHeight()&&28!=$(this).next("input").outerHeight()&&$(this).is(':not([type="hidden"])')&&$(this).next("input").addClass("heighter-28")}),$.each($(".container-fluid select"),function(){32==$(this).outerHeight()&&32!=$(this).next("select").outerHeight()&&$(this).next("select").addClass("heighter-34")}),v___location_path==v___location_prefix+"/cluster-passwd/edit_passwd.cgi"&&$.each($("input + button"),function(e,t){"28px"==$(this).css("height")&&$(this).addClass("heighter-28").css("line-height","12px").css("margin-top","2px")}),v___location_path==v___location_prefix+"/cluster-shell/"||v___location_path==v___location_prefix+"/cluster-shell/index.cgi"){var $__btn_to_rep=$('button[onclick*="run.cgi?clear"]');if($__btn_to_rep.length){var btn_txt=$__btn_to_rep.text();$__btn_to_rep.replaceWith('")}}if(v___location.pathname!=v___location_prefix+"/virtual-server/pro/history.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/bwgraph.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/history.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/one_history.cgi"||($("body").find("table.ui_form_end_buttons .btn.btn-default.submitter.ui_submit").addClass("btn-success"),$(".panel-body > table tr td .ui_link_empty").each(function(e,t){$(this).addClass("btn-tiny ui_link_replaced")}),$(".panel-body > table a").each(function(e,t){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).text()&&$(this).text().indexOf("<<")>-1&&($(this).text($(this).text().replace(/\<\ '+$(this).text())),$(this).text()&&$(this).text().indexOf(">>")>-1&&($(this).text($(this).text().replace(/\>\>/,"")),$(this).html($(this).text()+' ')),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html(' '+$(this).text()),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html(' '+$(this).text()),$(this).parents("table").css("margin-bottom","3px")}),$("#history").next("table.ui_grid_table").next("a").length?($("#history").next("table").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank"),$("#history").next("table").next("a").text($("#history").next("table").next("a").text().replace(/\.\.$/,"")),$("#history").next("table").next("a").html(' '+$("#history").next("table").next("a").text())):($("#history").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank"),$("#history").next("a").text($("#history").next("a").text().replace(/\.\.$/,"")),$("#history").next("a").html(' '+$("#history").next("a").text())),$(".panel-body > hr + b").attr("style","font-size: 16px; font-weight: normal;"),$(".panel-body > hr + b").text($(".panel-body > hr + b").text().replace(/\:$/,"")),onLoad()),$.each($('tr > td[valign="top"][width="50%"]'),function(){var e=$(this).attr("style");$(this).attr("style","vertical-align: top !important; "+(e||""))}),$("body table").each(function(e,t){$(this);$(t).hasClass("table")||$(t).hasClass("header")||$(t).hasClass("ui_form_end_buttons")||$(t).hasClass("ui_table")||($(t).addClass("table-hardcoded"),$t_uri_usermin&&($(t).addClass("table-subtable"),$(t).find("tr.thead").length||$(t).hasClass("sub_table_container table-hardcoded table-subtable")?($(t).find("tr.thead").attr("style","border: 1px solid #efefef"),$(t).attr("style","border: 1px solid #efefef")):$(t).attr("style")&&v___location_path.indexOf("view_mail.cgi")>-1||$(t).attr("style","margin-top: 10px;")))}),v___location_path==v___location_prefix+"/virtual-server/list_scripts.cgi"&&table_data_init($("#att_existing > form > table.table.table-striped.table-condensed, #att_new > form > table.table.table-striped.table-condensed"),!1,!1,{orderable:!1,targets:[0,-1]}),v___location_path==v___location_prefix+"/virtual-server/edit_newscripts.cgi"&&table_data_init($("#att_summary > table.table.table-striped.table-condensed")),v___location_path!=v___location_prefix+"/server-manager/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-htpasswd/index.cgi"||table_data_init($("body form > table.table.table-striped.table-condensed")),($('body[class*="status"]').length&&!v___location_file&&!$('body[class*="smart-status"]').length||v___location_path==v___location_prefix+"/servers/"||v___location_path==v___location_prefix+"/servers/index.cgi"||v___location_path==v___location_prefix+"/webminlog/search.cgi")&&table_data_init($("table.table-striped.table-condensed")),core.curModule("smart-status")&&($('select[name="drive"]').addClass("heighter-34"),$('select[name="drive"] + .ui_form_end_submit').addClass("heighter-34")),$('body[class*="ldap-useradmin"]').length&&table_data_init($("form > table.table.table-striped.table-condensed")),v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"&&table_data_init($(".table.table-striped.table-hover.table-condensed"),!1,!1,{orderable:!1,targets:[0,-1]}),v___location_path!=v___location_prefix+"/servers/"&&v___location_path!=v___location_prefix+"/servers/index.cgi"||($(".ui_checked_columns td table tr td").find('a.ui_link[href*="edit_serv.cgi"]').addClass("margined-left-4 label label-sm label-primary hidden").html(''),$(".ui_checked_columns").hover(function(){$(this).find("td table tr a.ui_link.label.hidden").removeClass("hidden")},function(){$(this).find("td table tr a.ui_link.label").addClass("hidden")})),$.each($('table.table.table-striped.table-condensed.dataTable.no-footer > thead > tr[role="row"]:first-child'),function(e,t){$(this).attr("style","border-top: 4px solid #f2f2f2 !important")}),$.each($('button[onclick^="ifield"].btn.btn-default.ui_button'),function(){$(this).addClass("file_chooser_button_emulate")}),$.each($(".file_chooser_button_emulate"),function(){$(this).find(".fa-files-o").length||$(this).append(''),"28px"==$(this).prev("input").css("height")&&$(this).addClass("heighter-28")}),$.each($("label > img"),function(e,t){$(this).attr("style","vertical-align: baseline !important")}),$.each($('select[multiple][name="weekdays"]'),function(){$(this).parents('td[valign="top"], td[data-td-e]').attr("style","vertical-align: top !important"),$(this).parents('table[width="100%"]').parents(".ui_radio_table.table-hardcoded").css("width","100%")}),$.each($("label").find("br"),function(){$(this).parent("label").prev(".aradio, .acheckbox").attr("style","margin-left: 0 !important;"),$(this).parent("label").next(".aradio, .acheckbox").attr("style","margin-left: 0 !important;")}),$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".heighter-34").length&&$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".btn").addClass("heighter-34")})}),v___location_path==v___location_prefix+"/cpan/edit_mod.cgi"&&$('.container-fluid form[action="download.cgi"]').next().next().next().find(".submitter.ui_submit").addClass("heighter-34"),v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"){var cpan_button=$('input[name="cpan"]').next("button");cpan_button.length&&(cpan_button.html('').attr("style","width: 40px; height: 28px; vertical-align:middle !important; margin-top:2px; margin-bottom:2px;"),cpan_button.attr("onclick",cpan_button.attr("onclick").replace("document.forms[0]","document.forms[1]")))}function __m_ico_row_tb(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px","padding-bottom":"8px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef")}function __m_ico_row_t(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"18px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef")}if($("form").find(".icons-row:not(.inline-row)").length&&$("form").find(".icons-row").addClass("_processed_").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef").find(".icons-container").addClass("icons-container-stretched"),$(".ui_subheading + .ui_links_row ~ .icons-row:not(.inline-row)").length&&$(".ui_subheading + .ui_links_row ~ .icons-row:not(.inline-row)").addClass("_processed_").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef").find(".icons-container").addClass("icons-container-stretched"),v___location_path!=v___location_prefix+"/lvm/"&&v___location_path!=v___location_prefix+"/lvm/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-support/"&&v___location_path!=v___location_prefix+"/virtualmin-support/index.cgi"&&v___location_path!=v___location_prefix+"/proftpd/virt_index.cgi"&&v___location_path!=v___location_prefix+"/dhcpd/"&&v___location_path!=v___location_prefix+"/dhcpd/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-usermin/"&&v___location_path!=v___location_prefix+"/cluster-usermin/index.cgi"&&v___location_path!=v___location_prefix+"/bind8/"&&v___location_path!=v___location_prefix+"/bind8/index.cgi"&&v___location_path!=v___location_prefix+"/grub/"&&v___location_path!=v___location_prefix+"/grub/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-software/"&&v___location_path!=v___location_prefix+"/cluster-software/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-useradmin/edit_user.cgi"&&v___location_path!=v___location_prefix+"/cluster-useradmin/edit_group.cgi"&&v___location_path!=v___location_prefix+"/cluster-webmin/edit_mod.cgi"&&v___location_path!=v___location_prefix+"/cluster-usermin/edit_mod.cgi"&&v___location_path!=v___location_prefix+"/cluster-software/edit_pack.cgi"&&v___location_path!=v___location_prefix+"/cluster-useradmin/"&&v___location_path!=v___location_prefix+"/cluster-useradmin/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-usermin/"&&v___location_path!=v___location_prefix+"/cluster-usermin/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-webmin/"&&v___location_path!=v___location_prefix+"/cluster-webmin/index.cgi"||__m_ico_row_tb(),v___location_path!=v___location_prefix+"/proftpd/"&&v___location_path!=v___location_prefix+"/proftpd/index.cgi"&&v___location_path!=v___location_prefix+"/mysql/"&&v___location_path!=v___location_prefix+"/mysql/index.cgi"&&v___location_path!=v___location_prefix+"/postgresql/"&&v___location_path!=v___location_prefix+"/postgresql/index.cgi"&&v___location_path!=v___location_prefix+"/bacula-backup/"&&v___location_path!=v___location_prefix+"/bacula-backup/index.cgi"||__m_ico_row_t(),$.each($(".row.icons-row.inline-row"),function(){$(this).find("a.icon_link").contents().filter(function(){return 3==this.nodeType}).remove()}),$.each($(".row.icons-row:not(.inline-row) .icons-container"),function(){$(this).removeAttr("data-title").removeAttr("data-toggle").removeAttr("data-placement").removeAttr("data-container")}),($("body").find(".icons-row > div.icons-container").length||$("body").find(".icons-row > div.small-icons-container").length)&&($.each($(".icons-row .hidden-forged-6"),function(){$(this).find("input").is(":checked")&&$(this).parents('div[class*="icons-container"]').addClass("highlighted")}),$.each($(".hidden-forged-7 > a"),function(){$(this).removeClass(),$(this).parents(".hidden-forged-7").hasClass("hidden-forged-7-small")?($(this).html(' '),$(this).parent().parent().prepend('')):($(this).html(' '),$(this).parent().parent().prepend(''))})),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtualmin-registrar/"&&$.each($("td > input "),function(){$(this).parents("table.table-hardcoded").find('form[action="edit.cgi"]').length&&($(this).css("margin-left","5px"),$(this).parent("td").prev("td").find("select").css("margin-left","5px"))}),v___location_path!=v___location_prefix+"/virtual-server/list_scripts.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_newscripts.cgi"||$('form[action="disable_scripts.cgi"] thead + thead tr th, form[action="disable_scripts.cgi"] tbody + thead tr th, form[action="script_form.cgi"] thead + thead tr th, form[action="script_form.cgi"] tbody + thead tr th').attr("colspan","5"),$.each($(".file_chooser_button_attached"),function(e,t){$(this).prev('input[onclick*=".cgi"]')&&$(this).prev('input[onclick*=".cgi"]').css("width","40px")}),!$t_uri_cloudmin||v___location_path!=v___location_prefix+"/server-manager/add_form.cgi"&&v___location_path!=v___location_prefix+"/server-manager/scan_form.cgi"||$.each($("label"),function(){$(this).find("br").remove()}),(v___location_path==v___location_prefix+"/mysql/view_table.cgi"||v___location_path==v___location_prefix+"/postgresql/view_table.cgi")&&$("td[data-td-e] > table.table-hardcoded")){var $tables=$("form .table.table-striped.table-hover.table-condensed");$tables.addClass("table-resizable").resizeableTableColumns(uri_parse_param("table",vars.source_request)||uri_parse_param("table",vars.source_request)||uri_parse_param("table",v___location_file+"?"+$(vars.previous_request.target).serialize())),$tables.find(".ui_checked_checkbox").length&&$tables.find("thead tr th:first-child").addClass("nonresizable");var $___colspan=$("td[data-td-e] > table.table-hardcoded").parents("table").find("thead").find("tr").find("th").length;$("td[data-td-e] > table.table-hardcoded").parent("td[data-td-e]").attr("colspan",$___colspan).attr("style","padding: 1px !important;")}if(v___location_path==v___location_prefix+"/virtual-server/backup_form.cgi"&&v___location_href&&v___location_href.indexOf("?sched=")>-1&&($("body > div > div > div.panel-body > form > table:nth-child(4) > tbody > tr:nth-child(2) > td").css("display","table-cell"),setTimeout(function(){$("a[href=\"javascript:hidden_opener('hiddendiv_adddest', 'hiddenopener_adddest')\"]").next().attr("style","").addClass("btn btn-tiny btn-default")},10)),"/config.cgi"===v___location_path&&$("thead tr th.table-title").prepend('  '),$.each($('form[action="save_global.cgi"], form[action="save_iptables.cgi"], form[action="save_domain.cgi"],form[action="domain_setup.cgi"],form[action="mass_create.cgi"],form[action="save_roundrobin.cgi"],form[action="save_alert.cgi"], body.time form[action="apply.cgi"]'),function(){$(this).find(".col_header").removeClass("col_header")}),(check_location_resource("/virtual-server/edit_newchangelog.cgi")||check_location_resource("/server-manager/edit_newchangelog.cgi")||check_location_resource("/shell/")||check_location_resource("/shell/index.cgi")||check_location_resource("/server-manager/shell.cgi"))&&$("td.col_value.col_value").removeClass("col_header"),check_location_resource("/ldap-server/edit_ldif.cgi")&&$("span > input.ui_opt_textbox").unwrap(),v___location_path==v___location_prefix+"/server-manager/gvnc.cgi"&&$("body.server-manager p > ").css("height","100%").parent("p").attr("style","display: block; height: "+parseInt($(window).outerHeight()/1.4)+"px"),v___location_path==v___location_prefix+"/spam/edit_simple.cgi"||v___location_path==v___location_prefix+"/spam/edit_header.cgi"){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link),container.remove(),target.find("a").addClass("table_title_links pull-right btn btn-xs btn-warning").attr("style","position: absolute; right: 23px; margin-top: 7px !important;")}if(v___location_path==v___location_prefix+"/server-manager/edit_pass.cgi"&&$('form[action="save_pass.cgi"]').find('a[href*="edit_pass.cgi?"]:not(.btn)').length){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link),container.remove(),target.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny").attr("style","position: absolute; right: 20px; margin-top: 3px !important;")}if($('.panel-default + a[href="/virtual-server/"]').attr("href",v___location_prefix+"/virtual-server/index.cgi"),$('.panel-default + a[href="/server-manager/"]').attr("href",v___location_prefix+"/server-manager/index.cgi"),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"acl/"){$("body.acl > div > div > div.panel-body > form > div > table > tbody > tr > td > table > tbody > tr:nth-child(1) > td > table > tbody").attr("style","border: 0 !important");var $t__acl_title=$("br").next(".ui_grid_table.table-hardcoded").find("tbody").addClass("border-global-color").parent("table").prev("br").prev("b");$("br").next(".ui_grid_table.table-hardcoded").css("margin-bottom","3px"),$.each($t__acl_title,function(e,t){""==$(this).text()&&($(this).next("br").remove(),$(this).remove())}),$t__acl_title.attr("style","margin-bottom: -3px !important").next("br").remove()}$('body[class*="bandwidth"]').length&&$(".fa.fa-calendar.file_chooser_button_attached").attr("style","font-size: 11px; margin-top: 9px !important; pointer-events: none; margin-left: -27px !important;"),v___location_path!=v___location_prefix+"/mysql/exec_form.cgi"&&v___location_path!=v___location_prefix+"/postgresql/exec_form.cgi"||($('select[name="old"], input[name="clear"], select[name="charset"]').removeClass("heighter-34").addClass("heighter-28"),$('input[name="clear"]').attr("style","margin-bottom: 3px !important;"),$('select[name="old"]').attr("style","margin-bottom: 3px !important; margin-right: 0 !important;")),"config.cgi"!=v___location_file&&"uconfig.cgi"!=v___location_file||"mysql"!=v___location_query&&"postgresql"!=v___location_query||$('input[name="style"]').parents("td.col_value").parent("tr").after(' '+theme_language("xsql_fit_content_screen_height")+' "),core.curModuleFile("virtual-server","edit_limits.cgi")&&0===get_access_level()&&setTimeout(function(){var e="settings_show_webmin_tab_"+$("#headln2c tt").text().replace(/\..*/g,"").replace(/\.|\-/g,"");snippets.inject_extra_option("tr/yes:no",$('input[name="demo"]'),e,theme_language("settings_show_webmin_tab"))},300),$(".ui_post_header.hidden").html()&&$(".ui_post_header.hidden").html().length>5?($("#headln2c").append(""+$(".ui_post_header.hidden").html()+""),$(".ui_post_header.hidden").remove()):$("#headln2c").append('

    ')}if(v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){if(!$is_history_action){var status_id="#system-status",$status_panel_content=$(status_id+" .panel-body");!$status_panel_content.text().trim()&&$status_panel_content.parent(status_id).remove(),$('#status_services-status-1-collapse .tr_tag [data-td-e] > img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('')}),$('#status_services-status-1-collapse .tr_tag [data-td-e] > img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('')}),$('#status_services-status-1-collapse .tr_tag [data-td-e] > img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('')}),$.each($(".piechart"),function(){isNaN($(this).data("percent"))&&$(this).parents(".text-center").remove()}).promise().done(function(){var e=$("span[data-charts]"),t='div[class^="col-md-"]',i=e.parents(".row").find(t).length,a=12/i,n=2===i?"3":"1"===i?"6":"";a=n||a;$.each(e.parents(".row"),function(e,n){if($(this).find(t).removeClass().addClass("col-md-"+(2===i?6:a)+" col-md-"+1.5*a+" col-xs-"+1.5*a+" col-xs-"+2*a+" text-center xx"),3===i){$(this).find(t).last().removeClass("col-xs-6 col-xs-8").addClass("col-xs-12")}})});var sorted_data=$(".__page .panel-group .panel-default").sort(function(e,t){return $(e).data("sorter")>$(t).data("sorter")?1:-1}).appendTo("#extended_sysinfo-1.panel-group");$('span[data-entry="nf_seen"]').parent("button").on("click",function(e){e.preventDefault();var t=$(this),i=$('form[action*="seen_newfeatures.cgi"]');$.ajax({type:"GET",url:i.attr("action"),data:!1,statusCode:{200:function(){t.parents(".panel.panel-default").remove()}}})});var aria_label_attr="aria-label";$.each($(".__page [data-title]:not(["+aria_label_attr+"]), .__page [title]:not(["+aria_label_attr+"])"),function(e,t){$(this).attr(aria_label_attr,$(t).attr("data-title")||$(t).attr("title"))})}snippets.datetime.tictac(1,1),setTimeout(theme_title_generate),$("#live_stats-collapse").on("shown.bs.collapse",function(){if(stats&&stats.general){var e=[];Object.keys(stats.general).forEach(function(t){t.startsWith("chart_")&&e.push(t)}),e.forEach(function(e){var t=stats.general[e];"function"==typeof t.resizeListener&&t.resizeListener()})}})}if($is_history_action)reset_dnd_uploads(),init_dnd_uploads();else{if(v___location_path==v___location_prefix+"/virtual-server/edit_phpmode.cgi"&&$("#hiddendiv_phpinfo table tbody tr").css("border","1px solid #"+(v___theme_night_mode_enabled?"393b3f":"eee")),$.each($('a[href*="showpass.cgi?"][onclick]'),function(){$(this).html('').css("color","#555")}),v___location_path==v___location_prefix+"/webmin/edit_startpage.cgi"&&($('select[name="deftab"]').parents("td.col_value").parent("tr").hide(),$('select[name="gotomodule"] option').each(function(){("virtual-server"==$(this).val()||"server-manager"==$(this).val())&&$(this).remove()})),v___location_path==v___location_prefix+"/webmin/edit_ui.cgi"||v___location_path==v___location_prefix+"/usermin/edit_ui.cgi"){$('select[name*="sysinfo"], select[name*="dateformat"], input[name*="showlogin"], input[name*="showhost"], input[name*="sizefile_def"], input[name*="sizeuser_def"], input[name*="sizemodule_def"], input[name*="sizeusers_def"], input[name*="sizemodules_w"], input[name*="cs_link_def"], input[name*="cs_header_def"], input[name*="cs_table_def"], input[name*="cs_text_def"], input[name*="cs_page_def"], input[name*="width_def"], input[name*="height_def"], input[name*="sizedate_def"], input[name*="texttitles"]').parents("td.col_value").parent("tr").addClass("hidden"),$(".sub_table_container tr td.no-border").parent("tr").addClass("hidden");var $container_ui_interface=$(".container-fluid .panel-body");$container_ui_interface.contents().filter(function(){return 3==this.nodeType}).remove(),$container_ui_interface.find("p").first().remove()}if((check_location_resource("/config.cgi?virtual-server")||check_location_resource("/config.cgi?server-manager"))&&($('input[name="theme_image"], input[name="theme_link"], input[name="theme_alt"]').parents("td.col_value").parent("tr").hide(),0===$('input[name="show_sysinfo"]:checked').length&&$('input[name="show_sysinfo"][value="1"]').attr("checked","checked")),v___location_path==v___location_prefix+"/virtual-server/edit_resel.cgi"&&$('input[name="logo"][id="logo"], input[name="link"]').parents("td.col_value").parent("tr").hide(),v___location_path==v___location_prefix+"/virtual-server/edit_newfeatures.cgi"){$('.container-fluid tr td:last-child label:contains("|")').replaceText(/\|/gi,"");var $targets_features_and_plugins_links=$(".container-fluid td a.ui_link");$targets_features_and_plugins_links.addClass("ui_link_replaced btn btn-transparent btn-link-bordered f__lnk_t_btn-el margined-left--2 btn-xxs").removeClass("heighter-34").removeClass("ui_link btn-inverse btn-tiny").prepend(''),$.each($targets_features_and_plugins_links,function(){var e=$(this).parent();e.is(".ui_links_row")&&(e.parent().is("label")&&e.parent().contents().unwrap(),e.contents().unwrap()),$(this).parents("td.cursor-pointer").attr("data-td-e",1)})}if($("#headln2l .btn .fa-arrow-left").length){$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1||$("#headln2l .btn .fa-arrow-left").parent("a").attr("href",$("#headln2l .btn .fa-arrow-left").parent("a").attr("href").replace("index.cgi",""));var v___URI=URI(v___location);v___location_file=v___URI.filename()}$("#headln2r, #headln2l").prepend('
    ').append("
    "),$("#headln2r a").detach().appendTo("#headln2r .btn-group"),$("#headln2l a").detach().appendTo("#headln2l .btn-group"),$.support.spa||$("body").hasClass("file-manager")||$("#headln2l .btn-group").prepend(''),$.support.spa||$("body").hasClass("file-manager")||get_server_data("data-slider-fixed",0),$.each($(".ui_form_end_submit"),function(){if(v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/kill_proc.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/renice_proc.cgi"&&"edit_dbase.cgi"!=v___location_file&&"edit_pam.cgi"!=v___location_file&&"list_records.cgi"!=v___location_file&&!core.curModule("mailbox")&&!core.curModule("mailboxes")){var e=$(this).parent().find(".ui_form_end_submit");!e.parents(".btn-group").length&&e.length>1&&$(this).parent().find(".ui_form_end_submit, .ui_form_end_submit + input").wrapAll('
    ')}}).promise().done(function(){$.each($(".end_submits"),function(e,t){($(this).prev(".heighter-28").length||"28px"==$(this).prev("input, select").css("height"))&&$(this).find(".ui_form_end_submit").addClass("heighter-28");var i=$('select[name*="parentuser"]').first();if(core.curModule("virtual-server")&&1===i.length){var a=i.addClass("heighter-34 pull-left").attr("style","margin-top: -1px !important; margin-right: -1px;").detach();$('button[name="add1"] + input').after(a)}})}),$.each($(".btn-group").find("span"),function(){$(this).not("[class]").length&&!$.trim($(this).text()).length&&$(this).remove()}),2===$(".panel-default").nextAll("a.btn.btn-primary").length&&$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left"),3===$(".panel-default").nextAll("a.btn.btn-primary").length&&($(".panel-default").next("a.btn.btn-primary").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-left"),$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left")),v___location_path==v___location_prefix+"/init/reboot.cgi"&&$("input.btn-success").removeClass("btn-success").addClass("btn-warning"),v___location_path==v___location_prefix+"/init/shutdown.cgi"&&$("input.btn-success").removeClass("btn-success").addClass("btn-danger"),$.support.spa||page_display(),$("table tr.thead td").addClass("tdhead"),(core.curModuleFile("virtual-server","edit_newchroot.cgi")||core.curModuleFile("virtual-server","edit_newglobal.cgi")||core.curModuleFile("virtual-server","edit_newshells.cgi")||core.curModuleFile("virtual-server","edit_newshells.cgi")||core.curModuleFile("virtual-server","view_backuplog.cgi")||core.curModuleFile("virtual-server","edit_phpver.cgi")||core.curModuleFile("virtual-server","edit_spf.cgi")||core.curModuleFile("virtual-server","ratelimit.cgi")||core.curModuleFile("virtual-server","edit_newfields.cgi")||core.curModuleFile("server-manager","edit_docker.cgi")||core.curModuleFile("server-manager","edit_vserver.cgi")||core.curModuleFile("server-manager","edit_zone.cgi")||core.curModuleFile("server-manager","edit_openvz.cgi")||core.curModuleFile("server-manager","list_locations.cgi")||core.curModuleFile("server-manager","edit_lxc.cgi")||core.curModuleFile("server-manager","list_ips.cgi")||core.curModuleFile("squid","edit_cachemgr.cgi")||core.curModuleFile("fsdump","edit_dump.cgi")||core.curModuleFile("mysql","backup_form.cgi")||core.curModuleFile("mysql","table_form.cgi")||core.curModuleFile("postgresql","backup_form.cgi")||core.curModuleFile("cron","edit_cron.cgi")||core.curModuleFile("cluster-copy","edit.cgi")||core.curModuleFile("cluster-cron","edit.cgi")||core.curModuleFile("webalizer","edit_log.cgi")||core.curModuleFile("apache","edit_global.cgi")||core.curModuleFile("logrotate","edit_sched.cgi")||core.curModuleFile("fetchmail","edit_cron.cgi")||$('body[class*="bind8"]').length&&v___location_file||$('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_sql.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_cmd.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_file.cgi"==v___location_file)&&$(".table:not(.opener_table_style)").removeClass("table-hover").addClass("no-hover");var dynamic_switch_off_on=$(".fa-toggle-switch-off").parent("button.btn-default");if(1===dynamic_switch_off_on.length){var dynamic_switch__val=dynamic_switch_off_on.parent("td").find('input[type="radio"]:checked').val();"1"==dynamic_switch__val&&dynamic_switch_off_on.find(".fa-toggle-switch-off").addClass("fa-toggle-switch").removeClass("fa-toggle-switch-off")}var $parent_td=dynamic_switch_off_on.parents("td");$parent_td.find('[type="radio"]').length&&$parent_td.addClass("vertical-align-bottom");var my_editor_page=$('form[action*="manual"] > select[name="file"], form[action*="manual.cgi"] > select[name="manual"], form[action*="edit_"] > select[name="file"]');my_editor_page.length&&(my_editor_page.addClass("heighter-34"),$('form[action*="manual"], form[action*="edit_"]').css("margin-bottom","2px")),core.curModule("firewalld")&&($("select#zone").addClass("heighter-34"),$('form[action="save_ifaces.cgi"] button').addClass("heighter-28-force")),$('body[class*="proftpd"] .table-hardcoded tr td > input + input.btn.btn-default').removeClass("heighter-28").addClass("heighter-34").prev("input").addClass("heighter-34"),$('body[class*="proftpd"] form[action="find_ftpaccess.cgi"] > input:first-child').removeClass("heighter-34").addClass("heighter-28"),"edit_simple.cgi"==v___location_file&&$('body[class*="spam"]').length&&$("tr td").contents().filter(function(){return 3==this.nodeType}).remove(),"edit_awl.cgi"==v___location_file&&$('body[class*="spam"]').length&&$('input[name="user"]').next("input").addBack().addClass("heighter-34"),core.curModuleFile("usermin","list_sessions.cgi")&&$('.container-fluid #user, .container-fluid input[type="button"]').addClass("heighter-34"),(core.curModuleFile("htaccess-htpasswd","")||core.curModuleFile("htaccess-htpasswd","index.cgi"))&&($("#search, .chooser_button").addClass("heighter-34").css("margin-bottom","-1px"),$("#search").css("margin-top","1px"),$('form[action*="search.cgi"] .ui_form_end_submit').css("margin-top","2px").css("margin-right","-4px")),(core.curModuleFile("mailboxes","")||core.curModuleFile("mailboxes","index.cgi"))&&($("#user").addClass("heighter-34 vertical-align-middle margined-bottom-1"),$(".chooser_button").addClass("margined-top-2 margined-bottom-2")),core.curModuleFile("mailboxes","list_mail.cgi")&&$("#mfolder1, #mfolder2").addClass("heighter-34").css("margin-bottom","-1px").css("margin-top","-1px"),core.curModuleFile("quota","list_users.cgi")&&$("#user, #user + input").addClass("heighter-34"),core.curModuleFile("quota","list_groups.cgi")&&$("#group, #group + input").addClass("heighter-34"),(core.curModuleFile("apache","htaccess.cgi")||core.curModuleFile("virtualmin-registrar","index.cgi")||core.curModuleFile("virtualmin-registrar",""))&&$(".ui_form_end_submit").addClass("heighter-28-force");var attempt_make_all_elem=$('form:not([action="save_log.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > select, form:not([action="save_log.cgi"], [action="save_net.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > input, form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > select, form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > input, form[action="save_newglobal.cgi"] > table tbody tr td input, form[action="save_newfields.cgi"] > table tbody tr td input, form[action="save_newfields.cgi"] > table tbody tr td select, form[action="save_newshells.cgi"] > table tbody tr td select, form[action="save_newshells.cgi"] > table tbody tr td input, form[action="save_linkcats.cgi"] > table tbody tr td input, form[action="save_gen.cgi"] > table tbody tr td input ');$.each(attempt_make_all_elem,function(e,t){$(this).parent().find("input[data-mmclick]").length||$(this).parent().find("button[data-mmclick]").length||$(this).parent().find('input[onclick*="window.open"]').length||$(this).parent().find('button[onclick*="window.open"]').length||($(this).prev(".awobject").length?$(this).css("width","auto"):1==$(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length?$(this).css("width","100%").css("min-width","100%"):2==$(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length&&($(this).parent().find("input, select").first().css("width","39%"),$(this).parent().find("input, select").last().css("width","60%").css("float","right")))});var $edit_new_style_target=$('a[onclick^="window.open(\\"thumb_style.cgi?"]');if(core.curModuleFile("virtual-server","edit_newstyles.cgi")?$edit_new_style_target.html('').addClass("btn btn-transparent btn-link-bordered btn-xxs margined-top--3"):core.curModule("virtual-server")&&$edit_new_style_target.html('').addClass("btn btn-transparent btn-link-bordered heighter-28-force"),$edit_new_style_target.on("click",function(e){e.stopPropagation()}),core.curModuleFile("virtual-server","edit_html.cgi")){$('.ui_form_end_submit:not([name="create"], [name="cancel"], [name="save"], [name="delete"])').addClass("heighter-28-force");var is_html_mode_edit_web_pages=-1!==v___location_query.indexOf("editok")||-1!==v___location_query.indexOf("createok"),is_text_mode_edit_web_pages=-1!==v___location_query.indexOf("textok");is_html_mode_edit_web_pages&&$("#body").length?($("#editok").removeClass("btn-default").addClass("btn-grey"),$("#body").css("display","none"),$("hr + b").addClass("hidden"),$("#body").after('
    '),editor_html_init(["body",2,!0,"edit_web"])):is_text_mode_edit_web_pages&&($("#textok").removeClass("btn-default").addClass("btn-grey"),editor_init_check()&&editor_init($(".container-fluid > .panel > .panel-body textarea"),!1,!1,"static",!1,!0,!1,$is_history_action)),$(".ui_form_end_submit").click(function(){set_onbeforeunload_status(0,0)}),$("input:file").change(function(){var e=$(this);setTimeout(function(){$('form[action*="upload_html.cgi"]').append(e)},500)})}var $magic_button_selector=' body button[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]), body input[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]), body button[onclick*="window.open"][onclick*="choose"][onclick*="cron_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="cron_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="interface_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="interface_chooser.cgi"], body button[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"], body input[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"] ';if($($magic_button_selector).length&&$($magic_button_selector).each(function(){$(this).attr("data-mmclick",$(this).attr("onclick")).removeAttr("onclick"),plugins.chooser.target($(this),0)}),core.curModuleFile("virtualmin-nginx","")||core.curModuleFile("virtualmin-awstats","")||core.curModuleFile("fdisk","edit_disk.cgi")||core.curModuleFile("virtual-server","edit_newlinks.cgi")||core.curModuleFile("virtualmin-dav","list_shares.cgi")||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"pam/"&&!v___location_file||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"syslog/"&&(!v___location_file||"index.cgi"===v___location_file)||v___location_path==v___location_prefix+"/postfix/master.cgi"){var obj=$('.panel-body > .ui_link, .panel-body > .ui_link_replaced, body[data-uri*="virtualmin-awstats"] .panel-body > form > .ui_link_replaced, body[data-uri*="edit_disk.cgi"] .panel-body p > a.ui_link_replaced, body[data-uri*="edit_newlinks.cgi"] .panel-body > form > .ui_link_replaced, body[data-uri*="edit_newlinks.cgi"] .panel-body > .ui_emptymsg + p > .ui_link_replaced'),text=$.trim(obj.first().text()),href=obj.first().attr("href");"undefined"!=typeof settings_hidden_force_table_header_links?href&&($("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend(' '),obj.next("br").remove(),obj.remove()):(obj.addClass("btn btn-inverse btn-tiny ui_link_replaced"),obj.find(".fa").length||obj.prepend(' '))}if(v___theme_night_mode_enabled||v___theme_night_mode){if($(".opener_shown").length>0){var __tmp_ui_grinTable=$(".opener_container, .opener_container:hidden").find(".ui_grid_table, .ui_grid_table:hidden");__tmp_ui_grinTable.length&&$.each(__tmp_ui_grinTable,function(e,t){$(this).parent("td").attr("style","padding: 0 !important")})}if($(".opener_table_style_small").length>0){var __tmp_ui_hardTable=$(".opener_table_style_small, .opener_table_style_small:hidden").find(".sub_table_container.table-hardcoded, .sub_table_container.table-hardcoded:hidden");__tmp_ui_hardTable.length&&$.each(__tmp_ui_hardTable,function(e,t){$(this).parent("td").attr("style","padding: 0 !important"),$(this).find("tbody tr td").attr("style","padding-left: 3px !important; padding-right: 3px !important")})}}if($('html[data-script-name*="webmin/edit_assignment.cgi"] table table tbody tr td, html[data-script-name*="usermin/edit_assignment.cgi"] table table tbody tr td').hover(function(){$(this).is("td:nth-child(1)")||$(this).is("td:nth-child(3)")?$(this).addClass("hl-ow").next("td").addClass("hl-ow"):($(this).is("td:nth-child(2)")||$(this).is("td:nth-child(4)"))&&$(this).addClass("hl-ow").prev("td").addClass("hl-ow")},function(){$(this).removeClass("hl-ow").next("td").removeClass("hl-ow"),$(this).removeClass("hl-ow").prev("td").removeClass("hl-ow")}),(core.curModuleFile("server-manager","edit_pass.cgi")&&!v___location_query.includes("force=1")||core.curModuleFile("virtual-server","list_databases.cgi")||core.curModuleFileQuery("virtualmin-registrar","edit.cgi","registrar=")||core.curModuleFileQuery("htaccess-htpasswd","edit_user.cgi","new=")||core.curModuleFile("useradmin","edit_group.cgi")||core.curModuleFile("useradmin","edit_user.cgi"))&&setTimeout(function(){$("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend(' ')},0),0==v___user_level||(settings_side_slider_enabled=!1,settings_side_slider_enabled=!1,get_server_data("data-slider-fixed","0"),$("#right-side-tabs, .right-side-tabs-toggler").addClass("hidden")),core.curModuleFile("bind8","edit_zonekey.cgi")&&g__text_breaker($("textarea#ds"),$("#headln2c").find("span[data-sub_title]").text()),core.curModuleFile("virtual-server","edit_script.cgi")&&$('select[name="version"]').addClass("heighter-34 margined-top-4"),core.curModuleFile("virtual-server","transfer_form.cgi")&&$('input[name="newttl"]').addClass("heighter-34"),core.curModule("passwd")&&$('.container-fluid .panel-body input[name="user"]').addClass("heighter-34"),$.each($(".gl-icon-container"),function(e,t){$(this).find("a:first").find("i.fa-edit").length||($(this).find("a:first").prepend(''),$(this).find("a:first").prepend(''))}),v___location_path==v___location_prefix+"/proc/index_search.cgi"&&$(".col_header").removeClass("col_header"),v___module!=v___module_file_manager&&("config.cgi"===v___location_file||"uconfig.cgi"===v___location_file||"settings-user.cgi"===v___location_file)){var visibility=[];"settings-user.cgi"===v___location_file&&(visibility=[1,0,0]),page.render.module_config(visibility)}var $file_upload_inputs=$('input[type="file"]:not([name="upfiles"])');core.curModule("updown")||core.curModuleFile("updown","index.cgi")?init_dnd_uploads():$file_upload_inputs.bootstrapFileInput()}function reset_dnd_uploads(){if(core.curModule("updown")||core.curModuleFile("updown","index.cgi")){var e=$('form.ui_form[action*="upload.cgi"]'),t=e.find(".ui_submit.ui_form_end_submit"),i=e.find(".file-input-wrapper");theme_restore_buttons_class(),$.fn.bootstrapFileInputReset(e),despinnerfy_buttons(0,t),i.find("span").remove(),i.contents().unwrap()}}function init_dnd_uploads(){if(core.curModule("updown")||core.curModuleFile("updown","index.cgi")){var e=$('input[type="file"]:not([name="upfiles"])'),t='form.ui_form[action*="upload.cgi"]',i=$(t+" .ui_submit.ui_form_end_submit");$(t+' input[name^="upload"]:not([name="upload0"])').remove(),e.bootstrapFileInput(["dnd dnd_updown",i]),i.addClass("disabled"),plugins.upload($("#att_upload .ui_form")),init_dnd_form($(t))}}function init_dnd_form(e){e.on("drag dragstart dragend dragover dragenter dragleave drop",function(e){e.preventDefault(),e.stopPropagation()}).on("drop",function(e){droppedFiles=e.originalEvent.dataTransfer.files,$(this).trigger("input").find('input[type="file"]').prop("files",droppedFiles).trigger("change.fiw")}),e.find(".file-input-wrapper").on("dragover dragenter",function(){$(this).addClass("pulse")}).on("dragleave dragend drop",function(){$(this).removeClass("pulse")})}if(core.curModuleFile("virtual-server","index.cgi")||core.curModuleFile("virtual-server","")){var ui_checked_columns="ui_checked_columns",class_sel="."+ui_checked_columns,$checked_columns=v___page_container.find(class_sel),extra_selector=$checked_columns.length?class_sel:'a[href*="edit_domain.cgi"]';$('a[href*="list_users.cgi"], a[href*="list_aliases.cgi"], '+extra_selector).on("click",function(e){var t=$(this);t.off("click"),$(e.target).is('input[type="checkbox"]')||(t.is(class_sel)&&(t=$(this).find("a").first()),plugins.navigation.intersect.virtualmin(t))})}(core.curModuleFile("server-manager","index.cgi")||core.curModuleFile("server-manager","")||vars.requested_page&&vars.requested_page.includes("/server-manager/index.cgi"))&&$('a[href*="mass_update_form.cgi"], .ui_checked_columns').on("click",function(e){var t=$(this);t.off("click"),$(e.target).is('input[type="checkbox"]')||(t.is(".ui_checked_columns")&&(t=$(this).find("a").first()),plugins.navigation.intersect.cloudmin(t))});var codemirror_target_cnt=".container-fluid > .panel > .panel-body";if(editor_init_check()&&editor_init($(codemirror_target_cnt+" textarea"),!1,!1,"static",!1,!0,!1,$is_history_action),core.curModule("cshrc")||core.curModule("plan")||core.curModuleFile("virtual-server","mass_aedit_form.cgi")){var cshrc1=$(codemirror_target_cnt+" form:eq(0) > textarea:visible"),cshrc2=$(codemirror_target_cnt+" form:eq(1) > textarea:visible");$is_history_action&&page_refresh(1),cshrc2.length?(editor_init(cshrc1,!1,!1,"static1",!0,!1,!1,$is_history_action,.36),editor_init(cshrc2,!1,!1,"static2",!0,!1,!1,$is_history_action,.36)):editor_init(cshrc1,!1,!1,"static1",!0,!1,!1,$is_history_action,.51)}if(viewer_init_check()&&viewer_init(),settings_sysinfo_easypie_charts&&v___location_path==v___location_prefix+"/sysinfo.cgi"){var isNR=v___theme_night_mode_enabled||v___theme_night_mode?1:0;$("body").find("#system-status").find(".piechart").easyPieChart({barColor:function(e){return e<50?isNR?"#269373":"#5cb85c":e<85?isNR?"#c38d40":"#f0ad4e":"#cb3935"},trackColor:isNR?"#3b424b":"#f8f8f8",scaleColor:isNR?"#3b424b":"#dfe0e0",size:parseInt(settings_sysinfo_easypie_charts_size),scaleLength:parseInt(settings_sysinfo_easypie_charts_scale),trackWidth:parseInt(settings_sysinfo_easypie_charts_width),lineWidth:0,lineCap:"square",onStep:function(e,t,i){$(this.el).find(".percent").text(Math.round(i))}})}if(((-1===v___location_path.indexOf(".cgi")||-1!==v___location_path.indexOf("link.cgi")||v___location_path==v___location_prefix+"/proc/open_files.cgi"||v___location_path==v___location_prefix+"/webmin/edit_webmincron.cgi"||v___location_path==v___location_prefix+"/postfix/mailq.cgi"||v___location_path==v___location_prefix+"/webmin_search.cgi"||v___location_path==v___location_prefix+"/useradmin/index.cgi"||v___location_path==v___location_prefix+"/quota/list_users.cgi"||v___location_path==v___location_prefix+"/quota/list_groups.cgi"||v___location_path==v___location_prefix+"/init/index.cgi")&&(v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"webmin/"&&-1===v___location_prefix.indexOf("servers/link.cgi")||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proc/"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"webmin_search.cgi"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"postfix/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtual-server/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"mount/"||core.curModule("custom")||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"quota/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"php-pear/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fsdump/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"inittab/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"logrotate/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"mailcap/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cron/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"software/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"syslog/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"useradmin/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"apache/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"webalizer/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cpan/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"htaccess-htpasswd/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fdisk/")||core.curModuleFile("mysql","index.cgi")||core.curModuleFile("mysql","list_vars.cgi")||core.curModuleFile("postgresql","index.cgi")||core.curModuleFile("cron","index.cgi")||core.curModuleFile("cluster-cron","")||core.curModuleFile("cluster-cron","index.cgi")||core.curModuleFile("cluster-copy","")||core.curModuleFile("cluster-copy","index.cgi")||core.curModuleFile("ruby-gems","index.cgi")||core.curModuleFile("postfix","master.cgi")||core.curModuleFile("postfix","virtual.cgi")||core.curModuleFile("postfix","aliases.cgi")||core.curModuleFile("fail2ban","list_filters.cgi")||core.curModuleFile("fail2ban","list_actions.cgi")||core.curModuleFile("fail2ban","list_jails.cgi")||core.curModuleFile("virtual-server","list_databases.cgi")||core.curModuleFile("virtual-server","connectivity.cgi")||core.curModuleFile("fdisk","edit_disk.cgi")||core.curModuleFile("virtualmin-git","")||core.curModuleFile("virtualmin-git","index.cgi")||core.curModuleFile("virtualmin-svn","")||core.curModuleFile("virtualmin-svn","index.cgi")||core.curModuleFile("help","search.cgi")||core.curModuleFile("server-manager","edit_domains.cgi")||core.curModuleFile("net","list_ifcs.cgi")||core.curModuleFile("net","list_hosts.cgi")||core.curModuleFile("bind8","edit_recs.cgi")||core.curModuleFile("bind8","index.cgi")||core.curModuleFile("bind8","")||core.curModuleFile("cpan","index.cgi")||core.curModuleFile("virtual-server","list_records.cgi")||core.curModule("firewall")||core.curModule("firewall6")||core.curModule("ruby-gems")||v___location_path==v___location_prefix+"/at/"||v___location_path==v___location_prefix+"/at/index.cgi"||v___location_path==v___location_prefix+"/useradmin/list_logins.cgi"||v___location_path==v___location_prefix+"/man/search.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"||v___location_path==v___location_prefix+"/software/search.cgi"||v___location_path==v___location_prefix+"/software/file_info.cgi"||v___location_path==v___location_prefix+"/software/list_pack.cgi"||v___location_path==v___location_prefix+"/cluster-software/list_pack.cgi"||v___location_path==v___location_prefix+"/virtual-server/index.cgi"||v___location_path==v___location_prefix+"/virtual-server/list_users.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newplan.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newfeatures.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newtmpl.cgi"||v___location_path==v___location_prefix+"/virtual-server/backuplog.cgi"||v___location_path==v___location_prefix+"/package-updates/"||v___location_path==v___location_prefix+"/package-updates/index.cgi"||v___location_path==v___location_prefix+"/package-updates/update.cgi"||v___location_path==v___location_prefix+"/security-updates/index.cgi"||v___location_path==v___location_prefix+"/virtual-server/usage.cgi"||v___location_path==v___location_prefix+"/virtual-server/search.cgi"||v___location_path==v___location_prefix+"/fetchmail/"||v___location_path==v___location_prefix+"/filter/")&&$(".__page table.table").each(function(){table_data_init($(this))}).promise().done(function(){page.render.content.filter.init()}),$(".select_all").on("click",function(){var e=$(this).parents("form");e.find('.icons-row div[class*="icons-container"]').length&&$.each(e.find(".icons-row .hidden-forged-6"),function(){$(this).parents('div[class*="icons-container"]').addClass("highlighted").find(".fa-select").removeClass("fa-select").addClass("fa-selected")})}),$(".select_invert").on("click",function(){var e=$(this).parents("form");$.each(e.find(".icons-row .hidden-forged-6"),function(){var e=$(this).parents('div[class*="icons-container"]');$(this).find("input").is(":checked")?e.addClass("highlighted").find(".fa-select, .fa-selected").removeClass("fa-select").addClass("fa-selected"):e.removeClass("highlighted").find(".fa-select, .fa-selected").removeClass("fa-selected").addClass("fa-select")})}),$('.icons-row div[class*="icons-container"]').on("mouseover",function(e){$(this).find(".hidden-forged-7").removeClass("hidden-forged")}).on("mouseout",function(e){$(this).find(".hidden-forged-7").addClass("hidden-forged")}),"?dashboard"!=v___location.search&&1==plugins.navigation.switch.dashboard.get()&&("sysinfo.cgi"==v___location_file?(plugins.navigation.switch.set("dashboard"),plugins.navigation.reset()):$("#open_webmin").length>0&&"open_webmin"!=$(".switch-toggle input:checked").attr("id")?plugins.navigation.switch.set("webmin"):$("#open_virtualmin").length>0&&"open_virtualmin"!=$(".switch-toggle input:checked").attr("id")?plugins.navigation.switch.set("virtualmin"):$("#open_cloudmin").length>0&&"open_cloudmin"!=$(".switch-toggle input:checked").attr("id")?plugins.navigation.switch.set("cloudmin"):$("#open_usermin").length>0&&"open_usermin"!=$(".switch-toggle input:checked").attr("id")&&plugins.navigation.switch.set("usermin")),$('form[action="bootup.cgi"]').on("submit",function(e){$("#starting").length>0?($("#starting").remove(),$(this).append('')):$("#table").length>0?$(this).append(''):$('input[name="boot"][type="hidden"]').length>0&&($('input[name="boot"][type="hidden"]').remove(),$(this).append(''))}),$('input[name="config_portable_module_xsql_fit_content_screen_height"]').on("change",function(){var e=$(this).attr("name"),t="true"==$(this).val();localStorage.setItem(v___server_hostname+"-"+e,t),window[e]=t,theme_config("save")}),$('.ui_form_end_submit[onclick^="window.open"]').click(function(){var e=$(this);setTimeout(function(){e.removeClass("disabled"),plugins.navigation.load.stop()},100)}),v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){sysinfo_replace_dismiss_buttons(),$("body").undelegate(".piechart canvas","mouseover mouseleave"),$("body").on("mouseover",".piechart canvas",function(){var e=$(this).parent("span").attr("data-charts").split("_")[1];("cpu"!=e&&"mem"!=e&&"virt"!=e||core.moduleAvailable("proc"))&&("disk"!=e||core.moduleAvailable("disk-usage")||core.moduleAvailable("quota"))&&$(this).addClass("cursor-alias")}),$("body").undelegate("canvas","click"),$("body").on("click","canvas",function(e){e.preventDefault();var t,i=$(this).parent("span").attr("data-charts").split("_")[1];"cpu"==i&&core.moduleAvailable("proc")?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=i&&"virt"!=i||!core.moduleAvailable("proc")?"disk"==i&&core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==i&&core.moduleAvailable("quota")&&(t=v___location_prefix+"/quota/list_users.cgi?dir=%2F"):t=v___location_prefix+"/proc/index_size.cgi",t&&t.length&&get_pjax_content(t)}),page_sysinfo_sensor_update_label(),"0"==v___user_level&&plugins.slider.data.fetch();var chart_size_def_value=172;if(settings_sysinfo_easypie_charts_size!=chart_size_def_value){var diff=parseInt(settings_sysinfo_easypie_charts_size-chart_size_def_value),position_diff_label=.9*diff,position_diff_percent=.2*diff,font_diff_label=settings_sysinfo_easypie_charts_size";$.each($(target+":not([data-processed])").parent("button"),function(e,t){if($(this).addClass("btn-xxs").find("i").attr("data-processed",1),$(this).wrap('
    '),$(this).after('"),current_refresh_timer&&"0"!=current_refresh_timer){var i=$(btn_str);$(this).find("i").before(timeout_box),$(this).find("i").remove();var a=current_refresh_timer;"number"==typeof refreshTimer&&clearInterval(refreshTimer),refreshTimer=setInterval(function(){--a,$(refresh_timer_str).text(a),a<=0&&($(i[0]).parent().trigger("click"),clearInterval(refreshTimer))},1e3)}}).promise().done(function(){$(".refresh-timer-select li").click(function(){"number"==typeof refreshTimer&&clearInterval(refreshTimer);var e=''+(current_refresh_timer||"0")+" ";localStorage.setItem(v___server_hostname+"-option_"+v___module+"_refresh",$(this).find("a").data("timeout")),current_refresh_timer=localStorage.getItem(v___server_hostname+"-option_"+v___module+"_refresh");var t=$(btn_str).parent();if(current_refresh_timer&&"0"!=current_refresh_timer){t.find(refresh_timer_str).length||t.prepend(e),t.find(refresh_timer_str).html(current_refresh_timer+" "),$(current_icon_class_str).remove();var i=current_refresh_timer;refreshTimer=setInterval(function(){if(--i,$(refresh_timer_str).text(i),i<=0){var e=$(btn_str);$(e[0]).parent().trigger("click"),clearInterval(refreshTimer)}},1e3)}else $(refresh_timer_str).remove(),!t.find(current_icon_class_str).length&&t.prepend('')})}),$.each($('form[action*="save_log.cgi"] select[name="idx"]'),function(){$(this).on("change",function(){var e=$("button.ui_submit.ui_form_end_submit");$(this).next().next('[name="filter"]').val(""),e.first().trigger("click"),e.addClass("disabled")})})}if(core.curModuleFile("virtual-server","summary_domain.cgi")&&$(".__page #headln2l .btn-group, .__page .page_footer_submit").remove(),settings_side_slider_enabled&&(core.curModule("package-updates")&&plugins.slider.notifications.dismiss("package_message"),core.curModule("csf")&&(plugins.slider.notifications.dismiss("csf_remote_version"),plugins.slider.notifications.dismiss("csf_title"))),snippets.tooltips(!0), // $('[data-dcontainer="1"] [data-toggle="tooltip"], [data-dcontainer="1"] [data-toggle="virtualmin-license"], [data-dcontainer="1"] .panel-body td a, [data-dcontainer="1"] .icons-container').tooltip('destroy'); // selector: '[data-toggle="tooltip"]:not([data-skip]), [data-toggle="virtualmin-license"], .panel-body td a:not([data-skip]), .icons-container', -$.support.spa&&(window.matchMedia("(max-width: 1080px)").matches||"1"==$("html").attr("data-navigation-collapsed")&&!vars.navigation_pinned)&&plugins.navigation.lock(),$.support.spa&&(window.matchMedia("(max-width: 1365px)").matches||"1"==$("html").attr("data-navigation-collapsed")&&!vars.navigation_pinned)&&plugins.slider.state(),"undefined"!=typeof v___user_level&&0!=v___user_level&&(settings_right_virtualmin_default="sysinfo.cgi",settings_right_cloudmin_default="sysinfo.cgi"),$is_history_action||(core.curModuleFile("mysql","view_table.cgi")||core.curModuleFile("postgresql","view_table.cgi"))&&$.each($('select[name="field"]'),function(){var e=$(this),t=e.nextAll().add(this),i=e.parent("td"),a=i.parent("tr").find('form[action="view_table.cgi"]').first().addClass("inline-block"),n=a.nextAll('input[name="search"], input[name="db"], input[name="table"]').slice(0,3);e.parent("td").prev("form");a.append(n.detach()),i.append(a.detach()),i.find("form").append(t.detach())}),$("body").hasClass("session_login")&&setTimeout(function(){page_display()},200),theme_to_new_tab(),core.curModuleFile("acl","save_twofactor.cgi")&&setTimeout(function(){var e=$("p > img"),t=e.attr("src");e.attr("src",t.replace(v___location_prefix+"/"+v___module+"/",""))},0),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/kill_proc.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/renice_proc.cgi"){var proc_nice_level='form[action*="renice_proc.cgi"]',proc_nice_pid=$(proc_nice_level).next('input[name="pid"]'),proc_target=$('.col_value select[name="nice"]').parent("td"),proc_target_content=proc_target.html();$(proc_nice_level).append(proc_nice_pid.detach(),proc_target_content),proc_target.html($(proc_nice_level).detach()),$('.proc form[action*="kill_proc.cgi"]').on("submit",function(){var e=quirks.active_element(),t=$(this).find("input").filter(function(){return"pid"!=this.name&&"signal"!=this.name&&this.name!=e.name});return t.attr("disabled","disabled"),setTimeout(function(){},1),!0})}setTimeout(function(){v___blocked_navigation=0},10);var date_chooser_button=$(".date_chooser_button");date_chooser_button.length&&$.each(date_chooser_button,function(){var e=$(this).parent('td:contains("/")').find("select"),t=e.prev("input");$year=e.next("input"),cls="margined-left--10",e.addClass(cls),$year.addClass(cls).attr("size",3),t.attr("size",1)}),$.each($(".date_chooser_button"),function(){var e=$('input[name="'+$(this).data("year")+'"]'),t=$('select[name="'+$(this).data("month")+'"]'),i=$('input[name="'+$(this).data("day")+'"]'),a=1==$(t).find("option:eq(0)").val()?0:1;$(this).datepicker({format:" yyyy-m-d",language:get_server_data("language"),todayHighlight:!0,autoclose:!0}).on("changeDate",function(n){var s=(n.date.getFullYear()+"-"+(n.date.getMonth()+1)+"-"+n.date.getDate()).split("-");s&&($(i).val(parseInt(s[2])),$(t).val(parseInt(s[1])-a),$(e).val(parseInt(s[0])))}).on("show",function(n){var s=$(this),o=parseInt($(i).val()),r=!!$(t).val()&&parseInt($(t).val())+a,l=$(e).val();o&&r&&l&&s.datepicker("update",l+"-"+r+"-"+o)})}),core.curModule("mailbox")&&($.each($('[onclick*="document.forms"]'),function(){var e=$(this),t=e.attr("onclick"),i=$("aside form").length;e.attr("onclick",t.replace(/document\.forms\[0\]/g,"document.forms["+i+"]")),e.attr("onclick",t.replace(/document\.forms\[1\]/g,"document.forms["+(i+1)+"]"))}),$("#print").on("click",function(e){e.preventDefault(),e.stopPropagation()})),core.curModuleFile("forward","edit_alias.cgi")&&$.each($('[onchange*="document.forms"]'),function(){var e=$(this),t=e.attr("onchange"),i=$("aside form").length;e.attr("onchange",t.replace("document.forms[0]","document.forms["+i+"]"))}),(core.curModuleFile("schedule","edit.cgi")||core.curModule("mailbox"))&&$.each($('[onclick*="address_chooser"]'),function(e,t){$(this).attr("onclick",$(this).attr("onclick").replace(".forms[0]",".forms[1]")),$(this).next(".file_chooser_button_attached").removeClass("fa-files-o").addClass("fa-address-book-o")});var add_clock_icon=function(e){e.removeClass("fa-files-o").addClass("fa-clock").css("font-size","12px").css("line-height","10px")};core.curModuleFile("virtual-server","backup_form.cgi")&&add_clock_icon($('[name="enabled_complex"] + input + .file_chooser_button_attached')),(core.curModuleFile("virtual-server","edit_newquotas.cgi")||core.curModuleFile("virtual-server","edit_newvalidate.cgi"))&&add_clock_icon($('[name="sched_complex"] + input + .file_chooser_button_attached')),(core.curModuleFile("server-manager","index.cgi")||core.curModuleFile("server-manager",""))&&$.each($('[onclick*="document.forms"]'),function(){var e=$(this),t=e.attr("onclick"),i=$("aside form").length,a=$(".container-fluid .panel-body > form").length-1;e.attr("onclick",t.replace(/document\.forms\[\d*\]/g,"document.forms["+(i+a)+"]"))});var selectStr="select",select_for=$(selectStr+'.ui_select[name="module"], '+selectStr+'.ui_select[name="user"], '+selectStr+'.ui_select[name="nuser"], '+selectStr+'.ui_select[name="zone"], '+selectStr+'.ui_select[name="serv"], '+selectStr+'.ui_select[name="mod"], '+selectStr+".onchange_form_submit_triggger, "+selectStr+'[name="idx"], '+selectStr+'[name="file"]:first, '+selectStr+'[name="manual"]:first'),originalSelectAddedHiddenClass=selectStr+"2-hidden-accessible",select2Class=selectStr+"2",select2ContentTriggerClass=selectStr+"2-content",select2ContentContainerTriggerClass=select2ContentTriggerClass+"-container",heighterStr="heighter",heighterType="34",v___page_hadEditor=0;if($is_history_action&&$.each($(".container-fluid ."+originalSelectAddedHiddenClass+" + ."+select2Class),function(){v___page_hadEditor=1,$(this).prev("."+originalSelectAddedHiddenClass).removeClass(originalSelectAddedHiddenClass),$(this).remove()}),(core.curModuleFile("webminlog","")||core.curModuleFile("webminlog","index.cgi")||core.curModuleFile("time","")||core.curModuleFile("time","index.cgi")||core.curModuleFile("firewalld","edit_serv.cgi")||core.curModuleFile("php-pear","")||core.curModuleFile("php-pear","index.cgi")||core.curModuleFile("mysql","")||core.curModuleFile("mysql","index.cgi")||core.curModuleFile("mysql","edit_dbase.cgi")||core.curModuleFile("fail2ban","edit_manual.cgi")||core.curModuleFile("postgresql","")||core.curModuleFile("postgresql","index.cgi")||core.curModuleFile("postgresql","edit_dbase.cgi")||core.curModuleFileQuery("syslog","save_log.cgi","view=1")||core.curModuleFileQuery("syslog","save_log.cgi","new=")||v___page_hasEditor||v___page_hadEditor)&&((select_for.hasClass(heighterStr+"-28")||select_for.outerHeight()<=28)&&(heighterType="28"),select_for.select2({minimumResultsForSearch:5,containerCssClass:select2ContentTriggerClass+" "+heighterStr+"-"+heighterType,dropdownCssClass:select2ContentTriggerClass+" h"+heighterType}),select_for.next("."+select2Class).addClass(select2ContentContainerTriggerClass),select_for.next("."+select2Class).next(".ui_form_end_submit").addClass(heighterStr+"-"+heighterType),select_for.on("select2:open",function(){$("body").find(".select2-container, "+v___class_select2_leak).removeClass("select2-aside")}),select_for.on("select2:select",function(e){$(this).parents("form").trigger("input")}),setTimeout(function(){bind_sameorigin(0)},100)),"install_mod.cgi"===v___location_file){var prev_req=vars.previous_request,$prev_req_file=$(prev_req.target).find('[name="file"]');"submit"===prev_req.type&&Test.strContains($(prev_req.target).attr("action"),v___location_file)&&$prev_req_file&&$prev_req_file.val()&&Test.strContains($prev_req_file.val(),"csfwebmin")&&($('.container-fluid a[href*="csf"]').on("click",function(e){e.preventDefault(),$('aside a[href*="csf/index.cgi"]').trigger("click")}),plugins.navigation.reload(),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi",success:function(e){},error:function(e){}}))}$is_history_action||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||$('form[action*="settings-editor_write.cgi"] .btn-group.end_submits button.btn').on("click",function(){var custom_styles=$("[data-custom-style]"),custom_script=$("[data-custom-script]"),data=$('[name="data"]').val();Test.strContains($('[name="file"]').val(),"styles.css")&&(custom_styles.remove(),$("head").append("")),Test.strContains($('[name="file"]').val(),"scripts.js")&&(custom_script.remove(),eval(data))});var $bottom_js_back=$('.btn-lg.page_footer_submit[href*="javascript:history.back"]'),$topBackButton=$("#headln2l a i.fa.fa-arrow-left").parent("a");if($bottom_js_back&&$bottom_js_back.length?($topBackButton.attr("title",theme_language("global_prev_page")).tooltip("fixTitle").attr("href","javascript:history.back()"),$topBackButton.one("click",function(e){e.preventDefault(),e.stopPropagation(),$bottom_js_back[0].click()})):v___module!==v___module_file_manager&&$topBackButton.find("i").addClass("fa-return").parent("a").addClass("btn-squiare-headln2 text-lighter-slight"),core.curModule("backup-config")){var $fetch_form=$($('.container-fluid form[action*=".cgi"].ui_form')[0]);$fetch_form.on("submit",function(e){"4"==$fetch_form.find('input[name="dest_mode"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this)))});var $submit=$fetch_form.find('.ui_submit[name="backup"]'),$mods=$fetch_form.find('select[name="mods"]');$mods.length&&!$mods.val().length&&$submit.addClass("disabled"),$fetch_form.on("change",function(e){$mods.val().length?$submit.removeClass("disabled"):$submit.addClass("disabled")})}if(core.curModuleFile("webmin","edit_mods.cgi")||core.curModuleFile("usermin","edit_mods.cgi")){var $fetch_form=$($('.container-fluid form[action*=".cgi"].ui_form')[3]);$fetch_form.on("submit",function(e){"0"==$fetch_form.find('input[name="to"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this),"download_is_being_prepared"))});var $submit=$fetch_form.find('.ui_submit[name="ok"]');$submit.addClass("disabled"),$fetch_form.on("change",function(e){$fetch_form.find('select[name="mod"]').val()&&$fetch_form.find('select[name="mod"]').val().length?$submit.removeClass("disabled"):$submit.addClass("disabled")})}if(core.curModuleFile("server-manager","transfer_form.cgi")){var $fetch_form=$('.container-fluid form[action*="download.cgi"].ui_form');$fetch_form.on("submit",function(e){"0"==$fetch_form.find('input[name="dest"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_open_new_tab(v___location_prefix+"/server-manager/"+$(this).attr("action")+"?"+$(this).serialize()),setTimeout(despinnerfy_buttons,300))})}if((core.curModuleFile("mysql","backup_form.cgi")||core.curModuleFile("postgresql","backup_form.cgi"))&&v___location_query&&v___location_query.includes("db=")){var $backup_form=$('.container-fluid form[action*=".cgi"].ui_form');$backup_form.on("submit",function(e){"1"==$backup_form.find('input[name="dest"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this)))})}if(core.curModuleFile("mysql","csv_form.cgi")){var $backup_form=$('.container-fluid form[action*=".cgi"].ui_form');$backup_form.on("submit",function(e){"0"==$backup_form.find('input[name="dest"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this)))});var $submit=$backup_form.find('.ui_submit[name="ok"]'),$select_for_dbs_or_tables=$backup_form.find('select[name="cols"]');$backup_form.on("change",function(e){$select_for_dbs_or_tables.val().length?$submit.removeClass("disabled"):$submit.addClass("disabled")}),$backup_form.trigger("change")}if(core.curModuleFile("virtual-server","backup_form.cgi")){var $vm_backup_form=$('form[action*="backup.cgi/backup"]');$vm_backup_form.on("submit",function(e){"4"==$vm_backup_form.find('select[name^="dest0_"]').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this)))}),$vm_backup_form.find("a.select_all, a.select_invert").on("click",function(e){$vm_backup_form.trigger("change")}),$vm_backup_form.on("change",function(){var e=$('.ui_submit[name="now"]');(!$vm_backup_form.find('[name="doms"]').length||"1"==$vm_backup_form.find('[name="all"]:checked').val()&&$vm_backup_form.find('[name="doms"] option').length>=1||"2"==$vm_backup_form.find('[name="all"]:checked').val()&&$vm_backup_form.find('[name="doms"]').val().length>=1&&$vm_backup_form.find('[name="doms"] option').length>1||"2"!=$vm_backup_form.find('[name="all"]:checked').val()&&$vm_backup_form.find('[name="doms"]').val().length)&&(!$vm_backup_form.find('[name="plan"]').length||"1"==$vm_backup_form.find('[name="plan_def"]:checked').val()||$vm_backup_form.find('[name="plan"]').val().length)&&("1"==$vm_backup_form.find('[name="feature_all"]:checked').val()||$vm_backup_form.find('[name="feature"]:checked').length)?e.removeClass("disabled","1"):e.addClass("disabled","1")}),$vm_backup_form.trigger("change"),$vm_backup_form.find('select[name^="dest0_"]').on("change",function(){var e=$("form").find('input[name="fmt"][value="0"]'),t=$("form").find('input[name="fmt"][value="1"], input[name="fmt"][value="2"]');"4"==$(this).val()?(t.prop("disabled",!0),e.prop("checked",!0)):t.prop("disabled",!1)})}$.each($(".container-fluid a.ui_link_replaced"),function(){this.href.includes("webminlog.csv")&&$(this).removeClass().addClass("btn btn-default ui_submit heighter-34").prepend(' ')}),core.curModuleFile("virtual-server","delete_domain.cgi")&&$('form[action*="delete_domain.cgi"]').on("submit",function(){var e=URI.parseQuery(URI(location.href).query()).dom;plugins.favorites.remove(e)}),core.curModuleFile("server-manager","mass.cgi")&&$('form[action*="mass.cgi"]').on("submit",function(){var e=$(this).find('input[name="d"][type="hidden"]').map(function(e,t){return $(t).val()}).get(),t=$(this).find('input[name="dereg"][type="hidden"][value="1"]').length;$.each(e,function(e,i){t&&i&&i.length>3&&plugins.favorites.remove(i)})}),core.curModuleFile("server-manager","mass_domains.cgi")&&$('form[action*="mass_domains.cgi"]').on("submit",function(){var e=$(this).find('input[name="d"][type="hidden"]').map(function(e,t){return $(t).val()}).get(),t=$(this).find('input[name="delete"][type="hidden"][value="1"]').length;$.each(e,function(e,i){t&&i&&i.length>3&&i&&i.includes("/")&&(i=i.split("/")[1],plugins.favorites.remove(i))})}),core.curModule("help")&&$('.ui_form_end_submit ~ [type="reset"]').addClass("heighter-34");var $multi_select=$(".ui_multi_select");if($multi_select.length&&$multi_select.find('[onclick^="multi_select_move"]').text("..."),check_reboot(1),v___location_path&&v___location_path.length&&v___location_path.includes("webalizer/view_log.cgi")&&!$is_history_action){var $link_targets=document.querySelectorAll(".container-fluid .panel-body center p small a");$link_targets.forEach(function(e,t){e.innerHTML=e.innerHTML.slice(1,-1),e.classList.add("btn","btn-transparent","btn-link-bordered","btn-xxs")});var title_target_cnt=document.querySelector(".container-fluid #headln2c");title_target=title_target_cnt.querySelector("span"),title_target_fav=title_target_cnt.querySelector("button"),title_target_text=title_target.innerHTML,title_target_text=title_target_text.substr(0,title_target_text.lastIndexOf("-")).trim(),title_target_main=title_target_text.substr(0,title_target_text.lastIndexOf(" ")),title_target_sub=title_target_text.substr(title_target_text.lastIndexOf(" ")+1),title_target_cnt.innerHTML=title_target_fav.outerHTML+" "+title_target_main+'
    '+title_target_sub+"
    ";var $table_broken=$(".container-fluid .panel-body table"),$table_broken_delims=$table_broken.find('[height="4"]');$table_broken.removeClass("table-hardcoded").addClass("table-bordered").find('td[bgcolor="#c0c0c0"], th[bgcolor="#c0c0c0"]').attr("bgcolor","#f5f5f5"),$table_broken_delims.remove(),$.each($table_broken_delims,function(){$(this).parent("tr").remove()})}(core.curModuleFile("acl","edit_user.cgi")||core.curModule("changepass")||core.curModuleFile("virtual-server","clone_form.cgi")||core.curModuleFile("virtual-server","edit_user.cgi")||core.curModuleFile("virtual-server","domain_form.cgi")||core.curModuleFile("samba","edit_euser.cgi")||core.curModuleFile("samba","ask_epass.cgi")||core.curModuleFileQuery("postgresql","edit_user.cgi","new=")||core.curModuleFileQuery("mysql","edit_user.cgi","new=")||core.curModuleFileQuery("passwd","edit_passwd.cgi","user=")||core.curModuleFile("server-manager","edit_pass.cgi")&&v___location_query.includes("force=1"))&&$('.container-fluid .panel-body input[type="password"], .container-fluid .panel-body input.pass-inputter-obj').password({usernamePartialMatch:!1,showText:!1,minimumLength:3,animateSpeed:0});var input_warning_caps="input_warning_caps",input_password_targets=document.querySelectorAll('input[type="password"]');for($(".container-fluid ."+input_warning_caps).remove(),i=0,length=input_password_targets.length;i30?1:0;span.classList.add(input_warning_caps),span.setAttribute("title","Caps Lock"),isLargePassInput&&span.classList.add("large"),input_password_targets[i].classList.add("use_"+input_warning_caps),input_password_targets[i].parentNode.insertBefore(span,input_password_targets[i].nextSibling),input_password_targets[i].addEventListener("blur",function(){this.nextSibling.classList.remove("visible")}),input_password_targets[i].addEventListener("keydown",function(e){"function"==typeof e.getModifierState&&(state=20===e.keyCode?!e.getModifierState("CapsLock"):e.getModifierState("CapsLock"),state?this.nextSibling.classList.add("visible"):this.nextSibling.classList.remove("visible"))})}$.each($(".container-fluid select:visible"),function(){"28px"===$(this).css("height")&&$(this).nextAll(".btn").addClass("heighter-28")}),$is_history_action&&(core.curModule("mysql")||core.curModule("postgresql"))&&"function"==typeof f__ex__mysql_runner_update&&f__ex__mysql_runner_update(),$(".container-fluid select").on("change",function(){if(this.multiple){var e=$(this).val();$(this.options).removeAttr("selected"),$(this.options).removeAttr("selected");for(var t=0,i=this.options.length;t div > .table-hardcoded:not(.ui_grid_table), .container-fluid .ui_form .table-subtable .sub_table_container, .container-fluid .opener_table_style_small .opener_hidden .table-hardcoded"),function(){$(this).find(".ui_grid_table").length||$(this).addClass("table-hover table-hover-force")})};const events={window:function(){window.document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState?v___theme_state_visible=0:v___theme_state_visible=1,theme.visibility(v___theme_state_visible)}),window.addEventListener("focus",function(){v___theme_state_visible=1,theme.visibility(v___theme_state_visible),theme_window_focused()}),window.addEventListener("blur",function(){v___theme_state_visible=0,theme.visibility(v___theme_state_visible)}),window.addEventListener("popstate",function(){$('[data-trigger-injected="1"]').remove()}),document.querySelector("#content").addEventListener("scroll",function(e){vars.pjax.post_page_fetch||(vars.events.scrolled=e.target.scrollTop)}),$(document.body).on("keydown",function(e){16===e.keyCode&&(vars.events.keypressed.shift=!0),18===e.keyCode&&(vars.events.keypressed.alt=!0)}).on("keyup",function(e){16===e.keyCode&&(vars.events.keypressed.shift=!1),18===e.keyCode&&(vars.events.keypressed.alt=!1)}),$(window).on("keydown",function(e){!plugins.shell.status()&&v___available_session&&theme_shortcuts(e)}).on("resize",function(){page_resized(),plugins.shell.adjust(),page_control_header()})},body:function(){$(document.body).on("click",function(e){var t=".showpass-popover";$(t).length&&($(t).is(e.target)||0!==$(t).has(e.target).length||0!==$(".popover").has(e.target).length||$(t).popover("hide"));$(".mobile-menu-toggler").is(":visible")&&($(e.target).is('.mCustomScrollBox, .wbm-sm, .fa-stack, input[name="product-switcher"], label[for*="open_"], span, .sidebar-search, .select2-search, .select2-search__field, .select2-selection__rendered, .select2-selection')||plugins.navigation.collapse()),$(".tooltip").tooltip("hide");var i=document.querySelector(".right-side-tabs"),n=!(!i||"0px"!==i.style.right);!settings_side_slider_fixed&&n&&($(e.target).is('select[name="settings_navigation_color"], select[name="settings_background_color"], select[name="settings_side_slider_palette"], input[name="settings_side_slider_fixed"], label[for^="settings_side_slider_fixed"], div.aradio')||$(".right-side-tabs-toggler").hasClass("hidden")||!$(".right-side-tabs-toggler").hasClass("opened")||$(e.target).parents("#right-side-tabs").is("#right-side-tabs")||$(e.target).is(".btn-menu-toggler")||$(e.target).is(".fa-bell")||$(e.target).is(".fa-trash-o")||$(e.target).is("li.user-link.favorites")||$(e.target).is(".badge.badge-danger")||$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"));var a="MacIntel"===window.navigator.platform?1:0;if((!a&&e.ctrlKey||a&&e.metaKey)&&!e.altKey){var s=link_type_convert($(e.target).attr("href"),1),o=$(e.target).find("a").attr("href")||$(e.target).parents("a").attr("href"),r=link_type_convert(o,1),l=$(e.target).find("a").length?$(e.target).find("a"):$(e.target).parents("a"),c=Math.floor(1e5*Math.random());(s&&!Test.strContains(s,"javascript")||r&&!Test.strContains(r,"javascript"))&&(s?($(e.target).attr("href",link_type_convert(s+(Test.strContains(s,"?")?"&":"?")+"randomized="+c,2)),setTimeout(function(){$(e.target).attr("href",link_type_convert(s,2))})):r&&(l.attr("href",link_type_convert(r+(Test.strContains(r,"?")?"&":"?")+"randomized="+c,2)),setTimeout(function(){l.attr("href",link_type_convert(r,2))})))}}).on("keydown",function(e){var t=e.keyCode?e.keyCode:e.which,i=String.fromCharCode(t).toLowerCase(),n=this;"number"==typeof n.timedOut&&clearTimeout(n.timedOut),i&&8!==t&&(n.preValue?n.preValue+=i:n.preValue=i);this.timedOut=setTimeout(function(){var i=n.preValue;n.preValue=null,$("input").is(":focus")||$("select").is(":focus")||$("textarea").is(":focus")||$(".modal.in").length||vars.events.blocked||$(".-shell-port-").hasClass("opened")||!v___available_session||v___location_path!=v___location_prefix+"/server-manager/gvnc.cgi"&&v___location_path!=v___location_prefix+"/server-manager/login.cgi"&&v___location_path!=v___location_prefix+"/telnet/"&&v___location_path!=v___location_prefix+"/telnet/index.cgi"&&v___location_path!=v___location_prefix+"/stunnel/"&&v___location_path!=v___location_prefix+"/stunnel/index.cgi"&&(!i||!/[a-zA-Z0-9]/.test(i)||e.ctrlKey||e.altKey||e.metaKey||106===t||107===t||109===t||112===t||113===t||114===t||115===t||116===t||117===t||118===t||119===t||120===t||121===t||122===t||123===t||($(".dataTables_filter label input").length||$(".btn-accordion-filter").length?($(".btn-filter-top-right, .btn-accordion-filter").trigger("click"),$(".btn-filter-top-right .dataTable-mirror, .btn-accordion-filter .dataTable-mirror").focus().val(i).trigger("keyup")):setTimeout(function(){var t=$('aside input[name="search"]');e.shiftKey&&"1"==i?t.focus().val("!"):Test.editing()||t.focus().val(i).trigger("change")},1)))},vars.event.stopped_typing_delay)}).on("click","#quota-virtual-server-collapse a.ui_link, #quota-virtual-server-1-collapse a.ui_link, #bw-virtual-server-collapse a.ui_link, #bw-virtual-server-1-collapse a.ui_link",function(){var e=URI.parseQuery(URI($(this).attr("href")).query()).dom,t="virtualmin";$('.switch-toggle input:not([id="open_'+t+'"]):checked').length&&plugins.navigation.switch.set(t),setTimeout(function(){$("aside select").val()!=e&&plugins.navigation.get.virtualmin(e)},300)}).on("click",".file-input-wrapper",function(){var e=$(this).prev('input[type="radio"]').add($(this).parent("td").prev("td").find('input[type="radio"]'));1===e.length&&e.prop("checked",!0)}).on("click",".--to-new-tab",function(){$(this).attr("target","_blank")}).on("click",".mobile-menu-toggler",function(e){$this=$(this);$(this).data("opened")||($(this).data("opened",1),plugins.navigation.update("webmail")),$("aside").hasClass("hidden-xs")?($(this).addClass("selected").find("button").addClass("btn-primary").removeClass("btn-default"),$(".__logo")&&($(".__logo").css("transform","translate(0px, 0px)"),setTimeout(function(){$(".__logo").transition({y:"-140px"},262.5)},1100)),$this.css("transform","translate(0px, 0px)"),$("aside").css("transform","translate(0px, 0px)"),$(".switch-toggle").css("display","none"),$("aside").removeClass("hidden-xs"),$("aside, .mobile-menu-toggler").transition({x:settings_leftmenu_width},437.5),$(".switch-toggle").css("display","table")):plugins.navigation.collapse()}).on("click",'a[data-id^="csf_"], a[data-type^="csf_"]',function(e){get_bundle_csf()}).on("click",'a[href*="mysql"], a[href*="postgresql"]',function(e){get_bundle_sql()}).on("shown.bs.modal",".modal.in",function(){$(this).focus()}).on("click",".module-help",function(){popover_visibility_position($(this))}).on("click",".close-popover-trigger",function(e){$(e.target).parent().parent().not(this).popover("hide")}).on("change",'.ui_checked_columns:visible input[type="checkbox"], .ui_checked_columns:visible input[type="radio"]',function(e){var t=$(this).parents("tr.ui_checked_columns:visible");t.length&&t.find("input:first").is($(this))&&($(this).is(":checked")?t.addClass("hl-aw"):t.removeClass("hl-aw"),"undefined"!=typeof v____timeout_cb_ck_row&&"number"==typeof v____timeout_cb_ck_row&&clearTimeout(v____timeout_cb_ck_row),v____timeout_cb_ck_row=setTimeout(function(){"function"==typeof __r____changed&&__r____changed()},1))}).on("click",".authentic_update:not(.disabled)",function(e){e.preventDefault(),e.stopPropagation();var t=$(this),i=tconfig_beta_updates?0:1,n="1"==t.data("force")?1:0,a=t.attr("data-stable");a&&a.length&&(i="1"==a?1:0),theme.update(i,n)}).on("click",".csf-submit",function(e){e.preventDefault();var t=$(this).data("id");$("#"+t).submit()}).on("change",".onchange_form_submit_triggger",function(e){e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(this,"$($eventData).parent('form').submit()","ev"):$(this).parent("form").submit()}).on("click",".generate-password-key-g",function(e){var t=theme_password_generator();theme_copy_to_clipboard(t),plugins.messenger.post(''+theme_language("password_generator_new_success").replace("%password",' '+Convert.htmlEscape(t)+" "),10,"success","newGeneratedPassword")}).on("keydown",'form[action*="save_log.cgi"] input[name="filter"], form[action*="save_log.cgi"] input[name="lines"]',function(e){if(13==e.keyCode){e.preventDefault();var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click"),t.addClass("disabled")}}).on("click",'button, input[type="submit"], a',function(e){v___page_activeElement=this}).on("click","._c__op_d",function(e){if($(e.target).is(this)){var t=$(this).find(".opener_trigger").first()[0];t&&t.click()}}).on("click",'form[action*="save_user.cgi"] button[name="but_switch"], a[href*="virtual-server/switch_user.cgi"]',function(){v___theme_reload=1}).on("click",'[href*="javascript:history"]',function(e){v___theme_content_history&&(e.preventDefault(),e.stopPropagation(),v___theme_content_history=0,get_pjax_content(v___location_directory))}).on("click",".ui_multi_select_row select[multiple] option",function(e){var t=$(this).parent("select").parent("td"),i=t.parent("tr"),n=t.index();e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||0!==n&&2!==n||i.find("td:eq(1)").find('[onclick*="multi_select_move"][onclick*="'+(n?0:1)+'"]').trigger("click")}).on("click",'.container-fluid a[href], .container-fluid button, .container-fluid input[type="button"], .right-side-tabs a[href], .right-side-tabs button, .right-side-tabs input[type="button"], .right-side-tabs .info-container .graph-container-fw, .right-side-tabs-dismiss i, .favorites-menu li a',function(){v___blocked_navigation=0}).on("click",'#extended_sysinfo-1 .panel-collapse[aria-labelledby="status-virtual-server-1"] a:not(.ui_link)',function(e){e.preventDefault();var t=$(this),i=t.attr("href");if(!t.hasClass("disabled")){t.addClass("disabled opacity-0_4");var n=t.find(".fa-refresh");n&&n.addClass("fa-spin"),progress.start(),$.ajax({type:"GET",url:i,data:!1,statusCode:{200:function(){$.ajax({type:"GET",url:v___location_prefix+"/sysinfo.cgi",success:function(e){var t="#status-virtual-server-1-collapse",i=$(e).find(t).find(".panel-body");$('[data-dcontainer="1"]').find(t).find(".panel-body").replaceWith(i),progress.end()}})}}})}}).on("click","[data-href-background]",function(e){e.preventDefault();var t=$(this).attr("data-href-background");progress.start(),$.post(t,function(){plugins.slider.data.fetch(),v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1&&page_refresh()})})}};function addmodule(e){return adduser(e),!1}function addgroup(e){return adduser(e),!1}function adduser(e){return $v__mpp__g_olt=0,$('.mppopup input[data-role="tagsinput"]').tagsinput("add",e),setTimeout(function(){v__mpp__ml_t__e||($(".mppopup_filter_input").val(""),$(".mppopup_filter_input").focus().trigger("keyup")),v__mpp__ml_t__e=0},440),!1}function addinterface(e){return adduser(e),!1}function parentdir(e){e&&e.length>1&&e.endsWith("/")&&(e=e.replace(/\/$/,"")),fileclick(e,"1"),$v__mpp__g_gp=1}function fileclick(e,t){$v__mpp__g_ol=e,$v__mpp__g_olt=t}function select(e,t){return $data_mppopup_value.val(e),!1}function filter_match(e,t,a){a=a||!1;var n=function(e){e=e||!1;var t=$(".mppopup table tbody tr");if(t.length>0)for(var n=0;n0)for(var r=0;r]*>/gi,""))&&(l=l.toLowerCase()).match(e.toLowerCase())&&(i[r].style.display="")}}}else n(!0)}function tab_action(e,t){document.forms[0]&&document.forms[0][e]&&(document.forms[0][e].value=t)}function hidden_opener(e,t){0===$("#"+e).parent(".opener_container").length&&$("#"+e).wrapAll('
    '),$("#"+e).hasClass("opener_shown")?($("#"+e).parent(".opener_container").prev(".opener_extra_container.opener_extra_container_style").find(".opener_extra_container_a_style").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").prev("p").find(".opener_extra_container_a_style").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").parent("tr").prev("tr").find("td a:nth-child(1)").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").show().find("#"+e).slideUp(0,function(){$("#"+e).removeClass("opener_shown").addClass("opener_hidden").parent('.opener_container:not(".opener_sub_container")').hide(),$("#"+e).parent(".opener_sub_container").removeClass("margined-top")})):($("#"+e).parent(".opener_container").prev(".opener_extra_container.opener_extra_container_style").find(".opener_extra_container_a_style").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).parent(".opener_container").prev("p").find(".opener_extra_container_a_style").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).parent(".opener_container").parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).slideUp(0).removeClass("opener_hidden").addClass("opener_shown").parent(".opener_container").slideDown(0).find(".opener_shown").slideDown(0),$("#"+e).parent(".opener_sub_container").addClass("margined-top"))}function select_mode(e){var t=$("aside form").length;for(i=0;i-1?0:1)?e.serialize():new FormData(e[0])}function page_extended(){return"settings-logos.cgi"===v___location_file||"settings-logos_save.cgi"===v___location_file||"settings-backgrounds.cgi"===v___location_file||"settings-backgrounds_save.cgi"===v___location_file||"settings-editor_read.cgi"===v___location_file||"settings-editor_write.cgi"===v___location_file||"settings-favorites_save.cgi"===v___location_file?1:0}function check_bundle(e){(Test.strContains(e,"/mysql/")||Test.strContains(e,"/postgresql/"))&&get_bundle_sql(),Test.strContains(e,"/"+v___module_file_manager+"/")&&get_bundle_file_manager(),Test.strContains(e,"/csf/")&&get_bundle_csf()}function get_bundle_csf(){load.bundle(v___server_extensions_path+"/csf/csf",1)}function get_bundle_file_manager(e){load.bundle(v___server_extensions_path+"/file-manager/file-manager",0,!!e&&["___f__tw()"],0)}function get_bundle_sql(){load.bundle(v___server_extensions_path+"/sql",1)}function theme_open_new_tab(e,t){1!==t&&(e=Test.strContains(e,v___location_origin)?e:v___location_origin+(e.startsWith("/")?e:"/"+e)),$("body").append(''),$("#theme_open_new_tab").simulateUserClick().remove()}function theme_to_new_tab(){$.each($('a[href*="virtualmin-awstats/view.cgi?config="], .virtualmin-awstats a[href*="view.cgi?config="] '),function(){$(this).addClass("--to-new-tab")})}function theme_restore_buttons_class(){$.each($(".container-fluid [data-class-restore]"),function(){var e="btn-xclass",t=$(this).attr("data-class-restore");if($(this)[0]&&$(this)[0].classList){var a=$(this)[0].classList.value.match(/.*(btn-\S+)/);a&&(e=a[1],$(this).removeAttr("data-class-restore"),$(this).removeClass(e).addClass(t))}})}function theme_reload(e){window.location.href=e?link_type_convert(v___location_resource,2):location.origin+v___location_prefix}function theme_update_notice(e,t){0===$("#update_notice").length&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_update_notice=1",complete:function(e){t&&t.classList.remove("disabled")},success:function(t){if(Test.strContains(t,v___page_signin_form))v___available_session=0;else{$("body").prepend(t);var a=$("#update_notice");e&&a.addClass("r"),a.modal("show")}},error:function(e){}})}function theme_inject_tooltip(e,t,a,n,i,r){var s=v___initial_load?3e3:0,o=e;e=theme_language(e)||e,t||(t="body"),a||(a="auto top"),n||(n="tooltip"),i||(i=600),s&&setTimeout(function(){var e=$('[data-target-tooltip-callback="'+o+'"]');e.attr("data-title",theme_language(o)),e.attr("data-delay",'{"show":600, "hide":"30"}'),e.tooltip({container:t,placement:a,sanitize:!1,trigger:"hover",delay:{show:i,hide:20}})},s);var _=String();if(r){var l=new RegExp("(?=\\"+r+")");e=(e=e.split(l)).join("
    "),_=' data-html="true" '}return' data-container="'+t+'" data-placement="'+a+'" data-delay=\'{"show":"600", "hide":"30"}\' data-toggle="'+n+'" data-title="'+e+'" '+_}function theme_title_generate(e,t){var a=plugins.navigation.state.loading(),n=1==get_server_data("loading")?1:0;if(!a&&!n||$(".__page").hasClass("progressing")){if($.support.spa){var i=$("#headln2c").data("current-module-name"),r=$("#headln2c span[data-main_title]").text()||$('.panel-heading font[size="+2"]').text(),s=String(),o=$("aside select option:checked").text(),_=v___title_initial,l=" — "+_,c=_+" — ",d=get_server_data("hostname"),g=get_server_data("user"),f=Convert.strUpFirst(get_server_data("product")),u=theme_language("titles_dashboard"),p=v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi",m=$(".container-fluid > .error_40x");!i||i===r||$t_uri_virtualmin||$t_uri_cloudmin||(r=i+"/"+r),"csf"===v___module&&(r=theme_language("csf")),p&&(r=u),m.length&&(r=m.find("strong").text()),t&&(r=t);var h=" - "+r;if(1==settings_document_title&&(c=String()),2==settings_document_title&&(l=String()),3==settings_document_title&&(c=String(),l=String()),5==settings_document_title&&(c=d+" - "+_+" — ",l=String()),6==settings_document_title&&(c=g+"@"+d+" - "+_+" — ",l=String()),7==settings_document_title&&(c=String(),l=" — "+f),8==settings_document_title&&(c=d+" — ",l=String()),9==settings_document_title&&(c=g+"@"+d+" — ",l=String()),4==settings_document_title){if(e)return s;document.title=_}else if($('li.sub_active a[href*="'+v___module_file_manager+'"]').length){var v=v___module_file_manager,b=$('body[class*="'+v+'"] .active form input#path').val();if(b){if(s=c+Convert.uriDecodeComponent(b)+" - "+$("li.sub_active a").text()+l,e)return s;document.title=s}else{if(s=c+$("li.sub_active a").text()+l,e)return s;document.title=s}}else if(($t_uri_virtualmin||$t_uri_cloudmin)&&o&&o.length&&!m.length)if(p){if(s=c+u+l,e)return s;document.title=s}else if(r&&r.length){if(s=c+o+h+l,e)return s;document.title=s}else{if(s=c+plugins.navigation.state.title()+l,e)return s;document.title=s}else if(r&&r.length){if(s=c+r+l,e)return s;document.title=s}else{if(s=_,e)return s;document.title=s}var x=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;settings_side_slider_enabled&&settings_side_slider_notifications_enabled?titlenotifier.set(x):titlenotifier.set(0)}}else setTimeout(theme_title_generate,100)}function link_type_convert(e,t){if(void 0!==e)return e&&(e=e.replace(/([?&])(_pjax|_)=[^&]*/g,"")),1===t&&(e=e.replace("?"+$__theme_navigation,"").replace("&"+$__theme_navigation,"").replace("&"+$__theme_navigation,"")),2===t&&(Test.strContains(e,$__theme_navigation)||(e=Test.strContains(e,"?")?e+"&"+$__theme_navigation:e+"?"+$__theme_navigation)),e}function get_page_title_subtitle(e){var t=$("[data-sub_title]").text(),a=$('[data-main_title=""]').text(),n=a+(t?": "+t:String());return e?a:n}function pjax_cache(e){vars.pjax.page_cache="disable"!==e}function get_pjax_push(){return!0}function get_pjax_type(e){var t=String();if(e&&e.href&&(t=e.href.match(/([^\/]*)\/*$/)[1]),Test.string(e)){var a=e.replace(v___location_origin+v___location_prefix,""),n=a.replace(v___module,"").replace(/^\/+/g,""),i=(i=$('form[action*="'+a+'"]:visible')).length?i:$('form[action="'+n+'"]:visible'),r=a.match(/\w+.cgi/gi),s=(i=i.length||!r?i:$('form[action*="'+r[0]+'"]:visible')).attr("method");if("multipart/form-data"===i.attr("enctype"))return"post";if(s)return s;if(!s){s=(s=$('form[action="'+a+'"]').attr("method"))||$('form[action="'+URI(a).filename()+'"]').attr("method");var o=$('form[action="'+a+'"]').attr("enctype");return s||o?"multipart/form-data"===o?"post":s:"get"}}else if("object"==typeof e&&$(e).is("form")){var _=e.attr("method");return _||"get"}return"csf"===v___module&&!$('.csf-container textarea[name="formdata"]').length||"shell"===t||e===v___location_prefix+"/shell/"||e&&Test.strContains(e,".cgi?")&&!Test.strContains(e,"config.cgi?")?"GET":"POST"}function get_pjax_content(e,t,a){var n=void 0===a||!0===a||1==a;get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:e}):e&&unbuffered_header_processor_allow(e)?unbuffered_header_processor(e,0):(t="object"==typeof t?t:function(){},$type=!!$.isArray(t)&&$("",{href:e})[0],e=link_type_convert(e,1),$.pjax({url:e,timeout:0,push:n,type:get_pjax_type($type||e),container:"[data-dcontainer]",fragment:"[data-dcontainer]",callback:t}))}function get_pjax_event_end(e,t,a){if(v___available_session){if(null!=t&&t.status){var n=$('div[data-dcontainer="1"]'),i=t.status.toString().startsWith("40"),r=t.status.toString().startsWith("50");if(i||r){if(vars.allow_ui_features=0,setTimeout(function(){vars.allow_ui_features=1},200),i){var s=extract_content(t.responseText,'
    ',"
    ",0);s&&n.html(s)}else if(r){var o,_=$(t.responseText).filter("h1").text(),l=$(t.responseText).filter("p").text();o='
    ',o+=' '+t.status+" - "+_+"
    "+l+"\n",o+="
    ",n.html(o)}return void theme_title_generate()}}if(null!=t&&void 0!==t.responseText){var c=t.getResponseHeader("Content-Disposition");if(!c||-1===c.toLowerCase().indexOf("attachment")){var d,g=t.responseText.match("");g&&g[0]&&(d=(d=(new DOMParser).parseFromString(g[0],"text/html")).querySelector("html").attributes)&&$(d).each(function(e,t){"id"!==this.nodeName&&($.support.spa&&"data-redirect"===this.nodeName&&this.nodeValue&&this.nodeValue.length>0&&"/"!=this.nodeValue&&this.nodeValue!="/?"+$__theme_navigation&&this.nodeValue!=location.origin+v___location_prefix+"/"&&this.nodeValue!=location.origin+v___location_prefix+"/?"+$__theme_navigation&&(!Test.strContains(this.nodeValue,"://")||Test.strContains(this.nodeValue,location.host))&&(vars.previous_request=String(),vars.source_request=String()),get_server_data(this.nodeName,this.nodeValue),"data-slider-fixed"===this.nodeName&&-1!==vars.slider_pinned&&get_server_data(this.nodeName,vars.slider_pinned),"data-navigation-collapsed"===this.nodeName&&-1!==vars.navigation_pinned&&get_server_data(this.nodeName,vars.navigation_pinned))}).promise().done(function(){if(!core.curModule("mailboxes")&&uri_parse("directory",get_server_data("data-uri")).indexOf("/mailbox")>-1&&(!uri_parse("file",get_server_data("data-uri"))||uri_parse("file",get_server_data("data-uri")).indexOf("index.cgi")>-1))return mail_load(get_server_data("data-uri")),page_init(),!1;if(get_pjax_event_end_funcs(1,!1,a),$.each($(".container-fluid img"),function(){var e=$(this),t=e.attr("src");!t||Test.strContains(t,"//")||t.startsWith("/")||e.attr("src",v___location_directory_trail_slashed+t)}),unbuffered_header_post(t),e){var n=$(e.relatedTarget),i=n.attr("href"),r=n.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle");(r&&(Test.strContains(i,"/mysql/")||Test.strContains(i,"/postgresql/"))||Test.strContains(v___module,"mysql")||Test.strContains(v___module,"postgresql"))&&"function"==typeof f__ex__mysql_runner&&f__ex__mysql_runner(),(r&&Test.strContains(i,"/csf/")||Test.strContains(v___module,"csf"))&&csf_init()}})}}}}function get_pjax_event_end_funcs(e,t,a){page_init();var n=function(){if(e&&v___module===v___module_file_manager&&"config.cgi"!==v___location_file&&page.handle.content.preloader(),v___module_file_manager&&0!=get_access_level()&&plugins.slider.state(0),!e){get_server_data("data-script-name",v___location_path),get_server_data("data-uri",v___location_resource);var t=new RegExp("^"+v___location_prefix,"i");v___module=get_server_data("data-uri").replace(t,"").split("/").filter(function(e){return 0!==e.length})[0],get_server_data("data-module",v___module),setTimeout(function(){get_server_data("data-title-initial",$("#headln2c span[data-main_title]").text()),snippets.page.render(1),despinnerfy_buttons(),$t_uri_virtualmin?plugins.navigation.intersect.virtualmin(location.href):$t_uri_cloudmin&&plugins.navigation.intersect.cloudmin(location.href)},0)}};if(t){var i=function(){get_server_data("loading")?setTimeout(i,100):(n(),theme_title_generate(),plugins.navigation.detect())};setTimeout(i,0)}else n(),!a&&e&&Test.strContains(v___location_directory,v___module_file_manager)&&("function"==typeof ___f__tw?setTimeout(function(){___f__tw()},100):get_bundle_file_manager(1)),core.curModule("csf")||get_server_data("post",0,1),e&&snippets.page.render(0),$(".tooltip").tooltip("hide"),$(".popover").popover("hide"),theme_title_generate(),plugins.navigation.detect(),e&&$(".__page").scrollTop(0),setTimeout(function(){var e=v___page_container.find("form:visible:first"),t=e.find('input:visible:not([readonly]):not([disabled]):not([type="radio"]):not([type="checkbox"]), textarea:visible:not([readonly]):not([disabled])');t.length&&!t.parents(".ui_buttons_table").length&&"config.cgi"!==v___location_file&&"uconfig.cgi"!==v___location_file&&"settings-user.cgi"!==v___location_file&&vars.page_user_inactive&&("domain_form.cgi"===v___location_file||Test.strContains(v___location_query,"new=")||e&&e.length&&(e.attr("action").startsWith("create")||e.attr("action").startsWith("add")||e.attr("action").startsWith("new")))&&t&&0===t.val().length&&t[0].focus()},400),!e||core.curModule(v___module_file_manager)||core.curModule("csf")||"settings-user.cgi"===v___location_file||"edit_themes.cgi"===v___location_file||page.handle.content.preloader_dismiss()}function get_pjax_action_submit(e,t){var a=void 0===t||!0===t||1==t;if(!get_onbeforeunload_status())if(e&&!v___theme_force_buffered&&e.target&&e.target.action&&unbuffered_header_processor_allow(e.target.action))unbuffered_header_processor(e,1);else{v___theme_force_buffered=0;var n=quirks.active_element(),i=$(n).attr("name"),r=$.trim(n.value)?$.trim(n.value):$.trim(n.innerText),s=n.value,o=n.type,_=n.nodeName.toLowerCase(),l=$(e.target).find('[name="'+i+'"]'),c=l.attr("type");c&&c.length&&(c=c.toLowerCase()),("input"!==_||l.val()==s&&"submit"!==c)&&("button"!==_||$.trim(l.text())==r&&"submit"!==c)||"button"!==c&&"submit"!==c&&"submit"!==o||$('input[type="hidden"][name="'+i+'"][value="'+(r||s)+'"]').length||$('').attr({type:"hidden",name:i,value:r||s}).appendTo($(e.target)),vars.previous_request=e,vars.source_request=v___location_resource,v___theme_connection_triggered_origin=1,$.pjax.submit(e,"[data-dcontainer]",{timeout:0,push:a,type:get_pjax_type(e.target.action),fragment:"[data-dcontainer]"})}}function get_pjax_action_click(e,t,a){var n=void 0===a||!0===a||1==a;if(void 0!=$(t).attr("href")){var i=$(t).attr("href");if(i&&i.includes("!edit")){e.preventDefault();var r=i.replace("!edit ",""),s=r.split("\\").pop().split("/").pop(),o=r.replace("/"+s,"");return progress.start(),void edit_file(s,o||"/")}if($(e.target).is(".gl-icon-select"))return e.preventDefault(),void $(t).trigger("contextmenu");if(t&&t.href&&unbuffered_header_processor_allow(t.href))return e.preventDefault(),void unbuffered_header_processor(t.href,0);if(!e||e.shiftKey||e.ctrlKey||e.metaKey||$(t).attr("href",link_type_convert($(t).attr("href"),1)),e&&(e.shiftKey||e.ctrlKey||e.altKey||e.metaKey)&&setTimeout(function(){despinnerfy_buttons()},400),v___theme_connection_triggered_origin=1,e.target.href&&$(e.target).hasClass("page_footer_submit")&&e.target.href.includes(".cgi/")&&!e.target.href.includes("/link.cgi/")){var _=URI(e.target.href).directory();if(_&&_.includes(".cgi")){var l=_.split("/");l=(l=l.filter(function(e){return!e.includes(".cgi")})).join("/"),e.target.href=e.target.href.replace(_,l)}}$.pjax.click(e,{timeout:0,push:n,type:get_pjax_type(t),container:"[data-dcontainer]",fragment:"[data-dcontainer]"}),vars.previous_request=e}}function get_onbeforeunload_message($eventData,$thisData,$justEval){var popovers=$(".popover.in"),are_there_popovers=popovers.length,delay=are_there_popovers?120:0,before_onload_class_prompt="bootbox-o__f_m-beforeclose-prompt";are_there_popovers&&popovers.popover("hide"),setTimeout(function(){if(!$("."+before_onload_class_prompt).length){var save_prompt=bootbox.dialog({message:""+theme_language("global_unbeforeunload_message"),title:'   '+theme_language("global_unbeforeunload_title")+"",buttons:{main:{label:'   '+theme_language("global_cancel")+"  ",className:"btn-default vertical-align-top margined-left--2",callback:function(){despinnerfy_buttons(),plugins.navigation.detect(),plugins.navigation.select.back()}},danger:{label:'   '+theme_language("global_continue")+"  ",className:"btn-danger vertical-align-top margined-left--2",callback:function(){if(set_onbeforeunload_status(0,0),set_onbeforeunload_status(0,1),theme_config_check(),"object"==typeof progressive_request&&1===progressive_request.readyState&&progressive_request.abort(),"ev"!==$justEval){$.each($justEval,function(func,params){var caller=func.includes(".")?eval(func):window[func];caller.apply(null,params)});var switchStr="::switch::";if($thisData&&$thisData.href&&Test.strContains($thisData.href,switchStr))$('.switch-toggle input[id="'+$thisData.href.replace(""+switchStr,"")+'"]').trigger("click");else{var $is_form=$($thisData).is("form");$is_form?$is_form&&get_pjax_action_submit($eventData):$thisData.href&&$thisData.href.length&&get_pjax_content($thisData.href,!1)}}else eval($thisData)}}},onEscape:function(){despinnerfy_buttons(),plugins.navigation.detect()}});save_prompt.on("shown.bs.modal",function(){var e=$(this);setTimeout(function(){e.find('[data-bb-handler="danger"]').focus()},0)})}},delay)}function get_onbeforeunload_status(){return $('.container-fluid > .panel > .panel-body[data-unload-warning="1"]').length||$('html[data-unload-warning="1"]').length}function set_onbeforeunload_status(e,t){var a=t?"html":".container-fluid > .panel > .panel-body";e?$(a).attr("data-unload-warning","1"):$(a).removeAttr("data-unload-warning")}function set_onbeforeunload_status_native(e){e?$("html").attr("data-unload-error","1"):$("html").removeAttr("data-unload-error")}function get_onbeforeunload_status_native(){return $('html[data-unload-error="1"]').length}function theme_cache_clear(e){theme.veiled(1),plugins.messenger.post(''+theme_language("clear_cache_initiated")+" "+theme_language("global_please_wait")+'   ',1800,"info","themeUpgrade",0),"undefined"!=typeof stats&&stats.general.disable(),$.post(v___location_prefix+"/index.cgi/?xhr-theme_clear_cache=1"),set_onbeforeunload_status(0,0),localStorage.clear(),$(".right-side-tabs-dismiss .fa-trash, .right-side-tabs-dismiss .fa-refresh").trigger("click"),e&&spinnerfy_buttons($(e),[1.5,-33,"small",1e3]),setTimeout(function(){theme_reload()},1e3)}function theme_password_generator(){var e=settings_global_passgen_format.split("|")[1].split(","),t=parseInt(settings_global_passgen_format.split("|")[0]),a="",n="";$.inArray("a-z",e)>=0&&(a+="abcdefghijklmnopqrstuvwxyz"),$.inArray("A-Z",e)>=0&&(a+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),$.inArray("0-9",e)>=0&&(a+="0123456789"),$.inArray("#",e)>=0&&(a+="![]{}()%&*$#^<>~@|");for(var i=0;i-1&&(o=o.split("~"),e=o[0],r=o[1]),$.each($(t).find(a),function(){var s=$(t).find(a).parents(".btn-group.ui_links_row");if(s.length&&s.contents().unwrap(),!$(this).parents(t).hasClass("f__lnk_t_btn")||Test.strContains(n,"---forced")){if(_){var o=new RegExp(RegExp.quote(_),"g");$(this).parent().replaceText(o,l||"")}n&&n.indexOf("__center__")>-1&&$(a).parent().addClass("text-center").addClass("f__lnk_t_btn-el"),$(this).html(e+$(this).text().replace(/\.\.$/,"")+r).addClass(n).addClass("f__lnk_t_btn-el").removeClass("ui_link").prepend(i?'  ':""),$(this).parent(t).addClass("f__lnk_t_btn")}})}))})}function theme_toggle_night_mode(){var e=$("body .user-link.palette-toggle"),t=e.find(".fa-sun").length?0:1,a=(get_server_data("data-night-mode"),get_server_data("data-default-theme")),n=settings_background_color,i=$("input, textarea").is(":focus");if((!$.support.spa||!i)&&$.support.spa&&!$("body").find(".modal.in:visible").length)if(1===t){e.find(".fa-moon").removeClass("fa-moon").addClass("fa-sun vertical-align-middle"),progress.start(),$(document).find(".settings_navigation_color_toggle").addClass("hidden");var r=$("html").find('head link[href*="palettes"][data-palette]'),s=document.styleSheets.length+1;$("html").find("head").append(''),$("html").find("head").append(''),function e(t){function a(){get_server_data("data-theme","gunmetal"),r.remove(),get_server_data("data-bgs","nightRider"),get_server_data("data-night-mode",1),v___theme_night_mode_enabled=1,v___theme_night_mode=1,v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi"&&$(".__page .piechart").length||setTimeout(function(){progress.end()},201),_()}var n=document.styleSheets;try{if(!n[t]||!n[t].cssRules[0])return void setTimeout(function(){e(t)},200)}catch(e){return"SecurityError"!==e.name?void setTimeout(function(){a()},800):void 0}a()}(s)}else{$("body").find(".settings_navigation_color_toggle").removeClass("hidden"),e.find(".fa-sun").removeClass("fa-sun vertical-align-middle").addClass("fa-moon");var o=$("html").find('head link[href*="gunmetal"]');"blue"!=get_server_data("data-default-theme")&&$("html").find("head").append(''),get_server_data("data-theme",a),o.remove(),get_server_data("data-bgs",n),get_server_data("data-night-mode",0),"nightRider"!==settings_background_color&&$("html").find('head link[href*="nightrider"]').remove(),v___theme_night_mode_enabled="nightRider"===settings_background_color?1:0,v___theme_night_mode=0,_()}function _(){v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi"&&$(".__page .piechart").length?($.each($(".piechart"),function(){$(this).addClass("bg-filter-blur-grayscale-invert-opacity75").data("easyPieChart").update(0)}),theme_config("save",['get_pjax_content("'+v___location_prefix+'/sysinfo.cgi")',0])):theme_config("save")}}function theme_spinner_small(e,t,a){return''}function despinnerfy_buttons(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>0&&void 0!==arguments[1]?arguments[1]:0,a=t||$(".btn.disabled");$.each(a,function(){var t=$(this),a=t.find(".cspinner_container"),n=a.prev("i.invisible");!e&&t.removeClass("disabled"),n.removeClass("invisible"),a.remove()})}function spinnerfy_buttons(e,t,a,n){var i=!!(e.attr("onclick")&&-1!==e.attr("onclick").indexOf("blank")||e.parents("form").attr("target")&&-1!==e.parents("form").attr("target").indexOf("blank")),r=e.hasClass("heighter-28"),s="28px"==e.css("height"),o=e.hasClass("btn-lg"),_=e.find(".fa").hasClass("fa-1_25x"),l=e.find(".fa"),c=void 0!==t&&0!=t&&t,d='',g='';setTimeout(function(){!i&&e.addClass("disabled")},10),l.length&&!i&&setTimeout(function(){e.hasClass("btn-default")?l.addClass("invisible").after(g):l.addClass("invisible").after(d)},10),void 0==typeof a&&(a=!1),void 0==typeof n&&(n=!1),(c[3]||a)&&setTimeout(function(){e.removeClass("disabled"),l.removeClass("invisible"),e.find(".cspinner_container").remove()},a||c[3]),n&&setTimeout(function(){progress.end()},400)}function theme_language(e,t){void 0===t&&(t=!1);var a="theme_xhred_"+e,n=v___theme_language;if(t){var i=Convert.arrFlip(n);return i[$.trim(a)]||i[$.trim(e)]}return n[a]||n[e]}function theme_copy_to_clipboard(e){try{navigator.clipboard.writeText(e)}catch(a){$("body").append('');var t=new Clipboard(".tmp-clipboard-obj");$(".tmp-clipboard-obj").trigger("click").remove(),t.destroy()}}function theme_config($action,callBack,$singleOptionToSaveName,$singleOptionToSaveValue){var callBack="object"==typeof callBack&&callBack,watched_options=["config_portable_module_csf_style_custom_promoted","config_portable_theme_charset_warning_shown","config_portable_theme_locale_language","config_portable_theme_locale_languages","config_portable_theme_locale_format_full","config_portable_theme_locale_format_long","config_portable_theme_locale_format_short","config_portable_theme_locale_format_time","config_portable_module_xsql_fit_content_screen_height","config_portable_module_filemanager_records_per_page","config_portable_module_filemanager_records_for_server_pagination","config_portable_module_filemanager_default_sort","config_portable_module_filemanager_hide_tree_view","config_portable_module_filemanager_tree_expand_search","config_portable_module_filemanager_tree_view_depth","config_portable_module_filemanager_tree_exclude_on_first_load","config_portable_module_filemanager_hide_toolbar","config_portable_module_filemanager_hovered_toolbar","config_portable_module_filemanager_hide_actions","config_portable_module_filemanager_remember_tabs","config_portable_module_filemanager_calculate_size","config_portable_module_filemanager_force_tar","config_portable_module_filemanager_switch_user"];if("get_options"==$action)return watched_options;if("save"==$action&&$singleOptionToSaveName)return localStorage.setItem(v___server_hostname+"-"+$singleOptionToSaveName,$singleOptionToSaveValue),window[$singleOptionToSaveName]=$singleOptionToSaveValue,void theme_config("save");if("save"==$action){var storeStorage={},val=0;$.each(localStorage,function(e,t){"string"==typeof e&&e.indexOf(v___server_hostname)>-1&&Test.arrIntersect(watched_options,e)&&"undefined"!=(val="true"==t||"false"!=t&&(Test.numeric(t)?t&&t.length>16?t:parseInt(t):t))&&(storeStorage[e.replace(v___server_hostname+"-","")]=val)}),storeStorage.settings_force_night_mode=v___theme_night_mode,storeStorage.settings_font_family=settings_font_family,storeStorage.settings_navigation_color=settings_navigation_color,storeStorage.settings_grayscale_level_navigation=settings_grayscale_level_navigation,storeStorage.settings_sepia_level_navigation=settings_sepia_level_navigation,storeStorage.settings_saturate_level_navigation=settings_saturate_level_navigation,storeStorage.settings_hue_level_navigation=settings_hue_level_navigation,storeStorage.settings_invert_level_navigation=settings_invert_level_navigation,storeStorage.settings_brightness_level_navigation=settings_brightness_level_navigation,storeStorage.settings_contrast_level_navigation=settings_contrast_level_navigation,storeStorage.settings_background_color=settings_background_color,storeStorage.settings_cm_editor_palette=settings_cm_editor_palette,storeStorage.settings_theme_make_date=settings_theme_make_date,storeStorage.settings_enable_container_offset=settings_enable_container_offset,storeStorage.settings_contrast_mode=settings_contrast_mode,storeStorage.settings_usermin_default_module=settings_usermin_default_module,storeStorage.settings_document_title=settings_document_title,storeStorage.settings_right_page_hide_persistent_vscroll=settings_right_page_hide_persistent_vscroll,storeStorage.settings_hide_top_loader=settings_hide_top_loader,storeStorage.settings_collapse_navigation_link=settings_collapse_navigation_link,storeStorage.settings_sysinfo_link_mini=settings_sysinfo_link_mini,storeStorage.settings_show_night_mode_link=settings_show_night_mode_link,storeStorage.settings_show_terminal_link=settings_show_terminal_link,storeStorage.settings_favorites=settings_favorites,storeStorage.settings_theme_options_button=settings_theme_options_button,storeStorage.settings_leftmenu_button_refresh=settings_leftmenu_button_refresh,storeStorage.settings_hotkeys_active=settings_hotkeys_active,storeStorage.settings_mail_ui=settings_mail_ui,setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-manage-config=1&save=1",data:storeStorage,dataType:"text",success:function(c){Test.strContains(c,v___page_signin_form)?v___available_session=0:(setTimeout(function(){"0"!=get_access_level()&&(theme_restore_buttons_class(),theme_config_controls(0),despinnerfy_buttons(0,$("#save_user")))},400),callBack&&(callBack[2]?setTimeout(function(){eval(callBack[0])},callBack[2]):eval(callBack[0])))},error:function(){}})},10)}else if("load"===$action){var val=0;$.ajax({type:"GET",url:v___location_prefix+"/index.cgi?xhr-manage-config=1&load=1",data:!1,dataType:"json",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:($.each(e,function(e,t){val="true"==t||"false"!=t&&(Test.numeric(t)?t&&t.length>16?t:parseInt(t):t),localStorage.setItem(v___server_hostname+"-"+e,val),window[e]=val}),theme_config_post_load())},error:function(){}})}}function theme_config_post_load(){moment.locale(config_portable_theme_locale_language&&"0"!=config_portable_theme_locale_language?config_portable_theme_locale_languages:get_server_data("language-full"))}function get_login_required(e){return Test.strContains(e,v___page_signin_form)?(v___available_session=0,1):0}function get_server_data(e,t,a){var n=$("html"),i=$("body"),r="data-"+e,s=e.replace("data-","");if(void 0!==a)e.startsWith("data-")?(n.removeAttr(e),n.removeData(s)):(n.removeAttr(r),n.removeData(e)),"data-uri"===e&&i.removeAttr(e);else{if(void 0===t)return e.startsWith("data-")?n.attr(e):n.data(e);e.startsWith("data-")?n.attr(e,t).data(s,t):n.data(e,t).attr(r),"data-uri"!==e&&"data-module"!==e||(i.attr(e,t),"data-module"===e&&i.removeClass().addClass(t))}}function check_reboot(){core.curModuleFile("init","reboot.cgi")&&!document.querySelector('.container-fluid [action="reboot.cgi"]')&&setTimeout(function(){connection_error({status:0,reboot:1},1,{body:theme_language("connection_reboot_details"),title:theme_language("connection_reboot"),icon:"refresh-mdi"}),vars.pjax.post_reboot=!0},1e3)}function connection_error(e,t,a){var n=function(e){var t=String();if(e.responseText&&$(e.responseText).filter("p")){var a=$(e.responseText).filter("p").html();if(a){var n=a.replace(/\n/g," ").match(/(.*)\sat\s\/|(.*)/);n&&(t=" – "+Convert.htmlStrip(n[2]||n[1]))}}return t},i=n(e);if(502!==e.status||!i||!i.includes("tree.cgi"))if(progress.end(),v___theme_ajax_error=1,1!==v___theme_connection_triggered_origin&&!t||0!==e.status&&400!==e.status&&404!==e.status&&500!==e.status&&502!==e.status&&503!==e.status){var r=n(e),s=String();if(413===e.status){var o=theme_wiki_link("global_error_more_details_online","https://github.com/authentic-theme/authentic-theme/wiki/Error:--413---Request-Entity-Too-Large");o&&(s=".
    "+o)}200!==e.status&&(e.status&&plugins.messenger.post(''+theme_language("global_error")+":  "+e.status+" - "+e.statusText+r+s,30,"error","ajaxError"),setTimeout(despinnerfy_buttons,400))}else{var _="modal-connection-warning",l=e;vars.pjax.post_reboot&&(vars.pjax.post_reboot=!1),$("."+_).length||this.called||(this.called=1,$.ajax({context:this,type:"GET",url:v___location_prefix+"/index.cgi/?xhr-error=1",data:!1,dataType:"text",timeout:3e3,success:function(){this.called=0},error:function(){var e=theme_language("connection_error_details").replace("%server",location.host+v___location_prefix),t=theme_language("connection_lost"),n="unplugged",i="danger";a&&(e=a.body,t=a.title,n=a.icon,_+=" modal-reboot",i="warning");var r=new Date;r=moment(r.toISOString()).format(config_portable_theme_locale_format_full);var s='"+r+'">';l.reboot&&(s=String()),theme_alert(t+''+s,e,!1,"md",i,n+" fa-lg","7 "+_,0),setTimeout(function(){$("."+_+" .loading-dots + .fa").tooltip({placement:"auto bottom",trigger:"hover",html:!0,delay:{show:600,hide:30}})},150),setTimeout(function(){0===v___theme_connection_reestablish&&(connection_reestablish(),v___theme_connection_reestablish=1,this.called=0,$("."+_).on("hidden.bs.modal",function(){v___theme_connection_reestablish=0,progress.end()}))},1),setTimeout(function(){plugins.navigation.load.stop(),plugins.navigation.detect(),plugins.navigation.switch.reset(),despinnerfy_buttons(),plugins.shell.unlock()},100)}}))}}function theme_wiki_link(e,t){var a=theme_language(e),n=a.match(/%1(.*)%1/);if(n){var i=new RegExp(n[1],"g");return a=a.replace(/%1/g,String()).replace(i,'
    '+n[1]+"")}return String()}function connection_modal_close(){$(".modal-connection-warning").modal("hide"),v___theme_connection_reestablish=0}function connection_reestablish(){var e="modal-connection-warning";$("."+e).length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-check=1",data:!1,timeout:3e3,dataType:"text",success:function(t){$("."+e).removeClass("modal-reboot"),$("."+e).find(".modal-header").removeClass().addClass("modal-header background-success background--bordered").find("h4").html('   '+theme_language("connection_success")),$("."+e).find(".modal-body").html("

    "+theme_language("connection_success_details")+"

    "),vars.pjax.post_reboot?(get_pjax_content(v___location_prefix+"/sysinfo.cgi",["success",connection_modal_close]),vars.pjax.post_reboot=!1):setTimeout(function(){connection_modal_close()},2e3)},error:function(e){v___theme_connection_reestablish&&setTimeout(function(){connection_reestablish()},3e3)}})}function control_server_theme_temp_data(e,t,a,n,i,r){return $.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-theme_temp_data=1&xhr-theme_temp_data_action="+e+"&xhr-theme_temp_data_name="+t+"&xhr-theme_temp_data_value="+(a?Convert.uriEncodeComponent(a):a)+"&xhr-theme_temp_data_keep="+n,data:!1,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:"function"==typeof i&&(!e.length||e.length&&1===r)&&i()},error:function(e){}})}function get_server_theme_temp_data(e,t,a,n){return control_server_theme_temp_data("get",e,!1,t,a,n)}function set_server_theme_temp_data(e,t){control_server_theme_temp_data("set",e,t)}function page_control_header(){var e=$(".header #headln2l"),t=$(".header #headln2c");if(matchMedia("(max-width: 767px)").matches){if(e.next().is("#headln2c")){var a=t.detach();e.before(a)}}else if(t.next().is("#headln2l")){a=t.detach();e.after(a)}}function page_display(){var e=$("body"),t=$("body").find(".container-fluid"),a=$("head");t.css({opacity:1,"pointer-events":"auto"}),e.css("overflow","auto"),a.find("#__tmp_no_overflow").remove()}function page_remove_progress(){despinnerfy_buttons(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),setTimeout(function(){get_server_theme_temp_data("redirected",0)},100),setTimeout(function(){progress.end()},600)}function page_adjust(e,t){"function"==typeof $.injectCSS&&($("style[data-persist]").remove(),t=!!t&&"translate("+t+"px, 0px) !important",$.injectCSS({"#sidebar":{left:-e+"px",width:e+"px",transform:t},".switch-toggle":{width:e+"px"},"#content.__page":{"margin-left":e+"px"},".autocomplete-suggestions":{"min-width":e-23+"px !important"},".__logo":{width:e+"px","max-width":e+"px"},"#jsPanel-replacement-container":{left:($.support.spa?settings_leftmenu_width-1:-2)+"px"}}),$("aside select").length&&core.curModuleFile("webmin","edit_themes.cgi")&&!$.browser.mobile&&($("aside select[data-autocomplete-title]").attr("style","width:"+(e-24)+"px; margin-top: 0 !important"),plugins.navigation.select.load()))}function theme_modal_dismiss(){$(".modal.in").find("[data-dismiss]").trigger("click")}function theme_shortcut_check(e){return"0"==get_access_level()||!!core.moduleAvailable(URI("/"+e).directory().replace(/\//g,""))}function theme_shortcuts_modifier_unique(e){var t=["ctrlKey","altKey","shiftKey","metaKey"],a=t.indexOf(settings_hotkey_toggle_modifier),n=!1;return t.splice(a,1),t.map(function(t){e[t]&&!n&&(n=!0)}),!n}function theme_shortcuts(e){if(!Test.editing()&&settings_hotkeys_active){var t=theme_shortcuts_modifier_unique(e);if(e.ctrlKey&&e.altKey&&e.metaKey&&e.shiftKey&&"R"==String.fromCharCode(e.which)&&!theme.veiled(-1)&&theme_cache_clear(),0===get_access_level()&&e.ctrlKey&&e.altKey&&e.shiftKey&&"U"==String.fromCharCode(e.which)&&!theme.veiled(-1)&&theme.update(e.metaKey?0:1),!t)return!0;if(!v___available_session)return void e.preventDefault();if(e[settings_hotkey_toggle_modifier]){if("1"==String.fromCharCode(e.which)&&settings_hotkey_custom_1&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_1)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_1)),"2"==String.fromCharCode(e.which)&&settings_hotkey_custom_2&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_2)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_2)),"3"==String.fromCharCode(e.which)&&settings_hotkey_custom_3&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_3)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_3)),"4"==String.fromCharCode(e.which)&&settings_hotkey_custom_4&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_4)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_4)),"5"==String.fromCharCode(e.which)&&settings_hotkey_custom_5&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_5)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_5)),"6"==String.fromCharCode(e.which)&&settings_hotkey_custom_6&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_6)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_6)),"7"==String.fromCharCode(e.which)&&settings_hotkey_custom_7&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_7)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_7)),"8"==String.fromCharCode(e.which)&&settings_hotkey_custom_8&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_8)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_8)),"9"==String.fromCharCode(e.which)&&settings_hotkey_custom_9&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_9)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_9)),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_focus_search&&(e.preventDefault(),$(".form-control.sidebar-search").focus()),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&(e.preventDefault(),$('.switch-toggle input[id="open_webmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&(e.preventDefault(),$('.switch-toggle input[id="open_virtualmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&(e.preventDefault(),$('.switch-toggle input[id="open_cloudmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&(e.preventDefault(),$('.switch-toggle input[id="open_usermin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&(e.preventDefault(),$('.switch-toggle input[id="open_webmail"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_night_mode&&(e.preventDefault(),theme_toggle_night_mode()),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_navigation&&window.matchMedia("(min-width: 1080px)").matches&&(e.preventDefault(),$('aside [data-collapse-trigger="1"]').addClass("m").trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_slider&&window.matchMedia("(min-width: 1366px)").matches&&(e.preventDefault(),$('[data-trigger="side_slider_pinned"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_slider&&(e.preventDefault(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_reload&&$('.user-links a[data-refresh="true"]')&&(e.preventDefault(),page_refresh()),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_shell&&theme_shortcuts_modifier_unique(e)&&(1==core.moduleAvailable("shell")||plugins.shell.type()))return e.preventDefault(),void(plugins.shell.status()?plugins.shell.close():plugins.shell.open());String.fromCharCode(e.which).toLowerCase()==settings_hotkey_sysinfo&&(e.preventDefault(),1==plugins.navigation.switch.dashboard.get()?plugins.navigation.switch.dashboard.set():get_pjax_content(v___location_prefix+"/sysinfo.cgi")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_favorites&&(e.preventDefault(),"0px"!=$(".favorites-menu-outer").css("left")?$(".user-link.favorites").trigger("click"):$(".favorites-menu-outer").removeClass("hover"))}return!1}}function sysinfo_replace_dismiss_buttons(){var e=$('#system-status [onclick*="webmin/hide.cgi?id"], #right-side-tabs [onclick*="webmin/hide.cgi?id"], [data-referrer^="announce"] [onclick*="webmin/hide.cgi?id"]');$.each(e,function(){var e=$(this).attr("onclick"),t=$(this).text();$(this).is("input")&&(t=$(this).val()),$(this).before(' '+t+""),$(this).remove()});var t=$('#system-status [onclick*="window.open"][onclick*="_new"], #right-side-tabs [onclick*="window.open"][onclick*="_new"], [data-referrer^="announce"] [onclick*="window.open"][onclick*="_new"]');$.each(t,function(){var e=$(this).attr("onclick"),t=$(this).text();$(this).is("input")&&(t=$(this).val());var a="btn-primary",n=e.split('"')[1],i="fa fa-fw fa-external-link";n.includes("patreon")&&(i="fa2 fa-fw fa2-kiss-wink-heart-bold",a="btn-success"),$(this).before(' '+t+""),$(this).remove()})}function get_access_level(){return""!=vars.level&&-1!==vars.level?parseInt(vars.level):parseInt(get_server_data("level"))}function theme_updating(){return theme_message_exists("themeUpgrade")}function theme_message_exists(e){return void 0!==window["Messenger_"+e]}function theme_message_dismiss(e){void 0!==window["Messenger_"+e]&&(window["Messenger_"+e].hide(),delete window["Messenger_"+e])}function theme_message_and_unlock(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:String(),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"info",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;plugins.messenger.post(''+theme_language(""+t)+" ",r,i,n,s),setTimeout(function(){page_remove_progress(a)},600)}function theme_alert(e,t,a,n,i,r,s,o){(void 0===a||0==a)&&(a=!1),(void 0===n||0==n)&&(n="md"),(void 0===i||0==i)&&(i="danger"),(void 0===r||0==r)&&(r="exclamation-triangle"),(void 0===s||0==s)&&(s="7"),(void 0===o||0==o)&&(o=!1);$.isArray(a);var _="modal-global-notification",l='";setTimeout(function(){$("body").hasClass("modal-open")||($("body").append(l),$("."+_).modal("show"),$("."+_).on("click",".modal-body a.label",function(e){$("."+_).modal("hide")}),$("."+_).on("hidden.bs.modal",function(e){$("."+_).remove()}))},o)}function theme_alert_charset(){var e=get_server_data("charset");if(e&&-1===e.toLowerCase().indexOf("utf")&&"true"!=localStorage.getItem(v___server_hostname+"-config_portable_theme_charset_warning_shown")){var t="

    "+theme_language("encoding_warning").replace("_hidden_",$t_uri_usermin?"hidden":"").replace("%prod",plugins.navigation.state.title()).replace("%lang",get_server_data("language")).replace("%charset",get_server_data("charset")).replace("%link",v___location_prefix+($t_uri_usermin?"/language":"/webmin/edit_lang.cgi"))+"

    ";theme_alert(theme_language("global_warning"),t,!1,"sm","warning",!1,"7 modal-charset-warning",2e3),$("body").on("click",".modal-charset-warning a.label",function(e){$(".modal-charset-warning").modal("hide")}),$("body").on("hide.bs.modal",".modal-charset-warning",function(e){localStorage.setItem(v___server_hostname+"-config_portable_theme_charset_warning_shown","true"),theme_config("save")})}}function get_module_title(){return $_right_menu_title=$("#headln2c"),$_right_menu_title.find("span[data-main_title]").text().length?$_right_menu_title.find("span[data-main_title]").text():$_right_menu_title.text().length?$_right_menu_title.text().text():"->"}function editor_background_save(e,t){if(1===$('.container-fluid textarea[name="data"],.container-fluid textarea[name="text"],.container-fluid textarea[name="directives"],.container-fluid textarea[name="manual"]').length&&1===$('.container-fluid textarea[name="data"],.container-fluid textarea[name="text"],.container-fluid textarea[name="directives"],.container-fluid textarea[name="manual"]').parents("form").find('input[type="submit"]').length){if(!$(".CodeMirror").length)return;function a(){"undefined"!=typeof __cm_editor_static&&$(".container-fluid > .panel > .panel-body").attr("data-cm-line",__cm_editor_static.getCursor().line+","+__cm_editor_static.getCursor().ch).attr("data-cm-state",$('[data-form="submitter"]').hasClass("btn-warning")&&!$('[data-form="submitter"]').next("button").hasClass("disabled"))}var n=$(document.body),i=".container-fluid > .panel > .panel-body",r=$(i+' textarea[name="data"], '+i+' textarea[name="text"], '+i+' textarea[name="directives"], '+i+' textarea[name="manual"]').parents("form"),s=r.find('button[type="button"]').length?r.find('button[type="button"]'):r.find('input[type="submit"]'),o=$(i+' textarea[name="directives"]').length?"-12px":"0";$(i+" select").val()?$(i+" select").val():$(".container-fluid .table-title").text()?$(".container-fluid .table-title").text():$(".container-fluid .panel-body tt:first").text()?$(".container-fluid .panel-body tt:first").text():$(".container-fluid #headln2c tt:first").text()&&$(".container-fluid #headln2c tt:first").text();$(i+" .ui_reset").remove(),s.parents("table.ui_form_end_buttons").prev("br").remove(),s.parents("table.ui_form_end_buttons").prev("div.table-responsive").attr("style","margin-bottom: -4px !important"),s.replaceWith(' ");var _=$(i+' button[type="button"]:not(.ui_form_end_submit)'),l=($(i+' button[type="submit"]:not(.ui_form_end_submit)'),window.__cm_editor_static),c='button[type="submit"]:not(.disabled)',d='button[data-form="submitter"]:not(.disabled)';l.on("change",function(e,t){__cm_editor_static.save(),_.addClass("btn-warning").removeClass("btn-success").attr("data-form-onbeforeunload",1),a()}),n.off("mousedown.cm1").on("mousedown.cm1",i+" .CodeMirror",function(e){a()}).off("keydown.cm1").on("keydown.cm1",function(e){var t=e.keyCode?e.keyCode:e.which,a=$(i+' button[type="button"]:not(.ui_form_end_submit)'),n=a.not(".disabled"),r=$(i+' button[type="submit"]:not(.ui_form_end_submit)'),s=r.not(".disabled");a.find(".cspinner_container").length||r.find(".cspinner_container").length?e.preventDefault():(13==t||83==t)&&l&&l.hasFocus()&&(83==t?!e.shiftKey&&e.ctrlKey?(e.preventDefault(),n.length&&n.trigger("click")):e.altKey&&e.ctrlKey&&e.shiftKey&&s.length&&(e.preventDefault(),s.trigger("click")):e.ctrlKey&&e.shiftKey&&s.length?s.trigger("click"):e.ctrlKey&&n.length&&n.trigger("click"))}).undelegate(c,"click.cm").on("click.cm",c,function(e){set_onbeforeunload_status(0,0),$(this).addClass("disabled").find(".fa.fa-arrow-circle-o-left").addClass("invisible").after(''),_.attr("data-form-onbeforeunload",0)}).undelegate(d,"click.cm").on("click.cm",d,function(e){e.preventDefault();var t=$(this).parents("form"),a=(t.attr("enctype")&&t.attr("enctype").indexOf("form-data")>-1?0:1)?t.serialize():new FormData(t[0]);$(this).addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after(''),setTimeout(function(){$.ajax({type:"POST",url:r.attr("action"),data:a,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(!Test.strContains(e,v___page_signin_form))return _.removeClass("btn-warning").addClass("btn-success").attr("data-form-onbeforeunload",0),$("button").removeClass("disabled").find(".fa").removeClass("invisible").parent().find(".cspinner_container").remove(),$(i).attr("data-cm-state","false"),set_onbeforeunload_status(0,0),!$(e).find(".panel-body > hr + h3").length||$(e).find(".panel-body .table").length||$(e).find(".panel-body form[action]").length?void 0:(plugins.messenger.post(''+$(e).find(".panel-body hr + h3").html(),60,"error","magic_save_error"),_.removeClass("btn-success").addClass("btn-warning").attr("data-form-onbeforeunload",1),void $(i).attr("data-cm-state","true"));v___available_session=0},error:function(e){}})},300)}),editor_config_search(t)}}function editor_config_search(e){var t="dropdown-editor_config_search",a="[data-search-in-files-button]",n='[data-name="search-in-files"]',i="data-search-in-results-container",r="."+t,s=".panel-body form .select2",o="data-search-in-files-icon-find",_=theme_spinner_small(),l="data-no-results-initial",c="data-search-stats",d=0;setTimeout(function(){var e=$(s),g=e.prev("select"),f=g.attr("name"),u=e.parents("form").attr("action");if(e.addClass("z-index-10001"),!(g.find("option").length<=1)){e.parents("form").addClass("text-nowrap"),$(r).length||(e.after('
    '),setTimeout(function(){var e=uri_parse_param("editor_search");e&&($(n).val(e).trigger("keydown"),setTimeout(function(){$(a).removeClass("disabled").trigger("click")}))})),$(".dropdown-editor_config_search + [data-external-detach]").on("click",function(e){e.preventDefault();if(!$(this).hasClass("disabled")){$(this).addClass("disabled");var t=$(this).parents("form").find("select").val().match(/^(.+)\/([^/]+)$/);t[0]&&t[1]&&t[2]&&(v___page_editor_detached=!0,edit_file(t[2],t[1]))}});var p=$("["+i+"]");p.find("a").on("click",function(e){e.preventDefault();var t=$(this).attr("data-href")+p[0].scrollTop;get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:t}):get_pjax_content(t)}),$(r).find("li").on("click",function(e){e.stopPropagation()}),$(r).on("show.bs.dropdown",function(){var e=$(s).prev("select").prev('input[type="submit"]'),t=-1,a=$(s).width();a<360&&(t+=$(s)[0].offsetLeft-(e.length?14:11));var n=t+a+$(r).width();$(this).find(".dropdown-menu").css("min-width",n).css("max-width",n).css("width",n);var i=$(this).parents("form").outerWidth(),o=$(this)[0].offsetLeft;if(oLine: '+a[1][1]+''+a[0]+""+a[1][0].replace(s,""+$.trim(e)+"")+"
    "}).promise().done(function(){a.append(n),a[0].scrollTop=0,a.find("a").on("click",function(e){e.preventDefault();var t=$(this).attr("data-href")+a[0].scrollTop;get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:t}):get_pjax_content(t)});var t,i=jQuery.unique(o).length;t=(t=1===o.length&&1===_?theme_language("find_in_config_files_result_found_single"):1===o.length&&_>1?theme_language("find_in_config_files_result_found_multi"):theme_language("find_in_config_files_results_found")).replace("$1",_).replace("$2",i).replace("$3",""+e+""),$("["+c+"]").html(t)})}else a.append(""+theme_language("filemanager_search_no_matches").replace(".","")+""),m(1),$(r).find("span.fa").removeClass("text-warning")}},complete:function(){$("["+o+"]").removeClass("hidden")},error:function(){}})}})}function m(e){e?$("["+c+"]").addClass("hidden"):$("["+c+"]").removeClass("hidden")}})}function page_resized(){plugins.navigation.lock(),$(".mobile-menu-toggler").hasClass("selected")||"1"==$("html").attr("data-navigation-collapsed")||($("aside").addClass("hidden-xs"),$("aside").css("transform","translate("+settings_leftmenu_width+"px, 0px)"),$(".switch-toggle").css("display","table"),"function"==typeof jQuery().transition&&$(".__logo")&&!$(".mobile-menu-toggler:visible").length?$(".__logo").transition({y:"-140px"},700,function(){}):$(".__logo")&&$(".__logo").css("transform","translate(0px, 0px)")),plugins.slider.test();var e=$('input[name="settings_leftmenu_width"]');if($(".mobile-menu-toggler:visible").length?e.prop("disabled",!0):e.prop("disabled",!1),v___location_path&&v___location_path.indexOf("/webmin/edit_themes.cgi")>-1){var t=!(!settings_navigation_always_collapse&&!window.matchMedia("(max-width: 1365px)").matches),a="false"!=$('input[name="settings_side_slider_enabled"]:checked').val();t&&!$.browser.mobile&&$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),a&&$('input[name="settings_side_slider_fixed"], input[name="settings_side_slider_fixed_toggle"]').prop("disabled",t)}}function theme_config_store(){if("0"==v___user_level){var e=core.get_global_vars(["settings_"],1);$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&save=1",data:e,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)&&(v___available_session=0)},error:function(){}})}}function theme_config_controls(e){var t=$("#atsave, #save_user");e?(set_onbeforeunload_status(1,0),t.addClass("btn-warning")):(set_onbeforeunload_status(0,0),t.removeClass("btn-warning"))}function theme_washout(e){var t=$("aside, .jsPanel, .mobile-menu-toggler, .right-side-tabs, .right-side-tabs-toggler, .container-fluid"),a="pointer-events-none bg-filter-blur2-grayscale100-opacity75";e?t.removeClass(a):t.addClass(a)}function theme_countdown_animated(e,t){if(!e)return'
    ';var a=e.find(".countdown-animated-circle > .number")[0],n=t||5;if(a){a.textContent=n;var i=setInterval(function(){n=--n<=0?clearInterval(i):n,a.textContent=n},1e3)}}function theme_config_check(){this.reloadFn=function(){vars.pjax_cancel=1;var e=bootbox.alert({message:theme_language("reload_notification"),className:"theme_reload_notice bootbox-centered font-medium warning"});e.init(function(){var e=$(".theme_reload_notice").find(".bootbox-body");e.append(theme_countdown_animated()),theme_countdown_animated(e),theme_washout()}),e.on("escape.close.bb",function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),theme_reload()}),setTimeout(function(){theme_reload()},4600)};var e=location.pathname.indexOf("/webmin/edit_themes.cgi")>-1,t=location.pathname.indexOf("/settings-user.cgi")>-1,a="settings"+(t?"_"+get_server_data("user"):"")+".js",n=0,i=["settings_font_family","settings_navigation_color","settings_theme_make_date","settings_enable_container_offset","settings_contrast_mode","settings_usermin_default_module","settings_document_title","settings_right_page_hide_persistent_vscroll","settings_side_slider_enabled","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled","settings_side_slider_palette","settings_navigation_always_collapse","settings_leftmenu_width","settings_leftmenu_user_html"];if(v___location_path&&(e||t)){var r=core.get_global_vars(["config_","settings"]);$('script[src*="'+a+'"]').length?$.getScript(v___server_js_path+"/"+a,function(){for(var e=core.get_global_vars(["config_","settings"]),t=0;t16?a:parseFloat(a):a})}function theme_window_focused(){core.curModule("package-updates")&&$("a.btn-tiny + b.btn-success + a.btn-tiny").length&&$(".dataTables_wrapper").length&&!get_onbeforeunload_status()&&(vars.allow_ui_features=0,page_refresh())}function theme_download_form(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"backup_is_being_prepared",a=arguments.length>1&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>1&&void 0!==arguments[3]?arguments[3]:0,i=e.serialize(),r=e.attr("action"),s=e.attr("method");setTimeout(function(){theme.download(r,i,s,n)},3300),theme_message_and_unlock("fa-download-cloud",t,a)}function theme_download_link(e){return v___module.includes("webminlog")&&Test.arrIntersect(["webminlog.csv"],e.url)||v___module.includes("software")&&Test.arrIntersect(["view.cgi"],e.url)||v___module.includes("mysql")&&Test.arrIntersect(["download.cgi"],e.url)||v___module.includes("postgresql")&&Test.arrIntersect(["download.cgi"],e.url)||v___module.includes("postfix")&&Test.arrIntersect(["detach_queue.cgi"],e.url)||v___module.includes("mailbox")&&Test.arrIntersect(["detach.cgi","detachall.cgi","slideshow.cgi"],e.url)||"view_mail.cgi"===v___location_file&&"1"==uri_parse_param("raw",e.url)?(theme_open_new_tab(e.url),1):0}function theme_unbind(e,t){$(e).off(t)}function bind_sameorigin(e){1===e?$.each($('aside ul.navigation a[href^="http"], aside ul.navigation a[href^="https"], aside ul.navigation a[href^="ftp"], aside ul.navigation a[href^="ftps"], aside ul.navigation a[data-href^="http"], aside ul.navigation a[data-href^="https"], aside ul.navigation a[data-href^="ftp"], aside ul.navigation a[data-href^="ftps"]'),function(){$(this).removeClass("navigation_module_trigger").parents("li").addClass("navigation_external"),$(this).attr("target","_blank"),$(this).attr("href",$(this).data("href")),$(this).removeAttr("data-href")}):$.each($('.container-fluid a[href^="http"], .container-fluid a[href^="https"], .container-fluid a[href^="ftp"], .container-fluid a[href^="ftps"]'),function(){core.linkSameOrigin($(this))||$(this).attr("target","_blank")})}function get_default_content(){get_onbeforeunload_status()||(v___theme_processing_default_content?setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001):(v___theme_processing_default_content=1,$("body").append(''),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-default=1",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{$("#____switch").html(e),$____switch=$("#____switch").text();var t=v___location_prefix+(3==v___user_level&&core.moduleAvailable("mailbox")&&$t_uri_webmail?"/mailbox/index.cgi?id=INBOX":3==v___user_level?"/"+(settings_usermin_default_module||"sysinfo.cgi"):("/"==$____switch.substring(0,1)?"":"/")+$____switch);check_bundle(t),get_pjax_content(t,["success","v___theme_processing_default_content = 0"]),$("#____switch").remove()}}})))}function get_default_virtualmin_content(e,t){if(!get_onbeforeunload_status()||t)if(v___theme_processing_default_content)setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);else{v___theme_processing_default_content=1;var a,n="/virtual-server";if(a=1==get_server_data("initial-wizard")&&v___module!==v___module_file_manager?n+"/wizard.cgi":!1!==e?n+"/summary_domain.cgi?dom="+e:"sysinfo.cgi"==settings_right_virtualmin_default||""==settings_right_virtualmin_default?"/sysinfo.cgi":"index.cgi"==settings_right_virtualmin_default?n+"/index.cgi":n+"/summary_domain.cgi?dom="+settings_right_virtualmin_default,t)return v___location_prefix+a;get_pjax_content(v___location_prefix+a,["success","v___theme_processing_default_content = 0"])}}function get_default_cloudmin_content(e,t){if(!get_onbeforeunload_status()||t)if(v___theme_processing_default_content)setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);else{var a;if(v___theme_processing_default_content=1,a=!1===e||settings_right_cloudmin_default||"0"==settings_right_cloudmin_default?"sysinfo.cgi"==settings_right_cloudmin_default||""==settings_right_cloudmin_default&&"0"!=settings_right_cloudmin_default?"sysinfo.cgi":"index.cgi"==settings_right_cloudmin_default?"server-manager/index.cgi":"server-manager/edit_serv.cgi?id="+settings_right_cloudmin_default:"server-manager/edit_serv.cgi?id="+e,t)return v___location_prefix+"/"+a;get_pjax_content(v___location_prefix+"/"+a,["success","v___theme_processing_default_content = 0"])}}function get_navigation_and_content(e,t,a){get_onbeforeunload_status()||("virtualmin"===e?(plugins.navigation.get.virtualmin(!1),1!=settings_right_reload&&1!==t||1===a||get_default_virtualmin_content(!1)):"cloudmin"===e?(plugins.navigation.get.cloudmin(!1),1!=settings_right_reload&&1!==t||1===a||get_default_cloudmin_content(!1)):(0==plugins.navigation.switch.dashboard.get()&&plugins.navigation.get.webmin(e),1!=settings_right_reload&&1!==t||1===a||get_default_content()))}function editor_html_toolbar(e){var t;if([{name:"styles",items:["Font","FontSize","Format"]},{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript"]},{name:"colors",items:["TextColor","BGColor"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"paragraph",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","-","Blockquote","-","Outdent","Indent","-","BidiLtr","BidiRtl","-","RemoveFormat"]}],t=[{name:"styles",items:["Font","FontSize","Format"]},{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript"]},{name:"colors",items:["TextColor","BGColor"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"paragraph",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","-","Blockquote","-","Outdent","Indent","-","BidiLtr","BidiRtl","-","RemoveFormat"]}],"basic"===e)return t;return[{name:"document",items:["Source","-","Preview","Print"]},{name:"clipboard",items:["Undo","Redo"]},{name:"editing",items:["Find","-","Emojione"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["InsertPre","CreateDiv","-","Table","base64image","HorizontalRule","PageBreak","Iframe"]},{name:"forms",items:["Form","Checkbox","Radio","TextField","Textarea","Select","Button","ImageButton","HiddenField"]},{name:"tools",items:["ShowBlocks"]},"/"].concat(t)}function edit_files_cascade(e,t,a){var n=$(".jsPanel").filter(function(){return"-9999px"!==$(this).css("left")}),i=n.length,r=$(window).width(),s=$(window).height(),o=r/i,_=s/i,l=$(".jsPanel-controlbar .jsPanel-btn-align"),c=vars.jspanels_reversed?$(n).toArray().reverse():n;e?1==i?l.addClass("disabled"):l.removeClass("disabled"):($.each(c,function(e,n){if("-9999px"!==$(this).css("left")){var l=parseInt($(this).attr("data-uid").replace("jsp_",""));parseInt($(t).attr("id").replace("jsPanel-",""));if(1===a){var c=r-20,d=_-(e+1==i?20:5);window["jsp_"+l].resize(c,d).reposition("left-top 10 "+(10+_*e))}else{c=o-(e+1==i?20:5),d=s-20;window["jsp_"+l].resize(c,d).reposition("left-top "+(10+o*e)+" 10")}}}),1===vars.jspanels_reversed?vars.jspanels_reversed=0:vars.jspanels_reversed=1,vars.jspanels_reversed=0)}function edit_file(external_file_name,external_file_name_path,external_callback){if(core.moduleAvailable(v___module_file_manager)){var ____jsPanelId="jsp_"+parseInt(1e18*Math.random()),___target,___file_name,___file_name_path,__file_to_open,htmlDataAttr="htmledit",file_editor_save_button_str="_filemanager_file_editor_save",html_editor_target,is_html_editor;if(external_file_name&&external_file_name_path){var external_file_name_initial=external_file_name,external_file_name_path_initial=external_file_name_path;if(external_file_name.includes("/")&&(external_location_parts=external_file_name.split("/"),external_file_name=external_location_parts.slice(-1)[0],external_location_parts.pop(),external_file_name_path=external_location_parts.join("/"),external_file_name_initial.startsWith("/")||(external_file_name_path=external_file_name_path_initial+"/"+external_file_name_path)),"object"!=typeof jsPanel){var init_script_name="jquery.jspanel";return void load.bundle(init_script_name,1,{edit_file:[external_file_name,external_file_name_path,external_callback]},2)}___file_name=Convert.uriEncodeComponent(external_file_name),___file_name_path=external_file_name_path}else ___target=$($v__fm__container_fluid_form+" table tbody tr.m-active").find("a[data-filemin-link]"),___file_name=Convert.uriEncodeComponent(Convert.htmlUnEscape(___target.attr("data-filemin-link"))),___file_name_path=$($v__fm__container_fluid+" #path").val(),html_editor_target=___target.parent("td").parent("tr"),is_html_editor=1==html_editor_target.data(htmlDataAttr)?1:0,html_editor_target.removeData(htmlDataAttr);__file_to_open=v___location_prefix+"/"+v___module_file_manager+"/edit_file.cgi?file="+___file_name+"&path="+___file_name_path;var __f___es_adj=function(e,t){var a=e.find("option:selected").text(),n=$("";setTimeout(function(){$("body").hasClass("modal-open")||($("body").append(l),$("."+_).modal("show"),$("."+_).on("click",".modal-body a.label",function(e){$("."+_).modal("hide")}),$("."+_).on("hidden.bs.modal",function(e){$("."+_).remove()}))},o)}function theme_alert_charset(){var e=get_server_data("charset");if(e&&-1===e.toLowerCase().indexOf("utf")&&"true"!=localStorage.getItem(v___server_hostname+"-config_portable_theme_charset_warning_shown")){var t="

    "+theme_language("encoding_warning").replace("_hidden_",$t_uri_usermin?"hidden":"").replace("%prod",plugins.navigation.state.title()).replace("%lang",get_server_data("language")).replace("%charset",get_server_data("charset")).replace("%link",v___location_prefix+($t_uri_usermin?"/language":"/webmin/edit_lang.cgi"))+"

    ";theme_alert(theme_language("global_warning"),t,!1,"sm","warning",!1,"7 modal-charset-warning",2e3),$("body").on("click",".modal-charset-warning a.label",function(e){$(".modal-charset-warning").modal("hide")}),$("body").on("hide.bs.modal",".modal-charset-warning",function(e){localStorage.setItem(v___server_hostname+"-config_portable_theme_charset_warning_shown","true"),theme_config("save")})}}function get_module_title(){return $_right_menu_title=$("#headln2c"),$_right_menu_title.find("span[data-main_title]").text().length?$_right_menu_title.find("span[data-main_title]").text():$_right_menu_title.text().length?$_right_menu_title.text().text():"->"}function editor_background_save(e,t){if(1===$('.container-fluid textarea[name="data"],.container-fluid textarea[name="text"],.container-fluid textarea[name="directives"],.container-fluid textarea[name="manual"]').length&&1===$('.container-fluid textarea[name="data"],.container-fluid textarea[name="text"],.container-fluid textarea[name="directives"],.container-fluid textarea[name="manual"]').parents("form").find('input[type="submit"]').length){if(!$(".CodeMirror").length)return;function a(){"undefined"!=typeof __cm_editor_static&&$(".container-fluid > .panel > .panel-body").attr("data-cm-line",__cm_editor_static.getCursor().line+","+__cm_editor_static.getCursor().ch).attr("data-cm-state",$('[data-form="submitter"]').hasClass("btn-warning")&&!$('[data-form="submitter"]').next("button").hasClass("disabled"))}var n=$(document.body),i=".container-fluid > .panel > .panel-body",r=$(i+' textarea[name="data"], '+i+' textarea[name="text"], '+i+' textarea[name="directives"], '+i+' textarea[name="manual"]').parents("form"),s=r.find('button[type="button"]').length?r.find('button[type="button"]'):r.find('input[type="submit"]'),o=$(i+' textarea[name="directives"]').length?"-12px":"0";$(i+" select").val()?$(i+" select").val():$(".container-fluid .table-title").text()?$(".container-fluid .table-title").text():$(".container-fluid .panel-body tt:first").text()?$(".container-fluid .panel-body tt:first").text():$(".container-fluid #headln2c tt:first").text()&&$(".container-fluid #headln2c tt:first").text();$(i+" .ui_reset").remove(),s.parents("table.ui_form_end_buttons").prev("br").remove(),s.parents("table.ui_form_end_buttons").prev("div.table-responsive").attr("style","margin-bottom: -4px !important"),s.replaceWith(' ");var _=$(i+' button[type="button"]:not(.ui_form_end_submit)'),l=($(i+' button[type="submit"]:not(.ui_form_end_submit)'),window.__cm_editor_static),c='button[type="submit"]:not(.disabled)',d='button[data-form="submitter"]:not(.disabled)';l.on("change",function(e,t){__cm_editor_static.save(),_.addClass("btn-warning").removeClass("btn-success").attr("data-form-onbeforeunload",1),a()}),n.off("mousedown.cm1").on("mousedown.cm1",i+" .CodeMirror",function(e){a()}).off("keydown.cm1").on("keydown.cm1",function(e){var t=e.keyCode?e.keyCode:e.which,a=$(i+' button[type="button"]:not(.ui_form_end_submit)'),n=a.not(".disabled"),r=$(i+' button[type="submit"]:not(.ui_form_end_submit)'),s=r.not(".disabled");a.find(".cspinner_container").length||r.find(".cspinner_container").length?e.preventDefault():(13==t||83==t)&&l&&l.hasFocus()&&(83==t?!e.shiftKey&&e.ctrlKey?(e.preventDefault(),n.length&&n.trigger("click")):e.altKey&&e.ctrlKey&&e.shiftKey&&s.length&&(e.preventDefault(),s.trigger("click")):e.ctrlKey&&e.shiftKey&&s.length?s.trigger("click"):e.ctrlKey&&n.length&&n.trigger("click"))}).undelegate(c,"click.cm").on("click.cm",c,function(e){set_onbeforeunload_status(0,0),$(this).addClass("disabled").find(".fa.fa-arrow-circle-o-left").addClass("invisible").after(''),_.attr("data-form-onbeforeunload",0)}).undelegate(d,"click.cm").on("click.cm",d,function(e){e.preventDefault();var t=$(this).parents("form"),a=(t.attr("enctype")&&t.attr("enctype").indexOf("form-data")>-1?0:1)?t.serialize():new FormData(t[0]);$(this).addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after(''),setTimeout(function(){$.ajax({type:"POST",url:r.attr("action"),data:a,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(!Test.strContains(e,v___page_signin_form))return _.removeClass("btn-warning").addClass("btn-success").attr("data-form-onbeforeunload",0),$("button").removeClass("disabled").find(".fa").removeClass("invisible").parent().find(".cspinner_container").remove(),$(i).attr("data-cm-state","false"),set_onbeforeunload_status(0,0),!$(e).find(".panel-body > hr + h3").length||$(e).find(".panel-body .table").length||$(e).find(".panel-body form[action]").length?void 0:(plugins.messenger.post(''+$(e).find(".panel-body hr + h3").html(),60,"error","magic_save_error"),_.removeClass("btn-success").addClass("btn-warning").attr("data-form-onbeforeunload",1),void $(i).attr("data-cm-state","true"));v___available_session=0},error:function(e){}})},300)}),editor_config_search(t)}}function editor_config_search(e){var t="dropdown-editor_config_search",a="[data-search-in-files-button]",n='[data-name="search-in-files"]',i="data-search-in-results-container",r="."+t,s=".panel-body form .select2",o="data-search-in-files-icon-find",_=theme_spinner_small(),l="data-no-results-initial",c="data-search-stats",d=0;setTimeout(function(){var e=$(s),g=e.prev("select"),f=g.attr("name"),u=e.parents("form").attr("action");if(e.addClass("z-index-10001"),!(g.find("option").length<=1)){e.parents("form").addClass("text-nowrap"),$(r).length||(e.after('
    '),setTimeout(function(){var e=uri_parse_param("editor_search");e&&($(n).val(e).trigger("keydown"),setTimeout(function(){$(a).removeClass("disabled").trigger("click")}))})),$(".dropdown-editor_config_search + [data-external-detach]").on("click",function(e){e.preventDefault();if(!$(this).hasClass("disabled")){$(this).addClass("disabled");var t=$(this).parents("form").find("select").val().match(/^(.+)\/([^/]+)$/);t[0]&&t[1]&&t[2]&&(v___page_editor_detached=!0,edit_file(t[2],t[1]))}});var p=$("["+i+"]");p.find("a").on("click",function(e){e.preventDefault();var t=$(this).attr("data-href")+p[0].scrollTop;get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:t}):get_pjax_content(t)}),$(r).find("li").on("click",function(e){e.stopPropagation()}),$(r).on("show.bs.dropdown",function(){var e=$(s).prev("select").prev('input[type="submit"]'),t=-1,a=$(s).width();a<360&&(t+=$(s)[0].offsetLeft-(e.length?14:11));var n=t+a+$(r).width();$(this).find(".dropdown-menu").css("min-width",n).css("max-width",n).css("width",n);var i=$(this).parents("form").outerWidth(),o=$(this)[0].offsetLeft;if(oLine: '+a[1][1]+''+a[0]+""+a[1][0].replace(s,""+$.trim(e)+"")+""}).promise().done(function(){a.append(n),a[0].scrollTop=0,a.find("a").on("click",function(e){e.preventDefault();var t=$(this).attr("data-href")+a[0].scrollTop;get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:t}):get_pjax_content(t)});var t,i=jQuery.unique(o).length;t=(t=1===o.length&&1===_?theme_language("find_in_config_files_result_found_single"):1===o.length&&_>1?theme_language("find_in_config_files_result_found_multi"):theme_language("find_in_config_files_results_found")).replace("$1",_).replace("$2",i).replace("$3",""+e+""),$("["+c+"]").html(t)})}else a.append(""+theme_language("filemanager_search_no_matches").replace(".","")+""),m(1),$(r).find("span.fa").removeClass("text-warning")}},complete:function(){$("["+o+"]").removeClass("hidden")},error:function(){}})}})}function m(e){e?$("["+c+"]").addClass("hidden"):$("["+c+"]").removeClass("hidden")}})}function page_resized(){plugins.navigation.lock(),$(".mobile-menu-toggler").hasClass("selected")||"1"==$("html").attr("data-navigation-collapsed")||($("aside").addClass("hidden-xs"),$("aside").css("transform","translate("+settings_leftmenu_width+"px, 0px)"),$(".switch-toggle").css("display","table"),"function"==typeof jQuery().transition&&$(".__logo")&&!$(".mobile-menu-toggler:visible").length?$(".__logo").transition({y:"-140px"},700,function(){}):$(".__logo")&&$(".__logo").css("transform","translate(0px, 0px)")),plugins.slider.test();var e=$('input[name="settings_leftmenu_width"]');if($(".mobile-menu-toggler:visible").length?e.prop("disabled",!0):e.prop("disabled",!1),v___location_path&&v___location_path.indexOf("/webmin/edit_themes.cgi")>-1){var t=!(!settings_navigation_always_collapse&&!window.matchMedia("(max-width: 1365px)").matches),a="false"!=$('input[name="settings_side_slider_enabled"]:checked').val();t&&!$.browser.mobile&&$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),a&&$('input[name="settings_side_slider_fixed"], input[name="settings_side_slider_fixed_toggle"]').prop("disabled",t)}}function theme_config_store(){if("0"==v___user_level){var e=core.get_global_vars(["settings_"],1);$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&save=1",data:e,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)&&(v___available_session=0)},error:function(){}})}}function theme_config_controls(e){var t=$("#atsave, #save_user");e?(set_onbeforeunload_status(1,0),t.addClass("btn-warning")):(set_onbeforeunload_status(0,0),t.removeClass("btn-warning"))}function theme_washout(e){var t=$("aside, .jsPanel, .mobile-menu-toggler, .right-side-tabs, .right-side-tabs-toggler, .container-fluid"),a="pointer-events-none bg-filter-blur2-grayscale100-opacity75";e?t.removeClass(a):t.addClass(a)}function theme_countdown_animated(e,t){if(!e)return'
    ';var a=e.find(".countdown-animated-circle > .number")[0],n=t||5;if(a){a.textContent=n;var i=setInterval(function(){n=--n<=0?clearInterval(i):n,a.textContent=n},1e3)}}function theme_config_check(){this.reloadFn=function(){vars.pjax_cancel=1;var e=bootbox.alert({message:theme_language("reload_notification"),className:"theme_reload_notice bootbox-centered font-medium warning"});e.init(function(){var e=$(".theme_reload_notice").find(".bootbox-body");e.append(theme_countdown_animated()),theme_countdown_animated(e),theme_washout()}),e.on("escape.close.bb",function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),theme_reload()}),setTimeout(function(){theme_reload()},4600)};var e=location.pathname.indexOf("/webmin/edit_themes.cgi")>-1,t=location.pathname.indexOf("/settings-user.cgi")>-1,a="settings"+(t?"_"+get_server_data("user"):"")+".js",n=0,i=["settings_font_family","settings_navigation_color","settings_theme_make_date","settings_enable_container_offset","settings_contrast_mode","settings_usermin_default_module","settings_document_title","settings_right_page_hide_persistent_vscroll","settings_side_slider_enabled","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled","settings_side_slider_palette","settings_navigation_always_collapse","settings_leftmenu_width","settings_leftmenu_user_html"];if(v___location_path&&(e||t)){var r=core.get_global_vars(["config_","settings"]);$('script[src*="'+a+'"]').length?$.getScript(v___server_js_path+"/"+a,function(){for(var e=core.get_global_vars(["config_","settings"]),t=0;t16?a:parseFloat(a):a})}function theme_window_focused(){core.curModule("package-updates")&&$("a.btn-tiny + b.btn-success + a.btn-tiny").length&&$(".dataTables_wrapper").length&&!get_onbeforeunload_status()&&(vars.allow_ui_features=0,page_refresh())}function theme_download_form(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"backup_is_being_prepared",a=arguments.length>1&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>1&&void 0!==arguments[3]?arguments[3]:0,i=e.serialize(),r=e.attr("action"),s=e.attr("method");setTimeout(function(){theme.download(r,i,s,n)},3300),theme_message_and_unlock("fa-download-cloud",t,a)}function theme_download_link(e){return v___module.includes("webminlog")&&Test.arrIntersect(["webminlog.csv"],e.url)||v___module.includes("software")&&Test.arrIntersect(["view.cgi"],e.url)||v___module.includes("mysql")&&Test.arrIntersect(["download.cgi"],e.url)||v___module.includes("postgresql")&&Test.arrIntersect(["download.cgi"],e.url)||v___module.includes("postfix")&&Test.arrIntersect(["detach_queue.cgi"],e.url)||v___module.includes("mailbox")&&Test.arrIntersect(["detach.cgi","detachall.cgi","slideshow.cgi"],e.url)||"view_mail.cgi"===v___location_file&&"1"==uri_parse_param("raw",e.url)?(theme_open_new_tab(e.url),1):0}function theme_unbind(e,t){$(e).off(t)}function bind_sameorigin(e){1===e?$.each($('aside ul.navigation a[href^="http"], aside ul.navigation a[href^="https"], aside ul.navigation a[href^="ftp"], aside ul.navigation a[href^="ftps"], aside ul.navigation a[data-href^="http"], aside ul.navigation a[data-href^="https"], aside ul.navigation a[data-href^="ftp"], aside ul.navigation a[data-href^="ftps"]'),function(){$(this).removeClass("navigation_module_trigger").parents("li").addClass("navigation_external"),$(this).attr("target","_blank"),$(this).attr("href",$(this).data("href")),$(this).removeAttr("data-href")}):$.each($('.container-fluid a[href^="http"], .container-fluid a[href^="https"], .container-fluid a[href^="ftp"], .container-fluid a[href^="ftps"]'),function(){core.linkSameOrigin($(this))||$(this).attr("target","_blank")})}function get_default_content(){get_onbeforeunload_status()||(v___theme_processing_default_content?setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001):(v___theme_processing_default_content=1,$("body").append(''),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-default=1",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{$("#____switch").html(e),$____switch=$("#____switch").text();var t=v___location_prefix+(3==v___user_level&&core.moduleAvailable("mailbox")&&$t_uri_webmail?"/mailbox/index.cgi?id=INBOX":3==v___user_level?"/"+(settings_usermin_default_module||"sysinfo.cgi"):("/"==$____switch.substring(0,1)?"":"/")+$____switch);check_bundle(t),get_pjax_content(t,["success","v___theme_processing_default_content = 0"]),$("#____switch").remove()}}})))}function get_default_virtualmin_content(e,t){if(!get_onbeforeunload_status()||t)if(v___theme_processing_default_content)setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);else{v___theme_processing_default_content=1;var a,n="/virtual-server";if(a=1==get_server_data("initial-wizard")&&v___module!==v___module_file_manager?n+"/wizard.cgi":!1!==e?n+"/summary_domain.cgi?dom="+e:"sysinfo.cgi"==settings_right_virtualmin_default||""==settings_right_virtualmin_default?"/sysinfo.cgi":"index.cgi"==settings_right_virtualmin_default?n+"/index.cgi":n+"/summary_domain.cgi?dom="+settings_right_virtualmin_default,t)return v___location_prefix+a;get_pjax_content(v___location_prefix+a,["success","v___theme_processing_default_content = 0"])}}function get_default_cloudmin_content(e,t){if(!get_onbeforeunload_status()||t)if(v___theme_processing_default_content)setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);else{var a;if(v___theme_processing_default_content=1,a=!1===e||settings_right_cloudmin_default||"0"==settings_right_cloudmin_default?"sysinfo.cgi"==settings_right_cloudmin_default||""==settings_right_cloudmin_default&&"0"!=settings_right_cloudmin_default?"sysinfo.cgi":"index.cgi"==settings_right_cloudmin_default?"server-manager/index.cgi":"server-manager/edit_serv.cgi?id="+settings_right_cloudmin_default:"server-manager/edit_serv.cgi?id="+e,t)return v___location_prefix+"/"+a;get_pjax_content(v___location_prefix+"/"+a,["success","v___theme_processing_default_content = 0"])}}function get_navigation_and_content(e,t,a){get_onbeforeunload_status()||("virtualmin"===e?(plugins.navigation.get.virtualmin(!1),1!=settings_right_reload&&1!==t||1===a||get_default_virtualmin_content(!1)):"cloudmin"===e?(plugins.navigation.get.cloudmin(!1),1!=settings_right_reload&&1!==t||1===a||get_default_cloudmin_content(!1)):(0==plugins.navigation.switch.dashboard.get()&&plugins.navigation.get.webmin(e),1!=settings_right_reload&&1!==t||1===a||get_default_content()))}function editor_html_toolbar(e){var t;if([{name:"styles",items:["Font","FontSize","Format"]},{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript"]},{name:"colors",items:["TextColor","BGColor"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"paragraph",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","-","Blockquote","-","Outdent","Indent","-","BidiLtr","BidiRtl","-","RemoveFormat"]}],t=[{name:"styles",items:["Font","FontSize","Format"]},{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript"]},{name:"colors",items:["TextColor","BGColor"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"paragraph",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","-","Blockquote","-","Outdent","Indent","-","BidiLtr","BidiRtl","-","RemoveFormat"]}],"basic"===e)return t;return[{name:"document",items:["Source","-","Preview","Print"]},{name:"clipboard",items:["Undo","Redo"]},{name:"editing",items:["Find","-","Emojione"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["InsertPre","CreateDiv","-","Table","base64image","HorizontalRule","PageBreak","Iframe"]},{name:"forms",items:["Form","Checkbox","Radio","TextField","Textarea","Select","Button","ImageButton","HiddenField"]},{name:"tools",items:["ShowBlocks"]},"/"].concat(t)}function edit_files_cascade(e,t,a){var n=$(".jsPanel").filter(function(){return"-9999px"!==$(this).css("left")}),i=n.length,r=$(window).width(),s=$(window).height(),o=r/i,_=s/i,l=$(".jsPanel-controlbar .jsPanel-btn-align"),c=vars.jspanels_reversed?$(n).toArray().reverse():n;e?1==i?l.addClass("disabled"):l.removeClass("disabled"):($.each(c,function(e,n){if("-9999px"!==$(this).css("left")){var l=parseInt($(this).attr("data-uid").replace("jsp_",""));parseInt($(t).attr("id").replace("jsPanel-",""));if(1===a){var c=r-20,d=_-(e+1==i?20:5);window["jsp_"+l].resize(c,d).reposition("left-top 10 "+(10+_*e))}else{c=o-(e+1==i?20:5),d=s-20;window["jsp_"+l].resize(c,d).reposition("left-top "+(10+o*e)+" 10")}}}),1===vars.jspanels_reversed?vars.jspanels_reversed=0:vars.jspanels_reversed=1,vars.jspanels_reversed=0)}function edit_file(external_file_name,external_file_name_path,external_callback){if(core.moduleAvailable(v___module_file_manager)){var ____jsPanelId="jsp_"+parseInt(1e18*Math.random()),___target,___file_name,___file_name_path,__file_to_open,htmlDataAttr="htmledit",file_editor_save_button_str="_filemanager_file_editor_save",html_editor_target,is_html_editor;if(external_file_name&&external_file_name_path){var external_file_name_initial=external_file_name,external_file_name_path_initial=external_file_name_path;if(external_file_name.includes("/")&&(external_location_parts=external_file_name.split("/"),external_file_name=external_location_parts.slice(-1)[0],external_location_parts.pop(),external_file_name_path=external_location_parts.join("/"),external_file_name_initial.startsWith("/")||(external_file_name_path=external_file_name_path_initial+"/"+external_file_name_path)),"object"!=typeof jsPanel){var init_script_name="jquery.jspanel";return void load.bundle(init_script_name,1,{edit_file:[external_file_name,external_file_name_path,external_callback]},2)}___file_name=Convert.uriEncodeComponent(external_file_name),___file_name_path=external_file_name_path}else ___target=$($v__fm__container_fluid_form+" table tbody tr.m-active").find("a[data-filemin-link]"),___file_name=Convert.uriEncodeComponent(Convert.htmlUnEscape(___target.attr("data-filemin-link"))),___file_name_path=$($v__fm__container_fluid+" #path").val(),html_editor_target=___target.parent("td").parent("tr"),is_html_editor=1==html_editor_target.data(htmlDataAttr)?1:0,html_editor_target.removeData(htmlDataAttr);__file_to_open=v___location_prefix+"/"+v___module_file_manager+"/edit_file.cgi?file="+___file_name+"&path="+___file_name_path;var __f___es_adj=function(e,t){var a=e.find("option:selected").text(),n=$("