!function(I){I.fn.hoverIntent=function(e,t,n){function r(e){o=e.pageX,v=e.pageY}var o,v,i,u,s={interval:100,sensitivity:6,timeout:0},s="object"==typeof e?I.extend(s,e):I.isFunction(t)?I.extend(s,{over:e,out:t,selector:n}):I.extend(s,{over:e,out:e,selector:t}),h=function(e,t){if(t.hoverIntent_t=clearTimeout(t.hoverIntent_t),Math.sqrt((i-o)*(i-o)+(u-v)*(u-v))'),t=commonL10n.dismiss||"";e.find(".screen-reader-text").text(t),e.on("click.wp-dismiss-notice",function(e){e.preventDefault(),n.fadeTo(100,0,function(){n.slideUp(100,function(){n.remove()})})}),n.append(e)})}function N(){c.prop("disabled",""===l.map(function(){return V(this).val()}).get().join(""))}function O(e){var n=H.scrollTop(),e=!e||"scroll"!==e.type;if(!(f||m||g.data("wp-responsive")))if(I.menu+I.adminbarI.wpwrap)W();else{if(A=!0,I.menu+I.adminbar>I.window){if(n<0)return void(T||(D=!(T=!0),v.css({position:"fixed",top:"",bottom:""})));if(n+I.window>B.height()-1)return void(D||(T=!(D=!0),v.css({position:"fixed",top:"",bottom:0})));Mn+I.window&&(E=n),v.css({position:"absolute",top:E,bottom:""})):!T&&v.offset().top>=n+I.adminbar&&(T=!0,v.css({position:"fixed",top:"",bottom:""})):e&&(T=D=!1,0<(E=n+I.window-I.menu-I.adminbar-1)?v.css({position:"absolute",top:E,bottom:""}):W())}M=n}}function P(){I={window:H.height(),wpwrap:w.height(),adminbar:S.height(),menu:v.height()}}function W(){!f&&A&&(T=D=A=!1,v.css({position:"",top:"",bottom:""}))}function L(){P(),g.data("wp-responsive")?(Q.removeClass("sticky-menu"),W()):I.menu+I.adminbar>I.window?(O(),Q.removeClass("sticky-menu")):(Q.addClass("sticky-menu"),W())}function F(){V(".aria-button-if-js").attr("role","button")}function R(){var e=!1;return e=q.innerWidth?Math.max(q.innerWidth,document.documentElement.clientWidth):e}function _(){var e=R()||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;t=V(d).closest("form").find(":checkbox").filter(":visible:enabled"),i=t.index(d),o=t.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(){b.show()})},disableOverlay:function(){C.off("click.wp-responsive"),b.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(){F()}),B.on("wp-window-resized.set-menu-state",_),B.on("wp-menu-state-set wp-collapse-menu",function(e,n){var t=V("#collapse-button"),i="true",o=commonL10n.collapseMenu;"folded"===n.state&&(i="false",o=commonL10n.expandMenu),t.attr({"aria-expanded":i,"aria-label":o})}),q.wpResponsive.init(),L(),_(),j(),z(),F(),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",L),V(".wp-initial-focus").focus()}),H.on("resize.wp-fire-once",function(){q.clearTimeout(e),e=q.setTimeout(t,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); "undefined"!=typeof jQuery?(void 0===jQuery.fn.hoverIntent&&function(u){u.fn.hoverIntent=function(e,t,n){function a(e){o=e.pageX,r=e.pageY}var o,r,s,i,c={interval:100,sensitivity:6,timeout:0},c="object"==typeof e?u.extend(c,e):u.isFunction(t)?u.extend(c,{over:e,out:t,selector:n}):u.extend(c,{over:e,out:e,selector:t}),l=function(e,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),Math.sqrt((s-o)*(s-o)+(i-r)*(i-r)) .ab-item").bind("keydown.adminbar",function(e){var t,n,o;13==e.which&&(n=(t=a(e.target)).closest(".ab-sub-wrapper"),o=t.parent().hasClass("hover"),e.stopPropagation(),e.preventDefault(),(n=!n.length?a("#wpadminbar .quicklinks"):n).find(".menupop").removeClass("hover"),o||t.parent().toggleClass("hover"),t.siblings(".ab-sub-wrapper").find(".ab-item").each(s))}).each(s),a("#wpadminbar .ab-item").bind("keydown.adminbar",function(e){var t;27==e.which&&(t=a(e.target),e.stopPropagation(),e.preventDefault(),t.closest(".hover").removeClass("hover").children(".ab-item").focus(),t.siblings(".ab-sub-wrapper").find(".ab-item").each(s))}),o.click(function(e){"wpadminbar"!=e.target.id&&"wp-admin-bar-top-secondary"!=e.target.id||(o.find("li.menupop.hover").removeClass("hover"),a("html, body").animate({scrollTop:0},"fast"),e.preventDefault())}),a(".screen-reader-shortcut").keydown(function(e){var t;13==e.which&&(t=a(this).attr("href"),-1!=navigator.userAgent.toLowerCase().indexOf("applewebkit")&&t&&"#"==t.charAt(0)&&setTimeout(function(){a(t).focus()},100))}),a("#adminbar-search").on({focus:function(){a("#adminbarsearch").addClass("adminbar-focused")},blur:function(){a("#adminbarsearch").removeClass("adminbar-focused")}}),"sessionStorage"in window&&a("#wp-admin-bar-logout a").click(function(){try{for(var e in sessionStorage)-1!=e.indexOf("wp-autosave-")&&sessionStorage.removeItem(e)}catch(e){}}),navigator.userAgent&&-1===document.body.className.indexOf("no-font-face")&&/Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7|MSIE 7/.test(navigator.userAgent)&&(document.body.className+=" no-font-face")})):function(l,e){function t(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,function(){return n.call(e,window.event)})}function n(e){for(var t,n,o,a,r,s,i=[],c=0;e&&e!=u&&e!=l;)"LI"==e.nodeName.toUpperCase()&&((n=function(e){for(var t=m.length;t--;)if(m[t]&&e==m[t][1])return m[t][0];return!1}(i[i.length]=e))&&clearTimeout(n),e.className=e.className?e.className.replace(d,"")+" hover":"hover",a=e),e=e.parentNode;if(a&&a.parentNode&&(r=a.parentNode)&&"UL"==r.nodeName.toUpperCase())for(t=r.childNodes.length;t--;)(s=r.childNodes[t])!=a&&(s.className=s.className?s.className.replace(f,""):"");for(t=m.length;t--;){for(o=!1,c=i.length;c--;)i[c]==m[t][1]&&(o=!0);o||(m[t][1].className=m[t][1].className?m[t][1].className.replace(d,""):"")}}function o(e){for(;e&&e!=u&&e!=l;)"LI"==e.nodeName.toUpperCase()&&function(e){var t=setTimeout(function(){e.className=e.className?e.className.replace(d,""):""},500);m[m.length]=[t,e]}(e),e=e.parentNode}function a(e){for(var t,n,o,a=e.target||e.srcElement;;){if(!a||a==l||a==u)return;if(a.id&&"wp-admin-bar-get-shortlink"==a.id)break;a=a.parentNode}for(e.preventDefault&&e.preventDefault(),e.returnValue=!1,-1==a.className.indexOf("selected")&&(a.className+=" selected"),t=0,n=a.childNodes.length;t= w2 ) { bitsInBuffer -= w2; tmp = buffer >> bitsInBuffer; result += beta.charAt(tmp); buffer ^= tmp << bitsInBuffer; } ++i; } if ( ! discard && bitsInBuffer > 0 ) { result += beta.charAt( buffer << ( w2 - bitsInBuffer ) ); } return result; } function btoa( plain ) { if ( ! c ) { init(); } plain = code( plain, false, r256, b64, 8, 6 ); return plain + '===='.slice( ( plain.length % 4 ) || 4 ); } function atob( coded ) { var i; if ( ! c ) { init(); } coded = coded.replace( /[^A-Za-z0-9\+\/\=]/g, '' ); coded = String(coded).split('='); i = coded.length; do { --i; coded[i] = code( coded[i], true, r64, a256, 6, 8 ); } while ( i > 0 ); coded = coded.join(''); return coded; } return { atob: atob, btoa: btoa }; })(); return { init: function() { painter = this; selector = $( '#adminmenu .wp-menu-image, #wpadminbar .ab-item' ); this.setColors(); this.findElements(); this.paint(); }, setColors: function( colors ) { if ( typeof colors === 'undefined' && typeof window._wpColorScheme !== 'undefined' ) { colors = window._wpColorScheme; } if ( colors && colors.icons && colors.icons.base && colors.icons.current && colors.icons.focus ) { colorscheme = colors.icons; } }, findElements: function() { selector.each( function() { var $this = $(this), bgImage = $this.css( 'background-image' ); if ( bgImage && bgImage.indexOf( 'data:image/svg+xml;base64' ) != -1 ) { elements.push( $this ); } }); }, paint: function() { // loop through all elements $.each( elements, function( index, $element ) { var $menuitem = $element.parent().parent(); if ( $menuitem.hasClass( 'current' ) || $menuitem.hasClass( 'wp-has-current-submenu' ) ) { // paint icon in 'current' color painter.paintElement( $element, 'current' ); } else { // paint icon in base color painter.paintElement( $element, 'base' ); // set hover callbacks $menuitem.hover( function() { painter.paintElement( $element, 'focus' ); }, function() { // Match the delay from hoverIntent window.setTimeout( function() { painter.paintElement( $element, 'base' ); }, 100 ); } ); } }); }, paintElement: function( $element, colorType ) { var xml, encoded, color; if ( ! colorType || ! colorscheme.hasOwnProperty( colorType ) ) { return; } color = colorscheme[ colorType ]; // only accept hex colors: #101 or #101010 if ( ! color.match( /^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i ) ) { return; } xml = $element.data( 'wp-ui-svg-' + color ); if ( xml === 'none' ) { return; } if ( ! xml ) { encoded = $element.css( 'background-image' ).match( /.+data:image\/svg\+xml;base64,([A-Za-z0-9\+\/\=]+)/ ); if ( ! encoded || ! encoded[1] ) { $element.data( 'wp-ui-svg-' + color, 'none' ); return; } try { if ( 'atob' in window ) { xml = window.atob( encoded[1] ); } else { xml = base64.atob( encoded[1] ); } } catch ( error ) {} if ( xml ) { // replace `fill` attributes xml = xml.replace( /fill="(.+?)"/g, 'fill="' + color + '"'); // replace `style` attributes xml = xml.replace( /style="(.+?)"/g, 'style="fill:' + color + '"'); // replace `fill` properties in `