/g,"<header>")),n=n.length&&" "!=n?n+" ":n,s=$(this).attr("type").toLowerCase(),_=$(this).parents(".tab-pane").attr("id"),_=_&&_.length?_.replace(/[^a-zA-Z0-9_-]+/g,""):0,o=Math.floor(9e4*Math.random())+1e4,r=$(this).attr("id"),l=("eid_"+(r&&$(this).attr("name")?$(this).attr("name"):o)+"_"+o+"_"+e+"_"+_).replace(/[^a-zA-Z0-9_-]+/g,"_"),l=r&&1===$("body").find("#"+r.replace(/[^a-zA-Z0-9_-]+/g,"_")).length?r.replace(/[^a-zA-Z0-9_-]+/g,"_"):l
+;if(0===$(this).next("label").length&&0===i.length&&a){$(this).addClass("iawobject");var c='for="'+l+'"';$(this).attr("id",l),$($___text).wrap('"+n+" "),$($___text).remove(),$(this).next("label").addBack().wrapAll(' '),$(this).data("xdn",1)}else if(0!==i.length||0!==$(this).next("label").length||1!==$(this).prev("label").length||a)0!==i.length||0!==$(this).next("label").length||a||($(this).addClass("iawobject"),$(this).attr("id",l),$(this).after(' '),$(this).next("label").addBack().wrapAll(' '),$(this).data("xdn",1));else{var d=$(this).prev("label"),h=d.text();$(this).addClass("iawobject"),$(this).attr("id",l),$(this).after(''+h+" "),$(this).next("label").addBack().wrapAll(' '),$(this).removeClass("form-control").css("width","initial"),d.remove(),$(this).data("xdn",1)}1===i.length&&0===$(this).next("label").length&&($(this).addClass("iawobject"),$(this).attr("id",l),$(this).after(''+n+" "),$(this).next("label").addBack().wrapAll(' '),a&&$($___text).remove(),$(this).data("xdn",1))}})}function chooser_get(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))return void(v___available_session=0);var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),i=$(t).filter(".table").html(),a=$(t).filter(".table").prev("b").html();a=chooser_breadcrumbs(a),$(".mppopup .modal-body").html(a+'"),$v__mpp__g_gp=0,$(".mppopup_filter_input").focus(),$(".mppopup_filter_input").val("")}})}function chooser_get_link(e){return e.replace(/&file.*&chroot/,"&file="+Convert.uriEncodeComponent(($v__mpp__g_ol+"/").replace(/\/\/+/g,"/").replace(/:\//g,"://"))+"&chroot")}function chooser_get_target(e,t){var i=e.prev('input[type="text"], input[name]');return i.is("input")||e.prev("textarea").length||e.prev("br").prev("textarea").length?i.length||i.is("input")||!t||(i=e.prev("textarea"),i.length||(i=e.prev("br").prev("textarea"))):i=e.prev("span:not(.awradio)").find('input[type="text"]'),i}function chooser_control(e,t,i){if(i){if($(".refInputData").is("textarea")){var a=$(".refInputData");a.val()?a.val(a.val()+"\n"+e.replace(/\/\/+/g,"/").replace(/:\//g,"://")):a.val(e.replace(/\/\/+/g,"/").replace(/:\//g,"://"))}else $(".refInputData").val(e.replace(/\/\/+/g,"/").replace(/:\//g,"://"));var n=$(".refInputData").parent("td").prev("td").find('input[type="radio"]'),s=$(".refInputData").parent("span").prev("span").find('input[type="radio"]'),_=$(".refInputData").prev("span").find('input[type="radio"]'),o=$(".refInputData").prev("select").find('option[value="*"]');s.length?s.trigger("click"):_.length?_.trigger("click"):o.length?o.parent("select").val("*").trigger("change"):n.trigger("click")}t&&$("body .mppopup").modal("hide")}function chooser_breadcrumbs(e){e=$.url(e).attr("path").replace(/\/$/g,"").split("/");var t="";return $.each(e,function(e,i){t+=""===i?''+(0==get_access_level()?' ':' ')+" \n":''+i+" \n"}),''+t+' '}function popover_visibility_position(e){$.each($(".module-help"),function(t,i){e.is($(this))?$(this).css({"z-index":214748364+t,opacity:1}):$(this).css({"z-index":214748364-t,opacity:.85})})}function page_render($is_history_action){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":"8px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef")}function __m_ico_row_b(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-bottom":"6px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-bottom","1px solid #efefef")}function __m_ico_row_func(){return 0}if(update_navigation_module_name(),$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').remove()),function(){var e=$("body");e.off("mousedown.cm1 keydown.cm1"),e.undelegate('button[type="submit"]:not(.disabled)',"click.cm"),e.undelegate('button[data-form="submitter"]:not(.disabled)',"click.cm")}(),$("body").attr("style",get_server_data("style")),$.each($('select[onchange="form.submit()"]'),function(){$(this).removeAttr("onchange").addClass("onchange_form_submit_triggger")}),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")}time.localize();var $langLocaleLangStr=theme_language("theme_xhred_title_language_locale"),$userminModule=Core.curModule("language"),$webminModule=Core.curModule("change-user"),$webminConfModule=Core.curModuleFile("webmin","edit_lang.cgi");if(Core.curModule("webmin")){var $targetIconTitle=$('.icons-container a[href*="edit_lang.cgi"]'),$targetSmallIconTitle=$('.small-icons-container a[href*="edit_lang.cgi"]'),$targetNoIconTitle=$('a[href*="edit_lang.cgi"] p > .fa-angle-right');if($targetIconTitle.length){var $targetIconTitleImg=$targetIconTitle.find("img").detach();$targetIconTitle.text($langLocaleLangStr).prepend($targetIconTitleImg," ")}else $targetSmallIconTitle.length?($targetSmallIconTitle.find(".hidden").text($langLocaleLangStr),$targetSmallIconTitle.parent().attr("title",$langLocaleLangStr)):$targetNoIconTitle.length&&$targetNoIconTitle.parent().html(' '+$langLocaleLangStr)}if(($webminConfModule||$webminModule||$userminModule)&&!$is_history_action){var $dateFormatTarget=$('.container-fluid form select[name="lang"]'),$dateFormatTargetMore=$userminModule?$dateFormatTarget.next(".ui_form_end_buttons").find("tbody"):$dateFormatTarget.parents("tr").first().parent("tbody"),$dateForm=$dateFormatTargetMore.parents("form").first(),$dateFormatFinalTarget=$userminModule?$dateFormatTargetMore:$dateFormatTargetMore.find('select[name="lang"]').parents("tr").first();$webminModule||$("span[data-main_title]").text($langLocaleLangStr);var insertionRow=' '+theme_language($webminModule?"theme_xhred_title_webmin_ui_locale":"theme_xhred_title_locale_config")+($userminModule?":   ":"")+' '+theme_language("theme_xhred_title_locale_auto")+' '+theme_language("theme_xhred_global_manual")+' '+theme_language($webminModule?"theme_xhred_title_locale_config_format_ui":"theme_xhred_title_locale_config_format")+' '+($userminModule?"    ":"")+" "+theme_language("theme_xhred_title_locale_lang_based")+' '+theme_language("theme_xhred_title_locale_full")+' `LLLL`"+theme_language("theme_xhred_global_output_example")+": "+moment().format("LLLL")+'
"> '+theme_language("theme_xhred_title_locale_long")+' `LL`"+theme_language("theme_xhred_global_output_example")+": "+moment().format("LL")+'
"> '+theme_language("theme_xhred_title_locale_short")+' `L`"+theme_language("theme_xhred_global_output_example")+": "+moment().format("L")+'
"> ';$userminModule?$dateFormatFinalTarget.prepend(insertionRow):$dateFormatFinalTarget.after(insertionRow),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_theme_locale_languages=1",data:!1,dataType:"text",async:v___available_navigation,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"]',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();t.indexOf("theme_locale_format_")>-1&&i.attr("title",a.replace(/g'>(.*)<\/i>/g,"g'>"+(n?moment().locale(n).format($(this).val()):moment().format($(this).val()))+"")).tooltip("fixTitle").tooltip("show");var s=$("._locale_config");"config_portable_theme_locale_language"===t&&"1"!=$(this).val()?"focus"!=e.type&&s.addClass("hidden"):"focus"!=e.type&&s.removeClass("hidden")}),$($dateForm).on("submit",function(){$.each($(t.replace('locale_language"]','locale_language"]:checked')),function(e,t){var i=$(this).attr("name"),a=$(this).val();"config_portable_theme_locale_languages"===i&&""===a&&(a=get_server_data("language-full")),localStorage.setItem(v___server_hostname+"-"+i,a),window[i]=a}).promise().done(function(){var e=$dateForm.find('select[name="lang"]').val();if(e.indexOf(".")>-1&&(e=e.split(".")[0]),$webminModule&&"1"==$dateForm.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");t.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(){navigation_update()},2e3)})})}})}v___available_navigation&&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){if(Test.strContains(e,v___page_signin_form))return void(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(){v___location_path==v___location_prefix+"/virtual-server/list_databases.cgi"&&$(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-5").removeClass("ui_link")}),0==get_access_level()&&v___available_navigation&&!$is_history_action&&$("#headln2c").prepend(' '),favorites_empty(),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"))return void(v___available_navigation?$(this).trigger("contextmenu"):$(this).parents(".gl-icon-container").trigger("contextmenu"));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&&i.indexOf("://")===-1?open(navigation_trigger(t,1)):open(i),e.preventDefault(),e.stopPropagation()}),Core.curModule("servers")&&$.each($('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").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"]';$('a[id*="opener"][id$="_restore"]').parent().is("p")&&($('a[id*="opener"][id$="_restore"]').next("a").parent("p").replaceTagName("div"),$('a[id*="opener"][id$="_restore"]').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"),$('a[id*="opener"][id$="_restore"]').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").find("a").addClass("link_hover_effect link_hover_effect_style"),$(this).parent().is(".panel-body")||$(this).parent().is(".ui_form")){var a=$(this),n=a.parent().is(".panel-body")?".panel-body":".ui_form";a.parent(n).find('a[href^="javascript:hidden_opener"]:eq(1)').wrapAll(''),Core.curModuleFile("bind8","edit_zonekey.cgi")&&a.parent(n).find('a[href^="javascript:hidden_opener"]:eq('+(e+1)+")").wrapAll(''),a.parent('.panel-body > a[href^="javascript:hidden_opener"]:first-child').remove();var s=a.parent(n).find(".opener_extra_container");$(s).next("br").remove(),$(s).addClass("opener_extra_container_style"),$(s).find("a").addClass("opener_extra_container_a_style link_hover_effect"),$(s).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"){navigation_clear();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='form[action*="settings.cgi"] select, form[action*="save_config.cgi"] select, form[action*="settings.cgi"] input, form[action*="save_config.cgi"] input';$("body").undelegate(ev_change_atsettings,"change"),$("body").on("change",ev_change_atsettings,function(e){var t=$(this).val();if("true"==t||"false"==t){if("true"==t)var i=!0;else if("false"==t)var i=!1}else var i=t;if(window[$(this).attr("name")]=Test.numeric(i)?parseFloat(i):i,void 0!==e.originalEvent)if(v___initial_load&&"settings-user.cgi"!==v___location_file)v___initial_load=0;else{var a='input[name="settings_side_slider_enabled"]';(0!=Core.moduleAvailable("status")&&$(e.target).is(a)||!$(e.target).is(a))&&theme_settings_controls(1)}});var ev_keydown_atsettings='form[action*="settings.cgi"] input, form[action*="save_config.cgi"] input';$("body").undelegate(ev_keydown_atsettings,"keydown"),$("body").on("keydown",ev_keydown_atsettings,function(e){void 0!==e.originalEvent&&theme_settings_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_settings_update(),theme_config("save"),navigation_render_start(),spinnerfy_buttons($(this),[-.5,-25,"small",750]),setTimeout(function(){navigation_update()},1400)}),$(function(){function e(){$("body").undelegate("#atrestore:not(.disabled)","click"),$("#atrestore:not(.disabled)").off("click.confirm"),$("#atrestore:not(.disabled)").confirmation({classNameRemove:"btn-default"},function(){set_onbeforeunload_status(0,0),$(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){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);theme_reload()},error:function(t){e.addClass("btn-danger").removeClass("btn-default btn-inverse opacity-0_5")}})},0)})}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(t){function i(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 a(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_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 n(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 s(e){void 0===e&&(e=$('input[name="settings_sysinfo_real_time_status"]:checked'));var t=["settings_sysinfo_real_time_timeout"];"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 _(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 o(e){void 0===e&&(e=$('input[name="settings_sysinfo_theme_updates"]:checked'));var t=["settings_sysinfo_theme_patched_updates"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):($('input[name="settings_sysinfo_theme_patched_updates"][value="false"]').trigger("click"),$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")}))}function r(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()?(Core.var.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")})}if(Test.strContains(t,v___page_signin_form))return void(v___available_session=0);$("#atsettings").html(t);var l=get_server_data("theme-version"),c=$('input[name="settings_sysinfo_theme_updates"]').first().parents("td").parent("tr.atshover"),d=c.find("td").first(),h=d.find(".smaller");c.next("tr").find("td").first().find("b");h.append(' ('+theme_language("theme_xhred_global_installed_version").toLowerCase()+" "+l+' ) '+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 t=new String,i=e[0],a=i!=e[1]&&e[1],n=$("[data-text-installed]"),s=$(".tmp_spinner_theme_version"),_=$("em[data-theme-stable-version]"),o=$("span[data-theme-versions]");i&&i!=l&&(t+=", "+theme_language("theme_xhred_global_latest_stable").toLowerCase()+' '+i+" "),a&&a!=l&&(t+=", "+theme_language("theme_xhred_global_latest_beta").toLowerCase()+' '+a+" "),l&&l.length<=5&&i&&i.length<=5&&i!=l&&_.addClass("text-danger"),t&&!t.length&&(n.text(theme_language("theme_xhred_global_installed_and_latest_version").toLowerCase()),_.addClass("text-success")),o.replaceWith(t),s.remove()},error:function(){}}),page.render.module_config([0,1,0,0,0,0,0,1]);var g=$("div#atsettings").find(".ui_form");$__theme_text_right_save=g.data("text-save"),$__theme_text_right_saved=g.data("text-settings_right_saved"),$__theme_text_right_saving=g.data("text-settings_right_saving"),$__theme_text_right_restore_defaults=g.data("text-settings_right_restore_defaults"),$__theme_text_right_restored=g.data("text-settings_right_restored"),$__theme_text_right_restoring=g.data("text-settings_right_restoring"),$__theme_text_right_error=g.data("text-error"),$('.container-fluid .nav-tabs a[href="#atsettings"]').text(g.data("text-current_theme")),$("div#atsettings").removeClass("text-center"),e(),theme_settings_update();var p=$("body").find(".fa.fa-sub-title").parent("span");$(p).next("br").remove(),$(p).next("div.smaller").attr("style","margin-top: -15px !important"),p.remove(),i(),$('input[name="settings_right_hide_table_icons"]').on("change",function(){i($(this))}),a(),$('input[name="settings_hotkeys_active"]').on("change",function(){a($(this))}),n(),$('input[name="settings_side_slider_enabled"]').on("change",function(){n($(this))}),s(),$('input[name="settings_sysinfo_real_time_status"]').on("change",function(){s($(this))}),_(),$('input[name="settings_sysinfo_easypie_charts"]').on("change",function(){_($(this))}),o(),$('input[name="settings_sysinfo_theme_updates"]').on("change",function(){o($(this))}),$('select[name="settings_navigation_color"]').on("click keyup change",function(e){var t=$(this).val();get_server_data("data-theme",t),$("link[data-palette]").remove(),"blue"!=t&&$("head").append(' '),get_server_data("data-default-theme",t),$("body .user-link.palette-toggle").find(".fa-sun").trigger("click"),theme_settings_update()}),$('select[name="settings_background_color"]').on("click keyup change",function(){var e=$(this).val();get_server_data("data-background-style",e),get_server_data("data-background-style",e),$("link[data-palette]").remove(),"gainsboro"!=e&&($("head").append(' '),$('select[name="settings_navigation_color"]').val("gunmetal").trigger("change")),theme_settings_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-background-style",$(this).val())}),$('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_settings_update(),page_resized()}),$('input[name="settings_side_slider_fixed"]').change(function(){Core.var.slider_pinned=-1;var e=$(".right-side-tabs-dismiss .fa-pin");"true"==$(this).val()?(set_side_slider_visibility(1),e.removeClass("fa-rotate-45")):(set_side_slider_visibility(0),e.addClass("fa-rotate-45")),theme_settings_update()}),$('input[name="settings_side_slider_fixed_toggle"]').change(function(e){var t=$(".right-side-tabs-dismiss .fa-pin");"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")),Core.var.slider_pinned=-1,theme_settings_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 slider_display_notification_badges&&slider_display_notification_badges()},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"),favicon.badge(0),titlenotifier.set(0))),theme_settings_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(' \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t '),$(".settings_navigation_color_toggle, .settings_background_color_toggle").on("click",function(){void 0===window[$(this).attr("data-name")+"controller"]||"hidden"==window[$(this).attr("data-name")+"controller"]?($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").removeClass("hidden"),window[$(this).attr("data-name")+"controller"]="shown"):($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").addClass("hidden"),window[$(this).attr("data-name")+"controller"]="hidden")}),$(".settings_navigation_color_reset").on("click",function(){"settings_navigation_color"==$(this).attr("data-name")&&navigation_filter_reset()});var f=$('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"]');f.on("click keyup change",function(e){var t="-webkit-filter: 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()+"); filter: 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()+");";$(".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),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_settings_update()}),f.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 u=$('input[name="settings_leftmenu_width"]');u.on("click keyup change",function(e){page_adjust($(this).val(),$(this).val()),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_settings_update(),settings_leftmenu_width_initial=$(this).val()}),$('input[name="settings_navigation_always_collapse"]').change(function(e){r($(this)),"true"==$(this).val()?($("html").attr("data-navigation-collapsed",1),$(".mobile-menu-toggler").removeClass("visible-xs"),navigation_hide()):"false"==$(this).val()&&($("html").attr("data-navigation-collapsed",0),$(".mobile-menu-toggler").addClass("visible-xs")),setTimeout(function(){page_resized()},10)}),r(),u.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),settings_leftmenu_width_initial=$(this).val()}),"restored"==v___location_query&&(f.trigger("click"),u.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(e){$("aside ul.user-html li.user-html-string").html($(this).val())}),navigation_dashboard_switch_available()&&$('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_timeout"], input[name="settings_sysinfo_easypie_charts_size"], input[name="settings_sysinfo_easypie_charts_width"], input[name="settings_sysinfo_easypie_charts_scale"], input[name="settings_sysinfo_theme_patched_updates"]').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(e,t,i){var a=new Detector;$.each($('select[name="settings_font_family"] option'),function(){var e=$(this).text();a.detect(e)||"system-default"==$(this).val()||$(this).attr("disabled","disabled").text(e+" ("+theme_language("theme_xhred_global_not_available")+")")}),$('select[name="settings_font_family"]').on("click 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=$.merge($("head").find('link[href*="/authentic."]'),$("head").find('link[href*="/authentic."]')),a=a.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(' ')})}),$('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"),0!=Core.moduleAvailable("status")&&$(".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")}})});var ev_click_atsettings="#atsave:not(.btn-inverse):not(.disabled)";$("body").undelegate("#atsave:not(.btn-inverse):not(.disabled)","click"),$("body").on("click","#atsave:not(.btn-inverse):not(.disabled)",function(e){e.preventDefault();var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small",1e3]),set_onbeforeunload_status(0,0),theme_settings_update(),theme_config("save"),$.ajax({type:"POST",url:v___location_prefix+"/webmin/edit_startpage.cgi",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var t=$(e).find("form.ui_form");t.find('select[name="gotomodule"]').val($.trim($('select[name="goto_webmin_default_module"]').val())),$.ajax({type:"POST",url:v___location_prefix+"/webmin/change_startpage.cgi",data:$(t).serialize(),dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0)},error:function(){}})},error:function(){}}),setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&save=1",data:t.parents("form").serialize(),dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);navigation_update(),theme_settings_controls(0),settings_sysinfo_real_time_status?"object"==typeof stats?(stats.general.timeout=settings_sysinfo_real_time_timeout,stats.general.query()):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.kill()},error:function(){t.addClass("btn-danger").removeClass("btn-success btn-inverse opacity-0_5")}})},1e3)})}if(!$is_history_action&&(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-upload.cgi")){check_location_resource("/settings-upload.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('').parents(".ui_form_end_buttons").css("width","100%"),$(".btn-group.end_submits").css("margin-left","2px")},100)}if($is_history_action||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-upload.cgi"||($(function(){function e(e){void 0===e&&(e=$('input[name="authenticated_logo"]:checked'));var t=["authenticated_logo_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"==$_authenticated_logo&&$('input[name="'+t+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}function t(e){void 0===e&&(e=$('input[name="unauthenticated_logo"]:checked'));var t=["unauthenticated_logo_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"==$_unauthenticated_logo&&$('input[name="'+t+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}$_authenticated_logo=$('input[name="authenticated_logo"]:checked').val(),$_unauthenticated_logo=$('input[name="unauthenticated_logo"]:checked').val(),e(),$('input[name="authenticated_logo"]').on("change",function(){e($(this))}),t(),$('input[name="unauthenticated_logo"]').on("change",function(){t($(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",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("software")&&Test.strContains(v___location_file,"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(' ')}),$('a[href*="closeall.cgi"]').before(' ')),(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.curModule("mailboxes")||Core.curModule("mailbox")){var $mail_ar_selector='form.ui_form[action="index.cgi"]',$mail_icon_class="fa fa-fw fa-lg text-semi-light vertical-align-baseline fa-angle-";$($mail_ar_selector+' img[src*="images/left"], center img[src*="images/left"]').each(function(){$(this).replaceWith(' ')}),$($mail_ar_selector+' img[src*="images/right"], center img[src*="images/right"]').each(function(){$(this).replaceWith(' ')}),$($mail_ar_selector+' img[src*="images/first"]').each(function(){$(this).replaceWith(' ')}),$($mail_ar_selector+' img[src*="images/last"]').each(function(){$(this).replaceWith(' ')}),$('button[name="razor"], button[name="ham"]').on("click",function(){$(this).parents("form").attr("target","_blank")})}if(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){var i=$(this);$(t).attr("src",v___location_prefix+"/images/check.png"),i.addClass("scale-08")}),$('td img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/cross.png"),i.addClass("scale-08")}),$('td img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/not.png"),i.addClass("scale-08")})),$('.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){var i=$(this);$(t).attr("src",v___location_prefix+"/images/check.png"),i.addClass("scale-08")}),$('.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){var i=$(this);$(t).attr("src",v___location_prefix+"/images/cross.png"),i.addClass("scale-08")}),$('.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){var i=$(this);$(t).attr("src",v___location_prefix+"/images/not.png"),i.addClass("scale-08")}),(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"))}),!$is_history_action){if(!$(".ui_table tr td").has(".ui_grid_table.table-hardcoded")||v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"passwd/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailboxes/"&&v___location_path!=v___location_prefix+"/usermin/list_configs.cgi"||($(".ui_table tr td .ui_grid_table.table-hardcoded").parents("table").css("border","1px solid #f0f0f0"),$(".ui_table tr td .ui_grid_table.table-hardcoded").addClass("table").parents("tr").css("border","1px solid #f0f0f0")),($("body").attr("class")&&$('body[class="custom"]').length||$("body").attr("class")&&0===$("body").attr("class").search(/custom\d+$/))&&"view.cgi"==v___location_file){var $_tt=$('form[action="save.cgi"]').find(".table-title").find("tt").text();$('form[action="save.cgi"]').find(".table-title").find("b").empty().append(""+$_tt+" ")}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")}),
+($("body").attr("class")&&$('body[class="custom"]').length||$("body").attr("class")&&0===$("body").attr("class").search(/custom\d+$/))&&($(".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.td_tag:contains("|")'),function(){$(this).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(' '),$(this).parents("table").find("thead > tr > th:eq(2)").addClass("pointer-events-none")}),$('td.td_tag:contains("|")').contents().filter(function(){return 3==this.nodeType}).remove(),theme_buttonify(["/custom/","/custom/index.cgi"],".container-fluid table td.td_tag:nth-child(3)",'a[href^="form.cgi"]',"btn btn-primary btn-xxs vertical-align-top margined-top-2 margined-left--4 ---forced","fa-cog","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi"],".container-fluid table td.td_tag:nth-child(3)",'a[href^="run.cgi"], a[href^="sql.cgi"]',"btn btn-success btn-xxs vertical-align-top margined-top-2 margined-left--4 ---forced","fa-play fa-0_85x","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi"],".container-fluid table td.td_tag:nth-child(3)",'a[href^="view.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-2 margined-left--4 ---forced","fa-pencil-square-o","","","","|")),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(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td.td_tag",'a[href*="delete.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-top-2 ---forced","fa-times-circle","","","","|"),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td.td_tag",'a[href*="//"]',"btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-left--4 margined-top-2 ---forced",""),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td.td_tag",'a[href*="help.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-left--4 margined-top-2 ---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-1 margined-right--5 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-2 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-2 margined-left-3",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td.td_tag",'a[href*="webminlog/"]',"btn btn-info btn-xxs vertical-align-top margined-top-2 ---forced",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td.td_tag",'a[href*="delete_session.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-left--4 margined-top-2 ---forced","fa-unplugged"),theme_buttonify(["/firewall/index.cgi","/firewall6/index.cgi","/firewall/","/firewall6/"],".container-fluid","style + b + b:first, style + b + a + b:first, a.ui_link:first","btn btn-link btn-link-bordered _btn-links-top btn-xs vertical-align-top margined-top-2 margined-left-0",0,"","","","|"),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-2","fa-eye","|",""),theme_buttonify(["/virtual-server/cert_form.cgi","/webmin/edit_ssl.cgi","/usermin/edit_ssl.cgi"],".container-fluid #att_current","a","btn btn-link btn-link-bordered btn-xxs btn-dnwo margined-left-3 vertical-align-top margined-top-2 --to-new-tab",0,"","","","|"),theme_buttonify(["/virtual-server/","/virtual-server/index.cgi","/virtual-server/edit_plan.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-2",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-2",0,"","","","-"),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td.td_tag",'a[href*="activate.cgi"][href*="&active=3"]',"btn btn-warning btn-xxs vertical-align-top margined-top-2","fa-ban"),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td.td_tag",'a[href*="activate.cgi"][href*="&active=0"]',"btn btn-success btn-xxs vertical-align-top margined-top-2","fa-check-circle-o"),theme_buttonify(["/virtualmin-google-analytics/","/virtualmin-google-analytics/index.cgi"],".container-fluid .table tbody td.td_tag",'a[href*="edit.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-top-2","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-2","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--4 margined-top-1 ---forced","fa-pencil-square-o"),($('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:contains("|")'),function(){v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"&&($(this).find('a[href^="backup_form.cgi"]').html($(this).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("ui_link").prepend(' '),$(this).find('a[href^="restore_form.cgi"]').html($(this).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("ui_link").prepend(' '),$(this).find('a[href^="backuplog.cgi"]').html($(this).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("ui_link").prepend(' ')),v___location_path!=v___location_prefix+"/phpini/"&&v___location_path!=v___location_prefix+"/phpini/index.cgi"||($(this).find('a[href^="list_ini.cgi"]').html($(this).find('a[href^="list_ini.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("ui_link").prepend(' '),$(this).find('a[href^="edit_manual.cgi"]').html($(this).find('a[href^="edit_manual.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("ui_link").prepend(' ')),v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"||($(this).find('a[href^="edit_hdparm.cgi"]').html($(this).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("ui_link"),$(this).find('a[href*="smart-status/index.cgi"]').html($(this).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("ui_link"),$(this).find('a[href^="blink.cgi"]').html($(this).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("ui_link")),v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"&&($(this).find('a[href^="index.cgi"]').html($(this).find('a[href^="index.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend(' '),$(this).find('a[href^="edit_auto.cgi"]').html($(this).find('a[href^="edit_auto.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend(' '),$(this).find('a[href^="copy_form.cgi"]').html($(this).find('a[href^="copy_form.cgi"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link").removeClass("ui_link").prepend(' ')),v___location_path!=v___location_prefix+"/mailboxes/view_mail.cgi"&&v___location_path!=v___location_prefix+"/mailbox/view_mail.cgi"||($(this).find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').html($(this).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("ui_link").removeClass("ui_link").prepend(' '),$(this).find('a[href*="detach.cgi"][target="_blank"]').html($(this).find('a[href*="detach.cgi"][target="_blank"]').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' '),$(this).find('a[href*="&save=1"]:not([target="_blank"])').html($(this).find('a[href*="&save=1"]:not([target="_blank"])').text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ')),v___location_path!=v___location_prefix+"/virtualmin-awstats/"&&v___location_path!=v___location_prefix+"/virtualmin-awstats/index.cgi"||($(this).find('a[href^="view.cgi"]').html($(this).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("ui_link").prepend(' '),$(this).find('a[href^="config.cgi"]').html($(this).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("ui_link").prepend(' '))}),$('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")){var __btn___str='td a.ui_link[href*="view.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_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)}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.td_tag input[type="checkbox"]').each(function(e,t){$(this).attr("style","vertical-align: middle !important")}),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")),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/"&&$(".panel-body > p").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 > table.header > tbody > tr > td > 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-upload.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("td");$(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-upload.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","")),$(this).data("toggle","tooltip").data("title",Convert.strUpInitial(i?theme_language("theme_xhred_global_help"):1===$(this).data("back")?Core.curModule(v___module_file_manager)?"":theme_language("theme_xhred_global_return_to_module_index"):$(this).text())).attr("data-container","body").addClass("btn btn-link text-lighter").removeClass("ui_link").append(' '),$(this).contents().filter(function(){return 3==this.nodeType}).remove(),$(this).tooltip({container:"body",placement:"auto top",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("td").find("a")&&1==$(this).parent("td").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(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(/\.$/,""))}),$('.panel-body > form > p > a.ui_link, .panel-body > table.table + a.ui_link, .panel-body > p > a:not([href*="config.cgi?bacula-backup"]), body[data-current-product="usermin"] div.panel-body > p > a, div.panel-body > a[href^="edit_"]:not([href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_form > a, .ui_grid_cell > :not(input):not(.acheckbox):not(.aradio):not(label) + a.ui_link:not([href^="edit_acl.cgi"], [href^="edit_rpc.cgi"], [href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_grid_cell > a.select_all, .ui_grid_cell > a.select_invert, .ui_grid_cell > :not(input):not(.acheckbox):not(.aradio):not(label) + a[href*=".cgi"]:not([href^="edit_acl.cgi"], [href^="edit_rpc.cgi"], [href^="edit_user.cgi?user="], [href^="edit_group.cgi?group="]), .ui_grid_cell > a[href*=".cgi"]:first-child:not([href^="edit_rpc.cgi"],[href^="edit_nuser.cgi"],[href*="edit_user.cgi?idx"]), .tab-pane > p > a, .tab-pane > a.ui_link, .tab-pane > .table-condensed > a.ui_link, .tab-pane > a, .panel-body > p > a.ui_link, a.select_all, a.select_invert, form[action="delete.cgi"] > table table.ui_grid_table + a, form + script + a[href*="newdb_form.cgi"]').each(function(){if(!(Core.curModuleFile("samba","edit_epass.cgi")||Core.curModule("acl")&&($(this).is('[href^="edit_user.cgi?user="]')||$(this).parent("td.ui_grid_cell").length)&&!$(this).parents("b").length)&&!Core.curModuleFile("virtual-server","history.cgi")&&!Core.curModuleFile("server-manager","one_history.cgi")&&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")){$(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).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()),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"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-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")}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fetchmail/"&&$("a.ui_link").each(function(){function e(e){return' '}$(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(),$(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"))}),$('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 "+($editor_mode_link_button_state==-1?"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").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=$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")}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"mailbox/"&&$('select[name="id"]').on("change",function(){mail.folders.get($(this).val())})),$.each($(".barchart"),function(){$(this).find("img").attr("height",4)}),$('#extended_sysinfo-1 div[aria-labelledby^="updates-"] div.panel-body div.table-responsive table.table.table-striped.table-condensed').next("table.ui_form_end_buttons").css("margin-top","10px"),$('#extended_sysinfo-1 div[aria-labelledby^="updates-"] div.panel-body div.table-responsive table.table.table-striped.table-condensed').next("table.ui_form_end_buttons").css("margin-top","10px").prev("table.table-condensed").prev("table.table.table-striped").addClass("invisible"),$("a").each(function(){$(this).attr("href")||$(this).addClass("no_effect")}),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 > a").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,""))}),$.each($('.panel-body:contains("|")'),function(){$(this).contents().filter(function(){return 3==this.nodeType}).wrap(' ')}),$.each($(".btn-automated"),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($(".btn-automated, .ui_link_replaced"),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"&&setTimeout(function(){$('.opener_container .table-hardcoded .col_value a[href^="edit_serv.cgi"]').each(function(){$(this).addClass("btn btn-inverse btn-xxs ui_link_replaced margined-right--2").removeClass("ui_link").attr("style","margin-top: 0 !important"),$(this).text($(this).text().replace(/\.$/,""))}),$.each($('.opener_container .table-hardcoded .col_value:contains("|")'),function(){$(this).find('a[href^="edit_serv.cgi"]').length&&$(this).contents().filter(function(){return 3==this.nodeType}).wrap(' '),$.each($(".btn-automated"),function(){$(this).text().length<4?$(this).remove():$(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,""))})})},20),$.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("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")}),$("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))}}),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.td_tag > 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+"/syslog/"&&v___location_path!=v___location_prefix+"/syslog/index.cgi"||$.each($(".btn"),function(){$(this).removeClass("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"||($.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()),$.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.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 b").each(function(e,t){$(this).addClass("btn btn-success 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).html(' '+$(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(){$(this).attr("style","vertical-align: top !important; "+$(this).attr("style"))}),$("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+"/bind8/"&&v___location_path!=v___location_prefix+"/postfix/virtual.cgi"||table_data_init($(".table.table-striped.table-hover.table-condensed")),v___location_path==v___location_prefix+"/virtual-server/list_scripts.cgi"&&table_data_init($("#att_existing > form > table.table.table-striped.table-condensed")),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 > div > div > div.panel-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")),$('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.td_tag').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.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]"))}if($("form").find(".icons-row:not(.inline-row)").length&&($("form").find(".icons-row").addClass("_processed_"),$("form").find(".icons-row").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef"),$("form").find(".icons-row").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+"/cluster-useradmin/"&&v___location_path!=v___location_prefix+"/cluster-useradmin/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-webmin/"&&v___location_path!=v___location_prefix+"/cluster-webmin/index.cgi"||function(){$("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")}(),v___location_path!=v___location_prefix+"/proftpd/"&&v___location_path!=v___location_prefix+"/proftpd/index.cgi"&&v___location_path!=v___location_prefix+"/bacula-backup/"&&v___location_path!=v___location_prefix+"/bacula-backup/index.cgi"||function(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef")}(),v___location_path==v___location_prefix+"//"&&function(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-bottom":"6px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-bottom","1px solid #efefef")}(),$.each($(".row.icons-row.inline-row"),function(e,t){$(this).find("a.icon_link").contents().filter(function(){return 3==this.nodeType}).remove()}),$.each($(".row.icons-row:not(.inline-row) .icons-container"),function(e,t){
+$(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+"/cluster-webmin/edit_host.cgi"&&$.each($(".panel-body > .table-hardcoded"),function(){$(this).attr("style","margin-top: 10px !important")}),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.td_tag > table.table-hardcoded")){var $___colspan=$("td.td_tag > table.table-hardcoded").parents("table").find("thead").find("tr").find("th").length;$("td.td_tag > table.table-hardcoded").parent("td.td_tag").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 > object").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_trail_slashed==v___location_prefix+"/virtual-server/"?$("#headln2l > a:first-child .fa-arrow-left").parent("a").attr("href",v___location_prefix+"/virtual-server/index.cgi"):v___location_directory_trail_slashed==v___location_prefix+"/server-manager/"&&$("#headln2l > a:first-child .fa-arrow-left").parent("a").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('\t\t \t\t\t'+theme_language("theme_xhred_xsql_fit_content_screen_height")+' \t\t\t\t\t\t\t\t\t\t \t\t\t\t'+theme_language("theme_xhred_global_yes")+' \t\t\t\t \t\t\t\t'+theme_language("theme_xhred_global_no")+" \t\t\t \t\t \t\t \t"),"config.cgi"===v___location_file&&"virtual-server"===v___location_query&&snippet.inject_extra_option("tr/yes:no",$('input[name="name_mode"]'),"settings_show_webmin_tab",theme_language("theme_xhred_settings_show_webmin_tab")),$(".ui_post_header.hidden").html()&&$(".ui_post_header.hidden").html().length>5&&($("#headln2c").append(""+$(".ui_post_header.hidden").html()+" "),$(".ui_post_header.hidden").remove())}if(v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){if(!$is_history_action){$('#status_services-status-1-collapse .tr_tag .td_tag > img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/check.png").css("margin-right","3px").attr("title",$.trim(i.parent(".td_tag").text()))}),$('#status_services-status-1-collapse .tr_tag .td_tag > img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/cross.png").css("margin-right","3px").attr("title",$.trim(i.parent(".td_tag").text()))}),$('#status_services-status-1-collapse .tr_tag .td_tag > img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){var i=$(this);$(t).attr("src",v___location_prefix+"/images/not.png").css("margin-right","3px").attr("title",$.trim(i.parent(".td_tag").text()))}),$.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?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()}}})}),$('span[data-entry="right_upok"]').parent("button").on("click",function(e){e.preventDefault();var t=($(this),$('form[action*="package-updates/update.cgi"]'));t.attr("method","POST"),$(" ").attr({type:"submit",value:1}).appendTo(t),$('input[name="u"]').appendTo(t),t.submit()})}time.tictac(1)}if(!$is_history_action){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*="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")),(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(),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,""),$(".container-fluid td a.ui_link").addClass("ui_link_replaced btn btn-transparent btn-link-bordered f__lnk_t_btn-el margined-left--4 btn-xxs").removeClass("heighter-34").removeClass("ui_link").prepend(' ')),$("#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"),v___available_navigation||$("body").hasClass("file-manager")||$("#headln2l .btn-group").prepend(' '),$.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: 0 !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"),v___available_navigation||page_display(),$(".dataTable .ui_checked_checkbox").parent("tr").parent("tbody").prev("thead").find("th:first-child").addClass("opacity-0 pointer-events-none"),$("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("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("postgresql","backup_form.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){"1"==dynamic_switch_off_on.parent("td").find('input[type="radio"]:checked').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,\t\t\t\t\t\t\t form:not([action="save_log.cgi"], [action="save_net.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > input,\t\t\t\t\t\t\t form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > select,\t\t\t\t\t\t\t form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > input,\t\t\t\t\t\t\t form[action="save_newglobal.cgi"] > table tbody tr td input,\t\t\t\t\t\t\t form[action="save_newfields.cgi"] > table tbody tr td input,\t\t\t\t\t\t\t form[action="save_newfields.cgi"] > table tbody tr td select,\t\t\t\t\t\t\t form[action="save_newshells.cgi"] > table tbody tr td select,\t\t\t\t\t\t\t form[action="save_newshells.cgi"] > table tbody tr td input,\t\t\t\t\t\t\t form[action="save_linkcats.cgi"] > table tbody tr td input,\t\t\t\t\t\t\t form[action="save_gen.cgi"] > table tbody tr td input\t\t\t\t\t\t\t ');if($.each(attempt_make_all_elem,function(e,t){if(!($(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))return $(this).prev(".awobject").length?void $(this).css("width","auto"):void(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")))}),Core.curModuleFile("virtual-server","edit_newstyles.cgi")?$('a[onclick^="window.open(\\"thumb_style.cgi?"]').html(' ').addClass("btn btn-transparent btn-link-bordered btn-xxs margined-top--3"):Core.curModule("virtual-server")&&$('a[onclick^="window.open(\\"thumb_style.cgi?"]').html(' ').addClass("btn btn-transparent btn-link-bordered heighter-28-force"),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=v___location_query.indexOf("editok")!==-1||v___location_query.indexOf("createok")!==-1,is_text_mode_edit_web_pages=v___location_query.indexOf("textok")!==-1;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($("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*="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*="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");chooser_get_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||v___location_path==v___location_prefix+"/postfix/master.cgi"){var obj=$('.panel-body > .ui_link, .panel-body > .ui_link_replaced,\t\t\t\t body[data-uri*="virtualmin-awstats"] .panel-body > form > .ui_link_replaced,\t\t\t\t body[data-uri*="edit_disk.cgi"] .panel-body p > a.ui_link_replaced,\t\t\t\t body[data-uri*="edit_newlinks.cgi"] .panel-body > form > .ui_link_replaced,\t\t\t\t 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.curModule("changepass")||Core.curModuleFile("server-manager","edit_pass.cgi")||Core.curModuleFile("virtual-server","list_databases.cgi")||Core.curModuleFile("acl","edit_user.cgi")||Core.curModuleFile("virtual-server","clone_form.cgi")||Core.curModuleFile("virtual-server","edit_user.cgi")||Core.curModuleFile("virtual-server","edit_domain.cgi")||Core.curModuleFile("virtual-server","domain_form.cgi")||Core.curModuleFile("samba","edit_euser.cgi")||Core.curModuleFile("samba","ask_epass.cgi")||Core.curModuleFileQuery("virtualmin-registrar","edit.cgi","registrar=")||Core.curModuleFileQuery("htaccess-htpasswd","edit_user.cgi","new=")||Core.curModuleFileQuery("postgresql","edit_user.cgi","new=")||Core.curModuleFileQuery("mysql","edit_user.cgi","new=")||Core.curModuleFile("useradmin","edit_group.cgi")||Core.curModuleFile("useradmin","edit_user.cgi")||Core.curModuleFileQuery("passwd","edit_passwd.cgi","user="))&&setTimeout(function(){$("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend('\t\t\t\t\t \t\t \t')},0),0==v___user_level&&1==Core.moduleAvailable("status")||(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"),$.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(' '))}),(Core.curModuleFile("webmin","refresh_modules.cgi")||Test.strContains(v___location_query,"refresh=1"))&&navigation_update(-1),v___location_path==v___location_prefix+"/proc/index_search.cgi"&&$(".col_header").removeClass("col_header"),$('input[type="file"]:not([name="upfiles"])').bootstrapFileInput(),setTimeout(function(){$.each($(".file-input-wrapper > span"),function(){$(this).html('')})},1),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,1,0]),page.render.module_config(visibility)}}if(Core.curModuleFile("virtual-server","index.cgi")&&$('a[href*="list_users.cgi"], a[href*="list_aliases.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()),set_navigation_correspond_virtualmin(t))}),Core.curModuleFile("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()),set_navigation_correspond_cloudmin(t))}),editor_init_check()&&editor_init($("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=$(".panel-body form:eq(0) > textarea:visible"),cshrc2=$(".panel-body 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(((v___location_path.indexOf(".cgi")===-1||v___location_path.indexOf("link.cgi")!==-1||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/"&&v___location_prefix.indexOf("servers/link.cgi")===-1||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/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"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("custom","index.cgi")||Core.curModuleFile("cron","index.cgi")||Core.curModuleFile("ruby-gems","index.cgi")||Core.curModuleFile("postfix","master.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("virtualmin-git","")||Core.curModuleFile("virtualmin-git","index.cgi")||Core.curModuleFile("virtualmin-svn","")||Core.curModuleFile("virtualmin-svn","index.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.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+"/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(){if($(this).find("thead")&&$(this).find("thead").length&&$(this).find("thead tr th")&&$(this).find("thead tr th").length>2){if($(this).find("thead")&&$(this).find("thead").length>1){var e=$(this).find("thead:first-child");e.remove(),!$t_uri_webmin||v___location_path!=v___location_prefix+"/quota/list_users.cgi"&&v___location_path!=v___location_prefix+"/quota/list_groups.cgi"||($(this).before(e),$(this).prev("thead").replaceTagName("table"))}table_data_init($(this)),$(this).find("th").each(function(){$(this).text()||$(this).css("opacity","0").css("cursor","default")});var t=-(1/0);$(this).find("tr").each(function(e,i){t=Math.max(t,parseFloat(e))}),t<10&&$(this).parents(".dataTables_wrapper").find(".dataTables_filter").remove();if(($(this).parents(".dataTables_wrapper").find(".dataTables_filter").length?1:0)&&($('body[class="init"]').length||$('body[class^="init"]').length&&null!=$('body[class^="init"]').attr("class").match(/\d+$/)||$('body[class="quota"]').length||$('body[class^="quota"]').length&&null!=$('body[class^="quota"]').attr("class").match(/\d+$/)||$('body[class="cron"]').length||$('body[class^="cron"]').length&&null!=$('body[class^="cron"]').attr("class").match(/\d+$/))){var i=-15,a=$(this).parents(".dataTables_wrapper").attr("style");$('body[class^="quota"]').length&&(i=-27),$(this).parents(".dataTables_wrapper").attr("style","margin-top: "+i+"px !important; "+(a?a:""))}}}).promise().done(function(){page.render.content.filter.init()}),$(".select_all").on("click",function(){$(this).parents("form").find('.icons-row div[class*="icons-container"]').length&&$.each($(".icons-row .hidden-forged-6"),function(){$(this).parents('div[class*="icons-container"]').addClass("highlighted"),$(this).parents('div[class*="icons-container"]').find(".fa-select").removeClass("fa-select").addClass("fa-selected")})}),$(".select_invert").on("click",function(){$.each($(".icons-row .hidden-forged-6"),function(){$(this).find("input").is(":checked")?($(this).parents('div[class*="icons-container"]').addClass("highlighted"),$(this).parents('div[class*="icons-container"]').find(".fa-select, .fa-selected").removeClass("fa-select").addClass("fa-selected")):($(this).parents('div[class*="icons-container"]').removeClass("highlighted"),$(this).parents('div[class*="icons-container"]').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==navigation_dashboard_switch_available()&&("sysinfo.cgi"==v___location_file?(set_switch_position("dashboard"),navigation_clear()):$("#open_webmin").length>0&&"open_webmin"!=$(".switch-toggle input:checked").attr("id")?set_switch_position("webmin"):$("#open_virtualmin").length>0&&"open_virtualmin"!=$(".switch-toggle input:checked").attr("id")?set_switch_position("virtualmin"):$("#open_cloudmin").length>0&&"open_cloudmin"!=$(".switch-toggle input:checked").attr("id")?set_switch_position("cloudmin"):$("#open_usermin").length>0&&"open_usermin"!=$(".switch-toggle input:checked").attr("id")&&set_switch_position("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=$(this).val();localStorage.setItem(v___server_hostname+"-"+e,t),window[e]=t,theme_config("save")}),v___location_path!=v___location_prefix+"/virtual-server/domain_form.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_domain.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_user.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_alias.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_limits.cgi"||$("input, select").on("blur",function(){!__is_tabbed||$(this).next("input:visible").length||$(this).prev("input:visible").length||$(this).next("select:visible").length||$(this).prev("select:visible").length||(__is_shifted?$(this).parent("td").parent("tr").prev("tr").find("select:visible").length||$(this).parent("td").parent("tr").prev("script").prev("tr").find("select:visible").length||$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find("select:visible").length?($(this).parent("td").parent("tr").prev("tr").find("select:first:visible").focus(),$(this).parent("td").parent("tr").prev("script").prev("tr").find("select:first:visible").focus(),$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find("select:first:visible").focus()):($(this).parent("td").parent("tr").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus(),$(this).parent("td").parent("tr").prev("script").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus(),$(this).parent("td").parent("tr").prev("script").prev("script").prev("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus()):$(this).parent("td").parent("tr").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length||$(this).parent("td").parent("tr").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length||$(this).parent("td").parent("tr").next("script").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').length?($(this).parent("td").parent("tr").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus(),$(this).parent("td").parent("tr").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus(),$(this).parent("td").parent("tr").next("script").next("script").next("tr").find('input[type="text"]:first:visible, input[type="password"]:first:visible').focus()):($(this).parent("td").parent("tr").next("tr").find("select:first:visible").focus(),$(this).parent("td").parent("tr").next("script").next("tr").find("select:first:visible").focus(),$(this).parent("td").parent("tr").next("script").next("script").next("tr").find("select:first:visible").focus()))}),$('.ui_form_end_submit[onclick^="window.open"]').click(function(){var e=$(this);setTimeout(function(){e.removeClass("disabled"),navigation_render_end()},100)}),v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){$("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&&information_update();var chart_size_def_value=172;if(172!=settings_sysinfo_easypie_charts_size){var diff=parseInt(settings_sysinfo_easypie_charts_size-172),position_diff_label=.9*diff,position_diff_percent=.2*diff,font_diff_label=settings_sysinfo_easypie_charts_size<172?settings_sysinfo_easypie_charts_size<152?"8px":"8.5px":"9px",font_diff_percent=settings_sysinfo_easypie_charts_size<172?settings_sysinfo_easypie_charts_size<152?"1.6em":"1.7em":"1.8em",$piechart_label=$(".piechart .data-cnt .label"),piechart_label_right=parseInt($piechart_label.css("right")),piechart_label_bottom=parseInt($piechart_label.css("bottom")),$piechart_percent=$(".piechart .data-cnt .percent"),piechart_percent_top=parseInt($piechart_percent.css("top")),piechart_percent_left=parseInt($piechart_percent.css("left"));$piechart_label.css({bottom:parseInt(piechart_label_bottom-position_diff_label),right:parseInt(piechart_label_right-position_diff_label),fontSize:font_diff_label}),$piechart_percent.css({top:parseInt(piechart_percent_top+position_diff_percent),left:parseInt(piechart_percent_left+position_diff_percent),fontSize:font_diff_percent})}}if($t_uri_virtualmin&&Core.curModuleFileQuery("syslog","save_log.cgi","view=1")&&($('select[name="idx"] option').filter(function(){return this.text==$.trim($("span[data-sub_title] tt").text())}).attr("selected",!0),$('select[name="idx"]').addClass("hidden")),Core.curModuleFileQuery("syslog","save_log.cgi","view=1")||Core.curModuleFileQuery("syslog","save_log.cgi","new=")){var target=".panel-body .fa-refresh-fi",current_refresh_timer=localStorage.getItem(v___server_hostname+"-option_"+v___module+"_refresh"),current_icon_class_str=".fa-refresh-fi",refresh_timer_str=".refresh-timer-timeout",btn_str=target+", .panel-body .refresh-timer-timeout",timeout_box=''+(current_refresh_timer?current_refresh_timer:"0")+" ";$.each($(target+":not([data-processed])").parent("button"),function(e,t){if($(this).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-timeout").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?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),i=t.parent();if(current_refresh_timer&&"0"!=current_refresh_timer){i.find(".refresh-timer-timeout").length||i.prepend(e),i.find(".refresh-timer-timeout").html(current_refresh_timer+" "),$(".fa-refresh-fi").remove();var a=current_refresh_timer;refreshTimer=setInterval(function(){if(--a,$(".refresh-timer-timeout").text(a),a<=0){var e=$(btn_str);$(e[0]).parent().trigger("click"),clearInterval(refreshTimer)}},1e3)}else $(".refresh-timer-timeout").remove(),!i.find(".fa-refresh-fi").length&&i.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")})})}Core.curModuleFile("virtual-server","summary_domain.cgi")&&$(".__page #headln2l .btn-group, .__page .page_footer_submit").remove(),settings_side_slider_enabled&&(Core.curModule("package-updates")&&slider_mark_group_notifications_read("package_message"),Core.curModule("csf")&&(slider_mark_group_notifications_read("csf_remote_version"),slider_mark_group_notifications_read("csf_title"))),settings_button_tooltip&&($('[data-dcontainer="1"]').tooltip("destroy"),
// $('[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');
-$('[data-dcontainer="1"]').tooltip({selector:'[data-toggle="tooltip"]:not([data-skip]), [data-toggle="virtualmin-license"], .panel-body td a:not([data-skip]), .icons-container',placement:"auto "+($(".gl-icon-container").length?"bottom":"top"),html:!0,delay:{show:600,hide:30}})),v___available_navigation&&(window.matchMedia("(max-width: 1080px)").matches||"1"==$("html").attr("data-navigation-collapsed"))&&navigation_lock_width(),v___available_navigation&&(window.matchMedia("(max-width: 1365px)").matches||"1"==$("html").attr("data-navigation-collapsed"))&&set_side_slider_visibility(),"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"),n=a.find('form[action="view_table.cgi"]').first().addClass("inline-block"),s=n.nextAll('input[name="search"], input[name="db"], input[name="table"]').slice(0,3);e.parent("td").prev("form");n.append(s.detach()),i.append(n.detach()),i.find("form").append(t.detach())}),$("body").hasClass("session_login")&&setTimeout(function(){page_display()},200),theme_to_new_tab();var container=$(".container-fluid");if(Core.curModuleFileQuery("syslog","save_log.cgi","view=")||!settings_enable_container_offset?container.removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15"):container.addClass("col-lg-10 col-lg-offset-1").removeClass("margined-top-15"),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("/")'),t=e.find("select"),i=t.prev("input");$year=t.next("input"),cls="margined-left--10",t.addClass(cls),$year.addClass(cls).attr("size",3),i.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"),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),_=parseInt($(i).val()),o=!!$(t).val()&&parseInt($(t).val())+a,r=$(e).val();_&&o&&r&&s.datepicker("update",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")}),(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 input_password_targets=document.querySelectorAll('input[type="password"]');for(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"))})}var selectStr="select",select_for=$('select.ui_select[name="module"], select.ui_select[name="user"], select.ui_select[name="nuser"], select.ui_select[name="zone"], select.ui_select[name="serv"], select.ui_select[name="mod"], select.onchange_form_submit_triggger, select[name="idx"], select[name="file"]:first, select[name="manual"]:first'),originalSelectAddedHiddenClass="select2-hidden-accessible",select2Class="select2",select2ContentTriggerClass="select2-content",select2ContentContainerTriggerClass="select2-content-container",heighterStr="heighter",heighterType="34",v___page_hadEditor=0;if($is_history_action&&$.each($(".container-fluid .select2-hidden-accessible + .select2"),function(){v___page_hadEditor=1,$(this).prev(".select2-hidden-accessible").removeClass("select2-hidden-accessible"),$(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("heighter-28")||select_for.outerHeight()<=28)&&(heighterType="28"),select_for.select2({minimumResultsForSearch:5,containerCssClass:"select2-content heighter-"+heighterType,dropdownCssClass:"select2-content h"+heighterType}),select_for.next(".select2").addClass("select2-content-container"),select_for.next(".select2").next(".ui_form_end_submit").addClass("heighter-"+heighterType),setTimeout(function(){bind_sameorigin(0)},100)),"install_mod.cgi"===v___location_file){var prev_req=Core.var.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")}),navigation_update(),$.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))})}function page_refresh(e){if(e&&set_onbeforeunload_status(0,0),get_onbeforeunload_status())get_onbeforeunload_message(!1,"get_pjax_content(v___location_resource, false, false)","ev");else{var t=Core.var.previous_request,i=Core.var.source_request,a=unbuffered_header_processor_allow(!(!t||!t.target)&&t.target.action);"submit"===t.type?get_pjax_action_submit(t,!1):a&&i.length?get_pjax_content(i,!1,!1):get_pjax_content(v___location_resource,!1,!1)}}function page_init(){"undefined"==typeof v___initial_load&&(v___initial_load=1),"undefined"==typeof v___title_initial&&(v___title_initial=get_server_data("title-initial")),v___location=location,$__theme_name__="authentic",$__theme_navigation="xnavigation=1",$__theme_event_deselectors=':not([href*="index.cgi?path="]):not([href*="config.cgi?path="]):not([href*="download.cgi?file="])',$__theme_default_deselectors=':not([target="_blank"]):not([href^="#"]):not([data-href^="#"]):not([data-toggle="collapse"]):not([href*="javascript:"]):not(.has-sub):not([data-has-sub-link]):not([onclick]):not([data-nref])',v___user_level=get_server_data("access-level"),v___shell_type=0==v___user_level?"#":"$",v___shell_processing=0,v___debug=parseInt(get_server_data("debug")),v___source_type=v___debug?"src":"min",v___available_usermin=get_server_data("usermin"),"undefined"==typeof v___available_navigation&&(v___available_navigation=get_server_data("navigation")),v___available_session="1"==get_server_data("session")?1:0,"undefined"==typeof v___blocked_navigation&&(v___blocked_navigation=0),v___server_username=get_server_data("user"),v___server_userhome=get_server_data("user-home"),v___module=get_server_data("module"),"undefined"==typeof v___module_previous&&(v___module_previous=0),v___script_name=get_server_data("script-name").replace(/^\//g,""),v___module_file_manager="file"+(Core.moduleAvailable("file-manager")?"-manager":"min"),v___server_hostname=get_server_data("hostname"),v___server_sestatus=get_server_data("sestatus"),v___theme_version=get_server_data("theme-version").toString(),v___theme_dversion=Test.strContains(v___theme_version,"-"),v___theme_mversion=get_server_data("theme-mversion").toString(),v___theme_version_plain=v___theme_version.replace(/\./g,"").replace(/-beta.*/g,"")+(v___debug||v___theme_dversion?moment().unix()+v___theme_mversion:"9999999999"+v___theme_mversion),v___theme_force_buffered=0,v___theme_reload=0,v___theme_connection_reestablish=0,v___theme_connection_triggered_origin=0,v___theme_ajax_error=0,"undefined"==typeof v___theme_pjax_call&&(v___theme_pjax_call=0),v___theme_state_visible=1,v___theme_visibility_check=0,v___theme_progress=0,v___theme_stats_error=0,v___theme_processing_default_content=0,"undefined"==typeof v___theme_content_history&&(v___theme_content_history=0),"undefined"==typeof v___location_previous&&(v___location_previous=0),v___theme_night_mode="1"==get_server_data("data-night-mode")?1:0,v___theme_night_mode_enabled="undefined"!=typeof settings_background_color&&"nightRider"===settings_background_color?1:v___theme_night_mode,o___gotten_scripts="undefined"==typeof o___gotten_scripts?[]:o___gotten_scripts,v___page_container=$(".container-fluid"),v___page_signin_form="container session_login",v___page_signin_banner="form-signin-banner",v___page_activeElement=$("body")[0],v___page_hasEditor=editor_init_check(),v___target_servers_index="servers/link.cgi",v___URI=URI(v___location),v___location_protocol=v___URI.protocol(),v___location_port=v___URI.port(),v___location_origin=v___URI.origin(),v___location_hostname=v___URI.hostname(),v___location_href=v___location.href,v___location_path=v___URI.path().replace(/\/+/g,"/"),v___location_path_unslashed=v___location_path.replace(/^\//g,"").replace(/\/$/g,""),v___location_path_lead_unslashed=v___location_path.replace(/^\//g,""),v___location_file=v___URI.filename(),v___location_directory=v___URI.directory(),v___location_directory_trail_slashed=v___location_directory?v___location_directory.endsWith("/")?v___location_directory:v___location_directory+"/":"/",v___location_directory_unslashed=v___location_directory.replace(/^\//g,"").replace(/\/$/g,""),v___location_directory_unslashed_trail_slashed=v___location_directory_unslashed+"/",v___location_query=navigation_trigger(v___URI.query(),1),v___location_resource=navigation_trigger(v___URI.resource(),1),v___location_resource_unslashed=v___location_resource.replace(/^\//g,"").replace(/\/$/g,""),v___location_prefix=get_server_data("webprefix"),v___location_prefix_unslashed_trail_slashed=v___location_prefix.replace(/^\//g,"").replace(/\/$/g,"")+"/","/"===v___location_prefix_unslashed_trail_slashed&&(v___location_prefix_unslashed_trail_slashed=""),v___server_css_path=v___location_prefix+"/unauthenticated/css",v___server_css_palettes_path=v___server_css_path+"/palettes",v___server_js_path=v___location_prefix+"/unauthenticated/js",v___server_extensions_path=v___location_prefix+"/extensions",
+$('[data-dcontainer="1"]').tooltip({selector:'[data-toggle="tooltip"]:not([data-skip]), [data-toggle="virtualmin-license"], .panel-body td a:not([data-skip]), .icons-container',placement:"auto "+($(".gl-icon-container").length?"bottom":"top"),html:!0,delay:{show:600,hide:30}})),v___available_navigation&&(window.matchMedia("(max-width: 1080px)").matches||"1"==$("html").attr("data-navigation-collapsed"))&&navigation_lock_width(),v___available_navigation&&(window.matchMedia("(max-width: 1365px)").matches||"1"==$("html").attr("data-navigation-collapsed"))&&set_side_slider_visibility(),"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"),n=a.find('form[action="view_table.cgi"]').first().addClass("inline-block"),s=n.nextAll('input[name="search"], input[name="db"], input[name="table"]').slice(0,3);e.parent("td").prev("form");n.append(s.detach()),i.append(n.detach()),i.find("form").append(t.detach())}),$("body").hasClass("session_login")&&setTimeout(function(){page_display()},200),theme_to_new_tab();var container=$(".container-fluid");if(Core.curModuleFileQuery("syslog","save_log.cgi","view=")||!settings_enable_container_offset?container.removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15"):container.addClass("col-lg-10 col-lg-offset-1").removeClass("margined-top-15"),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("/")'),t=e.find("select"),i=t.prev("input");$year=t.next("input"),cls="margined-left--10",t.addClass(cls),$year.addClass(cls).attr("size",3),i.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"),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),_=parseInt($(i).val()),o=!!$(t).val()&&parseInt($(t).val())+a,r=$(e).val();_&&o&&r&&s.datepicker("update",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.moduleAvailable("mailbox")&&("object"==typeof mail?0===$("aside .fancytree-container").length&&mail.folders.get():load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.folders.get()"]))),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")}),(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 input_password_targets=document.querySelectorAll('input[type="password"]');for(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"))})}var selectStr="select",select_for=$('select.ui_select[name="module"], select.ui_select[name="user"], select.ui_select[name="nuser"], select.ui_select[name="zone"], select.ui_select[name="serv"], select.ui_select[name="mod"], select.onchange_form_submit_triggger, select[name="idx"], select[name="file"]:first, select[name="manual"]:first'),originalSelectAddedHiddenClass="select2-hidden-accessible",select2Class="select2",select2ContentTriggerClass="select2-content",select2ContentContainerTriggerClass="select2-content-container",heighterStr="heighter",heighterType="34",v___page_hadEditor=0;if($is_history_action&&$.each($(".container-fluid .select2-hidden-accessible + .select2"),function(){v___page_hadEditor=1,$(this).prev(".select2-hidden-accessible").removeClass("select2-hidden-accessible"),$(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("heighter-28")||select_for.outerHeight()<=28)&&(heighterType="28"),select_for.select2({minimumResultsForSearch:5,containerCssClass:"select2-content heighter-"+heighterType,dropdownCssClass:"select2-content h"+heighterType}),select_for.next(".select2").addClass("select2-content-container"),select_for.next(".select2").next(".ui_form_end_submit").addClass("heighter-"+heighterType),setTimeout(function(){bind_sameorigin(0)},100)),"install_mod.cgi"===v___location_file){var prev_req=Core.var.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")}),navigation_update(),$.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))})}function page_refresh(e){if(e&&set_onbeforeunload_status(0,0),get_onbeforeunload_status())get_onbeforeunload_message(!1,"get_pjax_content(v___location_resource, false, false)","ev");else{var t=Core.var.previous_request,i=Core.var.source_request,a=unbuffered_header_processor_allow(!(!t||!t.target)&&t.target.action);"submit"===t.type?get_pjax_action_submit(t,!1):a&&i.length?get_pjax_content(i,!1,!1):get_pjax_content(v___location_resource,!1,!1)}}function page_init(){"undefined"==typeof v___initial_load&&(v___initial_load=1),"undefined"==typeof v___title_initial&&(v___title_initial=get_server_data("title-initial")),v___location=location,$__theme_name__="authentic",$__theme_navigation="xnavigation=1",$__theme_event_deselectors=':not([href*="index.cgi?path="]):not([href*="config.cgi?path="]):not([href*="download.cgi?file="])',$__theme_default_deselectors=':not([target="_blank"]):not([href^="#"]):not([data-href^="#"]):not([data-toggle="collapse"]):not([href*="javascript:"]):not(.has-sub):not([data-has-sub-link]):not([onclick]):not([data-nref])',v___user_level=get_server_data("access-level"),v___shell_type=0==v___user_level?"#":"$",v___shell_processing=0,v___debug=parseInt(get_server_data("debug")),v___source_type=v___debug?"src":"min",v___available_usermin=get_server_data("usermin"),"undefined"==typeof v___available_navigation&&(v___available_navigation=get_server_data("navigation")),v___available_session="1"==get_server_data("session")?1:0,"undefined"==typeof v___blocked_navigation&&(v___blocked_navigation=0),v___server_username=get_server_data("user"),v___server_userhome=get_server_data("user-home"),v___module=get_server_data("module"),"undefined"==typeof v___module_previous&&(v___module_previous=0),v___script_name=get_server_data("script-name").replace(/^\//g,""),v___module_file_manager="file"+(Core.moduleAvailable("file-manager")?"-manager":"min"),v___server_hostname=get_server_data("hostname"),v___server_sestatus=get_server_data("sestatus"),v___theme_version=get_server_data("theme-version").toString(),v___theme_dversion=Test.strContains(v___theme_version,"-"),v___theme_mversion=get_server_data("theme-mversion").toString(),v___theme_version_plain=v___theme_version.replace(/\./g,"").replace(/-beta.*/g,"")+(v___debug||v___theme_dversion?moment().unix()+v___theme_mversion:"9999999999"+v___theme_mversion),v___theme_force_buffered=0,v___theme_reload=0,v___theme_connection_reestablish=0,v___theme_connection_triggered_origin=0,v___theme_ajax_error=0,"undefined"==typeof v___theme_pjax_call&&(v___theme_pjax_call=0),v___theme_state_visible=1,v___theme_visibility_check=0,v___theme_progress=0,v___theme_stats_error=0,v___theme_processing_default_content=0,"undefined"==typeof v___theme_content_history&&(v___theme_content_history=0),"undefined"==typeof v___location_previous&&(v___location_previous=0),v___theme_night_mode="1"==get_server_data("data-night-mode")?1:0,v___theme_night_mode_enabled="undefined"!=typeof settings_background_color&&"nightRider"===settings_background_color?1:v___theme_night_mode,o___gotten_scripts="undefined"==typeof o___gotten_scripts?[]:o___gotten_scripts,v___page_container=$(".container-fluid"),v___page_signin_form="container session_login",v___page_signin_banner="form-signin-banner",v___page_activeElement=$("body")[0],v___page_hasEditor=editor_init_check(),v___target_servers_index="servers/link.cgi",v___URI=URI(v___location),v___location_protocol=v___URI.protocol(),v___location_port=v___URI.port(),v___location_origin=v___URI.origin(),v___location_hostname=v___URI.hostname(),v___location_href=v___location.href,v___location_path=v___URI.path().replace(/\/+/g,"/"),v___location_path_unslashed=v___location_path.replace(/^\//g,"").replace(/\/$/g,""),v___location_path_lead_unslashed=v___location_path.replace(/^\//g,""),v___location_file=v___URI.filename(),v___location_directory=v___URI.directory(),v___location_directory_trail_slashed=v___location_directory?v___location_directory.endsWith("/")?v___location_directory:v___location_directory+"/":"/",v___location_directory_unslashed=v___location_directory.replace(/^\//g,"").replace(/\/$/g,""),v___location_directory_unslashed_trail_slashed=v___location_directory_unslashed+"/",v___location_query=navigation_trigger(v___URI.query(),1),v___location_resource=navigation_trigger(v___URI.resource(),1),v___location_resource_unslashed=v___location_resource.replace(/^\//g,"").replace(/\/$/g,""),v___location_prefix=get_server_data("webprefix"),v___location_prefix_unslashed_trail_slashed=v___location_prefix.replace(/^\//g,"").replace(/\/$/g,"")+"/","/"===v___location_prefix_unslashed_trail_slashed&&(v___location_prefix_unslashed_trail_slashed=""),v___server_css_path=v___location_prefix+"/unauthenticated/css",v___server_css_palettes_path=v___server_css_path+"/palettes",v___server_js_path=v___location_prefix+"/unauthenticated/js",v___server_extensions_path=v___location_prefix+"/extensions",
// $t___license_vm = get_server_data("virtual-server-license"),
// $t___license_cm = get_server_data("server-manager-license"),
-update_navigation_module_name()}function editor_init_check(){return 1===$("textarea").length&&("data"===$("textarea").attr("name")||"text"===$("textarea").attr("name")||"conf"===$("textarea").attr("name")||"script"===$("textarea").attr("name")||Core.curModuleFileQuery("virtual-server","edit_html.cgi","textok=")||v___location_file.indexOf("manual")>-1)?Core.curModule("gnupg")||Core.curModuleFile("virtual-server","mass_ucreate_form.cgi")||Core.curModuleFile("virtual-server","mass_create_form.cgi")||Core.curModuleFile("server-manager","edit_pubkey.cgi")||Core.curModuleFile("server-manager","edit_key.cgi")||check_location_resource("/config.cgi?server-manager")||Core.curModuleFile("useradmin","batch_form.cgi")||Core.curModuleFile("useradmin","gbatch_form.cgi")||"mass_form.cgi"==v___location_file||"notes"===$("textarea").attr("id")?0:1:0}function editor_init(e,t,i,a,n,s,_,o,r){_=void 0!==_&&0!=_,r=void 0!==r&&0!=r&&r,_||(n=void 0!==n&&0!=n,s=void 0!==s&&0!=s,$.each(e,function(_,l){var c=($(this),["phpini","bind8"]),d=v___module;c.indexOf(d)>=0&&$(this).data("name","data"),CodeMirror.modeURL=v___location_prefix+"/unauthenticated/js/codemirror/mode/%N/%N.js";var h=null,g="text/plain",p=!1;v___location_path==v___location_prefix+"/custom/view.cgi"?p=$('form[action="save.cgi"]').find(".table-title").find("tt").text():$('body[class^="'+v___module_file_manager+'"]').length?(p=t.replace(/<(?:.|\n)*?>/gm,"").replace(/ *\([^)]*\) */g,""),t=p):p=$('select[name="file"]').val();var f,h,g,u=t?t:p;if(f=/.+\.([^.]+)$/.exec(u)){var m=CodeMirror.findModeByExtension(f[1]);m&&(h=m.mode,g=m.mime)}else if(/\//.test(u)){var m=CodeMirror.findModeByMIME(u);m&&(h=m.mode,g=u)}else h=null,g="text/plain";if("apache"==d||"postfix"==d||"dovecot"==d||"spam"==d||"sendmail"==d||"samba"==d||"proftpd"==d||"fail2ban"==d||"sshd"==d||"squid"==d||"ldap-server"==d||"mysql"==d||"postgresql"==d?(h="rpm",g="rpm-spec"):"init"==d||"procmail"==d||"shorewall"==d||Test.strContains(d,"nginx")||Test.strContains(d,"cshrc")?(h="shell",g="text/x-sh"):"phpini"==d?(h="z80",g="text/x-z80"):"bind8"==d||Core.curModuleFile("virtual-server","manual_records.cgi")?(h="ttcn",g="text/x-ttcn"):"virtual-server"==d&&"body"==$(this).attr("name")&&(h="htmlmixed",g="text/html"),$current_file=v___location_path.replace(/^\//g,""),$current_file&&($current_file=$current_file.split("/")[1]),editor_init_check()||$(".jsPanel").length||n){CodeMirror.commands.autocomplete=function(e){e.showHint({hint:CodeMirror.hint.anyword})},window["__cm_editor_"+a]=CodeMirror.fromTextArea(l,{tabMode:"indent",matchBrackets:!0,lineNumbers:!0,keyMap:"sublime",highlightSelectionMatches:{annotateScrollbar:!0},lineWrapping:!0,indentUnit:0,autofocus:!0,foldGutter:!0,continueComments:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete"},styleActiveLine:!0,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette}),window["__cm_editor_"+a].setOption("mode",g),"rpm"!=h&&CodeMirror.autoLoadMode(window["__cm_editor_"+a],h),setTimeout(function(){$("body").find(".jsPanel").length||$(".CodeMirror").before(' ');var e=$(".fa.fa-question-circle.__helper, .__helper___");e.popover({container:"body",placement:"auto left",title:'× '+theme_language("theme_xhred_editor_help_title"),content:theme_language("theme_xhred_editor_help_content"),trigger:"click",html:!0}),e.on("inserted.bs.popover",function(){$("body").find(".theme_xhred_editor_help").parents(".popover").addClass("_helper")})},100),s&&window["__cm_editor_"+a].on("change",function(e,t){Test.strContains(v___location_path,"init/edit_")||set_onbeforeunload_status(1,0)});var v=$(".container-fluid > .panel > .panel-body").attr("data-cm-line"),b=$(".container-fluid > .panel > .panel-body").attr("data-cm-state");if(o&&v&&__cm_editor_static.setCursor(parseInt(v.split(",")[0]),parseInt(v.split(",")[1])),r){var x=$(l).parents("form"),y=x.find('input[type="submit"]:visible, .ui_form_end_submit.btn-success[type="button"]:visible');x.on("submit",function(e){set_onbeforeunload_status(0,0)}),y.prev("br").length&&y.addClass("margined-top--10"),$(window).resize(function(){window["__cm_editor_"+a].setSize(null,$(window).outerHeight()*r)}).trigger("resize"),window["__cm_editor_"+a].on("change",function(){set_onbeforeunload_status(1,0),y.removeClass("btn-default btn-success").addClass("btn-danger")})}else"edit_cron.cgi"!=$current_file&&v___location_path!=v___location_prefix+"/virtualmin-password-recovery/"&&v___location_path!=v___location_prefix+"/bind8/forward_form.cgi"&&($resize=i?i:2.8,i?(window["__cm_editor_"+a].on("change",function(t,i){e.val(window["__cm_editor_"+a].getValue()),$(":focus").parents(".jsPanel").is(".jsPanel")&&($(":focus").parents(".jsPanel").find("._filemanager_file_editor_save").addClass("text-danger __locked__"),$(":focus").parents(".jsPanel").find("select[data-encoding]").addClass("pointer-events-none"))}),window["__cm_editor_"+a].setSize($resize[0],$resize[1])):($window_height=$(window).outerHeight()-$(window).outerHeight()/$resize,window["__cm_editor_"+a].setSize(null,$window_height),$(window).resize(function(){$window_height=$(window).outerHeight()-$(window).outerHeight()/$resize,window["__cm_editor_"+a].setSize(null,$window_height)})));$(".sub_table_container").find(".CodeMirror").length&&($(".sub_table_container").addClass("xcontent-force-no-styling"),$(".panel-body").addClass("xqcontent-forced")),editor_background_save(o&&!!v&&"true"==b)}}))}function viewer_init_check(){return $('body[class^="syslog"]').length&&v___location_query&&(v___location_query.indexOf("view=1")>-1||v___location_query.indexOf("new=")>-1)||$('body[class^="syslog-ng"]').length&&v___location_file&&"view_log.cgi"===v___location_file&&v___location_query&&v___location_query.indexOf("dest=")>-1?1:0}function viewer_init(){if($("pre[data-cm-viewer]").remove(),$(".panel-body pre").find("i").length){var e=0,t=$('.panel-body [name="filter"]');t.length&&t.val()&&(e=1),$(".panel-body pre > i").addClass("label label-transparent-15").text(theme_language(e?"theme_xhred_global_no_results_found":"theme_xhred_global_empty").toUpperCase()),$(".panel-body pre").addClass("text-center")}else{var i=!1;$(".panel-body pre").each(function(e,t){var a=$(this),n=Convert.htmlStrip(Convert.uriDecodeComponent(a.html()));a.addClass("hidden"),a.after(" "),$target=$("pre[data-cm-viewer-id-"+(e+1)+"]");var s=$.trim($('[name="filter"]:first').val());s&&s.length&&CodeMirror.defineMode("highlightSearch",function(e,t){var i={token:function(e,t){var i=e.string.match(new RegExp(s,"i"));if(i&&i[1]&&(s="",$.each(i,function(e,t){Test.numeric(e)&&e>0&&(s.length?s+="|"+t:s=t)})),s=new RegExp(s,"i"),e.match(s))return"highlightSearch";for(;null!=e.next()&&!e.match(s,!1););return null}};return CodeMirror.overlayMode(CodeMirror.getMode(e,t.backdrop),i)}),i=CodeMirror($target[0],{value:n,lineNumbers:!1,mode:s?"highlightSearch":null,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette,readOnly:!0})}).promise().done(function(){})}}function notifications(e,t,i,a){function n(e,t){t&&(check_bundle(t),navigation_clear(),get_pjax_content(t),e.close()),window.focus()}if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e=Convert.htmlUnEscape($.trim(e.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," "),t=Convert.htmlUnEscape($.trim(t.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," ");if("granted"===Notification.permission){var s=new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+i+".png"});s.onclick=function(){n(s,a)}}else"denied"!==Notification.permission&&Notification.requestPermission(function(s){if("granted"===s){var _=new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+i+".png"});_.onclick=function(){n(_,a)}}})}}function unbuffered_header_post(e){if(Test.strContains(e.responseText,"theme_post_save")){var t=e.responseText.match(/theme_post_save(.*)$/gm);if(t){navigation_update(t[0].split("=")[1])}}}function unbuffered_header_processor_allow(e){var t=URI(v___location),i=t.path();return void 0!==e&&(i=e),i&&Test.strContains(i,".cgi")&&(Test.strContains(i,"webmin/install_theme.cgi")||Test.strContains(i,"usermin/install_theme.cgi")||i.indexOf("/virtual-server/import.cgi")>-1||i.indexOf("/virtual-server/edit_newlinks.cgi")>-1||i.indexOf("/virtual-server/postsave.cgi")>-1||i.indexOf("/virtual-server/validate.cgi")>-1||i.indexOf("/server-manager/edit_serv.cgi")>-1||i.indexOf("/server-manager/save_serv.cgi")>-1||i.indexOf("/server-manager/index.cgi")>-1||i.indexOf("/server-manager/list_ifaces.cgi")>-1||i.indexOf("/server-manager/mass_update.cgi")>-1||i.indexOf("/server-manager/mass_update_form.cgi")>-1||i.indexOf("/server-manager/get_images.cgi")>-1||i.indexOf("/server-manager/edit_newlinks.cgi")>-1||i.indexOf("/server-manager/list_gces.cgi")>-1||i.indexOf("/server-manager/list_ec2s.cgi")>-1||i.indexOf("/server-manager/unpause.cgi")>-1||i.indexOf("/server-manager/find.cgi")>-1||i.indexOf("useradmin/batch_exec.cgi")>-1||i.indexOf("useradmin/gbatch_exec.cgi")>-1||i.indexOf("useradmin/mass_delete_user.cgi")>-1||i.indexOf("virtual-server/domain_setup.cgi")>-1||i.indexOf("virtual-server/upgrade.cgi")>-1||i.indexOf("virtual-server/mass_create.cgi")>-1||i.indexOf("virtual-server/restore.cgi")>-1||i.indexOf("virtual-server/save_newip.cgi")>-1||i.indexOf("virtual-server/mass_domains_change.cgi")>-1||i.indexOf("virtual-server/save_domain.cgi")>-1||i.indexOf("virtual-server/backup.cgi")>-1||i.indexOf("virtual-server/save_phpmode.cgi")>-1||i.indexOf("virtual-server/script_install.cgi")>-1||i.indexOf("virtual-server/mass_change.cgi")>-1||i.indexOf("virtual-server/save_ratelimit.cgi")>-1||i.indexOf("virtual-server/mass_scripts.cgi")>-1||i.indexOf("virtual-server/mass_upgrade.cgi")>-1||i.indexOf("virtual-server/save_newips.cgi")>-1||i.indexOf("virtual-server/letsencrypt.cgi")>-1||i.indexOf("virtual-server/migrate.cgi")>-1||i.indexOf("virtual-server/save_mail.cgi")>-1||i.indexOf("virtual-server/mass_delete_domains.cgi")>-1||i.indexOf("virtual-server/delete_domain.cgi")>-1||i.indexOf("virtual-server/unscript_install.cgi")>-1||i.indexOf("virtual-server/mass_uninstall.cgi")>-1||i.indexOf("virtual-server/clone.cgi")>-1||i.indexOf("virtual-server/fix_symlinks.cgi")>-1||i.indexOf("virtual-server/disable_domain.cgi")>-1||i.indexOf("virtual-server/delete_databases.cgi")>-1||i.indexOf("virtual-server/move.cgi")>-1||i.indexOf("virtual-server/enable_domain.cgi")>-1||i.indexOf("virtual-server/transfer.cgi")>-1||i.indexOf("virtual-server/mass_disable.cgi")>-1||i.indexOf("virtual-server/rename.cgi")>-1||i.indexOf("virtual-server/save_dbname.cgi")>-1||i.indexOf("virtual-server/mass_enable.cgi")>-1||i.indexOf("virtual-server/save_frame.cgi")>-1||i.indexOf("virtual-server/check.cgi")>-1||i.indexOf("virtual-server/save_newchroot.cgi")>-1||i.indexOf("virtual-server/enable_dkim.cgi")>-1||i.indexOf("virtual-server/save_proxy.cgi")>-1||i.indexOf("virtual-server/save_dbpass.cgi")>-1||i.indexOf("virtual-server/save_dbhosts.cgi")>-1||i.indexOf("virtual-server/unalias.cgi")>-1||i.indexOf("virtual-server/save_newautoconfig.cgi")>-1||i.indexOf("virtual-server/quotacheck.cgi")>-1||i.indexOf("virtual-server/unsub.cgi")>-1||i.indexOf("virtual-server/save_domdkim.cgi")>-1||i.indexOf("virtual-server/fix_modphp.cgi")>-1||i.indexOf("virtual-server/connectivity.cgi")>-1||i.indexOf("virtual-server/all_webmin.cgi")>-1||i.indexOf("virtualmin-support/send_ticket.cgi")>-1||i.indexOf("virtualmin-support/enable_login.cgi")>-1||i.indexOf("virtualmin-support/disable_login.cgi")>-1||i.indexOf("server-manager/empty.cgi")>-1||i.indexOf("server-manager/exec_vbackup.cgi")>-1||i.indexOf("server-manager/exec_vsync.cgi")>-1||i.indexOf("server-manager/failover.cgi")>-1||i.indexOf("server-manager/find.cgi")>-1||i.indexOf("server-manager/gcescan.cgi")>-1||i.indexOf("server-manager/install_kvm.cgi")>-1||i.indexOf("server-manager/install_xen.cgi")>-1||i.indexOf("server-manager/manual_image.cgi")>-1||i.indexOf("server-manager/mass.cgi")>-1||i.indexOf("server-manager/mass_move.cgi")>-1||i.indexOf("server-manager/mass_script.cgi")>-1||i.indexOf("server-manager/massupload.cgi")>-1||i.indexOf("server-manager/move.cgi")>-1||i.indexOf("server-manager/move_disk.cgi")>-1||i.indexOf("server-manager/newami.cgi")>-1||i.indexOf("server-manager/pause.cgi")>-1||i.indexOf("server-manager/reset.cgi")>-1||i.indexOf("server-manager/restore.cgi")>-1||i.indexOf("server-manager/restore_domain.cgi")>-1||i.indexOf("server-manager/save_ec2address.cgi")>-1||i.indexOf("server-manager/save_limits.cgi")>-1||i.indexOf("server-manager/save_pass.cgi")>-1||i.indexOf("server-manager/save_vcpus.cgi")>-1||i.indexOf("server-manager/scan.cgi")>-1||i.indexOf("server-manager/transfer.cgi")>-1||i.indexOf("server-manager/unpause.cgi")>-1||i.indexOf("server-manager/upgrade.cgi")>-1||i.indexOf("server-manager/upload.cgi")>-1||i.indexOf("server-manager/add.cgi")>-1||i.indexOf("server-manager/backup.cgi")>-1||i.indexOf("server-manager/boot.cgi")>-1||i.indexOf("server-manager/clone.cgi")>-1||i.indexOf("server-manager/convert_image.cgi")>-1||i.indexOf("server-manager/create_address.cgi")>-1||i.indexOf("server-manager/create.cgi")>-1||i.indexOf("server-manager/create_dimage.cgi")>-1||i.indexOf("server-manager/create_dkvolume.cgi")>-1||i.indexOf("server-manager/create_domain.cgi")>-1||i.indexOf("server-manager/create_ec2attach.cgi")>-1||i.indexOf("server-manager/create_ec2_snapshot.cgi")>-1||i.indexOf("server-manager/create_gceattach.cgi")>-1||i.indexOf("server-manager/create_gdisk.cgi")>-1||i.indexOf("server-manager/create_gimage.cgi")>-1||i.indexOf("server-manager/create_gsnapshot.cgi")>-1||i.indexOf("server-manager/create_image.cgi")>-1||i.indexOf("server-manager/create_volume.cgi")>-1||i.indexOf("server-manager/delete_addresses.cgi")>-1||i.indexOf("server-manager/delete_backuplogs.cgi")>-1||i.indexOf("server-manager/delete_ec2attach.cgi")>-1||i.indexOf("server-manager/delete_ec2_snapshots.cgi")>-1||i.indexOf("server-manager/delete_gceattach.cgi")>-1||i.indexOf("server-manager/delete_volumes.cgi")>-1||i.indexOf("server-manager/download.cgi")>-1||i.indexOf("server-manager/ec2scan.cgi")>-1||i.indexOf("cluster-usermin/upgrade.cgi")>-1||i.indexOf("cluster-usermin/install.cgi")>-1||i.indexOf("cluster-usermin/update.cgi")>-1||i.indexOf("ldap-useradmin/batch_exec.cgi")>-1||i.indexOf("ldap-useradmin/mass_delete_user.cgi")>-1||i.indexOf("usermin/upgrade.cgi")>-1||i.indexOf("usermin/update.cgi")>-1||i.indexOf("cpan/download.cgi")>-1||i.indexOf("cpan/install.cgi")>-1||i.indexOf("burner/save_profile.cgi")>-1||i.indexOf("burner/burn.cgi")>-1||i.indexOf("bind8/mass_create.cgi")>-1||i.indexOf("bind8/mass_rcreate.cgi")>-1||i.indexOf("bind8/mass_delete.cgi")>-1||i.indexOf("bind8/mass_update.cgi")>-1||i.indexOf("bind8/zone_dnssecmigrate_dt.cgi")>-1||i.indexOf("bind8/mass_rdelete.cgi")>-1||i.indexOf("bind8/enable_zonekey.cgi")>-1||i.indexOf("bind8/enable_zonedt.cgi")>-1||i.indexOf("bind8/disable_zonedt.cgi")>-1||i.indexOf("webalizer/save_log.cgi")>-1||i.indexOf("bacula-backup/restore.cgi")>-1||i.indexOf("bacula-backup/backup.cgi")>-1||i.indexOf("bacula-backup/gbackup.cgi")>-1||i.indexOf("bacula-backup/label.cgi")>-1||i.indexOf("bacula-backup/mount.cgi")>-1||i.indexOf("cluster-software/install_pack.cgi")>-1||i.indexOf("updown/download.cgi")>-1||i.indexOf("software/install_pack.cgi")>-1||i.indexOf("software/do_install.cgi")>-1||i.indexOf("software/apt_upgrade.cgi")>-1||i.indexOf("software/rhn_check.cgi")>-1||i.indexOf("software/yum_upgrade.cgi")>-1||i.indexOf("software/urpmi_upgrade.cgi")>-1||i.indexOf("software/csw_upgrade.cgi")>-1||i.indexOf("software/ports_upgrade.cgi")>-1||i.indexOf("webmin/letsencrypt.cgi")>-1||i.indexOf("webmin/delete_webmincron.cgi")>-1||i.indexOf("webmin/test_sendmail.cgi")>-1||i.indexOf("package-updates/update.cgi")>-1||i.indexOf("custom/run.cgi")>-1||i.indexOf("custom/sql.cgi")>-1||i.indexOf("virtualmin-init/save.cgi")>-1||i.indexOf("virtualmin-init/mass.cgi")>-1||i.indexOf("backup-config/save.cgi")>-1||i.indexOf("squid/init_cache.cgi")>-1||i.indexOf("squid/clear.cgi")>-1||i.indexOf("squid/chown.cgi")>-1||i.indexOf("ldap-client/check.cgi")>-1||i.indexOf("sendmail/del_mailqs.cgi")>-1||i.indexOf("sendmail/flushq.cgi")>-1||i.indexOf("init/mass_start_stop.cgi")>-1||i.indexOf("init/mass_launchd.cgi")>-1||i.indexOf("init/mass_systemd.cgi")>-1||i.indexOf("init/mass_upstarts.cgi")>-1||i.indexOf("init/mass_rcs.cgi")>-1||i.indexOf("init/save_services.cgi")>-1||i.indexOf("ldap-server/create.cgi")>-1||i.indexOf("change-user/change.cgi")>-1||i.indexOf("virtualmin-slavedns/save.cgi")>-1||i.indexOf("proc/trace.cgi")>-1||i.indexOf("proc/run.cgi")>-1||i.indexOf("proc/kill_proc_list.cgi")>-1||i.indexOf("fsdump/backup.cgi")>-1||i.indexOf("fsdump/restore.cgi")>-1||i.indexOf("webmin_search.cgi")>-1||i.indexOf("security-updates/update.cgi")>-1||i.indexOf("virtualmin-mailrelay/save.cgi")>-1||i.indexOf("cluster-copy/exec.cgi")>-1||i.indexOf("cron/exec_cron.cgi")>-1||i.indexOf("virtualmin-registrar/import.cgi")>-1||i.indexOf("virtualmin-registrar/save_ns.cgi")>-1||i.indexOf("virtualmin-registrar/transfer.cgi")>-1||i.indexOf("virtualmin-registrar/renew.cgi")>-1||i.indexOf("virtualmin-registrar/create.cgi")>-1||i.indexOf("htaccess-htpasswd/search.cgi")>-1||i.indexOf("acl/makedn.cgi")>-1||i.indexOf("acl/cert_issue.cgi")>-1||i.indexOf("acl/maketables.cgi")>-1||i.indexOf("acl/schema.cgi")>-1||i.indexOf("filter/move.cgi")>-1||i.indexOf("fetchmail/check.cgi")>-1||i.indexOf("servers/find.cgi")>-1||i.indexOf("cluster-cron/exec.cgi")>-1||i.indexOf("raid/mkfs.cgi")>-1||i.indexOf("lvm/pvmove.cgi")>-1||i.indexOf("lvm/mkfs.cgi")>-1||i.indexOf("ppp-client/init.cgi")>-1||i.indexOf("fdisk/mkfs.cgi")>-1||i.indexOf("fdisk/tunefs.cgi")>-1||i.indexOf("fdisk/fsck.cgi")>-1||i.indexOf("spam/deleteall_awl.cgi")>-1||i.indexOf("quota/check_quotas.cgi")>-1||i.indexOf("virtualmin-awstats/generate.cgi")>-1||i.indexOf("postfix/flushq.cgi")>-1||i.indexOf("/webmin/upgrade.cgi")>-1)?1:0}function unbuffered_header_processor_allow_scroll(){var e=["webmin_search.cgi"];return Test.arrContains(e,v___location_file)||!settings_perform_content_scrolling?0:1}function unbuffered_header_processor(e,t){if(t){var i=e,a=$(i.target),n=i.target.action;Core.var.source_request=v___location_resource;var s=$(quirks.active_element()).attr("name"),_=$.trim(quirks.active_element().innerText),o=quirks.active_element().value;a.find('input[name="'+s+'"]')&&a.find('input[name="'+s+'"]').val()==(_?_:o)||$(" ").attr({type:"hidden",name:s,value:_?_:o}).appendTo(a);var r=Test.strContains(a.attr("enctype"),"multipart/form-data"),l=r?new FormData(a[0]):a.serialize();if(r||(l=Test.strContains(l,s+"=")?l:l+"&"+s+"="+o),$("input:file:visible").val())return v___theme_force_buffered=1,void a.submit()}var c=0,d=0,h=t?n:e,g=(v___location.href,0),p=$('div[data-dcontainer="1"] > .panel.panel-default').clone();progress.start(),set_onbeforeunload_status(1,1),$("body").addClass("loading-bg"),progressive_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(t){if(!XHR.download(e,progressive_request,i)){var a=t.target.responseText,n=$(a),s='div[data-dcontainer="1"]',_=n.filter(s).html(),o=n.filter(s).find("pre").length;if(Test.strContains(a,v___page_signin_form))return v___available_session=0,void progressive_request.abort();if(!!_&&d++,0===g){g=1;$(window).off("popstate.unbuffered"),$(window).on("popstate.unbuffered",function(){$(this).unbind("popstate.unbuffered"),$('.container-fluid[data-dcontainer="1"]').html(p),setTimeout(function(){get_pjax_event_end_funcs(0)},41)})}if((o||d>1)&&!c){if(_){if($('div[data-dcontainer="1"]').html(_),c++,unbuffered_header_processor_allow_scroll()){$(".__page").hasScrollBar()?$(".__page").scrollTop($(".__page")[0].scrollHeight):$(".__page").scrollTop(0)}$(".__page").addClass("progressing"),unbuffered_header_processor_allow_scroll()||$(".__page").addClass("static"),get_pjax_event_end(!1,t.target)}$("body").addClass("loading-bg")}else if(c){var r=extract_content(a,'',"
",0);r&&$('div[data-dcontainer="1"]').find(".panel-body").html(r),unbuffered_header_processor_allow_scroll()&&$(".__page").scrollTop($(".__page")[0].scrollHeight)}}},!1),e},type:get_pjax_type(a?a:h),url:h,processData:!t||!r,contentType:(!t||!r)&&"application/x-www-form-urlencoded; charset=UTF-8",data:!!t&&l,complete:function(e){$('div[data-dcontainer="1"]').html($(e.responseText).filter('div[data-dcontainer="1"]').html()),window.history.pushState(null,null,navigation_trigger(this.url,2)),get_pjax_event_end(!1,e),unbuffered_header_processor_allow_scroll()&&$(".__page").scrollTop($(".__page")[0].scrollHeight);var t=$(".progressing pre > i");t.is(":first-child")&&t.is(":last-child")&&$(".progressing pre").addClass("no_data").find("i:first-child").addClass("label text-center label-transparent-15 text-uppercase"),$(".__page").removeClass("progressing static"),$("#headln2c .favorites").remove(),progress.end(),set_onbeforeunload_status(0,1),$("body").removeClass("loading-bg"),unbuffered_header_post(e),Core.curModuleFile("package-updates","update.cgi")&&information_update()}})}function check_selected_text(){return getSelection?getSelection().toString():document.selection?document.selection.createRange().text:""}function check_location_resource(e){return v___location_resource===v___location_prefix+e}function check_current_file(e){return v___location_file==e}!function(){browser.detect.internet_explorer()>5&&browser.detect.internet_explorer()<=11&&(setTimeout(function(){var e=""+theme_language("theme_xhred_browser_warning")+"
";theme_alert(theme_language("theme_xhred_global_warning"),e,!1,"md","danger",!1,"10 modal-ie-warning",0)},2e3),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var i=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=e.length;var a=i.lastIndexOf(e,t);return a!==-1&&a===t}),String.prototype.startsWith||String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t}))}(),$.extend($.expr[":"],{containsi:function(e,t,i,a){return(e.textContent||e.innerText||"").toLowerCase().indexOf((i[3]||"").toLowerCase())>=0}}),Object.defineProperty(Array.prototype,"reOrder",{enumerable:!1,value:function(e,t){if(t>=this.length)for(var i=t-this.length;1+i--;)this.push(void 0);return this.splice(t,0,this.splice(e,1)[0]),this}}),function(e){e.fn.simulateUserClick=function(){return this.each(function(){if("createEvent"in document){var e=this.ownerDocument,t=e.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,e.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),this.dispatchEvent(t)}else this.click()})}}(jQuery),function(e){e.fn.replaceTagName=function(t){for(var i=[],a=this.length;a--;){for(var n=document.createElement(t),s=this[a],_=s.attributes,o=_.length-1;o>=0;o--){var r=_[o];n.setAttribute(r.name,r.value)}n.innerHTML=s.innerHTML,e(s).after(n).remove(),i[a-1]=n}return e(i)}}(jQuery),jQuery.fn.selectText=function(){var e=document,t=this[0];if(e.body.createTextRange){var i=document.body.createTextRange();i.moveToElementText(t),i.select()}else if(window.getSelection){var a=window.getSelection(),i=document.createRange();i.selectNodeContents(t),a.removeAllRanges(),a.addRange(i)}},function(e){e.fn.replaceText=function(t,i,a){return this.each(function(){var n,s,_=this.firstChild,o=[];if(_)do 3===_.nodeType&&(n=_.nodeValue,(s=n.replace(t,i))!==n&&(!a&&/this.height()}}(jQuery),$.fn.toggleCheckbox=function(){"checkbox"==$(this).attr("type")&&$(this).prop("checked",!$(this).is(":checked"))},jQuery.fn.confirmation=function(e,t){return e=$.extend({className:"btn-danger",classNameRemove:"",timeout:2500},e),$(this).each(function(i,a){function n(){_.removeClass(e.className).data("confirmed",!1).find(".tmp_question").remove(),e.classNameRemove&&_.addClass(e.classNameRemove)}var s,_=$(a);_.html();_.data("confirmed",!1),_.on("click.confirm",function(i){i.preventDefault(),_.data("confirmed")?(t.call(_,i),n()):(_.data("confirmed",!0),e.classNameRemove&&_.removeClass(e.classNameRemove),_.append('? ').addClass(e.className).bind("mouseout.confirm",function(){s=setTimeout(n,e.timeout)}).bind("mouseover.confirm",function(){clearTimeout(s)}))}).removeClass(e.className),e.classNameRemove&&_.addClass(e.classNameRemove)}),$(this)},RegExp.quote=function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},$.fn.contentText=function(e){return $(this).contents().filter(function(){return $(this).text().trim()==e.trim()})},$(function(){var e,t=".blinking-default:not(.hidden)";setInterval(function(){0==e?($(t).css("opacity","1"),e=1):(e=1)&&($(t).css("opacity","0"),e=0)},900)}),$.getScripts=function(e){var t=$.map(e,function(e){return $.getScript(e)});return t.push($.Deferred(function(e){$(e.resolve)})),$.when.apply($,t)};if("object"==typeof localStorage)try{localStorage.setItem("d41d8cd98f00",1),localStorage.removeItem("d41d8cd98f00"),$_v__ls__a=1}catch(e){Storage.prototype._setItem=Storage.prototype.setItem,Storage.prototype.setItem=function(){},$_v__ls__a=0}page_init(),$___________lrs_r_l=0,$___________left=v___available_navigation?1:0,"undefined"==typeof settings_mailbox_slash_delimiter&&(settings_mailbox_slash_delimiter=!0),"undefined"==typeof settings_right_reload&&(settings_right_reload=!0),"undefined"==typeof settings_right_default_tab_usermin&&(settings_right_default_tab_usermin="mail"),"undefined"==typeof settings_right_virtualmin_default&&(settings_right_virtualmin_default="sysinfo.cgi"),"undefined"==typeof settings_right_cloudmin_default&&(settings_right_cloudmin_default="sysinfo.cgi"),"undefined"==typeof settings_font_family&&(settings_font_family=0),"undefined"==typeof settings_navigation_color&&(settings_navigation_color="blue"),"undefined"==typeof settings_grayscale_level_navigation&&(settings_grayscale_level_navigation="0"),"undefined"==typeof settings_sepia_level_navigation&&(settings_sepia_level_navigation="0"),"undefined"==typeof settings_saturate_level_navigation&&(settings_saturate_level_navigation="1"),"undefined"==typeof settings_hue_level_navigation&&(settings_hue_level_navigation="0"),"undefined"==typeof settings_invert_level_navigation&&(settings_invert_level_navigation="0"),"undefined"==typeof settings_brightness_level_navigation&&(settings_brightness_level_navigation="1"),"undefined"==typeof settings_contrast_level_navigation&&(settings_contrast_level_navigation="1"),"undefined"==typeof settings_background_color&&(settings_background_color="gainsboro"),"undefined"==typeof settings_hide_top_loader&&(settings_hide_top_loader=!1),"undefined"==typeof settings_show_night_mode_link&&(settings_show_night_mode_link=!0),"undefined"==typeof settings_theme_options_button&&(settings_theme_options_button=!0),"undefined"==typeof settings_leftmenu_button_refresh&&(settings_leftmenu_button_refresh=!1),"undefined"==typeof settings_cm_view_palette&&(settings_cm_view_palette="monokai"),"undefined"==typeof settings_cm_editor_palette&&(settings_cm_editor_palette="monokai"),"undefined"==typeof settings_contrast_mode&&(settings_contrast_mode=!1),"undefined"==typeof settings_enable_container_offset&&(settings_enable_container_offset=!0),"undefined"==typeof settings_right_page_hide_persistent_vscroll&&(settings_right_page_hide_persistent_vscroll=!0),"undefined"==typeof settings_side_slider_palette&&(settings_side_slider_palette="grey"),"undefined"==typeof settings_side_slider_enabled&&(settings_side_slider_enabled=!0),"undefined"==typeof settings_side_slider_fixed&&(settings_side_slider_fixed=!1),"undefined"==typeof settings_side_slider_fixed_toggle&&(settings_side_slider_fixed_toggle=!1),"undefined"==typeof settings_side_slider_sysinfo_enabled&&(settings_side_slider_sysinfo_enabled=!0),"undefined"==typeof settings_side_slider_notifications_enabled&&(settings_side_slider_notifications_enabled=!0),"undefined"==typeof settings_side_slider_favorites_enabled&&(settings_side_slider_favorites_enabled=!0),config_portable_module_filemanager_records_per_page="undefined"!=typeof localStorage&&null==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_records_per_page")?20:parseInt(localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_records_per_page")),config_portable_module_filemanager_default_sort="undefined"!=typeof localStorage&&null==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_default_sort")?"0":localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_default_sort"),config_portable_module_filemanager_hide_tree_view="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_tree_view"),config_portable_module_filemanager_tree_expand_search="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_expand_search"),config_portable_module_filemanager_tree_view_depth="undefined"!=typeof localStorage&&null==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_view_depth")?2:parseInt(localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_view_depth")),config_portable_module_filemanager_tree_exclude_on_first_load="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_exclude_on_first_load"),config_portable_module_filemanager_hide_actions="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_actions"),config_portable_module_filemanager_hide_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_toolbar"),config_portable_module_filemanager_hovered_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hovered_toolbar"),config_portable_module_filemanager_notification_type="undefined"!=typeof localStorage&&localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type")?localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type"):2,config_portable_module_filemanager_calculate_size="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_calculate_size"),config_portable_module_filemanager_switch_user="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_switch_user"),config_portable_module_filemanager_remember_tabs="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_remember_tabs"),config_portable_module_xsql_fit_content_screen_height="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_xsql_fit_content_screen_height"),"undefined"==typeof settings_show_webmin_tab&&(settings_show_webmin_tab=!0),"undefined"==typeof settings_hotkeys_active&&(settings_hotkeys_active=!0),"undefined"==typeof settings_button_tooltip&&(settings_button_tooltip=!0),"undefined"==typeof settings_hotkey_toggle_modifier&&(settings_hotkey_toggle_modifier="altKey"),"undefined"==typeof settings_hotkey_toggle_key_webmin&&(settings_hotkey_toggle_key_webmin="w"),"undefined"==typeof settings_hotkey_toggle_key_virtualmin&&(settings_hotkey_toggle_key_virtualmin="v"),"undefined"==typeof settings_hotkey_toggle_key_cloudmin&&(settings_hotkey_toggle_key_cloudmin="c"),"undefined"==typeof settings_hotkey_toggle_key_usermin&&(settings_hotkey_toggle_key_usermin="u"),"undefined"==typeof settings_hotkey_toggle_key_webmail&&(settings_hotkey_toggle_key_webmail="m"),"undefined"==typeof settings_hotkey_toggle_key_night_mode&&(settings_hotkey_toggle_key_night_mode="l"),"undefined"==typeof settings_hotkey_shell&&(settings_hotkey_shell="k"),"undefined"==typeof settings_hotkey_sysinfo&&(settings_hotkey_sysinfo="i"),"undefined"==typeof settings_hotkey_favorites&&(settings_hotkey_favorites="f"),"undefined"==typeof settings_hotkey_focus_search&&(settings_hotkey_focus_search="s"),"undefined"==typeof settings_hotkey_toggle_slider&&(settings_hotkey_toggle_slider="n"),"undefined"==typeof settings_hotkey_reload&&(settings_hotkey_reload="r"),"undefined"==typeof settings_global_passgen_format&&(settings_global_passgen_format="12|a-z,A-Z,0-9,#"),config_portable_theme_locale_languages="undefined"!=typeof localStorage&&localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_languages")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_languages"):get_server_data("language-full"),config_portable_theme_locale_language="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_language"),config_portable_theme_locale_format_full="undefined"==typeof localStorage||localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_full")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_full"):"LLLL",config_portable_theme_locale_format_long="undefined"==typeof localStorage||localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_long")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_long"):"LL",config_portable_theme_locale_format_short="undefined"==typeof localStorage||localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_short")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_short"):"L","undefined"==typeof settings_leftmenu_vm_cm_dropdown_icons&&(settings_leftmenu_vm_cm_dropdown_icons=!0),"undefined"==typeof settings_hotkey_custom_1&&(settings_hotkey_custom_1=!1),"undefined"==typeof settings_hotkey_custom_2&&(settings_hotkey_custom_2=!1),"undefined"==typeof settings_hotkey_custom_3&&(settings_hotkey_custom_3=!1),"undefined"==typeof settings_hotkey_custom_4&&(settings_hotkey_custom_4=!1),"undefined"==typeof settings_hotkey_custom_5&&(settings_hotkey_custom_5=!1),"undefined"==typeof settings_hotkey_custom_6&&(settings_hotkey_custom_6=!1),"undefined"==typeof settings_hotkey_custom_7&&(settings_hotkey_custom_7=!1),"undefined"==typeof settings_hotkey_custom_8&&(settings_hotkey_custom_8=!1),"undefined"==typeof settings_hotkey_custom_9&&(settings_hotkey_custom_9=!1),"undefined"==typeof settings_side_slider_background_refresh_time?settings_side_slider_background_refresh_time=5:settings_side_slider_background_refresh_time=parseFloat(settings_side_slider_background_refresh_time),"undefined"==typeof settings_leftmenu_width&&(settings_leftmenu_width=260),"undefined"==typeof settings_navigation_always_collapse&&(settings_navigation_always_collapse=!1),"undefined"==typeof settings_sysinfo_real_time_status&&(settings_sysinfo_real_time_status=!0),"undefined"==typeof settings_sysinfo_real_time_timeout?settings_sysinfo_real_time_timeout=1e3:settings_sysinfo_real_time_timeout=parseFloat(settings_sysinfo_real_time_timeout),"undefined"==typeof settings_sysinfo_easypie_charts&&(settings_sysinfo_easypie_charts=!0),"undefined"==typeof settings_sysinfo_easypie_charts_size?settings_sysinfo_easypie_charts_size=172:settings_sysinfo_easypie_charts_size=parseInt(settings_sysinfo_easypie_charts_size),"undefined"==typeof settings_sysinfo_easypie_charts_width?settings_sysinfo_easypie_charts_width=2:settings_sysinfo_easypie_charts_width=parseInt(settings_sysinfo_easypie_charts_width),"undefined"==typeof settings_sysinfo_easypie_charts_scale?settings_sysinfo_easypie_charts_scale=8:settings_sysinfo_easypie_charts_scale=parseInt(settings_sysinfo_easypie_charts_scale),"undefined"==typeof settings_sysinfo_theme_updates&&(settings_sysinfo_theme_updates=!1),"undefined"==typeof settings_sysinfo_theme_patched_updates&&(settings_sysinfo_theme_patched_updates=!1),"undefined"==typeof settings_sysinfo_csf_updates&&(settings_sysinfo_csf_updates=!1),"undefined"==typeof settings_sysinfo_link_mini&&(settings_sysinfo_link_mini=!1),"undefined"==typeof settings_perform_content_scrolling&&(settings_perform_content_scrolling=!0),"undefined"==typeof settings_animation_left&&(settings_animation_left=!0),settings_animation_left?$settings_animation_left_slide_time=175:$settings_animation_left_slide_time=0,"undefined"==typeof settings_animation_tabs&&(settings_animation_tabs=!1),settings_animation_tabs?$settings_animation_tabs_slide_time=350:$settings_animation_tabs_slide_time=0,"undefined"==typeof settings_show_terminal_link&&(settings_show_terminal_link=!0),"undefined"==typeof settings_favorites&&(settings_favorites=!0),$_v__ls__a?_v__ls__a="":_v__ls__a=" hidden",$(".mobile-menu-toggler:visible").length&&set_side_slider_visibility(0),navigation_display(),v___available_navigation?(page_adjust(settings_leftmenu_width,0),navigation_lock_width()):$("head").append(''),$("html").on("dblclick","body",function(){1!=$(this).find(".container-fluid").css("opacity")&&page_display()}),$.support.pjax&&v___available_navigation&&($(document).on("submit","form",function(e){if(void 0!==e.originalEvent&&(v___theme_content_history=0),"_blank"===e.target.target){var t=$(this);return void setTimeout(function(){t.removeAttr("target"),get_pjax_content(v___location_resource)},100)}e.preventDefault(),get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors)?get_onbeforeunload_message(e,this):get_pjax_action_submit(e)}),$(document).on("click","a"+$__theme_default_deselectors,function(e){void 0!==e.originalEvent&&(v___theme_content_history=0),get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors)?(e.preventDefault(),get_onbeforeunload_message(e,this)):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){get_server_data("loading",1),$("body").addClass("loading-bg"),Core.var.page_user_inactive=1,"number"==typeof set_server_tmp_var_timeout&&clearTimeout(set_server_tmp_var_timeout)}),$(document).on("pjax:beforeReplace",function(e,t,i){navigation_form_control(0),pjax.clear.modules(i),i.push===!1&&(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){var a=["fetch.cgi"];if(Test.arrIntersect(a,i.url)&&"1"!=Test.input.radio("show",1))return window.location.replace(i.url),setTimeout(function(){page_remove_progress()},300),!1;progress.start(),"number"==typeof v___theme_postponed_fetcher&&clearInterval(v___theme_postponed_fetcher);var n=$(e.relatedTarget),s=n.attr("href");s=s?s:i.url.replace(v___location_origin,""),clicked_in_nav_menu=n.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(s),"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){"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){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,v___theme_stats_error&&"object"==typeof stats&&stats.general.enable(),navigation_links()}),$(document).on("ready pjax:end",function(e,t){0!==v___available_session&&1!==v___theme_reload&&(navigation_form_control(1),get_pjax_event_end(e,t),setTimeout(function(){var e=navigation_trigger(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(){Core.var.page_user_inactive=0}))}),$(document).on("pjax:popstate",function(e){var t=e.state;setTimeout(function(){get_pjax_event_end_funcs(0),navigation_links(),Core.var.previous_request=new String,Core.var.source_request=new String},40);var i=v___module_file_manager+"/config.cgi",a=Test.strContains(v___location_resource,i),n=Test.strContains(t.url,i),s=a||n,o=Test.strContains(t.url,v___module_file_manager),_=v___module===v___module_file_manager,r=Test.strContains(t.url,"/csf/"),l="csf"===v___module,d="csf"!==v___module,c=theme_language("theme_xhred_global_firewall"),p=Test.strContains(t.url,"/settings-user.cgi"),f=Test.strContains(t.url,"/edit_themes.cgi")||p,g=Test.strContains(t.title,v___server_hostname)?theme_language("theme_xhred_datatable_sloadingrecords")+' ':t.title;(o||_)&&(_&&!s&&page.handle.content.preloader(r?1200:400,r?c:g),o&&!n&&(page.handle.content.preloader(-2,g),jsPanel.closeChildpanels("body"),__f_____undel(),v___theme_pjax_call=0,setTimeout(function(){page_refresh()},41))),f||!r&&!l||(l&&(d||!r)&&!o&&!_&&page.handle.content.preloader(400,r?c:g),r&&((a||d&&!o&&!_)&&page.handle.content.preloader(1200,c),setTimeout(function(){d&&(v___theme_pjax_call=0,page_refresh())},41))),(f||n)&&((!o&&!_||n)&&page.handle.content.preloader(400,g),setTimeout(function(){page_refresh()},41))})),v___available_session&&($.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_theme_language=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);get_server_data("language-strings",JSON.parse(e)),"function"==typeof set_side_slider_labels&&set_side_slider_labels()}}),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_available_modules=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);get_server_data("available-modules",JSON.parse(e))}}),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_user_level=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);Core.var.level=e}}),theme_config("load")),$(function(){if(1===v___initial_load&&v___available_navigation&&(page_display(),navigation_display(),0===get_access_level()&&settings_sysinfo_real_time_status&&load.bundle(v___server_extensions_path+"/stats/stats",0,["stats.general.timeout = settings_sysinfo_real_time_timeout","stats.general.query()"])),time.tictac(),browser.detect.safari(1)&&$("html").css("overflow","auto"),browser.detect.safari()&&$(".__page").addClass("browser_safari"),!v___available_navigation&&$(".container-fluid").removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15").parents("html").addClass("single_tab"),$("body").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&&set_switch_position(t),setTimeout(function(){$("aside select").val()!=e&&get_navigation_menu_virtualmin(e)},300)}),$("body").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)}),$("body").on("click",".--to-new-tab",function(){$(this).attr("target","_blank")}),$("body").on("click",".favorites-menu a.menu-exclude-link, .right_pane_favorites_link",function(){var e=Test.strContains($(this).attr("href"),"/virtual-server/")?"dom":!!Test.strContains($(this).attr("href"),"/server-manager/")&&"id",t=Test.strContains($(this).attr("href"),"gparent")?"gparent":e,i=URI.parseQuery(URI($(this).attr("href")).query())[t],a="dom"===e?"virtualmin":"id"===e?"cloudmin":"webmin",n=$('.switch-toggle input:not([id="open_'+a+'"]):checked').length;n&&set_switch_position(a),e?setTimeout(function(){$("aside select").val()!=i&&("dom"===e?get_navigation_menu_virtualmin(i):"id"===e&&get_navigation_menu_cloudmin(i))},300):n&&get_navigation_menu_webmin()}),$("body").on("click",function(e){var t=$("aside select");$(e.target).attr("class")&&0===$(e.target).attr("class").indexOf("select2")||t&&t.length>0&&t.hasClass("select2-hidden-accessible")&&t.select2("close")}),$("a").each(function(){$(this).find("img").length&&$(this).css("text-decoration","none")}),$("body").on("keydown",function(e){var t=e.keyCode?e.keyCode:e.which,i=String.fromCharCode(t).toLowerCase();!$('aside input[name="search"]').is(":focus")&&v___available_session&&($(".-shell-port-").hasClass("opened")||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"&&($("input").is(":focus")||$("select").is(":focus")||$("textarea").is(":focus")||$(".modal.in").length||!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().trigger("keyup")):setTimeout(function(){e.shiftKey&&"1"==i?$('aside input[name="search"]').focus().val("!"):$('aside input[name="search"]').focus().val(i)},1))))}),v___available_navigation&&($(document).ajaxSend(function(e,t,i){}).ajaxStop(function(){setTimeout(function(){0===v___available_session&&session.reauthenticate.start()},300)}).ajaxSuccess(function(e,t){v___theme_ajax_error=0,v___theme_stats_error&&0===get_access_level()&&settings_sysinfo_real_time_status&&("object"==typeof stats&&stats.general.enable(),v___theme_stats_error=0)}).ajaxError(function(e,t){if(progress.end(),v___theme_ajax_error=1,1===v___theme_connection_triggered_origin&&(0===t.status||400===t.status||404===t.status||500===t.status||502===t.status||503===t.status)){!$(".modal-connection-warning").length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-error=1",data:!1,dataType:"text",timeout:3e3,error:function(e){var t=theme_language("theme_xhred_connection_error_details").replace("%server",location.host+v___location_prefix);theme_alert(theme_language("theme_xhred_connection_lost")+' ',t,!1,"md","danger","unplugged fa-lg","7 modal-connection-warning",0),setTimeout(function(){0===v___theme_connection_reestablish&&(connection_reestablish(),v___theme_connection_reestablish=1,$(".modal-connection-warning").on("hidden.bs.modal",function(){v___theme_connection_reestablish=0,progress.end()}))},1),setTimeout(function(){navigation_render_end(),navigation_detect(),reset_switch_position(),despinnerfy_buttons(),theme_shell_unlock()},100)}})}}),$.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(),navigation_links()},beforeSend:function(e,t){t.url=navigation_trigger(t.url,1)}})),function(){if("function"==typeof Messenger.Message){var e,t,i,a={}.hasOwnProperty,n=function(e,t){function i(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e};e=jQuery,i='\n \n \n \n \n \n \n
',t=function(t){function a(){return a.__super__.constructor.apply(this,arguments)}return n(a,t),a.prototype.template=function(t){var n;return n=a.__super__.template.apply(this,arguments),n.append(e(i)),n},a}(Messenger.Message),Messenger.themes.air={Message:t},Messenger.options={extraClasses:"messenger-fixed messenger-on-bottom",theme:"air"}}}.call(this),v___available_navigation){0==v___user_level&&settings_side_slider_enabled&&settings_side_slider_fixed&&get_server_data("data-slider-fixed","1"),1===v___initial_load&&(console.log("Welcome to Authentic Theme "+v___theme_version+"\nhttps://github.com/qooob/authentic-theme"),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_navigation_menu_virtualmin_summary(),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_tmp_var("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,"//")&&URI(a.responseText).hostname()!==URI(location.href).hostname()||Test.strContains(a.responseText,"/servers/link.cgi/")||Test.strContains(a.responseText,"settings-user.cgi")||"/"===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=n?n:$('select[name="dom"]').val();set_switch_position("virtualmin"),get_navigation_menu_virtualmin(!!s&&s)}else if(Test.strContains(a.responseText,"server-manager")){var o=URI.parseQuery(URI(a.responseText).query()).id,_=o?o:$('select[name="sid"]').val();set_switch_position("cloudmin"),get_navigation_menu_cloudmin(!!_&&_)}else $t_uri_webmin||3==v___user_level||(set_switch_position("webmin"),get_navigation_menu_webmin("webmin")),3==v___user_level&&!$t_uri_webmail&&Test.strContains(a.responseText,"mailbox")&&Core.moduleAvailable("mailbox")?(set_switch_position("webmail"),setTimeout(function(){get_navigation_menu_webmin("webmail")},10)):3!=v___user_level||$t_uri_usermin||Test.strContains(a.responseText,"mailbox")||(set_switch_position("usermin"),setTimeout(function(){get_navigation_menu_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])}),navigation_select_label(),setTimeout(function(){fetch_right_pane_favorites(),Core.moduleAvailable("mailbox")&&load.bundle(v___server_extensions_path+"/mail/mail",1)},300)),$("body").on("focus",".sidebar-search",function(){if($("body").hasClass("loading-bg"))return void $(this).blur();navigation_init_autocomplete("c",!1)}),$("body").on("blur",".sidebar-search",function(){setTimeout(function(){navigation_init_autocomplete("c",!0)},150)}),setTimeout(function(){information_update()},1e4),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&$("#content").attr("style","-webkit-overflow-scrolling: touch !important; overflow-y: scroll !important;"),$('a[target="page"][href="link/"]').first().length&&$('a[target="page"][href="link/"]').first().attr("target","blank"),$("aside").on("click",".select2-container .select2-selection__arrow b",function(e){e.preventDefault(),e.stopPropagation()}),$("aside").on("click",'a[href*="/file/"], a[href*="history.cgi"]',function(e){e.preventDefault(),e.stopPropagation(),window.open($(this).attr("href"),"_blank")}),$("body").on("keydown",".sidebar-search",function(e){if(get_server_data("webmail")!==-1&&13==e.keyCode)return e.preventDefault(),!1}),$("body").on("click",".mobile-menu-toggler",function(e){var t=$settings_animation_left_slide_time?$settings_animation_left_slide_time:1;$this=$(this),$("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"},1.5*t)},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},2.5*t),$(".switch-toggle").css("display","table")):navigation_hide()}),$.each($('ul.navigation li.navigation_external a[href^="../servers/link.cgi/"]'),function(e,t){$(this).attr("href",v___location_href+$(this).attr("href").replace("../","").replace(/\/$/g,""))}),$("body").on("click",'.navigation a[target="page"], .user-links a[target="page"]',function(){navigation_hide()}),$("body").on("click",".navigation > li .navigation_external_link",function(e){e.preventDefault(),e.stopPropagation(),b=$(this),window.open(b.attr("href"),"_blank")}),$("body").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"),i=$("a",this).attr("target"),a=$(this);i&&$(".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"),i=t.is("[data-has-sub-link]");e.is(a)||(e.removeClass("active"),"#search"!=e.find("a").attr("href")&&i&&$(e.find("a").attr("href")).slideUp($settings_animation_left_slide_time))})).done(function(){a.hasClass("active")?a.removeClass("active"):"#hide"!=t&&!i&&a.addClass("active"),setTimeout(function(){$(t).is(":visible")&&"#hide"!=t&&!i?a.addClass("active"):a.removeClass("active"),$processing=!1},2*$settings_animation_left_slide_time>0?2*$settings_animation_left_slide_time:1),$(t).slideToggle($settings_animation_left_slide_time)}),"#search"==t&&$('#sidebar input[name="search"]').focus()}}),$("body").on("click",".navigation > li > ul.sub > li:not('.menu-container')",function(e){if(!e.target||!$(e.target).is("li")){var t=$(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(""),t.addClass("sub_active").append(' ')}}),$(".navigation > li > ul.sub").each(function(){""===$(this).attr("id")&&$(this).remove()}),$('.switch-toggle label[for^="reserve_empty"]').on("click",function(e){e.preventDefault()}),$("body").on("click",'a[data-refresh="true"]',function(e){e.preventDefault(),page_refresh()}),$("body").on("click",function(e){$("ul.dropdown").is(e.target)||0!==$("ul.dropdown").has(e.target).length||0!==$(".open").has(e.target).length||$("ul.dropdown").removeClass("open")}),$(".switch-toggle").on("contextmenu","label",function(e){e.preventDefault();var t=$(this).attr("for").replace("open_","");if($(this).prev("input").is(":checked")){var i=v___location_href;set_server_tmp_var("goto",navigation_trigger(i,1)),setTimeout(function(){theme_open_new_tab(i)},200)}else if("virtualmin"===t||"cloudmin"===t){var a;a="cloudmin"===t?"/server-manager/index.cgi":"/virtual-server/index.cgi"
-;var n=navigation_trigger(a,2);set_server_tmp_var("goto",navigation_trigger(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_tmp_var("goto",navigation_trigger(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}else{var s=v___location_prefix+"/sysinfo.cgi?"+$__theme_navigation;set_server_tmp_var("goto",navigation_trigger(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}}),$(".switch-toggle").on("click","input.dynamic",function(e){if(get_onbeforeunload_status()){e.preventDefault();var t=$(".switch-toggle input:checked").attr("id");return void get_onbeforeunload_message([],{href:"::switch::"+t})}return"open_thirdlane"==$(this).attr("id")?void(location.href=v___location_prefix+"/asterisk/index.cgi"):(set_switch_position($(this).attr("id").replace("open_","")),"open_dashboard"==$(this).attr("id")?void get_pjax_content(v___location_prefix+"/sysinfo.cgi"):void get_navigation_and_content($(this).attr("id").replace("open_",""),0,0))}),navigation_init_select(),$("aside").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"))}}}),$(".loader").append('
'),$("body").on("mouseover","#loader-close, #loader-close-sm",function(){$(this).find(".fa").removeClass("hidden")}).on("mouseout","#loader-close, #loader-close-sm",function(){$(this).find(".fa").addClass("hidden")}),$("body").on("click","#loader-close-sm > .fa",function(e){navigation_render_end()}),__shell_commands__i__=0,$(".form-control.sidebar-search").focus(function(e){$(".__logo").addClass("inited"),e.preventDefault(),e.stopPropagation(),__shell_commands__i__=0}),$("body").on("click","[data-shell-config]",function(e){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))return void(v___available_session=0);var t=$(e).find(".ui_form"),i=t.find("table.sub_table_container"),a=v___location_prefix+"/config_save.cgi";i.find("a").contents().unwrap();var n=i.find("tbody"),s=$(e).find("tr th.table-title b").text();theme_alert(s,'",!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){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);i.find('[data-dismiss="modal"]').trigger("click")},error:function(){}})}})},300)}})});var e=$("body").find(".-shell-port-"),t=e.find('input[data-command="true"]'),a=e.find("div[data-output]"),n=e.find(".-shell-port-container"),s=e.data("autocomplete");if($(window).keydown(function(i){var o=theme_shell_status(),_=$(".modal-shell-config:visible").length;if(!o&&v___available_session&&(navigation_focus_search(i),theme_shortcuts(i)),o&&27===i.keyCode&&!_)return void theme_shell_close(e);if(o&&38===i.keyCode&&(t.is(":focus")||$(".form-control.sidebar-search").is(":focus"))&&i.preventDefault(),o&&9===i.keyCode&&t.is(":focus")){if(i.preventDefault(),!s)return;var r=t.val().trim().split(/\s+(?!-)/),l=r.length,d=r[0]&&r[0].indexOf("-")===-1?0:1,c=r[1]&&r[1].indexOf(":")===-1?0:1,p=t.val().endsWith(" "),f="service"===$.trim(r[0]),g="systemctl"===$.trim(r[0]),u=$.trim(r[0])&&$.trim(r[0]).startsWith("chown"),m=1!==r.length||!t.val().length||d||p?f||g?"services":u?"permissions":"lists":"commands";if(!$.trim(t.val()).length)return;var h=t.val(),v=e.find(".-shell-port-pwd"),b=v.attr("data-pwd");if("services"===m){if("systemctl"===(m=f?"service":"systemctl")&&3!==r.length)return;h="service"==m?$.trim(r[1]):$.trim(r[2]),"service"===$.trim(r[0])&&(2===r.length&&p||3===r.length)&&(h=3===r.length?"::::"+$.trim(r[1])+"::::"+$.trim(r[2]):"::::"+$.trim(r[1]))}if(u){if(1===l&&!p)return void t.val($.trim(r[0])+" ");c&&$.trim(r[1])?p||r[2]?(m="lists",h=b+"/::::"+$.trim(r[2])):(m="groups",h=$.trim($.trim(r[1]).split(":")[1])):(m="users",h=$.trim(r[1]))}"lists"!==m||u||(h=b+"/::::"+$.trim(r[1])+"::::"+$.trim(r[0])+"::::"+$.trim(r[2])),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_autocompletes=1&xhr-get_autocomplete_type="+m+"&xhr-get_autocomplete_string="+h,data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var i=e.length;if(1===i)if("service"===m||"systemctl"===m||"lists"===m){var s=$.trim(r[0]),o=$.trim(r[0])+" "+$.trim(r[1]);"lists"===m?("cd"===s&&e[0].endsWith("/")||"cd"!==s)&&("cd"===s||"cat"===s?t.val(s+" "+e[0]):$.trim(r[2])?t.val(o+" "+e[0]):t.val(s+" "+e[0])):"service"!==s||2!==r.length&&3!==r.length?"systemctl"===s&&3===r.length&&t.val(s+" "+$.trim(r[1])+" "+e[0]):2===r.length?t.val(s+" "+e[0]+" "):3===r.length&&t.val($.trim(r[0])+" "+$.trim(r[1])+" "+e[0])}else u?c?p||r[2]?t.val($.trim(r[0])+" "+$.trim(r[1])+" "+e[0]):t.val($.trim(r[0])+" "+$.trim($.trim(r[1]).split(":")[0])+":"+e[0]+" "):t.val($.trim(r[0])+" "+e[0]+":"):t.val(e[0]+" ");else if(i>1){var _=""+$(".-shell-port-type").text()+" "+Convert.htmlEscape(t.val())+" \n";a.find("pre").append(_),a.find("pre").append(Convert.htmlEscape(e.join("\n")+"\n")),n.scrollTop(n[0].scrollHeight)}setTimeout(function(){t.focus().mousedown()},10)},error:function(){}})}}),$(window).keyup(function(n){var s=theme_shell_status(),o=$(".modal-shell-config:visible").length;if(s&&!o){var _=0,r=0,l=0,d=$(".form-control.sidebar-search"),c=$t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length,p=$('select[name="sid"]').val(),f=0,g=0;if(c)g=v___location_prefix+"/server-manager/shell.cgi";else{if(!Core.moduleAvailable("shell"))return;g=v___location_prefix+"/shell/index.cgi"}if((s||d.is(":focus"))&&8===n.keyCode&&(__shell_commands__i__=0),s?(_=$.trim(t.val()),r=1,l=1):(_=d.val(),r=void 0!==d.val(),l=0),(l||r&&(!_.trim()||_.trim().startsWith("!")))&&(38==n.keyCode||40==n.keyCode)){n.preventDefault(),n.stopPropagation(),void 0===localStorage.getItem(v___server_hostname+"-shell_commands")&&localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var u=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),m=u?u.length:0;if(0===__shell_commands__i__&&!_&&40==n.keyCode)return;if(0===__shell_commands__i__&&_&&38==n.keyCode)return void(f=1);if(__shell_commands__i__=40==n.keyCode?++__shell_commands__i__:--__shell_commands__i__,__shell_commands__i__<0&&38===n.keyCode?__shell_commands__i__=m-1:__shell_commands__i__>m&&(__shell_commands__i__=0),u&&u[__shell_commands__i__%m]){if(!$.isEmptyObject(u)&&(__shell_commands__i__==m&&38===n.keyCode||__shell_commands__i__==m&&40===n.keyCode||f))return s?t.val("").focus():d.val("").focus(),void(__shell_commands__i__=0);if(s){var h=u[__shell_commands__i__%m].replace(/^!/,"");t.val(Convert.htmlUnEscape(h)).focus()}}return}if(r&&_.trim().startsWith("!")&&27==n.keyCode)return n.preventDefault(),n.stopPropagation(),void d.val("").focus();if(r&&_.trim().startsWith("!")&&13==n.keyCode&&(d.addClass("_shell_form_"),n.preventDefault(),n.stopPropagation(),1==Core.moduleAvailable("shell")||c)){t.val(_.trim().substring(1)).focus(),theme_shell_open(e);var v=$.Event("keyup");v.keyCode=13,t.trigger(v)}var b=e.find(".-shell-port-container"),y=e.find(".-shell-port-pwd"),k=y.attr("data-pwd"),x=$.trim(t.val()),w=0,C=n.keyCode?n.keyCode:n.which,T=n.altKey&&"l"==String.fromCharCode(n.which).toLowerCase();if(t.is(":focus")||check_selected_text()||(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey||t.val(t.val()+String.fromCharCode(n.which).toLowerCase()),t.focus()),(x&&13===C||T)&&(Core.moduleAvailable("shell")||c)){if(1===v___shell_processing)return;v___shell_processing=1,("clear"==x||"reset"==x||"exit"==x||T)&&(a.find("pre").html(""),theme_shell_clear(t),"exit"==x&&theme_shell_close(e)),"cd ~"==x&&(w=x,x="cd "+y.attr("data-home"));var S=!1;if("cd /"==x&&(S="/"),"history -c"==x){localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var I=""+$(".-shell-port-type").text()+" "+x+" \n";a.find("pre").append(I),theme_shell_clear(t),b.scrollTop(b[0].scrollHeight);var j='',D=new FormData($(j)[0]);$.ajax({type:"POST",url:g+"?stripped=1&stripped=2",data:D,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0)},error:function(e){}})}else if($.trim(x).startsWith("history -d")){var P=x.split(" "),q=P[2];q&&q.length&&Test.numeric(q)&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-shell-pop="+q+"&xhr-shell-cms="+c+"&xhr-shell-cmsid="+p,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(q)-1})))}},error:function(e){}}),theme_shell_clear(t)}else if(x.startsWith("history")){theme_shell_clear(t);var O=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),A=O?O.length:0,E=A?A.toString().length:0,I=""+$(".-shell-port-type").text()+" "+x+" \n";$.each($(O),function(e,t){var a=e.toString().length,n="";for(i=0;i '+(c?' ':"")+' ',R=new FormData($(z)[0]);t.attr("readonly","true");var L=0,U=0,K=!1,W=0;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 shell_request.abort();if(t&&t.length&&/[\x1B]/.test(t))return W=1,void shell_request.abort();if(!!t&&U++,U>2&&!L)t&&($(".-shell-port-cmd").after(" "),L++,$(".-shell-port-container").addClass("progressing"));else if(L){var i=extract_content(t,""," ",1);i&&(i=i.replace(/<(b)[^>]*>[^<]*(<\/b>)/i,""),K=i),$(".-shell-port-cmd").next("pre").replaceWith(i),b.scrollTop(b[0].scrollHeight)}},!1),e},type:"POST",url:g+"?stripped=1&stripped=2",data:R,dataType:"text",cache:!1,contentType:!1,processData:!1,complete:function(e){if($(".-shell-port-container").removeClass("progressing"),e=e.responseText,Test.strContains(e,v___page_signin_form))return void(v___available_session=0);if(W)return a.find("pre").append(""+$(".-shell-port-type").text()+" "+t.val()+" \nError opening terminal: unknown.\n"),void theme_shell_call_done(".-shell-port-cmd",t,b);var i=$(".-shell-port-type").text(),n=$(e).find("pre").length?$(e).find("pre"):$(e).filter("pre"),s=n.html().replace(/>>/g,">"+i),o=$(e).find('input[name="previous"][type="hidden"]').map(function(){return Convert.htmlEscape($(this).val())}).get();localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(o)),newPwd=$(e).find('input[name="pwd"]').val(),a.find("pre").append(w?s.replace(new RegExp(x,"g"),w):s),y.text(S?S:newPwd==y.attr("data-home")?"~":newPwd.split("/").filter(function(e){return""!=$.trim(e)}).slice(-1)[0]).attr("data-pwd",S?S:newPwd).attr("title",S?S:newPwd),theme_shell_call_done(".-shell-port-cmd",t,b)},error:function(e){}})}}}),$("body").on("keyup","#webmin_search_form",function(e){var t=$(this),i=t.find("input.sidebar-search"),a=i.val(),n=$("body").find(".-shell-port-");a&&13==e.keyCode&&(a.startsWith("!")?theme_shell_open(n,a):($(this).trigger("submit"),i.val("")))}),$("body").on("click","#right-side-tabs .right_pane_favorites_link",function(e){$(".favorites-menu-outer.hover + .favorites-menu-close").trigger("click")}),$("aside").on("click",".user-links > li.favorites",function(e){$(".favorites-menu-outer").addClass("hover")}),$("body").on("click","nav.favorites-menu li a",function(){}),$("body").on("click",".favorites-menu-close, nav.favorites-menu li a",function(){$(".favorites-menu-outer").removeClass("hover")}),$(document).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),favicon=new Favico({animation:"none"}),0==v___user_level&&1==Core.moduleAvailable("status")){var o=localStorage.getItem(v___server_hostname+"-right-side-tab")?localStorage.getItem(v___server_hostname+"-right-side-tab"):"#right-side-tabs-sysinfo";$("body").append(' \t\t \t\t \t\t \t \t\t
\t'),$('a[href="'+o+'"]: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)}),$("body").on("click",'i[data-target-tooltip-callback="theme_xhred_tooltip_side_slider_pinned"]',function(e){var t="1"==get_server_data("data-slider-fixed")?0:1;Core.var.slider_pinned=t,settings_side_slider_fixed=!settings_side_slider_fixed,set_side_slider_visibility(t),t?$(this).removeClass("fa-rotate-45"):$(this).addClass("fa-rotate-45")}),$("body").on("click",".right-side-tabs-favorites-ctl",function(e){$(".favorites-menu-outer").hasClass("hover")?$(".favorites-menu-close").trigger("click"):$(".user-link.favorites").trigger("click")}),$("body").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")}),$("body").on("click","#right-side-tabs .info-container .graph-container-fw",function(e){var t,i=Core.moduleAvailable("proc"),a=$(this).attr("class"),n=a.indexOf("cpu_")>-1?"cpu":a.indexOf("mem_")>-1?"mem":a.indexOf("virt_")>-1?"virt":"disk";"cpu"==n&&i?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=n&&"virt"!=n||!i?"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")}),$("body").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")}),$("body").on("click","#right-side-tabs [data-click-about]",function(e){theme_update_notice(0)})}else get_server_data("data-slider-fixed","0"),$(".right-side-tabs-toggler").addClass("hidden");$(".right-side-tabs .tab-pane").each(function(){$(this).css("height",window.outerHeight-92)}),$(".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"))}),$("body").on("click",'a[data-id^="csf_"], a[data-type^="csf_"]',function(e){get_bundle_csf()}),$("body").on("click",'a[href*="mysql"], a[href*="postgresql"]',function(e){get_bundle_sql()}),$(".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(),$("body").append(' \t\t\t\t\t\t'),$("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){if(e.preventDefault(),"contextmenu"==e.type)return $(this).find(".fa-clear-all").trigger("click"),e.preventDefault(),void e.stopPropagation();if($(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")){if($(e.target).is(".fa-clear-all"))return $(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),void slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1);$(this).animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove(),localStorage.removeItem(v___server_hostname+"-notifications_"+$(this).attr("id")+"_"+$(this).data("type")),slider_add_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"),slider_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"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1))}),$(".right-side-tabs-dismiss i.fa-reload").click(function(e){if(!$(this).hasClass("cursor-na")){var t=Core.moduleAvailable("virtual-server")?"virtual-server":"system-status",i=$(".right-side-tabs-dismiss .fa-reload");i.addClass("fa-spin-fastest cursor-na"),$.ajax({type:"GET",url:v___location_prefix+"/"+t+"/recollect.cgi",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);"sysinfo.cgi"===v___location_file&&get_pjax_content(v___location_prefix+"/sysinfo.cgi"),information_update()},error:function(e){i.removeClass("fa-spin-fastest cursor-na"),theme_messenger(' '+theme_language("theme_xhred_sysinfo_update_failed"),20,"error","sysinfoRecollect")}})}}),$(".right-side-tabs-dismiss i.fa-clear-all").click(function(e){slider_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"},$settings_animation_left_slide_time,function(){$(this).remove(),slider_remove_all_notifications(),slider_add_no_notifications()})}),$("body").on("click",".right-side-tabs-toggler:not(.hidden)",function(e){$(this).hasClass("opened")?($(this).removeClass("opened"),$(this).animate({right:"0"},$settings_animation_left_slide_time),$(".right-side-tabs").animate({right:"-302"},$settings_animation_left_slide_time)):($(this).addClass("opened"),$(this).animate({right:"300"},$settings_animation_left_slide_time),$(".right-side-tabs").animate({right:"0"},$settings_animation_left_slide_time))}),$(".right-side-tabs .tab-pane").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1}),settings_button_tooltip&&$("body").tooltip({selector:'li[data-toggle="tooltip"], li > a[data-toggle="tooltip"].menu-exclude-link, label[data-toggle="tooltip"]',container:"body",html:!0,delay:{show:800,hide:30}}),$("body").on("click",".user-link.palette-toggle",function(e){theme_toggle_night_mode()}),$("body").on("click",".user-link.ported-console",function(t){theme_shell_check_available()&&theme_shell_open(e)}),$("body").on("click",".-shell-port-close",function(t){theme_shell_check_available()&&theme_shell_close(e)}),slider_add_no_notifications(),slider_check_notifications()}$("body").on("click","#headln2c > .favorites:not(.dummy), .xcustom-favorites:not(.dummy)",function(e){e.preventDefault();var t=URI(v___location).resource();if($(this).hasClass("fa-star-o")){$(this).removeClass("fa-star-o").addClass("fa-star text-warning");var i=$("#headln2c > span[data-main_title]").text(),a=$(".has-sub.active").text().trim(),n=$(".sub_active").text().trim(),s="",o="";($t_uri_virtualmin||$t_uri_cloudmin)&&(s=$("aside .ui_select option:selected").text()),$('body[class^="'+v___module_file_manager+'"]').length&&(o=URI.parseQuery(URI(v___location).query()).path,o=o?"["+o+"]":"[/]"),favorites_add(t,(s.length?s+" - ":"")+(a.length?a+"/":"")+(n.length?n+(i.trim().length?": ":""):"")+i.trim()+(o.length?" "+o:""),$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":"webmin"),favorites_save()}else $(this).addClass("fa-star-o").removeClass("fa-star text-warning"),favorites_remove(t)}),1===v___initial_load&&favorites_init(),$("#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(),favorites_remove($(this).parents("a").attr("href"))}),$(document).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),$("body").on("shown.bs.modal",".modal.in",function(){$(this).focus()}),$("body").on("click",".module-help",function(e){popover_visibility_position($(this))}),$("body").on("click",function(e){
-$(e.target).is(".close-popover-trigger")&&$(e.target).parent().parent().popover("hide");var t=".showpass-popover";$(t).length&&$(t).each(function(){$(this).is(e.target)||0!==$(this).has(e.target).length||0!==$(".popover").has(e.target).length||$(this).popover("hide")})}),$('body:not(".mobile-menu-toggler")').on("click",function(e){$(e.target).is('.wbm-sm, input[name="product-switcher"], label[for*="open_"], span, .sidebar-search, .select2-selection__rendered, .select2-selection')||navigation_hide()}),$("body").on("change",'input[type="checkbox"], input[type="radio"]',function(e){var t=$(this).parents("tr.ui_checked_columns");t.length&&t.find("input:first").is($(this))&&($(this).is(":checked")?t.addClass("hl-aw"):t.removeClass("hl-aw"),"function"==typeof __r____changed&&__r____changed())}),$("body").on("click",".ui_link, .ui_link_replaced",function(){$.each($('input[type="checkbox"]'),function(){$(this).is(":checked")?$(this).parents("tr.ui_checked_columns").addClass("hl-aw"):$(this).parents("tr.ui_checked_columns").removeClass("hl-aw"),"function"==typeof __r____changed&&__r____changed()})}),$("body").on("click","a#atclearcache",function(e){set_onbeforeunload_status(0,0),localStorage.clear(),$(".right-side-tabs-dismiss .fa-trash").trigger("click"),$(".right-side-tabs-dismiss .fa-refresh").trigger("click");var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small",1e3]),setTimeout(function(){theme_reload()},500)}),$("body").on("click",function(e){$(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")}),$("body").on("click",".authentic_update:not(.disabled)",function(e){e.preventDefault(),e.stopPropagation();var t=$(this),i="1"==t.data("stable")?1:0,a="1"==t.data("force")?1:0;theme.update(i,a)}),$("body").on("click",'a[data-href="#theme-info"]',function(){theme_update_notice(0)}),$("body").on("hide.bs.modal","#update_notice",function(){$(this).hasClass("r")?($("body").append('
'),$("div.update_notice_overlay").animate({opacity:1},560,function(){setTimeout(function(){theme_reload()},100)})):("0px"==___________content_initial_?$("#content").removeAttr("style"):$("#content").animate({"margin-left":___________content_initial_},280),$("aside").animate({"margin-left":0},280,function(){$(".right-side-tabs, .right-side-tabs-toggler").removeClass("pointer-events-none bg-filter-grayscale-opacity50"),$(".container-fluid").removeClass("bg-filter-blur-grayscale-opacity50")})),$("#update_notice").remove()}).on("show.bs.modal","#update_notice",function(){$("#update_notice").length;var e=($(this),$("aside").css("left"));___________content_initial_=$("#content").css("margin-left"),________version_date_obj=$(this).find(".modal-body > h4:first-child"),________version_curr_text=________version_date_obj.text().split(/\s+/)[1],________version_first_text=$(".version_separator:last").text(),________multi_in_branch=$(".version_separator").length,_____version__x=________version_first_text+"..."+v___theme_version;var t=$(".version_separator"),i=theme_language("theme_xhred_global_development_version");$.each(t,function(){$(this).attr("target","_blank")}),setTimeout(function(){$(".container-fluid").addClass("bg-filter-blur-grayscale-opacity50")},0),$("#content").animate({"margin-left":0},450),$("aside").animate({"margin-left":e},450),$(".right-side-tabs, .right-side-tabs-toggler").addClass("pointer-events-none bg-filter-grayscale-opacity50");var a=$(this).find(".modal-body h4"),n=$(this).find(".modal-body h4:first");if(!$(this).find(".modal-body h4:first .diffctl").length){var s=new RegExp(RegExp.quote(________version_curr_text),"g");________multi_in_branch&&(a.replaceText(s,""+_____version__x+" "),a.replaceText(/Version/,"Versions"));var o=$(this).find('.modal-body h4:contains("beta")').length;if(a.length&&o){var _=$(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/);latest_release=parseFloat(_?_[0]:v___theme_version);var r=n.text(),l=r.split("..."),d=0,c=$('a.version_separator[href*="releases"]:not(:empty)').first().text();l[1]&&(d=l[0].replace("Versions ",""),n.text(n.text().replace(d,c))),n.append(' '),n.after(' '+i+" ")}else n.append(' ').append(''+________version_curr_text+" ")}var p=[];$.each($(this).find('li span:contains("Fixed bugs")'),function(){var e=$(this),t=$(this).parent("li"),i=t.parent("ul"),a=t.find("a:not(.bctl)"),n=a.length;________multi_in_branch?(p.push(a),1===i.find("li").length&&(i.prev("hr").prev("a").remove(),i.prev("hr").remove(),i.addClass("no-data")),t.remove()):(e.html([e.text().slice(0,6),n+" ",e.text().slice(6)].join("")),t.find("a:first").before(' '),t.find("a.bctl").click(function(e){a.toggleClass("hidden"),t.find("a.bctl i").toggleClass("fa-minus-square-o")}),a.addClass("obj-popup hidden"))}).promise().done(function(){function e(e,t){return parseInt($(t).text().replace("#","")) '),$(".modal-body span[data-bugs-container]").append(p),$(".modal-body span[data-bugs-container] a").sort(e).appendTo(".modal-body span[data-bugs-container]");var t=$("span[data-fixed-bugs]"),i=($("span[data-bugs-container]"),$(".modal-body span[data-bugs-container]").find("a:not(.bctl)")),a=i.length;t.html([t.text().slice(0,6),a+" ",t.text().slice(6)].join("")),t.append(' '),t.find("a.bctl").click(function(e){i.toggleClass("hidden"),t.find("a.bctl i").toggleClass("fa-minus-square-o")}),i.addClass("obj-popup hidden");var n=$("div[data-bugs]"),s=n.find("a:not(.bctl)").length;!s&&n.prev(".hr-dashed").remove(),!s&&n.remove()}var o=$(".modal#update_notice h4 span");if(Test.strContains(o.text(),"...")&&Test.strContains(o.text(),"patch")){var _=parseInt(o.text().split("...")[1].substr(-1,1));_&&$.each($(".version_separator:not(.version_dev)"),function(e,t){e+1!=_?$(this).addClass("hidden"):$(this).text($(this).text()+"-"+theme_language("theme_xhred_global_release").toLowerCase())})}})}),$("body").on("click",".csf-submit",function(e){e.preventDefault();var t=$(this).data("id");$("#"+t).submit()}),$("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")}),$("body").on("click contextmenu","div.icons-container, div.small-icons-container",function(e){if("click"===e.type&&$(e.target).is(".gl-icon-select")&&!v___available_navigation)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 t=$(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");t.hasClass("fa-select")?t.removeClass("fa-select").addClass("fa-selected"):t.removeClass("fa-selected").addClass("fa-select")}"function"==typeof db_check_selected&&db_check_selected()}),$("body").on("click",".row.icons-row.vertical-align .icons-container, .row.icons-row.vertical-align .small-icons-container",function(){$(this).hasClass("forged-xx-skip")}),__is_shifted=!1,__is_tabbed=!1,$(document).on("keyup keydown",function(e){var t=e.keyCode?e.keyCode:e.which;__is_shifted=e.shiftKey,__is_tabbed=9==t}),$("body").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()}),$("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"),a.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)}),$("body").on("dblclick",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){e.preventDefault()});var _=0,r=null;$("body").on("dblclick",'.mppopup a[onclick*="select("]',function(e){$(".mppopup button[data-mppopup_confirm]").trigger("click")}),$("body").on("click",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){if(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),_++,$data_mppopup_value.val($v__mpp__g_ol),1===_)r=setTimeout(function(){if(_=0,"undefined"==typeof $v__mpp__g_gp&&($v__mpp__g_gp=0),$v__mpp__g_gp){var e=chooser_get_link($v__mpp__g_op);chooser_get(e)}else chooser_control($v__mpp__g_ol,0,0);$v__mpp__g_gp=0},450);else if(clearTimeout(r),_=0,$v__mpp__g_olt){var t=chooser_get_link($v__mpp__g_op);chooser_get(t)}else chooser_control($v__mpp__g_ol,1,1)}),$("body").on("click",".mppopup button[data-mppopup_confirm]",function(){chooser_control($data_mppopup_value.val(),1,1)}),$("body").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}})}),$("body").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},$settings_animation_tabs_slide_time),$(".mppopup_filter_input").focus()},0)}),$("body").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")}),$("body").on("click",".mppopup_multi_done",function(e){refInput.val($.trim($('.mppopup input[data-role="tagsinput"]').val().replace(/,/g," "))),$('.mppopup span[aria-hidden="true"]').trigger("click")}),$("body").on("keyup",".mppopup_filter_input",function(e){var t=e.which,i=$(".mppopup table tbody tr:visible"),a=i.find("td:first-child a");if(!$(".mppopup .breadcrumbx").length){if(13!=t||1!==i.length||e.shiftKey){if(13==t&&1===i.length&&e.shiftKey){a.trigger("click").trigger("dblclick");var n=$(".mppopup .mppopup_multi_done:visible");n.length&&setTimeout(function(){n.trigger("click")},240)}}else a.trigger("click");$(".mppopup table tbody tr.noresults").length||$(".mppopup table tbody").append(''+theme_language("theme_xhred_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")}}),$("body").on("click","button[data-mmclick]:not(.disabled), input[data-mmclick]:not(.disabled)",function(e){function t(e,t,i,a,s){var o;o=s?' ":' ";var _=' ";$("body").append(_),refInput.addClass("refInputData"),$("body .mppopup").modal("show")}function i(e){e[1].startsWith("/")?$v__mpp__g_op=e[1]:$v__mpp__g_op="/"+e[1]}e.preventDefault(),e.stopPropagation(),refInput=chooser_get_target($(this),1);var a=$(this),n=refInput.val(),s=encodeURIComponent(n),o=$(this).attr("data-mmclick"),_=o.match("window.open\\(['\"]*(.*?)(\\s*['\"]*,.*?)"),r=_[1].match(/(\w+\.[a-z]{3,4})/gi)[0],l=r.replace(".cgi","");if(a.addClass("disabled").attr("disabled","disabled"),_[1]){var d=_[1].replace("encodeURIComponent(ifield.value)","refInputCurrValSafe");d=d.replace('"+"',"").replace('"+',"").replace("refInputCurrValSafe",s),$.ajax({type:"POST",url:d,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var a=e,n=e.match(')<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(i).filter(".table").html(),n=$(i).filter(".table").prev("b").html(),s=chooser_breadcrumbs(n);0===$(a).find("td").length&&(a=a.replace("thead","tbody"),a=a.replace("",' '+theme_language("theme_xhred_datatable_semptydirectory")+" ")),i=s+'",t(i,"type1",0,refInput,0)}});else if($.isArray(n))i(n),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var i=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,"");i=''+$(i).filter("table").html()+"
",t(i,"type2",0,refInput,1)}});else{if($.isArray(n)&&n[1].indexOf("&multi=1")===-1)return;var s=a,o=$(s).filter("table").html();t('","",1,refInput,0)}}})}else $(this).removeClass("disabled"),$(this).attr("onclick",$(this).attr("data-mmclick")).removeAttr("data-mmclick"),$(this).trigger("click")}),$("body").on("click",".generate-password-key",function(e){var t=theme_password_generator();$("body").append(' ');var i=new Clipboard(".tmp-clipboard-obj");$(".tmp-clipboard-obj").trigger("click"),$(".tmp-clipboard-obj").remove(),i.destroy(),theme_messenger(' '+theme_language("theme_xhred_password_generator_new_success").replace("%password",' '+Convert.htmlEscape(t)+"
"),10,"success","newGeneratedPassword")}),$("body").on("click",'aside li[data-linked] a[href="'+v___location_prefix+"/shell/?"+$__theme_navigation+'"], aside a[href="'+v___location_prefix+"/server-manager/shell.cgi?"+$__theme_navigation+'"], aside a[href*="shell=1"]:not(a[href*="login.cgi"])',function(e){e.preventDefault(),e.stopPropagation(),$(".user-link.ported-console:visible").trigger("click")}),$("body").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")}}),$("aside").on("click",".__logout-link",function(e){progress.start(),get_server_tmp_var("goto",0)}),$("body").on("click",'button, input[type="submit"], a',function(e){v___page_activeElement=this}),$("body").on("click","._c__op_d",function(e){if($(e.target).is(this)){var t=$(this).find(".opener_trigger").first()[0];t&&t.click()}}),$("body").on("click",'form[action*="save_user.cgi"] button[name="but_switch"], a[href*="virtual-server/switch_user.cgi"]',function(e){v___theme_reload=1}),$(window).on("resize",function(){page_resized(),theme_shell_adapt()}),$("body").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))}),$("body").on("click",".ui_multi_select_row select[multiple] option",function(e){var t=$(this).parent("select"),i=t.parent("td"),a=i.parent("tr"),n=i.index();e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||0!==n&&2!==n||a.find("td:eq(1)").find('[onclick*="multi_select_move"][onclick*="'+(n?0:1)+'"]').trigger("click")}),$("body").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}),$("body").on("click",'form[action*="backup.cgi/backup.tgz"] input[name^="dest0_"]',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)}),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)}),$("body").on("click",".help_popup",function(e){e.stopPropagation(),e.preventDefault();var t=$(this),i=$(this).attr("href"),a=$(this).parent();a.append('
'),$.ajax({type:"POST",url:t.attr("href").indexOf("showpass.cgi")>-1?v___location_directory_trail_slashed+t.attr("href"):t.attr("href"),data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);a.find("._tmp_help_content").html(e.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"")),$help_title=a.find("._tmp_help_content .ui_subheading").first().text(),$help_body=a.find("._tmp_help_content title").remove(),$help_body=a.find("._tmp_help_content h3.ui_subheading").remove(),$help_body=a.find("._tmp_help_content h3").addClass("h3_help"),$help_body=a.find("._tmp_help_content hr").remove();var n=a.find("._tmp_help_content a");void 0!==n.attr("href")&&$.each(n,function(){var e=$(this).attr("href");e.startsWith("http")?$help_body=a.find("._tmp_help_content a").attr("target","_blank").css("text-decoration","none").css("font-style","italic"):($("body").undelegate('a[href="'+e+'"]',"click"),$("body").one("click",'a[href="'+e+'"]',function(a){if($(a.target).is($('a[href="'+e+'"]'))){a.preventDefault();var n=Convert.pathnamePopLast(t.attr("href"))+"/"+e;$('a[href="'+i+'"].help_popup').attr("data-initial",i).attr("data-substituted",n),$('a[href="'+i+'"].help_popup').attr("href",n),t.trigger("click")}}))}),$help_body=a.find("._tmp_help_content").html(),a.find("._tmp_help_content").remove();var s='× ',o=t.attr("href").indexOf("showpass.cgi")>-1,_=t.attr("href").indexOf("/locale")>-1;o&&(s=""),t.popover({html:!0,container:".container-fluid",template:'',title:function(){return s+$help_title},content:function(){return $help_body},placement:"auto right"}),t.popover("show"),t.on("shown.bs.popover",function(){$help_body.indexOf("")>-1&&$(".popover").animate({"max-width":"540px"},300),$("body").find(".popover:visible").addClass("module-help"),$('body[class*="'+v___module_file_manager+'"]').find(".popover:visible").addClass("file-manager-help"),setTimeout(function(){$.each($(".module-help"),function(){$(this).is(t.next(".module-help"))?($(this).animate({opacity:1},600),popover_visibility_position($(this))):$(".module-help").length>1?$(this).css("opacity",.85):$(this).css("opacity",1)})},100)}),t.on("hidden.bs.popover",function(){$("body").undelegate(":not(tt)","click"),t.attr("data-initial")&&(t.attr("href",t.attr("data-initial")),t.removeAttr("data-initial").removeAttr("data-substituted"))})}})}),$("body").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 a=t.find(".fa-refresh");a&&a.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()}})}}})}}),setTimeout(function(){window.onbeforeunload=function(){if(get_onbeforeunload_status())return progress.end(),!0},$(function(){v___available_navigation||progress.end()})},100),setTimeout(function(){theme_alert_charset()},2e3),favorites_detect(),page_render(0),setTimeout(function(){v___initial_load=0},1e3),setTimeout(function(){Core.var.language_strings=get_server_data("language-strings"),Core.var.available_modules=get_server_data("available-modules")},1e4)});
\ No newline at end of file
+update_navigation_module_name()}function editor_init_check(){return 1===$("textarea").length&&("data"===$("textarea").attr("name")||"text"===$("textarea").attr("name")||"conf"===$("textarea").attr("name")||"script"===$("textarea").attr("name")||Core.curModuleFileQuery("virtual-server","edit_html.cgi","textok=")||v___location_file.indexOf("manual")>-1)?Core.curModule("gnupg")||Core.curModuleFile("virtual-server","mass_ucreate_form.cgi")||Core.curModuleFile("virtual-server","mass_create_form.cgi")||Core.curModuleFile("server-manager","edit_pubkey.cgi")||Core.curModuleFile("server-manager","edit_key.cgi")||check_location_resource("/config.cgi?server-manager")||Core.curModuleFile("useradmin","batch_form.cgi")||Core.curModuleFile("useradmin","gbatch_form.cgi")||"mass_form.cgi"==v___location_file||"notes"===$("textarea").attr("id")?0:1:0}function editor_init(e,t,i,a,n,s,_,o,r){_=void 0!==_&&0!=_,r=void 0!==r&&0!=r&&r,_||(n=void 0!==n&&0!=n,s=void 0!==s&&0!=s,$.each(e,function(_,l){var c=($(this),["phpini","bind8"]),d=v___module;c.indexOf(d)>=0&&$(this).data("name","data"),CodeMirror.modeURL=v___location_prefix+"/unauthenticated/js/codemirror/mode/%N/%N.js";var h=null,g="text/plain",p=!1;v___location_path==v___location_prefix+"/custom/view.cgi"?p=$('form[action="save.cgi"]').find(".table-title").find("tt").text():$('body[class^="'+v___module_file_manager+'"]').length?(p=t.replace(/<(?:.|\n)*?>/gm,"").replace(/ *\([^)]*\) */g,""),t=p):p=$('select[name="file"]').val();var f,h,g,u=t?t:p;if(f=/.+\.([^.]+)$/.exec(u)){var m=CodeMirror.findModeByExtension(f[1]);m&&(h=m.mode,g=m.mime)}else if(/\//.test(u)){var m=CodeMirror.findModeByMIME(u);m&&(h=m.mode,g=u)}else h=null,g="text/plain";if("apache"==d||"postfix"==d||"dovecot"==d||"spam"==d||"sendmail"==d||"samba"==d||"proftpd"==d||"fail2ban"==d||"sshd"==d||"squid"==d||"ldap-server"==d||"mysql"==d||"postgresql"==d?(h="rpm",g="rpm-spec"):"init"==d||"procmail"==d||"shorewall"==d||Test.strContains(d,"nginx")||Test.strContains(d,"cshrc")?(h="shell",g="text/x-sh"):"phpini"==d?(h="z80",g="text/x-z80"):"bind8"==d||Core.curModuleFile("virtual-server","manual_records.cgi")?(h="ttcn",g="text/x-ttcn"):"virtual-server"==d&&"body"==$(this).attr("name")&&(h="htmlmixed",g="text/html"),$current_file=v___location_path.replace(/^\//g,""),$current_file&&($current_file=$current_file.split("/")[1]),editor_init_check()||$(".jsPanel").length||n){CodeMirror.commands.autocomplete=function(e){e.showHint({hint:CodeMirror.hint.anyword})},window["__cm_editor_"+a]=CodeMirror.fromTextArea(l,{tabMode:"indent",matchBrackets:!0,lineNumbers:!0,keyMap:"sublime",highlightSelectionMatches:{annotateScrollbar:!0},lineWrapping:!0,indentUnit:0,autofocus:!0,foldGutter:!0,continueComments:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete"},styleActiveLine:!0,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette}),window["__cm_editor_"+a].setOption("mode",g),"rpm"!=h&&CodeMirror.autoLoadMode(window["__cm_editor_"+a],h),setTimeout(function(){$("body").find(".jsPanel").length||$(".CodeMirror").before(' ');var e=$(".fa.fa-question-circle.__helper, .__helper___");e.popover({container:"body",placement:"auto left",title:'× '+theme_language("theme_xhred_editor_help_title"),content:theme_language("theme_xhred_editor_help_content"),trigger:"click",html:!0}),e.on("inserted.bs.popover",function(){$("body").find(".theme_xhred_editor_help").parents(".popover").addClass("_helper")})},100),s&&window["__cm_editor_"+a].on("change",function(e,t){Test.strContains(v___location_path,"init/edit_")||set_onbeforeunload_status(1,0)});var v=$(".container-fluid > .panel > .panel-body").attr("data-cm-line"),b=$(".container-fluid > .panel > .panel-body").attr("data-cm-state");if(o&&v&&__cm_editor_static.setCursor(parseInt(v.split(",")[0]),parseInt(v.split(",")[1])),r){var x=$(l).parents("form"),y=x.find('input[type="submit"]:visible, .ui_form_end_submit.btn-success[type="button"]:visible');x.on("submit",function(e){set_onbeforeunload_status(0,0)}),y.prev("br").length&&y.addClass("margined-top--10"),$(window).resize(function(){window["__cm_editor_"+a].setSize(null,$(window).outerHeight()*r)}).trigger("resize"),window["__cm_editor_"+a].on("change",function(){set_onbeforeunload_status(1,0),y.removeClass("btn-default btn-success").addClass("btn-danger")})}else"edit_cron.cgi"!=$current_file&&v___location_path!=v___location_prefix+"/virtualmin-password-recovery/"&&v___location_path!=v___location_prefix+"/bind8/forward_form.cgi"&&($resize=i?i:2.8,i?(window["__cm_editor_"+a].on("change",function(t,i){e.val(window["__cm_editor_"+a].getValue()),$(":focus").parents(".jsPanel").is(".jsPanel")&&($(":focus").parents(".jsPanel").find("._filemanager_file_editor_save").addClass("text-danger __locked__"),$(":focus").parents(".jsPanel").find("select[data-encoding]").addClass("pointer-events-none"))}),window["__cm_editor_"+a].setSize($resize[0],$resize[1])):($window_height=$(window).outerHeight()-$(window).outerHeight()/$resize,window["__cm_editor_"+a].setSize(null,$window_height),$(window).resize(function(){$window_height=$(window).outerHeight()-$(window).outerHeight()/$resize,window["__cm_editor_"+a].setSize(null,$window_height)})));$(".sub_table_container").find(".CodeMirror").length&&($(".sub_table_container").addClass("xcontent-force-no-styling"),$(".panel-body").addClass("xqcontent-forced")),editor_background_save(o&&!!v&&"true"==b)}}))}function viewer_init_check(){return $('body[class^="syslog"]').length&&v___location_query&&(v___location_query.indexOf("view=1")>-1||v___location_query.indexOf("new=")>-1)||$('body[class^="syslog-ng"]').length&&v___location_file&&"view_log.cgi"===v___location_file&&v___location_query&&v___location_query.indexOf("dest=")>-1?1:0}function viewer_init(){if($("pre[data-cm-viewer]").remove(),$(".panel-body pre").find("i").length){var e=0,t=$('.panel-body [name="filter"]');t.length&&t.val()&&(e=1),$(".panel-body pre > i").addClass("label label-transparent-15").text(theme_language(e?"theme_xhred_global_no_results_found":"theme_xhred_global_empty").toUpperCase()),$(".panel-body pre").addClass("text-center")}else{var i=!1;$(".panel-body pre").each(function(e,t){var a=$(this),n=Convert.htmlStrip(Convert.uriDecodeComponent(a.html()));a.addClass("hidden"),a.after(" "),$target=$("pre[data-cm-viewer-id-"+(e+1)+"]");var s=$.trim($('[name="filter"]:first').val());s&&s.length&&CodeMirror.defineMode("highlightSearch",function(e,t){var i={token:function(e,t){var i=e.string.match(new RegExp(s,"i"));if(i&&i[1]&&(s="",$.each(i,function(e,t){Test.numeric(e)&&e>0&&(s.length?s+="|"+t:s=t)})),s=new RegExp(s,"i"),e.match(s))return"highlightSearch";for(;null!=e.next()&&!e.match(s,!1););return null}};return CodeMirror.overlayMode(CodeMirror.getMode(e,t.backdrop),i)}),i=CodeMirror($target[0],{value:n,lineNumbers:!1,mode:s?"highlightSearch":null,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette,readOnly:!0})}).promise().done(function(){})}}function notifications(e,t,i,a){function n(e,t){t&&(check_bundle(t),navigation_clear(),get_pjax_content(t),e.close()),window.focus()}if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e=Convert.htmlUnEscape($.trim(e.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," "),t=Convert.htmlUnEscape($.trim(t.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," ");if("granted"===Notification.permission){var s=new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+i+".png"});s.onclick=function(){n(s,a)}}else"denied"!==Notification.permission&&Notification.requestPermission(function(s){if("granted"===s){var _=new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+i+".png"});_.onclick=function(){n(_,a)}}})}}function unbuffered_header_post(e){if(Test.strContains(e.responseText,"theme_post_save")){var t=e.responseText.match(/theme_post_save(.*)$/gm);if(t){navigation_update(t[0].split("=")[1])}}}function unbuffered_header_processor_allow(e){var t=URI(v___location),i=t.path();return void 0!==e&&(i=e),i&&Test.strContains(i,".cgi")&&(Test.strContains(i,"webmin/install_theme.cgi")||Test.strContains(i,"usermin/install_theme.cgi")||i.indexOf("/virtual-server/import.cgi")>-1||i.indexOf("/virtual-server/edit_newlinks.cgi")>-1||i.indexOf("/virtual-server/postsave.cgi")>-1||i.indexOf("/virtual-server/validate.cgi")>-1||i.indexOf("/server-manager/edit_serv.cgi")>-1||i.indexOf("/server-manager/save_serv.cgi")>-1||i.indexOf("/server-manager/index.cgi")>-1||i.indexOf("/server-manager/list_ifaces.cgi")>-1||i.indexOf("/server-manager/mass_update.cgi")>-1||i.indexOf("/server-manager/mass_update_form.cgi")>-1||i.indexOf("/server-manager/get_images.cgi")>-1||i.indexOf("/server-manager/edit_newlinks.cgi")>-1||i.indexOf("/server-manager/list_gces.cgi")>-1||i.indexOf("/server-manager/list_ec2s.cgi")>-1||i.indexOf("/server-manager/unpause.cgi")>-1||i.indexOf("/server-manager/find.cgi")>-1||i.indexOf("useradmin/batch_exec.cgi")>-1||i.indexOf("useradmin/gbatch_exec.cgi")>-1||i.indexOf("useradmin/mass_delete_user.cgi")>-1||i.indexOf("virtual-server/domain_setup.cgi")>-1||i.indexOf("virtual-server/upgrade.cgi")>-1||i.indexOf("virtual-server/mass_create.cgi")>-1||i.indexOf("virtual-server/restore.cgi")>-1||i.indexOf("virtual-server/save_newip.cgi")>-1||i.indexOf("virtual-server/mass_domains_change.cgi")>-1||i.indexOf("virtual-server/save_domain.cgi")>-1||i.indexOf("virtual-server/backup.cgi")>-1||i.indexOf("virtual-server/save_phpmode.cgi")>-1||i.indexOf("virtual-server/script_install.cgi")>-1||i.indexOf("virtual-server/mass_change.cgi")>-1||i.indexOf("virtual-server/save_ratelimit.cgi")>-1||i.indexOf("virtual-server/mass_scripts.cgi")>-1||i.indexOf("virtual-server/mass_upgrade.cgi")>-1||i.indexOf("virtual-server/save_newips.cgi")>-1||i.indexOf("virtual-server/letsencrypt.cgi")>-1||i.indexOf("virtual-server/migrate.cgi")>-1||i.indexOf("virtual-server/save_mail.cgi")>-1||i.indexOf("virtual-server/mass_delete_domains.cgi")>-1||i.indexOf("virtual-server/delete_domain.cgi")>-1||i.indexOf("virtual-server/unscript_install.cgi")>-1||i.indexOf("virtual-server/mass_uninstall.cgi")>-1||i.indexOf("virtual-server/clone.cgi")>-1||i.indexOf("virtual-server/fix_symlinks.cgi")>-1||i.indexOf("virtual-server/disable_domain.cgi")>-1||i.indexOf("virtual-server/delete_databases.cgi")>-1||i.indexOf("virtual-server/move.cgi")>-1||i.indexOf("virtual-server/enable_domain.cgi")>-1||i.indexOf("virtual-server/transfer.cgi")>-1||i.indexOf("virtual-server/mass_disable.cgi")>-1||i.indexOf("virtual-server/rename.cgi")>-1||i.indexOf("virtual-server/save_dbname.cgi")>-1||i.indexOf("virtual-server/mass_enable.cgi")>-1||i.indexOf("virtual-server/save_frame.cgi")>-1||i.indexOf("virtual-server/check.cgi")>-1||i.indexOf("virtual-server/save_newchroot.cgi")>-1||i.indexOf("virtual-server/enable_dkim.cgi")>-1||i.indexOf("virtual-server/save_proxy.cgi")>-1||i.indexOf("virtual-server/save_dbpass.cgi")>-1||i.indexOf("virtual-server/save_dbhosts.cgi")>-1||i.indexOf("virtual-server/unalias.cgi")>-1||i.indexOf("virtual-server/save_newautoconfig.cgi")>-1||i.indexOf("virtual-server/quotacheck.cgi")>-1||i.indexOf("virtual-server/unsub.cgi")>-1||i.indexOf("virtual-server/save_domdkim.cgi")>-1||i.indexOf("virtual-server/fix_modphp.cgi")>-1||i.indexOf("virtual-server/connectivity.cgi")>-1||i.indexOf("virtual-server/all_webmin.cgi")>-1||i.indexOf("virtualmin-support/send_ticket.cgi")>-1||i.indexOf("virtualmin-support/enable_login.cgi")>-1||i.indexOf("virtualmin-support/disable_login.cgi")>-1||i.indexOf("server-manager/empty.cgi")>-1||i.indexOf("server-manager/exec_vbackup.cgi")>-1||i.indexOf("server-manager/exec_vsync.cgi")>-1||i.indexOf("server-manager/failover.cgi")>-1||i.indexOf("server-manager/find.cgi")>-1||i.indexOf("server-manager/gcescan.cgi")>-1||i.indexOf("server-manager/install_kvm.cgi")>-1||i.indexOf("server-manager/install_xen.cgi")>-1||i.indexOf("server-manager/manual_image.cgi")>-1||i.indexOf("server-manager/mass.cgi")>-1||i.indexOf("server-manager/mass_move.cgi")>-1||i.indexOf("server-manager/mass_script.cgi")>-1||i.indexOf("server-manager/massupload.cgi")>-1||i.indexOf("server-manager/move.cgi")>-1||i.indexOf("server-manager/move_disk.cgi")>-1||i.indexOf("server-manager/newami.cgi")>-1||i.indexOf("server-manager/pause.cgi")>-1||i.indexOf("server-manager/reset.cgi")>-1||i.indexOf("server-manager/restore.cgi")>-1||i.indexOf("server-manager/restore_domain.cgi")>-1||i.indexOf("server-manager/save_ec2address.cgi")>-1||i.indexOf("server-manager/save_limits.cgi")>-1||i.indexOf("server-manager/save_pass.cgi")>-1||i.indexOf("server-manager/save_vcpus.cgi")>-1||i.indexOf("server-manager/scan.cgi")>-1||i.indexOf("server-manager/transfer.cgi")>-1||i.indexOf("server-manager/unpause.cgi")>-1||i.indexOf("server-manager/upgrade.cgi")>-1||i.indexOf("server-manager/upload.cgi")>-1||i.indexOf("server-manager/add.cgi")>-1||i.indexOf("server-manager/backup.cgi")>-1||i.indexOf("server-manager/boot.cgi")>-1||i.indexOf("server-manager/clone.cgi")>-1||i.indexOf("server-manager/convert_image.cgi")>-1||i.indexOf("server-manager/create_address.cgi")>-1||i.indexOf("server-manager/create.cgi")>-1||i.indexOf("server-manager/create_dimage.cgi")>-1||i.indexOf("server-manager/create_dkvolume.cgi")>-1||i.indexOf("server-manager/create_domain.cgi")>-1||i.indexOf("server-manager/create_ec2attach.cgi")>-1||i.indexOf("server-manager/create_ec2_snapshot.cgi")>-1||i.indexOf("server-manager/create_gceattach.cgi")>-1||i.indexOf("server-manager/create_gdisk.cgi")>-1||i.indexOf("server-manager/create_gimage.cgi")>-1||i.indexOf("server-manager/create_gsnapshot.cgi")>-1||i.indexOf("server-manager/create_image.cgi")>-1||i.indexOf("server-manager/create_volume.cgi")>-1||i.indexOf("server-manager/delete_addresses.cgi")>-1||i.indexOf("server-manager/delete_backuplogs.cgi")>-1||i.indexOf("server-manager/delete_ec2attach.cgi")>-1||i.indexOf("server-manager/delete_ec2_snapshots.cgi")>-1||i.indexOf("server-manager/delete_gceattach.cgi")>-1||i.indexOf("server-manager/delete_volumes.cgi")>-1||i.indexOf("server-manager/download.cgi")>-1||i.indexOf("server-manager/ec2scan.cgi")>-1||i.indexOf("cluster-usermin/upgrade.cgi")>-1||i.indexOf("cluster-usermin/install.cgi")>-1||i.indexOf("cluster-usermin/update.cgi")>-1||i.indexOf("ldap-useradmin/batch_exec.cgi")>-1||i.indexOf("ldap-useradmin/mass_delete_user.cgi")>-1||i.indexOf("usermin/upgrade.cgi")>-1||i.indexOf("usermin/update.cgi")>-1||i.indexOf("cpan/download.cgi")>-1||i.indexOf("cpan/install.cgi")>-1||i.indexOf("burner/save_profile.cgi")>-1||i.indexOf("burner/burn.cgi")>-1||i.indexOf("bind8/mass_create.cgi")>-1||i.indexOf("bind8/mass_rcreate.cgi")>-1||i.indexOf("bind8/mass_delete.cgi")>-1||i.indexOf("bind8/mass_update.cgi")>-1||i.indexOf("bind8/zone_dnssecmigrate_dt.cgi")>-1||i.indexOf("bind8/mass_rdelete.cgi")>-1||i.indexOf("bind8/enable_zonekey.cgi")>-1||i.indexOf("bind8/enable_zonedt.cgi")>-1||i.indexOf("bind8/disable_zonedt.cgi")>-1||i.indexOf("webalizer/save_log.cgi")>-1||i.indexOf("bacula-backup/restore.cgi")>-1||i.indexOf("bacula-backup/backup.cgi")>-1||i.indexOf("bacula-backup/gbackup.cgi")>-1||i.indexOf("bacula-backup/label.cgi")>-1||i.indexOf("bacula-backup/mount.cgi")>-1||i.indexOf("cluster-software/install_pack.cgi")>-1||i.indexOf("updown/download.cgi")>-1||i.indexOf("software/install_pack.cgi")>-1||i.indexOf("software/do_install.cgi")>-1||i.indexOf("software/apt_upgrade.cgi")>-1||i.indexOf("software/rhn_check.cgi")>-1||i.indexOf("software/yum_upgrade.cgi")>-1||i.indexOf("software/urpmi_upgrade.cgi")>-1||i.indexOf("software/csw_upgrade.cgi")>-1||i.indexOf("software/ports_upgrade.cgi")>-1||i.indexOf("webmin/letsencrypt.cgi")>-1||i.indexOf("webmin/delete_webmincron.cgi")>-1||i.indexOf("webmin/test_sendmail.cgi")>-1||i.indexOf("package-updates/update.cgi")>-1||i.indexOf("custom/run.cgi")>-1||i.indexOf("custom/sql.cgi")>-1||i.indexOf("virtualmin-init/save.cgi")>-1||i.indexOf("virtualmin-init/mass.cgi")>-1||i.indexOf("backup-config/save.cgi")>-1||i.indexOf("squid/init_cache.cgi")>-1||i.indexOf("squid/clear.cgi")>-1||i.indexOf("squid/chown.cgi")>-1||i.indexOf("ldap-client/check.cgi")>-1||i.indexOf("sendmail/del_mailqs.cgi")>-1||i.indexOf("sendmail/flushq.cgi")>-1||i.indexOf("init/mass_start_stop.cgi")>-1||i.indexOf("init/mass_launchd.cgi")>-1||i.indexOf("init/mass_systemd.cgi")>-1||i.indexOf("init/mass_upstarts.cgi")>-1||i.indexOf("init/mass_rcs.cgi")>-1||i.indexOf("init/save_services.cgi")>-1||i.indexOf("ldap-server/create.cgi")>-1||i.indexOf("change-user/change.cgi")>-1||i.indexOf("virtualmin-slavedns/save.cgi")>-1||i.indexOf("proc/trace.cgi")>-1||i.indexOf("proc/run.cgi")>-1||i.indexOf("proc/kill_proc_list.cgi")>-1||i.indexOf("fsdump/backup.cgi")>-1||i.indexOf("fsdump/restore.cgi")>-1||i.indexOf("webmin_search.cgi")>-1||i.indexOf("security-updates/update.cgi")>-1||i.indexOf("virtualmin-mailrelay/save.cgi")>-1||i.indexOf("cluster-copy/exec.cgi")>-1||i.indexOf("cron/exec_cron.cgi")>-1||i.indexOf("virtualmin-registrar/import.cgi")>-1||i.indexOf("virtualmin-registrar/save_ns.cgi")>-1||i.indexOf("virtualmin-registrar/transfer.cgi")>-1||i.indexOf("virtualmin-registrar/renew.cgi")>-1||i.indexOf("virtualmin-registrar/create.cgi")>-1||i.indexOf("htaccess-htpasswd/search.cgi")>-1||i.indexOf("acl/makedn.cgi")>-1||i.indexOf("acl/cert_issue.cgi")>-1||i.indexOf("acl/maketables.cgi")>-1||i.indexOf("acl/schema.cgi")>-1||i.indexOf("filter/move.cgi")>-1||i.indexOf("fetchmail/check.cgi")>-1||i.indexOf("servers/find.cgi")>-1||i.indexOf("cluster-cron/exec.cgi")>-1||i.indexOf("raid/mkfs.cgi")>-1||i.indexOf("lvm/pvmove.cgi")>-1||i.indexOf("lvm/mkfs.cgi")>-1||i.indexOf("ppp-client/init.cgi")>-1||i.indexOf("fdisk/mkfs.cgi")>-1||i.indexOf("fdisk/tunefs.cgi")>-1||i.indexOf("fdisk/fsck.cgi")>-1||i.indexOf("spam/deleteall_awl.cgi")>-1||i.indexOf("quota/check_quotas.cgi")>-1||i.indexOf("virtualmin-awstats/generate.cgi")>-1||i.indexOf("postfix/flushq.cgi")>-1||i.indexOf("/webmin/upgrade.cgi")>-1)?1:0}function unbuffered_header_processor_allow_scroll(){var e=["webmin_search.cgi"];return Test.arrContains(e,v___location_file)||!settings_perform_content_scrolling?0:1}function unbuffered_header_processor(e,t){if(t){var i=e,a=$(i.target),n=i.target.action;Core.var.source_request=v___location_resource;var s=$(quirks.active_element()).attr("name"),_=$.trim(quirks.active_element().innerText),o=quirks.active_element().value;a.find('input[name="'+s+'"]')&&a.find('input[name="'+s+'"]').val()==(_?_:o)||$(" ").attr({type:"hidden",name:s,value:_?_:o}).appendTo(a);var r=Test.strContains(a.attr("enctype"),"multipart/form-data"),l=r?new FormData(a[0]):a.serialize();if(r||(l=Test.strContains(l,s+"=")?l:l+"&"+s+"="+o),$("input:file:visible").val())return v___theme_force_buffered=1,void a.submit()}var c=0,d=0,h=t?n:e,g=(v___location.href,0),p=$('div[data-dcontainer="1"] > .panel.panel-default').clone();progress.start(),set_onbeforeunload_status(1,1),$("body").addClass("loading-bg"),progressive_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(t){if(!XHR.download(e,progressive_request,i)){var a=t.target.responseText,n=$(a),s='div[data-dcontainer="1"]',_=n.filter(s).html(),o=n.filter(s).find("pre").length;if(Test.strContains(a,v___page_signin_form))return v___available_session=0,void progressive_request.abort();if(!!_&&d++,0===g){g=1;$(window).off("popstate.unbuffered"),$(window).on("popstate.unbuffered",function(){$(this).unbind("popstate.unbuffered"),$('.container-fluid[data-dcontainer="1"]').html(p),setTimeout(function(){get_pjax_event_end_funcs(0)},41)})}if((o||d>1)&&!c){if(_){if($('div[data-dcontainer="1"]').html(_),c++,unbuffered_header_processor_allow_scroll()){$(".__page").hasScrollBar()?$(".__page").scrollTop($(".__page")[0].scrollHeight):$(".__page").scrollTop(0)}$(".__page").addClass("progressing"),unbuffered_header_processor_allow_scroll()||$(".__page").addClass("static"),get_pjax_event_end(!1,t.target)}$("body").addClass("loading-bg")}else if(c){var r=extract_content(a,'',"
",0);r&&$('div[data-dcontainer="1"]').find(".panel-body").html(r),unbuffered_header_processor_allow_scroll()&&$(".__page").scrollTop($(".__page")[0].scrollHeight)}}},!1),e},type:get_pjax_type(a?a:h),url:h,processData:!t||!r,contentType:(!t||!r)&&"application/x-www-form-urlencoded; charset=UTF-8",data:!!t&&l,complete:function(e){$('div[data-dcontainer="1"]').html($(e.responseText).filter('div[data-dcontainer="1"]').html()),window.history.pushState(null,null,navigation_trigger(this.url,2)),get_pjax_event_end(!1,e),unbuffered_header_processor_allow_scroll()&&$(".__page").scrollTop($(".__page")[0].scrollHeight);var t=$(".progressing pre > i");t.is(":first-child")&&t.is(":last-child")&&$(".progressing pre").addClass("no_data").find("i:first-child").addClass("label text-center label-transparent-15 text-uppercase"),$(".__page").removeClass("progressing static"),$("#headln2c .favorites").remove(),progress.end(),set_onbeforeunload_status(0,1),$("body").removeClass("loading-bg"),unbuffered_header_post(e),Core.curModuleFile("package-updates","update.cgi")&&information_update()}})}function check_selected_text(){return getSelection?getSelection().toString():document.selection?document.selection.createRange().text:""}function check_location_resource(e){return v___location_resource===v___location_prefix+e}function check_current_file(e){return v___location_file==e}!function(){browser.detect.internet_explorer()>5&&browser.detect.internet_explorer()<=11&&(setTimeout(function(){var e=""+theme_language("theme_xhred_browser_warning")+"
";theme_alert(theme_language("theme_xhred_global_warning"),e,!1,"md","danger",!1,"10 modal-ie-warning",0)},2e3),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var i=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=e.length;var a=i.lastIndexOf(e,t);return a!==-1&&a===t}),String.prototype.startsWith||String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t}))}(),$.extend($.expr[":"],{containsi:function(e,t,i,a){return(e.textContent||e.innerText||"").toLowerCase().indexOf((i[3]||"").toLowerCase())>=0}}),Object.defineProperty(Array.prototype,"reOrder",{enumerable:!1,value:function(e,t){if(t>=this.length)for(var i=t-this.length;1+i--;)this.push(void 0);return this.splice(t,0,this.splice(e,1)[0]),this}}),function(e){e.fn.simulateUserClick=function(){return this.each(function(){if("createEvent"in document){var e=this.ownerDocument,t=e.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,e.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),this.dispatchEvent(t)}else this.click()})}}(jQuery),function(e){e.fn.replaceTagName=function(t){for(var i=[],a=this.length;a--;){for(var n=document.createElement(t),s=this[a],_=s.attributes,o=_.length-1;o>=0;o--){var r=_[o];n.setAttribute(r.name,r.value)}n.innerHTML=s.innerHTML,e(s).after(n).remove(),i[a-1]=n}return e(i)}}(jQuery),jQuery.fn.selectText=function(){var e=document,t=this[0];if(e.body.createTextRange){var i=document.body.createTextRange();i.moveToElementText(t),i.select()}else if(window.getSelection){var a=window.getSelection(),i=document.createRange();i.selectNodeContents(t),a.removeAllRanges(),a.addRange(i)}},function(e){e.fn.replaceText=function(t,i,a){return this.each(function(){var n,s,_=this.firstChild,o=[];if(_)do 3===_.nodeType&&(n=_.nodeValue,(s=n.replace(t,i))!==n&&(!a&&/this.height()}}(jQuery),$.fn.toggleCheckbox=function(){"checkbox"==$(this).attr("type")&&$(this).prop("checked",!$(this).is(":checked"))},jQuery.fn.confirmation=function(e,t){return e=$.extend({className:"btn-danger",classNameRemove:"",timeout:2500},e),$(this).each(function(i,a){function n(){_.removeClass(e.className).data("confirmed",!1).find(".tmp_question").remove(),e.classNameRemove&&_.addClass(e.classNameRemove)}var s,_=$(a);_.html();_.data("confirmed",!1),_.on("click.confirm",function(i){i.preventDefault(),_.data("confirmed")?(t.call(_,i),n()):(_.data("confirmed",!0),e.classNameRemove&&_.removeClass(e.classNameRemove),_.append('? ').addClass(e.className).bind("mouseout.confirm",function(){s=setTimeout(n,e.timeout)}).bind("mouseover.confirm",function(){clearTimeout(s)}))}).removeClass(e.className),e.classNameRemove&&_.addClass(e.classNameRemove)}),$(this)},RegExp.quote=function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},$.fn.contentText=function(e){return $(this).contents().filter(function(){return $(this).text().trim()==e.trim()})},$(function(){var e,t=".blinking-default:not(.hidden)";setInterval(function(){0==e?($(t).css("opacity","1"),e=1):(e=1)&&($(t).css("opacity","0"),e=0)},900)}),$.getScripts=function(e){var t=$.map(e,function(e){return $.getScript(e)});return t.push($.Deferred(function(e){$(e.resolve)})),$.when.apply($,t)};if("object"==typeof localStorage)try{localStorage.setItem("d41d8cd98f00",1),localStorage.removeItem("d41d8cd98f00"),$_v__ls__a=1}catch(e){Storage.prototype._setItem=Storage.prototype.setItem,Storage.prototype.setItem=function(){},$_v__ls__a=0}page_init(),$___________lrs_r_l=0,$___________left=v___available_navigation?1:0,"undefined"==typeof settings_mailbox_slash_delimiter&&(settings_mailbox_slash_delimiter=!0),"undefined"==typeof settings_right_reload&&(settings_right_reload=!0),"undefined"==typeof settings_right_default_tab_usermin&&(settings_right_default_tab_usermin="mail"),"undefined"==typeof settings_right_virtualmin_default&&(settings_right_virtualmin_default="sysinfo.cgi"),"undefined"==typeof settings_right_cloudmin_default&&(settings_right_cloudmin_default="sysinfo.cgi"),"undefined"==typeof settings_font_family&&(settings_font_family=0),"undefined"==typeof settings_navigation_color&&(settings_navigation_color="blue"),"undefined"==typeof settings_grayscale_level_navigation&&(settings_grayscale_level_navigation="0"),"undefined"==typeof settings_sepia_level_navigation&&(settings_sepia_level_navigation="0"),"undefined"==typeof settings_saturate_level_navigation&&(settings_saturate_level_navigation="1"),"undefined"==typeof settings_hue_level_navigation&&(settings_hue_level_navigation="0"),"undefined"==typeof settings_invert_level_navigation&&(settings_invert_level_navigation="0"),"undefined"==typeof settings_brightness_level_navigation&&(settings_brightness_level_navigation="1"),"undefined"==typeof settings_contrast_level_navigation&&(settings_contrast_level_navigation="1"),"undefined"==typeof settings_background_color&&(settings_background_color="gainsboro"),"undefined"==typeof settings_hide_top_loader&&(settings_hide_top_loader=!1),"undefined"==typeof settings_show_night_mode_link&&(settings_show_night_mode_link=!0),"undefined"==typeof settings_theme_options_button&&(settings_theme_options_button=!0),"undefined"==typeof settings_leftmenu_button_refresh&&(settings_leftmenu_button_refresh=!1),"undefined"==typeof settings_cm_view_palette&&(settings_cm_view_palette="monokai"),"undefined"==typeof settings_cm_editor_palette&&(settings_cm_editor_palette="monokai"),"undefined"==typeof settings_contrast_mode&&(settings_contrast_mode=!1),"undefined"==typeof settings_enable_container_offset&&(settings_enable_container_offset=!0),"undefined"==typeof settings_right_page_hide_persistent_vscroll&&(settings_right_page_hide_persistent_vscroll=!0),"undefined"==typeof settings_side_slider_palette&&(settings_side_slider_palette="grey"),"undefined"==typeof settings_side_slider_enabled&&(settings_side_slider_enabled=!0),"undefined"==typeof settings_side_slider_fixed&&(settings_side_slider_fixed=!1),"undefined"==typeof settings_side_slider_fixed_toggle&&(settings_side_slider_fixed_toggle=!1),"undefined"==typeof settings_side_slider_sysinfo_enabled&&(settings_side_slider_sysinfo_enabled=!0),"undefined"==typeof settings_side_slider_notifications_enabled&&(settings_side_slider_notifications_enabled=!0),"undefined"==typeof settings_side_slider_favorites_enabled&&(settings_side_slider_favorites_enabled=!0),config_portable_module_filemanager_records_per_page="undefined"!=typeof localStorage&&null==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_records_per_page")?20:parseInt(localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_records_per_page")),config_portable_module_filemanager_default_sort="undefined"!=typeof localStorage&&null==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_default_sort")?"0":localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_default_sort"),config_portable_module_filemanager_hide_tree_view="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_tree_view"),config_portable_module_filemanager_tree_expand_search="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_expand_search"),config_portable_module_filemanager_tree_view_depth="undefined"!=typeof localStorage&&null==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_view_depth")?2:parseInt(localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_view_depth")),config_portable_module_filemanager_tree_exclude_on_first_load="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_tree_exclude_on_first_load"),config_portable_module_filemanager_hide_actions="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_actions"),config_portable_module_filemanager_hide_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hide_toolbar"),config_portable_module_filemanager_hovered_toolbar="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_hovered_toolbar"),config_portable_module_filemanager_notification_type="undefined"!=typeof localStorage&&localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type")?localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_notification_type"):2,config_portable_module_filemanager_calculate_size="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_calculate_size"),config_portable_module_filemanager_switch_user="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_switch_user"),config_portable_module_filemanager_remember_tabs="undefined"==typeof localStorage||"false"!=localStorage.getItem(v___server_hostname+"-config_portable_module_filemanager_remember_tabs"),config_portable_module_xsql_fit_content_screen_height="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_module_xsql_fit_content_screen_height"),"undefined"==typeof settings_show_webmin_tab&&(settings_show_webmin_tab=!0),"undefined"==typeof settings_hotkeys_active&&(settings_hotkeys_active=!0),"undefined"==typeof settings_button_tooltip&&(settings_button_tooltip=!0),"undefined"==typeof settings_hotkey_toggle_modifier&&(settings_hotkey_toggle_modifier="altKey"),"undefined"==typeof settings_hotkey_toggle_key_webmin&&(settings_hotkey_toggle_key_webmin="w"),"undefined"==typeof settings_hotkey_toggle_key_virtualmin&&(settings_hotkey_toggle_key_virtualmin="v"),"undefined"==typeof settings_hotkey_toggle_key_cloudmin&&(settings_hotkey_toggle_key_cloudmin="c"),"undefined"==typeof settings_hotkey_toggle_key_usermin&&(settings_hotkey_toggle_key_usermin="u"),"undefined"==typeof settings_hotkey_toggle_key_webmail&&(settings_hotkey_toggle_key_webmail="m"),"undefined"==typeof settings_hotkey_toggle_key_night_mode&&(settings_hotkey_toggle_key_night_mode="l"),"undefined"==typeof settings_hotkey_shell&&(settings_hotkey_shell="k"),"undefined"==typeof settings_hotkey_sysinfo&&(settings_hotkey_sysinfo="i"),"undefined"==typeof settings_hotkey_favorites&&(settings_hotkey_favorites="f"),"undefined"==typeof settings_hotkey_focus_search&&(settings_hotkey_focus_search="s"),"undefined"==typeof settings_hotkey_toggle_slider&&(settings_hotkey_toggle_slider="n"),"undefined"==typeof settings_hotkey_reload&&(settings_hotkey_reload="r"),"undefined"==typeof settings_global_passgen_format&&(settings_global_passgen_format="12|a-z,A-Z,0-9,#"),config_portable_theme_locale_languages="undefined"!=typeof localStorage&&localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_languages")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_languages"):get_server_data("language-full"),config_portable_theme_locale_language="undefined"!=typeof localStorage&&"true"==localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_language"),config_portable_theme_locale_format_full="undefined"==typeof localStorage||localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_full")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_full"):"LLLL",config_portable_theme_locale_format_long="undefined"==typeof localStorage||localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_long")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_long"):"LL",config_portable_theme_locale_format_short="undefined"==typeof localStorage||localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_short")?localStorage.getItem(v___server_hostname+"-config_portable_theme_locale_format_short"):"L","undefined"==typeof settings_leftmenu_vm_cm_dropdown_icons&&(settings_leftmenu_vm_cm_dropdown_icons=!0),"undefined"==typeof settings_hotkey_custom_1&&(settings_hotkey_custom_1=!1),"undefined"==typeof settings_hotkey_custom_2&&(settings_hotkey_custom_2=!1),"undefined"==typeof settings_hotkey_custom_3&&(settings_hotkey_custom_3=!1),"undefined"==typeof settings_hotkey_custom_4&&(settings_hotkey_custom_4=!1),"undefined"==typeof settings_hotkey_custom_5&&(settings_hotkey_custom_5=!1),"undefined"==typeof settings_hotkey_custom_6&&(settings_hotkey_custom_6=!1),"undefined"==typeof settings_hotkey_custom_7&&(settings_hotkey_custom_7=!1),"undefined"==typeof settings_hotkey_custom_8&&(settings_hotkey_custom_8=!1),"undefined"==typeof settings_hotkey_custom_9&&(settings_hotkey_custom_9=!1),"undefined"==typeof settings_side_slider_background_refresh_time?settings_side_slider_background_refresh_time=5:settings_side_slider_background_refresh_time=parseFloat(settings_side_slider_background_refresh_time),"undefined"==typeof settings_leftmenu_width&&(settings_leftmenu_width=260),"undefined"==typeof settings_navigation_always_collapse&&(settings_navigation_always_collapse=!1),"undefined"==typeof settings_sysinfo_real_time_status&&(settings_sysinfo_real_time_status=!0),"undefined"==typeof settings_sysinfo_real_time_timeout?settings_sysinfo_real_time_timeout=1e3:settings_sysinfo_real_time_timeout=parseFloat(settings_sysinfo_real_time_timeout),"undefined"==typeof settings_sysinfo_easypie_charts&&(settings_sysinfo_easypie_charts=!0),"undefined"==typeof settings_sysinfo_easypie_charts_size?settings_sysinfo_easypie_charts_size=172:settings_sysinfo_easypie_charts_size=parseInt(settings_sysinfo_easypie_charts_size),"undefined"==typeof settings_sysinfo_easypie_charts_width?settings_sysinfo_easypie_charts_width=2:settings_sysinfo_easypie_charts_width=parseInt(settings_sysinfo_easypie_charts_width),"undefined"==typeof settings_sysinfo_easypie_charts_scale?settings_sysinfo_easypie_charts_scale=8:settings_sysinfo_easypie_charts_scale=parseInt(settings_sysinfo_easypie_charts_scale),"undefined"==typeof settings_sysinfo_theme_updates&&(settings_sysinfo_theme_updates=!1),"undefined"==typeof settings_sysinfo_theme_patched_updates&&(settings_sysinfo_theme_patched_updates=!1),"undefined"==typeof settings_sysinfo_csf_updates&&(settings_sysinfo_csf_updates=!1),"undefined"==typeof settings_sysinfo_link_mini&&(settings_sysinfo_link_mini=!1),"undefined"==typeof settings_perform_content_scrolling&&(settings_perform_content_scrolling=!0),"undefined"==typeof settings_animation_left&&(settings_animation_left=!0),settings_animation_left?$settings_animation_left_slide_time=175:$settings_animation_left_slide_time=0,"undefined"==typeof settings_animation_tabs&&(settings_animation_tabs=!1),settings_animation_tabs?$settings_animation_tabs_slide_time=350:$settings_animation_tabs_slide_time=0,"undefined"==typeof settings_show_terminal_link&&(settings_show_terminal_link=!0),"undefined"==typeof settings_favorites&&(settings_favorites=!0),$_v__ls__a?_v__ls__a="":_v__ls__a=" hidden",$(".mobile-menu-toggler:visible").length&&set_side_slider_visibility(0),navigation_display(),v___available_navigation?(page_adjust(settings_leftmenu_width,0),navigation_lock_width()):$("head").append(''),$("html").on("dblclick","body",function(){1!=$(this).find(".container-fluid").css("opacity")&&page_display()}),$.support.pjax&&v___available_navigation&&($(document).on("submit","form",function(e){if(void 0!==e.originalEvent&&(v___theme_content_history=0),"_blank"===e.target.target){var t=$(this);return void setTimeout(function(){t.removeAttr("target"),get_pjax_content(v___location_resource)},100)}e.preventDefault(),get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors)?get_onbeforeunload_message(e,this):get_pjax_action_submit(e)}),$(document).on("click","a"+$__theme_default_deselectors,function(e){void 0!==e.originalEvent&&(v___theme_content_history=0),get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors)?(e.preventDefault(),get_onbeforeunload_message(e,this)):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){get_server_data("loading",1),$("body").addClass("loading-bg"),Core.var.page_user_inactive=1,"number"==typeof set_server_tmp_var_timeout&&clearTimeout(set_server_tmp_var_timeout)}),$(document).on("pjax:beforeReplace",function(e,t,i){navigation_form_control(0),pjax.clear.modules(i),i.push===!1&&(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){var a=["fetch.cgi"];if(Test.arrIntersect(a,i.url)&&"1"!=Test.input.radio("show",1))return window.location.replace(i.url),setTimeout(function(){page_remove_progress()},300),!1;progress.start(),"number"==typeof v___theme_postponed_fetcher&&clearInterval(v___theme_postponed_fetcher);var n=$(e.relatedTarget),s=n.attr("href");s=s?s:i.url.replace(v___location_origin,""),clicked_in_nav_menu=n.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(s),"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){"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){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,v___theme_stats_error&&"object"==typeof stats&&stats.general.enable(),navigation_links()}),$(document).on("ready pjax:end",function(e,t){0!==v___available_session&&1!==v___theme_reload&&(navigation_form_control(1),get_pjax_event_end(e,t),setTimeout(function(){var e=navigation_trigger(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(){Core.var.page_user_inactive=0}))}),$(document).on("pjax:popstate",function(e){var t=e.state;setTimeout(function(){get_pjax_event_end_funcs(0),navigation_links(),Core.var.previous_request=new String,Core.var.source_request=new String},40);var i=v___module_file_manager+"/config.cgi",a=Test.strContains(v___location_resource,i),n=Test.strContains(t.url,i),s=a||n,o=Test.strContains(t.url,v___module_file_manager),_=v___module===v___module_file_manager,r=Test.strContains(t.url,"/csf/"),l="csf"===v___module,d="csf"!==v___module,c=theme_language("theme_xhred_global_firewall"),p=Test.strContains(t.url,"/settings-user.cgi"),f=Test.strContains(t.url,"/edit_themes.cgi")||p,g=Test.strContains(t.title,v___server_hostname)?theme_language("theme_xhred_datatable_sloadingrecords")+' ':t.title;(o||_)&&(_&&!s&&page.handle.content.preloader(r?1200:400,r?c:g),o&&!n&&(page.handle.content.preloader(-2,g),jsPanel.closeChildpanels("body"),__f_____undel(),v___theme_pjax_call=0,setTimeout(function(){page_refresh()},41))),f||!r&&!l||(l&&(d||!r)&&!o&&!_&&page.handle.content.preloader(400,r?c:g),r&&((a||d&&!o&&!_)&&page.handle.content.preloader(1200,c),setTimeout(function(){d&&(v___theme_pjax_call=0,page_refresh())},41))),(f||n)&&((!o&&!_||n)&&page.handle.content.preloader(400,g),setTimeout(function(){page_refresh()},41))})),v___available_session&&($.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_theme_language=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);get_server_data("language-strings",JSON.parse(e)),"function"==typeof set_side_slider_labels&&set_side_slider_labels()}}),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_available_modules=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);get_server_data("available-modules",JSON.parse(e))}}),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_user_level=1",data:!1,dataType:"text",async:v___available_navigation,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);Core.var.level=e}}),theme_config("load")),$(function(){if(1===v___initial_load&&v___available_navigation&&(page_display(),navigation_display(),0===get_access_level()&&settings_sysinfo_real_time_status&&load.bundle(v___server_extensions_path+"/stats/stats",0,["stats.general.timeout = settings_sysinfo_real_time_timeout","stats.general.query()"])),time.tictac(),browser.detect.safari(1)&&$("html").css("overflow","auto"),browser.detect.safari()&&$(".__page").addClass("browser_safari"),!v___available_navigation&&$(".container-fluid").removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15").parents("html").addClass("single_tab"),$("body").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&&set_switch_position(t),setTimeout(function(){$("aside select").val()!=e&&get_navigation_menu_virtualmin(e)},300)}),$("body").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)}),$("body").on("click",".--to-new-tab",function(){$(this).attr("target","_blank")}),$("body").on("click",".favorites-menu a.menu-exclude-link, .right_pane_favorites_link",function(){var e=Test.strContains($(this).attr("href"),"/virtual-server/")?"dom":!!Test.strContains($(this).attr("href"),"/server-manager/")&&"id",t=Test.strContains($(this).attr("href"),"gparent")?"gparent":e,i=URI.parseQuery(URI($(this).attr("href")).query())[t],a="dom"===e?"virtualmin":"id"===e?"cloudmin":"webmin",n=$('.switch-toggle input:not([id="open_'+a+'"]):checked').length;n&&set_switch_position(a),e?setTimeout(function(){$("aside select").val()!=i&&("dom"===e?get_navigation_menu_virtualmin(i):"id"===e&&get_navigation_menu_cloudmin(i))},300):n&&get_navigation_menu_webmin()}),$("body").on("click",function(e){var t=$("aside select");$(e.target).attr("class")&&0===$(e.target).attr("class").indexOf("select2")||t&&t.length>0&&t.hasClass("select2-hidden-accessible")&&t.select2("close")}),$("a").each(function(){$(this).find("img").length&&$(this).css("text-decoration","none")}),$("body").on("keydown",function(e){var t=e.keyCode?e.keyCode:e.which,i=String.fromCharCode(t).toLowerCase();!$('aside input[name="search"]').is(":focus")&&v___available_session&&($(".-shell-port-").hasClass("opened")||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"&&($("input").is(":focus")||$("select").is(":focus")||$("textarea").is(":focus")||$(".modal.in").length||!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().trigger("keyup")):setTimeout(function(){e.shiftKey&&"1"==i?$('aside input[name="search"]').focus().val("!"):$('aside input[name="search"]').focus().val(i)},1))))}),v___available_navigation&&($(document).ajaxSend(function(e,t,i){}).ajaxStop(function(){setTimeout(function(){0===v___available_session&&session.reauthenticate.start()},300)}).ajaxSuccess(function(e,t){v___theme_ajax_error=0,v___theme_stats_error&&0===get_access_level()&&settings_sysinfo_real_time_status&&("object"==typeof stats&&stats.general.enable(),v___theme_stats_error=0)}).ajaxError(function(e,t){if(progress.end(),v___theme_ajax_error=1,1===v___theme_connection_triggered_origin&&(0===t.status||400===t.status||404===t.status||500===t.status||502===t.status||503===t.status)){!$(".modal-connection-warning").length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-error=1",data:!1,dataType:"text",timeout:3e3,error:function(e){var t=theme_language("theme_xhred_connection_error_details").replace("%server",location.host+v___location_prefix);theme_alert(theme_language("theme_xhred_connection_lost")+' ',t,!1,"md","danger","unplugged fa-lg","7 modal-connection-warning",0),setTimeout(function(){0===v___theme_connection_reestablish&&(connection_reestablish(),v___theme_connection_reestablish=1,$(".modal-connection-warning").on("hidden.bs.modal",function(){v___theme_connection_reestablish=0,progress.end()}))},1),setTimeout(function(){navigation_render_end(),navigation_detect(),reset_switch_position(),despinnerfy_buttons(),theme_shell_unlock()},100)}})}}),$.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(),navigation_links()},beforeSend:function(e,t){t.url=navigation_trigger(t.url,1)}})),function(){if("function"==typeof Messenger.Message){var e,t,i,a={}.hasOwnProperty,n=function(e,t){function i(){this.constructor=e}for(var n in t)a.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e};e=jQuery,i='\n \n \n \n \n \n \n
',t=function(t){function a(){return a.__super__.constructor.apply(this,arguments)}return n(a,t),a.prototype.template=function(t){var n;return n=a.__super__.template.apply(this,arguments),n.append(e(i)),n},a}(Messenger.Message),Messenger.themes.air={Message:t},Messenger.options={extraClasses:"messenger-fixed messenger-on-bottom",theme:"air"}}}.call(this),v___available_navigation){0==v___user_level&&settings_side_slider_enabled&&settings_side_slider_fixed&&get_server_data("data-slider-fixed","1"),1===v___initial_load&&(console.log("Welcome to Authentic Theme "+v___theme_version+"\nhttps://github.com/qooob/authentic-theme"),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_navigation_menu_virtualmin_summary(),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_tmp_var("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,"//")&&URI(a.responseText).hostname()!==URI(location.href).hostname()||Test.strContains(a.responseText,"/servers/link.cgi/")||Test.strContains(a.responseText,"settings-user.cgi")||"/"===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=n?n:$('select[name="dom"]').val();set_switch_position("virtualmin"),get_navigation_menu_virtualmin(!!s&&s)}else if(Test.strContains(a.responseText,"server-manager")){var o=URI.parseQuery(URI(a.responseText).query()).id,_=o?o:$('select[name="sid"]').val();set_switch_position("cloudmin"),get_navigation_menu_cloudmin(!!_&&_)}else $t_uri_webmin||3==v___user_level||(set_switch_position("webmin"),get_navigation_menu_webmin("webmin")),3==v___user_level&&!$t_uri_webmail&&Test.strContains(a.responseText,"mailbox")&&Core.moduleAvailable("mailbox")?(set_switch_position("webmail"),setTimeout(function(){get_navigation_menu_webmin("webmail")},10)):3!=v___user_level||$t_uri_usermin||Test.strContains(a.responseText,"mailbox")||(set_switch_position("usermin"),setTimeout(function(){get_navigation_menu_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])}),navigation_select_label(),setTimeout(function(){fetch_right_pane_favorites()},300)),$("body").on("focus",".sidebar-search",function(){if($("body").hasClass("loading-bg"))return void $(this).blur();navigation_init_autocomplete("c",!1)}),$("body").on("blur",".sidebar-search",function(){setTimeout(function(){navigation_init_autocomplete("c",!0)},150)}),setTimeout(function(){information_update()},1e4),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&$("#content").attr("style","-webkit-overflow-scrolling: touch !important; overflow-y: scroll !important;"),$('a[target="page"][href="link/"]').first().length&&$('a[target="page"][href="link/"]').first().attr("target","blank"),$("aside").on("click",".select2-container .select2-selection__arrow b",function(e){e.preventDefault(),e.stopPropagation()}),$("aside").on("click",'a[href*="/file/"], a[href*="history.cgi"]',function(e){e.preventDefault(),e.stopPropagation(),window.open($(this).attr("href"),"_blank")}),$("body").on("keydown",".sidebar-search",function(e){if(get_server_data("webmail")!==-1&&13==e.keyCode)return e.preventDefault(),!1}),$("body").on("click",".mobile-menu-toggler",function(e){var t=$settings_animation_left_slide_time?$settings_animation_left_slide_time:1;$this=$(this),$("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"},1.5*t)},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},2.5*t),$(".switch-toggle").css("display","table")):navigation_hide()}),$.each($('ul.navigation li.navigation_external a[href^="../servers/link.cgi/"]'),function(e,t){$(this).attr("href",v___location_href+$(this).attr("href").replace("../","").replace(/\/$/g,""))}),$("body").on("click",'.navigation a[target="page"], .user-links a[target="page"]',function(){navigation_hide()}),$("body").on("click",".navigation > li .navigation_external_link",function(e){e.preventDefault(),e.stopPropagation(),b=$(this),window.open(b.attr("href"),"_blank")}),$("body").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"),i=$("a",this).attr("target"),a=$(this);i&&$(".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"),i=t.is("[data-has-sub-link]");e.is(a)||(e.removeClass("active"),"#search"!=e.find("a").attr("href")&&i&&$(e.find("a").attr("href")).slideUp($settings_animation_left_slide_time))})).done(function(){a.hasClass("active")?a.removeClass("active"):"#hide"!=t&&!i&&a.addClass("active"),setTimeout(function(){$(t).is(":visible")&&"#hide"!=t&&!i?a.addClass("active"):a.removeClass("active"),$processing=!1},2*$settings_animation_left_slide_time>0?2*$settings_animation_left_slide_time:1),$(t).slideToggle($settings_animation_left_slide_time)}),"#search"==t&&$('#sidebar input[name="search"]').focus()}}),$("body").on("click",".navigation > li > ul.sub > li:not('.menu-container')",function(e){if(!e.target||!$(e.target).is("li")){var t=$(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(""),t.addClass("sub_active").append(' ')}}),$(".navigation > li > ul.sub").each(function(){""===$(this).attr("id")&&$(this).remove()}),$('.switch-toggle label[for^="reserve_empty"]').on("click",function(e){e.preventDefault()}),$("body").on("click",'a[data-refresh="true"]',function(e){e.preventDefault(),page_refresh()}),$("body").on("click",function(e){$("ul.dropdown").is(e.target)||0!==$("ul.dropdown").has(e.target).length||0!==$(".open").has(e.target).length||$("ul.dropdown").removeClass("open")}),$(".switch-toggle").on("contextmenu","label",function(e){e.preventDefault();var t=$(this).attr("for").replace("open_","");if($(this).prev("input").is(":checked")){var i=v___location_href;set_server_tmp_var("goto",navigation_trigger(i,1)),setTimeout(function(){theme_open_new_tab(i)},200)}else if("virtualmin"===t||"cloudmin"===t){var a;a="cloudmin"===t?"/server-manager/index.cgi":"/virtual-server/index.cgi";var n=navigation_trigger(a,2);set_server_tmp_var("goto",navigation_trigger(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_tmp_var("goto",navigation_trigger(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}else{var s=v___location_prefix+"/sysinfo.cgi?"+$__theme_navigation;set_server_tmp_var("goto",navigation_trigger(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}}),$(".switch-toggle").on("click","input.dynamic",function(e){if(get_onbeforeunload_status()){e.preventDefault();var t=$(".switch-toggle input:checked").attr("id");return void get_onbeforeunload_message([],{href:"::switch::"+t})}return"open_thirdlane"==$(this).attr("id")?void(location.href=v___location_prefix+"/asterisk/index.cgi"):(set_switch_position($(this).attr("id").replace("open_","")),"open_dashboard"==$(this).attr("id")?void get_pjax_content(v___location_prefix+"/sysinfo.cgi"):void get_navigation_and_content($(this).attr("id").replace("open_",""),0,0))}),navigation_init_select(),$("aside").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"))}}}),$(".loader").append('
'),$("body").on("mouseover","#loader-close, #loader-close-sm",function(){$(this).find(".fa").removeClass("hidden")}).on("mouseout","#loader-close, #loader-close-sm",function(){$(this).find(".fa").addClass("hidden")}),$("body").on("click","#loader-close-sm > .fa",function(e){navigation_render_end()}),__shell_commands__i__=0,$(".form-control.sidebar-search").focus(function(e){$(".__logo").addClass("inited"),e.preventDefault(),e.stopPropagation(),__shell_commands__i__=0}),$("body").on("click","[data-shell-config]",function(e){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))return void(v___available_session=0);var t=$(e).find(".ui_form"),i=t.find("table.sub_table_container"),a=v___location_prefix+"/config_save.cgi";i.find("a").contents().unwrap();var n=i.find("tbody"),s=$(e).find("tr th.table-title b").text();theme_alert(s,'",!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){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);i.find('[data-dismiss="modal"]').trigger("click")},error:function(){}})}})},300)}})});var e=$("body").find(".-shell-port-"),t=e.find('input[data-command="true"]'),a=e.find("div[data-output]"),n=e.find(".-shell-port-container"),s=e.data("autocomplete");if($(window).keydown(function(i){var o=theme_shell_status(),_=$(".modal-shell-config:visible").length;if(!o&&v___available_session&&(navigation_focus_search(i),theme_shortcuts(i)),o&&27===i.keyCode&&!_)return void theme_shell_close(e);if(o&&38===i.keyCode&&(t.is(":focus")||$(".form-control.sidebar-search").is(":focus"))&&i.preventDefault(),o&&9===i.keyCode&&t.is(":focus")){if(i.preventDefault(),!s)return;var r=t.val().trim().split(/\s+(?!-)/),l=r.length,d=r[0]&&r[0].indexOf("-")===-1?0:1,c=r[1]&&r[1].indexOf(":")===-1?0:1,p=t.val().endsWith(" "),f="service"===$.trim(r[0]),g="systemctl"===$.trim(r[0]),u=$.trim(r[0])&&$.trim(r[0]).startsWith("chown"),m=1!==r.length||!t.val().length||d||p?f||g?"services":u?"permissions":"lists":"commands";if(!$.trim(t.val()).length)return;var h=t.val(),v=e.find(".-shell-port-pwd"),b=v.attr("data-pwd");if("services"===m){if("systemctl"===(m=f?"service":"systemctl")&&3!==r.length)return;h="service"==m?$.trim(r[1]):$.trim(r[2]),"service"===$.trim(r[0])&&(2===r.length&&p||3===r.length)&&(h=3===r.length?"::::"+$.trim(r[1])+"::::"+$.trim(r[2]):"::::"+$.trim(r[1]))}if(u){if(1===l&&!p)return void t.val($.trim(r[0])+" ");c&&$.trim(r[1])?p||r[2]?(m="lists",h=b+"/::::"+$.trim(r[2])):(m="groups",h=$.trim($.trim(r[1]).split(":")[1])):(m="users",h=$.trim(r[1]))}"lists"!==m||u||(h=b+"/::::"+$.trim(r[1])+"::::"+$.trim(r[0])+"::::"+$.trim(r[2])),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_autocompletes=1&xhr-get_autocomplete_type="+m+"&xhr-get_autocomplete_string="+h,data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var i=e.length;if(1===i)if("service"===m||"systemctl"===m||"lists"===m){var s=$.trim(r[0]),o=$.trim(r[0])+" "+$.trim(r[1]);"lists"===m?("cd"===s&&e[0].endsWith("/")||"cd"!==s)&&("cd"===s||"cat"===s?t.val(s+" "+e[0]):$.trim(r[2])?t.val(o+" "+e[0]):t.val(s+" "+e[0])):"service"!==s||2!==r.length&&3!==r.length?"systemctl"===s&&3===r.length&&t.val(s+" "+$.trim(r[1])+" "+e[0]):2===r.length?t.val(s+" "+e[0]+" "):3===r.length&&t.val($.trim(r[0])+" "+$.trim(r[1])+" "+e[0])}else u?c?p||r[2]?t.val($.trim(r[0])+" "+$.trim(r[1])+" "+e[0]):t.val($.trim(r[0])+" "+$.trim($.trim(r[1]).split(":")[0])+":"+e[0]+" "):t.val($.trim(r[0])+" "+e[0]+":"):t.val(e[0]+" ");else if(i>1){var _=""+$(".-shell-port-type").text()+" "+Convert.htmlEscape(t.val())+" \n";a.find("pre").append(_),a.find("pre").append(Convert.htmlEscape(e.join("\n")+"\n")),n.scrollTop(n[0].scrollHeight)}setTimeout(function(){t.focus().mousedown()},10)},error:function(){}})}}),$(window).keyup(function(n){var s=theme_shell_status(),o=$(".modal-shell-config:visible").length;if(s&&!o){var _=0,r=0,l=0,d=$(".form-control.sidebar-search"),c=$t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length,p=$('select[name="sid"]').val(),f=0,g=0;if(c)g=v___location_prefix+"/server-manager/shell.cgi";else{if(!Core.moduleAvailable("shell"))return;g=v___location_prefix+"/shell/index.cgi"}if((s||d.is(":focus"))&&8===n.keyCode&&(__shell_commands__i__=0),s?(_=$.trim(t.val()),r=1,l=1):(_=d.val(),r=void 0!==d.val(),l=0),(l||r&&(!_.trim()||_.trim().startsWith("!")))&&(38==n.keyCode||40==n.keyCode)){n.preventDefault(),n.stopPropagation(),void 0===localStorage.getItem(v___server_hostname+"-shell_commands")&&localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var u=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),m=u?u.length:0;if(0===__shell_commands__i__&&!_&&40==n.keyCode)return;if(0===__shell_commands__i__&&_&&38==n.keyCode)return void(f=1);if(__shell_commands__i__=40==n.keyCode?++__shell_commands__i__:--__shell_commands__i__,__shell_commands__i__<0&&38===n.keyCode?__shell_commands__i__=m-1:__shell_commands__i__>m&&(__shell_commands__i__=0),u&&u[__shell_commands__i__%m]){if(!$.isEmptyObject(u)&&(__shell_commands__i__==m&&38===n.keyCode||__shell_commands__i__==m&&40===n.keyCode||f))return s?t.val("").focus():d.val("").focus(),void(__shell_commands__i__=0);if(s){var h=u[__shell_commands__i__%m].replace(/^!/,"");t.val(Convert.htmlUnEscape(h)).focus()}}return}if(r&&_.trim().startsWith("!")&&27==n.keyCode)return n.preventDefault(),n.stopPropagation(),void d.val("").focus();if(r&&_.trim().startsWith("!")&&13==n.keyCode&&(d.addClass("_shell_form_"),n.preventDefault(),n.stopPropagation(),1==Core.moduleAvailable("shell")||c)){t.val(_.trim().substring(1)).focus(),theme_shell_open(e);var v=$.Event("keyup");v.keyCode=13,t.trigger(v)}var b=e.find(".-shell-port-container"),y=e.find(".-shell-port-pwd"),k=y.attr("data-pwd"),x=$.trim(t.val()),w=0,C=n.keyCode?n.keyCode:n.which,T=n.altKey&&"l"==String.fromCharCode(n.which).toLowerCase();if(t.is(":focus")||check_selected_text()||(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey||t.val(t.val()+String.fromCharCode(n.which).toLowerCase()),t.focus()),(x&&13===C||T)&&(Core.moduleAvailable("shell")||c)){if(1===v___shell_processing)return;v___shell_processing=1,("clear"==x||"reset"==x||"exit"==x||T)&&(a.find("pre").html(""),theme_shell_clear(t),"exit"==x&&theme_shell_close(e)),"cd ~"==x&&(w=x,x="cd "+y.attr("data-home"));var S=!1;if("cd /"==x&&(S="/"),"history -c"==x){localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var I=""+$(".-shell-port-type").text()+" "+x+" \n";a.find("pre").append(I),theme_shell_clear(t),b.scrollTop(b[0].scrollHeight);var j='',D=new FormData($(j)[0]);$.ajax({type:"POST",url:g+"?stripped=1&stripped=2",data:D,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0)},error:function(e){}})}else if($.trim(x).startsWith("history -d")){var P=x.split(" "),q=P[2];q&&q.length&&Test.numeric(q)&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-shell-pop="+q+"&xhr-shell-cms="+c+"&xhr-shell-cmsid="+p,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(q)-1})))}},error:function(e){}}),theme_shell_clear(t)}else if(x.startsWith("history")){theme_shell_clear(t);var O=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),A=O?O.length:0,E=A?A.toString().length:0,I=""+$(".-shell-port-type").text()+" "+x+" \n";$.each($(O),function(e,t){var a=e.toString().length,n="";for(i=0;i '+(c?' ':"")+' ',R=new FormData($(z)[0]);t.attr("readonly","true");var L=0,U=0,K=!1,W=0;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 shell_request.abort();if(t&&t.length&&/[\x1B]/.test(t))return W=1,void shell_request.abort();if(!!t&&U++,U>2&&!L)t&&($(".-shell-port-cmd").after(" "),L++,$(".-shell-port-container").addClass("progressing"));else if(L){var i=extract_content(t,""," ",1);i&&(i=i.replace(/<(b)[^>]*>[^<]*(<\/b>)/i,""),K=i),$(".-shell-port-cmd").next("pre").replaceWith(i),b.scrollTop(b[0].scrollHeight)}},!1),e},type:"POST",url:g+"?stripped=1&stripped=2",data:R,dataType:"text",cache:!1,contentType:!1,processData:!1,complete:function(e){if($(".-shell-port-container").removeClass("progressing"),e=e.responseText,Test.strContains(e,v___page_signin_form))return void(v___available_session=0);if(W)return a.find("pre").append(""+$(".-shell-port-type").text()+" "+t.val()+" \nError opening terminal: unknown.\n"),void theme_shell_call_done(".-shell-port-cmd",t,b);var i=$(".-shell-port-type").text(),n=$(e).find("pre").length?$(e).find("pre"):$(e).filter("pre"),s=n.html().replace(/>>/g,">"+i),o=$(e).find('input[name="previous"][type="hidden"]').map(function(){return Convert.htmlEscape($(this).val())}).get();localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(o)),newPwd=$(e).find('input[name="pwd"]').val(),a.find("pre").append(w?s.replace(new RegExp(x,"g"),w):s),y.text(S?S:newPwd==y.attr("data-home")?"~":newPwd.split("/").filter(function(e){return""!=$.trim(e)}).slice(-1)[0]).attr("data-pwd",S?S:newPwd).attr("title",S?S:newPwd),theme_shell_call_done(".-shell-port-cmd",t,b)},error:function(e){}})}}}),$("body").on("keyup","#webmin_search_form",function(e){var t=$(this),i=t.find("input.sidebar-search"),a=i.val(),n=$("body").find(".-shell-port-");a&&13==e.keyCode&&(a.startsWith("!")?theme_shell_open(n,a):($(this).trigger("submit"),i.val("")))}),$("body").on("click","#right-side-tabs .right_pane_favorites_link",function(e){$(".favorites-menu-outer.hover + .favorites-menu-close").trigger("click")}),$("aside").on("click",".user-links > li.favorites",function(e){$(".favorites-menu-outer").addClass("hover")}),$("body").on("click","nav.favorites-menu li a",function(){}),$("body").on("click",".favorites-menu-close, nav.favorites-menu li a",function(){$(".favorites-menu-outer").removeClass("hover")}),$(document).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),favicon=new Favico({animation:"none"}),0==v___user_level&&1==Core.moduleAvailable("status")){var o=localStorage.getItem(v___server_hostname+"-right-side-tab")?localStorage.getItem(v___server_hostname+"-right-side-tab"):"#right-side-tabs-sysinfo";$("body").append(' \t\t \t\t \t\t \t \t\t
\t'),$('a[href="'+o+'"]: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)}),$("body").on("click",'i[data-target-tooltip-callback="theme_xhred_tooltip_side_slider_pinned"]',function(e){var t="1"==get_server_data("data-slider-fixed")?0:1;Core.var.slider_pinned=t,settings_side_slider_fixed=!settings_side_slider_fixed,set_side_slider_visibility(t),t?$(this).removeClass("fa-rotate-45"):$(this).addClass("fa-rotate-45")}),$("body").on("click",".right-side-tabs-favorites-ctl",function(e){$(".favorites-menu-outer").hasClass("hover")?$(".favorites-menu-close").trigger("click"):$(".user-link.favorites").trigger("click")}),$("body").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")}),$("body").on("click","#right-side-tabs .info-container .graph-container-fw",function(e){var t,i=Core.moduleAvailable("proc"),a=$(this).attr("class"),n=a.indexOf("cpu_")>-1?"cpu":a.indexOf("mem_")>-1?"mem":a.indexOf("virt_")>-1?"virt":"disk";"cpu"==n&&i?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=n&&"virt"!=n||!i?"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")}),$("body").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")}),$("body").on("click","#right-side-tabs [data-click-about]",function(e){theme_update_notice(0)})}else get_server_data("data-slider-fixed","0"),$(".right-side-tabs-toggler").addClass("hidden");$(".right-side-tabs .tab-pane").each(function(){$(this).css("height",window.outerHeight-92)}),$(".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"))}),$("body").on("click",'a[data-id^="csf_"], a[data-type^="csf_"]',function(e){get_bundle_csf()}),$("body").on("click",'a[href*="mysql"], a[href*="postgresql"]',function(e){get_bundle_sql()}),$(".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(),$("body").append(' \t\t\t\t\t\t'),$("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){if(e.preventDefault(),"contextmenu"==e.type)return $(this).find(".fa-clear-all").trigger("click"),e.preventDefault(),void e.stopPropagation();if($(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")){if($(e.target).is(".fa-clear-all"))return $(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),void slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1);$(this).animate({opacity:"0"},$settings_animation_left_slide_time,function(){$(this).remove(),localStorage.removeItem(v___server_hostname+"-notifications_"+$(this).attr("id")+"_"+$(this).data("type")),slider_add_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"),slider_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"),slider_mark_notification_read($(this).attr("id"),$(this).data("type"),1,1))}),$(".right-side-tabs-dismiss i.fa-reload").click(function(e){if(!$(this).hasClass("cursor-na")){var t=Core.moduleAvailable("virtual-server")?"virtual-server":"system-status",i=$(".right-side-tabs-dismiss .fa-reload");i.addClass("fa-spin-fastest cursor-na"),$.ajax({type:"GET",url:v___location_prefix+"/"+t+"/recollect.cgi",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);"sysinfo.cgi"===v___location_file&&get_pjax_content(v___location_prefix+"/sysinfo.cgi"),information_update()},error:function(e){i.removeClass("fa-spin-fastest cursor-na"),theme_messenger(' '+theme_language("theme_xhred_sysinfo_update_failed"),20,"error","sysinfoRecollect")}})}}),$(".right-side-tabs-dismiss i.fa-clear-all").click(function(e){slider_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"},$settings_animation_left_slide_time,function(){$(this).remove(),slider_remove_all_notifications(),slider_add_no_notifications()})}),$("body").on("click",".right-side-tabs-toggler:not(.hidden)",function(e){$(this).hasClass("opened")?($(this).removeClass("opened"),$(this).animate({right:"0"},$settings_animation_left_slide_time),$(".right-side-tabs").animate({right:"-302"},$settings_animation_left_slide_time)):($(this).addClass("opened"),$(this).animate({right:"300"},$settings_animation_left_slide_time),$(".right-side-tabs").animate({right:"0"},$settings_animation_left_slide_time))}),$(".right-side-tabs .tab-pane").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1}),settings_button_tooltip&&$("body").tooltip({selector:'li[data-toggle="tooltip"], li > a[data-toggle="tooltip"].menu-exclude-link, label[data-toggle="tooltip"]',container:"body",html:!0,delay:{show:800,hide:30}}),$("body").on("click",".user-link.palette-toggle",function(e){theme_toggle_night_mode()}),$("body").on("click",".user-link.ported-console",function(t){theme_shell_check_available()&&theme_shell_open(e)}),$("body").on("click",".-shell-port-close",function(t){theme_shell_check_available()&&theme_shell_close(e)}),slider_add_no_notifications(),slider_check_notifications()}$("body").on("click","#headln2c > .favorites:not(.dummy), .xcustom-favorites:not(.dummy)",function(e){e.preventDefault();var t=URI(v___location).resource();if($(this).hasClass("fa-star-o")){$(this).removeClass("fa-star-o").addClass("fa-star text-warning");var i=$("#headln2c > span[data-main_title]").text(),a=$(".has-sub.active").text().trim(),n=$(".sub_active").text().trim(),s="",o="";($t_uri_virtualmin||$t_uri_cloudmin)&&(s=$("aside .ui_select option:selected").text()),$('body[class^="'+v___module_file_manager+'"]').length&&(o=URI.parseQuery(URI(v___location).query()).path,o=o?"["+o+"]":"[/]"),favorites_add(t,(s.length?s+" - ":"")+(a.length?a+"/":"")+(n.length?n+(i.trim().length?": ":""):"")+i.trim()+(o.length?" "+o:""),$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":"webmin"),favorites_save()}else $(this).addClass("fa-star-o").removeClass("fa-star text-warning"),favorites_remove(t)}),1===v___initial_load&&favorites_init(),$("#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(),favorites_remove($(this).parents("a").attr("href"))}),$(document).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),$("body").on("shown.bs.modal",".modal.in",function(){$(this).focus()}),$("body").on("click",".module-help",function(e){popover_visibility_position($(this))}),$("body").on("click",function(e){$(e.target).is(".close-popover-trigger")&&$(e.target).parent().parent().popover("hide")
+;var t=".showpass-popover";$(t).length&&$(t).each(function(){$(this).is(e.target)||0!==$(this).has(e.target).length||0!==$(".popover").has(e.target).length||$(this).popover("hide")})}),$('body:not(".mobile-menu-toggler")').on("click",function(e){$(e.target).is('.wbm-sm, input[name="product-switcher"], label[for*="open_"], span, .sidebar-search, .select2-selection__rendered, .select2-selection')||navigation_hide()}),$("body").on("change",'input[type="checkbox"], input[type="radio"]',function(e){var t=$(this).parents("tr.ui_checked_columns");t.length&&t.find("input:first").is($(this))&&($(this).is(":checked")?t.addClass("hl-aw"):t.removeClass("hl-aw"),"function"==typeof __r____changed&&__r____changed())}),$("body").on("click",".ui_link, .ui_link_replaced",function(){$.each($('input[type="checkbox"]'),function(){$(this).is(":checked")?$(this).parents("tr.ui_checked_columns").addClass("hl-aw"):$(this).parents("tr.ui_checked_columns").removeClass("hl-aw"),"function"==typeof __r____changed&&__r____changed()})}),$("body").on("click","a#atclearcache",function(e){set_onbeforeunload_status(0,0),localStorage.clear(),$(".right-side-tabs-dismiss .fa-trash").trigger("click"),$(".right-side-tabs-dismiss .fa-refresh").trigger("click");var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small",1e3]),setTimeout(function(){theme_reload()},500)}),$("body").on("click",function(e){$(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")}),$("body").on("click",".authentic_update:not(.disabled)",function(e){e.preventDefault(),e.stopPropagation();var t=$(this),i="1"==t.data("stable")?1:0,a="1"==t.data("force")?1:0;theme.update(i,a)}),$("body").on("click",'a[data-href="#theme-info"]',function(){theme_update_notice(0)}),$("body").on("hide.bs.modal","#update_notice",function(){$(this).hasClass("r")?($("body").append('
'),$("div.update_notice_overlay").animate({opacity:1},560,function(){setTimeout(function(){theme_reload()},100)})):("0px"==___________content_initial_?$("#content").removeAttr("style"):$("#content").animate({"margin-left":___________content_initial_},280),$("aside").animate({"margin-left":0},280,function(){$(".right-side-tabs, .right-side-tabs-toggler").removeClass("pointer-events-none bg-filter-grayscale-opacity50"),$(".container-fluid").removeClass("bg-filter-blur-grayscale-opacity50")})),$("#update_notice").remove()}).on("show.bs.modal","#update_notice",function(){$("#update_notice").length;var e=($(this),$("aside").css("left"));___________content_initial_=$("#content").css("margin-left"),________version_date_obj=$(this).find(".modal-body > h4:first-child"),________version_curr_text=________version_date_obj.text().split(/\s+/)[1],________version_first_text=$(".version_separator:last").text(),________multi_in_branch=$(".version_separator").length,_____version__x=________version_first_text+"..."+v___theme_version;var t=$(".version_separator"),i=theme_language("theme_xhred_global_development_version");$.each(t,function(){$(this).attr("target","_blank")}),setTimeout(function(){$(".container-fluid").addClass("bg-filter-blur-grayscale-opacity50")},0),$("#content").animate({"margin-left":0},450),$("aside").animate({"margin-left":e},450),$(".right-side-tabs, .right-side-tabs-toggler").addClass("pointer-events-none bg-filter-grayscale-opacity50");var a=$(this).find(".modal-body h4"),n=$(this).find(".modal-body h4:first");if(!$(this).find(".modal-body h4:first .diffctl").length){var s=new RegExp(RegExp.quote(________version_curr_text),"g");________multi_in_branch&&(a.replaceText(s,""+_____version__x+" "),a.replaceText(/Version/,"Versions"));var o=$(this).find('.modal-body h4:contains("beta")').length;if(a.length&&o){var _=$(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/);latest_release=parseFloat(_?_[0]:v___theme_version);var r=n.text(),l=r.split("..."),d=0,c=$('a.version_separator[href*="releases"]:not(:empty)').first().text();l[1]&&(d=l[0].replace("Versions ",""),n.text(n.text().replace(d,c))),n.append(' '),n.after(' '+i+" ")}else n.append(' ').append(''+________version_curr_text+" ")}var p=[];$.each($(this).find('li span:contains("Fixed bugs")'),function(){var e=$(this),t=$(this).parent("li"),i=t.parent("ul"),a=t.find("a:not(.bctl)"),n=a.length;________multi_in_branch?(p.push(a),1===i.find("li").length&&(i.prev("hr").prev("a").remove(),i.prev("hr").remove(),i.addClass("no-data")),t.remove()):(e.html([e.text().slice(0,6),n+" ",e.text().slice(6)].join("")),t.find("a:first").before(' '),t.find("a.bctl").click(function(e){a.toggleClass("hidden"),t.find("a.bctl i").toggleClass("fa-minus-square-o")}),a.addClass("obj-popup hidden"))}).promise().done(function(){function e(e,t){return parseInt($(t).text().replace("#","")) '),$(".modal-body span[data-bugs-container]").append(p),$(".modal-body span[data-bugs-container] a").sort(e).appendTo(".modal-body span[data-bugs-container]");var t=$("span[data-fixed-bugs]"),i=($("span[data-bugs-container]"),$(".modal-body span[data-bugs-container]").find("a:not(.bctl)")),a=i.length;t.html([t.text().slice(0,6),a+" ",t.text().slice(6)].join("")),t.append(' '),t.find("a.bctl").click(function(e){i.toggleClass("hidden"),t.find("a.bctl i").toggleClass("fa-minus-square-o")}),i.addClass("obj-popup hidden");var n=$("div[data-bugs]"),s=n.find("a:not(.bctl)").length;!s&&n.prev(".hr-dashed").remove(),!s&&n.remove()}var o=$(".modal#update_notice h4 span");if(Test.strContains(o.text(),"...")&&Test.strContains(o.text(),"patch")){var _=parseInt(o.text().split("...")[1].substr(-1,1));_&&$.each($(".version_separator:not(.version_dev)"),function(e,t){e+1!=_?$(this).addClass("hidden"):$(this).text($(this).text()+"-"+theme_language("theme_xhred_global_release").toLowerCase())})}})}),$("body").on("click",".csf-submit",function(e){e.preventDefault();var t=$(this).data("id");$("#"+t).submit()}),$("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")}),$("body").on("click contextmenu","div.icons-container, div.small-icons-container",function(e){if("click"===e.type&&$(e.target).is(".gl-icon-select")&&!v___available_navigation)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 t=$(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");t.hasClass("fa-select")?t.removeClass("fa-select").addClass("fa-selected"):t.removeClass("fa-selected").addClass("fa-select")}"function"==typeof db_check_selected&&db_check_selected()}),$("body").on("click",".row.icons-row.vertical-align .icons-container, .row.icons-row.vertical-align .small-icons-container",function(){$(this).hasClass("forged-xx-skip")}),__is_shifted=!1,__is_tabbed=!1,$(document).on("keyup keydown",function(e){var t=e.keyCode?e.keyCode:e.which;__is_shifted=e.shiftKey,__is_tabbed=9==t}),$("body").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()}),$("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"),a.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)}),$("body").on("dblclick",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){e.preventDefault()});var _=0,r=null;$("body").on("dblclick",'.mppopup a[onclick*="select("]',function(e){$(".mppopup button[data-mppopup_confirm]").trigger("click")}),$("body").on("click",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){if(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),_++,$data_mppopup_value.val($v__mpp__g_ol),1===_)r=setTimeout(function(){if(_=0,"undefined"==typeof $v__mpp__g_gp&&($v__mpp__g_gp=0),$v__mpp__g_gp){var e=chooser_get_link($v__mpp__g_op);chooser_get(e)}else chooser_control($v__mpp__g_ol,0,0);$v__mpp__g_gp=0},450);else if(clearTimeout(r),_=0,$v__mpp__g_olt){var t=chooser_get_link($v__mpp__g_op);chooser_get(t)}else chooser_control($v__mpp__g_ol,1,1)}),$("body").on("click",".mppopup button[data-mppopup_confirm]",function(){chooser_control($data_mppopup_value.val(),1,1)}),$("body").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}})}),$("body").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},$settings_animation_tabs_slide_time),$(".mppopup_filter_input").focus()},0)}),$("body").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")}),$("body").on("click",".mppopup_multi_done",function(e){refInput.val($.trim($('.mppopup input[data-role="tagsinput"]').val().replace(/,/g," "))),$('.mppopup span[aria-hidden="true"]').trigger("click")}),$("body").on("keyup",".mppopup_filter_input",function(e){var t=e.which,i=$(".mppopup table tbody tr:visible"),a=i.find("td:first-child a");if(!$(".mppopup .breadcrumbx").length){if(13!=t||1!==i.length||e.shiftKey){if(13==t&&1===i.length&&e.shiftKey){a.trigger("click").trigger("dblclick");var n=$(".mppopup .mppopup_multi_done:visible");n.length&&setTimeout(function(){n.trigger("click")},240)}}else a.trigger("click");$(".mppopup table tbody tr.noresults").length||$(".mppopup table tbody").append(''+theme_language("theme_xhred_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")}}),$("body").on("click","button[data-mmclick]:not(.disabled), input[data-mmclick]:not(.disabled)",function(e){function t(e,t,i,a,s){var o;o=s?' ":' ";var _=' ";$("body").append(_),refInput.addClass("refInputData"),$("body .mppopup").modal("show")}function i(e){e[1].startsWith("/")?$v__mpp__g_op=e[1]:$v__mpp__g_op="/"+e[1]}e.preventDefault(),e.stopPropagation(),refInput=chooser_get_target($(this),1);var a=$(this),n=refInput.val(),s=encodeURIComponent(n),o=$(this).attr("data-mmclick"),_=o.match("window.open\\(['\"]*(.*?)(\\s*['\"]*,.*?)"),r=_[1].match(/(\w+\.[a-z]{3,4})/gi)[0],l=r.replace(".cgi","");if(a.addClass("disabled").attr("disabled","disabled"),_[1]){var d=_[1].replace("encodeURIComponent(ifield.value)","refInputCurrValSafe");d=d.replace('"+"',"").replace('"+',"").replace("refInputCurrValSafe",s),$.ajax({type:"POST",url:d,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var a=e,n=e.match(')<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(i).filter(".table").html(),n=$(i).filter(".table").prev("b").html(),s=chooser_breadcrumbs(n);0===$(a).find("td").length&&(a=a.replace("thead","tbody"),a=a.replace("",' '+theme_language("theme_xhred_datatable_semptydirectory")+" ")),i=s+'",t(i,"type1",0,refInput,0)}});else if($.isArray(n))i(n),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);var i=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,"");i=''+$(i).filter("table").html()+"
",t(i,"type2",0,refInput,1)}});else{if($.isArray(n)&&n[1].indexOf("&multi=1")===-1)return;var s=a,o=$(s).filter("table").html();t('","",1,refInput,0)}}})}else $(this).removeClass("disabled"),$(this).attr("onclick",$(this).attr("data-mmclick")).removeAttr("data-mmclick"),$(this).trigger("click")}),$("body").on("click",".generate-password-key",function(e){var t=theme_password_generator();$("body").append(' ');var i=new Clipboard(".tmp-clipboard-obj");$(".tmp-clipboard-obj").trigger("click"),$(".tmp-clipboard-obj").remove(),i.destroy(),theme_messenger(' '+theme_language("theme_xhred_password_generator_new_success").replace("%password",' '+Convert.htmlEscape(t)+"
"),10,"success","newGeneratedPassword")}),$("body").on("click",'aside li[data-linked] a[href="'+v___location_prefix+"/shell/?"+$__theme_navigation+'"], aside a[href="'+v___location_prefix+"/server-manager/shell.cgi?"+$__theme_navigation+'"], aside a[href*="shell=1"]:not(a[href*="login.cgi"])',function(e){e.preventDefault(),e.stopPropagation(),$(".user-link.ported-console:visible").trigger("click")}),$("body").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")}}),$("aside").on("click",".__logout-link",function(e){progress.start(),get_server_tmp_var("goto",0)}),$("body").on("click",'button, input[type="submit"], a',function(e){v___page_activeElement=this}),$("body").on("click","._c__op_d",function(e){if($(e.target).is(this)){var t=$(this).find(".opener_trigger").first()[0];t&&t.click()}}),$("body").on("click",'form[action*="save_user.cgi"] button[name="but_switch"], a[href*="virtual-server/switch_user.cgi"]',function(e){v___theme_reload=1}),$(window).on("resize",function(){page_resized(),theme_shell_adapt()}),$("body").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))}),$("body").on("click",".ui_multi_select_row select[multiple] option",function(e){var t=$(this).parent("select"),i=t.parent("td"),a=i.parent("tr"),n=i.index();e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||0!==n&&2!==n||a.find("td:eq(1)").find('[onclick*="multi_select_move"][onclick*="'+(n?0:1)+'"]').trigger("click")}),$("body").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}),$("body").on("click",'form[action*="backup.cgi/backup.tgz"] input[name^="dest0_"]',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)}),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)}),$("body").on("click",".help_popup",function(e){e.stopPropagation(),e.preventDefault();var t=$(this),i=$(this).attr("href"),a=$(this).parent();a.append('
'),$.ajax({type:"POST",url:t.attr("href").indexOf("showpass.cgi")>-1?v___location_directory_trail_slashed+t.attr("href"):t.attr("href"),data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))return void(v___available_session=0);a.find("._tmp_help_content").html(e.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"")),$help_title=a.find("._tmp_help_content .ui_subheading").first().text(),$help_body=a.find("._tmp_help_content title").remove(),$help_body=a.find("._tmp_help_content h3.ui_subheading").remove(),$help_body=a.find("._tmp_help_content h3").addClass("h3_help"),$help_body=a.find("._tmp_help_content hr").remove();var n=a.find("._tmp_help_content a");void 0!==n.attr("href")&&$.each(n,function(){var e=$(this).attr("href");e.startsWith("http")?$help_body=a.find("._tmp_help_content a").attr("target","_blank").css("text-decoration","none").css("font-style","italic"):($("body").undelegate('a[href="'+e+'"]',"click"),$("body").one("click",'a[href="'+e+'"]',function(a){if($(a.target).is($('a[href="'+e+'"]'))){a.preventDefault();var n=Convert.pathnamePopLast(t.attr("href"))+"/"+e;$('a[href="'+i+'"].help_popup').attr("data-initial",i).attr("data-substituted",n),$('a[href="'+i+'"].help_popup').attr("href",n),t.trigger("click")}}))}),$help_body=a.find("._tmp_help_content").html(),a.find("._tmp_help_content").remove();var s='× ',o=t.attr("href").indexOf("showpass.cgi")>-1,_=t.attr("href").indexOf("/locale")>-1;o&&(s=""),t.popover({html:!0,container:".container-fluid",template:'',title:function(){return s+$help_title},content:function(){return $help_body},placement:"auto right"}),t.popover("show"),t.on("shown.bs.popover",function(){$help_body.indexOf("")>-1&&$(".popover").animate({"max-width":"540px"},300),$("body").find(".popover:visible").addClass("module-help"),$('body[class*="'+v___module_file_manager+'"]').find(".popover:visible").addClass("file-manager-help"),setTimeout(function(){$.each($(".module-help"),function(){$(this).is(t.next(".module-help"))?($(this).animate({opacity:1},600),popover_visibility_position($(this))):$(".module-help").length>1?$(this).css("opacity",.85):$(this).css("opacity",1)})},100)}),t.on("hidden.bs.popover",function(){$("body").undelegate(":not(tt)","click"),t.attr("data-initial")&&(t.attr("href",t.attr("data-initial")),t.removeAttr("data-initial").removeAttr("data-substituted"))})}})}),$("body").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 a=t.find(".fa-refresh");a&&a.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()}})}}})}}),setTimeout(function(){window.onbeforeunload=function(){if(get_onbeforeunload_status())return progress.end(),!0},$(function(){v___available_navigation||progress.end()})},100),setTimeout(function(){theme_alert_charset()},2e3),favorites_detect(),page_render(0),setTimeout(function(){v___initial_load=0},1e3),setTimeout(function(){Core.var.language_strings=get_server_data("language-strings"),Core.var.available_modules=get_server_data("available-modules")},1e4)});
\ No newline at end of file