text: pbjsChunk([31],{279:function(e,r,i){e.exports=i(280)},280:function(e,r,i){"use strict";var a=i(0),d=i(5),t=i(2),n=i(3),c=i(1),s="1.0.3";function o(){var e=("https:"===document.location.protocol?"https:":"http:")+"//engine.widespace.com/map/engine/hb/dynamic?",r="pbjs.widespaceHandleCB";var i=function(e){if(e)for(var r=void 0,i="widespace",d=0,c=e.length;d<c;d++){var s=e[d],o="",p=[];s.sizes={height:s.height,width:s.width};var h=a.getBidRequest(s.callbackUid);h&&(i=h.bidder,o=h.placementCode,p=h.sizes),s&&s.callbackUid&&"noad"!==s.status&&u(s.sizes,p)?((r=n.createBid(1)).bidderCode=i,r.cpm=s.cpm,r.cur=s.currency,r.creative_id=s.adId,r.ad=s.code,r.width=s.width,r.height=s.height,t.addBidResponse(o,r)):((r=n.createBid(2)).bidderCode=i,t.addBidResponse(o,r))}function u(e,r){for(var i=0,a=r.length;i<a;i++)if(e.width===r[i][0]&&e.height===r[i][1])return!0;return!1}};return{callBids:function(t){for(var n=t&&t.bids||[],c=0;c<n.length;c++){var o=n[c],p=o.bidId,h=o.params.sid,u=o.params.cur||o.params.currency,b="";b=a.parseSizesInput(o.sizes).reduce((function(e,r){return e?e+","+r:r}),b);var l=e;l=a.tryAppendQueryString(l,"hb.ver",s);var m={hb:"1","hb.name":"prebidjs","hb.callback":r,"hb.callbackUid":p,"hb.sizes":b,"hb.currency":u,sid:h};if(o.params.demo)for(var g=["gender","country","region","postal","city","yob"],v=0;v<g.length;v++)o.params.demo[g[v]]&&(m["hb.demo."+g[v]]=o.params.demo[g[v]]);l+="#";for(var f=Object.keys(m),w=0;w<f.length;w++){var y=f[w];l+=y+"="+m[y]+"&"}pbjs.widespaceHandleCB=window[r]=i,d.loadScript(l)}}}}c.registerBidAdapter(new o,"widespace"),e.exports=o}},[279]);