if("undefined"==typeof console){console={log:function(t){},debug:function(t){}}}var Gravatar={profile_stack:{},profile_map:{},overTimeout:false,outTimeout:false,stopOver:false,active_grav:false,active_hash:false,active_id:false,active_grav_clone:false,profile_cb:null,stats_queue:[],throbber:null,has_bg:false,disabled:false,url_prefix:"http://en",supportsPassiveEvents:false,testSupportsPassiveEvents:function(){try{var t=Object.defineProperty({},"passive",{get:function(){Gravatar.supportsPassiveEvents=true}});addEventListener("testPassive",null,t);removeEventListener("testPassive",null,t)}catch(t){}},disable:function(){Gravatar.disabled=true;Gravatar.hide_card();var t=new Date(2100,1,1,1,1,1);Gravatar.stat("disable");if(-1==window.location.host.search(/wordpress.com/i)){document.cookie="nohovercard=1; expires="+t.toUTCString()+";"}else{document.cookie="nohovercard=1; expires="+t.toUTCString()+"; domain=.wordpress.com; path=/"}},mouseOut:function(t){t.stopImmediatePropagation();Gravatar.stopOver=true;Gravatar.outTimeout=setTimeout(function(){Gravatar.hide_card()},300)},init:function(t,e){Gravatar.testSupportsPassiveEvents();var a=document.cookie.split(";"),r,i;for(r=0;rwindow.innerWidth+o){v=r.left-f+s+17;u="pos-left"}var g=n*.25;a.classList.remove("pos-right","pos-left","hidden");a.classList.add(u);a.style.top=h-g+"px";a.style.left=v+"px";var m=n/2;m=Math.min(m,d/2-6,53);if(this.has_bg){m=m-8}m=Math.max(m,0);var _=document.querySelector("#"+e+" .grav-cardarrow");_.style.height=2*n+g+"px";_.style.backgroundPosition="0px "+m+"px";if("pos-right"==u){_.style.right="auto";_.style.left="-7px"}else{_.style.right="-10px";_.style.left="auto"}}Gravatar.fadeIn(a)},build_card:function(t,e){function a(t){var e=0,a;for(a in t){if(t.hasOwnProperty(a)){e++}}return e}GProfile.init(e);var r=GProfile.get("urls");var i=GProfile.get("photos");var o=GProfile.get("accounts");var s=100;if(a(r)>3){s+=90}else{s+=10+20*a(r)}if(a(o)>0){s+=30}var n=GProfile.get("aboutMe");n=n.replace(/<[^>]+>/gi,"");n=n.toString().substr(0,s);if(s==n.length){n+=''}var l=["grav-inner"];if(Gravatar.my_hash&&t==Gravatar.my_hash){l.push("grav-is-user");if(!n.length){n="

Want a better profile? Click here.

"}}if(n.length){l.push("gcard-about")}name=GProfile.get("displayName");if(!name.length){name=GProfile.get("preferredUsername")}var c='
\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t \t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t

'+name+'

\t\t\t\t\t\t\t\t

'+GProfile.get("currentLocation")+'

\t\t\t\t\t\t\t\t

'+n+'

\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\tView Complete Profile \t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t

Turn off hovercards

\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t \t\t\t\t\t
';document.body.insertAdjacentHTML("beforeend",c);var f=document.querySelector("#profile-"+t+" .grav-inner");for(var d=0;d'}else{var o=Gravatar.closest(this.active_grav,"a");i.appendChild(o.cloneNode(false))}this.active_grav_clone.classList.add("grav-tilt");this.active_grav_clone.style.borderBottomWidth=this.active_grav.getBoundingClientRect().height/5+"px";var s=i.firstChild;s.appendChild(this.active_grav_clone);s.classList.add("grav-tilt-parent");s.style.top=a+"px";s.style.left=r+"px";document.body.appendChild(s);this.active_grav_clone.classList.remove("grav-hashed")},untilt_gravatar:function(){var t=document.querySelectorAll("img.grav-clone, a.grav-clone-a");for(var e=0;e.';Gravatar.throbber=t.firstChild}document.body.appendChild(Gravatar.throbber);var e=Gravatar.getOffsets(document.querySelector("#"+Gravatar.active_id))||{left:0,top:0};Gravatar.throbber.style.top=e.top+2+"px";Gravatar.throbber.style.left=e.left+1+"px"},hide_throbber:function(){if(!Gravatar.throbber){return}if(Gravatar.throbber.remove){Gravatar.throbber.remove()}else{Gravatar.throbber.parentNode&&Gravatar.throbber.parentNode.removeChild(Gravatar.throbber)}},closest:function(t,e){if(t.closest){return t.closest(e)}var a=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var r=t;do{var i=a.bind(r);if(i(e)){return r}r=r.parentElement||r.parentNode}while(r!==null&&r.nodeType===1);return null},getOffsets:function(t){if(!t){return null}var e=window.pageXOffset||document.documentElement.scrollLeft||0;var a=window.pageYOffset||document.documentElement.scrollTop||0;var r=t.getBoundingClientRect();return{left:r.left+e,top:r.top+a}},afterAnimation:function(e,a,r){if(e&&r){var i=false;var o=function(t){if(t&&t.type==="transitionend"&&t.propertyName!==a){return}if(!i){i=true;r()}if(e){e.removeEventListener("transitionend",o)}};e.addEventListener("transitionend",o);setTimeout(o,200)}},fadeIn:function(t,e){t.classList.remove("hidden");t.classList.add("fadeout");requestAnimationFrame(function(){requestAnimationFrame(function(){t.classList.remove("fadeout");t.classList.add("fading","fadein");Gravatar.afterAnimation(t,"opacity",function(){t.classList.remove("fading","fadein");if(e){e()}})})})},fadeOut:function(t,e){t.classList.add("fadein");requestAnimationFrame(function(){requestAnimationFrame(function(){t.classList.remove("fadein");t.classList.add("fading","fadeout");Gravatar.afterAnimation(t,"opacity",function(){t.classList.remove("fading","fadeout");t.classList.add("hidden");if(e){e()}})})})},fetch_profile_by_email:function(t){return this.fetch_profile_by_hash(this.md5(t.toString().toLowerCase()))},fetch_profile_by_hash:function(t,e){this.profile_map["g"+t]=e;if(this.profile_stack["g"+t]&&"object"==typeof this.profile_stack["g"+t]){return this.profile_stack["g"+t]}this.profile_stack["g"+t]="fetching";Gravatar.stat("fetch");this.load_js(this.url_prefix+".gravatar.com/"+t+".json?callback=Gravatar.fetch_profile_callback",function(){Gravatar.fetch_profile_error(t,e)})},fetch_profile_callback:function(t){if(!t||"object"!=typeof t){return}this.profile_stack["g"+t.entry[0].hash]=t;this.notify(t.entry[0].hash)},fetch_profile_error:function(t,e){Gravatar.stat("profile_404");Gravatar.profile_map["g"+t]=false;var a=document.querySelector("#"+e);var r=a.parentNode;var i=r&&r.parentNode;if(i&&i.querySelector('a[href="http://gravatar.com/'+t+'"]')===r){i.replaceChild(a,r)}if(e==Gravatar.active_id){Gravatar.hide_card()}},listen:function(t,e){if(!this.notify_stack){this.notify_stack={}}t="g"+t;if(!this.notify_stack[t]){this.notify_stack[t]=[]}for(a=0;a";if(!document.querySelector("#gravatar-card-services-css")){new_css+=""}document.head.insertAdjacentHTML("beforeend",new_css)},md5:function(t){return hex_md5(t)},autofill:function(t,e){if(!t.length||-1==t.indexOf("@")){return}this.autofill_map=e;hash=this.md5(t.toString().toLowerCase());if("undefined"==typeof this.profile_stack["g"+hash]){this.listen(hash,"autofill_data");this.fetch_profile_by_hash(hash)}else{this.autofill_data(hash)}},autofill_data:function(t){GProfile.init(this.profile_stack["g"+t]);for(var e in this.autofill_map){var a=document.querySelector("#"+this.autofill_map[e]);switch(e){case"url":link=GProfile.get("urls");url="undefined"!=typeof link[0]?link[0]["value"]:GProfile.get("profileUrl");if(a){a.value=url}break;case"urls":links=GProfile.get("urls");links_str="";for(l=0;l10){Gravatar.send_stats()}},send_stats:function(t){if(!document.images){return}var e=Gravatar.stats_queue;if(!e.length){return}var a=new Date;Gravatar.stats_queue=[];var r="https://pixel.wp.com/g.gif?v=wpcom2&x_grav-hover="+e.join(",")+"&rand="+Math.random().toString()+"-"+a.getTime();var i=new Image(1,1);if(typeof t==="function"){i.onload=t}i.src=r}};var GProfile={data:{},init:function(t){if("fetching"==t){return false}if("undefined"==typeof t.entry[0]){return false}GProfile.data=t.entry[0]},get:function(t){if(-1!=t.indexOf(".")){parts=t.split(/\./);if(GProfile.data[parts[0]]){if(GProfile.data[parts[0]][parts[1]]){return GProfile.data[parts[0]][parts[1]]}for(i=0,s=GProfile.data[parts[0]].length;i>5]|=128<>>9<<4)+14]=e;var a=1732584193;var r=-271733879;var i=-1732584194;var o=271733878;for(var s=0;s16)a=core_md5(a,t.length*chrsz);var r=Array(16),i=Array(16);for(var o=0;o<16;o++){r[o]=a[o]^909522486;i[o]=a[o]^1549556828}var s=core_md5(r.concat(str2binl(e)),512+e.length*chrsz);return core_md5(i.concat(s),512+128)}function safe_add(t,e){var a=(t&65535)+(e&65535);var r=(t>>16)+(e>>16)+(a>>16);return r<<16|a&65535}function bit_rol(t,e){return t<>>32-e}function str2binl(t){var e=Array();var a=(1<>5]|=(t.charCodeAt(r/chrsz)&a)<>5]>>>r%32&a);return e}function binl2hex(t){var e=hexcase?"0123456789ABCDEF":"0123456789abcdef";var a="";for(var r=0;r>2]>>r%4*8+4&15)+e.charAt(t[r>>2]>>r%4*8&15)}return a}function binl2b64(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var a="";for(var r=0;r>2]>>8*(r%4)&255)<<16|(t[r+1>>2]>>8*((r+1)%4)&255)<<8|t[r+2>>2]>>8*((r+2)%4)&255;for(var o=0;o<4;o++){if(r*8+o*6>t.length*32)a+=b64pad;else a+=e.charAt(i>>6*(3-o)&63)}}return a}