!function(V,q){var B=V(document),H=V(q),Q=V(document.body);q.adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}},q.columns={init:function(){var n=this;V(".hide-column-tog","#adv-settings").click(function(){var e=V(this),t=e.val();e.prop("checked")?n.checked(t):n.unchecked(t),columns.saveManageColumnsState()})},saveManageColumnsState:function(){var e=this.hidden();V.post(ajaxurl,{action:"hidden-columns",hidden:e,screenoptionnonce:V("#screenoptionnonce").val(),page:pagenow})},checked:function(e){V(".column-"+e).removeClass("hidden"),this.colSpanChange(1)},unchecked:function(e){V(".column-"+e).addClass("hidden"),this.colSpanChange(-1)},hidden:function(){return V(".manage-column[id]").filter(".hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return V(".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=V("table").find(".colspanchange");t.length&&(e=parseInt(t.attr("colspan"),10)+e,t.attr("colspan",e.toString()))}},B.ready(function(){columns.init()}),q.validateForm=function(e){return!V(e).find(".form-required").filter(function(){return""===V(":input:visible",this).val()}).addClass("form-invalid").find(":input:visible").change(function(){V(this).closest(".form-invalid").removeClass("form-invalid")}).length},q.showNotice={warn:function(){var e=commonL10n.warnDelete||"";return!!confirm(e)},note:function(e){alert(e)}},q.screenMeta={element:null,toggles:null,page:null,init:function(){this.element=V("#screen-meta"),this.toggles=V("#screen-meta-links").find(".show-settings"),this.page=V("#wpcontent"),this.toggles.click(this.toggleEvent)},toggleEvent:function(){var e=V("#"+V(this).attr("aria-controls"));e.length&&(e.is(":visible")?screenMeta.close(e,V(this)):screenMeta.open(e,V(this)))},open:function(e,t){V("#screen-meta-links").find(".screen-meta-toggle").not(t.parent()).css("visibility","hidden"),e.parent().show(),e.slideDown("fast",function(){e.focus(),t.addClass("screen-meta-active").attr("aria-expanded",!0)}),B.trigger("screen:options:open")},close:function(e,t){e.slideUp("fast",function(){t.removeClass("screen-meta-active").attr("aria-expanded",!1),V(".screen-meta-toggle").css("visibility",""),e.parent().hide()}),B.trigger("screen:options:close")}},V(".contextual-help-tabs").delegate("a","click",function(e){var t=V(this);if(e.preventDefault(),t.is(".active a"))return!1;V(".contextual-help-tabs .active").removeClass("active"),t.parent("li").addClass("active"),t=V(t.attr("href")),V(".help-tab-content").not(t).removeClass("active").hide(),t.addClass("active").show()});var e,s=!1,a=V("#permalink_structure"),t=V(".permalink-structure input:radio"),r=V("#custom_selection"),n=V(".form-table.permalink-structure .available-structure-tags button");function c(e){-1!==a.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 i(){B.trigger("wp-window-resized")}t.on("change",function(){"custom"!==this.value&&(a.val(this.value),n.each(function(){c(V(this))}))}),a.on("click input",function(){r.prop("checked",!0)}),a.on("focus",function(e){s=!0,V(this).off(e)}),n.each(function(){c(V(this))}),a.on("change",function(){n.each(function(){c(V(this))})}),n.on("click",function(){var e=a.val(),t=a[0].selectionStart,n=a[0].selectionEnd,i=V(this).text().trim(),o=V(this).attr("data-added");if(-1!==e.indexOf(i))return e=e.replace(i+"/",""),a.val("/"===e?"":e),V("#custom_selection_updated").text(o),void c(V(this));s||0!==t||0!==n||(t=n=e.length),r.prop("checked",!0),"/"!==e.substr(0,t).substr(-1)&&(i="/"+i),"/"!==e.substr(n,1)&&(i+="/"),a.val(e.substr(0,t)+i+e.substr(n)),V("#custom_selection_updated").text(o),c(V(this)),s&&a[0].setSelectionRange&&(i=(e.substr(0,t)+i).length,a[0].setSelectionRange(i,i),a.focus())}),B.ready(function(){var n,i,o,s,e,t,a,r,c,l,d=!1,u=V("input.current-page"),p=u.val(),f=/iPhone|iPad|iPod/.test(navigator.userAgent),h=-1!==navigator.userAgent.indexOf("Android"),m=V(document.documentElement).hasClass("ie8"),v=V("#adminmenuwrap"),b=V("#wpwrap"),g=V("#adminmenu"),w=V("#wp-responsive-overlay"),k=V("#wp-toolbar"),C=k.find('a[aria-haspopup="true"]'),x=V(".meta-box-sortables"),y=!1,S=V("#wpadminbar"),M=0,E=!1,T=!1,D=0,A=!1,j={window:H.height(),wpwrap:b.height(),adminbar:S.height(),menu:v.height()},_=V(".wp-header-end");function I(){var e=V("a.wp-has-current-submenu");"folded"===r?e.attr("aria-haspopup","true"):e.attr("aria-haspopup","false")}function O(e){var t=e.find(".wp-submenu"),n=e.offset().top,i=H.scrollTop(),o=n-i-30,e=n+t.height()+1,n=60+e-b.height(),i=H.height()+i-50;1<(n=o<(n=i'),n=commonL10n.dismiss||"";e.find(".screen-reader-text").text(n),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 K(){c.prop("disabled",""===l.map(function(){return V(this).val()}).get().join(""))}function z(e){var t=H.scrollTop(),e=!e||"scroll"!==e.type;if(!(f||m||g.data("wp-responsive")))if(j.menu+j.adminbarj.wpwrap)P();else{if(A=!0,j.menu+j.adminbar>j.window){if(t<0)return void(E||(T=!(E=!0),v.css({position:"fixed",top:"",bottom:""})));if(t+j.window>B.height()-1)return void(T||(E=!(T=!0),v.css({position:"fixed",top:"",bottom:0})));Mt+j.window&&(D=t),v.css({position:"absolute",top:D,bottom:""})):!E&&v.offset().top>=t+j.adminbar&&(E=!0,v.css({position:"fixed",top:"",bottom:""})):e&&(E=T=!1,0<(D=t+j.window-j.menu-j.adminbar-1)?v.css({position:"absolute",top:D,bottom:""}):P())}M=t}}function N(){j={window:H.height(),wpwrap:b.height(),adminbar:S.height(),menu:v.height()}}function P(){!f&&A&&(E=T=A=!1,v.css({position:"",top:"",bottom:""}))}function R(){N(),g.data("wp-responsive")?(Q.removeClass("sticky-menu"),P()):j.menu+j.adminbar>j.window?(z(),Q.removeClass("sticky-menu")):(Q.addClass("sticky-menu"),P())}function W(){V(".aria-button-if-js").attr("role","button")}function L(){var e=!1;return e=q.innerWidth?Math.max(q.innerWidth,document.documentElement.clientWidth):e}function F(){var e=L()||961;r=e<=782?"responsive":Q.hasClass("folded")||Q.hasClass("auto-fold")&&e<=960&&782 tr > .check-column :checkbox",function(e){if("undefined"==e.shiftKey)return!0;if(e.shiftKey){if(!d)return!0;n=V(d).closest("form").find(":checkbox").filter(":visible:enabled"),i=n.index(d),o=n.index(this),s=V(this).prop("checked"),0 a",function(e){g.data("wp-responsive")&&(V(this).parent("li").toggleClass("selected"),e.preventDefault())}),e.trigger(),B.on("wp-window-resized.wp-responsive",V.proxy(this.trigger,this)),H.on("load.wp-responsive",function(){(-1').insertAfter("#wpcontent").hide().on("click.wp-responsive",function(){k.find(".menupop.hover").removeClass("hover"),V(this).hide()})),C.on("click.wp-responsive",function(){w.show()})},disableOverlay:function(){C.off("click.wp-responsive"),w.hide()},disableSortables:function(){if(x.length)try{x.sortable("disable")}catch(e){}},enableSortables:function(){if(x.length)try{x.sortable("enable")}catch(e){}}},V(document).ajaxComplete(function(){W()}),B.on("wp-window-resized.set-menu-state",F),B.on("wp-menu-state-set wp-collapse-menu",function(e,t){var n=V("#collapse-button"),i="true",o=commonL10n.collapseMenu;"folded"===t.state&&(i="false",o=commonL10n.expandMenu),n.attr({"aria-expanded":i,"aria-label":o})}),q.wpResponsive.init(),R(),F(),I(),U(),W(),B.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",R),V(".wp-initial-focus").focus(),Q.on("click",".js-update-details-toggle",function(){var e=V(this).closest(".js-update-details"),t=V("#"+e.data("update-details"));t.hasClass("update-details-moved")||t.insertAfter(e).addClass("update-details-moved"),t.toggle(),V(this).attr("aria-expanded",t.is(":visible"))})}),H.on("resize.wp-fire-once",function(){q.clearTimeout(e),e=q.setTimeout(i,200)}),"-ms-user-select"in document.documentElement.style&&navigator.userAgent.match(/IEMobile\/10\.0/)&&((t=document.createElement("style")).appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.getElementsByTagName("head")[0].appendChild(t))}(jQuery,window);