var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,g,e){b instanceof String&&(b=String(b));for(var f=b.length,h=0;h<f;h++){var k=b[h];if(g.call(e,k,h,b))return{i:h,v:k}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,g,e){b!=Array.prototype&&b!=Object.prototype&&(b[g]=e.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(b,g,e,f){if(g){e=$jscomp.global;b=b.split(".");for(f=0;f<b.length-1;f++){var h=b[f];h in e||(e[h]={});e=e[h]}b=b[b.length-1];f=e[b];g=g(f);g!=f&&null!=g&&$jscomp.defineProperty(e,b,{configurable:!0,writable:!0,value:g})}};$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(b,e){return $jscomp.findInternal(this,b,e).v}},"es6","es3");
(function(b){function g(a){a=a.slice(1);var b=parseInt(a.slice(0,2),16),c=parseInt(a.slice(2,4),16);a=parseInt(a.slice(4,6),16);return 186<.299*b+.587*c+.114*a?"#000000":"#FFFFFF"}b.cookiesDirective=function(a){a=b.extend({explicitConsent:!0,position:"top",duration:10,limit:0,message:null,cookieScripts:null,privacyPolicyUri:"privacy.html",scriptWrapper:function(){},customDialogSelector:null,fontFamily:"helvetica",fontColor:"#FFFFFF",fontSize:"13px",backgroundColor:"#000000",backgroundOpacity:"80",
linkColor:"#CA0000",underlineLink:!0,textButton:null,colorButton:"",positionOffset:"0",animate:!0,callback:function(){}},a);if(e("cookiesDirective"))a.scriptWrapper.call();else{if(0<a.limit){if(e("cookiesDisclosureCount")){var d=e("cookiesDisclosureCount");d++;f("cookiesDisclosureCount",d,1)}else f("cookiesDisclosureCount",1,1);a.limit>=e("cookiesDisclosureCount")&&k(a)}else k(a);a.explicitConsent||a.scriptWrapper.call()}};b.cookiesDirective.loadScript=function(a){a=b.extend({uri:"",appendTo:"body"},
a);var d=String(a.appendTo),c=document.createElement("script");c.src=a.uri;c.type="text/javascript";c.onload=c.onreadystatechange=function(){};switch(a.appendTo){case "head":b("head").append(c);break;case "body":b("body").append(c);break;default:b("#"+d).append(c)}};var e=function(a){a+="=";for(var b=document.cookie.split(";"),c=0;c<b.length;c++){for(var e=b[c];" "==e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(a))return e.substring(a.length,e.length)}return null},f=function(a,b,c){var d=
"";c&&(d=new Date,d.setTime(d.getTime()+864E5*c),d="; expires="+d.toGMTString());document.cookie=a+"="+b+d+"; path=/"},h=function(){var a;if("Microsoft Internet Explorer"==navigator.appName){null!==/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent)&&(a=parseFloat(RegExp.$1));if(8>=a)return!0;if(9==a&&"BackCompat"==document.compatMode)return a=document.createElement("meta"),a.content="IE=EmulateIE8",document.getElementsByTagName("head")[0].appendChild(a),!0}return!1},k=function(a){a.css="fixed";
h()&&(a.position="top",a.css="absolute");var d="";if(a.cookieScripts){d=a.cookieScripts.split(",");var c=d.length,e="";if(1<c){for(var k=0;k<c-1;k++)e+=d[k]+", ";d=" We use "+e.substring(0,e.length-2)+" and "+d[c-1]+" scripts, which all set cookies. "}else d=" We use a "+d[0]+" script which sets cookies."}if(a.customDialogSelector){var l=b("#cookie-dialog");d=l.find("#cookiesdirective");a.explicitConsent?(0==d.find("#epdnotick").length&&(d.append('<div id="epdnotick" style="display: none;">You must tick the "I accept cookies from this site" box to accept</div>'),
console.warn('cookiesDirective: Element with ID "epdnotick" does not exist in custom dialog, so automatically added')),0==d.find("input#epdagree").length&&(d.append('<input type="checkbox" id="epdagree" />'),console.warn('cookiesDirective: Checkbox with ID "epdagree" does not exist in custom dialog, so automatically added')),0==d.find("input#explicitsubmit").length&&(d.append('<input type="submit" id="explicitsubmit" value="Continue" />'),console.warn('cookiesDirective: Submit button with ID "explicitsubmit" does not exist in custom dialog, so automatically added'))):
0==d.find("a#impliedsubmit").length&&(d.append('<input type="submit" id="impliedsubmit" value="Do not show this message again" />'),console.warn('cookiesDirective: Submit button with ID "impliedsubmit" does not exist in custom dialog, so automatically added'));l.find("#epdnotick").css("display","none");"none"!=l.css("display")&&console.error('cookiesDirective: Custom dialog element should have CSS style display: "none".');l.show()}else b("#cookiesdirective").remove(),c='<div id="epd"><div id="cookiesdirective" style="position:'+
(a.css+";"+a.position+":-300px;left:0px;width:100%;"),c+="height:auto;background:"+a.backgroundColor+";opacity:."+a.backgroundOpacity+";",c+="-ms-filter: \u201calpha(opacity="+a.backgroundOpacity+")\u201d; filter: alpha(opacity="+a.backgroundOpacity+");",c+="-khtml-opacity: ."+a.backgroundOpacity+"; -moz-opacity: ."+a.backgroundOpacity+";",c+="color:"+a.fontColor+";",a.message||(a.explicitConsent?(a.message="This site uses cookies. Some of the cookies we ",a.message+="use are essential for parts of the site to operate and have already been set."):
a.message="We have placed cookies on your computer to help make this website better."),a.message+="</p></div>",c=c+'text-align:center;z-index:1000;"><div class="cookie-wrapper" style="position:relative;height:auto;width:90%;padding:10px;margin-left:auto;margin-right:auto;"><div class="mbr-text"><p class="display-7">'+a.message,a.explicitConsent?(c=c+(d+'You may delete and block all cookies from this site, but parts of the site will not work.To find out more about cookies on this website, see our <a style="color:')+
(a.linkColor+";font-weight:bold;"),c+="font-family:"+a.fontFamily+";font-size:"+a.fontSize+';" href="'+a.privacyPolicyUri+'">privacy policy</a>.<br/>',c+='<div id="epdnotick" style="color:#ca0000;display:none;margin:2px;"><span style="background:#cecece;padding:2px;">You must tick the "I accept cookies from this site" box to accept</span></div><div style="margin-top:5px;">I accept cookies from this site <input type="checkbox" name="epdagree" id="epdagree" />&nbsp;<input type="submit" name="explicitsubmit" id="explicitsubmit" value="Continue"/><br/></div></div>'):
c=c+d+('<div class="mbr-section-btn"><a style="margin:0;'+(a.colorButton?" background-color:"+a.colorButton+" !important;color:"+g(a.colorButton)+"!important;":"")+(a.colorButton&&self===top?"border-color:"+a.colorButton+" !important;":"")+'" id="impliedsubmit" class="btn btn-sm btn-primary display-7">'+a.textButton+"</a></div>"),c=(c+"</div></div>").replace(/<a((?:(?!btn).)*?>)/g,'<a style="color: '+a.linkColor+";text-decoration:"+(!0===a.underlineLink||"true"===a.underlineLink?"underline":"none")+
';" $1'),b("body").append(c);var m=a.position.toLowerCase();"top"!=m&&"bottom"!=m&&(m="top");var n=d=null;"top"==m?(d={top:a.positionOffset},n={top:"-300"}):(d={bottom:a.positionOffset},n={bottom:"-300"});c=-1!==location.href.search("privacy.html")?!0:!1;c&&l.remove();b("#cookiesdirective").animate(d,a.animate?1E3:0,function(){a.explicitConsent?b("#explicitsubmit").click(function(){b("#epdagree").is(":checked")?(f("cookiesDirective",1,365),b("#cookiesdirective").animate(n,1E3,function(){b("#cookiesdirective").remove();
location.reload(!0)})):b("#epdnotick").css("display","")}):b("#impliedsubmit").click(function(){b("#impliedsubmit").is("[demo]")||(f("cookiesDirective",1,365),b("#cookiesdirective").animate(n,a.animate?1E3:0,function(){b("#cookiesdirective").remove()}))});0<a.duration&&setTimeout(function(){b("#cookiesdirective").animate({opacity:"0"},2E3,function(){b("#cookiesdirective").css(m,"-300px")})},1E3*a.duration);a.callback()})}})(jQuery);
