/*! 20250406-5-RELEASE */ function _typeof(e){"@babel/helpers - typeof";return(_typeof="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})(e)}!function(e){var t='TFASC';t.indexOf("{jsScope}")>-1&&(t="TRC"),e[t]||(e[t]={})}(window),function(e,t){e.TRC=e.TRC||{};var n=function e(){return!0},r=function n(r,i,o,a){var s=r+"/"+encodeURIComponent(o||e.TRC.publisherId)+"/log/3"+"/"+i;return a&&(s+="?"+t.TRCLogger.formatParams(a)),s},i=function t(r,i,s,c,u){var l,f=new(e.XDomainRequest||e.XMLHttpRequest);return f.open(r,i),f.onload="function"==typeof c?c:n,f.onerror=n,f.ontimeout=n,f.onprogress=n,f.withCredentials=!0,u&&o(f,u),s&&a(f,s),f},o=function e(t,n){n.forEach(function(e){"function"==typeof e&&e(t)})},a=function e(t,n){for(var r in n)n.hasOwnProperty(r)&&t.setRequestHeader(r,n[r])};e.TRC.TRCLogger=t.TRCLogger={post:function n(o,a,s,c,u,l){var f=r(o,a,c,u),d=i("POST",f);l&&"function"==typeof e.navigator.sendBeacon?e.navigator.sendBeacon(f,t.TRCLogger.formatBeaconParams(s)):(d.setRequestHeader&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.send(t.TRCLogger.formatParams(s)))},get:function e(t,n,o,a,s){if(o.headers){var c=o.headers;delete o.headers}if(o.modifiers){var u=o.modifiers;delete o.modifiers}var l=r(t,n,a,o),f;i("GET",l,c,s,u).send()},formatParams:function e(t){var n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return n.join("&")},formatBeaconParams:function e(t){var n="",r;for(var i in t)t.hasOwnProperty(i)&&(n+=i+"="+encodeURIComponent(t[i])+"&");return new Blob([n.slice(0,-1)],{type:"application/x-www-form-urlencoded"})},reportES:function e(n){if(t&&t.util&&t.util.isPercentEnabled(TRCImpl.global,"enable-rbox-es-events")){var r=TRCImpl&&TRCImpl.global&&TRCImpl.global["rbox-es-events-url"]||"https://vidanalytics.taboola.com/putes";r=r+"/"+n.index;var i={timestamp:(new Date).toISOString(),name:n.name};for(var o in n.data)i[o]=n.data[o];if("function"==typeof navigator.sendBeacon)navigator.sendBeacon(r,JSON.stringify(i));else{var a=new XMLHttpRequest;a.open("POST",r,!0),a.send(JSON.stringify(i))}}}}}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t){if(t&&!t.MessageDelayer){var n=function n(r){return function(n){var i=n.detail,o=n.type,a=""+i[this.groupingKeyName],s=this.delayedEventsMap[a],c=t.eventUtils.getDateNow();if(s){this.timeoutHandles[a]&&(clearTimeout(this.timeoutHandles[a]),this.timeoutHandles[a]=null);var u=[].concat(s);this.delayedEventsMap[a]=[];for(var l=0;l=0?"TRC":'TFASC']),function(e){e.TRC=e.TRC||{},e.TRC.sharedObjects=e.TRC.sharedObjects||{},e.TRC.sharedObjects.loadedScripts=e.TRC.sharedObjects.loadedScripts||{},e.TRC.sharedObjects.loadedPixels=e.TRC.sharedObjects.loadedPixels||{}}(window),function(e,t,n){!function(){if("function"==typeof e.CustomEvent)return!1;function n(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var r=t.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r}n.prototype=e.Event.prototype,e.CustomEvent=n}(),n.eventUtils=n.eventUtils||{},n.eventUtils.dispatchEvent=n.eventUtils.dispatchEvent||function(e,t){"function"==typeof CustomEvent&&document.dispatchEvent(new CustomEvent(e,{detail:t||{}}))},n.eventUtils.safeAddEventListener=n.eventUtils.safeAddEventListener||function(e,t){document.addEventListener(e,function(e){try{t.call(this,e)}catch(e){}})},n.eventUtils.safeAddEventListenerToWindow=n.eventUtils.safeAddEventListenerToWindow||function(e,t){window.addEventListener(e,function(e){try{t.call(this,e)}catch(e){}})},n.eventUtils.getDateNow=n.eventUtils.getDateNow||function(){var e,t;if(Date.now){if("number"==typeof(e=Date.now()))return e;if("number"==typeof(t=Number(e)))return t}return(new Date).getTime()},n.eventUtils.hashString=n.eventUtils.hashString||function(e){var t=0;if(0==e.length)return t;for(var n=0;n=0?"TRC":'TFASC']),function(e,t){e._tfa=e._tfa||[],e._tfa.config||(e._tfa.TfaConfig=function(){this.configMap={},this.trackedElements=[]},e._tfa.TfaConfig.prototype={safeGet:function e(t,n,r){var i,o,a;if(r&&this.configMap[r])i=""+r;else{if(!this.firstPublisherId)return n;i=this.firstPublisherId}try{return void 0===(a=(o=this.configMap[i])[t])?n:a}catch(e){return n}},hasValidConfig:function e(){return!!this.firstPublisherId},addConfig:function e(t,n){"string"==typeof n||n instanceof String||(this.firstPublisherId||(this.firstPublisherId=t),this.configMap[""+t]=n)},addTrackedElements:function e(t){this.trackedElements=t}},e._tfa.config=new e._tfa.TfaConfig,e._taboola=e._taboola||[]),e._tfa.config.addConfig(1759156,{"tfa:event-host-map":{"pre_d_eng_tb": "trc-events.taboola.com"},"tfa:add-item-url:event-list":"*","tfa:trk:is-unified-page-view":true,"eid:send-eid-encoded":true,"tfa-uid:send-ids-to-cds":false,"cds:send-uad-req":true,"cds:send-dnid-req":true,"tfa:get-publisher-id-from-baker":true,"tfa:trk:flc-enabled":true,"tfa:engagement:return-visits:is-enabled":true,"tfa:collect-eid-from-page":false,"eid-enabled":"false","eid:tfa:common-eid-keywords":"help,support,contact,readme,test,info,reply,careers,spam,login,subscribe,feedback,reachus,customers,cookie,members","tfa:trk:topics-enabled":true,"tfa:allow-cross-domain-tracking":true,"tfa:engagement:use-new-interval-calculation":true}),e._tfa.config.addTrackedElements([])}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t,n){"use strict";var r=e[n.jsScope],i={map:function e(t,n){if("function"==typeof Array.prototype.map)return n.map(t);for(var r=[],i=0;i=r?i.slice(r-1).join(n):[])},Y=function e(t){if(!t)throw new Error("Invalid URL!");this.href=t;var n=z(t,"#",2);return this.hash=n.length>1?"#"+n.pop():"",t=n[0],n=z(t,"?",2),this.search=n.length>1?"?"+n.pop():"",t=n[0],n=z(t,"://",2),this.protocol=n.length>1?n.shift()+":":"",t=n[0],n=z(t,"/",2),this.pathname=n.length>1?"/"+n.pop():"/",t=n[0],n=z(t,"@",2),this.auth=n.length>1?n.shift():"",t=n[0],n=z(t,":",2),this.port=n.length>1?parseInt(n.pop()):0,this.host=n[0],this},X={"http:":1,"https:":1};Y.prototype.toString=function(e){return(this.host?this.protocol+"//"+(this.auth?this.auth+"@":"")+this.host+(this.port?":"+this.port:""):"")+this.pathname+this.search+(e?"":this.hash||"")},Y.prototype.switchProtocol=function(e,t){var n=this instanceof Y?this:new Y(this),r;return X[e]&&(t&&"https:"===n.protocol||(n.protocol=e)),(r=n.toString(!1)).length>1?r:""},Y.prototype.getParameter=function(e){for(var t,n=(this instanceof Y?this:new Y(this)).search.substr(1).split(/&/),r=0;r0?n[n.length-1]:null},le=function e(){r.eventUtils.dispatchEvent(M,x)},fe=function t(i,o){if(e.clearTimeout(i[m]),o&&o.trc){if(o.trc.ui?(o.trc["DNT"]&&"TRUE"===o.trc["DNT"].toUpperCase()?localStorage.removeItem("taboola global:user-id"):o.trc["cm"]||localStorage.setItem("taboola global:user-id",o.trc["ui"]),F=B.USER_ID_SET):F=B.UNINITIALIZED,o.trc.sd&&!o.trc["cm"]&&localStorage.setItem(i.publisherId+":session-data",o.trc["sd"]),o.trc["vl"]&&o.trc["vl"].length){var a=o.trc["vl"][0].ri;i.isMediaRequest||(e.TRC.events_ri=a),i[S]=a,i[E]=C,r.eventUtils.dispatchEvent(r.sharedEvents.REQUEST_ID_CREATED,{publisherId:i.publisherId,requestId:a})}i.isMediaRequest&&r.trk.rboxNotLoaded()&&(o.trc.stp&&r.trk.loadPixels(o.trc.stp),o.trc.jst&&r.trk.loadScriptTags(o.trc.jst)),r.privacySandbox&&r.privacySandbox.isProtectedAudienceSupported()&&i.isMediaRequest&&o.trc.ig&&r.privacySandbox.joinInterestGroupsInIframe(o.trc.ig)}i[E]!==C&&(i[E]=k,r.eventUtils.dispatchEvent(r.sharedEvents.REQUEST_ID_CREATION_ERROR,{publisherId:i.publisherId})),i.isMediaRequest||(e.TRC.trkRequestStatus=!(P.indexOf(i[E])>=0)),e.TRC.alertVVResponseLoaded&&e.TRC.alertVVResponseLoaded(n.tblVersion),te(i),le()},de=function(){var e,t=function e(){try{return decodeURI(top.window.document.referrer)}catch(e){}return null},n=/https?:\/\/\w+\.taboola(?:syndication)?\.com/,r=function e(t){return n.test(t)?t.split("?")[0]:t.substr(0,400)},i,o=[function e(){for(var t=document.head.getElementsByTagName("link"),n=0;nn&&(r=$.substring(0,n-1),$=r.substring(0,r.lastIndexOf("&"))),$},ve=function e(t){var n=Ee("usprivacy");if("function"==typeof __uspapi)try{__uspapi("getUSPData",1,function(e,r){r&&e?t(e.uspString):n&&t(n)})}catch(e){throw n&&t(n),new Error("Error while calling __uspapi for getUSPData")}else n&&t(n)};function me(e,t,n){if(t){try{window.__gpp("removeEventListener",function(){},e.listenerId)}catch(e){}n(e)}}var Se=function e(t){if("function"==typeof t)try{var n=function e(n,r){me(n,r,t)};window.__gpp("addEventListener",n)}catch(e){}},Ee=function e(t){var n=t+"=",r="; "+document.cookie;if(r)for(var i=r.split(";"),o=0;o=0&&(n=n.substr(0,t))},r["truncate-at"]||[]);for(var a=new Y(n),s=i.objKeys(r),c=0;c=0&&(a.hash="#"+h)})}}return a.pathname||(a.pathname="/"),"item-id"===t?a.toString().toLowerCase():a.toString()},Ce=function e(){return Ae(he(),"ampproject.net")},ke=function e(){return Ae(he(),"instantarticles.fb.com")},Ae=function e(t,n){try{return void 0!==t&&void 0!==n&&t.indexOf(n)>0}catch(e){return!1}},Pe=function e(t,r,i){var o=["paramUrl","meta","canonical","og","location"],a={paramUrl:Oe,canonical:Ue,og:De,location:Ne},s=n.urlExtractOrder&&Array.isArray(n.urlExtractOrder)?n.urlExtractOrder:o,c=0,l,f,d,h="",p=function e(t,n){return we.call(this,t,n,i)};for(s.push("location");c5)return i.call(this,n,r.trk.encodeItemUrlIfNeeded(o[a].content));return null},Ne=function t(n,r){var o=function t(){var n=e.location,r=i.filter(function(e){return 0!==e.search("trc_")&&"taboola-debug"!==e},n.search.replace(/^\?/,"").split("&")).join("&");return n.origin+n.pathname+"?"+r};return r.call(this,n,o())},Le=function e(t){try{var n=i.objKeys(t[0]);for(var r in n)switch(n[r]){case"home":return"home";case"category":return"category";case"text":case"article":return"text";case"search":return"search";case"photo":return"photo";case"other":return"other";case"content_hub":return"content_hub";case"video":default:return"video"}}catch(e){return"video"}},Me=function e(t){return localStorage.getItem(t+":session-data")},xe=function e(){return localStorage.getItem("taboola global:user-id")},Ve=function e(){return Pe("item-url",n.normalizeItemUrl,n.prenormalizeUrlRules)},je=function e(t){for(var n,r=/^(.*\/libtrc\/.+\/)(?:(?:trk)|(?:tfa))\.js(?:\?(.*))?$/,i=0;i1?s[r[i].index]:s[0];return a},Fe=function t(){if(!e.TRC.AdServerManager){var r=Be();e.TRC.VVReady=Ke,re("//"+r+"/libtrc/vv."+n.tblVersion+".js")}},Ke=function t(){e.TRC.adManager=new e.TRC.AdServerManager(n.vvConfig,n.tblVersion),e.TRC.adManager.startVV().then(function(){e.TRC.adManager.run()})},$e=function e(t,n){return t?t[n]:t},Ge=function e(t,n,r){if(0===i.objKeys(r).length||D[""+t])return t;var o=document.createElement("a");o.href=f;var a=(o.host||location.host).toLowerCase(),s=(o.href||location.href).toLowerCase(),c=U[n],u=$e(r[a],c),l="/",d=["m","mobile","www2","www3"],h=[],p,g,v,m,S;if(!u){for(ee(r,h),h.sort(function(e,t){return e[0].length>t[0].length?-1:e[0].length0){if(s.match(v)){u=$e(h[p][1],c);break}if(v.indexOf("www.")>-1&&s.match(v.replace("www.",""))){u=$e(h[p][1],c);break}}else if(a.match(v)){u=$e(h[p][1],c);break}if(!u&&a.indexOf("www.")<0){for(p=0,g=d.length;p-1},!1)},hasRequestEnded:function e(t){return He(t,function(e){return P.indexOf(e)>-1||!(O.indexOf(e)>-1)},!1)},getPublisherRequestId:function e(t){var n=ue(t);return n&&n[E]===C?n[S]:null},getPublisherSessionData:function e(t){var n=Me(t);return n||null},getViewId:function e(){return K},getReferrer:de,getCcpaParam:function e(t){return ve(t)},getGppParam:function e(t){return Se(t)},COOKIE_BANNER_MAP:H(),parseCookieBanner:function e(){var t,n;try{return(n=Q())?n:null===(t=r.trk.parseCookieBannerProvider())?null:(r.trk.parseCookieBannerConsent(t),Q())}catch(e){return null}},parseCookieBannerProvider:function e(){var t,n;if(r.trk.cookieBannerProvider)return r.trk.COOKIE_BANNER_MAP[r.trk.cookieBannerProvider.providerName+",V"+r.trk.cookieBannerProvider.version];for(n in r.trk.COOKIE_BANNER_MAP)if(r.trk.COOKIE_BANNER_MAP.hasOwnProperty(n)&&(t=r.trk.COOKIE_BANNER_MAP[n]).isCookieBannerOfProvider())return r.trk.cookieBannerProvider={providerName:t.providerName,version:t.version},t.addListenerForConsentChange(),t;return null},parseCookieBannerConsent:function e(t){try{t.isCookieBannerOpen()||t.parseConsent()}catch(e){}},loadPixels:function t(n){try{return qe(n,e.TRC.sharedObjects.loadedPixels,function(e){var t=new Image;return t.src=e,t})}catch(e){}},loadScriptTags:function t(n){try{return qe(n,e.TRC.sharedObjects.loadedScripts,function(e){return re(e,null,null,!0)})}catch(e){}},rboxNotLoaded:function t(){return!(e.TRC&&e.TRC.utm)},rboxTrcProtocol:function e(){return n.rboxTrcProtocol},observeTopics:function e(){try{"browsingTopics"in t&&"function"==typeof t.browsingTopics&&t.featurePolicy&&t.featurePolicy.allowsFeature("browsing-topics")&&fetch("https://psb.taboola.com/topics_api",{browsingTopics:!0})}catch(e){}},hasSuperUTFSeq:function e(t){for(var n=t.split("").map(function(e){return e.charCodeAt(0)}),i=0,o=0;o=3)return!0;i++}return!1},isSuperUTF:function e(t){var n;return t>1200},encodeItemUrlIfNeeded:function e(t){try{if(r.trk.hasSuperUTFSeq(t))return encodeURI(t)}catch(e){}return t}},J()&&!e._tfa.config.safeGet("tfa:trk:enabled",!0,n.bakedPublisherId)||r.trk.init()}(window,document,{bakedPublisherId:1759156,bakedPublisherName:'taboolaaccount-cpdfreitasleiloeirocombr',tblVersion:"20250406-5-RELEASE",normalizeItemId:function(itemid,type,canon){if(!canon&&type=='text'&&typeof itemid=='string'&&itemid.search(new RegExp('^https?://'))==0)itemid=itemid.replace(/\?.*/,'', false);return itemid.toLowerCase();},prenormalizeIdRules:{"host":true,"fragment":"^(/video/|!)","query":["p","id"],"truncate-at":["search.searchcompletion.com","org.mozilla.javascript.undefined"],"trailing-dirsep":true},prenormalizeUrlRules:false,normalizeItemUrl:function(itemurl,type,canon){return itemurl;},urlExtractOrder:null,networkMap:{},vvConfig:null,enableVV:false,rboxTrcProtocol:'https:',tfaContext:true,jsScope:'TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC'}),function(e,t){e._tfa=e._tfa||[],t.useStorageDetection=e.TRC.useStorageDetection=e.TRC.useStorageDetection||!0,t.text=t.text||{},t.text.lsplit=t.text.lsplit||function(e,t,n){var r=e.split(t);return r.slice(0,n-1).concat(r.length>=n?r.slice(n-1).join(t):[])},t.tfaUtil=t.tfaUtil||{},t.tfaUtil.safeAddParam=t.tfaUtil.safeAddParam||function(e,t,n){var r,i;n&&t&&e&&(r=encodeURIComponent(e),i=encodeURIComponent(t),n.push(r+"="+i))},t.tfaUtil.getParameterByName=t.tfaUtil.getParameterByName||function(e,t){if(!t||!e)return null;e=e.replace(/[\[\]]/g,"\\$&");var n,r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null};var n=e.TRCImpl=e.TRCImpl||{};n.global=n.global||{},e.__trcError=e.__trcError||function e(){}}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t){var n="taboola global",r="trctestcookie";function i(){for(var e="trc_cookie_storage",n=new Object,r=document.cookie.split(/;\s+/),i=0;i0?1:-1,i=new Date((new Date).getTime()+365*r*864e5);var a="",s=document.domain.match(/[^\.]*\.[^.]*$/);s&&s.length>0&&(a=";domain=."+s[0]),document.cookie=e+"="+escape(t.join("|"))+";path=/;expires="+i.toUTCString()+a}return this.getValue=function(e){return n.hasOwnProperty(e)?n[e]:null},this.setValue=function(e,t){n[e]=t,l()},this.removeKey=function(e){delete n[e],l()},this}function o(e){var t=e||{};return this.getValue=function(e){return t[e]?t[e]:null},this.setValue=function(e,n){t[e]=n},this.removeKey=function(e){delete t[e]},this.getData=function(){return t},this}function a(t){return this.getValue=function(n){return e[t+"Storage"].getItem(n)},this.setValue=function(n,r){try{e[t+"Storage"].setItem(n,r)}catch(e){}},this.removeKey=function(n){try{e[t+"Storage"].removeItem(n)}catch(e){}},this}function s(t){var n=e[t+"Storage"],r=(new Date).getTime()+"",i="_taboolaStorageDetection";try{if(n.setItem(i,r),n.getItem(i)==r)return n.removeItem(i),n}catch(e){}return null}function c(n){try{if(e.localStorage instanceof Storage&&t.useStorageDetection&&s(n))return new a(n)}catch(e){return null}}function u(e){var t=[c("local"),new i,c("session")];try{for(var n=0,r=t;n=0?"TRC":'TFASC']),function(e,t,n){var r=n.tfaPageManager,i="https://",o="tblci",a="TABOOLA-DO-NOT-TRACK",s="#"+o;function c(e,t){e&&t&&(t[e]=!0)}function u(e,t,n){for(var r={},i=0;i1}n.tfaUserId={initialized:!1,userId:null,clickId:null,getUserId:function e(){return this.userId},getClickId:function e(){return this.clickId},getHttpsPrefix:function e(){return i},sendUserIdsToTrc:function t(r,i,o,a){var s,c='https:',l=[];if(u(r,i,o))return n.tfaUtil.safeAddParam("uiref",r,l),n.tfaUtil.safeAddParam("uils",i,l),n.tfaUtil.safeAddParam("uifpc",o,l),n.tfaUtil.safeAddParam("tblci",a,l),s=new Image,e._tfa.config.safeGet("tfa:add-referrer-policy-when-firing-pixel",!0)&&(s.referrerPolicy="no-referrer-when-downgrade"),s.src=c+"//trc.taboola.com/sg/taboola-tfa/1/um/?"+l.join("&"),s},isUserCanBeTracked:function t(n){return!n||!e._tfa.config.safeGet("tfa-uid:filter-do-not-track",!0)||-1===n.indexOf(a)},readAndStoreUserId:function e(){var t=this.extractUserIdFromReferrer(),n=r.getValue("user-id"),i=r.getUserIdFirstPartyCookie();this.isUserCanBeTracked(t)||(t=void 0),this.isUserCanBeTracked(n)||(n=void 0),this.isUserCanBeTracked(i)||(i=void 0),this.sendUserIdsToTrc(t,n,i,this.getClickId()),t&&(r.storeUserId(t),i&&r.getFirstPartyCookie().setValue(r.TABOOLA_GLOBAL_KEY+":"+"user-id",t)),this.userId=t||n||i},readAndStoreClickIdParam:function e(){var t=this.extractClickIdFromUrl(this.getWindowLocation().toString())||this.extractClickIdFromUrl(this.getReferrer()),n=r.getValue(o);t&&r.storePublisherValue(r.TABOOLA_GLOBAL_KEY,o,t),this.clickId=t||n},extractUserIdFromReferrer:function e(){var t=this.getReferrer();if(t&&t.indexOf("taboola")>-1)return n.tfaUtil.getParameterByName("ui",t)},extractClickIdFromUrl:function e(t){if(t){var r=t.length>1&&-1!==t.indexOf("#")?t.substring(t.indexOf("#")):"",i;if(i=n.tfaUtil.getParameterByName(o,t))return i;if(r&&r.length>s.length&&0===r.indexOf(s))return r.substr(s.length)}},getWindowLocation:function t(){return e.location},getReferrer:function e(){return t.referrer},init:function e(){this.initialized||(this.readAndStoreUserId(),this.readAndStoreClickIdParam(),this.initialized=!0)}},n.tfaUserId.init(),n.tfaUserId.CLICK_ID_KEY=o}(window,document,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t){var n="_tfa",r=e[n]=e[n]||[],i,o,a,s,c=6*60*60*1e3,u="eng_mt",l="crossSessionsData",f=36,d;function h(e,t,n){var r=this.getTimeLeftForSession(e,this.getSessionDuration(),t);r<0&&(r=0),setTimeout(function(){n()},r)}function p(e){return e.ver&&e.ver===this.getDataVersion()}var g=function e(){};g.prototype={constructor:g,init:function e(n){if(d=r.config.safeGet("tfa:engagement:session-duration-in-milliseconds",c),!this.isInitialized()){var i=t.eventUtils.getDateNow(),o=this.getSessionDataFromStorage();if(this.getIsLocalStorageAvailable())return a=o&&o.sessionStartTime,h.call(this,o,i,n),a&&!this.isSessionInvalid(o)||(a=i,this.persistDefaultValues(a)),s=!0,this}},getStorageKey:function e(){return u},getCrossSessionsData:function e(t){var n=t&&t.getValue(this.getStorageKey()),r=n&&JSON.parse(n);return r&&r[l]},resetStorageMetricData:function e(){var n=t.tfaPageManager.getLocalStorageImplementation("strict-w3c-storage"),r=this.getCrossSessionsData(n),i={crossSessionsData:r};n.setValue(this.getStorageKey(),r?JSON.stringify(i):"")},hasOnlyCrossSessionData:function e(t,n){return t&&1===t.length&&n.hasOwnProperty(l)},isSessionInvalid:function e(t){if(!t)return!0;var n=Object.keys(t);return this.hasOnlyCrossSessionData(n,t)},getSessionDataFromStorage:function e(){var n,r;n=t.tfaPageManager.getLocalStorageImplementation("strict-w3c-storage"),o=!!n;var i=n&&n.getValue(this.getStorageKey());if(r=i&&JSON.parse(i))return this.isSessionInvalid(r)?r:!p.call(this,r)||this.hasSessionEnded()?(this.resetStorageMetricData(),r):r},hasSessionEnded:function e(){return!!s&&(!a||t.eventUtils.getDateNow()-a>this.getSessionDuration())},persistDefaultValues:function e(n){var r=t.tfaPageManager.getLocalStorageImplementation("strict-w3c-storage");if(r){var i={ver:f,sessionStartTime:n,scrollDepth:0,sessionDepth:[],timeOnSite:0},o=this.getCrossSessionsData(r);o&&(i[l]=o),r.setValue(this.getStorageKey(),JSON.stringify(i))}},persistSpecificMetricsData:function e(n,r){var i=t.tfaPageManager.getLocalStorageImplementation("strict-w3c-storage"),o;i&&n&&(o=this.getSessionDataFromStorage())&&(o[n]=r,i.setValue(this.getStorageKey(),JSON.stringify(o)))},getCrossSessionsDataKey:function e(){return l},getSessionDuration:function e(){return d},getDataVersion:function e(){return f},getIsLocalStorageAvailable:function e(){return o},getSessionStartTime:function e(){return a},getTimeLeftForSession:function e(t,n,r){return t&&a?a+n-r:n},isInitialized:function e(){return s}},(i=r.TEM=r.TEM||{}).ESU=i.ESU||new g}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t){var n="_tfa",r;function i(e,t){this.storageUtils.persistSpecificMetricsData(e,t)}var o=function e(){};o.prototype={constructor:o,init:function e(t,n,r){this.isValid=t&&n&&r,this.storageUtils=t,this.visibilityListener=r,this.refreshFromStorage(),this.initLastVisibleStartTime(),this.visibilityListener.subscribeToEvent(this.handleVisibilityChange.bind(this)),n.subscribeToEvent(this.handleStorageChange.bind(this))},getStorageKey:function e(){return"timeOnSite"},initLastVisibleStartTime:function e(){this.isValid&&(this.lastVisibleStartTime=t.eventUtils.getDateNow())},refreshFromStorage:function e(){if(this.isValid){var t=this.storageUtils.getSessionDataFromStorage(),n=0;t&&t[this.getStorageKey()]&&(n=t[this.getStorageKey()]||0),this.timeOnSite=n}},calcTimeOnSite:function e(){if(this.isValid)return this.lastVisibleStartTime?this.timeOnSite+(t.eventUtils.getDateNow()-this.lastVisibleStartTime):this.timeOnSite},handleVisibilityChange:function e(){this.isValid&&(this.visibilityListener.getIsPageHidden()?(this.timeOnSite=this.calcTimeOnSite(),i.call(this,this.getStorageKey(),this.timeOnSite)):this.lastVisibleStartTime=t.eventUtils.getDateNow())},handleStorageChange:function e(){this.refreshFromStorage()},getTimeOnSite:function e(){if(this.isValid)return this.visibilityListener.getIsPageHidden()?this.timeOnSite:this.calcTimeOnSite()}},(r=e[n]=e[n]||[]).TEM=r.TEM||{},r.TEM.TOS=r.TEM.TOS||new o}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(){var e="_tfa",t,n=!1,r;function i(){return void 0==document.body||void 0==document.documentElement?0:(n=!0,Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)-document.documentElement.clientHeight);var e}function o(e,t){this.storageUtils.persistSpecificMetricsData(e,t)}function a(e,t){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}}var s=function e(){};s.prototype={constructor:s,init:function e(t,n){this.storageUtils=t||{},n.subscribeToEvent(this.handleStorageChange.bind(this)),this.refreshFromStorage(),this.initEventListeners(),this.updateMeasurements(),this.calcMaxScrollPercentage()},getStorageKey:function e(){return"scrollDepth"},getScrollDepth:function e(){return n||this.calcMaxScrollPercentage(),this.maxScrollPercentage},getMaxScrollableAmount:function e(){return n||(this.maxScrollableAmount=i()),this.maxScrollableAmount},initEventListeners:function e(){window.addEventListener("resize",a(this.onResize.bind(this),100)),window.addEventListener("scroll",a(this.onScroll.bind(this),50))},refreshFromStorage:function e(){var t=this.storageUtils.getSessionDataFromStorage(),n=0;t&&t[this.getStorageKey()]&&(n=t[this.getStorageKey()]||0),this.maxScrollPercentage=n},onResize:function e(){this.updateMeasurements()},onScroll:function e(){this.calcMaxScrollPercentage()},updateMeasurements:function e(){this.winHeight=window.innerHeight,this.maxScrollableAmount=i()},calcMaxScrollPercentage:function e(){this.updateMeasurements();var t=0===this.maxScrollableAmount?0:Math.floor(window.pageYOffset/this.maxScrollableAmount*100);t>this.maxScrollPercentage&&(this.maxScrollPercentage=t,o.call(this,this.getStorageKey(),this.maxScrollPercentage))},handleStorageChange:function e(){this.refreshFromStorage()}},(r=(t=window[e]=window[e]||[]).TEM=t.TEM||{}).SCD=r.SCD||new s}(),function(e,t){var n,r,i=e["_tfa"].TEM,o=function e(){};o.prototype={constructor:o,init:function e(n,r,i){this.storageUtils=n,this.refreshFromStorage(),t.eventUtils.safeAddEventListener(i,this.handleUnipPageView.bind(this)),r.subscribeToEvent(this.handleStorageChange.bind(this))},getKey:function e(){return"ssd"},getStorageKey:function e(){return"sessionDepth"},setState:function e(t){this.visitedUrls={};for(var n=0;n=0?"TRC":'TFASC']),function(e){var t,n=e["_tfa"]||[],r=n.TEM||{},i=30*24*60*60*1e3,o=10,a="tfa:engagement:session-history-timeframe-in-milliseconds",s="tfa:engagement:session-history-limit",c="sessionsHistory",u,l,f=function e(){};f.prototype={init:function e(t){u=n.config.safeGet(s,o),l=n.config.safeGet(a,i),this.storageUtils=t,this.updateCrossSessionsData(this.storageUtils.getSessionStartTime())},updateCrossSessionsData:function e(t){var n=this.updateData(t);return this.storageUtils.persistSpecificMetricsData(this.storageUtils.getCrossSessionsDataKey(),n),n},updateData:function e(t){var n=this.getCrossSessionsDataFromStorage()||{};return n[c]=this.getSessionsHistory(t),n},resetCrossSessionsData:function e(){this.storageUtils.persistSpecificMetricsData(this.storageUtils.getCrossSessionsDataKey(),"")},getCrossSessionsDataFromStorage:function e(){var t=this.storageUtils.getSessionDataFromStorage();return t&&t[this.storageUtils.getCrossSessionsDataKey()]},getFilteredSessionsHistory:function e(t,n){var r=t?this.removeOldSessions(t,n):[];if(!r.indexOf(n)>-1&&!this.isInPreviousSession(r,n)){for(;r.length>u-1;)r.shift();r.push(n)}return r},removeOldSessions:function e(t,n){for(var r=[],i=0;it},getSessionsHistory:function e(t){var n=this.getCrossSessionsDataFromStorage(),r=n?n[c]:[];return this.getFilteredSessionsHistory(r,t)},isInPreviousSession:function e(t,n){return!(!Array.isArray(t)||!t.length)&&n-t[t.length-1]=0?"TRC":'TFASC']),function(e,t){var n="_tfa",r,i=function e(){};i.prototype={constructor:i,init:function e(t){this.runningId=0,this.subscribers={},this.storageUtils=t,this.initListener()},initListener:function e(){t.eventUtils.safeAddEventListenerToWindow("storage",this.handleStorageChange.bind(this))},handleStorageChange:function e(t){t&&t.key===this.storageUtils.getStorageKey()&&this.notify(t)},subscribeToEvent:function e(t){var n=this.runningId++;return this.subscribers[n]=t,function(){delete this.subscribers[n]}.bind(this)},notify:function e(t){Object.keys(this.subscribers).forEach(function(e){this.subscribers[e](t)}.bind(this))}},(r=e[n]=e[n]||[]).TEM=r.TEM||{},r.TEM.storageListener=r.TEM.storageListener||new i}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t){var n="_tfa",r=e[n]=e[n]||[],i,o=r.TEM=r.TEM||{},a=o.ESU||{},s=o.SCD||{},c=o.SSD||{},u=o.TOS||{},l=o.returnVisits||{},f=o.crossSessionsUtils||{},d=o.visibilityListener||{},h=o.storageListener||{},p=1500,g=50,v=3e4,m="numOfTimesMetricsSent",S="pre_d_eng_tb",E={SESSION_END:"SESSION_END"},T,y,b=!1,I=Date.now();function _(e,t){var n=u.getTimeOnSite(),r=s.getScrollDepth(),i=c.getMetric(),o={notify:"event",name:S,tos:n,scd:r,ssd:i,est:a.getSessionStartTime(),ver:a.getDataVersion(),isls:a.getIsLocalStorageAvailable(),src:e,invt:t,msa:"function"==typeof s.getMaxScrollableAmount?s.getMaxScrollableAmount():void 0};return o=l.addReturnVisits(o)}function R(e,t){var n=_(e,t);n.est&&(i.pageViewAccountIds?w(i.pageViewAccountIds,n):C(n))}function w(e,t){var n=Object.keys(e);n.length>0?n.forEach(function(n){t.id=e[n],C(t)}):C(t)}function C(e){i.push(e)}function k(){A(),a.resetStorageMetricData()}function A(){clearTimeout(y)}function P(e){(isNaN(T)||T<0)&&(T=0),a.hasSessionEnded()||(T++,a.persistSpecificMetricsData(m,T),O()||o.sendMetrics("i",e),D())}function O(){return u.getTimeOnSite()>5*60*1e3&&c.getMetric()>5}function U(e){var t;return t=0===e?4500:1===e?5500:e>1&&e<=9?1e4:p*Math.pow(2,e-3)}function D(){if(clearTimeout(y),b&&!d.getIsPageHidden()){var e,t=r.config.safeGet("tfa:engagement:use-new-interval-calculation",!1)?U(T):p*Math.pow(2,T);t!==1/0&&(y=setTimeout(P,t,t))}}function N(){L(),D()}function L(){var e=a.getSessionDataFromStorage();T=e&&e[m]&&e[m]||0}function M(){h.subscribeToEvent(V.bind(this)),d.subscribeToEvent(x.bind(this))}function x(){d.getIsPageHidden()?A():D()}function V(e){function t(e){var t=JSON.parse(e.newValue),i=JSON.parse(e.oldValue);return!n(t,i)&&!r(t,i)}function n(e,t){return e.sessionDepth.length!==t.sessionDepth.length}function r(e,t){return e.timeOnSite!==t.timeOnSite}L(),e&&b&&!d.getIsPageHidden()&&t(e)&&(b=!1,A(),j(g,v,N,A))}function j(e,t,n,r){var i=!1;function o(e){if(window.top!==window){var t=window.parent;for(t.postMessage(e,"*");t!==t.parent;)(t=t.parent).postMessage(e,"*")}function n(t){try{for(var r=0;r=0?"TRC":'TFASC']),function(e,t){var n="_tfa",r=e[n]=e[n]||[],i="taboola global:last-external-referrer",o="taboola",a="other",s=["taboola","taboolanews","taboolasyndication"];t.lastExternalReferrer={init:function e(){r.config.safeGet("tfa:last-external-referrer:is-disabled",!1,1759156)||this.extractExternalReferrerIfExistsAndStoreLocally()},extractExternalReferrerIfExistsAndStoreLocally:function t(){var n=this.extractExternalReferrer(e);n&&this.saveExternalReferrerToLocalStorage(n)},extractExternalReferrer:function e(n){var r=n.location.href,i=this.getExternalReferrer(n);return this.isExternalReferrerTaboola(r,i)?o:i||t.tfaUtil.getParameterByName("utm_source",r)||t.tfaUtil.getParameterByName("gclid",r)||t.tfaUtil.getParameterByName("fbclid",r)||t.tfaUtil.getParameterByName("dicbo",r)||t.tfaUtil.getParameterByName("dclid",r)?a:""},isExternalReferrerTaboola:function e(n,r){if(t.tfaUtil.getParameterByName("tblci",n))return!0;var i=t.tfaUtil.getParameterByName("utm_source",n);if(i&&"taboola"===i.toLowerCase())return!0;if(r)for(var o=r.split("/")[2],a=0;a=0?"TRC":'TFASC']),function(e,t,n){var r="https://pa.taboola.com/ig/joinIg.html";n.privacySandbox={isProtectedAudienceSupported:function e(){return navigator&&!!navigator.joinAdInterestGroup},joinInterestGroupsInIframe:function e(t){var n;if(this.isProtectedAudienceSupported()&&t&&t.igList&&Array.isArray(t.igList)&&t.igList.length)return(n=document.createElement("iframe")).style.display="none",n.src=r,n.addEventListener("load",function(){n.contentWindow.postMessage(JSON.stringify(t),"*")}),document.body.appendChild(n),n}}}(window,document,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t,n){var r=function e(t,n,r){var i=t.split(n);return i.slice(0,r-1).concat(i.length>=r?i.slice(r-1).join(n):[])},i=n.TFA_URL=function(e){if(!e)throw new Error("Invalid URL!");this.href=e;var t=r(e,"#",2);return this.hash=t.length>1?"#"+t.pop():"",e=t[0],t=r(e,"?",2),this.search=t.length>1?"?"+t.pop():"",e=t[0],t=r(e,"://",2),this.protocol=t.length>1?t.shift()+":":"",e=t[0],t=r(e,"/",2),this.pathname=t.length>1?"/"+t.pop():"/",e=t[0],t=r(e,"@",2),this.auth=t.length>1?t.shift():"",e=t[0],t=r(e,":",2),this.port=t.length>1?parseInt(t.pop()):0,this.host=t[0],this};function o(e){for(var t={},n=0;n=0?"&":"?")+t+(n[1]?"#"+n[1]:"")},i.prototype.removeParamFromUrl=function(e,t){var n=e.split("?");if(n.length>=2){for(var r=n[0],i,o=[],a=n[1].split("&"),s=0;s=0?"TRC":'TFASC']),function(e,t,n){var r="tfa:allow-cross-domain-tracking",i="tfa:cross-domain-tracking:elements-to-update",o=[{selector:'a[href^="http"], a[href^="https"], a[href^="//"]',urlAttribute:"href"}],a="UpdateTrackingData",s=["tblci"],c=n.jsScope,u=n.publisherId,l=c.tfaPageManager;function f(){e._tfa&&e._tfa.config&&e._tfa.config.safeGet&&e._tfa.config.safeGet(r,!1,u)&&c.cdt.init()}e.TRC=e.TRC||{},e.TRC.cdt=c.cdt=e.TRC.cdt||{init:function e(){t.addEventListener(a,this.updateTrackingData.bind(this)),this.verifyUpdatesAfterDomLoaded()},updateTrackingData:function e(){for(var t=this.getAdvertiserSelectors(),n=0;n=0?"TRC":'TFASC']}),function(e,t,n){var r="tfa:allow-codeless-tracking",i="taboola-codeless-new-conversions",o="taboola-account-id",a=n.jsScope,s=n.publisherId;function c(){return t.referrer&&"string"==typeof t.referrer&&t.referrer.indexOf("ads.realizeperformance.com")>-1}function u(){try{return!(!sessionStorage.getItem(i)&&!sessionStorage.getItem(o))}catch(e){return!1}}function l(){return e.location.search.substring(1).split("&").reduce(function(e,t){var n=t.split("=");try{var r;e[decodeURIComponent(n[0])]=n[1]?decodeURIComponent(n[1]):""}catch(t){__trcError("Invalid URI Component:",n[1],t),e[n[0]]=n[1]||""}return e},{})}function f(){var e,t;return"true"===l()["codeless"]||c()||u()}function d(){f()&&e._tfa&&e._tfa.config&&e._tfa.config.safeGet&&e._tfa.config.safeGet(r,!1,s)&&a.codeless.init()}e.TRC=e.TRC||{},e.TRC.codeless=a.codeless=e.TRC.codeless||{init:function e(){this.loadCodelessScript()},loadCodelessScript:function e(){var n=t.createElement("script"),r="https://ads.realizeperformance.com/resources/static/js/codeless-events.js",i=(new Date).getTime();n.src=r+"?t="+i,n.async=!0,n.type="text/javascript",n.id="codeless_script",t.head.appendChild(n)}},e.TRC.codelessInit=a.codelessInit=d,d()}(window,document,{publisherId:1759156,jsScope:window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']}),function(e,t,n){var r=n.jsScope;e.TRC=e.TRC||{};var i="[TFA Codeless] ";function o(){if(e._tfa&&e._tfa.config&&e._tfa.config.firstPublisherId){var t=e._tfa.config.firstPublisherId;if(t&&!isNaN(parseInt(t,10)))return t}return n.publisherId&&"string"==typeof n.publisherId&&n.publisherId.indexOf("${")<0?n.publisherId:null}function a(){e._tfa&&e._tfa.config&&("complete"===t.readyState||"interactive"===t.readyState?setTimeout(function(){r.codelessTracking.init()},0):t.addEventListener("DOMContentLoaded",function(){r.codelessTracking.init()}))}e.TRC.codelessTracking=r.codelessTracking=e.TRC.codelessTracking||{trackedElements:[],get publisherId(){return o()},init:function e(){this.trackedElements=this.getTrackedElements(),this.trackedElements.length&&this.setupClickTracking()},getTrackedElements:function t(){var n=e._tfa&&e._tfa.config&&e._tfa.config.trackedElements||[];if(Array.isArray(n))return n;if("string"==typeof n)try{var r=JSON.parse(n);return Array.isArray(r)?r:[]}catch(e){return[]}return"object"===_typeof(n)?Object.values(n):[]},setupClickTracking:function e(){t.addEventListener("click",this.handleClick.bind(this),!0)},extractElementText:function e(t){var n="";return!n&&t&&void 0!==t.textContent&&(n=t.textContent.trim()),t&&void 0!==t.innerText&&(n=t.innerText.trim()),!n&&t&&(n=t.getAttribute("aria-label")||t.getAttribute("data-text")||t.getAttribute("title")||""),n.trim()},handleClick:function e(t){var n=t.target,r=this.getElementPath(n),i=this.extractElementText(n);if(this.trackedElements&&this.trackedElements.length){var o=this.findMatchingTrackedElement(r,i);if(o&&o.eventNames&&o.eventNames.length){var a=this;o.eventNames.forEach(function(e){a.pushEvent(e)})}}},findMatchingTrackedElement:function e(t,n){try{return this.trackedElements.find(function(e){return e&&(e.selector&&(t===e.selector||t.includes(e.selector))||e.displayText&&e.displayText===n)})}catch(e){return __trcError(i+"Error matching tracked element:",e),null}},pushEvent:function t(n){try{var r=this.publisherId;if(!r)return void __trcError(i+"Could not find valid publisher id");r=parseInt(r,10),e._tfa.push({notify:"event",name:n,id:r})}catch(e){__trcError(i+"Error pushing event:",e)}},getElementPath:function e(n){for(var r=[],i=n;i&&i!==t;){var o=i.tagName.toLowerCase(),a=i.id?"#"+i.id:"",s="";i.className&&(s="."+Array.from(i.classList||i.className.split(" ")).join(".")),r.unshift(o+a+s),i=i.parentElement}return r.join(" > ")}},e.TRC.codelessTrackingInit=r.codelessTrackingInit=a,a()}(window,document,{publisherId:1759156,jsScope:window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']}),function(e,t,n){var r=t.tfaPageManager||{},i="_tfa",o=window[i]=window[i]||[],a=o.TEM||{},s={event:Z,subscription:te},c=/(\S+)taboola(\S+|)\.com\/libtrc\/unip\/(\S+)\/tfa\.js(\S+|)/,u="script[src$='tfa.js']",l="//",f,d=["notify","id"],h="JS_PIXEL",p;function g(){var e=ie();e.initialized&&e.domAccountId&&setTimeout(function(){for(var e=ie().asyncQueue;e.length;)oe(e.shift())},0)}function v(){var e=m(),t;if(e&&e.src&&(t=e.src.replace(c,"$3")))return/^\d+$/.test(t)?parseInt(t,10):(se("Value '"+t+"' is invalid for 'id' param in script source url '"+e.src+"'. Only numeric values are allowed."),INVALID_ACCOUNT_ID)}function m(){for(var e=document.querySelectorAll(u),t,n=0;n0)return t}function S(){return t.eventUtils.getDateNow()}function E(e){e["ce"]="subscr"}function T(e){var t=r.getSessionDataFirstPartyCookie();void 0!==t&&t&&(e["sd"]=t)}function y(e){var t=b();t&&(e["ui"]=t)}function b(){try{var e=t.tfaUserId.getUserId(),n=r.getValue("user-id");if(e||n)return e||n}catch(e){se("Error while trying to add user-id param",e)}}function I(e){try{var n=t.tfaUserId.getClickId();n&&(e[t.tfaUserId.CLICK_ID_KEY]=n)}catch(t){se("Error while trying to addClickIdParam, params="+JSON.stringify(e),t)}}function _(e){var n=ie();n.referrer||(n.referrer=t.trk.getReferrer()),e[EVENT_PROPERTIES_TO_URL_PARAMS_MAP.referrer]=n.referrer}function R(e,t){var n=EVENT_PROPERTIES_TO_URL_PARAMS_MAP.url,r;ve(le(e),t)&&(e[n]=e[n]||document.location.href)}function w(e){var t={},n=!1,r;for(var i in e[EVENT_PROPERTIES_TO_URL_PARAMS_MAP.timestamp]=S(),e)!e.hasOwnProperty(i)||d.indexOf(i)>=0||(t[r=EVENT_PROPERTIES_TO_URL_PARAMS_MAP.hasOwnProperty(i)?EVENT_PROPERTIES_TO_URL_PARAMS_MAP[i]:i]=e[i],n=!0);return n&&t}function C(e,t){N(t),D(e,t)}function k(e){window.location.protocol.startsWith("https")&&document.featurePolicy&&document.featurePolicy.allowedFeatures()&&-1!==document.featurePolicy.allowedFeatures().indexOf("attribution-reporting")&&(e.modifiers=e.modifiers||[],e.modifiers.push(A))}function A(e){if("function"==typeof e.setAttributionReporting){var t={eventSourceEligible:!1,triggerEligible:!0};e.setAttributionReporting(t)}}function P(e){var n;if(t.privacySandbox&&t.privacySandbox.isProtectedAudienceSupported())try{n=JSON.parse(e),t.privacySandbox.joinInterestGroupsInIframe(n)}catch(e){}}function O(){200===this.status&&P(this.responseText)}function U(e){return!!(t.privacySandbox&&t.privacySandbox.isProtectedAudienceSupported()&&e&&"pre_d_eng_tb"!==e[EVENT_PROPERTIES_TO_URL_PARAMS_MAP.name])&&(e["psb"]="true",!0)}function D(e,n){var r=fe(e)+l+de(e,n),i,o;H(n,e),L(n,e),k(n),(o=U(n))&&(i=O);try{t.TRCLogger[CONFIGS.httpMethod](r,CONFIGS.loggerEventName,n,e,i)}catch(t){se("Error while trying to send to server event with id '"+e+"' and params '"+JSON.stringify(n)+"'.",t)}}function N(e){var t=b(),n=e[CALLBACK_PARAMETER_NAME];if(n){if(!t)return ce("No UserId to notify callback"),void delete e[CALLBACK_PARAMETER_NAME];if("function"!=typeof n)return ce("Callback function parameter is not a function "+n),void delete e[CALLBACK_PARAMETER_NAME];try{n({userId:t})}catch(e){se("Error calling advertiser callback",e)}delete e[CALLBACK_PARAMETER_NAME]}}function L(e,t){y(e),I(e),_(e),Y(e),R(e,t),j(e),M(e),$(e,t),V(e,t),G(e,t),x(e)}function M(e){var n=t.lastExternalReferrer.getLastExternalReferrer();n&&(e[LAST_EXTERNAL_REFERRER_URL_PARAM]=n)}function x(e){e[EVENT_PROPERTIES_TO_URL_PARAMS_MAP.integrationType]=e[EVENT_PROPERTIES_TO_URL_PARAMS_MAP.integrationType]||h}function V(e,n){var r;o.config.safeGet("unip:collect-cookie-banner-consent:enabled",!0,n)&&(r=t.trk.parseCookieBanner())&&(e.cbp=r.cookieBannerProvider.providerName,e.cbpv=r.cookieBannerProvider.version,r.cookieBannerConsent.tcString&&o.config.safeGet("unip:send-tc-string:enabled",!0,n)?(e.tcs=r.cookieBannerConsent.tcString,void 0!==r.cookieBannerConsent.gdprApplies&&(e.ga=r.cookieBannerConsent.gdprApplies),void 0!==r.cookieBannerConsent.cmpStatus&&(e.cmps=r.cookieBannerConsent.cmpStatus)):r.cookieBannerConsent.consentData&&(e.cbcd=r.cookieBannerConsent.consentData))}function j(e){e&&a&&a.ESU&&a.ESU.getIsLocalStorageAvailable()&&(B(e),F(e),K(e))}function B(e){a.TOS&&(e.tos=a.TOS.getTimeOnSite())}function F(e){if(a.SSD){var n=a.SSD.getMetric(),r=t.eventUtils.hashString(window.location.href);a.SSD.isURLVisited(r)||n++,e.ssd=n}}function K(e){a.SCD&&(e.scd=a.SCD.getScrollDepth())}function $(e,n){o.config.safeGet("unip:add-ccpa-params",!0,n)&&t.trk.getCcpaParam(function(t){t&&(e["ccpaPs"]=t)})}function G(e,n){if(o.config.safeGet("unip:add-gpp-params",!1,n))try{t.trk.getGppParam(function(t){t&&(e.cmpStatus=0,e.applicableSections=t.pingData.applicableSections,e.gppString=t.pingData.gppString)})}catch(e){}}function H(e,t){Q(e),J(e,t),W(e,t)}function q(e,t){E(t),T(t),ee(e,t)}function Q(e){e["vi"]=t.trk.getViewId()}function J(e,n){var r=t.trk.getPublisherRequestId(n);r&&(e["ri"]=r)}function W(e,n){var r=t.trk.getPublisherSessionData(n);r&&(e["sd"]=r)}function z(e,t){e["mrir"]=t}function Y(e){e["cv"]=n}function X(e,n){var r=ie(),i;if(!t.trk.getPublisherRequestId(e)){if(t.trk.isRequestProcessing(e))return void r.messageDelayer.delayMessage(e,n,{successCallback:C,failCallback:function e(t,n,r,i){var o=TRK_EVENT_TO_ERROR_TYPE_MAP[i];o||(o=i),z(n,o),D(t,n)},timeoutInMillis:ue(e)});z(n,t.trk.getRequestStatus(e))}D(e,n)}function Z(e,n){var r=w(e),i=le(r),o=TUP_EVENT_HANDLERS_BY_EVENT_NAME[i];if(n=parseInt(n,10),!o||!o(r,n)){if(pe(n)){if(ge(n))return void X(n,r);t.trk.getPublisherRequestId(n)||z(r,"wffo")}else z(r,"ttd");D(n,r)}}function ee(e,t){void 0!==e["sourceurl"]&&e["sourceurl"]&&(t["surl"]=e["sourceurl"])}function te(e,t){var n=w(e);q(e,n),D(parseInt(t,10),n)}function ne(e,n){var r=ie(),i=!1;return n&&(i=he(n),L(e),r.pageViewAccountIds[n]=parseInt(n,10),t.eventUtils.dispatchEvent(t.sharedEvents.PAGE_VIEW,{accountId:n,publisherIdType:t.publisherIdType.ID,pageViewInitiator:t.pageViewInitiator.TFA,isUnifiedPageView:i,metadata:e})),i}function re(e){return e?e.notify?s.hasOwnProperty(e.notify)?e.name?!(e.hasOwnProperty("id")&&!/^\d+$/.test(e.id))||(ae(VALIDATION_ERRORS.INVALID_ID,e,"Value '"+e.id+"' is invalid for 'id' field in command '"+JSON.stringify(e)+"'. Only numeric values are allowed."),!1):(ae(VALIDATION_ERRORS.MISSING_NAME,e,"Mandatory 'name' field is missing in command '"+JSON.stringify(e)+"'."),!1):(ae(VALIDATION_ERRORS.INVALID_NOTIFY,e,"Value '"+e.notify+"' is invalid for 'notify' field in command '"+JSON.stringify(e)+"'."),!1):(ae(VALIDATION_ERRORS.MISSING_NOTIFY,e,"Mandatory 'notify' field is missing in command '"+JSON.stringify(e)+"'."),!1):(ae(VALIDATION_ERRORS.EMPTY_COMMAND,e,"Command is '"+e+"'."),!1)}function ie(){return window&&window[i]&&window[i].TUP||{}}function oe(e){var t,n;if(re(e))if(t=ie(),n=e.id||t.domAccountId){if(n!==INVALID_ACCOUNT_ID)try{s[e.notify](e,n)}catch(t){se("An error occurred while handling command '"+JSON.stringify(e)+"'.",t)}}else t.asyncQueue.push(e)}function ae(e,n,r){var i=ie();t.eventUtils.dispatchEvent(EVENTS.TFA_VALIDATION_ERROR,{accountId:i.domAccountId,errorCode:e,command:n}),se(r)}function se(e,t){CONFIGS.logToConsole&&ce(e,t)}function ce(e,t){t?console.log("Taboola Pixel: "+e,t):console.log("Taboola Pixel: "+e)}function ue(e){return 500+o.config.safeGet("tfa:trk:tracking-request-timeout",2e3,e)}function le(e){return e[EVENT_PROPERTIES_TO_URL_PARAMS_MAP.name]}function fe(e){return o.config.safeGet("tfa:default-protocol",CONFIGS.protocol,e)}function de(e,t){var n=le(t),r;return o.config.safeGet("tfa:event-host-map",{},e)[n]||CONFIGS.host}function he(e){return pe(e)&&o.config.safeGet("tfa:trk:is-unified-page-view",!1,e)}function pe(e){return o.config.safeGet("tfa:trk:enabled",!0,e)}function ge(e){return o.config.safeGet("tfa:trk:wait-for-request-id",!0,e)}function ve(e,t){var n=o.config.safeGet("tfa:add-item-url:event-list",[],t);return"*"===n||n.indexOf(e)>=0}function me(){var e=o.TUP=o.TUP||{},n=o.config.safeGet("tfa:get-publisher-id-from-baker",!1);e.domAccountId=e.domAccountId||(n&&PUBLISHER_ID_EXISTS?1759156:v()),e.initialized||(e.push=o.TUP.push||oe,e.initialized=!0,e.asyncQueue=[],e.EVENTS=EVENTS,e.pageViewAccountIds={},e.messageDelayer=new t.MessageDelayer("publisherId",t.sharedEvents.REQUEST_ID_CREATED,[t.sharedEvents.REQUEST_ID_CREATION_JS_ERROR,t.sharedEvents.REQUEST_ID_CREATION_ERROR,t.sharedEvents.REQUEST_ID_CREATION_TIMEOUT,t.sharedEvents.INVALID_TRK_RESPONSE]),a&&a.init&&a.init()),g()}EVENT_PROPERTIES_TO_URL_PARAMS_MAP={name:"en",url:"item-url",referrer:"ref",timestamp:"tim",integrationType:"it"},INVALID_ACCOUNT_ID=-1,CONFIGS={protocol:'https:',host:"trc.taboola.com",httpMethod:"get",loggerEventName:"unip",logToConsole:!0},VALIDATION_ERRORS={EMPTY_COMMAND:"EMPTY_COMMAND",MISSING_NOTIFY:"MISSING_NOTIFY",INVALID_NOTIFY:"INVALID_NOTIFY",MISSING_NAME:"MISSING_NAME",INVALID_ID:"INVALID_ID"},EVENTS={TFA_VALIDATION_ERROR:"TFA_VALIDATION_ERROR"},TUP_EVENT_HANDLERS_BY_EVENT_NAME=((p={})["page_view"]=ne,p),TRK_EVENT_TO_ERROR_TYPE_MAP=function(){var e={};return e[t.sharedEvents.REQUEST_ID_CREATION_TIMEOUT]="to",e[t.sharedEvents.REQUEST_ID_CREATION_ERROR]="err",e[t.sharedEvents.REQUEST_ID_CREATION_JS_ERROR]="jserr",e[t.sharedEvents.INVALID_TRK_RESPONSE]="itrkr",e}(),PUBLISHER_ID_EXISTS=!isNaN(parseFloat(1759156)),CALLBACK_PARAMETER_NAME="callback",LAST_EXTERNAL_REFERRER_URL_PARAM="ler",me()}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC'],"20250406-5-RELEASE"),function(e,t,n){var r="_tfa",i,o={orderid:"orderid",currency:"currency",revenue:"revenue",quantity:"quantity",name:"name",attributionGroup:"attributionGroup"},a={type:"marking-type"},s='https:'+"//trc.taboola.com/{$publishreId}log/3/{$logType}?",c=/(\S+)taboola(\S+|)\.com\/libtrc\/(\S+)\/tfa\.js(\S+|)/,u="unip/",l=[],f=[],d="_tecq",h="_dcojobs",p=!isNaN(parseFloat(1759156));function g(e){var t;switch(e.notify){case"action":t=l;break;case"mark":t=f;break;case"event":case"subscription":t=i.TUP;break;case"ecevent":var n=i.config&&i.config.safeGet("tfa:ecomm:enabled",!1,e.id),r=i.config&&i.config.safeGet("tfa:ecomm:cnx-enabled",!1,e.id);n||r?t=window[d]=window[d]||[]:i.config&&i.config.safeGet("tfa:dco:jobs:enabled",!1,e.id)&&(t=window[h]=window[h]||[]);break;default:return}t&&t.push(e)}function v(){return n.tfaUserId&&n.tfaUserId.getUserId()?"&ui="+encodeURIComponent(n.tfaUserId.getUserId()):""}function m(){return n.tfaUserId&&n.tfaUserId.getClickId()?"&"+n.tfaUserId.CLICK_ID_KEY+"="+encodeURIComponent(n.tfaUserId.getClickId()):""}function S(){var t,n,r,i;if(r=e._tfa.config.safeGet("tfa:get-publisher-id-from-baker",!1)&&p?1759156:w())for(t=0,n=l.length;t=0?"TRC":'TFASC']);