text: pbjsChunk([2],{192:function(e,t,r){r(193),e.exports=r(194)},193:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spec=void 0;var n=r(0),a=r(18),i={TITLE_LEN:100,DESCR_LEN:200,SPONSORED_BY_LEN:50,IMG_MIN:150,ICON_MIN:50},u=t.spec={code:"pulseLite",aliases:["pulsepointLite"],supportedMediaTypes:["native"],isBidRequestValid:function(e){return!!(e&&e.params&&e.params.cp&&e.params.ct)},buildRequests:function(e){var t={id:e[0].bidderRequestId,imp:e.map((function(e){return{id:(t=e).bidId,banner:(r=t,n=(function(e){if(e.params.cf){var t=e.params.cf.toUpperCase().split("X"),r=parseInt(e.params.cw||t[0],10),n=parseInt(e.params.ch||t[1],10);return[r,n]}return[1,1]})(r),r.nativeParams?null:{w:n[0],h:n[1]}),native:(function(e){if(e.nativeParams){var t=[];return s(t,(r=t.length+1,n=e.nativeParams.title,a=i.TITLE_LEN,n?{id:r,required:n.required?1:0,title:{len:n.len||a}}:null)),s(t,d(t.length+1,e.nativeParams.body,2,i.DESCR_LEN)),s(t,d(t.length+1,e.nativeParams.sponsoredBy,1,i.SPONSORED_BY_LEN)),s(t,o(t.length+1,e.nativeParams.icon,1,i.ICON_MIN,i.ICON_MIN)),s(t,o(t.length+1,e.nativeParams.image,3,i.IMG_MIN,i.IMG_MIN)),{request:JSON.stringify({assets:t}),ver:"1.1"}}var r,n,a;return null})(t),tagid:t.params.ct.toString()};var t,r,n})),site:(function(e){var t=e&&e.length>0?e[0].params.cp:"0";if(!e[0].params.app)return{publisher:{id:t.toString()},ref:(function(){try{return window.top.document.referrer}catch(e){return document.referrer}})(),page:(0,n.getTopWindowLocation)().href};return null})(e),app:(function(e){var t=e&&e.length>0?e[0].params.cp:"0",r=e[0].params.app;if(r)return{publisher:{id:t.toString()},bundle:r.bundle,storeurl:r.storeUrl,domain:r.domain};return null})(e),device:{ua:navigator.userAgent,language:navigator.language||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage}};return{method:"POST",url:"//bid.contextweb.com/header/ortb",data:JSON.stringify(t)}},interpretResponse:function(e,t){return (function(e,t){var r={},n={};c(e.data).imp.forEach((function(e){r[e.id]=e})),t&&t.seatbid.forEach((function(e){return e.bid.forEach((function(e){n[e.impid]=e}))}));var a=[];return Object.keys(r).forEach((function(e){if(n[e]){var t={requestId:e,cpm:n[e].price,creative_id:e,creativeId:e,adId:e};r[e].native?(t.native=(function(e,t){if(e.native){var r=c(t.adm),n={};if(r&&r.native&&r.native.assets)return r.native.assets.forEach((function(e){n.title=e.title?e.title.text:n.title,n.body=e.data&&2===e.data.type?e.data.value:n.body,n.sponsoredBy=e.data&&1===e.data.type?e.data.value:n.sponsoredBy,n.image=e.img&&3===e.img.type?e.img.url:n.image,n.icon=e.img&&1===e.img.type?e.img.url:n.icon})),r.native.link&&(n.clickUrl=encodeURIComponent(r.native.link.url)),n.impressionTrackers=r.native.imptrackers,n}return null})(r[e],n[e]),t.mediaType="native"):(t.ad=n[e].adm,t.width=r[e].banner.w,t.height=r[e].banner.h),a.push(t)}})),a})(t,e)},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:"iframe",url:"//bh.contextweb.com/visitormatch"}]}};function s(e,t){t&&e.push(t)}function o(e,t,r,n,a){return t?{id:e,required:t.required?1:0,img:{type:r,wmin:t.wmin||n,hmin:t.hmin||a}}:null}function d(e,t,r,n){return t?{id:e,required:t.required?1:0,data:{type:r,len:t.len||n}}:null}function c(e){try{if(e)return JSON.parse(e)}catch(e){(0,n.logError)("pulsepointLite.safeParse","ERROR",e)}return null}(0,a.registerBidder)(u)},194:function(e,t){}},[192]);