1'use strict';this.TNC=this.TNC||{}; 2this.TNC.BrowserStorage=function(){class c{constructor(){this.initialize()}initialize(){}getCookie(h){return(h=document.cookie.match(new RegExp(h+"\x3d([^;]+)")))?h[1]:!1}setCookie(h,d,e){var a="";e&&(a=new Date,a.setTime(a.getTime()+864E5*e),a="; expires\x3d"+a.toUTCString());document.cookie=h+"\x3d"+(d||"")+a+"; path\x3d/"}deleteCookie(h){document.cookie=h+"\x3d; Path\x3d/; Expires\x3dThu, 01 Jan 1970 00:00:01 GMT;"}setSession(h,d){window.sessionStorage?window.sessionStorage.setItem(h,d):this.setCookie(h, 3d)}getSession(h){if(window.sessionStorage)return h=window.sessionStorage.getItem(h),void 0===h||null===h?!0:!1;this.getCookie(h)}getSessionStorageData(h){if(window.sessionStorage)return window.sessionStorage.getItem(h)}}return new c}();this.TNC=this.TNC||{}; 4this.TNC.XHR=function(c){class h{constructor(){this.ajaxConfig={url:"",contentType:"application/json; charset\x3dutf-8",dataType:"json",method:"GET",data:null,async:!0,headers:{},beforeSend(){},complete(){},statusCode:{401:function(){}}}}makeConfigObj(d){c.extend(this.ajaxConfig,d);return this.ajaxConfig}initXHR(d){d=this.makeConfigObj(d);return d.url?c.ajax(d).catch(function(e,a,b){window.log(e,a,b);throw Error(a);}):!1}}return new h}($);this.TNC=this.TNC||{}; 5this.TNC.Utility=function(c,h,d){let e=[];class a{constructor(){this.consoleLog();this.checkCookieOptins();this.trackDonateCTAEvents();this.trackPhoneCallEvents();this.env="prod";window.addEventListener("load",function(){function b(){for(;e.length;){let f=e.shift();"link"===f.event?utag.link(f.obj):utag.view(f.obj)}}if("undefined"!==typeof utag&&utag.handler&&1===utag.handler.iflag)b();else{let f=window.setInterval(function(){"undefined"!==typeof utag&&utag.handler&&1===utag.handler.iflag&&(b(),window.clearInterval(f))}, 62E3)}},!1)}consoleLog(){window.log=function(){log.history=log.history||[];log.history.push(arguments);this.console&&"prod"!==this.env&&console.log(Array.prototype.slice.call(arguments))}}utagLink(b){"undefined"!==typeof utag&&utag.handler&&1===utag.handler.iflag&&"undefined"===typeof timerFunction?utag.link(b):e.push({event:"link",obj:b})}utagView(b){"undefined"!==typeof utag&&utag.handler&&1===utag.handler.iflag&&"undefined"===typeof timerFunction?utag.view(b):e.push({event:"view",obj:b})}checkCookieOptins(){var b= 7h.getCookie("OptanonConsent");b&&(b=decodeURIComponent(b).match(/C000(.*),C000(.*):([0-1])/),this.parseCookieFragment(b[0]),this.checkGeolocation())}parseCookieFragment(b){let f={};b.split(",").map(g=>g.split(":")).reduce((g,k)=>{g[k[0]]=k[1];return g},f);this.cookieConsents=f}checkGeolocation(){var b=c("body").data("geolocationapi"),f={contentType:"application/x-www-form-urlencoded; charset\x3dUTF-8",url:b};return b?(b=h.getCookie("gLS"))?(f=new c.Deferred,f.resolve(JSON.parse(b)),f.promise()):d.initXHR(f).then(g=> 8{const k={response:{}};k.response["pulse-country"]=g.response["pulse-country"];k.response["pulse-region"]=g.response["pulse-region"];k.response["pulse-two-letter-country"]=g.response["pulse-two-letter-country"];h.setCookie("gLS",JSON.stringify(k));return k}):(f=new c.Deferred,f.reject("No Url"),f.promise())}checkLongLat(){var b=c("body").data("geolocationapi"),f={contentType:"application/x-www-form-urlencoded; charset\x3dUTF-8",url:b};return b?(b=h.getCookie("mapLoc"))?(f=new c.Deferred,f.resolve(JSON.parse(b)), 9f.promise()):d.initXHR(f).then(g=>{if(this.cookieConsents&&this.cookieConsents.C0003&&"1"===this.cookieConsents.C0003){const k={response:{}};k.response["pulse-latitude"]=g.response["pulse-latitude"];k.response["pulse-longitude"]=g.response["pulse-longitude"];h.setCookie("mapLoc",JSON.stringify(k));return g}}):(f=new c.Deferred,f.reject("No Url"),f.promise())}getFragment(b){b=b.trim().toLowerCase();b=b.replaceAll(/[ /]/g,"-");b=b.replaceAll(/[&+]/g,"and");b=b.replaceAll("\x3d","equals");b=b.replaceAll("%", 10"percent");b=b.replaceAll(/[.,'"\u2018\u2019\u201c\u201d?()$*/]/g,"");return b=b.replaceAll(/-+/g,"-")}updateQueryString(b,f,g){g||(g=window.location.href);var k=new RegExp("([?\x26])"+b+"\x3d.*?(\x26|#|$)(.*)","gi");if(k.test(g)){if("undefined"!==typeof f&&null!==f)return g.replace(k,"$1"+b+"\x3d"+f+"$2$3");var l=g.split("#");g=l[0].replace(k,"$1$3").replace(/(&|\?)$/,"");"undefined"!==typeof l[1]&&null!==l[1]&&(g+="#"+l[1]);return g}"undefined"!==typeof f&&null!==f&&(k=-1!==g.indexOf("?")?"\x26": 11"?",l=g.split("#"),g=l[0]+k+b+"\x3d"+f,"undefined"!==typeof l[1]&&null!==l[1]&&(g+="#"+l[1]));return g}updateURL(b,f=null){return history.pushState(f,null,b)}getParameterByName(b,f){f||(f=window.location.href);b=b.replace(/[[]]/g,"\\$\x26");return(b=(new RegExp("[?\x26]"+b+"(\x3d([^\x26#]*)|\x26|#|$)")).exec(f))?b[2]?decode
11URIComponent(b[2].replace(/\+/g," ")):"":null}checkWindowWidth(){this.MqL=1024;let b=window,f="inner";"innerWidth"in window||(f="client",b=document.documentElement||document.body); 12return b[f+"Width"]>=this.MqL?!0:!1}setAnalyticsBase(){return"undefined"!==typeof utag_data?utag_data:{}}setAnalyticsByPage(b,f){if(b){let g=this.setAnalyticsBase();g&&b&&(b=c.extend({},g,b),"undefined"===typeof f?this.utagView(b):this.utagLink(b))}}async trackDonateCTAEvents(){let b=this;var f=await d.initXHR({url:"/bin/tnc/donationplatformurls",type:"GET",dataType:"json"});f=f.platformUrls?JSON.parse(f.platformUrls):[];for(let g of f)c("a[href*\x3d'"+g+"']").off("click").on("click",function(){let k= 13c.trim(c(this).text()),l=c(this).closest(".base-component")&&c(this).closest(".base-component").find("section").attr("id")?c(this).closest(".base-component").find("section").attr("id"):"General CTA";try{l=c(this).parent().parent().hasClass("cd-header-buttons")?"Top Nav Button":l}catch(p){}try{l=c(this).hasClass("c-home-featured__button")?"body_homepage_feature":l}catch(p){}try{l=c(this).hasClass("c-featured-content__button")?"body_featured_content_ini":l}catch(p){}try{l=c(this).hasClass("c-article-cta__button")? 14"body_article_cta":l}catch(p){}b.setAnalyticsByPage({event_name:"member_cta",event_action:`${k}`,link_name:`${k}`,member_cta_name:`${l}`},!0)})}trackPhoneCallEvents(){let b=this;c("a[href^\x3d'tel:']").click(function(){b.setAnalyticsByPage({event_name:"phone_click"},!0)})}checkBrowserLocale(){let b=h.getCookie("browserLocale");b||(b=navigator.userLanguage||navigator.language,h.setCookie("browserLocale",b))}}return new a}($,TNC.BrowserStorage,TNC.XHR);this.TNC=this.TNC||{}; 15this.TNC.FormUtility=function(c,h,d){class e{constructor(){this.setRecaptchaOnClickListener()}checkEmailEngagingNetworks(a){a=encodeURIComponent(a);return c.ajax({url:"/bin/tnc/supporterservice.email.html?cons_email\x3d"+a,type:"post",contentType:"application/json"})}async validateEmailAddress(a){return await h.initXHR({url:`/bin/tnc/freshaddress?email=${a}`,type:"GET",dataType:"json"})}handleFreshAddressResponse(a,b){if("VS"===a.FINDING||"V"===a.FINDING&&""===a.SUGG_EMAIL)return!0;b.find(".c-field__input[type\x3demail").addClass("border-error icon-error-forms").focus(); 16b.find(".freshaddress-error").css("display","block").children().css("display","none");"V"!==a.FINDING&&"W"!==a.FINDING||""===a.SUGG_EMAIL?a.ERROR_RESPONSE&&(b.find(".freshaddress-error .error-response").css("display","inline"),b.find(".freshaddress-error .user-message-1").css("display","none")):(b.find(".freshaddress-error .user-message-1").css("display","inline"),b.find(".freshaddress-error .error-response").css("display","none"));""!==a.SUGG_EMAIL&&(b.find(".freshaddress-error .user-message-2").css("display", 17"inline"),b.find(".freshaddress-error .sugg-email").text(a.SUGG_EMAIL));return!1}fetchEngagingNetworksPageDetails(a){const b={url:"/bin/tnc/supporterservice.pagedetails.html",data:{pageID:a.find("input[name\x3d'pageID']").val()},type:"GET",dataType:"json"};return h.initXHR(b).then(f=>{this.appendExternalRefInputField(a,"txn1",f,null);this.appendExternalRefInputField(a,"txn6",f,"Digital Interaction Code");this.appendExternalRefInputField(a,"txn7",f,"External Vendor ID");this.appendExternalRefInputField(a, 18"txn8",f,"URL Digital Marketing Code");this.appendExternalRefInputField(a,"txn9",f,"Event Additional Designation");this.appendExternalRefInputField(a,"txn10",f,"Global Digital Tag Attribute")})}appendExternalRefInputField(a,b,f,g){const k="general."+b,l="en_"+b,p=(new URL(window.location)).searchParams;b=a.find(`input[name="${k}"]`);if(f=p.get(l)||b.attr("value")||f[g])a=a.find("input[name\x3d'pageID']"),b.length?b.attr("value",f):a.length&&a.before(`<input name="${k}" value="${f}" type="hidden">`)}getWidgetId(a){let b= 190;c(".g-recaptcha").each(function(f){let g=c(this);if(c(g).attr("id")===a)return b=f,!1});return b}setRecaptchaOnClickListener(){let a=c("div[class*\x3d'g-recaptcha']").closest("form");a=c.merge(a,c("form[data-google-recaptcha-url]"));let b=function(){let f=c("head").first(),g=c("\x3cscript defer type\x3d'text/javascript' src\x3d'https://www.google.com/recaptcha/api.js'\x3e\x3c/script\x3e");f.length&&0===f.has("script[src\x3d'https://www.google.com/recaptcha/api.js']").length&&f.append(g);a.off("click", 20b)};a.on("click",b)}captchaSubmit(a,b,f){c.ajax({method:"GET",url:`/bin/tnc/recaptcha?token=${a}`,cache:!1,success:g=>{if(g.success){b.find(".recaptcha-error").css("display","none");b.trigger("submit");for(g=6;10>=g;g++){let k=b.find(`input[name='general.txn${g}']`).first();k.length&&(f["en_txn"+g]=k.attr("value"))}b.attr("campaignId")&&(f.en_campaignId=b.attr("campaignId"));b.attr("form_id")&&(f.form_id=b.attr("form_id"))}else console.log("unable to verify token"),f.event_name="recaptcha_error", 21f.form_field_error_value=g["error-codes"]?g["error-codes"][0]:"unspecified",b.find(".recaptcha-error").css("display","block")},error:function(g){console.error("error submitting token for verification.");f.event_name="recaptcha_error";f.form_field_error_value=g.statusText?g.statusText:g.status;b.find(".recaptcha-error").css("display","block")},complete:function(){d.setAnalyticsByPage(f,!0)}})}}return new e}($,TNC.XHR,TNC.Utility);this.TNC=this.TNC||{}; 22this.TNC.Video=function(c){function h(){window.youtubeApiReady||(window.youtubeApiReady=new Promise(function(a,b){if(window.YT&&window.YT.loaded)a(!0);else{let f=setInterval(function(){window.YT&&window.YT.loaded&&(clearInterval(f),a(!0))},50),g=document.querySelectorAll("script"),k=document.createElement("script");g.forEach(function(l){"https://www.youtube.com/iframe_api"===l.src&&(k=l)});k.onerror=function(){b("Youtube API failed to load")};k.src||(k.src="https://www.youtube.com/iframe_api",g[0].parentNode.insertBefore(k, 23g[0]))}}));return window.youtubeApiReady}function d(){window.vimeoApiReady||(window.vimeoApiReady=new Promise(function(a,b){if(window.Vimeo&&window.Vimeo.Player)a(!0);else{let f=document.querySelectorAll("script"),g=document.createElement("script");f.forEach(function(k){"https://player.vimeo.com/api/player.js"===k.src&&(g=k)});g.onload=function(){a(!0)};g.onerror=function(){b("Vimeo API failed to load")};g.src||(g.src="https://player.vimeo.com/api/player.js",f[0].parentNode.insertBefore(g,f[0]))}})); 24return window.vimeoApiReady}class e{constructor(a,b){this.element=a;this.options=b;this.initialize()}initialize(){console.log("Video module initialize()");let a=this;a.events={READY:"video-ready",STATE_CHANGE:"video-state-change",ERROR:"video-error",PLAY:"video-play",START:"video-start",MILESTONE:"video-milestone-",PAUSE:"video-pause",BUFFER:"video-buffer",CUE:"video-cue",END:"video-end",UNSTARTED:"video-unstarted"};a.$element=c(a.element);a.settings=c.extend(!0,{},{milestones:[50],pollingTime:100}, 25a.options);a.started=!1;a.allMilestonesComplete=!1;
25a.progressPoller=null;a.milestones={};a.videoType=a.getVideoType();a.settings.milestones.forEach(function(b){a.milestones[b.toString()]=!1});switch(a.videoType){case 1:window.youtubeApiReady?window.youtubeApiReady.then(function(){a.initPlayer()}).catch(function(b){console.log(b)}):h().then(function(){a.initPlayer()});break;case 2:window.vimeoApiReady?window.vimeoApiReady.then(function(){a.initPlayer()}).catch(function(b){console.log(b)}):d().then(function(){a.initPlayer()})}}getVideoType(){return this.element.src.includes("youtube")? 261:this.element.src.includes("vimeo")?2:0}initPlayer(){switch(this.videoType){case 1:this.initYoutubePlayer();break;case 2:this.initVimeoPlayer()}}initYoutubePlayer(){let a=this;a.player=new window.YT.Player(a.element,{events:{onReady:function(){a.onReady()},onStateChange:function(b){a.createAndDispatchEvent(a.events.STATE_CHANGE);switch(b.data){case window.YT.PlayerState.UNSTARTED:console.log("YouTube event: UNSTARTED");a.onUnstarted();break;case window.YT.PlayerState.PLAYING:console.log("YouTube event: PLAYING"); 27a.onPlay();break;case window.YT.PlayerState.ENDED:console.log("YouTube event: ENDED");a.onEnd();break;case window.YT.PlayerState.PAUSED:console.log("YouTube event: PAUSED");a.onPause();break;case window.YT.PlayerState.BUFFERING:console.log("YouTube event: BUFFERING");a.onBuffer();break;case window.YT.PlayerState.CUED:console.log("YouTube event: CUED"),a.onCue()}}}});console.log("initYoutubePlayer: _self.player \x3d ",a.player);window.players=window.players||{};window.players[a.element.id]=a.player}initVimeoPlayer(){let a= 28this;a.player=new window.Vimeo.Player(a.element);a.player.on("loaded",function(){console.log("Vimeo event: loaded");a.onReady()});a.player.on("error",function(){console.log("Vimeo event: error");a.onError()});a.player.on("play",function(){console.log("Vimeo event: play");a.onPlay()});a.player.on("pause",function(){console.log("Vimeo event: pause");a.onPause()});a.player.on("ended",function(){console.log("Vimeo event: ended");a.onEnd()});a.player.on("bufferstart",function(){console.log("Vimeo event: bufferstart"); 29a.onBuffer()});console.log("initVimeoPlayer: _self.player \x3d ",a.player)}onReady(){this.createAndDispatchEvent(this.events.READY)}onUnstarted(){this.createAndDispatchEvent(this.events.UNSTARTED);this.half=this.started=!1;clearInterval(this.progressPoller)}onError(){this.createAndDispatchEvent(this.events.ERROR)}onPlay(){let a=this;a.createAndDispatchEvent(a.events.PLAY);if(!a.started)a.onStart();a.allMilestonesComplete||(a.progressPoller=setInterval(function(){for(let b in a.milestones)a.getProgress().then(function(f){if(Number(f)>= 30Number(b)&&!a.milestones[b])a.onPassMilestone(b)}).catch(function(f){console.log(f)})},a.settings.pollingTime))}onStart(){this.started=!0;this.createAndDispatchEvent(this.events.START)}onEnd(){this.half=this.started=!1;this.createAndDispatchEvent(this.events.END);clearInterval(this.progressPoller)}onPause(){this.createAndDispatchEvent(this.events.PAUSE);clearInterval(this.progressPoller)}onBuffer(){this.createAndDispatchEvent(this.events.BUFFER)}onCue(){this.createAndDispatchEvent(this.events.CUE)}onPassMilestone(a){this.milestones[a]= 31!0;this.createAndDispatchEvent(this.events.MILESTONE+a);for(let b in this.milestones)Object.prototype.hasOwnProperty.call(this.milestones,b)&&(this.allMilestonesComplete=this.milestones[b]?!0:!1);this.allMilestonesComplete&&clearInterval(this.progressPoller)}getCurrentTime(){let a;switch(this.videoType){case 1:a=Promise.resolve(this.player.getCurrentTime());break;case 2:a=this.player.getCurrentTime();break;default:a=Promise.reject("unknown video type")}a.catch(function(b){console.log("Cannot retrieve video current time", 32b)});return a}getDuration(){let a;switch(this.videoType){case 1:a=Promise.resolve(this.player.getDuration());break;case 2:a=this.player.getDuration();break;default:a=Promise.reject("unknown video type")}a.catch(function(b){console.log("Cannot retrieve video duration",b)});return a}getProgress(){let a=this,b=a.getDuration().then(function(f){return a.getCurrentTime().then(function(g){return g/f*100})});b.catch(function(f){console.log("Cannot retrieve video progress",f)});return b}getVideoTitle(){let a; 33switch(this.videoType){case 1:a=Promise.resolve(this.player.playerInfo.videoData.title);break;case 2:a=this.player.getVideoTitle();break;default:a=Promise.reject("unknown video type")}a.catch(function(b){console.log("Cannot retrieve video title",b)});return a}getVideoId(){let a;switch(this.videoType){case 1:a=Promise.resolve(this.player.playerInfo.videoData.video_id);break;case 2:a=this.player.getVideoId();break;default:a=Promise.reject("unknown video type")}a.catch(function(b){console.log("Cannot retrieve video ID", 34b)});return a}getMediaType(){return 0<this.$element.closest(".c-modal").length?"video:lightbox":"video:embedded"}createAndDispatchEvent(a){let b=this,f={mediaType:b.getMediaType(),playerType:1===b.videoType?"youtube":2===b.videoType?"vimeo":"unknown"};b.getDuration().then(function(g){f.duration=g;return b.getCurrentTime()}).then(function(g){f.currentTime=g;return b.getProgress()}).then(function(g){f.progress=Math.round(g);return b.getVideoTitle()}).then(function(g){f.title=g;return b.getVideoId()}).then(function(g){f.videoId= 35g}).then(function(){let g=new window.CustomEvent(a,{bubbles:!0,detail:f});b.element.dispatchEvent(g)})}}c.fn.video=function(a){return this.each(function(b,f){return new e(f,a)})};h();d();return e}($);this.TNC=this.TNC||{}; 36this.TNC.Modal=function(c){class h{constructor(){this.scrollPos=0;this.toggledArr=[];this.activatingElement=null;this.focusableElements=[];this.initialize()}initialize(){this.modal=c(".c-modal");this.body=c("body");this.documentClick=!1;let d=this;c(document).on("touchstart",function(){d.documentClick=!0});c(document).on("touchmove",function(){d.documentClick=!1});c(".triggerModal").on("click touchend",e=>{"click"===e.type&&(d.documentClick=!0);d.documentClick&&(e.preventDefault(),e.stopPropagation(), 37this.scrollPos=c(window).scrollTop(),this.showModal(e))});if(c(".print-modal").length)this.body.on("click touchend",".print-modal",e=>{this.printModal(e)});this.body.on("click touchend",".close-button",e=>{e.preventDefault();e.stopPropagation();this.hideModal(e)});this.body.on("touchend",".c-modal",e=>{e.preventDefault();e.stopPropagation()});c(window).on("click touchstart",e=>{this.windowOnClick(e)});c(document).keydown(e=>
37{27===e.keyCode&&this.hideModal()})}handleTabbing(d){let e,a;0<this.focusableElements.length&& 38(e=this.focusableElements[0],a=this.focusableElements[this.focusableElements.length-1]);d.shiftKey&&9===d.keyCode?0<this.focusableElements.length&&document.activeElement.isEqualNode(e)&&(d.preventDefault(),a.focus()):9===d.keyCode&&0<this.focusableElements.length&&document.activeElement.isEqualNode(a)&&(d.preventDefault(),e.focus())}showModal(d){let e=this;var a=c(d.currentTarget).data("componentuniqueid");const b=document.querySelector(`.c-modal[data-componentuniqueid="${a}"]`),f=c(b);this.activatingElement= 39d.currentTarget;c("body").css("overflow","hidden");c("body").addClass("open-modal");c("*").filter(function(){("fixed"===c(this).css("position")||"sticky"===c(this).css("position")||c(this).hasClass("header")||c(this).is("#back-to-top"))&&"none"!==c(this).css("display")&&this!==f.get(0)&&(e.toggledArr.push(this),c(this).hide())});d=c(`#hidden-${a}`);f.addClass("is-visible");d.length&&(a="video_"+a,a=c(`<iframe src="${d.val()}" 40 frameborder="0" allow="autoplay; encrypted-media" allowfullscreen 41 id="`+a+'"\x3e\x3c/iframe\x3e'),f.find(".iFrameContainer").html(a),a.video());a=c(".c-modal__content");d=a.css("margin-top");a.closest(".c-modal").scrollTop(a[0].offsetTop-parseInt(d));this.focusableElements=b.querySelectorAll('button, [href],\n input:not([type\x3d"hidden"]), select, textarea,\n iframe, [tabindex]:not([tabindex\x3d"-1"])');this.keypressListener=b.addEventListener("keydown",g=>this.handleTabbing(g));if(0<this.focusableElements.length){const g= 42this.focusableElements[0];g&&setTimeout(function(){g.focus()},300)}f.attr("aria-hidden","false")}hideModal(d){try{d&&(d.stopPropagation(),d.stopImmediatePropagation())}catch(e){console.log("Exception in hideModal: ",e)}c.each(this.toggledArr,function(e,a){c(a).show()});d=c(".c-modal");d.removeClass("is-visible");document.querySelectorAll(".c-modal").forEach(e=>{e.removeEventListener("keypress",this.handleKeyPress)});d.attr("aria-hidden","true");c("body").css("overflow","");c("body").removeClass("open-modal"); 43c(".isGhostInTheShell").css("display","none");c(".iFrameContainer").html("");this.activatingElement&&(this.activatingElement.classList.contains("triggerModal")&&this.activatingElement.closest(".c-media-gallery__cell")?(d=this.activatingElement.closest(".c-media-gallery__cell"))&&d.focus():this.activatingElement.focus())}printModal(d){d.preventDefault();d=c(d.currentTarget).parents(".c-modal__content").find(".print-container");c(".modal-container").html(d.html());window.print()}windowOnClick(d){if(0< 44c(".c-modal.is-visible").length){var e=c(d.target),a=e.hasClass("c-modal__content");e=0<e.parents(".c-modal__content").length;!1===a&&!1===e&&this.hideModal(d)}}}return new h}($);this.TNC=this.TNC||{}; 45this.TNC.Common=function(c){class h{constructor(){this.initialize()}initialize(){if(c(".scrollAnimation:not(.showScroll)").length&&1024<window.screen.width)c(window).on("load scroll resize",()=>{this.reveal()});else 1024>=window.screen.width&&c(".scrollAnimation:not(.showScroll)").each((d,e)=>{e.classList.add("showScroll")});c(".c-image-credit_toggle").length&&(this.toggle=c(".c-image-credit_toggle.toggle"),this.toggle.on("click",d=>{d.preventDefault();d.stopPropagation();this.toggleView(d)}),this.toggle.on("keypress", 46d=>{c(d.target).is("a")&&" "===d.key&&(d.preventDefault(),d.stopPropagation(),this.toggleView(d))}))}reveal(){if(0!==c(".scrollAnimation:not(.showScroll)").length){var d=c(window).scrollTop(),e=d+window.innerHeight;c(".scrollAnimation:not(.showScroll)").each((a,b)=>{a=c(b).offset().top-c(b).innerHeight();let f=a+c(b).outerHeight();e>a&&d<f&&b.classList.add("showScroll")})}}toggleView(d){d=c(d.target);const e=d.siblings(".c-image-credit_content.toggle-content");if(0<e.height())c(e).css("height","0"), 47d.addClass("toggle-on"),d.addClass("is-visible");else{c(e).clone().css({position:"absolute",visibility:"hidden",height:"auto",display:"block"}).addClass("slideClone").appendTo(e.parent());var a=c(".slideClone").height();c(".slideClone").remove();c(e).css("height",a+"px");c(e).css("display","block");d.removeClass("toggle-on");d.removeClass("is-visible")}return!1}}return new h}($);this.TNC=this.TNC||{}; 48this.TNC.ReadTime=function(){class c{initialize(h){this.instances=document.querySelectorAll(h)}
48showReadTime(){this.instances.forEach(h=>{h.querySelectorAll(".js-read-time").forEach(d=>{let e=!0;var a=d.parentElement;a&&""===a.textContent.trim()&&(e=!1);a=h.dataset.readTimeTemplate;var b=d.dataset.minutes;if(b){let f=parseInt(b);if(0<f){b=h.dataset.minuteLabelMultiple;1===f&&(b=h.dataset.minuteLabelOne);let g="";a&&b&&(a=a.replace("${minutes}",f),g=a=a.replace("${minuteLabel}",b));0<g.length&&(a="", 49a=e?a+(" | "+g):a+(g.charAt(0).toUpperCase()+g.slice(1)),d.textContent=a,d.style.display="inline")}}})})}}return new c}();this.TNC=this.TNC||{}; 50this.TNC.SEARCH=function(c,h){class d{constructor(){let e=this;this.ret={filteredJSON:[]};this.prop=this.filteredJSON=this.returnObject=null;this.sorted=!1;this.typeMap={STRING:"[object String]",NUMBER:"[object Number]",BOOLEAN:"[object Boolean]",ARRAY:"[object Array]",OBJECT:"[object Object]",FUNCTION:"[object Function]"};this.config={property:null,value:"",wrapper:!0,checkContains:!0,startsWith:!1,matchCase:!1,avoidDuplicates:!0,filter:!1,filterProperty:null,filterValue:"",sort:!1,sortOrder:"asc", 51sortProperty:null,sortEmptyString:!1,comparator:function(a,b){var f="asc"!==e.config.sortOrder?-1:1,g=e.config.sortProperty||e.config.property[0]||e.config.property;a=a[g]||a;b=b[g]||b;a=c.trim(a);b=c.trim(b);a=new Date(a);b=new Date(b);return e.config.sortEmptyStrings||""!==a&&""!==b?a.getTime()<b.getTime()?-1*f:a.getTime()>b.getTime()?1*f:a<b?-1*f:a>b?1*f:0:0}}}getObjectType(e){return Object.prototype.toString.call(e)}filterJSONLoop(e,a){let b=this,f=null;if(c.isEmptyObject(a.property)||!a.property[0])f= 52"config.property is required to filter the JSON object.";if(c.isEmptyObject(f))return e&&"object"===typeof e&&c.each(e,function(g,k){if(-1!==c.inArray(g,a.property)){let r=function(m,n){m=a.wrapper?m:n;a.avoidDuplicates?-1===c.inArray(m,b.ret.filteredJSON)&&b.ret.filteredJSON.push(m):b.ret.filteredJSON.push(m)};if(a.value){g=c.isArray(a.value)?a.value:[a.value];var l={},p=b.getObjectType(k),u=function(m,n,q){if(m===b.typeMap.STRING){m=n.toLowerCase();var t=q.toLowerCase();a.matchCase?(n===q||!a.startsWith&& 53a.checkContains&&-1!==n.indexOf(q)||a.startsWith&&0===n.indexOf(q))&&r(e,n):(m===t||!a.startsWith&&a.checkContains&&-1!==m.indexOf(t)||a.startsWith&&0===m.indexOf(t))&&r(e,n)}else if(m===b.typeMap.NUMBER)n!==parseInt(q)&&n!==parseFloat(q)||r(e,n);else if(m===b.typeMap.BOOLEAN)m=!1,b.getObjectType(q)===b.typeMap.STRING&&"true"==q.toLowerCase()&&(m=!0),n===m&&r(e,n);else if(m===b.typeMap.ARRAY){if(0<n.length)for(t in n)u(b.getObjectType(n[t]),n[t],q)}else m===b.typeMap.OBJECT&&(c.extend(l,a,{value:q}), 54b.filterJSONLoop(n,l))};if(g.forEach)g.forEach(function(m,n){u(p,k,m)});else for(let m in g)Object.prototype.hasOwnProperty.call(g,m)&&u(p,k,g[m])}else r(e,k)}b.filterJSONLoop(k,a)}),b.ret}filterByJson(e,a){let b=[],f=a.filterProperty,g=a.filterValue;c.each(e,function(k,l){let p=0;l[f]&&c.each(l[f],function(u,r){-1!==c.inArray(r,g)&&p++});0<p&&b.push(l)});return b}setAnalyticsEvents(e,a){let b=!1;"search"===e&&(this.config.emptyVal?b={event_name:"asset_search",event_action:this.config.emptyVal,event_category:a.noOfresults, 55search_term:this.config.emptyVal,num_search_results:a.noOfresults,search_type:"press release"}:""!==this.config.value&&(b={event_name:"asset_search",event_action:this.config.value,event_category:a.noOfresults,search_term:this.config.value,num_search_results:a.noOfresults,search_type:"press release"}),b&&"undefined"!==b.search_term&&h.setAnalyticsByPage(b,!0))}find(e,a){this.ret={filteredJSON:[]};if(!a)return e;c.extend(this.config,a);this.prop=this.config.property;this.getObjectType(this.prop)=== 56this.typeMap.STRING&&(this.prop=this.prop.replace(/\s/g,""),this.config.property=this.prop.split(","));this.prop=null;this.config.wrapper&&this.config.property&&1<this.config.property.length&&void 0===a.avoidDuplicates&&(this.config.avoidDuplicates=!0);(this.returnObject=this.filterJSONLoop(e,this.config))&&this.returnObject.filteredJSON&&(this.filteredJSON=0<this.returnObject.filteredJSON.length?this.returnObject.filteredJSON:this.returnObject.filteredJSON[0],e={noOfresults:this.filteredJSON?this.filteredJSON.length: 570},a.currentTargetAnalytics&&this.setAnalyticsEvents("search",e));this.config.filter&&this.getObjectType(this.filteredJSON)===this.typeMap.ARRAY&&this.config.filterProperty&&this.getObjectType(this.config.filterValue)===this.typeMap.ARRAY&&this.getObjectType(this.filteredJSON[0])===this.typeMap.OBJECT&&(this.filteredJSON=this.filterByJson(this.filteredJSON,this.config),a.currentTargetAnalytics&&this.setAnalyticsEvents("filter",{}));this.config.sort&&this.getObjectType(this.filteredJSON)===this.typeMap.ARRAY&& 58(this.config.comparator&&this.getObjectType(this.config.comparator)===this.typeMap.FUNCTION&&this.getObjectType(this.filteredJSON[0])===this.typeMap.OBJECT&&(this.filteredJSON.sort(this.config.comparator),this.sorted=!0),!this.sorted&&this.filteredJSON.sort(this.config.comparator));return this.filteredJSON}}return new d}($,TNC.Utility);this.TNC=this.TNC||{}; 59this.TNC.Select=function(c){class h{constructor(){}initialize(d){this.baseElement=d;this.RESET_AFTER_MS=1E3;this.keysCache=[];this.keysCacheTimer=null}isSafariDesktop(){const d=navigator.userAgent,e=navigator.vendor;let a=!1;/Safari/i.test(d)&&/Apple Computer/.test(e)&&!/Mobi|Android/i.test(d)&&(a=!0);return a}clearKeysCache(){for(;0<this.keysCache.length;)this.keysCache.pop()}resetCacheTimer(){null!==this.keysCacheTimer&&clearTimeout(this.keysCacheTimer);this.keysCacheTimer=window.setTimeout(this.clearKeysCache.bind(this), 60this.RESET_AFTER_MS)}syncCustomItems(d,e){var a=e.find(".c-select__custom-list");a&&(e.find(".c-select__custom-item").remove(),d.find("option").each(function(){var b=c(this),f=b.val();b=b.text();f=c("\x3cli\x3e").addClass("c-select__custom-item").attr("data-value",f).attr("tabindex","-1").text(b);a.append(f)}))}findListItem(d){let e=!1;d=d.toLowerCase();let a=this.baseElement.find(".c-select__custom-list").find("li");for(const b of a)if(c(b).text().toLowerCase().startsWith(d)){c(b).focus();e=!0;break}return e}setUpHybridSelects(){this.baseElement.find(".c-select__select").on("pointerdown", 61d=>{if("touch"===d.pointerType)return!0;
61if(!0===c(d.target).prop("disabled"))return!1;c(d.target).focus();var e=c(d.target).closest(".c-select").find(".c-select__custom").first();if(e){e.closest(".c-select").siblings(".c-select").each(function(){c(this).find(".c-select__custom").first().addClass("c-select__custom--hidden")});!0===e.hasClass("c-select__custom--hidden")&&this.syncCustomItems(c(d.target),e);d=e.closest(".c-select");var a=d.offset().top,b=e.find(".c-select__custom-list"),f=c(window).height()/ 622+c(document).scrollTop();a>f?b.addClass("c-select__custom-list--upward"):b.removeClass("c-select__custom-list--upward");e.hasClass("c-select__custom--hidden")?e.removeClass("c-select__custom--hidden"):e.addClass("c-select__custom--hidden");if(!1===e.hasClass("c-select__custom--hidden")){var g=d.find(".c-select__select").val();g?(e=b.find(".c-select__custom-item"),e.each(function(){var k=c(this);if(k.data("value")===g)return k.focus(),!1})):(e=b.find(".c-select__custom-item"),e.first().focus())}return!1}}); 63this.baseElement.find(".c-select__custom-list").on("mousedown",".c-select__custom-item",d=>{var e=c(d.target);if(e){var a=e.data("value");e.closest(".c-select").find("option").each(function(){var b=c(this);if(b.val()===a)return b.prop("selected","true"),b.trigger("change"),!1});(e=c(d.target).closest(".c-select").find(".c-select__custom").first())&&e.toggleClass("c-select__custom--hidden");c(d.target).closest(".c-select").find(".c-select__select").focus()}});this.baseElement.find(".c-select__custom-list").on("keydown", 64".c-select__custom-item",d=>{var e=d.key,a=c(d.target).closest(".c-select").find(".c-select__custom-item").length,b=c(d.target).closest(".c-select").find(".c-select__custom").first();e=c(d.target).closest(".c-select").find(".c-select__select").first();var f=0;c(d.target).closest(".c-select").find(".c-select__custom-list").find(".c-select__custom-item").each(function(g){!0===c(this).is(":focus")&&(f=g)});if(e)if(e=d.key,"Escape"===e)b.addClass("c-select__custom--hidden");else return"ArrowUp"===e?0< 65f&&(d=c(d.target).prev())&&d.focus():"ArrowDown"===e?f<a-1&&(d=c(d.target).next())&&d.focus():" "===e&&0===this.keysCache.length||"Enter"===e?c(d.target).trigger("mousedown"):(this.keysCache.push(e),this.resetCacheTimer(),d=this.keysCache.join(""),this.findListItem(d)),!1});this.baseElement.find(".c-select__custom-list").on("blur",".c-select__custom-item",d=>{var e=c(d.target).closest(".c-select").find(".c-select__custom").first();if(d.relatedTarget&&(d=c(d.relatedTarget),d.hasClass("c-select__custom-item")|| 66d.hasClass("c-select__select")))return;!e||e.hasClass("c-select__custom--hidden")||this.isSafariDesktop()||e.addClass("c-select__custom--hidden")})}}return new h}($);this.TNC=this.TNC||{}; 67this.TNC.MicroModal=function(c){class h{constructor(){this.defaultConfig={debugMode:!0,disableFocus:!0,disableScroll:!0,onClose:d=>{console.info(`${d.id} is hidden`);c(".nature .header").css("display","block");c(".c-anchor-links").show();c(".c-anchor-links__mobile-button-container").show();c(".c-tab-container-links").show();c("#back-to-top").show();if(d=document.getElementById(`${d.id}`))if(d=d.querySelector("iframe")){let e=d.src;d.src="";d.src=e}},onShow:d=>{console.info(`${d.id} is shown`);c(".nature .header").css("display", 68"none");c(".c-anchor-links").hide();c(".c-anchor-links__mobile-button-container").hide();c(".c-tab-container-links").hide();c("#back-to-top").hide();c(".micromodal--shown .micromodal__close").focus()},openClass:"micromodal--shown"}}}return new h}($);
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.