1TrackingConsentManager=(function(){var consentCookieName="sf-tracking-consent"; 2var consentDialogHtml=""; 3var consentDialog=null; 4var eventListeners={AfterDialogDisplayed:[],BeforeDialogClosed:[],ConsentChanged:[],}; 5var consentDialogStyleElementId="sf-tracking-consent-dialog-style"; 6function removeBodyOffsetStyle(){var styleElement=document.getElementById(consentDialogStyleElementId); 7if(styleElement){styleElement.parentNode.removeChild(styleElement); 8}}function setBodyOffsetStyle(offsetPx){removeBodyOffsetStyle(); 9var styleElement=document.createElement("style"); 10styleElement.id=consentDialogStyleElementId; 11styleElement.type="text/css"; 12styleElement.textContent="body { padding-top: "+offsetPx+"px !important; }"; 13document.head.appendChild(styleElement); 14}function closeConsentDialog(){if(consentDialog==null){return; 15}invokeEventListeners("BeforeDialogClosed",[consentDialog]); 16if(consentDialog.parentNode){consentDialog.parentNode.removeChild(consentDialog); 17}removeBodyOffsetStyle(); 18consentDialog=null; 19}function openConsentDialog(){if(!document.body){return; 20}closeConsentDialog(); 21var dialogHtml=document.getElementById("sf-tracking-consent-manager"); 22if(!(dialogHtml&&dialogHtml.textContent)){return; 23}consentDialog=document.createElement("div"); 24consentDialog.style.position="fixed"; 25consentDialog.style.top="0"; 26consentDialog.style.left="0"; 27consentDialog.style.right="0"; 28consentDialog.style.zIndex="2147483647"; 29consentDialogHtml=dialogHtml.textContent; 30consentDialog.innerHTML=consentDialogHtml; 31document.body.appendChild(consentDialog); 32var scripts=consentDialog.getElementsByTagName("script"); 33for(var idx=0; 34idx<scripts.length; 35idx++){try{eval(scripts[idx].textContent); 36}catch(err){console.error(err); 37}}setBodyOffsetStyle(consentDialog.offsetHeight); 38invokeEventListeners("AfterDialogDisplayed",[consentDialog]); 39}function openDialogIfConsentNotProvided(){var userConsent=readCookie(consentCookieName); 40if(userConsent!=null){return; 41}openConsentDialog(); 42}function createCookie(name,value,days){if(days){var date=new Date(); 43date.setTime(date.getTime()+(days*24*60*60*1000)); 44var expires="; expires="+date.toGMTString(); 45}else{var expires=""; 46}document.cookie=name+"="+value+expires+"; path=/"; 47}function readCookie(name){var nameEQ=name+"="; 48var ca=document.cookie.split(";"); 49for(var i=0; 50i<ca.length; 51i++){var c=ca[i]; 52while(c.charAt(0)==" "){c=c.substring(1,c.length); 53}if(c.indexOf(nameEQ)==0){return c.substring(nameEQ.length,c.length); 54}}return null; 55}function findChildById(root,id){if(!root){return null; 56}if(!root.childNodes){return null; 57}for(var index=0; 58index<root.childNodes.length; 59index++){var child=root.childNodes[index]; 60if(child.id==id){return child; 61}var subChild=findChildById(child,id); 62if(subChild!=null){return subChild; 63}}return null; 64}function invokeEventListeners(eventName,args){var collection=eventListeners[eventName]; 65if(!collection){return; 66}for(var index=0; 67index<collection.length; 68index++){try{collection[index].apply(this,args); 69}catch(err){console.error("TrackingConsentManager: Event listener of "+eventName+" event thew error: "+err); 70}}}if(window.addEventListener){window.addEventListener("DOMContentLoaded",openDialogIfConsentNotProvided,false); 71}else{if(window.attachEvent){window.attachEvent("onload",openDialogIfConsentNotProvided); 72}}return{canTrackCurrentUser:function(){return readCookie(consentCookieName)=="true"; 73},askForUserConsent:function(){openConsentDialog(); 74},updateUserConsent:function(consent){var accepted=Boolean(consent); 75var oldState=this.canTrackCurrentUser(); 76createCookie(consentCookieName,accepted,9999); 77if(accepted!=oldState){invokeEventListeners("ConsentChanged",[accepted]); 78}closeConsentDialog(); 79},addEventListener:function(eventName,listener){if(typeof listener!="function"){return; 80}var collection=eventListeners[eventName]; 81if(!collection){return; 82}collection.push(listener); 83},removeEventListener:function(eventName,listener){if(typeof listener!="function"){return; 84}var collection=eventListeners[eventName]; 85if(!collection){return; 86}var index=collection.indexOf(listener); 87if(index<0){return; 88}collection.splice(index,1); 89}}; 90})();
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.