1'use strict';function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}var CookieBanner=function(){function a(b){_classCallCheck(this,a),this.root=b,this.button=this.root.querySelector("[data-js=\"cookie-consent\"]"),this.docClick=this.setCookie.bind(this),this.bindEvents(),this.checkCookie()}return _createClass(a,[{key:"setCookie",value:function(){var a=new Date;return a.setTime(a.getTime()+31536000000),document.cookie="cookies=true ; expires="+a.toGMTString()+";path=/",this.root.classList.remove("cookie-banner--show"),document.removeEventListener("click",this.docClick),!1}},{key:"checkCookie",value:function(){0>document.cookie.indexOf("cookies=")&&this.root.classList.add("cookie-banner--show")}},{key:"bindEvents",value:function(){this.button.addEventListener("click",this.setCookie.bind(this))}}]),a}(); 2"use strict";(function(){var a=document.querySelectorAll("p.cta:not(.secondary)");a&&a.forEach(function(a){var b=a.classList.value,c=a.querySelectorAll("a");
2c.forEach(function(a){a.setAttribute("class",b),a.insertAdjacentHTML("afterbegin","<span class=\"icon-menu-arrow\" style=\"background-image: none;\"><svg role=\"presentation\" width=\"10\" height=\"15\" viewBox=\"0 0 10 15\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\"><title>Arrow icon</title><g id=\"C01.02_Navigation_&_Search\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"C01.02_Navigation_Search_Mobile\" transform=\"translate(-281 -169)\" fill=\"#262626\"><g id=\"C01.02_Navigation_Secondary_Links\" transform=\"translate(0 60)\"><g id=\"Nav_item_1\" transform=\"translate(20 91)\"><path d=\"M259.071 20.071h9v2h-8v8h-2v-10h1z\" id=\"Icon_arrow\" transform=\"rotate(135 263.071 25.071)\"></path></g></g></g></g></svg></span>")})});var b=document.querySelectorAll("p.cta.secondary");b&&b.forEach(function(a){var b=a.classList.value,c=a.querySelectorAll("a");c.forEach(function(a){a.setAttribute("class",b)})})})(); 3'use strict';function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}var FeedbackForm=function(){function a(b){_classCallCheck(this,a),this.root=b,this.form=this.root.querySelector("form"),this.yesInput=this.root.querySelector(".js-feedback-yes"),this.noInput=this.root.querySelector(".js-feedback-no"),this.feedbackValue=this.form.querySelector("[name=useful]"),this.feedbackSubmit=this.root.querySelector(".feedback-submit"),this.feedbackTextarea=this.root.querySelector(".feedback-textarea"),this.successMessage=this.root.querySelector(".feedback-success"),this.yesInput&&this.noInput&&this.form&&this.bindEvents()}return _createClass(a,[{key:"yesClick",value:function(a){a.preventDefault(),this.feedbackValue.value="yes",this.noInput.classList.remove("feedback-link--selected"),this.noInput.setAttribute("aria-expanded","false"),this.yesInput.classList.add("feedback-link--selected"),this.successMessage.classList.remove("feedback-success--show"),this.feedbackTextarea.classList.remove("feedback-textarea--show"),this.feedbackSubmit.classList.remove("feedback-submit--show")}},{key:"noClick",value:function(a){a.preventDefault(),this.feedbackValue.value="no",this.yesInput.classList.remove("feedback-link--selected"),this.noInput.classList.add("feedback-link--selected"),this.noInput.setAttribute("aria-expanded","true"),this.successMessage.classList.remove("feedback-success--show"),this.feedbackTextarea.classList.add("feedback-textarea--show"),this.feedbackSubmit.classList.add("feedback-submit--show")}},{key:"bindEvents",value:function(){this.yesInput.addEventListener("click",this.yesClick.bind(this)),this.noInput.addEventListener("click",this.noClick.bind(this))}}]),a}(); 4"use strict";(function(){var a=document.querySelector(".form-useful .gchoice_1_2_0"),b=document.querySelector(".form-useful .gchoice_1_2_1"),c=document.querySelector(".form-useful"),d=document.querySelector(".form-useful .gform_footer");null===c||window.addEventListener("load",function(){a.addEventListener("click",function(){d.classList.remove("active"),c.submit()}),b.addEventListener("click",function(){d.classList.add("active")})})})(); 5'use strict';function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}var LanguageSelector=function(){function a(b){_classCallCheck(this,a),this.root=b,this.button=this.root.querySelector(".language-selector__button"),this.dropdown=this.root.querySelector(".language-selector__menu"),this.languageLinks=this.dropdown.querySelectorAll(".language-selector__link"),this.bindEvents()}return _createClass(a,[{key:"toggleDropdown",value:function(){var a;a="true"==this.button.getAttribute("aria-expanded")?"false":"true",this.button.setAttribute("aria-expanded",a),"true"==a?this.dropdown.classList.add("language-selector__menu--show"):this.dropdown.classList.remove("language-selector__menu--show")}},{key:"blurHandler",value:function(a){null!=a.relatedTarget&&a.relatedTarget.classList.contains("language-selector__link")||this.toggleDropdown()}},{key:"bindEvents",value:function(){this.button.addEventListener("click",this.toggleDropdown.bind(this)),this.button.addEventListener("blur",this.blurHandler.bind(this));for(var a=0;a<this.languageLinks.length;a++)this.languageLinks[a].addEventListener("blur",this.blurHandler.bind(this))}}]),a}(); 6"use strict";(function(){var a=document.querySelector("html"),b=document.querySelector(".navigation-buttons .menu"),c=document.querySelector(".navigation-buttons .search"),d=document.querySelector("#s"),e=function(b){var c=b.querySelector(".navigation-buttons-text"),e=c.getAttribute("data-open-text"),f=c.getAttribute("data-closed-text");c.innerHTML=c.innerHTML===e?f:e,b.classList.toggle("search-open"),a.classList.toggle("search-open"),d.focus()};b&&b.addEventListener("click",function(){var d=b.querySelector(".navigation-buttons-text");d.innerHTML="Menu"===d.innerHTML?"Close":"Menu",b.classList.toggle("menu-open"),a.classList.toggle("menu-open"),c&&e(c)}),c&&c.addEventListener("click",function(){e(c)})})(); 7'use strict';function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}var Navigation=function(){function a(b){_classCallCheck(this,a),this.root=b,this.html=document.querySelector("html"),this.navigationItems=this.root.querySelectorAll("ul.main > li"),this.menuButton=document.querySelector(".navigation-buttons .menu"),this.menuButtonText=document.querySelector("button.menu .navigation-buttons-text"),this.navMainLinks=this.root.querySelectorAll("ul.main > li:not(.back) > a"),this.subMenus=this.root.querySelectorAll("ul.main > li:not([back]) > .sub-menu"),this.docMMH=this.mobileMenuHandler.bind(this),this.docSBH=this.searchBarHandler.bind(this),this.docMobileSubmenu=this.openMobileSubmenu.bind(this),this.docBBC=this.backBtnClick.bind(this),this.search=document.querySelector(".navigation-search"),this.searchInput=document.querySelector("#s"),this.searchButton=document.querySelector("button.search"),this.searchButtonText=document.querySelector("button.search .navigation-buttons-text"),this.overlay=this.root.querySelector(".overlay"),this.docHover=this.hoverMenuItem.bind(this),this.docLeave=this.leaveMenuItem.bind(this),this.bindEvents(),this.html.classList.contains("mobile")||this.html.classList.contains("tablet")||this.applyListeners()}return _createClass(a,[{key:"hoverMenuItem",value:function(a){var b=a.currentTarget;this.showSubMenu(b)}},{key:"showSubMenu",value:function(a){this.html.classList.contains("mobile")||this.html.classList.contains("tablet")||(a.classList.contains("active")?"":a.classList.add("active"),this.overlay.classList.contains("show")?"":this.overlay.classList.add("show")),a.querySelector("a").setAttribute("aria-expanded","true")}},{key:"leaveMenuItem",value:function(a){var b=a.currentTarget;this.hideSubMenu(b)}},{key:"hideSubMenu",value:function(a){this.html.classList.contains("mobile")||this.html.classList.contains("tablet")||(a.classList.contains("active")?a.classList.remove("active"):"",this.overlay.classList.contains("show")?this.overlay.classList.remove("show"):""),a.querySelector("a").setAttribute("aria-expanded","fal
7se")}},{key:"searchBarHandler",value:function(){this.closeMobileMenu.bind(this),this.html.classList.contains("search-open")?this.closeDesktopSearch():this.openDesktopSearch()}},{key:"openDesktopSearch",value:function(){this.html.classList.add("search-open"),this.root.classList.add("hide"),this.searchButtonText.innerHTML=this.searchButtonText.getAttribute("data-open-text"),this.searchInput.focus()}},{key:"closeDesktopSearch",value:function(){this.html.classList.remove("search-open"),this.root.classList.remove("hide"),this.searchButtonText.innerHTML=this.searchButtonText.getAttribute("data-closed-text")}},{key:"mobileMenuHandler",value:function(){this.root.classList.contains("active")?this.closeMobileMenu(this):this.openMobileMenu(this)}},{key:"openMobileMenu",value:function(){this.html.classList.add("menu-open","search-open"),this.root.classList.add("active"),this.search.classList.add("active"),this.menuButtonText.innerHTML="Close"}},{key:"closeMobileMenu",value:function(){this.html.classList.remove("menu-open","search-open"),this.root.classList.remove("active"),this.search.classList.remove("active"),this.menuButtonText.innerHTML="Menu",this.root.querySelector(".main").classList.contains("mobile-active")&&(this.root.querySelector(".main").classList.remove("mobile-active"),this.root.querySelector("li.mobile-active .sub-menu").classList.remove("open"),this.root.querySelector("li.mobile-active").removeChild(this.root.querySelector("li.mobile-active p")),this.root.querySelector("li.mobile-active").classList.remove("mobile-active"))}},{key:"openMobileSubmenu",value:function(a){if(this.html.classList.contains("mobile")||this.html.classList.contains("tablet")){var b=document.createElement("p");b.innerHTML="Back",a.currentTarget.insertBefore(b,a.currentTarget.querySelector("a")),a.currentTarget.querySelector(".sub-menu").classList.add("open"),a.currentTarget.classList.add("mobile-active"),a.currentTarget.parentNode.classList.add("mobile-active"),this.search.classList.add("hidden"),a.currentTarget.removeEventListener("click",this.docMobileSubmenu),a.currentTarget.querySelector("p").addEventListener("click",this.docBBC)}}},{key:"backBtnClick",value:function(a){var b=this,c=a.currentTarget.parentNode;c.parentNode.classList.remove("mobile-active"),c.classList.remove("mobile-active"),c.querySelector(".sub-menu").classList.remove("open"),this.search.classList.contains("hidden")&&this.search.classList.remove("hidden"),c.removeChild(a.currentTarget),setTimeout(function(){c.addEventListener("click",b.docMobileSubmenu)},500)}},{key:"keyToMenu",value:function(a,b){var c=a.parentElement.nextElementSibling,d=a.parentElement.previousElementSibling;switch(b.keyCode){case 13:if(!a.nextElementSibling)break;b.preventDefault(),b.stopPropagation(),this.showSubMenu(a.parentNode);break;case 9:if(c&&!b.shiftKey&&"false"==a.getAttribute("aria-expanded")||!a.getAttribute("aria-expanded")||d&&b.shiftKey&&!d.classList.contains("back")){b.preventDefault(),b.stopPropagation();for(var e=0;e<this.subMenus.length;e++)this.subMenus[e].classList.remove("active"),this.subMenus[e].parentNode.classList.remove("active");this.overlay.classList.remove("show"),b.shiftKey?d.querySelector("a").focus():c.querySelector("a").focus()}break;case 39:if(b.preventDefault(),b.stopPropagation(),c){for(var f=0;f<this.subMenus.length;f++)this.subMenus[f].parentNode.classList.remove("active");this.overlay.classList.remove("show"),c.querySelector("a").focus()}break;case 37:b.preventDefault(),b.stopPropagation();for(var g=0;g<this.subMenus.length;g++)this.subMenus[g].parentNode.classList.remove("active");this.overlay.classList.remove("show"),d.querySelector("a").focus();}}},{key:"keyToSubMenu",value:function(a,b){var c=a.parentElement,d=c.nextElementSibling,e=c.previousElementSibling;switch(b.keyCode){case 39:b.preventDefault(),b.stopPropagation(),a.classList.remove("active"),c.classList.remove("active"),d.classList.add("active"),d.querySelector("a").focus();break;case 37:b.preventDefault(),b.stopPropagation(),a.classList.remove("active"),c.classList.remove("active"),e.classList.add("active"),e.querySelector("a").focus();}}},{key:"subItemBlurHandler",value:function(a,b,c){var d,e=!0;for(d=0;d<b.length;d+=1)c.relatedTarget==b[d]&&(e=!1);e&&(a.parentElement.classList.remove("active"),this.hideSubMenu(a))}},{key:"applyListeners",value:function(){var a;for(a=0;a<this.navMainLinks.length;a+=1){var b=void 0,c=void 0;if(this.navMainLinks[a].addEventListener("keydown",this.keyToMenu.bind(this,this.navMainLinks[a])),b=this.navMainLinks[a].parentElement.querySelectorAll(".sub-menu li a"))for(c=0;c<b.length;c+=1)b[c].addEventListener("focus",this.showSubMenu.bind(this,this.navMainLinks[a].parentElement.querySelector(".sub-menu"))),b[c].addEventListener("blur",this.subItemBlurHandler.bind(this,this.navMainLinks[a].parentElement.querySelector(".sub-menu"),b)),b[c].addEventListener("keydown",this.keyToSubMenu.bind(this,this.navMainLinks[a].parentElement.querySelector(".sub-menu")))}}},{key:"bindEvents",value:function(){this.menuButton.addEventListener("click",this.docMMH),this.searchButton.addEventListener("click",this.docSBH);for(var a=0;a<this.navigationItems.length;a++)this.navigationItems[a].querySelector(".sub-menu")&&(this.navigationItems[a].addEventListener("click",this.docMobileSubmenu),this.navigationItems[a].addEventListener("mouseover",this.docHover),this.navigationItems[a].addEventListener("mouseleave",this.docLeave))}}]),a}(); 8"use strict";(function(){var a=document.querySelector("#pagewrap");jQuery(document).on("pumAfterOpen",function(){var b=document.querySelector(".pum-container");b.classList.contains("active")&&(a.style.marginTop=b.clientHeight+"px")}),jQuery(document).on("pumAfterClose",function(){a.style.marginTop=null})})(); 9'use strict';function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}var SearchResultPage=function(){function a(b){_classCallCheck(this,a),this.root=b,this.link=this.root.querySelector("a"),this.bindEvents()}return _createClass(a,[{key:"launchClick",value:function(){this.link.click()}},{key:"bindEvents",value:function(){this.root.addEventListener("click",this.launchClick.bind(this))}}]),a}(); 10"use strict";(function(){var a=function(a){var b=a.querySelector(".cta"),c=a.querySelector(".video-modal-wrapper"),d=a.querySelector(".video-modal"),e=a.querySelector(".close-modal"),f=new Plyr(d,{controls:[],settings:[],tooltips:{seek:!1},invertTime:!1,youtube:{noCookie:!0,controls:!0},vimeo:{noCookie:!0,controls:!0}});b.addEventListener("click",function(a){a.preventDefault(),c.setAttribute("aria-hidden",!1),f.play()}),e.addEventListener("click",function(){c.setAttribute("aria-hidden",!0),f.stop()})},b=document.querySelectorAll(".single-resource-item__download");b.forEach(function(b){var c=b.querySelector(".cta"),d=c.getAttribute("href"),e=d.includes("you"),f=d.includes("vimeo");if(e||f){var g=document.createElement("div");g.setAttribute("class","video-modal-wrapper"),g.setAttribute("aria-hidden",!0),b.appendChild(g);var h=document.createElement("div");h.setAttribute("class","video-modal"),h.setAttribute("data-plyr-provider",e?"youtube":"vimeo"),h.setAttribute("data-plyr-embed-id",d),g.appendChild(h);var i=document.createElement("button"),j=document.createTextNode("Close");i.setAttribute("class","close-modal"),i.appendChild(j),g.appendChild(i),a(b)}})})();
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.