Skip to content

Instantly share code, notes, and snippets.

@nedimdragic
Created June 4, 2019 08:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nedimdragic/cbdbb674391460d9d97d2ba1edd3ff98 to your computer and use it in GitHub Desktop.
Save nedimdragic/cbdbb674391460d9d97d2ba1edd3ff98 to your computer and use it in GitHub Desktop.
var a,c;"undefined"==typeof Optanon&&(Optanon=OneTrust={});
(function(){function T(){var b=t();return b.ConsentModel&&b.ConsentModel.Name.toLowerCase()===U.IMPLIEDCONSENT}function V(b){var e=[];for(b=0;b<w.length;b++)ab(w[b],":1")&&wa(w[b].replace(":1",""))&&e.push(w[b].replace(":1",""));b=","+e.toString().toLowerCase()+",";window.OnetrustActiveGroups=b;window.OptanonActiveGroups=b;"undefined"!=typeof dataLayer?dataLayer.constructor===Array&&(dataLayer.push({OnetrustActiveGroups:b}),dataLayer.push({OptanonActiveGroups:b})):window.dataLayer=[{event:"OneTrustLoaded",
OnetrustActiveGroups:b},{event:"OptanonLoaded",OptanonActiveGroups:b}];setTimeout(function(){var b=new CustomEvent("consent.onetrust",{detail:e});window.dispatchEvent(b)})}function bb(){var b=W("https://optanon.blob.core.windows.net/skins/4.9.0/default_flat_bottom_two_button_black/v2/css/optanon.css"),e=document.createElement("link");e.type="text/css";e.href=b;e.rel="stylesheet";document.getElementsByTagName("head")[0].appendChild(e);b=document.querySelectorAll("link");for(e=0;e<b.length;e++)b[e].href.includes("onetrust-rtl.css")&&
(B=!0),b[e].href.includes("default_responsive")&&(ka=!0);b=(b=(b=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec("#6CC04A"))?{r:parseInt(b[1],16),g:parseInt(b[2],16),b:parseInt(b[3],16)}:null)?186<.299*b.r+.587*b.g+.114*b.b?"#000000":"#ffffff":"";e=document.createElement("style");e.innerHTML="#optanon ul#optanon-menu li { background-color: !important }#optanon ul#optanon-menu li.menu-item-selected { background-color: !important }#optanon #optanon-popup-wrapper .optanon-white-button-middle { background-color: #6CC04A !important }.optanon-alert-box-wrapper .optanon-alert-box-button-middle { background-color: #6CC04A !important; border-color: #6CC04A !important; }#optanon #optanon-popup-wrapper .optanon-white-button-middle button { color: "+
b+" !important }.optanon-alert-box-wrapper .optanon-alert-box-button-middle button { color: "+b+" !important }#optanon #optanon-popup-bottom { background-color: !important }#optanon.modern #optanon-popup-top, #optanon.modern #optanon-popup-body-left-shading { background-color: !important }.optanon-alert-box-wrapper { background-color:#414042 !important }.optanon-alert-box-wrapper .optanon-alert-box-bg p { color:#FFFFFF !important }.optanon-alert-box-wrapper a {\ncolor: #6cc04a;\nmargin-left: 7px;\n}\n\n#optanon #optanon-popup-top .optanon-close, .optanon-alert-box-wrapper .optanon-alert-box-corner-close a {\n\n float: none;\n\n position: relative;\n right: 5px;\n top: 5px;\n background: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxuc\u2026wwLjQtMC41LDAuNC0wLjlDNTIuOSw0OC4zLDUyLjcsNDgsNTIuNCw0Ny43eiIvPg0KPC9zdmc+);\n background-size: 22px 22px;\n width: 22px;\n height: 22px;\n}\n\n#optanon #optanon-popup-top .optanon-close, .optanon-alert-box-wrapper .optanon-alert-box-corner-close a {\n\nvisibility: hidden;\n\n}\n@media only screen and (max-width: 47em) {\n.optanon-alert-box-button.optanon-button-allow {\nmargin-right: -30px;\n}\n}";
document.getElementsByTagName("head")[0].appendChild(e)}function cb(){if(la())M(location.href);else{var b="true"===z("OptanonConsent","AwaitingReconsent"),e=t(),g=D("OptanonAlertBoxClosed"),e=e.LastReconsentDate;g&&e&&new Date(e)>new Date(g)&&!b?(M(location.href),G("OptanonConsent","AwaitingReconsent",!0)):(M("NotLandingPage"),G("OptanonConsent","AwaitingReconsent",!1),db&&Optanon.SetAlertBoxClosed(!0))}}function M(b){G("OptanonConsent","landingPath",b)}function eb(){var b=t();f=jQuery.noConflict(!0);
f(window).on("load",Optanon.LoadBanner);window.jsonFeed=function(e){z("OptanonConsent","EU")||G("OptanonConsent","EU",e.displayPopup);if(1==e.displayPopup||"true"==e.displayPopup||"true"==N||1==N)Optanon.loadDefaultBannerGroup(e);else if(b.euOnly){z("OptanonConsent","EU")&&xa("OptanonConsent","EU",N);ya();if(!D("OptanonAlertBoxClosed")||za())X=!0;f(window).one("otloadbanner",function(){P();var b=!1;0<f(".optanon-show-settings").length&&f(".optanon-show-settings").attr("data-ignore-geolocation")&&
"true"===f(".optanon-show-settings").attr("data-ignore-geolocation").toLowerCase()&&(b=!0);0<f(".optanon-toggle-display").length&&f(".optanon-toggle-display").attr("data-ignore-geolocation")&&"true"===f(".optanon-toggle-display").attr("data-ignore-geolocation").toLowerCase()&&(b=!0);b?(Aa(),Ba(),0<f(".optanon-show-settings").length&&(Ca(),fb())):(f(".optanon-show-settings").remove(),f(".optanon-close-consent").remove(),f(".optanon-close-ui").remove(),f(".optanon-toggle-display").remove(),f(".optanon-allow-all").remove());
D("OptanonAlertBoxClosed")&&!za()||Optanon.AllowAll(!0);0<f("#optanon-cookie-policy").length&&Da();Ea()})}else Optanon.loadDefaultBannerGroup()}}function za(){var b=t(),e="true"===z("OptanonConsent","AwaitingReconsent"),g=D("OptanonAlertBoxClosed"),b=b.LastReconsentDate,g=g&&b&&new Date(b)>new Date(g);return D("OptanonAlertBoxClosed")&&g&&e}function ya(){T()&&!la()&&"true"===z("OptanonConsent","AwaitingReconsent")&&(t(),f(".optanon-alert-box-wrapper").fadeOut(200),f("#optanon-popup-bg").hide(),Optanon.Close(!0),
D("OptanonAlertBoxClosed")||Optanon.SetAlertBoxClosed(!0))}function Ea(){0<f(".banner-policy-link").length?f(".banner-policy-link").focus():Fa();var b=void 0,e=void 0,g=void 0,h=f(".banner-policy-link"),m=f('.banner-close-button, .optanon-alert-box-button-container button:not([class\x3d"optanon-alert-box-close"])'),g=f('.optanon-alert-box-wrapper [href], .optanon-alert-box-wrapper input, .optanon-alert-box-wrapper select, .optanon-alert-box-wrapper textarea, .optanon-alert-box-wrapper button:not([class\x3d"optanon-alert-box-close"])'),
n=0<h.length,b=n?f(h):f(g[g.length-1]),e=f(g[0]);if(b)b.on("keydown",function(b){var g=e;n?(9!==b.keyCode||b.shiftKey||(b.preventDefault(),Fa()),9===b.keyCode&&b.shiftKey&&(b.preventDefault(),g.focus())):9===b.keyCode&&b.shiftKey&&(b.preventDefault(),Ga())});if(e)e.on("keydown",function(e){var g=b;9!==e.keyCode||e.shiftKey||(e.preventDefault(),g.focus())});if(0<m.length)f(m[m.length-1]).on("keydown",gb)}function gb(b){9===b.keyCode&&b.shiftKey&&(b.preventDefault(),Ga())}function Fa(){var b=f(".optanon-alert-box-button-container .cookie-settings-button"),
e=f(".optanon-alert-box-button-container .accept-cookies-button"),g=f(".banner-close-button");f(".banner-policy-link");0<b.length?b.focus():0<e.length?e.focus():0<g.length&&g.focus()}function Ga(){var b=f(".optanon-alert-box-button-container .cookie-settings-button"),e=f(".optanon-alert-box-button-container .accept-cookies-button"),g=f(".banner-close-button"),h=f(".banner-policy-link");0<h.length?h.focus():0<g.length?g.focus():0<e.length?e.focus():0<b.length&&b.focus()}function P(){f("script").filter(function(){return f(this).attr("type")&&
"text/plain"==f(this).attr("type").toLowerCase()&&f(this).attr("class")&&f(this).attr("class").toLowerCase().match(/optanon-category(-[a-zA-Z0-9]+)+($|\s)/)}).each(function(){var b=f(this).attr("class").toLowerCase().split("optanon-category-")[1].split("-"),e=!0;if(b&&0<b.length){for(var g=0;g<b.length;g++)if(!Y(b[g],X)){e=!1;break}e&&f(this).replaceWith(f(this).attr("type","text/javascript")[0].outerHTML)}})}function Aa(){var b,e=t(),g,h,m;Ha(e);f("body").prepend('\x3cdiv id\x3d"optanon" class\x3d"modern"\x3e\x3c/div\x3e');
b='\x3cdiv id\x3d"optanon-popup-bg"\x3e\x3c/div\x3e\x3cdiv id\x3d"optanon-popup-wrapper" role\x3d"dialog" aria-modal\x3d"true" tabindex\x3d"-1"\x3e\x3cdiv id\x3d"optanon-popup-top"\x3e';e.ShowPreferenceCenterCloseButton&&(e.CloseText||(e.CloseText="Close"),b=b+"\x3cbutton onClick\x3d\"Optanon.TriggerGoogleAnalyticsEvent('OneTrust Cookie Consent', 'Preferences Close Button');\" aria-label\x3d\""+e.CloseText+'" class\x3d"optanon-close-link optanon-close optanon-close-ui" title\x3d"'+e.CloseText+'"\x3e\x3cdiv id\x3d"optanon-close" style\x3d"background: url('+
W("https://optanon.blob.core.windows.net/skins/4.9.0/default_flat_bottom_two_button_black/v2/images/optanon-pop-up-close.png")+');width:34px;height:34px;"\x3e\x3c/div\x3e\x3c/button\x3e');m="'"+W("https://optanon.blob.core.windows.net/skins/4.9.0/default_flat_bottom_two_button_black/v2/images/cookie-collective-top-logo.svg")+"'";b=b+'\x3c/div\x3e\x3cdiv id\x3d"optanon-popup-body"\x3e\x3cdiv id\x3d"optanon-popup-body-left"\x3e\x3cdiv id\x3d"optanon-popup-body-left-shading"\x3e\x3c/div\x3e\x3cdiv id\x3d"optanon-branding-top-logo" style\x3d"background-image: url('+
m+') !important;"\x3e\x3c/div\x3e\x3cul id\x3d"optanon-menu" aria-label\x3d"Navigation Menu" role\x3d"tablist"\x3e\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e';f("#optanon").html(b);e.Language&&e.Language.Culture&&f("#optanon-popup-wrapper").attr("lang",e.Language.Culture);for(m=0;m<e.Groups.length;m+=1)if(b=e.Groups[m],x(b)==H||F(b)&&E(b)){g=x(b)==H;h=-1!=f.inArray(u(b)+":1",w);g=f('\x3cli class\x3d"menu-item-necessary '+(g||h?"menu-item-on":"menu-item-off")+'" title\x3d"'+x(b)+'"\x3e\x3cp class\x3d"preference-menu-item"\x3e\x3cbutton role\x3d"tab" aria-selected\x3d"'+
(0===m?"true":"false")+'" aria-controls\x3d"tab-'+m+'" id\x3d"'+x(b).split(" ")[0]+"-"+x(b).split(" ")[1]+'"\x3e'+x(b)+"\x3c/button\x3e\x3c/p\x3e\x3c/li\x3e");x(b)==H&&g.removeClass("menu-item-necessary").addClass("menu-item-about");switch(b.OptanonGroupId){case 2:g.removeClass("menu-item-necessary").addClass("menu-item-performance");break;case 3:g.removeClass("menu-item-necessary").addClass("menu-item-functional");break;case 4:g.removeClass("menu-item-necessary").addClass("menu-item-advertising");
break;case 8:g.removeClass("menu-item-necessary").addClass("menu-item-social")}g.data("group",b);g.data("optanonGroupId",u(b));g.click(hb);f("#optanon #optanon-menu").append(g)}b=f('\x3cli class\x3d"menu-item-moreinfo menu-item-off" title\x3d"'+e.AboutText+'"\x3e\x3cp class\x3d"preference-menu-item"\x3e\x3ca target\x3d"_blank" aria-label\x3d"'+e.AboutText+'" href\x3d"'+e.AboutLink+"\" onClick\x3d\"Optanon.TriggerGoogleAnalyticsEvent('OneTrust Cookie Consent', 'Preferences Cookie Policy');\"\x3e"+
e.AboutText+"\x3c/a\x3e\x3c/p\x3e\x3c/li\x3e");f("#optanon #optanon-menu").append(b);f("#optanon #optanon-popup-body").append('\x3cdiv id\x3d"optanon-popup-body-right"\x3e\x3cp role\x3d"heading" aria-level\x3d"2" class\x3d"legacy-preference-banner-title h2" aria-label\x3d"'+e.MainText+'"\x3e'+e.MainText+'\x3c/p\x3e\x3cdiv class\x3d"vendor-header-container"\x3e\x3cp class\x3d"header-3" role\x3d"heading" aria-level\x3d"3"\x3e\x3c/p\x3e\x3cdiv id\x3d"optanon-popup-more-info-bar"\x3e\x3cdiv class\x3d"optanon-status"\x3e'+
ib(e,"chkMain")+('\x3cdiv class\x3d"optanon-status-always-active optanon-status-on"\x3e'+(ka&&!e.ShowPreferenceCenterCloseButton?'\x3cp class\x3d"no-closeBtn"\x3e':"\x3cp\x3e")+e.AlwaysActiveText+"\x3c/p\x3e\x3c/div\x3e")+'\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"optanon-main-info-text" role\x3d"tabpanel"\x3e\x3c/div\x3e'+(e.IsIABEnabled&&e.VendorLevelOptOut?'\x3cdiv id\x3d"optanon-vendor-consent-text"\x3e\x3cbutton class\x3d"vendor-consent-link" aria-label\x3d"View Vendor Consent"\x3eView Vendor Consent\x3c/button\x3e\x3c/div\x3e':
"")+'\x3c/div\x3e\x3cdiv class\x3d"optanon-bottom-spacer"\x3e\x3c/div\x3e');f("#optanon #optanon-popup-wrapper").append('\x3cdiv id\x3d"optanon-popup-bottom"\x3e \x3ca href\x3d"https://onetrust.com/poweredbyonetrust" target\x3d"_blank"\x3e\x3cdiv id\x3d"optanon-popup-bottom-logo" style\x3d"background: url('+W("https://optanon.blob.core.windows.net/skins/4.9.0/default_flat_bottom_two_button_black/v2/images/cookie-collective-top-bottom.png")+');width:155px;height:35px;" title\x3d"powered by OneTrust"\x3e\x3c/div\x3e\x3c/a\x3e\x3cdiv class\x3d"optanon-button-wrapper optanon-save-settings-button optanon-close optanon-close-consent"\x3e\x3cdiv class\x3d"optanon-white-button-left"\x3e\x3c/div\x3e\x3cdiv class\x3d"optanon-white-button-middle"\x3e\x3cbutton title\x3d"'+
e.AllowAllText+'" aria-label\x3d"'+e.AllowAllText+"\" onClick\x3d\"Optanon.TriggerGoogleAnalyticsEvent('OneTrust Cookie Consent', 'Preferences Save Settings');\"\x3e"+e.AllowAllText+'\x3c/button\x3e\x3c/div\x3e\x3cdiv class\x3d"optanon-white-button-right"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"optanon-button-wrapper optanon-allow-all-button optanon-allow-all"\x3e\x3cdiv class\x3d"optanon-white-button-left"\x3e\x3c/div\x3e\x3cdiv class\x3d"optanon-white-button-middle"\x3e\x3cbutton title\x3d"'+
e.ConfirmText+'" aria-label\x3d"'+e.ConfirmText+"\" onClick\x3d\"Optanon.TriggerGoogleAnalyticsEvent('OneTrust Cookie Consent', 'Preferences Allow All');\"\x3e"+e.ConfirmText+'\x3c/button\x3e\x3c/div\x3e\x3cdiv class\x3d"optanon-white-button-right"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');ma()}function ib(b,e){return'\x3cdiv class\x3d"optanon-status-editable"\x3e\x3cform\x3e\x3cspan class\x3d"fieldset"\x3e'+(B?'\x3cp class\x3d"togglerChk mainToggle"\x3e':ka&&!b.ShowPreferenceCenterCloseButton?'\x3cp class\x3d"no-closeBtn"\x3e':
"\x3cp\x3e")+(B?'\x3cspan class\x3d"toggleChk"\x3e\x3c/span\x3e':"")+'\x3cinput type\x3d"checkbox" value\x3d"check" id\x3d"'+e+'" checked class\x3d"legacy-group-status optanon-status-checkbox" /\x3e\x3clabel for\x3d"'+e+'"\x3e'+(B?"":b.ActiveText)+"\x3c/label\x3e\x3c/p\x3e\x3c/span\x3e\x3c/form\x3e\x3c/div\x3e"}function hb(){var b=t(),e=f(this).data("group"),g=na(e),h;h=this.childNodes[0].children[0].id;var m=h.split("-")[0]+"-description";Ha(b);var n=x(e);f("#optanon #optanon-menu li").removeClass("menu-item-selected");
f(this).addClass("menu-item-selected");f("#optanon p.header-3").text(n);document.querySelector("#optanon-popup-body-right").children[2].setAttribute("id",m);document.querySelector("#optanon-popup-body-right").children[2].setAttribute("aria-labelledby",h);document.querySelector("#optanon #"+m).innerHTML=Z(e);h=document.querySelectorAll(".preference-menu-item button");for(m=0;m<h.length;m++)"true"===h[m].attributes[1].value&&h[m].setAttribute("aria-selected",!1),h[m].parentElement.parentElement.classList.contains("menu-item-selected")&&
h[m].setAttribute("aria-selected",!0);e&&!b.HideToolbarCookieList&&(h=jb(e),f("#optanon .optanon-main-info-text").append(h));Ia(e,b);if(g&&0<g.length)for(e=0;e<g.length;e+=1)Ia(g[e],b);var e=document.querySelector("#optanon .optanon-status-checkbox"),q=document.querySelectorAll("#optanon .optanon-subgroup-checkbox");h=document.createElement("span");h.classList.add("sr-only");h.innerText=n;e.nextSibling.insertBefore(h,e.firstChild);0<q.length&&g.forEach(function(b,e){var g=document.createElement("span");
g.classList.add("sr-only");g.innerText=x(b);q[e].nextSibling.insertBefore(g,q.firstChild)});n==H?f("#optanon #optanon-popup-more-info-bar").hide():f("#optanon #optanon-popup-more-info-bar").show();b.IsIABEnabled&&b.VendorLevelOptOut&&getVendorText();return!1}function Ia(b,e){if("always active"==A(b).toLowerCase()||"always active"==A(b.Parent).toLowerCase())f("#optanon .optanon-status-always-active").show(),f("#optanon .optanon-status-editable").hide();else{f("#optanon .optanon-status-editable").show();
f("#optanon .optanon-status-always-active").hide();f("#optanon .optanon-status-editable .optanon-status-checkbox").prop("id","chk"+b.GroupId);f("#optanon .optanon-status-editable label").attr("for","chk"+b.GroupId);var g=-1!=f.inArray(u(b)+":1",w),h=f(F(b)?"#chk"+b.GroupId:"#optanon #chk"+u(b)),m=B?h.prev(".toggleChk"):h.next("label");g?(h.prop("checked",!0),h.parent().addClass("optanon-status-on"),m.text(e.ActiveText)):(h.prop("checked",!1),h.parent().removeClass("optanon-status-on"),e.InactiveText&&
m.text(e.InactiveText))}}function Ba(){var b=t();f(document).on("click",".optanon-close-consent",function(){Optanon.Close();Ja(!0,!0);return!1});f(document).on("click",".optanon-close-ui",function(){I(U.KEEPCENTERTILEBANNEROPEN);return!1});f(document).on("click",".optanon-toggle-display",function(){Optanon.ToggleInfoDisplay();return!1});f(document).on("click",".optanon-allow-all",function(){Optanon.AllowAll();Ja(!0,!0);return!1});f(document).on("keydown","#optanon",function(b){27==b.keyCode&&I(U.KEEPCENTERTILEBANNEROPEN)});
f("#optanon").on("change",".optanon-status-checkbox",function(){var e=f(this).data("group")||f("#optanon #optanon-menu li.menu-item-selected").data("group");f(this).is(":checked")?(Ka(b,e,this),F(e)&&kb(b)):(La(b,e,this),F(e)&&lb(b));ma()})}function kb(b){f(".optanon-status-checkbox").each(function(){if(!f(this).is(":checked")){f(this).prop("checked",!0);var e=f(this).data("group");Ka(b,e,this)}})}function lb(b){f(".optanon-status-checkbox").each(function(){if(f(this).is(":checked")){f(this).prop("checked",
!1);var e=f(this).data("group");La(b,e,this)}})}function u(b){return b.CustomGroupId?b.CustomGroupId:0==b.OptanonGroupId?"0_"+b.GroupId:b.OptanonGroupId}function Ka(b,e,g){var h=x(e);Optanon.TriggerGoogleAnalyticsEvent("OneTrust Cookie Consent","Preferences Toggle On",h);f("#optanon #optanon-menu li.menu-item-selected").removeClass("menu-item-off");f("#optanon #optanon-menu li.menu-item-selected").addClass("menu-item-on");f(g).parent().addClass("optanon-status-on");h=aa(w,u(e)+":0");-1!=h&&(w[h]=
u(e)+":1");(B?f(g).prev(".toggleChk"):f(g).next("label")).text(b.ActiveText)}function La(b,e,g){var h=x(e);Optanon.TriggerGoogleAnalyticsEvent("OneTrust Cookie Consent","Preferences Toggle Off",h);f("#optanon #optanon-menu li.menu-item-selected ").removeClass("menu-item-on");f("#optanon #optanon-menu li.menu-item-selected").addClass("menu-item-off");f(g).parent().removeClass("optanon-status-on");h=aa(w,u(e)+":1");-1!=h&&(w[h]=u(e)+":0");e=B?f(g).prev(".toggleChk"):f(g).next("label");b.InactiveText&&
e.text(b.InactiveText)}function Ca(){f(".optanon-show-settings").wrap('\x3cdiv class\x3d"optanon-show-settings-popup-wrapper"\x3e').wrap('\x3cdiv class\x3d"optanon-show-settings-button"\x3e').wrap('\x3cdiv class\x3d"optanon-show-settings-middle"\x3e');f(".optanon-show-settings-middle").before('\x3cdiv class\x3d"optanon-show-settings-left"\x3e\x3c/div\x3e');f(".optanon-show-settings-middle").after('\x3cdiv class\x3d"optanon-show-settings-right"\x3e\x3c/div\x3e');f(".optanon-show-settings-button").addClass("optanon-toggle-display")}
function fb(){f(".optanon-show-settings-button").click(function(){Optanon.TriggerGoogleAnalyticsEvent("OneTrust Cookie Consent","Privacy Settings Click")})}function mb(){if(!Optanon.IsAlertBoxClosedAndValid()){var b=t();f(".optanon-alert-box-wrapper").show().animate({bottom:"0px"},1E3);b.ForceConsent&&(oa(b.AlertNoticeText)||f("#optanon-popup-bg").css({"z-index":"7000"}).show());f(".optanon-alert-box-close").click(function(){var b=t();f(".optanon-alert-box-wrapper").fadeOut(200);f("#optanon-popup-bg").hide();
1==b.CloseShouldAcceptAllCookies?Optanon.AllowAll():Optanon.Close(!1);Optanon.SetAlertBoxClosed(!0)});if(b.OnClickAcceptAllCookies){for(var e=document.querySelector("body").children,g=0;g<e.length;g++)e[g].classList.contains("optanon-alert-box-wrapper")||e[g].classList.contains("optanon-show-settings")||"optanon"===e[g].id||e[g].addEventListener("click",pa);document.querySelector(".optanon-alert-box-close").addEventListener("click",ba);document.querySelector(".optanon-allow-all-button").addEventListener("click",
ba);document.querySelector(".optanon-save-settings-button").addEventListener("click",ba);document.querySelector(".optanon-button-allow").addEventListener("click",ba)}b.ScrollAcceptsAllCookiesAndClosesBanner&&(window.addEventListener("scroll",Ma),document.querySelector(".optanon-alert-box-close").addEventListener("click",J),document.querySelector(".optanon-allow-all-button").addEventListener("click",J),document.querySelector(".optanon-save-settings-button").addEventListener("click",J),document.querySelector(".optanon-button-allow").addEventListener("click",
J))}}function pa(b){var e=document.querySelector("body").children;Optanon.TriggerGoogleAnalyticsEvent("OneTrust Cookie Consent","Banner Auto Close");Optanon.AllowAll();Na(".optanon-alert-box-wrapper",40);Optanon.SetAlertBoxClosed(!0);for(var g=0;g<e.length;g++)e[g].removeEventListener("click",pa);b.stopPropagation()}function Ma(){var b=this.pageYOffset,e=document.getElementById("optanon-popup-wrapper"),e=!(!e.offsetWidth||!e.offsetHeight);200<b&&!e&&(Optanon.TriggerGoogleAnalyticsEvent("OneTrust Cookie Consent",
"Banner Auto Close"),Optanon.AllowAll(),Na(".optanon-alert-box-wrapper",40),Optanon.SetAlertBoxClosed(!0),J())}function J(){window.removeEventListener("scroll",Ma)}function ba(){for(var b=document.querySelector("body").children,e=0;e<b.length;e++)b[e].removeEventListener("click",pa);J()}function Da(){var b,e,g,h,m,n,q=t(),C,v;for(g=0;g<q.Groups.length;g+=1)if(b=q.Groups[g],F(b)&&E(b)){C=f('\x3cdiv class\x3d"optanon-cookie-policy-group"\x3e\x3c/div\x3e');C.append('\x3ch2 class\x3d"optanon-cookie-policy-group-name"\x3e'+
x(b)+"\x3c/h2\x3e");C.append('\x3cp class\x3d"optanon-cookie-policy-group-description"\x3e'+Z(b)+"\x3c/p\x3e");if(0<b.Cookies.length)for(C.append('\x3cp class\x3d"optanon-cookie-policy-cookies-used"\x3e'+q.CookiesUsedText+"\x3c/p\x3e"),C.append('\x3cul class\x3d"optanon-cookie-policy-group-cookies-list"\x3e\x3c/ul\x3e'),h=0;h<b.Cookies.length;h+=1)e=b.Cookies[h],e=Oa(e),C.find(".optanon-cookie-policy-group-cookies-list").append("\x3cli\x3e"+(B?'\x3cdiv class\x3d"keep-ltr"\x3e':"\x3cdiv\x3e")+e+"\x3c/div\x3e\x3c/li\x3e");
b=na(b);if(0<b.length){q.CookiesText||(q.CookiesText="Cookies");q.CategoriesText||(q.CategoriesText="Categories");q.LifespanText||(q.LifespanText="Lifespan");q.LifespanTypeText||(q.LifespanTypeText="Session");q.LifespanDurationText||(q.LifespanDurationText="days");h=f('\x3ctable class\x3d"optanon-cookie-policy-subgroup-table"\x3e\x3c/table\x3e');h.append("\x3ctr\x3e\x3c/tr\x3e");e="";q.IsLifespanEnabled&&(e="\x26nbsp;("+q.LifespanText+")");h.find("tr").append('\x3cth class\x3d"optanon-cookie-policy-left"\x3e\x3cp class\x3d"optanon-cookie-policy-subgroup-table-column-header"\x3e'+
q.CategoriesText+"\x3c/p\x3e\x3c/th\x3e");h.find("tr").append('\x3cth class\x3d"optanon-cookie-policy-right"\x3e\x3cp class\x3d"optanon-cookie-policy-subgroup-table-column-header"\x3e'+q.CookiesText+e+"\x3c/p\x3e\x3c/th\x3e");for(e=0;e<b.length;e+=1){v=f('\x3ctr class\x3d"optanon-cookie-policy-subgroup"\x3e\x3c/tr\x3e');v.append('\x3ctd class\x3d"optanon-cookie-policy-left"\x3e\x3c/td\x3e');m=Pa(b[e]);v.find(".optanon-cookie-policy-left").append('\x3cp class\x3d"optanon-cookie-policy-subgroup-name"\x3e'+
m+"\x3c/p\x3e");v.find(".optanon-cookie-policy-left").append('\x3cp class\x3d"optanon-cookie-policy-subgroup-description"\x3e'+Z(b[e])+"\x3c/p\x3e");v.append('\x3ctd class\x3d"optanon-cookie-policy-right"\x3e\x3c/td\x3e');v.find(".optanon-cookie-policy-right").append('\x3cul class\x3d"optanon-cookie-policy-subgroup-cookies-list"\x3e\x3c/ul\x3e');if(q.IsLifespanEnabled)for(m=0;m<b[e].Cookies.length;m+=1){n=b[e].Cookies[m];var u="",u=n.IsSession?q.LifespanTypeText:0===n.Length?"\x3c 1 "+q.LifespanDurationText:
n.Length+" "+q.LifespanDurationText;v.find(".optanon-cookie-policy-subgroup-cookies-list").append((B?'\x3cli class\x3d"keep-ltr"\x3e':"\x3cli\x3e")+n.Name+"\x26nbsp;("+u+")\x3c/li\x3e")}else for(m=0;m<b[e].Cookies.length;m+=1)n=b[e].Cookies[m],v.find(".optanon-cookie-policy-subgroup-cookies-list").append((B?'\x3cli class\x3d"keep-ltr"\x3e':"\x3cli\x3e")+n.Name+"\x3c/li\x3e");h.append(v)}C.append(h)}f("#optanon-cookie-policy").append(C);Qa()}f(window).resize(function(){Qa()})}function jb(b){var e=
t(),g=f('\x3cdiv class\x3d"optanon-cookie-list"\x3e\x3c/div\x3e'),h,m=na(b),n,q;(b.Cookies&&0<b.Cookies.length||m&&0<m.length)&&g.append('\x3ch4 class\x3d"optanon-cookies-used"\x3e'+e.CookiesUsedText+"\x3c/h4\x3e");if(b.Cookies&&0<b.Cookies.length){q=f('\x3cp class\x3d"optanon-group-cookies-list"\x3e\x3c/p\x3e');for(h=0;h<b.Cookies.length;h+=1)n=b.Cookies[h],n=Oa(n),q.append(n+(h<b.Cookies.length-1?", ":""));g.append(q)}if(m&&0<m.length)for(b=0;b<m.length;b+=1){h=f('\x3cp class\x3d"optanon-subgroup-cookies-list subgroup-cookies-list"\x3e\x3c/p\x3e');
q=Pa(m[b]);Z(m[b]);h.append('\x3cspan class\x3d"optanon-subgroup-header"\x3e'+q+" \x3c/span\x3e");if("always active"!=A(m[b].Parent).toLowerCase()){n=e;q=m[b];var C=B?'\x3cp class\x3d"togglerChk subToggle"\x3e\x3cspan class\x3d"toggleChk"\x3e\x3c/span\x3e':"\x3cp\x3e",v="chk"+u(q);n=f('\x3cspan class\x3d"optanon-subgroup-fieldset fieldset"\x3e'+C+'\x3c/span\x3e\x3cinput type\x3d"checkbox" value\x3d"check" id\x3d"'+v+'" checked\x3d"" class\x3d"optanon-subgroup-checkbox optanon-status-checkbox" aria-label\x3d"'+
x(q)+'"\x3e\x3clabel for\x3d"'+v+'"\x3e'+(B?"":n.ActiveText)+"\x3c/label\x3e\x3c/p\x3e\x3c/span\x3e");n.find("input").data("group",q);n.find("input").data("optanonGroupId",u(q));h.append(n)}q=f('\x3cdiv class\x3d"optanon-subgroup-cookies"\x3e\x3c/div\x3e');h.append(q);g.append(h)}return g}function Z(b){return b&&b.GroupLanguagePropertiesSets&&b.GroupLanguagePropertiesSets[0]&&b.GroupLanguagePropertiesSets[0].GroupDescription&&b.GroupLanguagePropertiesSets[0].GroupDescription.Text?b.GroupLanguagePropertiesSets[0].GroupDescription.Text.replace(/\r\n/g,
"\x3cbr\x3e"):""}function x(b){return b&&b.GroupLanguagePropertiesSets&&b.GroupLanguagePropertiesSets[0]&&b.GroupLanguagePropertiesSets[0].GroupName?b.GroupLanguagePropertiesSets[0].GroupName.Text:""}function A(b){var e=t();return b&&b.GroupLanguagePropertiesSets&&b.GroupLanguagePropertiesSets[0]&&b.GroupLanguagePropertiesSets[0].DefaultStatus?Ra&&e.IsDntEnabled&&b.GroupLanguagePropertiesSets[0].IsDntEnabled?"do not track":b.GroupLanguagePropertiesSets[0].DefaultStatus.Text:""}function Pa(b){if(!b)return"";
var e=x(b);b=b.Cookies[0];return b?e='\x3ca href\x3d"http://cookiepedia.co.uk/host/'+b.Host+'" target\x3d"_blank" style\x3d"text-decoration: underline;"\x3e'+e+"\x3c/a\x3e":e}function Oa(b){return b?'\x3ca href\x3d"http://cookiepedia.co.uk/cookies/'+b.Name+'" target\x3d"_blank" style\x3d"text-decoration: underline;"\x3e'+b.Name+"\x3c/a\x3e":""}function Qa(){f("#optanon-cookie-policy .optanon-cookie-policy-subgroup").each(function(){f(this).find(".optanon-cookie-policy-left").height("auto");f(this).find(".optanon-cookie-policy-right").height("auto");
f(this).find(".optanon-cookie-policy-left").height()>=f(this).find(".optanon-cookie-policy-right").height()?f(this).find(".optanon-cookie-policy-right").height(f(this).find(".optanon-cookie-policy-left").height()):f(this).find(".optanon-cookie-policy-left").height(f(this).find(".optanon-cookie-policy-right").height())})}function nb(){f("#optanon #optanon-menu li").removeClass("menu-item-selected");f("#optanon #optanon-menu li").each(function(){f(this).text()==H&&f(this).click()});ma();var b=f("#optanon-popup-wrapper"),
e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,g=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;b.css("margin-top","10px");720>e?b.css("top","10px"):b.outerHeight()>g?b.css("top",Math.max(0,(g-b.outerHeight())/2+f(window).scrollTop())+"px"):b.css("top",Math.max(0,(g-b.outerHeight())/2)+"px");e=document.querySelector("#optanon #optanon-popup-bg");g=document.querySelector("#optanon #optanon-popup-wrapper");e.classList.add("fade-in");
g.classList.add("fade-in");e.style.display="block";g.style.display="block";b.focus()}function I(b){var e=t();e.ForceConsent?oa(e.AlertNoticeText)||b!==U.KEEPCENTERTILEBANNEROPEN?f("#optanon #optanon-popup-bg, #optanon #optanon-popup-wrapper").fadeOut(400):(f("#optanon-popup-bg").css({"z-index":"7000"}),f("#optanon #optanon-popup-wrapper").fadeOut(400)):f("#optanon #optanon-popup-bg, #optanon #optanon-popup-wrapper").fadeOut(400)}function Sa(b){if(A(b)){var e=A(b).toLowerCase();b.Parent&&(e=A(b.Parent).toLowerCase());
return"always active"==e||"inactive landingpage"==e||"active"==e||"do not track"==e&&!Ra}return!0}function Ta(){var b,e=t(),g;if(z("OptanonConsent","groups")){z("OptanonConsent","groups")&&!qa&&(qa=!0);b=!1;var e=Q(z("OptanonConsent","groups")),h=Q(z("OptanonConsent","groups").replace(/:0/g,"").replace(/:1/g,""));g=t();var f,n,q;if(z("OptanonConsent","groups")){for(n=0;n<g.Groups.length;n+=1)f=g.Groups[n],E(f)&&(q=aa(h,u(f)),-1==q&&(b=!0,Sa(f)?e.push(u(f)+":1"):e.push(u(f)+":0")));for(n=e.length-
1;0<=n;--n){q=!1;for(h=0;h<g.Groups.length;h+=1)if(f=g.Groups[h],E(f)&&u(f)==e[n].replace(/:0/g,"").replace(/:1/g,"")){q=!0;break}q||(b=!0,e.splice(n,1))}b&&K("OptanonConsent",e)}w=Q(z("OptanonConsent","groups"))}else{w=[];for(g=0;g<e.Groups.length;g+=1)b=e.Groups[g],E(b)&&(Sa(b)?w.push(u(b)+":1"):w.push(u(b)+":0"));qa=!0}}function K(b,e){e?G(b,"groups",e.toString().toLowerCase()):G(b,"groups",w.toString().toLowerCase())}function xa(b,e,g){var h={},f=D(b),n,q,t,v,u=!1;f.split("\x26").forEach(function(b){b.includes(e)&&
b.split("\x3d")[1]!==g.toString()&&(u=!0,v=f.replace(b,e+"\x3d"+g))});if(u){t=v.split("\x26");if(v)for(n=0;n<t.length;n+=1)q=t[n].split("\x3d"),h[decodeURIComponent(q[0])]=decodeURIComponent(q[1]).replace(/\+/g," ");h.datestamp=(new Date).toString();h.version="4.9.0";h=Ua(h);da(b,h,365)}}function G(b,e,g){var h={},f=D(b),n,q;t();if(f)for(n=f.split("\x26"),f=0;f<n.length;f+=1)q=n[f].split("\x3d"),h[decodeURIComponent(q[0])]=decodeURIComponent(q[1]).replace(/\+/g," ");h[e]=g;h.datestamp=(new Date).toString();
h.version="4.9.0";e=Ua(h);da(b,e,365)}function z(b,e){var g=D(b),h,f,n;if(g){h={};f=g.split("\x26");for(g=0;g<f.length;g+=1)n=f[g].split("\x3d"),h[decodeURIComponent(n[0])]=decodeURIComponent(n[1]).replace(/\+/g," ");return e&&h[e]?h[e]:e&&!h[e]?"":h}return""}function da(b,e,g){var h;g?(h=new Date,h.setTime(h.getTime()+864E5*g),g="; expires\x3d"+h.toGMTString()):g="";h=["tealiumdemo.com"];1>=h.length&&(h[1]="");document.cookie=b+"\x3d"+e+g+"; path\x3d/"+h[1]+"; domain\x3d."+h[0]}function D(b){b+="\x3d";
var e=document.cookie.split(";"),g,h;for(g=0;g<e.length;g+=1){for(h=e[g];" "==h.charAt(0);)h=h.substring(1,h.length);if(0==h.indexOf(b))return h.substring(b.length,h.length)}return null}function Y(b,e){var g=null!=b&&"undefined"!=typeof b,h,f;if(!e){Ta();h=L(w,b+":1");a:{f=t();var n;for(n=0;n<f.Groups.length;n+=1)if(f.Groups[n].CustomGroupId){if(f.Groups[n].CustomGroupId==b){f=!0;break a}}else if(f.Groups[n].OptanonGroupId==b){f=!0;break a}f=!1}f=!f;return g&&(h&&wa(b)||f)?!0:!1}return!0}function wa(b){a:{var e=
t(),g;for(g=0;g<e.Groups.length;g+=1)if(u(e.Groups[g])==b){b=e.Groups[g];break a}b=void 0}b=F(b)?b:b.Parent;return"inactive landingpage"!=A(b).toLowerCase()?!0:la()?!1:!0}function la(){var b=z("OptanonConsent","landingPath");return b&&b!==location.href?!1:!0}function Q(b){return b?b.toLowerCase().split(","):[]}function ea(){var b;b=t();b.CustomJs&&(new Function(b.CustomJs))();if("function"==typeof OptanonWrapper&&"undefined"!=OptanonWrapper){OptanonWrapper();for(b=0;b<R.length;b+=1)L(ra,R[b])||ra.push(R[b]);
R=[];for(b=0;b<S.length;b+=1)L(sa,S[b])||sa.push(S[b]);S=[]}}function Ha(b){b.Groups.unshift({GroupLanguagePropertiesSets:[{GroupName:{Text:H},GroupDescription:{Text:b.MainInfoText}}]})}function Va(b){if(b=document.getElementById(b))for(;b.hasChildNodes();)b.removeChild(b.lastChild)}function fa(b){if(b=document.getElementById(b))b.style.display="block"}function Wa(b){(b=document.getElementById(b))&&b.parentNode.removeChild(b)}function L(b,e){var g;for(g=0;g<b.length;g+=1)if(b[g].toString().toLowerCase()==
e.toString().toLowerCase())return!0;return!1}function aa(b,e){var g;for(g=0;g<b.length;g+=1)if(b[g]==e)return g;return-1}function ab(b,e){return-1!=b.indexOf(e,b.length-e.length)}function Ua(b){var e="",g;for(g in b)b.hasOwnProperty(g)&&(""!=e&&(e+="\x26"),e+=g+"\x3d"+encodeURIComponent(b[g]).replace(/%20/g,"+"));return e}function ma(){var b=0,e,g=t(),h;for(h=0;h<g.Groups.length;h+=1)if(e=g.Groups[h],E(e)&&L(w,u(e)+":0")&&(b+=1,1<=b))return f("#optanon .optanon-allow-all-button").show(),!0;f("#optanon .optanon-allow-all-button").hide();
return!1}function Ja(b,e){f(".optanon-alert-box-wrapper").fadeOut(400);b&&(Xa||!Xa&&!Optanon.IsAlertBoxClosedAndValid())&&Optanon.SetAlertBoxClosed(e)}function E(b){var e,g=t(),h=!1,f,n,q=null!=b.Cookies&&0<b.Cookies.length;if(F(b)){f=b.Purposes&&0<b.Purposes.length&&g.IsIABEnabled;for(n=0;n<g.Groups.length;n+=1){e=g.Groups[n];var C=null!=e.Cookies&&0<e.Cookies.length;if(null!=e.Parent&&x(b)&&x(e.Parent)==x(b)&&e.ShowInPopup&&C){h=!0;break}}return b.ShowInPopup&&(q||h||f)}return b.ShowInPopup&&q}
function F(b){return b&&null==b.Parent}function na(b){var e,g=t(),h=[],f;for(f=0;f<g.Groups.length;f+=1){e=g.Groups[f];var n=null!=e.Cookies&&0<e.Cookies.length;null!=e.Parent&&x(e.Parent)==x(b)&&e.ShowInPopup&&n&&h.push(e)}return h}function t(){ta||(ta={cctId:"53c699c5-1e0b-43cb-bda4-6a45b5c6a2bb",euOnly:!1,MainText:"Cookie Preference Center",MainInfoText:"When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences, your device or used to make the site work as you expect it to. The information does not usually identify you directly, but it can give you a more personalized web experience. \n\nYou can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, you should know that blocking some types of cookies may impact your experience on the site and the services we are able to offer.",
AboutText:"More Information",AboutCookiesText:"Your Privacy",ConfirmText:"Allow All",AllowAllText:"Save Settings",CookiesUsedText:"Cookies used",ShowAlertNotice:!0,AboutLink:"https://onetrust.com/cookie-policy/",HideToolbarCookieList:!1,ActiveText:"Active",AlwaysActiveText:"Always Active",AlertNoticeText:"By clicking \u201cAccept All Cookies\u201d, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.\x3ca href\x3d'https://www.onetrust.com/cookie-policy/'\x3eCookie Notice\x3c/a\x3e",
AlertCloseText:"Close",AlertMoreInfoText:"Customize Settings",AlertAllowCookiesText:"Accept All Cookies",CloseShouldAcceptAllCookies:!1,LastReconsentDate:1530541183497,BannerTitle:null,ForceConsent:!1,InactiveText:"Inactive",CookiesText:"Cookies",CategoriesText:"Categories",HasScriptArchive:!0,IsLifespanEnabled:!1,LifespanText:"Lifespan",IsIABEnabled:!1,VendorLevelOptOut:!0,Groups:[{ShowInPopup:!0,Order:0,OptanonGroupId:0,Parent:{ShowInPopup:!0,Order:0,OptanonGroupId:1,Parent:null,GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Always Active"},
GroupDescription:{Text:"These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site may not work then."},GroupName:{Text:"Strictly Necessary Cookies"},IsDntEnabled:!1}],Cookies:[],Purposes:[],
CustomGroupId:null,GroupId:71860},GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Active"},GroupDescription:{Text:"These cookies are used to make sure visitor page requests are routed to the same server in all browsing sessions."},GroupName:{Text:"Azure"},IsDntEnabled:!1}],Cookies:[{Name:"ARRAffinity",Host:".app.onetrust.com",IsSession:!0,Length:0}],Purposes:[],CustomGroupId:null,GroupId:81893},{ShowInPopup:!0,Order:0,OptanonGroupId:111,Parent:{ShowInPopup:!0,Order:4,OptanonGroupId:4,Parent:null,
GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Inactive"},GroupDescription:{Text:"These cookies are set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant ads on other sites. They work by uniquely identifying your browser and device. If you do not allow these cookies, you will not experience our targeted advertising across different websites."},GroupName:{Text:"Targeting Cookies"},IsDntEnabled:!1}],Cookies:[{Name:"_gcl_au",
Host:".onetrust.com",IsSession:!1,Length:89}],Purposes:[],CustomGroupId:null,GroupId:71858},GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Active"},GroupDescription:{Text:""},GroupName:{Text:"Bing"},IsDntEnabled:!1}],Cookies:[{Name:"_uetsid",Host:".onetrust.com",IsSession:!1,Length:0},{Name:"MUIDB",Host:"bat.bing.com",IsSession:!1,Length:389},{Name:"MUID",Host:".bing.com",IsSession:!1,Length:389}],Purposes:[],CustomGroupId:null,GroupId:71871},{ShowInPopup:!0,Order:0,OptanonGroupId:1,Parent:null,
GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Always Active"},GroupDescription:{Text:"These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site may not work then."},GroupName:{Text:"Strictly Necessary Cookies"},
IsDntEnabled:!1}],Cookies:[],Purposes:[],CustomGroupId:null,GroupId:71860},{ShowInPopup:!0,Order:0,OptanonGroupId:0,Parent:{ShowInPopup:!0,Order:1,OptanonGroupId:112,Parent:null,GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Active"},GroupDescription:{Text:"These cookies allow us to count visits and traffic sources, so we can measure and improve the performance of our site. They help us know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies, we will not know when you have visited our site."},
GroupName:{Text:"Analytics Cookies"},IsDntEnabled:!1}],Cookies:[],Purposes:[],CustomGroupId:"112",GroupId:194977},GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Active"},GroupDescription:{Text:"Google Analytics gathers information allowing us to understand interactions with our websites and ultimately refine that experience to better serve you."},GroupName:{Text:"Google Analytics"},IsDntEnabled:!1}],Cookies:[{Name:"__utma",Host:".onetrust.com",IsSession:!1,Length:729},{Name:"__utmz",Host:".onetrust.com",
IsSession:!1,Length:182},{Name:"_gid",Host:".onetrust.com",IsSession:!1,Length:0},{Name:"_ga",Host:".onetrust.com",IsSession:!1,Length:729},{Name:"__utmb",Host:".onetrust.com",IsSession:!1,Length:0},{Name:"__utmc",Host:".onetrust.com",IsSession:!0,Length:0},{Name:"__utmv",Host:".onetrust.com",IsSession:!1,Length:0}],Purposes:[],CustomGroupId:null,GroupId:81878},{ShowInPopup:!0,Order:1,OptanonGroupId:112,Parent:null,GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Active"},GroupDescription:{Text:"These cookies allow us to count visits and traffic sources, so we can measure and improve the performance of our site. They help us know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies, we will not know when you have visited our site."},
GroupName:{Text:"Analytics Cookies"},IsDntEnabled:!1}],Cookies:[],Purposes:[],CustomGroupId:"112",GroupId:194977},{ShowInPopup:!0,Order:1,OptanonGroupId:104,Parent:{ShowInPopup:!0,Order:4,OptanonGroupId:4,Parent:null,GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Inactive"},GroupDescription:{Text:"These cookies are set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant ads on other sites. They work by uniquely identifying your browser and device. If you do not allow these cookies, you will not experience our targeted advertising across different websites."},
GroupName:{Text:"Targeting Cookies"},IsDntEnabled:!1}],Cookies:[{Name:"_gcl_au",Host:".onetrust.com",IsSession:!1,Length:89}],Purposes:[],CustomGroupId:null,GroupId:71858},GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Active"},GroupDescription:{Text:""},GroupName:{Text:"Google / DoubleClick"},IsDntEnabled:!1}],Cookies:[{Name:"APISID",Host:".google.com",IsSession:!1,Length:373},{Name:"SSID",Host:".google.com",IsSession:!1,Length:373},{Name:"PREF",Host:".google.com",IsSession:!1,Length:373},{Name:"SID",
Host:".google.com",IsSession:!1,Length:373},{Name:"SAPISID",Host:".google.com",IsSession:!1,Length:373},{Name:"id",Host:".doubleclick.net",IsSession:!1,Length:373},{Name:"HSID",Host:".google.com",IsSession:!1,Length:373}],Purposes:[],CustomGroupId:null,GroupId:71864},{ShowInPopup:!0,Order:1,OptanonGroupId:0,Parent:{ShowInPopup:!0,Order:0,OptanonGroupId:1,Parent:null,GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Always Active"},GroupDescription:{Text:"These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site may not work then."},
GroupName:{Text:"Strictly Necessary Cookies"},IsDntEnabled:!1}],Cookies:[],Purposes:[],CustomGroupId:null,GroupId:71860},GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Active"},GroupDescription:{Text:"These cookies are used to speed up page load times."},GroupName:{Text:"Cloudflare"},IsDntEnabled:!1}],Cookies:[{Name:"__cfduid",Host:".onetrust.com",IsSession:!1,Length:364}],Purposes:[],CustomGroupId:null,GroupId:81874},{ShowInPopup:!0,Order:1,OptanonGroupId:0,Parent:{ShowInPopup:!0,Order:3,OptanonGroupId:3,
Parent:null,GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Inactive"},GroupDescription:{Text:"These cookies allow the provision of enhance functionality and personalization, such as videos and live chats. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies, then some or all of these functionalities may not function properly."},GroupName:{Text:"Functional Cookies"},IsDntEnabled:!1}],Cookies:[],Purposes:[],CustomGroupId:null,
GroupId:71857},GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Active"},GroupDescription:{Text:"These cookies support video functionality on some of our pages."},GroupName:{Text:"Wistia"},IsDntEnabled:!1}],Cookies:[{Name:"__distillery",Host:"www.onetrust.com",IsSession:!1,Length:364},{Name:"wistia-http2-push-disabled",Host:".fast.wistia.com",IsSession:!1,Length:0}],Purposes:[],CustomGroupId:null,GroupId:81876},{ShowInPopup:!0,Order:3,OptanonGroupId:3,Parent:null,GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Inactive"},
GroupDescription:{Text:"These cookies allow the provision of enhance functionality and personalization, such as videos and live chats. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies, then some or all of these functionalities may not function properly."},GroupName:{Text:"Functional Cookies"},IsDntEnabled:!1}],Cookies:[],Purposes:[],CustomGroupId:null,GroupId:71857},{ShowInPopup:!0,Order:3,OptanonGroupId:0,Parent:{ShowInPopup:!0,
Order:0,OptanonGroupId:1,Parent:null,GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Always Active"},GroupDescription:{Text:"These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site may not work then."},
GroupName:{Text:"Strictly Necessary Cookies"},IsDntEnabled:!1}],Cookies:[],Purposes:[],CustomGroupId:null,GroupId:71860},GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Active"},GroupDescription:{Text:"This cookie is associated with Google Tag Manager which we use to load scripts into our website pages."},GroupName:{Text:"Google Tag Manager"},IsDntEnabled:!1}],Cookies:[{Name:"_dc_gtm_UA-85738809-1",Host:".onetrust.com",IsSession:!1,Length:0}],Purposes:[],CustomGroupId:null,GroupId:81875},{ShowInPopup:!0,
Order:3,OptanonGroupId:103,Parent:{ShowInPopup:!0,Order:4,OptanonGroupId:4,Parent:null,GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Inactive"},GroupDescription:{Text:"These cookies are set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant ads on other sites. They work by uniquely identifying your browser and device. If you do not allow these cookies, you will not experience our targeted advertising across different websites."},
GroupName:{Text:"Targeting Cookies"},IsDntEnabled:!1}],Cookies:[{Name:"_gcl_au",Host:".onetrust.com",IsSession:!1,Length:89}],Purposes:[],CustomGroupId:null,GroupId:71858},GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Active"},GroupDescription:{Text:""},GroupName:{Text:"LinkedIn"},IsDntEnabled:!1}],Cookies:[{Name:"BizoID",Host:".ads.linkedin.com",IsSession:!1,Length:29},{Name:"lidc",Host:".linkedin.com",IsSession:!1,Length:0},{Name:"UserMatchHistory",Host:".ads.linkedin.com",IsSession:!1,Length:29},
{Name:"lang",Host:".ads.linkedin.com",IsSession:!0,Length:0},{Name:"bcookie",Host:".linkedin.com",IsSession:!1,Length:373},{Name:"__utma",Host:".linkedin.com",IsSession:!1,Length:373},{Name:"__utmv",Host:".linkedin.com",IsSession:!1,Length:373},{Name:"__qca",Host:".linkedin.com",IsSession:!1,Length:191},{Name:"visit",Host:"www.linkedin.com",IsSession:!1,Length:291}],Purposes:[],CustomGroupId:null,GroupId:71863},{ShowInPopup:!0,Order:4,OptanonGroupId:106,Parent:{ShowInPopup:!0,Order:4,OptanonGroupId:4,
Parent:null,GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Inactive"},GroupDescription:{Text:"These cookies are set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant ads on other sites. They work by uniquely identifying your browser and device. If you do not allow these cookies, you will not experience our targeted advertising across different websites."},GroupName:{Text:"Targeting Cookies"},IsDntEnabled:!1}],
Cookies:[{Name:"_gcl_au",Host:".onetrust.com",IsSession:!1,Length:89}],Purposes:[],CustomGroupId:null,GroupId:71858},GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Active"},GroupDescription:{Text:""},GroupName:{Text:"Pardot"},IsDntEnabled:!1}],Cookies:[{Name:"lpv190812",Host:"pi.pardot.com",IsSession:!1,Length:0},{Name:"pardot",Host:"pi.pardot.com",IsSession:!0,Length:0},{Name:"visitor_id#####",Host:".pardot.com",IsSession:!1,Length:3649}],Purposes:[],CustomGroupId:null,GroupId:71866},{ShowInPopup:!0,
Order:4,OptanonGroupId:4,Parent:null,GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Inactive"},GroupDescription:{Text:"These cookies are set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant ads on other sites. They work by uniquely identifying your browser and device. If you do not allow these cookies, you will not experience our targeted advertising across different websites."},GroupName:{Text:"Targeting Cookies"},
IsDntEnabled:!1}],Cookies:[{Name:"_gcl_au",Host:".onetrust.com",IsSession:!1,Length:89}],Purposes:[],CustomGroupId:null,GroupId:71858},{ShowInPopup:!0,Order:5,OptanonGroupId:0,Parent:{ShowInPopup:!0,Order:0,OptanonGroupId:1,Parent:null,GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Always Active"},GroupDescription:{Text:"These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site may not work then."},
GroupName:{Text:"Strictly Necessary Cookies"},IsDntEnabled:!1}],Cookies:[],Purposes:[],CustomGroupId:null,GroupId:71860},GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Active"},GroupDescription:{Text:"These cookies are set by the OneTrust Cookie Consent \x26 Website Scanning solution."},GroupName:{Text:"OneTrust Cookie Consent"},IsDntEnabled:!1}],Cookies:[{Name:"OptanonConsent",Host:"onetrust.com",IsSession:!1,Length:365},{Name:"OptanonAlertBoxClosed",Host:"onetrust.com",IsSession:!1,Length:365}],
Purposes:[],CustomGroupId:null,GroupId:81403},{ShowInPopup:!0,Order:5,OptanonGroupId:101,Parent:{ShowInPopup:!0,Order:4,OptanonGroupId:4,Parent:null,GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Inactive"},GroupDescription:{Text:"These cookies are set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant ads on other sites. They work by uniquely identifying your browser and device. If you do not allow these cookies, you will not experience our targeted advertising across different websites."},
GroupName:{Text:"Targeting Cookies"},IsDntEnabled:!1}],Cookies:[{Name:"_gcl_au",Host:".onetrust.com",IsSession:!1,Length:89}],Purposes:[],CustomGroupId:null,GroupId:71858},GroupLanguagePropertiesSets:[{DefaultStatus:{Text:"Active"},GroupDescription:{Text:""},GroupName:{Text:"YouTube"},IsDntEnabled:!1}],Cookies:[{Name:"HSID",Host:".youtube.com",IsSession:!1,Length:599},{Name:"demographics",Host:".youtube.com",IsSession:!1,Length:409},{Name:"VISITOR_INFO1_LIVE",Host:".youtube.com",IsSession:!1,Length:113},
{Name:"APISID",Host:".youtube.com",IsSession:!1,Length:599},{Name:"LOGIN_INFO",Host:".youtube.com",IsSession:!1,Length:599},{Name:"SAPISID",Host:".youtube.com",IsSession:!1,Length:599},{Name:"YSC",Host:".youtube.com",IsSession:!0,Length:0},{Name:"SSID",Host:".youtube.com",IsSession:!1,Length:599},{Name:"SID",Host:".youtube.com",IsSession:!1,Length:599}],Purposes:[],CustomGroupId:null,GroupId:71861}],ConsentModel:{Name:"Opt-in"},Language:{Culture:"en-GB"},showBannerCloseButton:!1,ShowPreferenceCenterCloseButton:!1,
FooterDescriptionText:" [Cookie Notice](https://onetrust.com/cookie-policy/) ",IsDntEnabled:!1,CustomJs:null,LifespanTypeText:null,LifespanDurationText:null,IsConsentLoggingEnabled:!1,IsIabThirdPartyCookieEnabled:!0,CloseText:"Close",BannerCloseButtonText:"Close",OnClickAcceptAllCookies:!1,ScrollAcceptsAllCookiesAndClosesBanner:!1});return ta}function ob(){for(var b=t(),e=document.getElementsByTagName("script"),g=0;g<e.length;++g){var h;h=e[g];var f=b.cctId;h=h.getAttribute("src")?-1!==h.getAttribute("src").indexOf(f):
!1;if(h){ha=Ya(e[g].src);break}}}function W(b){var e=Ya(b);ha&&e&&ha.hostname!==e.hostname&&(b=b.replace(e.hostname,ha.hostname));return b}function Ya(b){var e=document.createElement("a");e.href=b;return e}function ua(b){var e=document.querySelector("#optanon-popup-wrapper");13===b.keyCode&&e.focus()}function pb(b){var e=document.querySelector(".optanon-toggle-display.cookie-settings-button");27===b.keyCode&&(e.focus(),va(b))}function va(b){var e=document.querySelector(".optanon-close-ui"),g=document.querySelector("#optanon-popup-top").children[0],
f=document.querySelector("#optanon-popup-bottom").children,m=document.querySelector("#optanon-menu").children,n=document.querySelector("#optanon-vendor-consent-text"),q=document.querySelector("#optanon");if(13===b.keyCode||27===b.keyCode)I(),document.querySelector(".optanon-toggle-display.cookie-settings-button").focus(),g?g.removeEventListener("keydown",ia):m[0].removeEventListener("keydown",ia),0<f.length&&("block"===document.querySelector(".optanon-button-wrapper.optanon-allow-all-button.optanon-allow-all").style.display?
f[f.length-1].removeEventListener("keydown",ja):f[f.length-2].removeEventListener("keydown",ja)),m[m.length-1].removeEventListener("keydown",Za),q.removeEventListener("keyup",ua),n&&n.removeEventListener("keyup",ua),e&&e.removeEventListener("keydown",va)}function Za(b){9!==b.keyCode||b.shiftKey||(document.querySelector(".optanon-white-button-middle \x3e button").removeAttribute("tabindex"),document.querySelector(".optanon-allow-all \x3e .optanon-white-button-middle \x3e button").removeAttribute("tabindex"))}
function ja(b){var e=document.querySelector("#optanon-popup-wrapper"),g=g=document.querySelector(".optanon-allow-all \x3e .optanon-white-button-middle \x3e button");9===b.keyCode&&e.focus();9!==b.keyCode||b.shiftKey||(document.querySelector(".optanon-white-button-middle \x3e button").removeAttribute("tabindex"),g.removeAttribute("tabindex"));9===b.keyCode&&b.shiftKey&&document.querySelector("#optanon-popup-bottom \x3e a").focus()}function ia(b){var e=document.querySelector(".optanon-allow-all \x3e .optanon-white-button-middle \x3e button"),
g=document.querySelector(".optanon-white-button-middle \x3e button");9===b.keyCode&&b.shiftKey&&(g.setAttribute("tabindex",5),e.setAttribute("tabindex",4));9!==b.keyCode||b.shiftKey||(g.removeAttribute("tabindex"),e.removeAttribute("tabindex"))}function oa(b){var e=!1,g=$a(window.location.href),h=f("\x3cdiv\x3e\x3c/div\x3e");h.html(b);b=f("a",h);for(h=0;h<b.length;h++)if($a(b[h].href)==g){e=!0;break}return e}function $a(b){return b.toLowerCase().replace(/(^\w+:|^)\/\//,"").replace("www.","")}function qb(){"function"!=
typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(b,e){if(null==b)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(b),f=1;f<arguments.length;f++){var m=arguments[f];if(null!=m)for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&(g[n]=m[n])}return g},writable:!0,configurable:!0})}function rb(){Array.prototype.fill||Object.defineProperty(Array.prototype,"fill",{value:function(b,e,g){if(null==this)throw new TypeError("this is null or not defined");
var f=Object(this),m=f.length>>>0;e>>=0;e=0>e?Math.max(m+e,0):Math.min(e,m);g=void 0===g?m:g>>0;for(m=0>g?Math.max(m+g,0):Math.min(g,m);e<m;)f[e]=b,e++;return f}})}function sb(){var b=0;f(".banner-content a").length&&f(".banner-content a").each(function(e,g){f(g).addClass("banner-policy-link");f(g).attr("tabindex",++b);f(g).attr("aria-label",f(g).text())});f(".cookie-settings-button").length&&f(".cookie-settings-button").attr("tabindex",++b);f(".accept-cookies-button").length&&f(".accept-cookies-button").attr("tabindex",
++b);f(".banner-close-button").length&&f(".banner-close-button").attr("tabindex",++b)}function Na(b,e){var g=document.querySelector(b),f=setInterval(function(){g.style.opacity||(g.style.opacity=1);0<g.style.opacity?g.style.opacity-=.1:(g.style.display="none",clearInterval(f))},e)}function tb(){$.ajax({type:"GET",crossDomain:!0,dataType:"json",url:"https://geolocation.onetrust.com/cookieconsentpub/v1/geo/countries/EU?callback\x3d?"}).fail(function(b){200!==b.status&&window.jsonFeed({displayPopup:!0})})}
function ub(){var b=document.createElement("script"),e=document.createElement("script");b.type="text/javascript";b.src="https://code.jquery.com/jquery-3.3.1.min.js";b.integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8\x3d";b.crossOrigin="anonymous";e.type="text/javascript";e.src="https://code.jquery.com/jquery-1.11.2.min.js";e.integrity="sha256-Ls0pXSlb7AYs7evhd+VLnWsZ/AqEHcXBeMZUycz/CcA\x3d";e.crossOrigin="anonymous";document.getElementsByTagName("head")[0].appendChild(b);b.onload=b.onreadystatechange=
function(){this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(tb(),eb())}}String.prototype.includes||(String.prototype.includes=function(b,e){"number"!==typeof e&&(e=0);return e+b.length>this.length?!1:-1!==this.indexOf(b,e)});var X=!1,Ra="yes"==navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack,Xa=function(){var b=!0,e,g=t(),f;for(f=0;f<g.Groups.length;f+=1)if(e=g.Groups[f],E(e)&&(!A(e)||A(e)&&("active"==A(e).toLowerCase()||"inactive landingpage"==
A(e).toLowerCase()||"do not track"==A(e).toLowerCase()))){b=!1;break}return b}(),db=function(){var b=!0,e,g=t(),f;for(f=0;f<g.Groups.length;f+=1)if(e=g.Groups[f],E(e)&&(e=A(e).toLowerCase(),"inactive landingpage"!==e&&"always active"!==e)){b=!1;break}return b}(),qa=!1,w,ra=[],sa=[],R=[],S=[],H=t().AboutCookiesText,ha=null,B=!1,ka=!1,ta,N=!1,U={KEEPCENTERTILEBANNEROPEN:"keepBannerOpen",IMPLIEDCONSENT:"implied consent",FIRSTPAGEVIEW:"firstPageView"},f;this.loadDefaultBannerGroup=function(b){t();z("OptanonConsent",
"EU")&&xa("OptanonConsent","EU",b&&b.displayPopup?b.displayPopup:N);ya();f(window).one("otloadbanner",function(){P();Aa();Ba();var b=t(),g='\x3cdiv class\x3d"optanon-alert-box-wrapper " role\x3d"alertdialog" aria-labelledby\x3d"alert-box-title" aria-describedby\x3d"alert-box-message" style\x3d"display:none"\x3e\x3cdiv class\x3d"optanon-alert-box-bottom-top"\x3e';b.showBannerCloseButton&&(b.BannerCloseButtonText||(b.BannerCloseButtonText="Close"),g=g+'\x3cdiv class\x3d"optanon-alert-box-corner-close"\x3e\x3cbutton class\x3d"optanon-alert-box-close banner-close-button" aria-label\x3d"'+
b.BannerCloseButtonText+'" title\x3d"'+b.BannerCloseButtonText+"\" onClick\x3d\"Optanon.TriggerGoogleAnalyticsEvent('OneTrust Cookie Consent', 'Banner Close Button');\"\x3e\x3c/button\x3e\x3c/div\x3e");g=g+'\x3c/div\x3e\x3cdiv class\x3d"optanon-alert-box-bg"\x3e\x3cdiv class\x3d"optanon-alert-box-logo"\x3e \x3c/div\x3e\x3cdiv class\x3d"optanon-alert-box-body"\x3e\x3cp class\x3d"optanon-alert-box-title legacy-banner-title'+(b.BannerTitle?"":" sr-only")+'" id\x3d"alert-box-title" role\x3d"heading" aria-level\x3d"2"\x3e'+
(b.BannerTitle?b.BannerTitle:"Cookie Notice")+"\x3c/p\x3e";g=g+'\x3cp class\x3d"banner-content" id\x3d"alert-box-message"\x3e'+b.AlertNoticeText+'\x3c/p\x3e\x3c/div\x3e\x3cdiv class\x3d"optanon-clearfix"\x3e\x3c/div\x3e\x3cdiv class\x3d"optanon-alert-box-button-container"\x3e\x3cdiv class\x3d"optanon-alert-box-button optanon-button-close"\x3e\x3cdiv class\x3d"optanon-alert-box-button-middle"\x3e\x3cbutton class\x3d"optanon-alert-box-close" aria-label\x3d"'+b.AlertCloseText+'"\x3e'+b.AlertCloseText+
"\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e";0>=g.indexOf("hide-accept-button")&&(g=g+'\x3cdiv class\x3d"optanon-alert-box-button optanon-button-allow"\x3e\x3cdiv class\x3d"optanon-alert-box-button-middle accept-cookie-container"\x3e\x3cbutton class\x3d"optanon-allow-all accept-cookies-button" title\x3d"'+b.AlertAllowCookiesText+'" aria-label\x3d"'+b.AlertAllowCookiesText+"\" onClick\x3d\"Optanon.TriggerGoogleAnalyticsEvent('OneTrust Cookie Consent', 'Banner Accept Cookies');\"\x3e"+b.AlertAllowCookiesText+
"\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e");0>=g.indexOf("hide-cookie-setting-button")&&(g=g+'\x3cdiv class\x3d"optanon-alert-box-button optanon-button-more"\x3e\x3cdiv class\x3d"optanon-alert-box-button-middle"\x3e\x3cbutton class\x3d"optanon-toggle-display cookie-settings-button" title\x3d"'+b.AlertMoreInfoText+'" aria-label\x3d"'+b.AlertMoreInfoText+"\" onClick\x3d\"Optanon.TriggerGoogleAnalyticsEvent('OneTrust Cookie Consent', 'Banner Open Preferences');\"\x3e"+b.AlertMoreInfoText+"\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e");
g+='\x3c/div\x3e\x3cdiv class\x3d"optanon-clearfix optanon-alert-box-bottom-padding"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e';f("#optanon").before(g);sb();mb();0<f(".optanon-show-settings").length&&Ca();0<f("#optanon-cookie-policy").length&&Da();ea();z("OptanonConsent","groups")||K("OptanonConsent");Ea()})};this.useGeoLocationService=!0;this.LoadBanner=function(){f(window).trigger("otloadbanner")};this.Init=function(){qb();rb();ob();Ta();(function(){function b(b,g){g=g||{bubbles:!1,cancelable:!1,
detail:void 0};var e=document.createEvent("CustomEvent");e.initCustomEvent(b,g.bubbles,g.cancelable,g.detail);return e}if("function"===typeof window.CustomEvent)return!1;b.prototype=window.Event.prototype;window.CustomEvent=b})();V(!1);bb();cb();ub()};this.InsertScript=function(b,e,g,f,m,n){var h=null!=f&&"undefined"!=typeof f,t;if(Y(m,h&&"undefined"!=typeof f.ignoreGroupCheck&&1==f.ignoreGroupCheck||X)&&!L(ra,m)){R.push(m);h&&"undefined"!=typeof f.deleteSelectorContent&&1==f.deleteSelectorContent&&
Va(e);m=document.createElement("script");null!=g&&"undefined"!=typeof g&&(t=!1,m.onload=m.onreadystatechange=function(){t||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(t=!0,g())});m.type="text/javascript";m.src=b;n&&(m.async=n);switch(e){case "head":document.getElementsByTagName("head")[0].appendChild(m);break;case "body":document.getElementsByTagName("body")[0].appendChild(m);break;default:document.getElementById(e)&&(document.getElementById(e).appendChild(m),h&&"undefined"!=
typeof f.makeSelectorVisible&&1==f.makeSelectorVisible&&fa(e))}if(h&&"undefined"!=typeof f.makeElementsVisible)for(b=0;b<f.makeElementsVisible.length;b+=1)fa(f.makeElementsVisible[b]);if(h&&"undefined"!=typeof f.deleteElements)for(h=0;h<f.deleteElements.length;h+=1)Wa(f.deleteElements[h])}};this.InsertHtml=function(b,e,f,h,m){var g=null!=h&&"undefined"!=typeof h;if(Y(m,g&&"undefined"!=typeof h.ignoreGroupCheck&&1==h.ignoreGroupCheck||X)&&!L(sa,m)){S.push(m);g&&"undefined"!=typeof h.deleteSelectorContent&&
1==h.deleteSelectorContent&&Va(e);m=document.getElementById(e);var q;m&&(q=document.createElement("div"),q.innerHTML=b,m.appendChild(q));g&&"undefined"!=typeof h.makeSelectorVisible&&1==h.makeSelectorVisible&&fa(e);if(g&&"undefined"!=typeof h.makeElementsVisible)for(b=0;b<h.makeElementsVisible.length;b+=1)fa(h.makeElementsVisible[b]);if(g&&"undefined"!=typeof h.deleteElements)for(g=0;g<h.deleteElements.length;g+=1)Wa(h.deleteElements[g]);null!=f&&"undefined"!=typeof f&&f()}};this.Close=function(b){t();
!b&&T();I();M("NotLandingPage");K("OptanonConsent");P();V(!1);ea()};this.AllowAll=function(b){var e=t(),g;M("NotLandingPage");w=[];for(g=0;g<e.Groups.length;g+=1)b=e.Groups[g],E(b)&&w.push(u(b)+":1");f("#optanon #optanon-menu li").removeClass("menu-item-off");f("#optanon #optanon-menu li").addClass("menu-item-on");I();K("OptanonConsent");P();V(!0);ea()};this.ToggleInfoDisplay=function(){var b=t();b.ForceConsent&&(oa(b.AlertNoticeText)||f("#optanon-popup-bg").css({"z-index":"2147483645"}));if(f("#optanon #optanon-popup-bg, #optanon #optanon-popup-wrapper").is(":hidden")){nb();
for(var b=document.querySelector("#optanon-vendor-consent-text"),e=document.querySelector("#optanon-popup-top").children,g=document.querySelector("#optanon-popup-bottom").children,h=document.querySelector("#optanon-menu").children,m=document.querySelector(".optanon-close-ui"),n=document.querySelector("#optanon"),q=[],u=[],v=0;v<e.length;v++)"none"!==e[v].style.display&&q.push(e[v]);for(v=0;v<g.length;v++)"none"!==g[v].style.display&&u.push(g[v]);0<q.length?e[0].addEventListener("keydown",ia):h[0].addEventListener("keydown",
ia);0<u.length&&("block"===document.querySelector(".optanon-button-wrapper.optanon-allow-all-button.optanon-allow-all").style.display?u[u.length-1].addEventListener("keydown",ja):u[u.length-2].addEventListener("keydown",ja));h[h.length-1].addEventListener("keydown",Za);n.addEventListener("keyup",pb);b&&b.addEventListener("keyup",ua);m&&m.addEventListener("keydown",va)}else I(),K("OptanonConsent"),P(),V(!1),ea()};this.BlockGoogleAnalytics=function(b,e){window["ga-disable-"+b]=!Y(e)};this.TriggerGoogleAnalyticsEvent=
function(b,e,f,h){"undefined"!=typeof _gaq&&_gaq.push(["_trackEvent",b,e,f,h]);"undefined"!=typeof ga&&ga("send","event",b,e,f,h);"undefined"!=typeof dataLayer&&dataLayer.constructor===Array&&dataLayer.push({event:"trackOptanonEvent",optanonCategory:b,optanonAction:e,optanonLabel:f,optanonValue:h})};this.IsAlertBoxClosed=this.IsAlertBoxClosedAndValid=function(){var b=t(),e=D("OptanonAlertBoxClosed"),b=b.LastReconsentDate;if(null===e)return!1;if(!b)return!0;(e=new Date(b)>new Date(e))&&Optanon.ReconsentGroups();
return!e};this.ReconsentGroups=function(){var b=!1,e=Q(z("OptanonConsent","groups")),f=Q(z("OptanonConsent","groups").replace(/:0/g,"").replace(/:1/g,"")),h=t();if(z("OptanonConsent","groups")){for(var m=0;m<h.Groups.length;m+=1){var n=h.Groups[m];if(E(n)){var q=aa(f,u(n));if(-1!=q){var w=A(n).toLowerCase();-1<["inactive","inactive landingpage","do not track"].indexOf(w)&&(b=!0,w="inactive landingpage"===w?":1":":0",e[q]=u(n)+w)}}}b&&K("OptanonConsent",e)}};this.SetAlertBoxClosed=function(b){var e=
(new Date).toISOString();b?da("OptanonAlertBoxClosed",e,365):da("OptanonAlertBoxClosed",e)};this.GetDomainData=function(){return t()};this.OnConsentChanged=function(b){window.addEventListener("consent.onetrust",b)};this.setGeoLocation=function(b){N=b}}).call(Optanon);if("function"!==typeof window.jsonFeed)var jsonFeed=function(T){Optanon.setGeoLocation(T.displayPopup)};Optanon.Init();
@jb0nd
Copy link

jb0nd commented Jun 27, 2022

***<script src="https://gist.github.com/nedimdragic/cbdbb674391460d9d97d2ba1edd3ff98.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment