!function(e,t){var define;"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.obtp=t():e.obtp=t()}(this,(()=>(()=>{"use strict";var e,t,n={},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return n[e](i,i.exports,r),i.exports}r.m=n,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>e+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="conversion-pixel-tag:",r.l=(n,o,i,a)=>{if(e[n])e[n].push(o);else{var s,c;if(void 0!==i)for(var u=document.getElementsByTagName("script"),p=0;p{s.onerror=s.onload=null,clearTimeout(f);var r=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((e=>e(o))),t)return t(o)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),c&&document.head.appendChild(s)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={881:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var i=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=i);var a=r.p+r.u(t),s=new Error;r.l(a,(n=>{if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,o[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,i,[a,s,c]=n,u=0;if(a.some((t=>0!==e[t]))){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);c&&c(r)}for(t&&t(n);uthis.validNameLength&&(p(h.Warning,"Event name length cannot exceed 100 characters",e.name),1)):(p(h.Warning,"Event Name invalid",e.name),!1)},e}()),O=new(function(){function e(){}return e.prototype.getParamFromUrl=function(e){var t=this.getLocation();t.indexOf("#")>-1&&(t=t.substring(0,t.indexOf("#")));for(var n=(t.split("?")[1]||"").split(/&/),o=0;o-1&&t.didomiPurposesConsent.indexOf("measure_ad_performance")>-1)},e}()),H=function(){function e(){}return e.prototype.hasConsentHandler=function(){return void 0!==window.OnetrustActiveGroups},e.prototype.handleConsent=function(e){var t=this;this.cb=e;var n=function(){return window.OnetrustActiveGroups.toUpperCase().indexOf("C0004")>-1};if(n())this.cb(!0);else if("OneTrust"in window)window.OneTrust.OnConsentChanged((function(){t.cb(n())}));else{var o=ce.zone===d.Default;this.cb(o)}},e}(),R=new H,V=function(){function e(){}return e.prototype.hasConsentHandler=function(){return!!window.google_tag_data},e.prototype.handleConsent=function(e){var t;if(ce.zone!==d.Default){var n=window.google_tag_data;if(null===(t=null==n?void 0:n.ics)||void 0===t?void 0:t.entries){var o=["ad_storage","ad_user_data"],r=function(){return o.every((function(e){var t;return!0===(null===(t=n.ics.entries[e])||void 0===t?void 0:t.update)}))};e(r()),!r()&&n.ics.addListener&&n.ics.addListener(o,(function(){e(r())}))}else e(!1)}else e(!0)},e}(),F=new V,z=function(){function e(){this.cbs=[],this.tcfApiEventListeners=[]}return e.prototype.hasConsentHandler=function(){return!!window.__tcfapi||!!this.getTCF2Window()},e.prototype.handleConsent=function(e){if(this.cbs.push(e),window.__tcfapi){var t=this.onTCFChanges.bind(this);this.tcfApiEventListeners.push(t),window.__tcfapi("addEventListener",2,t)}else{var n=this.getTCF2Window();window.addEventListener?window.addEventListener("message",this.postMsgCB.bind(this),!1):window.attachEvent&&window.attachEvent("message",this.postMsgCB.bind(this),!1);var o={__tcfapiCall:{command:"addEventListener",parameter:[164],version:2,callId:k}};n.postMessage(o,"*")}},e.prototype.hasPurposeConsent=function(e){if(!(null==e?void 0:e.consents))return!0;var t=e.consents,n=!0;return y.forEach((function(e){t.hasOwnProperty(e)&&!1===t[e]&&(n=!1)})),n},e.prototype.postMsgCB=function(e){e.data.__tcfapiReturn&&e.data.__tcfapiReturn.callId===k&&this.onTCFCB(e.data.__tcfapiReturn.returnValue,!0)},e.prototype.onTCFCB=function(e,t){!1!==e&&"cmpuishown"!==e.eventStatus&&(t&&"tcloaded"===(null==e?void 0:e.eventStatus)||"useractioncomplete"===(null==e?void 0:e.eventStatus)?(e&&e.vendor&&e.vendor.consents&&!1===e.vendor.consents[164]||!e||!this.hasPurposeConsent(e.purpose)?this.invokeCallBacks(!1):this.invokeCallBacks(!0),this.removeTcfApiEventListeners()):this.invokeCallBacks(!0))},e.prototype.invokeCallBacks=function(e){for(;this.cbs.length;)this.cbs.shift()(e)},e.prototype.removeTcfApiEventListeners=function(){window.__tcfapi&&this.tcfApiEventListeners.forEach((function(e){window.__tcfapi("removeEventListener",2,e)}))},e.prototype.onTCFChanges=function(e,t){this.onTCFCB(e,t)},e.prototype.getTCF2Window=function(){var e=window;try{for(;e&&!e.frames.__tcfapiLocator;){if(e===window.top)return;e=e.parent}return e}catch(e){}},e}(),W=new z,M=new(function(){function e(){}return e.prototype.hasConsentHandler=function(){return window.__uspapi&&"function"==typeof window.__uspapi},e.prototype.handleConsent=function(e){window.__uspapi("getUSPData",1,(function(t,n){if(t.uspString)n&&"1YYN"!==t.uspString.toUpperCase()&&"1NYN"!==t.uspString.toUpperCase()?e(!0):e(!1);else{var o=ce.zone===d.Default;e(o)}}))},e}()),q=function(){function e(){this.delimiter="~"}return e.prototype.hasConsentHandler=function(){return!!window.__gpp},e.prototype.handleConsent=function(e){var t=this;this.cb=e;var n=ce.zone===d.Default;window.__gpp("addEventListener",(function(o){if("signalStatus"===o.eventName&&"ready"===o.data){var r=o.pingData.gppString;t.parseGppString(r,n,e)}}))},e.prototype.parseGppString=function(e,t,n){return o=this,i=void 0,s=function(){var o,i;return function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]3e5)&&!O.getParamFromUrl(m)){var r=this;ce.setCachedClickId=(e=function(){var e,t=document.createElement("script"),n="string"==typeof(e=ce.marketerId)?e:a(e)?e.join(","):void 0;t.src=A()+"/cachedClickId?marketerId="+n,o.body.appendChild(t)},t=function(){B.set(b,Date.now(),5/1440)},ue.checkHasConsent((function(t){t&&e()})),r.eventBusService.on(v,(function(t){t&&e()})),function(e){if("optout"!==e)if("NoClickId"===e)ce.zone===d.Default?t():(ue.checkHasConsent((function(e){e&&t()})),r.eventBusService.on(v,(function(e){e&&t()})));else{var n=O.getParamFromUrl(C);e&&(e=e.replace(/#/g,"")),B.set(w,e,7,n)}})}},e}();try{var le=ce.zone===d.Default;!function(e){e.addVariation=function(t){if(e.variations||(e.variations=[]),!(e.variations.indexOf(t)>-1)){e.variations.push(t);var n=B.get("variations"),o=n?n.split(",").map((function(e){return parseInt(e)})):[];o.indexOf(t)>-1||B.set("variations","".concat(ne(ne([],o,!0),[t],!1)))}}}(ce),new function(){if(history.pushState&&history.replaceState&&window.addEventListener){var e=this,t=function(t){location.href!==e.lastVisited&&t&&(e.lastVisited=location.href,ce("track",g))};u(history,"pushState",t),u(history,"replaceState",t),window.addEventListener("popstate",t,!1)}},P.on(v,(function(e){le=e,e&&(function(){var e,t;function n(e){var t=document.createElement("script");t.async=!0,t.src=e,t.type="text/javascript";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}var o=function(e){var t,r;if(["https://my.outbrain.com","http://localhost:4949","http://localhost:2109","https://simsite.outbrain.com"].indexOf(e.origin)>-1&&"SHOW_EVENT_PICKER"===(null===(t=e.data)||void 0===t?void 0:t.message)){var i=(null===(r=e.data)||void 0===r?void 0:r.content).appName;n("https://my.outbrain.com/events-picker-app?appName=".concat(i||"codeless")),window.opener.postMessage({message:"EVENT_PICKER_CONNECTED"},e.origin),window.removeEventListener("message",o)}};window.addEventListener("message",o),null===(t=null===(e=null===top||void 0===top?void 0:top.window.opener)||void 0===e?void 0:e.postMessage)||void 0===t||t.call(e,{message:"OB_SHOULD_SHOW_PICKER",content:{marketerId:ce.marketerId}},"*");try{Array.isArray(ce.marketerId)&&ce.marketerId.filter((function(e){return!!e})).slice(0,9).forEach((function(e){return n("".concat(L()?"https://p.teads.tv/obwave/":"https://wave.outbrain.com/","mtWavesBundler/handler/").concat(e.trim()))}))}catch(e){I(e,ce)}}(),function(){if("browsingTopics"in document&&"featurePolicy"in document&&window.document.featurePolicy.allowsFeature("browsing-topics")){var e=L()?"https://p.teads.tv/obtp/topics":"https://amplify.outbrain.com/topics";fetch(e,{browsingTopics:!0}).then((function(e){}))}}())})),ce.dispatch.apply(ce),new pe(P).getCachedClickId()}catch(e){le&&I(e,ce)}return i})()));