(function(){var e=document.createElement(`style`);e.textContent=`div#banner1_720{justify-content:center;align-items:center;display:flex}div#banner3_300600{min-height:300px}div.square{height:unset!important}div.container_T_1.pubtech-adv-container,div.container_T_2.pubtech-adv-container,div.container_B_1.pubtech-adv-container{margin:0!important}div[class^=container_C]{background:#efefef;border-radius:8px;line-height:unset!important}div[class^=container_C],div[class^=container_C] div.adv-wrapper{min-height:unset!important;line-height:unset!important}div.teads-player.native{max-height:unset!important}:root{--adv-label-text:""}div.adv-wrapper{flex-direction:column;justify-content:center;align-items:center;display:flex;max-height:700px!important}div.pubtech-adv-container{margin:35px 0;position:relative;text-align:center!important;justify-content:center!important;display:flex!important}.pubtech-adv-sticky{top:10px;position:-webkit-sticky!important;position:sticky!important}.st-placement.inScreen{z-index:2147483647!important}div.advblockshown:before{content:var(--adv-label-text);color:#999;text-align:center;clear:both;font-family:Verdana,Geneva,sans-serif;font-size:11px;line-height:22px;display:block}div.advblockshown{clear:both}div.anchor-slot{z-index:99999;justify-content:center;align-items:center;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:flex;position:fixed;top:0}div.anchor-slot.anchor-slot-desktop-type{padding:15px;right:50%;transform:translate(50%)}div.anchor-slot.anchor-slot-mobile-type{width:100%;padding:10px 0;right:0}div.rendered-slot div.anchor-slot{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 0 5px rgba(0,0,0,.2)}span#anchor-slot-close-button{color:#fff;cursor:pointer;background-color:rgba(0,0,0,.7);border-radius:50%;display:none;position:absolute;bottom:5px;right:5px}div.rendered-slot div.anchor-slot span#anchor-slot-close-button{display:block!important}div.anchor-slot span#anchor-slot-close-button.anchor-slot-desktop-button{width:25px;height:25px;font-size:18px;line-height:25px}div.anchor-slot span#anchor-slot-close-button.anchor-slot-mobile-button{width:20px;height:20px;font-size:12px;line-height:20px}div.hide-adv-label div.advblockshown:before{display:none!important}.pos-right-adv{float:left;opacity:1;visibility:visible;z-index:10;border:0;width:160px;min-width:160px;max-width:160px;height:620px;min-height:620px;max-height:620px;margin:0;padding:0;transition-duration:0s;display:block;top:50px;right:calc(50vw + 700px);overflow:visible;position:fixed!important}.pos-left-adv{float:left;opacity:1;visibility:visible;z-index:10;border:0;width:160px;min-width:160px;max-width:160px;height:620px;min-height:620px;max-height:620px;margin:0;padding:0;transition-duration:0s;display:block;top:50px;left:calc(50vw + 700px);overflow:visible;position:fixed!important} /*$vite$:1*/`,document.head.appendChild(e);function t(){let e=window.scheduler;return e!=null&&typeof e.yield==`function`?e.yield().then(()=>void 0,()=>void 0):Promise.resolve()}function n(){return new Promise(e=>{let t=!1,n,r=()=>{t||(t=!0,n!==void 0&&clearTimeout(n),e(!0))};if(`scheduler`in window&&typeof window.scheduler==`object`&&window.scheduler!=null){if(`yield`in window.scheduler&&typeof window.scheduler.yield==`function`)return window.scheduler.yield().then(r,r);if(`postTask`in window.scheduler&&typeof window.scheduler.postTask==`function`){let e=window.scheduler.postTask(r,{priority:`user-visible`});ie(e)&&e.then(void 0,r);return}}n=setTimeout(r,0),window.requestAnimationFrame(()=>{setTimeout(()=>{r()},0)})})}function r(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function i(e,t){r(e,t),t.add(e)}function a(e,t,n){r(e,t),t.set(e,n)}function o(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function s(e,t,n){return e.set(o(e,t),n),n}function c(e,t){return e.get(o(e,t))}function l(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){l(a,r,i,o,s,`next`,e)}function s(e){l(a,r,i,o,s,`throw`,e)}o(void 0)})}}var d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakSet,g=class e{constructor(){var e;i(this,h),a(this,d,void 0),a(this,f,new Set),a(this,p,new Map),a(this,m,new Set),s(d,this,(e=document.head)==null?document.getElementsByTagName(`head`)[0]:e)}static getInstance(){return v._==null&&(v._=new e),v._}loadScript(e){let{appendToBody:t=!1,async:n=!0,onScriptLoaded:r,scriptTag:i,scriptUrl:a}=e;if(a.length===0)return;if(c(f,this).has(a)){typeof r==`function`&&this.onReadyScript(i,r);return}let s=document.createElement(`script`);s.type=`text/javascript`,s.async=n,s.setAttribute(`data-cfasync`,`false`),s.src=a,s.onload=()=>{var e;c(m,this).add(i);let t=(e=c(p,this).get(i))==null?[]:e;c(p,this).delete(i),typeof r==`function`&&t.unshift(r),o(h,this,_).call(this,t)},!t||document.body==null?c(d,this).appendChild(s):document.body.appendChild(s),c(f,this).add(a)}onReadyScript(e,t){if(c(m,this).has(e)){o(h,this,_).call(this,[t]);return}let n=c(p,this).get(e);if(n!=null){n.push(t);return}c(p,this).set(e,[t])}};function _(e){return u(function*(){for(let n of e)yield t(),n()})()}var v={_:null},y=0,b=0,x=!0;function S(){x=!0}window.addEventListener(`resize`,S,{passive:!0}),window.addEventListener(`orientationchange`,S,{passive:!0});function C(){x&&(y=window.innerWidth,b=window.innerHeight,x=!1)}function w(){return C(),y}function T(){return C(),b}var E={DESKTOP:`desktop`,MOBILE:`mobile`,TABLET:`tablet`};function D(){let e=w();return e>=1025?E.DESKTOP:e<1025&&e>=768?E.TABLET:E.MOBILE}function ee(){let e=D();return{isDesktop:e===E.DESKTOP,isMobile:e===E.MOBILE,isTablet:e===E.TABLET}}function O(){return w()>=768?E.DESKTOP:E.MOBILE}function k(){return document.readyState===`interactive`||document.readyState===`complete`}function A(e){if(k())return e(),()=>{};function t(){e()}return document.addEventListener(`DOMContentLoaded`,t),()=>{document.removeEventListener(`DOMContentLoaded`,t)}}function te(){return window.location.pathname.split(`/`).filter(Boolean)}function j(){let e={};return new URLSearchParams(window.location.search).forEach((t,n)=>{e[n]=t}),e}function M(){var e;let t=document.querySelector(`meta[property="og:type"]`);if(t){var n;return(n=t.getAttribute(`content`))==null?``:n}let r=document.querySelector(`meta[name="page-type"]`);return(e=r==null?void 0:r.getAttribute(`content`))==null?``:e}function N(e){function t(e){return e.toLowerCase().replace(/[:\s]/g,`_`)}let n={},r=new Set(e.map(e=>t(e))),i=Array.from(document.querySelectorAll(`meta[name], meta[property]`));for(let e of i){var a,o;let i=(a=(o=e.getAttribute(`name`))==null?e.getAttribute(`property`):o)==null?``:a;if(i.length===0)continue;let c=t(i);if(r.has(c)){var s;n[c]=(s=e.getAttribute(`content`))==null?``:s}}return n}function ne(){var e;let t=Array.from(document.querySelectorAll(`script[type="application/ld+json"]`)),n=``;for(let e of t)try{var r;let t=JSON.parse((r=e.textContent)==null?``:r);if(Array.isArray(t))for(let e of t){var i;n=(i=P(e))==null?n:i}else{var a;n=(a=P(t))==null?n:a}}catch(e){}if(n.length>0)return n;let o=document.querySelector(`meta[name="author"]`);return(e=o==null?void 0:o.getAttribute(`content`))==null?``:e}function P(e){if(typeof e==`object`&&e&&`author`in e){let t=e;if(t.author!==null&&typeof t.author==`object`&&`name`in t.author){let e=t.author;if(typeof e.name==`string`&&e.name.length>0)return e.name}}return null}function re(e){return typeof e==`function`}function ie(e){return typeof e==`object`&&!!e&&`then`in e&&typeof e.then==`function`}function F(e){return re(e)?e():e}function ae(e){return oe.apply(this,arguments)}function oe(){return oe=u(function*(e){return re(e)?e():(ie(e),e)}),oe.apply(this,arguments)}function se(e){let t=window.document.cookie.match(`(^|;)\\s*`+e+`\\s*=\\s*([^;]*)\\s*(;|$)`);return t?decodeURIComponent(t[2]):null}function ce(e,t,n=null,r=`Lax`){let i=``,a=Number(n);if(a>0){let e=new Date;e.setTime(e.getTime()+a*1e3*60),i=`; expires=${e.toUTCString()}`}let o=` ;domain=${le(window.location.hostname)}`,s=r!=null&&r.toLowerCase()==`none`?`; Secure`:``;window.document.cookie=`${e}=${encodeURIComponent(t)}${i}; path=/${o}${r?`; SameSite=${r}`:``}${s}`}function le(e){if(e==null||e===`localhost`)return``;e.startsWith(`www.`)||(e=`www.`+e);let t=e.split(`.`),n=t[t.length-2],r=/^[0-9]+$/.test(e.split(`:`)[0].split(`.`).join(``)),i=2;return!r&&t.length>3&&n.length<4&&(i=3),`.`+t.reverse().slice(0,i).reverse().join(`.`)}function ue(e){return e?(e^de()>>e/4).toString(16):`10000000-1000-4000-8000-100000000000`.replace(/[018]/g,ue)}function de(){return window&&window.crypto&&typeof window.crypto.getRandomValues==`function`?crypto.getRandomValues(new Uint8Array(1))[0]%16:Math.random()*16}function fe(e){return!!new URLSearchParams(window.location.search).get(e)}function pe(e){return!!me(e)||fe(e)}function me(e){try{return window.localStorage.getItem(e)}catch(t){return console.error(`Error while getting ${e} from local storage`,t),null}}function he(e){return new Promise(t=>{e.getState()!==`prerendering`&&t(),e.on(`stateChange`,function n(r){r!==`prerendering`&&(e.on(`stateChange`,n),t())})})}function ge(e){if(e!==void 0)return e.language;throw Error(`Navigator is not defined`)}function _e(e){let t=document.createElement(`style`);t.appendChild(document.createTextNode(e)),document.head.appendChild(t)}function ve(){let e=`direct`,t=document.referrer;if(!t)return e;try{let e=[`facebook.com`,`instagram.com`,`twitter.com`,`linkedin.com`,`reddit.com`,`tiktok.com`,`pinterest.com`,`tumblr.com`,`snapchat.com`,`weibo.com`,`wechat.com`,`t.co`],n=[`google.com`,`google.co.uk`,`google.de`,`google.fr`,`google.es`,`google.it`,`bing.com`,`yahoo.com`,`duckduckgo.com`,`baidu.com`,`yandex.com`,`yandex.ru`,`ecosia.org`,`startpage.com`],r=new URL(t).hostname.toLowerCase().replace(/^www\./,``),i=e=>r===e||r.endsWith(`.`+e);if(e.some(i))return`social`;if(n.some(i))return`organic`}catch(e){}return e}function ye(e,t){xe(e,t,!0)}function be(e,t){xe(e,t,!1)}function xe(e,t,n){if(!(e==null||e.parentNode==null)){if(n){e.parentNode.insertBefore(t,e.nextSibling);return}e.parentNode.insertBefore(t,e)}}function Se(e,t){return Ce.apply(this,arguments)}function Ce(){return Ce=u(function*(e,t,n=!1){let r=n?`random`:`latest`,i=t==null?``:`&category=${t}`;try{let t=yield fetch(`https://video-provider.pubtech.ai/video/${r}?websiteId=${e}${i}`);if(!t.ok)return null;let n=yield t.json();return{title:n.title,videoUrl:n.videoUrl,thumbnailUrl:n.thumbnailUrl}}catch(e){return null}}),Ce.apply(this,arguments)}function we(){try{typeof window.ptecpre==`object`&&window.ptecpre!==null&&Array.isArray(window.ptecpre.queue)||(window.ptecpre={queue:[]})}catch(e){console.error(e)}}function Te(){we();let e=window.ptecpre.queue;Array.isArray(e)&&e.forEach(function(e){e()}),Ae(window.ptecpre)}function Ee(){try{typeof window.ptec==`object`&&window.ptec!==null&&Array.isArray(window.ptec.queue)||(window.ptec={queue:[]})}catch(e){console.error(e)}}function De(e){Ee();let t=window.ptec.queue;Array.isArray(t)&&t.forEach(function(t){t(e)}),Ae(window.ptec,e)}var Oe={queue:[]};function ke(e){let t=Oe.queue;Array.isArray(t)&&t.forEach(function(t){t(e)}),Ae(Oe,e)}function Ae(e,t=null){Object.isFrozen(e)||(e.queue={push:e=>e(t)},Object.freeze(e))}function je(e,t=D()){let n=[];if(e==null)return n;let r=Me(e,t);if(r!=null){var i,a;let t=(i=(a=e.getAttribute(r))==null?void 0:a.split(`,`))==null?[]:i;for(let e of t){if(e===`fluid`){n.push(`fluid`);continue}let t=e.split(`x`);t[0]!=null&&t[1]!=null&&!Number.isNaN(t[0])&&!Number.isNaN(t[1])&&n.push([parseInt(t[0]),parseInt(t[1])])}}return n}function Me(e,t){if(e.hasAttribute(`data-size-`+t)&&e.getAttribute(`data-size-`+t)!==``)return`data-size-`+t;if(t===E.TABLET&&e.hasAttribute(`data-size-`+E.DESKTOP)&&e.getAttribute(`data-size-`+E.DESKTOP)!==``)return`data-size-`+E.DESKTOP;if(e.hasAttribute(`data-size`)&&e.getAttribute(`data-size`)!==``)return`data-size`}function I(e,t=!0,n=!1,r=!1){let i=document.createElement(`div`);if(i.id=e,i.classList.add(`adv-wrapper`),!t)return r&&i.classList.add(`pubtech-adv-sticky`),i;let a=document.createElement(`div`);return a.classList.add(`container_${e}`,`pubtech-adv-container`),e.includes(`C_`)&&a.classList.add(`pubtech-adv-incontent`,`pubtech-adv-bg`),n&&a.classList.add(`pubtech-adv-bg`),r&&a.classList.add(`pubtech-adv-sticky`),a.appendChild(i),a}function Ne({actionType:e=`default`,customParagraphIndexSelection:t,elementContainer:n,elementsList:r,enableStickyBox:i=!1,frequency:a=3,isInfiniteScroll:o=!1,isInsertAfter:s=!0,isSubElementDirectDescendant:c=!0,logger:l,maxNumberOfElements:u=8,minParagraphLength:d,offset:f=0,sizeMappingApi:p,skipLastParagraph:m=!1,subElementType:h=`p`}){let g=r?[...r]:Pe(p,l,u),_=g.length;if(_===0)return l.debug(`=== insertDynamicSlots === No slot IDs to add, exit!`),!1;l.debug(`=== insertDynamicSlots === slotIds available are: ${g}`),l.debug(`=== insertDynamicSlots === Start insert slots at paragraph index: ${f} and a frequency of: ${a}`),l.debug(`=== insertDynamicSlots === isInsertAfter is selected to: ${s}`),l.debug(`=== insertDynamicSlots === The subElementType is: ${h}`);let v;if(e==="default")l.debug(`=== insertDynamicSlots === Selected the default actionType`),v=c?document.querySelectorAll(n+` > `+h):document.querySelectorAll(n+` `+h);else if(e===`elementList`)l.debug(`=== insertDynamicSlots === Selected the elementList actionType`),v=document.querySelectorAll(n);else return l.debug(`=== insertDynamicSlots === No valid actionType selected: ${e}, exit!`),!1;let y=v.length;if(y===0)return l.debug(`=== insertDynamicSlots === totalParagraphsOrDomElementsCount is 0, exit!`),!1;l.debug(`=== insertDynamicSlots === totalParagraphsOrDomElementsCount is: ${y}`);let b=[];if(t==null)if(d!=null&&d>0){l.debug(`=== insertDynamicSlots === Checking if minParagraphLength is: ${d}`);let e=[];for(let t=0;t=d&&e.push(t)}let t=e.length;if(t===0)return l.debug(`=== insertDynamicSlots === No paragraph matching the selected criteria was found, exit!`),!1;l.debug(`=== insertDynamicSlots === Found valid paragraphs at index: ${e}`);for(let n=f;n0||o)&&(document.getElementById(e)==null?(l.debug(`=== insertDynamicSlots === createAdvSlotElement with ID: ${e}, referenceNode:`,t),s?ye(t,I(e,!0,!1,i)):be(t,I(e,!0,!1,i))):l.debug(`=== insertDynamicSlots === Element already found, skip!`))}}return!0}function Pe(e,t,n){t.debug(`=== insertDynamicSlots === Start generate slot Ids`);let r=[];for(let t=1;t<=n;t++){let n=`C_${t}`;e.getAdUnitSizes(n).length>0&&r.push(n)}return r}function Fe({startingIndex:e,availableSlotCount:t,availableParagraphCount:n,frequency:r}){let i=[];for(let a=e;a0)}function He(e){if(Ve(e.override))return e.override;let t=e.getAdUnitSizes(e.divId);return Ve(t)?t:e.getAdUnitSizes(e.adUnitKey)}function Ue(e){var t,n,r;let i={desktop:L({},(t=e==null?void 0:e.desktop)==null?{}:t),mobile:L({},(n=e==null?void 0:e.mobile)==null?{}:n),tablet:L({},(r=e==null?void 0:e.tablet)==null?{}:r)},a=D();return{addSizeMaps(e,t){var n,r,o;i[a][e]=[...(n=i[a][e])==null?[]:n,...(r=(o=t[a])==null?void 0:o[e])==null?[]:r]},clearSizeMapping(){i.desktop={},i.mobile={},i.tablet={}},getAdUnitSizes(e,t=a){return i[t][e]||[]},getSizeMapping(e){return i[e]},removeAdUnitSizes(e,t=a){delete i[t][e]},setAdUnitSizes(e,t,n=a){i[n][e]=t}}}var We={Prebid:`prebid`,Gpt:`gpt`,PrebidClientRender:`prebid-client-render`,Fallback:`fallback`},Ge={Success:`success`,Continue:`continue`,Failure:`failure`,Unfilled:`unfilled`},Ke=`slot:unfilled`,qe=`slot:filled`,Je=`slot:onLoad`,Ye=`slot:renderEnded`,Xe=`slot:responseReceived`,Ze=`auction:phaseCompleted`,Qe=`batchSelling:dominationDetected`,$e=function(e){return e[e.NoDefinableSlot=0]=`NoDefinableSlot`,e[e.FunctionalError=1]=`FunctionalError`,e}({}),et=`pt1-ppid-v2`;function tt(){let e=se(et);return(!e||e.length===0)&&(e=ue(),ce(et,e,1440*365)),e}function nt(e){e.setPublisherProvidedId(tt())}function rt(){let e=``,t=[],n=window.ads_targeting_map;if(n!=null)n.category!=null&&n.category.length>0&&(t=typeof n.category==`string`?[n.category]:n.category),typeof n.page==`string`&&(e=n.page);else{var r,i,a,o,s;let n=document.querySelector(`meta[property='og:type']`);if(n!=null){let t=n.getAttribute(`content`);t!=null&&t===`article`&&(e=`articolo`)}document.body!=null&&document.body.className.length>0&&document.body.className.split(` `).indexOf(`home`)>=0&&(e=`homepage`),(((r=window.location)==null?void 0:r.pathname)===``||((i=window.location)==null?void 0:i.pathname)===`/`||((a=window.location)==null?void 0:a.pathname)==null)&&(e=`homepage`),(o=window.location)!=null&&o.hostname&&((s=window.location)==null?void 0:s.hostname.indexOf(`forum`))>=0&&(e=`forum`);let l=document.querySelector(`meta[property='og:section']`),u=document.querySelector(`meta[property='article:section']`);c(l),c(u);function c(e){if(e!=null){let n=e.getAttribute(`content`);if(n!=null&&n!==``){let e=n.split(`,`);for(let n of e)t.push(n.trim())}}}}return{pageTargeting:e,sectionsTargeting:t}}function it(e){return e?e.includes(`Firefox`)?`Mozilla Firefox`:e.includes(`SamsungBrowser`)?`Samsung Internet`:e.includes(`Opera`)||e.includes(`OPR`)?`Opera`:e.includes(`Trident`)?`Microsoft Internet Explorer`:e.includes(`Edge`)?`Microsoft Edge (Legacy)`:e.includes(`Edg`)?`Microsoft Edge (Chromium)`:e.includes(`Chrome`)?`Google Chrome or Chromium`:e.includes(`Safari`)?`Apple Safari`:`unknown`:`unknown`}var at=.1,ot=`debug_pps_holdout`,st=`debug_pps`,ct=new WeakMap,lt=new WeakMap,ut=new WeakMap,dt=new WeakMap,ft=new WeakSet,pt=class{constructor({config:e,readPage:t,holdoutRate:n=at,random:r=Math.random}){var o;i(this,ft),a(this,ct,void 0),a(this,lt,void 0),a(this,ut,void 0),a(this,dt,void 0),s(ct,this,e),s(ut,this,t),s(dt,this,xt((o=e==null?void 0:e.vertical)==null?[]:o)),s(lt,this,vt(n,r))}isHoldout(){return c(lt,this)}resolve(){if(c(lt,this))return{holdout:!0,ids:[],pageIds:[],siteIds:[]};let e=xt(o(ft,this,mt).call(this));return{holdout:!1,ids:xt([...e,...c(dt,this)]).slice(0,10),pageIds:e,siteIds:c(dt,this)}}};function mt(){var e,t,n;let{pageType:r,sections:i}=c(ut,this).call(this),a=(e=c(ct,this))==null||(t=e.resolve)==null?void 0:t.call(e,{pageType:r,path:window.location.pathname,sections:i});return a===void 0?bt(i,(n=c(ct,this))==null?void 0:n.sections):a}function ht(e){return e.ids.length>0?{taxonomies:{IAB_CONTENT_2_2:{values:e.ids}}}:null}function gt(e){return e.holdout?`0`:`1`}function _t(e){if(e.ids.length===0)return``;let t=btoa(JSON.stringify({PublisherProvidedTaxonomySignals:[{taxonomy:`IAB_CONTENT_2_2`,values:e.ids}]}));return`&ppsj=${encodeURIComponent(t)}`}function vt(e,t){return pe(ot)?!0:!pe(st)&&t()[yt(e),t]));return e.flatMap(e=>{var t;return[...(t=n.get(yt(e)))==null?[]:t]})}function xt(e){return[...new Set(e)]}window.googletag=window.googletag||{cmd:[]};var St=`ptechsdepth`,Ct=[`active`,`passive`],wt=`Google Publisher Tag library was overridden or is not available`;function Tt(){let e=window.googletag;if(e==null)throw Error(wt);return e}function Et(e){var t;let n=Tt();if(n.apiReady)return e();if(typeof((t=n.cmd)==null?void 0:t.push)!=`function`)throw Error(wt);n.cmd.push(()=>{e()})}var Dt=class extends Error{constructor(e){super(e),this.name=`NoDefinableSlotError`}};function Ot(e){if(e.fetchGpt){let e=document.getElementsByTagName(`script`),t=`https://securepubads.g.doubleclick.net/tag/js/gpt.js`,n=!0;for(let r of e)if(r.getAttribute(`src`)===t){n=!1;break}n&&g.getInstance().loadScript({scriptTag:`securepubads`,scriptUrl:t})}return e.fetchGoogleTag&&g.getInstance().loadScript({scriptTag:`googletag`,scriptUrl:`https://www.googletagservices.com/tag/js/gpt.js`}),t=>{var n;return new Rt(L(L({},e),{},{prefixFullNameAd:(n=t.overridePrefixFullNameAd)==null?e.prefixFullNameAd:n,siteCategory:t.siteCategory,contentSignals:t.contentSignals,contextManager:t.contextManager,eventDispatcher:t.eventDispatcher,consentReader:t.consentReader,divIdToAdUnitKeyMapping:t.divIdToAdUnitKeyMapping,getAdUnitSizes:t.getAdUnitSizes}))}}var kt=new WeakMap,At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,Nt=new WeakMap,Pt=new WeakMap,Ft=new WeakMap,It=new WeakMap,Lt=new WeakMap,R=new WeakSet,Rt=class{constructor({divIdToAdUnitKeyMapping:e,disableInitialLoad:t=!0,getAdUnitSizes:n,prefixFullNameAd:r,siteCategory:l,contentSignals:u,contextManager:d,eventDispatcher:f,globalTargetingTransformer:p,slotTargetingTransformer:m,personalizedAds:h,consentReader:g}){i(this,R),a(this,kt,void 0),a(this,At,void 0),a(this,jt,void 0),a(this,Mt,void 0),a(this,Nt,void 0),a(this,Pt,void 0),a(this,Ft,new Set),a(this,It,new Map),a(this,Lt,void 0),s(Lt,this,e),s(Mt,this,n),s(kt,this,r),s(Nt,this,p),s(Pt,this,m),s(jt,this,d),s(At,this,u),d.on(`contextUpdated`,({context:e,navigationContext:t})=>{o(R,this,Kt).call(this,{siteCategory:l,context:e,navigationContext:t})}),d.on(`visibilityChanged`,e=>{Et(()=>{window.googletag.setConfig({targeting:{tab_visible:Ct.includes(e)?`yes`:`no`}})})});let _=d.getCurrentContext();o(R,this,Kt).call(this,{siteCategory:l,context:_,navigationContext:_.navigationContext}),Et(()=>{window.googletag.setConfig({singleRequest:!0,disableInitialLoad:t,centering:!0,autoRefresh:{backForwardCache:!1}}),window.googletag.pubads().addEventListener(`slotOnload`,e=>{let t={EVENT_NAME:Je,adUnitKey:this.resolveSlotDivId(e.slot),adProvider:`gpt`};f.dispatch(t)}),window.googletag.pubads().addEventListener(`slotResponseReceived`,e=>{let t=this.resolveSlotDivId(e.slot),n=c(Lt,this)&&c(Lt,this)[t]?c(Lt,this)[t]:t,r=e.slot.getResponseInformation(),i=L(L({EVENT_NAME:Xe,divId:t,adUnitKey:n,isEmpty:r===null,adProvider:`gpt`},typeof(r==null?void 0:r.lineItemId)==`number`?{lineItemId:r.lineItemId}:{}),typeof(r==null?void 0:r.creativeId)==`number`?{creativeId:r.creativeId}:{});f.dispatch(i)}),window.googletag.pubads().addEventListener(`slotRenderEnded`,e=>{let t=this.resolveSlotDivId(e.slot),n=L(L({EVENT_NAME:Ye,divId:t,adUnitKey:c(Lt,this)&&c(Lt,this)[t]?c(Lt,this)[t]:t,isEmpty:e.isEmpty,adProvider:`gpt`},typeof e.lineItemId==`number`?{lineItemId:e.lineItemId}:{}),typeof e.creativeId==`number`?{creativeId:e.creativeId}:{});f.dispatch(n)}),h!==void 0&&window.googletag.pubads().setPrivacySettings({nonPersonalizedAds:!h}),nt(window.googletag.pubads()),window.googletag.enableServices()}),g&&g.onConsentReleased({onConsentCallback:e=>{Et(()=>{window.googletag.pubads().setPrivacySettings({nonPersonalizedAds:!e.personalizedAds})})}})}getPrefixFullNameAd(){return c(kt,this)}applyPublisherProvidedSignals(){if(c(At,this)==null)return;let e=c(At,this).resolve();Et(()=>{window.googletag.setConfig({pps:ht(e)})})}hasDefinedSlot(e){return c(Ft,this).has(e)}resolveSlotDivId(e){var t;let n=e.getSlotElementId();return(t=c(It,this).get(n))==null?n:t}destroySlot(e){o(R,this,Ht).call(this,()=>{let t=googletag.pubads().getSlots().find(t=>this.resolveSlotDivId(t)===e);t!=null&&(googletag.destroySlots([t]),c(It,this).delete(t.getSlotElementId())),c(Ft,this).delete(e)})}defineSlot({adUnitKey:e,divId:t,refreshCount:n=0,overrideSlotName:r,overrideTargeting:i,overrideAdUnitSizes:a,slotType:o=`display`,existingGoogleTagSlot:s}){return this.defineSlots([{adUnitKey:e,divId:t,refreshCount:n,overrideSlotName:r,overrideTargeting:i,overrideAdUnitSizes:a,slotType:o,existingGoogleTagSlot:s}]).then(e=>e[0])}defineSlots(e){return o(R,this,Ht).call(this,()=>{let t=[];for(let n of e)t.push(o(R,this,Bt).call(this,n));return t})}refreshSlot(e){return this.refreshSlots([e]).then(e=>e[0])}refreshSlots(e){return o(R,this,Ht).call(this,()=>{let t=[];for(let n of e){let e=o(R,this,Vt).call(this,n);if(e==null)throw new Dt(`No defined slot found for adUnitKey: `+n.adUnitKey+` and divId: `+n.divId);t.push(e)}return o(R,this,zt).call(this,t)})}sellAdSlot({adUnitKey:e,divId:t,refreshCount:n=0,overrideSlotName:r,overrideTargeting:i,overrideAdUnitSizes:a,slotType:o=`display`,existingGoogleTagSlot:s}){return this.sellAdSlots([{adUnitKey:e,divId:t,refreshCount:n,overrideSlotName:r,overrideTargeting:i,overrideAdUnitSizes:a,slotType:o,existingGoogleTagSlot:s}]).then(e=>e[0])}sellAdSlots(e){return o(R,this,Ht).call(this,()=>{let t=[];for(let n of e)t.push(o(R,this,Bt).call(this,n));return o(R,this,zt).call(this,t)})}};function zt(e){let t=Array.from(e);return window.googletag.pubads().refresh(t),t}function Bt({adUnitKey:e,divId:t,refreshCount:n=0,overrideSlotName:r,overrideTargeting:i,overrideAdUnitSizes:a,slotType:s=`display`,existingGoogleTagSlot:l}){let u=c(kt,this)+(typeof r==`string`?r:e);if(s===`outOfPageInterstitial`)return o(R,this,Ut).call(this,{fullNameAd:u,divId:t,overrideTargeting:i});if(s===`outOfPageRightSideRail`||s===`outOfPageLeftSideRail`)return o(R,this,Wt).call(this,{fullNameAd:u,divId:t,side:s===`outOfPageRightSideRail`?`right`:`left`,overrideTargeting:i});if(s===`outOfPageBottomAnchor`)return o(R,this,Gt).call(this,{fullNameAd:u,divId:t,refreshCount:n,overrideTargeting:i});let d=document.getElementById(t);if(d==null)throw new Dt(`No HTML element found with id: `+t);let f=c(Ft,this).has(t)?o(R,this,Vt).call(this,{adUnitKey:e,divId:t,overrideSlotName:r}):l==null?googletag.defineSlot(u,He({getAdUnitSizes:c(Mt,this),divId:t,adUnitKey:e,override:a}),t):l;if(f==null)throw new Dt(`No definable slot found for adUnitKey: `+e+` and divId: `+t);return f.addService(googletag.pubads()),f.setConfig({targeting:i==null?o(R,this,qt).call(this,{adUnitKey:e,htmlSlotElement:d,refreshCount:n}):i,collapseDiv:`DISABLED`}),c(Ft,this).add(t),f}function Vt({adUnitKey:e,divId:t,overrideSlotName:n}){let r=googletag.pubads().getSlots(),i=r.find(e=>this.resolveSlotDivId(e)===t);if(i!=null)return i;let a=c(kt,this)+(typeof n==`string`?n:e);return r.find(e=>e.getAdUnitPath()===a)}function Ht(e){return new Promise((t,n)=>{try{Et(()=>{try{t(e())}catch(e){n({reason:e instanceof Dt?$e.NoDefinableSlot:$e.FunctionalError,message:e instanceof Error?e.message:`Unknown error`})}})}catch(e){n({reason:$e.FunctionalError,message:wt})}})}function Ut({fullNameAd:e,divId:t,overrideTargeting:n}){var r;let i=(r=googletag.enums)==null||(r=r.OutOfPageFormat)==null?void 0:r.INTERSTITIAL;if(i==null)throw Error(`GPT OutOfPageFormat.INTERSTITIAL unavailable`);if(c(Ft,this).has(t)){let t=googletag.pubads().getSlots().find(t=>t.getAdUnitPath()===e);if(t)return t}let a=googletag.defineOutOfPageSlot(e,i);if(a==null)throw new Dt(`No definable out-of-page interstitial slot for adUnitPath: `+e);return c(Ft,this).add(t),n!=null&&a.setConfig({targeting:n}),a.addService(googletag.pubads()),a}function Wt({fullNameAd:e,divId:t,side:n,overrideTargeting:r}){var i,a;let s=n===`right`?(i=googletag.enums)==null||(i=i.OutOfPageFormat)==null?void 0:i.RIGHT_SIDE_RAIL:(a=googletag.enums)==null||(a=a.OutOfPageFormat)==null?void 0:a.LEFT_SIDE_RAIL;if(s==null)throw Error(`GPT OutOfPageFormat.${n===`right`?`RIGHT_SIDE_RAIL`:`LEFT_SIDE_RAIL`} unavailable`);if(c(Ft,this).has(t)){let t=googletag.pubads().getSlots().find(t=>t.getAdUnitPath()===e);if(t)return t}let l=googletag.defineOutOfPageSlot(e,s);if(l==null)throw new Dt(`No definable out-of-page ${n} side rail slot for adUnitPath: `+e);c(Ft,this).add(t);let u=document.getElementById(t),d=r==null?o(R,this,qt).call(this,{adUnitKey:t,htmlSlotElement:u==null?document.createElement(`div`):u,refreshCount:0}):r;return l.setConfig({targeting:d}),l.addService(googletag.pubads()),l}function Gt({fullNameAd:e,divId:t,refreshCount:n,overrideTargeting:r}){var i;let a=(i=googletag.enums)==null||(i=i.OutOfPageFormat)==null?void 0:i.BOTTOM_ANCHOR;if(a==null)throw new Dt(`GPT OutOfPageFormat.BOTTOM_ANCHOR unavailable`);let s=c(Ft,this).has(t)?googletag.pubads().getSlots().find(e=>this.resolveSlotDivId(e)===t):void 0,l=s==null?googletag.defineOutOfPageSlot(e,a):s;if(l==null)throw new Dt(`No definable bottom anchor slot for adUnitPath: `+e);return l.setConfig({targeting:r==null?o(R,this,qt).call(this,{adUnitKey:t,htmlSlotElement:document.createElement(`div`),refreshCount:n}):r}),s==null&&(c(It,this).set(l.getSlotElementId(),t),c(Ft,this).add(t),l.addService(googletag.pubads())),l}function Kt({siteCategory:e,context:t,navigationContext:n}){var r;let i=Number(se(St));i===0?i=1:n!==`infinite-scroll`&&i++;let a=t.navigationContext!==`initial`||document.referrer.indexOf(window.location.hostname)===-1,{pageTargeting:o,sectionsTargeting:s}=rt(),l=(r=c(At,this))==null?void 0:r.resolve(),u=L({"site-category":e==null?null:[...e],browser:it(navigator.userAgent),pageview:a?`1`:`0`,sessiondepth:String(i),tab_visible:Ct.includes(t.lifecycleState)?`yes`:`no`,pagina:o,section:s},l?{pps:gt(l)}:{});Et(()=>{window.googletag.setConfig(L({targeting:c(Nt,this)?c(Nt,this).call(this,u):u},l?{pps:ht(l)}:{}))}),ce(St,i)}function qt({adUnitKey:e,htmlSlotElement:t,refreshCount:n}){let r={};if(t!=null&&t.getAttribute(`data-targeting`)!=null)try{for(let[e,n]of Object.entries(JSON.parse(t.getAttribute(`data-targeting`)||`{}`)))r[e]=n}catch(e){}let i=c(jt,this).getCurrentContext().path,a=i.split(`/`)[1]||`home`;return r=L(L({},r),{},{SPurl:a.length>0?a.slice(-40):`home`,path:i.slice(-40),Refresh:String(n)}),c(Pt,this)?c(Pt,this).call(this,e,t,r):r}var Jt,Yt=class e{constructor({logKey:e,label:t}){this.isDebug=!1,this.label=`%cENGINE`,pe(e)&&(this.isDebug=!0),typeof t==`string`&&(this.label=`${this.label} ${t}`)}debug(t,...n){this.isDebug&&console.debug(this.label,e.logStyle,t,...n)}error(t,...n){console.trace(this.label,e.errorStyle,t,...n)}warn(t,...n){this.isDebug&&console.warn(this.label,e.warnStyle,t,...n)}};Jt=Yt,Jt.logStyle=`background: #43A047; padding: 2px 4px;`,Jt.errorStyle=`background: #E53935; padding: 2px 4px;`,Jt.warnStyle=`background: #FB8C00; padding: 2px 4px;`;var Xt=`PREBID_NO_BIDS_CONFIGURED`;function Zt(e){return e instanceof Error&&typeof e==`object`&&!!e&&`code`in e&&e.code===Xt}var Qt=3e4,$t=.04,en=.99;function tn(e,t){if(e!=null)return e>=$t&&e<=en?e.toString():null;if(t==null)return null;let n=Math.floor(Number((Math.min(t,en)*100).toFixed(6)));return n>=$t*100?(n/100).toString():null}var nn=new WeakMap,rn=new WeakMap,an=new WeakMap,on=new WeakMap,z=new WeakMap,sn=new WeakMap,cn=new WeakMap,ln=new WeakMap,un=new WeakMap,dn=new WeakMap,fn=new WeakMap,pn=new WeakMap,mn=new WeakMap,hn=new WeakMap,gn=new WeakMap,_n=new WeakMap,B=new WeakSet,vn=class{constructor({gpt:e,prebidAdapter:t,eventDispatcher:n,timeout:r=3e3,callbacks:l={},usePrebidClientRenderOnGptUnfilled:u,divIdToAdUnitKeyMapping:d,pageLifecycleManager:f,batchSelling:p,onAdSlotSell:m,isAdvDisabled:h}){if(i(this,B),a(this,nn,void 0),a(this,rn,void 0),a(this,an,void 0),a(this,on,void 0),a(this,z,void 0),a(this,sn,void 0),a(this,cn,void 0),a(this,ln,new Map),a(this,un,void 0),a(this,dn,void 0),a(this,fn,void 0),a(this,pn,void 0),a(this,mn,void 0),a(this,hn,void 0),a(this,gn,new Set),a(this,_n,new Map),s(nn,this,e),s(rn,this,t),s(an,this,n),s(on,this,r),s(z,this,l),s(dn,this,f),s(fn,this,m),s(pn,this,h==null?(()=>!1):h),s(cn,this,u!==!1),s(un,this,d),p){let e=e=>{let t=sr(e);return s(hn,this,t),t};if(typeof p==`function`){let t=p();t instanceof Promise?s(mn,this,t.then(e)):s(hn,this,e(t))}else p instanceof Promise?s(mn,this,p.then(e)):s(hn,this,e(p))}s(sn,this,o(B,this,Gn).call(this,e,t)),c(dn,this).on(`virtualPageLoad`,e=>{e.type===`spa-route`&&o(B,this,jn).call(this)})}sell(e,t){var n;if(c(pn,this).call(this))return;(n=c(fn,this))==null||n.call(this,o(B,this,yn).call(this,e));let r=ar(c(ln,this).get(e.divId),t);r&&c(ln,this).set(e.divId,r),c(mn,this)&&!c(hn,this)?c(mn,this).then(()=>{o(B,this,bn).call(this,e,o(B,this,Sn).call(this,e.divId))}):o(B,this,bn).call(this,e,o(B,this,Sn).call(this,e.divId))}clearAdSlotState(e){c(ln,this).delete(e)}};function yn(e){var t;let n=(t=c(un,this))==null?void 0:t[e.divId];return n?L(L({},e),{},{adUnitKey:n}):e}function bn(e,t,r=!1){var i=this;return u(function*(){let a=o(B,i,Zn).call(i,t==null?void 0:t.callbacks),s=o(B,i,yn).call(i,e),l={params:s,prebidSucceeded:!1,failedPhases:[],disableBatchSelling:r,excludeFromRefresh:(t==null?void 0:t.excludeFromRefresh)===!0},u=o(B,i,Wn).call(i,t);yield he(c(dn,i));for(let e of u){if(!e.canRun(l))continue;let t=yield e.execute(l);if(nr(t))return;if(t.served){o(B,i,Jn).call(i,e.phase,l,s,e.successCallback(a));return}let n=er(t),r=tr(t);if(n){o(B,i,qn).call(i,e.phase,s,t.message,e.continuationCallback(a),l.excludeFromRefresh);continue}if(r&&(o(B,i,Kn).call(i,e.phase,l,s,e.unfilledCallback(a)),e.phase!==We.Fallback))return;rr(t)&&(l.failedPhases.push(e.phase),o(B,i,Yn).call(i,e.phase,s,t.error,t.originalError,e.failureCallback(a),l.excludeFromRefresh))}yield n()})()}function xn(e){var t;let n=(t=c(hn,this))==null?void 0:t.slotRefsByDivId.get(e);if(!(!n||c(gn,this).has(n.batchId)))return n}function Sn(e){var t;let n=c(ln,this).get(e),r=(t=o(B,this,xn).call(this,e))==null?void 0:t.slot;return ar(n,or(r==null?void 0:r.sellOptions))}function Cn(e,t){let n=o(B,this,Sn).call(this,e);return t===We.Prebid?(n==null?void 0:n.excludePrebid)!==!0:t!==We.Gpt||(n==null?void 0:n.excludeGpt)!==!0}function wn(e,t,n,r,i,a,s){c(_n,this).has(e)||c(_n,this).set(e,new Map);let l=c(_n,this).get(e);l.has(t)||l.set(t,{items:new Map});let d=l.get(t);return new Promise((c,l)=>{d.items.set(n.divId,{params:n,options:r,ctx:i,resolve:c,reject:l});let f=function(){var e=u(function*(){d.timeoutId!=null&&(clearTimeout(d.timeoutId),d.timeoutId=void 0);let e=Array.from(d.items.values());d.items.clear();try{let n=yield s(e);for(let r of e){var t;let e=(t=n[r.params.divId])==null?{served:!1,error:`No result returned for slot ${r.params.divId}`}:t;r.resolve(e)}}catch(t){for(let n of e)n.reject(t)}});return function(){return e.apply(this,arguments)}}();a.slotList.filter(e=>o(B,this,Cn).call(this,e.divId,t)).every(e=>d.items.has(e.divId))?f():d.timeoutId==null&&(d.timeoutId=window.setTimeout(()=>{d.timeoutId=void 0;let n=Array.from(d.items.values());d.items.clear(),o(B,this,kn).call(this,e,t,a,n,`Batch phase timed out before all slots queued`)},a.timeout))})}function Tn(e,t,n,r){return o(B,this,wn).call(this,e.batchId,We.Prebid,t.params,o(B,this,Sn).call(this,t.params.divId),t,e.batchDefinition,e=>o(B,this,En).call(this,e,n,r))}function En(e,t,n){var r=this;return u(function*(){let i=[],a=e.map(e=>{var t;return i.push((t=e.params.overridePrebidAdUnitCode)==null?e.params.adUnitKey:t),{adUnitKey:e.params.adUnitKey,customSizes:e.params.overrideAdUnitSizes,divId:e.params.divId,overridePrebidAdUnitCode:e.params.overridePrebidAdUnitCode,refreshCount:e.params.refreshCount,sspParams:e.params.sspParams}}),s=[];try{s=yield o(B,r,Rn).call(r,n,e.map(e=>e.params)),yield c(on,r)?$n(t.runBatchAuction(a),c(on,r)):t.runBatchAuction(a),n&&(yield t.setTargetingForGPT(i),n.applyPublisherProvidedSignals(),yield o(B,r,zn).call(r,{adUnitKeys:i,divIds:e.map(e=>e.params.divId),googleSlots:s,prebidAdapter:t}));let l={};for(let t of e)t.ctx.prebidSucceeded=!0,l[t.params.divId]={served:!1,continueNextHandler:!0,message:`Prebid auction executed for ${t.params.adUnitKey}, moving to next handler`};return l}catch(t){let i={},a=Zt(t);n&&o(B,r,Bn).call(r,s);for(let r of e)n?i[r.params.divId]={served:!1,continueNextHandler:!0,message:a?`Prebid has no bids configured for ${r.params.adUnitKey}, moving to GPT handler`:`Prebid auction failed or timed out for ${r.params.adUnitKey}, moving to GPT handler`}:i[r.params.divId]={served:!1,error:ir(t,`Prebid auction failed or timed out`),originalError:t};return i}})()}function Dn(e,t,n,r){return o(B,this,wn).call(this,e.batchId,We.Gpt,t.params,o(B,this,Sn).call(this,t.params.divId),t,e.batchDefinition,t=>o(B,this,On).call(this,t,e,n,r))}function On(e,t,n,r){var i=this;return u(function*(){let{batchId:a,batchDefinition:s}=t,c=e.map(e=>e.params),l=e.map(e=>o(B,i,Un).call(i,e.params.divId,`MonetizationManager:batchGptResponseCheck:${a}:${e.params.divId}`));try{let t=Promise.all(l.map(e=>e.promise));yield o(B,i,In).call(i,c,n);let f=yield t;o(B,i,Mn).call(i,a,s,f);let p=new Map(f.map((t,n)=>[e[n].params.divId,t])),m={};for(let t of e){var u,d;(u=(d=p.get(t.params.divId))==null?void 0:d.isEmpty)==null||u?(t.ctx.clientRenderReason=`gptUnfilled`,m[t.params.divId]={served:!1,emptyAd:!0,continueNextHandler:!!r,message:`GPT rendered empty for ${t.params.adUnitKey}, attempting Prebid client render`}):m[t.params.divId]={served:!0}}return m}catch(t){for(let e of l)e.cancel();o(B,i,Nn).call(i,a,s,`GPT batch failed before domination could be verified`,void 0,t);let n={};for(let i of e)r&&i.ctx.prebidSucceeded?(i.ctx.clientRenderReason=`gptError`,n[i.params.divId]={served:!1,continueNextHandler:!0,message:`GPT sellAdSlots failed for ${i.params.adUnitKey}, attempting Prebid client render`}):n[i.params.divId]={served:!1,error:ir(t,`GPT sellAdSlots failed`),originalError:t};return n}})()}function kn(e,t,n,r,i){var a;let s=new Map(r.map(e=>[e.params.divId,e])),l=c(_n,this).get(e);if(l)for(let e of l.values()){e.timeoutId!=null&&(clearTimeout(e.timeoutId),e.timeoutId=void 0);for(let t of e.items.values())s.set(t.params.divId,t);e.items.clear()}o(B,this,An).call(this,e);let u=Array.from(s.values()),d={batchId:e,phase:t,slots:u.map(e=>({adUnitKey:e.params.adUnitKey,divId:e.params.divId})),reason:i};o(B,this,Qn).call(this,(a=n.callbacks)==null?void 0:a.onBatchSplit,d);for(let e of u)e.resolve({served:!1,cancelled:!0}),o(B,this,bn).call(this,e.params,c(ln,this).get(e.params.divId),!0)}function An(e){c(gn,this).add(e),c(_n,this).delete(e)}function jn(){c(gn,this).clear(),c(_n,this).clear()}function Mn(e,t,n){var r;let i=new Map;for(let e of n)(e==null?void 0:e.adProvider)===`gpt`&&i.set(e.divId,e);let a=[];for(let e of t.slotList){let t=i.get(e.divId);if(!t)return;a.push(t)}let s=a.find(e=>e.isEmpty);if(s){o(B,this,Nn).call(this,e,t,`GPT rendered at least one batch slot empty`,s);return}let l=a.map(e=>e.lineItemId);if(!(l.every(e=>typeof e==`number`)&&new Set(l).size===1)){o(B,this,Nn).call(this,e,t,`GPT rendered the batch, but the slots do not share the same lineItemId`,a[a.length-1]);return}let u={EVENT_NAME:Qe,batchId:e,slots:o(B,this,Pn).call(this,t),lineItemId:l[0],adProvider:a[0].adProvider};c(an,this).dispatch(u),o(B,this,Qn).call(this,(r=t.callbacks)==null?void 0:r.onDomination,u)}function Nn(e,t,n,r,i){var a;let s=L(L({batchId:e,slots:o(B,this,Pn).call(this,t),reason:n},r?{trigger:r}:{}),i?{originalError:i}:{});o(B,this,An).call(this,e),o(B,this,Qn).call(this,(a=t.callbacks)==null?void 0:a.onFallback,s)}function Pn(e){return e.slotList.map(e=>{var t,n,r;return{adUnitKey:(t=(n=e.adUnitKey)==null?(r=c(un,this))==null?void 0:r[e.divId]:n)==null?e.divId:t,divId:e.divId}})}function Fn(e,t){return o(B,this,Hn).call(this,e,t)?t.refreshSlot(e):t.sellAdSlot(e)}function In(e,t){return e.every(e=>o(B,this,Hn).call(this,e,t))?t.refreshSlots(e):t.sellAdSlots(e)}function Ln(e,t){return u(function*(){if(e&&typeof e.defineSlot==`function`)return e.defineSlot(t)})()}function Rn(e,t){return u(function*(){return e&&typeof e.defineSlots==`function`?e.defineSlots(t):[]})()}function zn({adUnitKeys:e,divIds:t,googleSlots:n,prebidAdapter:r}){var i=this;return u(function*(){if(typeof r.getHighestCpmBids==`function`)for(let l=0;le.startsWith(`hb_`)||e===`pt_fp`||e===`no_bid`);if(e.length===0)continue;t.setConfig({targeting:Object.fromEntries(e.map(e=>[e,null]))})}catch(e){}}function Vn(e){if(typeof e.getConfig==`function`){let t=e.getConfig(`targeting`).targeting;if(t!=null)return L({},t)}return Object.fromEntries(e.getTargetingKeys().map(t=>[t,e.getTargeting(t)]))}function Hn(e,t){return typeof t.hasDefinedSlot==`function`&&typeof t.refreshSlot==`function`&&typeof t.refreshSlots==`function`&&t.hasDefinedSlot(e.divId)}function Un(e,t,n){let r=!1,i,a,o,s=e=>{r||(r=!0,o!=null&&clearTimeout(o),i==null||i(),a==null||a(e))},l=new Promise(n=>{a=n;let r=c(an,this).subscribe({eventName:Xe,subscriberName:t,callback:t=>{t.divId===e&&t.adProvider===`gpt`&&s(t)}});i=()=>r.unsubscribe()});return n!=null&&(o=setTimeout(()=>s(),n)),{promise:l,cancel:()=>{s()}}}function Wn(e){return!(e!=null&&e.excludePrebid)&&!(e!=null&&e.excludeGpt)&&typeof(e==null?void 0:e.useClientSideRenderFallback)!=`boolean`?c(sn,this):o(B,this,Gn).call(this,e.excludeGpt?void 0:c(nn,this),e.excludePrebid?void 0:c(rn,this),{useClientSideRenderFallback:e.useClientSideRenderFallback})}function Gn(e,t,{useClientSideRenderFallback:n}={}){let r=this,i=c(on,this),a=typeof n==`boolean`?n:c(cn,this),s=[];return t&&s.push({phase:We.Prebid,successCallback:e=>e.onPrebidSuccess,failureCallback:e=>e.onPrebidFailure,continuationCallback:e=>e.onPrebidContinuation,unfilledCallback:e=>e.onUnfilled,canRun:()=>!0,execute(n){return u(function*(){let a=n.disableBatchSelling?void 0:o(B,r,xn).call(r,n.params.divId);if(a)return o(B,r,Tn).call(r,a,n,t,e);let s;try{var c;let a=[];s=yield o(B,r,Ln).call(r,e,n.params);let l={adUnitKey:n.params.adUnitKey,customSizes:n.params.overrideAdUnitSizes,divId:n.params.divId,outOfPageAdUnitPath:n.params.slotType===`outOfPageBottomAnchor`?s==null?void 0:s.getAdUnitPath():void 0,overridePrebidAdUnitCode:n.params.overridePrebidAdUnitCode,refreshCount:n.params.refreshCount,sspParams:n.params.sspParams};yield i?$n(t.runAuction(l),i):t.runAuction(l),a.push((c=n.params.overridePrebidAdUnitCode)==null?n.params.adUnitKey:c),n.prebidSucceeded=!0,e&&(yield t.setTargetingForGPT(a),e.applyPublisherProvidedSignals(),yield o(B,r,zn).call(r,{adUnitKeys:a,divIds:[n.params.divId],googleSlots:s?[s]:[],prebidAdapter:t}))}catch(t){return e?(o(B,r,Bn).call(r,[s]),{served:!1,continueNextHandler:!0,message:Zt(t)?`Prebid has no bids configured for `+n.params.adUnitKey+`, moving to GPT handler`:`Prebid auction failed or timed out for `+n.params.adUnitKey+`, moving to GPT handler`}):{served:!1,error:ir(t,`Prebid auction failed or timed out`),originalError:t}}return{served:!1,continueNextHandler:!0,message:`Prebid auction executed for `+n.params.adUnitKey+`, moving to next handler`}})()}}),e&&s.push({phase:We.Gpt,successCallback:e=>e.onGptSuccess,failureCallback:e=>e.onGptFailure,continuationCallback:e=>e.onGptContinuation,unfilledCallback:e=>e.onUnfilled,canRun:()=>!0,execute(n){return u(function*(){var i;let s=n.disableBatchSelling?void 0:o(B,r,xn).call(r,n.params.divId);if(s)return o(B,r,Dn).call(r,s,n,e,t);let c=n.params.slotType===`outOfPageBottomAnchor`,l=c||a&&n.params.slotType!==`outOfPageInterstitial`,u=l?o(B,r,Un).call(r,n.params.divId,`MonetizationManager:gptResponseCheck`,c&&((i=n.params.refreshCount)==null?0:i)>0?Qt:void 0):void 0;try{var d,f;if(yield o(B,r,Fn).call(r,n.params,e),!l)return{served:!0};let i=(d=(f=yield u.promise)==null?void 0:f.isEmpty)==null||d;return i&&c?{served:!1,emptyAd:!0,message:`GPT left the bottom anchor `+n.params.divId+` empty or did not answer its refresh`}:i?(n.clientRenderReason=`gptUnfilled`,{served:!1,emptyAd:!0,continueNextHandler:!!t,message:`GPT rendered empty for `+n.params.adUnitKey+`, attempting Prebid client render`}):{served:!0}}catch(e){return u==null||u.cancel(),t&&n.prebidSucceeded&&!c?(n.clientRenderReason=`gptError`,{served:!1,continueNextHandler:!0,message:`GPT sellAdSlot failed for `+n.params.adUnitKey+`, attempting Prebid client render`}):{served:!1,error:ir(e,`GPT sellAdSlot failed`),originalError:e}}})()}}),t&&s.push({phase:We.PrebidClientRender,successCallback:e=>e.onClientRenderSuccess,failureCallback:e=>e.onClientRenderFailure,continuationCallback:e=>e.onClientRenderContinuation,canRun:e=>e.prebidSucceeded&&e.params.slotType!==`outOfPageBottomAnchor`,unfilledCallback:e=>e.onUnfilled,execute(e){return u(function*(){try{var n;let r=yield t.renderWinningBid(document,e.params.divId,e.params.adUnitKey,(n=e.clientRenderReason)==null?`noGpt`:n);return r==null?{served:!1,emptyAd:!0,error:`No winning Prebid bid to render`}:(e.renderedMediaType=r,{served:!0})}catch(e){return{served:!1,error:ir(e,`Client-side Prebid render failed`),originalError:e}}})()}}),s.push({phase:We.Fallback,successCallback:()=>void 0,failureCallback:e=>e.onFallback,unfilledCallback:e=>e.onUnfilled,continuationCallback:()=>void 0,canRun:()=>!0,execute:function(){var e=u(function*(e){return{served:!1,emptyAd:!0,continueNextHandler:!1,error:`All selling systems failed for adUnitKey: `+e.params.adUnitKey}});return function(t){return e.apply(this,arguments)}}()}),s}function Kn(e,t,n,r){let i={EVENT_NAME:Ke,adUnitKey:n.adUnitKey,divId:n.divId,phase:e,context:t};o(B,this,Qn).call(this,r,i);let a=`Ad unit ${n.adUnitKey} unfilled at phase ${e}`;o(B,this,Xn).call(this,e,n,Ge.Unfilled,a,t.excludeFromRefresh),c(an,this).dispatch(i)}function qn(e,t,n,r,i){let a={adUnitKey:t.adUnitKey,divId:t.divId,phase:e,type:Ge.Continue,message:n};o(B,this,Qn).call(this,r,a),o(B,this,Xn).call(this,e,t,Ge.Continue,n,i)}function Jn(e,t,n,r){let i={adUnitKey:n.adUnitKey,divId:n.divId,phase:e,type:Ge.Success};o(B,this,Qn).call(this,r,i);let a={EVENT_NAME:qe,adUnitKey:n.adUnitKey,divId:n.divId,phase:e,context:t};o(B,this,Xn).call(this,e,n,Ge.Success,void 0,t.excludeFromRefresh,t.renderedMediaType),c(an,this).dispatch(a)}function Yn(e,t,n,r,i,a){let s={adUnitKey:t.adUnitKey,divId:t.divId,phase:e,type:Ge.Failure,error:n,originalError:r};o(B,this,Qn).call(this,i,s),o(B,this,Xn).call(this,e,t,Ge.Failure,n,a)}function Xn(e,t,n,r,i,a){c(an,this).dispatch(L(L(L({EVENT_NAME:Ze,adUnitKey:t.adUnitKey,divId:t.divId,phase:e,outcome:n,sellParams:t},i?{excludeFromRefresh:i}:{}),r?{error:r}:{}),a?{renderedMediaType:a}:{}))}function Zn(e){var t,n,r,i,a,o,s,l,u,d,f;return e?{onPrebidSuccess:(t=e.onPrebidSuccess)==null?c(z,this).onPrebidSuccess:t,onPrebidFailure:(n=e.onPrebidFailure)==null?c(z,this).onPrebidFailure:n,onPrebidContinuation:(r=e.onPrebidContinuation)==null?c(z,this).onPrebidContinuation:r,onGptSuccess:(i=e.onGptSuccess)==null?c(z,this).onGptSuccess:i,onGptFailure:(a=e.onGptFailure)==null?c(z,this).onGptFailure:a,onGptContinuation:(o=e.onGptContinuation)==null?c(z,this).onGptContinuation:o,onClientRenderSuccess:(s=e.onClientRenderSuccess)==null?c(z,this).onClientRenderSuccess:s,onClientRenderFailure:(l=e.onClientRenderFailure)==null?c(z,this).onClientRenderFailure:l,onClientRenderContinuation:(u=e.onClientRenderContinuation)==null?c(z,this).onClientRenderContinuation:u,onFallback:(d=e.onFallback)==null?c(z,this).onFallback:d,onUnfilled:(f=e.onUnfilled)==null?c(z,this).onUnfilled:f}:c(z,this)}function Qn(e,t){if(e)try{e(t)}catch(e){}}function $n(e,t){return new Promise((n,r)=>{let i=setTimeout(()=>r(Error(`Auction timed out after ${t}ms`)),t);e.then(e=>{clearTimeout(i),n(e)},e=>{clearTimeout(i),r(e)})})}function er(e){return e.served===!1&&`continueNextHandler`in e&&e.continueNextHandler===!0}function tr(e){return e.served===!1&&`emptyAd`in e&&e.emptyAd===!0&&(!(`continueNextHandler`in e)||e.continueNextHandler!==!0)}function nr(e){return e.served===!1&&`cancelled`in e&&e.cancelled===!0}function rr(e){return e.served===!1&&`error`in e&&typeof e.error==`string`}function ir(e,t){return typeof(e==null?void 0:e.message)==`string`?e.message:t}function ar(e,t){if(!e&&!t)return;let n=e!=null&&e.callbacks||t!=null&&t.callbacks?L(L({},e==null?void 0:e.callbacks),t==null?void 0:t.callbacks):void 0;return L(L(L({},e),t),n?{callbacks:n}:{})}function or(e){if(!e)return;let t=L({},e);return delete t.callbacks,t}function sr(e){let t=new Map,n=new Map;for(let[r,i]of Object.entries(e.batches)){let e=new Map,a=[],o={batchId:r,callbacks:i.callbacks,slotList:a,slots:e,timeout:i.timeout};for(let[t,s]of Object.entries(i.slots)){let i=cr(t,s);e.set(t,i),a.push(i),n.set(t,{batchId:r,batchDefinition:o,slot:i})}t.set(r,o)}return{batches:t,slotRefsByDivId:n}}function cr(e,t){return t===!0?{divId:e}:L(L({},t),{},{divId:e})}function lr(e){return e===void 0?!1:ur(e)||dr(e)}function ur(e){return e!==void 0&&RegExp(`(googlebot/|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|hotjar|yahoo|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon|httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis|Chrome-Lighthouse|AdsBot-Google-Mobile|AdsBot-Google)`,`i`).test(e)}function dr(e){return e!==void 0&&RegExp(`(01h4x.com|360Spider|404checker|404enemy|80legs|ADmantX|AIBOT|ALittle Client|ASPSeek|Abonti|Aboundex|Aboundexbot|Acunetix|AfD-Verbotsverfahren|AhrefsBot|AiHitBot|Aipbot|Alexibot|AllSubmitter|Alligator|AlphaBot|Anarchie|Anarchy|Anarchy99|Ankit|Anthill|Apexoo|Aspiegel|Asterias|Atomseobot|Attach|AwarioRssBot|AwarioSmartBot|BBBike|BDCbot|BDFetch|BLEXBot|BackDoorBot|BackStreet|BackWeb|Backlink-Ceck|BacklinkCrawler|Badass|Bandit|Barkrowler|BatchFTP|Battleztar Bazinga|BetaBot|Bigfoot|Bitacle|BlackWidow|Black Hole|Blackboard|Blow|BlowFish|Boardreader|Bolt|BotALot|Brandprotect|Brandwatch|Buck|Buddy|BuiltBotTough|BuiltWith|Bullseye|BunnySlippers|BuzzSumo|CATExplorador|CCBot|CODE87|CSHttp|Calculon|CazoodleBot|Cegbfeieh|CensysInspect|CheTeam|CheeseBot|CherryPicker|ChinaClaw|Chlooe|Citoid|Claritybot|Cliqzbot|Cloud mapping|Cocolyzebot|Cogentbot|Collector|Copier|CopyRightCheck|Copyscape|Cosmos|Craftbot|Crawling at Home Project|CrazyWebCrawler|Crescent|CrunchBot|Curious|Custo|CyotekWebCopy|DBLBot|DIIbot|DSearch|DTS Agent|DataCha0s|DatabaseDriverMysqli|Demon|Deusu|Devil|Digincore|DigitalPebble|Dirbuster|Disco|Discobot|Discoverybot|Dispatch|DittoSpyder|DnBCrawler-Analytics|DnyzBot|DomCopBot|DomainAppender|DomainCrawler|DomainSigmaCrawler|DomainStatsBot|Domains Project|Dotbot|Download Wonder|Dragonfly|Drip|ECCP/1.0|EMail Siphon|EMail Wolf|EasyDL|Ebingbong|Ecxi|EirGrabber|EroCrawler|Evil|Exabot|Express WebPictures|ExtLinksBot|Extractor|ExtractorPro|Extreme Picture Finder|EyeNetIE|Ezooms|FDM|FHscan|FemtosearchBot|Fimap|Firefox/7.0|FlashGet|Flunky|Foobot|Freeuploader|FrontPage|Fuzz|FyberSpider|Fyrebot|G-i-g-a-b-o-t|GT::WWW|GalaxyBot|Genieo|GermCrawler|GetRight|GetWeb|Getintent|Gigabot|Go!Zilla|Go-Ahead-Got-It|GoZilla|Gotit|GrabNet|Grabber|Grafula|GrapeFX|GrapeshotCrawler|GridBot|HEADMasterSEO|HMView|HTMLparser|HTTP::Lite|HTTrack|Haansoft|HaosouSpider|Harvest|Havij|Heritrix|Hloader|HonoluluBot|Humanlinks|HybridBot|IDBTE4M|IDBot|IRLbot|Iblog|Id-search|IlseBot|Image Fetch|Image Sucker|IndeedBot|Indy Library|InfoNaviRobot|InfoTekies|Intelliseek|InterGET|InternetSeer|Internet Ninja|Iria|Iskanie|IstellaBot|JOC Web Spider|JamesBOT|Jbrofuzz|JennyBot|JetCar|Jetty|JikeSpider|Joomla|Jorgee|JustView|Jyxobot|Kenjin Spider|Keybot Translation-Search-Machine|Keyword Density|Kinza|Kozmosbot|LNSpiderguy|LWP::Simple|Lanshanbot|Larbin|Leap|LeechFTP|LeechGet|LexiBot|Lftp|LibWeb|Libwhisker|LieBaoFast|Lightspeedsystems|Likse|LinkScan|LinkWalker|Linkbot|LinkextractorPro|LinkpadBot|LinksManager|LinqiaMetadataDownloaderBot|LinqiaRSSBot|LinqiaScrapeBot|Lipperhey|Lipperhey Spider|Litemage_walker|Lmspider|Ltx71|MFC_Tear_Sample|MIDown tool|MIIxpc|MJ12bot|MQQBrowser|MSFrontPage|MSIECrawler|MTRobot|Mag-Net|Magnet|Mail.RU_Bot|Majestic-SEO|Majestic12|Majestic SEO|MarkMonitor|MarkWatch|Mass Downloader|Masscan|Mata Hari|MauiBot|Mb2345Browser|MeanPath Bot|Meanpathbot|Mediatoolkitbot|MegaIndex.ru|Metauri|MicroMessenger|Microsoft Data Access|Microsoft URL Control|Minefield|Mister PiX|Moblie Safari|Mojeek|Mojolicious|MolokaiBot|Morfeus Fucking Scanner|Mozlila|Mr.4x3|Msrabot|Musobot|NICErsPRO|NPbot|Name Intelligence|Nameprotect|Navroad|NearSite|Needle|Nessus|NetAnts|NetLyzer|NetMechanic|NetSpider|NetZIP|Net Vampire|Netcraft|Nettrack|Netvibes|NextGenSearchBot|Nibbler|Niki-bot|Nikto|NimbleCrawler|Nimbostratus|Ninja|Nmap|Nuclei|Nutch|Octopus|Offline Explorer|Offline Navigator|OnCrawl|OpenLinkProfiler|OpenVAS|Openfind|Openvas|OrangeBot|OrangeSpider|OutclicksBot|OutfoxBot|PECL::HTTP|PHPCrawl|POE-Component-Client-HTTP|PageAnalyzer|PageGrabber|PageScorer|PageThing.com|Page Analyzer|Pandalytics|Panscient|Papa Foto|Pavuk|PeoplePal|Petalbot|Pi-Monster|Picscout|Picsearch|PictureFinder|Piepmatz|Pimonster|Pixray|PleaseCrawl|Pockey|ProPowerBot|ProWebWalker|Probethenet|Psbot|Pu_iN|Pump|PxBroker|PyCurl|QueryN Metasearch|Quick-Crawler|RSSingBot|RankActive|RankActiveLinkBot|RankFlex|RankingBot|RankingBot2|Rankivabot|RankurBot|Re-re|ReGet|RealDownload|Reaper|RebelMouse|Recorder|RedesScrapy|RepoMonkey|Ripper|RocketCrawler|Rogerbot|SBIder|SEOkicks|SEOkicks-Robot|SEOlyticsCrawler|SEOprofiler|SEOstats|SISTRIX|SMTBot|SalesIntelligent|ScanAlert|Scanbot|ScoutJet|Scrapy|Screaming|ScreenerBot|ScrepyBot|Searchestate|SearchmetricsBot|Seekport|SemanticJuice|Semrush|SemrushBot|SentiBot|SeoSiteCheckup|SeobilityBot|Seomoz|Shodan|Siphon|SiteCheckerBotCrawler|SiteExplorer|SiteLockSpider|SiteSnagger|SiteSucker|Site Sucker|Sitebeam|Siteimprove|Sitevigil|SlySearch|SmartDownload|Snake|Snapbot|Snoopy|SocialRankIOBot|Sociscraper|Sogou web spider|Sosospider|Sottopop|SpaceBison|Spammen|SpankBot|Spanner|Spbot|Spinn3r|SputnikBot|Sqlmap|Sqlworm|Sqworm|Steeler|Stripper|Sucker|Sucuri|SuperBot|SuperHTTP|Surfbot|SurveyBot|Suzuran|Swiftbot|Szukacz|T0PHackTeam|T8Abot|Teleport|TeleportPro|Telesoft|Telesphoreo|Telesphorep|TheNomad|The Intraformant|Thumbor|TightTwatBot|Titan|Toata|Toweyabot|Tracemyfile|Trendiction|Trendictionbot|True_Robot|Turingos|Turnitin|TurnitinBot|TwengaBot|Twice|Typhoeus|URLy.Warning|URLy Warning|UnisterBot|Upflow|V-BOT|VB Project|VCI|Vacuum|Vagabondo|VelenPublicWebCrawler|VeriCiteCrawler|VidibleScraper|Virusdie|VoidEYE|Voil|Voltron|WASALive-Bot|WBSearchBot|WEBDAV|WISENutbot|WPScan|WWW-Collector-E|WWW-Mechanize|WWW::Mechanize|WWWOFFLE|Wallpapers|Wallpapers/3.0|WallpapersHD|WeSEE|WebAuto|WebBandit|WebCollage|WebCopier|WebEnhancer|WebFetch|WebFuck|WebGo IS|WebImageCollector|WebLeacher|WebPix|WebReaper|WebSauger|WebStripper|WebSucker|WebWhacker|WebZIP|Web Auto|Web Collage|Web Enhancer|Web Fetch|Web Fuck|Web Pix|Web Sauger|Web Sucker|Webalta|WebmasterWorldForumBot|Webshag|WebsiteExtractor|WebsiteQuester|Website Quester|Webster|Whack|Whacker|Whatweb|Who.is Bot|Widow|WinHTTrack|WiseGuys Robot|Wonderbot|Woobot|Wotbox|Wprecon|Xaldon WebSpider|Xaldon_WebSpider|Xenu|YoudaoBot|Zade|Zauba|Zermelo|Zeus|Zitebot|ZmEu|ZoomBot|ZoominfoBot|ZumBot|ZyBorg|adscanner|archive.org_bot|arquivo-web-crawler|arquivo.pt|autoemailspider|backlink-check|cah.io.community|check1.exe|clark-crawler|coccocbot|cognitiveseo|com.plumanalytics|crawl.sogou.com|crawler.feedback|crawler4j|dataforseo.com|demandbase-bot|domainsproject.org|eCatch|evc-batch|facebookscraper|gopher|heritrix|instabid|internetVista monitor|ips-agent|isitwp.com|iubenda-radar|linkdexbot|lwp-request|lwp-trivial|magpie-crawler|meanpathbot|mediawords|muhstik-scan|netEstate NE Crawler|oBot|page scorer|pcBrowser|plumanalytics|polaris version|probe-image-size|ripz|s1z.ru|satoristudio.net|scalaj-http|scan.lol|seobility|seocompany.store|seoscanners|seostar|serpstatbot|sexsearcher|sitechecker.pro|siteripz|sogouspider|sp_auditbot|spyfu|sysscan|tAkeOut|trendiction.com|trendiction.de|ubermetrics-technologies.com|voyagerx.com|webgains-bot|webmeup-crawler|webpros.com|webprosbot|x09Mozilla|x22Mozilla|xpymep1.exe|zauba.io|zgra)`,`i`).test(e)}var fr=null;function pr({adUnitSizeConfig:e,logger:t,isOnPostInjection:n=!1,device:r}){let i=`unknown`;try{i=ge(window.navigator)}catch(e){console.error(`Error while getting browser language`,e)}if(lr(window.navigator.userAgent)&&i!==`it-IT`)return;t.debug(`== Scale iframe == Is enabled`),fr==null?(t.debug(`== Scale iframe == Configuring MutationObserver`),fr=new MutationObserver(e=>{for(let n of e){let e=n.target;t.debug(`== Scale iframe == Detected mutation ${n.type} inside the ${e.id} container`);let r=n.type===`childList`&&e.firstElementChild!=null&&e.firstElementChild.tagName===`IFRAME`,i=n.type===`attributes`&&e.tagName===`IFRAME`;if(r||i)try{let n=e.closest(`div[data-unit-key]`);if(n==null){t.debug(`== Scale iframe == Parent element with data-unit-key attribute not found for the mutated element with id ${e.id}, skipping scaling.`);continue}let r=n.dataset.unitKey;if(r==null){t.debug(`== Scale iframe == adUnitKey not found for the mutated element with id ${e.id}, skipping scaling.`);continue}vr({adUnitKey:r,containerWidth:n.dataset.scaleiframeWidth,containerHeight:n.dataset.scaleiframeHeight,logger:t})}catch(e){t.debug(`== Scale iframe == Something gone wrong while scaling the iframe`,e)}}})):t.debug(`== Scale iframe == MutationObserver is already configured`);let a={desktop:{},mobile:{},tablet:{}};typeof e==`object`&&e[r]!=null&&(n?a[r]=e[r]:a[r]=L(L({},a[r]),e[r]));let o=a[r];for(let e in o){let n=document.querySelector(`div#${e}`);n==null?t.debug(`== Scale iframe ${e} == Container not found, skip..`):(n.dataset.unitKey=e,o[e].containerWidth!=null&&(n.dataset.scaleiframeWidth=String(o[e].containerWidth)),o[e].containerHeight!=null&&(n.dataset.scaleiframeHeight=String(o[e].containerHeight)),t.debug(`== Scale iframe ${e} == Observing container for mutations.. If the container width is ${o[e].containerWidth} and container height is ${o[e].containerHeight}, the iframes inside will be scaled accordingly.`),fr.observe(n,{attributes:!0,attributeFilter:[`width`,`height`],childList:!0,subtree:!0}))}}var mr=5,hr=50;function gr(e){let t=typeof e==`number`?e:Number(String(e==null?``:e).replace(`px`,``).trim());return Number.isFinite(t)&&t>1?t:null}function _r({iframe:e,adUnitKey:t,logger:n,allowLayoutRead:r}){let i=[{label:`getAttribute`,read:()=>({width:e.getAttribute(`width`),height:e.getAttribute(`height`)})},{label:`style`,read:()=>({width:e.style.width,height:e.style.height})},{label:`getBoundingClientRect`,read:()=>{let t=e.getBoundingClientRect();return{width:t.width,height:t.height}}}],a=null,o=null;for(let e of r?i:i.slice(0,-1)){var s,c;let r=e.read(),i=gr(r.width),l=gr(r.height);if(n.debug(`== Scale iframe ${t} == iframeWidth is ${i} and iframeHeight is ${l} from ${e.label}`),a=(s=a)==null?i:s,o=(c=o)==null?l:c,a!=null&&o!=null)break}return a==null||o==null?null:{width:a,height:o}}function vr({adUnitKey:e,containerHeight:t,containerWidth:n,logger:r,attempt:i=0}){r.debug(`== Scale iframe ${e} == Scale iframe starting..`),r.debug(`== Scale iframe ${e} == containerWidth is ${n} and containerHeight is ${t}`);let a=document.querySelector(`div#${e} iframe`);if(a==null){r.debug(`== Scale iframe ${e} == Iframe not found, exit..`);return}if(a.getAttribute(`scaled-iframe`)===`true`){r.debug(`== Scale iframe ${e} == Already applied, exit..`);return}let o=_r({iframe:a,adUnitKey:e,logger:r,allowLayoutRead:i>0});if(o==null){if(i===0&&a.dataset.scaleiframeRetryPending===`true`){r.debug(`== Scale iframe ${e} == Size not measurable yet, a retry is already pending, exit..`);return}let o=i+1;if(o>=mr){delete a.dataset.scaleiframeRetryPending,r.debug(`== Scale iframe ${e} == Size still not measurable after ${mr} attempts, giving up..`);return}a.dataset.scaleiframeRetryPending=`true`,r.debug(`== Scale iframe ${e} == Size not measurable yet, retrying (${o}/${mr})`),requestAnimationFrame(()=>{setTimeout(()=>{vr({adUnitKey:e,containerHeight:t,containerWidth:n,logger:r,attempt:o})},hr)});return}delete a.dataset.scaleiframeRetryPending;let s=o.width,c=o.height;r.debug(`== Scale iframe ${e} == Final iframeWidth ${s} and iframeHeight ${c} detected`);let l;n!=null&&(l=Math.min(Number(n)/s,T()/c),r.debug(`== Scale iframe ${e} == The scaling factor for the container width is: ${l}`));let u;t!=null&&(u=Math.min(Number(t)/c,w()/s),r.debug(`== Scale iframe ${e} == The scaling factor for the container height is: ${u}`));let d;if(l!=null&&u!=null)d=Math.min(l,u);else{var f;d=(f=l)==null?u:f}r.debug(`== Scale iframe ${e} == The scaling factor is: ${d}`),typeof d==`number`&&!isNaN(d)&&d<1?(r.debug(`== Scale iframe ${e} == The scale iframe is needed`),a.setAttribute(`scaled-iframe`,`true`),a.style.transformOrigin=`top left`,a.style.transform=`scale(${d})`,a.style.width=`${s}px`,a.style.height=`${c}px`,a.style.maxWidth=`none`,a.parentElement!=null&&(a.parentElement.style.width=`${d*s}px`,a.parentElement.style.height=`${d*c}px`,a.parentElement.style.overflow=`hidden`,a.parentElement.style.justifyContent=`flex-start`,a.parentElement.style.alignItems=`flex-start`)):(r.debug(`== Scale iframe ${e} == The iframe not need to be scaled`),a.setAttribute(`scaled-iframe`,`false`))}var yr=`:root{--floorad-desktop-bg:transparent;--floorad-mobile-bg:#fafafa}div#floorad-container{justify-content:center;align-items:center;width:100%;height:100px;display:flex}div#floorad-container.bottom-slot{position:fixed}div#floorad-container.desktop-container{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-color:var(--floorad-desktop-bg);z-index:9999998;box-shadow:0 0 5px rgba(0,0,0,.2)}div#floorad-container.bottom-slot.desktop-container{bottom:0;left:0;transform:translateY(calc(100% + 10px))}div#floorad-container.bottom-slot.desktop-container.rendered-floorad{transform:translateY(0)!important}div#floorad-container.mobile-container{z-index:2147483640}div#floorad-container.bottom-slot.mobile-container{background-color:var(--floorad-mobile-bg);bottom:0;left:0;transform:translate(calc(-100% - 10px));box-shadow:0 0 5px rgba(0,0,0,.2)}div#floorad-container.anchor-slot.mobile-container{background-color:transparent}div#floorad-container.bottom-slot.mobile-container.rendered-floorad{transform:translate(0)!important}div#floorad-container.anchor-slot.mobile-container.rendered-floorad{background-color:var(--floorad-mobile-bg);box-shadow:0 0 5px rgba(0,0,0,.2)}div#floorad-close-button{position:absolute;left:0}div#floorad-close-button.desktop-button{cursor:pointer;z-index:1;width:35px;height:100%}div#floorad-close-button.mobile-button{text-align:center;width:30px;height:30px}div#floorad-container.bottom-slot div#floorad-close-button.mobile-button{background-color:var(--floorad-mobile-bg);border-radius:0 12px 0 0;top:-30px;box-shadow:0 -1px 1px rgba(0,0,0,.2)}div#floorad-container.anchor-slot div#floorad-close-button.mobile-button{background-color:transparent;display:none;top:60px}div#floorad-container.anchor-slot.rendered-floorad div#floorad-close-button.mobile-button{display:block}span#floorad-close-button-text{color:#000;text-align:center;text-shadow:0 0 3px #fff,0 0 5px #fff}div#floorad-close-button.desktop-button span#floorad-close-button-text{width:100%;font-size:18px;position:absolute;top:50%;transform:translateY(-50%)}div#floorad-close-button.mobile-button span#floorad-close-button-text{z-index:1;line-height:30px;position:relative}div#floorad-no-click{position:absolute}div#floorad-no-click.desktop-no-click{width:115px;height:140%;bottom:0;left:-40px}div#floorad-no-click.mobile-no-click{left:0}div#floorad-container.bottom-slot div#floorad-no-click.mobile-no-click{width:65px;height:85px;top:-55px}div#floorad-container.anchor-slot div#floorad-no-click.mobile-no-click{width:40px;height:40px;top:55px}div#F_M{overflow:hidden}div#floorad-container>div#F_D,div#floorad-container>div#F_M{justify-content:center;align-items:center;height:100%;display:flex;overflow:hidden}`,br=`plugin:completed`;function xr(e,t,n){return Sr.apply(this,arguments)}function Sr(){return Sr=u(function*(e,t,r){let i=Array.isArray(e)?e:[e],a=[];for(let e=0;e0&&(yield n(),r.debug(`Yielded to the main thread before starting compile plugin [${o.pluginName}]`)),a.push(new Promise(e=>{try{let n=o.run(n=>{n.type===`error`&&r.error(`Compile plugin [${o.pluginName}] error:`,n.message);let i=n.type===`completed`&&n.deliveryStatus!==void 0?{deliveryStatus:n.deliveryStatus}:void 0;t.dispatch({EVENT_NAME:br,metadata:i,pluginName:o.pluginName,outcome:n.type===`completed`?`success`:n.type}),e()});n instanceof Promise&&n.catch(n=>{r.error(`Compile plugin [${o.pluginName}] threw:`,n),t.dispatch({EVENT_NAME:br,pluginName:o.pluginName,outcome:`error`}),e()})}catch(n){r.error(`Compile plugin [${o.pluginName}] threw synchronously:`,n),t.dispatch({EVENT_NAME:br,pluginName:o.pluginName,outcome:`error`}),e()}}))}Promise.allSettled(a)}),Sr.apply(this,arguments)}function Cr(e,t,n){let r=Object.entries(e).sort(([e],[t])=>Number(e)-Number(t)).map(([,e])=>e),i=[],a={},o=new Map,s=new Map;for(let e of r)e.plugin!==null&&s.set(e.plugin.pluginName,e);let c=0,l=null,d=null,f=new Map;function p(e,t){return t!==void 0&&f.get(e)===t}function m(e,t){try{var n;let r=(n=e.softTeardown)==null?void 0:n.call(e,t);return r==null?void 0:r.catch(t=>{console.debug(`Plugin [${e.pluginName}] soft teardown rejected:`,t)})}catch(t){console.debug(`Plugin [${e.pluginName}] soft teardown threw:`,t);return}}function h(e,t,n){let i;for(let a=r.length-1;a>=0;a--){let o=r[a].plugin;if((o==null?void 0:o.softTeardown)!=null&&!p(o.pluginName,t)){if(i!=null){i=i.then(()=>{if(e===c)return m(o,n)});continue}i=m(o,n)}}return i}function g(e,t,n,r){let i={afterFlowOnly:r,completions:new Map,token:e,url:t,virtualNavigationType:n};return _(i),i}function _(e){for(let{plugin:t}of r){if(t===null||e.completions.has(t.pluginName)||p(t.pluginName,e.url))continue;let n=o.get(t.pluginName);if(n===void 0||e.afterFlowOnly&&n.position!==`engine:afterFlow`)continue;let r,i=new Promise(e=>{r=e});e.completions.set(t.pluginName,{promise:i,settle:r}),delete a[t.pluginName]}}function v(e,t){return y.apply(this,arguments)}function y(){return y=u(function*(e,t){let n=t;for(;n!==c;){n=c;let t=(l==null?void 0:l.token)===n?l.closing:void 0;if(t!=null&&(yield t),n!==c)continue;let r=d;if(r===null||r.token!==n)return;let i=x(e,r);if(i.length===0)return;yield Promise.all(i)}}),y.apply(this,arguments)}function b(){let e=d;if(e!==null){d=null;for(let{settle:t}of e.completions.values())t()}}function x(e,t){var n;let r=(n=s.get(e))==null?void 0:n.waitFor;if(r===void 0)return[];let i=[];for(let n of r){if(typeof n!=`string`||n===e)continue;let r=t.completions.get(n);r!==void 0&&i.push(r.promise)}return i}function S(e,t){for(let{plugin:n}of r){if(n===null)continue;if(t.token!==c)return;let r=o.get(n.pluginName);r===void 0||r.position!==e||t.completions.has(n.pluginName)&&C(n.pluginName,r,t)}}function C(e,t,n){return w.apply(this,arguments)}function w(){return w=u(function*(e,t,r){try{let i=x(e,r);if(i.length>0&&(yield Promise.all(i)),r.token!==c)return;if(typeof t.getShouldRun==`function`){let e=t.getShouldRun({context:n,pluginOutcomes:a});if(!(e instanceof Promise?yield e:e)||r.token!==c)return}r.url!==void 0&&f.set(e,r.url),yield t.run(r.virtualNavigationType)}catch(t){console.debug(`Plugin [${e}] rerun failed:`,t)}finally{var i;(i=r.completions.get(e))==null||i.settle()}}),w.apply(this,arguments)}function T(e,t){let n=(l==null?void 0:l.token)===t.token?l.closing:void 0;if(n==null){S(e,t);return}n.then(()=>{t.token===c&&S(e,t)})}function E(e,n){return typeof n==`string`?a[n]!==void 0||s.get(n)===void 0?Promise.resolve():new Promise(r=>{let{unsubscribe:i}=t.subscribe({eventName:br,subscriberName:`chain-wait-${e}-for-${n}`,callback:e=>{var t;e.pluginName===n&&(a[e.pluginName]={deliveryStatus:(t=e.metadata)==null?void 0:t.deliveryStatus,outcome:e.outcome},i(),r())}})}):n}function D(e,t){if(t.type!==`virtual`)return;let r=t.virtualNavigationType;if(r===void 0||r===`infinite-scroll`)return;let i=r===`bfcache-restore`?void 0:t.url;if(e===`engine:beforeFlow`){let t=++c;if(l=null,b(),n.adSlotLifecycleApi.isAdvDisabled())return;let a=g(t,i,r,!1);d=a;let o=h(t,i,r);o==null?_(a):l={closing:o.then(()=>{t===c&&_(a)}),token:t},T(e,a);return}if(n.adSlotLifecycleApi.isAdvDisabled()){b();return}let a=c,o=d!==null&&d.token===a?d:null;o===null&&(o=g(a,i,r,!0),d=o),T(e,o)}for(let e of[hs,gs])t.subscribe({eventName:e,subscriberName:`chain-virtual-navigation-${e}`,callback:t=>D(e,t)});for(let e of r){var ee;let r=e.plugin;if(r===null)continue;let s=r.pluginName,{getShouldRun:l,timeout:d,waitFor:p}=e;r.onDisableAds!=null&&t.subscribe({eventName:hs,subscriberName:`${s}-disable-ads`,callback:function(){var e=u(function*(e){var t;e.type===`virtual`&&e.virtualNavigationType!==void 0&&n.adSlotLifecycleApi.isAdvDisabled()&&(yield(t=r.onDisableAds)==null?void 0:t.call(r,e.virtualNavigationType))});return function(t){return e.apply(this,arguments)}}()});let m={pluginName:s,onDisableAds:(ee=r.onDisableAds)==null?void 0:ee.bind(r),run(e){let t=c,i=(p==null?[]:p).map(e=>E(s,e));(function(){var p=u(function*(){yield Promise.all(i),c!==t&&(yield v(s,t));let u=!1,p=e=>{a[s]={deliveryStatus:e.type===`completed`?e.deliveryStatus:void 0,outcome:e.type===`completed`?`success`:e.type}},m=t=>{if(u)return;u=!0,p(t);let n=t.type===`completed`?t.onVirtualNavigationHook:void 0;n!=null&&(console.debug(`Plugin [${s}] completed with a virtual navigation hook at ${n.position}.`),o.set(s,{getShouldRun:l,position:n.position,run:n.run})),e(t)},h;if(d!==void 0&&d>0&&(h=setTimeout(()=>{m({type:`timeout`,message:`Plugin [${s}] timed out after ${d}ms`})},d)),typeof l==`function`){let e=l({context:n,pluginOutcomes:a});if(!(e instanceof Promise?yield e:e)){m({type:`skipped`});return}}f.set(s,window.location.href);let g=r.run(e=>{if(h!==void 0&&clearTimeout(h),u){p(e);return}m(e)});g instanceof Promise&&g.catch(e=>{h!==void 0&&clearTimeout(h),m({type:`error`,message:String(e)})})});return function(){return p.apply(this,arguments)}})()().catch(t=>{e({type:`error`,message:String(t)})})}};i.push(m)}return i}function wr(e,t,n,r){let i={},a=0;for(let[,n]of Object.entries(e)){if(!n)continue;let e=null;try{e=n.getPluginInstance(t)}catch(e){r.error(`Plugin factory threw during initialization:`,e)}i[a]={plugin:e,getShouldRun:n.getShouldRun,waitFor:n.waitFor,timeout:n.timeout},a++}return Cr(i,n,t)}var Tr=new Map([[7,{prefix:`usnat`,optOutFields:[`SaleOptOut`,`SharingOptOut`,`TargetedAdvertisingOptOut`]}],[8,{prefix:`usca`,optOutFields:[`SaleOptOut`,`SharingOptOut`]}],[9,{prefix:`usva`,optOutFields:[`SaleOptOut`,`TargetedAdvertisingOptOut`]}],[10,{prefix:`usco`,optOutFields:[`SaleOptOut`,`TargetedAdvertisingOptOut`]}],[12,{prefix:`usct`,optOutFields:[`SaleOptOut`,`TargetedAdvertisingOptOut`]}],[13,{prefix:`usfl`,optOutFields:[`SaleOptOut`,`TargetedAdvertisingOptOut`]}]]),Er=[2,7,9,10],Dr=100,Or=50;function kr(){return{cmpUiShown:!1,consentManagementMetadata:{},consentManagementType:``,personalizedAds:!0}}var Ar=new WeakMap,jr=new WeakMap,Mr=new WeakMap,Nr=new WeakMap,Pr=new WeakMap,Fr=new WeakMap,Ir=new WeakMap,Lr=new WeakMap,Rr=new WeakMap,zr=new WeakMap,Br=new WeakMap,Vr=new WeakMap,V=new WeakSet,Hr=class{constructor(){i(this,V),a(this,Ar,new Set),a(this,jr,0),a(this,Mr,`fallback`),a(this,Nr,!1),a(this,Pr,null),a(this,Fr,null),a(this,Ir,!0),a(this,Lr,!1),a(this,Rr,null),a(this,zr,null),a(this,Br,null),a(this,Vr,Or)}onConsentReleased(e){var t,n;let r=e==null?void 0:e.onConsentCallback,i=(t=e==null?void 0:e.waitUntilPersonalizedAdsIsTrue)!=null&&t,a=(n=e==null?void 0:e.once)!=null&&n,l=r?{callback:r,waitForPersonalized:i,once:a}:null;return l&&c(Ar,this).add(l),c(zr,this)&&l?(o(V,this,Xr).call(this,l,c(zr,this)),()=>{c(Ar,this).delete(l)}):(c(Lr,this)||((e==null?void 0:e.attemptThreshold)!==void 0&&s(Vr,this,e.attemptThreshold),s(Lr,this,!0),o(V,this,Ur).call(this)),()=>{l&&c(Ar,this).delete(l)})}hasUserAcceptedConsent(){return c(Ir,this)}consentManagementApiUsed(){return c(Mr,this)}destroy(){s(Nr,this,!0),o(V,this,Qr).call(this),o(V,this,$r).call(this),o(V,this,ei).call(this),c(Ar,this).clear()}};function Ur(){var e;if(!c(Nr,this)){if(window.__tcfapi){o(V,this,Wr).call(this);return}if(window.__gpp){o(V,this,Gr).call(this);return}if(window.__uspapi){o(V,this,Kr).call(this);return}if(s(jr,this,(e=c(jr,this),e++,e)),c(Vr,this)!==null&&c(jr,this)>=c(Vr,this)){o(V,this,qr).call(this);return}s(Rr,this,setTimeout(()=>{o(V,this,Ur).call(this)},Dr))}}function Wr(){let e=window.__tcfapi;e&&e(`addEventListener`,2,(e,t)=>{if(c(Nr,this)||!t||(s(Br,this,e.listenerId),e.eventStatus!==`tcloaded`&&e.eventStatus!==`useractioncomplete`))return;s(Ir,this,Er.every(t=>e.purpose.consents[t]===!0));let n={cmpUiShown:e.eventStatus===`useractioncomplete`,consentManagementMetadata:{},consentManagementType:`tcf`,personalizedAds:c(Ir,this)};s(Mr,this,`tcf`),c(Ir,this)&&window.dispatchEvent(new Event(`cookie_accepted`)),o(V,this,Jr).call(this,n)})}function Gr(){let e=window.__gpp;if(!e)return;let t=e=>{if(c(Nr,this)||(s(Fr,this,e.listenerId),e.eventName!==`signalStatus`||e.data!==`ready`))return;let{applicableSections:t,parsedSections:n}=e.pingData,r,i;for(let e of t){let t=Tr.get(e);if(t){r=t,i=e;break}}if(!r||i===void 0){o(V,this,ei).call(this),window.__tcfapi?o(V,this,Wr).call(this):window.__uspapi?o(V,this,Kr).call(this):o(V,this,qr).call(this);return}let a=n[r.prefix];if(a&&a.length>0){let e=a[0];for(let t of r.optOutFields)if(e[t]===1){s(Ir,this,!1);break}}let l={cmpUiShown:!1,consentManagementMetadata:{gppSectionId:i},consentManagementType:`gpp`,personalizedAds:c(Ir,this)};s(Mr,this,`gpp`),o(V,this,Jr).call(this,l)};s(Pr,this,t),e(`addEventListener`,t)}function Kr(){let e=window.__uspapi;e&&e(`getUSPData`,1,(e,t)=>{if(c(Nr,this))return;if(!t||e.version!==1){o(V,this,qr).call(this);return}let n={cmpUiShown:!1,consentManagementMetadata:{uspString:e.uspString},consentManagementType:`usp`,personalizedAds:!0};s(Mr,this,`usp`),s(zr,this,n),o(V,this,Yr).call(this,n)})}function qr(){let e=kr();console.log(`ConsentReader: no CMP detected, using fallback`),s(zr,this,e),o(V,this,Yr).call(this,e)}function Jr(e){s(zr,this,e),o(V,this,Yr).call(this,e),o(V,this,Zr).call(this)?console.log(`ConsentReader: listener kept active for non-once subscribers`,e):(o(V,this,$r).call(this),o(V,this,ei).call(this))}function Yr(e){for(let t of Array.from(c(Ar,this)))o(V,this,Xr).call(this,t,e)}function Xr(e,t){e.waitForPersonalized&&!t.personalizedAds||(e.callback(t),e.once&&c(Ar,this).delete(e))}function Zr(){for(let e of c(Ar,this))if(!e.once)return!0;return!1}function Qr(){c(Rr,this)!==null&&(clearTimeout(c(Rr,this)),s(Rr,this,null))}function $r(){c(Br,this)!==null&&window.__tcfapi&&(window.__tcfapi(`removeEventListener`,2,()=>{},c(Br,this)),s(Br,this,null))}function ei(){c(Fr,this)!==null&&window.__gpp&&c(Pr,this)&&(window.__gpp(`removeEventListener`,c(Pr,this),c(Fr,this)),s(Pr,this,null),s(Fr,this,null))}var ti,ni=200,ri=`spa-route`;function ii(){var e;return typeof PerformanceObserver<`u`&&!!((e=PerformanceObserver.supportedEntryTypes)!=null&&e.includes(`soft-navigation`))}function ai(e){return e===`unknown`?ri:e}function oi(){return typeof location>`u`?null:location.href}var si=new WeakMap,ci=new WeakMap,li=new WeakMap,ui=new WeakMap,di=new WeakMap,fi=new WeakMap,pi=new WeakMap,mi=new WeakMap,hi=new WeakMap,gi=new WeakMap,_i=new WeakMap,vi=new WeakMap,yi=new WeakMap,H=new WeakSet,bi=class e{constructor(){i(this,H),a(this,si,{stateChange:new Set,bfcacheRestore:new Set,virtualPageLoad:new Set,networkChange:new Set,viewTransition:new Set}),a(this,ci,new Set),a(this,li,[]),a(this,ui,null),a(this,di,null),a(this,fi,void 0),a(this,pi,0),a(this,mi,null),a(this,hi,oi()),a(this,gi,oi()),a(this,_i,ni),a(this,vi,!1),a(this,yi,ri),s(fi,this,o(H,this,xi).call(this))}static init(){if(e.instance)return e.instance;let t=new e;return e.instance=t,o(H,t,Ci).call(t),t}static getInstance(){return e.instance}static resetForTesting(){let t=e.instance;t&&o(H,t,ji).call(t),e.instance=null}getState(){return c(fi,this)}on(e,t){let n=c(si,this)[e];return n.add(t),()=>{n.delete(t)}}registerManagedObserver(e){let t={setup:e,teardown:null};return t.teardown=e(),c(ci,this).add(t),()=>{t.teardown&&t.teardown(),c(ci,this).delete(t)}}configure(e={}){var t;o(H,this,Ti).call(this);let n=e.provider==null&&e.useSoftNavigationApis===!0&&ii();if(n&&o(H,this,wi).call(this),e.titleObserver!==!1){var r,i;let t=(r=e.titleObserver)==null?{}:r,c=ai((i=t.reportsAs)==null?ri:i);if(n&&c===`spa-route`)console.warn(`[PLM] 'spa-route' is already covered by the soft-navigation observer, skipping the title observer to avoid double-reporting it`);else{var a;s(_i,this,(a=t.debounceDuration)==null?ni:a),s(yi,this,c),s(vi,this,!0),o(H,this,Di).call(this)}}(t=e.provider)==null||t.call(e,e=>{this.handleVirtualPageLoad(e)})}transitionTo(e){let t=c(fi,this);t!==e&&(s(fi,this,e),o(H,this,ki).call(this,`stateChange`,e,t))}handleVirtualPageLoad(e){var t=this;return u(function*(){if(o(H,t,Oi).call(t,e))return;let n=ai(e.type);if(n===`spa-route`){let e=Array.from(c(ci,t));for(let t of e)t.teardown&&(t.teardown(),t.teardown=null);yield Promise.resolve();for(let t of e)t.teardown=t.setup()}o(H,t,ki).call(t,`virtualPageLoad`,e),n===`spa-route`&&c(vi,t)&&(yield new Promise(e=>setTimeout(e,0)),o(H,t,Di).call(t))})()}};ti=bi;function xi(){return typeof document>`u`?`active`:`prerendering`in document&&document.prerendering?`prerendering`:document.visibilityState===`hidden`?`hidden`:document.hasFocus()?`active`:`passive`}function Si(){document.visibilityState===`hidden`?this.transitionTo(`hidden`):document.hasFocus()?this.transitionTo(`active`):this.transitionTo(`passive`)}function Ci(){o(H,this,Ai).call(this,document,`visibilitychange`,()=>{o(H,this,Si).call(this)}),o(H,this,Ai).call(this,window,`focus`,()=>{document.visibilityState===`visible`&&this.transitionTo(`active`)}),o(H,this,Ai).call(this,window,`blur`,()=>{document.visibilityState===`visible`&&this.transitionTo(`passive`)}),o(H,this,Ai).call(this,document,`freeze`,()=>{this.transitionTo(`frozen`)}),o(H,this,Ai).call(this,document,`resume`,()=>{document.visibilityState===`hidden`?this.transitionTo(`hidden`):document.hasFocus()?this.transitionTo(`active`):this.transitionTo(`passive`)}),o(H,this,Ai).call(this,window,`pageshow`,e=>{e.persisted&&(this.transitionTo(`active`),o(H,this,ki).call(this,`bfcacheRestore`,{isOnline:navigator.onLine}))}),o(H,this,Ai).call(this,window,`pagehide`,e=>{e.persisted?this.transitionTo(`frozen`):this.transitionTo(`terminated`)}),o(H,this,Ai).call(this,window,`online`,()=>{o(H,this,ki).call(this,`networkChange`,!0)}),o(H,this,Ai).call(this,window,`offline`,()=>{o(H,this,ki).call(this,`networkChange`,!1)}),`prerendering`in document&&document.prerendering&&o(H,this,Ai).call(this,document,`prerenderingchange`,()=>{this.transitionTo(`active`)}),`onpageswap`in window&&o(H,this,Ai).call(this,window,`pageswap`,e=>{o(H,this,ki).call(this,`viewTransition`,e,`swap`)}),`onpagereveal`in window&&o(H,this,Ai).call(this,window,`pagereveal`,e=>{o(H,this,ki).call(this,`viewTransition`,e,`reveal`)})}function wi(){let e=new PerformanceObserver(e=>{for(let t of e.getEntries())this.handleVirtualPageLoad({url:t.name||location.href,type:`spa-route`})});e.observe({type:`soft-navigation`,buffered:!0}),s(di,this,()=>e.disconnect())}function Ti(){s(vi,this,!1),s(hi,this,oi()),s(gi,this,oi()),s(yi,this,ri),s(_i,this,ni),o(H,this,Ei).call(this),c(di,this)&&(c(di,this).call(this),s(di,this,null))}function Ei(){c(ui,this)&&(c(ui,this).disconnect(),s(ui,this,null)),c(mi,this)!==null&&(clearTimeout(c(mi,this)),s(mi,this,null))}function Di(){o(H,this,Ei).call(this);let e=null,t=new MutationObserver(()=>{c(mi,this)!==null&&clearTimeout(c(mi,this)),s(mi,this,setTimeout(()=>{var t,n;if(s(mi,this,null),document.title==e)return;e=document.title;let r=(t=oi())==null?``:t,i=r!==c(gi,this);s(gi,this,r),s(pi,this,(n=c(pi,this),n++,n)),this.handleVirtualPageLoad({url:i?r:`${r}#pt-title-${c(pi,this)}`,type:c(yi,this)})},c(_i,this)))});function n(){let n=document.querySelector(`title`);if(!n){console.log(`[PLM] No element found, skipping title observer`);return}e=document.title,t.observe(n,{childList:!0,characterData:!0,subtree:!0})}A(function(){document.readyState==`interactive`?document.addEventListener(`readystatechange`,()=>{document.readyState==`complete`&&n()}):n()}),s(ui,this,t)}function Oi({url:e}){return e===c(hi,this)?!0:(s(hi,this,e),!1)}function ki(e,...t){let n=Array.from(c(si,this)[e]);for(let e of n)e(...t)}function Ai(e,t,n){e.addEventListener(t,n),c(li,this).push(()=>{e.removeEventListener(t,n)})}function ji(){for(let e of c(li,this))e();c(li,this).length=0,o(H,this,Ti).call(this);for(let e of Array.from(c(ci,this)))e.teardown&&e.teardown();c(ci,this).clear();for(let e of Object.keys(c(si,this)))c(si,this)[e].clear()}ti.instance=null;var Mi=[`og:type`,`article:section`,`article:tag`,`page-type`],Ni=new Set([`active`,`passive`,`hidden`,`frozen`]),Pi=new WeakMap,Fi=new WeakMap,Ii=new WeakMap,Li=new WeakMap,Ri=new WeakMap,zi=new WeakMap,Bi=new WeakMap,U=new WeakSet,Vi=class{constructor(e,t){var n;i(this,U),a(this,Pi,[]),a(this,Fi,{contextUpdated:new Set,visibilityChanged:new Set,networkChanged:new Set}),a(this,Ii,[]),a(this,Li,void 0),a(this,Ri,void 0),a(this,zi,void 0),a(this,Bi,null),s(Li,this,(n=e==null?void 0:e.metaTagWhitelist)==null?Mi:n),s(Ri,this,t==null?((e,t)=>{console.error(`ContextManager: ${e}`,t)}):t),s(zi,this,o(U,this,Hi).call(this,`initial`)),o(U,this,Wi).call(this),k()||o(U,this,qi).call(this)}getCurrentContext(){return o(U,this,Ki).call(this,c(zi,this))}on(e,t){let n=c(Fi,this)[e];return n.add(t),()=>{n.delete(t)}}registerContextTransformer(e){c(Pi,this).push(e)}destroy(){for(let e of c(Ii,this))e();c(Ii,this).length=0,c(Bi,this)&&(c(Bi,this).call(this),s(Bi,this,null));for(let e of Object.keys(c(Fi,this)))c(Fi,this)[e].clear();c(Pi,this).length=0}};function Hi(e){let t=bi.getInstance(),n=t?t.getState():`active`;return Object.freeze({url:window.location.href,host:window.location.host,pathSegments:Object.freeze(te()),path:window.location.pathname,queryParams:Object.freeze(j()),pageType:M(),customTargeting:Object.freeze(N(c(Li,this))),lifecycleState:n,navigationContext:e,isOnline:navigator.onLine,author:ne()})}function Ui(e,t){return Object.freeze(L(L({},c(zi,this)),{},{[e]:t}))}function Wi(){let e=bi.getInstance();e&&(c(Ii,this).push(e.on(`virtualPageLoad`,e=>{let t=e.type===`infinite-scroll`?`infinite-scroll`:`spa-route`;o(U,this,Gi).call(this,t)})),c(Ii,this).push(e.on(`bfcacheRestore`,()=>{o(U,this,Gi).call(this,`bfcache-restore`)})),c(Ii,this).push(e.on(`stateChange`,e=>{Ni.has(e)&&(s(zi,this,o(U,this,Ui).call(this,`lifecycleState`,e)),o(U,this,Ji).call(this,`visibilityChanged`,e))})),c(Ii,this).push(e.on(`networkChange`,e=>{s(zi,this,o(U,this,Ui).call(this,`isOnline`,e)),o(U,this,Ji).call(this,`networkChanged`,e)})))}function Gi(e){let t=c(zi,this);s(zi,this,o(U,this,Hi).call(this,e)),o(U,this,Ji).call(this,`contextUpdated`,{context:o(U,this,Ki).call(this,c(zi,this)),previousContext:o(U,this,Ki).call(this,t),navigationContext:e})}function Ki(e){let t=e;for(let e of c(Pi,this))try{t=Object.freeze(e(t))}catch(e){return c(Ri,this).call(this,`transformer threw during pipeline execution`,e),t}return t}function qi(){s(Bi,this,A(()=>{s(Bi,this,null),o(U,this,Gi).call(this,`initial`)}))}function Ji(e,...t){let n=Array.from(c(Fi,this)[e]);for(let e of n)e(...t)}var Yi=new WeakMap,Xi=new WeakMap,Zi=new WeakMap,Qi=class{constructor(e){a(this,Yi,0),a(this,Xi,void 0),a(this,Zi,{}),s(Xi,this,e)}subscribe({callback:e,eventName:t,priority:n,subscriberName:r,waitFor:i}){c(Zi,this)[t]||(c(Zi,this)[t]={});let a=n==null?c(Yi,this):n;for(;c(Zi,this)[t][a];)a++;return c(Zi,this)[t][a]={callback:e,subscriberName:r,waitFor:i},{unsubscribe:()=>{delete c(Zi,this)[t][a]}}}dispatch(e){let t=e.EVENT_NAME;if(c(Xi,this).isDebug&&(c(Xi,this).debug(`Dispatching event ${t}`,e),c(Xi,this).debug(`Subscribers for event ${t}:`,c(Zi,this)[t]?Object.values(c(Zi,this)[t]).map(e=>e.subscriberName):`No subscribers`)),!c(Zi,this)[t])return;let n=Object.keys(c(Zi,this)[t]).map(Number).sort((e,t)=>t-e);for(let r of n){let{callback:n,subscriberName:i,waitFor:a}=c(Zi,this)[t][r];try{a?a.then(()=>{n(e)}).catch(t=>{c(Xi,this).error(`Something went wrong in ${i} waitFor, subscribed to the event: ${e.EVENT_NAME}`,t)}):n(e)}catch(t){c(Xi,this).error(`Something went wrong in ${i}, subscribed to the event: ${e.EVENT_NAME}`,t)}}}},$i=`slot:missing-element`,ea=`slot:missing-element:abandoned`,ta=new WeakMap,na=new WeakMap,ra=new WeakMap,ia=new WeakMap,aa=new WeakMap,oa=new WeakMap,sa=new WeakMap,ca=new WeakMap,la=new WeakMap,ua=new WeakMap,da=new WeakMap,fa=new WeakMap,pa=new WeakSet,ma=class{constructor({monetizationManager:e,eventDispatcher:t,logger:n,observerRootMargin:r}){i(this,pa),a(this,ta,1e3),a(this,na,`500px 15px`),a(this,ra,`300px 15px`),a(this,ia,D()),a(this,aa,void 0),a(this,oa,void 0),a(this,sa,void 0),a(this,ca,new Map),a(this,la,new Map),a(this,ua,void 0),a(this,da,new Map),a(this,fa,void 0),s(aa,this,t),s(sa,this,n),s(ua,this,e);let l=r||(c(ia,this)===E.MOBILE?c(ra,this):c(na,this));s(oa,this,new IntersectionObserver(o(pa,this,ha).bind(this),{threshold:0,rootMargin:l}))}register(e,t){let n=document.getElementById(e.divId);if(n!=null){c(da,this).set(e.divId,{slot:e,options:t}),c(oa,this).observe(n);return}c(sa,this).warn(`Element ${e.divId} not found at registration time, starting recovery`),o(pa,this,ga).call(this,e,t),c(aa,this).dispatch({EVENT_NAME:$i})}destroy(){o(pa,this,va).call(this),o(pa,this,ya).call(this)}};function ha(e){for(let t of e){if(!t.isIntersecting)continue;let e=t.target.id;if(!c(da,this).has(e))continue;let{slot:n,options:r}=c(da,this).get(e);c(ua,this).sell(n,r),c(da,this).delete(e),c(oa,this).unobserve(t.target)}}function ga(e,t){c(ca,this).set(e.divId,{slot:e,options:t}),c(fa,this)==null&&(s(fa,this,new MutationObserver(o(pa,this,_a).bind(this))),c(fa,this).observe(document.body,{childList:!0,subtree:!0}));let n=setTimeout(()=>{c(ca,this).has(e.divId)&&(c(sa,this).warn(`Element ${e.divId} was never found, the slot has been abandoned for this session`),c(ca,this).delete(e.divId),c(aa,this).dispatch({EVENT_NAME:ea}),c(ca,this).size===0&&o(pa,this,va).call(this))},c(ta,this));c(la,this).set(e.divId,n)}function _a(){for(let[e,{slot:t,options:n}]of c(ca,this)){let r=document.getElementById(e);if(r==null)continue;let i=c(la,this).get(e);i!=null&&(clearTimeout(i),c(la,this).delete(e)),c(da,this).set(e,{slot:t,options:n}),c(oa,this).observe(r),c(ca,this).delete(e)}c(ca,this).size===0&&o(pa,this,va).call(this)}function va(){c(fa,this)!=null&&(c(fa,this).disconnect(),s(fa,this,void 0),c(ca,this).clear(),c(la,this).clear())}function ya(){c(oa,this).disconnect(),c(da,this).clear()}var ba=new WeakMap,xa=new WeakMap,Sa=new WeakMap,Ca=new WeakMap,wa=new WeakSet,Ta=class{constructor(e){i(this,wa),a(this,ba,new Map),a(this,xa,new Set),a(this,Sa,new Map),a(this,Ca,!1);for(let[t,n]of Object.entries(e==null?{}:e))for(let e of n==null?[]:n)this.setAdSlotAsDisposableOnVirtualNavigation(e,t)}registerAdSlot(e){var t;c(Sa,this).set(e.divId,{adUnitKey:e.adUnitKey,prebidAdUnitCode:(t=e.overridePrebidAdUnitCode)==null?e.adUnitKey:t});let n=e.disposableOnVirtualNavigation;if(n==null)return;let r=Array.isArray(n)?n:[n];for(let t of r)this.setAdSlotAsDisposableOnVirtualNavigation(e.divId,t)}setAdSlotAsDisposableOnVirtualNavigation(e,t){var n;let r=(n=c(ba,this).get(e))==null?new Set:n;r.add(t),c(ba,this).set(e,r)}isAdSlotDisposableOnVirtualNavigation(e,t){var n,r;return(n=(r=c(ba,this).get(e))==null?void 0:r.has(t))!=null&&n}setAdSlotAsSelfManaged(e){c(xa,this).add(e)}isAdSlotSelfManaged(e){return c(xa,this).has(e)}isAdvDisabled(){return c(Ca,this)}lockSell(e){if(!c(Ca,this)){s(Ca,this,!0);for(let t of Array.from(c(Sa,this).keys()))o(wa,this,Ea).call(this,t,e)}}unlockSell(){s(Ca,this,!1)}disposeAdSlots(e,t){for(let n of Array.from(c(Sa,this).keys()))this.isAdSlotDisposableOnVirtualNavigation(n,e)&&o(wa,this,Ea).call(this,n,t)}resetSoldAdSlots(e,t){for(let n of Array.from(c(Sa,this).keys()))this.isAdSlotSelfManaged(n)||!t(n)||o(wa,this,Ea).call(this,n,e,{keepContainer:!0})}};function Ea(e,{gpt:t,monetizationManager:n,prebidAdapter:r,refreshManager:i},{keepContainer:a=!1}={}){let o=c(Sa,this).get(e);if(o==null)return;let{prebidAdUnitCode:s}=o;try{i.unscheduleSlotRefresh(e)}catch(t){console.error(`Failed to unschedule refresh for ${e}`,t)}try{t==null||t.destroySlot(e)}catch(t){console.error(`Failed to destroy GPT slot for ${e}`,t)}try{r==null||r.removeAdUnit(s)}catch(e){console.error(`Failed to remove Prebid unit for ${s}`,e)}if(n.clearAdSlotState(e),!a)try{let t=document.getElementById(e);if(t!=null){var l;((l=t.closest(`.pubtech-adv-container`))==null?t:l).remove()}}catch(t){console.error(`Failed to remove DOM container for ${e}`,t)}c(Sa,this).delete(e)}var Da=`slot:mrcImpressionReached`,Oa=[`F_D`,`F_M`,`S_1`,`S_2`],ka=5,Aa=1e3,ja=3e4,Ma=5,Na=1e3,Pa=2e3,Fa=.5,Ia=.3,La=242500,Ra=new WeakMap,za=new WeakMap,Ba=new WeakMap,Va=new WeakMap,Ha=new WeakMap,Ua=new WeakMap,Wa=new WeakMap,Ga=new WeakMap,Ka=new WeakMap,qa=new WeakMap,Ja=new WeakMap,Ya=new WeakMap,Xa=new WeakMap,Za=new WeakMap,W=new WeakMap,Qa=new WeakMap,$a=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap,ro=new WeakMap,io=new WeakMap,ao=new WeakMap,oo=new WeakMap,G=new WeakSet,so=class{constructor({adUnitsExcludedFromRefresh:e,config:t,contextManager:n,customAdUnitRefreshConfigMap:r,disableAutoRefresh:l,eventDispatcher:u,monetizationManager:d,pageLifecycleManager:f,resolveGptSlotDivId:p}){if(i(this,G),a(this,Ra,new Set([`O_SKIN`,`O_INTERSTITIAL`,`O_INTERSTITIAL_G`])),a(this,za,void 0),a(this,Ba,void 0),a(this,Va,void 0),a(this,Ha,void 0),a(this,Ua,void 0),a(this,Wa,void 0),a(this,Ga,void 0),a(this,Ka,void 0),a(this,qa,void 0),a(this,Ja,void 0),a(this,Ya,void 0),a(this,Xa,new Set),a(this,Za,void 0),a(this,W,new Map),a(this,Qa,new Map),a(this,$a,new Map),a(this,eo,new WeakMap),a(this,to,void 0),a(this,no,void 0),a(this,ro,void 0),a(this,io,null),a(this,ao,!1),a(this,oo,!0),s(Va,this,o(G,this,vo).bind(this)),s(Ha,this,o(G,this,yo).bind(this)),s(Ua,this,n),s(Wa,this,r),s(Ga,this,l===!0),s(Ka,this,u),s(qa,this,d),s(Ja,this,f),s(Ya,this,p==null?(e=>e.getSlotElementId()):p),s(Za,this,L({consecutiveUnfilledBeforeGoogleExclusion:null,firstUnfilledRetryTime:Aa,refreshBlockTime:ja,refreshLimit:Ma,refreshOnlyOnVisiblePage:!0,requireMrcImpressionBeforeRefresh:!0,sequentialUnfilledLimit:ka,visibilityPollingTime:1e3},t)),Array.isArray(e))for(let t of e)c(Ra,this).add(t);s(za,this,c(Ka,this).subscribe({callback:e=>o(G,this,co).call(this,e),eventName:Ze,subscriberName:`RefreshManager`})),s(Ba,this,c(Ka,this).subscribe({callback:e=>o(G,this,Io).call(this,e),eventName:Qe,subscriberName:`RefreshManager:domination`})),s(no,this,c(Ua,this).on(`visibilityChanged`,()=>{o(G,this,mo).call(this)&&o(G,this,Po).call(this)})),s(ro,this,c(Ja,this).on(`networkChange`,e=>{s(oo,this,e),e&&o(G,this,mo).call(this)&&o(G,this,Po).call(this)})),s(to,this,c(Ja,this).on(`bfcacheRestore`,()=>{o(G,this,Fo).call(this)}))}expediteSlotRefresh(e,t,n,r){if(c(Ga,this))return;let{slot:i}=o(G,this,go).call(this,t,e,n,r);i.unfilledRetryTimeout!=null&&(clearTimeout(i.unfilledRetryTimeout),i.unfilledRetryTimeout=null),i.refreshBlockTimeout!=null&&(clearTimeout(i.refreshBlockTimeout),i.refreshBlockTimeout=null),i.refreshLocked=!1,o(G,this,To).call(this,e,i),o(G,this,po).call(this,e,i)}unscheduleSlotRefresh(e){let t=c(W,this).get(e);t!=null&&(c(Xa,this).delete(e),c(W,this).delete(e),c(Qa,this).delete(e),o(G,this,No).call(this,t),o(G,this,So).call(this,e),t.mrcImpressionReached||c(Ka,this).dispatch({EVENT_NAME:Da,adUnitKey:t.adUnitKey,divId:e}))}teardown(){var e;c(za,this).unsubscribe(),c(Ba,this).unsubscribe(),c(to,this).call(this),c(no,this).call(this),c(ro,this).call(this);for(let e of c(W,this).values())o(G,this,No).call(this,e);c(Xa,this).clear(),c(W,this).clear(),c(Qa,this).clear(),(e=c(io,this))==null||e.disconnect(),c($a,this).clear(),s(io,this,null);try{window.googletag.pubads().removeEventListener(`impressionViewable`,c(Va,this)),window.googletag.pubads().removeEventListener(`slotVisibilityChanged`,c(Ha,this)),s(ao,this,!1)}catch(e){}}isSlotRegistered(e){return c(W,this).has(e)}isMrcReached(e){let t=c(W,this).get(e);return t==null?!0:(o(G,this,To).call(this,e,t),t.mrcImpressionReached)}whenMrcReached(e){let t=c(W,this).get(e);return t==null||(o(G,this,To).call(this,e,t),t.mrcImpressionReached)?Promise.resolve():new Promise(n=>{let{unsubscribe:r}=c(Ka,this).subscribe({callback:t=>{t.divId===e&&(r(),n())},eventName:Da,subscriberName:`RefreshManager:whenMrcReached:${e}`});if(t.isVisible&&t.lastVisibilityUpdateTime!=null){setTimeout(()=>{o(G,this,To).call(this,e,t)},o(G,this,Do).call(this,t)-t.continuousVisibleTime);return}o(G,this,Co).call(this,e,t)})}};function co(e){if(c(Ga,this)||e.excludeFromRefresh===!0)return;let t=e.outcome;if(t!==Ge.Success&&t!==Ge.Unfilled)return;let n=e.adUnitKey;if(n==null||n.length===0||c(Ra,this).has(n))return;let r=e.phase===We.Gpt?`gpt`:`prebid`,i=e.divId,{slot:a,slotRefreshConfig:s}=o(G,this,go).call(this,n,i);if(!a.isExausted){if(e.sellParams!=null&&(a.sellParams=e.sellParams),t===Ge.Success&&(a.renderedMediaType=e.renderedMediaType),o(G,this,jo).call(this,a)||o(G,this,_o).call(this,r,i),t===Ge.Unfilled){o(G,this,uo).call(this,i,a,s);return}o(G,this,lo).call(this,i,a,s)}}function lo(e,t,n){o(G,this,No).call(this,t),t.consecutiveUnfilledCount=0,o(G,this,Ao).call(this,t),o(G,this,jo).call(this,t)&&(t.isVisible=!0,t.lastVisibilityUpdateTime=Math.round(performance.now())),o(G,this,Co).call(this,e,t);let r=setTimeout(()=>{t.refreshBlockTimeout===r&&(t.refreshBlockTimeout=null,t.refreshLocked=!1,o(G,this,po).call(this,e,t))},n.refreshBlockTime);t.refreshBlockTimeout=r}function uo(e,t,n){var r,i,a;if(t.consecutiveUnfilledCount+=1,t.consecutiveUnfilledCount>=((r=n.sequentialUnfilledLimit)==null?ka:r))return o(G,this,Mo).call(this,e,t);t.unfilledRetryTimeout!=null&&clearTimeout(t.unfilledRetryTimeout),t.refreshBlockTimeout!=null&&(clearTimeout(t.refreshBlockTimeout),t.refreshBlockTimeout=null);let s=n.consecutiveUnfilledBeforeGoogleExclusion;s!=null&&t.consecutiveUnfilledCount>=s&&(t.excludeGpt=!0);let c=t.consecutiveUnfilledCount===1?(i=n.firstUnfilledRetryTime)==null?Aa:i:(a=n.refreshBlockTime)==null?ja:a,l=setTimeout(()=>{t.unfilledRetryTimeout===l&&(t.unfilledRetryTimeout=null,t.refreshLocked=!1,o(G,this,po).call(this,e,t))},c);t.unfilledRetryTimeout=l}function fo(e,t){let n=c(W,this).get(e);if(!(n==null||n.isExausted)){if(t)n.isVisible||(n.isVisible=!0,n.lastVisibilityUpdateTime=Math.round(performance.now()),n.mrcImpressionReached||o(G,this,Co).call(this,e,n));else{n.isVisible&&(o(G,this,To).call(this,e,n),n.continuousVisibleTime=0,n.isVisible=!1,n.lastVisibilityUpdateTime=null,o(G,this,wo).call(this,n));return}o(G,this,To).call(this,e,n),o(G,this,po).call(this,e,n)}}function po(e,t){var n;if(t.isExausted||t.refreshLocked)return;if(!o(G,this,mo).call(this)){c(Xa,this).add(e);return}if(o(G,this,ko).call(this,t)&&!t.mrcImpressionReached){t.isVisible&&o(G,this,Co).call(this,e,t);return}if(o(G,this,ko).call(this,t)&&!t.isVisible)return;c(Xa,this).delete(e),o(G,this,wo).call(this,t);let{slotRefreshConfig:r}=o(G,this,go).call(this,t.adUnitKey,e);if(t.refreshCount>=((n=r.refreshLimit)==null?Ma:n))return o(G,this,Mo).call(this,e,t);t.refreshLocked=!0,t.refreshCount+=1,c(qa,this).sell(L(L({},t.sellParams),{},{adUnitKey:t.adUnitKey,divId:e,refreshCount:t.refreshCount}),{excludeGpt:t.excludeGpt})}function mo(){if(!c(oo,this))return!1;let e=c(Ja,this).getState();return[`active`,`passive`].includes(e)?!0:e===`hidden`&&!c(Za,this).refreshOnlyOnVisiblePage}function ho(e,t,n,r){var i,a,o;let s=L({adUnitKey:e,consecutiveUnfilledCount:0,continuousVisibleTime:0,excludeGpt:!1,isExausted:!1,isVisible:!1,lastVisibilityUpdateTime:null,mrcImpressionReached:!1,refreshBlockTimeout:null,refreshCount:0,refreshLocked:!0,unfilledRetryTimeout:null,visibilityPollingInterval:null},n),l=L(L(L({},c(Za,this)),r),(i=(a=c(Wa,this))==null?void 0:a[t])==null?(o=c(Wa,this))==null?void 0:o[e]:i);return c(W,this).set(t,s),c(Qa,this).set(t,l),{slot:s,slotRefreshConfig:l}}function go(e,t,n,r){let i=c(W,this).get(t),a=c(Qa,this).get(t);return i!=null&&a!=null?{slot:i,slotRefreshConfig:a}:o(G,this,ho).call(this,e,t,n,r)}function _o(e,t){let n=c(W,this).get(t);if(n){if(n.usesGptViewability=!1,e===`gpt`)try{c(ao,this)||(window.googletag.pubads().addEventListener(`impressionViewable`,c(Va,this)),window.googletag.pubads().addEventListener(`slotVisibilityChanged`,c(Ha,this)),s(ao,this,!0)),n.usesGptViewability=!0,o(G,this,So).call(this,t);return}catch(e){}o(G,this,So).call(this,t),o(G,this,bo).call(this,t)}}function vo(e){let t=c(Ya,this).call(this,e.slot),n=c(W,this).get(t);n==null||n.isExausted||n.mrcImpressionReached||o(G,this,jo).call(this,n)||n.usesGptViewability&&(n.gptVisibilityKnown||(n.isVisible=!0),o(G,this,Eo).call(this,t,n),o(G,this,po).call(this,t,n))}function yo(e){let t=c(Ya,this).call(this,e.slot),n=c(W,this).get(t);!(n!=null&&n.usesGptViewability)||o(G,this,jo).call(this,n)||(n.gptVisibilityKnown=!0,o(G,this,fo).call(this,t,e.inViewPercentage>=Fa*100))}function bo(e){if(c(io,this)!=null){o(G,this,xo).call(this,e);return}if(typeof window>`u`||typeof IntersectionObserver>`u`)return;let t={root:null,rootMargin:`0px`,threshold:[Ia,Fa]};s(io,this,new IntersectionObserver(e=>{for(let t of e){let e=c(eo,this).get(t.target);if(e==null)continue;let n=c(W,this).get(e);n!=null&&o(G,this,fo).call(this,e,o(G,this,Oo).call(this,n,t))}},t)),o(G,this,xo).call(this,e)}function xo(e){var t,n;let r=document.getElementById(e);if(r==null)return;let i=c(W,this).get(e),a=(i==null?void 0:i.renderedMediaType)===`video`||(t=r.querySelector(`iframe`))==null?r:t;c($a,this).set(e,a),c(eo,this).set(a,e),(n=c(io,this))==null||n.observe(a)}function So(e){var t;let n=c($a,this).get(e);n!=null&&((t=c(io,this))==null||t.unobserve(n),c($a,this).delete(e),c(eo,this).delete(n))}function Co(e,t){t.usesGptViewability||t.visibilityPollingInterval==null&&(t.visibilityPollingInterval=setInterval(()=>{if(t.isExausted||!t.isVisible||t.mrcImpressionReached){o(G,this,wo).call(this,t);return}o(G,this,To).call(this,e,t),t.mrcImpressionReached&&(o(G,this,wo).call(this,t),o(G,this,po).call(this,e,t))},c(Za,this).visibilityPollingTime))}function wo(e){e.visibilityPollingInterval!=null&&(clearInterval(e.visibilityPollingInterval),e.visibilityPollingInterval=null)}function To(e,t){if(t.usesGptViewability||!t.isVisible||t.lastVisibilityUpdateTime==null)return;let n=Math.round(performance.now()),r=n-t.lastVisibilityUpdateTime;r>0&&(t.continuousVisibleTime+=r,t.lastVisibilityUpdateTime=n),!(t.mrcImpressionReached||t.continuousVisibleTime<o(G,this,Do).call(this,t))&&o(G,this,Eo).call(this,e,t)}function Eo(e,t){t.mrcImpressionReached=!0,c(Ka,this).dispatch({EVENT_NAME:Da,adUnitKey:t.adUnitKey,divId:e})}function Do(e){return e.renderedMediaType===`video`?Pa:Na}function Oo(e,t){if(!t.isIntersecting)return!1;let{height:n,width:r}=t.boundingClientRect,i=e.renderedMediaType!==`video`&&r*n>=La;return t.intersectionRatio>=(i?Ia:Fa)}function ko(e){return c(Za,this).requireMrcImpressionBeforeRefresh===!0&&!o(G,this,jo).call(this,e)}function Ao(e){e.continuousVisibleTime=0,e.isVisible=!1,e.lastVisibilityUpdateTime=null,e.mrcImpressionReached=!1,e.gptVisibilityKnown=!1,o(G,this,wo).call(this,e)}function jo(e){var t;return Oa.includes(e.adUnitKey)&&((t=e.sellParams)==null?void 0:t.slotType)!==`outOfPageBottomAnchor`}function Mo(e,t){t.isExausted||(t.isExausted=!0,this.unscheduleSlotRefresh(e))}function No(e){e.refreshBlockTimeout!=null&&(clearTimeout(e.refreshBlockTimeout),e.refreshBlockTimeout=null),e.unfilledRetryTimeout!=null&&(clearTimeout(e.unfilledRetryTimeout),e.unfilledRetryTimeout=null),o(G,this,wo).call(this,e)}function Po(){for(let e of c(Xa,this)){let t=c(W,this).get(e);t!=null&&o(G,this,po).call(this,e,t)}}function Fo(){for(let[e,t]of c(W,this)){if(o(G,this,Ao).call(this,t),t.usesGptViewability=!1,o(G,this,jo).call(this,t)){t.isVisible=!0,t.lastVisibilityUpdateTime=Math.round(performance.now());continue}o(G,this,So).call(this,e),o(G,this,bo).call(this,e)}}function Io(e){for(let t of e.slots)this.unscheduleSlotRefresh(t.divId)}var Lo;window.__pubtech_queue_on_consent=window.__pubtech_queue_on_consent||[],window.__pubtech_queue_on_consent.push(function(e){e!=null&&(Lo=e)});var Ro=new WeakMap,zo=new WeakMap,Bo=new WeakMap,Vo=new WeakMap,Ho=new WeakMap,Uo=new WeakMap,Wo=new WeakMap,Go=new WeakMap,Ko=new WeakMap,qo=new WeakMap,Jo=new WeakSet,Yo=class{constructor({consentReader:e,contextManager:t,customProperties:n,disableAds:r,logger:c,navigationTrackingOptions:l,pageLifecycleManager:u,websiteId:d}){i(this,Jo),a(this,Ro,void 0),a(this,zo,void 0),a(this,Bo,void 0),a(this,Vo,void 0),a(this,Ho,void 0),a(this,Uo,void 0),a(this,Wo,new Set),a(this,Go,void 0),a(this,Ko,void 0),a(this,qo,[]),s(Ro,this,e),s(zo,this,t),s(Ko,this,F(n)),s(Bo,this,r),s(Vo,this,c),s(Ho,this,L({spaRoute:!0,infiniteScroll:!1,bfcacheRestore:!0},l)),s(Uo,this,u),s(Go,this,d),o(Jo,this,Zo).call(this)}trackView(e){var t=this;return u(function*(){let n=(e==null?void 0:e.path)||document.location.pathname;c(Wo,t).has(n)||(c(Wo,t).add(n),!(yield ae(c(Bo,t)))&&(s(Ko,t,L(L({},c(Ko,t)),e==null?void 0:e.onDemandCustomProperties)),o(Jo,t,Xo).call(t,n)))})()}teardown(){for(let e of c(qo,this))e();s(qo,this,[])}};function Xo(e){let t={w_id:c(Go,this),pn:e,wd:w(),sc:ve(),metrics:{pv:{v:1,metadata:L({consent:String(c(Ro,this).hasUserAcceptedConsent()),consentApiUsed:c(Ro,this).consentManagementApiUsed()},c(Ko,this))}},metadata:{product:`engine`}};typeof Lo==`string`&&(t.ct=Lo);for(let e of[`https://producer-ovh-node01.intelligence.pubtech.ai:8443/website-metrics`])try{let n=new XMLHttpRequest;n.open(`POST`,e),n.setRequestHeader(`Content-Type`,`application/json`),n.send(JSON.stringify(t)),c(Vo,this).debug(`Sending a new page view request`,t)}catch(e){c(Vo,this).error(`Error while tracking the page view`,e)}}function Zo(){let e=c(Ho,this).bfcacheRestore,t=c(Ho,this).infiniteScroll,n=c(Ho,this).spaRoute;if(n||t){let e=c(zo,this).on(`contextUpdated`,({context:e,navigationContext:r})=>{if(r===`spa-route`&&n){c(Wo,this).clear(),this.trackView({path:e.path,onDemandCustomProperties:{navigationContext:r}});return}r===`infinite-scroll`&&t&&this.trackView({path:e.path,onDemandCustomProperties:{navigationContext:r}})});c(qo,this).push(e)}if(e){let e=c(Uo,this).on(`bfcacheRestore`,()=>{c(Wo,this).clear(),this.trackView({onDemandCustomProperties:{navigationContext:`bfcache-restore`}})});c(qo,this).push(e)}}var Qo=`font-weight: bold; font-size: 50px;color: red; text-shadow: 3px 3px 0 rgb(217,31,38) , 6px 6px 0 rgb(226,91,14) , 9px 9px 0 rgb(245,221,8) , 12px 12px 0 rgb(5,148,68) , 15px 15px 0 rgb(2,135,206) , 18px 18px 0 rgb(4,77,145) , 21px 21px 0 rgb(42,21,113)`,$o=new Set([`VIP`,`O_INTERSTITIAL_G`]),es=new Set([`O_SKIN`]),ts=[{color:`green`,minCount:6,text:`ottimale, monetizzazione al top`},{color:`yellow`,minCount:5,text:`buono, monetizzazione nella norma`},{color:`orange`,minCount:2,text:`basso, monetizzazione sotto la media`},{color:`red`,minCount:0,text:`troppo basso, monetizzazione compromessa!`}];function ns(e){console.debug(`%cPubtech.ai Banner Debug`,Qo);let t=new Set,n=0;for(let r of Object.keys(e)){if(document.getElementById(r)!=null){t.add(r),es.has(r)||n++;continue}$o.has(r)&&t.add(r)}console.table([...t]);let r=rs(n);console.debug(`%cNumero di banner in pagina: ${r.text}`,`color:${r.color};font-size: 14px;`)}function rs(e){let t=ts.find(({minCount:t})=>e>=t);return t==null?ts[ts.length-1]:t}var is=22;function as({adUnitKey:e,element:t,otherBlocksToLabel:n,sizes:r,stableMinHeight:i}){var a,o;if((i==null?void 0:i.enabled)===!1||!os(e)||!(i==null||(a=i.excludeAdUnits)==null)&&a.includes(e))return;let s=cs(ss(e,n)?is:0,r,(o=i==null?void 0:i.strategy)==null?`median`:o),c=t.parentElement,l=c!=null&&c.classList.contains(`container_${t.id}`)?c:t;s!=null&&l.style.minHeight!==`${s}px`&&(l.style.minHeight=`${s}px`)}function os(e){let t=e.toUpperCase();return![`O_`,`F_`,`S_`].some(e=>t.startsWith(e))}function ss(e,t){return e.includes(`C_`)||e.includes(`D_`)||e.includes(`B_`)||(t==null?void 0:t.includes(e))===!0}function cs(e,t,n){let r=t.filter(e=>Array.isArray(e)).map(e=>e[1]);if(r.length===0)return;let i;return n===`median`?i=ls(r):n===`tallest`&&(i=Math.max(...r)),i==null?void 0:i+e}function ls(e){let t=[...e].sort((e,t)=>e-t),n=Math.floor(t.length/2);return t.length%2==0?(t[n-1]+t[n])/2:t[n]}var us=new Set([`O_INTERSTITIAL`,`O_INTERSTITIAL_G`,`O_SKIN`]);function ds(e){console.debug(`%cFORMAT_PREVIEW_MODE ON`,`background: #E53935; padding: 2px 4px;`);for(let[t,n]of Object.entries(e)){if(us.has(t))continue;let e=document.getElementById(t);if(e==null){console.debug(`AdUnit container not found for ${t}, skip`);continue}let r=n.filter(e=>Array.isArray(e));if(r.length===0){console.debug(`AdUnit ${t} has no fixed size to preview, skip`);continue}let[i,a]=r[0];e.innerHTML=` <p>${t}</p> <p>${r.map(e=>e.join(`x`)).join(`, `)}</p> `,e.style.cssText=` align-items:center; background-color:#cbcbcb; display:flex; flex-direction:column; font-size:28px; font-weight:700; height:${a}px; justify-content:center; margin-bottom:15px; margin-top:15px; text-align:center; width:${i}px; `}}var fs=`/21832376849/TM_OnBoarding_TEST/TM_OnBoarding_TEST_`,ps=`TM_OnBoarding_TEST`;function ms(e){return console.debug(`%cTEST_FORMAT_MODE ON`,`background: #E53935; padding: 2px 4px;`,`every ad slot is requested on ${fs}`),L(L({},e),{},{fullNameAd:fs,slug:ps})}var hs=`engine:beforeFlow`,gs=`engine:afterFlow`,_s=bi.init(),vs=new Vi,ys=new Hr,K=new Yt({logKey:`debug_engine`,label:`CORE`}),bs=new g;window.__engine_inspection={buildId:`[develop]-[2026-11-13_14:38:04]`},window.ptechen=window.ptechen||{},window.ptechvip=window.ptechvip||{},window.ptechen.cmd=window.ptechen.cmd||[],we(),Ee();function xs(e,t){return Ss.apply(this,arguments)}function Ss(){return Ss=u(function*(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m;let h=(n=t==null?void 0:t.pageLifecycleManager)==null?_s:n,g=(r=t==null?void 0:t.contextManager)==null?vs:r,_=(i=t==null?void 0:t.consentReader)==null?ys:i,v=new Yo({consentReader:_,contextManager:g,customProperties:(a=e.trackingOptions)==null?void 0:a.customProperties,disableAds:(o=e.execution)==null?void 0:o.disableAds,logger:K,navigationTrackingOptions:(s=e.trackingOptions)==null?void 0:s.navigationTrackingOptions,pageLifecycleManager:h,websiteId:e.website.websiteId}),y=(c=(l=e.execution)==null?void 0:l.virtualNavigationConfig)==null?{}:c,b=(u=y.titleObserver)==null?((d=e.compilePlugins)==null?void 0:d.infiniteScroll)==null&&void 0:u;h.configure(L(L({},y),{},{titleObserver:b}));let x=new Promise(e=>{let t=_.onConsentReleased({onConsentCallback:n=>{setTimeout(()=>{t()},0),e(n)},attemptThreshold:100,once:!0})}),S=D();(f=e.execution)!=null&&f.waitDomReady&&(yield Os()),(p=e.adInventoryConfig)!=null&&p.advLabelText&&document.documentElement.style.setProperty(`--adv-label-text`,`'${e.adInventoryConfig.advLabelText}'`);let C={config:e,consentReader:_,consentReady:x,contextManager:g,device:S,pageLifecycleManager:h,viewTracker:v};if(yield ae((m=e.execution)==null?void 0:m.disableAds)){K.warn(`Ads are disabled via execution config: the engine is not built. It will boot on the first virtual navigation where disableAds resolves false.`),Cs(C);return}yield ws(C)}),Ss.apply(this,arguments)}function Cs(e){let t=!1,n=e.pageLifecycleManager.on(`virtualPageLoad`,()=>{if(t)return;function r(){return i.apply(this,arguments)}function i(){return i=u(function*(){var r;(yield ae((r=e.config.execution)==null?void 0:r.disableAds))||t||(t=!0,n(),yield ws(e))}),i.apply(this,arguments)}r().catch(e=>{K.error(`Deferred engine boot failed:`,e)})})}function ws(e){return Ts.apply(this,arguments)}function Ts(){return Ts=u(function*({config:e,consentReader:t,consentReady:r,contextManager:i,device:a,pageLifecycleManager:o,viewTracker:s}){var c,l,d,f,p,m,h,g,_,v,y,b;let x=pe(`format_preview`),S=pe(`debug_format`);!x&&!S&&(yield s.trackView());let C=S?ms(e.website):e.website,w=new Qi(K),T=Ue(e.sizeMapping),E=new pt({config:C.contentTaxonomy,readPage:()=>{let{pageTargeting:e,sectionsTargeting:t}=rt();return{pageType:e,sections:t}}}),D=(c=e.googlePublisherTagProvider)==null?void 0:c.call(e,{contentSignals:E,contextManager:i,eventDispatcher:w,consentReader:t,divIdToAdUnitKeyMapping:(l=e.adInventoryConfig)==null?void 0:l.divIdToAdUnitKeyMapping,getAdUnitSizes:T.getAdUnitSizes,overridePrefixFullNameAd:S?C.fullNameAd:void 0,siteCategory:C.siteCategory}),ee=yield r,k;try{var A,te;yield n();let r=e.prebidAdapterProvider&&!S?yield ae(e.prebidAdapterProvider):void 0;k=r==null?void 0:r({consentReader:t,contentSignals:E,consentManagementType:ee.consentManagementType,contextManager:i,customFloorModelGroups:e.customFloorModelGroups,customFloorModelVersion:e.customFloorModelVersion,customFloorValues:e.customFloorPriceValues,device:a,deviceForSSP:O(),divIdToAdUnitKeyMapping:(A=e.adInventoryConfig)==null?void 0:A.divIdToAdUnitKeyMapping,domain:C.websiteDomain,eventDispatcher:w,fullNameAd:(te=C.fullNameAd)==null?``:te,sizeMappingRegistry:T,logger:K,pageLifecycleManager:o,personalizedAds:ee.personalizedAds,sellerId:C.sellerId,websiteId:C.websiteId,websiteSlug:C.slug}),yield n()}catch(e){K.error(`Failed to initialize PrebidAdapter:`,e)}let j=new Ta(e.disposableAdSlots),M=new vn({gpt:D,prebidAdapter:k,eventDispatcher:w,divIdToAdUnitKeyMapping:(d=e.adInventoryConfig)==null?void 0:d.divIdToAdUnitKeyMapping,pageLifecycleManager:o,batchSelling:e.batchSelling,timeout:!1,onAdSlotSell:e=>j.registerAdSlot(e),isAdvDisabled:()=>j.isAdvDisabled()}),N=new so({adUnitsExcludedFromRefresh:(f=e.autoRefreshOptions)==null?void 0:f.adUnitsExcludedFromRefresh,config:(p=e.autoRefreshOptions)==null?void 0:p.config,contextManager:i,customAdUnitRefreshConfigMap:(m=e.autoRefreshOptions)==null?void 0:m.customAdUnitRefreshConfigMap,disableAutoRefresh:(h=e.autoRefreshOptions)==null?void 0:h.disableAutoRefresh,monetizationManager:M,eventDispatcher:w,pageLifecycleManager:o,resolveGptSlotDivId:D?e=>D.resolveSlotDivId(e):void 0}),ne=new ma({monetizationManager:M,eventDispatcher:w,logger:K,observerRootMargin:e.lazyLoadingRootMargin});w.subscribe({eventName:qe,subscriberName:`Engine`,callback:t=>{var n;let r=t.adUnitKey,i=ss(r,(n=e.adInventoryConfig)==null?void 0:n.otherBlocksToLabel);if(Ve(T.getAdUnitSizes(t.adUnitKey))&&i){let e=document.getElementById(t.adUnitKey);e!=null&&e.classList.add(`advblockshown`)}}});let P={config:e,consentReader:t,contentSignals:E,contextManager:i,eventDispatcher:w,gpt:D,lazyLoader:ne,logger:K,monetizationManager:M,pageLifecycleManager:o,prebidAdapter:k,refreshApi:{expediteSlotRefresh:N.expediteSlotRefresh.bind(N),isMrcReached:N.isMrcReached.bind(N),teardown:N.teardown.bind(N),unscheduleSlotRefresh:N.unscheduleSlotRefresh.bind(N),whenMrcReached:N.whenMrcReached.bind(N)},adSlotLifecycleApi:{isAdSlotDisposableOnVirtualNavigation:j.isAdSlotDisposableOnVirtualNavigation.bind(j),setAdSlotAsDisposableOnVirtualNavigation:j.setAdSlotAsDisposableOnVirtualNavigation.bind(j),isAdSlotSelfManaged:j.isAdSlotSelfManaged.bind(j),setAdSlotAsSelfManaged:j.setAdSlotAsSelfManaged.bind(j),isAdvDisabled:j.isAdvDisabled.bind(j)},scriptLoader:bs,sizeMappingApi:T};function re(){return ie.apply(this,arguments)}function ie(){return ie=u(function*(){var t;(yield ae((t=e.execution)==null?void 0:t.disableAds))?j.lockSell({gpt:D,monetizationManager:M,prebidAdapter:k,refreshManager:N}):j.unlockSell()}),ie.apply(this,arguments)}if(yield re(),e.compilePlugins&&!x){var F;let t=new Yt({logKey:`debug_engine`,label:`COMPILE_PLUGINS`}),n=wr(e.compilePlugins,L(L({},P),{},{device:a,domain:C.websiteDomain,fullNameAd:(F=C.fullNameAd)==null?``:F,isDesktop:a===`desktop`,isMobile:a===`mobile`,isTablet:a===`tablet`,sellerId:C.sellerId}),w,t);n.length>0&&xr(n,w,t)}if(ke({ctx:P,device:a,isDesktop:a===`desktop`,isMobile:a===`mobile`,isTablet:a===`tablet`}),Te(),yield n(),typeof((g=e.hooks)==null?void 0:g.beforeFlow)==`function`)try{e.hooks.beforeFlow(P)}catch(e){K.error(`Before flow hook error:`,e)}if(pe(`banner_debug`)&&ns(T.getSizeMapping(a)),x){ds(T.getSizeMapping(a));return}if(w.dispatch({EVENT_NAME:hs,type:`standard`}),Es({customInstantSlotToSell:(_=e.adInventoryConfig)==null?void 0:_.customInstantSlotToSell,device:a,otherBlocksToLabel:(v=e.adInventoryConfig)==null?void 0:v.otherBlocksToLabel,stableMinHeight:(y=e.adInventoryConfig)==null?void 0:y.stableMinHeight,isAdSlotSelfManaged:j.isAdSlotSelfManaged.bind(j),lazyLoader:ne,monetizationManager:M,sizeMappingRegistry:T}),w.dispatch({EVENT_NAME:gs,type:`standard`}),typeof((b=e.hooks)==null?void 0:b.afterFlow)==`function`)try{e.hooks.afterFlow(P)}catch(e){K.error(`After flow hook error:`,e)}function oe(e){return se.apply(this,arguments)}function se(){return se=u(function*(t){var r,i,o,s,c;if(yield re(),t.type===`bfcache-restore`?j.resetSoldAdSlots({gpt:D,monetizationManager:M,prebidAdapter:k,refreshManager:N},e=>T.getSizeMapping(a)[e]!=null&&document.getElementById(e)!=null):j.disposeAdSlots(t.type,{gpt:D,monetizationManager:M,prebidAdapter:k,refreshManager:N}),t.type!==`infinite-scroll`&&(k==null||k.removeUserSyncs()),yield n(),typeof((r=e.hooks)==null?void 0:r.beforeVirtualFlow)==`function`)try{e.hooks.beforeVirtualFlow(L(L({},P),{},{virtualPageContext:t}))}catch(e){K.error(`Before virtual flow hook error:`,e)}else K.warn(`No beforeVirtualFlow hook provided, skipping.`);if(w.dispatch({EVENT_NAME:hs,type:`virtual`,url:t.url,virtualNavigationType:t.type}),Es({customInstantSlotToSell:(i=e.adInventoryConfig)==null?void 0:i.customInstantSlotToSell,device:a,otherBlocksToLabel:(o=e.adInventoryConfig)==null?void 0:o.otherBlocksToLabel,stableMinHeight:(s=e.adInventoryConfig)==null?void 0:s.stableMinHeight,isAdSlotSelfManaged:j.isAdSlotSelfManaged.bind(j),lazyLoader:ne,monetizationManager:M,sizeMappingRegistry:T,refreshManager:N,virtualNavigationType:t.type}),w.dispatch({EVENT_NAME:gs,type:`virtual`,url:t.url,virtualNavigationType:t.type}),typeof((c=e.hooks)==null?void 0:c.afterVirtualFlow)==`function`)try{e.hooks.afterVirtualFlow(L(L({},P),{},{virtualPageContext:t}))}catch(e){K.error(`After virtual flow hook error:`,e)}else K.warn(`No afterVirtualFlow hook provided, skipping.`)}),se.apply(this,arguments)}o.on(`virtualPageLoad`,e=>{oe(e)}),o.on(`bfcacheRestore`,()=>{oe({url:window.location.href,type:`bfcache-restore`})}),De({ctx:P,device:a,isDesktop:a===`desktop`,isMobile:a===`mobile`,isTablet:a===`tablet`})}),Ts.apply(this,arguments)}function Es({customInstantSlotToSell:e,device:t,isAdSlotSelfManaged:n,lazyLoader:r,monetizationManager:i,otherBlocksToLabel:a,sizeMappingRegistry:o,refreshManager:s,stableMinHeight:c,virtualNavigationType:l}){let u=Ds(t,o,a,c),d=new Set({desktop:[`F_D`,`S_1`,`S_2`],tablet:[`F_D`],mobile:[`F_M`]}[t]);if(e!=null){let n=F(e);if(n[t]instanceof Set)for(let e of n[t])d.add(e)}let f=new Set([`F_M`,`F_D`,`S_1`,`S_2`].filter(e=>u.has(e))),p=new Set([...u].filter(e=>!f.has(e))),m=[...f,...p];for(let e of m)if((n==null?void 0:n(e))!==!0){if(s&&s.isSlotRegistered(e)){l!==`infinite-scroll`&&s.expediteSlotRefresh(e,e);continue}d.has(e)?i.sell({adUnitKey:e,divId:e,refreshCount:0}):r.register({adUnitKey:e,divId:e})}for(;window.ptechen.cmd.length>0;)window.ptechen.cmd.shift()()}function Ds(e,t,n,r){let i=new Set,a=t.getSizeMapping(e),o=Object.keys(a);for(let s of o){let o=document.getElementById(s);if(o==null)continue;i.add(s);let c=je(o,e);c.length>0&&t.setAdUnitSizes(s,c),as({adUnitKey:s,element:o,otherBlocksToLabel:n,sizes:a[s],stableMinHeight:r})}return i}function Os(){return new Promise(e=>{document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,()=>e(),{once:!0}):e()})}var ks={mobile:[[320,50],[320,100]],tablet:[[728,90]],desktop:[[728,90],[970,90],[980,90],[990,90]]},As=2e3,js=300,Ms=1300,Ns={desktop:{F_D:{containerHeight:100}},tablet:{F_D:{containerHeight:100}},mobile:{F_M:{containerHeight:100}}};function Ps({sizeMapping:e,anchorSlotContainerSelector:t,closeButton:r=!0,enableRefreshOnInfiniteScroll:i=!1,floorAdDesktopBg:a=`transparent`,scaleIframeConfig:o=Ns,scaleIframeOnPostInjection:s=!1,transformFloorAdToAnchorSlot:c=!1,useBottomAnchoredAd:l=!1,bottomAnchorAdUnitKeys:d={},bottomAnchorSizes:f=ks}){let p=new Yt({logKey:`debug_engine`,label:`FLOOR_AD_PLUGIN`});return m=>{var h,g;let _=m.isMobile?`F_M`:`F_D`,v=m.isMobile?e.mobile:e.desktop,y=`floorad-container`;if(!v)return null;m.sizeMappingApi.addSizeMaps(_,e),m.adSlotLifecycleApi.setAdSlotAsSelfManaged(_);let b,x=(h=m.isMobile?d.mobile:d.desktop)==null?`${_}_ANCHOR_G`:h,S=f[m.device],C=(g=e[m.device])==null?void 0:g[_],w=l&&m.gpt!=null&&C!=null&&C.length>0&&S!=null&&S.length>0;w&&(m.sizeMappingApi.addSizeMaps(x,{[m.device]:{[x]:S}}),m.adSlotLifecycleApi.setAdSlotAsSelfManaged(x));let T=`none`,E=[];i&&m.eventDispatcher.subscribe({eventName:hs,subscriberName:`floorAdInfiniteScrollRefresh`,callback:e=>{if(e.type===`virtual`&&e.virtualNavigationType===`infinite-scroll`&&!m.adSlotLifecycleApi.isAdvDisabled()&&document.getElementById(y)!=null){if(!m.refreshApi.isMrcReached(_)){p.debug(`Infinite scroll: the impression on screen is not viewable yet, leaving it alone`);return}p.debug(`Infinite scroll: expediting the floor ad refresh`),m.refreshApi.expediteSlotRefresh(_,_)}}});function D(){m.monetizationManager.sell({adUnitKey:_,divId:_,refreshCount:0})}function ee(){if(T===`anchor`||T===`closed`){p.debug(`Bottom anchor ${T} on this page, skipping setup`);return}if(T===`none`&&w){O();return}j()}function O(){T=`anchor`,p.debug(`Requesting the GPT bottom anchor ${x}`),E=[m.eventDispatcher.subscribe({eventName:Ke,subscriberName:`floorAdBottomAnchorUnfilled`,callback:e=>{e.divId!==x||T!==`anchor`||k()}}),m.eventDispatcher.subscribe({eventName:qe,subscriberName:`floorAdBottomAnchorFilled`,callback:e=>{e.divId===x&&p.debug(`Bottom anchor ${x} filled at phase ${e.phase}`)}})],m.monetizationManager.sell({adUnitKey:_,divId:x,overrideSlotName:x,refreshCount:0,slotType:`outOfPageBottomAnchor`},{useClientSideRenderFallback:!1})}function k(){let e=A();if(te(),e){p.debug(`Bottom anchor dismissed by the reader, no floor ad until the next page`),T=`closed`;return}p.debug(`Bottom anchor not served, falling back to the floor ad bar`),j()}function A(){let e=m.gpt;if(e==null)return!1;try{var t;let n=window.googletag.pubads().getSlots().find(t=>e.resolveSlotDivId(t)===x);return n!=null&&((t=document.getElementById(n.getSlotElementId()))==null?void 0:t.getAttribute(`data-anchor-status`))===`dismissed`}catch(e){return p.error(`Could not read whether the bottom anchor was dismissed`,e),!1}}function te(){var e;for(let e of E)e.unsubscribe();E=[],m.refreshApi.unscheduleSlotRefresh(x),(e=m.gpt)==null||e.destroySlot(x)}function j(){if(T=`bar`,document.getElementById(y)!=null){p.debug(`Floor ad bar already in place, skipping setup`);return}let e=document.getElementById(_);e==null&&(e=document.createElement(`div`),e.id=_);let i=document.createElement(`div`);if(i.id=y,m.isMobile?i.classList.add(`mobile-container`):(i.classList.add(`desktop-container`),i.style.setProperty(`--floorad-desktop-bg`,`${a}`)),i.appendChild(e),r){let e=document.createElement(`div`);e.id=`floorad-no-click`;let t=document.createElement(`div`);t.id=`floorad-close-button`;let r=document.createElement(`span`);r.id=`floorad-close-button-text`,r.innerText=`X`,m.isMobile?(e.classList.add(`mobile-no-click`),t.classList.add(`mobile-button`)):(e.classList.add(`desktop-no-click`),t.classList.add(`desktop-button`)),e.addEventListener(`click`,function(e){return e.preventDefault(),e.stopPropagation(),!1}),t.addEventListener(`click`,function(){var e=u(function*(){yield n(),N()});function t(){return e.apply(this,arguments)}return t}()),t.appendChild(r),i.appendChild(e),i.appendChild(t)}if(c){p.debug(`Anchor slot with selector: ${t}`);let e=document.querySelector(t);e==null?(p.debug(`Anchor slot container not found, enable bottom floor-ad`),i.classList.add(`bottom-slot`),document.body.appendChild(i)):(p.debug(`Anchor slot container found`,e),i.classList.add(`anchor-slot`),e.appendChild(i))}else i.classList.add(`bottom-slot`),document.body.appendChild(i);s&&(m.sizeMappingApi.addSizeMaps(`F_D`,{desktop:{F_D:[[990,250],[970,250]]},tablet:{F_D:[[990,250],[970,250]]}}),m.sizeMappingApi.addSizeMaps(`F_M`,{mobile:{F_M:[[990,250],[970,250],[728,90]]}}),pr({adUnitSizeConfig:o,logger:p,isOnPostInjection:!0,device:m.device}),p.debug(`Scale iframe enabled on post injection with config:`,o)),D(),b==null||b.unsubscribe(),b=m.eventDispatcher.subscribe({eventName:qe,subscriberName:`floorAdPluginSubscriber`,callback:e=>{if(e.divId!==_)return;let t=document.getElementById(y);if(t==null||t.classList.contains(`rendered-floorad`))return;let n=!0,r=m.isMobile?Ms:js;setTimeout(u(function*(){if(m.prebidAdapter!=null&&m.isMobile)try{(yield m.prebidAdapter.getAllWinningBids()).forEach(e=>{e.status===`rendered`&&e.bidder===`seedtag`&&e.adUnitCode===`F_M`&&document.getElementById(`inScreen`)!=null&&(n=!1)})}catch(e){p.error(`Error while getting winning bids from Prebid Adapter:`,e)}if(!n)return;let e=document.getElementById(y);e!=null&&e.classList.add(`rendered-floorad`)}),r)}})}function M(){var e;b==null||b.unsubscribe(),b=void 0,m.refreshApi.unscheduleSlotRefresh(_),(e=document.getElementById(y))==null||e.remove()}function N(){T===`anchor`&&te(),M(),T=`none`}return{pluginName:`floorAd`,onDisableAds:N,softTeardown:e=>{if(T===`anchor`){if(e===`bfcache-restore`||m.refreshApi.isMrcReached(x)){N();return}return Promise.race([m.refreshApi.whenMrcReached(x),new Promise(e=>setTimeout(e,As))]).then(N)}if(document.getElementById(y)==null){T=`none`;return}if(e===`bfcache-restore`){N();return}if(m.refreshApi.isMrcReached(_)){N();return}return m.refreshApi.whenMrcReached(_).then(N)},run(e){p.debug(`Running floorAd plugin for ${m.isMobile?`mobile`:`desktop`} with ad unit key ${_} and sizes:`,v),_e(yr),ee(),e({type:`completed`,onVirtualNavigationHook:{position:hs,run:ee}})}}}}var Fs=`div[id^=O_INTERSTITIAL],div[id^=O_INTERSTITIAL] div#oIntLayer{position:fixed;top:0;left:0}div[id^=O_INTERSTITIAL]{opacity:0;background:rgba(0,0,0,.95);justify-content:center;align-items:center;transition:opacity 1s ease-in;display:flex;overflow:hidden}div[id^=O_INTERSTITIAL].pt-filled{opacity:1;z-index:2147483647;width:100%;height:100%}div[id^=O_INTERSTITIAL] div#oIntLayer{z-index:2147483647;width:100%;height:100%}div[id^=O_INTERSTITIAL].pt-filled div[id^=nat_]>.nat-justify-center,div[id^=O_INTERSTITIAL].pt-filled .ob-smartfeed-wrapper .ob-widget.ob-feed-layout{background-color:#fff}div[id^=O_INTERSTITIAL] div#cont-close-interstitial,div[id^=O_INTERSTITIAL] div#ptech-timer-interstitial,div[id^=O_INTERSTITIAL] button#close-ptech-interstitial{z-index:2147483647;width:32px;height:32px}div[id^=O_INTERSTITIAL] div#cont-close-interstitial{position:fixed;top:10px;right:10px}div[id^=O_INTERSTITIAL] div#cont-close-interstitial.top-large{top:50px!important}div[id^=O_INTERSTITIAL] div#ptech-timer-interstitial,div[id^=O_INTERSTITIAL] button#close-ptech-interstitial{color:#000;background:#fff;border:1px solid #000;border-radius:18px;justify-content:center;align-items:center;font-size:16px;font-weight:700;display:flex}div[id^=O_INTERSTITIAL] button#close-ptech-interstitial{cursor:pointer}#ogy-ad-slot.ogy_ad_slot_element.ogy_ad_slot_element--force-index,#inScreen.st-placement .st-reset{z-index:2147483642!important}.ptech-filled-interstitial{overflow:hidden}`;function Is(e,t){var n;let r=parseInt((n=se(e))==null?``:n),i=1;isNaN(r)||(i=r+1),ce(e,i,t,void 0)}function Ls({cookieName:e,frequency:t,disabled:n}){var r;if(n)return!1;let i=Number((r=se(e))==null?``:r);return!isNaN(i)&&i>=t}function Rs(e){let t=document.getElementById(e);if(t!=null)return t;let n=document.createElement(`div`);return n.id=e,document.body.appendChild(n),n}var zs=11e3,Bs=1e3;function Vs({adUnitKey:e=`O_INTERSTITIAL`,closeButtonDuration:t=3,interstitialCappingCookieName:n=`pt_icapping`,interstitialCappingFrequency:r=1,interstitialCappingMinutes:i=5,interstitialDelay:a,isInterstitialCappingDisabled:o=!1,scrollThresholdForRefresh:s=200,startAfterUserScroll:c=!1,providersOrderedExecution:l}){let d=new Yt({logKey:`debug_interstitial`,label:`INTERSTITIAL`});d.debug(`Starting..`);let f=pe(`debug_interstitial`),p=fe(`google_preview`);p&&d.debug(`Google preview: no interstitial capping`);let m=o||p,h=l;return Ls({cookieName:n,frequency:r,disabled:m})?(d.debug(`Capping limit reached at factory time, plugin opts out`),()=>null):o=>{let l=null,g=!1,_,v=[],y,b,x=0,S=null,C=()=>{let e=v;v=[];for(let t of e)t()},w=()=>{var t;_!==void 0&&(clearInterval(_),_=void 0),b!==void 0&&(clearTimeout(b),b=void 0),C(),(t=document.getElementById(e))==null||t.remove();try{document.body.classList.remove(`ptech-filled-interstitial`)}catch(e){d.debug(e)}},E=()=>{let t=(e,t)=>{try{t()}catch(t){d.debug(`Error ${e} while cancelling the pending interstitial sell`,t)}};t(`unscheduling the refresh`,()=>o.refreshApi.unscheduleSlotRefresh(e)),t(`destroying the GPT slot`,()=>{var t;return(t=o.gpt)==null?void 0:t.destroySlot(e)}),t(`removing the Prebid ad unit`,()=>{var t;return(t=o.prebidAdapter)==null?void 0:t.removeAdUnit(e)}),t(`clearing the cached sell options`,()=>o.monetizationManager.clearAdSlotState(e))},D=()=>{x++,l!=null&&(window.removeEventListener(`scroll`,l),l=null),y!==void 0&&(clearTimeout(y),y=void 0),E(),w()};return{pluginName:`interstitial`,onDisableAds:D,softTeardown:t=>{if(t===`bfcache-restore`){D(),S==null||S(`closed by a bfcache restore`);return}if(document.getElementById(e)==null||_===void 0){D(),S==null||S(`interrupted by a virtual navigation`);return}return new Promise(e=>{v.push(e)}).then(()=>{D(),S==null||S(`interrupted by a virtual navigation`)})},run(v){_e(Fs);let E=()=>{m||Is(n,i)},D=({interstitialLayerTimeout:n})=>{if(document.getElementById(`ovmcnt`)!=null){d.debug(`Reservation detected, skipping close rendering`);return}let r=document.getElementById(e);if(r==null){d.debug(`Interstitial container missing, cannot setup close rendering`);return}try{document.body.classList.add(`ptech-filled-interstitial`)}catch(e){d.debug(e)}r.classList.add(`pt-filled`),r.removeAttribute(`style`);let i=document.createElement(`div`);i.id=`cont-close-interstitial`;try{T()===window.screen.height&&navigator.userAgent.match(/instagram/i)&&i.classList.add(`top-large`)}catch(e){d.debug(e)}let a=document.createElement(`button`);a.id=`close-ptech-interstitial`,a.type=`button`,a.setAttribute(`aria-label`,`Close interstitial`),a.innerHTML=`x`,a.onclick=()=>w();let o=document.createElement(`div`);o.id=`ptech-timer-interstitial`,o.setAttribute(`aria-live`,`polite`),o.innerHTML=String(t),i.appendChild(o),r.appendChild(i);let s=t,c=setInterval(()=>{--s,s<=0?(clearInterval(c),_=void 0,o.remove(),i.appendChild(a),a.focus(),C()):o.innerHTML=String(s)},Bs);_=c;let l=document.createElement(`div`);l.id=`oIntLayer`,l.onclick=e=>{d.debug(`Layer prevented unintentional click`),e.preventDefault(),e.stopPropagation()},setTimeout(()=>{d.debug(`Removing click-protection layer`),l.remove()},n),r.appendChild(l),!p&&!f?b=setTimeout(()=>{b=void 0,document.getElementById(e)===r&&(d.debug(`Auto-closing interstitial after timeout`),w())},zs):d.debug(`Debug or Google preview enabled: skipping auto-close`)},ee=t=>({enginePluginContext:o,adUnitKey:e,logger:d,isGooglePreview:p,isDebug:f,setCappingCookie:E,setupCloseRendering:e=>{if(t!==x){d.debug(`Ignoring close rendering asked for by a superseded interstitial cycle`);return}D(e)},closeInterstitial:()=>{if(t!==x){d.debug(`Ignoring close asked for by a superseded interstitial cycle`);return}w()}}),O=(e,t)=>{g||(g=!0,v({type:`completed`,deliveryStatus:t,message:e,onVirtualNavigationHook:{position:gs,run:e=>{if(e!=`infinite-scroll`){if(Ls({cookieName:n,frequency:r,disabled:m})){d.debug(`Skipping virtual interstitial chain due to capping limit`);return}A(!1)}}}}))};S=O;let k=function(){var t=u(function*(t){let i=x,a=ee(i),o=!1,s=(e,n)=>{o||(o=!0,d.debug(`Interstitial chain finished: ${e}`),window.dispatchEvent(new Event(`pubtech_interstitial_done`)),t&&O(e,n))};Rs(e);for(let e of h){if(i!==x){s(`superseded by a newer interstitial cycle`);return}if(!e.canRun(a)){d.debug(`Skipping provider "${e.name}" — canRun returned false`);continue}if(Ls({cookieName:n,frequency:r,disabled:m})){s(`capping limit reached mid-chain`,`no-fill`);return}d.debug(`Running provider "${e.name}"`);let t;try{t=yield e.execute(a)}catch(t){d.debug(`Provider "${e.name}" threw: ${String(t)}`);continue}if(i!==x){s(`superseded by a newer interstitial cycle`);return}if(t.served){s(`served by ${e.name}`,t.deferred?void 0:`filled`);return}if(`error`in t){d.debug(`Provider "${e.name}" errored: ${t.error}`);continue}d.debug(`Provider "${e.name}" returned empty, advancing chain`)}s(`all providers exhausted`,`no-fill`)});return function(e){return t.apply(this,arguments)}}(),A=e=>{let t=()=>{l!=null&&(window.removeEventListener(`scroll`,l),l=null)},n=()=>{if(window.scrollY>=s){t(),d.debug(`Scroll threshold already met, starting chain`),k(e);return}if(l!=null){d.debug(`Scroll listener already active, skipping duplicate registration`);return}d.debug(`Awaiting scroll threshold before starting chain`),l=()=>{window.scrollY<s||(t(),k(e))},window.addEventListener(`scroll`,l)};if(c){n();return}k(e)};a!=null&&a>0&&!p?(d.debug(`Interstitial delay set, waiting ${a}s before starting chain`),y=setTimeout(()=>A(!0),a*1e3)):A(!0)}}}}var Hs=`https://cdn.adkaora.space/talksmedia/generic/prod/adk-init.js`,Us=`adkInteractionsEvents`,Ws=15e3;function Gs({isEnabledOnDesktop:e=!1,eventFallback:t=!0}={}){return{name:`adKaora`,canRun(t){return t.isGooglePreview?(t.logger.debug(`Google preview: skipping AdKaora provider`),!1):t.enginePluginContext.isMobile||e},execute(e){return new Promise(n=>{var r;e.logger.debug(`Loading AdKaora interstitial`),window.adkaoraCanShowAds=!0;let i=document.createElement(`div`);i.className=`adk-slot adk-interstitial`;for(let e of[`adk_interstitial0`,`adk_interstitial`,`adk_interstitial_r`]){let t=document.createElement(`div`);t.id=e,i.appendChild(t)}document.body.appendChild(i);let a,o=!1,s=e=>{o||(o=!0,window.removeEventListener(Us,c),a!=null&&clearTimeout(a),(!(`served`in e)||e.served!==!0)&&i.remove(),n(e))};function c(t){let n=t.detail;if(n!=null&&!(n.id!==`adk_interstitial`&&n.id!==`adk_impact-video`)){if(n.isEmpty===!0||n.canBeDelivered===!1){e.logger.debug(`AdKaora empty / not deliverable`),s({served:!1,empty:!0});return}(n.isEmpty===!1||n.canBeDelivered===!0)&&(e.logger.debug(`AdKaora interstitial served`),e.setCappingCookie(),s({served:!0}))}}window.addEventListener(Us,c);let l=document.createElement(`script`);l.src=Hs,l.setAttribute(`data-version`,`v3`),l.type=`text/javascript`,l.defer=!0,l.onload=()=>{t&&(o||(a=setTimeout(()=>{e.logger.debug(`AdKaora event timeout, advancing chain`),s({served:!1,empty:!0})},Ws)))},l.onerror=()=>{e.logger.debug(`AdKaora script failed to load`),s({served:!1,error:`AdKaora script failed to load`})},((r=document.head)==null?document.getElementsByTagName(`head`)[0]:r).appendChild(l)})}}}function Ks({isStandardSetupCloseRenderingRequired:e=!0,sizeMapping:t}){return{name:`prebid`,canRun(e){return t[e.enginePluginContext.device]!=null},execute(n){return new Promise(r=>{var i;let a=()=>{n.logger.debug(`Prebid interstitial served`),n.setCappingCookie(),e?setTimeout(()=>n.setupCloseRendering({interstitialLayerTimeout:1500}),300):n.setupCloseRendering({interstitialLayerTimeout:0}),r({served:!0})},o={callbacks:{onGptSuccess:a,onClientRenderSuccess:a,onUnfilled:()=>{n.logger.debug(`Prebid interstitial returned empty`);let e=document.getElementById(n.adUnitKey);e!=null&&(e.innerHTML=``),r({served:!1,empty:!0})},onFallback:()=>{n.logger.debug(`Prebid interstitial auction failed`),r({served:!1,error:`All auction phases failed for interstitial`})}}};n.enginePluginContext.adSlotLifecycleApi.setAdSlotAsSelfManaged(n.adUnitKey),n.enginePluginContext.monetizationManager.sell({adUnitKey:n.adUnitKey,divId:n.adUnitKey,overrideAdUnitSizes:(i=t[n.enginePluginContext.device])==null?void 0:i[n.adUnitKey]},o)})}}}function qs(){if(document.querySelector(`link[href="https://imasdk.googleapis.com/js/sdkloader/ima3.js"]`)==null)try{let e=document.createElement(`link`);e.rel=`preload`,e.href=`https://imasdk.googleapis.com/js/sdkloader/ima3.js`,e.as=`script`,(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}catch(e){}}function Js(e,t,n){let r=`https://ads.talkscreativity.com/assets/product/mn-player.js`;t===`pre_prod`?r=`https://devads.talkscreativity.com/assets/product/mn-player_pre_prod.js`:t===`dev`&&(r=`https://devads.talkscreativity.com/assets/product/mn-player_dev.js`),window._mnPlayerConfig=window._mnPlayerConfig||[],typeof window.mnPlayerQueue==`object`&&typeof window.mnPlayerQueue.queue==`object`||(window.mnPlayerQueue={queue:[]}),e.debug(`Loading MnPlayer script with version: ${t}`),n.loadScript({scriptTag:`mn-player`,scriptUrl:r})}var Ys={desktop:3,mobile:2,tablet:4},Xs=`it`;function Zs(e,t,n){return`&url=${encodeURIComponent(window.location.href)}&hl=${$s()}&dth=${Ys[e]}&ppid=${encodeURIComponent(tt())}&wta=1`+(t==null?``:`&vconp=${t}`)+(n==null?``:_t(n))}function Qs(e){return e==null?``:`%26pps%3D${gt(e)}`}function $s(){var e;let t=((e=document.documentElement.lang)==null?``:e).split(`-`)[0].trim().toLowerCase();return/^[a-z]{2,3}$/.test(t)?t:Xs}var ec=new WeakMap,tc=new WeakMap,nc=new WeakMap,rc=new WeakMap,ic=new WeakMap,ac=new WeakMap,oc=new WeakMap,q=new WeakMap,sc=new WeakMap,cc=new WeakMap,lc=new WeakMap,uc=new WeakMap,dc=new WeakMap,fc=new WeakMap,pc=new WeakMap,mc=new WeakMap,hc=new WeakMap,gc=new WeakMap,_c=new WeakMap,vc=new WeakMap,yc=new WeakMap,J=new WeakSet,bc=class{constructor(e){i(this,J),a(this,ec,void 0),a(this,tc,void 0),a(this,nc,void 0),a(this,rc,void 0),a(this,ic,void 0),a(this,ac,void 0),a(this,oc,void 0),a(this,q,void 0),a(this,sc,void 0),a(this,cc,void 0),a(this,lc,`https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=`),a(this,uc,void 0),a(this,dc,void 0),a(this,fc,void 0),a(this,pc,void 0),a(this,mc,void 0),a(this,hc,void 0),a(this,gc,void 0),a(this,_c,void 0),a(this,vc,0),a(this,yc,new Map),s(ec,this,e.adPlayLimit),s(tc,this,e.enginePluginContext.contentSignals),s(nc,this,e.enginePluginContext.device),s(rc,this,e.enginePluginContext.fullNameAd),s(ic,this,e.getTargeting),s(ac,this,e.enginePluginContext.adSlotLifecycleApi.isAdvDisabled),s(oc,this,e.isMnPlayerScriptLoaded),s(q,this,e.logger),s(sc,this,e.plcmtParameter),s(cc,this,e.enginePluginContext.prebidAdapter),s(uc,this,e.refreshLimit),s(dc,this,e.refreshOnClose),s(fc,this,e.runOnEnd),s(pc,this,e.scriptLoader),s(mc,this,e.skipVideoUpr),s(hc,this,e.vconpParameter),s(gc,this,e.videoTargeting),s(_c,this,e.vtrTargeting)}init({embedElement:e,playerConfig:t,videoContainerId:n}){var r;let i=e.getAttribute(`data-url`);if(i==null||i===``){c(q,this).debug(`Video URL not found`,e);return}let a=[];for(let t of e.attributes){let n=t.name;if(n.startsWith(`data-subtitle-`)){let t=e.getAttribute(n);if(t!=null&&t===``)continue;let r=n.split(`data-subtitle-`).pop(),i={label:r,src:t,srclang:r==null?void 0:r.substring(0,2)};a.push(i)}}let l=e.getAttribute(`data-default-subtitle`),u=a.length>0;s(vc,this,(r=c(vc,this),r++,r));let d=n||`pubtechvideo-player-${c(vc,this)}`,f={adStartCount:0,containerId:d,isDisposed:!1,isEnded:!1,mnPlayerConfig:t==null?{}:t,mnPlayerInstance:null,refreshCount:0,subtitles:{defaultSubtitle:l,enableSubtitles:u,subtitleTrackList:a},thumbUrl:e.getAttribute(`data-thumb`),videoUrl:i};c(yc,this).set(d,f);let p=document.createElement(`div`);p.id=d,be(e,p),o(J,this,Sc).call(this,f)}teardown(){for(let e of c(yc,this).values())o(J,this,xc).call(this,e);c(yc,this).clear()}};function xc(e){var t;e.isDisposed=!0,e.timeout!=null&&(clearTimeout(e.timeout),e.timeout=void 0),(t=document.getElementById(e.containerId))==null||t.remove(),e.mnPlayerInstance=null}function Sc(e){var t=this;return u(function*(){if(!c(ac,t).call(t)&&!e.isDisposed){if(e.refreshCount++,e.vast=o(J,t,Cc).call(t,e.refreshCount),c(cc,t)){let n={adUnitKey:`PREROLL`,placement:c(sc,t),vast:e.vast};yield c(cc,t).buildVideoVast(n,(n,r)=>{e.isDisposed||(e.adReporter=r(n),o(J,t,wc).call(t,{playerContext:e,vast:n}))},c(q,t));return}e.adReporter=void 0,o(J,t,wc).call(t,{playerContext:e,vast:e.vast})}})()}function Cc(e){var t;if(pe(`preview_video`))return c(q,this).debug(`Preview video`),c(lc,this);let n=[],r=``;if(window.googletag!=null&&typeof window.googletag.getConfig==`function`){var i,a,o,s,l,u,d,f;let e=window.googletag.getConfig(`targeting`);r=(i=(a=(o=e.targeting)==null?void 0:o.pageTargeting)==null?(s=e.targeting)==null?void 0:s.pagina:a)==null?``:i,n=(l=(u=(d=e.targeting)==null?void 0:d.sectionsTargeting)==null?(f=e.targeting)==null?void 0:f.section:u)==null?[]:l}if(typeof c(ic,this)==`function`){var p,m;let e=c(ic,this).call(this);n=(p=e.sectionsTargeting)==null?n:p,r=(m=e.pageTargeting)==null?r:m}let h=Array.isArray(n)?n.join(`,`):n,g=Array.isArray(r)?r.join(`,`):r,_=(t=c(tc,this))==null?void 0:t.resolve();return`https://pubads.g.doubleclick.net/gampad/ads?iu=${c(rc,this)}PREROLL&description_url=`+encodeURIComponent(window.location.href)+`&tfcd=0&npa=0&sz=400x300%7C640x480%7C360x640%7C640x360&gdfp_req=1&output=vast&unviewed_position_start=1&env=instream&plcmt=${c(sc,this)}&vpos=preroll`+Zs(c(nc,this),c(hc,this),_)+`&cust_params=${c(gc,this)}%3D`+encodeURIComponent(h)+`%26pagina%3D${g}`+c(mc,this)+`%26refresh%3D${e}`+Qs(_)+c(_c,this)}function wc({playerContext:e,vast:t}){if(!e.isDisposed){if(e.mnPlayerInstance!=null){c(q,this).debug(`MnPlayer instance is defined, start adv library`),e.mnPlayerInstance.startAdvLibrary(t,!0);return}if(c(q,this).debug(`MnPlayer instance is null, setting configs and load player`),c(oc,this)){var n;c(q,this).debug(`Push loadMnPlayer to the player queue`),(n=window.mnPlayerQueue)==null||n.queue.push(()=>o(J,this,Tc).call(this,{playerContext:e,vast:t}));return}c(q,this).debug(`Call loadMnPlayer when script will be ready`),c(pc,this).onReadyScript(`mn-player`,()=>{var n;(n=window.mnPlayerQueue)==null||n.queue.push(()=>o(J,this,Tc).call(this,{playerContext:e,vast:t}))})}}function Tc({playerContext:e,vast:t}){if(e.isDisposed)return;let n=L({adTagUrl:t,appendTo:`div#${e.containerId}`,autoPlay:!0,behavior:`incontent`,onPlayerReady:t=>{o(J,this,Ec).call(this,{playerContext:e,playerEventManager:t})},poster:e.thumbUrl,source:e.videoUrl,startAdInView:!0,startAdWithVolume:!0,startVideoContentWithVolume:!0,subtitles:e.subtitles,videoVolume:.3},e.mnPlayerConfig);c(q,this).debug(`MnPlayer is ready`),e.mnPlayerInstance=window.loadMnPlayer(n)}function Ec({playerContext:e,playerEventManager:t}){c(q,this).debug(`Define MnPlayer events`),t.on(`AD_CLOSED`,()=>{c(q,this).debug(`MnPlayer AD_CLOSED`),o(J,this,Dc).call(this,e)}),t.on(`AD_LOADED`,()=>{c(q,this).debug(`MnPlayer AD_LOADED`)}),t.on(`AD_STARTED`,()=>{c(q,this).debug(`MnPlayer AD_STARTED`),e.adStartCount++}),t.on(`AD_IMPRESSION`,t=>{var n;c(q,this).debug(`MnPlayer AD_IMPRESSION`,t),!e.isDisposed&&((n=e.adReporter)==null||n.impression(t))}),t.on(`AD_ERROR`,t=>{var n;c(q,this).debug(`MnPlayer AD_ERROR`,t),!e.isDisposed&&((n=e.adReporter)==null||n.error(t),e.isEnded=!0,typeof c(fc,this)==`function`&&c(fc,this).call(this,e.adStartCount===0),c(q,this).debug(`Dispatch video done event`),window.dispatchEvent(new Event(`pubtech_video_done`)))}),t.on(`ALL_ADS_COMPLETED`,()=>{var t;c(q,this).debug(`MnPlayer ALL_ADS_COMPLETED`),e.isDisposed||(t=e.adReporter)==null||t.allAdsCompleted(),o(J,this,Dc).call(this,e)}),t.on(`PLAYER_CLOSED`,()=>{c(q,this).debug(`MnPlayer PLAYER_CLOSED`),!(e.isDisposed||e.isEnded)&&(c(dc,this)?o(J,this,Dc).call(this,e):o(J,this,Oc).call(this,e))})}function Dc(e){if(!e.isDisposed){if(e.adStartCount>=c(ec,this)||e.refreshCount>c(uc,this)){o(J,this,Oc).call(this,e);return}c(q,this).debug(`Start adv refresh`),e.timeout=setTimeout(()=>{o(J,this,Sc).call(this,e)},500)}}function Oc(e){c(q,this).debug(`MnPlayer done, call handle video content resume`),e.mnPlayerInstance!=null&&e.mnPlayerInstance.handleVideoContentResume(),e.isEnded=!0,typeof c(fc,this)==`function`&&c(fc,this).call(this,e.adStartCount===0),c(q,this).debug(`Dispatch video done event`),window.dispatchEvent(new Event(`pubtech_video_done`))}function kc(e){qs();let t=new Yt({logKey:`debug_video`,label:`PREROLL`}),n=g.getInstance(),r=!1;return document.querySelector(`script[src*="talkscreativity.com/assets/product/mn-player"]`)==null?Js(t,e.version,n):(t.debug(`MnPlayer script already loaded`),r=!0),i=>{let a=[],o=()=>{var e;return a=(e=[`.pubtech-video-embed`,`[id^="pubtechvideo"]`,`[id^="player-pubtechvideo"]`].map(e=>Array.from(document.querySelectorAll(e))).find(e=>e.length>0))==null?[]:e,a.length===0?(t.debug(`No embed found, exit preroll plugin`),!1):!0};if(!o())return null;let s=F(e.vtrTargeting),c=``;s!=null&&(c=`%26SPurl_4time%3D${s}`);let l;return{pluginName:`preroll`,softTeardown(){l==null||l.teardown(),a=[]},run(s){var u,d,f,p,m;t.debug(`Starting preroll plugin`);let h=[],g=t=>{s({type:`completed`,deliveryStatus:t?`no-fill`:`filled`,onVirtualNavigationHook:{position:hs,run:function(){if(l==null||l.teardown(),a=[],!o())return;let t=new Promise(e=>{h.push(e)});for(let t of a)l==null||l.init({embedElement:t,playerConfig:F(e.playerConfig)});return t}}});let n=h;h=[];for(let e of n)e()},_=F(e.vconpParameter);l=new bc({adPlayLimit:(u=e.adPlayLimit)==null?1:u,enginePluginContext:i,getTargeting:e.getTargeting,isMnPlayerScriptLoaded:r,logger:t,plcmtParameter:(d=F(e.plcmtParameter))==null?1:d,refreshLimit:(f=F(e.refreshLimit))==null?5:f,refreshOnClose:(p=e.refreshOnClose)!=null&&p,runOnEnd:g,scriptLoader:n,skipVideoUpr:e.skipVideoUpr?`%26skip_video_upr%3Dyes`:``,vconpParameter:_===void 0?1:_,videoTargeting:(m=e.videoTargeting)==null?`videoTargeting`:m,vtrTargeting:c});for(let t of a)l.init({embedElement:t,playerConfig:F(e.playerConfig)})}}}}function Ac({isMobile:e,logger:t,ogury:n,vipInstance:r,vipPosition:i}){if(t.debug(`Start insert ogury`),!e){r.refreshVideo();return}t.debug(`Ogury ready`);try{var a;let e=document.createElement(`script`);e.setAttribute(`type`,`text/javascript`),e.setAttribute(`src`,`https://mwtw.presage.io/v1/tag.js`),e.setAttribute(`async`,`true`),document.body.appendChild(e);let o={callbacks:{on_ad_complete:()=>{jc({logger:t,vipInstance:r})},on_error:()=>{Mc({logger:t,vipInstance:r})},on_no_ad:()=>{Mc({logger:t,vipInstance:r})}}};if(n.second_call_ad_unit_id!==void 0&&(o.ad_unit_id=n.second_call_ad_unit_id),window.top==null)return;window.top.OG_ad_units=(a=window.top.OG_ad_units)==null?[]:a,window.top.OG_ad_units.push({ad_unit_id:n.first_call_ad_unit_id,asset_key:n.first_call_asset_key,callbacks:{on_ad_complete:()=>{jc({logger:t,vipInstance:r})}},params:{gravity:i,max_height:180,max_width:180,y_margin:100},passback:o})}catch(e){t.debug(`Ogury error:`,e)}}function jc({logger:e,vipInstance:t}){e.debug(`Called ogury on_ad_complete`),t.updateAdStartCount(),t.refreshVideo()}function Mc({logger:e,vipInstance:t}){e.debug(`Called ogury on_no_ad/on_error, refresh video`),t.refreshVideo()}function Nc({logger:e,sellerId:t,vipInstance:n,viralizeId:r}){var i,a;e.debug(`Start insert viralize`),window.vpt=(i=window.vpt)==null?{}:i,window.vpt.queue=(a=window.vpt.queue)==null?[]:a,window.vpt.queue.push(()=>{var t,i,a,o,s,c,l,u;(t=window.vpt)==null||(i=t.on)==null||i.call(t,(a=(o=window.vpt.EVENTS)==null?void 0:o.AD_IMPRESSION)==null?`AD_IMPRESSION`:a,()=>{e.debug(`Viralize AD_IMPRESSION`),n.updateAdStartCount()}),(s=window.vpt)==null||(c=s.on)==null||c.call(s,(l=(u=window.vpt.EVENTS)==null?void 0:u.END)==null?`END`:l,t=>{e.debug(`Viralize AD_END ${t==null?void 0:t.zid}`),(t==null?void 0:t.zid)===r&&n.refreshVideo()})});let o=document.createElement(`script`);o.setAttribute(`data-wid`,`auto`),o.type=`text/javascript`,o.src=`https://ads.viralize.tv/display/?zid=`+r+`&u=`+encodeURIComponent(window.location.href)+`&schain=1.0,1!talksmedia.it,`+t+`,1,,,`,document.body.appendChild(o)}function Pc(e){return e.indexOf(`hb_uuid%3Dundefined`)===-1?e:e+(Math.random()<.5?`%26no_bid%3D1`:`%26no_bid%3D0`)}var Fc=new WeakMap,Ic=new WeakMap,Lc=new WeakMap,Rc=new WeakMap,Y=new WeakMap,zc=new WeakMap,Bc=new WeakMap,Vc=new WeakMap,X=new WeakMap,Hc=new WeakMap,Uc=new WeakMap,Wc=new WeakMap,Gc=new WeakMap,Kc=new WeakMap,qc=new WeakMap,Jc=new WeakMap,Yc=new WeakMap,Xc=new WeakMap,Zc=new WeakMap,Qc=new WeakMap,$c=new WeakMap,el=new WeakMap,tl=new WeakMap,nl=new WeakMap,rl=new WeakMap,Z=new WeakMap,il=new WeakMap,al=new WeakMap,ol=new WeakMap,sl=new WeakMap,cl=new WeakMap,ll=new WeakMap,ul=new WeakMap,Q=new WeakMap,dl=new WeakMap,fl=new WeakMap,$=new WeakSet,pl=class{constructor(e){i(this,$),a(this,Fc,void 0),a(this,Ic,void 0),a(this,Lc,void 0),a(this,Rc,void 0),a(this,Y,void 0),a(this,zc,void 0),a(this,Bc,void 0),a(this,Vc,void 0),a(this,X,void 0),a(this,Hc,void 0),a(this,Uc,void 0),a(this,Wc,void 0),a(this,Gc,void 0),a(this,Kc,void 0),a(this,qc,`https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/single_preroll_skippable&sz=640x480&ciu_szs=300x250%2C728x90&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=`),a(this,Jc,void 0),a(this,Yc,void 0),a(this,Xc,void 0),a(this,Zc,void 0),a(this,Qc,void 0),a(this,$c,void 0),a(this,el,void 0),a(this,tl,void 0),a(this,nl,void 0),a(this,rl,0),a(this,Z,0),a(this,il,[]),a(this,al,[]),a(this,ol,!1),a(this,sl,!1),a(this,cl,null),a(this,ll,0),a(this,ul,500),a(this,Q,0),a(this,dl,void 0),a(this,fl,void 0),s(Fc,this,e.adPlayLimit),s(Ic,this,e.enginePluginContext.contentSignals),s(Lc,this,e.enginePluginContext.device),s(Rc,this,e.getTargeting),s(Y,this,e.injectedBannerPluginApi),s(zc,this,e.enginePluginContext.adSlotLifecycleApi.isAdvDisabled),s(Bc,this,e.isMnPlayerScriptLoaded),s(Vc,this,e.enginePluginContext.isMobile),s(X,this,e.logger),s(Hc,this,e.otherVipConfig),s(Uc,this,e.playerConfig),s(Wc,this,e.playerPosition),s(Gc,this,e.plcmtParameter),s(Kc,this,e.enginePluginContext.prebidAdapter),s(Jc,this,e.refreshLimit),s(Yc,this,e.refreshOnClose),s(Xc,this,e.runOnEnd),s(Zc,this,e.scriptLoader),s(Qc,this,e.enginePluginContext.sellerId),s($c,this,e.vastIU),s(el,this,e.vconpParameter),s(tl,this,e.videoTargeting),s(nl,this,e.vtrTargeting)}init(){var e=this;return u(function*(){var n;if(c(zc,e).call(e)){o($,e,wl).call(e);return}let r=c(Z,e);s(Q,e,(n=c(Q,e),n++,n));let i=o($,e,ml).call(e);if(c(Kc,e)){let n={adUnitKey:`VIP`,placement:c(Gc,e),vast:i};yield c(Kc,e).buildVideoVast(n,(n,i)=>{if(r!==c(Z,e))return;let a=Pc(n);s(fl,e,i(a)),t().then(()=>{r===c(Z,e)&&o($,e,hl).call(e,{vast:a})})},c(X,e));return}r===c(Z,e)&&(s(fl,e,void 0),o($,e,hl).call(e,{vast:i}))})()}refreshVideo(e=!1){if(e){o($,this,Tl).call(this);return}let t=c(rl,this)>=c(Fc,this)||c(Q,this)>c(Jc,this);if(c(Q,this)===3&&typeof c(Hc,this)==`object`&&c(ll,this)===0){let{loadOtherVipAfterFirstEmptyVideo:e,ogury:n,viralize:r}=c(Hc,this);if(!t&&e&&(r!=null||n!=null)){c(X,this).debug(`Invoking the other vip`),o($,this,vl).call(this,n,r);return}}if(!t){c(Y,this)==null?s(ul,this,c(Q,this)<=5?500:2500):(s(ul,this,c(Q,this)===1?7e3:3500),c(Q,this)===1&&c(Y,this).injectBannerInsideVideoPlayer(c(cl,this))),c(X,this).debug(`Refresh VIP and start again`);let e=c(Z,this);o($,this,bl).call(this),s(dl,this,setTimeout(()=>{s(dl,this,void 0),e===c(Z,this)&&this.init()},c(ul,this)));return}if(typeof c(Hc,this)==`object`&&c(ll,this)===0){let{ogury:e,viralize:t}=c(Hc,this);if(c(rl,this)<c(Fc,this)&&(t!=null||e!=null)){c(X,this).debug(`Invoking the other vip`),o($,this,vl).call(this,e,t);return}}o($,this,Tl).call(this)}teardown(){o($,this,yl).call(this)}reset(){o($,this,yl).call(this),s(rl,this,0),s(ll,this,0),s(Q,this,0)}isDeliveringAd(){var e;return c(ol,this)||((e=c(Y,this))==null?void 0:e.isOnScreen())===!0}whenDeliveryFinished(){var e;return c(ol,this)?new Promise(e=>{c(al,this).push(e)}):((e=c(Y,this))==null?void 0:e.isOnScreen())===!0?c(Y,this).whenViewTimeElapsed():Promise.resolve()}whenCycleFinished(){return new Promise(e=>{c(il,this).push(e)})}updateAdStartCount(){var e;s(ol,this,!0),s(rl,this,(e=c(rl,this),e++,e)),c(X,this).debug(`Update ad start count to ${c(rl,this)}`)}updateRefreshCount(){var e;s(Q,this,(e=c(Q,this),e++,e)),c(X,this).debug(`Update refresh count to ${c(Q,this)}`)}};function ml(){var e;if(pe(`preview_video`))return c(X,this).debug(`Preview video`),c(qc,this);let t=[],n=``;if(window.googletag!=null&&typeof window.googletag.getConfig==`function`){var r,i,a,o,s,l,u,d;let e=window.googletag.getConfig(`targeting`);n=(r=(i=(a=e.targeting)==null?void 0:a.pageTargeting)==null?(o=e.targeting)==null?void 0:o.pagina:i)==null?``:r,t=(s=(l=(u=e.targeting)==null?void 0:u.sectionsTargeting)==null?(d=e.targeting)==null?void 0:d.section:l)==null?[]:s}if(typeof c(Rc,this)==`function`){var f,p;let e=c(Rc,this).call(this);t=(f=e.sectionsTargeting)==null?t:f,n=(p=e.pageTargeting)==null?n:p}let m=Array.isArray(t)?t.join(`,`):t,h=Array.isArray(n)?n.join(`,`):n,g=(e=c(Ic,this))==null?void 0:e.resolve(),_=c(Gc,this)===1?`instream`:`vp`,v=fe(`google_preview`)?`output=vast&ad_rule=0`:`output=xml_vmap1&ad_rule=1`;return`https://pubads.g.doubleclick.net/gampad/ads?sz=640x480%7C400x300%7C360x640%7C640x360&iu=${c($c,this)}&gdfp_req=1&env=${_}&${v}&plcmt=${c(Gc,this)}&vpos=preroll&ad_type=video&unviewed_position_start=1`+Zs(c(Lc,this),c(el,this),g)+`&description_url=`+encodeURIComponent(window.location.href)+`&cust_params=${c(tl,this)}%3D`+encodeURIComponent(m)+`%26pagina%3D${h}%26refresh%3D${c(Q,this)}`+Qs(g)+c(nl,this)}function hl({vast:e}){if(c(cl,this)!=null){c(X,this).debug(`MnPlayer instance is defined, start adv library`),c(cl,this).startAdvLibrary(e,!0);return}c(X,this).debug(`MnPlayer instance is null, setting configs and load player`);let t=c(Z,this);if(c(Bc,this)){var n;c(X,this).debug(`Push loadMnPlayer to the player queue`),(n=window.mnPlayerQueue)==null||n.queue.push(()=>o($,this,gl).call(this,e,t));return}c(X,this).debug(`Call loadMnPlayer when script will be ready`),c(Zc,this).onReadyScript(`mn-player`,()=>{var n;(n=window.mnPlayerQueue)==null||n.queue.push(()=>o($,this,gl).call(this,e,t))})}function gl(e,t){var n=this;return u(function*(){if(t!==c(Z,n))return;let r={};if(typeof c(Uc,n)==`function`?r=yield c(Uc,n).call(n):typeof c(Uc,n)==`object`&&(r=c(Uc,n)),t!==c(Z,n))return;let i=L({adTagUrl:e,autoPlay:!0,behavior:`inslide`,onPlayerReady:e=>{o($,n,_l).call(n,e)},playerPosition:c(Wc,n),startAdWithVolume:!0},r);c(X,n).debug(`MnPlayer is ready`),s(cl,n,window.loadMnPlayer(i))})()}function _l(e){c(X,this).debug(`Define MnPlayer events`);let t=c(Z,this),n=()=>t===c(Z,this);e.on(`AD_CLOSED`,()=>{c(X,this).debug(`MnPlayer AD_CLOSED`),n()&&this.refreshVideo()}),e.on(`AD_LOADED`,()=>{c(X,this).debug(`MnPlayer AD_LOADED`)}),e.on(`AD_STARTED`,()=>{var e;c(X,this).debug(`MnPlayer AD_STARTED`),n()&&((e=c(Y,this))==null||e.unscheduleRefresh(),this.updateAdStartCount())}),e.on(`AD_IMPRESSION`,e=>{var t;c(X,this).debug(`MnPlayer AD_IMPRESSION`,e),n()&&((t=c(fl,this))==null||t.impression(e))}),e.on(`AD_ERROR`,e=>{var t;c(X,this).debug(`MnPlayer AD_ERROR, try refresh video`,e),n()&&((t=c(fl,this))==null||t.error(e),this.refreshVideo())}),e.on(`ALL_ADS_COMPLETED`,()=>{var e;c(X,this).debug(`MnPlayer ALL_ADS_COMPLETED`),n()&&((e=c(fl,this))==null||e.allAdsCompleted(),this.refreshVideo())}),e.on(`PLAYER_CLOSED`,()=>{c(X,this).debug(`MnPlayer PLAYER_CLOSED`),!(!n()||c(sl,this))&&this.refreshVideo(!c(Yc,this))})}function vl(e,t){let n=o($,this,xl).call(this);if(t!=null){c(X,this).debug(`Can insert Viralize`),s(ll,this,1),Nc({logger:c(X,this),sellerId:c(Qc,this),vipInstance:n,viralizeId:t});return}e!=null&&(c(X,this).debug(`Can insert Ogury`),s(ll,this,1),Ac({isMobile:c(Vc,this),logger:c(X,this),ogury:e,vipInstance:n,vipPosition:c(Wc,this)===`right`?`BOTTOM_RIGHT`:`BOTTOM_LEFT`}))}function yl(){var e,t;s(Z,this,(e=c(Z,this),e++,e)),s(sl,this,!1),s(fl,this,void 0),o($,this,bl).call(this),s(ol,this,!1),(t=c(Y,this))==null||t.teardown(c(cl,this)),o($,this,Sl).call(this),o($,this,Cl).call(this),o($,this,wl).call(this)}function bl(){c(dl,this)!==void 0&&(clearTimeout(c(dl,this)),s(dl,this,void 0))}function xl(){let e=c(Z,this),t=()=>e===c(Z,this)?!0:(c(X,this).debug(`Ignoring a call from an other-vip provider whose cycle has already been replaced`),!1);return{refreshVideo:e=>{t()&&this.refreshVideo(e)},updateAdStartCount:()=>{t()&&this.updateAdStartCount()}}}function Sl(){let e=c(cl,this);if(s(cl,this,null),e!=null)try{typeof e.destroy==`function`?e.destroy():typeof e.dispose==`function`&&e.dispose()}catch(e){c(X,this).debug(`Error destroying the MnPlayer instance`,e)}try{var t;(t=document.getElementById(`mn-outstream-container`))==null||t.remove()}catch(e){c(X,this).debug(`Error removing the MnPlayer container`,e)}}function Cl(){let e=c(al,this);s(al,this,[]);for(let t of e)t()}function wl(){let e=c(il,this);s(il,this,[]);for(let t of e)t()}function Tl(){c(X,this).debug(`Regular VIP done`),s(ol,this,!1),s(sl,this,!0);let e=c(Y,this);if(e!=null&&e.isOnScreen()){c(X,this).debug(`Injected banner still on screen, waiting for its view time before completing`);let t=c(Z,this);e.whenViewTimeElapsed().then(()=>{if(t!==c(Z,this)){c(X,this).debug(`Injected banner view time elapsed for a cycle that has already been replaced`);return}o($,this,El).call(this)});return}o($,this,El).call(this)}function El(){if(c(Y,this)!=null)try{c(Y,this).teardown(c(cl,this))}catch(e){c(X,this).debug(`Error tearing down injected banner plugin`,e)}try{var e;c(X,this).debug(`Call handle video content resume`),(e=c(cl,this))==null||e.handleVideoContentResume()}catch(e){c(X,this).debug(`Error resuming video content`,e)}o($,this,Cl).call(this);try{typeof c(Xc,this)==`function`&&c(Xc,this).call(this)}catch(e){c(X,this).error(`Error on runOnEnd function`,e)}c(X,this).debug(`Dispatch video events`),c(rl,this)>0?window.dispatchEvent(new Event(`pubtechVideoAdServed`)):(window.dispatchEvent(new Event(`AdvVideoNotFilled`)),window.dispatchEvent(new Event(`pubtechVideoAdMissed`))),window.dispatchEvent(new Event(`pubtech_video_done`)),o($,this,wl).call(this)}function Dl(e){qs();let t=new Yt({logKey:`debug_video`,label:`VIP`}),n=g.getInstance(),r=!1;return document.querySelector(`script[src*="talkscreativity.com/assets/product/mn-player"]`)==null?Js(t,e.version,n):(t.debug(`MnPlayer script already loaded`),r=!0),i=>{var a;let o=(a=F(e.overrideVastIU))==null?i.fullNameAd+`VIP`:a,s=F(e.vtrTargeting),c=s?`%26SPurl_4time%3D${s}`:``,l=null;typeof e.injectedBannerPlugin==`function`&&(l=e.injectedBannerPlugin({adSlotLifecycleApi:i.adSlotLifecycleApi,domain:i.domain,eventDispatcher:i.eventDispatcher,logger:t,monetizationManager:i.monetizationManager,refreshApi:i.refreshApi,sizeMappingApi:i.sizeMappingApi}));let u;return{pluginName:`vip`,onDisableAds:()=>{var e;(e=document.getElementById(`mn-outstream-container`))==null||e.remove(),u==null||u.teardown()},softTeardown:e=>{if(e===`bfcache-restore`){u==null||u.teardown();return}if((u==null?void 0:u.isDeliveringAd())!==!0){u==null||u.teardown();return}return u.whenDeliveryFinished().then(()=>u==null?void 0:u.teardown())},run(a){var s,d,f,p,m,h;t.debug(`Starting vip plugin`);let g=()=>{a({type:`completed`,onVirtualNavigationHook:{position:hs,run:function(){if(u===void 0)return Promise.resolve();u.reset();let e=u.whenCycleFinished();return u.init(),e}}})},_=F(e.vconpParameter);u=new pl({adPlayLimit:(s=e.adPlayLimit)==null?1:s,enginePluginContext:i,getTargeting:e.getTargeting,injectedBannerPluginApi:l,isMnPlayerScriptLoaded:r,logger:t,otherVipConfig:e.otherVipConfig,playerConfig:e.playerConfig,playerPosition:(d=e.playerPosition)==null?`right`:d,plcmtParameter:(f=F(e.plcmtParameter))==null?2:f,refreshLimit:(p=F(e.refreshLimit))==null?5:p,refreshOnClose:(m=e.refreshOnClose)!=null&&m,runOnEnd:g,scriptLoader:n,vastIU:o,vconpParameter:_===void 0?1:_,videoTargeting:(h=e.videoTargeting)==null?`videoTargeting`:h,vtrTargeting:c}),u.init()}}}}var Ol=`:root{--side-rail-site-width:1200px;--side-rail-offset:1225px;--side-rail-top:50px;--side-rail-shift:0px;--side-rail-width:160px;--side-rail-height:620px;--side-rail-z-index:10}#O_SKIN{z-index:99999;top:0;right:0;max-width:1px!important;max-height:1px!important;position:fixed!important}.pos-left-adv{z-index:var(--side-rail-z-index);left:calc((100vw - var(--side-rail-site-width)) / 2 + var(--side-rail-offset));top:var(--side-rail-top);transform:translateY(var(--side-rail-shift));visibility:visible;float:left;opacity:1;width:var(--side-rail-width);min-width:var(--side-rail-width);max-width:var(--side-rail-width);height:var(--side-rail-height);min-height:var(--side-rail-height);max-height:var(--side-rail-height);border:0;margin:0;padding:0;transition-duration:0s;display:block;overflow:visible;position:fixed!important}.pos-right-adv{z-index:var(--side-rail-z-index);right:calc((100vw - var(--side-rail-site-width)) / 2 + var(--side-rail-offset));top:var(--side-rail-top);transform:translateY(var(--side-rail-shift));visibility:visible;float:left;opacity:1;width:var(--side-rail-width);min-width:var(--side-rail-width);max-width:var(--side-rail-width);height:var(--side-rail-height);min-height:var(--side-rail-height);max-height:var(--side-rail-height);border:0;margin:0;padding:0;transition-duration:0s;display:block;overflow:visible;position:fixed!important}.fixedFs{position:fixed!important;top:70px!important}`,kl=[`--side-rail-site-width`,`--side-rail-offset`,`--side-rail-top`,`--side-rail-shift`,`--side-rail-width`,`--side-rail-height`],Al=1539;function jl(e){if(document.body!=null){document.body.classList.add(e);return}let t=new MutationObserver(()=>{document.body!=null&&(t.disconnect(),document.body.classList.add(e))});t.observe(document.documentElement,{childList:!0})}function Ml({desktopMinWidth:e=1260,fallbackToSideRails:t=!0,onSideRailRender:n,onSkinRender:r,railHeight:i=620,railWidth:a=160,reserveSideRailsBodyClass:o=!1,scaleIframeOnPostInjection:s=!1,scrollStickyOffset:c=70,scrollStickyThreshold:l=57,setupMobileSkinContainer:d,sideRailDomClassMap:f,sideRailsBodyClass:p,sideRailsOffset:m=1225,sideRailsSiteWidth:h=1200,sideRailsSizeMapping:g,sideRailsTop:_=50,skinBodyClass:v=[],skinBodyClassToRemoveOnRefresh:y=[`tksskin`,`has-skin-adv`],skinClickElementsToRemoveOnRefresh:b=[`barra_click_top`,`barra_click_sx`,`barra_click_dx`],skinSizeMapping:x,topHeaderSelector:S=`header#header`,useNativeGoogleSideRailSlots:C=!1,useSkinSlot:T=!0}){var E,D;let O=new Yt({logKey:`debug_engine`,label:`WRAPPER_AD_PLUGIN`}),k={S_1:(E=f==null?void 0:f.S_1)==null?`pos-left-adv`:E,S_2:(D=f==null?void 0:f.S_2)==null?`pos-right-adv`:D},A=w(),te=p!=null&&F(o)&&!ee().isMobile&&F(t)&&A>=e&&A<Al;return te&&jl(p),o=>{let f=o.isMobile&&typeof d==`function`;for(let e of[`O_SKIN`,`S_1`,`S_2`])o.adSlotLifecycleApi.setAdSlotAsSelfManaged(e),o.adSlotLifecycleApi.setAdSlotAsDisposableOnVirtualNavigation(e,`spa-route`);function E(){for(let e of b){let t=document.getElementById(e);t!=null&&(t.parentElement!=null&&t.parentElement.tagName.toLowerCase()===`a`?t.parentElement.remove():t.remove())}}let D=[],ee=[],A,j,M=!1,N=!1,ne={S_1:!1,S_2:!1},P={S_1:!1,S_2:!1};function re(){var e;for(let e of D)e.unsubscribe();D=[],document.body.classList.remove(...v,...y),E(),(e=document.getElementById(`O_SKIN`))==null||e.remove()}function ie(){var e,t;if(M){A&&(window.removeEventListener(`scroll`,A),A=void 0),j&&(window.removeEventListener(`resize`,j),j=void 0),N=!1,(e=document.getElementById(`S_1`))==null||e.remove(),(t=document.getElementById(`S_2`))==null||t.remove();for(let e of kl)document.documentElement.style.removeProperty(e);p&&document.body.classList.remove(p),o.refreshApi.unscheduleSlotRefresh(`S_1`),o.refreshApi.unscheduleSlotRefresh(`S_2`);for(let e of ee)e.unsubscribe();ee=[],ne.S_1=!1,ne.S_2=!1,M=!1}}return{pluginName:`wrapperAd`,onDisableAds:()=>{re(),ie()},run(b){return u(function*(){if(o.isMobile&&(!f||!T)){b({type:`completed`,message:`Skin not applicable`});return}if(!o.isMobile&&w()<e){b({type:`completed`,message:`Not enough space for skin or side rails`});return}_e(Ol);function u(){let e=`O_SKIN`,n=document.getElementById(e);n==null&&(n=document.createElement(`div`),n.id=e,document.body.prepend(n)),n.style.cssText=`max-width: 1px; max-height: 1px; overflow: hidden;`;let i=e=>{r==null||r({context:o,isEmpty:e,logger:O}),e||(O.debug(`O_SKIN loaded successfully`),document.body.classList.add(...v),ie());for(let e of D)e.unsubscribe();D=[]};D=[o.eventDispatcher.subscribe({eventName:Ke,subscriberName:`wrapperAdSkinUnfilledSubscriber`,callback:e=>{e.adUnitKey===`O_SKIN`&&i(!0)}}),o.eventDispatcher.subscribe({eventName:qe,subscriberName:`wrapperAdSkinFilledSubscriber`,callback:e=>{e.adUnitKey===`O_SKIN`&&i(!1)}})],o.monetizationManager.sell({adUnitKey:e,divId:e,overrideAdUnitSizes:x},{useClientSideRenderFallback:!o.isMobile,excludeFromRefresh:!0,callbacks:{onUnfilled:()=>{var e;O.debug(`O_SKIN unfilled, executing fallback routine`),document.body.classList.remove(...v,...y),te&&document.body.classList.add(p),E(),(e=document.getElementById(`O_SKIN`))==null||e.remove(),F(t)&&!o.isMobile&&se()}}})}function ae(){N||(N=!0,A=()=>{let e=document.querySelector(S),t=e?e.getBoundingClientRect():null,n=document.getElementById(`S_1`),r=document.getElementById(`S_2`),i=(e,t)=>{let n=document.documentElement.style;n.getPropertyValue(e)!==t&&n.setProperty(e,t)};i(`--side-rail-top`,`${c}px`),t&&t.bottom<l?(n==null||n.classList.add(`fixedFs`),r==null||r.classList.add(`fixedFs`),i(`--side-rail-shift`,`0px`)):(n==null||n.classList.remove(`fixedFs`),r==null||r.classList.remove(`fixedFs`),i(`--side-rail-shift`,`${(t?t.bottom+30:_)-c}px`))},j=()=>{(ne.S_1||ne.S_2)&&p&&(w()<Al?document.body.classList.add(p):document.body.classList.remove(p))},window.addEventListener(`scroll`,A,{passive:!0}),window.addEventListener(`resize`,j),j())}function oe(e){let t=document.getElementById(e);t==null&&(t=document.createElement(`div`),t.id=e,t.className=k[e],document.body.prepend(t));let n=document.documentElement.style;n.setProperty(`--side-rail-site-width`,`${h}px`),n.setProperty(`--side-rail-offset`,`${m}px`),n.setProperty(`--side-rail-width`,`${a}px`),n.setProperty(`--side-rail-height`,`${i}px`);let r={adUnitKey:e,divId:e,refreshCount:0};o.monetizationManager.sell(r,{excludePrebid:!1,excludeFromRefresh:!1,callbacks:{onGptFailure:()=>{O.debug(`Pubtech side rail ${e} failed to render`)}}}),s&&pr({adUnitSizeConfig:{desktop:{[e]:{containerWidth:a}},tablet:{[e]:{containerWidth:a}},mobile:{[e]:{containerWidth:a}}},logger:O,isOnPostInjection:!0,device:o.device}),ae(),A==null||A()}function se(){if(o.isMobile&&M)return;if(!g){o.logger.warn(`Side rails size mapping is not provided. Side rails will not be set up`);return}o.sizeMappingApi.addSizeMaps(`S_1`,g),o.sizeMappingApi.addSizeMaps(`S_2`,g);for(let n of[`S_1`,`S_2`]){var e,t;C&&((e=window.googletag)==null||(e=e.enums)==null||(e=e.OutOfPageFormat)==null?void 0:e.RIGHT_SIDE_RAIL)!=null&&((t=window.googletag)==null||(t=t.enums)==null||(t=t.OutOfPageFormat)==null?void 0:t.LEFT_SIDE_RAIL)!=null?(O.debug(`wrapperAd plugin: Sell Google side rail for ${n}`),P[n]=!0,o.monetizationManager.sell({adUnitKey:n,divId:n,slotType:n===`S_1`?`outOfPageRightSideRail`:`outOfPageLeftSideRail`},{excludePrebid:!0,excludeFromRefresh:!0,callbacks:{onGptFailure:()=>{O.debug(`Google side rail ${n} could not be defined, waiting for the unfilled event to fall back`)}}})):oe(n)}let r=(e,t)=>{if(t&&P[e]){O.debug(`Google side rail ${e} empty, falling back to pubtech side rail`),n==null||n({adUnitKey:e,context:o,isEmpty:!0,isGoogleSideRail:!0,logger:O}),P[e]=!1,oe(e);return}n==null||n({adUnitKey:e,context:o,isEmpty:t,isGoogleSideRail:P[e],logger:O}),ne[e]=!t,j&&j()};ee=[o.eventDispatcher.subscribe({eventName:Ke,subscriberName:`wrapperAdSideRailsUnfilledSubscriber`,callback:e=>{e.adUnitKey!==`S_1`&&e.adUnitKey!==`S_2`||r(e.adUnitKey,!0)}}),o.eventDispatcher.subscribe({eventName:qe,subscriberName:`wrapperAdSideRailsFilledSubscriber`,callback:e=>{e.adUnitKey!==`S_1`&&e.adUnitKey!==`S_2`||r(e.adUnitKey,!1)}})],M=!0}if(T){if(f)try{yield d==null?void 0:d({context:o,logger:O})}catch(e){O.error(`Error in setupMobileSkinContainer`,e)}u()}else se();b({type:`completed`,onVirtualNavigationHook:{position:hs,run:function(e){e!==`spa-route`&&e!==`bfcache-restore`||(O.debug(`${e} detected, rebuilding skin or side rails`),re(),ie(),te&&document.body.classList.add(p),T?u():se())}}})})()}}}}function Nl(e){var t,n,r,i;(t=window).pbstck!=null||(t.pbstck={}),(n=window.pbstck).sdk!=null||(n.sdk={});let a=(i=(r=window.pbstck.sdk)[e])==null?r[e]={}:i;a.g=`Pubstack`,a.q!=null||(a.q=[]),window.Pubstack={cmd:function(...e){var t,n;(t=a.q)==null||t.push([`cmd`,e]),((n=a.p)==null?[]:n).forEach(t=>{t([`cmd`,e])})}};let o=document.createElement(`script`);o.id=`pubstack`,o.type=`text/javascript`,o.async=!0,o.setAttribute(`data-cfasync`,`false`),o.src=`https://boot.pbstck.com/v1/tag/${e}`,document.head.appendChild(o)}function Pl(){var e,t,n,r;let i=`km-h2uBS40wpYfw6fm649BUwy-g`;(e=window).confiant!=null||(e.confiant={});let a=(n=(t=window.confiant)[i])==null?t[i]={}:n;((r=a.clientSettings)==null?a.clientSettings={}:r).prebidNameSpace=`pubtech_pbjs`;let o=document.createElement(`script`);o.id=`confiant`,o.type=`text/javascript`,o.async=!0,o.setAttribute(`data-cfasync`,`false`),o.src=`https://cdn.confiant-integrations.net/${i}/gpt_and_prebid/config.js`,document.head.appendChild(o)}var Fl=`https://stg-floor-provider.pubtech.ai`;function Il({device:e,websiteId:t}){if(typeof fetch!=`function`)return null;let n=`${Fl}/${t}_${e}.json`,r=performance.now(),i=fetch(n,{credentials:`omit`});return i.catch(()=>{}),{device:e,response:i,startedAt:r,url:n}}var Ll=`__engine_prebid_ready__`,Rl=`https://ads.talkscreativity.com/assets/publisher/hdblogit/prebid.kzg6Ub9O.js`,zl=3;function Bl(e={}){let t=e.dynamicFloors==null?null:Il({device:D(),websiteId:e.dynamicFloors.websiteId}),n={attempt:0,lastError:`UNKNOWN`},r=null;return new Promise((e,i)=>{let a=n=>{if(r!=null&&(r.onerror=null),!Wl(n)){i(Error(`[Engine] Prebid provider received via event is not a function`));return}e(t==null?n.detail:Vl(n.detail,t))},o=()=>{n.attempt+=1;let e=Kl();r=e,e.onerror=t=>{if(n.lastError=Hl(t),e.parentNode!=null&&e.parentNode.removeChild(e),n.attempt>=zl){document.removeEventListener(Ll,a),i(Error(`[Engine] Failed to load prebid bundle: `+e.src+` - `+n.lastError+` (attempts: `+n.attempt+`)`));return}if(n.lastError===`ERR_NET_OFFLINE`){Gl().then(o);return}o()},document.head.appendChild(e)};document.addEventListener(Ll,a,{once:!0}),o()})}function Vl(e,t){return n=>e(L(L({},n),{},{dynamicFloorsRequest:t}))}function Hl(e){let t=String(e);return(e instanceof Event?e.target:null)instanceof HTMLScriptElement||(t=`ERR_NO_SCRIPT_ELEMENT`),navigator.onLine||(t=`ERR_NET_OFFLINE`),t}function Ul(e){return typeof e==`function`}function Wl(e){return e instanceof CustomEvent&&Ul(e.detail)}function Gl(){return navigator.onLine?Promise.resolve():new Promise(e=>{window.addEventListener(`online`,()=>{e()},{once:!0})})}function Kl(){let e=document.createElement(`script`);return e.src=Rl,e.async=!0,e}var ql=Bl();Pl(),Nl(`84ea2688-4a9a-45da-bd34-cc107e462951`);var{isDesktop:Jl,isMobile:Yl}=ee(),Xl=Number(se(`ad_solo`))===1,Zl=window.location.pathname.includes(`/offerte`),Ql=window.location.pathname.includes(`/schede-tecniche`),$l=window.location.pathname===`/`,eu=fe(`google_preview`),tu;window.location.href.indexOf(`schede-tecniche`)>-1&&(tu=`schede-tecniche`),window.location.href.indexOf(`/offerte/`)>-1&&(tu=`offerte`),tu!=null&&(window.ads_targeting_map={category:tu});function nu(e){var t,n;(t=window.googletag)==null||(n=t.pubads)==null||n.call(t).setTargeting(`ad_solo`,`on`),e.sizeMappingApi.clearSizeMapping(),e.sizeMappingApi.setAdUnitSizes(`O_SKIN`,[[1,1]])}var ru=!Xl&&!Ql;function iu(){var e,t,n,r,i,a;let o=(e=window.googletag)==null||(t=e.pubads)==null?void 0:t.call(e);if(o!=null){for(let e of o.getSlots())if(e.getSlotElementId()!==`O_INTERSTITIAL`){var s;(s=window.googletag)==null||s.destroySlots([e])}(n=document.getElementById(`O_SKIN`))==null||n.replaceChildren(),Yl&&((r=document.getElementById(`SKIN_CONT_MOB`))==null||r.replaceChildren()),(i=document.getElementById(`inScreen`))==null||i.remove(),(a=document.getElementById(`floorad-container`))==null||a.remove(),ru=!1}}function au(e){let t=document.querySelectorAll(`.pubtech-adv-incontent`);if(t.length<=1)return!1;e.logger.debug(`Slot container found`);let n=1;for(let e=0;e<t.length&&!(n>5);e++)e%2!=0&&(t[e].appendChild(I(`C_${n}`)),n++);return!0}function ou(e){let t=0,n=document.querySelector(`.pubtech-adv-home`);n!=null&&(n.appendChild(I(`D_4`)),t++),document.addEventListener(`hpSectionLoaded`,function(){let n=document.querySelectorAll(`.pubtech-adv-home`);if(n.length===0)return;let r=n[n.length-1],i=e.sizeMappingApi.getAdUnitSizes(`D_4`);if(t===0)r.appendChild(I(`D_4`)),e.lazyLoader.register({adUnitKey:`D_4`,divId:`D_4`,overrideAdUnitSizes:i});else{let n=`D_4_${t}`;r.appendChild(I(n)),e.lazyLoader.register({adUnitKey:`D_4`,divId:n,overrideSlotName:`D_4`,overrideAdUnitSizes:i})}t++})}function su(e){let t=[[990,90],[990,70],[970,90],[728,90]],n=document.getElementById(`vid_container`);n!=null&&(be(n,I(`C_1`)),e.sizeMappingApi.setAdUnitSizes(`C_1`,t));let r=document.getElementById(`important_notizes`);r!=null&&(be(r,I(`C_2`)),e.sizeMappingApi.setAdUnitSizes(`C_2`,t));let i=document.getElementById(`listproducts2`);i!=null&&ye(i,I(`D_2`));let a=document.querySelector(`div#toload section.modelos`);a!=null&&a.appendChild(I(`D_3`)),ou(e)}function cu(e){let t=document.getElementById(`banner4_300600`);t!=null&&t.appendChild(I(`D_2`));let n=document.querySelectorAll(`div.pubtech-adv-sidebar`),r=3;for(let e of n)e.appendChild(I(`D_${r}`)),r++;if(!au(e)){if(e.logger.debug(`Slot container not found, auto slot creation`),document.querySelectorAll(`div.content div.textblock > ul li`).length>document.querySelectorAll(`div.content div.textblock p`).length){let t=document.querySelector(`div.textblock p`);t!=null&&ye(t,I(`C_1`)),Ne({elementContainer:`section#notice_content > div.content div.textblock ul`,elementsList:[`C_2`,`C_3`,`C_4`,`C_5`],frequency:3,logger:e.logger,maxNumberOfElements:3,minParagraphLength:10,sizeMappingApi:e.sizeMappingApi,subElementType:`li`});return}if(document.querySelector(`section#notice_content > div.content div.textblock`)!=null){Ne({elementContainer:`section#notice_content > div.content div.textblock`,frequency:3,logger:e.logger,maxNumberOfElements:5,minParagraphLength:10,sizeMappingApi:e.sizeMappingApi,skipLastParagraph:!0});return}document.querySelector(`section.big_notices article.review_list_1`)==null&&Ne({elementContainer:`section.two_column.floating_tiles_holder > section.big_notices`,frequency:3,isSubElementDirectDescendant:!1,logger:e.logger,maxNumberOfElements:5,minParagraphLength:10,sizeMappingApi:e.sizeMappingApi,skipLastParagraph:!0,subElementType:`article`})}}function lu(e){if($l){let e=document.querySelector(`div.branded_content`);e!=null&&ye(e,I(`T_2`));let t=document.querySelectorAll(`div.banner_list_container.banner`);for(let e=0;e<t.length;e++)t[e].appendChild(I(`C_${e+1}`));return}let t=document.getElementById(`div-gpt-ad-MPU_Top`);t!=null&&t.appendChild(I(`T_2`)),!au(e)&&(e.logger.debug(`Slot container not found, auto slot creation`),Ne({elementContainer:`div.news-blocks div.block-padding`,frequency:3,logger:e.logger,maxNumberOfElements:5,minParagraphLength:10,sizeMappingApi:e.sizeMappingApi}))}function uu(e){var t;if((t=document.getElementById(`pubtech-cmp`))==null||t.remove(),Xl||document.addEventListener(`adSoloDelivered`,()=>{ce(`ad_solo`,`1`,5),nu(e),iu(),e.monetizationManager.clearAdSlotState(`O_SKIN`),e.monetizationManager.sell({adUnitKey:`O_SKIN`,divId:`O_SKIN`,overrideAdUnitSizes:[[1,1]]})}),!Yl){let e=document.getElementById(`banner1_720`);e!=null&&e.appendChild(I(`T_1`))}let n=document.getElementById(`banner3_300600`);if(n!=null&&n.appendChild(I(`D_1`)),Zl)e.logger.debug(`Page offerte => stop adding formats`);else{Yl?lu(e):$l?su(e):cu(e);let t=document.getElementById(`comments`);t!=null&&be(t,I(`B_1`));let n=document.getElementById(`banner_1`);n!=null&&n.appendChild(I(`B_2`))}Xl&&nu(e)}var du={closeButton:{enabled:!0,position:`top-right`,showAfter:15,showAfterAdComplete:!0,text:`X`},startVideoContentWithVolume:!1,style:{color:`#004a94`,"inslide-offset-bottom":`120px`}};xs({adInventoryConfig:{advLabelText:`advertisement`},compilePlugins:{wrapperAd:{getPluginInstance:Ml({desktopMinWidth:768,fallbackToSideRails:!1,skinSizeMapping:Jl&&!Xl?[[1,1],[1800,1e3]]:[[1,1]]})},preroll:{getPluginInstance:kc({playerConfig:du,refreshLimit:3,version:`prod`})},vip:{getPluginInstance:Dl({playerConfig:function(){var e=u(function*(){let e=yield Se(`444`,void 0,!0);return e==null?{}:L({poster:e.thumbnailUrl,source:e.videoUrl},du)});return function(){return e.apply(this,arguments)}}(),refreshLimit:4,version:`prod`,vtrTargeting:()=>document.querySelector(`head[prefix*="article:"]`)==null?`Maybe_below_60s`:`Maybe_above_60s`}),waitFor:[`preroll`],getShouldRun:({pluginOutcomes:e})=>{if(Xl||Zl||Ql)return Promise.resolve(!1);let t=e.preroll;return t?Promise.resolve(t.outcome===`skipped`||t.deliveryStatus===`no-fill`):Promise.resolve(!0)}},interstitial:{getPluginInstance:Vs({interstitialCappingMinutes:60,interstitialDelay:Zl&&Yl?30:10,providersOrderedExecution:[Ks({sizeMapping:L(L({},Zl?{}:{desktop:{O_INTERSTITIAL:[[1,2]]}}),{},{mobile:{O_INTERSTITIAL:[[300,600],[320,480],[300,250],[1,2]]}})}),Gs()]}),waitFor:[`preroll`,`vip`],getShouldRun:()=>Promise.resolve(!Xl)},floorAd:L(L({getPluginInstance:Ps({closeButton:!Yl,scaleIframeOnPostInjection:!Yl,sizeMapping:{desktop:{F_D:[[990,90],[990,70],[970,90],[728,90],[320,100],[320,75],[300,100],[300,75],`fluid`]},tablet:{F_D:[[990,90],[990,70],[970,90],[728,90],[320,100],[320,75],[300,100],[300,75],`fluid`]},mobile:{F_M:[[375,100],[320,100],[320,75],[320,50],[300,100],[300,75],[300,50],[1,1]]}}})},Yl&&!eu?{waitFor:[`interstitial`]}:{}),{},{getShouldRun:()=>Xl||Zl?Promise.resolve(!1):Yl?Promise.resolve(!0):ru?new Promise(e=>{window.addEventListener(`scroll`,function t(){window.scrollY<200||(window.removeEventListener(`scroll`,t),e(ru))})}):Promise.resolve(!1)})},customFloorModelVersion:`444_3`,customFloorPriceValues:{"*|banner|*|*|*|true":.1,"*|video|*|*|*|true":.8,"O_INTERSTITIAL|banner|*|*|*|true":.7},execution:{disableAds:()=>document.querySelector(`.no-adv`)!=null||[`/guide`,`/new_files/ajax/pricelist.php`].some(e=>window.location.pathname.includes(e)),waitDomReady:!0},googlePublisherTagProvider:Ot({prefixFullNameAd:`/21832376849,23213063488/hdblogit/hdblogit_`}),hooks:{beforeFlow:uu},prebidAdapterProvider:ql,sizeMapping:{desktop:{T_1:[[990,90],[990,70],[970,250],[970,90],[728,90]],T_2:[[300,250]],C_1:[[468,60],[320,100],[320,50],[300,250],[300,100],[300,50],[250,250],[200,200],`fluid`],C_2:[[468,60],[320,100],[320,50],[300,250],[300,100],[300,50],[250,250],[200,200]],C_3:[[468,60],[320,100],[320,50],[300,250],[300,100],[300,50],[250,250],[200,200],`fluid`],C_4:[[468,60],[320,100],[320,50],[300,250],[300,100],[300,50],[250,250],[200,200]],C_5:[[468,60],[320,100],[320,50],[300,250],[300,100],[300,50],[250,250],[200,200],`fluid`],D_1:[[300,600],[300,250],[250,250],[200,200]],D_2:[[300,600],[300,250],[250,250],[200,200]],D_3:[[300,600],[300,250],[250,250],[200,200]],D_4:[[300,600],[300,250],[250,250],[200,200]],B_1:[[990,90],[990,70],[970,90],[728,90]],B_2:[[990,90],[990,70],[970,90],[728,90]]},tablet:{T_1:[[990,90],[990,70],[970,90],[728,90]],T_2:[[300,250]],C_1:[[468,60],[320,100],[320,50],[300,250],[300,100],[300,50],[250,250],[200,200],`fluid`],C_2:[[468,60],[320,100],[320,50],[300,250],[300,100],[300,50],[250,250],[200,200]],C_3:[[468,60],[320,100],[320,50],[300,250],[300,100],[300,50],[250,250],[200,200],`fluid`],C_4:[[468,60],[320,100],[320,50],[300,250],[300,100],[300,50],[250,250],[200,200]],C_5:[[468,60],[320,100],[320,50],[300,250],[300,100],[300,50],[250,250],[200,200],`fluid`],D_1:[[300,600],[300,250],[250,250],[200,200]],D_2:[[300,250],[250,250],[200,200]],D_3:[[300,250],[250,250],[200,200]],D_4:[[300,600],[300,250],[250,250],[200,200]],B_1:[[990,90],[990,70],[970,90],[728,90]],B_2:[[990,90],[990,70],[970,90],[728,90]]},mobile:{T_1:[[320,100],[320,50],[300,250],[300,100],[300,50],[250,250],[200,200]],T_2:[[336,280],[320,100],[320,50],[300,300],[300,250],[300,100],[300,50],[250,250],[200,200]],C_1:[[336,280],[320,100],[320,50],[300,600],[300,300],[300,250],[300,100],[300,50],[250,250],[200,200],`fluid`],C_2:[[336,280],[320,100],[320,50],[300,300],[300,250],[300,100],[300,50],[250,250],[200,200]],C_3:[[336,280],[320,100],[320,50],[300,600],[300,300],[300,250],[300,100],[300,50],[250,250],[200,200],`fluid`],C_4:[[336,280],[320,100],[320,50],[300,300],[300,250],[300,100],[300,50],[250,250],[200,200]],C_5:[[336,280],[320,100],[320,50],[300,600],[300,300],[300,250],[300,100],[300,50],[250,250],[200,200],`fluid`],C_6:[[336,280],[320,100],[320,50],[300,300],[300,250],[300,100],[300,50],[250,250],[200,200]],C_7:[[336,280],[320,100],[320,50],[300,600],[300,300],[300,250],[300,100],[300,50],[250,250],[200,200],`fluid`],C_8:[[336,280],[320,100],[320,50],[300,300],[300,250],[300,100],[300,50],[250,250],[200,200]],C_9:[[336,280],[320,100],[320,50],[300,600],[300,300],[300,250],[300,100],[300,50],[250,250],[200,200],`fluid`],C_10:[[336,280],[320,100],[320,50],[300,300],[300,250],[300,100],[300,50],[250,250],[200,200]],D_1:[[300,250],[250,250],[200,200]],D_2:[[300,250],[250,250],[200,200]],D_3:[[300,250],[250,250],[200,200]],D_4:[[300,250],[250,250],[200,200]],B_1:[[336,280],[320,100],[320,50],[300,300],[300,250],[300,100],[300,50],[250,250],[200,200]],B_2:[[336,280],[320,100],[320,50],[300,300],[300,250],[300,100],[300,50],[250,250],[200,200]]}},website:{contentTaxonomy:{vertical:[`596`]},fullNameAd:`/21832376849,23213063488/hdblogit/hdblogit_`,sellerId:`200209`,siteCategory:[`tech`],slug:`hdblogit`,websiteDomain:`hdblog.it`,websiteId:444}})})(); //# sourceMappingURL=init.js.map