text: pbjsChunk([78],{256:function(e,r,a){e.exports=a(257)},257:function(e,r,a){"use strict";var t,d=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},i=a(0),s=a(1),l=(t=s)&&t.__esModule?t:{default:t};var n=a(4),p=a(0),o=a(5),c=a(2),u=a(3),m=a(8).default,b=function(){var e=new m("realvu");e.callBids=function(r){var a=r.bids;o.loadScript("//ac.realvu.net/realvu_boost.js",(function(){var r=window;try{for(var t=window;r!=top&&void 0!==t.document;)r=t,t=t.parent}catch(e){}for(var d=0;d<a.length;d++){var i=a[d],s=p.parseSizesInput(i.sizes);r.realvu_boost.addUnitById({partner_id:i.params.partnerId,unit_id:i.placementCode,callback:e.boostCall,pbjs_bid:i,size:s[0],mode:"kvp"})}}),1)},e.boostCall=function(e){var a=e.pin.pbjs_bid,t=a.bidId;if("yes"===e.realvu){var d=new r;o.loadScript(d.buildJPTCall(a,t))}else{var i=u.createBid(2);i.bidderCode="realvu",c.addBidResponse(a.placementCode,i)}};var r=function(){var e=!1;this.buildJPTCall=function(e,r){var a=p.getBidIdParameter("placementId",e.params),t=p.getBidIdParameter("memberId",e.params),i=p.getBidIdParameter("member",e.params),s=p.getBidIdParameter("invCode",e.params),l=p.getBidIdParameter("query",e.params),n=p.getBidIdParameter("referrer",e.params),o=p.getBidIdParameter("alt_referrer",e.params),c="//ib.adnxs.com/jpt?";c=p.tryAppendQueryString(c,"callback","pbjs.handleRvAnCB"),c=p.tryAppendQueryString(c,"callback_uid",r),c=p.tryAppendQueryString(c,"psa","0"),c=p.tryAppendQueryString(c,"id",a),i?c=p.tryAppendQueryString(c,"member",i):t&&(c=p.tryAppendQueryString(c,"member",t),p.logMessage('appnexus.callBids: "memberId" will be deprecated soon. Please use "member" instead')),c=p.tryAppendQueryString(c,"code",s),c=p.tryAppendQueryString(c,"traffic_source_code",p.getBidIdParameter("trafficSourceCode",e.params));var u="",m=p.parseSizesInput(e.sizes),b=m.length;if(b>0&&(u="size="+m[0],b>1)){u+="&promo_sizes=";for(var g=1;g<b;g++)u+=m[g]+=",";u&&","===u.charAt(u.length-1)&&(u=u.slice(0,u.length-1))}u&&(c+=u+"&");var v=p.parseQueryStringParameters(l);v&&(c+=v);var f=d({},e.params);delete f.placementId,delete f.memberId,delete f.invCode,delete f.query,delete f.referrer,delete f.alt_referrer,delete f.member;var y=p.parseQueryStringParameters(f);return y&&(c+=y),""===n&&(n=p.getTopWindowUrl()),c=p.tryAppendQueryString(c,"referrer",n),(c=p.tryAppendQueryString(c,"alt_referrer",o)).lastIndexOf("&")===c.length-1&&(c=c.substring(0,c.length-1)),p.logMessage("jpt request built: "+c),e.startTime=(new Date).getTime(),c},pbjs.handleRvAnCB=function(r){var a;if(r&&r.callback_uid){var t,d=r.callback_uid,s="",l=(0,i.getBidRequest)(d);l&&(a=l.bidder,s=l.placementCode,l.status=n.STATUS.GOOD),p.logMessage("JSONP callback function called for ad ID: "+d);var o=[];if(r.result&&r.result.cpm&&0!==r.result.cpm){t=parseInt(r.result.cpm,10),t/=1e4;var m=r.result.creative_id;(o=u.createBid(1,l)).creative_id=m,o.bidderCode=a,o.cpm=t,o.adUrl=r.result.ad,o.width=r.result.width,o.height=r.result.height,o.dealId=r.result.deal_id,c.addBidResponse(s,o)}else(o=u.createBid(2,l)).bidderCode=a,c.addBidResponse(s,o);if(!e){var b=p.createInvisibleIframe();b.src="//acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html";try{document.body.appendChild(b)}catch(e){p.logError(e)}e=!0}}else p.logMessage("No prebid response for placement %%PLACEMENT%%")}};return d(this,{callBids:e.callBids,setBidderCode:e.setBidderCode,boostCall:e.boostCall})};l.default.registerBidAdapter(new b,"realvu"),e.exports=b}},[256]);