text: pbjsChunk([39],{310:function(e,t,n){e.exports=n(311)},311:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},a=i(n(5)),o=i(n(2)),r=i(n(8)),f=i(n(7));function i(e){return e&&e.__esModule?e:{default:e}}var u=n(0),s="//pa.rxthdr.com/analytic",d=o.default.EVENTS.AUCTION_INIT,p=o.default.EVENTS.AUCTION_END,g=o.default.EVENTS.BID_WON,y=o.default.EVENTS.BID_REQUESTED,v=o.default.EVENTS.BID_ADJUSTMENT,T=o.default.EVENTS.BID_RESPONSE,b={publisherIds:[],utmTagData:[],adUnits:[]},h={options:{},events:[]},E={options:{},events:[]},_="not_started",l="roxot_analytics_",m=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],I="utm_timeout",S=36e5,D=36e5,A="session_id",N="session_timeout";function U(){return l.concat(A)}function O(){return l.concat(N)}function w(){if(t=localStorage.getItem(O()),Date.now()-t>D){var e=u.generateUUID();localStorage.setItem(U(),e)}var t;b.sessionId=localStorage.getItem(U())?localStorage.getItem(U()):"",localStorage.setItem(O(),Date.now())}function q(){localStorage.setItem(M(),Date.now())}function M(){return l.concat(I)}function j(e){return l.concat(e)}function R(){return void 0!==b.adUnits&&0<b.adUnits.length}function B(){E.events=[]}var C=c((0,a.default)({url:s,analyticsType:"endpoint"}),{track:function(e){var t=e.eventType,n=e.args;if(void 0!==b.publisherIds&&0<b.publisherIds.length){var a,o,r,i,u,s,l=c({},n);if(l&&l.ad&&(l.ad=""),t===d&&(_="started",B()),t===g&&"not_started"===_)return w(),a=t,o=l,h.options=b,R()?(0,f.default)(b.adUnits,o.adUnitCode)&&(h.events=[{args:o,eventType:a}]):h.events=[{args:o,eventType:a}],0<h.events.length&&x(t,h,"bidWon"),void(h.events=[]);t===p?(w(),E.options=b,0<E.events.length&&E.events.some((function(e){return y===e.eventType||g===e.eventType}))&&x(t,E,"eventStack"),B(),_="not_started"):(i=l,(r=t)===y?(R()&&(i.bids=(u=i.bids,s=[],u.forEach((function(e){(0,f.default)(b.adUnits,e.placementCode)&&s.push(e)})),s)),0<i.bids.length&&E.events.push({eventType:r,args:i})):(function(e,t){if(R()){var n=[v,T,g];if(!(0,f.default)(b.adUnits,t)&&(0,f.default)(n,e))return!1}return!0})(r,i.adUnitCode)&&E.events.push({eventType:r,args:i}))}}});function x(t,e,n){var a=s+"?publisherIds[]="+b.publisherIds.join("&publisherIds[]=")+"&host="+window.location.hostname,o=new XMLHttpRequest;o.open("POST",a,!0),o.setRequestHeader("Content-Type","text/plain"),o.withCredentials=!0,o.onreadystatechange=function(e){4==this.readyState&&u.logInfo("Event "+t+" sent "+n+" to roxot prebid analytic with result"+e)},o.send(JSON.stringify(e))}C.originEnableAnalytics=C.enableAnalytics,C.enableAnalytics=function(e){(b=e.options).utmTagData=this.buildUtmTagData(),u.logInfo("Roxot Analytics enabled with config",b),C.originEnableAnalytics(e)},C.buildUtmTagData=function(){var o={},r=!1;return m.forEach((function(e){var t,a,n=(t=e,a={},window.location.href.replace(location.hash,"").replace(/[?&]+([^=&]+)=?([^&]*)?/gi,(function(e,t,n){a[t]=void 0!==n?n:""})),a[t]?a[t]:"");""!==n&&(r=!0),o[e]=n})),m.forEach((function(e){var t;r?(localStorage.setItem(j(e),o[e]),q()):(t=localStorage.getItem(M()),Date.now()-t>S||(o[e]=localStorage.getItem(j(e))?localStorage.getItem(j(e)):"",q()))})),o},r.default.registerAnalyticsAdapter({adapter:C,code:"roxot"}),t.default=C},5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d="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};t.default=function(e){var o,r=e.url,t=e.analyticsType,i=e.global,a=e.handler,u=[],s=0,n=!0;t===U&&(0,p.loadScript)(r,f);(t===O||w)&&f();return{track:function(e){var t=e.eventType,n=e.args;(this.getAdapterType()===U||w)&&window[i](a,t,n);this.getAdapterType()===O&&function(e){var t=e.eventType,n=e.args,a=e.callback;(0,g.ajax)(r,a,JSON.stringify({eventType:t,args:n}))}.apply(void 0,arguments)},enqueue:l,enableAnalytics:c,disableAnalytics:function(){T._each(o,(function(e,t){v.off(t,e)})),this.enableAnalytics=this._oldEnable?this._oldEnable:c},getAdapterType:function(){return t},getGlobal:function(){return i},getHandler:function(){return a},getUrl:function(){return r}};function l(e){var t=e.eventType,n=e.args,a=this;i&&window[i]&&t&&n?this.track({eventType:t,args:n}):u.push((function(){s++,a.track({eventType:t,args:n})}))}function c(t){var e,n=this,a=this;"object"!==(void 0===t?"undefined":d(t))||"object"!==d(t.options)||(void 0===t.options.sampling||Math.random()<parseFloat(t.options.sampling))?(v.getEvents().forEach((function(e){if(e){var t=e.eventType,n=e.args;t!==_&&l.call(a,{eventType:t,args:n})}})),y(e={},E,(function(e){return n.enqueue({eventType:E,args:e})})),y(e,m,(function(e){return n.enqueue({eventType:m,args:e})})),y(e,_,(function(e){return n.enqueue({eventType:_,args:e})})),y(e,I,(function(e){return n.enqueue({eventType:I,args:e})})),y(e,S,(function(e){return n.enqueue({eventType:S,args:e})})),y(e,D,(function(e){return n.enqueue({eventType:D,args:e})})),y(e,A,(function(e){return n.enqueue({eventType:A,args:e})})),y(e,h,(function(e){return n.enqueue({eventType:h,args:e})})),y(e,N,(function(e){return n.enqueue({eventType:N,args:e})})),y(e,b,(function(e){e.config="object"===(void 0===t?"undefined":d(t))&&t.options||{},n.enqueue({eventType:b,args:e})})),o=e,T._each(o,(function(e,t){v.on(t,e)}))):T.logMessage('Analytics adapter for "'+i+'" disabled by sampling');this._oldEnable=this.enableAnalytics,this.enableAnalytics=function(){return T.logMessage('Analytics adapter for "'+i+'" already enabled, unnecessary call to `enableAnalytics`.')}}function f(){if(n){for(var e=0;e<u.length;e++)u[e]();u.push=function(e){e()},n=!1}T.logMessage("event count sent to "+i+": "+s)}};var a,o=n(2),r=(a=o)&&a.__esModule?a:{default:a},p=n(11),g=n(6);function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=n(9),T=n(0),i=r.default.EVENTS,b=i.AUCTION_INIT,h=i.AUCTION_END,E=i.BID_REQUESTED,_=i.BID_TIMEOUT,m=i.BID_RESPONSE,I=i.BID_WON,S=i.BID_ADJUSTMENT,D=i.BIDDER_DONE,A=i.SET_TARGETING,N=i.AD_RENDER_FAILED,U="library",O="endpoint",w="bundle"}},[310]);