jQuery(function($) {
    var dataHash = 'internallinksmanager029f6b8e52c';
    $('[data-' + dataHash + ']').on('mousedown', function() {
        var $link = $(this);

        var data = {
            action: 'seo_automated_link_building_track_link',
            link_id: $link.data(dataHash),
            title: $link.text(),
            source_url: location.href,
            destination_url: $link.attr('href'),
        };
        $.post(seoAutomatedLinkBuilding.ajaxUrl, data);
    });
});
;
!function(){function e(){let e,t=this.parentNode,o=arguments.length;if(t)for(o||t.removeChild(this);o--;)e=arguments[o],"object"!=typeof e?e=this.ownerDocument.createTextNode(e):e.parentNode&&e.parentNode.removeChild(e),o?t.insertBefore(e,this.nextSibling):t.replaceChild(e,this)}"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o}),Element.prototype.replaceWith||(Element.prototype.replaceWith=e),CharacterData.prototype.replaceWith||(CharacterData.prototype.replaceWith=e),DocumentType.prototype.replaceWith||(DocumentType.prototype.replaceWith=e),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){let o;const a=this.length;for(t=t||window,o=0;o<a;o++)e.call(t,this[o],o,this)})}(),advads={supports_localstorage(){"use strict";try{return!(!window||void 0===window.localStorage||(window.localStorage.setItem("x","x"),window.localStorage.removeItem("x"),0))}catch(e){return!1}},max_per_session(e,t){let o=1;if(void 0!==t&&0!==parseInt(t)||(t=1),this.cookie_exists(e)){if(this.get_cookie(e)>=t)return!0;o+=parseInt(this.get_cookie(e))}return this.set_cookie(e,o),!1},count_up(e,t){let o=1;this.cookie_exists(e)&&(o+=parseInt(this.get_cookie(e))),this.set_cookie(e,o)},set_cookie_exists:e=>!!get_cookie(e)||(set_cookie(e,"",0),!1),get_cookie(e){let t,o,a,s=document.cookie.split(";");for(t=0;t<s.length;t++)if(o=s[t].substr(0,s[t].indexOf("=")),a=s[t].substr(s[t].indexOf("=")+1),o=o.replace(/^\s+|\s+$/g,""),o===e)return decodeURIComponent(a)},set_cookie(e,t,o,a,s,n){const i=null==o?null:24*o*60*60;this.set_cookie_sec(e,t,i,a,s,n)},set_cookie_sec(e,t,o,a,s,n){const i=new Date;i.setSeconds(i.getSeconds()+parseInt(o)),document.cookie=e+"="+encodeURIComponent(t)+(null==o?"":"; expires="+i.toUTCString())+(null==a?"; path=/":"; path="+a)+(null==s?"":"; domain="+s)+(null==n?"":"; secure")},cookie_exists(e){const t=this.get_cookie(e);return null!==t&&""!==t&&void 0!==t},move(e,t,o){const a=jQuery(e),s=t;if(void 0===o&&(o={}),void 0===o.css&&(o.css={}),void 0===o.method&&(o.method="prependTo"),void 0===o.offset||"right"!==o.offset&&"left"!==o.offset||(o.method="insertAfter"),""===t&&void 0!==o.target&&"wrapper"===o.target){var n="left";void 0!==o.offset&&(n=o.offset),t=this.find_wrapper(e,n)}switch((t=void 0===o.moveintohidden?jQuery(t).filter(":visible"):jQuery(t)).length>1&&console.log("Advanced Ads: element '"+s+"' found "+t.length+" times."),o.method){case"insertBefore":a.insertBefore(t);break;case"insertAfter":a.insertAfter(t);break;case"appendTo":a.appendTo(t);break;default:a.prependTo(t)}},set_parent_relative(e,t){t=void 0!==t?t:{};let o=jQuery(e).parent();t.use_grandparent&&(o=o.parent()),"static"!==o.css("position")&&""!==o.css("position")||o.css("position","relative")},fix_element(e,t){t=void 0!==t?t:{};const o=jQuery(e);t.use_grandparent?this.set_parent_relative(o.parent()):this.set_parent_relative(o),t.is_invisible&&o.show();const a=parseInt(o.offset().top),s=parseInt(o.offset().left);if(t.is_invisible&&o.hide(),"left"===t.offset){const e=jQuery(window).width()-s-o.outerWidth();o.css("position","fixed").css("top",a+"px").css("right",e+"px").css("left","")}else o.css("position","fixed").css("top",a+"px").css("left",s+"px").css("right","")},find_wrapper(e,t){let o;const a=["script",".screen-reader-text",".skip-link",e,"."+advancedAds.frontendPrefix+"entity-placement"].join(", ");return jQuery("body").children().not(a).each(function(e,a){const s=jQuery(a);if("right"===t&&s.offset().left+jQuery(s).width()<jQuery(window).width()||"left"===t&&s.offset().left>0)return"static"!==s.css("position")&&""!==s.css("position")||s.css("position","relative"),o=a,!1}),o},center_fixed_element(e){const t=jQuery(e),o=jQuery(window).width()/2-parseInt(t.css("width"))/2;t.css("left",o+"px")},center_vertically(e){const t=jQuery(e);let o=jQuery(window).height()/2-parseInt(t.css("height"))/2;"fixed"!==t.css("position")&&(o-=topoffset=parseInt(t.offset().top)),t.css("top",o+"px")},close(e){jQuery(e).remove()},wait_for_images(e,t){let o=0;const a=[];e.find('img[src][src!=""]').each(function(){a.push(this.src)}),0===a.length&&t.call(e),jQuery.each(a,function(s,n){const i=new Image;i.src=n;const c="load error";jQuery(i).one(c,function s(n){if(jQuery(this).off(c,s),o++,o==a.length)return t.call(e[0]),!1})})},privacy:{state:"unknown",state_executed:!1,get_state:function(){if("unknown"!==window.advancedAds.privacy.state)return advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(window.advancedAds.privacy.state,!1)),advads.privacy.state;if("custom"===window.advancedAds.privacy["consent-method"]){var e=new RegExp(".*?"+window.advancedAds.privacy["custom-cookie-value"]+"[^;]*?");const t=advads.get_cookie(window.advancedAds.privacy["custom-cookie-name"])||"";advads.privacy.state_executed||(advads.privacy.state_executed=!0,advads.privacy.dispatch_event(t.match(e)?"accepted":"unknown",!0))}advads.privacy.state_executed=!0;var t=0,o=setInterval(function(){switch(181===++t&&clearInterval(o),window.advancedAds.privacy["consent-method"]){case"custom":(advads.get_cookie(window.advancedAds.privacy["custom-cookie-name"])||"").match(e)&&(clearInterval(o),"accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",!0));break;case"iab_tcf_20":if(void 0===window.__tcfapi)return;clearInterval(o),window.__tcfapi("addEventListener",2,function(e,t){if(t&&("tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus||null===e.eventStatus&&void 0!==window.googlefc&&(void 0!==e.purpose||!e.gdprApplies))){const t="useractioncomplete"===e.eventStatus;if(!e.gdprApplies)return void("not_needed"!==advads.privacy.state&&advads.privacy.dispatch_event("not_needed",t));if(e.purpose.consents[1])return void("accepted"!==advads.privacy.state&&advads.privacy.dispatch_event("accepted",t));"rejected"!==advads.privacy.state&&advads.privacy.dispatch_event("rejected",t)}})}},333);return advads.privacy.state},is_adsense_npa_enabled:()=>!window.advancedAds||!window.advancedAds.privacy||!(!window.advancedAds.privacy["show-non-personalized-adsense"]||"custom"!==window.advancedAds.privacy["consent-method"]),dispatch_event(e,t){const o=advads.privacy.state;advads.privacy.state=e,console.log({state:e,previousState:o,userAction:t}),window.advanced_ads_ready_queue.push(function(){document.dispatchEvent(new CustomEvent("advanced_ads_privacy",{detail:{state:e,previousState:o,userAction:t}}))})},is_ad_decoded:e=>null===document.querySelector('script[data-tcf="waiting-for-consent"][data-id="'+e+'"]'),decode_ad(e,t){t="boolean"!=typeof t||t;const o=decodeURIComponent(Array.prototype.map.call(atob(e.textContent),function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));if(!t)return o;e.replaceWith(document.createRange().createContextualFragment(o))}}},window.advanced_ads_ready_queue.push(advads.privacy.get_state),document.addEventListener("advanced_ads_privacy",function(e){"accepted"!==e.detail.state&&"not_needed"!==e.detail.state||e.detail.userAction||"loading"===document.readyState||document.querySelectorAll('script[type="text/plain"][data-tcf="waiting-for-consent"]').forEach(advads.privacy.decode_ad)});;
/*! This file is auto-generated */
window.wpCookies={each:function(e,t,n){var i,s;if(!e)return 0;if(n=n||e,void 0!==e.length){for(i=0,s=e.length;i<s;i++)if(!1===t.call(n,e[i],i,e))return 0}else for(i in e)if(e.hasOwnProperty(i)&&!1===t.call(n,e[i],i,e))return 0;return 1},getHash:function(e){var t,e=this.get(e);return e&&this.each(e.split("&"),function(e){e=e.split("="),(t=t||{})[e[0]]=e[1]}),t},setHash:function(e,t,n,i,s,r){var o="";this.each(t,function(e,t){o+=(o?"&":"")+t+"="+e}),this.set(e,o,n,i,s,r)},get:function(e){var t,n,i=document.cookie,e=e+"=";if(i){if(-1===(n=i.indexOf("; "+e))){if(0!==(n=i.indexOf(e)))return null}else n+=2;return-1===(t=i.indexOf(";",n))&&(t=i.length),decodeURIComponent(i.substring(n+e.length,t))}},set:function(e,t,n,i,s,r){var o=new Date;n="object"==typeof n&&n.toGMTString?n.toGMTString():parseInt(n,10)?(o.setTime(o.getTime()+1e3*parseInt(n,10)),o.toGMTString()):"",document.cookie=e+"="+encodeURIComponent(t)+(n?"; expires="+n:"")+(i?"; path="+i:"")+(s?"; domain="+s:"")+(r?"; secure":"")},remove:function(e,t,n,i){this.set(e,"",-1e3,t,n,i)}},window.getUserSetting=function(e,t){var n=getAllUserSettings();return n.hasOwnProperty(e)?n[e]:void 0!==t?t:""},window.setUserSetting=function(e,t,n){var i,s,r,o;return"object"==typeof userSettings&&(i=userSettings.uid,s=wpCookies.getHash("wp-settings-"+i),r=userSettings.url,o=!!userSettings.secure,e=e.toString().replace(/[^A-Za-z0-9_-]/g,""),t="number"==typeof t?parseInt(t,10):t.toString().replace(/[^A-Za-z0-9_-]/g,""),s=s||{},n?delete s[e]:s[e]=t,wpCookies.setHash("wp-settings-"+i,s,31536e3,r,"",o),wpCookies.set("wp-settings-time-"+i,userSettings.time,31536e3,r,"",o),e)},window.deleteUserSetting=function(e){return setUserSetting(e,"",1)},window.getAllUserSettings=function(){return"object"==typeof userSettings&&wpCookies.getHash("wp-settings-"+userSettings.uid)||{}};;
