vendor: 6,010 bytes, lines 1-10
1/*! SmoothScroll v16.1.4 | (c) 2020 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/smooth-scroll */ 2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).SmoothScroll=t()}(this,(function(){"use strict";window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,n=(this.document||this.ownerDocument).querySelectorAll(e),o=this;do{for(t=n.length;--t>=0&&n.item(t)!==o;);}while(t<0&&(o=o.parentElement));return o}),function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(), 3/** 4 * requestAnimationFrame() polyfill 5 * By Erik Möller. Fixes from Paul Irish and Tino Zijdel. 6 * @link http://paulirish.com/2011/requestanimationframe-for-smart-animating/ 7 * @link http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating 8 * @license MIT 9 */ 10function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,n){var o=(new Date).getTime(),i=Math.max(0,16-(o-e)),r=window.setTimeout((function(){t(o+i)}),i);return e=o+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}();var e={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},t=function(){var e={};return Array.prototype.forEach.call(arguments,(function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}})),e},n=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),o=n.length,i=-1,r="",a=n.charCodeAt(0);++i<o;){if(0===(t=n.charCodeAt(i)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");r+=t>=1&&t<=31||127==t||0===i&&t>=48&&t<=57||1===i&&t>=48&&t<=57&&45===a?"\\"+t.toString(16)+" ":t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(i):"\\"+n.charAt(i)}return"#"+r},o=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},i=function(e,t,n){0===e&&document.body.focus(),n||(e.focus(),document.activeElement!==e&&(e.setAttribute("tabindex","-1"),e.focus(),e.style.outline="none"),window.scrollTo(0,t))},r=function(e,t,n,o){if(t.emitEvents&&"function"==typeof window.CustomEvent){var i=new CustomEvent(e,{bubbles:!0,detail:{anchor:n,toggle:o}});document.dispatchEvent(i)}};return function(a,s){var l,c,u,d,m={cancelScroll:function(e){cancelAnimationFrame(d),d=null,e||r("scrollCancel",l)}};m.animateScroll=function(n,a,s){m.cancelScroll();var c=t(l||e,s||{}),f="[object Number]"===Object.prototype.toString.call(n),h=f||!n.tagName?null:n;if(f||h){var p=window.pageYOffset;c.header&&!u&&(u=document.querySelector(c.header));var w,g,y,v=function(e){return e?(t=e,parseInt(window.getComputedStyle(t).height,10)+e.offsetTop):0;var t}(u),b=f?n:function(e,t,n,i){var r=0;if(e.offsetParent)do{r+=e.offsetTop,e=e.offsetParent}while(e);return r=Math.max(r-t-n,0),i&&(r=Math.min(r,o()-window.innerHeight)),r}(h,v,parseInt("function"==typeof c.offset?c.offset(n,a):c.offset,10),c.clip),S=b-p,E=o(),A=0,L=function(e,t){var n=t.speedAsDuration?t.speed:Math.abs(e/1e3*t.speed);return t.durationMax&&n>t.durationMax?t.durationMax:t.durationMin&&n<t.durationMin?t.durationMin:parseInt(n,10)}(S,c),q=function(e){w||(w=e),A+=e-w,y=p+S*function(e,t){var n;return"easeInQuad"===e.easing&&(n=t*t),"easeOutQuad"===e.easing&&(n=t*(2-t)),"easeInOutQuad"===e.easing&&(n=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e.easing&&(n=t*t*t),"easeOutCubic"===e.easing&&(n=--t*t*t+1),"easeInOutCubic"===e.easing&&(n=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e.easing&&(n=t*t*t*t),"easeOutQuart"===e.easing&&(n=1- --t*t*t*t),"easeInOutQuart"===e.easing&&(n=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e.easing&&(n=t*t*t*t*t),"easeOutQuint"===e.easing&&(n=1+--t*t*t*t*t),"easeInOutQuint"===e.easing&&(n=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),e.customEasing&&(n=e.customEasing(t)),n||t}(c,g=(g=0===L?0:A/L)>1?1:g),window.scrollTo(0,Math.floor(y)),function(e,t){var o=window.pageYOffset;if(e==t||o==t||(p<t&&window.innerHeight+o)>=E)return m.cancelScroll(!0),i(n,t,f),r("scrollStop",c,n,a),w=null,d=null,!0}(y,b)||(d=window.requestAnimationFrame(q),w=e)};0===window.pageYOffset&&window.scrollTo(0,0),function(e,t,n){t||history.pushState&&n.updateURL&&history.pushState({smoothScroll:JSON.stringify(n),anchor:e.id},document.title,e===document.documentElement?"#top":"#"+e.id)}(n,f,c),"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches?i(n,Math.floor(b),!1):(r("scrollStart",c,n,a),m.cancelScroll(!0),window.requestAnimationFrame(q))}};var f=function(e){if(!e.defaultPrevented&&!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey)&&"closest"in e.target&&(c=e.target.closest(a))&&"a"===c.tagName.toLowerCase()&&!e.target.closest(l.ignore)&&c.hostname===window.location.hostname&&c.pathname===window.location.pathname&&/#/.test(c.href)){var t,o;try{t=n(decodeURIComponent(c.hash))}catch(e){t=n(c.hash)}if("#"===t){if(!l.topOnEmptyHash)return;o=document.documentElement}else o=document.querySelector(t);(o=o||"#top"!==t?o:document.documentElement)&&(e.preventDefault(),function(e){if(history.replaceState&&e.updateURL&&!history.state){var t=window.location.hash;t=t||"",history.replaceState({smoothScroll:JSON.stringify(e),anch
10or:t||window.pageYOffset},document.title,t||window.location.href)}}(l),m.animateScroll(o,c))}},h=function(){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(l)){var e=history.state.anchor;"string"==typeof e&&e&&!(e=document.querySelector(n(history.state.anchor)))||m.animateScroll(e,null,{updateURL:!1})}};return m.destroy=function(){l&&(document.removeEventListener("click",f,!1),window.removeEventListener("popstate",h,!1),m.cancelScroll(),l=null,c=null,u=null,d=null)},function(){if(!("querySelector"in document&&"addEventListener"in window&&"requestAnimationFrame"in window&&"closest"in window.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";m.destroy(),l=t(e,s||{}),u=l.header?document.querySelector(l.header):null,document.addEventListener("click",f,!1),l.updateURL&&l.popstate&&window.addEventListener("popstate",h,!1)}(),m}})),document.addEventListener("DOMContentLoaded",(function(){"use strict";document.documentElement.classList.remove("no-js"),document.documentElement.classList.add("js");var e=document.createElement("a");e.classList.add("site-nav__toggle","js-nav-toggle"),e.setAttribute("aria-controls","mobile-menu"),e.setAttribute("aria-expanded","false"),document.querySelector(".site-nav__menu").after(e),document.querySelector(".js-nav-toggle")&&document.querySelector(".js-nav-toggle").addEventListener("click",(function(e){e.preventDefault(),document.body.classList.toggle("show-nav"),this.setAttribute("aria-expanded","true"===this.getAttribute("aria-expanded")?"false":"true")}));var t=document.createElement("a");t.classList.add("toplink","js-scroll-to-top"),t.setAttribute("title","To top of page"),t.setAttribute("href","#"),document.querySelector("body").append(t);new SmoothScroll(".js-scroll-to-top",{topOnEmptyHash:!0,speed:300,speedAsDuration:!0});var n=document.querySelector(".js-scroll-to-top"),o=!1;function i(){(window.scrollY||document.documentElement.scrollTop)>300?n.classList.add("is-visible"):n.classList.remove("is-visible"),o=!1}n&&window.addEventListener("scroll",(function(){o||(o=!0,window.requestAnimationFrame?window.requestAnimationFrame(i):setTimeout(i,250))})),document.querySelectorAll(".video.unloaded").length&&[].forEach.call(document.querySelectorAll(".video.unloaded"),(function(e){e.addEventListener("click",(function(){var e=this.id.split("-")[0],t=this.id.split("-")[1];if("vimeo"===e)var n=['<iframe frameborder="0" allowfullscreen ','src="https://player.vimeo.com/video/'+t+'/?autoplay=1&portrait=0&byline=0&title=0&color=4caaf3&dnt=1"',"></iframe>"].join("");else n=['<iframe frameborder="0" allowfullscreen ','allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" ','src="https://www.youtube-nocookie.com/embed/'+t+'?autoplay=1"',"></iframe>"].join("");for(;this.firstChild;)this.removeChild(this.firstChild);this.insertAdjacentHTML("beforeend",n),this.classList.add("loaded"),this.classList.remove("unloaded")}))})),document.querySelectorAll(".js-lightbox").length&&(loadjs(["/assets/js/lightgallery.min.js","/assets/css/lightgallery.min.css"],"lightgallery"),loadjs.ready(["lightgallery"],{success:function(){lightGallery(document.getElementById("content"),{selector:".js-lightbox",subHtmlSelector:"figcaption",subHtmlSelectorFromParent:!0,download:!1,thumbnail:!1,counter:!1})}})),document.querySelectorAll(".form__textarea").length&&document.addEventListener("input",(function(e){"textarea"===e.target.tagName.toLowerCase()&&r(e.target)}),!1) 11/*! 12 * Automatically expand a textarea as the user types 13 * (c) 2017 Chris Ferdinandi, MIT License, https://gomakethings.com 14 * @param {Node} field The textarea 15 */;var r=function(e){e.style.height="inherit";var t=window.getComputedStyle(e),n=parseInt(t.getPropertyValue("border-block-start-width"),10)+parseInt(t.getPropertyValue("padding-block-start"),10)+e.scrollHeight+parseInt(t.getPropertyValue("padding-block-end"),10)+parseInt(t.getPropertyValue("border-block-end-width"),10);e.style.height=n+-16+"px"}}));
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.