File: //srv/wordpress/core/beta/wp-admin/js/common.min.js
/*! This file is auto-generated */
!function(U,K){var W=U(document),$=U(K),H=U(document.body),Q=wp.i18n.__,i=wp.i18n.sprintf;function r(e,t,n){n=void 0!==n?i(Q("%1$s is deprecated since version %2$s! Use %3$s instead."),e,t,n):i(Q("%1$s is deprecated since version %2$s with no alternative available."),e,t);K.console.warn(n)}function e(i,o,a){var s={};return Object.keys(o).forEach(function(e){var t=o[e],n=i+"."+e;"object"==typeof t?Object.defineProperty(s,e,{get:function(){return r(n,a,t.alternative),t.func()}}):Object.defineProperty(s,e,{get:function(){return r(n,a,"wp.i18n"),t}})}),s}K.wp.deprecateL10nObject=e,K.commonL10n=K.commonL10n||{warnDelete:"",dismiss:"",collapseMenu:"",expandMenu:""},K.commonL10n=e("commonL10n",K.commonL10n,"5.5.0"),K.wpPointerL10n=K.wpPointerL10n||{dismiss:""},K.wpPointerL10n=e("wpPointerL10n",K.wpPointerL10n,"5.5.0"),K.userProfileL10n=K.userProfileL10n||{warn:"",warnWeak:"",show:"",hide:"",cancel:"",ariaShow:"",ariaHide:""},K.userProfileL10n=e("userProfileL10n",K.userProfileL10n,"5.5.0"),K.privacyToolsL10n=K.privacyToolsL10n||{noDataFound:"",foundAndRemoved:"",noneRemoved:"",someNotRemoved:"",removalError:"",emailSent:"",noExportFile:"",exportError:""},K.privacyToolsL10n=e("privacyToolsL10n",K.privacyToolsL10n,"5.5.0"),K.authcheckL10n={beforeunload:""},K.authcheckL10n=K.authcheckL10n||e("authcheckL10n",K.authcheckL10n,"5.5.0"),K.tagsl10n={noPerm:"",broken:""},K.tagsl10n=K.tagsl10n||e("tagsl10n",K.tagsl10n,"5.5.0"),K.adminCommentsL10n=K.adminCommentsL10n||{hotkeys_highlight_first:{alternative:"window.adminCommentsSettings.hotkeys_highlight_first",func:function(){return K.adminCommentsSettings.hotkeys_highlight_first}},hotkeys_highlight_last:{alternative:"window.adminCommentsSettings.hotkeys_highlight_last",func:function(){return K.adminCommentsSettings.hotkeys_highlight_last}},replyApprove:"",reply:"",warnQuickEdit:"",warnCommentChanges:"",docTitleComments:"",docTitleCommentsCount:""},K.adminCommentsL10n=e("adminCommentsL10n",K.adminCommentsL10n,"5.5.0"),K.tagsSuggestL10n=K.tagsSuggestL10n||{tagDelimiter:"",removeTerm:"",termSelected:"",termAdded:"",termRemoved:""},K.tagsSuggestL10n=e("tagsSuggestL10n",K.tagsSuggestL10n,"5.5.0"),K.wpColorPickerL10n=K.wpColorPickerL10n||{clear:"",clearAriaLabel:"",defaultString:"",defaultAriaLabel:"",pick:"",defaultLabel:""},K.wpColorPickerL10n=e("wpColorPickerL10n",K.wpColorPickerL10n,"5.5.0"),K.attachMediaBoxL10n=K.attachMediaBoxL10n||{error:""},K.attachMediaBoxL10n=e("attachMediaBoxL10n",K.attachMediaBoxL10n,"5.5.0"),K.postL10n=K.postL10n||{ok:"",cancel:"",publishOn:"",publishOnFuture:"",publishOnPast:"",dateFormat:"",showcomm:"",endcomm:"",publish:"",schedule:"",update:"",savePending:"",saveDraft:"",private:"",public:"",publicSticky:"",password:"",privatelyPublished:"",published:"",saveAlert:"",savingText:"",permalinkSaved:""},K.postL10n=e("postL10n",K.postL10n,"5.5.0"),K.inlineEditL10n=K.inlineEditL10n||{error:"",ntdeltitle:"",notitle:"",comma:"",saved:""},K.inlineEditL10n=e("inlineEditL10n",K.inlineEditL10n,"5.5.0"),K.plugininstallL10n=K.plugininstallL10n||{plugin_information:"",plugin_modal_label:"",ays:""},K.plugininstallL10n=e("plugininstallL10n",K.plugininstallL10n,"5.5.0"),K.navMenuL10n=K.navMenuL10n||{noResultsFound:"",warnDeleteMenu:"",saveAlert:"",untitled:""},K.navMenuL10n=e("navMenuL10n",K.navMenuL10n,"5.5.0"),K.commentL10n=K.commentL10n||{submittedOn:"",dateFormat:""},K.commentL10n=e("commentL10n",K.commentL10n,"5.5.0"),K.setPostThumbnailL10n=K.setPostThumbnailL10n||{setThumbnail:"",saving:"",error:"",done:""},K.setPostThumbnailL10n=e("setPostThumbnailL10n",K.setPostThumbnailL10n,"5.5.0"),K.uiAutocompleteL10n=K.uiAutocompleteL10n||{noResults:"",oneResult:"",manyResults:"",itemSelected:""},K.uiAutocompleteL10n=e("uiAutocompleteL10n",K.uiAutocompleteL10n,"6.5.0"),K.adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}},K.columns={init:function(){var n=this;U(".hide-column-tog","#adv-settings").on("click",function(){var e=U(this),t=e.val();e.prop("checked")?n.checked(t):n.unchecked(t),columns.saveManageColumnsState()})},saveManageColumnsState:function(){var e=this.hidden();U.post(ajaxurl,{action:"hidden-columns",hidden:e,screenoptionnonce:U("#screenoptionnonce").val(),page:pagenow},function(){wp.a11y.speak(Q("Screen Options updated."))})},checked:function(e){U(".column-"+e).removeClass("hidden"),this.colSpanChange(1)},unchecked:function(e){U(".column-"+e).addClass("hidden"),this.colSpanChange(-1)},hidden:function(){return U(".manage-column[id]").filter(".hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return U(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(e,e.length-5)}).get().join(",")}},colSpanChange:function(e){var t=U("table").find(".colspanchange");t.length&&(e=parseInt(t.attr("colspan"),10)+e,t.attr("colspan",e.toString()))}},U(function(){columns.init()}),K.validateForm=function(e){return!U(e).find(".form-required").filter(function(){return""===U(":input:visible",this).val()}).addClass("form-invalid").find(":input:visible").on("change",function(){U(this).closest(".form-invalid").removeClass("form-invalid")}).length},K.showNotice={warn:function(){return!!confirm(Q("You are about to permanently delete these items from your site.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete."))},note:function(e){alert(e)}},K.screenMeta={element:null,toggles:null,page:null,init:function(){this.element=U("#screen-meta"),this.toggles=U("#screen-meta-links").find(".show-settings"),this.page=U("#wpcontent"),this.toggles.on("click",this.toggleEvent)},toggleEvent:function(){var e=U("#"+U(this).attr("aria-controls"));e.length&&(e.is(":visible")?screenMeta.close(e,U(this)):screenMeta.open(e,U(this)))},open:function(e,t){U("#screen-meta-links").find(".screen-meta-toggle").not(t.parent()).css("visibility","hidden"),e.parent().show(),e.slideDown("fast",function(){e.removeClass("hidden").trigger("focus"),t.addClass("screen-meta-active").attr("aria-expanded",!0)}),W.trigger("screen:options:open")},close:function(e,t){e.slideUp("fast",function(){t.removeClass("screen-meta-active").attr("aria-expanded",!1),U(".screen-meta-toggle").css("visibility",""),e.parent().hide(),e.addClass("hidden")}),W.trigger("screen:options:close")}},U(".contextual-help-tabs").on("click","a",function(e){var t=U(this);if(e.preventDefault(),t.is(".active a"))return!1;U(".contextual-help-tabs .active").removeClass("active"),t.parent("li").addClass("active"),e=U(t.attr("href")),U(".help-tab-content").not(e).removeClass("active").hide(),e.addClass("active").show()});var t,a=!1,s=U("#permalink_structure"),n=U(".permalink-structure input:radio"),l=U("#custom_selection"),o=U(".form-table.permalink-structure .available-structure-tags button");function c(e){-1!==s.val().indexOf(e.text().trim())?(e.attr("data-label",e.attr("aria-label")),e.attr("aria-label",e.attr("data-used")),e.attr("aria-pressed",!0),e.addClass("active")):e.attr("data-label")&&(e.attr("aria-label",e.attr("data-label")),e.attr("aria-pressed",!1),e.removeClass("active"))}function d(){W.trigger("wp-window-resized")}n.on("change",function(){"custom"!==this.value&&(s.val(this.value),o.each(function(){c(U(this))}))}),s.on("click input",function(){l.prop("checked",!0)}),s.on("focus",function(e){a=!0,U(this).off(e)}),o.each(function(){c(U(this))}),s.on("change",function(){o.each(function(){c(U(this))})}),o.on("click",function(){var e=s.val(),t=s[0].selectionStart,n=s[0].selectionEnd,i=U(this).text().trim(),o=U(this).hasClass("active")?U(this).attr("data-removed"):U(this).attr("data-added");-1!==e.indexOf(i)?(e=e.replace(i+"/",""),s.val("/"===e?"":e),U("#custom_selection_updated").text(o),c(U(this))):(a||0!==t||0!==n||(t=n=e.length),l.prop("checked",!0),"/"!==e.substr(0,t).substr(-1)&&(i="/"+i),"/"!==e.substr(n,1)&&(i+="/"),s.val(e.substr(0,t)+i+e.substr(n)),U("#custom_selection_updated").text(o),c(U(this)),a&&s[0].setSelectionRange&&(n=(e.substr(0,t)+i).length,s[0].setSelectionRange(n,n),s.trigger("focus")))}),U(function(){var n,i,o,a,e,t,s,r=!1,l=U("input.current-page"),I=l.val(),c=/iPhone|iPad|iPod/.test(navigator.userAgent),z=-1!==navigator.userAgent.indexOf("Android"),d=U("#adminmenuwrap"),u=U("#wpwrap"),p=U("#adminmenu"),m=U("#wp-responsive-overlay"),h=U("#wp-toolbar"),f=h.find('a[aria-haspopup="true"]'),g=U(".meta-box-sortables"),v=!1,b=U("#wpadminbar"),w=0,y=!1,k=!1,C=0,L=!1,x={window:$.height(),wpwrap:u.height(),adminbar:b.height(),menu:d.height()},S=U(".wp-header-end");function A(e){var t=e.find(".wp-submenu"),e=e.offset().top,n=$.scrollTop(),i=e-n-30,e=e+t.height()+1,o=60+e-u.height(),n=$.height()+n-50;1<(o=i<(o=n<e-o?e-n:o)?i:o)&&U("#wp-admin-bar-menu-toggle").is(":hidden")?t.css("margin-top","-"+o+"px"):t.css("margin-top","")}function E(){U(".notice.is-dismissible").each(function(){var t=U(this),e=U('<button type="button" class="notice-dismiss"><span class="screen-reader-text"></span></button>');t.find(".notice-dismiss").length||(e.find(".screen-reader-text").text(Q("Dismiss this notice.")),e.on("click.wp-dismiss-notice",function(e){e.preventDefault(),t.fadeTo(100,0,function(){t.slideUp(100,function(){t.remove()})})}),t.append(e))})}function P(e,t,n,i){n.on("change",function(){e.val(U(this).val())}),e.on("change",function(){n.val(U(this).val())}),i.on("click",function(e){e.preventDefault(),e.stopPropagation(),t.trigger("click")})}p.on("click.wp-submenu-head",".wp-submenu-head",function(e){U(e.target).parent().siblings("a").get(0).click()}),U("#collapse-button").on("click.collapse-menu",function(){var e=q()||961;U("#adminmenu div.wp-submenu").css("margin-top",""),s=e<=960?H.hasClass("auto-fold")?(H.removeClass("auto-fold").removeClass("folded"),setUserSetting("unfold",1),setUserSetting("mfold","o"),"open"):(H.addClass("auto-fold"),setUserSetting("unfold",0),"folded"):H.hasClass("folded")?(H.removeClass("folded"),setUserSetting("mfold","o"),"open"):(H.addClass("folded"),setUserSetting("mfold","f"),"folded"),W.trigger("wp-collapse-menu",{state:s})}),("ontouchstart"in K||/IEMobile\/[1-9]/.test(navigator.userAgent))&&(H.on((M=c?"touchstart":"click")+".wp-mobile-hover",function(e){p.data("wp-responsive")||U(e.target).closest("#adminmenu").length||p.find("li.opensub").removeClass("opensub")}),p.find("a.wp-has-submenu").on(M+".wp-mobile-hover",function(e){var t=U(this).parent();p.data("wp-responsive")||t.hasClass("opensub")||t.hasClass("wp-menu-open")&&!(t.width()<40)||(e.preventDefault(),A(t),p.find("li.opensub").removeClass("opensub"),t.addClass("opensub"))})),c||z||(p.find("li.wp-has-submenu").hoverIntent({over:function(){var e=U(this),t=e.find(".wp-submenu"),t=parseInt(t.css("top"),10);isNaN(t)||-5<t||p.data("wp-responsive")||(A(e),p.find("li.opensub").removeClass("opensub"),e.addClass("opensub"))},out:function(){p.data("wp-responsive")||U(this).removeClass("opensub").find(".wp-submenu").css("margin-top","")},timeout:200,sensitivity:7,interval:90}),p.on("focus.adminmenu",".wp-submenu a",function(e){p.data("wp-responsive")||U(e.target).closest("li.menu-top").addClass("opensub")}).on("blur.adminmenu",".wp-submenu a",function(e){p.data("wp-responsive")||U(e.target).closest("li.menu-top").removeClass("opensub")}).find("li.wp-has-submenu.wp-not-current-submenu").on("focusin.adminmenu",function(){A(U(this))})),S.length||(S=U(".wrap h1, .wrap h2").first()),U("div.updated, div.error, div.notice").not(".inline, .below-h2").insertAfter(S),W.on("wp-updates-notice-added wp-plugin-install-error wp-plugin-update-error wp-plugin-delete-error wp-theme-install-error wp-theme-delete-error wp-notice-added",E),screenMeta.init(),H.on("click","tbody > tr > .check-column :checkbox",function(e){if("undefined"!=e.shiftKey){if(e.shiftKey){if(!r)return!0;n=U(r).closest("form").find(":checkbox").filter(":visible:enabled"),i=n.index(r),o=n.index(this),a=U(this).prop("checked"),0<i&&0<o&&i!=o&&(i<o?n.slice(i,o):n.slice(o,i)).prop("checked",function(){return!!U(this).closest("tr").is(":visible")&&a})}var t=U(r=this).closest("tbody").find("tr").find(":checkbox").filter(":visible:enabled").not(":checked");U(this).closest("table").children("thead, tfoot").find(":checkbox").prop("checked",function(){return 0===t.length})}return!0}),H.on("click.wp-toggle-checkboxes","thead .check-column :checkbox, tfoot .check-column :checkbox",function(e){var t=U(this),n=t.closest("table"),i=t.prop("checked"),o=e.shiftKey||t.data("wp-toggle");n.children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!U(this).is(":hidden,:disabled")&&(o?!U(this).prop("checked"):!!i)}),n.children("thead, tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){return!o&&!!i})}),P(U("#bulk-action-selector-top"),U("#doaction"),U("#bulk-action-selector-bottom"),U("#doaction2")),P(U("#new_role"),U("#changeit"),U("#new_role2"),U("#changeit2"));var T,_,M;function D(){T.prop("disabled",""===_.map(function(){return U(this).val()}).get().join(""))}function R(e){var t=$.scrollTop(),e=!e||"scroll"!==e.type;if(!c&&!p.data("wp-responsive"))if(x.menu+x.adminbar<x.window||x.menu+x.adminbar+20>x.wpwrap)O();else{if(L=!0,x.menu+x.adminbar>x.window){if(t<0)return void(y||(k=!(y=!0),d.css({position:"fixed",top:"",bottom:""})));if(t+x.window>W.height()-1)return void(k||(y=!(k=!0),d.css({position:"fixed",top:"",bottom:0})));w<t?y?(y=!1,(C=d.offset().top-x.adminbar-(t-w))+x.menu+x.adminbar<t+x.window&&(C=t+x.window-x.menu-x.adminbar),d.css({position:"absolute",top:C,bottom:""})):!k&&d.offset().top+x.menu<t+x.window&&(k=!0,d.css({position:"fixed",top:"",bottom:0})):t<w?k?(k=!1,(C=d.offset().top-x.adminbar+(w-t))+x.menu>t+x.window&&(C=t),d.css({position:"absolute",top:C,bottom:""})):!y&&d.offset().top>=t+x.adminbar&&(y=!0,d.css({position:"fixed",top:"",bottom:""})):e&&(y=k=!1,0<(C=t+x.window-x.menu-x.adminbar-1)?d.css({position:"absolute",top:C,bottom:""}):O())}w=t}}function B(){x={window:$.height(),wpwrap:u.height(),adminbar:b.height(),menu:d.height()}}function O(){!c&&L&&(y=k=L=!1,d.css({position:"",top:"",bottom:""}))}function j(){B(),p.data("wp-responsive")?(H.removeClass("sticky-menu"),O()):x.menu+x.adminbar>x.window?(R(),H.removeClass("sticky-menu")):(H.addClass("sticky-menu"),O())}function N(){U(".aria-button-if-js").attr("role","button")}function q(){var e=!1;return e=K.innerWidth?Math.max(K.innerWidth,document.documentElement.clientWidth):e}function F(){var e=q()||961;s=e<=782?"responsive":H.hasClass("folded")||H.hasClass("auto-fold")&&e<=960&&782<e?"folded":"open",W.trigger("wp-menu-state-set",{state:s})}U(".bulkactions").parents("form").on("submit",function(e){var t=!(!e.originalEvent||!e.originalEvent.submitter)&&e.originalEvent.submitter.name,n=this.querySelector("#current-page-selector");if(!n||n.defaultValue===n.value){n={bulk_action:K.bulkActionObserverIds.bulk_action,changeit:K.bulkActionObserverIds.changeit};if(Object.keys(n).includes(t)){n=new FormData(this).get(n[t])||"-1";if("-1"!==n)if(0<this.querySelectorAll('.wp-list-table tbody .check-column input[type="checkbox"]:checked').length)return;e.preventDefault(),e.stopPropagation(),U("html, body").animate({scrollTop:0});var i,o,t=Q("-1"!==n?"Please select at least one item to perform this action on.":"Please select a bulk action to perform.");n=U((e={id:"-1"!==n?"no-items-selected":"no-bulk-action-selected",type:"error",message:t,dismissible:!0}).selector),o=U(".wp-header-end"),delete e.selector,i=e.dismissible&&!0===e.dismissible?" is-dismissible":"",i='<div id="'+e.id+'" class="notice notice-'+e.type+i+'"><p>'+e.message+"</p></div>",(n=n.length?n:U("#"+e.id)).length?n.replaceWith(i):o.length?o.after(i):"customize"===pagenow?U(".customize-themes-notifications").append(i):U(".wrap").find("> h1").after(i),W.trigger("wp-notice-added"),wp.a11y.speak(t)}}}),U("#wpbody-content").on({focusin:function(){clearTimeout(e),t=U(this).find(".row-actions"),U(".row-actions").not(this).removeClass("visible"),t.addClass("visible")},focusout:function(){e=setTimeout(function(){t.removeClass("visible")},30)}},".table-view-list .has-row-actions"),U("tbody").on("click",".toggle-row",function(){U(this).closest("tr").toggleClass("is-expanded")}),U("#default-password-nag-no").on("click",function(){return setUserSetting("default_password_nag","hide"),U("div.default-password-nag").hide(),!1}),U("#newcontent").on("keydown.wpevent_InsertTab",function(e){var t,n,i,o,a=e.target;27==e.keyCode?(e.preventDefault(),U(a).data("tab-out",!0)):9!=e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||(U(a).data("tab-out")?U(a).data("tab-out",!1):(t=a.selectionStart,n=a.selectionEnd,i=a.value,document.selection?(a.focus(),document.selection.createRange().text="\t"):0<=t&&(o=this.scrollTop,a.value=i.substring(0,t).concat("\t",i.substring(n)),a.selectionStart=a.selectionEnd=t+1,this.scrollTop=o),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()))}),l.length&&l.closest("form").on("submit",function(){-1==U('select[name="action"]').val()&&l.val()==I&&l.val("1")}),U('.search-box input[type="search"], .search-box input[type="submit"]').on("mousedown",function(){U('select[name^="action"]').val("-1")}),U("#contextual-help-link, #show-settings-link").on("focus.scroll-into-view",function(e){e.target.scrollIntoViewIfNeeded&&e.target.scrollIntoViewIfNeeded(!1)}),(M=U("form.wp-upload-form")).length&&(T=M.find('input[type="submit"]'),_=M.find('input[type="file"]'),D(),_.on("change",D)),c||($.on("scroll.pin-menu",R),W.on("tinymce-editor-init.pin-menu",function(e,t){t.on("wp-autoresize",B)})),K.wpResponsive={init:function(){var e=this;this.maybeDisableSortables=this.maybeDisableSortables.bind(this),W.on("wp-responsive-activate.wp-responsive",function(){e.activate(),e.toggleAriaHasPopup("add")}).on("wp-responsive-deactivate.wp-responsive",function(){e.deactivate(),e.toggleAriaHasPopup("remove")}),U("#wp-admin-bar-menu-toggle a").attr("aria-expanded","false"),U("#wp-admin-bar-menu-toggle").on("click.wp-responsive",function(e){e.preventDefault(),b.find(".hover").removeClass("hover"),u.toggleClass("wp-responsive-open"),u.hasClass("wp-responsive-open")?(U(this).find("a").attr("aria-expanded","true"),U("#adminmenu a:first").trigger("focus")):U(this).find("a").attr("aria-expanded","false")}),U(document).on("click",function(e){var t;u.hasClass("wp-responsive-open")&&document.hasFocus()&&(t=U.contains(U("#wp-admin-bar-menu-toggle")[0],e.target),e=U.contains(U("#adminmenuwrap")[0],e.target),t||e||U("#wp-admin-bar-menu-toggle").trigger("click.wp-responsive"))}),U(document).on("keyup",function(e){var n,i,o=U("#wp-admin-bar-menu-toggle")[0];u.hasClass("wp-responsive-open")&&(27===e.keyCode?(U(o).trigger("click.wp-responsive"),U(o).find("a").trigger("focus")):9===e.keyCode&&(n=U("#adminmenuwrap")[0],i=e.relatedTarget||document.activeElement,setTimeout(function(){var e=U.contains(o,i),t=U.contains(n,i);e||t||U(o).trigger("click.wp-responsive")},10)))}),p.on("click.wp-responsive","li.wp-has-submenu > a",function(e){var t;p.data("wp-responsive")&&(t="false"===U(this).attr("aria-expanded")?"true":"false",U(this).parent("li").toggleClass("selected"),U(this).attr("aria-expanded",t),U(this).trigger("focus"),e.preventDefault())}),e.trigger(),W.on("wp-window-resized.wp-responsive",this.trigger.bind(this)),$.on("load.wp-responsive",this.maybeDisableSortables),W.on("postbox-toggled",this.maybeDisableSortables),U("#screen-options-wrap input").on("click",this.maybeDisableSortables)},maybeDisableSortables:function(){(-1<navigator.userAgent.indexOf("AppleWebKit/")?$.width():K.innerWidth)<=782||g.find(".ui-sortable-handle:visible").length<=1&&jQuery(".columns-prefs-1 input").prop("checked")?this.disableSortables():this.enableSortables()},activate:function(){j(),H.hasClass("auto-fold")||H.addClass("auto-fold"),p.data("wp-responsive",1),this.disableSortables()},deactivate:function(){j(),p.removeData("wp-responsive"),this.maybeDisableSortables()},toggleAriaHasPopup:function(e){var t=p.find("[data-ariahaspopup]");"add"===e?t.each(function(){U(this).attr("aria-haspopup","menu").attr("aria-expanded","false")}):t.each(function(){U(this).removeAttr("aria-haspopup").removeAttr("aria-expanded")})},trigger:function(){var e=q();e&&(e<=782?v||(W.trigger("wp-responsive-activate"),v=!0):v&&(W.trigger("wp-responsive-deactivate"),v=!1),e<=480?this.enableOverlay():this.disableOverlay(),this.maybeDisableSortables())},enableOverlay:function(){0===m.length&&(m=U('<div id="wp-responsive-overlay"></div>').insertAfter("#wpcontent").hide().on("click.wp-responsive",function(){h.find(".menupop.hover").removeClass("hover"),U(this).hide()})),f.on("click.wp-responsive",function(){m.show()})},disableOverlay:function(){f.off("click.wp-responsive"),m.hide()},disableSortables:function(){if(g.length)try{g.sortable("disable"),g.find(".ui-sortable-handle").addClass("is-non-sortable")}catch(e){}},enableSortables:function(){if(g.length)try{g.sortable("enable"),g.find(".ui-sortable-handle").removeClass("is-non-sortable")}catch(e){}}},U(document).on("ajaxComplete",function(){N()}),W.on("wp-window-resized.set-menu-state",F),W.on("wp-menu-state-set wp-collapse-menu",function(e,t){var n,i=U("#collapse-button"),t="folded"===t.state?(n="false",Q("Expand Main menu")):(n="true",Q("Collapse Main menu"));i.attr({"aria-expanded":n,"aria-label":t})}),K.wpResponsive.init(),j(),F(),E(),N(),W.on("wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu",j),U(".wp-initial-focus").trigger("focus"),H.on("click",".js-update-details-toggle",function(){var e=U(this).closest(".js-update-details"),t=U("#"+e.data("update-details"));t.hasClass("update-details-moved")||t.insertAfter(e).addClass("update-details-moved"),t.toggle(),U(this).attr("aria-expanded",t.is(":visible"))})}),U(function(e){var t,n;H.hasClass("update-php")&&(t=e("a.update-from-upload-overwrite"),n=e(".update-from-upload-expired"),t.length)&&n.length&&K.setTimeout(function(){t.hide(),n.removeClass("hidden"),K.wp&&K.wp.a11y&&K.wp.a11y.speak(n.text())},714e4)}),$.on("resize.wp-fire-once",function(){K.clearTimeout(t),t=K.setTimeout(d,200)}),"-ms-user-select"in document.documentElement.style&&navigator.userAgent.match(/IEMobile\/10\.0/)&&((n=document.createElement("style")).appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.getElementsByTagName("head")[0].appendChild(n))}(jQuery,window),function(){var e,i={},o={};i.pauseAll=!1,!window.matchMedia||(e=window.matchMedia("(prefers-reduced-motion: reduce)"))&&!e.matches||(i.pauseAll=!0),i.freezeAnimatedPluginIcons=function(l){function e(){var e=l.width,t=l.height,n=document.createElement("canvas");if(n.width=e,n.height=t,n.className=l.className,l.closest("#update-plugins-table"))for(var i=window.getComputedStyle(l),o=0,a=i.length;o<a;o++){var s=i[o],r=i.getPropertyValue(s);n.style[s]=r}n.getContext("2d").drawImage(l,0,0,e,t),n.setAttribute("aria-hidden","true"),n.setAttribute("role","presentation"),l.parentNode.insertBefore(n,l),l.style.opacity=.01,l.style.width="0px",l.style.height="0px"}l.complete?e():l.addEventListener("load",e,!0)},o.freezeAll=function(){for(var e=document.querySelectorAll(".plugin-icon, #update-plugins-table img"),t=0;t<e.length;t++)/\.gif(?:\?|$)/i.test(e[t].src)&&i.freezeAnimatedPluginIcons(e[t])},!0===i.pauseAll&&o.freezeAll(),e=jQuery,"plugin-install"===window.pagenow&&e(document).ajaxComplete(function(e,t,n){n.data&&"string"==typeof n.data&&n.data.includes("action=search-install-plugins")&&(window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)").matches&&o.freezeAll():!0===i.pauseAll&&o.freezeAll())})}(),function(){let{_n:s,sprintf:r}=wp.i18n;const l=document.querySelector(".delete-and-reassign-users-form");if(l&&l.querySelector('input[type="radio"]')){const c="delete-users-error-summary";function o(e){return""===e.value||"-1"===e.value}function a(e){var t=e.closest("fieldset"),t=t?t.querySelector("legend"):null,n=[],e=(t&&n.push(t.textContent.trim()),e.previousElementSibling);return e&&e!==t&&e.textContent.trim()&&n.push(e.textContent.trim()),n.join(" \u2013 ")}function t(e){var t,n=function(){const i=[];return l.querySelectorAll("fieldset ul").forEach(function(e){var t,n=e.querySelectorAll('input[type="radio"]');n.length&&((t=e.querySelector('input[type="radio"]:checked'))?"reassign"===t.value&&(t=e.querySelector("select"))&&o(t)&&i.push({target:t,label:a(e)}):i.push({target:n[0],label:a(e)}))}),i}();return n.length?(t=function(e){let t=document.getElementById(c);t||((t=document.createElement("div")).id=c,t.className="notice notice-error",t.setAttribute("tabindex","-1"),n=(i=l.querySelector(".wrap")||l.closest(".wrap")||l).querySelector("h1"),i.insertBefore(t,n?n.nextSibling:i.firstChild));var n=e.length,i=r(s("%s content decision is still required before you can delete.","%s content decisions are still required before you can delete.",n),n),n=(t.textContent="",l.querySelectorAll("[aria-invalid]").forEach(function(e){e.removeAttribute("aria-invalid")}),document.createElement("p")),o=document.createElement("strong");o.textContent=i,n.appendChild(o),t.appendChild(n);const a=document.createElement("ul");return e.forEach(function(t){var e=document.createElement("li"),n=document.createElement("a");n.href="#"+t.target.id,n.textContent=t.label,n.addEventListener("click",function(e){e.preventDefault(),t.target.focus()}),e.appendChild(n),a.appendChild(e),t.target.setAttribute("aria-invalid","true")}),t.appendChild(a),i}(n),e&&(document.getElementById(c).focus(),window.wp)&&window.wp.a11y&&window.wp.a11y.speak(t,"assertive"),n.length):((e=document.getElementById(c))&&e.remove(),l.querySelectorAll("[aria-invalid]").forEach(function(e){e.removeAttribute("aria-invalid")}),0)}l.querySelectorAll("select").forEach(function(e){e.addEventListener("change",function(e){var t=e.target.closest("li"),t=t?t.querySelector('input[type="radio"]'):null;t&&(t.checked=!o(e.target))})}),l.addEventListener("submit",function(e){0<t(!0)&&e.preventDefault()}),l.addEventListener("change",function(){document.getElementById(c)&&t(!1)})}}();