rg3r2kgktwgr6m2ju.ay.delivery Open in urlscan Pro
2606:4700:3032::ac43:bb58  Public Scan

URL: http://rg3r2kgktwgr6m2ju.ay.delivery/client-v2.js
Submission: On February 07 via manual from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

/**
 * Assertive Yield
 * v2.9.0
 *
 * © 2018-2022 Assertive Yield B.V. All Rights Reserved.
 */
!function(){var e,t,i,n,o,r,s,a,d,u=!0,c=(null===(e=window.assertive)||void 0===e||null===(t=e.analytics)||void 0===t||null===(i=t.override)||void 0===i?void 0:i.pbjs)||"pbjs";window[c]=window[c]||{};var v,m=window[c],p=(null===(n=window.assertive)||void 0===n||null===(o=n.analytics)||void 0===o||null===(r=o.override)||void 0===r?void 0:r.adid)||"hb_adid",f=(null===(s=window.assertive)||void 0===s||null===(a=s.hash)||void 0===a||null===(d=a.override)||void 0===d?void 0:d.targetingKey)||"ay_hash",g={pageViewUUID:void 0,impressions:{},metaDeduplication:{},ayHash:void 0,auctionIds:{},bidsReceived:[],predictedPageViewRevenue:0},h="https://api.assertcom.de";function y(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Array.isArray(e))for(var n=0;n<e.length;n++)if(t(e[n])){var o=e[n];return i&&e.splice(n,1),o}}function b(e){var t=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),i=new RegExp("[\\?&#]"+t+"=([^&#]*)").exec(window.location.href);return null===i?"":decodeURIComponent(i[1].replace(/\+/g," "))}var w,_=!!(null===(v=window.assertive)||void 0===v?void 0:v.debug),I=localStorage.getItem("assertiveYield")&&-1!==localStorage.getItem("assertiveYield").indexOf("debug")||-1!==b("assertiveYield").indexOf("debug"),S=["background: linear-gradient(-152deg,#6937ea,#377fea 65%)","border-radius: 3px","color: white","padding: 1px 5px"].join(";"),C=_||I?window.console.log.bind(window.console,"%cAY",S):function(){},E=window.console.error.bind(window.console,"%cAY",S);function N(e){return e?(e^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,N)}function T(e){var t,i,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(-1!==e.indexOf("amazon-adsystem.com/aax2/apstag"))return null;n=r||((null===(t=assertive.analytics)||void 0===t||null===(i=t.override)||void 0===i?void 0:i.creativeRegex)?new RegExp(assertive.analytics.override.creativeRegex):new RegExp("(?:(?:".concat(o,'\\.renderAd\\(document,|adId:*|hb_adid":\\[)|(?:pbadid=)|(?:adId=))[\'"](.*?)["\']'),"i"));var s=e.replace(/ /g,""),a=n.exec(s);return a?a[1]||!0:null}w=function(){return Date.now()};var R,U,O,P,B,k,x,V,D,A;function J(e){var t=new RegExp("".concat(e,"=([^;]+)(?:;|$)")).exec(document.cookie);return t?t[1]:null}function L(e){document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; samesite=lax")}function q(e,t,i){document.cookie="".concat(e,"=").concat(t,"; path=/; samesite=lax; max-age=").concat(i||63072e3)}var W=function(e){return e.toString()}((function(){c3(Vi=c3),Ry(Y2=xp),Y2=ti=b3Vu(Y2=V2),aX=Np(Ym=ls),aX=R5(Y2=hhbm),dl=aG(lk),ZG(Vu),YW=Rk(RX=Zl),bn=RM=aXN0=ZW5[l],cm[1],vd=XNlZ=W5[0],ZX=Js=ZWF2=ZW(dl),dE=Vs(ZW[1]),lb=nR=zQnl=UY=Wd=OYW1l})).replace(/[[({})=>,;'< \n\]]/g,""),j=atob((W+"").substr(W.indexOf("c3")));R=j.substr(0,6),U=j[R](6,5),O=j[R](11,6),P=j[R](17,16),B=j[R](33,6),k=j[R](39,16),x=j[R](55,5),V=j[R](60,5),D=j[R](65,5),A=j[R](70,20);var z="in",M="pn",F="sn",H="bs",Y="u",X="r",Z="ep",G="ra",$="pr",K="iv",Q="ay_s",ee="ay_c",te="ay_utm_",ie=localStorage.getItem.bind(localStorage),ne=localStorage.setItem.bind(localStorage),oe=localStorage.removeItem.bind(localStorage);function re(e,t,i){var n,o,r="cookie"===(null===(n=assertive.storage)||void 0===n?void 0:n.general)?J:ie,s="cookie"===(null===(o=assertive.storage)||void 0===o?void 0:o.general)?q:ne;try{var a=JSON.parse(r(e))||{};a[t]=i,s(e,JSON.stringify(a))}catch(e){}}function se(e,t){re(Q,e,t)}function ae(e,t){re(ee,e,t)}function de(e,t){var i,n,o="cookie"===(null===(i=assertive.storage)||void 0===i?void 0:i.general)?J:ie,r="cookie"===(null===(n=assertive.storage)||void 0===n?void 0:n.general)?q:ne;try{var s=JSON.parse(o(e))||{};s[t]=(Number(s[t])||0)+1,r(e,JSON.stringify(s))}catch(e){}}function ue(e){de(ee,e)}function le(e,t){var i,n="cookie"===(null===(i=assertive.storage)||void 0===i?void 0:i.general)?J:ie;try{var o=JSON.parse(n(e))||{};return void 0!==o[t]?o[t]:null}catch(e){}return null}function ce(e){return le(Q,e)}function ve(e){return le(ee,e)}function me(e){var t,i="cookie"===(null===(t=assertive.storage)||void 0===t?void 0:t.utm)?J:ie;try{return JSON.parse(decodeURIComponent(i(te+e)))||null}catch(e){}return null}function pe(){return me("s")}function fe(){return me("c")}function ge(e){var t,i="cookie"===(null===(t=assertive.storage)||void 0===t?void 0:t.bids)?J:ie,n=y(JSON.parse(i("ay_phb")||"[]"),(function(t){return t.slotId===e||t.s===e}));if(!n)return[null,null,null,null,null];var o=n.b;return n.bids&&(o=n.bids),o.map((function(e){return e||null}))}function he(e){var t,i,n="cookie"===(null===(t=assertive.storage)||void 0===t?void 0:t.general)?J:ie,o="cookie"===(null===(i=assertive.storage)||void 0===i?void 0:i.general)?q:ne,r="session"===e?Q:ee,s=JSON.parse(n(r))||{};if(s.pn=(Number(s.pn)||0)+1,"client"===e&&s.u)o(r,JSON.stringify(s));else{if("session"===e){var a,d,u=60*((null===(a=assertive.storage)||void 0===a||null===(d=a.session)||void 0===d?void 0:d.timeout)||30)*1e3;if(s.u&&s.t&&Date.now()<Number(s.t))return s.t=Date.now()+u,void o(r,JSON.stringify(s));s.t=Date.now()+u}s.u=N(),s.ra=Math.random(),delete s.bs,document.referrer?s.r=document.referrer:delete s.r,s.ep=window.location.pathname,delete s.iv,s.in=1,s.pn=1,"session"===e&&(ue(F),s.pr=0),o(r,JSON.stringify(s)),function(e){var t,i,n="cookie"===(null===(t=assertive.storage)||void 0===t?void 0:t.utm)?q:ne,o="cookie"===(null===(i=assertive.storage)||void 0===i?void 0:i.utm)?L:oe,r={};["source","medium","campaign","term","content"].forEach((function(e){var t="utm_"+e,i=b(t);""!==i&&(r[t]=i)}));var s=JSON.stringify(r);"{}"!==s?n(te+e.substr(0,1),encodeURIComponent(s)):o(te+e.substr(0,1))}(e)}}function ye(e){return e||0===e?Math.min(e,.98):.98}function be(){var e,t;return!!(null===(e=assertive.analytics)||void 0===e||null===(t=e.override)||void 0===t?void 0:t.useBidCache)}function we(){var e,t,i;if(!(null===(e=assertive.reduction)||void 0===e?void 0:e.enabled))return!1;var n=ye(null===(t=assertive.reduction)||void 0===t||null===(i=t.limit)||void 0===i?void 0:i.percentage);return!(ce(G)>n)}function _e(){var e,t,i;if(!(null===(e=assertive.predict)||void 0===e?void 0:e.enabled))return!1;var n=ye(null===(t=assertive.predict)||void 0===t||null===(i=t.limit)||void 0===i?void 0:i.percentage);return!(ce(G)>n)}function Ie(){var e,t,i;if(!(null===(e=assertive.floor)||void 0===e?void 0:e.enabled))return!1;var n=ye(null===(t=assertive.floor)||void 0===t||null===(i=t.limit)||void 0===i?void 0:i.percentage);return!(ce(G)>n)}function Se(e){if(e){var t=m.getBidResponses()[e];return t&&t.bids?t.bids:[]}var i=[],n=m.getBidResponses();return Object.keys(n).forEach((function(e){Object.keys(n[e].bids).forEach((function(t){i.push(n[e].bids[t])}))})),i}function Ce(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!m||!m.getBidResponsesForAdUnitCode)return null;var n=t.getSlotElementId(),o=t.getAdUnitPath(),r=m.getBidResponsesForAdUnitCode(n).bids,s=m.getBidResponsesForAdUnitCode(o).bids,a=be()?g.bidsReceived:[],d=r.concat(s,a),u=y(d,(function(t){return t.adId===e}))||null;return!i&&u&&u.ad&&delete(u=JSON.parse(JSON.stringify(u))).ad,u}function Ee(){var e,t,i=null===(e=assertive.analytics)||void 0===e||null===(t=e.custom)||void 0===t?void 0:t.timeout;if(!i)try{i=m.getConfig("bidderTimeout")}catch(e){}return i||null}function Ne(e){return Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ne(e)}function Te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw r}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Re(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Re(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Ue(e){return-1252372727^(e=(e=(e=(e=-949894596^(e=(e|=0)+2127912214+(e<<12)|0)^e>>>19)+374761393+(e<<5)|0)+-744332180^e<<9)+-42973499+(e<<3)|0)^e>>>16|0}function Oe(e,t){var i=0;return i|=e[t++]<<0,i|=e[t++]<<8,i|=e[t++]<<16,i|=e[t++]<<24}var Pe=15;function Be(e){try{return new Uint8Array(e)}catch(n){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t}}var ke=65536;function xe(e){var t=function(e){for(var t=Be(e.length),i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}(e),i=function(e){return e+16+e/255|0}(t.length),n=function(){try{return new Uint32Array(ke)}catch(i){for(var e=new Array(ke),t=0;t<ke;t++)e[t]=0;return e}}(),o=Be(i+5),r=e.length;o[0]="|".charCodeAt(0),o[1]=(4278190080&r)>>24,o[2]=(16711680&r)>>16,o[3]=(65280&r)>>8,o[4]=(255&r)>>0;var s=function(e,t,i,n,o,r){var s,a,d,u,l,c,v=i,m=o+n;if(a=n,o>=13)for(var p=67;n+4<m-5;){var f=Oe(e,n),g=Ue(f)>>>0;if(s=r[g=(g>>16^g)>>>0&65535]-1,r[g]=n+1,s<0||n-s>>>16>0||Oe(e,s)!==f)n+=p++>>6;else{for(p=67,l=n-a,u=n-s,s+=4,d=n+=4;n<m-5&&e[n]===e[s];)n++,s++;var h=(d=n-d)<15?d:15;if(l>=Pe){for(t[v++]=240+h,c=l-Pe;c>=255;c-=255)t[v++]=255;t[v++]=c}else t[v++]=(l<<4)+h;for(var y=0;y<l;y++)t[v++]=e[a+y];if(t[v++]=u,t[v++]=u>>8,d>=15){for(c=d-15;c>=255;c-=255)t[v++]=255;t[v++]=c}a=n}}if(0===a)return 0;if((l=m-a)>=Pe){for(t[v++]=240,c=l-Pe;c>=255;c-=255)t[v++]=255;t[v++]=c}else t[v++]=l<<4;for(n=a;n<m;)t[v++]=e[n++];return v}(t,o,5,0,t.length,n);return o.slice(0,s)}function Ve(e,t,i){var n=t;if(I||(n=xe(t)),i&&navigator.sendBeacon){if(navigator.sendBeacon(e,n))return;try{var o=JSON.parse(t);o.beaconFailed=!0,t=JSON.stringify(o)}catch(e){}}try{var r=t?"POST":"GET",s=new XMLHttpRequest;s.open(r,e,!0),s.setRequestHeader("Content-Type","text/plain"),s.send(n)}catch(e){}}const De="2.9.0";function Ae(e,t,i){if(t||E(e),!i){var n=e;n.meta_host=window.location.host,n.meta_url=window.location.href,n.meta_version=De,n.meta_entityId=assertive.entityId,Ve(h+"/error.php",JSON.stringify(n,Object.getOwnPropertyNames(n)),!0)}}function Je(){googletag.cmd.push((function(){googletag.pubads().setTargeting(f,g.ayHash)})),googletag.cmd.push===[].push&&googletag.cmd.unshift&&googletag.cmd.unshift((function(){googletag.pubads().setTargeting(f,g.ayHash)}))}function Le(){var e,t,i,n,o=(null===(e=assertive.hash)||void 0===e?void 0:e.values)||5e3,r=Ne(null===(t=assertive.hash)||void 0===t?void 0:t.key);if("undefined"!==r){var s=assertive.hash.key;n="string"===r?s:"function"===r?s():Array.isArray(s)?s.join("|"):JSON.stringify(s)}else n=[window.location.pathname,Number(ce(z))].join("|");var a=null===(i=assertive.hash)||void 0===i?void 0:i.generator;if("string"==typeof a)if("server"===a){var d=new XMLHttpRequest;d.open("GET","https://"+assertive.entityId.toLowerCase()+".ay.delivery/hash?e="+assertive.entityId+"&k="+encodeURIComponent(n)+"&v="+o,!0),d.onload=function(){200===d.status&&(g.ayHash=""+d.responseText,Je())},d.send()}else"client"===a?(g.ayHash=""+function(e,t){var i=0;if(0===e.length)return i;for(var n=0;n<e.length;n++)i=(i<<5)-i+e.charCodeAt(n),i&=i;return i<0&&(i=-i),i%t}(n,o),Je()):Ae("Invalid hash generator defined.")}var qe={},We=["type","effectiveType","downlink","rtt","saveData"],je=navigator.connection||navigator.mozConnection||navigator.webkitConnection;function ze(){We.forEach((function(e){var t;qe[e]=null!==(t=null==je?void 0:je[e])&&void 0!==t?t:"not supported"}))}try{ze(),je&&je.addEventListener("change",ze)}catch(Me){Ae(Me)}var Me,Fe,He,Ye,Xe=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},Ze=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var i=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return i.observe({type:e,buffered:!0}),i}}catch(e){}},Ge=function(e,t){var i=function i(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",i,!0),removeEventListener("pagehide",i,!0)))};addEventListener("visibilitychange",i,!0),addEventListener("pagehide",i,!0)},$e=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Ke=function(e,t,i){var n;return function(o){t.value>=0&&(o||i)&&(t.delta=t.value-(n||0),(t.delta||void 0===n)&&(n=t.value,e(t)))}},Qe=-1,et=function(){return"hidden"===document.visibilityState?0:1/0},tt=function(){Ge((function(e){var t=e.timeStamp;Qe=t}),!0)},it=function(){return Qe<0&&(Qe=et(),tt(),$e((function(){setTimeout((function(){Qe=et(),tt()}),0)}))),{get firstHiddenTime(){return Qe}}},nt=function(e,t){var i,n=it(),o=Xe("FCP"),r=function(e){"first-contentful-paint"===e.name&&(a&&a.disconnect(),e.startTime<n.firstHiddenTime&&(o.value=e.startTime,o.entries.push(e),i(!0)))},s=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],a=s?null:Ze("paint",r);(s||a)&&(i=Ke(e,o,t),s&&r(s),$e((function(n){o=Xe("FCP"),i=Ke(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-n.timeStamp,i(!0)}))}))})))},ot=!1,rt=-1,st={passive:!0,capture:!0},at=new Date,dt=function(e,t){Me||(Me=t,Fe=e,He=new Date,ct(removeEventListener),ut())},ut=function(){if(Fe>=0&&Fe<He-at){var e={entryType:"first-input",name:Me.type,target:Me.target,cancelable:Me.cancelable,startTime:Me.timeStamp,processingStart:Me.timeStamp+Fe};Ye.forEach((function(t){t(e)})),Ye=[]}},lt=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var i=function(){dt(e,t),o()},n=function(){o()},o=function(){removeEventListener("pointerup",i,st),removeEventListener("pointercancel",n,st)};addEventListener("pointerup",i,st),addEventListener("pointercancel",n,st)}(t,e):dt(t,e)}},ct=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,lt,st)}))},vt={},mt={};function pt(e){mt[e.name]=e.delta}try{!function(e,t){ot||(nt((function(e){rt=e.value})),ot=!0);var i,n=function(t){rt>-1&&e(t)},o=Xe("CLS",0),r=0,s=[],a=function(e){if(!e.hadRecentInput){var t=s[0],n=s[s.length-1];r&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,s.push(e)):(r=e.value,s=[e]),r>o.value&&(o.value=r,o.entries=s,i())}},d=Ze("layout-shift",a);d&&(i=Ke(n,o,t),Ge((function(){d.takeRecords().map(a),i(!0)})),$e((function(){r=0,rt=-1,o=Xe("CLS",0),i=Ke(n,o,t)})))}(pt),function(e,t){var i,n=it(),o=Xe("FID"),r=function(e){e.startTime<n.firstHiddenTime&&(o.value=e.processingStart-e.startTime,o.entries.push(e),i(!0))},s=Ze("first-input",r);i=Ke(e,o,t),s&&Ge((function(){s.takeRecords().map(r),s.disconnect()}),!0),s&&$e((function(){var n;o=Xe("FID"),i=Ke(e,o,t),Ye=[],Fe=-1,Me=null,ct(addEventListener),n=r,Ye.push(n),ut()}))}(pt),function(e,t){var i,n=it(),o=Xe("LCP"),r=function(e){var t=e.startTime;t<n.firstHiddenTime&&(o.value=t,o.entries.push(e)),i()},s=Ze("largest-contentful-paint",r);if(s){i=Ke(e,o,t);var a=function(){vt[o.id]||(s.takeRecords().map(r),s.disconnect(),vt[o.id]=!0,i(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),Ge(a,!0),$e((function(n){o=Xe("LCP"),i=Ke(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-n.timeStamp,vt[o.id]=!0,i(!0)}))}))}))}}(pt)}catch(Me){Ae(Me)}!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}e.prototype=window.Event.prototype,window.CustomEvent=e,window.Event=e}();var ft=new Event("assertive_internal_afterLogImpressionPayloadGenerated");function gt(e){var t,i;Ie()&&(null===(t=assertive.floor)||void 0===t?void 0:t.prebid)&&e.experiments.push({name:"floor-prebid"}),Ie()&&(null===(i=assertive.floor)||void 0===i?void 0:i.gpt)&&e.experiments.push({name:"floor-gpt"}),we()&&e.experiments.push({name:"reduction"}),_e()&&e.experiments.push({name:"predict"})}function ht(e,t,i){var n=g.impressions[e];if(n){var o=n.impressionUUID+":"+t;g.metaDeduplication[o]||(g.metaDeduplication[o]=!0,n.event=t,i?n.event_value=i:delete n.event_value,n.vitals=mt,n.event_time=Date.now(),Ve(h+"/meta",JSON.stringify(n),!0))}}function yt(e){var t,i,n,o,r,s,a,d,u,l,c,v,p,f,b,w,_,I,S,E,T,R,U,O,P=e.slotId,B=e.highestPreBid,k={impressionUUID:N(),version:De,entityId:assertive.entityId,clientUUID:ve(Y),sessionUUID:ce(Y),pageViewUUID:g.pageViewUUID,slotPreviousHighestBids:ge(P),protocol:window.location.protocol,host:window.location.host,pathname:window.location.pathname,pathname_split:window.location.pathname.split("/").filter((function(e){return!!e})),referrer:ce(X),utm:pe(),entryPathname:ce(Z),impressionCount:Number(ce(z))||null,pageViewCount:Number(ce(M))||null,client_referrer:ve(X),client_utm:fe(),client_entryPathname:ve(Z),client_impressionCount:Number(ve(z))||null,client_pageViewCount:Number(ve(M))||null,client_sessionCount:Number(ve(F))||null,window:{innerWidth:window.innerWidth,innerHeight:window.innerHeight,scrollY:window.scrollY||window.pageYOffset},networkInformation:qe,vitals:mt,prebid_timeout:Ee(),prebid_version:m.version||null,userState:null===(t=assertive.analytics)||void 0===t||null===(i=t.custom)||void 0===i?void 0:i.userState,layout:null===(n=assertive.analytics)||void 0===n||null===(o=n.custom)||void 0===o?void 0:o.layout,custom_1:null===(r=assertive.analytics)||void 0===r||null===(s=r.custom)||void 0===s?void 0:s.custom_1,custom_2:null===(a=assertive.analytics)||void 0===a||null===(d=a.custom)||void 0===d?void 0:d.custom_2,custom_3:null===(u=assertive.analytics)||void 0===u||null===(l=u.custom)||void 0===l?void 0:l.custom_3,custom_4:null===(c=assertive.analytics)||void 0===c||null===(v=c.custom)||void 0===v?void 0:v.custom_4,custom_5:null===(p=assertive.analytics)||void 0===p||null===(f=p.custom)||void 0===f?void 0:f.custom_5,custom_6:null===(b=assertive.analytics)||void 0===b||null===(w=b.custom)||void 0===w?void 0:w.custom_6,custom_7:null===(_=assertive.analytics)||void 0===_||null===(I=_.custom)||void 0===I?void 0:I.custom_7,custom_8:null===(S=assertive.analytics)||void 0===S||null===(E=S.custom)||void 0===E?void 0:E.custom_8,custom_9:null===(T=assertive.analytics)||void 0===T||null===(R=T.custom)||void 0===R?void 0:R.custom_9,externalId:null===(U=assertive.analytics)||void 0===U||null===(O=U.custom)||void 0===O?void 0:O.externalId,experiments:[],impression_time:Date.now()};for(var x in e)void 0===k[x]&&(k[x]=e[x]);gt(k),ft.payload=k,window.dispatchEvent(ft);var V=new Event("assertive_logImpression",{cancelable:!0});(V.data={},V.data.payload=k,window.dispatchEvent(V),V.defaultPrevented)?g.impressions[P]=null:(P&&(g.impressions[P]=k),Ve(h,JSON.stringify(k)),C("SENT!!!"),function(e,t){var i,n,o="cookie"===(null===(i=assertive.storage)||void 0===i?void 0:i.bids)?J:ie,r="cookie"===(null===(n=assertive.storage)||void 0===n?void 0:n.bids)?q:ne,s=JSON.parse(o("ay_phb")||"[]");s.length>0&&s[0].bids&&(s=s.map((function(e){return{s:e.slotId,b:e.bids}})));var a=y(s,(function(t){return t.s===e}));a?(a.b.push(t),a.b=a.b.slice(1)):(s.push({s:e,b:[0,0,0,0,t]}),s.length>40&&(s=s.slice(1))),r("ay_phb",JSON.stringify(s))}(P,B),ue(z),de(Q,z))}function bt(e,t){try{var i={};Object.keys(e).forEach((function(n){var o=e[n],r=o.auctionId,s=o.time;if(!(t&&Date.now()-s<18e5)){var a=i[r];a||(a={auctionId:r,impressionCount:o.impressionCount,pageViewCount:o.pageViewCount,client_impressionCount:o.client_impressionCount,client_pageViewCount:o.client_pageViewCount,client_sessionCount:o.client_sessionCount,adUnitPath:o.adUnitPath,prebid_timeout:o.prebid_timeout,sizes:o.sizes,mediaTypes:o.mediaTypes,params:o.params,pathname:o.pathname,pathname_split:o.pathname_split,pageViewUUID:o.pageViewUUID,userState:o.userState,layout:o.layout,custom_1:o.custom_1,custom_2:o.custom_2,custom_3:o.custom_3,custom_4:o.custom_4,custom_5:o.custom_5,custom_6:o.custom_6,custom_7:o.custom_7,custom_8:o.custom_8,custom_9:o.custom_9,bids:[]},i[r]=a),a.bids.push(o),delete e[n]}})),Object.keys(i).forEach((function(e){!function(e){var t={version:De,entityId:assertive.entityId,clientUUID:ve(Y),sessionUUID:ce(Y),protocol:window.location.protocol,host:window.location.host,referrer:ce(X),utm:pe(),entryPathname:ce(Z),client_referrer:ve(X),client_utm:fe(),client_entryPathname:ve(Z),prebid_version:m.version||null,experiments:[]};for(var i in e)void 0===t[i]&&(t[i]=e[i]);gt(t),Ve(h+"/auction",JSON.stringify(t),!0)}(i[e])}))}catch(e){Ae(e)}}var wt={appnexus:{field:"reserve",type:"float",currency:"USD"},districtm:{field:"reserve",type:"float"},sovrn:{field:"bidfloor",type:"string"},openx:{field:"customFloor",type:"number"},conversant:{field:"bidfloor",type:"float"}};function _t(e){C("Floor Prediction:",JSON.parse(JSON.stringify(e)));var t=assertive.floorPrice(e);return C("Floor Prediction:",t),t}function It(e){var t=_t(e);return(t="number"!=typeof t||t<0?0:t>1?1:.05*Math.round(t/.05)).toFixed(2)}function St(e,t){var i,n={};n["*|*"]=_t(t);var o=e.sizes;o&&o.forEach((function(e){if(Array.isArray(e)&&2===e.length){t.creativeWidth=e[0],t.creativeHeight=e[1];var i="*|"+e[0]+"x"+e[1];n[i]=_t(t)}}));var r=(null===(i=assertive.floor)||void 0===i?void 0:i.currency)||"USD";e.floors={currency:r,schema:{delimiter:"|",fields:["mediaType","size"]},values:n},e.bids.forEach((function(e){var t,i,o,s,a,d,u=((null===(t=window.assertive.floor)||void 0===t?void 0:t.paramMappings)||wt)[e.bidder]||{},l=u.field,c=u.type;if(l){var v=n["*|*"],p=u.currency||"USD";if(r!==p){if("function"!=typeof m.convertCurrency)throw new Error("Currency module not found - can't convert floor from tracked currency "+r+" to bid currency "+p+", skipping.");v=m.convertCurrency(v,r,p)}if(m.bidderSettings&&m.bidderSettings[e.bidder]&&m.bidderSettings[e.bidder].bidCpmAdjustment){var f=m.bidderSettings[e.bidder].bidCpmAdjustment,g=parseFloat(f(v,{cpm:v}));g&&(s=v,a=g,d=Math.pow(10,10),v=s*d/(a*d)*(s*d)/d)}i=v,o=4,v=Math.ceil((parseFloat(i)*Math.pow(10,o)).toFixed(1))/Math.pow(10,o),e.params[l]="string"===c?v.toString():v}else C("Floor: no prebid floor mappings found for "+e.bidder+", skipping. \nNote: if this bidder supports the prebid flooring module or does not support floors at all, there is no action required.")}))}function Ct(e){var t,i,n=null===(t=assertive.floor)||void 0===t||null===(i=t.limit)||void 0===i?void 0:i.slotIds;googletag.cmd.push((function(){try{if(assertive.floorPrice)for(var t=googletag.pubads().getSlots(),i=Number(ce(z))||null,o=Number(ce(M))||null,r=Number(ve(z))||null,s=Number(ve(M))||null,a=Number(ve(F))||null,d=function(d){var u=t[d],l=u.getSlotElementId();if(n&&!n.includes(l))return"continue";var c=e&&e.bidsReceived.filter((function(e){return e.adUnitCode===l})).reduce((function(e,t){return e.cpm>t.cpm?e:t}),0)||{},v={lastHighestBidPerSlotId:c&&c.cpm?c.cpm:0,previousBids:ge(l),slotId:l,client_impressionCount:r,client_pageViewCount:s,client_sessionCount:a,session_impressionCount:i,session_pageViewCount:o},m=[];m.push(It(v).toString());for(var p=u.getSizes(),f=0;f<p.length;f++){var g=p[f],h=g.l,y=g.j,b=h+"x"+y+";";v.creativeWidth=h,v.creativeHeight=y,m.push(b+It(v).toString())}u.setTargeting("ay_floor",m)},u=0;u<t.length;u++)d(u)}catch(e){Ae(e)}}))}function Et(e){if(!assertive.predictDa)return null;var t,i=0;if(e.preBidWon)i=e.highestPreBid;else if(e.dfpResponseInformation){var n=e.dfpResponseInformation;(null==n?void 0:n.isBackfill)?(t={highestBid:e.highestPreBid,previousBids:e.slotPreviousHighestBids,slotId:e.slotId,adUnitPath:e.adUnitPath,dfp_hash:e.hash,creative_width:e.creative_width,creative_height:e.creative_height,client_impressionCount:e.client_impressionCount,client_pageViewCount:e.client_pageViewCount,client_sessionCount:e.client_sessionCount,session_impressionCount:e.impressionCount,session_pageViewCount:e.pageViewCount},i=assertive.predictDa(t)):(null==n?void 0:n.lineItemId)&&(i=assertive.lineItemValues[n.lineItemId]||0)}return i}var Nt=new RegExp("^ntv\\d{1,8}-\\d{1,8}-\\d{1,8}$"),Tt=[];function Rt(e,t,i){if(!Tt.includes(e)){var n={source:"nativo",slotId:i,adUnitPath:e,brandId:parseInt(t),highestPreBid:null,highestPreBid_partner:null,mediaType:"native",creative_width:1,creative_height:1,preBidWon:!1,timeToRespond:null};Tt.push(e),yt(n)}}function Ut(){var e;e=function(){for(var e=document.querySelectorAll("div[id^=ntv]"),t=0;t<e.length;t++)try{var i=e[t];if(!i.id||!Nt.test(i.id))continue;var n=Te(i.id.split("-"),2);Rt(n[0],n[1],"nativo-dom")}catch(i){Ae(i)}window.ntv=window.ntv||{},ntv.cmd=ntv.cmd||[];var o=ntv.cmd.push===[].push?"unshift":"push";ntv.cmd[o]((function(){ntv.events.on("adRenderingComplete",(function(e,t){try{Rt("ntv".concat(t.placement),t.id,"nativo-event")}catch(e){Ae(e)}}))}))},-1!==["complete","interactive","loaded"].indexOf(document.readyState)?e():document.addEventListener("DOMContentLoaded",e,!1)}var Ot=-1;function Pt(){var e,t=.2*(null===(e=assertive.analytics)||void 0===e?void 0:e.sampleRate);if(!(ce(G)>t)){Ot=-2,C("Initializing Module: IVT");var i=ce(K);i?Ot=i:function(){var e,t=(null===(e=assertive.predict)||void 0===e?void 0:e.entityId)||assertive.entityId,i=document.createElement("script");i.src="https://"+t.toLowerCase()+".ay.delivery/ivt/"+t+"/ivt.min.js",document.getElementsByTagName("head")[0].appendChild(i),window.Fb613lSE=function(e,t,i){se(K,Ot=e>200?-3:i)}}(),window.addEventListener(ft.type,(function(e){var t=e.payload;try{var i=new Event("assertive_ivt");t.ivt={category:Ot},setTimeout((function(){window.dispatchEvent(i)}),1)}catch(e){Ae(e)}}))}}var Bt=window,kt=document,xt=!1;function Vt(){m.que=m.que||[],Bt.googletag=Bt.googletag||{},googletag.cmd=googletag.cmd||[],m.que.push((function(){var e={},t={};m.onEvent("auctionEnd",(function(i){C("AYPredict - ","auctionEnd",i);try{for(var n={},o=0;o<i.bidsReceived.length;o++){var r=i.bidsReceived[o];n[r.requestId]=r.cpm}var s=i.bidsReceived.map((function(e){return e.requestId})).sort((function(e,t){return n[e]===n[t]?0:n[e]>n[t]?-1:1})),a=Number(ce(z))||null,d=Number(ce(M))||null,u=Number(ve(z))||null,l=Number(ve(M))||null,c=Number(ve(F))||null,v=JSON.parse(ce(H)||"{}"),m=JSON.parse(ve(H)||"{}");i.bidderRequests.forEach((function(n){var o=n.auctionId,r=n.bidderCode,p=n.bids,f=n.timeout;v[r]&&3===v[r].length||(v[r]=[0,0,0]),m[r]&&3===m[r].length||(m[r]=[0,0,0]);var h=v[r][0],b=v[r][1],w=v[r][2],_=m[r][0],I=m[r][1],S=m[r][2],C=0,E=0;p.forEach((function(n){var v,m,p,N,T,R,U,O,P,B,k,x,V,D,A,J,L,q,W,j,z,M,F,H,Y={bidderName:r,adUnitPath:n.adUnitCode,prebidTimeout:f,session_bidderRequests:h,session_bidderBids:b,session_bidderWins:w,client_bidderRequests:_,client_bidderBids:I,client_bidderWins:S,sessionImpressionCount:a,sessionPageViewCount:d,clientImpressionCount:u,clientPageViewCount:l,clientSessionCount:c,sizes:n.sizes,mediaTypes:n.mediaTypes,params:n.params};assertive.willBid&&(F=assertive.willBid(Y),H=assertive.willBidVersion);var X=y(i.bidsReceived,(function(e){return e.requestId===n.bidId})),Z=y(i.noBids,(function(e){return e.bidId===n.bidId})),G={time:Date.now(),auctionId:o,impressionCount:a,pageViewCount:d,client_impressionCount:u,client_pageViewCount:l,client_sessionCount:c,adUnitPath:n.adUnitCode,bidder:r,didTimeout:!X&&!Z,didBid:!!X,rendered:!1,prebid_timeout:f||Ee(),shouldBid:F,shouldBidVersion:H,shouldWin:void 0,shouldWinVersion:void 0,sizes:n.sizes,mediaTypes:n.mediaTypes,params:n.params,session_bidderRequests:h,session_bidderBids:b,session_bidderWins:w,client_bidderRequests:_,client_bidderBids:I,client_bidderWins:S,pathname:window.location.pathname,pathname_split:window.location.pathname.split("/").filter((function(e){return!!e})),pageViewUUID:g.pageViewUUID,userState:null===(v=assertive.analytics)||void 0===v||null===(m=v.custom)||void 0===m?void 0:m.userState,layout:null===(p=assertive.analytics)||void 0===p||null===(N=p.custom)||void 0===N?void 0:N.layout,custom_1:null===(T=assertive.analytics)||void 0===T||null===(R=T.custom)||void 0===R?void 0:R.custom_1,custom_2:null===(U=assertive.analytics)||void 0===U||null===(O=U.custom)||void 0===O?void 0:O.custom_2,custom_3:null===(P=assertive.analytics)||void 0===P||null===(B=P.custom)||void 0===B?void 0:B.custom_3,custom_4:null===(k=assertive.analytics)||void 0===k||null===(x=k.custom)||void 0===x?void 0:x.custom_4,custom_5:null===(V=assertive.analytics)||void 0===V||null===(D=V.custom)||void 0===D?void 0:D.custom_5,custom_6:null===(A=assertive.analytics)||void 0===A||null===(J=A.custom)||void 0===J?void 0:J.custom_6,custom_7:null===(L=assertive.analytics)||void 0===L||null===(q=L.custom)||void 0===q?void 0:q.custom_7,custom_8:null===(W=assertive.analytics)||void 0===W||null===(j=W.custom)||void 0===j?void 0:j.custom_8,custom_9:null===(z=assertive.analytics)||void 0===z||null===(M=z.custom)||void 0===M?void 0:M.custom_9};C++,X&&(E++,G.mediaType=X.mediaType,G.creative_width=X.width,G.creative_height=X.height,G.timeToRespond=X.timeToRespond,G.bidPosition=s.indexOf(X.requestId),G.bid=X.cpm,G.currency=X.currency,G.originalBid=Number(X.originalCpm)||void 0,G.originalCurrency=X.originalCurrency,G.ttl=X.ttl,G.responseTimestamp=X.responseTimestamp,G.meta=X.meta||X.appnexus||X.rubicon,G.dealId=X.dealId,t[X.adId]=n.bidId),e[n.bidId]=G})),v[r][0]=h+C,v[r][1]=b+E,m[r][0]=_+C,m[r][1]=I+E,se(H,JSON.stringify(v)),ae(H,JSON.stringify(m))})),C("Auction Logging"," Bids didBid:",Object.keys(e).filter((function(t){return e[t].didBid})).map((function(t){return e[t]}))),C("Auction Logging"," Bids rendered:",Object.keys(e).filter((function(t){return e[t].rendered})).map((function(t){return e[t]}))),C("Auction Logging"," Bids didTimeout:",Object.keys(e).filter((function(t){return e[t].didTimeout})).map((function(t){return e[t]})))}catch(e){Ae(e)}})),m.onEvent("setTargeting",(function(i){try{Object.keys(i).map((function(n){var o=i[n].hb_adid,r=t[o];r&&e[r]&&(e[r].setTargetingTime=Date.now()-e[r].responseTimestamp)}))}catch(e){Ae(e)}})),m.onEvent("bidWon",(function(t){var i=t.requestId,n=t.responseTimestamp,o=t.bidder,r=t.adUnitCode;try{e[i]&&(e[i].rendered=!0,e[i].renderedTime=Date.now()-n);var s=JSON.parse(ce(H)||"{}"),a=JSON.parse(ve(H)||"{}");if(s[o]&&3===s[o].length||(s[o]=[0,0,0]),a[o]&&3===a[o].length||(a[o]=[0,0,0]),s[o][2]++,a[o][2]++,se(H,JSON.stringify(s)),ae(H,JSON.stringify(a)),assertive.registerWin){var d={prebidTimeout:Ee(),sessionPageViewCount:Number(ce(M)),bidderName:o,slotId:"",adUnitCode:r};assertive.registerWin(d,!0)}}catch(e){Ae(e)}})),window.setInterval((function(){bt(e,!0)}),6e4),window.addEventListener("beforeunload",(function(){bt(e,!1)}),{capture:u})})),Ut(),function(){var e,t,i;if(Ie()){C("Initializing Module: Flooring"),assertive.setFloors=Ct;var n=null===(e=assertive.floor)||void 0===e||null===(t=e.limit)||void 0===t?void 0:t.slotIds,o=(null===(i=assertive.floor)||void 0===i?void 0:i.entityId)||assertive.entityId,r=document.createElement("script");r.src="https://"+o.toLowerCase()+".ay.delivery/floorPrice/"+o+"/js/floorPrice/linreg.min.js",document.getElementsByTagName("head")[0].appendChild(r),m.que.push((function(){var e;m.onEvent("auctionEnd",(function(e){Ct(e)})),(null===(e=assertive.floor)||void 0===e?void 0:e.prebid)&&m.requestBids.before((function(e,t){try{if(assertive.floorPrice){var i=Number(ce(z))||null,o=Number(ce(M))||null,r=Number(ve(z))||null,s=Number(ve(M))||null,a=Number(ve(F))||null,d=t.adUnits||m.adUnits;t.adUnitCodes&&t.adUnitCodes.length&&(d=d.filter((function(e){return t.adUnitCodes.includes(e.code)}))),d.forEach((function(e){var t=e.code;n&&!n.includes(t)||St(e,{previousBids:ge(t),slotId:t,client_impressionCount:r,client_pageViewCount:s,client_sessionCount:a,session_impressionCount:i,session_pageViewCount:o})}))}else C("Floor model is not loaded, skipping flooring for this prebid auction.")}catch(e){Ae(e)}e.apply(this,[t])}),9999)}))}}(),function(){var e,t,i;if(_e()){C("Initializing Module: Revenue Prediction");var n=null===(e=assertive.predict)||void 0===e||null===(t=e.limit)||void 0===t?void 0:t.slotIds,o=(null===(i=assertive.predict)||void 0===i?void 0:i.entityId)||assertive.entityId,r=document.createElement("script");r.src="https://"+o.toLowerCase()+".ay.delivery/floorPrice/"+o+"/js/floorPrice/linreg_da.min.js",document.getElementsByTagName("head")[0].appendChild(r),window.addEventListener(ft.type,(function(e){var t=e.payload;if((!n||n.includes(t.slotId))&&assertive.predictDa)try{var i=Et(t);if(t.da_predicted=i,Number.isFinite(i)){var o=new Event("assertive_predictedRevenue"),r={impression:i,pageView:g.predictedPageViewRevenue+i,session:parseFloat(ce($)||"0.0")+i};if(g.predictedPageViewRevenue=r.pageView,se($,r.session),o.data={},o.data.meta=JSON.parse(JSON.stringify(t)),o.data.predictedRevenueCPM=r,assertive.sessionRPM_quantiles){for(var s=assertive.sessionRPM_quantiles,a=s.length,d={session:0},u=0;u<a;u++)if(s[u]>r.session){d.session=0===u?100:100-u/a*100;break}o.data.topNPercent=d}setTimeout((function(){window.dispatchEvent(o)}),1)}}catch(e){Ae(e)}}))}}(),function(){var e,t,i;if(we()){C("Initializing Module: Bid Req. Reduction");var n=null===(e=assertive.reduction)||void 0===e||null===(t=e.limit)||void 0===t?void 0:t.slotIds,o=(null===(i=assertive.reduction)||void 0===i?void 0:i.entityId)||assertive.entityId,r=document.createElement("script");r.src="https://"+o.toLowerCase()+".ay.delivery/forest/"+o+"/js/bid/forest.min.js",document.getElementsByTagName("head")[0].appendChild(r),m.que.push((function(){var e={};m.onEvent("beforeRequestBids",(function(t){if(assertive.willBid){var i=Ee(),o=Number(ce(z))||null,r=Number(ce(M))||null,s=Number(ve(z))||null,a=Number(ve(M))||null,d=Number(ve(F))||null,u=JSON.parse(ce(H)||"{}"),l=JSON.parse(ve(H)||"{}");t.forEach((function(t){var c=t.code;n&&!n.includes(c)||(e[t.adUnitPath]=t.bids,t.bids=t.bids.filter((function(e){var n=e.bidder;u[n]=u[n]||[0,0,0],l[n]=l[n]||[0,0,0];var c=u[n][0],v=u[n][1],m=u[n][2],p=l[n][0],f=l[n][1],g=l[n][2],h={bidderName:n,adUnitPath:t.code,prebidTimeout:i,session_bidderRequests:c,session_bidderBids:v,session_bidderWins:m,client_bidderRequests:p,client_bidderBids:f,client_bidderWins:g,sessionImpressionCount:o,sessionPageViewCount:r,clientImpressionCount:s,clientPageViewCount:a,clientSessionCount:d,sizes:t.sizes,mediaTypes:t.mediaTypes,params:e.params},y=assertive.willBid(h);return y||C("not sending request to "+n),y})),C(t.bids.length+" bidders left"))}))}else C("Bid request reduction model is not loaded, skipping request optimization for this prebid auction.")}))}))}}(),Pt(),m.que.push((function(){m.onEvent("auctionEnd",(function(e){if(e.adUnitCodes.forEach((function(t){g.auctionIds[t]=e.auctionId})),be()){g.bidsReceived=g.bidsReceived.filter((function(e){return e.responseTimestamp+1e3*e.ttl-1e3+5e3>(new Date).getTime()})),e.bidsReceived.forEach((function(e){var t=JSON.parse(JSON.stringify(e));delete t.ad,g.bidsReceived.push(t)}))}}))})),googletag.cmd.push((function(){var e,t,i=localStorage.getItem.bind(localStorage),n=localStorage.setItem.bind(localStorage),o="cookie"===(null===(e=assertive.storage)||void 0===e?void 0:e.general)?J:i,r="cookie"===(null===(t=assertive.storage)||void 0===t?void 0:t.general)?q:n,s=function(e){try{return JSON.parse(o("ay_".concat(e)))||{}}catch(e){}return{}}("cl"),a=s.lhas,d=s.has,l=s.ct,c=0,v=function(){try{if(kt[B]&&(d||w()-c<200))ht(a,U),l=w();else if(!kt[B]&&d&&l){var e=w()-l;ht(a,U+"-"+O,e),l=null}}catch(e){Ae(e)}};d&&v(),Bt[k](P,v,{capture:u}),window.addEventListener("unload",(function(){try{!function(e,t){try{return r("ay_".concat(e),JSON.stringify(t))}catch(e){}}("cl",{lhas:a,has:d,ct:l})}catch(e){}}),{capture:u}),googletag.pubads().addEventListener("slotRenderEnded",(function(e){try{var t,i,n,o;if(e.isEmpty&&!(null===(t=assertive.analytics)||void 0===t?void 0:t.logUnfilled))return;var r=e.slot,s=r.getSlotElementId(),l=r.getAdUnitPath(),v=kt.getElementById(s);if(!v)return;var m=v[A]("iframe")[0];m[k](x+V,(function(){a=s,d=!0,c=0,xt||setTimeout((function(){d=!1,c=w()}),2e3)}),{capture:u,passive:u}),m[k](x+D,(function(){d=!1,c=w()}),{capture:u,passive:u});var h,y,b=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=T(e.getHtml()),n=i||e.getTargeting(p)[0],o={adId:n,preBidWon:!!i,highestBid:null,bidResponses:[]};if(n){var r=Ce(n,e,t);r&&(o.highestBid=r,r.adUnitCode&&(o.bidResponses=Se(r.adUnitCode).map((function(e){if(t)return e;var i=JSON.parse(JSON.stringify(e));return delete i.ad,i}))))}return o}(r),_=b.adId,I=b.preBidWon,S=b.highestBid,E=b.bidResponses,N=function(){try{return googletag.pubads().getTargeting(f)[0]||null}catch(e){Ae(e)}return null}(),R=g.auctionIds[l]||g.auctionIds[s]||void 0,U=S&&S.auctionId!==R;if(C("Session UUID: "+ce(Y)+", PageView UUID: "+g.pageViewUUID+", AdId: "+_+" and Hash: "+N),C("Slot Id: "+s+", AdUnitPath: "+l),e.isEmpty)C(" - Placement went unfilled.");else C(S?" - Highest Prebid "+S.cpm+" from "+S.bidderCode+" with id "+_:" - No PreBids!!!"),C(" - Winner: "+(I?"prebid":"dfp (Direct/AdX/AdSense)")+" with size "+(I&&S?S.width:null===(h=e.size)||void 0===h?void 0:h[0])+"x"+(I&&S?S.height:null===(y=e.size)||void 0===y?void 0:y[1]));C("---------------"),I&&!(null==S?void 0:S.bidderCode)&&Ae("Could not find bid based on adId.");var O=null,P=null;S&&(S.appnexus?O=S.appnexus.buyerMemberId?S.appnexus.buyerMemberId:null:S.rubicon&&(O=S.rubicon.networkId?S.rubicon.networkId:null,P=S.rubicon.advertiserId?S.rubicon.advertiserId:null));var B={slotId:s,adUnitPath:l,dfpResponseInformation:r.getResponseInformation()||null,dfpTargetingMap:r.getTargetingMap()||null,highestBid:S,bidResponses:E,highestPreBid:S?S.cpm:0,highestPreBid_partner:S?S.bidderCode:"",buyerId:O,brandId:P,dealId:S&&S.dealId?S.dealId:null,creativeId:S&&S.creativeId?S.creativeId:null,mediaType:S&&S.mediaType?S.mediaType:null,currency:S&&S.currency?S.currency:null,netRevenue:S&&S.netRevenue?S.netRevenue:null,creative_width:I&&S?S.width:null===(i=e.size)||void 0===i?void 0:i[0],creative_height:I&&S?S.height:null===(n=e.size)||void 0===n?void 0:n[1],preBidWon:I,unfilled:e.isEmpty,timeToRespond:S?S.timeToRespond:null,hash:N,cachedBid:U,auctionId:R};(null===(o=assertive.floor)||void 0===o?void 0:o.enabled)&&(B.floor=r.getTargeting("ay_floor")[0]||null),yt(B),Le()}catch(e){Ae(e)}})),googletag.pubads().addEventListener("impressionViewable",(function(e){try{ht(e.slot.getSlotElementId(),"activeView")}catch(e){Ae(e)}}))}))}!function(){var e;if(Bt.assertive=Bt.assertive||{},assertive.initialized)Ae("Script loaded more than once!",!1,!0);else{if(assertive.initialized=!0,!assertive.entityId)throw Ae("assertive.entityId is mandatory!",!1,!0),Error("Assertive Yield: Entity ID is mandatory and not defined, exiting...");Bt[k]("mousemove",(function(){xt=!0}),{once:!0}),assertive.logCustomImpression=function(e){try{yt(e)}catch(e){Ae(e)}},assertive.nextPage=function(){try{g.pageViewUUID=N(),he("client"),he("session"),Le()}catch(e){Ae(e)}},assertive.nextPage();var t=null===(e=assertive.analytics)||void 0===e?void 0:e.sampleRate;!t||ce(G)<t?(C("Initializing Assertive Yield."),Vt()):C("Skipping initialization due sample rate.")}}(),-1!==b("assertiveYield").indexOf("check")&&alert("Assertive Yield: Check")}();