!function(F,K){K.wp=K.wp||{},K.wp.pressThis=new function(){var r,l,d,e,c=F(K),p=F(document),u=!1,s=document.createElement("textarea"),h=!1,a=K.wpPressThisConfig||{},f=K.wpPressThisData||{},t=128,g=!1,m=[],v="is-off-screen",C="is-hidden",b=v+" "+C,n=/iPad|iPod|iPhone/.test(K.navigator.userAgent),x=F("#pressthis"),i=x[0],o=600,y=0,w=void 0!==(e=document.documentElement.style).transition?"transitionend":void 0!==e.WebkitTransition&&"webkitTransitionEnd";function k(e){return e&&K.pressThisL10n?K.pressThisL10n[e]||e:e||""}function T(e){return(e=e||"").replace(/|$)/g,"").replace(/<(script|style)[^>]*>[\s\S]*?(<\/\1>|$)/gi,"").replace(/<\/?[a-z][\s\S]*?(>|$)/gi,"")}function E(e){return e=F.trim(e||""),/^(?:https?:)?\/\//.test(e)?(e=T(e)).replace(/["\\]+/g,""):""}function O(e){r&&!r.isHidden()||(e="reset"===e||y&&y>i.value.length,i.style.height,e?(e=K.pageYOffset,i.style.height="auto",i.style.height=Math.max(i.scrollHeight,o)+"px",K.scrollTo(K.pageXOffset,e)):parseInt(i.style.height,10)").text(e.attr("alt")))}),function(e){var t=T(e);try{s.innerHTML=t,t=T(s.value)}catch(e){}return t}(e.text())}function P(){var s=F("#pressthis-form"),a=F('');r&&r.save(),F("#post_title").val(D()),K.tagBox&&F("div.tagsdiv").each(function(){K.tagBox.flushTags(this,!1,1)}),F(".categories-select .category").each(function(e,t){t=F(t);t.hasClass("selected")&&s.append(a.clone().val(t.attr("data-term-id")||""))})}function B(e){u=!1,F(".spinner").addClass("is-active"),F(".post-actions button").attr("disabled","disabled"),"publish"===e&&F("#post_status").val("publish"),P(),e=F("#pressthis-form").serialize(),F.ajax({type:"post",url:K.ajaxurl,data:e}).always(function(){F(".spinner").removeClass("is-active"),F(".post-actions button").removeAttr("disabled"),F("div.alerts").empty(),F(".publish-button").removeClass("is-saving")}).done(function(t){if(t.success){if(t.data.redirect)if(K.opener&&(a.redirInParent||t.data.force))try{K.opener.location.href=t.data.redirect,K.setTimeout(function(){K.self.close()},200)}catch(e){K.location.href=t.data.redirect}else K.location.href=t.data.redirect}else $(t.data.errorMessage)}).fail(function(){$(k("serverError"))})}function R(){var e=F("#new-category").val();e&&(e={action:"press-this-add-category",post_id:F("#post_ID").val()||0,name:e,new_cat_nonce:F("#_ajax_nonce-add-category").val()||"",parent:F("#new-category-parent").val()||0},F.post(K.ajaxurl,e,function(e){var a,n,i;e.success?(i=F("ul.categories-select"),F.each(e.data,function(e,t){var s=F("
  • ").append(F('