components2.rcsobjects.it
Open in
urlscan Pro
2600:9000:223f:f800:12:2d84:3840:93a1
Public Scan
URL:
https://components2.rcsobjects.it/rcs_tealium/v1/distro/tgLa7/prod/utag.js
Submission: On November 08 via api from IT — Scanned from IT
Submission: On November 08 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
//tealium universal tag - utag.loader ut4.0.202410021045, Copyright 2024 Tealium.com Inc. All Rights Reserved. var utag_condload=false;window.__tealium_twc_switch=false;try{var _tund="undefined",_tfn="function",_tstr="string",_tobj="object",_tnum="number",_tbool="boolean";window._tmsTools={};_tmsTools.exist=function(va,type){var t=typeof va;return(typeof type!==_tstr)?(t!==_tund):(t===type);} _tmsTools.isArray=function(va){return(va instanceof Array);} _tmsTools.isDate=function(va){return(va instanceof Date);} _tmsTools.valued=function(va){if(this.isDate(va))return this.valid(va.getTime());return(!this.exist(va))?!1:(!!va);} _tmsTools.valid=function(va){if(this.isDate(va))return this.valid.apply(this,[va.getTime()]);switch(typeof va){case _tund:case _tfn:return!1;break;case _tstr:return!0;break;case _tobj:return(!!va);break;case _tnum:return(!!va||va===0);} return!0;} _tmsTools.cleanURL=function(_URL){if(!this.exist(_URL,_tstr))_URL=location.href;return _URL.replace(/[?#].*$/,"");} _tmsTools.getUrlParams=function(key,_URL){var ck=(this.exist(key,_tstr));if(!ck)key="([^=\?#&]*)";if(!this.exist(_URL,_tstr))_URL=location.href;var re=new RegExp("[\?&]"+key+"=?([^\?#&]*)","g");var m,_obj={},_x=!1;while((m=re.exec(_URL))!==null){if(ck)return(this.valued(m[1]))?m[1]:"";if(!this.valued(m[1]))continue;_obj[m[1]]=(this.valued(m[2]))?m[2]:"";_x=!0;} return(!_x)?null:_obj;} _tmsTools.getCookie=function(name,decode){try{if(!this.exist(decode,_tbool))decode=false;var ex=RegExp("(?:^|; )"+name+"=([^;]*)"),c;var mt=document.cookie.match(ex);return(mt)?(decode)?decodeURIComponent(mt[1]):mt[1]:null;}catch(err){return null;}} _tmsTools.setCookie=function(name,va,ex,dom,path,encoded){try{if(!this.exist(name,_tstr)||(!this.exist(va,_tstr)&&!this.exist(va,_tnum)))return!1;if(!this.exist(encoded,_tbool))encoded=!1;if(this.exist(ex,_tnum)){var d=new Date();d.setTime(d.getTime()+(ex*24*60*60*1000));ex="; expires="+d.toGMTString()+";";}else{ex=";";} if(encoded)va=encodeURIComponent(va);var _co=name+"="+va;_co+=ex;if(this.valued(dom))_co+="domain="+dom+";";_co+=(this.valued(path))?"path="+path+";":"path=/;";document.cookie=_co;return!0;}catch(err){return!1;}} _tmsTools.removeCookie=function(name){document.cookie=name+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;";} _tmsTools.getLocalStorage=function(name){if(arguments.length<1)throw("getLocalStorage needs 1 argument no given.");try{var x=localStorage.getItem(name);return x;}catch(err){return null}} _tmsTools.setLocalStorage=function(name,v){if(arguments.length<2)throw("setLocalStorage needs 2 arguments "+arguments.length+" given.");try{localStorage.setItem(name,v);}catch(e){throw("Localstorage non e' attivo!")}} _tmsTools.removeLocalStorage=function(name){if(arguments.length<1)throw("getLocalStorage needs 1 argument no given.");try{localStorage.removeItem(name);}catch(e){throw("Localstorage non e' attivo!")}} _tmsTools.setStoreItem=function(name,va,cookieOpt){if(arguments.length<2)throw("setStoreItem needs 2 arguments "+arguments.length+" given.");if(!this.exist(cookieOpt,_tstr)||!this.exist(cookieOpt,_tstr))throw("setStoreItem arguments must be string.");if(this.exist(localStorage))return this.setLocalStorage(name,va);if(!this.valid(cookieOpt))return this.setCookie(name,va);this.setCookie(nome,va,this.exist(cookieOpt.ex)?cookieOpt.ex:null,this.exist(cookieOpt.dom)?cookieOpt.dom:null,this.exist(cookieOpt.path)?cookieOpt.path:null,this.exist(cookieOpt.encoded)?cookieOpt.encoded:null);} _tmsTools.store=function(name,va,cookieOpt){if(!this.exist(name,_tstr))throw("store 1th argument must be a string.");if(arguments.length==1){if(this.exist(localStorage))return this.getLocalStorage(name);return this.setCookie(name)} if(!this.exist(va,_tstr))throw("setStoreItem arguments must be string.");if(this.exist(localStorage))return this.setLocalStorage(name,va);if(!this.valued(cookieOpt))return this.setCookie(name,va);this.setCookie(nome,va,this.exist(cookieOpt.ex)?cookieOpt.ex:null,this.exist(cookieOpt.dom)?cookieOpt.dom:null,this.exist(cookieOpt.path)?cookieOpt.path:null,this.exist(cookieOpt.encoded)?cookieOpt.encoded:null);} _tmsTools.storeRemove=function(name){if(!this.exist(name,_tstr))throw("store 1th argument must be a string.");(this.exist(localStorage))?this.removeLocalStorage(name):this.removeCooke(name);}}catch(e){console.log(e);} if(!utag_condload){try{utag_data.adobe_import="completato" window.s=new Object();s.contextData=new Object();s.t=s.track=function(){console.log("s.t - Adobe Analytics Disabilitato")} s.tl=s.trackLink=function(){console.log("s.tl - Adobe Analytics Disabilitato")} utag_data.site_name="tg.la7.it";if(localStorage.getItem("app")!=null){utag_data.site_name="APPTGLA7";} utag_data.site_namespace="tg.la7";utag_data.login_cookie_name="rcsDomainSession";utag_data.user_data_cookie_name="rcsTR";utag_data.mdmid_cookie_name="rcsUD";utag_data.rwdBreakpoints={'Mobile':[0,650],'Wide':[651,9999]};utag_data.analytics_tag_id=36 utag_data.send_page_bottom=function(){try{utag.sender[utag_data.analytics_tag_id].send('body_bottom',utag.handler.C(utag.data));}catch(e){utag.DB("-------------- Missing Tag 36"+e) utag.track('body_bottom',utag.data)}}}catch(e){console.log(e);}} if(!utag_condload){try{(function(){var a,b,c,d,e,f,g,h,i,j;a=window.deviceAdvFreq,window.deviceAdvFreq={},c=window.document.documentElement,j=window.navigator.userAgent.toLowerCase(),deviceAdvFreq.ios=function(){return deviceAdvFreq.iphone()||deviceAdvFreq.ipod()||deviceAdvFreq.ipad()},deviceAdvFreq.iphone=function(){return d("iphone")},deviceAdvFreq.ipod=function(){return d("ipod")},deviceAdvFreq.ipad=function(){return d("ipad")},deviceAdvFreq.android=function(){return d("android")},deviceAdvFreq.androidPhone=function(){return deviceAdvFreq.android()&&d("mobile")},deviceAdvFreq.androidTablet=function(){return deviceAdvFreq.android()&&!d("mobile")},deviceAdvFreq.blackberry=function(){return d("blackberry")||d("bb10")||d("rim")},deviceAdvFreq.blackberryPhone=function(){return deviceAdvFreq.blackberry()&&!d("tablet")},deviceAdvFreq.blackberryTablet=function(){return deviceAdvFreq.blackberry()&&d("tablet")},deviceAdvFreq.windows=function(){return d("windows")},deviceAdvFreq.windowsPhone=function(){return deviceAdvFreq.windows()&&d("phone")},deviceAdvFreq.windowsTablet=function(){return deviceAdvFreq.windows()&&d("touch")},deviceAdvFreq.fxos=function(){return(d("(mobile;")||d("(tablet;"))&&d("; rv:")},deviceAdvFreq.fxosPhone=function(){return deviceAdvFreq.fxos()&&d("mobile")},deviceAdvFreq.fxosTablet=function(){return deviceAdvFreq.fxos()&&d("tablet")},deviceAdvFreq.meego=function(){return d("meego")},deviceAdvFreq.mobile=function(){return deviceAdvFreq.androidPhone()||deviceAdvFreq.iphone()||deviceAdvFreq.ipod()||deviceAdvFreq.windowsPhone()||deviceAdvFreq.blackberryPhone()||deviceAdvFreq.fxosPhone()||deviceAdvFreq.meego()},deviceAdvFreq.tablet=function(){return deviceAdvFreq.ipad()||deviceAdvFreq.androidTablet()||deviceAdvFreq.blackberryTablet()||deviceAdvFreq.windowsTablet()||deviceAdvFreq.fxosTablet()},deviceAdvFreq.portrait=function(){return 90!==Math.abs(window.orientation)},deviceAdvFreq.landscape=function(){return 90===Math.abs(window.orientation)},deviceAdvFreq.noConflict=function(){return window.deviceAdvFreq=a,this},d=function(a){return-1!==j.indexOf(a)},f=function(a){var b;return b=new RegExp(a,"i"),c.className.match(b)},b=function(a){return f(a)?void 0:c.className+=" "+a},h=function(a){return f(a)?c.className=c.className.replace(a,""):void 0},deviceAdvFreq.ios()?deviceAdvFreq.ipad()?b("ios ipad tablet"):deviceAdvFreq.iphone()?b("ios iphone mobile"):deviceAdvFreq.ipod()&&b("ios ipod mobile"):deviceAdvFreq.android()?deviceAdvFreq.androidTablet()?b("android tablet"):b("android mobile"):deviceAdvFreq.blackberry()?deviceAdvFreq.blackberryTablet()?b("blackberry tablet"):b("blackberry mobile"):deviceAdvFreq.windows()?deviceAdvFreq.windowsTablet()?b("windows tablet"):deviceAdvFreq.windowsPhone()?b("windows mobile"):b("desktop"):deviceAdvFreq.fxos()?deviceAdvFreq.fxosTablet()?b("fxos tablet"):b("fxos mobile"):deviceAdvFreq.meego()?b("meego mobile"):b("desktop"),e=function(){return deviceAdvFreq.landscape()?(h("portrait"),b("landscape")):(h("landscape"),b("portrait"))},i="onorientationchange"in window,g=i?"orientationchange":"resize",window.addEventListener?window.addEventListener(g,e,!1):window.attachEvent?window.attachEvent(g,e):window[g]=e,e()}).call(this);}catch(e){console.log(e);}} if(!utag_condload){try{var firstPlay=true;var firstPause=false;window.secondsPlayerLa7=0;function formatDateDL(date){var d=new Date(date),month=''+(d.getMonth()+1),day=''+d.getDate(),year=d.getFullYear();if(month.length<2)month='0'+month;if(day.length<2)day='0'+day;return[day,month,year].join('-');} function formatTextDL(text){var find=''';var re=new RegExp(find,'g');return text.replace(re,"'");} window.objInfoVideoKrux=function(obj){utag.data.video_ads=obj.video_ads;utag.data.video_channel=obj.video_channel;utag.data.video_date=formatDateDL(obj.video_date);function incrementSeconds(){window.secondsPlayerLa7+=1;} if(obj.video_event=="notifyPlay"){utag.data.video_event=utag.data.event_id="video_play";window.intervallSecondsPlayerLa7=setInterval(incrementSeconds,1000);}else if(obj.video_event=="notifyEnd"){utag.data.video_event=utag.data.event_id="video_end";clearInterval(intervallSecondsPlayerLa7);}else if(obj.video_event=="notifyPause"){utag.data.video_event=utag.data.event_id="video_pause";clearInterval(intervallSecondsPlayerLa7);} if(obj.block_adv==true){utag.data.trackAdUnit="block_adv_rdz";}else{utag.data.trackAdUnit=obj.adunit;} utag.data.video_length=obj.video_length;utag.data.video_loading_type=obj.video_loading_type;utag.data.video_name=formatTextDL(obj.video_name);utag.data.video_newspaper=obj.video_newspaper;utag.data.video_providers=obj.video_provider;utag.data.video_seconds=obj.video_seconds;utag.data.video_section=obj.video_section;utag.data.video_type=obj.video_type;if(utag.data.video_type!=="VOD")utag.data.video_type="LIVE";utag.data.video_id=obj.video_id;utag.data.video_player="la7";utag.data.video_sito_appartenenza="tgla7";if(localStorage.getItem("app")!=null){utag.data.video_sito_appartenenza="APPTGLA7";} if(utag.data.video_ads){utag.data.event_name="prerollAndPlay";}else{utag.data.event_name="play";} if(utag.data.video_event=="video_play"&&firstPlay===true){utag.data.video_segment="0-25";utag.link(utag.data,null,[42]);if(typeof utag.data.video_ads){utag.data.video_preroll_string="true"} if(typeof utag.data.video_autoplay!="undefined"){utag.data.video_autoplay_string=utag.data.video_autoplay.toString()} permutive.track('VideoPlay',{video:{ads:utag.data.video_preroll_string,channel:utag.data.video_channel,date:new Date(utag.data.video_date.split("/").reverse().join('-')),event:"VideoPlay",feed:utag.data.video_feed,length:parseInt(utag.data.video_length),loading_type:utag.data.video_loading_type,name:utag.data.video_name,player:utag.data.video_player,playlist:utag.data.video_playlist,provider:utag.data.video_providers,section:utag.data.video_section,site:utag.data.video_site,subsection:utag.data.video_subsection,type:utag.data.video_type}}) firstPlay=false;firstPause=true;} if(utag.data.video_event=="video_end"&&firstPause==true){utag.data.video_segment="75-100";utag.data.video_progress=1;lpv() firstPause=false;window.closePlayer(window.secondsPlayerLa7,true)} function lpv(){permutive.track('VideoProgress',{progress:utag.data.video_progress,video:{ads:utag.data.video_preroll_string,channel:utag.data.video_channel,date:new Date(utag.data.video_date.split("/").reverse().join('-')),event:utag.data.event_view,feed:utag.data.video_feed,length:parseInt(utag.data.video_length),loading_type:utag.data.video_autoplay_string,name:utag.data.video_title,player:utag.data.video_player_page,playlist:utag.data.video_playlist,provider:utag.data.video_provider,section:utag.data.video_section,site:utag.data.video_site,subsection:utag.data.video_subsection,type:utag.data.video_content_type}})}} window.addEventListener("beforeunload",function(){window.closePlayer(window.secondsPlayerLa7)});window.closePlayer=function(video_seconds,end=false){omniture_video.linkTrackVars="eVar20,prop23,eVar35,prop69,eVar21,eVar42,prop20,prop25,eVar27,prop24,eVar70,eVar112,eVar69,eVar80,eVar90,eVar26,prop45",omniture_video.linkTrackEvents="event9,event64",omniture_video.prop23=omniture_video.eVar23=utag.data.video_channel;omniture_video.eVar35=utag.data.video_date;omniture_video.prop69=utag.data.trackAdUnit;omniture_video.eVar21=utag.data.video_length;omniture_video.eVar42=utag.data.video_loading_type;omniture_video.prop20=omniture_video.eVar20=utag.data.video_name;omniture_video.prop25=omniture_video.eVar25=utag.data.video_newspaper;omniture_video.eVar27=utag.data.video_providers;omniture_video.prop24=omniture_video.eVar24=utag.data.video_section;omniture_video.eVar70=utag.data.video_segment;omniture_video.eVar112=utag.data.video_testAutoplay;omniture_video.eVar69=utag.data.video_type;omniture_video.eVar80=utag.data.adBlocked;omniture_video.eVar90=utag.data.video_id;omniture_video.eVar26=utag.data.video_player;omniture_video.prop45=utag.data.video_sito_appartenenza;if(end==true){omniture_video.events='event9,event64='+video_seconds;}else{omniture_video.events='event64='+video_seconds;} omniture_video.usePlugins=!1,omniture_video.tl(omniture_video,"o","track_video")}}catch(e){console.log(e);}} if(!utag_condload){try{var regDate=/[\/][0-9]{2}-[0-9]{2}-[0-9]{4}[\/]/g;var filteredDate=document.URL.replace(regDate,'/');var arrUrlPathToFilter=filteredDate.split('/');var arrUrlPath=[];for(var i=3;i<arrUrlPathToFilter.length;i++){if(arrUrlPathToFilter[i].split('.').length===2){continue;} if(arrUrlPathToFilter[i].length<4){continue;} if(arrUrlPathToFilter[i].indexOf('?')>-1){continue;} if(arrUrlPathToFilter[i].indexOf('#')>-1){continue;} if(arrUrlPathToFilter[i].indexOf('=')>-1){continue;} if(arrUrlPathToFilter[i].length<=6){if(arrUrlPathToFilter[i].indexOf("-")>-1){continue;} if(arrUrlPathToFilter[i].indexOf("_")>-1){continue;}} arrUrlPath.push(arrUrlPathToFilter[i]);} if(arrUrlPath[0]){utag_data.url_path_1=arrUrlPath[0];} if(arrUrlPath[1]){utag_data.url_path_2=arrUrlPath[1];} if(arrUrlPath[2]){utag_data.url_path_3=arrUrlPath[2];} if(arrUrlPath[3]){utag_data.url_path_4=arrUrlPath[3];} if(arrUrlPath[4]){utag_data.url_path_5=arrUrlPath[4];}}catch(e){console.log(e);}} if(!utag_condload){try{if(typeof utag_data=="undefined")utag_data=new Object();utag_data.page_host=window.location.host;utag_data.user_agent=navigator.userAgent;utag_data.page_url_full=window.location.href;utag_data.page_url=window.location.host+window.location.pathname;utag_data.page_previous=document.referrer;var dlTime=new Date();var dl_timestamp=('0'+dlTime.getHours()).slice(-2)+':'+('0'+dlTime.getMinutes()).slice(-2)+':'+('0'+dlTime.getSeconds()).slice(-2)+':'+dlTime.getMilliseconds();if(typeof device!=="undefined"){utag_data.device_type=device;} utag_data.site_name="tg.la7.it";if(localStorage.getItem("app")!=null){utag_data.site_name="APPTGLA7";} utag_data.site_namespace="tg.la7";if(typeof Category!=="undefined"){utag_data.page_bt_category=Category;} if(typeof SubCategory!=="undefined"){utag_data.page_bt_sub_category=SubCategory;} var mobileDomainMatch;utag_data.getArticleID=function(){var articleid="";if(utag_data.isMobile()){cleanStr=utag_data.cleanMobileURL();mobileDomainMatch=cleanStr.match(/-(?:[0-9])+$/);var didMatch=mobileDomainMatch?mobileDomainMatch.replace("-",""):cleanStr.match(/(?:[0-9a-zA-Z])+-(?:[0-9a-zA-Z])+-(?:[0-9a-zA-Z])+-(?:[0-9a-zA-Z])+-(?:[0-9a-zA-Z])+$/);}else{var didMatch=window.location.pathname.match(/(?:[0-9a-zA-Z])+-(?:[0-9a-zA-Z])+-(?:[0-9a-zA-Z])+-(?:[0-9a-zA-Z])+-(?:[0-9a-zA-Z])+\.+[a-z]+$/);if(didMatch==null){didMatch=window.location.pathname.match(/(?:[0-9a-zA-Z])+-(?:[0-9a-zA-Z])+-(?:[0-9a-zA-Z])+-(?:[0-9a-zA-Z])+-(?:[0-9a-zA-Z])+$/);}} if(didMatch!=null){articleid=didMatch[0];articleid=articleid.replace(/\.[a-z]+$/,"");} return articleid;} utag_data.getArticleReleaseDate=function(){var articleDate="";var didMatch=window.location.pathname.match(/\/([0-9]+_[a-z]+_[0-9]+)/);if(didMatch!=null)articleDate=didMatch[1];didMatch=window.location.pathname.match(/\/([0-9]+-[0-9]+-[0-9]+)/);if(didMatch!=null)articleDate=didMatch[1];didMatch=window.location.pathname.match(/([0-9]+\/[0-9]+\/[0-9]+)/);if(didMatch!=null)articleDate=didMatch[1];return articleDate;} if(typeof uuid_articolo!=='undefined'){utag_data.article_id=uuid_articolo;} utag_data.isMobile=function(){var isMobile=window.location.pathname.match(/(\/m\/)+/);return isMobile;};utag_data.cleanMobileURL=function(){var cleanStr=window.location.pathname;var cleanArr=cleanStr.split("/");var unusedPar=cleanArr[cleanArr.length-1];if(unusedPar.match(/^\d+$/)!==null){cleanStr=cleanStr.substr(0,cleanStr.length-unusedPar.length-1);} return cleanStr;};utag_data.readURL=function(namespace,site){if(utag_data.isMobile()){var s_path=utag_data.cleanMobileURL();s_path=s_path.replace("/m/cds/notizie/dettaglio/","/");s_path=s_path.replace("/m/cds/sezioni/","/");s_path=s_path.replace("/m/cds","");s_path=s_path.replace("/m/","/");if(s_path=="/m"){s_path="/";}}else{var s_path=window.location.pathname;} s_path=s_path.toLowerCase();s_path=s_path.replace("/index.shtml","");s_path=s_path.replace("/","");s_path=s_path.replace(/(-[0-9\.]*)*\.[a-z]*$/,"");s_path=s_path.replace(/\.[a-z]+$/,"");s_path=s_path.replace(/-+$/,"");var s_pagename=s_path;s_pagename=s_pagename.replace(/\/([0-9]+_[a-z]+_[0-9]+)/,"");s_pagename=s_pagename.replace(/\/([0-9]+-[0-9]+-[0-9]+)/,"");s_pagename=s_pagename.replace(/([0-9]+\/[0-9]+\/[0-9]+\/+)/,"");s_path=s_path.replace(/([0-9]+_[a-z]+_[0-9]+.*)/,"articoli");s_path=s_path.replace(/([0-9]+-[0-9]+-[0-9]+.*)/,"articoli");s_path=s_path.replace(/([0-9]+\/[0-9]+\/[0-9]+)/,"articoli");var a_path=s_path.split("/");var s_host=window.location.host;s_host=s_host.replace("www.","");s_host=s_host.replace("staging.","");var s_sitename=s_host.replace(site,namespace);s_sitename=s_sitename.toUpperCase();if(localStorage.getItem("app")!=null){s_sitename="APPTGLA7";} var sc_site=site;var a_host=s_host.split(".");if(a_host.length>2){a_path.reverse();for(var l_host=a_host.length-3;l_host>=0;l_host--){a_path.push(a_host[l_host]);} a_path.reverse();} if(a_path[0]==="")sc_sezione="homepage";else sc_sezione=a_path[0];if(typeof a_path[1]!="undefined")sc_sezione1=a_path[1];if(typeof a_path[2]!="undefined")sc_sezione2=a_path[2];utag_data.page_name=s_sitename+"/"+s_pagename;};utag_data.readURL(utag_data.site_namespace,utag_data.site_name);}catch(e){console.log(e);}} if(!utag_condload){try{var newVisitor=_tmsTools.getCookie("s_nr");if(typeof newVisitor=="undefined"){utag_data.visitor_new_returning="new";}else if(newVisitor.indexOf('New')>=0){utag_data.visitor_new_returning="new";}else if(newVisitor.indexOf('Repeat')>=0){utag_data.visitor_new_returning="returning";} var logged=false;try{logged=_tmsTools.getCookie(utag_data.login_cookie_name);}catch(e){} utag_data.user_login_status=(logged?"":"not ")+"logged in";var rcsTR=null;try{rcsTR=_tmsTools.getCookie(utag_data.user_data_cookie_name);}catch(e){} if(rcsTR!=null&&rcsTR!=""){var arrRcsTR=rcsTR.split("|");try{var idRuna=arrRcsTR[0];var genere=arrRcsTR[1];var eta=arrRcsTR[2];var prov=arrRcsTR[3];var state=arrRcsTR[4];if(idRuna!=""){if(!isNaN(idRuna)){utag_data.user_id=idRuna;} if(genere!=""){utag_data.user_gender=genere;} if(eta!=""){utag_data.user_age=eta;} if(prov==""){utag_data.user_city="ND";}else{utag_data.user_city=prov;} if(prov=="ES"){utag_data.user_state="ND";}else{utag_data.user_state="IT";}}else{if(genere!=""){utag_data.user_gender=genere;} if(eta!=""){utag_data.user_age=eta;} if(prov==""){utag_data.user_city="ND";}else if(state=="IT"||state==""||!state){utag_data.user_city=prov;}else{utag_data.user_city="EE";} if(state!=""){utag_data.user_state=state;}}}catch(e){}} var rcsUD=null;try{rcsUD=_tmsTools.getCookie(utag_data.mdmid_cookie_name);}catch(e){} utag_data.user_match_status='not populated';if(rcsUD!=null&&rcsUD!=""){var arrRcsUD=rcsUD.split("|");try{var mdmid=arrRcsUD[4];if(mdmid!=""){utag_data.user_mdmid=mdmid;utag_data.user_match_status='matched';}else{utag_data.user_match_status='not matched';} if(arrRcsUD[0]!=''&&arrRcsUD[1]==''&&arrRcsUD[2]==''&&arrRcsUD[3]==''&&arrRcsUD[4]==''&&arrRcsUD[5]==''){utag_data.user_match_status='not populated';}}catch(e){} try{var mdmid=arrRcsUD[6];if(mdmid!=""){utag_data.user_mdmid_all=mdmid;}}catch(e){}} utag_data.user_kruxID=_tmsTools.store("kxrcs_kuid");utag_data.user_kruxUser=_tmsTools.store("kxrcs_user");utag_data.user_kruxSegments=_tmsTools.store("kxrcs_segs");utag_data.permutive_user_id=_tmsTools.store("permutive-id");if(typeof utag_data.user_kruxSegments=="string"){utag_data['user_krux_OKT']=(utag_data.user_kruxSegments.indexOf("p1oi4ue95")>=0);}else{utag_data['user_krux_OKT']=false;}}catch(e){console.log(e);}} if(!utag_condload){try{utag_data.rwdBreakpoints={'Mobile':[0,650],'Wide':[651,9999]};function rwdGetScreenSize(){return document.documentElement.clientWidth+'x'+document.documentElement.clientHeight;} function rwdGetRenderedExperience(){var current_width=document.documentElement.clientWidth;var breakpoints=utag_data.rwdBreakpoints;for(var layout_type in breakpoints){var min_width=breakpoints[layout_type][0];var max_width=breakpoints[layout_type][1];if(current_width>=min_width&¤t_width<=max_width){return layout_type;}} return"Undefined";} function rwdGetPortaitLandscape(){var current_width=document.documentElement.clientWidth;var current_height=document.documentElement.clientHeight;return(current_width>current_height)?"Landscape":"Portrait";} utag_data.responsive_layout=rwdGetRenderedExperience();}catch(e){console.log(e);}} if(!utag_condload){try{channelManagerBB=function(){cm={};cm=CMConfiguration(cm);var existsChannel=cm.get_cookie(cm.cookie['channel']);var isNewVisit="";isNewVisit=cm.newVisit(cm.cookie['newVisit']);var sepChannel=cm.separatore['channel'];var channel={};var referrer={};referrer.url=document.referrer;if(referrer.url) {referrer.domain=cm.getDomain(referrer.url).toLowerCase();if(referrer.url.indexOf("?")>=0) referrer.page=referrer.url.substring(0,referrer.url.indexOf("?"));else referrer.page=referrer.url;} for(var i=0;i<cm.trackingCode.length;i++) {channel.campaign=cm.gup(cm.trackingCode[i]);if(channel.campaign) break;} if(cm.source=="qs") {for(var i=0;i<cm.trackingCode.length;i++) {channel.campaign=cm.gup(cm.trackingCode[i]);if(channel.campaign) break;}} channel.version="2.0";channel.name="";channel.referrer="";channel.searchEngines="";channel.searchKeyword="";channel.socialNetwork="";if(isNewVisit||channel.campaign) {channel.name=cm.fontiTraffico['erroreNoChannel'];channel.full=cm.fontiTraffico['erroreNoChannel'];if(channel.campaign) {for(var id in cm.campagna){var patt=new RegExp(id,cm.campagna[id]['c']);if(channel.campaign.search(patt)>=0){channel.name=cm.campagna[id]['n'];if(referrer.domain) {for(var motore in cm.searchEngines){var dom=cm.searchEngines[motore]['tl'][0];var keyNum=0;for(keyNum;keyNum<cm.searchEngines[motore]['kw'].length;keyNum++){var keyparam=cm.searchEngines[motore]['kw'][keyNum];if(referrer.domain.indexOf(dom)>=0){channel.searchEngines=motore;channel.searchKeyword=cm.gup(keyparam,referrer.url,null).toLowerCase();channel.referrer=referrer.page;break;}} if(channel.searchEngines)break;}} if(channel.searchEngines) channel.full=channel.name+sepChannel+channel.referrer+sepChannel+channel.searchEngines+sepChannel+channel.searchKeyword;else if(!channel.searchEngines) channel.full=channel.name+sepChannel+channel.campaign;cm.set_cookie(cm.cookie['channel'],channel.full);return channel;}} channel.name=cm.fontiTraffico['otherCampaign'] channel.full=channel.name+sepChannel+channel.campaign;cm.set_cookie(cm.cookie['channel'],channel.full);return channel;} else if((!channel.campaign||channel.campaign=="")&&referrer.domain) {if(referrer.domain){var arrInterni=new Array();channel.referrer=referrer.page;arrInterni=cm.internalDomain;for(var linkInterni=0;linkInterni<arrInterni.length;linkInterni++) {if(referrer.domain.indexOf(arrInterni[linkInterni])>=0){if(existsChannel!=""){var arrCh=existsChannel.split(sepChannel);if(arrCh[0]) {channel.name=arrCh[0];channel.full=channel.name;channel.referrer="";} if(arrCh[1]) {channel.referrer=arrCh[1];channel.full+=sepChannel+channel.referrer;} if(arrCh[2]) {channel.searchEngines=arrCh[2];channel.full+=sepChannel+channel.searchEngines;} if(arrCh[3]) {channel.searchKeyword=arrCh[3];channel.full+=sepChannel+channel.searchKeyword;} if(arrCh[4]) {channel.socialNetwork=arrCh[4];channel.full+=sepChannel+channel.socialNetwork;} return channel;}else{channel.name=cm.fontiTraffico['internal'];channel.full=channel.name+sepChannel+channel.referrer;cm.set_cookie(cm.cookie['channel'],channel.full);return channel;}}} for(var motore in cm.searchEngines) {var dom=cm.searchEngines[motore]['tl'][0];var keyNum=0;if(referrer.domain.indexOf(dom)>=0){channel.name=cm.fontiTraffico['searchOrganic'];channel.searchEngines=motore;for(keyNum;keyNum<cm.searchEngines[motore]['kw'].length;keyNum++){var keyparam=cm.searchEngines[motore]['kw'][keyNum];channel.searchKeyword=cm.gup(keyparam,referrer.url,null).toLowerCase();;if(channel.searchKeyword!="")break;} if(channel.searchKeyword==""){channel.searchKeyword="No Keyword";} channel.full=channel.name+sepChannel+channel.referrer+sepChannel+channel.searchEngines+sepChannel+channel.searchKeyword;cm.set_cookie(cm.cookie['channel'],channel.full);return channel;}} if(cm.searchMode=="domain-search") {if(referrer.domain.indexOf("search")>=0) {channel.name=cm.fontiTraffico['searchOrganic'];channel.searchEngines=referrer.domain;channel.searchKeyword="No Keyword";channel.full=channel.name+sepChannel+channel.referrer+sepChannel+channel.searchEngines+sepChannel+channel.searchKeyword;cm.set_cookie(cm.cookie['channel'],channel.full);return channel;}}} for(var snet in cm.social) {var sdom=cm.social[snet];if(referrer.domain.indexOf(sdom)>=0) {channel.name=cm.fontiTraffico['searchSocialOrganic'];channel.socialNetwork=snet;channel.full=channel.name+sepChannel+channel.referrer+sepChannel+channel.socialNetwork;cm.set_cookie(cm.cookie['channel'],channel.full);return channel;}} if(channel.searchKeyword=="")channel.searchKeyword=referrer.url;if(!channel.name||cm.fontiTraffico['erroreNoChannel']) {channel.name=cm.fontiTraffico['otherReferrer'];channel.full=channel.name+sepChannel+channel.referrer;}} else if(!channel.campaign&&!referrer.domain){if(isNewVisit&&existsChannel=="") {channel.name=cm.fontiTraffico['direct'];channel.referrer='No referrer';channel.full=channel.name;cm.set_cookie(cm.cookie['channel'],channel.full);return channel;} else {if(existsChannel!="") {var arrCh=existsChannel.split(sepChannel);if(arrCh[0]) {channel.name=arrCh[0];channel.full=channel.name;} if(arrCh[1]) {channel.referrer=arrCh[1];channel.full+=sepChannel+channel.referrer;} if(arrCh[2]) {channel.searchEngines=arrCh[2];channel.full+=sepChannel+channel.searchEngines;} if(arrCh[3]) {channel.searchKeyword=arrCh[3];channel.full+=sepChannel+channel.searchKeyword;} if(arrCh[4]) {channel.socialNetwork=arrCh[4];channel.full+=sepChannel+channel.socialNetwork;} return channel;}}}}else{if(existsChannel!="") {var arrCh=existsChannel.split(sepChannel);if(arrCh[0]) {channel.name=arrCh[0];channel.full=channel.name;} if(arrCh[1]) {channel.referrer=arrCh[1];channel.full+=sepChannel+channel.referrer;} if(arrCh[2]) {channel.searchEngines=arrCh[2];channel.full+=sepChannel+channel.searchEngines;} if(arrCh[3]) {channel.searchKeyword=arrCh[3];channel.full+=sepChannel+channel.searchKeyword;} if(arrCh[4]) {channel.socialNetwork=arrCh[4];channel.full+=sepChannel+channel.socialNetwork;} return channel;}} return channel;};function CMConfiguration(cm){cm.newVisit='custom';cm.searchMode='domains-only';cm.source='qs';cm.sourceVar='campaign';cm.trackingCode=['cmpid'];cm.internalDomain=['corriere.it'];cm.cookie={'channel':'channel','newVisit':'gvsC'};cm.separatore={'channel':'|'};cm.fontiTraffico={'direct':'Direct','internal':'Session refresh/No tag','searchOrganic':'Natural Search','searchSocialOrganic':'Social Networks','otherReferrer':'Referring Domains','otherCampaign':'Other Campaigns','erroreNoChannel':'Errore: Channel Manager non settato'} cm.campagna={'^PA':{n:'Partnership',c:['i'],o:['y']},'^CA':{n:'Contextual Adv',c:['i'],o:['y']},'^EM':{n:'Email',c:['i'],o:['y']},'^SM':{n:'Social Media Paid',c:['i'],o:['y']},'^DI':{n:'Display',c:['i'],o:['y']},'^AF':{n:'Affiliate',c:['i'],o:['y']}};cm.otherPartnerNet={'Corriere':'corriere.it','Gazzetta':'gazzetta.it','IoDonna':'iodonna.it','Leiweb':'leiweb.it','Oggi':'oggi.it','OkSalute':'ok-salute.it'};cm.social={'Facebook':'facebook.com','Twitter':'t.co','MySpace':'myspace.com','LinkedIn':'linkedin.com','Classmates':'classmates.com','Tagged':'tagged.com','Hi5':'hi5.com','Orkut':'orkut.com','Flixster':'flixster.com','My Year Book':'myyearbook.com','NetLog':'netlog.com','Flickr':'flickr.com','Badoo':'badoo.com','Ning':'ning.com','Dada':'dada.net','Veoh':'veoh.com','LastFM':'last.fm','Xing':'xing.com','SlideShare':'slideshare.net','Google Plus':'plus.google.com','Pinterest':'pinterest.com','Weibo':'weibo.com','Blogspot':'blogspot.com','Wordpress':'wordpress.com','Tumblr':'tumblr.com','Vkontakte':'vkontakte.ru','Vk':'vk.com','Vimeo':'vimeo.com','Youtube':'youtube.com','Friendster':'friendster.com','Livejournal':'livejournal.com','Dailymotion':'dailymotion.com','Photobucket':'photobucket.com','Meetup':'meetup.com','Diggita':'diggita.it','Delicious':'delicious.com','Friendfeed':'friendfeed.com','Digg':'digg.com','Reddit':'reddit.com','Stumbleupon':'stumbleupon.com','Twine':'twine.com','Yelp':'yelp.com','Mixx':'mixx.com','Disqus':'disqus.com','IntenseDebate':'intensedebate.com','Plurk':'plurk.com','Backtype':'backtype.com','Netvibes':'netvibes.com','Mister-wong':'mister-wong.com','Diigo':'diigo.com','Flixster':'flixster.com','12Seconds':'12seconds.tv','Zooomr':'zooomr.com','Identi':'identi.ca','Jaiku':'jaiku.com','Imeem':'imeem.com','Fotolog':'fotolog.com','Smugmug':'smugmug.com','Mylife':'mylife.com','Brightkite':'brightkite.com','Bebo':'bebo.com','Yuku':'yuku.com','Cafemom':'cafemom.com','Xanga':'xanga.com','Google Plus':'plus.google.com','Google Plus':'plus.url.google.com','Foursquare':'foursquare.com','Anobii':'anobii.com'};cm.searchEngines={'Google - Italy':{kw:['q'],tl:['google.it']},'Microsoft Bing':{kw:['q'],tl:['bing.com']},'Ask Jeeves':{kw:['ask','q'],tl:['ask.com','ask.co.uk']},'Libero':{kw:['query'],tl:['libero.it']},'MSN':{kw:['q'],tl:['msn.com']},'Tiscali':{kw:['key'],tl:['tiscali.it']},'Virgilio':{kw:['qs'],tl:['virgilio.it']},'Yahoo! - Italy':{kw:['p'],tl:['it.yahoo.com','it.search.yahoo.com']},'Yandex.ru':{kw:['text'],tl:['yandex.ru']},'AOL - France':{kw:['q'],tl:['aol.fr']},'AOL - Germany':{kw:['q'],tl:['suche.aol.de','suche.aolsvc.de']},'AOL - United Kingdom':{kw:['query'],tl:['aol.co.uk','search.aol.co.uk']},'AOL.com Search':{kw:['query'],tl:['search.aol.com','search.aol.ca']},'au.Anzwers':{kw:['p'],tl:['au.anzwers.yahoo.com']},'Baidu':{kw:['wd','s'],tl:['http://www.baidu.com']},'BeGuide.com':{kw:['search'],tl:['beguide.com']},'Blue Window':{kw:['q','qry'],tl:['search.bluewin.ch','search.bluewindow.ch']},'Business.com':{kw:['query'],tl:['business.com/search']},'BuyersIndex':{kw:['query'],tl:['buyersindex.com']},'ByteSearch':{kw:['search','q'],tl:['bytesearch.com']},'Cafesta':{kw:['keyword','keywords'],tl:['cafesta.com']},'CNET Search.com':{kw:['q'],tl:['cnet.search.com']},'ComFind':{kw:[''],tl:['debriefing.com','allbusiness.comfind.com']},'Crooz':{kw:['query'],tl:['crooz.jp']},'CyberBritain.com':{kw:['qry'],tl:['hermia.com','cyberbritain.co.uk']},'Dazzo!':{kw:['search'],tl:['dazzo.com']},'DejaNews':{kw:['QRY'],tl:['www.dejanews.com']},'Deoji':{kw:['search','k'],tl:['deoji.com']},'Dictionary.com':{kw:['term','query'],tl:['Dictionary.com','Dictionary']},'Dino Online':{kw:['query'],tl:['www.dino-online.de']},'DirectHit':{kw:['qry','q'],tl:['directhit.com']},'Dmoz':{kw:['search'],tl:['search.dmoz.com','dmoz.com']},'dog.com':{kw:['search'],tl:['doginfo.com']},'Dogpile':{kw:['q','/search/web/'],tl:['dogpile.com']},'eerstekeuze.nl':{kw:['Terms'],tl:['http://www.eerstekeuze.nl/']},'Fansi"tes.com':{kw:['q1'],tl:['fansites.com']},'Final Search':{kw:['pattern'],tl:['finalsearch.com']},'FindLink':{kw:[''],tl:['"findlink.com']},'Fireball':{kw:['q','query'],tl:['fireball.de']},'FishHoo!':{kw:['query'],tl:['fishhoo.com']},'FreshEye':{kw:['ord','kw'],tl:['search.fresheye.com']},'Froute':{kw:['k'],tl:['item.froute.jp','search.froute.jp']},'FullWebinfo Directory & Search Engine':{kw:['k','s'],tl:['fullwebinfo.com']},'Galaxy':{kw:[''],tl:['galaxy.tradewave.com']},'General Search':{kw:['keyword'],tl:['generalsearch.com']},'GeoBoz Search':{kw:['search'],tl:['geoboz.com']},'Globe Crawler':{kw:['search'],tl:['globecrawler.com']},'Go (Infoseek)':{kw:['qt'],tl:['infoseek.go.com']},'Go2net Metacrawler':{kw:['general'],tl:['go2net.com']},'GoButton':{kw:[''],tl:['gobutton.com']},'Godado':{kw:['Keywords'],tl:['godado.it']},'GoEureka':{kw:['q','key'],tl:['goeureka.com.au']},'Goo (Japan)':{kw:['MT'],tl:['search.mobile.goo.ne.jp']},'Goo (Jp.)':{kw:['MT'],tl:['goo.ne.jp']},'Google - Afghanistan':{kw:['q'],tl:['google.com.af']},'Google - Argentina':{kw:['q'],tl:['google.com.ar']},'Google - Armenia':{kw:['q'],tl:['google.am']},'Google - Australia':{kw:['q'],tl:['google.com.au']},'Google - Austria':{kw:['q'],tl:['google.at']},'Google - Azerbaijan':{kw:['q'],tl:['google.az']},'Google - Bahrain':{kw:['q'],tl:['google.com.bh']},'Google - Bangladesh':{kw:['q'],tl:['google.com.bd']},'Google - Belarus':{kw:['q'],tl:['google.com.by']},'Google - Belgium':{kw:['q'],tl:['google.be']},'Google - Bolivia':{kw:['q'],tl:['google.com.bo']},'Google - Bosnia-Hercegovina':{kw:['q'],tl:['google.ba']},'Google - Brasil':{kw:['q'],tl:['google.com.br']},'Google - Brunei':{kw:['q'],tl:['google.com.bn']},'Google - Bulgaria':{kw:['q'],tl:['google.bg']},'Google - Burundi':{kw:['q'],tl:['google.bi']},'Google - Cambodia':{kw:['q'],tl:['google.com.kh']},'Google - Canada':{kw:['q'],tl:['google.ca']},'Google - Chile':{kw:['q'],tl:['google.cl']},'Google - China':{kw:['q'],tl:['google.cn']},'Google - Colombia':{kw:['q'],tl:['google.com.co']},'Google - Costa Rica':{kw:['q'],tl:['go"ogle.co.cr']},'Google - Cote D\'Ivoire':{kw:['q'],tl:['google.ci']},'Google - Croatia':{kw:['q'],tl:['google.hr']},'Google - Cuba':{kw:['q'],tl:['google.com.cu']},'Google - Czech Republic':{kw:['q'],tl:['google.cz']},'Google - Denmark':{kw:['q'],tl:['google.dk']},'Google - Dominica':{kw:['q'],tl:['google.dm']},'Google - Dominican Republic':{kw:['q'],tl:['google.com.do']},'Google - Ecuador':{kw:['q'],tl:['google.com.ec']},'Google - Egypt':{kw:['q'],tl:['google.com.eg']},'Google - El Salvador':{kw:['q'],tl:['google.com.sv']},'Google - Estonia':{kw:['q'],tl:['google.ee']},'Google - Ethiopia':{kw:['q'],tl:['google.com.et']},'Google - Fiji':{kw:['q'],tl:['google.com.fj']},'Google - Finland':{kw:['q'],tl:['google.fi']},'Google - France':{kw:['q'],tl:['google.fr']},'Google - Germany':{kw:['q'],tl:['google.de']},'Google - Greece':{kw:['q'],tl:['google.gr']},'Google - Greenland':{kw:['q'],tl:['google.gl']},'Google - Guadeloupe':{kw:['q'],tl:['google.gp']},'Google - Guatemala':{kw:['q'],tl:['google.com.gt']},'Google - Haiti':{kw:['q'],tl:['google.ht']},'Google - Honduras':{kw:['q'],tl:['google.hn']},'Google - Hong Kong':{kw:['q'],tl:['google.com.hk']},'Google - Hungary':{kw:['q'],tl:['google.hu']},'Google - India':{kw:['q'],tl:['google.co.in']},'Google - Indonesia':{kw:['q'],tl:['google.co.id']},'Google - Ireland':{kw:['q'],tl:['google.ie']},'Google - Island':{kw:['q'],tl:['google.is']},'Google - Isle of Gibraltar':{kw:['q'],tl:['google.com.gi']},'Google - Israel':{kw:['q'],tl:['google.co.il']},'Google - Jamaica':{kw:['q'],tl:['google.com.jm']},'Google - Japan':{kw:['q'],tl:['google.co.jp']},'Google - Jordan':{kw:['q'],tl:['google.jo']},'Google - Kazakhstan':{kw:['q'],tl:['google.kz']},'Google - Kenya':{kw:['q'],tl:['google.co.ke']},'Google - Korea':{kw:['q'],tl:['google.co.kr']},'Google - Latvia':{kw:['q'],tl:['google.lv']},'Google - Libya':{kw:['q'],tl:['google.com.ly']},'Google - Liechtenstein':{kw:['q'],tl:['google.li']},'Google - Lithuania':{kw:['q'],tl:['google.lt']},'Google - Luxembourg':{kw:['q'],tl:['google.lu']},'Google - Malaysia':{kw:['q'],tl:['google.com.my']},'Google - Maldives':{kw:['q'],tl:['google.mv']},'Google - Malta':{kw:['q'],tl:['google.com.mt']},'Google - Mauritius':{kw:['q'],tl:['google.mu']},'Google - Mexico':{kw:['q'],tl:['google.com.mx']},'Google - Moldova':{kw:['q'],tl:['google.md']},'Google - Mongolia':{kw:['q'],tl:['google.mn']},'Google - Morocco':{kw:['q'],tl:['google.co.ma']},'Google - Nepal':{kw:['q'],tl:['google.com.np']},'Google - Netherlands':{kw:['q'],tl:['google.nl']},'Google - New Zealand':{kw:['q'],tl:['google.co.nz']},'Google - Nicaragua':{kw:['q'],tl:['google.com.ni']},'Google - Nigeria':{kw:['q'],tl:['google.com.ng']},'Google - Norway (Startsiden)':{kw:['q'],tl:['google.startsiden.no']},'Google - Norway':{kw:['q'],tl:['google.no']},'Google - Pakistan':{kw:['q'],tl:['google.com.pk']},'Google - Panama':{kw:['q'],tl:['google.com.pa']},'Google - Paraguay':{kw:['q'],tl:['google.com.py']},'Google - Peru':{kw:['q'],tl:['google.com.pe']},'Google - Philippines':{kw:['q'],tl:['google.com.ph']},'Google - Poland':{kw:['q'],tl:['google.pl']},'Google - Portugal':{kw:['q'],tl:['google.pt']},'Google - Puerto Rico':{kw:['q'],tl:['google.com.pr']},'Google - Qatar':{kw:['q'],tl:['google.com.qa']},'Google - Rep. Dem. du Congo':{kw:['q'],tl:['google.cd']},'Google - Rep. du Congo':{kw:['q'],tl:['google.cg']},'Google - Repulic of Georgia':{kw:['q'],tl:['google.ge']},'Google - Romania':{kw:['q'],tl:['google.ro']},'Google - Russia':{kw:['q'],tl:['google.ru']},'Google - Saint Helena':{kw:['q'],tl:['google.sh']},'Google - Samoa':{kw:['q'],tl:['google.ws']},'Google - San Marino':{kw:['q'],tl:['google.sm']},'Google - Saudi Arabia':{kw:['q'],tl:['google.com.sa']},'Google - Senegal':{kw:['q'],tl:['google.sn']},'Google - Seychelles':{kw:['q'],tl:['google.sc']},'Google - Singapore':{kw:['q'],tl:['google.com.sg']},'Google - Slovakia':{kw:['q'],tl:['google.sk']},'Google - Slovenia':{kw:['q'],tl:['google.si']},'Google - South Africa':{kw:['q'],tl:['google.co.za']},'Google - Spain':{kw:['q'],tl:['google.es']},'Google - Sri Lanka':{kw:['q'],tl:['google.lk']},'Google - Sweden':{kw:['q'],tl:['google.se']},'Google - Switzerland':{kw:['q'],tl:['google.ch']},'Google - Taiwan':{kw:['q'],tl:['google.com.tw']},'Google - Thailand':{kw:['q'],tl:['google.co.th']},'Google - The Bahamas':{kw:['q'],tl:['google.bs']},'Google - Turkey':{kw:['q'],tl:['google.com.tr']},'Google - Ukraine':{kw:['q'],tl:['google.com.ua']},'Google - United Arab Emirates':{kw:['q'],tl:['google.ae']},'Google - United Kingdom':{kw:['q'],tl:['google.co.uk']},'Google - Uruguay':{kw:['q'],tl:['google.com.uy']},'Google - US':{kw:['q'],tl:['google.com']},'Google - Venezuela':{kw:['q'],tl:['google.co.ve']},'Google - Viet Nam':{kw:['q'],tl:['google.com.vn']},'Google - Yugoslavia':{kw:['q'],tl:['google.co.yu']},'Google - Zambia':{kw:['q'],tl:['google.co.zm']},'Google Images':{kw:['q'],tl:['images.google.com']},'Google Video':{kw:['q'],tl:['video.google.com']},'Google':{kw:['q'],tl:['google.co','googlesyndication.com']},'ilse.nl':{kw:['search_for'],tl:['search.ilse.nl']},'InfoSpace':{kw:['QKW','qhqn'],tl:['infospace.com']},'InfoTiger':{kw:['qs'],tl:['infotiger.com']},'Internet Times':{kw:['search','query'],tl:['internet-times.com']},'InternetTrash':{kw:['words'],tl:['internettrash.com']},'Live.com':{kw:['q'],tl:['search.live.com']},'Livedoor - Mobile':{kw:['q','keyword'],tl:['dir.m.livedoor.com']},'LookSmart':{kw:['key','qt'],tl:['looksmart.com','looksmart.co.uk']},'Loquax Open Directory':{kw:['search'],tl:['loquax.co.uk']},'Lycos - Italy':{kw:['query'],tl:['lycos.it']},'Lycos':{kw:['query'],tl:['www.lycos.com','search.lycos.com']},'Magellan':{kw:['search'],tl:['magellan']},'Metacrawler - Germany':{kw:['qry'],tl:['216.15.219.34','216.15.192.226']},'Metacrawler':{kw:['general','/search/web/'],tl:['www.metacrawler.com','search.metacrawler.com']},'MetaDog.com':{kw:['search','keyword'],tl:['metapro.com','metadog.com']},'MetaGopher':{kw:['query'],tl:['metagopher.com']},'MetaIQ.com':{kw:['search','qry'],tl:['metaiq']},'Mobagee Search':{kw:['q'],tl:['s.mbga.jp']},'Monster Crawler':{kw:['qry'],tl:['monstercrawler.com']},'MSN - Austria':{kw:['q'],tl:['search.msn.at']},'MSN - Belgium':{kw:['q'],tl:['search.msn.be']},'MSN - Brazil':{kw:['q'],tl:['search.msn.com.br']},'MSN - Canada':{kw:['q'],tl:['sympatico.msn.ca','search.fr.msn.ca']},'MSN - Denmark':{kw:['q'],tl:['search.msn.dk']},'MSN - France':{kw:['q'],tl:['search.msn.fr']},'MSN - Germany':{kw:['q'],tl:['search.msn.de']},'MSN - Hong Kong S.A.R.':{kw:['q'],tl:['search.msn.com.hk']},'MSN - India (English)':{kw:['q'],tl:['search.msn.co.in']},'MSN - Indonesia (English)':{kw:['q'],tl:['search.msn.co.id']},'MSN - Ireland':{kw:['q'],tl:['search.msn.ie']},'MSN - Isreal':{kw:['q'],tl:['search.msn.co.il']},'MSN - Italy':{kw:['q'],tl:['search.msn.it']},'MSN - Japan':{kw:['q'],tl:['search.msn.co.jp']},'MSN - Korea':{kw:['q','query'],tl:['search.msn.co.kr']},'MSN - Latin America':{kw:['q'],tl:['search.latam.msn.com']},'MSN - Malaysia':{kw:['q'],tl:['search.msn.com.my']},'MSN - Mexico':{kw:['q'],tl:['t1msn.com.mx','search.prodigy.msn.com']},'MSN - Netherlands':{kw:['q'],tl:['search.msn.nl']},'MSN - New Zealand':{kw:['q','mkt=en-nz'],tl:['msn.co.nz']},'MSN - Norway':{kw:['q'],tl:['search.msn.no']},'MSN - People\'s Republic of China':{kw:['q'],tl:['search.msn.com.cn']},'MSN - Republic of the Phlippines':{kw:['q'],tl:['search.msn.com.ph']},'MSN - Singapore':{kw:['q'],tl:['search.msn.com.sg']},'MSN - South Africa':{kw:['q'],tl:['search.msn.co.za']},'MSN - Spain':{kw:['q'],tl:['search.msn.es']},'MSN - Sweden':{kw:['q'],tl:['search.msn.se']},'MSN - Switzerland':{kw:['q'],tl:['search.msn.ch','fr.ch.msn.com']},'MSN - Taiwan':{kw:['q'],tl:['search.msn.com.tw']},'MSN - Turkey':{kw:['q'],tl:['search.msn.com.tr']},'MSN - United Kingdom':{kw:['q'],tl:['uk.search.msn.com','msn.co.uk']},'MSN LiveSearch Mobile':{kw:['q'],tl:['m.live.com']},'MSN UK':{kw:['q'],tl:['msn.co.uk']},'myGO':{kw:['qry'],tl:['mygo.com']},'My Web Search':{kw:['searchfor'],tl:['search.mywebsearch.com']},'Nate.com':{kw:['query'],tl:['nate.com','search.nate.com']},'National Directory':{kw:['query'],tl:['search.NationalDirectory.com']},'NBCi':{kw:['keyword','qkw'],tl:['nbci.com']},'NetSearch':{kw:['Terms','search'],tl:['netsearchvoyager.com','netsearch.org']},'Nexet Open Directory':{kw:['SEARCH','q'],tl:['nexet.net']},'Nifty':{kw:['Text'],tl:['search.nifty.com']},'Nomade':{kw:['s','MT'],tl:['nomade.fr']},'Northern Light':{kw:['qr'],tl:['www.northernlight.com']},'Oh! New? Mobile':{kw:['k'],tl:['ohnew.co.jp']},'Orbit.net':{kw:[''],tl:['orbit.net']},'Overture':{kw:['Keywords="'],tl:['overture.com']},'QuestFinder':{kw:['s'],tl:['questfinder.com','questfinder.net']},'RageWorld.com':{kw:['search'],tl:['rageworld.com']},'Rex Search':{kw:['terms'],tl:['rex-search.com','rex-search.com']},'Search City':{kw:['search','keyword'],tl:['searchcity.co.uk']},'Search King':{kw:['searchterm','keyword'],tl:['searchking.com']},'Search Results':{kw:['q'],tl:['search-results.com']},'Search.ch':{kw:['q'],tl:['search.ch']},'Searchalot':{kw:['query','q'],tl:['searchalot.com']},'SearchHound':{kw:['?'],tl:['searchhound.com']},'Searchteria':{kw:['p'],tl:['ad.searchteria.co.jp']},'SmartPages.com':{kw:['QueryString'],tl:['smartpages.com']},'So-net':{kw:['MT'],tl:['so-net.search.goo.ne.jp']},'TheYellowPages':{kw:['search'],tl:['theyellowpages.com']},'Thunderstone':{kw:['q'],tl:['thunderstone.com']},'ToggleBot!':{kw:['search','query'],tl:['togglebot.com']},'TopFile.com':{kw:['query'],tl:['www.topfile.com']},'track.nl':{kw:['qr'],tl:['http://www.track.nl/']},'WAKWAK':{kw:['MT'],tl:['wakwak.com']},'Web Trawler':{kw:[''],tl:['webtrawler.com']},'Web.de':{kw:['su'],tl:['web.de']},'Webalta':{kw:['q'],tl:['webalta.ru']},'WebCrawler':{kw:['searchText','search'],tl:['www.webcrawler.com']},'Web-Search':{kw:['q'],tl:['www.web-search.com']},'Yahoo! - Argentina':{kw:['p'],tl:['ar.yahoo.com','ar.search.yahoo.com']},'Yahoo! - Asia':{kw:['p'],tl:['asia.yahoo.com','asia.search.yahoo.com']},'Yahoo! - Australia':{kw:['p'],tl:['au.yahoo.com','au.search.yahoo.com']},'Yahoo! - Austria':{kw:['p'],tl:['at.search.yahoo.com']},'Yahoo! - Brazil':{kw:['p'],tl:['br.yahoo.com','br.search.yahoo.com']},'Yahoo! - Canada (French)':{kw:['p'],tl:['qc.yahoo.com','cf.search.yahoo.com']},'Yahoo! - Canada':{kw:['p'],tl:['ca.yahoo.com','ca.search.yahoo.com']},'Yahoo! - Catalan':{kw:['p'],tl:['ct.yahoo.com','ct.search.yahoo.com']},'Yahoo! - China':{kw:['p'],tl:['cn.yahoo.com','search.cn.yahoo.com']},'Yahoo! - Chinese (US)':{kw:['p'],tl:['chinese.yahoo.com']},'Yahoo! - Denmark':{kw:['p'],tl:['dk.yahoo.com','dk.search.yahoo.com']},'Yahoo! - Finland':{kw:['p'],tl:['fi.search.yahoo.com']},'Yahoo! - France':{kw:['p'],tl:['fr.yahoo.com','fr.search.yahoo.com']},'Yahoo! - Germany':{kw:['p'],tl:['de.yahoo.com','de.search.yahoo.com']},'Yahoo! - Hong Kong':{kw:['p'],tl:['hk.yahoo.com','hk.search.yahoo.com']},'Yahoo! - India':{kw:['p'],tl:['in.yahoo.com','in.search.yahoo.com']},'Yahoo! - Indonesia':{kw:['p'],tl:['id.yahoo.com','id.search.yahoo.com']},'Yahoo! - Italy':{kw:['p'],tl:['it.yahoo.com','it.search.yahoo.com']},'Yahoo! - Japan':{kw:['p','va'],tl:['yahoo.co.jp','search.yahoo.co.jp']},'Yahoo! - Kids':{kw:['p'],tl:['kids.yahoo.com','kids.yahoo.com/search']},'Yahoo! - Korea':{kw:['p'],tl:['kr.yahoo.com','kr.search.yahoo.com']},'Yahoo! - Malaysia':{kw:['p'],tl:['malaysia.yahoo.com','malaysia.search.yahoo.com']},'Yahoo! - Mexico':{kw:['p'],tl:['mx.yahoo.com','mx.search.yahoo.com']},'Yahoo! - Netherlands':{kw:['p'],tl:['nl.yahoo.com','nl.search.yahoo.com']},'Yahoo! - New Zealand':{kw:['p'],tl:['nz.yahoo.com','nz.search.yahoo.com']},'Yahoo! - Norway':{kw:['p'],tl:['no.yahoo.com','no.search.yahoo.com']},'Yahoo! - Philippines':{kw:['p'],tl:['ph.yahoo.com','ph.search.yahoo.com']},'Yahoo! - Russia':{kw:['p'],tl:['ru.yahoo.com','ru.search.yahoo.com']},'Yahoo! - Singapore':{kw:['p'],tl:['sg.yahoo.com','sg.search.yahoo.com']},'Yahoo! - Spain':{kw:['p'],tl:['es.yahoo.com','es.search.yahoo.com']},'Yahoo! - Spanish (US : Telemundo)':{kw:['p'],tl:['telemundo.yahoo.com','espanol.search.yahoo.com']},'Yahoo! - Sweden':{kw:['p'],tl:['se.yahoo.com','se.search.yahoo.com']},'Yahoo! - Switzerland':{kw:['p'],tl:['ch.search.yahoo.com']},'Yahoo! - Taiwan':{kw:['p'],tl:['tw.yahoo.com','tw.search.yahoo.com']},'Yahoo! - Thailand':{kw:['p'],tl:['th.yahoo.com','th.search.yahoo.com']},'Yahoo! - UK and Ireland':{kw:['p'],tl:['uk.yahoo.com','uk.search.yahoo.com']},'Yahoo! - Viet Nam':{kw:['p'],tl:['vn.yahoo.com','vn.search.yahoo.com']},'Yahoo!':{kw:['p'],tl:['yahoo.com','search.yahoo.com']},'YahooJapan - Mobile':{kw:['p'],tl:['mobile.yahoo.co.jp']},'zoeken.nl':{kw:['query'],tl:['http://www.zoeken.nl/']}};cm.gup=function(name,domain){var lookIn;if(domain!=""&&domain!=null) lookIn=domain;else lookIn=window.location.href;name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(lookIn);if(results==null) return"";else return results[1];} cm.get_cookie=function(Name){var search=Name+"=" var returnvalue="";var offset;if(document.cookie.length>0){offset=document.cookie.indexOf(search) if(offset!=-1){offset+=search.length end=document.cookie.indexOf(";",offset);if(end==-1)end=document.cookie.length;returnvalue=unescape(document.cookie.substring(offset,end))}} return returnvalue;} cm.set_cookie=function(nome,valore){var d=new Date();d.setTime(d.getTime()+(30*24*60*60*1000));var expires="expires="+d.toUTCString();document.cookie=nome+"="+valore+"; domain="+cm.get_tld()+"; path=/;"+expires;} cm.getDomain=function(ref){var s=this;var url="";var urlTemp=ref;var split=urlTemp.split("/");if(split[0].indexOf("http")===0) url=split[2];else url=split[0];return url;} cm.get_tld=function(domain){var urlTLD;if(domain==""||domain==null) urlTLD=window.location.host;else urlTLD=domain;var temp=urlTLD.split(".");var result="";if(temp.length>1) result="."+temp[temp.length-2]+"."+temp[temp.length-1];else result=temp[temp.length-1];return result;} cm.newVisit=function(cookieName){if(cm.get_cookie(cookieName)==""){document.cookie=cookieName+"=New; domain="+cm.get_tld()+"; path=/";return 1;}else{var arr=cm.internalDomain;var sonoInterno=0;var refTLD=cm.getDomain(document.referrer);if(refTLD!=""){for(var intL=1;intL<arr.length;intL++){if(refTLD.indexOf(arr[intL])>=0)sonoInterno=1;} if(sonoInterno==0)return 1;} return 0;}};return cm;} var canale=channelManagerBB();utag_data.traffic_channel_name=canale.name;}catch(e){console.log(e);}} if(!utag_condload){try{function getUrlVars_Tealium() {var vars=[],hash;var hashes=window.location.href.slice(window.location.href.indexOf('?')+1).split('&');for(var i=0;i<hashes.length;i++) {hash=hashes[i].split('=');hash[1]=unescape(hash[1]);vars.push(hash[0]);vars[hash[0]]=hash[1];} return vars;}}catch(e){console.log(e);}} if(!utag_condload){try{try{utag_data.urlHashed=document.location.href;utag_data.nielsenSection="LA7_BRW";}catch(e){console.log(e)}}catch(e){console.log(e);}} if(!utag_condload){try{try{var script=document.createElement('script');script.src="https://components2.rcsobjects.it/rcs_data-tracking/v1/distro/openx/openx_async.js";document.getElementsByTagName('head')[0].appendChild(script);}catch(e){console.log(e)}}catch(e){console.log(e);}} if(!utag_condload){try{try{if(document.cookie.indexOf('euconsent-v2')===-1){cpmt_trk='Privacy banner';var trackingConfig={childList:true};var trackingCallback=function(mutationsList,observer){for(let mutation of mutationsList){if(mutation.type==='childList'){var checkPolicyBanner=document.body.querySelector('#_evh-ric');if(checkPolicyBanner){if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;} if(!Element.prototype.closest){Element.prototype.closest=function(s){var el=this;do{if(el.matches(s))return el;el=el.parentElement||el.parentNode;}while(el!==null&&el.nodeType===1);return null;};} if(typeof cmp!=='undefined'){window.cmp.addListener('consent.changed',function(){if(typeof cpmt_trk!==undefined&&cpmt_trk==="Privacy banner"){if(typeof cpmt_data!=='undefined'&&typeof cpmt_data.cmptrk!=='undefined'){if(typeof omniture!=='undefined'){omniture.linkTrackVars='eVar127';omniture.linkTrackEvents='event114';omniture.eVar127=cpmt_data.cmptrk;omniture.events='event114';omniture.usePlugins=false;omniture.tl(omniture,'o','save_cmp');omniture.eVar127='';omniture.events='';}}}});} document.querySelector('#_evh-ric #Configuration').addEventListener('click',function(){if(typeof omniture!=='undefined'&&typeof omniture.pageName!=='undefined'){omniture.pageName=omniture.pageName.replace(/\/(.*)/,'/');omniture.pageName+='preference_cmp';omniture.t();} cpmt_data={};document.addEventListener('click',function(event){var button=event.target.closest('button');if(button){if(button.className=='agree tutto selected'){cpmt_data.cmptrk='accetta tutto';}else if(button.className=='disagree tutto selected'){cpmt_data.cmptrk='rifiuta tutto';}}});});document.querySelector('#_evh-ric #AcceptButton').addEventListener('click',function(){document.cookie='__cpmtAccept=true';});observer.disconnect();return true;}}}};var trackingObserver=new MutationObserver(trackingCallback);trackingObserver.observe(document.body,trackingConfig);}else if(typeof utag_data!=='undefined'&&document.cookie.indexOf('__cpmtAccept=true')!==-1){utag_data.event_name='banner_accept';document.cookie='__cpmtAccept=; expires=Thu, 01 Jan 1970 00:00:00 GMT';}}catch(e){console.log(e)}}catch(e){console.log(e);}} if(!utag_condload){try{try{if(_tmsTools.getCookie("IpHash")==null){var HttpForIp=new XMLHttpRequest();HttpForIp.open("GET",'https://api.ipify.org');HttpForIp.send();HttpForIp.onreadystatechange=(e)=>{userIp=HttpForIp.responseText;if(userIp!=""){utag_data.IpHash=userIp;}}}}catch(e){console.log(e)}}catch(e){console.log(e);}} if(typeof utag=="undefined"&&!utag_condload){var utag={id:"rcsmedia.tgla7",o:{},sender:{},send:{},rpt:{ts:{a:new Date()}},dbi:[],db_log:[],loader:{q:[],lc:0,f:{},p:0,ol:0,wq:[],lq:[],bq:{},bk:{},rf:0,ri:0,rp:0,rq:[],ready_q:[],sendq:{"pending":0},run_ready_q:function(){for(var i=0;i<utag.loader.ready_q.length;i++){utag.DB("READY_Q:"+i);try{utag.loader.ready_q[i]()}catch(e){utag.DB(e)};}},lh:function(a,b,c){a=""+location.hostname;b=a.split(".");c=(/\.co\.|\.com\.|\.org\.|\.edu\.|\.net\.|\.asn\.|\...\.jp$/.test(a))?3:2;return b.splice(b.length-c,c).join(".");},WQ:function(a,b,c,d,g){utag.DB('WQ:'+utag.loader.wq.length);try{if(utag.udoname&&utag.udoname.indexOf(".")<0){utag.ut.merge(utag.data,window[utag.udoname],0);} if(utag.cfg.load_rules_at_wait){utag.handler.LR(utag.data);}}catch(e){utag.DB(e)};d=0;g=[];for(a=0;a<utag.loader.wq.length;a++){b=utag.loader.wq[a];b.load=utag.loader.cfg[b.id].load;if(b.load==4){this.f[b.id]=0;utag.loader.LOAD(b.id)}else if(b.load>0){g.push(b);d++;}else{this.f[b.id]=1;}} for(a=0;a<g.length;a++){utag.loader.AS(g[a]);} if(d==0){utag.loader.END();}},AS:function(a,b,c,d){utag.send[a.id]=a;if(typeof a.src=='undefined'){a.src=utag.cfg.path+((typeof a.name!='undefined')?a.name:'ut'+'ag.'+a.id+'.js')} a.src+=(a.src.indexOf('?')>0?'&':'?')+'utv='+(a.v?utag.cfg.template+a.v:utag.cfg.v);utag.rpt['l_'+a.id]=a.src;b=document;this.f[a.id]=0;if(a.load==2){utag.DB("Attach sync: "+a.src);a.uid=a.id;b.write('<script id="utag_'+a.id+'" src="'+a.src+'"></scr'+'ipt>') if(typeof a.cb!='undefined')a.cb();}else if(a.load==1||a.load==3){if(b.createElement){c='utag_rcsmedia.tgla7_'+a.id;if(!b.getElementById(c)){d={src:a.src,id:c,uid:a.id,loc:a.loc} if(a.load==3){d.type="iframe"};if(typeof a.cb!='undefined')d.cb=a.cb;utag.ut.loader(d);}}}},GV:function(a,b,c){b={};for(c in a){if(a.hasOwnProperty(c)&&typeof a[c]!="function")b[c]=a[c];} return b},OU:function(tid,tcat,a,b,c,d,f,g){g={};utag.loader.RDcp(g);try{if(typeof g['cp.OPTOUTMULTI']!='undefined'){c=utag.loader.cfg;a=utag.ut.decode(g['cp.OPTOUTMULTI']).split('|');for(d=0;d<a.length;d++){b=a[d].split(':');if(b[1]*1!==0){if(b[0].indexOf('c')==0){for(f in utag.loader.GV(c)){if(c[f].tcat==b[0].substring(1))c[f].load=0;if(c[f].tid==tid&&c[f].tcat==b[0].substring(1))return true;} if(tcat==b[0].substring(1))return true;}else if(b[0]*1==0){utag.cfg.nocookie=true}else{for(f in utag.loader.GV(c)){if(c[f].tid==b[0])c[f].load=0} if(tid==b[0])return true;}}}}}catch(e){utag.DB(e)} return false;},RDdom:function(o){var d=document||{},l=location||{};o["dom.referrer"]=d.referrer;o["dom.title"]=""+d.title;o["dom.domain"]=""+l.hostname;o["dom.query_string"]=(""+l.search).substring(1);o["dom.hash"]=(""+l.hash).substring(1);o["dom.url"]=""+d.URL;o["dom.pathname"]=""+l.pathname;o["dom.viewport_height"]=window.innerHeight||(d.documentElement?d.documentElement.clientHeight:960);o["dom.viewport_width"]=window.innerWidth||(d.documentElement?d.documentElement.clientWidth:960);},RDcp:function(o,b,c,d){b=utag.loader.RC();for(d in b){if(d.match(/utag_(.*)/)){for(c in utag.loader.GV(b[d])){o["cp.utag_"+RegExp.$1+"_"+c]=b[d][c];}}} for(c in utag.loader.GV((utag.cl&&!utag.cl['_all_'])?utag.cl:b)){if(c.indexOf("utag_")<0&&typeof b[c]!="undefined")o["cp."+c]=b[c];}},RDqp:function(o,a,b,c){a=location.search+(location.hash+'').replace("#","&");if(utag.cfg.lowerqp){a=a.toLowerCase()};if(a.length>1){b=a.substring(1).split('&');for(a=0;a<b.length;a++){c=b[a].split("=");if(c.length>1){o["qp."+c[0]]=utag.ut.decode(c[1])}}}},RDmeta:function(o,a,b,h){a=document.getElementsByTagName("meta");for(b=0;b<a.length;b++){try{h=a[b].name||a[b].getAttribute("property")||"";}catch(e){h="";utag.DB(e)};if(utag.cfg.lowermeta){h=h.toLowerCase()};if(h!=""){o["meta."+h]=a[b].content}}},RDva:function(o){var readAttr=function(o,l){var a="",b;a=localStorage.getItem(l);if(!a||a=="{}")return;b=utag.ut.flatten({va:JSON.parse(a)});utag.ut.merge(o,b,1);} try{readAttr(o,"tealium_va");readAttr(o,"tealium_va_"+o["ut.account"]+"_"+o["ut.profile"]);}catch(e){utag.DB(e)}},RDut:function(o,a){var t={};var d=new Date();var m=(utag.ut.typeOf(d.toISOString)=="function");o["ut.domain"]=utag.cfg.domain;o["ut.version"]=utag.cfg.v;t["tealium_event"]=o["ut.event"]=a||"view";t["tealium_visitor_id"]=o["ut.visitor_id"]=o["cp.utag_main_v_id"];t["tealium_session_id"]=o["ut.session_id"]=o["cp.utag_main_ses_id"];t["tealium_session_number"]=o["cp.utag_main__sn"];t["tealium_session_event_number"]=o["cp.utag_main__se"];try{t["tealium_datasource"]=utag.cfg.datasource;t["tealium_account"]=o["ut.account"]=utag.cfg.utid.split("/")[0];t["tealium_profile"]=o["ut.profile"]=utag.cfg.utid.split("/")[1];t["tealium_environment"]=o["ut.env"]=(!!utag.cfg.env)?utag.cfg.env:utag.cfg.path.split("/")[6];}catch(e){utag.DB(e)} t["tealium_random"]=Math.random().toFixed(16).substring(2);t["tealium_library_name"]="ut"+"ag.js";t["tealium_library_version"]=(utag.cfg.template+"0").substring(2);t["tealium_timestamp_epoch"]=Math.floor(d.getTime()/1000);t["tealium_timestamp_utc"]=(m?d.toISOString():"");d.setHours(d.getHours()-(d.getTimezoneOffset()/60));t["tealium_timestamp_local"]=(m?d.toISOString().replace("Z",""):"");utag.ut.merge(o,t,0);},RDses:function(o,a,c){a=(new Date()).getTime();c=(a+parseInt(utag.cfg.session_timeout))+"";if(!o["cp.utag_main_ses_id"]){o["cp.utag_main_ses_id"]=a+"";o["cp.utag_main__ss"]="1";o["cp.utag_main__se"]="1";o["cp.utag_main__sn"]=(1+parseInt(o["cp.utag_main__sn"]||0))+"";}else{o["cp.utag_main__ss"]="0";o["cp.utag_main__se"]=(1+parseInt(o["cp.utag_main__se"]||0))+"";} o["cp.utag_main__pn"]=o["cp.utag_main__pn"]||"1";o["cp.utag_main__st"]=c;utag.loader.SC("utag_main",{"_sn":(o["cp.utag_main__sn"]||1),"_se":o["cp.utag_main__se"],"_ss":o["cp.utag_main__ss"],"_st":c,"ses_id":(o["cp.utag_main_ses_id"]||a)+";exp-session","_pn":o["cp.utag_main__pn"]+";exp-session"});},RDpv:function(o){if(typeof utag.pagevars=="function"){utag.DB("Read page variables");utag.pagevars(o);}},RD:function(o,a){utag.DB("utag.loader.RD");utag.DB(o);utag.loader.RDcp(o);if(!utag.loader.rd_flag){utag.loader.rd_flag=1;o["cp.utag_main_v_id"]=o["cp.utag_main_v_id"]||utag.ut.vi((new Date()).getTime());o["cp.utag_main__pn"]=(1+parseInt(o["cp.utag_main__pn"]||0))+"";utag.loader.SC("utag_main",{"v_id":o["cp.utag_main_v_id"]});utag.loader.RDses(o);} if(a&&!utag.cfg.noview)utag.loader.RDses(o);utag.loader.RDqp(o);utag.loader.RDmeta(o);utag.loader.RDdom(o);utag.loader.RDut(o,a||"view");utag.loader.RDpv(o);utag.loader.RDva(o);},RC:function(a,x,b,c,d,e,f,g,h,i,j,k,l,m,n,o,v,ck,cv,r,s,t){o={};b=(""+document.cookie!="")?(document.cookie).split("; "):[];r=/^(.*?)=(.*)$/;s=/^(.*);exp-(.*)$/;t=(new Date()).getTime();for(c=0;c<b.length;c++){if(b[c].match(r)){ck=RegExp.$1;cv=RegExp.$2;} e=utag.ut.decode(cv);if(typeof ck!="undefined"){if(ck.indexOf("ulog")==0||ck.indexOf("utag_")==0){e=cv.split("$");g=[];j={};for(f=0;f<e.length;f++){try{g=e[f].split(":");if(g.length>2){g[1]=g.slice(1).join(":");} v="";if((""+g[1]).indexOf("~")==0){h=g[1].substring(1).split("|");for(i=0;i<h.length;i++)h[i]=utag.ut.decode(h[i]);v=h}else v=utag.ut.decode(g[1]);j[g[0]]=v;}catch(er){utag.DB(er)};} o[ck]={};for(f in utag.loader.GV(j)){if(j[f]instanceof Array){n=[];for(m=0;m<j[f].length;m++){if(j[f][m].match(s)){k=(RegExp.$2=="session")?(typeof j._st!="undefined"?j._st:t-1):parseInt(RegExp.$2);if(k>t)n[m]=(x==0)?j[f][m]:RegExp.$1;}} j[f]=n.join("|");}else{j[f]=""+j[f];if(j[f].match(s)){k=(RegExp.$2=="session")?(typeof j._st!="undefined"?j._st:t-1):parseInt(RegExp.$2);j[f]=(k<t)?null:(x==0?j[f]:RegExp.$1);}} if(j[f])o[ck][f]=j[f];}}else if(utag.cl[ck]||utag.cl['_all_']){o[ck]=e}}} return(a)?(o[a]?o[a]:{}):o;},SC:function(a,b,c,d,e,f,g,h,i,j,k,x,v){if(!a)return 0;if(a=="utag_main"&&utag.cfg.nocookie)return 0;v="";var date=new Date();var exp=new Date();exp.setTime(date.getTime()+(365*24*60*60*1000));x=exp.toGMTString();if(c&&c=="da"){x="Thu, 31 Dec 2009 00:00:00 GMT";}else if(a.indexOf("utag_")!=0&&a.indexOf("ulog")!=0){if(typeof b!="object"){v=b}}else{d=utag.loader.RC(a,0);for(e in utag.loader.GV(b)){f=""+b[e];if(f.match(/^(.*);exp-(\d+)(\w)$/)){g=date.getTime()+parseInt(RegExp.$2)*((RegExp.$3=="h")?3600000:86400000);if(RegExp.$3=="u")g=parseInt(RegExp.$2);f=RegExp.$1+";exp-"+g;} if(c=="i"){if(d[e]==null)d[e]=f;}else if(c=="d")delete d[e];else if(c=="a")d[e]=(d[e]!=null)?(f-0)+(d[e]-0):f;else if(c=="ap"||c=="au"){if(d[e]==null)d[e]=f;else{if(d[e].indexOf("|")>0){d[e]=d[e].split("|")} g=(d[e]instanceof Array)?d[e]:[d[e]];g.push(f);if(c=="au"){h={};k={};for(i=0;i<g.length;i++){if(g[i].match(/^(.*);exp-(.*)$/)){j=RegExp.$1;} if(typeof k[j]=="undefined"){k[j]=1;h[g[i]]=1;}} g=[];for(i in utag.loader.GV(h)){g.push(i);}} d[e]=g}}else d[e]=f;} h=new Array();for(g in utag.loader.GV(d)){if(d[g]instanceof Array){for(c=0;c<d[g].length;c++){d[g][c]=encodeURIComponent(d[g][c])} h.push(g+":~"+d[g].join("|"))}else h.push((g+":").replace(/[\,\$\;\?]/g,"")+encodeURIComponent(d[g]))} if(h.length==0){h.push("");x=""} v=(h.join("$"));} document.cookie=a+"="+v+";path=/;domain="+utag.cfg.domain+";expires="+x;return 1},LOAD:function(a,b,c,d){if(!utag.loader.cfg){return} if(this.ol==0){if(utag.loader.cfg[a].block&&utag.loader.cfg[a].cbf){this.f[a]=1;delete utag.loader.bq[a];} for(b in utag.loader.GV(utag.loader.bq)){if(utag.loader.cfg[a].load==4&&utag.loader.cfg[a].wait==0){utag.loader.bk[a]=1;utag.DB("blocked: "+a);} utag.DB("blocking: "+b);return;} utag.loader.INIT();return;} utag.DB('utag.loader.LOAD:'+a);if(this.f[a]==0){this.f[a]=1;if(utag.cfg.noview!=true){if(utag.loader.cfg[a].send){utag.DB("SENDING: "+a);try{if(utag.loader.sendq.pending>0&&utag.loader.sendq[a]){utag.DB("utag.loader.LOAD:sendq: "+a);while(d=utag.loader.sendq[a].shift()){utag.DB(d);utag.sender[a].send(d.event,utag.handler.C(d.data));utag.loader.sendq.pending--;}}else{utag.sender[a].send('view',utag.handler.C(utag.data));} utag.rpt['s_'+a]=0;}catch(e){utag.DB(e);utag.rpt['s_'+a]=1;}}} if(utag.loader.rf==0)return;for(b in utag.loader.GV(this.f)){if(this.f[b]==0||this.f[b]==2)return} utag.loader.END();}},EV:function(a,b,c,d){if(b=="ready"){if(!utag.data){try{utag.cl={'_all_':1};utag.loader.initdata();utag.loader.RD(utag.data);}catch(e){utag.DB(e)};} if((document.attachEvent||utag.cfg.dom_complete)?document.readyState==="complete":document.readyState!=="loading")setTimeout(c,1);else{utag.loader.ready_q.push(c);var RH;if(utag.loader.ready_q.length<=1){if(document.addEventListener){RH=function(){document.removeEventListener("DOMContentLoaded",RH,false);utag.loader.run_ready_q()};if(!utag.cfg.dom_complete)document.addEventListener("DOMContentLoaded",RH,false);window.addEventListener("load",utag.loader.run_ready_q,false);}else if(document.attachEvent){RH=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",RH);utag.loader.run_ready_q()}};document.attachEvent("onreadystatechange",RH);window.attachEvent("onload",utag.loader.run_ready_q);}}}}else{if(a.addEventListener){a.addEventListener(b,c,false)}else if(a.attachEvent){a.attachEvent(((d==1)?"":"on")+b,c)}}},END:function(b,c,d,e,v,w){if(this.ended){return};this.ended=1;utag.DB("loader.END");b=utag.data;if(utag.handler.base&&utag.handler.base!='*'){e=utag.handler.base.split(",");for(d=0;d<e.length;d++){if(typeof b[e[d]]!="undefined")utag.handler.df[e[d]]=b[e[d]]}}else if(utag.handler.base=='*'){utag.ut.merge(utag.handler.df,b,1);} utag.rpt['r_0']="t";for(var r in utag.loader.GV(utag.cond)){utag.rpt['r_'+r]=(utag.cond[r])?"t":"f";} utag.rpt.ts['s']=new Date();v=utag.cfg.path;w=v.indexOf(".tiqcdn.");if(w>0&&b["cp.utag_main__ss"]==1&&!utag.cfg.no_session_count)utag.ut.loader({src:v.substring(0,v.indexOf("/ut"+"ag/")+6)+"tiqapp/ut"+"ag.v.js?a="+utag.cfg.utid+(utag.cfg.nocookie?"&nocookie=1":"&cb="+(new Date).getTime()),id:"tiqapp"}) if(utag.cfg.noview!=true)utag.handler.RE('view',b,"end");utag.handler.INIT();}},DB:function(a,b){if(utag.cfg.utagdb===false){return;}else if(typeof utag.cfg.utagdb=="undefined"){b=document.cookie+'';utag.cfg.utagdb=((b.indexOf('utagdb=true')>=0)?true:false);} if(utag.cfg.utagdb===true){var t;if(utag.ut.typeOf(a)=="object"){t=utag.handler.C(a)}else{t=a} utag.db_log.push(t);try{if(!utag.cfg.noconsole)console.log(t)}catch(e){}}},RP:function(a,b,c){if(typeof a!='undefined'&&typeof a.src!='undefined'&&a.src!=''){b=[];for(c in utag.loader.GV(a)){if(c!='src')b.push(c+'='+escape(a[c]))} this.dbi.push((new Image()).src=a.src+'?utv='+utag.cfg.v+'&utid='+utag.cfg.utid+'&'+(b.join('&')))}},view:function(a,c,d){return this.track({event:'view',data:a||{},cfg:{cb:c,uids:d}})},link:function(a,c,d){return this.track({event:'link',data:a||{},cfg:{cb:c,uids:d}})},track:function(a,b,c,d,e){a=a||{};if(typeof a=="string"){a={event:a,data:b||{},cfg:{cb:c,uids:d}}} for(e in utag.loader.GV(utag.o)){utag.o[e].handler.trigger(a.event||"view",a.data||a,a.cfg||{cb:b,uids:c})} a.cfg=a.cfg||{cb:b};if(typeof a.cfg.cb=="function")a.cfg.cb();return true},handler:{base:"",df:{},o:{},send:{},iflag:0,INIT:function(a,b,c){utag.DB('utag.handler.INIT');if(utag.initcatch){utag.initcatch=0;return} this.iflag=1;a=utag.loader.q.length;if(a>0){utag.DB("Loader queue");for(b=0;b<a;b++){c=utag.loader.q[b];utag.handler.trigger(c.a,c.b,c.c)}} },test:function(){return 1},LR:function(b){utag.DB("Load Rules");for(var d in utag.loader.GV(utag.cond)){utag.cond[d]=false;} utag.DB(b);utag.loader.loadrules(b);utag.DB(utag.cond);utag.loader.initcfg();utag.loader.OU();for(var r in utag.loader.GV(utag.cond)){utag.rpt['r_'+r]=(utag.cond[r])?"t":"f";}},RE:function(a,b,c,d,e,f,g){if(c!="alr"&&!this.cfg_extend){return 0;} utag.DB("RE: "+c);if(c=="alr")utag.DB("All Tags EXTENSIONS");utag.DB(b);if(typeof this.extend!="undefined"){g=0;for(d=0;d<this.extend.length;d++){try{e=0;if(typeof this.cfg_extend!="undefined"){f=this.cfg_extend[d];if(typeof f.count=="undefined")f.count=0;if(f[a]==0||(f.once==1&&f.count>0)||f[c]==0){e=1}else{if(f[c]==1){g=1};f.count++}} if(e!=1){this.extend[d](a,b);utag.rpt['ex_'+d]=0}}catch(er){utag.DB(er);utag.rpt['ex_'+d]=1;utag.ut.error({e:er.message,s:utag.cfg.path+'utag.js',l:d,t:'ge'});}} utag.DB(b);return g;}},trigger:function(a,b,c,d,e,f){utag.DB('trigger:'+a+(c&&c.uids?":"+c.uids.join(","):""));b=b||{};utag.DB(b);if(!this.iflag){utag.DB("trigger:called before tags loaded");for(d in utag.loader.f){if(!(utag.loader.f[d]===1))utag.DB('Tag '+d+' did not LOAD')} utag.loader.q.push({a:a,b:utag.handler.C(b),c:c});return;} utag.ut.merge(b,this.df,0);utag.loader.RD(b,a);utag.cfg.noview=false;function sendTag(a,b,d){try{if(typeof utag.sender[d]!="undefined"){utag.DB("SENDING: "+d);utag.sender[d].send(a,utag.handler.C(b));utag.rpt['s_'+d]=0;}else if(utag.loader.cfg[d].load!=2){utag.loader.sendq[d]=utag.loader.sendq[d]||[];utag.loader.sendq[d].push({"event":a,"data":utag.handler.C(b)});utag.loader.sendq.pending++;utag.loader.AS({id:d,load:1});}}catch(e){utag.DB(e)}} if(c&&c.uids){this.RE(a,b,"alr");for(f=0;f<c.uids.length;f++){d=c.uids[f];if(!utag.loader.OU(utag.loader.cfg[d].tid)){sendTag(a,b,d);}}}else if(utag.cfg.load_rules_ajax){this.RE(a,b,"blr");this.LR(b);this.RE(a,b,"alr");for(f=0;f<utag.loader.cfgsort.length;f++){d=utag.loader.cfgsort[f];if(utag.loader.cfg[d].load&&utag.loader.cfg[d].send){sendTag(a,b,d);}}}else{this.RE(a,b,"alr");for(d in utag.loader.GV(utag.sender)){sendTag(a,b,d);}} this.RE(a,b,"end");},C:function(a,b,c){b={};for(c in utag.loader.GV(a)){if(a[c]instanceof Array){b[c]=a[c].slice(0)}else{b[c]=a[c]}} return b}},ut:{pad:function(a,b,c,d){a=""+((a-0).toString(16));d='';if(b>a.length){for(c=0;c<(b-a.length);c++){d+='0'}}return""+d+a},vi:function(t,a,b){if(!utag.v_id){a=this.pad(t,12);b=""+Math.random();a+=this.pad(b.substring(2,b.length),16);try{a+=this.pad((navigator.plugins.length?navigator.plugins.length:0),2);a+=this.pad(navigator.userAgent.length,3);a+=this.pad(document.URL.length,4);a+=this.pad(navigator.appVersion.length,3);a+=this.pad(screen.width+screen.height+parseInt((screen.colorDepth)?screen.colorDepth:screen.pixelDepth),5)}catch(e){utag.DB(e);a+="12345"};utag.v_id=a;} return utag.v_id},hasOwn:function(o,a){return o!=null&&Object.prototype.hasOwnProperty.call(o,a)},isEmptyObject:function(o,a){for(a in o){if(utag.ut.hasOwn(o,a))return false} return true},isEmpty:function(o){var t=utag.ut.typeOf(o);if(t=="number"){return isNaN(o)}else if(t=="boolean"){return false}else if(t=="string"){return o.length===0}else return utag.ut.isEmptyObject(o)},typeOf:function(e){return({}).toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase();},flatten:function(o){var a={};function r(c,p){if(Object(c)!==c||c instanceof Array){a[p]=c;}else{if(utag.ut.isEmptyObject(c)){}else{for(var d in c){r(c[d],p?p+"."+d:d);}}}} r(o,"");return a;},merge:function(a,b,c,d){if(c){for(d in utag.loader.GV(b)){a[d]=b[d]}}else{for(d in utag.loader.GV(b)){if(typeof a[d]=="undefined")a[d]=b[d]}}},decode:function(a,b){b="";try{b=decodeURIComponent(a)}catch(e){utag.DB(e)};if(b==""){b=unescape(a)};return b},encode:function(a,b){b="";try{b=encodeURIComponent(a)}catch(e){utag.DB(e)};if(b==""){b=escape(a)};return b},error:function(a,b,c){if(typeof utag_err!="undefined"){utag_err.push(a)}},loader:function(o,a,b,c,l,m){utag.DB(o);a=document;if(o.type=="iframe"){m=a.getElementById(o.id);if(m&&m.tagName=="IFRAME"){m.parentNode.removeChild(m);} b=a.createElement("iframe");o.attrs=o.attrs||{};utag.ut.merge(o.attrs,{"height":"1","width":"1","style":"display:none"},0);}else if(o.type=="img"){utag.DB("Attach img: "+o.src);b=new Image();}else{b=a.createElement("script");b.language="javascript";b.type="text/javascript";b.async=1;b.charset="utf-8";} if(o.id){b.id=o.id};for(l in utag.loader.GV(o.attrs)){b.setAttribute(l,o.attrs[l])} b.setAttribute("src",o.src);if(typeof o.cb=="function"){if(b.addEventListener){b.addEventListener("load",function(){o.cb()},false);}else{b.onreadystatechange=function(){if(this.readyState=='complete'||this.readyState=='loaded'){this.onreadystatechange=null;o.cb()}};}} if(typeof o.error=="function"){utag.loader.EV(b,"error",o.error);} if(o.type!="img"){l=o.loc||"head";c=a.getElementsByTagName(l)[0];if(c){utag.DB("Attach to "+l+": "+o.src);if(l=="script"){c.parentNode.insertBefore(b,c);}else{c.appendChild(b)}}}}}};utag.o['rcsmedia.tgla7']=utag;utag.cfg={template:"ut4.46.",load_rules_ajax:true,load_rules_at_wait:false,lowerqp:false,noconsole:false,session_timeout:1800000,readywait:0,noload:0,domain:utag.loader.lh(),datasource:"##UTDATASOURCE##".replace("##"+"UTDATASOURCE##",""),path:"//tags.tiqcdn.com/utag/rcsmedia/tgla7/prod/",utid:"rcsmedia/tgla7/202410021045"};utag.cfg.v=utag.cfg.template+"202410021045";utag.cond={29:0,39:0,40:0,4:0};utag.pagevars=function(ud){ud=ud||utag.data;try{ud['js_page.privacyok']=privacyok}catch(e){utag.DB(e)};try{ud['js_page.cpmt_trk']=cpmt_trk}catch(e){utag.DB(e)};try{ud['js_page.nome_speciale']=nome_speciale}catch(e){utag.DB(e)};try{ud['js_page.sezione']=sezione}catch(e){utag.DB(e)};try{ud['js_page.sottosezione']=sottosezione}catch(e){utag.DB(e)};try{ud['js_page.sottolivello1']=sottolivello1}catch(e){utag.DB(e)};try{ud['js_page.tipologia']=tipologia}catch(e){utag.DB(e)};try{ud['js_page.uuid_articolo']=uuid_articolo}catch(e){utag.DB(e)};try{ud['js_page.firma']=firma}catch(e){utag.DB(e)};try{ud['js_page.s.pageType']=s.pageType}catch(e){utag.DB(e)};try{ud['js_page.dl_timestamp']=dl_timestamp}catch(e){utag.DB(e)};try{ud['js_page.OxA']=OxA}catch(e){utag.DB(e)};try{ud['js_page.outbrain_track']=outbrain_track}catch(e){utag.DB(e)};try{ud['js_page.tipo_pagina']=tipo_pagina}catch(e){utag.DB(e)};};utag.loader.initdata=function(){try{utag.data=(typeof utag_data!='undefined')?utag_data:{};utag.udoname='utag_data';}catch(e){utag.data={};utag.DB('idf:'+e);}};utag.loader.loadrules=function(_pd,_pc){var d=_pd||utag.data;var c=_pc||utag.cond;for(var l in utag.loader.GV(c)){switch(l){case'29':try{c[29]|=(d['event_id'].toString().indexOf('noevent')<0)}catch(e){utag.DB(e)};break;case'39':try{c[39]|=(d['video_event'].toString().toLowerCase().indexOf('video_play'.toLowerCase())>-1)}catch(e){utag.DB(e)};break;case'4':try{c[4]|=(typeof d['event_name']=='undefined')}catch(e){utag.DB(e)};break;case'40':try{c[40]|=(d['site_name']!='APPTGLA7')}catch(e){utag.DB(e)};break;}}};utag.pre=function(){utag.loader.initdata();utag.pagevars();try{utag.loader.RD(utag.data)}catch(e){utag.DB(e)};utag.loader.loadrules();};utag.loader.GET=function(){utag.cl={'_all_':1};utag.pre();utag.handler.extend=[function(a,b){try{if(typeof b['video_event']!='undefined'){b['event_name']=b['video_event']}}catch(e){utag.DB(e);}},function(a,b){try{if(1){var variable_normalizer=['js_page.sezione'];var variable_normal_name=['page_section_normal'] for(var x=0;x<variable_normalizer.length;x++){if(typeof b[variable_normalizer[x]]!="undefined"){b[variable_normal_name[x]]=b[variable_normalizer[x]].toLowerCase();b[variable_normal_name[x]]=b[variable_normal_name[x]].replace(/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g,"a");b[variable_normal_name[x]]=b[variable_normal_name[x]].replace(/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g,"o");b[variable_normal_name[x]]=b[variable_normal_name[x]].replace(/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g,"e");b[variable_normal_name[x]]=b[variable_normal_name[x]].replace(/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g,"i");b[variable_normal_name[x]]=b[variable_normal_name[x]].replace(/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g,"u");}}}}catch(e){utag.DB(e)}},function(a,b){try{if(1){if(typeof b['cp.s_fid']!="undefined"&&typeof b['cp.s_fid_old']=="undefined"){b.analytics_id_persist=b['cp.s_fid'];} if(typeof b.analytics_id_persist!="undefined"&&b.analytics_id_persist!=""){b['cp.s_fid_grace']=b.analytics_id_persist;var host=window.location.host.split(".");host.shift();host=host.join(".") var year=new Date().getFullYear()+10;document.cookie="s_fid_grace="+b.analytics_id_persist+";domain=."+host+";path=/;expires=Thu, 31 Dec "+year+" 00:00:00 GMT";}}}catch(e){utag.DB(e)}},function(a,b){if(!!utag.data['qp.query']||utag_data.url_path_1=="ricerca"){utag_data.search_type="Cerca in TgLa7";utag_data.search_keyword=utag.data['qp.query'];utag_data.page_type="search";utag_data.page_section_lv1="ricerca";utag.data['js_page.sezione']="ricerca";}},function(a,b){try{if(1){try{b['tealium_environment']=utag.cfg.path.split('/')[7];}catch(e){}}}catch(e){utag.DB(e);}},function(a,b,c,d,e,f,g){if(1){d=b['tealium_environment'];if(typeof d=='undefined')return;c=[{'dev':'sw3zim6o6'},{'qa':'sw3zim6o6'},{'prod':'sw3zi1yiz'}];var m=false;for(e=0;e<c.length;e++){for(f in utag.loader.GV(c[e])){if(d==f){b['krux_conf_id']=c[e][f];m=true};};if(m)break};if(!m)b['krux_conf_id']='sw3zim6o6';}},function(a,b){if(jQuery("#sliding-popup").css("display")=="block"){utag_data.privacy_banner_status="Existing";}else{utag_data.privacy_banner_status="Not Existing Cookie";} utag_data.privacy_ok=(document.cookie.indexOf("cookie-agreed")>-1||document.cookie.indexOf("cookieconsent_dismissed")>-1) if(!!utag.data['qp.query']||utag_data.url_path_1=="ricerca"){utag_data.search_type="Cerca in TgLa7";utag_data.search_keyword=utag.data['qp.query'];utag_data.page_type="search";utag_data.page_section_lv1="ricerca";utag.data['js_page.sezione']="ricerca";} var pathDmp=document.location.pathname.split("/"),pathDmp=pathDmp.slice(1);if(pathDmp[0]==""){window.tgLa7_pagetypeDmp="homepage";}else if(pathDmp[0]=="rivedila7"&&tipo_pagina!="pag_con_video"){window.tgLa7_pagetypeDmp="listing";}else{window.tgLa7_pagetypeDmp=(tipo_pagina=="pag_con_video"||document.getElementsByClassName("la7-video-container").length>0)?"video":((isPhoto)?"photogallery":'listing');} window.dmp_datalayer=window.dmp_datalayer||{};window.dmp_datalayer.article_id=null;window.dmp_datalayer.pagesection_lv2=null;window.dmp_datalayer.page_type=window.tgLa7_pagetypeDmp;window.dmp_datalayer.device_type=window.md.tablet()?"tablet":((window.md.phone())?"phone":"desktop");if(pathDmp.length>=2){window.dmp_datalayer.pagesection_lv1=pathDmp[0];window.dmp_datalayer.pagesection_lv2=pathDmp[1];}else if(pathDmp.length===1){window.dmp_datalayer.pagesection_lv1=pathDmp[0];}else{window.dmp_datalayer.pagesection_lv1="home";} if(document.getElementsByClassName("page-node").length>0){document.getElementsByClassName("page-node")[0].classList.forEach(function(e){if(/\d$/.test(e)){window.dmp_datalayer.article_id=e.replace("page-node-","");}});} if(document.getElementsByClassName("dateVideo").length>0){window.dmp_datalayer.meta_article_date=document.getElementsByClassName("dateVideo")[0].innerHTML;} if(!!dmp_datalayer.pagesection_lv1){utag_data.page_section_lv1=dmp_datalayer.pagesection_lv1;utag.data['js_page.sezione']=dmp_datalayer.pagesection_lv1;} if(!!dmp_datalayer.pagesection_lv2){utag_data.page_section_lv2=dmp_datalayer.pagesection_lv2;utag.data['js_page.sottosezione']=dmp_datalayer.pagesection_lv2;} if(!!dmp_datalayer.pagesection_lv3){utag_data.page_section_lv3=dmp_datalayer.pagesection_lv3;utag.data['js_page.sottolivello1']=dmp_datalayer.pagesection_lv3;} if(!!dmp_datalayer.article_author){utag_data.article_author=dmp_datalayer.article_author;utag.data['js_page.firma']=dmp_datalayer.article_author;} if(!!dmp_datalayer.page_type)utag_data.page_type=dmp_datalayer.page_type;if(!!dmp_datalayer.page_error)utag_data.page_error=dmp_datalayer.page_error;if(!!dmp_datalayer.device_type)utag_data.device_type=dmp_datalayer.device_type;if(!!dmp_datalayer.meta_keywords)utag_data.meta_keywords=dmp_datalayer.meta_keywords;if(!!dmp_datalayer.meta_tags)utag_data.meta_tags=dmp_datalayer.meta_tags;if(!!dmp_datalayer.article_id)utag_data.article_id=dmp_datalayer.article_id;if(!!dmp_datalayer.meta_article_date)utag_data.meta_article_date=dmp_datalayer.meta_article_date;},function(a,b){if(!!utag.data["js_page.tipologia"]&&!utag_data.page_type)utag_data.page_type=utag.data["js_page.tipologia"];var lookUp={"leaf-vod":"video","categoria":"home-sezione","gallery":"fotogallery","gara":"temporeale","post":"articolo","embed":"video","homepage":"home","page":"other","risultati":"risultati-gara","foto":"fotogallery","frontpage":"home","category":(utag.data["ut.profile"].indexOf("store.")===0)?"categorycollection":"home-sezione","hpblog":"home-sezione","sezione":"home-sezione","section-home":"home-sezione","subhome":"home-sezione","leaf-live":"video","offerlistview":"categorycollection","tag":"home-sezione","staticoadv":"other","serp":"search","product":"product details","section-generic":"home-sezione","accesso":"login","pagina":"other","series":"categorycollection","sitesearch":"search","search results":"search","home sezione":"home-sezione","notfound":"errore","ricerca":"search","mytrovolavoro":"pagina_personale","error":"errore","(none)":"undefined","homepage sotto-sezione":"home-sezione","static-pages":"undefined","l1 merchant":"categorycollection","abbonamenti_ricariche":"other","libri":"other","offerdetailsview":"product details","section-playlist":"home-sezione","cart":"carrello","my account":"pagina_personale","homepage sezione":"home-sezione","collection":"product details","videowall":"video","article":"articolo","blog_tomato":"blog","ultimaora":"temporeale","registration":"registrazione","service":"other","movie":"product details","deeplink":"other","profilo":"pagina_personale"};try{var lowcase_type=utag_data.page_type.toLowerCase();if(!!lookUp[lowcase_type]){utag.DB("Rimappo page_type - da:"+utag_data.page_type+" a: "+lookUp[lowcase_type]);utag_data.page_type=lookUp[lowcase_type];} if(utag_data.page_section_lv1!="home"&&utag.data['js_page.sezione']!="home"&&lowcase_type==="home")utag_data.page_type="home-sezione";}catch(e){}},function(a,b){if(typeof utag_data.site_namespace!='undefined'&&typeof utag_data.page_section_lv1!='undefined'){if(typeof utag_data.page_section_lv2!='undefined'){if(typeof utag_data.nome_speciale!='undefined'){utag_data.page_section_chain=utag_data.site_namespace+'/'+utag_data.page_section_lv1+'/'+utag_data.page_section_lv2+'/'+utag_data.nome_speciale;} else if(typeof utag_data.page_section_lv3!='undefined'){utag_data.page_section_chain=utag_data.site_namespace+'/'+utag_data.page_section_lv1+'/'+utag_data.page_section_lv2+'/'+utag_data.page_section_lv3;} else{utag_data.page_section_chain=utag_data.site_namespace+'/'+utag_data.page_section_lv1+'/'+utag_data.page_section_lv2;}} else{utag_data.page_section_chain=utag_data.site_namespace+'/'+utag_data.page_section_lv1;}}},function(a,b,c,d,e,f,g){if(1){d=b['tealium_environment'];if(typeof d=='undefined')return;c=[{'prod':'rcsla7prod'}];var m=false;for(e=0;e<c.length;e++){for(f in utag.loader.GV(c[e])){if(d==f){b['adobe_reportsuite']=c[e][f];m=true};};if(m)break};if(!m)b['adobe_reportsuite']='rcsla7dev';}}];utag.handler.cfg_extend=[{"id":"92","end":0,"bwq":0,"blr":1,"alr":0},{"bwq":0,"end":0,"id":"126","alr":0,"blr":1},{"id":"144","end":0,"bwq":0,"blr":1,"alr":0},{"end":0,"bwq":0,"id":"5","blr":0,"alr":1},{"blr":0,"alr":1,"end":0,"bwq":0,"id":"6"},{"blr":0,"alr":1,"end":0,"bwq":0,"id":"10"},{"alr":1,"blr":0,"bwq":0,"end":0,"id":"21"},{"id":"106","bwq":0,"end":0,"alr":1,"blr":0},{"blr":0,"alr":1,"id":"27","end":0,"bwq":0},{"end":0,"bwq":0,"id":"134","blr":0,"alr":1}];utag.loader.initcfg=function(){utag.loader.cfg={"43":{load:1,send:1,v:202407021532,wait:0,tid:20010},"36":{load:1,send:1,v:202409031358,wait:0,tid:19063},"45":{load:4,send:1,v:202310020955,wait:0,tid:1191},"42":{load:utag.cond[39],send:1,v:202310030759,wait:1,tid:19063},"4":{load:utag.cond[4],send:1,v:202104200823,wait:1,tid:11006},"28":{load:utag.cond[29],send:1,v:202104200823,wait:1,tid:20010},"44":{load:utag.cond[40],send:1,v:202311301421,wait:1,tid:14031}};utag.loader.cfgsort=["43","36","45","42","4","28","44"];} utag.loader.initcfg();} if(typeof utag_cfg_ovrd!='undefined'){for(utag._i in utag.loader.GV(utag_cfg_ovrd))utag.cfg[utag._i]=utag_cfg_ovrd[utag._i]};utag.loader.PINIT=function(a,b,c){utag.DB("Pre-INIT");if(utag.cfg.noload){return;} try{this.GET();if(utag.handler.RE('view',utag.data,"blr")){utag.handler.LR(utag.data);}}catch(e){utag.DB(e)};a=this.cfg;c=0;for(b in this.GV(a)){if(a[b].block==1||(a[b].load>0&&(typeof a[b].src!='undefined'&&a[b].src!=''))){a[b].block=1;c=1;this.bq[b]=1;}} if(c==1){for(b in this.GV(a)){if(a[b].block){a[b].id=b;if(a[b].load==4)a[b].load=1;a[b].cb=function(){var d=this.uid;utag.loader.cfg[d].cbf=1;utag.loader.LOAD(d)};this.AS(a[b]);}}} if(c==0)this.INIT();};utag.loader.INIT=function(a,b,c,d,e){utag.DB('utag.loader.INIT');if(this.ol==1)return-1;else this.ol=1;if(utag.cfg.noview!=true)utag.handler.RE('view',utag.data,"alr");utag.rpt.ts['i']=new Date();d=this.cfgsort;for(a=0;a<d.length;a++){e=d[a];b=this.cfg[e];b.id=e;if(b.block!=1){if(utag.loader.bk[b.id]||((utag.cfg.readywait||utag.cfg.noview)&&b.load==4)){this.f[b.id]=0;utag.loader.LOAD(b.id)}else if(b.wait==1&&utag.loader.rf==0){utag.DB('utag.loader.INIT: waiting '+b.id);this.wq.push(b) this.f[b.id]=2;}else if(b.load>0){utag.DB('utag.loader.INIT: loading '+b.id);this.lq.push(b);this.AS(b);}}} if(this.wq.length>0)utag.loader.EV('','ready',function(a){if(utag.loader.rf==0){utag.DB('READY:utag.loader.wq');utag.loader.rf=1;utag.loader.WQ();}});else if(this.lq.length>0)utag.loader.rf=1;else if(this.lq.length==0)utag.loader.END();return 1};utag.loader.EV('','ready',function(a){if(utag.loader.efr!=1){utag.loader.efr=1;try{window._trk={};window._trk.resetVars=function(){s.eVar45="";s.eVar46="";s.eVar47="";s.eVar48="";s.eVar49="";s.prop50="";};window.TrackPage=(window.location.pathname).substr((window.location.pathname).lastIndexOf("/")+1);window.readCookie=function(CookieName){if(document.cookie.length>0){var inizio=document.cookie.indexOf(CookieName+"=");if(inizio!=-1){inizio=inizio+CookieName.length+1;var fine=document.cookie.indexOf(";",inizio);if(fine==-1) fine=document.cookie.length;return unescape(document.cookie.substring(inizio,fine));}else{return"";}} return"";} window.writeCookie=function(CookieName,val,exp){var scadenza=new Date();var adesso=new Date();scadenza.setTime(adesso.getTime()+(parseInt(exp)*60000));document.cookie=CookieName+'='+escape(val)+'; expires='+exp+'; path=/';} window.ClearURL=function(){s.prop71="";trackURL=document.location.href;trackURL=trackURL.replace("&refresh_cens","");trackURL=trackURL.replace("&refresh_ce","");trackURL=trackURL.replace("&refresh_ce-awe","");trackURL=trackURL.replace("&refresh_ce-cp","");return trackURL;} window.AjaxPageTrack=function(pagename){_trk.resetVars();s.linkTrackVars="";s.linkTrackEvents="";s.pageName=pagename;s.referrer=s.pageURL;track_URL=decodeURI(document.location.href+"&refresh_ce-awe");s.pageURL=track_URL;s.prop71="refresh_ce-awe";s.usePlugins=false;s.tl('oggi.it','o','AjaxPageTrack');s.usePlugins=true;};window.checkNielsenImg=function(){if(!jQuery("#nielsen_chk_img").length){jQuery("body").append("<img id='nielsen_chk_img' src='' width='1' height='1' alt='' style='display:none' />");}} window.TrackNielsen=function(refesh_type){checkNielsenImg();rnd_number=Math.floor((Math.random())*10000000000000);url=encodeURIComponent(document.URL);jQuery("#nielsen_chk_img").attr("src","http://secure-it.imrworldwide.com/cgi-bin/m?rnd="+rnd_number+"&ci=rcs-it&cg=0&si="+url+"%26"+refesh_type);} window._trk.sale_scende=function(a){_trk.resetVars();s.referrer=s.pageURL;s.linkTrackVars='eVar5,events';s.linkTrackEvents='event6';s.events="event6";s.eVar5=a+" chi sale chi scende";s.tl(window,'o',a);s.events="";s.eVar5="";};}catch(e){utag.DB(e)};try{var MDM_ID_KEY='mdm_prof';if(typeof getUrlVars_Tealium()[MDM_ID_KEY]!=='undefined'&&getUrlVars_Tealium()[MDM_ID_KEY]!==''){var img=new Image();img.src="http://beacon.krxd.net/usermatch.gif?partner=rcs_new&partner_uid="+getUrlVars_Tealium()[MDM_ID_KEY];} }catch(e){utag.DB(e)};}}) if(utag.cfg.readywait||utag.cfg.waittimer){utag.loader.EV('','ready',function(a){if(utag.loader.rf==0){utag.loader.rf=1;utag.cfg.readywait=1;utag.DB('READY:utag.cfg.readywait');setTimeout(function(){utag.loader.PINIT()},utag.cfg.waittimer||1);}})}else{utag.loader.PINIT()}} //tealium universal tag - utag.45 ut4.0.202410021045, Copyright 2024 Tealium.com Inc. All Rights Reserved. var loadLibrary=function(){var e=function(){"use strict";function e(t){"@babel/helpers - typeof";return(e="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)}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(){return{callbacks:{},add:function(e,t){this.callbacks[e]=this.callbacks[e]||[];var n=this.callbacks[e].push(t)-1,i=this;return function(){i.callbacks[e].splice(n,1)}},execute:function(e,t){if(this.callbacks[e]){t=void 0===t?[]:t,t=t instanceof Array?t:[t];try{for(;this.callbacks[e].length;){var n=this.callbacks[e].shift();"function"==typeof n?n.apply(null,t):n instanceof Array&&n[1].apply(n[0],t)}delete this.callbacks[e]}catch(e){}}},executeAll:function(e,t){(t||e&&!U.isObjectEmpty(e))&&Object.keys(this.callbacks).forEach(function(t){var n=void 0!==e[t]?e[t]:"";this.execute(t,n)},this)},hasCallbacks:function(){return Boolean(Object.keys(this.callbacks).length)}}}function i(e,t,n){var i=null==e?void 0:e[t];return void 0===i?n:i}function r(e){for(var t=/^\d+$/,n=0,i=e.length;n<i;n++)if(!t.test(e[n]))return!1;return!0}function a(e,t){for(;e.length<t.length;)e.push("0");for(;t.length<e.length;)t.push("0")}function o(e,t){for(var n=0;n<e.length;n++){var i=parseInt(e[n],10),r=parseInt(t[n],10);if(i>r)return 1;if(r>i)return-1}return 0}function s(e,t){if(e===t)return 0;var n=e.toString().split("."),i=t.toString().split(".");return r(n.concat(i))?(a(n,i),o(n,i)):NaN}function c(e){return e===Object(e)&&0===Object.keys(e).length}function u(e){return"function"==typeof e||e instanceof Array&&e.length}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};this.log=Ie("log",e,t),this.warn=Ie("warn",e,t),this.error=Ie("error",e,t)}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cookieName,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.cookies;if(!t||!i)return{get:xe,set:xe,remove:xe};var r={remove:function(){i.remove(t)},get:function(){var e=i.get(t),n={};try{n=JSON.parse(e)}catch(e){n={}}return n},set:function(e,n){n=n||{};var a=r.get(),o=Object.assign(a,e);i.set(t,JSON.stringify(o),{domain:n.optInCookieDomain||"",cookieLifetime:n.optInStorageExpiry||3419e4,secure:n.secure,sameSite:n.sameSite,expires:!0})}};return r}function f(e){this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}function p(){function e(e,t){var n=Ae(e);return n.length?n.every(function(e){return!!t[e]}):Oe(t)}function t(){E(M),k(de.COMPLETE),S(C.status,C.permissions),s&&_.set(C.permissions,{optInCookieDomain:c,optInStorageExpiry:u,secure:f,sameSite:p}),I.execute(He)}function n(e){return function(n,i){if(!Me(n))throw new Error("[OptIn] Invalid category(-ies). Please use the `OptIn.Categories` enum.");return k(de.CHANGED),Object.assign(M,ke(Ae(n),e)),i||t(),C}}var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.doesOptInApply,a=i.previousPermissions,o=i.preOptInApprovals,s=i.isOptInStorageEnabled,c=i.optInCookieDomain,u=i.optInStorageExpiry,l=i.isIabContext,f=i.secureCookie,p=i.sameSiteCookie,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=g.cookies,h=Ne(a);Fe(h,"Invalid `previousPermissions`!"),Fe(o,"Invalid `preOptInApprovals`!");var _=d({cookieName:"adobeujs-optin"},{cookies:m}),C=this,S=le(C),I=_e(),v=Le(h),D=Le(o),y=s?_.get():{},b={},A=function(e,t){return Pe(e)||t&&Pe(t)?de.COMPLETE:de.PENDING}(v,y),O=function(e,t,n){var i=ke(he,!r);return r?Object.assign({},i,e,t,n):i}(D,v,y),M=Ee(O),k=function(e){return A=e},E=function(e){return O=e};C.deny=n(!1),C.approve=n(!0),C.denyAll=C.deny.bind(C,he),C.approveAll=C.approve.bind(C,he),C.isApproved=function(t){return e(t,C.permissions)},C.isPreApproved=function(t){return e(t,D)},C.fetchPermissions=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?C.on(de.COMPLETE,e):xe;return!r||r&&C.isComplete||!!o?e(C.permissions):t||I.add(He,function(){return e(C.permissions)}),n},C.complete=function(){C.status===de.CHANGED&&t()},C.registerPlugin=function(e){if(!e||!e.name||"function"!=typeof e.onRegister)throw new Error(Be);b[e.name]||(b[e.name]=e,e.onRegister.call(e,C))},C.execute=Ue(b),C.memoizeContent=function(e){we(e)&&_.set(e,{optInCookieDomain:c,optInStorageExpiry:u,secure:f,sameSite:p})},C.getMemoizedContent=function(e){var t=_.get();if(t)return t[e]},Object.defineProperties(C,{permissions:{get:function(){return O}},status:{get:function(){return A}},Categories:{get:function(){return fe}},doesOptInApply:{get:function(){return!!r}},isPending:{get:function(){return C.status===de.PENDING}},isComplete:{get:function(){return C.status===de.COMPLETE}},__plugins:{get:function(){return Object.keys(b)}},isIabContext:{get:function(){return l}}})}function g(e,t){function n(){r=null,e.call(e,new f("The call took longer than you wanted!"))}function i(){r&&(clearTimeout(r),e.apply(e,arguments))}if(void 0===t)return e;var r=setTimeout(n,t);return i}function m(){if(window.__tcfapi)return window.__tcfapi;var e=window;if(e===window.top)return void ye.error("__tcfapi not found");for(var t;!t;){e=e.parent;try{e.frames.__tcfapiLocator&&(t=e)}catch(e){}if(e===window.top)break}if(!t)return void ye.error("__tcfapi not found");var n={};return window.__tcfapi=function(e,i,r,a){var o=Math.random()+"",s={__tcfapiCall:{command:e,parameter:a,version:i,callId:o}};n[o]=r,t.postMessage(s,"*")},window.addEventListener("message",function(e){var t=e.data;if("string"==typeof t)try{t=JSON.parse(e.data)}catch(e){}if(t.__tcfapiReturn){var i=t.__tcfapiReturn;"function"==typeof n[i.callId]&&(n[i.callId](i.returnValue,i.success),delete n[i.callId])}},!1),window.__tcfapi}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=!0===e.vendor.consents[t],r=n.every(function(t){return!0===e.purpose.consents[t]});return i&&r}function _(){var e=this;e.name="iabPlugin",e.version="0.0.2";var t,n=_e(),i={transparencyAndConsentData:null},r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i[e]=t};e.fetchConsentData=function(e){var t=e.callback,n=e.timeout,i=g(t,n);a({callback:i})},e.isApproved=function(e){var t=e.callback,n=e.category,r=e.timeout;if(i.transparencyAndConsentData)return t(null,h(i.transparencyAndConsentData,pe[n],ge[n]));var o=g(function(e,i){t(e,h(i,pe[n],ge[n]))},r);a({category:n,callback:o})},e.onRegister=function(n){t=n;var i=Object.keys(pe),r=function(e,t){!e&&t&&(i.forEach(function(e){var i=h(t,pe[e],ge[e]);n[i?"approve":"deny"](e,!0)}),n.complete())};e.fetchConsentData({callback:r})};var a=function(e){var a=e.callback;if(i.transparencyAndConsentData)return a(null,i.transparencyAndConsentData);n.add("FETCH_CONSENT_DATA",a),o(function(e,a){if(a){var o=Ee(e),s=t.getMemoizedContent("iabConsentHash"),c=De(o.tcString).toString(32);o.consentString=e.tcString,o.hasConsentChangedSinceLastCmpPull=s!==c,r("transparencyAndConsentData",o),t.memoizeContent({iabConsentHash:c})}n.execute("FETCH_CONSENT_DATA",[null,i.transparencyAndConsentData])})},o=function(e){var t=Ve(pe),n=m();"function"==typeof n&&n("getTCData",2,e,t)}}var C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};Object.assign=Object.assign||function(e){for(var t,n,i=1;i<arguments.length;++i){n=arguments[i];for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e};var S,I,v={HANDSHAKE:"HANDSHAKE",GETSTATE:"GETSTATE",PARENTSTATE:"PARENTSTATE"},D={MCMID:"MCMID",MCAID:"MCAID",MCAAMB:"MCAAMB",MCAAMLH:"MCAAMLH",MCOPTOUT:"MCOPTOUT",CUSTOMERIDS:"CUSTOMERIDS"},y={MCMID:"getMarketingCloudVisitorID",MCAID:"getAnalyticsVisitorID",MCAAMB:"getAudienceManagerBlob",MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"isOptedOut",ALLFIELDS:"getVisitorValues"},b={CUSTOMERIDS:"getCustomerIDs"},A={MCMID:"getMarketingCloudVisitorID",MCAAMB:"getAudienceManagerBlob",MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"isOptedOut",MCAID:"getAnalyticsVisitorID",CUSTOMERIDS:"getCustomerIDs",ALLFIELDS:"getVisitorValues"},O={MC:"MCMID",A:"MCAID",AAM:"MCAAMB"},M={MCMID:"MCMID",MCOPTOUT:"MCOPTOUT",MCAID:"MCAID",MCAAMLH:"MCAAMLH",MCAAMB:"MCAAMB"},k={UNKNOWN:0,AUTHENTICATED:1,LOGGED_OUT:2},E={GLOBAL:"global"},T={LAX:"Lax",STRICT:"Strict",NONE:"None"},L={MESSAGES:v,STATE_KEYS_MAP:D,ASYNC_API_MAP:y,SYNC_API_MAP:b,ALL_APIS:A,FIELDGROUP_TO_FIELD:O,FIELDS:M,AUTH_STATE:k,OPT_OUT:E,SAME_SITE_VALUES:T},P=L.STATE_KEYS_MAP,R=function(e){function t(){}function n(t,n){var i=this;return function(){var r=e(0,t),a={};return a[t]=r,i.setStateAndPublish(a),n(r),r}}this.getMarketingCloudVisitorID=function(e){e=e||t;var i=this.findField(P.MCMID,e),r=n.call(this,P.MCMID,e);return void 0!==i?i:r()},this.getVisitorValues=function(e){this.getMarketingCloudVisitorID(function(t){e({MCMID:t})})}},w=L.MESSAGES,x=L.ASYNC_API_MAP,N=L.SYNC_API_MAP,F=function(){function e(){}function t(e,t){var n=this;return function(){return n.callbackRegistry.add(e,t),n.messageParent(w.GETSTATE),""}}function n(n){this[x[n]]=function(i){i=i||e;var r=this.findField(n,i),a=t.call(this,n,i);return void 0!==r?r:a()}}function i(t){this[N[t]]=function(){return this.findField(t,e)||{}}}Object.keys(x).forEach(n,this),Object.keys(N).forEach(i,this)},j=L.ASYNC_API_MAP,V=function(){Object.keys(j).forEach(function(e){this[j[e]]=function(t){this.callbackRegistry.add(e,t)}},this)},U=function(e,t){return t={exports:{}},e(t,t.exports),t.exports}(function(t,n){n.isObjectEmpty=function(e){return e===Object(e)&&0===Object.keys(e).length},n.isValueEmpty=function(e){return""===e||n.isObjectEmpty(e)};var i=function(){var e=navigator.appName,t=navigator.userAgent;return"Microsoft Internet Explorer"===e||t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0&&t.indexOf("Windows NT 6")>=0};n.getIeVersion=function(){return document.documentMode?document.documentMode:i()?7:null},n.isFirefox=function(e){return!!/Firefox\/([0-9\.]+)(?:\s|$)/.test(e||window.navigator.userAgent)},n.encodeAndBuildRequest=function(e,t){return e.map(encodeURIComponent).join(t)},n.isObject=function(t){return null!==t&&"object"===e(t)&&!1===Array.isArray(t)},n.defineGlobalNamespace=function(){return window.adobe=n.isObject(window.adobe)?window.adobe:{},window.adobe},n.pluck=function(e,t){return t.reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},Object.create(null))},n.parseOptOut=function(e,t,n){t||(t=n,e.d_optout&&e.d_optout instanceof Array&&(t=e.d_optout.join(",")));var i=parseInt(e.d_ottl,10);return isNaN(i)&&(i=7200),{optOut:t,d_ottl:i}},n.normalizeBoolean=function(e){var t=e;return"true"===e?t=!0:"false"===e&&(t=!1),t}}),H=(U.isObjectEmpty,U.isValueEmpty,U.getIeVersion,U.isFirefox,U.encodeAndBuildRequest,U.isObject,U.defineGlobalNamespace,U.pluck,U.parseOptOut,U.normalizeBoolean,n),B=L.MESSAGES,G={0:"prefix",1:"orgID",2:"state"},Y=function(e,t){this.parse=function(e){try{var t={};return e.data.split("|").forEach(function(e,n){if(void 0!==e){t[G[n]]=2!==n?e:JSON.parse(e)}}),t}catch(e){}},this.isInvalid=function(n){var i=this.parse(n);if(!i||Object.keys(i).length<2)return!0;var r=e!==i.orgID,a=!t||n.origin!==t,o=-1===Object.keys(B).indexOf(i.prefix);return r||a||o},this.send=function(n,i,r){var a=i+"|"+e;r&&r===Object(r)&&(a+="|"+JSON.stringify(r));try{n.postMessage(a,t)}catch(e){}}},q=L.MESSAGES,W=function(e,t,n,i){function r(e){Object.assign(p,e)}function a(e){Object.assign(p.state,e),Object.assign(p.state.ALLFIELDS,e),p.callbackRegistry.executeAll(p.state)}function o(e){if(!h.isInvalid(e)){m=!1;var t=h.parse(e);p.setStateAndPublish(t.state)}}function s(e){!m&&g&&(m=!0,h.send(i,e))}function c(){r(new R(n._generateID)),p.getMarketingCloudVisitorID(),p.callbackRegistry.executeAll(p.state,!0),C.removeEventListener("message",u)}function u(e){if(!h.isInvalid(e)){var t=h.parse(e);m=!1,C.clearTimeout(p._handshakeTimeout),C.removeEventListener("message",u),r(new F(p)),C.addEventListener("message",o),p.setStateAndPublish(t.state),p.callbackRegistry.hasCallbacks()&&s(q.GETSTATE)}}function l(){g&&postMessage?(C.addEventListener("message",u),s(q.HANDSHAKE),p._handshakeTimeout=setTimeout(c,250)):c()}function d(){C.s_c_in||(C.s_c_il=[],C.s_c_in=0),p._c="Visitor",p._il=C.s_c_il,p._in=C.s_c_in,p._il[p._in]=p,C.s_c_in++}function f(){function e(e){0!==e.indexOf("_")&&"function"==typeof n[e]&&(p[e]=function(){})}Object.keys(n).forEach(e),p.getSupplementalDataID=n.getSupplementalDataID,p.isAllowed=function(){return!0}}var p=this,g=t.whitelistParentDomain;p.state={ALLFIELDS:{}},p.version=n.version,p.marketingCloudOrgID=e,p.cookieDomain=n.cookieDomain||"",p._instanceType="child";var m=!1,h=new Y(e,g);p.callbackRegistry=H(),p.init=function(){d(),f(),r(new V(p)),l()},p.findField=function(e,t){if(void 0!==p.state[e])return t(p.state[e]),p.state[e]},p.messageParent=s,p.setStateAndPublish=a},X=L.MESSAGES,K=L.ALL_APIS,J=L.ASYNC_API_MAP,z=L.FIELDGROUP_TO_FIELD,Q=function(e,t){function n(){var t={};return Object.keys(K).forEach(function(n){var i=K[n],r=e[i]();U.isValueEmpty(r)||(t[n]=r)}),t}function i(){var t=[];return e._loading&&Object.keys(e._loading).forEach(function(n){if(e._loading[n]){var i=z[n];t.push(i)}}),t.length?t:null}function r(t){return function n(r){var a=i();if(a){var o=J[a[0]];e[o](n,!0)}else t()}}function a(e,i){var r=n();t.send(e,i,r)}function o(e){c(e),a(e,X.HANDSHAKE)}function s(e){r(function(){a(e,X.PARENTSTATE)})()}function c(n){function i(i){r.call(e,i),t.send(n,X.PARENTSTATE,{CUSTOMERIDS:e.getCustomerIDs()})}var r=e.setCustomerIDs;e.setCustomerIDs=i}return function(e){if(!t.isInvalid(e)){(t.parse(e).prefix===X.HANDSHAKE?o:s)(e.source)}}},$=function(e,t){function n(e){return function(n){i[e]=n,r++,r===a&&t(i)}}var i={},r=0,a=Object.keys(e).length;Object.keys(e).forEach(function(t){var i=e[t];if(i.fn){var r=i.args||[];r.unshift(n(t)),i.fn.apply(i.context||null,r)}})},Z={get:function(e){e=encodeURIComponent(e);var t=(";"+document.cookie).split(" ").join(";"),n=t.indexOf(";"+e+"="),i=n<0?n:t.indexOf(";",n+1);return n<0?"":decodeURIComponent(t.substring(n+2+e.length,i<0?t.length:i))},set:function(e,t,n){var r=i(n,"cookieLifetime"),a=i(n,"expires"),o=i(n,"domain"),s=i(n,"secure"),c=i(n,"sameSite"),u=s?"Secure":"",l=c?"SameSite="+c+";":"";if(a&&"SESSION"!==r&&"NONE"!==r){var d=""!==t?parseInt(r||0,10):-60;if(d)a=new Date,a.setTime(a.getTime()+1e3*d);else if(1===a){a=new Date;var f=a.getYear();a.setYear(f+2+(f<1900?1900:0))}}else a=0;return e&&"NONE"!==r?(document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+"; path=/;"+(a?" expires="+a.toGMTString()+";":"")+(o?" domain="+o+";":"")+l+u,this.get(e)===t):0},remove:function(e,t){var n=i(t,"domain");n=n?" domain="+n+";":"";var r=i(t,"secure"),a=i(t,"sameSite"),o=r?"Secure":"",s=a?"SameSite="+a+";":"";document.cookie=encodeURIComponent(e)+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"+n+s+o}},ee=function(e,t){var n;!e&&C.location&&(e=C.location.hostname),n=e;var i,r=n.split("."),a=t||{};for(i=r.length-2;i>=0;i--)if(a.domain=r.slice(i).join("."),Z.set("TEST_AMCV_COOKIE_WRITE","cookie",a))return Z.remove("TEST_AMCV_COOKIE_WRITE",a),a.domain;return""},te={compare:s,isLessThan:function(e,t){return s(e,t)<0},areVersionsDifferent:function(e,t){return 0!==s(e,t)},isGreaterThan:function(e,t){return s(e,t)>0},isEqual:function(e,t){return 0===s(e,t)}},ne=!!C.postMessage,ie={postMessage:function(e,t,n){var i=1;t&&(ne?n.postMessage(e,t.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):t&&(n.location=t.replace(/#.*$/,"")+"#"+ +new Date+i+++"&"+e))},receiveMessage:function(e,t){var n;try{ne&&(e&&(n=function(n){if("string"==typeof t&&n.origin!==t||"[object Function]"===Object.prototype.toString.call(t)&&!1===t(n.origin))return!1;e(n)}),C.addEventListener?C[e?"addEventListener":"removeEventListener"]("message",n):C[e?"attachEvent":"detachEvent"]("onmessage",n))}catch(e){}}},re=function(e){var t,n,i="0123456789",r="",a="",o=8,s=10,c=10,u=""+Date.now(),l=u.substr(-6).split("").reverse("").join("");if(1==e){for(i+="ABCDEF",t=0;16>t;t++)n=Math.floor(Math.random()*o),4>t&&l[t]<o&&(n=+l[t]),r+=i.substring(n,n+1),n=Math.floor(Math.random()*o),a+=i.substring(n,n+1),o=16;return r+"-"+a}for(t=0;19>t;t++)n=Math.floor(Math.random()*s),6>t&&l[t]<s?(r+=l[t],n=l[t]):r+=i.substring(n,n+1),0===t&&9==n?s=3:(1==t||2==t)&&10!=s&&2>n?s=10:2<t&&(s=10),n=Math.floor(Math.random()*c),a+=i.substring(n,n+1),0===t&&9==n?c=3:(1==t||2==t)&&10!=c&&2>n?c=10:2<t&&(c=10);return r+a},ae=function(e,t){return{corsMetadata:function(){var e="none",t=!0;return"undefined"!=typeof XMLHttpRequest&&XMLHttpRequest===Object(XMLHttpRequest)&&("withCredentials"in new XMLHttpRequest?e="XMLHttpRequest":"undefined"!=typeof XDomainRequest&&XDomainRequest===Object(XDomainRequest)&&(t=!1),Object.prototype.toString.call(C.HTMLElement).indexOf("Constructor")>0&&(t=!1)),{corsType:e,corsCookiesEnabled:t}}(),getCORSInstance:function(){return"none"===this.corsMetadata.corsType?null:new C[this.corsMetadata.corsType]},fireCORS:function(t,n,i){function r(e){var n;try{if((n=JSON.parse(e))!==Object(n))return void a.handleCORSError(t,null,"Response is not JSON")}catch(e){return void a.handleCORSError(t,e,"Error parsing response as JSON")}try{for(var i=t.callback,r=C,o=0;o<i.length;o++)r=r[i[o]];r(n)}catch(e){a.handleCORSError(t,e,"Error forming callback function")}}var a=this;n&&(t.loadErrorHandler=n);try{var o=this.getCORSInstance();o.open("get",t.corsUrl+"&ts="+(new Date).getTime(),!0),"XMLHttpRequest"===this.corsMetadata.corsType&&(o.withCredentials=!0,o.timeout=e.loadTimeout,o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onreadystatechange=function(){4===this.readyState&&200===this.status&&r(this.responseText)}),o.onerror=function(e){a.handleCORSError(t,e,"onerror")},o.ontimeout=function(e){a.handleCORSError(t,e,"ontimeout")},o.send(),e._log.requests.push(t.corsUrl)}catch(e){this.handleCORSError(t,e,"try-catch")}},handleCORSError:function(t,n,i){e.CORSErrors.push({corsData:t,error:n,description:i}),t.loadErrorHandler&&("ontimeout"===i?t.loadErrorHandler(!0):t.loadErrorHandler(!1))}}},oe={POST_MESSAGE_ENABLED:!!C.postMessage,DAYS_BETWEEN_SYNC_ID_CALLS:1,MILLIS_PER_DAY:864e5,ADOBE_MC:"adobe_mc",ADOBE_MC_SDID:"adobe_mc_sdid",VALID_VISITOR_ID_REGEX:/^[0-9a-fA-F\-]+$/,ADOBE_MC_TTL_IN_MIN:5,VERSION_REGEX:/vVersion\|((\d+\.)?(\d+\.)?(\*|\d+))(?=$|\|)/,FIRST_PARTY_SERVER_COOKIE:"s_ecid"},se=function(e,t){var n=C.document;return{THROTTLE_START:3e4,MAX_SYNCS_LENGTH:649,throttleTimerSet:!1,id:null,onPagePixels:[],iframeHost:null,getIframeHost:function(e){if("string"==typeof e){var t=e.split("/");return t[0]+"//"+t[2]}},subdomain:null,url:null,getUrl:function(){var t,i="http://fast.",r="?d_nsid="+e.idSyncContainerID+"#"+encodeURIComponent(n.location.origin);return this.subdomain||(this.subdomain="nosubdomainreturned"),e.loadSSL&&(i=e.idSyncSSLUseAkamai?"https://fast.":"https://"),t=i+this.subdomain+".demdex.net/dest5.html"+r,this.iframeHost=this.getIframeHost(t),this.id="destination_publishing_iframe_"+this.subdomain+"_"+e.idSyncContainerID,t},checkDPIframeSrc:function(){var t="?d_nsid="+e.idSyncContainerID+"#"+encodeURIComponent(n.location.href);"string"==typeof e.dpIframeSrc&&e.dpIframeSrc.length&&(this.id="destination_publishing_iframe_"+(e._subdomain||this.subdomain||(new Date).getTime())+"_"+e.idSyncContainerID,this.iframeHost=this.getIframeHost(e.dpIframeSrc),this.url=e.dpIframeSrc+t)},idCallNotProcesssed:null,doAttachIframe:!1,startedAttachingIframe:!1,iframeHasLoaded:null,iframeIdChanged:null,newIframeCreated:null,originalIframeHasLoadedAlready:null,iframeLoadedCallbacks:[],regionChanged:!1,timesRegionChanged:0,sendingMessages:!1,messages:[],messagesPosted:[],messagesReceived:[],messageSendingInterval:oe.POST_MESSAGE_ENABLED?null:100,onPageDestinationsFired:[],jsonForComparison:[],jsonDuplicates:[],jsonWaiting:[],jsonProcessed:[],canSetThirdPartyCookies:!0,receivedThirdPartyCookiesNotification:!1,readyToAttachIframePreliminary:function(){return!(e.idSyncDisableSyncs||e.disableIdSyncs||e.idSyncDisable3rdPartySyncing||e.disableThirdPartyCookies||e.disableThirdPartyCalls)},readyToAttachIframe:function(){return this.readyToAttachIframePreliminary()&&(this.doAttachIframe||e._doAttachIframe)&&(this.subdomain&&"nosubdomainreturned"!==this.subdomain||e._subdomain)&&this.url&&!this.startedAttachingIframe},attachIframe:function(){function e(){r=n.createElement("iframe"),r.sandbox="allow-scripts allow-same-origin",r.title="Adobe ID Syncing iFrame",r.id=i.id,r.name=i.id+"_name",r.style.cssText="display: none; width: 0; height: 0;",r.src=i.url,i.newIframeCreated=!0,t(),n.body.appendChild(r)}function t(e){r.addEventListener("load",function(){r.className="aamIframeLoaded",i.iframeHasLoaded=!0,i.fireIframeLoadedCallbacks(e),i.requestToProcess()})}this.startedAttachingIframe=!0;var i=this,r=n.getElementById(this.id);r?"IFRAME"!==r.nodeName?(this.id+="_2",this.iframeIdChanged=!0,e()):(this.newIframeCreated=!1,"aamIframeLoaded"!==r.className?(this.originalIframeHasLoadedAlready=!1,t("The destination publishing iframe already exists from a different library, but hadn't loaded yet.")):(this.originalIframeHasLoadedAlready=!0,this.iframeHasLoaded=!0,this.iframe=r,this.fireIframeLoadedCallbacks("The destination publishing iframe already exists from a different library, and had loaded alresady."),this.requestToProcess())):e(),this.iframe=r},fireIframeLoadedCallbacks:function(e){this.iframeLoadedCallbacks.forEach(function(t){"function"==typeof t&&t({message:e||"The destination publishing iframe was attached and loaded successfully."})}),this.iframeLoadedCallbacks=[]},requestToProcess:function(t){function n(){r.jsonForComparison.push(t),r.jsonWaiting.push(t),r.processSyncOnPage(t)}var i,r=this;if(t===Object(t)&&t.ibs)if(i=JSON.stringify(t.ibs||[]),this.jsonForComparison.length){var a,o,s,c=!1;for(a=0,o=this.jsonForComparison.length;a<o;a++)if(s=this.jsonForComparison[a],i===JSON.stringify(s.ibs||[])){c=!0;break}c?this.jsonDuplicates.push(t):n()}else n();if((this.receivedThirdPartyCookiesNotification||!oe.POST_MESSAGE_ENABLED||this.iframeHasLoaded)&&this.jsonWaiting.length){var u=this.jsonWaiting.shift();this.process(u),this.requestToProcess()}e.idSyncDisableSyncs||e.disableIdSyncs||!this.iframeHasLoaded||!this.messages.length||this.sendingMessages||(this.throttleTimerSet||(this.throttleTimerSet=!0,setTimeout(function(){r.messageSendingInterval=oe.POST_MESSAGE_ENABLED?null:150},this.THROTTLE_START)),this.sendingMessages=!0,this.sendMessages())},getRegionAndCheckIfChanged:function(t,n){var i=e._getField("MCAAMLH"),r=t.d_region||t.dcs_region;return i?r&&(e._setFieldExpire("MCAAMLH",n),e._setField("MCAAMLH",r),parseInt(i,10)!==r&&(this.regionChanged=!0,this.timesRegionChanged++,e._setField("MCSYNCSOP",""),e._setField("MCSYNCS",""),i=r)):(i=r)&&(e._setFieldExpire("MCAAMLH",n),e._setField("MCAAMLH",i)),i||(i=""),i},processSyncOnPage:function(e){var t,n,i,r;if((t=e.ibs)&&t instanceof Array&&(n=t.length))for(i=0;i<n;i++)r=t[i],r.syncOnPage&&this.checkFirstPartyCookie(r,"","syncOnPage")},process:function(e){var t,n,i,r,a,o=encodeURIComponent,s=!1;if((t=e.ibs)&&t instanceof Array&&(n=t.length))for(s=!0,i=0;i<n;i++)r=t[i],a=[o("ibs"),o(r.id||""),o(r.tag||""),U.encodeAndBuildRequest(r.url||[],","),o(r.ttl||""),"","",r.fireURLSync?"true":"false"],r.syncOnPage||(this.canSetThirdPartyCookies?this.addMessage(a.join("|")):r.fireURLSync&&this.checkFirstPartyCookie(r,a.join("|")));s&&this.jsonProcessed.push(e)},checkFirstPartyCookie:function(t,n,i){var r="syncOnPage"===i,a=r?"MCSYNCSOP":"MCSYNCS";e._readVisitor();var o,s,c=e._getField(a),u=!1,l=!1,d=Math.ceil((new Date).getTime()/oe.MILLIS_PER_DAY);c?(o=c.split("*"),s=this.pruneSyncData(o,t.id,d),u=s.dataPresent,l=s.dataValid,u&&l||this.fireSync(r,t,n,o,a,d)):(o=[],this.fireSync(r,t,n,o,a,d))},pruneSyncData:function(e,t,n){var i,r,a,o=!1,s=!1;for(r=0;r<e.length;r++)i=e[r],a=parseInt(i.split("-")[1],10),i.match("^"+t+"-")?(o=!0,n<a?s=!0:(e.splice(r,1),r--)):n>=a&&(e.splice(r,1),r--);return{dataPresent:o,dataValid:s}},manageSyncsSize:function(e){if(e.join("*").length>this.MAX_SYNCS_LENGTH)for(e.sort(function(e,t){return parseInt(e.split("-")[1],10)-parseInt(t.split("-")[1],10)});e.join("*").length>this.MAX_SYNCS_LENGTH;)e.shift()},fireSync:function(t,n,i,r,a,o){var s=this;if(t){if("img"===n.tag){var c,u,l,d,f=n.url,p=e.loadSSL?"https:":"http:";for(c=0,u=f.length;c<u;c++){l=f[c],d=/^\/\//.test(l);var g=new Image;g.addEventListener("load",function(t,n,i,r){return function(){s.onPagePixels[t]=null,e._readVisitor();var o,c=e._getField(a),u=[];if(c){o=c.split("*");var l,d,f;for(l=0,d=o.length;l<d;l++)f=o[l],f.match("^"+n.id+"-")||u.push(f)}s.setSyncTrackingData(u,n,i,r)}}(this.onPagePixels.length,n,a,o)),g.src=(d?p:"")+l,this.onPagePixels.push(g)}}}else this.addMessage(i),this.setSyncTrackingData(r,n,a,o)},addMessage:function(t){var n=encodeURIComponent,i=n(e._enableErrorReporting?"---destpub-debug---":"---destpub---");this.messages.push((oe.POST_MESSAGE_ENABLED?"":i)+t)},setSyncTrackingData:function(t,n,i,r){t.push(n.id+"-"+(r+Math.ceil(n.ttl/60/24))),this.manageSyncsSize(t),e._setField(i,t.join("*"))},sendMessages:function(){var e,t=this,n="",i=encodeURIComponent;this.regionChanged&&(n=i("---destpub-clear-dextp---"),this.regionChanged=!1),this.messages.length?oe.POST_MESSAGE_ENABLED?(e=n+i("---destpub-combined---")+this.messages.join("%01"),this.postMessage(e),this.messages=[],this.sendingMessages=!1):(e=this.messages.shift(),this.postMessage(n+e),setTimeout(function(){t.sendMessages()},this.messageSendingInterval)):this.sendingMessages=!1},postMessage:function(e){ie.postMessage(e,this.url,this.iframe.contentWindow),this.messagesPosted.push(e)},receiveMessage:function(e){var t,n=/^---destpub-to-parent---/;"string"==typeof e&&n.test(e)&&(t=e.replace(n,"").split("|"),"canSetThirdPartyCookies"===t[0]&&(this.canSetThirdPartyCookies="true"===t[1],this.receivedThirdPartyCookiesNotification=!0,this.requestToProcess()),this.messagesReceived.push(e))},processIDCallData:function(i){(null==this.url||i.subdomain&&"nosubdomainreturned"===this.subdomain)&&("string"==typeof e._subdomain&&e._subdomain.length?this.subdomain=e._subdomain:this.subdomain=i.subdomain||"",this.url=this.getUrl()),i.ibs instanceof Array&&i.ibs.length&&(this.doAttachIframe=!0),this.readyToAttachIframe()&&(e.idSyncAttachIframeOnWindowLoad?(t.windowLoaded||"complete"===n.readyState||"loaded"===n.readyState)&&this.attachIframe():this.attachIframeASAP()),"function"==typeof e.idSyncIDCallResult?e.idSyncIDCallResult(i):this.requestToProcess(i),"function"==typeof e.idSyncAfterIDCallResult&&e.idSyncAfterIDCallResult(i)},canMakeSyncIDCall:function(t,n){return e._forceSyncIDCall||!t||n-t>oe.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){function e(){t.startedAttachingIframe||(n.body?t.attachIframe():setTimeout(e,30))}var t=this;e()}}},ce={audienceManagerServer:{},audienceManagerServerSecure:{},cookieDomain:{},cookieLifetime:{},cookieName:{},doesOptInApply:{type:"boolean"},disableThirdPartyCalls:{type:"boolean"},discardTrackingServerECID:{type:"boolean"},idSyncAfterIDCallResult:{},idSyncAttachIframeOnWindowLoad:{type:"boolean"},idSyncContainerID:{},idSyncDisable3rdPartySyncing:{type:"boolean"},disableThirdPartyCookies:{type:"boolean"},idSyncDisableSyncs:{type:"boolean"},disableIdSyncs:{type:"boolean"},idSyncIDCallResult:{},idSyncSSLUseAkamai:{type:"boolean"},isCoopSafe:{type:"boolean"},isIabContext:{type:"boolean"},isOptInStorageEnabled:{type:"boolean"},loadSSL:{type:"boolean"},loadTimeout:{},marketingCloudServer:{},marketingCloudServerSecure:{},optInCookieDomain:{},optInStorageExpiry:{},overwriteCrossDomainMCIDAndAID:{type:"boolean"},preOptInApprovals:{},previousPermissions:{},resetBeforeVersion:{},sdidParamExpiry:{},serverState:{},sessionCookieName:{},secureCookie:{type:"boolean"},sameSiteCookie:{},takeTimeoutMetrics:{},trackingServer:{},trackingServerSecure:{},useLocalStorage:{type:"boolean"},whitelistIframeDomains:{},whitelistParentDomain:{}},ue={getConfigNames:function(){return Object.keys(ce)},getConfigs:function(){return ce},normalizeConfig:function(e,t){return ce[e]&&"boolean"===ce[e].type?"function"!=typeof t?t:t():t}},le=function(e){var t={};return e.on=function(e,n,i){if(!n||"function"!=typeof n)throw new Error("[ON] Callback should be a function.");t.hasOwnProperty(e)||(t[e]=[]);var r=t[e].push({callback:n,context:i})-1;return function(){t[e].splice(r,1),t[e].length||delete t[e]}},e.off=function(e,n){t.hasOwnProperty(e)&&(t[e]=t[e].filter(function(e){if(e.callback!==n)return e}))},e.publish=function(e){if(t.hasOwnProperty(e)){var n=[].slice.call(arguments,1);t[e].slice(0).forEach(function(e){e.callback.apply(e.context,n)})}},e.publish},de={PENDING:"pending",CHANGED:"changed",COMPLETE:"complete"},fe={AAM:"aam",ADCLOUD:"adcloud",ANALYTICS:"aa",CAMPAIGN:"campaign",ECID:"ecid",LIVEFYRE:"livefyre",TARGET:"target",MEDIA_ANALYTICS:"mediaaa"},pe=(S={},t(S,fe.AAM,565),t(S,fe.ECID,565),S),ge=(I={},t(I,fe.AAM,[1,10]),t(I,fe.ECID,[1,10]),I),me=["videoaa","iabConsentHash"],he=function(e){return Object.keys(e).map(function(t){return e[t]})}(fe),_e=function(){var e={};return e.callbacks=Object.create(null),e.add=function(t,n){if(!u(n))throw new Error("[callbackRegistryFactory] Make sure callback is a function or an array of functions.");e.callbacks[t]=e.callbacks[t]||[];var i=e.callbacks[t].push(n)-1;return function(){e.callbacks[t].splice(i,1)}},e.execute=function(t,n){if(e.callbacks[t]){n=void 0===n?[]:n,n=n instanceof Array?n:[n];try{for(;e.callbacks[t].length;){var i=e.callbacks[t].shift();"function"==typeof i?i.apply(null,n):i instanceof Array&&i[1].apply(i[0],n)}delete e.callbacks[t]}catch(e){}}},e.executeAll=function(t,n){(n||t&&!c(t))&&Object.keys(e.callbacks).forEach(function(n){var i=void 0!==t[n]?t[n]:"";e.execute(n,i)},e)},e.hasCallbacks=function(){return Boolean(Object.keys(e.callbacks).length)},e},Ce=function(){},Se=function(e){var t=window,n=t.console;return!!n&&"function"==typeof n[e]},Ie=function(e,t,n){return n()?function(){if(Se(e)){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];console[e].apply(console,[t].concat(i))}}:Ce},ve=l,De=function(){for(var e=[],t=0;t<256;t++){for(var n=t,i=0;i<8;i++)n=1&n?3988292384^n>>>1:n>>>1;e.push(n)}return function(t,n){t=unescape(encodeURIComponent(t)),n||(n=0),n^=-1;for(var i=0;i<t.length;i++){var r=255&(n^t.charCodeAt(i));n=n>>>8^e[r]}return(n^=-1)>>>0}}(),ye=new ve("[ADOBE OPT-IN]"),be=function(t,n){return e(t)===n},Ae=function(e,t){return e instanceof Array?e:be(e,"string")?[e]:t||[]},Oe=function(e){var t=Object.keys(e);return!!t.length&&t.every(function(t){return!0===e[t]})},Me=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!e||Te(e))&&Ae(e).every(function(e){return he.indexOf(e)>-1||t&&me.indexOf(e)>-1})},ke=function(e,t){return e.reduce(function(e,n){return e[n]=t,e},{})},Ee=function(e){return JSON.parse(JSON.stringify(e))},Te=function(e){return"[object Array]"===Object.prototype.toString.call(e)&&!e.length},Le=function(e){if(we(e))return e;try{return JSON.parse(e)}catch(e){return{}}},Pe=function(e){return void 0===e||(we(e)?Me(Object.keys(e),!0):Re(e))},Re=function(e){try{var t=JSON.parse(e);return!!e&&be(e,"string")&&Me(Object.keys(t),!0)}catch(e){return!1}},we=function(e){return null!==e&&be(e,"object")&&!1===Array.isArray(e)},xe=function(){},Ne=function(e){return be(e,"function")?e():e},Fe=function(e,t){Pe(e)||ye.error("".concat(t))},je=function(e){return Object.keys(e).map(function(t){return e[t]})},Ve=function(e){return je(e).filter(function(e,t,n){return n.indexOf(e)===t})},Ue=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.command,i=t.params,r=void 0===i?{}:i,a=t.callback,o=void 0===a?xe:a;if(!n||-1===n.indexOf("."))throw new Error("[OptIn.execute] Please provide a valid command.");try{var s=n.split("."),c=e[s[0]],u=s[1];if(!c||"function"!=typeof c[u])throw new Error("Make sure the plugin and API name exist.");var l=Object.assign(r,{callback:o});c[u].call(c,l)}catch(e){ye.error("[execute] Something went wrong: "+e.message)}}};f.prototype=Object.create(Error.prototype),f.prototype.constructor=f;var He="fetchPermissions",Be="[OptIn#registerPlugin] Plugin is invalid.";p.Categories=fe,p.TimeoutError=f;var Ge=Object.freeze({OptIn:p,IabPlugin:_}),Ye=function(e,t){e.publishDestinations=function(n){var i=arguments[1],r=arguments[2];try{r="function"==typeof r?r:n.callback}catch(e){r=function(){}}var a=t;if(!a.readyToAttachIframePreliminary())return void r({error:"The destination publishing iframe is disabled in the Visitor library."});if("string"==typeof n){if(!n.length)return void r({error:"subdomain is not a populated string."});if(!(i instanceof Array&&i.length))return void r({error:"messages is not a populated array."});var o=!1;if(i.forEach(function(e){"string"==typeof e&&e.length&&(a.addMessage(e),o=!0)}),!o)return void r({error:"None of the messages are populated strings."})}else{if(!U.isObject(n))return void r({error:"Invalid parameters passed."});var s=n;if("string"!=typeof(n=s.subdomain)||!n.length)return void r({error:"config.subdomain is not a populated string."});var c=s.urlDestinations;if(!(c instanceof Array&&c.length))return void r({error:"config.urlDestinations is not a populated array."});var u=[];c.forEach(function(e){U.isObject(e)&&(e.hideReferrer?e.message&&a.addMessage(e.message):u.push(e))});!function e(){u.length&&setTimeout(function(){var t=new Image,n=u.shift();t.src=n.url,a.onPageDestinationsFired.push(n),e()},100)}()}a.iframe?(r({message:"The destination publishing iframe is already attached and loaded."}),a.requestToProcess()):!e.subdomain&&e._getField("MCMID")?(a.subdomain=n,a.doAttachIframe=!0,a.url=a.getUrl(),a.readyToAttachIframe()?(a.iframeLoadedCallbacks.push(function(e){r({message:"Attempted to attach and load the destination publishing iframe through this API call. Result: "+(e.message||"no result")})}),a.attachIframe()):r({error:"Encountered a problem in attempting to attach and load the destination publishing iframe through this API call."})):a.iframeLoadedCallbacks.push(function(e){r({message:"Attempted to attach and load the destination publishing iframe through normal Visitor API processing. Result: "+(e.message||"no result")})})}},qe=function e(t){function n(e,t){return e>>>t|e<<32-t}for(var i,r,a=Math.pow,o=a(2,32),s="",c=[],u=8*t.length,l=e.h=e.h||[],d=e.k=e.k||[],f=d.length,p={},g=2;f<64;g++)if(!p[g]){for(i=0;i<313;i+=g)p[i]=g;l[f]=a(g,.5)*o|0,d[f++]=a(g,1/3)*o|0}for(t+="€";t.length%64-56;)t+="\0";for(i=0;i<t.length;i++){if((r=t.charCodeAt(i))>>8)return;c[i>>2]|=r<<(3-i)%4*8}for(c[c.length]=u/o|0,c[c.length]=u,r=0;r<c.length;){var m=c.slice(r,r+=16),h=l;for(l=l.slice(0,8),i=0;i<64;i++){var _=m[i-15],C=m[i-2],S=l[0],I=l[4],v=l[7]+(n(I,6)^n(I,11)^n(I,25))+(I&l[5]^~I&l[6])+d[i]+(m[i]=i<16?m[i]:m[i-16]+(n(_,7)^n(_,18)^_>>>3)+m[i-7]+(n(C,17)^n(C,19)^C>>>10)|0);l=[v+((n(S,2)^n(S,13)^n(S,22))+(S&l[1]^S&l[2]^l[1]&l[2]))|0].concat(l),l[4]=l[4]+v|0}for(i=0;i<8;i++)l[i]=l[i]+h[i]|0}for(i=0;i<8;i++)for(r=3;r+1;r--){var D=l[i]>>8*r&255;s+=(D<16?0:"")+D.toString(16)}return s},We=function(e,t){return"SHA-256"!==t&&"SHA256"!==t&&"sha256"!==t&&"sha-256"!==t||(e=qe(e)),e},Xe=function(e){return String(e).trim().toLowerCase()},Ke=Ge.OptIn;U.defineGlobalNamespace(),window.adobe.OptInCategories=Ke.Categories;var Je=function(t,n,i){function r(){S._customerIDsHashChanged=!1}function a(e){var t=e;return function(e){var n=e||A.location.href;try{var i=S._extractParamFromUri(n,t);if(i)return q.parsePipeDelimetedKeyValues(i)}catch(e){}}}function o(e){function t(e,t,n){e&&e.match(oe.VALID_VISITOR_ID_REGEX)&&(n===T&&(b=!0),t(e))}t(e[T],S.setMarketingCloudVisitorID,T),S._setFieldExpire(N,-1),t(e[w],S.setAnalyticsVisitorID)}function s(e){e=e||{},S._supplementalDataIDCurrent=e.supplementalDataIDCurrent||"",S._supplementalDataIDCurrentConsumed=e.supplementalDataIDCurrentConsumed||{},S._supplementalDataIDLast=e.supplementalDataIDLast||"",S._supplementalDataIDLastConsumed=e.supplementalDataIDLastConsumed||{}}function c(e){function t(e,t,n){return n=n?n+="|":n,n+=e+"="+encodeURIComponent(t)}function n(e,n){var i=n[0],r=n[1];return null!=r&&r!==F&&(e=t(i,r,e)),e}var i=e.reduce(n,"");return function(e){var t=q.getTimestampInSeconds();return e=e?e+="|":e,e+="TS="+t}(i)}function u(e){var t=e.minutesToLive,n="";return(S.idSyncDisableSyncs||S.disableIdSyncs)&&(n=n||"Error: id syncs have been disabled"),"string"==typeof e.dpid&&e.dpid.length||(n=n||"Error: config.dpid is empty"),"string"==typeof e.url&&e.url.length||(n=n||"Error: config.url is empty"),void 0===t?t=20160:(t=parseInt(t,10),(isNaN(t)||t<=0)&&(n=n||"Error: config.minutesToLive needs to be a positive number")),{error:n,ttl:t}}function l(){return!!S.configs.doesOptInApply&&!(I.optIn.isComplete&&d())}function d(){return S.configs.doesOptInApply&&S.configs.isIabContext?I.optIn.isApproved(I.optIn.Categories.ECID)&&y:I.optIn.isApproved(I.optIn.Categories.ECID)}function f(){[["getMarketingCloudVisitorID"],["setCustomerIDs",void 0],["syncIdentity",void 0],["getAnalyticsVisitorID"],["getAudienceManagerLocationHint"],["getLocationHint"],["getAudienceManagerBlob"]].forEach(function(e){var t=e[0],n=2===e.length?e[1]:"",i=S[t];S[t]=function(e){return d()&&S.isAllowed()?i.apply(S,arguments):("function"==typeof e&&S._callCallback(e,[n]),n)}})}function p(){var e=S._getAudienceManagerURLData(),t=e.url;return S._loadData(E,t,null,e)}function g(e,t){if(y=!0,e)throw new Error("[IAB plugin] : "+e);t&&t.gdprApplies&&(v=t.consentString,D=t.hasConsentChangedSinceLastCmpPull?1:0),p(),_()}function m(e,t){if(y=!0,e)throw new Error("[IAB plugin] : "+e);t.gdprApplies&&(v=t.consentString,D=t.hasConsentChangedSinceLastCmpPull?1:0),S.init(),_()}function h(){I.optIn.isComplete&&(I.optIn.isApproved(I.optIn.Categories.ECID)?S.configs.isIabContext?I.optIn.execute({command:"iabPlugin.fetchConsentData",callback:m}):(S.init(),_()):S.configs.isIabContext?I.optIn.execute({command:"iabPlugin.fetchConsentData",callback:g}):(f(),_()))}function _(){I.optIn.off("complete",h)}if(!i||i.split("").reverse().join("")!==t)throw new Error("Please use `Visitor.getInstance` to instantiate Visitor.");var S=this,I=window.adobe,v="",D=0,y=!1,b=!1;S.version="5.5.0";var A=C,O=A.Visitor;O.version=S.version,O.AuthState=L.AUTH_STATE,O.OptOut=L.OPT_OUT,A.s_c_in||(A.s_c_il=[],A.s_c_in=0),S._c="Visitor",S._il=A.s_c_il,S._in=A.s_c_in,S._il[S._in]=S,A.s_c_in++,S._instanceType="regular",S._log={requests:[]},S.marketingCloudOrgID=t,S.cookieName="AMCV_"+t,S.sessionCookieName="AMCVS_"+t;var M={};n&&n.secureCookie&&n.sameSiteCookie&&(M={sameSite:n.sameSiteCookie,secure:n.secureCookie}),S.cookieDomain=S.useLocalStorage?"":ee(null,M),S.loadSSL=!0,S.loadTimeout=3e4,S.CORSErrors=[],S.marketingCloudServer=S.audienceManagerServer="dpm.demdex.net",S.sdidParamExpiry=30;var k=null,E="MC",T="MCMID",P="MCIDTS",R="A",w="MCAID",x="AAM",N="MCAAMB",F="NONE",j=function(e){return!Object.prototype[e]},V=ae(S);S.FIELDS=L.FIELDS,S.cookieRead=function(e){return S.useLocalStorage?e===S.sessionCookieName?sessionStorage.getItem(e):localStorage.getItem(e):Z.get(e)},S.cookieWrite=function(e,t,n){var i=""+t;if(S.useLocalStorage)return e===S.sessionCookieName?sessionStorage.setItem(e,i):localStorage.setItem(e,i);var r=S.cookieLifetime?(""+S.cookieLifetime).toUpperCase():"",a={expires:n,domain:S.cookieDomain,cookieLifetime:r};return S.configs&&S.configs.secureCookie&&"https:"===location.protocol&&(a.secure=!0),S.configs&&S.configs.sameSiteCookie&&"https:"===location.protocol&&(a.sameSite=L.SAME_SITE_VALUES[S.configs.sameSiteCookie.toUpperCase()]||"Lax"),Z.set(e,i,a)},S.removeCookie=function(e){if(S.useLocalStorage)return e===S.sessionCookieName?sessionStorage.removeItem(e):localStorage.removeItem(e);var t={domain:S.cookieDomain};return S.configs&&S.configs.secureCookie&&"https:"===location.protocol&&(t.secure=!0),S.configs&&S.configs.sameSiteCookie&&"https:"===location.protocol&&(t.sameSite=L.SAME_SITE_VALUES[S.configs.sameSiteCookie.toUpperCase()]||"Lax"),Z.remove(e,t)},S.resetState=function(e){e?S._mergeServerState(e):s()},S._isAllowedDone=!1,S._isAllowedFlag=!1,S.isAllowed=function(){return S._isAllowedDone||(S._isAllowedDone=!0,(S.cookieRead(S.cookieName)||S.cookieWrite(S.cookieName,"T",1))&&(S._isAllowedFlag=!0)),"T"===S.cookieRead(S.cookieName)&&S.removeCookie(S.cookieName),S._isAllowedFlag},S.setMarketingCloudVisitorID=function(e){S._setMarketingCloudFields(e)},S._use1stPartyMarketingCloudServer=!1,S.getMarketingCloudVisitorID=function(e,t){S.marketingCloudServer&&S.marketingCloudServer.indexOf(".demdex.net")<0&&(S._use1stPartyMarketingCloudServer=!0);var n=S._getAudienceManagerURLData("_setMarketingCloudFields"),i=n.url;return S._getRemoteField(T,i,e,t,n)};var H=function(e,t){var n={};S.getMarketingCloudVisitorID(function(){t.forEach(function(e){n[e]=S._getField(e,!0)}),-1!==t.indexOf("MCOPTOUT")?S.isOptedOut(function(t){n.MCOPTOUT=t,e(n)},null,!0):e(n)},!0)};S.getVisitorValues=function(e,t){var n={MCMID:{fn:S.getMarketingCloudVisitorID,args:[!0],context:S},MCOPTOUT:{fn:S.isOptedOut,args:[void 0,!0],context:S},MCAID:{fn:S.getAnalyticsVisitorID,args:[!0],context:S},MCAAMLH:{fn:S.getAudienceManagerLocationHint,args:[!0],context:S},MCAAMB:{fn:S.getAudienceManagerBlob,args:[!0],context:S}},i=t&&t.length?U.pluck(n,t):n;t&&-1===t.indexOf("MCAID")?H(e,t):$(i,e)},S._currentCustomerIDs={},S._customerIDsHashChanged=!1,S._newCustomerIDsHash="",S.setCustomerIDs=function(t,n){if(!S.isOptedOut()&&t){if(!U.isObject(t)||U.isObjectEmpty(t))return!1;S._readVisitor();var i,a,o,s;for(i in t)if(j(i)&&(S._currentCustomerIDs.dataSources=S._currentCustomerIDs.dataSources||{},a=t[i],n=a.hasOwnProperty("hashType")?a.hashType:n,a))if("object"===e(a)){var c={};if(a.id){if(n){if(!(s=We(Xe(a.id),n)))return;a.id=s,c.hashType=n}c.id=a.id}void 0!=a.authState&&(c.authState=a.authState),S._currentCustomerIDs.dataSources[i]=c}else if(n){if(!(s=We(Xe(a),n)))return;S._currentCustomerIDs.dataSources[i]={id:s,hashType:n}}else S._currentCustomerIDs.dataSources[i]={id:a};var u=S.getCustomerIDs(!0),l=S._getField("MCCIDH"),d="";l||(l=0);for(o in u){var f=u[o];if(!U.isObjectEmpty(f))for(i in f)j(i)&&(a=f[i],d+=(d?"|":"")+i+"|"+(a.id?a.id:"")+(a.authState?a.authState:""))}S._newCustomerIDsHash=String(S._hash(d)),S._newCustomerIDsHash!==l&&(S._customerIDsHashChanged=!0,S._mapCustomerIDs(r))}},S.syncIdentity=function(t,n){if(!S.isOptedOut()&&t){if(!U.isObject(t)||U.isObjectEmpty(t))return!1;S._readVisitor();var i,a,o,s,c;for(i in t)if(j(i)&&(S._currentCustomerIDs.nameSpaces=S._currentCustomerIDs.nameSpaces||{},a=t[i],n=a.hasOwnProperty("hashType")?a.hashType:n,a&&"object"===e(a))){var u={};if(a.id){if(n){if(!(o=We(Xe(a.id),n)))return;a.id=o,u.hashType=n}u.id=a.id}void 0!=a.authState&&(u.authState=a.authState),a.dataSource&&(S._currentCustomerIDs.dataSources=S._currentCustomerIDs.dataSources||{},s=a.dataSource,S._currentCustomerIDs.dataSources[s]=u),S._currentCustomerIDs.nameSpaces[i]=u}var l=S.getCustomerIDs(!0),d=S._getField("MCCIDH"),f="";d||(d="0");for(c in l){var p=l[c];if(!U.isObjectEmpty(p))for(i in p)j(i)&&(a=p[i],f+=(f?"|":"")+i+"|"+(a.id?a.id:"")+(a.authState?a.authState:""))}S._newCustomerIDsHash=String(S._hash(f)),S._newCustomerIDsHash!==d&&(S._customerIDsHashChanged=!0,S._mapCustomerIDs(r))}},S.getCustomerIDs=function(e){S._readVisitor();var t,n,i={dataSources:{},nameSpaces:{}},r=S._currentCustomerIDs.dataSources;for(t in r)j(t)&&(n=r[t],n.id&&(i.dataSources[t]||(i.dataSources[t]={}),i.dataSources[t].id=n.id,void 0!=n.authState?i.dataSources[t].authState=n.authState:i.dataSources[t].authState=O.AuthState.UNKNOWN,n.hashType&&(i.dataSources[t].hashType=n.hashType)));var a=S._currentCustomerIDs.nameSpaces;for(t in a)j(t)&&(n=a[t],n.id&&(i.nameSpaces[t]||(i.nameSpaces[t]={}),i.nameSpaces[t].id=n.id,void 0!=n.authState?i.nameSpaces[t].authState=n.authState:i.nameSpaces[t].authState=O.AuthState.UNKNOWN,n.hashType&&(i.nameSpaces[t].hashType=n.hashType)));return e?i:i.dataSources},S.setAnalyticsVisitorID=function(e){S._setAnalyticsFields(e)},S.getAnalyticsVisitorID=function(e,t,n){if(!q.isTrackingServerPopulated()&&!n)return S._callCallback(e,[""]),"";var i="";if(n||(i=S.getMarketingCloudVisitorID(function(t){S.getAnalyticsVisitorID(e,!0)})),i||n){var r=n?S.marketingCloudServer:S.trackingServer,a="";S.loadSSL&&(n?S.marketingCloudServerSecure&&(r=S.marketingCloudServerSecure):S.trackingServerSecure&&(r=S.trackingServerSecure));var o={};if(r){var s="http"+(S.loadSSL?"s":"")+"://"+r+"/id",c=S.configs.cookieLifetime,u="d_visid_ver="+S.version+"&mcorgid="+encodeURIComponent(S.marketingCloudOrgID)+(i?"&mid="+encodeURIComponent(i):"")+(c?"&cl="+encodeURIComponent(c):"")+(S.idSyncDisable3rdPartySyncing||S.disableThirdPartyCookies?"&d_coppa=true":""),l=["s_c_il",S._in,"_set"+(n?"MarketingCloud":"Analytics")+"Fields"];a=s+"?"+u+"&callback=s_c_il%5B"+S._in+"%5D._set"+(n?"MarketingCloud":"Analytics")+"Fields",o.corsUrl=s+"?"+u,o.callback=l}return o.url=a,S._getRemoteField(n?T:w,a,e,t,o)}return""},S.getAudienceManagerLocationHint=function(e,t){if(S.getMarketingCloudVisitorID(function(t){S.getAudienceManagerLocationHint(e,!0)})){var n=S._getField(w);if(!n&&q.isTrackingServerPopulated()&&(n=S.getAnalyticsVisitorID(function(t){S.getAudienceManagerLocationHint(e,!0)})),n||!q.isTrackingServerPopulated()){var i=S._getAudienceManagerURLData(),r=i.url;return S._getRemoteField("MCAAMLH",r,e,t,i)}}return""},S.getLocationHint=S.getAudienceManagerLocationHint,S.getAudienceManagerBlob=function(e,t){if(S.getMarketingCloudVisitorID(function(t){S.getAudienceManagerBlob(e,!0)})){var n=S._getField(w);if(!n&&q.isTrackingServerPopulated()&&(n=S.getAnalyticsVisitorID(function(t){S.getAudienceManagerBlob(e,!0)})),n||!q.isTrackingServerPopulated()){var i=S._getAudienceManagerURLData(),r=i.url;return S._customerIDsHashChanged&&S._setFieldExpire(N,-1),S._getRemoteField(N,r,e,t,i)}}return""},S._supplementalDataIDCurrent="",S._supplementalDataIDCurrentConsumed={},S._supplementalDataIDLast="",S._supplementalDataIDLastConsumed={},S.getSupplementalDataID=function(e,t){S._supplementalDataIDCurrent||t||(S._supplementalDataIDCurrent=S._generateID(1));var n=S._supplementalDataIDCurrent;return S._supplementalDataIDLast&&!S._supplementalDataIDLastConsumed[e]?(n=S._supplementalDataIDLast,S._supplementalDataIDLastConsumed[e]=!0):n&&(S._supplementalDataIDCurrentConsumed[e]&&(S._supplementalDataIDLast=S._supplementalDataIDCurrent,S._supplementalDataIDLastConsumed=S._supplementalDataIDCurrentConsumed,S._supplementalDataIDCurrent=n=t?"":S._generateID(1),S._supplementalDataIDCurrentConsumed={}),n&&(S._supplementalDataIDCurrentConsumed[e]=!0)),n};var B=!1;S._liberatedOptOut=null,S.getOptOut=function(e,t){var n=S._getAudienceManagerURLData("_setMarketingCloudFields"),i=n.url;if(d())return S._getRemoteField("MCOPTOUT",i,e,t,n);if(S._registerCallback("liberatedOptOut",e),null!==S._liberatedOptOut)return S._callAllCallbacks("liberatedOptOut",[S._liberatedOptOut]),B=!1,S._liberatedOptOut;if(B)return null;B=!0;var r="liberatedGetOptOut";return n.corsUrl=n.corsUrl.replace(/\.demdex\.net\/id\?/,".demdex.net/optOutStatus?"),n.callback=[r],C[r]=function(e){if(e===Object(e)){var t,n,i=U.parseOptOut(e,t,F);t=i.optOut,n=1e3*i.d_ottl,S._liberatedOptOut=t,setTimeout(function(){S._liberatedOptOut=null},n)}S._callAllCallbacks("liberatedOptOut",[t]),B=!1},V.fireCORS(n),null},S.isOptedOut=function(e,t,n){t||(t=O.OptOut.GLOBAL);var i=S.getOptOut(function(n){var i=n===O.OptOut.GLOBAL||n.indexOf(t)>=0;S._callCallback(e,[i])},n);return i?i===O.OptOut.GLOBAL||i.indexOf(t)>=0:null};var G={subscribed:!1,callbacks:[]};S.onReceiveEcid=function(e){if(d())return S.getMarketingCloudVisitorID(e,!0);G.subscribed=!0,e&&"function"==typeof e&&G.callbacks.push(e)},S._fields=null,S._fieldsExpired=null,S._hash=function(e){var t,n,i=0;if(e)for(t=0;t<e.length;t++)n=e.charCodeAt(t),i=(i<<5)-i+n,i&=i;return i},S._generateID=re,S._generateLocalMID=function(){var e=S._generateID(0);return X.isClientSideMarketingCloudVisitorID=!0,e},S._callbackList=null,S._callCallback=function(e,t){try{"function"==typeof e?e.apply(A,t):e[1].apply(e[0],t)}catch(e){}},S._registerCallback=function(e,t){t&&(null==S._callbackList&&(S._callbackList={}),void 0==S._callbackList[e]&&(S._callbackList[e]=[]),S._callbackList[e].push(t))},S._callAllCallbacks=function(e,t){if(null!=S._callbackList){var n=S._callbackList[e];if(n)for(;n.length>0;)S._callCallback(n.shift(),t)}},S._addQuerystringParam=function(e,t,n,i){var r=encodeURIComponent(t)+"="+encodeURIComponent(n),a=q.parseHash(e),o=q.hashlessUrl(e);if(-1===o.indexOf("?"))return o+"?"+r+a;var s=o.split("?"),c=s[0]+"?",u=s[1];return c+q.addQueryParamAtLocation(u,r,i)+a},S._extractParamFromUri=function(e,t){var n=new RegExp("[\\?&#]"+t+"=([^&#]*)"),i=n.exec(e);if(i&&i.length)return decodeURIComponent(i[1])},S._parseAdobeMcFromUrl=a(oe.ADOBE_MC),S._parseAdobeMcSdidFromUrl=a(oe.ADOBE_MC_SDID),S._attemptToPopulateSdidFromUrl=function(e){var n=S._parseAdobeMcSdidFromUrl(e),i=1e9;n&&n.TS&&(i=q.getTimestampInSeconds()-n.TS),n&&n.SDID&&n.MCORGID===t&&i<S.sdidParamExpiry&&(S._supplementalDataIDCurrent=n.SDID,S._supplementalDataIDCurrentConsumed.SDID_URL_PARAM=!0)},S._attemptToPopulateIdsFromUrl=function(){var e=S._parseAdobeMcFromUrl();if(e&&e.TS){var n=q.getTimestampInSeconds(),i=n-e.TS;if(Math.floor(i/60)>oe.ADOBE_MC_TTL_IN_MIN||e.MCORGID!==t)return;o(e)}},S._mergeServerState=function(e){if(e)try{if(e=function(e){return q.isObject(e)?e:JSON.parse(e)}(e),e[S.marketingCloudOrgID]){var t=e[S.marketingCloudOrgID];!function(e){q.isObject(e)&&S.setCustomerIDs(e)}(t.customerIDs),s(t.sdid)}}catch(e){throw new Error("`serverState` has an invalid format.")}},S._timeout=null,S._loadData=function(e,t,n,i){t=S._addQuerystringParam(t,"d_fieldgroup",e,1),i.url=S._addQuerystringParam(i.url,"d_fieldgroup",e,1),i.corsUrl=S._addQuerystringParam(i.corsUrl,"d_fieldgroup",e,1),X.fieldGroupObj[e]=!0,i===Object(i)&&i.corsUrl&&"XMLHttpRequest"===V.corsMetadata.corsType&&V.fireCORS(i,n,e)},S._clearTimeout=function(e){null!=S._timeout&&S._timeout[e]&&(clearTimeout(S._timeout[e]),S._timeout[e]=0)},S._settingsDigest=0,S._getSettingsDigest=function(){if(!S._settingsDigest){var e=S.version;S.audienceManagerServer&&(e+="|"+S.audienceManagerServer),S.audienceManagerServerSecure&&(e+="|"+S.audienceManagerServerSecure),S._settingsDigest=S._hash(e)}return S._settingsDigest},S._readVisitorDone=!1,S._readVisitor=function(){if(!S._readVisitorDone){S._readVisitorDone=!0;var e,t,n,i,r,a,o=S._getSettingsDigest(),s=!1,c=S.cookieRead(S.cookieName),u=new Date;if(c||b||S.discardTrackingServerECID||(c=S.cookieRead(oe.FIRST_PARTY_SERVER_COOKIE)),null==S._fields&&(S._fields={}),c&&"T"!==c)for(c=c.split("|"),c[0].match(/^[\-0-9]+$/)&&(parseInt(c[0],10)!==o&&(s=!0),c.shift()),c.length%2==1&&c.pop(),e=0;e<c.length;e+=2)t=c[e].split("-"),n=t[0],i=c[e+1],t.length>1?(r=parseInt(t[1],10),a=t[1].indexOf("s")>0):(r=0,a=!1),s&&("MCCIDH"===n&&(i=""),r>0&&(r=u.getTime()/1e3-60)),n&&i&&(S._setField(n,i,1),r>0&&(S._fields["expire"+n]=r+(a?"s":""),(u.getTime()>=1e3*r||a&&!S.cookieRead(S.sessionCookieName))&&(S._fieldsExpired||(S._fieldsExpired={}),S._fieldsExpired[n]=!0)));!S._getField(w)&&q.isTrackingServerPopulated()&&(c=S.cookieRead("s_vi"))&&(c=c.split("|"),c.length>1&&c[0].indexOf("v1")>=0&&(i=c[1],e=i.indexOf("["),e>=0&&(i=i.substring(0,e)),i&&i.match(oe.VALID_VISITOR_ID_REGEX)&&S._setField(w,i)))}},S._appendVersionTo=function(e){var t="vVersion|"+S.version,n=e?S._getCookieVersion(e):null;return n?te.areVersionsDifferent(n,S.version)&&(e=e.replace(oe.VERSION_REGEX,t)):e+=(e?"|":"")+t,e},S._writeVisitor=function(){var e,t,n=S._getSettingsDigest();for(e in S._fields)j(e)&&S._fields[e]&&"expire"!==e.substring(0,6)&&(t=S._fields[e],n+=(n?"|":"")+e+(S._fields["expire"+e]?"-"+S._fields["expire"+e]:"")+"|"+t);n=S._appendVersionTo(n),S.cookieWrite(S.cookieName,n,1)},S._getField=function(e,t){return null==S._fields||!t&&S._fieldsExpired&&S._fieldsExpired[e]?null:S._fields[e]},S._setField=function(e,t,n){null==S._fields&&(S._fields={}),S._fields[e]=t,n||S._writeVisitor()},S._getFieldList=function(e,t){var n=S._getField(e,t);return n?n.split("*"):null},S._setFieldList=function(e,t,n){S._setField(e,t?t.join("*"):"",n)},S._getFieldMap=function(e,t){var n=S._getFieldList(e,t);if(n){var i,r={};for(i=0;i<n.length;i+=2)r[n[i]]=n[i+1];return r}return null},S._setFieldMap=function(e,t,n){var i,r=null;if(t){r=[];for(i in t)j(i)&&(r.push(i),r.push(t[i]))}S._setFieldList(e,r,n)},S._setFieldExpire=function(e,t,n){var i=new Date;i.setTime(i.getTime()+1e3*t),null==S._fields&&(S._fields={}),S._fields["expire"+e]=Math.floor(i.getTime()/1e3)+(n?"s":""),t<0?(S._fieldsExpired||(S._fieldsExpired={}),S._fieldsExpired[e]=!0):S._fieldsExpired&&(S._fieldsExpired[e]=!1),n&&(S.cookieRead(S.sessionCookieName)||S.cookieWrite(S.sessionCookieName,"1"))},S._findVisitorID=function(t){return t&&("object"===e(t)&&(t=t.d_mid?t.d_mid:t.visitorID?t.visitorID:t.id?t.id:t.uuid?t.uuid:""+t),t&&"NOTARGET"===(t=t.toUpperCase())&&(t=F),t&&(t===F||t.match(oe.VALID_VISITOR_ID_REGEX))||(t="")),t},S._setFields=function(t,n){if(S._clearTimeout(t),null!=S._loading&&(S._loading[t]=!1),X.fieldGroupObj[t]&&X.setState(t,!1),t===E){!0!==X.isClientSideMarketingCloudVisitorID&&(X.isClientSideMarketingCloudVisitorID=!1);var i=S._getField(T);if(!i||S.overwriteCrossDomainMCIDAndAID){if(!(i="object"===e(n)&&n.mid?n.mid:S._findVisitorID(n))){if(S._use1stPartyMarketingCloudServer&&!S.tried1stPartyMarketingCloudServer)return S.tried1stPartyMarketingCloudServer=!0,void S.getAnalyticsVisitorID(null,!1,!0);i=S._generateLocalMID()}S._setField(T,i)}i&&i!==F||(i=""),"object"===e(n)&&((n.d_region||n.dcs_region||n.d_blob||n.blob)&&S._setFields(x,n),S._use1stPartyMarketingCloudServer&&n.mid&&S._setFields(R,{id:n.id})),S._callAllCallbacks(T,[i])}if(t===x&&"object"===e(n)){var r=604800;void 0!=n.id_sync_ttl&&n.id_sync_ttl&&(r=parseInt(n.id_sync_ttl,10));var a=W.getRegionAndCheckIfChanged(n,r);S._callAllCallbacks("MCAAMLH",[a]);var o=S._getField(N);(n.d_blob||n.blob)&&(o=n.d_blob,o||(o=n.blob),S._setFieldExpire(N,r),S._setField(N,o)),o||(o=""),S._callAllCallbacks(N,[o]),!n.error_msg&&S._newCustomerIDsHash&&S._setField("MCCIDH",S._newCustomerIDsHash)}if(t===R){var s=S._getField(w);s&&!S.overwriteCrossDomainMCIDAndAID||(s=S._findVisitorID(n),s?s!==F&&S._setFieldExpire(N,-1):s=F,S._setField(w,s)),s&&s!==F||(s=""),S._callAllCallbacks(w,[s])}if(S.idSyncDisableSyncs||S.disableIdSyncs)W.idCallNotProcesssed=!0;else{W.idCallNotProcesssed=!1;var c={};c.ibs=n.ibs,c.subdomain=n.subdomain,W.processIDCallData(c)}if(n===Object(n)){var u,l;d()&&S.isAllowed()&&(u=S._getField("MCOPTOUT"));var f=U.parseOptOut(n,u,F);u=f.optOut,l=f.d_ottl,S._setFieldExpire("MCOPTOUT",l,!0),S._setField("MCOPTOUT",u),S._callAllCallbacks("MCOPTOUT",[u])}},S._loading=null,S._getRemoteField=function(e,t,n,i,r){var a,o="",s=q.isFirstPartyAnalyticsVisitorIDCall(e),c={MCAAMLH:!0,MCAAMB:!0};if(d()&&S.isAllowed()){S._readVisitor(),o=S._getField(e,!0===c[e]);if(function(){return(!o||S._fieldsExpired&&S._fieldsExpired[e])&&(!S.disableThirdPartyCalls||s)}()){if(e===T||"MCOPTOUT"===e?a=E:"MCAAMLH"===e||e===N?a=x:e===w&&(a=R),a)return!t||null!=S._loading&&S._loading[a]||(null==S._loading&&(S._loading={}),S._loading[a]=!0,a===x&&(D=0),S._loadData(a,t,function(t){if(!S._getField(e)){t&&X.setState(a,!0);var n="";e===T?n=S._generateLocalMID():a===x&&(n={error_msg:"timeout"}),S._setFields(a,n)}},r)),S._registerCallback(e,n),o||(t||S._setFields(a,{id:F}),"")}else o||(e===T?(S._registerCallback(e,n),o=S._generateLocalMID(),S.setMarketingCloudVisitorID(o)):e===w?(S._registerCallback(e,n),o="",S.setAnalyticsVisitorID(o)):(o="",i=!0))}return e!==T&&e!==w||o!==F||(o="",i=!0),n&&i&&S._callCallback(n,[o]),e===T&&G.subscribed&&(G.callbacks&&G.callbacks.length&&G.callbacks.forEach(function(e){S._callCallback(e,[o])}),G.subscribed=!1,G.callbacks.length=0),o},S._setMarketingCloudFields=function(e){S._readVisitor(),S._setFields(E,e)},S._mapCustomerIDs=function(e){S.getAudienceManagerBlob(e,!0)},S._setAnalyticsFields=function(e){S._readVisitor(),S._setFields(R,e)},S._setAudienceManagerFields=function(e){S._readVisitor(),S._setFields(x,e)},S._getAudienceManagerURLData=function(e){var t=S.audienceManagerServer,n="",i=S._getField(T),r=S._getField(N,!0),a=S._getField(w),o=a&&a!==F?"&d_cid_ic=AVID%01"+encodeURIComponent(a):"";if(S.loadSSL&&S.audienceManagerServerSecure&&(t=S.audienceManagerServerSecure),t){var s,c,u,l=S.getCustomerIDs(!0);if(l)for(c in l){var d=l[c];if(!U.isObjectEmpty(d)){var f="nameSpaces"===c?"&d_cid_ns=":"&d_cid_ic=";for(s in d)j(s)&&(u=d[s],o+=f+encodeURIComponent(s)+"%01"+encodeURIComponent(u.id?u.id:"")+(u.authState?"%01"+u.authState:""))}}e||(e="_setAudienceManagerFields");var p="http"+(S.loadSSL?"s":"")+"://"+t+"/id",g="d_visid_ver="+S.version+(v&&-1!==p.indexOf("demdex.net")?"&gdpr=1&gdpr_consent="+v:"")+(D&&-1!==p.indexOf("demdex.net")?"&d_cf="+D:"")+"&d_rtbd=json&d_ver=2"+(!i&&S._use1stPartyMarketingCloudServer?"&d_verify=1":"")+"&d_orgid="+encodeURIComponent(S.marketingCloudOrgID)+"&d_nsid="+(S.idSyncContainerID||0)+(i?"&d_mid="+encodeURIComponent(i):"")+(S.idSyncDisable3rdPartySyncing||S.disableThirdPartyCookies?"&d_coppa=true":"")+(!0===k?"&d_coop_safe=1":!1===k?"&d_coop_unsafe=1":"")+(r?"&d_blob="+encodeURIComponent(r):"")+o,m=["s_c_il",S._in,e];return n=p+"?"+g+"&d_cb=s_c_il%5B"+S._in+"%5D."+e,{url:n,corsUrl:p+"?"+g,callback:m}}return{url:n}},S.appendVisitorIDsTo=function(e){try{var t=[[T,S._getField(T)],[w,S._getField(w)],["MCORGID",S.marketingCloudOrgID]];return S._addQuerystringParam(e,oe.ADOBE_MC,c(t))}catch(t){return e}},S.appendSupplementalDataIDTo=function(e,t){if(!(t=t||S.getSupplementalDataID(q.generateRandomString(),!0)))return e;try{var n=c([["SDID",t],["MCORGID",S.marketingCloudOrgID]]);return S._addQuerystringParam(e,oe.ADOBE_MC_SDID,n)}catch(t){return e}};var q={parseHash:function(e){var t=e.indexOf("#");return t>0?e.substr(t):""},hashlessUrl:function(e){var t=e.indexOf("#");return t>0?e.substr(0,t):e},addQueryParamAtLocation:function(e,t,n){var i=e.split("&");return n=null!=n?n:i.length,i.splice(n,0,t),i.join("&")},isFirstPartyAnalyticsVisitorIDCall:function(e,t,n){if(e!==w)return!1;var i;return t||(t=S.trackingServer),n||(n=S.trackingServerSecure),!("string"!=typeof(i=S.loadSSL?n:t)||!i.length)&&(i.indexOf("2o7.net")<0&&i.indexOf("omtrdc.net")<0)},isObject:function(e){return Boolean(e&&e===Object(e))},removeCookie:function(e){Z.remove(e,{domain:S.cookieDomain})},isTrackingServerPopulated:function(){return!!S.trackingServer||!!S.trackingServerSecure},getTimestampInSeconds:function(){return Math.round((new Date).getTime()/1e3)},parsePipeDelimetedKeyValues:function(e){return e.split("|").reduce(function(e,t){var n=t.split("=");return e[n[0]]=decodeURIComponent(n[1]),e},{})},generateRandomString:function(e){e=e||5;for(var t="",n="abcdefghijklmnopqrstuvwxyz0123456789";e--;)t+=n[Math.floor(Math.random()*n.length)];return t},normalizeBoolean:function(e){return"true"===e||"false"!==e&&e},parseBoolean:function(e){return"true"===e||"false"!==e&&null},replaceMethodsWithFunction:function(e,t){for(var n in e)e.hasOwnProperty(n)&&"function"==typeof e[n]&&(e[n]=t);return e}};S._helpers=q;var W=se(S,O);S._destinationPublishing=W,S.timeoutMetricsLog=[];var X={isClientSideMarketingCloudVisitorID:null,MCIDCallTimedOut:null,AnalyticsIDCallTimedOut:null,AAMIDCallTimedOut:null,fieldGroupObj:{},setState:function(e,t){switch(e){case E:!1===t?!0!==this.MCIDCallTimedOut&&(this.MCIDCallTimedOut=!1):this.MCIDCallTimedOut=t;break;case R:!1===t?!0!==this.AnalyticsIDCallTimedOut&&(this.AnalyticsIDCallTimedOut=!1):this.AnalyticsIDCallTimedOut=t;break;case x:!1===t?!0!==this.AAMIDCallTimedOut&&(this.AAMIDCallTimedOut=!1):this.AAMIDCallTimedOut=t}}};S.isClientSideMarketingCloudVisitorID=function(){return X.isClientSideMarketingCloudVisitorID},S.MCIDCallTimedOut=function(){return X.MCIDCallTimedOut},S.AnalyticsIDCallTimedOut=function(){return X.AnalyticsIDCallTimedOut},S.AAMIDCallTimedOut=function(){return X.AAMIDCallTimedOut},S.idSyncGetOnPageSyncInfo=function(){return S._readVisitor(),S._getField("MCSYNCSOP")},S.idSyncByURL=function(e){if(!S.isOptedOut()){var t=u(e||{});if(t.error)return t.error;var n,i,r=e.url,a=encodeURIComponent,o=W;return r=r.replace(/^https:/,"").replace(/^http:/,""),n=U.encodeAndBuildRequest(["",e.dpid,e.dpuuid||""],","),i=["ibs",a(e.dpid),"img",a(r),t.ttl,"",n],o.addMessage(i.join("|")),o.requestToProcess(),"Successfully queued"}},S.idSyncByDataSource=function(e){if(!S.isOptedOut())return e===Object(e)&&"string"==typeof e.dpuuid&&e.dpuuid.length?(e.url="//dpm.demdex.net/ibs:dpid="+e.dpid+"&dpuuid="+e.dpuuid,S.idSyncByURL(e)):"Error: config or config.dpuuid is empty"},Ye(S,W),S._getCookieVersion=function(e){e=e||S.cookieRead(S.cookieName);var t=oe.VERSION_REGEX.exec(e);return t&&t.length>1?t[1]:null},S._resetAmcvCookie=function(e){var t=S._getCookieVersion();t&&!te.isLessThan(t,e)||S.removeCookie(S.cookieName)},S.setAsCoopSafe=function(){k=!0},S.setAsCoopUnsafe=function(){k=!1},function(){if(S.configs=Object.create(null),q.isObject(n))for(var e in n)j(e)&&(S[e]=n[e],S.configs[e]=n[e])}(),f();var K;S.init=function(){l()&&(I.optIn.fetchPermissions(h,!0),!I.optIn.isApproved(I.optIn.Categories.ECID))||K||(K=!0,function(){if(q.isObject(n)){S.idSyncContainerID=S.idSyncContainerID||0,k="boolean"==typeof S.isCoopSafe?S.isCoopSafe:q.parseBoolean(S.isCoopSafe),S.resetBeforeVersion&&S._resetAmcvCookie(S.resetBeforeVersion),S._attemptToPopulateIdsFromUrl(),S._attemptToPopulateSdidFromUrl(),S._readVisitor();var e=S._getField(P),t=Math.ceil((new Date).getTime()/oe.MILLIS_PER_DAY);S.idSyncDisableSyncs||S.disableIdSyncs||!W.canMakeSyncIDCall(e,t)||(S._setFieldExpire(N,-1),S._setField(P,t)),S.getMarketingCloudVisitorID(),S.getAudienceManagerLocationHint(),S.getAudienceManagerBlob(),S._mergeServerState(S.serverState)}else S._attemptToPopulateIdsFromUrl(),S._attemptToPopulateSdidFromUrl()}(),function(){if(!S.idSyncDisableSyncs&&!S.disableIdSyncs){W.checkDPIframeSrc();var e=function(){var e=W;e.readyToAttachIframe()&&e.attachIframe()};A.addEventListener("load",function(){O.windowLoaded=!0,e()});try{ie.receiveMessage(function(e){W.receiveMessage(e.data)},W.iframeHost)}catch(e){}}}(),function(){S.whitelistIframeDomains&&oe.POST_MESSAGE_ENABLED&&(S.whitelistIframeDomains=S.whitelistIframeDomains instanceof Array?S.whitelistIframeDomains:[S.whitelistIframeDomains],S.whitelistIframeDomains.forEach(function(e){var n=new Y(t,e),i=Q(S,n);ie.receiveMessage(i,e)}))}())}};Je.config=ue,C.Visitor=Je;var ze=Je,Qe=function(e){if(U.isObject(e))return Object.keys(e).filter(function(t){return""!==e[t]&&ue.getConfigs()[t]}).reduce(function(t,n){var i=ue.normalizeConfig(n,e[n]),r=U.normalizeBoolean(i);return t[n]=r,t},Object.create(null))},$e=Ge.OptIn,Ze=Ge.IabPlugin;return ze.getInstance=function(e,t){if(!e)throw new Error("Visitor requires Adobe Marketing Cloud Org ID.");e.indexOf("@")<0&&(e+="@AdobeOrg");var n=function(){var t=C.s_c_il;if(t)for(var n=0;n<t.length;n++){var i=t[n];if(i&&"Visitor"===i._c&&i.marketingCloudOrgID===e)return i}}();if(n)return n;var i=Qe(t)||{};!function(e){C.adobe.optIn=C.adobe.optIn||function(){var t=U.pluck(e,["doesOptInApply","previousPermissions","preOptInApprovals","isOptInStorageEnabled","optInStorageExpiry","isIabContext","sameSiteCookie","secureCookie"]),n=e.optInCookieDomain||e.cookieDomain;n=n||ee(),n=n===window.location.hostname?"":n,t.optInCookieDomain=n;var i=new $e(t,{cookies:Z});if(t.isIabContext&&t.doesOptInApply){var r=new Ze;i.registerPlugin(r)}return i}()}(i||{});var r=e,a=r.split("").reverse().join(""),o=new ze(e,null,a);i.cookieDomain&&(o.cookieDomain=i.cookieDomain),i.sameSiteCookie&&i.secureCookie&&(o.configs={sameSiteCookie:i.sameSiteCookie,secureCookie:i.secureCookie}),function(){C.s_c_il.splice(--C.s_c_in,1)}();var s=U.getIeVersion();if("number"==typeof s&&s<10)return o._helpers.replaceMethodsWithFunction(o,function(){});var c=function(){try{return C.self!==C.parent}catch(e){return!0}}()&&(!function(e){return e.cookieWrite("TEST_AMCV_COOKIE","T",1),"T"===e.cookieRead("TEST_AMCV_COOKIE")&&(e.removeCookie("TEST_AMCV_COOKIE"),!0)}(o)||U.isFirefox()&&!function(t){var n="AMCV_"+e;return!!t.cookieRead(n)}(o)&&i.whitelistParentDomain)&&C.parent?new W(e,i,o,C.parent):new ze(e,i,a);return o=null,c.init(),c},function(){function e(){ze.windowLoaded=!0}C.addEventListener?C.addEventListener("load",e):C.attachEvent&&C.attachEvent("onload",e),ze.codeLoadEnd=(new Date).getTime()}(),ze}();} try{(function(id,loader){window.utag.tagsettings=window.utag.tagsettings||{};window.utag.tagsettings.adobe=window.utag.tagsettings.adobe||{};var vAPI=window.utag.tagsettings.adobe.visitorAPI=window.utag.tagsettings.adobe.visitorAPI||(function(){function logger(msg){utag.DB("["+id+"] : "+msg);} function Observer(orgId,config){var observers=[],visitor={},demdex=null,instance=null,regex=new RegExp("AMCV_"+window.encodeURIComponent(orgId)+"=(.*?)(;|$)"),active=false,util={"hasOwn":function(o,a){return o!==null&&Object.prototype.hasOwnProperty.call(o,a);}},mTags=(function(){var tags=[],tag,cfg=utag.loader.cfg,loadcond={1:1,4:1};for(tag in cfg){if(!util.hasOwn(cfg,tag)){continue;} if(cfg[tag].tid&&String(cfg[tag].tid).indexOf('1191')===0&&loadcond[cfg[tag].load]){tags.push(tag);}} return tags;}());function mTagsLoaded(){var loaded=true,id;for(var i=0,len=mTags.length;i<len;i++){id=mTags[i];if(!utag.sender[id]){loaded=false;break;}} return loaded;} function notify(result){instance=result;if(instance&&instance.setCustomerIDs){var aliases,alias;for(aliases in visitor){if(util.hasOwn(visitor,aliases)){alias=visitor[aliases];if(alias.authState&&Visitor.AuthState[alias.authState]!==undefined){alias.authState=Visitor.AuthState[alias.authState];}}} instance.setCustomerIDs(visitor);} while(observers.length!==0){var nextCallback=observers.shift();nextCallback(instance);} return true;} this.sync=function(ids){var alias;for(alias in ids){if(util.hasOwn(ids,alias)){if(!visitor[alias]){visitor[alias]=ids[alias];}}} return true;};this.subscribe=function(callback){var self=this;if(instance!==null){return callback(instance);}else{observers.push(callback);if(!active){logger("demdex org id ["+orgId+"] sync requested");(function retry(retries){if(retries===0){logger("demdex org id ["+orgId+"] sync timed out!");active=false;return notify(undefined);}else{active=true;if(regex.test(document.cookie)&&/\|mcmid\|/i.test(window.decodeURIComponent(RegExp.$1))&&mTagsLoaded()){logger('demdex org id ['+orgId+'] sync completed');return config?notify(window.Visitor.getInstance(orgId,config)):notify(window.Visitor.getInstance(orgId));}else{if(window.Visitor&&window.Visitor.getInstance){if(config&&!demdex){demdex=window.Visitor.getInstance(orgId,config);}} window.setTimeout(function(){logger("demdex org id ["+orgId+"] sync, waiting...");retry(--retries);},25);}}}(80));}} return true;};} function VisitorAPIWrapper(){var observers={};this._version="1.0";this.getInstance=function(orgId,callback,config,customerIds){if(!orgId){return callback(undefined);} orgId=!/@AdobeOrg$/.test(orgId)?orgId+"@AdobeOrg":orgId;if(!observers[orgId]){if(!config){logger("demdex org id ["+orgId+"] sync error. marketing cloud tag missing demdex config");return callback(undefined);} observers[orgId]=new Observer(orgId,config);} if(customerIds){observers[orgId].sync(customerIds);} observers[orgId].subscribe(callback);return true;};} return new VisitorAPIWrapper();}());var u={"id":id};utag.o[loader].sender[id]=u;if(utag.ut===undefined){utag.ut={};} var match=/ut\d\.(\d*)\..*/.exec(utag.cfg.v);if(utag.ut.loader===undefined||!match||parseInt(match[1])<41){u.loader=function(o,a,b,c,l,m){utag.DB(o);a=document;if(o.type=="iframe"){m=a.getElementById(o.id);if(m&&m.tagName=="IFRAME"){b=m;}else{b=a.createElement("iframe");}o.attrs=o.attrs||{};utag.ut.merge(o.attrs,{"height":"1","width":"1","style":"display:none"},0);}else if(o.type=="img"){utag.DB("Attach img: "+o.src);b=new Image();}else{b=a.createElement("script");b.language="javascript";b.type="text/javascript";b.async=1;b.charset="utf-8";}if(o.id){b.id=o.id;}for(l in utag.loader.GV(o.attrs)){b.setAttribute(l,o.attrs[l]);}b.setAttribute("src",o.src);if(typeof o.cb=="function"){if(b.addEventListener){b.addEventListener("load",function(){o.cb();},false);}else{b.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){this.onreadystatechange=null;o.cb();}};}}if(o.type!="img"&&!m){l=o.loc||"head";c=a.getElementsByTagName(l)[0];if(c){utag.DB("Attach to "+l+": "+o.src);if(l=="script"){c.parentNode.insertBefore(b,c);}else{c.appendChild(b);}}}};}else{u.loader=utag.ut.loader;} if(utag.ut.typeOf===undefined){u.typeOf=function(e){return({}).toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase();};}else{u.typeOf=utag.ut.typeOf;} u.hasOwn=function(o,a){return o!=null&&Object.prototype.hasOwnProperty.call(o,a);};u.isEmptyObject=function(o,a){for(a in o){if(u.hasOwn(o,a))return false;}return true;};u.ev={"view":1};u.initialized=false;u.adobeInstance;u.map_func=function(arr,obj,item){var i=arr.shift();obj[i]=obj[i]||{};if(arr.length>0){u.map_func(arr,obj[i],item);}else{obj[i]=item;}};u.clearEmptyKeys=function(object){for(var key in object){if(object[key]===""||object[key]===undefined){delete object[key];}} return object;};u.eventsNameByKey={setCustomerID:'setCustomerID',};u.sendEvents=function(instance){u.data.events.forEach(function(eventName){if(eventName===u.eventsNameByKey.setCustomerID){instance.setCustomerIDs(u.data.customer_ids);utag.DB("callEvent:setCustomerIDs");}})} u.map={};u.extend=[];u.send=function(a,b){if(u.ev[a]||u.ev.all!==undefined){loadLibrary();utag.DB("send:45");utag.DB(b);var c,d,e,f;u.data={"adobe_org_id":"AA5673AE52E15B730A490D4C","config":{"trackingServer":"metrics.rcsmetrics.it","trackingServerSecure":"smetrics.rcsmetrics.it","marketingCloudServer":"","marketingCloudServerSecure":"","cookieDomain":(function(){return utag.loader.RC('utag_main').vapi_domain||(function(){var i=0,d=document.domain,p=d.split("."),s="_vapi"+new Date().getTime();while(i<(p.length-1)&&document.cookie.indexOf(s+"="+s)===-1){d=p.slice(-1-(++i)).join(".");document.cookie=s+"="+s+";domain="+d+";";} document.cookie=s+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+d+";";utag.loader.SC("utag_main",{"vapi_domain":d});return d;}());}())},"customer_ids":{},events:[]};utag.DB("send:45:EXTENSIONS");utag.DB(b);c=[];for(d in utag.loader.GV(u.map)){if(b[d]!==undefined&&b[d]!==""){e=u.map[d].split(",");for(f=0;f<e.length;f++){u.map_func(e[f].split("."),u.data,b[d]);}}else{var event_destinations=d.split(':');if(event_destinations.length===2&&String(b[event_destinations[0]])===String(event_destinations[1])){if(u.map[d]){u.data.events=u.data.events.concat(u.map[d].split(","));}}}} utag.DB("send:45:MAPPINGS");utag.DB(u.data);if(!u.data.adobe_org_id){utag.DB(u.id+": Tag not fired: Required attribute not populated [adobe_org_id]");return;} if(u.initialized){u.sendEvents(u.adobeInstance)}else if(!u.initialized){u.initialized=!0;vAPI.getInstance(u.data.adobe_org_id,function(instance){u.adobeInstance=instance;u.sendEvents(u.adobeInstance)},u.clearEmptyKeys(u.data.config),u.data.customer_ids);} utag.DB("send:45:COMPLETE");}};utag.o[loader].loader.LOAD(id);}("45","rcsmedia.tgla7"));}catch(error){utag.DB(error);} (function(){ if(typeof utag!='undefined' && !utag_condload){utag.initcatch=true;for(var i in utag.loader.GV(utag.loader.cfg)){var b=utag.loader.cfg[i];if(b.load!=4){utag.initcatch=false;break};if(b.wait==1){utag.initcatch=false;break}};if(utag.initcatch)utag.handler.INIT();} })();