1/*! For license information please see theme.min.js.LICENSE.txt */ 2(()=>{var e={255:()=>{for(var e=function component_dropdown_menu(e){var t,n=e.desktop_min_width,i=e.menu,r="1";if(i){var a=function menu_item_mouseleave(e){is_desktop_menu()&&(t=setTimeout((function(e){deactivate_menu_item(e)}),0,e.currentTarget))},o=function caret_click_event(e){!1!==checkPreviousTimeStamp(e.timeStamp)&&(!function toggle_menu_item(e){e&&("false"===e.getAttribute("aria-expanded")?activate_menu_item(e):deactivate_menu_item(e))}(get_ancestor(e.currentTarget,"menu-item-has-children")),e.stopPropagation())};return function init_dropdown_menu(){reset_menu_items();for(var e=i.querySelectorAll(".menu-item"),t=0;t<e.length;t++)e[t].addEventListener("mouseenter",menu_item_mouseenter),e[t].addEventListener("mouseleave",a);for(var n=i.querySelectorAll(".js-menu-caret"),r=0;r<n.length;r++)n[r].addEventListener("click",o);for(var l=i.querySelectorAll('a[href="#"]'),s=0;s<l.length;s++)l[s].addEventListener("click",empty_a_click_event);for(var c=i.querySelectorAll(".menu-item-has-children a"),d=0;d<c.length;d++)c[d].addEventListener("touchstart",menu_item_parent_a_touch_event,{passive:!0})}(),this}function get_all_ancestors(e,t){for(var n=[],r=e.parentElement;!r.isEqualNode(i);)r.classList.contains(t)&&n.push(r),r=r.parentElement;return n}function get_ancestor(e,t){var n=get_all_ancestors(e,t);return n.length?n[0]:null}function is_desktop_menu(){return!(Math.max(document.documentElement.clientWidth,window.innerWidth||0)<n)}function activate_menu_item(e){if(e){var t=e.querySelector(".sub-menu"),n=document.querySelector("body");if(t&&(e.setAttribute("aria-expanded","true"),n.classList.add("main_header__open"),t.setAttribute("aria-hidden","false"),t.getBoundingClientRect().right>(window.innerWidth||document.documentElement.clientWidth)&&t.classList.add("is-out-of-bounds"),t.getBoundingClientRect().bottom>(window.innerHeight||document.documentElement.clientHeight)&&(t.classList.add("is-out-of-bounds-y"),is_desktop_menu()))){var i="calc(100vh - 16px - "+t.getBoundingClientRect().top+"px)";t.style.maxHeight=i}for(var r=get_all_ancestors(e,"menu-item-has-children"),a=0;a<r.length;a++)activate_menu_item(r[a])}}function deactivate_menu_item(e){if(e){e.classList.remove("is-clicked");var t=e.querySelector(".sub-menu"),n=document.querySelector("body");t&&(e.setAttribute("aria-expanded","false"),n.classList.remove("main_header__open"),t.setAttribute("aria-hidden","true"),t.classList.remove("is-out-of-bounds"),t.classList.remove("is-out-of-bounds-y"),t.style.maxHeight="");for(var i=e.querySelectorAll(".menu-item-has-children"),r=0;r<i.length;r++)deactivate_menu_item(i[r])}}function reset_menu_items(){for(var e=i.querySelectorAll(".menu-item-has-children"),t=0;t<e.length;t++)deactivate_menu_item(e[t]),e[t].classList.remove("is-tapped")}function menu_item_mouseenter(e){if(is_desktop_menu()){if(!1===checkPreviousTimeStamp(e.timeStamp))return;clearTimeout(t);for(var n=get_all_ancestors(e.currentTarget,"menu-item-has-children"),r=i.querySelectorAll(".menu-item-has-children"),a=0;a<r.length;a++)r[a]!==e.currentTarget&&-1===n.indexOf(r[a])&&deactivate_menu_item(r[a]);activate_menu_item(e.currentTarget)}}function checkPreviousTimeStamp(e){var t=e-r;return r=e,0!==t}function empty_a_click_event(e){e.preventDefault();var t=get_ancestor(e.currentTarget,"menu-item-has-children");t&&(t.classList.contains("is-clicked")?(deactivate_menu_item(t),t.classList.remove("is-clicked")):(activate_menu_item(t),t.classList.add("is-clicked")))}function menu_item_parent_a_touch_event(e){}console.log("Invalid drop-down menu")},t=document.querySelectorAll(".js-navigation"),n=0;n<t.length;n++)e({desktop_min_width:1024,menu:t[n]})},343:()=>{!function header_search(e){var t=e.link,n=e.form;if(!t||!n)return!1;t.addEventListener("click",(function(e){e.preventDefault();var i=t.classList.contains("active");t.classList.remove("active"),n.classList.remove("active"),i||(t.classList.add("active"),n.classList.add("active"),n.querySelector("input").focus())}))}({link:document.querySelector(".menu-item__search"),form:document.querySelector(".search-form")})}
2,664:(e,t,n)=>{"use strict";n.r(t);var i=n(836),r=n.n(i),a=document.querySelectorAll(".blocks-gallery-item > figure > a");a&&a.forEach((function(e){e.classList.add("lightbox")}));var o=document.querySelectorAll("article figure a > img");o&&o.forEach((function(e){e.parentNode.classList.add("lightbox")}));new(r());!function footer_form(e){var t=e.header_link,n=e.footer_link;if(!t||!n)return!1;n.addEventListener("click",(function(e){e.preventDefault(),t.click()}))}({header_link:document.querySelector(".main_header a.lightbox"),footer_link:document.querySelector(".main_footer a.open--contact-form")})},766:()=>{var e=document.getElementById("wpgmza_filter_select"),t=document.getElementsByClassName("wpgmza-filter-widgets"),n=document.getElementById("wpgmza_marker_list_1"),r=!1;if(e&&t&&reset_point_list(),n&&"sv"===n.getAttribute("lang")&&(!function translate_texts(){if(t.length>0){var n=t[0].children[0];for(i=0;i<n.length;i++)"paikkakunta"!==n.children[i].text?n.children[i].text!==get_location_translation(n.children[i].text)&&(n.children[i].setAttribute("value",n.children[i].text),n.children[i].text=get_location_translation(n.children[i].text)):n.children[i].text="plats"}if(document.querySelectorAll(".map_points_title").forEach((function(e){var t=e.getAttribute("data-custom-field");if(t){var n=get_location_translation(t);e.setAttribute("data-custom-field",n),e.children[0].children[0].innerHTML=n}})),e.length>0)for(i=0;i<e.length;i++)e.children[i].text=get_waste_translation(e.children[i].text.trim())}(),r=!0),e&&(e.addEventListener("change",(function(e){reset_point_list()})),e.children.length>0&&"Kaikki"===e.children[0].text&&(e.children[0].text="jätelaji"),e.children.length>0&&"Alla"===e.children[0].text&&(e.children[0].text="avfall")),t.length>0){var a=t[0].children[0];!a.children[0]||"paikkakunta"!=a.children[0].text&&"plats"!=a.children[0].text||(a.children[0].removeAttribute("disabled"),a.children[0].style.display="block"),a.children[0]&&a.addEventListener("change",(function(e){reset_point_list()}))}function hide_empty_locations(){document.querySelectorAll(".map_points_title").forEach((function(e){for(var t=e.nextSibling.childNodes,n=!0,i=0;i<t.length;i++)"none"!==t[i].style.display&&(n=!1);n?e.classList.add("hidden"):e.classList.remove("hidden")}))}function filter_location_list(e){document.querySelectorAll(".map_points_title").forEach((function(t){custom_field_val=t.getAttribute("data-custom-field"),custom_field_val==e?t.classList.remove("hidden"):t.classList.add("hidden")}))}function filter_waste_list(e){document.querySelectorAll(".wpgmaps_blist_row").forEach((function(t){item_cats=t.getAttribute("data-categories"),item_cats.includes(","+e+",")?t.style.display="block":t.style.display="none"}))}function reset_point_list(){var n=e.value,i=t[0].children[0].value;r&&(i=get_location_translation(i)),document.querySelectorAll(".wpgmaps_blist_row").forEach((function(e){e.style.display="block"})),document.querySelectorAll(".map_points_title").forEach((function(e){e.classList.remove("hidden")})),0!=n&&""==i&&(filter_waste_list(n),hide_empty_locations()),0==n&&""!=i&&filter_location_list(i),0!=n&&""!=i&&(filter_waste_list(n),hide_empty_locations(),filter_location_list(i))}function get_waste_translation(e){var t=e,i=n.getAttribute("data-translated-waste"),r=JSON.parse(i);for(var a in r)if(r.hasOwnProperty(a)&&a===e)return r[a];return"All"!==e&&"jätelaji"!==e||(t="Avfallsslag"),t}function get_location_translation(e){var t=e;switch(e){case"paikkakunta":t="plats";break;case"Hanko":t="Hangö";break;case"Porvoo":t="Borgå";break;case"Pornainen":t="Borgnäs";break;case"Karkkila":t="Högfors";break;case"Inkoo":t="Ingå";break;case"Lohja":t="Lojo";break;case"Loviisa":t="Lovisa";break;case"Raasepori":t="Raseborg";break;case"Sipoo":t="Sibbo";break;case"Siuntio":t="Sjundeå";break;case"Vihti":t="Vichtis"}return t}},202:()=>{!function themeMobileMenu(e){var t=e.menu,n=e.site,i=e.toggles;if(!t||!n||!i.length)return console.log("Invalid mobile_menu args"),!1;for(var r=function handle_toggle(e){document.body.classList.contains("is-active-menu")?function closeMenu(){document.body.classList.add("is-closing-menu"),setTimeout((function(){document.body.classList.remove("is-active-menu"),document.body.classList.remove("is-closing-menu")}),200)}():function openMenu(){document.body.classList.add("is-active-menu")}()},a=0;a<i.length;a++)i[a].addEventListener("click",r,!1)}({menu:document.querySelector(".main_header__menu"),site:document.querySelector("#top"),toggles:document.querySelectorAll(".main_header__menu__toggle")})},52:()=>{!function toggleNewsArchive(e){if(!e)return!1;Array.prototype.forEach.call(e,(function(e){var t=e.nextElementSibling;t.hidden=!0,e.onclick=function(n){n.preventDefault();var i="true"===e.getAttribute("aria-expanded")||!1;e.setAttribute("aria-expanded",!i),t.hidden=i}}))}(document.querySelectorAll('.sya_container > a[rel="section"]'))},320:()=>{function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}!function(){"use strict";var e;if("list"in document.createElement("input")&&!(!document.createElement("datalist")||!window.HTMLDataListElement))return!1;(e=window.HTMLInputElement)&&e.prototype&&void 0===e.prototype.list&&Object.defineProperty(e.prototype,"list",{get:function get(){if
2("object"===_typeof(this)&&this instanceof e){var t=this.getAttribute("list");return document.getElementById(t)}return null}}),function(e){e&&e.prototype&&void 0===e.prototype.options&&Object.defineProperty(e.prototype,"options",{get:function get(){if("object"===_typeof(this)&&this instanceof e)return this.getElementsByTagName("option")}})}(window.HTMLElement);var t=!1,n=" / ",i=["text","email","number","search","tel","url"];window.addEventListener("touchstart",(function onFirstTouch(){t=!0,window.removeEventListener("touchstart",onFirstTouch)}));var r=function inputInputList(e){var i=e.target,r=i.tagName.toLowerCase();if(r&&"input"===r&&i.getAttribute("list")){var a=i.getAttribute("list"),o=document.getElementById(a);if(null!==o){var l=o.getElementsByClassName("polyfilling")[0];if(void 0!==l){if(27===e.keyCode)return l.setAttributeNode(document.createAttribute("hidden")),void l.setAttribute("aria-hidden","true");var s=o.querySelectorAll("option:not([disabled]):not(.message)"),c=i.value,d=document.createDocumentFragment(),u=document.createDocumentFragment(),p=!1,m="email"===i.type&&i.multiple,f=38===e.keyCode||40===e.keyCode;if(m){var h=c.split(","),g=h.length-1;c=h[g].trim()}if(""!==c||f){Array.prototype.slice.call(s).sort((function(e,t){return e.value.localeCompare(t.value)})).forEach((function(e){var t=e.value;if(""!==t&&-1!==t.toLowerCase().indexOf(c.toLowerCase())&&!1===e.disabled){var i=e.getAttribute("label"),r=e.text,a=r.substr(0,t.length+3);r&&!i&&r!==t&&a!==t+n?e.innerText=t+n+r:e.text||(e.innerText=i||t),d.appendChild(e),p=!0}else u.appendChild(e)})),l.appendChild(d);var v=l.options.length,b=v-1;if(l.size=v>10?10:v,l.multiple=!t&&v<2,t)l.selectedIndex=0;else if(-1===l.selectedIndex)switch(e.keyCode){case 38:l.selectedIndex=b;break;case 40:l.selectedIndex=0}(o.getElementsByClassName("ie9_fix")[0]||o).appendChild(u)}p?l.removeAttribute("hidden"):l.setAttributeNode(document.createAttribute("hidden")),l.setAttribute("aria-hidden",(!p).toString()),f&&l.focus()}}}},a=function changeDataListSelect(e){var t=e.target,n=t.tagName.toLowerCase();if(n&&("select"===n||"option"===n)){var i="select"===n?t:t.parentNode,r=i.parentNode,a=r.title,o=e.type,l="keyup"===o&&13!==e.keyCode&&27!==e.keyCode;if("change"===o||"click"===o||"keyup"===o&&13===e.keyCode){var s=r.id,c=document.querySelector('input[list="'+s+'"]'),d=i.value;if(null!==c&&void 0!==d&&d.length>0&&d!==a){var u,p,m=c.value;"email"===c.type&&c.multiple&&(u=m.lastIndexOf(","))>-1?c.value=m.slice(0,u)+","+d:c.value=d,"function"==typeof Event?p=new Event("input",{bubbles:!0}):(p=document.createEvent("Event")).initEvent("input",!0,!1),c.dispatchEvent(p),l=!1}}l?i.removeAttribute("hidden"):i.setAttributeNode(document.createAttribute("hidden")),i.setAttribute("aria-hidden",(!l).toString())}};document.addEventListener("focus",(function changesInputList(e){var n=e.target,o=n.tagName.toLowerCase(),l=n.type,s=window.getComputedStyle(n);if(o&&"input"===o&&n.getAttribute("list")&&i.indexOf(l)>-1){var c=e.type,d=n.getAttribute("list"),u=document.getElementById(d);if(null!==u){var p=u.getElementsByClassName("polyfilling")[0],m="focus"===c&&""!==e.target.value||e.relatedTarget&&e.relatedTarget===p,f=u.title;if(void 0===p){var h=n.getClientRects(),g=parseFloat(s.getPropertyValue("margin-right")),v=parseFloat(s.getPropertyValue("margin-left"));if((p=document.createElement("select")).setAttribute("class","polyfilling"),p.setAttributeNode(document.createAttribute("hidden")),p.style.position="absolute",p.setAttribute("aria-hidden","true"),p.setAttribute("aria-live","polite"),p.setAttribute("role","listbox"),t||p.setAttribute("aria-multiselectable","false"),"block"===s.getPropertyValue("display")?p.style.marginTop="-"+s.getPropertyValue("margin-bottom"):("rtl"===s.getPropertyValue("direction")?p.style.marginRight="-"+(h[0].width+v)+"px":p.style.marginLeft="-"+(h[0].width+g)+"px",p.style.marginTop=parseInt(h[0].height+(n.offsetTop-u.offsetTop),10)+"px"),p.style.borderRadius=s.getPropertyValue("border-radius"),p.style.minWidth=h[0].width+"px",t){var b=document.createElement("option");b.innerText=f,b.disabled=!0,b.setAttribute("class","message"),p.appendChild(b)}u.appendChild(p),t?p.addEventListener("change",a):p.addEventListener("click",a),p.addEventListener("blur",a),p.addEventListener("keyup",a),n.setAttribute("autocomplete","off"),n.setAttribute("role","textbox"),n.setAttribute("aria-haspopup","true"),n.setAttribute("aria-autocomplete","list"),n.setAttribute("aria-owns",d)}switch(m?p.removeAttribute("hidden"):p.setAttributeNode(document.createAttribute("hidden")),p.setAttribute("aria-hidden",(!m).toString()),c){case"focus":n.addEventListener("keyup",r),n.addEventListener("focusout",changesInput
2List,!0);break;case"blur":n.removeEventListener("keyup",r),n.removeEventListener("focusout",changesInputList,!0)}}}}),!0)}()},270:()=>{!function init_tietopankki_header_nav(){var e=document.querySelector(".tietopankki-header-nav"),t=document.querySelectorAll(".tietopankki h2, .wastegroup h2, .wastetype h2"),n=[];if(!e||!t)return!1;t.forEach((function(e){if(""!==e.innerText){e.id||(e.id=function slugify(e){return e.toString().normalize("NFKD").toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-")}(e.innerText));var t='<a href="#'.concat(e.id,'">').concat(e.innerText,"</a>");n.push(t),e.querySelector("a")||function create_inside_anchorlink(e){var t='<a data-tooltip="Kopioi linkki tähän otsikkoon" data-tooltip-onclick="Linkki kopioitu" class="tooltip link-to-header" href="#'.concat(e.id,'">').concat('<span class="screen-reader-text">Linkki otsikkoon</span>',"</a>");e.insertAdjacentHTML("beforeend",t)}(e)}})),n=n.join(" | "),e.insertAdjacentHTML("afterbegin",n)}(),function init_set_header_height_cssvariable(){var e=document.querySelector(".main_header");if(!e)return!1;document.documentElement.style.setProperty("--header-height",e.offsetHeight+"px")}(),function init_tooltips(){var e=document.querySelectorAll(".tooltip");if(!e)return;function add_tooltip_events(e){e.addEventListener("mouseover",(function(t){e.classList.add("tooltip-hover")})),e.addEventListener("click",(function(t){e.classList.add("tooltip-clicked"),function copyTextToClipboard(e){if(!navigator.clipboard)return;navigator.clipboard.writeText(e).then((function(){console.log("Async: Copying to clipboard was successful!")}),(function(e){console.error("Async: Could not copy text: ",e)}))}(e.href),history.replaceState(null,null,e.getAttribute("href")),t.preventDefault()})),e.addEventListener("mouseout",(function(t){e.classList.remove("tooltip-hover"),e.classList.remove("tooltip-clicked")}))}e.forEach((function(e){add_tooltip_events(e)}))}()},421:()=>{!function toggleAccordion(e){if(!e)return!1;Array.prototype.forEach.call(e,(function(e){var t=e.parentElement.nextElementSibling;e.onclick=function(){var n="true"===e.getAttribute("aria-expanded")||!1;e.setAttribute("aria-expanded",!n),t.hidden=n}}))}(document.querySelectorAll(".accordion-toggle"))},836:function(e){e.exports=function(){"use strict";function Tobii(e){var t={},n=window,i=0,r=null,a=null,o=null,l=null,s=null,c={},d=!1,u=!1,p=!1,m=null,f=null,h=null,g=null,v=null,b=!1,_=!1,y=[],A=[],L=0,w={gallery:[],slider:null,sliderElements:[],elementsLength:0,currentIndex:0,x:0},k={},E=null,x=null,S=function mergeOptions(e){var t={selector:".lightbox",captions:!0,captionsSelector:"img",captionAttribute:"alt",nav:"auto",navText:['<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M14 18l-6-6 6-6"/></svg>','<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M10 6l6 6-6 6"/></svg>'],navLabel:["Previous image","Next image"],close:!0,closeText:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M6 6l12 12M6 18L18 6"/></svg>',closeLabel:"Close lightbox",loadingIndicatorLabel:"Image loading",counter:!0,download:!1,downloadText:"",downloadLabel:"Download image",keyboard:!0,zoom:!0,zoomText:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M21 16v5h-5"/><path d="M8 21H3v-5"/><path d="M16 3h5v5"/><path d="M3 8V3h5"/></svg>',docClose:!0,swipeClose:!0,hideScrollbar:!0,draggable:!0,threshold:100,rtl:!1,loop:!1,autoplayVideo:!1};return e&&Object.keys(e).forEach((function(n){t[n]=e[n]})),t},C={image:{checkSupport:function checkSupport(e){return!e.hasAttribute("data-type")&&e.href.match(/\.(png|jpe?g|tiff|tif|gif|bmp|webp|svg|ico)(\?.*)?$/i)},init:function init(e,n){var r=document.createElement("figure"),a=document.createElement("figcaption"),o=document.createElement("img"),l=e.querySelector("img"),s=document.createElement("div");r.style.opacity="0",l&&(o.alt=l.alt||""),o.setAttribute("src",""),o.setAttribute("data-src",e.href),r.appendChild(o),t.captions&&("self"===t.captionsSelector&&e.getAttribute(t.captionAttribute)?a.textContent=e.getAttribute(t.captionAttribute):"img"===t.captionsSelector&&l&&l.getAttribute(t.captionAttribute)&&(a.textContent=l.getAttribute(t.captionAttribute)),a.textContent&&(a.id="tobii-figcaption-"+i,r.appendChild(a),o.setAttribute("aria-labelledby",a.id
2),++i)),n.appendChild(r),s.className="tobii-loader",s.setAttribute("role","progressbar"),s.setAttribute("aria-label",t.loadingIndicatorLabel),n.appendChild(s),n.setAttribute("data-type","image")},onPreload:function onPreload(e){C.image.onLoad(e)},onLoad:function onLoad(e){var t=e.querySelector("img");if(t.hasAttribute("data-src")){var n=e.querySelector("figure"),i=e.querySelector(".tobii-loader");t.onload=function(){e.removeChild(i),n.style.opacity="1"},t.setAttribute("src",t.getAttribute("data-src")),t.removeAttribute("data-src")}},onLeave:function onLeave(e){},onCleanup:function onCleanup(e){}},html:{checkSupport:function checkSupport(e){return de(e,"html")},init:function init(e,t){var n=e.hasAttribute("href")?e.getAttribute("href"):e.getAttribute("data-target"),i=document.querySelector(n);if(!i)throw new Error("Ups, I can't find the target "+n+".");t.appendChild(i),t.setAttribute("data-type","html")},onPreload:function onPreload(e){},onLoad:function onLoad(e){var n=e.querySelector("video");n&&(n.hasAttribute("data-time")&&n.readyState>0&&(n.currentTime=n.getAttribute("data-time")),t.autoplayVideo&&n.play())},onLeave:function onLeave(e){var t=e.querySelector("video");t&&(t.paused||t.pause(),t.readyState>0&&t.setAttribute("data-time",t.currentTime))},onCleanup:function onCleanup(e){var t=e.querySelector("video");if(t&&t.readyState>0&&t.readyState<3&&t.duration!==t.currentTime){var n=t.cloneNode(!0);ue(t),t.load(),t.parentNode.removeChild(t),e.appendChild(n)}}},iframe:{checkSupport:function checkSupport(e){return de(e,"iframe")},init:function init(e,t){var n=document.createElement("iframe"),i=e.hasAttribute("href")?e.getAttribute("href"):e.getAttribute("data-target");n.setAttribute("frameborder","0"),n.setAttribute("src",""),n.setAttribute("data-src",i),e.getAttribute("data-width")&&(n.style.maxWidth=e.getAttribute("data-width")+"px"),e.getAttribute("data-height")&&(n.style.maxHeight=e.getAttribute("data-height")+"px"),t.appendChild(n),t.setAttribute("data-type","iframe")},onPreload:function onPreload(e){},onLoad:function onLoad(e){var t=e.querySelector("iframe");t.setAttribute("src",t.getAttribute("data-src"))},onLeave:function onLeave(e){},onCleanup:function onCleanup(e){}},youtube:{checkSupport:function checkSupport(e){return de(e,"youtube")},init:function init(e,t){var n=document.createElement("div");t.appendChild(n),A[L]=new window.YT.Player(n,{host:"https://www.youtube-nocookie.com",height:e.getAttribute("data-height")||"360",width:e.getAttribute("data-width")||"640",videoId:e.getAttribute("data-id"),playerVars:{controls:e.getAttribute("data-controls")||1,rel:0,playsinline:1}}),t.setAttribute("data-player",L),t.setAttribute("data-type","youtube"),L++},onPreload:function onPreload(e){},onLoad:function onLoad(e){t.autoplayVideo&&A[e.getAttribute("data-player")].playVideo()},onLeave:function onLeave(e){1===A[e.getAttribute("data-player")].getPlayerState()&&A[e.getAttribute("data-player")].pauseVideo()},onCleanup:function onCleanup(e){1===A[e.getAttribute("data-player")].getPlayerState()&&A[e.getAttribute("data-player")].pauseVideo()}}};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,i=new Array(n);n--;)i[n]=[t[n],e[t[n]]];return i});var q=function init(e){t=S(e),r||M();var n=document.querySelectorAll(t.selector);if(!n)throw new Error("Ups, I can't find the selector "+t.selector+".");Array.prototype.forEach.call(n,(function(e){T(e)}))},T=function checkDependencies(e,t){if(null===document.querySelector('[data-type="youtube"]')||_)N(e,t);else{if(null===document.getElementById("iframe_api")){var n=document.createElement("script"),i=document.getElementsByTagName("script")[0];n.id="iframe_api",n.src="https://www.youtube.com/iframe_api",i.parentNode.insertBefore(n,i)}-1===y.indexOf(e)&&y.push(e),window.onYouTubePlayerAPIReady=function(){Array.prototype.forEach.call(y,(function(e){N(e,t)})),_=!0}}},I=function getGroupName(e){return e.hasAttribute("data-group")?e.getAttribute("data-group"):"default"},P=function copyObject(e){return JSON.parse(JSON.stringify(e))},N=function add(e,n){if(E=I(e),Object.prototype.hasOwnProperty.call(k,E)||
2(k[E]=P(w),j()),-1!==k[E].gallery.indexOf(e))throw new Error("Ups, element already added to the lightbox.");if(k[E].gallery.push(e),k[E].elementsLength++,t.zoom&&e.querySelector("img")){var i=document.createElement("div");i.className="tobii-zoom__icon",i.innerHTML=t.zoomText,e.classList.add("tobii-zoom"),e.appendChild(i)}e.addEventListener("click",Q),H(e),ge()&&E===x&&(pe(),fe()),n&&n.call(this)},O=function add(e,n){var i=I(e);if(-1===k[i].gallery.indexOf(e));else{var r=k[i].gallery.indexOf(e),a=k[i].sliderElements[r];if(k[i].elementsLength--,t.zoom&&e.querySelector(".tobii-zoom__icon")){var o=e.querySelector(".tobii-zoom__icon");o.parentNode.classList.remove("tobii-zoom"),o.parentNode.removeChild(o)}e.removeEventListener("click",Q),a.parentNode.removeChild(a),ge()&&i===x&&(pe(),fe()),n&&n.call(this)}},M=function createLightbox(){(r=document.createElement("div")).setAttribute("role","dialog"),r.setAttribute("aria-hidden","true"),r.className="tobii",(a=document.createElement("button")).className="tobii__prev",a.setAttribute("type","button"),a.setAttribute("aria-label",t.navLabel[0]),a.innerHTML=t.navText[0],r.appendChild(a),(o=document.createElement("button")).className="tobii__next",o.setAttribute("type","button"),o.setAttribute("aria-label",t.navLabel[1]),o.innerHTML=t.navText[1],r.appendChild(o),(l=document.createElement("button")).className="tobii__close",l.setAttribute("type","button"),l.setAttribute("aria-label",t.closeLabel),l.innerHTML=t.closeText,r.appendChild(l),(s=document.createElement("div")).className="tobii__counter",r.appendChild(s),document.body.appendChild(r)},j=function createSlider(){k[E].slider=document.createElement("div"),k[E].slider.className="tobii__slider",r.appendChild(k[E].slider)},H=function createSlide(e){for(var t in C)if(Object.prototype.hasOwnProperty.call(C,t)&&C[t].checkSupport(e)){var n=document.createElement("div"),i=document.createElement("div");n.className="tobii__slider-slide",n.style.position="absolute",n.style.left=100*k[E].x+"%",C[t].init(e,i),n.appendChild(i),k[E].slider.appendChild(n),k[E].sliderElements.push(n),++k[E].x;break}},D=function open(e,n){if(x=null!==x?x:E,ge()||e||(e=0),ge()){if(!e)throw new Error("Ups, Tobii is aleady open.");if(e===k[x].currentIndex)throw new Error("Ups, slide "+e+" is already selected.")}if(-1===e||e>=k[x].elementsLength)throw new Error("Ups, I can't find slide "+e+".");t.hideScrollbar&&(document.documentElement.classList.add("tobii-is-open"),document.body.classList.add("tobii-is-open")),pe(),t.close||(l.disabled=!1,l.setAttribute("aria-hidden","true")),m=document.activeElement,k[x].currentIndex=e,K(),se(),z(k[x].currentIndex),r.setAttribute("aria-hidden","false"),fe(),X(k[x].currentIndex+1),X(k[x].currentIndex-1),setTimeout((function(){k[x].slider.classList.add("tobii__slider--animate")}),1e3),n&&n.call(this)}
2,B=function close(e){if(!ge())throw new Error("Tobii is already closed.");t.hideScrollbar&&(document.documentElement.classList.remove("tobii-is-open"),document.body.classList.remove("tobii-is-open")),ce(),m.focus();var n=k[x].sliderElements[k[x].currentIndex].querySelector("[data-type]"),i=n.getAttribute("data-type");C[i].onLeave(n),C[i].onCleanup(n),r.setAttribute("aria-hidden","true"),k[x].currentIndex=0,k[x].slider.classList.remove("tobii__slider--animate"),e&&e.call(this)},X=function preload(e){if(void 0!==k[x].sliderElements[e]){var t=k[x].sliderElements[e].querySelector("[data-type]"),n=t.getAttribute("data-type");C[n].onPreload(t)}},z=function load(e){if(void 0!==k[x].sliderElements[e]){var t=k[x].sliderElements[e].querySelector("[data-type]"),n=t.getAttribute("data-type");C[n].onLoad(t)}},Y=function prev(e){k[x].currentIndex>0&&(R(k[x].currentIndex),z(--k[x].currentIndex),fe("left"),F(k[x].currentIndex+1),X(k[x].currentIndex-1),e&&e.call(this))},V=function next(e){k[x].currentIndex<k[x].elementsLength-1&&(R(k[x].currentIndex),z(++k[x].currentIndex),fe("right"),F(k[x].currentIndex-1),X(k[x].currentIndex+1),e&&e.call(this))},R=function leave(e){if(void 0!==k[x].sliderElements[e]){var t=k[x].sliderElements[e].querySelector("[data-type]"),n=t.getAttribute("data-type");C[n].onLeave(t)}},F=function cleanup(e){if(void 0!==k[x].sliderElements[e]){var t=k[x].sliderElements[e].querySelector("[data-type]"),n=t.getAttribute("data-type");C[n].onCleanup(t)}},U=function updateOffset(){g=-k[x=null!==x?x:E].currentIndex*r.offsetWidth,k[x].slider.style.transform="translate3d("+g+"px, 0, 0)",v=g},W=function updateCounter(){s.textContent=k[x].currentIndex+1+"/"+k[x].elementsLength},G=function updateFocus(e){var n=null;t.nav?(a.disabled=!1,o.disabled=!1,"left"===e?a.focus():o.focus(),1===k[x].elementsLength?(a.disabled=!0,o.disabled=!0,t.close&&l.focus()):(0===k[x].currentIndex&&(a.disabled=!0,o.focus()),k[x].currentIndex===k[x].elementsLength-1&&(o.disabled=!0,a.focus()))):t.close&&l.focus(),n=r.querySelectorAll(".tobii > button:not(:disabled)"),f=n[0],h=1===n.length?n[0]:n[n.length-1]},K=function clearDrag(){c={startX:0,endX:0,startY:0,endY:0}},J=function updateAfterDrag(){var e=c.endX-c.startX,n=c.endY-c.startY,i=Math.abs(e),r=Math.abs(n);e>0&&i>t.threshold&&k[x].currentIndex>0?Y():e<0&&i>t.threshold&&k[x].currentIndex!==k[x].elementsLength-1?V():n<0&&r>t.threshold&&t.swipeClose?B():U()},$=function resizeHandler(){b||(b=!0,n.requestAnimationFrame((function(){U(),b=!1})))},Q=function triggerTobii(e){e.preventDefault(),x=I(this),D(k[x].gallery.indexOf(this))},Z=function clickHandler(e){e.target===a?Y():e.target===o?V():(e.target===l||"tobii__slider-slide"===e.target.className&&t.docClose)&&B(),e.stopPropagation()},ee=function keydownHandler(e){9===e.keyCode||"Tab"===e.code?e.shiftKey?document.activeElement===f&&(h.focus(),e.preventDefault()):document.activeElement===h&&(f.focus(),e.preventDefault()):27===e.keyCode||"Escape"===e.code?(e.preventDefault(),B()):37===e.keyCode||"ArrowLeft"===e.code?(e.preventDefault(),Y()):39!==e.keyCode&&"ArrowRight"!==e.code||(e.preventDefault(),V())},te=function touchstartHandler(e){be(e.target)||(e.stopPropagation(),p=!0,c.startX=e.touches[0].pageX,c.startY=e.touches[0].pageY,k[x].slider.classList.add("tobii__slider--is-dragging"))},ne=function touchmoveHandler(e){e.stopPropagation(),p&&(e.preventDefault(),c.endX=e.touches[0].pageX,c.endY=e.touches[0].pageY,le())},ie=function touchendHandler(e){e.stopPropagation(),p=!1,k[x].slider.classList.remove("tobii__slider--is-dragging"),c.endX&&(d=!1,u=!1,J()),K()},re=function mousedownHandler(e){be(e.target)||(e.preventDefault(),e.stopPropagation(),p=!0,c.startX=e.pageX,c.startY=e.pageY,k[x].slider.classList.add("tobii__slider--is-dragging"))},ae=function mousemoveHandler(e){e.preventDefault(),p&&(c.endX=e.pageX,c.endY=e.pageY,le())},oe=function mouseupHandler(e){e.stopPropagation(),p=!1,k[x].slider.classList.remove("tobii__slider--is-dragging"),c.endX&&(d=!1,u=!1,J()),K()},le=function doSwipe(){Math.abs(c.startX-c.endX)>0&&!u&&t.swipeClose?(k[x].slider.style.transform="translate3d("+(v-Math.round(c.startX-c.endX))+"px, 0, 0)",d=!0,u=!1):Math.abs(c.startY-c.endY)>
20&&!d&&(k[x].slider.style.transform="translate3d("+v+"px, -"+Math.round(c.startY-c.endY)+"px, 0)",d=!1,u=!0)},se=function bindEvents(){t.keyboard&&n.addEventListener("keydown",ee),n.addEventListener("resize",$),r.addEventListener("click",Z),t.draggable&&(ve()&&(r.addEventListener("touchstart",te),r.addEventListener("touchmove",ne),r.addEventListener("touchend",ie)),r.addEventListener("mousedown",re),r.addEventListener("mouseup",oe),r.addEventListener("mousemove",ae))},ce=function unbindEvents(){t.keyboard&&n.removeEventListener("keydown",ee),n.removeEventListener("resize",$),r.removeEventListener("click",Z),t.draggable&&(ve()&&(r.removeEventListener("touchstart",te),r.removeEventListener("touchmove",ne),r.removeEventListener("touchend",ie)),r.removeEventListener("mousedown",re),r.removeEventListener("mouseup",oe),r.removeEventListener("mousemove",ae))},de=function checkType(e,t){return e.getAttribute("data-type")===t},ue=function setVideoSources(e){var t=e.querySelectorAll("src");t&&Array.prototype.forEach.call(t,(function(e){e.setAttribute("src","")}))},pe=function updateConfig(){t.draggable&&k[x].elementsLength>1&&!k[x].slider.classList.contains("tobii__slider--is-draggable")&&k[x].slider.classList.add("tobii__slider--is-draggable"),!t.nav||1===k[x].elementsLength||"auto"===t.nav&&ve()?(a.setAttribute("aria-hidden","true"),o.setAttribute("aria-hidden","true")):(a.setAttribute("aria-hidden","false"),o.setAttribute("aria-hidden","false")),t.counter&&1!==k[x].elementsLength?s.setAttribute("aria-hidden","false"):s.setAttribute("aria-hidden","true")},me=function updateSlider(){for(var e in k)Object.prototype.hasOwnProperty.call(k,e)&&(k[e].slider.style.display=x===e?"block":"none")},fe=function updateLightbox(e){me(),U(),W(),G(e)},he=function destroy(e){ge()&&B();var t=Object.entries(k);Array.prototype.forEach.call(t,(function(e){var t=e[1].gallery;Array.prototype.forEach.call(t,(function(e){O(e)}))})),r.parentNode.removeChild(r),k={},E=x=null,i=0,e&&e.call(this)},ge=function isOpen(){return"false"===r.getAttribute("aria-hidden")},ve=function isTouchDevice(){return"ontouchstart"in window},be=function isIgnoreElement(e){return-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.nodeName)||e===a||e===o||e===l||1===k[x].elementsLength},_e=function currentSlide(){return k[x].currentIndex},ye=function currentGroup(){return null!==x?x:E},Ae=function selectGroup(e){if(ge())throw new Error("Ups, I can't do this. Tobii is open.");if(e){if(e&&!Object.prototype.hasOwnProperty.call(k,e))throw new Error("Ups, I don't have a group called \""+e+'".');x=e}};return q(e),{open:D,prev:Y,next:V,close:B,add:T,remove:O,destroy:he,isOpen:ge,currentSlide:_e,selectGroup:Ae,currentGroup:ye}}return Tobii}()}},t={};function __webpack_require__(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__(202),__webpack_require__(255),__webpack_require__(343),__webpack_require__(320),__webpack_require__(421),__webpack_require__(52),__webpack_require__(270),__webpack_require__(766),__webpack_require__(664),performance.mark("Theme scripts")})();
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.