1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function(){const settingsElement=document.querySelector('head > script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');window.drupalSettings={};if(settingsElement!==null)window.drupalSettings=JSON.parse(settingsElement.textContent);})();; 3window.Drupal={behaviors:{},locale:{}};(function(Drupal,drupalSettings,drupalTranslations,console,Proxy,Reflect){Drupal.throwError=function(error){setTimeout(()=>{throw error;},0);};Drupal.attachBehaviors=function(context,settings){context=context||document;settings=settings||drupalSettings;const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].attach==='function')try{behaviors[i].attach(context,settings);}catch(e){Drupal.throwError(e);}});};Drupal.detachBehaviors=function(context,settings,trigger){context=context||document;settings=settings||drupalSettings;trigger=trigger||'unload';const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].detach==='function')try{behaviors[i].detach(context,settings,trigger);}catch(e){Drupal.throwError(e);}});};Drupal.checkPlain=function(str){str=str.toString().replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');return str;};Drupal.formatString=function(str,args){const processedArgs={};Object.keys(args||{}).forEach((key)=>{switch(key.charAt(0)){case '@':processedArgs[key]=Drupal.checkPlain(args[key]);break;case '!':processedArgs[key]=args[key];break;default:processedArgs[key]=Drupal.theme('placeholder',args[key]);break;}});return Drupal.stringReplace(str,processedArgs,null);};Drupal.stringReplace=function(str,args,keys){if(str.length===0)return str;if(!Array.isArray(keys)){keys=Object.keys(args||{});keys.sort((a,b)=>a.length-b.length);}if(keys.length===0)return str;const key=keys.pop();const fragments=str.split(key);if(keys.length){for(let i=0;i<fragments.length;i++)fragments[i]=Drupal.stringReplace(fragments[i],args,keys.slice(0));}return fragments.join(args[key]);};Drupal.t=function(str,args,options){options=options||{};options.context=options.context||'';if(typeof drupalTranslations!=='undefined'&&drupalTranslations.strings&&drupalTranslations.strings[options.context]&&drupalTranslations.strings[options.context][str])str=drupalTranslations.strings[options.context][str];if(args)str=Drupal.formatString(str,args);return str;};Drupal.url=function(path){return drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+path;};Drupal.url.toAbsolute=function(url){const urlParsingNode=document.createElement('a');try{url=decodeURIComponent(url);}catch(e){}urlParsingNode.setAttribute('href',url);return urlParsingNode.cloneNode(false).href;};Drupal.url.isLocal=function(url){let absoluteUrl=Drupal.url.toAbsolute(url);let {protocol}=window.location;if(protocol==='http:'&&absoluteUrl.startsWith('https:'))protocol='https:';let baseUrl=`${protocol}//${window.location.host}${drupalSettings.path.baseUrl.slice(0,-1)}`;try{absoluteUrl=decodeURIComponent(absoluteUrl);}catch(e){}try{baseUrl=decodeURIComponent(baseUrl);}catch(e){}return absoluteUrl===baseUrl||absoluteUrl.startsWith(`${baseUrl}/`);};Drupal.formatPlural=function(count,singular,plural,args,options){args=args||{};args['@count']=count;const pluralDelimiter=drupalSettings.pluralDelimiter;const translations=Drupal.t(singular+pluralDelimiter+plural,args,options).split(pluralDelimiter);let index=0;if(typeof drupalTranslations!=='undefined'&&drupalTranslations.pluralFormula)index=count in drupalTranslations.pluralFormula?drupalTranslations.pluralFormula[count]:drupalTranslations.pluralFormula.default;else{if(args['@count']!==1)index=1;}return translations[index];};Drupal.encodePath=function(item){return window.encodeURIComponent(item).replace(/%2F/g,'/');};Drupal.deprecationError=({message})=>{if(drupalSettings.suppressDeprecationErrors===false&&typeof console!=='undefined'&&console.warn)console.warn(`[Deprecation] ${message}`);};Drupal.deprecatedProperty=({target,deprecatedProperty,message})=>{if(!Proxy||!Reflect)return target;return new Proxy(target,{get:(target,key,...rest)=>{if(key===deprecatedProperty)Drupal.deprecationError({message});return Reflect.get(target,key,...rest);}});};Drupal.theme=function(func,...args){if(func in Drupal.theme)return Drupal.theme[func](...args);};Drupal.theme.placeholder=function(str){return `<em class="placeholder">${Drupal.checkPlain(str)}</em>`;};Drupal.elementIsVisible=function(elem){return !!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};Drupal.elementIsHidden=function(elem){return !Drupal.elementIsVisible(elem);};})(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect);; 4if(window.jQuery)jQuery.noConflict();document.documentElement.className+=' js';(function(Drupal,drupalSettings){const domReady=(callback)=>{const listener=()=>{callback();document.removeEventListener('DOMContentLoaded',listener);};if(document.readyState!=='loading')setTimeout(callback,0);else document.addEventListener('DOMContentLoaded',listener);};domReady(()=>{Drupal.attachBehaviors(document,drupalSettings);});})(Drupal,window.drupalSettings);; 5function YoutubeCookies(action,thumbnailLabel,popupMessage,manageButton,okButton,exitButton,thumbnailMarkup){this.checkYoutubeNoCookie
5=action!=="no_cookies_domain";this.action=action;this.youtubeCookiesAccepted=false;this.manageCookiesCallback=null;this.acceptedCookiesCallback=null;this.thumbnailLabel=thumbnailLabel;this.popupMessage=popupMessage;this.thumbnailMarkup=thumbnailMarkup;this.showThirdPartyButton=true;this.manageButton=manageButton;this.okButton=okButton;this.exitButton=exitButton;this.currentVideo=null;this.interceptVideo=true;this.setup();}const youtubeCookiesDisabled=new Event("youtubeCookiesDisabled");const youtubeCookiesEnabled=new Event("youtubeCookiesEnabled");YoutubeCookies.prototype.setShowThirdPartyButton=(value)=>{this.showThirdPartyButton=value;};YoutubeCookies.prototype.setManageCookiesCallback=function(callback){this.manageCookiesCallback=callback;};YoutubeCookies.prototype.areCookiesAccepted=()=>{if(this.acceptedCookiesCallback!==null)return this.acceptedCookiesCallback();return this.youtubeCookiesAccepted;};YoutubeCookies.prototype.setAcceptedCookies=(youtubeCookiesAccepted)=>{if(youtubeCookiesAccepted){document.querySelectorAll("iframe[data-yc-iframe-processed]").forEach((element)=>{Drupal.youtubeCookies.destroyYoutuebeCookiesIframe(element.parentNode);});Drupal.youtubeCookies.removePopup();if(Drupal.youtubeCookies.currentVideo!==null){if(Drupal.youtubeCookies.isOembedLazyload(Drupal.youtubeCookies.currentVideo))Drupal.youtubeCookies.currentVideo.querySelector(".oembed-lazyload__button").click();Drupal.youtubeCookies.interceptVideo=true;Drupal.youtubeCookies.currentVideo=null;}document.dispatchEvent(youtubeCookiesDisabled);}else{Drupal.youtubeCookies.processYoutubeIframes(document);document.dispatchEvent(youtubeCookiesEnabled);}Drupal.youtubeCookies.youtubeCookiesAccepted=youtubeCookiesAccepted;};YoutubeCookies.prototype.onNonAcceptedCookies=(callback)=>{this.onNonAcceptedCookiesCallback=callback;};YoutubeCookies.prototype.setup=function(){document.addEventListener("DOMContentLoaded",this.onContentLoaded.bind(this));};YoutubeCookies.prototype.addPopup=function(element,showExitButton){const popupContainer=document.createElement("div");popupContainer.classList.add("youtube-cookies-popup");const popupContainerBox=document.createElement("div");popupContainerBox.classList.add("youtube-cookies-popup-box");const popupContainerBoxInfo=document.createElement("div");popupContainerBoxInfo.classList.add("youtube-cookies-popup-box-info");popupContainerBoxInfo.insertAdjacentHTML("beforeend",this.popupMessage);const popupContainerBoxButtons=document.createElement("div");popupContainerBoxButtons.classList.add("youtube-cookies-popup-box-buttons");if(this.showThirdPartyButton)popupContainerBoxButtons.insertAdjacentHTML("beforeend",this.manageButton);popupContainerBoxButtons.insertAdjacentHTML("beforeend",this.okButton);if(showExitButton)popupContainerBoxButtons.insertAdjacentHTML("beforeend",this.exitButton);popupContainerBoxInfo.appendChild(popupContainerBoxButtons);popupContainerBox.appendChild(popupContainerBoxInfo);popupContainer.appendChild(popupContainerBox);element.append(popupContainer);popupContainer.querySelector(".youtube-cookies-button--accept").addEventListener("click",this.onAcceptClick.bind(this));if(showExitButton)popupContainer.querySelector(".youtube-cookies-button--reject").addEventListener("click",this.onRejectClick.bind(this));const manageCookiesButton=popupContainer.querySelector(".youtube-cookies-button--manage");if(manageCookiesButton!=null)manageCookiesButton.addEventListener("click",this.onManageCookiesClick.bind(this));return popupContainer;};YoutubeCookies.prototype.onThumbnailClick=function(event){if(!this.interceptVideo)return;event.preventDefault();this.addPopup(document.body,true);this.currentVideo=event.currentTarget.parentNode;this.interceptVideo=false;};YoutubeCookies.prototype.removeFakeThumbnail=function(iframeWrapper){iframeWrapper.querySelector("[data-yc-fake-button]").remove();if(this.isOembedLazyload(iframeWrapper)){const button=iframeWrapper.querySelector("[data-yc-original-oembed-button]");button.style.display="";button.removeAttribute("data-yc-original-oembed-button");}};YoutubeCookies.prototype.eventDispatch=function(button){const iframeWrapper=button.currentTarget.parentNode;
5const event=new Event("youtube-cookies-thumbnail-click");iframeWrapper.querySelector("iframe").dispatchEvent(event);};YoutubeCookies.prototype.removePopup=function(){const popup=document.querySelector(".youtube-cookies-popup");if(popup!==null)popup.remove();};YoutubeCookies.prototype.onManageCookiesClick=function(){if(this.manageCookiesCallback!==null)this.manageCookiesCallback();this.interceptVideo=true;};YoutubeCookies.prototype.onAcceptClick=function(event){this.removePopup();if(this.currentVideo!==null){this.destroyYoutuebeCookiesIframe(this.currentVideo);if(this.isOembedLazyload(this.currentVideo))this.currentVideo.querySelector(".oembed-lazyload__button").click();this.interceptVideo=true;this.currentVideo=null;}};YoutubeCookies.prototype.onRejectClick=function(event){this.removePopup();this.currentVideo=null;this.interceptVideo=true;};YoutubeCookies.prototype.setIframeWrapper=(iframe)=>{const wrapper=document.createElement("div");wrapper.classList.add("youtube-cookies__iframe-container");iframe.parentNode.insertBefore(wrapper,iframe);wrapper.appendChild(iframe);};YoutubeCookies.prototype.removeIframeWrapper=(iframe)=>{const wrapper=iframe.parentNode;wrapper.after(iframe);wrapper.remove();};YoutubeCookies.prototype.setYoutubeThumbnail=function(iframe,iframeSrc){const videoId=this.getYoutubeIdFromUrl(iframeSrc);const button=document.createElement("button");button.classList.add("youtube-cookies__thumbnail");button.addEventListener("click",this.onThumbnailClick.bind(this));button.setAttribute("data-yc-fake-button","1");button.setAttribute("aria-label",this.thumbnailLabel);button.innerHTML=this.thumbnailMarkup.replace(/videoId/g,videoId);iframe.parentNode.prepend(button);};YoutubeCookies.prototype.isYoutubeSource=function(source){if(source.length===0)return false;const regExps=[/youtu\.be/,/youtube\.com/];if(this.checkYoutubeNoCookie)regExps.push(/youtube-nocookie\.com/);for(const i in regExps)if(source.match(regExps[i]))return true;return false;};YoutubeCookies.prototype.isOembedLazyload=function(element){return !!(element.classList.contains("oembed-lazyload")||element.classList.contains("oembed-lazyload__iframe"));};YoutubeCookies.prototype.stopIframe=function(iframe){const iframeSrc=iframe.src;if(iframeSrc.length>0&&this.isYoutubeSource(iframeSrc)){iframe.setAttribute("data-src",iframeSrc);
5iframe.src='';}};YoutubeCookies.prototype.getYoutubeIdFromUrl=function(url){const youtubeIdRegexp="[^\\s&?/#]{11}";let videoIdMatches=[];if(url.match(`(youtube\.com\/embed\/)(${youtubeIdRegexp})`))videoIdMatches=url.match(`(youtube\.com\/embed\/)(${youtubeIdRegexp})`);if(url.match(`(youtu\.be\/)(${youtubeIdRegexp})`))videoIdMatches=url.match(`(youtube.com/embed)|(youtu.be/)(${youtubeIdRegexp})`);else{if(url.match(`(youtube.com/watch%3Fv%3D)(${youtubeIdRegexp})`))videoIdMatches=url.match(`(youtube.com/watch%3Fv%3D)(${youtubeIdRegexp})`);}if(videoIdMatches!==null&&videoIdMatches.length>0)return videoIdMatches[videoIdMatches.length-1];return null;};YoutubeCookies.prototype.setYoutubeNoCookiesSrc=function(element,url){const attribute=typeof element.src==="string"&&element.src.length>0?"src":"data-src";const videoId=this.getYoutubeIdFromUrl(url);if(videoId!=null){element.setAttribute("data-original-src",url);element.setAttribute("data-original-src-attribute",attribute);element.setAttribute(attribute,`https://www.youtube-nocookie.com/embed/${videoId}?enablejsapi=1`);}};YoutubeCookies.prototype.setYoutubeOriginalUrl=function(element){const attribute=element.getAttribute("data-original-src-attribute");element.setAttribute(attribute,element.getAttribute("data-original-src"));element.removeAttribute("data-original-src-attribute");element.removeAttribute("data-original-src");};YoutubeCookies.prototype.onContentLoaded=function(event){if(!this.youtubeCookiesAccepted)this.processYoutubeIframes(event.target);};YoutubeCookies.prototype.processYoutubeIframes=function(container){if(this.youtubeCookiesAccepted)return;let newButton;const iframes=container.getElementsByTagName("iframe");for(const iframeIndex in iframes){const iframe=iframes[iframeIndex];if(typeof iframe!=="object")return;if(iframe.hasAttribute("data-yc-iframe-processed"))continue;this.stopIframe(iframe);const iframeSrc=iframe.hasAttribute("data-src")?iframe.getAttribute("data-src"):iframe.src;if(typeof iframeSrc==="string"&&!this.isYoutubeSource(iframeSrc))continue;const iframeWrapper=iframe.parentNode;if(this.isOembedLazyload(iframeWrapper)){iframeWrapper.setAttribute("data-original-strategy",iframeWrapper.getAttribute("data-strategy"));iframeWrapper.removeAttribute("data-strategy");}switch(this.action){case "no_cookies_domain":this.setYoutubeNoCookiesSrc(iframe,iframeSrc);break;case "popup":if(this.isOembedLazyload(iframeWrapper)){const originalButton=iframeWrapper.querySelector("button");if(typeof originalButton==="object"){iframe.parentNode.insertAdjacentHTML("afterbegin",originalButton.outerHTML);originalButton.setAttribute("data-yc-original-oembed-button",1);originalButton.style.display="none";originalButton.addEventListener("click",this.eventDispatch.bind(this));newButton=iframe.parentNode.querySelector("button:not([data-yc-original-oembed-button])");newButton.addEventListener("click",this.onThumbnailClick.bind(this));newButton.setAttribute("data-yc-fake-button","1");}}else{if(iframe.classList.contains("youtube-cookies__iframe--wysiwyg"))this.setIframeWrapper(iframe);if(iframe.classList.contains("youtube-cookies__iframe--oembed"))iframe.parentNode.classList.add("youtube-cookies__iframe-container");this.setYoutubeThumbnail(iframe,iframeSrc);}break;}iframe.setAttribute("data-yc-iframe-index",iframeIndex);iframe.setAttribute("data-yc-iframe-processed","1");iframe.dispatchEvent(youtubeCookiesEnabled);}};YoutubeCookies.prototype.destroyYoutuebeCookiesIframe=function(iframeWrapper){const iframe=iframeWrapper.querySelector("iframe");switch(this.action){case "no_cookies_domain":this.setYoutubeOriginalUrl(iframe);break;case "popup":this.removeFakeThumbnail(iframeWrapper);if(this.isOembedLazyload(iframeWrapper)){iframeWrapper.setAttribute("data-strategy",iframeWrapper.getAttribute("data-original-strategy"));iframeWrapper.removeAttribute("data-original-strategy");}else{if(iframe.classList.contains("youtube-cookies__iframe--wysiwyg"))this.removeIframeWrapper(iframe);if(iframe.classList.contains("youtube-cookies__iframe--oembed"))iframe.parentNode.classList.remove("youtube-cookies__iframe-container");
5iframe.setAttribute("src",iframe.getAttribute("data-src"));iframe.removeAttribute("data-src");}break;}iframe.removeAttribute("data-yc-iframe-processed");iframe.removeAttribute("data-yc-iframe-index");iframe.dispatchEvent(youtubeCookiesDisabled);};YoutubeCookies.prototype.setAcceptedCookiesCallback=function(callback){this.acceptedCookiesCallback=callback;};(function(Drupal,drupalSettings){if(typeof drupalSettings.youtubeCookies==="object")Drupal.youtubeCookies=new YoutubeCookies(drupalSettings.youtubeCookies.action,drupalSettings.youtubeCookies.thumbnailLabel,drupalSettings.youtubeCookies.popupMessage,drupalSettings.youtubeCookies.manageButton,drupalSettings.youtubeCookies.okButton,drupalSettings.youtubeCookies.exitButton,drupalSettings.youtubeCookies.thumbnailMarkup);Drupal.behaviors.youtubeCookies={attach(){if(typeof Drupal.behaviors.oembedLazyload==="object"&&typeof Drupal.behaviors.oembedLazyload.attach==="function")Drupal.behaviors.oembedLazyload.attach(document);Drupal.youtubeCookies.processYoutubeIframes(document);document.dispatchEvent(youtubeCookiesEnabled);}};})(Drupal,drupalSettings);;
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.