pbjsChunk([4],{359:function(e,t,i){i(360),e.exports=i(361)},360:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spec=void 0;var o=(function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}})(i(0)),s=i(8),n=i(6);var d="1.0",a=t.spec={code:"underdogmedia",bidParams:[],isBidRequestValid:function(e){return!!(e.params&&e.params.siteId&&e.sizes&&0<e.sizes.length)},buildRequests:function(e){var t=[],i=0;return e.forEach((function(e){t=o.flatten(t,o.parseSizesInput(e.sizes)),i=e.params.siteId})),{method:"GET",url:window.location.protocol+"//udmserve.net/udm/img.fetch",data:"tid=1;dt=10;sid="+i+";sizes="+t.join(","),bidParams:e}},interpretResponse:function(e,t){var r=[];return t.bidParams.forEach((function(n){e.body.mids.forEach((function(t){if(!(0<t.useCount)){t.useCount||(t.useCount=0);var i=!0;if(o.parseSizesInput(n.sizes).forEach((function(e){e===t.width+"x"+t.height&&(i=!1)})),!i){var e={requestId:n.bidId,bidderCode:a.code,cpm:parseFloat(t.cpm),width:t.width,height:t.height,ad:t.ad_code_html,creativeId:t.mid,currency:"USD",netRevenue:!1,ttl:s.config.getConfig("_bidderTimeout")};e.cpm<=0||e.ad.length<=0||(t.useCount++,e.ad+=(function(e,t,i){var n=t.notification_url;n+=d,n+=";cb="+Math.random(),n+=";qqq="+1/e.cpm,n+=";hbt="+s.config.getConfig("_bidderTimeout"),n+=";style=adapter",n+=";vis="+encodeURIComponent(document.visibilityState),n+=";traffic_info="+encodeURIComponent(JSON.stringify(function(){for(var e,t={},i=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<i.length;n++)(e=i[n].split("="))[0].match(/^utm_/)&&(t[e[0]]=e[1].substr(0,150));return t}())),i.params.subId&&(n+=";subid="+encodeURIComponent(i.params.subId));return'<script async src="'+n+'"><\/script>'})(e,t,n),r.push(e))}}}))})),r}};(0,n.registerBidder)(a)},361:function(e,t){}},[359]);