text: pbjsChunk([49],{179:function(e,n,t){t(180),e.exports=t(181)},180:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.spec=void 0;var r=t(1),i=t(0),o=(0,i.getTopWindowLocation)().protocol+"//pre.ads.justpremium.com/v/2.0/t/xhr",c=[],a=n.spec={code:"justpremium",time:6e4,isBidRequestValid:function(e){return!!(e&&e.params&&e.params.zone)},buildRequests:function(e){var n,t,r=(n={},t={},e.forEach((function(e){var r=e.params,i=r.zone;if(1!==n[i]){var o=r.allow||r.formats||[],c=r.exclude||[];if(0===o.length&&0===c.length)return n[r.zone]=1;n[i]=n[i]||[[],{}],n[i][0]=(function(e){for(var n=e.concat(),t=0;t<n.length;++t)for(var r=t+1;r<n.length;++r)n[t]===n[r]&&n.splice(r--,1);return n})(n[i][0].concat(o)),c.forEach((function(e){n[i][1][e]?n[i][1][e]++:n[i][1][e]=1})),t[i]=t[i]||0,c.length&&t[i]++}})),Object.keys(t).forEach((function(e){if(1!==n[e]){var r=[];Object.keys(n[e][1]).forEach((function(i){n[e][1][i]===t[e]&&r.push(i)})),n[e][1]=r}})),Object.keys(n).forEach((function(e){1!==n[e]&&n[e][1].length&&(n[e][0].forEach((function(t){var r=n[e][1].indexOf(t);r>-1&&n[e][1].splice(r,1)})),n[e][0].length=0),1===n[e]||n[e][0].length||n[e][1].length||(n[e]=1)})),n),c=(function(){var e=void 0;try{e=window.top}catch(n){e=window}return{screenWidth:e.screen.width,screenHeight:e.screen.height,innerWidth:e.innerWidth,innerHeight:e.innerHeight}})(),a={zone:e.map((function(e){return parseInt(e.params.zone)})).filter((function(e,n,t){return t.indexOf(e)===n})),hostname:(0,i.getTopWindowLocation)().hostname,protocol:(0,i.getTopWindowLocation)().protocol.replace(":",""),sw:c.screenWidth,sh:c.screenHeight,ww:c.innerWidth,wh:c.innerHeight,c:r,id:e[0].params.zone,sizes:{}};e.forEach((function(e){var n=e.params.zone,t=a.sizes;t[n]=t[n]||[],t[n].push.apply(t[n],e.sizes)}));var s=JSON.stringify(a);return{method:"POST",url:o+"?i="+ +new Date,data:s,bids:e}},interpretResponse:function(e,n){var t=e.body,r=[];return n.bids.forEach((function(e){var n=(function(e,n){var t=e.zone;if(n[t])for(var r=n[t].length;r--;)if(s(e,n[t][r]))return n[t].splice(r,1).pop();return!1})(e.params,t.bid);if(n){var i=e.sizes&&e.sizes.length&&e.sizes[0]||[],o={requestId:e.bidId,creativeId:n.id,width:i[0]||n.width,height:i[1]||n.height,ad:n.adm,cpm:n.price,netRevenue:!0,currency:n.currency||"USD",ttl:n.ttl||a.time};r.push(o)}})),r},getUserSyncs:function(e){return e.iframeEnabled&&c.push({type:"iframe",src:"//us-u.openx.net/w/1.0/pd?plm=10&ph=26e53f82-d199-49df-9eca-7b350c0f9646"}),c}};function s(e,n){var t=n.format;return e.allow&&e.allow.length?e.allow.indexOf(t)>-1:!e.exclude||!e.exclude.length||e.exclude.indexOf(t)<0}(0,r.registerBidder)(a)},181:function(e,n){}},[179]);