text: pbjsChunk([1],{10:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.default=function(e){var n,t=e.url,a=e.analyticsType,o=e.global,i=e.handler,_=[],N=0,O=!0;a===S&&(0,u.loadScript)(t,B);(a===E||A)&&B();return{track:function(e){var n=e.eventType,r=e.args;(this.getAdapterType()===S||A)&&window[o](i,n,r);this.getAdapterType()===E&&function(e){var n=e.eventType,r=e.args,a=e.callback;(0,s.ajax)(t,a,JSON.stringify({eventType:n,args:r}))}.apply(void 0,arguments)},enqueue:C,enableAnalytics:function(e){var t=this,a=this;m="object"!==(void 0===e?"undefined":r(e))||"object"!==r(e.options)||(void 0===e.options.sampling||Math.random()<parseFloat(e.options.sampling));if(m){var i;d.getEvents().forEach((function(e){if(e){var n=e.eventType,t=e.args;n!==g&&C.call(a,{eventType:n,args:t})}})),c(i={},y,(function(e){return t.enqueue({eventType:y,args:e})})),c(i,v,(function(e){return t.enqueue({eventType:v,args:e})})),c(i,g,(function(e){return t.enqueue({eventType:g,args:e})})),c(i,T,(function(e){return t.enqueue({eventType:T,args:e})})),c(i,b,(function(e){return t.enqueue({eventType:b,args:e})})),c(i,h,(function(e){return t.enqueue({eventType:h,args:e})})),c(i,f,(function(e){return t.enqueue({eventType:f,args:e})})),c(i,p,(function(n){n.config=e.options,t.enqueue({eventType:p,args:n})})),n=i,l._each(n,(function(e,n){d.on(n,e)}))}else l.logMessage('Analytics adapter for "'+o+'" disabled by sampling');this.enableAnalytics=function(){return l.logMessage('Analytics adapter for "'+o+'" already enabled, unnecessary call to `enableAnalytics`.')}},disableAnalytics:function(){l._each(n,(function(e,n){d.off(n,e)}))},getAdapterType:function(){return a},getGlobal:function(){return o},getHandler:function(){return i},getUrl:function(){return t}};function C(e){var n=e.eventType,t=e.args,r=this;o&&window[o]&&n&&t?this.track({eventType:n,args:t}):_.push((function(){N++,r.track({eventType:n,args:t})}))}function B(){if(O){for(var e=0;e<_.length;e++)_[e]();_.push=function(e){e()},O=!1}l.logMessage("event count sent to "+o+": "+N)}};var a,o=t(4),i=(a=o)&&a.__esModule?a:{default:a},u=t(5),s=t(6);function c(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var d=t(11),l=t(0),p=i.default.EVENTS.AUCTION_INIT,f=i.default.EVENTS.AUCTION_END,y=i.default.EVENTS.BID_REQUESTED,g=i.default.EVENTS.BID_TIMEOUT,v=i.default.EVENTS.BID_RESPONSE,T=i.default.EVENTS.BID_WON,b=i.default.EVENTS.BID_ADJUSTMENT,h=i.default.EVENTS.SET_TARGETING,S="library",E="endpoint",A="bundle",m=!0},234:function(e,n,t){e.exports=t(235)},235:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a=i(t(10)),o=i(t(1));function i(e){return e&&e.__esModule?e:{default:e}}var u=t(0),s=r((0,a.default)({emptyUrl:"",analyticsType:"endpoint"}),{STR_BEACON_HOST:document.location.protocol+"//b.sharethrough.com/butler?",placementCodeSet:{},track:function(e){var n=e.eventType,t=e.args;if("bidRequested"===n&&"sharethrough"===t.bidderCode)for(var r=t.bids,a=Object.keys(r),o=0;o<a.length;o++)this.placementCodeSet[r[a[o]].placementCode]=t.bids[a[o]];"bidWon"===n&&this.bidWon(t)},bidWon:function(e){var n=e.bidderCode;if("sharethrough"!==n&&e.adUnitCode in this.placementCodeSet){var t=this.placementCodeSet[e.adUnitCode];this.fireLoseBeacon(n,e.cpm,t.adserverRequestId,"headerBidLose")}},fireLoseBeacon:function(e,n,t,r){var a=this.STR_BEACON_HOST;a=u.tryAppendQueryString(a,"winnerBidderCode",e),a=u.tryAppendQueryString(a,"winnerCpm",n),a=u.tryAppendQueryString(a,"arid",t),a=u.tryAppendQueryString(a,"type",r),a=this.appendEnvFields(a),this.fireBeacon(a)},appendEnvFields:function(e){return e=u.tryAppendQueryString(e,"hbVersion","0.32.0"),e=u.tryAppendQueryString(e,"strVersion","0.1.0"),e=u.tryAppendQueryString(e,"hbSource","prebid")},fireBeacon:function(e){(new Image).src=e}});o.default.registerAnalyticsAdapter({adapter:s,code:"sharethrough"}),n.default=s}},[234]);