1TrackingConsentManager=(function(){var consentCookieName="sf-tracking-consent"; 2var consentDialogHtml=""; 3var consentDialog=null; 4var eventListeners={AfterDialogDisplayed:[],BeforeDialogClosed:[],ConsentChanged:[],}; 5function closeConsentDialog(){if(consentDialog==null){return; 6}invokeEventListeners("BeforeDialogClosed",[consentDialog]); 7document.body.removeChild(consentDialog); 8consentDialog=null; 9}function openConsentDialog(){if(!document.body){return; 10}closeConsentDialog(); 11consentDialog=document.createElement("div"); 12var dialogHtml=document.getElementById("sf-tracking-consent-manager"); 13if(dialogHtml){consentDialogHtml=dialogHtml.textContent; 14consentDialog.innerHTML=consentDialogHtml; 15document.body.insertBefore(consentDialog,document.body.childNodes[0]); 16}var scripts=consentDialog.getElementsByTagName("script"); 17for(var idx=0; 18idx<scripts.length; 19idx++){try{eval(scripts[idx].textContent); 20}catch(err){console.error(err); 21}}invokeEventListeners("AfterDialogDisplayed",[consentDialog]); 22}function openDialogIfConsentNotProvided(){var userConsent=readCookie(consentCookieName); 23if(userConsent!=null){return; 24}openConsentDialog(); 25}function createCookie(name,value,days){if(days){var date=new Date(); 26date.setTime(date.getTime()+(days*24*60*60*1000)); 27var expires="; expires="+date.toGMTString(); 28}else{var expires=""; 29}document.cookie=name+"="+value+expires+"; path=/"; 30}function readCookie(name){var nameEQ=name+"="; 31var ca=document.cookie.split(";"); 32for(var i=0; 33i<ca.length; 34i++){var c=ca[i]; 35while(c.charAt(0)==" "){c=c.substring(1,c.length); 36}if(c.indexOf(nameEQ)==0){return c.substring(nameEQ.length,c.length); 37}}return null; 38}function findChildById(root,id){if(!root){return null; 39}if(!root.childNodes){return null; 40}for(var index=0; 41index<root.childNodes.length; 42index++){var child=root.childNodes[index]; 43if(child.id==id){return child; 44}var subChild=findChildById(child,id); 45if(subChild!=null){return subChild; 46}}return null; 47}function invokeEventListeners(eventName,args){var collection=eventListeners[eventName]; 48if(!collection){return; 49}for(var index=0; 50index<collection.length; 51index++){try{collection[index].apply(this,args); 52}catch(err){console.error("TrackingConsentManager: Event listener of "+eventName+" event thew error: "+err); 53}}}if(window.addEventListener){window.addEventListener("DOMContentLoaded",openDialogIfConsentNotProvided,false); 54}else{if(window.attachEvent){window.attachEvent("onload",openDialogIfConsentNotProvided); 55}}return{canTrackCurrentUser:function(){return readCookie(consentCookieName)=="true"; 56},askForUserConsent:function(){openConsentDialog(); 57},updateUserConsent:function(consent){var accepted=Boolean(consent); 58var oldState=this.canTrackCurrentUser(); 59createCookie(consentCookieName,accepted,9999); 60if(accepted!=oldState){invokeEventListeners("ConsentChanged",[accepted]); 61}closeConsentDialog(); 62},addEventListener:function(eventName,listener){if(typeof listener!="function"){return; 63}var collection=eventListeners[eventName]; 64if(!collection){return; 65}collection.push(listener); 66},removeEventListener:function(eventName,listener){if(typeof listener!="function"){return; 67}var collection=eventListeners[eventName]; 68if(!collection){return; 69}var index=collection.indexOf(listener); 70if(index<0){return; 71}collection.splice(index,1); 72}}; 73})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.