text: pbjsChunk([57],{333:function(e,r,t){e.exports=t(334)},334:function(e,r,t){"use strict";var a=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},d=o(t(8)),i=o(t(3)),n=o(t(2)),l=(function(e){{if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}})(t(0)),s=t(4),u=o(t(1)),c=t(5);function o(e){return e&&e.__esModule?e:{default:e}}var p=function(){var e=new d.default("xhb"),r=!1;function t(e,r){var t=l.getBidIdParameter("placementId",e.params),a=l.getBidIdParameter("member",e.params),d=l.getBidIdParameter("invCode",e.params),i=l.getBidIdParameter("referrer",e.params),n=l.getBidIdParameter("alt_referrer",e.params),s="https://ib.adnxs.com/jpt?";s=l.tryAppendQueryString(s,"callback","pbjs.handleXhbCB"),s=l.tryAppendQueryString(s,"callback_uid",r),s=l.tryAppendQueryString(s,"id",t),s=l.tryAppendQueryString(s,"psa","0"),s=l.tryAppendQueryString(s,"member",a),s=l.tryAppendQueryString(s,"code",d),s=l.tryAppendQueryString(s,"traffic_source_code",l.getBidIdParameter("trafficSourceCode",e.params));var u="",c=l.parseSizesInput(e.sizes),o=c.length;if(o>0&&(u="size="+c[0],o>1)){u+="&promo_sizes=";for(var p=1;p<o;p++)u+=c[p]+=",";u&&","===u.charAt(u.length-1)&&(u=u.slice(0,u.length-1))}return u&&(s+=u+"&"),""===i&&(i=l.getTopWindowUrl()),s=l.tryAppendQueryString(s,"referrer",i),(s=l.tryAppendQueryString(s,"alt_referrer",n)).lastIndexOf("&")===s.length-1&&(s=s.substring(0,s.length-1)),s}return n.default.registerDefaultBidderSetting("xhb",{alwaysUseBid:!0,adserverTargeting:[{key:"hb_xhb_deal",val:function(e){return e.dealId}},{key:"hb_xhb_adid",val:function(e){return e.adId}},{key:"hb_xhb_size",val:function(e){return e.width+"x"+e.height}}]}),e.callBids=function(e){for(var r=e.bids,a=0;a<r.length;a++){var d=r[a],i=d.bidId;(0,c.loadScript)(t(d,i))}},pbjs.handleXhbCB=function(e){var t=void 0;if(e&&e.callback_uid){var a=void 0,d=e.callback_uid,u="",c=l.getBidRequest(d);c&&(t=c.bidder,u=c.placementCode,c.status=s.STATUS.GOOD);var o=[];if(e.result&&e.result.ad&&""!==e.result.ad){a=0;var p=e.result.creative_id;(o=i.default.createBid(s.STATUS.GOOD,c)).creative_id=p,o.bidderCode=t,o.cpm=a,o.adUrl=e.result.ad,o.width=e.result.width,o.height=e.result.height,o.dealId="99999999",n.default.addBidResponse(u,o)}else(o=i.default.createBid(s.STATUS.NO_BID,c)).bidderCode=t,n.default.addBidResponse(u,o);if(!r){var f=l.createInvisibleIframe();f.src="//acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html";try{document.body.appendChild(f)}catch(e){l.logError(e)}r=!0}}},a(this,{callBids:e.callBids,setBidderCode:e.setBidderCode,buildJPTCall:t})};u.default.registerBidAdapter(new p,"xhb"),e.exports=p}},[333]);