text: pbjsChunk([68],{306:function(e,t,r){e.exports=r(307)},307:function(e,t,r){"use strict";var n=r(3),o=r(2),a=r(0),i=r(7),d=r(1),c="tldr-cookie-sync-div",s="tldr_uid",l="tldr"in window&&tldr.config.root_url?tldr.config.root_url:"//a.thoughtleadr.com/v4/",u="tldr"in window&&tldr.config.cdn_url?tldr.config.cdn_url:"//cdn.thoughtleadr.com/v4/";function h(e){try{var t=window[e],r="__storage_test__";return t.setItem(r,r),t.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==storage.length}}function g(){var e,t,r,n=(e=s,h("localStorage")?localStorage[e]:h("sessionStorage")?sessionStorage[e]:null);return n||(n=a.generateUUID(null),t=s,r=n,h("localStorage")&&(localStorage[t]=r),h("sessionStorage")&&(sessionStorage[t]=r)),n}function m(e,t){var r=document.createElement("iframe");r.style.width="0",r.style.height="0",r.style.border="0",r.src="javascript:false",t.appendChild(r);var n=r.contentWindow.document;n.body.innerHTML=e;for(var o=n.body.getElementsByTagName("script"),a=0;a<o.length;a++){var i=o.item(a);"SCRIPT"===i.nodeName&&p(i)}return r}function p(e){var t=document.createElement("script");t.innerText=e.text||e.textContent||e.innerHTML||"";for(var r=e.attributes,n=r.length;n--;)t.setAttribute(r[n].name,r[n].value);e.parentNode&&e.parentNode.replaceChild(t,e)}var f=(function(){function e(){}return e.prototype.callBids=function(t){for(var r=0,n=(t.bids||[]).filter((function(t){return e.valid(t)}));r<n.length;r++){var o=n[r];this.requestPlacement(o)}},e.prototype.requestPlacement=function(t){var r=this,a=g(),d=e.getSizes(t.sizes);i.ajax(""+l+t.params.placementId+"/header-bid.json?uid="+a,(function(e){var a=JSON.parse(e);a.cookie_syncs&&r.syncCookies(a.cookie_syncs);var i=document.createElement("script");i.src=u+"bid.js",i.setAttribute("header-bid-token",a.header_bid_token);var c=void 0;a&&a.amount?((c=n.createBid(1)).bidderCode="thoughtleadr",c.cpm=a.amount,c.ad=i.outerHTML,c.width=d.width,c.height=d.height):(c=n.createBid(2)).bidderCode="thoughtleadr",o.addBidResponse(t.placementCode,c)}),null)},e.prototype.syncCookies=function(e){if(e&&e.length){var t=document.getElementById(c);t||((t=document.createElement("div")).id=c,t.style.width="0",t.style.height="0",document.body.appendChild(t));for(var r=0,n=e;r<n.length;r++){m(n[r],t)}}},e.valid=function(e){return!(!e||!e.params||"string"!=typeof e.params.placementId)},e.getSizes=function(t){var r=t[0];return Array.isArray(r)?e.getSizes(r):{width:t[0],height:t[1]}},e})();d.registerBidAdapter(new f,"thoughtleadr"),e.exports=f}},[306]);