text: pbjsChunk([37],{157:function(e,r,i){i(158),e.exports=i(159)},158:function(e,r,i){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var t=i(6),a="px.adhigh.net",n="/rtb/direct_banner",s="/rtb/direct_vast",d=["protocols","mimes","min_dur","max_dur","min_btr","max_btr","vi_format","api","skippable"],o=["cur","floor"],p=r.spec={code:"getintent",aliases:["getintentAdapter"],supportedMediaTypes:["video","banner"],isBidRequestValid:function(e){return!!(e&&e.params&&e.params.pid&&e.params.tid)},buildRequests:function(e){return e.map((function(e){var r,i=(function(e){var r={bid_id:e.bidId,pid:e.params.pid,tid:e.params.tid,known:e.params.known||1,is_video:"video"===e.mediaType,resp_type:"JSON"};e.sizes&&(r.size=(i=e.sizes,Array.isArray(i[0])?i[0].join("x"):i.join("x")));var i;return (function(e,r){if(r.is_video&&e)for(var i=0,t=d.length;i<t;i++){var a=d[i];e.hasOwnProperty(a)&&(r[a]=Array.isArray(e[a])?e[a].join(","):e[a])}})(e.params.video,r),(function(e,r,i){for(var t=0;t<i.length;t++)e.hasOwnProperty(i[t])&&(r[i[t]]=e[i[t]])})(e.params,r,o),r})(e);return{method:"GET",url:(r=i,"//"+a+(r.is_video?s:n)),data:i}}))},interpretResponse:function(e){var r=e.body,i=[];if(r&&1!==r.no_bid){var t=r.size.split("x").map(Number),a={requestId:r.bid_id,ttl:360,netRevenue:!0,currency:r.currency,creativeId:r.creative_id,cpm:r.cpm,width:t[0],height:t[1]};r.vast_url?(a.mediaType="video",a.vastUrl=r.vast_url):(a.mediaType="banner",a.ad=r.ad),i.push(a)}return i}};(0,t.registerBidder)(p)},159:function(e,r){}},[157]);