!function($){window.blogherads=window.blogherads||{},window.blogherads.adq=window.blogherads.adq||[],window.pmc=window.pmc||{},window.pmc.analytics=window.pmc.analytics||[],window.pmc_ga_event_tracking="object"==typeof window.pmc_ga_event_tracking?window.pmc_ga_event_tracking:{};var device=window.pmc_ga_event_tracking.device||"[D]",events=window.pmc_ga_event_tracking.events||[],pmc_analytics=(window.pmc.event_tracking=function($element,action,category,label,details,url,nonInteraction,pre_events,event_value){var custom_ga_data="",href="",labelDetails="";pre_events=pre_events||[];try{(custom_ga_data=$element.attr("custom-ga-data"))&&(custom_ga_data=JSON.parse(custom_ga_data),Object.entries(custom_ga_data).forEach(function(entry){var key=entry[0],value=entry[1];if(value)switch(value=window.pmc.replace_wild_card($element,value),key){case"category":void 0!==category&&category||(category=value);break;case"details":void 0!==details&&details||(details=value);break;case"label":void 0!==label&&label||(label=value);break;case"product":window.pmc.maybe_set_ga_pre_events(pre_events,["ec:addProduct",value,1]),window.pmc.maybe_set_ga_pre_events(pre_events,["ec:setAction","click",{list:"article"}]);break;case"url":void 0!==url&&url||(url=value)}}))}catch(e){console.log("Custom Tracking Event Error: "+e)}details&&(labelDetails=(labelDetails="string"==typeof details?details:$.trim($element.text()).replace(/(\r?\n|\r)/gm," ").replace(/\s{2,}/g," ")).length?" ("+(labelDetails=labelDetails.substring(0,15))+")":""),label=void 0===label||pmc.is_empty(label)?apply_filters("pmc-google-analytics-tracking-label","",$element):window.pmc.replace_wild_card($element,label),url&&(href="string"==typeof url&&url.length?" "+url:"string"==typeof(href=$element.attr("href"))&&href.length?2===(href=href.split(/\/\/(.+)?/,2)).length?" "+href[1]:" "+href[0]:""),category=window.pmc.replace_wild_card($element,category),pre_events=pre_events&&window.pmc.replace_wild_card($element,pre_events);var custom_ga_data={hitType:"event",eventCategory:category,eventAction:action,eventLabel:device+" "+label+labelDetails+href,nonInteraction:!!nonInteraction},nonInteraction={eventCategory:category,eventAction:action,eventLabel:device+" "+label+labelDetails+href};"number"==typeof event_value&&(custom_ga_data.eventValue=event_value,nonInteraction.eventValue=event_value);try{custom_ga_data=apply_filters("pmc-google-analytics-tracking-events",custom_ga_data,$element),nonInteraction.eventCategory=String((custom_ga_data?.eventCategory?custom_ga_data:nonInteraction).eventCategory).substring(0,99),nonInteraction.eventAction=String((custom_ga_data?.eventAction?custom_ga_data:nonInteraction).eventAction).substring(0,99),nonInteraction.eventLabel=String((custom_ga_data?.eventLabel?custom_ga_data:nonInteraction).eventLabel).substring(0,99),nonInteraction.eventValue=String((custom_ga_data?.eventValue?custom_ga_data:nonInteraction).eventValue).substring(0,99);var ga4EventName=String(nonInteraction.eventCategory+"-"+nonInteraction.eventAction).substring(0,39);gtag("event",ga4EventName,nonInteraction)}catch(err){console.log("Event Tracking Error: "+err)}return custom_ga_data},$.fn.eventTracking=function(atts){var selector,contentConsumed,pageOpenedTime,action,category,details,iframe,label,nonInteraction,pre_events,url;this&&"object"==typeof atts&&(selector=this.selector||atts.selector,contentConsumed=!1,pageOpenedTime=(new Date).getTime(),action=atts.action||"click",category=atts.category||"",details=atts.details||!1,iframe=atts.iframe||!1,label=atts.label||"",nonInteraction=atts.nonInteraction||!1,pre_events=atts.pre_events||[],url=atts.url||!1,iframe?"string"==typeof iframe&&$(iframe).load(function(){$(iframe).contents().on(action,selector,function(e){e.stopPropagation(),window.pmc.event_tracking($(this),action,category,label,details,url,nonInteraction,pre_events)})}):"inview"===action?$(selector).each(function(){var self=this;$(this).one("inview",function(event,isInView){var inview_element=this;isInView&&window.pmc.event_tracking($(this),action,category,label,details,url,nonInteraction,pre_events)})}):"content-consumed"===action?$(document).scroll(_.debounce(function(e){var currentTime;$(selector).is(":pmc-inview")&&!contentConsumed&&3e3<=(new Date).getTime()-pageOpenedTime&&(e.stopPropagation(),window.pmc.event_tracking($(this),action,category,label,details,url,nonInteraction,pre_events),contentConsumed=!0)},300)):"dfp-ad-clicks"===action?"undefined"!=typeof googletag&&googletag.cmd.push(function(){googletag.pubads().addEventListener("slotRenderEnded",function(event){var slot_name=event.slot.getName(),$ad_iframe=$('iframe[id*="'+slot_name+'"]'),$ad_iframe_container=$ad_iframe.parents(".admz"),_event=event;$ad_iframe.contents().find("body a").each(function(){$(this).click(function(){for(var ad_url=$(this).attr("href").split("?")[1].split("&"),i=0;i{var activeConsentGroups,ga3Dimensions,activeConsentGroups,ga3Dimensions;getGA3Dimensions&&getGA4Dimensions&&(activeConsentGroups=window.pmc_onetrust_helpers?.getActiveConsentGroups?.()||[],ga3Dimensions=getGA3Dimensions(activeConsentGroups),activeConsentGroups=getGA4Dimensions(activeConsentGroups),"undefined"!=typeof pmc_ga_mapped_dimensions&&"undefined"!=typeof pmc_ga_dimensions&&pmc_ga_mapped_dimensions["pageview-id"]&&(ga3Dimensions[ga3Dimensions="dimension"+pmc_ga_mapped_dimensions["pageview-id"].toString()]=pvuuid,pmcGaCustomDimensions[ga3Dimensions]=pvuuid),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"VirtualPageView","pageview-type":"virtual_page","pageview-id":pvuuid,...activeConsentGroups}))};window.pmcGATriggered?sendVirtualPageview():pmc.hooks.add_action("pmc_ga_triggered",sendVirtualPageview),blogherads.adq.push(function(){try{blogherads.setPageMetaData(window.pmc_fpd||{}),blogherads.trackPageView(!0)}catch(e){}})}}),pmc_analytics_queues=(pmc.hooks.add_filter("pmc_event_tracking_social_data",function(socialEvent,socialNetwork){if(events.length<=0||null===socialNetwork)return null;var socialNetwork=socialNetwork.toLowerCase(),selector="pinit"===socialNetwork?".btn-pinterest":".btn-"+socialNetwork,index=null,socialNetwork;if(null===socialEvent)for(var i=0;i{var e={178:()=>{const e={init:function(){"function"==typeof add_filter&&add_filter("pmc-google-analytics-tracking-events",this.filter_ga_events)},filter_ga_events:function(e,t){if("object"!=typeof e||"article-page"!==e.eventCategory||"click"!==e.eventAction)return e;if(-1===e.eventLabel.search("related-article")&&-1===e.eventLabel.search("related-evergreen"))return e;let n=t?.dataset?.index;if(void 0===n){const e=t.closest("li");n=e?.dataset?.index}return"number"==typeof n&&(e.eventValue=n),e}};document.addEventListener("DOMContentLoaded",(function(){e.init()}))}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";n(178)})()})();; !function(){var n={447:function(){const n=window;!function(t){if("function"!=typeof n.cnx){n.cnx=n.cnx||{cmd:[]};const c=t.createElement("iframe");c.src="javascript:false",c.display="none",c.onload=function(){const n=c.contentWindow.document,t=n.createElement("script");t.src="//cd.connatix.com/connatix.player.js?cid=1ffe63de-eb53-11e9-b4d2-06948452ae1a",t.setAttribute("async","1"),t.setAttribute("type","text/javascript"),n.body.appendChild(t)},t.head.appendChild(c)}}(n.document)}},t={};function c(e){var o=t[e];if(void 0!==o)return o.exports;var r=t[e]={exports:{}};return n[e](r,r.exports,c),r.exports}!function(){"use strict";c(447);const n=window;n.pmc=n.pmc||{},n.pmc.adm=n.pmc.adm||[];let t=!1;(()=>{if("function"==typeof n.pmcCnx)return;const c=Array.isArray(n.pmcCnx)?n.pmcCnx:n.pmcCnx.cmd||[],e=c=>({render:(e,o)=>{const r=c.settings?.plugins?.pmcCnx?.singleAutoPlay;if(r){let n;t?n=2:(t=!0,!0===r&&(n=0)),"number"==typeof n&&(c.settings={...c.settings,playbackMode:n})}n.cnx.cmd.push((()=>{n.cnx(c).render(e,((t,c)=>{n.pmc.adm.push((()=>{n.pmc.adm.attachConnatix(c)})),o&&o(t,c)}))}))}}),o=n=>{try{n.call(null)}catch(n){console.error(n)}};e.push=o,e.cmd={push:o},n.pmcCnx=e,c.forEach((n=>{e.push(n)}))})()}()}();; (()=>{"use strict";window.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelectorAll('[data-pmc-es-search-form="small_search_form"]'),e=document.createElement("form");e.setAttribute("method","get"),e.setAttribute("action",window.pmcEsFormInit.formAction),e.setAttribute("class","search-form");const n=document.createElement("input");n.setAttribute("type","text"),n.setAttribute("name","q"),n.setAttribute("placeholder",window.pmcEsFormInit.i18n.placeholder);const r=document.createElement("input");r.setAttribute("type","submit"),r.setAttribute("value",window.pmcEsFormInit.i18n.searchButton),e.appendChild(n),e.appendChild(r),t.forEach((t=>{const n=t.getAttribute("data-pmc-es-search-form"),r=document.importNode(e,!0);if(t.appendChild(r),n?.length){const e=t.querySelector("input[type=text]");e&&e.setAttribute("id",n)}}))}))})();;