`,forceHttps:“,prod:“}[t]||””}}let x;”undefined”!==typeof window&&window.TSM&&window.TSM.adApi?x=window.TSM.adApi:(x=new m,”undefined”!==typeof window&&(window.TSM=window.TSM||{},window.TSM.adApi=x));class S{constructor(t){this.callbackQ={},this.qTopPointer=0,this.params=d()({},S.defaults,t),this.ticking=!1,this.hasInitialized=!1}init(){const{root:t,rootMargin:e,threshold:o}=this.params;this.observer=new IntersectionObserver(this.params.eventHandler.bind(this),{root:t,rootMargin:e,threshold:o}),this.hasInitialized=!0}addToEventQ(t,e){this.hasInitialized||this.init();let o=this.qTopPointer;return this.callbackQ[o]=e,this.observer.observe(t),this.qTopPointer++,t.setAttribute(“data-cbId”,o),o}removeFromEventQ(t,e){this.observer.unobserve(t),delete this.callbackQ[e],t.removeAttribute(“data-cbId”)}}S.defaults={root:null,rootMargin:”0px”,threshold:[0],eventHandler:function(){}};const _=S;function j(t){t.forEach((t=>{let e=t.target.getAttribute(“data-cbId”);e&&(t.isIntersecting?this.callbackQ[e].call(this,t,!0):this.callbackQ[e].call(this,t,!1))}))}new _({root:null,rootMargin:”200%”,threshold:[0],eventHandler:j});const O=new _({root:null,rootMargin:”300px”,threshold:[0],eventHandler:j}),E=new _({root:null,rootMargin:”1500px”,threshold:[0],eventHandler:j}),I=(new _({root:null,rootMargin:”0px”,threshold:[1],eventHandler:j}),new _({root:null,rootMargin:”-120px”,threshold:function(t){let e=[];for(var o=0;o<=t;o++)e.push(o/t);return e}(100),eventHandler:j}),”.tsm-ad”),P=100,T=2e3;function A(t){const e=[];return t&&1===t.nodeType?(t.matches&&t.matches(I)&&e.push(t),t.querySelectorAll&&e.push(…t.querySelectorAll(I)),e):e}function C(t,e){window.googletag.cmd.push((()=>{e.forEach((({el:e,config:o,unitConfig:n})=>{const{adGroup:r}=o,{id:i,adSlot:s}=function(t,e){const{adUnitPath:o,targeting:n,adUnit:r,slotSize:i}=t,{gptParams:s={}}=e;let a=t.slotId,d=window.TSM.adSlots[a];return d?{id:a,adSlot:d}:(“tsm-out-of-page”===r||s.outOfPage?d=window.googletag.defineOutOfPageSlot(o,a):”interstitial”===r||s.interstitial?(d=window.googletag.defineOutOfPageSlot(o,window.googletag.enums.OutOfPageFormat.INTERSTITIAL),d&&(a=d.getSlotElementId())):d=window.googletag.defineSlot(o,i&&i.length?i:s.slotSize,a),d?(window.TSM.adSlots[a]=d,d.addService(window.googletag.pubads()),n&&Object.keys(n).length&&d.setConfig({targeting:n}),{id:a,adSlot:d}):{id:a,adSlot:null})}(o,n);s&&(i!==o.slotId&&(e.dataset.slotId=i,o.slotId=i),window.googletag.display(s),t.maybeApplyRoxotTargets(),!o.slotRequestedAttached&&n.callbacks&&n.callbacks.slotRequested&&n.callbacks.slotRequested.constructor===Array&&n.callbacks.slotRequested.length&&(o.slotRequestedAttached=!0,t.addSlotRequestedEvent((t=>{const{slot:e}=t;if(e.getSlotElementId()===i)for(let t=0;t
