(function(){var e=document.createElement(`style`);e.textContent=`: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);var t=`https://cdn.adkaora.space/talksmedia/generic/prod/adk-init.js`,n=`adkInteractionsEvents`,r=15e3;function i({isEnabledOnDesktop:e=!1,eventFallback:i=!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(a=>{var o;e.logger.debug(`Loading AdKaora interstitial`),window.adkaoraCanShowAds=!0;let s=document.createElement(`div`);s.className=`adk-slot adk-interstitial`;for(let e of[`adk_interstitial0`,`adk_interstitial`,`adk_interstitial_r`]){let t=document.createElement(`div`);t.id=e,s.appendChild(t)}document.body.appendChild(s);let c,l=!1,u=e=>{l||(l=!0,window.removeEventListener(n,d),c!=null&&clearTimeout(c),(!(`served`in e)||e.served!==!0)&&s.remove(),a(e))};function d(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`),u({served:!1,empty:!0});return}(n.isEmpty===!1||n.canBeDelivered===!0)&&(e.logger.debug(`AdKaora interstitial served`),e.setCappingCookie(),u({served:!0}))}}window.addEventListener(n,d);let f=document.createElement(`script`);f.src=t,f.setAttribute(`data-version`,`v3`),f.type=`text/javascript`,f.defer=!0,f.onload=()=>{i&&(l||(c=setTimeout(()=>{e.logger.debug(`AdKaora event timeout, advancing chain`),u({served:!1,empty:!0})},r)))},f.onerror=()=>{e.logger.debug(`AdKaora script failed to load`),u({served:!1,error:`AdKaora script failed to load`})},((o=document.head)==null?document.getElementsByTagName(`head`)[0]:o).appendChild(f)})}}}function a(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function o(e,t,n){a(e,t),t.set(e,n)}function s(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 c(e,t,n){return e.set(s(e,t),n),n}function l(e,t){return e.get(s(e,t))}var u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=class e{constructor(){var e;o(this,u,void 0),o(this,d,new Set),o(this,f,new Map),o(this,p,new Set),c(u,this,(e=document.head)==null?document.getElementsByTagName(`head`)[0]:e)}static getInstance(){return h._==null&&(h._=new e),h._}loadScript(e){let{appendToBody:t=!1,async:n=!0,onScriptLoaded:r,scriptTag:i,scriptUrl:a}=e;if(a.length===0)return;if(l(d,this).has(a)){typeof r==`function`&&this.onReadyScript(i,r);return}let o=document.createElement(`script`);o.type=`text/javascript`,o.async=n,o.setAttribute(`data-cfasync`,`false`),o.src=a,o.onload=()=>{var e;l(p,this).add(i),typeof r==`function`&&r();let t=(e=l(f,this).get(i))==null?[]:e;for(let e of t)e();l(f,this).delete(i)},!t||document.body==null?l(u,this).appendChild(o):document.body.appendChild(o),l(d,this).add(a)}onReadyScript(e,t){if(l(p,this).has(e)){t();return}let n=l(f,this).get(e);if(n!=null){n.push(t);return}l(f,this).set(e,[t])}},h={_:null},g=0,_=0,v=!0;function y(){v=!0}window.addEventListener(`resize`,y,{passive:!0}),window.addEventListener(`orientationchange`,y,{passive:!0});function b(){v&&(g=window.innerWidth,_=window.innerHeight,v=!1)}function x(){return b(),g}function S(){return b(),_}function C(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 w(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){C(a,r,i,o,s,`next`,e)}function s(e){C(a,r,i,o,s,`throw`,e)}o(void 0)})}}var T={DESKTOP:`desktop`,MOBILE:`mobile`,TABLET:`tablet`};function E(){let e=x();return e>=1025?T.DESKTOP:e<1025&&e>=768?T.TABLET:T.MOBILE}function ee(){return x()>=768?T.DESKTOP:T.MOBILE}function D(){return document.readyState===`interactive`||document.readyState===`complete`}function te(e){if(D())return e(),()=>{};function t(){e()}return document.addEventListener(`DOMContentLoaded`,t),()=>{document.removeEventListener(`DOMContentLoaded`,t)}}function ne(){return window.location.pathname.split(`/`).filter(Boolean)}function O(){let e={};return new URLSearchParams(window.location.search).forEach((t,n)=>{e[n]=t}),e}function re(){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 k(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 ie(){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=ae(e))==null?n:i}else{var a;n=(a=ae(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 ae(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 oe(e){return typeof e==`function`}function se(e){return typeof e==`object`&&!!e&&`then`in e&&typeof e.then==`function`}function A(e){return oe(e)?e():e}function ce(e){return le.apply(this,arguments)}function le(){return le=w(function*(e){return oe(e)?e():(se(e),e)}),le.apply(this,arguments)}function ue(e){let t=window.document.cookie.match(`(^|;)\\s*`+e+`\\s*=\\s*([^;]*)\\s*(;|$)`);return t?decodeURIComponent(t[2]):null}function de(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=${fe(window.location.hostname)}`,s=r!=null&&r.toLowerCase()==`none`?`; Secure`:``;window.document.cookie=`${e}=${encodeURIComponent(t)}${i}; path=/${o}${r?`; SameSite=${r}`:``}${s}`}function fe(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 pe(e){return e?(e^me()>>e/4).toString(16):`10000000-1000-4000-8000-100000000000`.replace(/[018]/g,pe)}function me(){return window&&window.crypto&&typeof window.crypto.getRandomValues==`function`?crypto.getRandomValues(new Uint8Array(1))[0]%16:Math.random()*16}function he(e){return!!new URLSearchParams(window.location.search).get(e)}function ge(e){return!!_e(e)||he(e)}function _e(e){try{return window.localStorage.getItem(e)}catch(t){return console.error(`Error while getting ${e} from local storage`,t),null}}function ve(e){return new Promise(t=>{e.getState()!==`prerendering`&&t(),e.on(`stateChange`,function n(r){r!==`prerendering`&&(e.on(`stateChange`,n),t())})})}function ye(e){if(e!==void 0)return e.language;throw Error(`Navigator is not defined`)}function be(e){let t=document.createElement(`style`);t.appendChild(document.createTextNode(e)),document.head.appendChild(t)}function xe(){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`});se(e)&&e.then(void 0,r);return}}n=setTimeout(r,0),window.requestAnimationFrame(()=>{setTimeout(()=>{r()},0)})})}function Se(){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 Ce(e,t){we(e,t,!1)}function we(e,t,n){if(!(e==null||e.parentNode==null)){if(n){e.parentNode.insertBefore(t,e.nextSibling);return}e.parentNode.insertBefore(t,e)}}function Te(){try{typeof window.ptecpre==`object`&&window.ptecpre!==null&&Array.isArray(window.ptecpre.queue)||(window.ptecpre={queue:[]})}catch(e){console.error(e)}}function Ee(){Te();let e=window.ptecpre.queue;Array.isArray(e)&&e.forEach(function(e){e()}),Me(window.ptecpre)}function De(){try{typeof window.ptec==`object`&&window.ptec!==null&&Array.isArray(window.ptec.queue)||(window.ptec={queue:[]})}catch(e){console.error(e)}}function Oe(e){De();let t=window.ptec.queue;Array.isArray(t)&&t.forEach(function(t){t(e)}),Me(window.ptec,e)}var ke={queue:[]};function Ae(e){ke.queue.push(e)}function je(e){let t=ke.queue;Array.isArray(t)&&t.forEach(function(t){t(e)}),Me(ke,e)}function Me(e,t=null){Object.isFrozen(e)||(e.queue={push:e=>e(t)},Object.freeze(e))}function Ne(e,t=E()){let n=[];if(e==null)return n;let r=Pe(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 Pe(e,t){if(e.hasAttribute(`data-size-`+t)&&e.getAttribute(`data-size-`+t)!==``)return`data-size-`+t;if(t===T.TABLET&&e.hasAttribute(`data-size-`+T.DESKTOP)&&e.getAttribute(`data-size-`+T.DESKTOP)!==``)return`data-size-`+T.DESKTOP;if(e.hasAttribute(`data-size`)&&e.getAttribute(`data-size`)!==``)return`data-size`}function Fe(e){"@babel/helpers - typeof";return Fe=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Fe(e)}function Ie(e,t){if(Fe(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Fe(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Le(e){var t=Ie(e,`string`);return Fe(t)==`symbol`?t:t+``}function Re(e,t,n){return(t=Le(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;t0)}function Ve(e){if(Be(e.override))return e.override;let t=e.getAdUnitSizes(e.divId);return Be(t)?t:e.getAdUnitSizes(e.adUnitKey)}function He(e){var t,n,r;let i={desktop:j({},(t=e==null?void 0:e.desktop)==null?{}:t),mobile:j({},(n=e==null?void 0:e.mobile)==null?{}:n),tablet:j({},(r=e==null?void 0:e.tablet)==null?{}:r)},a=E();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 M={Prebid:`prebid`,Gpt:`gpt`,PrebidClientRender:`prebid-client-render`,Fallback:`fallback`},N={Success:`success`,Continue:`continue`,Failure:`failure`,Unfilled:`unfilled`},Ue=`slot:unfilled`,We=`slot:filled`,Ge=`slot:onLoad`,Ke=`slot:renderEnded`,qe=`slot:responseReceived`,Je=`auction:phaseCompleted`,Ye=`batchSelling:dominationDetected`,Xe=function(e){return e[e.NoDefinableSlot=0]=`NoDefinableSlot`,e[e.FunctionalError=1]=`FunctionalError`,e}({}),Ze=`pt1-ppid-v2`;function Qe(){let e=ue(Ze);return(!e||e.length===0)&&(e=pe(),de(Ze,e,1440*365)),e}function $e(e){e.setPublisherProvidedId(Qe())}function et(){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 tt(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`}function P(e,t){a(e,t),t.add(e)}window.googletag=window.googletag||{cmd:[]};var nt=`ptechsdepth`,rt=[`active`,`passive`],it=`Google Publisher Tag library was overridden or is not available`;function at(){let e=window.googletag;if(e==null)throw Error(it);return e}function ot(e){var t;let n=at();if(n.apiReady)return e();if(typeof((t=n.cmd)==null?void 0:t.push)!=`function`)throw Error(it);n.cmd.push(()=>{e()})}var st=class extends Error{constructor(e){super(e),this.name=`NoDefinableSlotError`}};function ct(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&&m.getInstance().loadScript({scriptTag:`securepubads`,scriptUrl:t})}return e.fetchGoogleTag&&m.getInstance().loadScript({scriptTag:`googletag`,scriptUrl:`https://www.googletagservices.com/tag/js/gpt.js`}),t=>{var n;return new gt(j(j({},e),{},{prefixFullNameAd:(n=t.overridePrefixFullNameAd)==null?e.prefixFullNameAd:n,siteCategory:t.siteCategory,contextManager:t.contextManager,eventDispatcher:t.eventDispatcher,consentReader:t.consentReader,divIdToAdUnitKeyMapping:t.divIdToAdUnitKeyMapping,getAdUnitSizes:t.getAdUnitSizes}))}}var lt=new WeakMap,ut=new WeakMap,dt=new WeakMap,ft=new WeakMap,pt=new WeakMap,mt=new WeakMap,ht=new WeakMap,F=new WeakSet,gt=class{constructor({divIdToAdUnitKeyMapping:e,disableInitialLoad:t=!0,getAdUnitSizes:n,prefixFullNameAd:r,siteCategory:i,contextManager:a,eventDispatcher:u,globalTargetingTransformer:d,slotTargetingTransformer:f,personalizedAds:p,consentReader:m}){P(this,F),o(this,lt,void 0),o(this,ut,void 0),o(this,dt,void 0),o(this,ft,void 0),o(this,pt,void 0),o(this,mt,new Set),o(this,ht,void 0),c(ht,this,e),c(dt,this,n),c(lt,this,r),c(ft,this,d),c(pt,this,f),c(ut,this,a),a.on(`contextUpdated`,({context:e,navigationContext:t})=>{s(F,this,Ct).call(this,{siteCategory:i,context:e,navigationContext:t})}),a.on(`visibilityChanged`,e=>{ot(()=>{window.googletag.setConfig({targeting:{tab_visible:rt.includes(e)?`yes`:`no`}})})});let h=a.getCurrentContext();s(F,this,Ct).call(this,{siteCategory:i,context:h,navigationContext:h.navigationContext}),ot(()=>{window.googletag.setConfig({singleRequest:!0,disableInitialLoad:t,centering:!0,autoRefresh:{backForwardCache:!1}}),window.googletag.pubads().addEventListener(`slotOnload`,e=>{let t={EVENT_NAME:Ge,adUnitKey:e.slot.getSlotElementId(),adProvider:`gpt`};u.dispatch(t)}),window.googletag.pubads().addEventListener(`slotResponseReceived`,e=>{let t=e.slot.getSlotElementId(),n=l(ht,this)&&l(ht,this)[t]?l(ht,this)[t]:t,r=e.slot.getResponseInformation(),i=j(j({EVENT_NAME:qe,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}:{});u.dispatch(i)}),window.googletag.pubads().addEventListener(`slotRenderEnded`,e=>{let t=e.slot.getSlotElementId(),n=j(j({EVENT_NAME:Ke,divId:t,adUnitKey:l(ht,this)&&l(ht,this)[t]?l(ht,this)[t]:t,isEmpty:e.isEmpty,adProvider:`gpt`},typeof e.lineItemId==`number`?{lineItemId:e.lineItemId}:{}),typeof e.creativeId==`number`?{creativeId:e.creativeId}:{});u.dispatch(n)}),p!==void 0&&window.googletag.pubads().setPrivacySettings({nonPersonalizedAds:!p}),$e(window.googletag.pubads()),window.googletag.enableServices()}),m&&m.onConsentReleased({onConsentCallback:e=>{ot(()=>{window.googletag.pubads().setPrivacySettings({nonPersonalizedAds:!e.personalizedAds})})}})}getPrefixFullNameAd(){return l(lt,this)}hasDefinedSlot(e){return l(mt,this).has(e)}destroySlot(e){s(F,this,bt).call(this,()=>{let t=googletag.pubads().getSlots().find(t=>t.getSlotElementId()===e);t!=null&&googletag.destroySlots([t]),l(mt,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 s(F,this,bt).call(this,()=>{let t=[];for(let n of e)t.push(s(F,this,vt).call(this,n));return t})}refreshSlot(e){return this.refreshSlots([e]).then(e=>e[0])}refreshSlots(e){return s(F,this,bt).call(this,()=>{let t=[];for(let n of e){let e=s(F,this,yt).call(this,n);if(e==null)throw new st(`No defined slot found for adUnitKey: `+n.adUnitKey+` and divId: `+n.divId);t.push(e)}return s(F,this,_t).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 s(F,this,bt).call(this,()=>{let t=[];for(let n of e)t.push(s(F,this,vt).call(this,n));return s(F,this,_t).call(this,t)})}};function _t(e){let t=Array.from(e);return window.googletag.pubads().refresh(t),t}function vt({adUnitKey:e,divId:t,refreshCount:n=0,overrideSlotName:r,overrideTargeting:i,overrideAdUnitSizes:a,slotType:o=`display`,existingGoogleTagSlot:c}){let u=l(lt,this)+(typeof r==`string`?r:e);if(o===`outOfPageInterstitial`)return s(F,this,xt).call(this,{fullNameAd:u,divId:t,overrideTargeting:i});if(o===`outOfPageRightSideRail`||o===`outOfPageLeftSideRail`)return s(F,this,St).call(this,{fullNameAd:u,divId:t,side:o===`outOfPageRightSideRail`?`right`:`left`,overrideTargeting:i});let d=document.getElementById(t);if(d==null)throw new st(`No HTML element found with id: `+t);let f=l(mt,this).has(t)?s(F,this,yt).call(this,{adUnitKey:e,divId:t,overrideSlotName:r}):c==null?googletag.defineSlot(u,Ve({getAdUnitSizes:l(dt,this),divId:t,adUnitKey:e,override:a}),t):c;if(f==null)throw new st(`No definable slot found for adUnitKey: `+e+` and divId: `+t);return f.addService(googletag.pubads()),f.setConfig({targeting:i==null?s(F,this,wt).call(this,{adUnitKey:e,htmlSlotElement:d,refreshCount:n}):i,collapseDiv:`DISABLED`}),l(mt,this).add(t),f}function yt({adUnitKey:e,divId:t,overrideSlotName:n}){let r=googletag.pubads().getSlots(),i=r.find(e=>e.getSlotElementId()===t);if(i!=null)return i;let a=l(lt,this)+(typeof n==`string`?n:e);return r.find(e=>e.getAdUnitPath()===a)}function bt(e){return new Promise((t,n)=>{try{ot(()=>{try{t(e())}catch(e){n({reason:e instanceof st?Xe.NoDefinableSlot:Xe.FunctionalError,message:e instanceof Error?e.message:`Unknown error`})}})}catch(e){n({reason:Xe.FunctionalError,message:it})}})}function xt({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(l(mt,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 st(`No definable out-of-page interstitial slot for adUnitPath: `+e);return l(mt,this).add(t),n!=null&&a.setConfig({targeting:n}),a.addService(googletag.pubads()),a}function St({fullNameAd:e,divId:t,side:n,overrideTargeting:r}){var i,a;let o=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(o==null)throw Error(`GPT OutOfPageFormat.${n===`right`?`RIGHT_SIDE_RAIL`:`LEFT_SIDE_RAIL`} unavailable`);if(l(mt,this).has(t)){let t=googletag.pubads().getSlots().find(t=>t.getAdUnitPath()===e);if(t)return t}let c=googletag.defineOutOfPageSlot(e,o);if(c==null)throw new st(`No definable out-of-page ${n} side rail slot for adUnitPath: `+e);l(mt,this).add(t);let u=document.getElementById(t),d=r==null?s(F,this,wt).call(this,{adUnitKey:t,htmlSlotElement:u==null?document.createElement(`div`):u,refreshCount:0}):r;return c.setConfig({targeting:d}),c.addService(googletag.pubads()),c}function Ct({siteCategory:e,context:t,navigationContext:n}){let r=Number(ue(nt));r===0?r=1:n!==`infinite-scroll`&&r++;let i=t.navigationContext!==`initial`||document.referrer.indexOf(window.location.hostname)===-1,{pageTargeting:a,sectionsTargeting:o}=et(),s={"site-category":e==null?null:[...e],browser:tt(navigator.userAgent),pageview:i?`1`:`0`,sessiondepth:String(r),tab_visible:rt.includes(t.lifecycleState)?`yes`:`no`,pagina:a,section:o};ot(()=>{window.googletag.setConfig({targeting:l(ft,this)?l(ft,this).call(this,s):s})}),de(nt,r)}function wt({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=l(ut,this).getCurrentContext().path,a=i.split(`/`)[1]||`home`;return r=j(j({},r),{},{SPurl:a.length>0?a.slice(-40):`home`,path:i.slice(-40),Refresh:String(n)}),l(pt,this)?l(pt,this).call(this,e,t,r):r}var Tt,Et=class e{constructor({logKey:e,label:t}){this.isDebug=!1,this.label=`%cENGINE`,ge(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)}};Tt=Et,Tt.logStyle=`background: #43A047; padding: 2px 4px;`,Tt.errorStyle=`background: #E53935; padding: 2px 4px;`,Tt.warnStyle=`background: #FB8C00; padding: 2px 4px;`;var Dt=`PREBID_NO_BIDS_CONFIGURED`;function Ot(e){return e instanceof Error&&typeof e==`object`&&!!e&&`code`in e&&e.code===Dt}var kt=new WeakMap,At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,I=new WeakMap,Nt=new WeakMap,Pt=new WeakMap,Ft=new WeakMap,It=new WeakMap,Lt=new WeakMap,Rt=new WeakMap,zt=new WeakMap,Bt=new WeakMap,Vt=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,L=new WeakSet,Wt=class{constructor({gpt:e,prebidAdapter:t,eventDispatcher:n,timeout:r=3e3,callbacks:i={},usePrebidClientRenderOnGptUnfilled:a,divIdToAdUnitKeyMapping:u,pageLifecycleManager:d,batchSelling:f,onAdSlotSell:p,isAdvDisabled:m}){if(P(this,L),o(this,kt,void 0),o(this,At,void 0),o(this,jt,void 0),o(this,Mt,void 0),o(this,I,void 0),o(this,Nt,void 0),o(this,Pt,void 0),o(this,Ft,new Map),o(this,It,void 0),o(this,Lt,void 0),o(this,Rt,void 0),o(this,zt,void 0),o(this,Bt,void 0),o(this,Vt,void 0),o(this,Ht,new Set),o(this,Ut,new Map),c(kt,this,e),c(At,this,t),c(jt,this,n),c(Mt,this,r),c(I,this,i),c(Lt,this,d),c(Rt,this,p),c(zt,this,m==null?(()=>!1):m),c(Pt,this,a!==!1),c(It,this,u),f){let e=e=>{let t=Nn(e);return c(Vt,this,t),t};if(typeof f==`function`){let t=f();t instanceof Promise?c(Bt,this,t.then(e)):c(Vt,this,e(t))}else f instanceof Promise?c(Bt,this,f.then(e)):c(Vt,this,e(f))}c(Nt,this,s(L,this,_n).call(this,e,t)),l(Lt,this).on(`virtualPageLoad`,e=>{e.type===`spa-route`&&s(L,this,rn).call(this)})}sell(e,t){var n;if(l(zt,this).call(this))return;(n=l(Rt,this))==null||n.call(this,s(L,this,Gt).call(this,e));let r=jn(l(Ft,this).get(e.divId),t);r&&l(Ft,this).set(e.divId,r),l(Bt,this)&&!l(Vt,this)?l(Bt,this).then(()=>{s(L,this,Kt).call(this,e,s(L,this,Jt).call(this,e.divId))}):s(L,this,Kt).call(this,e,s(L,this,Jt).call(this,e.divId))}clearAdSlotState(e){l(Ft,this).delete(e)}};function Gt(e){var t;let n=(t=l(It,this))==null?void 0:t[e.divId];return n?j(j({},e),{},{adUnitKey:n}):e}function Kt(e,t,n=!1){var r=this;return w(function*(){let i=s(L,r,Cn).call(r,t==null?void 0:t.callbacks),a=s(L,r,Gt).call(r,e),o={params:a,prebidSucceeded:!1,failedPhases:[],disableBatchSelling:n,excludeFromRefresh:(t==null?void 0:t.excludeFromRefresh)===!0},c=s(L,r,gn).call(r,t);yield ve(l(Lt,r));for(let e of c){if(!e.canRun(o))continue;let t=yield e.execute(o);if(On(t))return;if(t.served){s(L,r,bn).call(r,e.phase,o,a,e.successCallback(i));return}let n=En(t),c=Dn(t);if(n){s(L,r,yn).call(r,e.phase,a,t.message,e.continuationCallback(i),o.excludeFromRefresh);continue}if(c&&(s(L,r,vn).call(r,e.phase,o,a,e.unfilledCallback(i)),e.phase!==M.Fallback))return;kn(t)&&(o.failedPhases.push(e.phase),s(L,r,xn).call(r,e.phase,a,t.error,t.originalError,e.failureCallback(i),o.excludeFromRefresh))}yield xe()})()}function qt(e){var t;let n=(t=l(Vt,this))==null?void 0:t.slotRefsByDivId.get(e);if(!(!n||l(Ht,this).has(n.batchId)))return n}function Jt(e){var t;let n=l(Ft,this).get(e),r=(t=s(L,this,qt).call(this,e))==null?void 0:t.slot;return jn(n,Mn(r==null?void 0:r.sellOptions))}function Yt(e,t){let n=s(L,this,Jt).call(this,e);return t===M.Prebid?(n==null?void 0:n.excludePrebid)!==!0:t!==M.Gpt||(n==null?void 0:n.excludeGpt)!==!0}function Xt(e,t,n,r,i,a,o){l(Ut,this).has(e)||l(Ut,this).set(e,new Map);let c=l(Ut,this).get(e);c.has(t)||c.set(t,{items:new Map});let u=c.get(t);return new Promise((c,l)=>{u.items.set(n.divId,{params:n,options:r,ctx:i,resolve:c,reject:l});let d=function(){var e=w(function*(){u.timeoutId!=null&&(clearTimeout(u.timeoutId),u.timeoutId=void 0);let e=Array.from(u.items.values());u.items.clear();try{let n=yield o(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=>s(L,this,Yt).call(this,e.divId,t)).every(e=>u.items.has(e.divId))?d():u.timeoutId==null&&(u.timeoutId=window.setTimeout(()=>{u.timeoutId=void 0;let n=Array.from(u.items.values());u.items.clear(),s(L,this,tn).call(this,e,t,a,n,`Batch phase timed out before all slots queued`)},a.timeout))})}function Zt(e,t,n,r){return s(L,this,Xt).call(this,e.batchId,M.Prebid,t.params,s(L,this,Jt).call(this,t.params.divId),t,e.batchDefinition,e=>s(L,this,Qt).call(this,e,n,r))}function Qt(e,t,n){var r=this;return w(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}});try{let o=yield s(L,r,dn).call(r,n,e.map(e=>e.params));yield l(Mt,r)?Tn(t.runBatchAuction(a),l(Mt,r)):t.runBatchAuction(a),n&&(yield t.setTargetingForGPT(i),yield s(L,r,fn).call(r,{adUnitKeys:i,divIds:e.map(e=>e.params.divId),googleSlots:o,prebidAdapter:t}));let c={};for(let t of e)t.ctx.prebidSucceeded=!0,c[t.params.divId]={served:!1,continueNextHandler:!0,message:`Prebid auction executed for ${t.params.adUnitKey}, moving to next handler`};return c}catch(t){let r={},i=Ot(t);for(let a of e)n?r[a.params.divId]={served:!1,continueNextHandler:!0,message:i?`Prebid has no bids configured for ${a.params.adUnitKey}, moving to GPT handler`:`Prebid auction failed or timed out for ${a.params.adUnitKey}, moving to GPT handler`}:r[a.params.divId]={served:!1,error:An(t,`Prebid auction failed or timed out`),originalError:t};return r}})()}function $t(e,t,n,r){return s(L,this,Xt).call(this,e.batchId,M.Gpt,t.params,s(L,this,Jt).call(this,t.params.divId),t,e.batchDefinition,t=>s(L,this,en).call(this,t,e,n,r))}function en(e,t,n,r){var i=this;return w(function*(){let{batchId:a,batchDefinition:o}=t,c=e.map(e=>e.params),l=e.map(e=>s(L,i,hn).call(i,e.params.divId,`MonetizationManager:batchGptResponseCheck:${a}:${e.params.divId}`));try{let t=Promise.all(l.map(e=>e.promise));yield s(L,i,ln).call(i,c,n);let f=yield t;s(L,i,an).call(i,a,o,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?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();s(L,i,on).call(i,a,o,`GPT batch failed before domination could be verified`,void 0,t);let n={};for(let i of e)r&&i.ctx.prebidSucceeded?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:An(t,`GPT sellAdSlots failed`),originalError:t};return n}})()}function tn(e,t,n,r,i){var a;let o=new Map(r.map(e=>[e.params.divId,e])),c=l(Ut,this).get(e);if(c)for(let e of c.values()){e.timeoutId!=null&&(clearTimeout(e.timeoutId),e.timeoutId=void 0);for(let t of e.items.values())o.set(t.params.divId,t);e.items.clear()}s(L,this,nn).call(this,e);let u=Array.from(o.values()),d={batchId:e,phase:t,slots:u.map(e=>({adUnitKey:e.params.adUnitKey,divId:e.params.divId})),reason:i};s(L,this,wn).call(this,(a=n.callbacks)==null?void 0:a.onBatchSplit,d);for(let e of u)e.resolve({served:!1,cancelled:!0}),s(L,this,Kt).call(this,e.params,l(Ft,this).get(e.params.divId),!0)}function nn(e){l(Ht,this).add(e),l(Ut,this).delete(e)}function rn(){l(Ht,this).clear(),l(Ut,this).clear()}function an(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 o=a.find(e=>e.isEmpty);if(o){s(L,this,on).call(this,e,t,`GPT rendered at least one batch slot empty`,o);return}let c=a.map(e=>e.lineItemId);if(!(c.every(e=>typeof e==`number`)&&new Set(c).size===1)){s(L,this,on).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:Ye,batchId:e,slots:s(L,this,sn).call(this,t),lineItemId:c[0],adProvider:a[0].adProvider};l(jt,this).dispatch(u),s(L,this,wn).call(this,(r=t.callbacks)==null?void 0:r.onDomination,u)}function on(e,t,n,r,i){var a;let o=j(j({batchId:e,slots:s(L,this,sn).call(this,t),reason:n},r?{trigger:r}:{}),i?{originalError:i}:{});s(L,this,nn).call(this,e),s(L,this,wn).call(this,(a=t.callbacks)==null?void 0:a.onFallback,o)}function sn(e){return e.slotList.map(e=>{var t,n,r;return{adUnitKey:(t=(n=e.adUnitKey)==null?(r=l(It,this))==null?void 0:r[e.divId]:n)==null?e.divId:t,divId:e.divId}})}function cn(e,t){return s(L,this,mn).call(this,e,t)?t.refreshSlot(e):t.sellAdSlot(e)}function ln(e,t){return e.every(e=>s(L,this,mn).call(this,e,t))?t.refreshSlots(e):t.sellAdSlots(e)}function un(e,t){return w(function*(){if(e&&typeof e.defineSlot==`function`)return e.defineSlot(t)})()}function dn(e,t){return w(function*(){return e&&typeof e.defineSlots==`function`?e.defineSlots(t):[]})()}function fn({adUnitKeys:e,divIds:t,googleSlots:n,prebidAdapter:r}){var i=this;return w(function*(){if(typeof r.getHighestCpmBids==`function`)for(let o=0;o=.04&&e<=.99?e.toString():null})});continue}u.setConfig({targeting:j(j({},s(L,i,pn).call(i,u)),{},{pt_fp:null,no_bid:Math.random()<.5?`1`:`0`})})}})()}function pn(e){if(typeof e.getConfig==`function`){let t=e.getConfig(`targeting`).targeting;if(t!=null)return j({},t)}return Object.fromEntries(e.getTargetingKeys().map(t=>[t,e.getTargeting(t)]))}function mn(e,t){return typeof t.hasDefinedSlot==`function`&&typeof t.refreshSlot==`function`&&typeof t.refreshSlots==`function`&&t.hasDefinedSlot(e.divId)}function hn(e,t){let n=!1,r,i,a=e=>{n||(n=!0,r==null||r(),i==null||i(e))};return{promise:new Promise(n=>{i=n;let o=l(jt,this).subscribe({eventName:qe,subscriberName:t,callback:t=>{t.divId===e&&t.adProvider===`gpt`&&a(t)}});r=()=>o.unsubscribe()}),cancel:()=>{a()}}}function gn(e){return!(e!=null&&e.excludePrebid)&&!(e!=null&&e.excludeGpt)&&typeof(e==null?void 0:e.useClientSideRenderFallback)!=`boolean`?l(Nt,this):s(L,this,_n).call(this,e.excludeGpt?void 0:l(kt,this),e.excludePrebid?void 0:l(At,this),{useClientSideRenderFallback:e.useClientSideRenderFallback})}function _n(e,t,{useClientSideRenderFallback:n}={}){let r=this,i=l(Mt,this),a=typeof n==`boolean`?n:l(Pt,this),o=[];return t&&o.push({phase:M.Prebid,successCallback:e=>e.onPrebidSuccess,failureCallback:e=>e.onPrebidFailure,continuationCallback:e=>e.onPrebidContinuation,unfilledCallback:e=>e.onUnfilled,canRun:()=>!0,execute(n){return w(function*(){let a=n.disableBatchSelling?void 0:s(L,r,qt).call(r,n.params.divId);if(a)return s(L,r,Zt).call(r,a,n,t,e);try{var o;let a=[],c=yield s(L,r,un).call(r,e,n.params);yield i?Tn(t.runAuction({adUnitKey:n.params.adUnitKey,customSizes:n.params.overrideAdUnitSizes,divId:n.params.divId,overridePrebidAdUnitCode:n.params.overridePrebidAdUnitCode,refreshCount:n.params.refreshCount,sspParams:n.params.sspParams}),i):t.runAuction({adUnitKey:n.params.adUnitKey,customSizes:n.params.overrideAdUnitSizes,divId:n.params.divId,overridePrebidAdUnitCode:n.params.overridePrebidAdUnitCode,refreshCount:n.params.refreshCount,sspParams:n.params.sspParams}),a.push((o=n.params.overridePrebidAdUnitCode)==null?n.params.adUnitKey:o),n.prebidSucceeded=!0,e&&(yield t.setTargetingForGPT(a),yield s(L,r,fn).call(r,{adUnitKeys:a,divIds:[n.params.divId],googleSlots:c?[c]:[],prebidAdapter:t}))}catch(t){return e?{served:!1,continueNextHandler:!0,message:Ot(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:An(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&&o.push({phase:M.Gpt,successCallback:e=>e.onGptSuccess,failureCallback:e=>e.onGptFailure,continuationCallback:e=>e.onGptContinuation,unfilledCallback:e=>e.onUnfilled,canRun:()=>!0,execute(n){return w(function*(){let i=n.disableBatchSelling?void 0:s(L,r,qt).call(r,n.params.divId);if(i)return s(L,r,$t).call(r,i,n,e,t);let o=a&&n.params.slotType!==`outOfPageInterstitial`,c=o?s(L,r,hn).call(r,n.params.divId,`MonetizationManager:gptResponseCheck`):void 0;try{var l,u;return yield s(L,r,cn).call(r,n.params,e),o&&((l=(u=yield c.promise)==null?void 0:u.isEmpty)==null||l)?{served:!1,emptyAd:!0,continueNextHandler:!!t,message:`GPT rendered empty for `+n.params.adUnitKey+`, attempting Prebid client render`}:{served:!0}}catch(e){return c==null||c.cancel(),t&&n.prebidSucceeded?{served:!1,continueNextHandler:!0,message:`GPT sellAdSlot failed for `+n.params.adUnitKey+`, attempting Prebid client render`}:{served:!1,error:An(e,`GPT sellAdSlot failed`),originalError:e}}})()}}),t&&o.push({phase:M.PrebidClientRender,successCallback:e=>e.onClientRenderSuccess,failureCallback:e=>e.onClientRenderFailure,continuationCallback:e=>e.onClientRenderContinuation,canRun:e=>e.prebidSucceeded,unfilledCallback:e=>e.onUnfilled,execute(e){return w(function*(){try{return(yield t.renderWinningBid(document,e.params.divId,e.params.adUnitKey))?{served:!0}:{served:!1,emptyAd:!0,error:`No winning Prebid bid to render`}}catch(e){return{served:!1,error:An(e,`Client-side Prebid render failed`),originalError:e}}})()}}),o.push({phase:M.Fallback,successCallback:()=>void 0,failureCallback:e=>e.onFallback,unfilledCallback:e=>e.onUnfilled,continuationCallback:()=>void 0,canRun:()=>!0,execute:function(){var e=w(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)}}()}),o}function vn(e,t,n,r){let i={EVENT_NAME:Ue,adUnitKey:n.adUnitKey,divId:n.divId,phase:e,context:t};s(L,this,wn).call(this,r,i);let a=`Ad unit ${n.adUnitKey} unfilled at phase ${e}`;s(L,this,Sn).call(this,e,n,N.Unfilled,a,t.excludeFromRefresh),l(jt,this).dispatch(i)}function yn(e,t,n,r,i){let a={adUnitKey:t.adUnitKey,divId:t.divId,phase:e,type:N.Continue,message:n};s(L,this,wn).call(this,r,a),s(L,this,Sn).call(this,e,t,N.Continue,n,i)}function bn(e,t,n,r){let i={adUnitKey:n.adUnitKey,divId:n.divId,phase:e,type:N.Success};s(L,this,wn).call(this,r,i);let a={EVENT_NAME:We,adUnitKey:n.adUnitKey,divId:n.divId,phase:e,context:t};s(L,this,Sn).call(this,e,n,N.Success,void 0,t.excludeFromRefresh),l(jt,this).dispatch(a)}function xn(e,t,n,r,i,a){let o={adUnitKey:t.adUnitKey,divId:t.divId,phase:e,type:N.Failure,error:n,originalError:r};s(L,this,wn).call(this,i,o),s(L,this,Sn).call(this,e,t,N.Failure,n,a)}function Sn(e,t,n,r,i){l(jt,this).dispatch(j(j({EVENT_NAME:Je,adUnitKey:t.adUnitKey,divId:t.divId,phase:e,outcome:n,sellParams:t},i?{excludeFromRefresh:i}:{}),r?{error:r}:{}))}function Cn(e){var t,n,r,i,a,o,s,c,u,d,f;return e?{onPrebidSuccess:(t=e.onPrebidSuccess)==null?l(I,this).onPrebidSuccess:t,onPrebidFailure:(n=e.onPrebidFailure)==null?l(I,this).onPrebidFailure:n,onPrebidContinuation:(r=e.onPrebidContinuation)==null?l(I,this).onPrebidContinuation:r,onGptSuccess:(i=e.onGptSuccess)==null?l(I,this).onGptSuccess:i,onGptFailure:(a=e.onGptFailure)==null?l(I,this).onGptFailure:a,onGptContinuation:(o=e.onGptContinuation)==null?l(I,this).onGptContinuation:o,onClientRenderSuccess:(s=e.onClientRenderSuccess)==null?l(I,this).onClientRenderSuccess:s,onClientRenderFailure:(c=e.onClientRenderFailure)==null?l(I,this).onClientRenderFailure:c,onClientRenderContinuation:(u=e.onClientRenderContinuation)==null?l(I,this).onClientRenderContinuation:u,onFallback:(d=e.onFallback)==null?l(I,this).onFallback:d,onUnfilled:(f=e.onUnfilled)==null?l(I,this).onUnfilled:f}:l(I,this)}function wn(e,t){if(e)try{e(t)}catch(e){}}function Tn(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 En(e){return e.served===!1&&`continueNextHandler`in e&&e.continueNextHandler===!0}function Dn(e){return e.served===!1&&`emptyAd`in e&&e.emptyAd===!0&&(!(`continueNextHandler`in e)||e.continueNextHandler!==!0)}function On(e){return e.served===!1&&`cancelled`in e&&e.cancelled===!0}function kn(e){return e.served===!1&&`error`in e&&typeof e.error==`string`}function An(e,t){return typeof(e==null?void 0:e.message)==`string`?e.message:t}function jn(e,t){if(!e&&!t)return;let n=e!=null&&e.callbacks||t!=null&&t.callbacks?j(j({},e==null?void 0:e.callbacks),t==null?void 0:t.callbacks):void 0;return j(j(j({},e),t),n?{callbacks:n}:{})}function Mn(e){if(!e)return;let t=j({},e);return delete t.callbacks,t}function Nn(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=Pn(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 Pn(e,t){return t===!0?{divId:e}:j(j({},t),{},{divId:e})}function Fn(e){return e===void 0?!1:In(e)||Ln(e)}function In(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 Ln(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 Rn=null;function zn({adUnitSizeConfig:e,logger:t,isOnPostInjection:n=!1,device:r}){let i=`unknown`;try{i=ye(window.navigator)}catch(e){console.error(`Error while getting browser language`,e)}if(Fn(window.navigator.userAgent)&&i!==`it-IT`)return;t.debug(`== Scale iframe == Is enabled`),Rn==null?(t.debug(`== Scale iframe == Configuring MutationObserver`),Rn=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}Wn({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]=j(j({},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.`),Rn.observe(n,{attributes:!0,attributeFilter:[`width`,`height`],childList:!0,subtree:!0}))}}var Bn=5,Vn=50;function Hn(e){let t=typeof e==`number`?e:Number(String(e==null?``:e).replace(`px`,``).trim());return Number.isFinite(t)&&t>1?t:null}function Un({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=Hn(r.width),l=Hn(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 Wn({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=Un({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>=Bn){delete a.dataset.scaleiframeRetryPending,r.debug(`== Scale iframe ${e} == Size still not measurable after ${Bn} attempts, giving up..`);return}a.dataset.scaleiframeRetryPending=`true`,r.debug(`== Scale iframe ${e} == Size not measurable yet, retrying (${o}/${Bn})`),requestAnimationFrame(()=>{setTimeout(()=>{Wn({adUnitKey:e,containerHeight:t,containerWidth:n,logger:r,attempt:o})},Vn)});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,S()/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,x()/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 Gn=`: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}`,Kn=`plugin:completed`;function qn(e,t,n){return Jn.apply(this,arguments)}function Jn(){return Jn=w(function*(e,t,n){let r=Array.isArray(e)?e:[e],i=[];for(let e=0;e0&&(yield xe(),n.debug(`Yielded to the main thread before starting compile plugin [${a.pluginName}]`)),i.push(new Promise(e=>{try{let r=a.run(r=>{r.type===`error`&&n.error(`Compile plugin [${a.pluginName}] error:`,r.message);let i=r.type===`completed`&&r.deliveryStatus!==void 0?{deliveryStatus:r.deliveryStatus}:void 0;t.dispatch({EVENT_NAME:Kn,metadata:i,pluginName:a.pluginName,outcome:r.type===`completed`?`success`:r.type}),e()});r instanceof Promise&&r.catch(r=>{n.error(`Compile plugin [${a.pluginName}] threw:`,r),t.dispatch({EVENT_NAME:Kn,pluginName:a.pluginName,outcome:`error`}),e()})}catch(r){n.error(`Compile plugin [${a.pluginName}] threw synchronously:`,r),t.dispatch({EVENT_NAME:Kn,pluginName:a.pluginName,outcome:`error`}),e()}}))}Promise.allSettled(i)}),Jn.apply(this,arguments)}function Yn(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,u=null,d=new Map;function f(e,t){return t!==void 0&&d.get(e)===t}function p(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 m(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&&!f(o.pluginName,t)){if(i!=null){i=i.then(()=>{if(e===c)return p(o,n)});continue}i=p(o,n)}}return i}function h(e,t,n,r){let i={afterFlowOnly:r,completions:new Map,token:e,url:t,virtualNavigationType:n};return g(i),i}function g(e){for(let{plugin:t}of r){if(t===null||e.completions.has(t.pluginName)||f(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 _(e,t){return v.apply(this,arguments)}function v(){return v=w(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=u;if(r===null||r.token!==n)return;let i=b(e,r);if(i.length===0)return;yield Promise.all(i)}}),v.apply(this,arguments)}function y(){let e=u;if(e!==null){u=null;for(let{settle:t}of e.completions.values())t()}}function b(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 x(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)&&S(n.pluginName,r,t)}}function S(e,t,n){return C.apply(this,arguments)}function C(){return C=w(function*(e,t,r){try{let i=b(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&&d.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()}}),C.apply(this,arguments)}function T(e,t){let n=(l==null?void 0:l.token)===t.token?l.closing:void 0;if(n==null){x(e,t);return}n.then(()=>{t.token===c&&x(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:Kn,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 ee(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,y(),n.adSlotLifecycleApi.isAdvDisabled())return;let a=h(t,i,r,!1);u=a;let o=m(t,i,r);o==null?g(a):l={closing:o.then(()=>{t===c&&g(a)}),token:t},T(e,a);return}if(n.adSlotLifecycleApi.isAdvDisabled()){y();return}let a=c,o=u!==null&&u.token===a?u:null;o===null&&(o=h(a,i,r,!0),u=o),T(e,o)}for(let e of[To,Eo])t.subscribe({eventName:e,subscriberName:`chain-virtual-navigation-${e}`,callback:t=>ee(e,t)});for(let e of r){var D;let r=e.plugin;if(r===null)continue;let s=r.pluginName,{getShouldRun:l,timeout:u,waitFor:f}=e;r.onDisableAds!=null&&t.subscribe({eventName:To,subscriberName:`${s}-disable-ads`,callback:function(){var e=w(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 p={pluginName:s,onDisableAds:(D=r.onDisableAds)==null?void 0:D.bind(r),run(e){let t=c,i=(f==null?[]:f).map(e=>E(s,e));(function(){var f=w(function*(){yield Promise.all(i),c!==t&&(yield _(s,t));let f=!1,p=e=>{a[s]={deliveryStatus:e.type===`completed`?e.deliveryStatus:void 0,outcome:e.type===`completed`?`success`:e.type}},m=t=>{if(f)return;f=!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(u!==void 0&&u>0&&(h=setTimeout(()=>{m({type:`timeout`,message:`Plugin [${s}] timed out after ${u}ms`})},u)),typeof l==`function`){let e=l({context:n,pluginOutcomes:a});if(!(e instanceof Promise?yield e:e)){m({type:`skipped`});return}}d.set(s,window.location.href);let g=r.run(e=>{if(h!==void 0&&clearTimeout(h),f){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 f.apply(this,arguments)}})()().catch(t=>{e({type:`error`,message:String(t)})})}};i.push(p)}return i}function Xn(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 Yn(i,n,t)}var Zn=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`]}]]),Qn=[2,7,9,10],$n=100,er=50;function tr(){return{cmpUiShown:!1,consentManagementMetadata:{},consentManagementType:``,personalizedAds:!0}}var nr=new WeakMap,rr=new WeakMap,ir=new WeakMap,ar=new WeakMap,or=new WeakMap,sr=new WeakMap,cr=new WeakMap,lr=new WeakMap,ur=new WeakMap,dr=new WeakMap,fr=new WeakMap,pr=new WeakMap,R=new WeakSet,mr=class{constructor(){P(this,R),o(this,nr,new Set),o(this,rr,0),o(this,ir,`fallback`),o(this,ar,!1),o(this,or,null),o(this,sr,null),o(this,cr,!0),o(this,lr,!1),o(this,ur,null),o(this,dr,null),o(this,fr,null),o(this,pr,er)}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,o=r?{callback:r,waitForPersonalized:i,once:a}:null;return o&&l(nr,this).add(o),l(dr,this)&&o?(s(R,this,Sr).call(this,o,l(dr,this)),()=>{l(nr,this).delete(o)}):(l(lr,this)||((e==null?void 0:e.attemptThreshold)!==void 0&&c(pr,this,e.attemptThreshold),c(lr,this,!0),s(R,this,hr).call(this)),()=>{o&&l(nr,this).delete(o)})}hasUserAcceptedConsent(){return l(cr,this)}consentManagementApiUsed(){return l(ir,this)}destroy(){c(ar,this,!0),s(R,this,wr).call(this),s(R,this,Tr).call(this),s(R,this,Er).call(this),l(nr,this).clear()}};function hr(){var e;if(!l(ar,this)){if(window.__tcfapi){s(R,this,gr).call(this);return}if(window.__gpp){s(R,this,_r).call(this);return}if(window.__uspapi){s(R,this,vr).call(this);return}if(c(rr,this,(e=l(rr,this),e++,e)),l(pr,this)!==null&&l(rr,this)>=l(pr,this)){s(R,this,yr).call(this);return}c(ur,this,setTimeout(()=>{s(R,this,hr).call(this)},$n))}}function gr(){let e=window.__tcfapi;e&&e(`addEventListener`,2,(e,t)=>{if(l(ar,this)||!t||(c(fr,this,e.listenerId),e.eventStatus!==`tcloaded`&&e.eventStatus!==`useractioncomplete`))return;c(cr,this,Qn.every(t=>e.purpose.consents[t]===!0));let n={cmpUiShown:e.eventStatus===`useractioncomplete`,consentManagementMetadata:{},consentManagementType:`tcf`,personalizedAds:l(cr,this)};c(ir,this,`tcf`),l(cr,this)&&window.dispatchEvent(new Event(`cookie_accepted`)),s(R,this,br).call(this,n)})}function _r(){let e=window.__gpp;if(!e)return;let t=e=>{if(l(ar,this)||(c(sr,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=Zn.get(e);if(t){r=t,i=e;break}}if(!r||i===void 0){s(R,this,Er).call(this),window.__tcfapi?s(R,this,gr).call(this):window.__uspapi?s(R,this,vr).call(this):s(R,this,yr).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){c(cr,this,!1);break}}let o={cmpUiShown:!1,consentManagementMetadata:{gppSectionId:i},consentManagementType:`gpp`,personalizedAds:l(cr,this)};c(ir,this,`gpp`),s(R,this,br).call(this,o)};c(or,this,t),e(`addEventListener`,t)}function vr(){let e=window.__uspapi;e&&e(`getUSPData`,1,(e,t)=>{if(l(ar,this))return;if(!t||e.version!==1){s(R,this,yr).call(this);return}let n={cmpUiShown:!1,consentManagementMetadata:{uspString:e.uspString},consentManagementType:`usp`,personalizedAds:!0};c(ir,this,`usp`),c(dr,this,n),s(R,this,xr).call(this,n)})}function yr(){let e=tr();console.log(`ConsentReader: no CMP detected, using fallback`),c(dr,this,e),s(R,this,xr).call(this,e)}function br(e){c(dr,this,e),s(R,this,xr).call(this,e),s(R,this,Cr).call(this)?console.log(`ConsentReader: listener kept active for non-once subscribers`,e):(s(R,this,Tr).call(this),s(R,this,Er).call(this))}function xr(e){for(let t of Array.from(l(nr,this)))s(R,this,Sr).call(this,t,e)}function Sr(e,t){e.waitForPersonalized&&!t.personalizedAds||(e.callback(t),e.once&&l(nr,this).delete(e))}function Cr(){for(let e of l(nr,this))if(!e.once)return!0;return!1}function wr(){l(ur,this)!==null&&(clearTimeout(l(ur,this)),c(ur,this,null))}function Tr(){l(fr,this)!==null&&window.__tcfapi&&(window.__tcfapi(`removeEventListener`,2,()=>{},l(fr,this)),c(fr,this,null))}function Er(){l(sr,this)!==null&&window.__gpp&&l(or,this)&&(window.__gpp(`removeEventListener`,l(or,this),l(sr,this)),c(or,this,null),c(sr,this,null))}var Dr,Or=200,kr=`spa-route`;function Ar(){var e;return typeof PerformanceObserver<`u`&&!!((e=PerformanceObserver.supportedEntryTypes)!=null&&e.includes(`soft-navigation`))}function jr(e){return e===`unknown`?kr:e}function Mr(){return typeof location>`u`?null:location.href}var 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,Hr=new WeakMap,Ur=new WeakMap,Wr=new WeakMap,Gr=new WeakMap,z=new WeakSet,Kr=class e{constructor(){P(this,z),o(this,Nr,{stateChange:new Set,bfcacheRestore:new Set,virtualPageLoad:new Set,networkChange:new Set,viewTransition:new Set}),o(this,Pr,new Set),o(this,Fr,[]),o(this,Ir,null),o(this,Lr,null),o(this,Rr,void 0),o(this,zr,0),o(this,Br,null),o(this,Vr,Mr()),o(this,Hr,Mr()),o(this,Ur,Or),o(this,Wr,!1),o(this,Gr,kr),c(Rr,this,s(z,this,qr).call(this))}static init(){if(e.instance)return e.instance;let t=new e;return e.instance=t,s(z,t,Yr).call(t),t}static getInstance(){return e.instance}static resetForTesting(){let t=e.instance;t&&s(z,t,ni).call(t),e.instance=null}getState(){return l(Rr,this)}on(e,t){let n=l(Nr,this)[e];return n.add(t),()=>{n.delete(t)}}registerManagedObserver(e){let t={setup:e,teardown:null};return t.teardown=e(),l(Pr,this).add(t),()=>{t.teardown&&t.teardown(),l(Pr,this).delete(t)}}configure(e={}){var t;s(z,this,Zr).call(this);let n=e.provider==null&&e.useSoftNavigationApis===!0&&Ar();if(n&&s(z,this,Xr).call(this),e.titleObserver!==!1){var r,i;let t=(r=e.titleObserver)==null?{}:r,o=jr((i=t.reportsAs)==null?kr:i);if(n&&o===`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;c(Ur,this,(a=t.debounceDuration)==null?Or:a),c(Gr,this,o),c(Wr,this,!0),s(z,this,$r).call(this)}}(t=e.provider)==null||t.call(e,e=>{this.handleVirtualPageLoad(e)})}transitionTo(e){let t=l(Rr,this);t!==e&&(c(Rr,this,e),s(z,this,ti).call(this,`stateChange`,e,t))}handleVirtualPageLoad(e){var t=this;return w(function*(){if(s(z,t,ei).call(t,e))return;let n=jr(e.type);if(n===`spa-route`){let e=Array.from(l(Pr,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()}s(z,t,ti).call(t,`virtualPageLoad`,e),n===`spa-route`&&l(Wr,t)&&(yield new Promise(e=>setTimeout(e,0)),s(z,t,$r).call(t))})()}};Dr=Kr;function qr(){return typeof document>`u`?`active`:`prerendering`in document&&document.prerendering?`prerendering`:document.visibilityState===`hidden`?`hidden`:document.hasFocus()?`active`:`passive`}function Jr(){document.visibilityState===`hidden`?this.transitionTo(`hidden`):document.hasFocus()?this.transitionTo(`active`):this.transitionTo(`passive`)}function Yr(){s(z,this,B).call(this,document,`visibilitychange`,()=>{s(z,this,Jr).call(this)}),s(z,this,B).call(this,window,`focus`,()=>{document.visibilityState===`visible`&&this.transitionTo(`active`)}),s(z,this,B).call(this,window,`blur`,()=>{document.visibilityState===`visible`&&this.transitionTo(`passive`)}),s(z,this,B).call(this,document,`freeze`,()=>{this.transitionTo(`frozen`)}),s(z,this,B).call(this,document,`resume`,()=>{document.visibilityState===`hidden`?this.transitionTo(`hidden`):document.hasFocus()?this.transitionTo(`active`):this.transitionTo(`passive`)}),s(z,this,B).call(this,window,`pageshow`,e=>{e.persisted&&(this.transitionTo(`active`),s(z,this,ti).call(this,`bfcacheRestore`,{isOnline:navigator.onLine}))}),s(z,this,B).call(this,window,`pagehide`,e=>{e.persisted?this.transitionTo(`frozen`):this.transitionTo(`terminated`)}),s(z,this,B).call(this,window,`online`,()=>{s(z,this,ti).call(this,`networkChange`,!0)}),s(z,this,B).call(this,window,`offline`,()=>{s(z,this,ti).call(this,`networkChange`,!1)}),`prerendering`in document&&document.prerendering&&s(z,this,B).call(this,document,`prerenderingchange`,()=>{this.transitionTo(`active`)}),`onpageswap`in window&&s(z,this,B).call(this,window,`pageswap`,e=>{s(z,this,ti).call(this,`viewTransition`,e,`swap`)}),`onpagereveal`in window&&s(z,this,B).call(this,window,`pagereveal`,e=>{s(z,this,ti).call(this,`viewTransition`,e,`reveal`)})}function Xr(){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}),c(Lr,this,()=>e.disconnect())}function Zr(){c(Wr,this,!1),c(Vr,this,Mr()),c(Hr,this,Mr()),c(Gr,this,kr),c(Ur,this,Or),s(z,this,Qr).call(this),l(Lr,this)&&(l(Lr,this).call(this),c(Lr,this,null))}function Qr(){l(Ir,this)&&(l(Ir,this).disconnect(),c(Ir,this,null)),l(Br,this)!==null&&(clearTimeout(l(Br,this)),c(Br,this,null))}function $r(){s(z,this,Qr).call(this);let e=null,t=new MutationObserver(()=>{l(Br,this)!==null&&clearTimeout(l(Br,this)),c(Br,this,setTimeout(()=>{var t,n;if(c(Br,this,null),document.title==e)return;e=document.title;let r=(t=Mr())==null?``:t,i=r!==l(Hr,this);c(Hr,this,r),c(zr,this,(n=l(zr,this),n++,n)),this.handleVirtualPageLoad({url:i?r:`${r}#pt-title-${l(zr,this)}`,type:l(Gr,this)})},l(Ur,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})}te(function(){document.readyState==`interactive`?document.addEventListener(`readystatechange`,()=>{document.readyState==`complete`&&n()}):n()}),c(Ir,this,t)}function ei({url:e}){return e===l(Vr,this)?!0:(c(Vr,this,e),!1)}function ti(e,...t){let n=Array.from(l(Nr,this)[e]);for(let e of n)e(...t)}function B(e,t,n){e.addEventListener(t,n),l(Fr,this).push(()=>{e.removeEventListener(t,n)})}function ni(){for(let e of l(Fr,this))e();l(Fr,this).length=0,s(z,this,Zr).call(this);for(let e of Array.from(l(Pr,this)))e.teardown&&e.teardown();l(Pr,this).clear();for(let e of Object.keys(l(Nr,this)))l(Nr,this)[e].clear()}Dr.instance=null;var ri=[`og:type`,`article:section`,`article:tag`,`page-type`],ii=new Set([`active`,`passive`,`hidden`,`frozen`]),ai=new WeakMap,oi=new WeakMap,si=new WeakMap,ci=new WeakMap,li=new WeakMap,ui=new WeakMap,di=new WeakMap,V=new WeakSet,fi=class{constructor(e,t){var n;P(this,V),o(this,ai,[]),o(this,oi,{contextUpdated:new Set,visibilityChanged:new Set,networkChanged:new Set}),o(this,si,[]),o(this,ci,void 0),o(this,li,void 0),o(this,ui,void 0),o(this,di,null),c(ci,this,(n=e==null?void 0:e.metaTagWhitelist)==null?ri:n),c(li,this,t==null?((e,t)=>{console.error(`ContextManager: ${e}`,t)}):t),c(ui,this,s(V,this,pi).call(this,`initial`)),s(V,this,hi).call(this),D()||s(V,this,vi).call(this)}getCurrentContext(){return s(V,this,_i).call(this,l(ui,this))}on(e,t){let n=l(oi,this)[e];return n.add(t),()=>{n.delete(t)}}registerContextTransformer(e){l(ai,this).push(e)}destroy(){for(let e of l(si,this))e();l(si,this).length=0,l(di,this)&&(l(di,this).call(this),c(di,this,null));for(let e of Object.keys(l(oi,this)))l(oi,this)[e].clear();l(ai,this).length=0}};function pi(e){let t=Kr.getInstance(),n=t?t.getState():`active`;return Object.freeze({url:window.location.href,host:window.location.host,pathSegments:Object.freeze(ne()),path:window.location.pathname,queryParams:Object.freeze(O()),pageType:re(),customTargeting:Object.freeze(k(l(ci,this))),lifecycleState:n,navigationContext:e,isOnline:navigator.onLine,author:ie()})}function mi(e,t){return Object.freeze(j(j({},l(ui,this)),{},{[e]:t}))}function hi(){let e=Kr.getInstance();e&&(l(si,this).push(e.on(`virtualPageLoad`,e=>{let t=e.type===`infinite-scroll`?`infinite-scroll`:`spa-route`;s(V,this,gi).call(this,t)})),l(si,this).push(e.on(`bfcacheRestore`,()=>{s(V,this,gi).call(this,`bfcache-restore`)})),l(si,this).push(e.on(`stateChange`,e=>{ii.has(e)&&(c(ui,this,s(V,this,mi).call(this,`lifecycleState`,e)),s(V,this,yi).call(this,`visibilityChanged`,e))})),l(si,this).push(e.on(`networkChange`,e=>{c(ui,this,s(V,this,mi).call(this,`isOnline`,e)),s(V,this,yi).call(this,`networkChanged`,e)})))}function gi(e){let t=l(ui,this);c(ui,this,s(V,this,pi).call(this,e)),s(V,this,yi).call(this,`contextUpdated`,{context:s(V,this,_i).call(this,l(ui,this)),previousContext:s(V,this,_i).call(this,t),navigationContext:e})}function _i(e){let t=e;for(let e of l(ai,this))try{t=Object.freeze(e(t))}catch(e){return l(li,this).call(this,`transformer threw during pipeline execution`,e),t}return t}function vi(){c(di,this,te(()=>{c(di,this,null),s(V,this,gi).call(this,`initial`)}))}function yi(e,...t){let n=Array.from(l(oi,this)[e]);for(let e of n)e(...t)}var bi=new WeakMap,xi=new WeakMap,H=new WeakMap,Si=class{constructor(e){o(this,bi,0),o(this,xi,void 0),o(this,H,{}),c(xi,this,e)}subscribe({callback:e,eventName:t,priority:n,subscriberName:r,waitFor:i}){l(H,this)[t]||(l(H,this)[t]={});let a=n==null?l(bi,this):n;for(;l(H,this)[t][a];)a++;return l(H,this)[t][a]={callback:e,subscriberName:r,waitFor:i},{unsubscribe:()=>{delete l(H,this)[t][a]}}}dispatch(e){let t=e.EVENT_NAME;if(l(xi,this).isDebug&&(l(xi,this).debug(`Dispatching event ${t}`,e),l(xi,this).debug(`Subscribers for event ${t}:`,l(H,this)[t]?Object.values(l(H,this)[t]).map(e=>e.subscriberName):`No subscribers`)),!l(H,this)[t])return;let n=Object.keys(l(H,this)[t]).map(Number).sort((e,t)=>t-e);for(let r of n){let{callback:n,subscriberName:i,waitFor:a}=l(H,this)[t][r];try{a?a.then(()=>{n(e)}).catch(t=>{l(xi,this).error(`Something went wrong in ${i} waitFor, subscribed to the event: ${e.EVENT_NAME}`,t)}):n(e)}catch(t){l(xi,this).error(`Something went wrong in ${i}, subscribed to the event: ${e.EVENT_NAME}`,t)}}}},Ci=`slot:missing-element`,wi=`slot:missing-element:abandoned`,Ti=new WeakMap,Ei=new WeakMap,Di=new WeakMap,Oi=new WeakMap,ki=new WeakMap,Ai=new WeakMap,ji=new WeakMap,Mi=new WeakMap,Ni=new WeakMap,Pi=new WeakMap,Fi=new WeakMap,Ii=new WeakMap,Li=new WeakSet,Ri=class{constructor({monetizationManager:e,eventDispatcher:t,logger:n,observerRootMargin:r}){P(this,Li),o(this,Ti,1e3),o(this,Ei,`500px 15px`),o(this,Di,`300px 15px`),o(this,Oi,E()),o(this,ki,void 0),o(this,Ai,void 0),o(this,ji,void 0),o(this,Mi,new Map),o(this,Ni,new Map),o(this,Pi,void 0),o(this,Fi,new Map),o(this,Ii,void 0),c(ki,this,t),c(ji,this,n),c(Pi,this,e);let i=r||(l(Oi,this)===T.MOBILE?l(Di,this):l(Ei,this));c(Ai,this,new IntersectionObserver(s(Li,this,zi).bind(this),{threshold:0,rootMargin:i}))}register(e,t){let n=document.getElementById(e.divId);if(n!=null){l(Fi,this).set(e.divId,{slot:e,options:t}),l(Ai,this).observe(n);return}l(ji,this).warn(`Element ${e.divId} not found at registration time, starting recovery`),s(Li,this,Bi).call(this,e,t),l(ki,this).dispatch({EVENT_NAME:Ci})}destroy(){s(Li,this,Hi).call(this),s(Li,this,Ui).call(this)}};function zi(e){for(let t of e){if(!t.isIntersecting)continue;let e=t.target.id;if(!l(Fi,this).has(e))continue;let{slot:n,options:r}=l(Fi,this).get(e);l(Pi,this).sell(n,r),l(Fi,this).delete(e),l(Ai,this).unobserve(t.target)}}function Bi(e,t){l(Mi,this).set(e.divId,{slot:e,options:t}),l(Ii,this)==null&&(c(Ii,this,new MutationObserver(s(Li,this,Vi).bind(this))),l(Ii,this).observe(document.body,{childList:!0,subtree:!0}));let n=setTimeout(()=>{l(Mi,this).has(e.divId)&&(l(ji,this).warn(`Element ${e.divId} was never found, the slot has been abandoned for this session`),l(Mi,this).delete(e.divId),l(ki,this).dispatch({EVENT_NAME:wi}),l(Mi,this).size===0&&s(Li,this,Hi).call(this))},l(Ti,this));l(Ni,this).set(e.divId,n)}function Vi(){for(let[e,{slot:t,options:n}]of l(Mi,this)){let r=document.getElementById(e);if(r==null)continue;let i=l(Ni,this).get(e);i!=null&&(clearTimeout(i),l(Ni,this).delete(e)),l(Fi,this).set(e,{slot:t,options:n}),l(Ai,this).observe(r),l(Mi,this).delete(e)}l(Mi,this).size===0&&s(Li,this,Hi).call(this)}function Hi(){l(Ii,this)!=null&&(l(Ii,this).disconnect(),c(Ii,this,void 0),l(Mi,this).clear(),l(Ni,this).clear())}function Ui(){l(Ai,this).disconnect(),l(Fi,this).clear()}var Wi=new WeakMap,Gi=new WeakMap,Ki=new WeakMap,qi=new WeakMap,Ji=new WeakSet,Yi=class{constructor(e){P(this,Ji),o(this,Wi,new Map),o(this,Gi,new Set),o(this,Ki,new Map),o(this,qi,!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;l(Ki,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=l(Wi,this).get(e))==null?new Set:n;r.add(t),l(Wi,this).set(e,r)}isAdSlotDisposableOnVirtualNavigation(e,t){var n,r;return(n=(r=l(Wi,this).get(e))==null?void 0:r.has(t))!=null&&n}setAdSlotAsSelfManaged(e){l(Gi,this).add(e)}isAdSlotSelfManaged(e){return l(Gi,this).has(e)}isAdvDisabled(){return l(qi,this)}lockSell(e){if(!l(qi,this)){c(qi,this,!0);for(let t of Array.from(l(Ki,this).keys()))s(Ji,this,Xi).call(this,t,e)}}unlockSell(){c(qi,this,!1)}disposeAdSlots(e,t){for(let n of Array.from(l(Ki,this).keys()))this.isAdSlotDisposableOnVirtualNavigation(n,e)&&s(Ji,this,Xi).call(this,n,t)}resetSoldAdSlots(e,t){for(let n of Array.from(l(Ki,this).keys()))this.isAdSlotSelfManaged(n)||!t(n)||s(Ji,this,Xi).call(this,n,e,{keepContainer:!0})}};function Xi(e,{gpt:t,monetizationManager:n,prebidAdapter:r,refreshManager:i},{keepContainer:a=!1}={}){let o=l(Ki,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 c;((c=t.closest(`.pubtech-adv-container`))==null?t:c).remove()}}catch(t){console.error(`Failed to remove DOM container for ${e}`,t)}l(Ki,this).delete(e)}var Zi=`slot:mrcImpressionReached`,Qi=[`F_D`,`F_M`,`S_1`,`S_2`],$i=5,ea=1e3,ta=3e4,na=5,ra=1e3,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 WeakMap,ma=new WeakMap,ha=new WeakMap,U=new WeakMap,ga=new WeakMap,_a=new WeakMap,va=new WeakMap,ya=new WeakMap,ba=new WeakMap,xa=new WeakMap,Sa=new WeakMap,W=new WeakSet,Ca=class{constructor({adUnitsExcludedFromRefresh:e,config:t,contextManager:n,customAdUnitRefreshConfigMap:r,disableAutoRefresh:i,eventDispatcher:a,monetizationManager:u,pageLifecycleManager:d}){if(P(this,W),o(this,ia,new Set([`O_SKIN`,`O_INTERSTITIAL`,`O_INTERSTITIAL_G`])),o(this,aa,void 0),o(this,oa,void 0),o(this,sa,void 0),o(this,ca,void 0),o(this,la,void 0),o(this,ua,void 0),o(this,da,void 0),o(this,fa,void 0),o(this,pa,void 0),o(this,ma,new Set),o(this,ha,void 0),o(this,U,new Map),o(this,ga,new Map),o(this,_a,void 0),o(this,va,void 0),o(this,ya,void 0),o(this,ba,null),o(this,xa,!1),o(this,Sa,!0),c(sa,this,s(W,this,Na).bind(this)),c(ca,this,n),c(la,this,r),c(ua,this,i===!0),c(da,this,a),c(fa,this,u),c(pa,this,d),c(ha,this,j({consecutiveUnfilledBeforeGoogleExclusion:null,firstUnfilledRetryTime:ea,refreshBlockTime:ta,refreshLimit:na,refreshOnlyOnVisiblePage:!0,requireMrcImpressionBeforeRefresh:!0,sequentialUnfilledLimit:$i,visibilityPollingTime:1e3},t)),Array.isArray(e))for(let t of e)l(ia,this).add(t);c(aa,this,l(da,this).subscribe({callback:e=>s(W,this,wa).call(this,e),eventName:Je,subscriberName:`RefreshManager`})),c(oa,this,l(da,this).subscribe({callback:e=>s(W,this,Ga).call(this,e),eventName:Ye,subscriberName:`RefreshManager:domination`})),c(va,this,l(ca,this).on(`visibilityChanged`,()=>{s(W,this,ka).call(this)&&s(W,this,Ua).call(this)})),c(ya,this,l(pa,this).on(`networkChange`,e=>{c(Sa,this,e),e&&s(W,this,ka).call(this)&&s(W,this,Ua).call(this)})),c(_a,this,l(pa,this).on(`bfcacheRestore`,()=>{s(W,this,Wa).call(this)}))}expediteSlotRefresh(e,t,n,r){if(l(ua,this))return;let{slot:i}=s(W,this,ja).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,s(W,this,za).call(this,e,i),s(W,this,Oa).call(this,e,i)}unscheduleSlotRefresh(e){let t=l(U,this).get(e);t!=null&&(l(ma,this).delete(e),l(U,this).delete(e),l(ga,this).delete(e),s(W,this,Ha).call(this,t),s(W,this,Ia).call(this,e),t.mrcImpressionReached||l(da,this).dispatch({EVENT_NAME:Zi,adUnitKey:t.adUnitKey,divId:e}))}teardown(){var e;l(aa,this).unsubscribe(),l(oa,this).unsubscribe(),l(_a,this).call(this),l(va,this).call(this),l(ya,this).call(this);for(let e of l(U,this).values())s(W,this,Ha).call(this,e);l(ma,this).clear(),l(U,this).clear(),l(ga,this).clear(),(e=l(ba,this))==null||e.disconnect(),c(ba,this,null);try{window.googletag.pubads().removeEventListener(`slotVisibilityChanged`,l(sa,this)),c(xa,this,!1)}catch(e){}}isSlotRegistered(e){return l(U,this).has(e)}isMrcReached(e){let t=l(U,this).get(e);return t==null?!0:(s(W,this,za).call(this,e,t),t.mrcImpressionReached)}whenMrcReached(e){let t=l(U,this).get(e);return t==null||(s(W,this,za).call(this,e,t),t.mrcImpressionReached)?Promise.resolve():new Promise(n=>{let{unsubscribe:r}=l(da,this).subscribe({callback:t=>{t.divId===e&&(r(),n())},eventName:Zi,subscriberName:`RefreshManager:whenMrcReached:${e}`});if(t.isVisible&&t.lastVisibilityUpdateTime!=null){setTimeout(()=>{s(W,this,za).call(this,e,t)},ra-t.totalVisibleTime);return}s(W,this,La).call(this,e,t)})}};function wa(e){if(l(ua,this)||e.excludeFromRefresh===!0)return;let t=e.outcome;if(t!==N.Success&&t!==N.Unfilled)return;let n=e.adUnitKey;if(n==null||n.length===0||l(ia,this).has(n))return;let r=e.phase===M.Gpt?`gpt`:`prebid`,i=e.divId,{slot:a,slotRefreshConfig:o}=s(W,this,ja).call(this,n,i);if(!a.isExausted){if(e.sellParams!=null&&(a.sellParams=e.sellParams),Qi.includes(a.adUnitKey)||s(W,this,Ma).call(this,r,i),t===N.Unfilled){s(W,this,Ea).call(this,i,a,o);return}s(W,this,Ta).call(this,i,a,o)}}function Ta(e,t,n){s(W,this,Ha).call(this,t),t.consecutiveUnfilledCount=0,s(W,this,Ba).call(this,t),Qi.includes(t.adUnitKey)&&(t.isVisible=!0,t.lastVisibilityUpdateTime=Math.round(performance.now())),s(W,this,La).call(this,e,t);let r=setTimeout(()=>{t.refreshBlockTimeout===r&&(t.refreshBlockTimeout=null,t.refreshLocked=!1,s(W,this,Oa).call(this,e,t))},n.refreshBlockTime);t.refreshBlockTimeout=r}function Ea(e,t,n){var r,i,a;if(t.consecutiveUnfilledCount+=1,t.consecutiveUnfilledCount>=((r=n.sequentialUnfilledLimit)==null?$i:r))return s(W,this,Va).call(this,e,t);t.unfilledRetryTimeout!=null&&clearTimeout(t.unfilledRetryTimeout),t.refreshBlockTimeout!=null&&(clearTimeout(t.refreshBlockTimeout),t.refreshBlockTimeout=null);let o=n.consecutiveUnfilledBeforeGoogleExclusion;o!=null&&t.consecutiveUnfilledCount>=o&&(t.excludeGpt=!0);let c=t.consecutiveUnfilledCount===1?(i=n.firstUnfilledRetryTime)==null?ea:i:(a=n.refreshBlockTime)==null?ta:a,l=setTimeout(()=>{t.unfilledRetryTimeout===l&&(t.unfilledRetryTimeout=null,t.refreshLocked=!1,s(W,this,Oa).call(this,e,t))},c);t.unfilledRetryTimeout=l}function Da(e,t){let n=l(U,this).get(e);if(!(n==null||n.isExausted)){if(t)n.isVisible||(n.isVisible=!0,n.lastVisibilityUpdateTime=Math.round(performance.now()));else{n.isVisible&&(s(W,this,za).call(this,e,n),n.isVisible=!1,n.lastVisibilityUpdateTime=null,s(W,this,Ra).call(this,n));return}s(W,this,za).call(this,e,n),s(W,this,Oa).call(this,e,n)}}function Oa(e,t){var n;if(t.isExausted||t.refreshLocked)return;if(!s(W,this,ka).call(this)){l(ma,this).add(e);return}if(l(ha,this).requireMrcImpressionBeforeRefresh&&!Qi.includes(t.adUnitKey)&&!t.mrcImpressionReached){t.isVisible&&s(W,this,La).call(this,e,t);return}l(ma,this).delete(e),s(W,this,Ra).call(this,t);let{slotRefreshConfig:r}=s(W,this,ja).call(this,t.adUnitKey,e);if(t.refreshCount>=((n=r.refreshLimit)==null?na:n))return s(W,this,Va).call(this,e,t);t.refreshLocked=!0,t.refreshCount+=1,l(fa,this).sell(j(j({},t.sellParams),{},{adUnitKey:t.adUnitKey,divId:e,refreshCount:t.refreshCount}),{excludeGpt:t.excludeGpt})}function ka(){if(!l(Sa,this))return!1;let e=l(pa,this).getState();return[`active`,`passive`].includes(e)?!0:e===`hidden`&&!l(ha,this).refreshOnlyOnVisiblePage}function Aa(e,t,n,r){var i,a,o;let s=j({adUnitKey:e,consecutiveUnfilledCount:0,excludeGpt:!1,isExausted:!1,isVisible:!1,lastVisibilityUpdateTime:null,mrcImpressionReached:!1,refreshBlockTimeout:null,refreshCount:0,refreshLocked:!0,totalVisibleTime:0,unfilledRetryTimeout:null,visibilityPollingInterval:null},n),c=j(j(j({},l(ha,this)),r),(i=(a=l(la,this))==null?void 0:a[t])==null?(o=l(la,this))==null?void 0:o[e]:i);return l(U,this).set(t,s),l(ga,this).set(t,c),{slot:s,slotRefreshConfig:c}}function ja(e,t,n,r){let i=l(U,this).get(t),a=l(ga,this).get(t);return i!=null&&a!=null?{slot:i,slotRefreshConfig:a}:s(W,this,Aa).call(this,e,t,n,r)}function Ma(e,t){if(e===`gpt`)try{l(xa,this)||(window.googletag.pubads().addEventListener(`slotVisibilityChanged`,l(sa,this)),c(xa,this,!0)),s(W,this,Ia).call(this,t);return}catch(e){}s(W,this,Pa).call(this,t)}function Na(e){let t=e.slot.getSlotElementId();if(!l(U,this).has(t))return;let n=e.inViewPercentage>=50;s(W,this,Da).call(this,t,n)}function Pa(e){if(l(ba,this)!=null){s(W,this,Fa).call(this,e);return}typeof window>`u`||typeof IntersectionObserver>`u`||(c(ba,this,new IntersectionObserver(e=>{for(let t of e){let e=t.target.id;l(U,this).has(e)&&s(W,this,Da).call(this,e,t.isIntersecting)}},{root:null,rootMargin:`0px`,threshold:.5})),s(W,this,Fa).call(this,e))}function Fa(e){var t;let n=document.getElementById(e);n!=null&&((t=l(ba,this))==null||t.observe(n))}function Ia(e){var t;let n=document.getElementById(e);n!=null&&((t=l(ba,this))==null||t.unobserve(n))}function La(e,t){t.visibilityPollingInterval==null&&(t.visibilityPollingInterval=setInterval(()=>{if(t.isExausted||!t.isVisible||t.mrcImpressionReached){s(W,this,Ra).call(this,t);return}s(W,this,za).call(this,e,t),t.mrcImpressionReached&&(s(W,this,Ra).call(this,t),s(W,this,Oa).call(this,e,t))},l(ha,this).visibilityPollingTime))}function Ra(e){e.visibilityPollingInterval!=null&&(clearInterval(e.visibilityPollingInterval),e.visibilityPollingInterval=null)}function za(e,t){if(!t.isVisible||t.lastVisibilityUpdateTime==null)return;let n=Math.round(performance.now()),r=n-t.lastVisibilityUpdateTime;r>0&&(t.totalVisibleTime+=r,t.lastVisibilityUpdateTime=n),!(t.mrcImpressionReached||t.totalVisibleTime<ra)&&(t.mrcImpressionReached=!0,l(da,this).dispatch({EVENT_NAME:Zi,adUnitKey:t.adUnitKey,divId:e}))}function Ba(e){e.isVisible=!1,e.lastVisibilityUpdateTime=null,e.mrcImpressionReached=!1,e.totalVisibleTime=0,s(W,this,Ra).call(this,e)}function Va(e,t){t.isExausted||(t.isExausted=!0,this.unscheduleSlotRefresh(e))}function Ha(e){e.refreshBlockTimeout!=null&&(clearTimeout(e.refreshBlockTimeout),e.refreshBlockTimeout=null),e.unfilledRetryTimeout!=null&&(clearTimeout(e.unfilledRetryTimeout),e.unfilledRetryTimeout=null),s(W,this,Ra).call(this,e)}function Ua(){for(let e of l(ma,this)){let t=l(U,this).get(e);t!=null&&s(W,this,Oa).call(this,e,t)}}function Wa(){for(let[e,t]of l(U,this)){if(s(W,this,Ba).call(this,t),Qi.includes(t.adUnitKey)){t.isVisible=!0,t.lastVisibilityUpdateTime=Math.round(performance.now());continue}s(W,this,Ia).call(this,e),s(W,this,Fa).call(this,e)}}function Ga(e){for(let t of e.slots)this.unscheduleSlotRefresh(t.divId)}var Ka;window.__pubtech_queue_on_consent=window.__pubtech_queue_on_consent||[],window.__pubtech_queue_on_consent.push(function(e){e!=null&&(Ka=e)});var qa=new WeakMap,Ja=new WeakMap,Ya=new WeakMap,Xa=new WeakMap,Za=new WeakMap,Qa=new WeakMap,$a=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap,ro=new WeakSet,io=class{constructor({consentReader:e,contextManager:t,customProperties:n,disableAds:r,logger:i,navigationTrackingOptions:a,pageLifecycleManager:l,websiteId:u}){P(this,ro),o(this,qa,void 0),o(this,Ja,void 0),o(this,Ya,void 0),o(this,Xa,void 0),o(this,Za,void 0),o(this,Qa,void 0),o(this,$a,new Set),o(this,eo,void 0),o(this,to,void 0),o(this,no,[]),c(qa,this,e),c(Ja,this,t),c(to,this,A(n)),c(Ya,this,r),c(Xa,this,i),c(Za,this,j({spaRoute:!0,infiniteScroll:!1,bfcacheRestore:!0},a)),c(Qa,this,l),c(eo,this,u),s(ro,this,oo).call(this)}trackView(e){var t=this;return w(function*(){let n=(e==null?void 0:e.path)||document.location.pathname;l($a,t).has(n)||(l($a,t).add(n),!(yield ce(l(Ya,t)))&&(c(to,t,j(j({},l(to,t)),e==null?void 0:e.onDemandCustomProperties)),s(ro,t,ao).call(t,n)))})()}teardown(){for(let e of l(no,this))e();c(no,this,[])}};function ao(e){let t={w_id:l(eo,this),pn:e,wd:x(),sc:Se(),metrics:{pv:{v:1,metadata:j({consent:String(l(qa,this).hasUserAcceptedConsent()),consentApiUsed:l(qa,this).consentManagementApiUsed()},l(to,this))}},metadata:{product:`engine`}};typeof Ka==`string`&&(t.ct=Ka);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)),l(Xa,this).debug(`Sending a new page view request`,t)}catch(e){l(Xa,this).error(`Error while tracking the page view`,e)}}function oo(){let e=l(Za,this).bfcacheRestore,t=l(Za,this).infiniteScroll,n=l(Za,this).spaRoute;if(n||t){let e=l(Ja,this).on(`contextUpdated`,({context:e,navigationContext:r})=>{if(r===`spa-route`&&n){l($a,this).clear(),this.trackView({path:e.path,onDemandCustomProperties:{navigationContext:r}});return}r===`infinite-scroll`&&t&&this.trackView({path:e.path,onDemandCustomProperties:{navigationContext:r}})});l(no,this).push(e)}if(e){let e=l(Qa,this).on(`bfcacheRestore`,()=>{l($a,this).clear(),this.trackView({onDemandCustomProperties:{navigationContext:`bfcache-restore`}})});l(no,this).push(e)}}var so=`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)`,co=new Set([`VIP`,`O_INTERSTITIAL_G`]),lo=new Set([`O_SKIN`]),uo=[{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 fo(e){console.debug(`%cPubtech.ai Banner Debug`,so);let t=new Set,n=0;for(let r of Object.keys(e)){if(document.getElementById(r)!=null){t.add(r),lo.has(r)||n++;continue}co.has(r)&&t.add(r)}console.table([...t]);let r=po(n);console.debug(`%cNumero di banner in pagina: ${r.text}`,`color:${r.color};font-size: 14px;`)}function po(e){let t=uo.find(({minCount:t})=>e>=t);return t==null?uo[uo.length-1]:t}var mo=22;function ho({adUnitKey:e,element:t,otherBlocksToLabel:n,sizes:r,stableMinHeight:i}){var a,o;if((i==null?void 0:i.enabled)===!1||!go(e)||!(i==null||(a=i.excludeAdUnits)==null)&&a.includes(e))return;let s=vo(_o(e,n)?mo:0,r,(o=i==null?void 0:i.strategy)==null?`median`:o);s!=null&&(t.style.minHeight=`${s}px`)}function go(e){let t=e.toUpperCase();return![`O_`,`F_`,`S_`].some(e=>t.startsWith(e))}function _o(e,t){return e.includes(`C_`)||e.includes(`D_`)||e.includes(`B_`)||(t==null?void 0:t.includes(e))===!0}function vo(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=yo(r):n===`tallest`&&(i=Math.max(...r)),i==null?void 0:i+e}function yo(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 bo=new Set([`O_INTERSTITIAL`,`O_INTERSTITIAL_G`,`O_SKIN`]);function xo(e){console.debug(`%cFORMAT_PREVIEW_MODE ON`,`background: #E53935; padding: 2px 4px;`);for(let[t,n]of Object.entries(e)){if(bo.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 So=`/21832376849/TM_OnBoarding_TEST/TM_OnBoarding_TEST_`,Co=`TM_OnBoarding_TEST`;function wo(e){return console.debug(`%cTEST_FORMAT_MODE ON`,`background: #E53935; padding: 2px 4px;`,`every ad slot is requested on ${So}`),j(j({},e),{},{fullNameAd:So,slug:Co})}var To=`engine:beforeFlow`,Eo=`engine:afterFlow`,Do=Kr.init(),Oo=new fi,ko=new mr,G=new Et({logKey:`debug_engine`,label:`CORE`}),Ao=new m;window.__engine_inspection={buildId:`[develop]-[2026-10-29_14:26:16]`},window.ptechen=window.ptechen||{},window.ptechvip=window.ptechvip||{},window.ptechen.cmd=window.ptechen.cmd||[],Te(),De();function jo(e,t){return Mo.apply(this,arguments)}function Mo(){return Mo=w(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?Do:n,g=(r=t==null?void 0:t.contextManager)==null?Oo:r,_=(i=t==null?void 0:t.consentReader)==null?ko:i,v=new io({consentReader:_,contextManager:g,customProperties:(a=e.trackingOptions)==null?void 0:a.customProperties,disableAds:(o=e.execution)==null?void 0:o.disableAds,logger:G,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(j(j({},y),{},{titleObserver:b}));let x=new Promise(e=>{let t=_.onConsentReleased({onConsentCallback:n=>{setTimeout(()=>{t()},0),e(n)},attemptThreshold:100,once:!0})}),S=E();(f=e.execution)!=null&&f.waitDomReady&&(yield Ro()),(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 ce((m=e.execution)==null?void 0:m.disableAds)){G.warn(`Ads are disabled via execution config: the engine is not built. It will boot on the first virtual navigation where disableAds resolves false.`),No(C);return}yield Po(C)}),Mo.apply(this,arguments)}function No(e){let t=!1,n=e.pageLifecycleManager.on(`virtualPageLoad`,()=>{if(t)return;function r(){return i.apply(this,arguments)}function i(){return i=w(function*(){var r;(yield ce((r=e.config.execution)==null?void 0:r.disableAds))||t||(t=!0,n(),yield Po(e))}),i.apply(this,arguments)}r().catch(e=>{G.error(`Deferred engine boot failed:`,e)})})}function Po(e){return Fo.apply(this,arguments)}function Fo(){return Fo=w(function*({config:e,consentReader:t,consentReady:n,contextManager:r,device:i,pageLifecycleManager:a,viewTracker:o}){var s,c,l,u,d,f,p,m,h,g,_,v;let y=ge(`format_preview`),b=ge(`debug_format`);!y&&!b&&(yield o.trackView());let x=b?wo(e.website):e.website,S=new Si(G),C=He(e.sizeMapping),T=(s=e.googlePublisherTagProvider)==null?void 0:s.call(e,{contextManager:r,eventDispatcher:S,consentReader:t,divIdToAdUnitKeyMapping:(c=e.adInventoryConfig)==null?void 0:c.divIdToAdUnitKeyMapping,getAdUnitSizes:C.getAdUnitSizes,overridePrefixFullNameAd:b?x.fullNameAd:void 0,siteCategory:x.siteCategory}),E=yield n,D;try{var te,ne;yield xe();let n=e.prebidAdapterProvider&&!b?yield ce(e.prebidAdapterProvider):void 0;D=n==null?void 0:n({consentReader:t,consentManagementType:E.consentManagementType,contextManager:r,customFloorModelGroups:e.customFloorModelGroups,customFloorModelVersion:e.customFloorModelVersion,customFloorValues:e.customFloorPriceValues,device:i,deviceForSSP:ee(),divIdToAdUnitKeyMapping:(te=e.adInventoryConfig)==null?void 0:te.divIdToAdUnitKeyMapping,domain:x.websiteDomain,eventDispatcher:S,fullNameAd:(ne=x.fullNameAd)==null?``:ne,sizeMappingRegistry:C,logger:G,pageLifecycleManager:a,personalizedAds:E.personalizedAds,sellerId:x.sellerId,websiteId:x.websiteId,websiteSlug:x.slug}),yield xe()}catch(e){G.error(`Failed to initialize PrebidAdapter:`,e)}let O=new Yi(e.disposableAdSlots),re=new Wt({gpt:T,prebidAdapter:D,eventDispatcher:S,divIdToAdUnitKeyMapping:(l=e.adInventoryConfig)==null?void 0:l.divIdToAdUnitKeyMapping,pageLifecycleManager:a,batchSelling:e.batchSelling,timeout:!1,onAdSlotSell:e=>O.registerAdSlot(e),isAdvDisabled:()=>O.isAdvDisabled()}),k=new Ca({adUnitsExcludedFromRefresh:(u=e.autoRefreshOptions)==null?void 0:u.adUnitsExcludedFromRefresh,config:(d=e.autoRefreshOptions)==null?void 0:d.config,contextManager:r,customAdUnitRefreshConfigMap:(f=e.autoRefreshOptions)==null?void 0:f.customAdUnitRefreshConfigMap,disableAutoRefresh:(p=e.autoRefreshOptions)==null?void 0:p.disableAutoRefresh,monetizationManager:re,eventDispatcher:S,pageLifecycleManager:a}),ie=new Ri({monetizationManager:re,eventDispatcher:S,logger:G,observerRootMargin:e.lazyLoadingRootMargin});S.subscribe({eventName:We,subscriberName:`Engine`,callback:t=>{var n;let r=t.adUnitKey,i=_o(r,(n=e.adInventoryConfig)==null?void 0:n.otherBlocksToLabel);if(Be(C.getAdUnitSizes(t.adUnitKey))&&i){let e=document.getElementById(t.adUnitKey);e!=null&&e.classList.add(`advblockshown`)}}});let ae={config:e,consentReader:t,contextManager:r,eventDispatcher:S,gpt:T,lazyLoader:ie,logger:G,monetizationManager:re,pageLifecycleManager:a,prebidAdapter:D,refreshApi:{expediteSlotRefresh:k.expediteSlotRefresh.bind(k),isMrcReached:k.isMrcReached.bind(k),teardown:k.teardown.bind(k),unscheduleSlotRefresh:k.unscheduleSlotRefresh.bind(k),whenMrcReached:k.whenMrcReached.bind(k)},adSlotLifecycleApi:{isAdSlotDisposableOnVirtualNavigation:O.isAdSlotDisposableOnVirtualNavigation.bind(O),setAdSlotAsDisposableOnVirtualNavigation:O.setAdSlotAsDisposableOnVirtualNavigation.bind(O),isAdSlotSelfManaged:O.isAdSlotSelfManaged.bind(O),setAdSlotAsSelfManaged:O.setAdSlotAsSelfManaged.bind(O),isAdvDisabled:O.isAdvDisabled.bind(O)},scriptLoader:Ao,sizeMappingApi:C};function oe(){return se.apply(this,arguments)}function se(){return se=w(function*(){var t;(yield ce((t=e.execution)==null?void 0:t.disableAds))?O.lockSell({gpt:T,monetizationManager:re,prebidAdapter:D,refreshManager:k}):O.unlockSell()}),se.apply(this,arguments)}if(yield oe(),e.compilePlugins&&!y){var A;let t=new Et({logKey:`debug_engine`,label:`COMPILE_PLUGINS`}),n=Xn(e.compilePlugins,j(j({},ae),{},{device:i,domain:x.websiteDomain,fullNameAd:(A=x.fullNameAd)==null?``:A,isDesktop:i===`desktop`,isMobile:i===`mobile`,isTablet:i===`tablet`,sellerId:x.sellerId}),S,t);n.length>0&&qn(n,S,t)}if(je({ctx:ae,device:i,isDesktop:i===`desktop`,isMobile:i===`mobile`,isTablet:i===`tablet`}),Ee(),yield xe(),typeof((m=e.hooks)==null?void 0:m.beforeFlow)==`function`)try{e.hooks.beforeFlow(ae)}catch(e){G.error(`Before flow hook error:`,e)}if(ge(`banner_debug`)&&fo(C.getSizeMapping(i)),y){xo(C.getSizeMapping(i));return}if(S.dispatch({EVENT_NAME:To,type:`standard`}),Io({customInstantSlotToSell:(h=e.adInventoryConfig)==null?void 0:h.customInstantSlotToSell,device:i,otherBlocksToLabel:(g=e.adInventoryConfig)==null?void 0:g.otherBlocksToLabel,stableMinHeight:(_=e.adInventoryConfig)==null?void 0:_.stableMinHeight,isAdSlotSelfManaged:O.isAdSlotSelfManaged.bind(O),lazyLoader:ie,monetizationManager:re,sizeMappingRegistry:C}),S.dispatch({EVENT_NAME:Eo,type:`standard`}),typeof((v=e.hooks)==null?void 0:v.afterFlow)==`function`)try{e.hooks.afterFlow(ae)}catch(e){G.error(`After flow hook error:`,e)}function le(e){return ue.apply(this,arguments)}function ue(){return ue=w(function*(t){var n,r,a,o,s;if(yield oe(),t.type===`bfcache-restore`?O.resetSoldAdSlots({gpt:T,monetizationManager:re,prebidAdapter:D,refreshManager:k},e=>C.getSizeMapping(i)[e]!=null&&document.getElementById(e)!=null):O.disposeAdSlots(t.type,{gpt:T,monetizationManager:re,prebidAdapter:D,refreshManager:k}),t.type!==`infinite-scroll`&&(D==null||D.removeUserSyncs()),yield xe(),typeof((n=e.hooks)==null?void 0:n.beforeVirtualFlow)==`function`)try{e.hooks.beforeVirtualFlow(j(j({},ae),{},{virtualPageContext:t}))}catch(e){G.error(`Before virtual flow hook error:`,e)}else G.warn(`No beforeVirtualFlow hook provided, skipping.`);if(S.dispatch({EVENT_NAME:To,type:`virtual`,url:t.url,virtualNavigationType:t.type}),Io({customInstantSlotToSell:(r=e.adInventoryConfig)==null?void 0:r.customInstantSlotToSell,device:i,otherBlocksToLabel:(a=e.adInventoryConfig)==null?void 0:a.otherBlocksToLabel,stableMinHeight:(o=e.adInventoryConfig)==null?void 0:o.stableMinHeight,isAdSlotSelfManaged:O.isAdSlotSelfManaged.bind(O),lazyLoader:ie,monetizationManager:re,sizeMappingRegistry:C,refreshManager:k,virtualNavigationType:t.type}),S.dispatch({EVENT_NAME:Eo,type:`virtual`,url:t.url,virtualNavigationType:t.type}),typeof((s=e.hooks)==null?void 0:s.afterVirtualFlow)==`function`)try{e.hooks.afterVirtualFlow(j(j({},ae),{},{virtualPageContext:t}))}catch(e){G.error(`After virtual flow hook error:`,e)}else G.warn(`No afterVirtualFlow hook provided, skipping.`)}),ue.apply(this,arguments)}a.on(`virtualPageLoad`,e=>{le(e)}),a.on(`bfcacheRestore`,()=>{le({url:window.location.href,type:`bfcache-restore`})}),Oe({ctx:ae,device:i,isDesktop:i===`desktop`,isMobile:i===`mobile`,isTablet:i===`tablet`})}),Fo.apply(this,arguments)}function Io({customInstantSlotToSell:e,device:t,isAdSlotSelfManaged:n,lazyLoader:r,monetizationManager:i,otherBlocksToLabel:a,sizeMappingRegistry:o,refreshManager:s,stableMinHeight:c,virtualNavigationType:l}){let u=Lo(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=A(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 Lo(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=Ne(o,e);c.length>0&&t.setAdUnitSizes(s,c),ho({adUnitKey:s,element:o,otherBlocksToLabel:n,sizes:a[s],stableMinHeight:r})}return i}function Ro(){return new Promise(e=>{document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,()=>e(),{once:!0}):e()})}var zo=300,Bo=1300,Vo={desktop:{F_D:{containerHeight:100}},tablet:{F_D:{containerHeight:100}},mobile:{F_M:{containerHeight:100}}};function Ho({sizeMapping:e,anchorSlotContainerSelector:t,closeButton:n=!0,enableRefreshOnInfiniteScroll:r=!1,floorAdDesktopBg:i=`transparent`,scaleIframeConfig:a=Vo,scaleIframeOnPostInjection:o=!1,transformFloorAdToAnchorSlot:s=!1}){let c=new Et({logKey:`debug_engine`,label:`FLOOR_AD_PLUGIN`});return l=>{let u=l.isMobile?`F_M`:`F_D`,d=l.isMobile?e.mobile:e.desktop,f=`floorad-container`;if(!d)return null;l.sizeMappingApi.addSizeMaps(u,e),l.adSlotLifecycleApi.setAdSlotAsSelfManaged(u);let p;r&&l.eventDispatcher.subscribe({eventName:To,subscriberName:`floorAdInfiniteScrollRefresh`,callback:e=>{if(e.type===`virtual`&&e.virtualNavigationType===`infinite-scroll`&&!l.adSlotLifecycleApi.isAdvDisabled()&&document.getElementById(f)!=null){if(!l.refreshApi.isMrcReached(u)){c.debug(`Infinite scroll: the impression on screen is not viewable yet, leaving it alone`);return}c.debug(`Infinite scroll: expediting the floor ad refresh`),l.refreshApi.expediteSlotRefresh(u,u)}}});function m(){l.monetizationManager.sell({adUnitKey:u,divId:u,refreshCount:0})}function h(){if(document.getElementById(f)!=null){c.debug(`Floor ad bar already in place, skipping setup`);return}let e=document.getElementById(u);e==null&&(e=document.createElement(`div`),e.id=u);let r=document.createElement(`div`);if(r.id=f,l.isMobile?r.classList.add(`mobile-container`):(r.classList.add(`desktop-container`),r.style.setProperty(`--floorad-desktop-bg`,`${i}`)),r.appendChild(e),n){let e=document.createElement(`div`);e.id=`floorad-no-click`;let t=document.createElement(`div`);t.id=`floorad-close-button`;let n=document.createElement(`span`);n.id=`floorad-close-button-text`,n.innerText=`X`,l.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=w(function*(){yield xe(),g()});function t(){return e.apply(this,arguments)}return t}()),t.appendChild(n),r.appendChild(e),r.appendChild(t)}if(s){c.debug(`Anchor slot with selector: ${t}`);let e=document.querySelector(t);e==null?(c.debug(`Anchor slot container not found, enable bottom floor-ad`),r.classList.add(`bottom-slot`),document.body.appendChild(r)):(c.debug(`Anchor slot container found`,e),r.classList.add(`anchor-slot`),e.appendChild(r))}else r.classList.add(`bottom-slot`),document.body.appendChild(r);o&&(l.sizeMappingApi.addSizeMaps(`F_D`,{desktop:{F_D:[[990,250],[970,250]]},tablet:{F_D:[[990,250],[970,250]]}}),l.sizeMappingApi.addSizeMaps(`F_M`,{mobile:{F_M:[[990,250],[970,250],[728,90]]}}),zn({adUnitSizeConfig:a,logger:c,isOnPostInjection:!0,device:l.device}),c.debug(`Scale iframe enabled on post injection with config:`,a)),m(),p==null||p.unsubscribe(),p=l.eventDispatcher.subscribe({eventName:We,subscriberName:`floorAdPluginSubscriber`,callback:e=>{if(e.adUnitKey!==u)return;let t=document.getElementById(f);if(t==null||t.classList.contains(`rendered-floorad`))return;let n=!0,r=l.isMobile?Bo:zo;setTimeout(w(function*(){if(l.prebidAdapter!=null&&l.isMobile)try{(yield l.prebidAdapter.getAllWinningBids()).forEach(e=>{e.status===`rendered`&&e.bidder===`seedtag`&&e.adUnitCode===`F_M`&&document.getElementById(`inScreen`)!=null&&(n=!1)})}catch(e){c.error(`Error while getting winning bids from Prebid Adapter:`,e)}if(!n)return;let e=document.getElementById(f);e!=null&&e.classList.add(`rendered-floorad`)}),r)}})}function g(){var e;p==null||p.unsubscribe(),p=void 0,l.refreshApi.unscheduleSlotRefresh(u),(e=document.getElementById(f))==null||e.remove()}return{pluginName:`floorAd`,onDisableAds:g,softTeardown:e=>{if(document.getElementById(f)!=null){if(e===`bfcache-restore`){g();return}if(l.refreshApi.isMrcReached(u)){g();return}return l.refreshApi.whenMrcReached(u).then(g)}},run(e){c.debug(`Running floorAd plugin for ${l.isMobile?`mobile`:`desktop`} with ad unit key ${u} and sizes:`,d),be(Gn),h(),e({type:`completed`,onVirtualNavigationHook:{position:To,run:h}})}}}}var Uo=`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 Wo(e,t){var n;let r=parseInt((n=ue(e))==null?``:n),i=1;isNaN(r)||(i=r+1),de(e,i,t,void 0)}function Go({cookieName:e,frequency:t,disabled:n}){var r;if(n)return!1;let i=Number((r=ue(e))==null?``:r);return!isNaN(i)&&i>=t}function Ko(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 qo=11e3,Jo=1e3;function Yo({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 u=new Et({logKey:`debug_interstitial`,label:`INTERSTITIAL`});u.debug(`Starting..`);let d=ge(`debug_interstitial`),f=he(`google_preview`);f&&u.debug(`Google preview: no interstitial capping`);let p=o||f,m=l;return Go({cookieName:n,frequency:r,disabled:p})?(u.debug(`Capping limit reached at factory time, plugin opts out`),()=>null):o=>{let l=null,h=!1,g,_=[],v,y,b=0,x=null,C=()=>{let e=_;_=[];for(let t of e)t()},T=()=>{var t;g!==void 0&&(clearInterval(g),g=void 0),y!==void 0&&(clearTimeout(y),y=void 0),C(),(t=document.getElementById(e))==null||t.remove();try{document.body.classList.remove(`ptech-filled-interstitial`)}catch(e){u.debug(e)}},E=()=>{let t=(e,t)=>{try{t()}catch(t){u.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))},ee=()=>{b++,l!=null&&(window.removeEventListener(`scroll`,l),l=null),v!==void 0&&(clearTimeout(v),v=void 0),E(),T()};return{pluginName:`interstitial`,onDisableAds:ee,softTeardown:t=>{if(t===`bfcache-restore`){ee(),x==null||x(`closed by a bfcache restore`);return}if(document.getElementById(e)==null||g===void 0){ee(),x==null||x(`interrupted by a virtual navigation`);return}return new Promise(e=>{_.push(e)}).then(()=>{ee(),x==null||x(`interrupted by a virtual navigation`)})},run(_){be(Uo);let E=()=>{p||Wo(n,i)},ee=({interstitialLayerTimeout:n})=>{if(document.getElementById(`ovmcnt`)!=null){u.debug(`Reservation detected, skipping close rendering`);return}let r=document.getElementById(e);if(r==null){u.debug(`Interstitial container missing, cannot setup close rendering`);return}try{document.body.classList.add(`ptech-filled-interstitial`)}catch(e){u.debug(e)}r.classList.add(`pt-filled`),r.removeAttribute(`style`);let i=document.createElement(`div`);i.id=`cont-close-interstitial`;try{S()===window.screen.height&&navigator.userAgent.match(/instagram/i)&&i.classList.add(`top-large`)}catch(e){u.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=()=>T();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),g=void 0,o.remove(),i.appendChild(a),a.focus(),C()):o.innerHTML=String(s)},Jo);g=c;let l=document.createElement(`div`);l.id=`oIntLayer`,l.onclick=e=>{u.debug(`Layer prevented unintentional click`),e.preventDefault(),e.stopPropagation()},setTimeout(()=>{u.debug(`Removing click-protection layer`),l.remove()},n),r.appendChild(l),!f&&!d?y=setTimeout(()=>{y=void 0,document.getElementById(e)===r&&(u.debug(`Auto-closing interstitial after timeout`),T())},qo):u.debug(`Debug or Google preview enabled: skipping auto-close`)},D=t=>({enginePluginContext:o,adUnitKey:e,logger:u,isGooglePreview:f,isDebug:d,setCappingCookie:E,setupCloseRendering:e=>{if(t!==b){u.debug(`Ignoring close rendering asked for by a superseded interstitial cycle`);return}ee(e)},closeInterstitial:()=>{if(t!==b){u.debug(`Ignoring close asked for by a superseded interstitial cycle`);return}T()}}),te=(e,t)=>{h||(h=!0,_({type:`completed`,deliveryStatus:t,message:e,onVirtualNavigationHook:{position:Eo,run:e=>{if(e!=`infinite-scroll`){if(Go({cookieName:n,frequency:r,disabled:p})){u.debug(`Skipping virtual interstitial chain due to capping limit`);return}O(!1)}}}}))};x=te;let ne=function(){var t=w(function*(t){let i=b,a=D(i),o=!1,s=(e,n)=>{o||(o=!0,u.debug(`Interstitial chain finished: ${e}`),window.dispatchEvent(new Event(`pubtech_interstitial_done`)),t&&te(e,n))};Ko(e);for(let e of m){if(i!==b){s(`superseded by a newer interstitial cycle`);return}if(!e.canRun(a)){u.debug(`Skipping provider "${e.name}" — canRun returned false`);continue}if(Go({cookieName:n,frequency:r,disabled:p})){s(`capping limit reached mid-chain`,`no-fill`);return}u.debug(`Running provider "${e.name}"`);let t;try{t=yield e.execute(a)}catch(t){u.debug(`Provider "${e.name}" threw: ${String(t)}`);continue}if(i!==b){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){u.debug(`Provider "${e.name}" errored: ${t.error}`);continue}u.debug(`Provider "${e.name}" returned empty, advancing chain`)}s(`all providers exhausted`,`no-fill`)});return function(e){return t.apply(this,arguments)}}(),O=e=>{let t=()=>{l!=null&&(window.removeEventListener(`scroll`,l),l=null)},n=()=>{if(window.scrollY>=s){t(),u.debug(`Scroll threshold already met, starting chain`),ne(e);return}if(l!=null){u.debug(`Scroll listener already active, skipping duplicate registration`);return}u.debug(`Awaiting scroll threshold before starting chain`),l=()=>{window.scrollY<s||(t(),ne(e))},window.addEventListener(`scroll`,l)};if(c){n();return}ne(e)};a!=null&&a>0&&!f?(u.debug(`Interstitial delay set, waiting ${a}s before starting chain`),v=setTimeout(()=>O(!0),a*1e3)):O(!0)}}}}var Xo=`https://stg-floor-provider.pubtech.ai`;function Zo({device:e,websiteId:t}){if(typeof fetch!=`function`)return null;let n=`${Xo}/${t}_${e}.json`,r=performance.now(),i=fetch(n,{credentials:`omit`});return i.catch(()=>{}),{response:i,startedAt:r,url:n}}var Qo=`__engine_prebid_ready__`,$o=`https://ads.talkscreativity.com/assets/publisher/giornaledibresciait/prebid.BlR0FuY8.js`,es=3;function ts(e={}){let t=e.dynamicFloors==null?null:Zo({device:E(),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),!as(n)){i(Error(`[Engine] Prebid provider received via event is not a function`));return}e(t==null?n.detail:ns(n.detail,t))},o=()=>{n.attempt+=1;let e=ss();r=e,e.onerror=t=>{if(n.lastError=rs(t),e.parentNode!=null&&e.parentNode.removeChild(e),n.attempt>=es){document.removeEventListener(Qo,a),i(Error(`[Engine] Failed to load prebid bundle: `+e.src+` - `+n.lastError+` (attempts: `+n.attempt+`)`));return}if(n.lastError===`ERR_NET_OFFLINE`){os().then(o);return}o()},document.head.appendChild(e)};document.addEventListener(Qo,a,{once:!0}),o()})}function ns(e,t){return n=>e(j(j({},n),{},{dynamicFloorsRequest:t}))}function rs(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 is(e){return typeof e==`function`}function as(e){return e instanceof CustomEvent&&is(e.detail)}function os(){return navigator.onLine?Promise.resolve():new Promise(e=>{window.addEventListener(`online`,()=>{e()},{once:!0})})}function ss(){let e=document.createElement(`script`);return e.src=$o,e.async=!0,e}var cs=`//cdn.nativery.com/widget/js/nat.js`,ls=1500,us=`nativeryHasNoAds`;function ds({nativeryId:e}){return{name:`nativery`,canRun(t){return t.isGooglePreview?(t.logger.debug(`Google preview: skipping Nativery provider`),!1):t.enginePluginContext.isMobile&&e!==``&&e!=null},execute(t){return new Promise(n=>{var r,i;t.logger.debug(`Loading Nativery interstitial`),window._nat=(r=window._nat)==null?[]:r,window._nat.push([`id`,e]);let a=`nat_`+e,o=document.createElement(`div`);o.id=a,document.body.appendChild(o);let s=!1,c=e=>{if(!s){if(s=!0,window.removeEventListener(us,l),!(`served`in e)||e.served!==!0){var t;(t=document.getElementById(a))==null||t.remove()}n(e)}};function l(n){var r;String((r=n.detail)==null?void 0:r.widgetId)===String(e)&&(t.logger.debug(`Nativery has no ads`),c({served:!1,empty:!0}))}window.addEventListener(us,l);let u=document.createElement(`script`);u.src=cs,u.async=!0,u.onload=()=>{setTimeout(()=>{if(s)return;let e=document.getElementById(t.adUnitKey),n=document.getElementById(a);if(n!=null&&n.innerHTML!==``&&e!=null){t.logger.debug(`Nativery rendered, attaching to interstitial container`);let r=document.createElement(`div`);r.appendChild(n),e.innerHTML=``,e.setAttribute(`data-intro`,`nativery`),e.appendChild(r),t.setCappingCookie(),t.setupCloseRendering({interstitialLayerTimeout:10}),c({served:!0});return}t.logger.debug(`Nativery did not render in time`),c({served:!1,empty:!0})},ls)},u.onerror=()=>{t.logger.debug(`Nativery script failed to load`),c({served:!1,error:`Nativery script failed to load`})},((i=document.head)==null?document.getElementsByTagName(`head`)[0]:i).appendChild(u)})}}}function fs({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 ps(){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 ms(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 hs={desktop:3,mobile:2,tablet:4},gs=`it`;function _s(e,t){return`&url=${encodeURIComponent(window.location.href)}&hl=${vs()}&dth=${hs[e]}&ppid=${encodeURIComponent(Qe())}&wta=1`+(t==null?``:`&vconp=${t}`)}function vs(){var e;let t=((e=document.documentElement.lang)==null?``:e).split(`-`)[0].trim().toLowerCase();return/^[a-z]{2,3}$/.test(t)?t:gs}var ys=new WeakMap,bs=new WeakMap,xs=new WeakMap,Ss=new WeakMap,Cs=new WeakMap,ws=new WeakMap,K=new WeakMap,Ts=new WeakMap,Es=new WeakMap,Ds=new WeakMap,Os=new WeakMap,ks=new WeakMap,As=new WeakMap,js=new WeakMap,Ms=new WeakMap,Ns=new WeakMap,Ps=new WeakMap,Fs=new WeakMap,Is=new WeakMap,Ls=new WeakMap,q=new WeakSet,Rs=class{constructor(e){P(this,q),o(this,ys,void 0),o(this,bs,void 0),o(this,xs,void 0),o(this,Ss,void 0),o(this,Cs,void 0),o(this,ws,void 0),o(this,K,void 0),o(this,Ts,void 0),o(this,Es,void 0),o(this,Ds,`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=`),o(this,Os,void 0),o(this,ks,void 0),o(this,As,void 0),o(this,js,void 0),o(this,Ms,void 0),o(this,Ns,void 0),o(this,Ps,void 0),o(this,Fs,void 0),o(this,Is,0),o(this,Ls,new Map),c(ys,this,e.adPlayLimit),c(bs,this,e.enginePluginContext.device),c(xs,this,e.enginePluginContext.fullNameAd),c(Ss,this,e.getTargeting),c(Cs,this,e.enginePluginContext.adSlotLifecycleApi.isAdvDisabled),c(ws,this,e.isMnPlayerScriptLoaded),c(K,this,e.logger),c(Ts,this,e.plcmtParameter),c(Es,this,e.enginePluginContext.prebidAdapter),c(Os,this,e.refreshLimit),c(ks,this,e.refreshOnClose),c(As,this,e.runOnEnd),c(js,this,e.scriptLoader),c(Ms,this,e.skipVideoUpr),c(Ns,this,e.vconpParameter),c(Ps,this,e.videoTargeting),c(Fs,this,e.vtrTargeting)}init({embedElement:e,playerConfig:t,videoContainerId:n}){var r;let i=e.getAttribute(`data-url`);if(i==null||i===``){l(K,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 o=e.getAttribute(`data-default-subtitle`),u=a.length>0;c(Is,this,(r=l(Is,this),r++,r));let d=n||`pubtechvideo-player-${l(Is,this)}`,f={adStartCount:0,containerId:d,isDisposed:!1,isEnded:!1,mnPlayerConfig:t==null?{}:t,mnPlayerInstance:null,refreshCount:0,subtitles:{defaultSubtitle:o,enableSubtitles:u,subtitleTrackList:a},thumbUrl:e.getAttribute(`data-thumb`),videoUrl:i};l(Ls,this).set(d,f);let p=document.createElement(`div`);p.id=d,Ce(e,p),s(q,this,Bs).call(this,f)}teardown(){for(let e of l(Ls,this).values())s(q,this,zs).call(this,e);l(Ls,this).clear()}};function zs(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 Bs(e){var t=this;return w(function*(){if(!l(Cs,t).call(t)&&!e.isDisposed){if(e.refreshCount++,e.vast=s(q,t,Vs).call(t,e.refreshCount),l(Es,t)){let n={adUnitKey:`PREROLL`,placement:l(Ts,t),vast:e.vast};yield l(Es,t).buildVideoVast(n,(n,r)=>{e.isDisposed||(e.reportImpression=r,s(q,t,Hs).call(t,{playerContext:e,vast:n}))},l(K,t));return}e.reportImpression=void 0,s(q,t,Hs).call(t,{playerContext:e,vast:e.vast})}})()}function Vs(e){if(ge(`preview_video`))return l(K,this).debug(`Preview video`),l(Ds,this);let t=[],n=``;if(window.googletag!=null&&typeof window.googletag.getConfig==`function`){var r,i,a,o,s,c,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=(c=(u=e.targeting)==null?void 0:u.sectionsTargeting)==null?(d=e.targeting)==null?void 0:d.section:c)==null?[]:s}if(typeof l(Ss,this)==`function`){var f,p;let e=l(Ss,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;return`https://pubads.g.doubleclick.net/gampad/ads?iu=${l(xs,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=${l(Ts,this)}&vpos=preroll`+_s(l(bs,this),l(Ns,this))+`&cust_params=${l(Ps,this)}%3D`+encodeURIComponent(m)+`%26pagina%3D${h}`+l(Ms,this)+`%26refresh%3D${e}`+l(Fs,this)}function Hs({playerContext:e,vast:t}){if(!e.isDisposed){if(e.mnPlayerInstance!=null){l(K,this).debug(`MnPlayer instance is defined, start adv library`),e.mnPlayerInstance.startAdvLibrary(t,!0);return}if(l(K,this).debug(`MnPlayer instance is null, setting configs and load player`),l(ws,this)){var n;l(K,this).debug(`Push loadMnPlayer to the player queue`),(n=window.mnPlayerQueue)==null||n.queue.push(()=>s(q,this,Us).call(this,{playerContext:e,vast:t}));return}l(K,this).debug(`Call loadMnPlayer when script will be ready`),l(js,this).onReadyScript(`mn-player`,()=>{var n;(n=window.mnPlayerQueue)==null||n.queue.push(()=>s(q,this,Us).call(this,{playerContext:e,vast:t}))})}}function Us({playerContext:e,vast:t}){if(e.isDisposed)return;let n=j({adTagUrl:t,appendTo:`div#${e.containerId}`,autoPlay:!0,behavior:`incontent`,onPlayerReady:t=>{s(q,this,Ws).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);l(K,this).debug(`MnPlayer is ready`),e.mnPlayerInstance=window.loadMnPlayer(n)}function Ws({playerContext:e,playerEventManager:t}){l(K,this).debug(`Define MnPlayer events`),t.on(`AD_CLOSED`,()=>{l(K,this).debug(`MnPlayer AD_CLOSED`),s(q,this,Gs).call(this,e)}),t.on(`AD_LOADED`,()=>{l(K,this).debug(`MnPlayer AD_LOADED`)}),t.on(`AD_STARTED`,()=>{l(K,this).debug(`MnPlayer AD_STARTED`),e.adStartCount++}),t.on(`AD_IMPRESSION`,t=>{var n;l(K,this).debug(`MnPlayer AD_IMPRESSION`,t),!e.isDisposed&&((n=e.reportImpression)==null||n.call(e,t))}),t.on(`AD_ERROR`,t=>{l(K,this).debug(`MnPlayer AD_ERROR`,t),!e.isDisposed&&(e.isEnded=!0,typeof l(As,this)==`function`&&l(As,this).call(this,e.adStartCount===0),l(K,this).debug(`Dispatch video done event`),window.dispatchEvent(new Event(`pubtech_video_done`)))}),t.on(`ALL_ADS_COMPLETED`,()=>{l(K,this).debug(`MnPlayer ALL_ADS_COMPLETED`),s(q,this,Gs).call(this,e)}),t.on(`PLAYER_CLOSED`,()=>{l(K,this).debug(`MnPlayer PLAYER_CLOSED`),!(e.isDisposed||e.isEnded)&&(l(ks,this)?s(q,this,Gs).call(this,e):s(q,this,Ks).call(this,e))})}function Gs(e){if(!e.isDisposed){if(e.adStartCount>=l(ys,this)||e.refreshCount>l(Os,this)){s(q,this,Ks).call(this,e);return}l(K,this).debug(`Start adv refresh`),e.timeout=setTimeout(()=>{s(q,this,Bs).call(this,e)},500)}}function Ks(e){l(K,this).debug(`MnPlayer done, call handle video content resume`),e.mnPlayerInstance!=null&&e.mnPlayerInstance.handleVideoContentResume(),e.isEnded=!0,typeof l(As,this)==`function`&&l(As,this).call(this,e.adStartCount===0),l(K,this).debug(`Dispatch video done event`),window.dispatchEvent(new Event(`pubtech_video_done`))}function qs(e){ps();let t=new Et({logKey:`debug_video`,label:`PREROLL`}),n=m.getInstance(),r=!1;return document.querySelector(`script[src*="talkscreativity.com/assets/product/mn-player"]`)==null?ms(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=A(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:To,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:A(e.playerConfig)});return t}}});let n=h;h=[];for(let e of n)e()},_=A(e.vconpParameter);l=new Rs({adPlayLimit:(u=e.adPlayLimit)==null?1:u,enginePluginContext:i,getTargeting:e.getTargeting,isMnPlayerScriptLoaded:r,logger:t,plcmtParameter:(d=A(e.plcmtParameter))==null?1:d,refreshLimit:(f=A(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:A(e.playerConfig)})}}}}function Js({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:()=>{Ys({logger:t,vipInstance:r})},on_error:()=>{Xs({logger:t,vipInstance:r})},on_no_ad:()=>{Xs({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:()=>{Ys({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 Ys({logger:e,vipInstance:t}){e.debug(`Called ogury on_ad_complete`),t.updateAdStartCount(),t.refreshVideo()}function Xs({logger:e,vipInstance:t}){e.debug(`Called ogury on_no_ad/on_error, refresh video`),t.refreshVideo()}function Zs({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)}var Qs=new WeakMap,$s=new WeakMap,ec=new WeakMap,J=new WeakMap,tc=new WeakMap,nc=new WeakMap,rc=new WeakMap,Y=new WeakMap,ic=new WeakMap,ac=new WeakMap,oc=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,X=new WeakMap,bc=new WeakMap,xc=new WeakMap,Sc=new WeakMap,Cc=new WeakMap,Z=new WeakMap,wc=new WeakMap,Tc=new WeakMap,Q=new WeakMap,Ec=new WeakMap,Dc=new WeakMap,$=new WeakSet,Oc=class{constructor(e){P(this,$),o(this,Qs,void 0),o(this,$s,void 0),o(this,ec,void 0),o(this,J,void 0),o(this,tc,void 0),o(this,nc,void 0),o(this,rc,void 0),o(this,Y,void 0),o(this,ic,void 0),o(this,ac,void 0),o(this,oc,void 0),o(this,sc,void 0),o(this,cc,void 0),o(this,lc,`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=`),o(this,uc,void 0),o(this,dc,void 0),o(this,fc,void 0),o(this,pc,void 0),o(this,mc,void 0),o(this,hc,void 0),o(this,gc,void 0),o(this,_c,void 0),o(this,vc,void 0),o(this,yc,0),o(this,X,0),o(this,bc,[]),o(this,xc,[]),o(this,Sc,!1),o(this,Cc,!1),o(this,Z,null),o(this,wc,0),o(this,Tc,500),o(this,Q,0),o(this,Ec,void 0),o(this,Dc,void 0),c(Qs,this,e.adPlayLimit),c($s,this,e.enginePluginContext.device),c(ec,this,e.getTargeting),c(J,this,e.injectedBannerPluginApi),c(tc,this,e.enginePluginContext.adSlotLifecycleApi.isAdvDisabled),c(nc,this,e.isMnPlayerScriptLoaded),c(rc,this,e.enginePluginContext.isMobile),c(Y,this,e.logger),c(ic,this,e.otherVipConfig),c(ac,this,e.playerConfig),c(oc,this,e.playerPosition),c(sc,this,e.plcmtParameter),c(cc,this,e.enginePluginContext.prebidAdapter),c(uc,this,e.refreshLimit),c(dc,this,e.refreshOnClose),c(fc,this,e.runOnEnd),c(pc,this,e.scriptLoader),c(mc,this,e.enginePluginContext.sellerId),c(hc,this,e.vastIU),c(gc,this,e.vconpParameter),c(_c,this,e.videoTargeting),c(vc,this,e.vtrTargeting)}init(){var e=this;return w(function*(){var t;if(l(tc,e).call(e)){s($,e,zc).call(e);return}let n=l(X,e);c(Q,e,(t=l(Q,e),t++,t));let r=s($,e,kc).call(e);if(l(cc,e)){let t={adUnitKey:`VIP`,placement:l(sc,e),vast:r};yield l(cc,e).buildVideoVast(t,(t,r)=>{n===l(X,e)&&(c(Dc,e,r),s($,e,Ac).call(e,{vast:t}))},l(Y,e));return}n===l(X,e)&&(c(Dc,e,void 0),s($,e,Ac).call(e,{vast:r}))})()}refreshVideo(e=!1){if(e){s($,this,Bc).call(this);return}let t=l(yc,this)>=l(Qs,this)||l(Q,this)>l(uc,this);if(l(Q,this)===3&&typeof l(ic,this)==`object`&&l(wc,this)===0){let{loadOtherVipAfterFirstEmptyVideo:e,ogury:n,viralize:r}=l(ic,this);if(!t&&e&&(r!=null||n!=null)){l(Y,this).debug(`Invoking the other vip`),s($,this,Nc).call(this,n,r);return}}if(!t){l(J,this)==null?c(Tc,this,l(Q,this)<=5?500:2500):(c(Tc,this,l(Q,this)===1?7e3:3500),l(Q,this)===1&&l(J,this).injectBannerInsideVideoPlayer(l(Z,this))),l(Y,this).debug(`Refresh VIP and start again`);let e=l(X,this);s($,this,Fc).call(this),c(Ec,this,setTimeout(()=>{c(Ec,this,void 0),e===l(X,this)&&this.init()},l(Tc,this)));return}if(typeof l(ic,this)==`object`&&l(wc,this)===0){let{ogury:e,viralize:t}=l(ic,this);if(l(yc,this)<l(Qs,this)&&(t!=null||e!=null)){l(Y,this).debug(`Invoking the other vip`),s($,this,Nc).call(this,e,t);return}}s($,this,Bc).call(this)}teardown(){s($,this,Pc).call(this)}reset(){s($,this,Pc).call(this),c(yc,this,0),c(wc,this,0),c(Q,this,0)}isDeliveringAd(){var e;return l(Sc,this)||((e=l(J,this))==null?void 0:e.isOnScreen())===!0}whenDeliveryFinished(){var e;return l(Sc,this)?new Promise(e=>{l(xc,this).push(e)}):((e=l(J,this))==null?void 0:e.isOnScreen())===!0?l(J,this).whenViewTimeElapsed():Promise.resolve()}whenCycleFinished(){return new Promise(e=>{l(bc,this).push(e)})}updateAdStartCount(){var e;c(Sc,this,!0),c(yc,this,(e=l(yc,this),e++,e)),l(Y,this).debug(`Update ad start count to ${l(yc,this)}`)}updateRefreshCount(){var e;c(Q,this,(e=l(Q,this),e++,e)),l(Y,this).debug(`Update refresh count to ${l(Q,this)}`)}};function kc(){if(ge(`preview_video`))return l(Y,this).debug(`Preview video`),l(lc,this);let e=[],t=``;if(window.googletag!=null&&typeof window.googletag.getConfig==`function`){var n,r,i,a,o,s,c,u;let l=window.googletag.getConfig(`targeting`);t=(n=(r=(i=l.targeting)==null?void 0:i.pageTargeting)==null?(a=l.targeting)==null?void 0:a.pagina:r)==null?``:n,e=(o=(s=(c=l.targeting)==null?void 0:c.sectionsTargeting)==null?(u=l.targeting)==null?void 0:u.section:s)==null?[]:o}if(typeof l(ec,this)==`function`){var d,f;let n=l(ec,this).call(this);e=(d=n.sectionsTargeting)==null?e:d,t=(f=n.pageTargeting)==null?t:f}let p=Array.isArray(e)?e.join(`,`):e,m=Array.isArray(t)?t.join(`,`):t,h=l(sc,this)===1?`instream`:`vp`;return`https://pubads.g.doubleclick.net/gampad/ads?sz=640x480%7C400x300%7C360x640%7C640x360&iu=${l(hc,this)}&gdfp_req=1&env=${h}&output=xml_vmap1&plcmt=${l(sc,this)}&ad_rule=1&vpos=preroll&ad_type=video&unviewed_position_start=1`+_s(l($s,this),l(gc,this))+`&description_url=`+encodeURIComponent(window.location.href)+`&cust_params=${l(_c,this)}%3D`+encodeURIComponent(p)+`%26pagina%3D${m}%26refresh%3D${l(Q,this)}`+l(vc,this)}function Ac({vast:e}){if(e.indexOf(`hb_uuid%3Dundefined`)>-1&&(Math.random()<.5?e+=`%26no_bid%3D1`:e+=`%26no_bid%3D0`),l(Z,this)!=null){l(Y,this).debug(`MnPlayer instance is defined, start adv library`),l(Z,this).startAdvLibrary(e,!0);return}l(Y,this).debug(`MnPlayer instance is null, setting configs and load player`);let t=l(X,this);if(l(nc,this)){var n;l(Y,this).debug(`Push loadMnPlayer to the player queue`),(n=window.mnPlayerQueue)==null||n.queue.push(()=>s($,this,jc).call(this,e,t));return}l(Y,this).debug(`Call loadMnPlayer when script will be ready`),l(pc,this).onReadyScript(`mn-player`,()=>{var n;(n=window.mnPlayerQueue)==null||n.queue.push(()=>s($,this,jc).call(this,e,t))})}function jc(e,t){var n=this;return w(function*(){if(t!==l(X,n))return;let r={};if(typeof l(ac,n)==`function`?r=yield l(ac,n).call(n):typeof l(ac,n)==`object`&&(r=l(ac,n)),t!==l(X,n))return;let i=j({adTagUrl:e,autoPlay:!0,behavior:`inslide`,onPlayerReady:e=>{s($,n,Mc).call(n,e)},playerPosition:l(oc,n),startAdWithVolume:!0},r);l(Y,n).debug(`MnPlayer is ready`),c(Z,n,window.loadMnPlayer(i))})()}function Mc(e){l(Y,this).debug(`Define MnPlayer events`);let t=l(X,this),n=()=>t===l(X,this);e.on(`AD_CLOSED`,()=>{l(Y,this).debug(`MnPlayer AD_CLOSED`),n()&&this.refreshVideo()}),e.on(`AD_LOADED`,()=>{l(Y,this).debug(`MnPlayer AD_LOADED`)}),e.on(`AD_STARTED`,()=>{var e;l(Y,this).debug(`MnPlayer AD_STARTED`),n()&&((e=l(J,this))==null||e.unscheduleRefresh(),this.updateAdStartCount())}),e.on(`AD_IMPRESSION`,e=>{var t;l(Y,this).debug(`MnPlayer AD_IMPRESSION`,e),n()&&((t=l(Dc,this))==null||t.call(this,e))}),e.on(`AD_ERROR`,e=>{l(Y,this).debug(`MnPlayer AD_ERROR, try refresh video`,e),n()&&this.refreshVideo()}),e.on(`ALL_ADS_COMPLETED`,()=>{l(Y,this).debug(`MnPlayer ALL_ADS_COMPLETED`),n()&&this.refreshVideo()}),e.on(`PLAYER_CLOSED`,()=>{l(Y,this).debug(`MnPlayer PLAYER_CLOSED`),!(!n()||l(Cc,this))&&this.refreshVideo(!l(dc,this))})}function Nc(e,t){let n=s($,this,Ic).call(this);if(t!=null){l(Y,this).debug(`Can insert Viralize`),c(wc,this,1),Zs({logger:l(Y,this),sellerId:l(mc,this),vipInstance:n,viralizeId:t});return}e!=null&&(l(Y,this).debug(`Can insert Ogury`),c(wc,this,1),Js({isMobile:l(rc,this),logger:l(Y,this),ogury:e,vipInstance:n,vipPosition:l(oc,this)===`right`?`BOTTOM_RIGHT`:`BOTTOM_LEFT`}))}function Pc(){var e,t;c(X,this,(e=l(X,this),e++,e)),c(Cc,this,!1),c(Dc,this,void 0),s($,this,Fc).call(this),c(Sc,this,!1),(t=l(J,this))==null||t.teardown(l(Z,this)),s($,this,Lc).call(this),s($,this,Rc).call(this),s($,this,zc).call(this)}function Fc(){l(Ec,this)!==void 0&&(clearTimeout(l(Ec,this)),c(Ec,this,void 0))}function Ic(){let e=l(X,this),t=()=>e===l(X,this)?!0:(l(Y,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 Lc(){let e=l(Z,this);if(c(Z,this,null),e!=null)try{typeof e.destroy==`function`?e.destroy():typeof e.dispose==`function`&&e.dispose()}catch(e){l(Y,this).debug(`Error destroying the MnPlayer instance`,e)}try{var t;(t=document.getElementById(`mn-outstream-container`))==null||t.remove()}catch(e){l(Y,this).debug(`Error removing the MnPlayer container`,e)}}function Rc(){let e=l(xc,this);c(xc,this,[]);for(let t of e)t()}function zc(){let e=l(bc,this);c(bc,this,[]);for(let t of e)t()}function Bc(){l(Y,this).debug(`Regular VIP done`),c(Sc,this,!1),c(Cc,this,!0);let e=l(J,this);if(e!=null&&e.isOnScreen()){l(Y,this).debug(`Injected banner still on screen, waiting for its view time before completing`);let t=l(X,this);e.whenViewTimeElapsed().then(()=>{if(t!==l(X,this)){l(Y,this).debug(`Injected banner view time elapsed for a cycle that has already been replaced`);return}s($,this,Vc).call(this)});return}s($,this,Vc).call(this)}function Vc(){if(l(J,this)!=null)try{l(J,this).teardown(l(Z,this))}catch(e){l(Y,this).debug(`Error tearing down injected banner plugin`,e)}try{var e;l(Y,this).debug(`Call handle video content resume`),(e=l(Z,this))==null||e.handleVideoContentResume()}catch(e){l(Y,this).debug(`Error resuming video content`,e)}s($,this,Rc).call(this);try{typeof l(fc,this)==`function`&&l(fc,this).call(this)}catch(e){l(Y,this).error(`Error on runOnEnd function`,e)}l(Y,this).debug(`Dispatch video events`),l(yc,this)>0?window.dispatchEvent(new Event(`pubtechVideoAdServed`)):(window.dispatchEvent(new Event(`AdvVideoNotFilled`)),window.dispatchEvent(new Event(`pubtechVideoAdMissed`))),window.dispatchEvent(new Event(`pubtech_video_done`)),s($,this,zc).call(this)}function Hc(e){ps();let t=new Et({logKey:`debug_video`,label:`VIP`}),n=m.getInstance(),r=!1;return document.querySelector(`script[src*="talkscreativity.com/assets/product/mn-player"]`)==null?ms(t,e.version,n):(t.debug(`MnPlayer script already loaded`),r=!0),i=>{var a;let o=(a=A(e.overrideVastIU))==null?i.fullNameAd+`VIP`:a,s=A(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:To,run:function(){if(u===void 0)return Promise.resolve();u.reset();let e=u.whenCycleFinished();return u.init(),e}}})},_=A(e.vconpParameter);u=new Oc({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=A(e.plcmtParameter))==null?2:f,refreshLimit:(p=A(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()}}}}function Uc(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 Wc(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}var Gc=ts({dynamicFloors:{websiteId:253}});Uc(`b1bdab1b-b46c-4624-8b1e-f138900abedb`);var Kc={};function qc(e){if(Kc[e]!==void 0){let t=new CustomEvent(`advNotFilled`,{detail:{adagioPositionCode:Kc[e].id,adagioPosition:Kc[e].position},bubbles:!0});window.dispatchEvent(t)}}function Jc(e){let t=document.getElementById(e);if(t!=null){t.innerHTML=`<div id="pt-inRead"></div>`;let e=document.createElement(`script`);e.src=`//a.teads.tv/page/164657/tag`,e.className=`teads`,e.type=`text/javascript`,e.async=!0,t.appendChild(e)}}function Yc(){Kc={};for(let e of Object.keys(Zc))Zc[e]=0}var Xc={desktop:{background_home:`O_SKIN`,position1:`C_1`,background:`O_SKIN`,inread:`B_1`,masthead:`T_1`,position2:`C_2`},tablet:{background_home:`T_1`,position1:`C_1`,background:`T_1`,inread:`B_1`,position2:`C_2`},mobile:{background_home:`T_1`,masthead:`T_1`,position1:`C_1`,background:`T_1`,inread:`B_1`,position2:`C_2`}},Zc={O_SKIN:0,C_1:0,C_2:0,B_1:0,T_1:0,INREAD:0},Qc={desktop:{position1:[[300,250]],position2:[[300,250]],masthead:[[970,250]],background_home:[[1,1],[1800,100]],background:[[1,1],[1800,100]]},tablet:{recresp:[[300,250]],background_home:[[728,90]],background:[[728,90]],masthead:[[728,90]],position1:[[300,250]],position2:[[300,250]]},mobile:{recresp:[[300,250]],background_home:[[320,100],[320,50],[300,100],[300,50]],background:[[320,100],[320,50],[300,100],[300,50]],masthead:[[320,100],[320,50],[300,100],[300,50]],position1:[[300,250]],position2:[[300,600],[300,250]]}};window.ptechen.loadAdunit=function(e,t){window.location.pathname!==`/`&&Ae(function(n){if(Zc.INREAD>0&&t===`inread`)return!0;t===`inread`&&(Jc(e),Zc.INREAD++);let r=n.device,i=Xc[r][t],a=Qc[r][t];if(i!==void 0&&a!==void 0){let r=i;if(Zc.O_SKIN>0&&i===`O_SKIN`)return!0;Zc[i]>0&&(r=r+`_`+Zc[i]);let o=document.getElementById(e);if(o==null)return console.error(`Div with id ${e} not found in the DOM.`),!0;o.appendChild(Wc(r,!1)),Kc[i]={id:e,position:t},n.ctx.monetizationManager.sell({adUnitKey:r,divId:e,disposableOnVirtualNavigation:`spa-route`,overrideAdUnitSizes:a,overrideSlotName:i}),Zc[i]++}})};function $c(e){window.addEventListener(`popstate`,()=>{e({type:`spa-route`,url:window.location.href})}),window.addEventListener(`ptec_page_navigation_started`,()=>{function t(){document.removeEventListener(`viewChange`,t),e({type:`spa-route`,url:window.location.href})}document.addEventListener(`viewChange`,t)})}jo({customFloorModelVersion:`253_2`,customFloorPriceValues:{"*|banner|*|*|*|true":.03,"*|banner|*|*|*|false":.02,"*|video|*|*|*|*":.8,"O_INTERSTITIAL|banner|*|chrome|*|true":.4,"O_INTERSTITIAL|banner|*|*|*|false":.1,"O_INTERSTITIAL|banner|*|notChrome|*|true":.4},compilePlugins:{preroll:{getPluginInstance:qs({version:`prod`})},interstitial:{getPluginInstance:Yo({interstitialCappingMinutes:60,interstitialDelay:10,providersOrderedExecution:[fs({sizeMapping:{desktop:{O_INTERSTITIAL:[[1024,768],[990,250],[970,250],[728,90],[336,280],[320,480],[300,600],[300,250],[480,320],[1,2],[1,1]]},tablet:{O_INTERSTITIAL:[[1024,768],[990,250],[970,250],[728,90],[336,280],[320,480],[300,600],[300,250],[480,320],[1,2],[1,1]]},mobile:{O_INTERSTITIAL:[[336,280],[320,480],[300,600],[300,300],[300,250],[250,250],[200,200],[160,600],[120,600],[1,2],[1,1]]}}}),i({isEnabledOnDesktop:!0}),ds({nativeryId:`63ef690dd97cddbc3d95c7c3`})]})},vip:{getPluginInstance:Hc({version:`prod`}),waitFor:[`preroll`],getShouldRun:({pluginOutcomes:e})=>{let t=e.preroll;return!t||t.outcome===`skipped`||t.deliveryStatus===`no-fill`}},floorAd:{getPluginInstance:Ho({sizeMapping:{desktop:{F_D:[[990,90],[990,70],[728,90],[970,90],[320,100],[320,75],[320,50],[300,100],[300,50],[375,100]]},mobile:{F_M:[[320,100],[320,75],[320,50],[300,100],[300,50]]}}}),waitFor:[`vip`,new Promise(e=>{window.addEventListener(`pubtech_video_done`,()=>{e()},{once:!0})})]}},googlePublisherTagProvider:ct({prefixFullNameAd:`/21832376849,1012792/giornaledibresciait/giornaledibresciait_`}),prebidAdapterProvider:Gc,website:{fullNameAd:`/21832376849,1012792/giornaledibresciait/giornaledibresciait_`,sellerId:`253`,siteCategory:[`news`,`local-news`],slug:`giornaledibresciait`,websiteDomain:`giornaledibrescia.it`,websiteId:253},execution:{virtualNavigationConfig:{provider:$c,titleObserver:{reportsAs:`infinite-scroll`}},disableAds:()=>window.location.pathname===`/`},hooks:{beforeFlow:e=>{let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.appendChild(document.createTextNode(`#ot-sdk-btn-floating.ot-floating-button { bottom: 150px!important; width:30px!important;height:30px!important; }`)),t.appendChild(n),he(`google_preview`)&&(document.body.appendChild(Wc(`cont-skin`,!1)),window.ptechen.loadAdunit(`cont-skin`,`background`)),e.eventDispatcher.subscribe({subscriberName:`giornaledibresciait-slotUnfilled`,eventName:Ue,callback:e=>{qc(e.divId)}}),e.eventDispatcher.subscribe({subscriberName:`giornaledibresciait-slotFilled`,eventName:We,callback:e=>{e.divId===`O_SKIN`&&document.body.classList.add(`skin`)}})},beforeVirtualFlow:e=>{if(e.virtualPageContext.type===`spa-route`&&(Yc(),window.location.pathname===`/`)){var t,n,r;(t=document.getElementById(`floorad-container`))==null||t.remove(),(n=document.getElementById(`O_INTERSTITIAL`))==null||n.remove(),(r=document.getElementById(`mn-outstream-container`))==null||r.remove()}}}})})(); //# sourceMappingURL=init.js.map