(()=>{const e=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<=768,t=[{slot:"/22562061343/0223_02_enfoco-com-br_inline_desktop_",tagId:"embi_display_video_e77fe259",type:"DISPLAY_VIDEO",ubication:"body > section.efo-article-container > aside.efo-article-ads-latest > section:nth-child(1)",position:"INSERT_BEFORE",manualInsertion:!1,desktopSizes:[[300,600],[320,480],[300,250],[336,280]],offset:20,tbLoaderURL:"",adunitDesktop:{code:"embi_display_video_e77fe259",mediaTypes:{video:{context:"outstream",playerSize:[],mimes:["video/mp4","video/webm","video/ogg"],protocols:[1,2,3,4,5,6,7,8],placement:2,plcmt:4,playbackmethod:[2],skip:1},banner:{sizes:[[300,600],[320,480],[300,250],[336,280]]}},bids:[],ortb2Imp:{ext:{gpid:"/22562061343/0223_02_enfoco-com-br_inline_desktop_",data:{pbadslot:"/22562061343/0223_02_enfoco-com-br_inline_desktop_"}}}}}];!function(e,t){if(!document.querySelector(`script[src='${e}']`)){const n=document.createElement("script");n.async=t,n.type="text/javascript",n.src=e,document.head.appendChild(n)}}("https://securepubads.g.doubleclick.net/tag/js/gpt.js",!1);var n=window.googletag=window.googletag||{};n.cmd=n.cmd||[],n.cmd.push(function(){t.filter(e=>"TABOOLA_INTEGRATION"!==e.type).forEach(t=>{const o=e?t.mobileSizes:t.desktopSizes;t.adSlot=n.defineSlot(t.slot,o,t.tagId).setForceSafeFrame(!1).addService(n.pubads()),"DOUBLE_BOX"===t.type&&(t.adSlotB=n.defineSlot(t.slot2,o,t.tagId2).setForceSafeFrame(!1).addService(n.pubads()))}),n.pubads().enableSingleRequest(),n.pubads().enableLazyLoad({fetchMarginPercent:200,renderMarginPercent:100,mobileScaling:1}),n.pubads().collapseEmptyDivs(!0),n.pubads().setCentering(!0),n.pubads().addEventListener("slotRenderEnded",function(e){const n=e.slot.getSlotElementId();t.forEach(t=>{n!==t.tagId||e.isEmpty||("DISPLAY_VIDEO_STICKY"===t.type&&showCornerAd(cornerContainer),"FOOTER_INTOP"===t.type&&showFooterInTopAd(footerInTopContainer),"HIGH_IMPACT"!==t.type||isIntertitialAdShown||showEmbiIntertitial(INTERSTITIAL_CONTAINER))})}),n.enableServices(),t.map(t=>{!function(t){if(t.manualInsertion&&"TABOOLA_INTEGRATION"!==t.type){const e=t.tagId;new MutationObserver((t,o)=>{document.getElementById(e)&&(n.cmd.push(function(){n.display(e)}),o.disconnect())}).observe(document.body,{childList:!0,subtree:!0})}else{const a=t.type,i=t.position,d=t.ubication,c=t.tagId,r=t.offset;try{if("TABOOLA_INTEGRATION"===a)createTaboolaContainer(t);else if("HIGH_IMPACT"===a)INTERSTITIAL_CONTAINER=createInterstitialContainer(c);else if("DISPLAY_VIDEO_STICKY"===a)cornerContainer=createCornerContainer(c,i,r);else if("FOOTER_INTOP"===a)footerInTopContainer=createfooterInTopContainer(c,i);else if("DOUBLE_BOX"===a){const n=document.querySelector(`${d}`);if(!n)return console.error(`Elemento con clase '${d}' no encontrado en el DOM para el anuncio ${c}. No se pudo insertar el DIV.`),!1;const a=t.tagId2,r=document.createElement("div");r.id=`container_${c}`,(o=r).style.display="flex",o.style.flexDirection=e?"column":"row",o.style.gap="24px",o.style.marginBottom="24px",o.style.background="transparent",o.style.justifyContent="center";const s=document.createElement("div");s.id=c,r.appendChild(s);const l=document.createElement("script");l.textContent=`\n googletag.cmd.push(function() {\n googletag.display('${c}');\n });\n `,s.appendChild(l);const p=document.createElement("div");p.id=a,r.appendChild(p);const m=document.createElement("script");switch(m.textContent=`\n googletag.cmd.push(function() {\n googletag.display('${a}');\n });\n `,p.appendChild(m),i){case"INSERT_BEFORE":n.insertAdjacentElement("beforebegin",r);break;case"INSERT_AFTER":n.insertAdjacentElement("afterend",r);break;default:n.appendChild(r)}}else{const e=document.querySelector(`${d}`);if(!e)return void console.error(`Elemento con clase '.${d}' no encontrado en el DOM para el anuncio ${c}.`);const t=document.createElement("div");t.id=c,t.style.marginBottom="24px";const n=document.createElement("script");switch(n.textContent=`\n googletag.cmd.push(function() {\n googletag.display('${c}');\n });\n `,t.appendChild(n),i){case"INSERT_BEFORE":e.insertAdjacentElement("beforebegin",t);break;case"INSERT_AFTER":e.insertAdjacentElement("afterend",t);break;default:e.appendChild(t)}}setInterval(function(){if(t.adSlot){if("HIGH_IMPACT"===t.type&&isIntertitialAdShown)return;n.pubads().refresh([t.adSlot])}t.adSlotB&&n.pubads().refresh([t.adSlotB])},2e4)}catch(e){console.error(`Error procesando el anuncio ${c}:`,e)}}var o}(t)})})})();