@ecl/preset-eu 3.3.2 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- /* @ecl/preset-eu - 3.3.2 Built on 2022-06-08T10:04:18.280Z */
1
+ /* @ecl/preset-eu - 3.3.3 Built on 2022-06-29T11:47:11.683Z */
2
2
  var ECL=function(e,moment){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(moment);Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}return null});function o(e,t){return void 0===t&&(t=document),[].slice.call(t.querySelectorAll(e))}function r(e,t){return(t=void 0===t?document:t).querySelector(e)}var a=["root"],moment=function(){function i(e,t){var t=void 0===t?{}:t,i=t.toggleSelector,i=void 0===i?"[data-ecl-accordion-toggle]":i,n=t.iconSelector,n=void 0===n?"[data-ecl-accordion-icon]":n,s=t.labelExpanded,s=void 0===s?"data-ecl-label-expanded":s,l=t.labelCollapsed,l=void 0===l?"data-ecl-label-collapsed":l,t=t.attachClickListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=i,this.iconSelector=n,this.attachClickListener=t,this.labelExpanded=s,this.labelCollapsed=l,this.toggles=null,this.forceClose=!1,this.target=null,this.label=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).ACCORDION,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLAccordion=t};var e=i.prototype;return e.init=function(){var t=this;this.toggles=o(this.toggleSelector,this.element),this.label=r(this.labelSelector,this.element),this.attachClickListener&&this.toggles&&this.toggles.forEach(function(e){e.addEventListener("click",t.handleClickOnToggle.bind(t,e))}),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.attachClickListener&&this.toggles&&this.toggles.forEach(function(e){e.replaceWith(e.cloneNode(!0))}),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.handleClickOnToggle=function(e){var t=r("#"+e.getAttribute("aria-controls"),this.element);if(!t)throw new TypeError("Target has to be provided for accordion (aria-controls)");var i,n=!0===this.forceClose||"true"===e.getAttribute("aria-expanded"),t=(e.setAttribute("aria-expanded",n?"false":"true"),t.hidden=n,r(this.iconSelector,e)),s=(!t||(t=r("use",t))&&(s=t.getAttribute("xlink:href"),i="",i=n?s.replace("minus","plus"):s.replace("plus","minus"),t.setAttribute("xlink:href",i)),r(".ecl-accordion__toggle-label",e));return s&&(s.textContent=n?e.getAttribute(this.labelCollapsed):e.getAttribute(this.labelExpanded)),this},i}(),n=function(){function i(e,t){var t=void 0===t?{}:t,i=t.toggleSelector,i=void 0===i?".ecl-carousel__toggle":i,n=t.prevSelector,n=void 0===n?".ecl-carousel__prev":n,s=t.nextSelector,s=void 0===s?".ecl-carousel__next":s,l=t.containerClass,l=void 0===l?".ecl-carousel__container":l,a=t.slidesClass,a=void 0===a?".ecl-carousel__slides":a,o=t.slideClass,o=void 0===o?".ecl-carousel__slide":o,r=t.currentSlideClass,r=void 0===r?".ecl-carousel__current":r,h=t.navigationItemsClass,h=void 0===h?".ecl-carousel__navigation-item":h,c=t.attachClickListener,c=void 0===c||c,t=t.attachResizeListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=i,this.prevSelector=n,this.nextSelector=s,this.containerClass=l,this.slidesClass=a,this.slideClass=o,this.currentSlideClass=r,this.navigationItemsClass=h,this.attachClickListener=c,this.attachResizeListener=t,this.toggle=null,this.container=null,this.slides=null,this.btnPrev=null,this.btnNext=null,this.index=1,this.total=0,this.allowShift=!0,this.autoPlay=!1,this.autoPlayInterval=null,this.resizeTimer=null,this.posX1=0,this.posX2=0,this.posInitial=0,this.posFinal=0,this.threshold=80,this.navigationItems=null,this.direction="ltr",this.cloneFirstSLide=null,this.cloneLastSLide=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.shiftSlide=this.shiftSlide.bind(this),this.checkIndex=this.checkIndex.bind(this),this.moveSlides=this.moveSlides.bind(this),this.resizeTicker=this.resizeTicker.bind(this),this.handleResize=this.handleResize.bind(this),this.dragStart=this.dragStart.bind(this),this.dragEnd=this.dragEnd.bind(this),this.dragAction=this.dragAction.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).CAROUSEL,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLCarousel=t};var e=i.prototype;return e.init=function(){var i=this,e=(this.toggle=r(this.toggleSelector,this.element),this.btnPrev=r(this.prevSelector,this.element),this.btnNext=r(this.nextSelector,this.element),this.slidesContainer=r(this.slidesClass,this.element),this.container=r(this.containerClass,this.element),this.navigationItems=o(this.navigationItemsClass,this.element),this.currentSlide=r(this.currentSlideClass,this.element),this.direction=getComputedStyle(this.element).direction,this.slides=o(this.slideClass,this.element),this.total=this.slides.length,this.slides[0]),t=this.slides[this.slides.length-1];this.cloneFirstSLide=e.cloneNode(!0),this.cloneLastSLide=t.cloneNode(!0),this.slidesContainer.appendChild(this.cloneFirstSLide),this.slidesContainer.insertBefore(this.cloneLastSLide,e),this.slides=o(this.slideClass,this.element),this.slides.forEach(function(e){e.style.width=100/i.slides.length+"%"}),this.resizeTicker(),this.handleClickOnToggle(),this.navigationItems&&this.navigationItems.forEach(function(e,t){e.addEventListener("click",i.shiftSlide.bind(i,t+1,!0))}),this.attachClickListener&&this.toggle&&this.toggle.addEventListener("click",this.handleClickOnToggle),this.attachClickListener&&this.btnNext&&this.btnNext.addEventListener("click",this.shiftSlide.bind(this,"next",!0)),this.attachClickListener&&this.btnPrev&&this.btnPrev.addEventListener("click",this.shiftSlide.bind(this,"prev",!0)),this.slidesContainer&&(this.slidesContainer.onmousedown=this.dragStart,this.slidesContainer.addEventListener("touchstart",this.dragStart),this.slidesContainer.addEventListener("touchend",this.dragEnd),this.slidesContainer.addEventListener("touchmove",this.dragAction),this.slidesContainer.addEventListener("transitionend",this.checkIndex)),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.cloneFirstSLide&&this.cloneLastSLide&&(this.cloneFirstSLide.remove(),this.cloneLastSLide.remove()),this.toggle&&this.toggle.replaceWith(this.toggle.cloneNode(!0)),this.btnNext&&this.btnNext.replaceWith(this.btnNext.cloneNode(!0)),this.btnPrev&&this.btnPrev.replaceWith(this.btnPrev.cloneNode(!0)),this.slidesContainer&&(this.slidesContainer.removeEventListener("touchstart",this.dragStart),this.slidesContainer.removeEventListener("touchend",this.dragEnd),this.slidesContainer.removeEventListener("touchmove",this.dragAction),this.slidesContainer.removeEventListener("transitionend",this.checkIndex)),this.navigationItems&&this.navigationItems.forEach(function(e){e.replaceWith(e.cloneNode(!0))}),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.dragStart=function(e){(e=e||window.event).preventDefault(),this.posInitial=this.slidesContainer.offsetLeft,"touchstart"===e.type?this.posX1=e.touches[0].clientX:(this.posX1=e.clientX,document.onmouseup=this.dragEnd,document.onmousemove=this.dragAction)},e.dragAction=function(e){"touchmove"===(e=e||window.event).type?(this.posX2=this.posX1-e.touches[0].clientX,this.posX1=e.touches[0].clientX):(this.posX2=this.posX1-e.clientX,this.posX1=e.clientX),this.slidesContainer.style.left=this.slidesContainer.offsetLeft-this.posX2+"px"},e.dragEnd=function(){this.posFinal=this.slidesContainer.offsetLeft,this.posFinal-this.posInitial<-this.threshold?this.shiftSlide("next",!0):this.posFinal-this.posInitial>this.threshold?this.shiftSlide("prev",!0):this.slidesContainer.style.left=this.posInitial+"px",document.onmouseup=null,document.onmousemove=null},e.shiftSlide=function(e,t){this.allowShift&&(this.index="number"==typeof e?e:"next"===e?this.index+1:this.index-1,this.moveSlides(!0)),t&&this.autoPlay&&this.handleClickOnToggle(),this.allowShift=!1},e.moveSlides=function(e){var t=this.container.offsetWidth*this.index;this.slidesContainer.style.transitionDuration=e?"0.4s":"0s","rtl"===this.direction?this.slidesContainer.style.right="-"+t+"px":this.slidesContainer.style.left="-"+t+"px"},e.checkIndex=function(){var i=this;0===this.index&&(this.index=this.total),this.index===this.total+1&&(this.index=1),this.moveSlides(!1),this.currentSlide&&(this.currentSlide.textContent=this.index),this.slides&&this.slides.forEach(function(e,t){i.index===t?e.removeAttribute("aria-hidden","true"):e.setAttribute("aria-hidden","true")}),this.navigationItems&&this.navigationItems.forEach(function(e,t){i.index===t+1?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current","true")}),this.allowShift=!0},e.handleClickOnToggle=function(){var e=this,t=r(this.toggleSelector+" .ecl-icon use",this.element),i=t.getAttribute("xlink:href"),n="",n=this.autoPlay?(clearInterval(this.autoPlayInterval),this.autoPlay=!1,i.replace("pause","play")):(this.autoPlayInterval=setInterval(function(){e.shiftSlide("next")},5e3),this.autoPlay=!0,i.replace("play","pause"));t.setAttribute("xlink:href",n)},e.resizeTicker=function(){var e=this.container.offsetWidth;this.slidesContainer.style.width=e*this.slides.length+"px",this.moveSlides(!1),940<=e&&e<=1220?this.container.classList.add("ecl-carousel-container--padded"):this.container.classList.remove("ecl-carousel-container--padded")},e.handleResize=function(){return this.resizeTicker(),this.autoPlay&&this.handleClickOnToggle(),this},i}(),s=function(){function i(e,t){var t=void 0===t?{}:t,i=t.itemSelector,i=void 0===i?".ecl-category-filter__item--has-children":i,t=t.attachClickListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.itemSelector=i,this.attachClickListener=t,this.items=null,this.handleClickExpand=this.handleClickExpand.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).CATEGORY_FILTER,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLCategoryFilter=t};var e=i.prototype;return e.init=function(){var t=this;this.items=o(this.itemSelector,this.element),this.attachClickListener&&this.items&&this.items.forEach(function(e){return e.addEventListener("click",t.handleClickExpand)}),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){var t=this;this.attachClickListener&&this.items&&this.items.forEach(function(e){e.removeEventListener("click",t.handleClickExpand,!1)}),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.handleClickExpand=function(e){e.preventDefault();var t=e.target.closest(".ecl-category-filter__item");if(t.blur(),t.classList.contains("ecl-category-filter__item--level-1")&&(this.items.forEach(function(e){e!==t&&e.parentElement.setAttribute("aria-expanded","false")}),"true"===t.parentElement.getAttribute("aria-expanded")))return t.parentElement.setAttribute("aria-expanded","false"),void t.classList.remove("ecl-category-filter__item--current");this.items.forEach(function(e){e===t?e.classList.add("ecl-category-filter__item--current"):e.classList.remove("ecl-category-filter__item--current")});e=t.parentElement.getAttribute("aria-expanded");t.parentElement.setAttribute("aria-expanded","false"===e?"true":"false")},i}(),B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e,t){return e(t={exports:{}},t.exports),t.exports}function h(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex}function R(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function c(e){return"INPUT"===e.tagName}function P(e){if(!e.name)return 1;function t(e){return i.querySelectorAll('input[type="radio"][name="'+e+'"]')}var i=e.form||f(e);if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)n=t(window.CSS.escape(e.name));else try{n=t(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),0}var n=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]}(n,e.form);return!n||n===e}function F(e){return c(t=e)&&"radio"===t.type&&!P(e);var t}function d(e){var t=(e=e.getBoundingClientRect()).width,e=e.height;return 0===t&&0===e}function E(e,t){if(t=t||{},e)return!1!==p.call(e,g)&&C(t,e);throw new Error("No node provided")}function S(e,t){if(t=t||{},e)return!1!==p.call(e,$)&&L(t,e);throw new Error("No node provided")}var z=l(function(e,t){var moment;try{moment=i.default}catch(e){}e.exports=function(moment){var o=typeof moment==="function",l=!!window.addEventListener,g=window.document,c=window.setTimeout,a=function e(t,i,n,s){if(l)t.addEventListener(i,n,!!s);else t.attachEvent("on"+i,n)},i=function e(t,i,n,s){if(l)t.removeEventListener(i,n,!!s);else t.detachEvent("on"+i,n)},n=function e(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},r=function e(t,i){return(" "+t.className+" ").indexOf(" "+i+" ")!==-1},v=function e(t,i){if(!r(t,i))t.className=t.className===""?i:t.className+" "+i},p=function e(t,i){t.className=n((" "+t.className+" ").replace(" "+i+" "," "))},b=function e(t){return/Array/.test(Object.prototype.toString.call(t))},M=function e(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},N=function e(t){var i=t.getDay();return i===0||i===6},s=function e(t){return t%4===0&&t%100!==0||t%400===0},B=function e(t,i){return[31,s(t)?29:28,31,30,31,30,31,31,30,31,30,31][i]},R=function e(t){if(M(t))t.setHours(0,0,0,0)},P=function e(t,i){return t.getTime()===i.getTime()},h=function e(t,i,n){var s,l;for(s in i){l=t[s]!==undefined;if(l&&typeof i[s]==="object"&&i[s]!==null&&i[s].nodeName===undefined)if(M(i[s])){if(n)t[s]=new Date(i[s].getTime())}else if(b(i[s])){if(n)t[s]=i[s].slice(0)}else t[s]=e({},i[s],n);else if(n||!l)t[s]=i[s]}return t},d=function e(t,i,n){var s;if(g.createEvent){s=g.createEvent("HTMLEvents");s.initEvent(i,true,false);s=h(s,n);t.dispatchEvent(s)}else if(g.createEventObject){s=g.createEventObject();s=h(s,n);t.fireEvent("on"+i,s)}},u=function e(t){if(t.month<0){t.year-=Math.ceil(Math.abs(t.month)/12);t.month+=12}if(t.month>11){t.year+=Math.floor(Math.abs(t.month)/12);t.month-=12}return t},f={field:null,bound:undefined,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:true,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:false,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:false,minDate:null,maxDate:null,yearRange:10,showWeekNumber:false,pickWholeWeek:false,minYear:0,maxYear:9999,minMonth:undefined,maxMonth:undefined,startRange:null,endRange:null,isRTL:false,yearSuffix:"",showMonthAfterYear:false,showDaysInNextAndPreviousMonths:false,enableSelectionDaysInNextAndPreviousMonths:false,numberOfMonths:1,mainCalendar:"left",container:undefined,blurFieldOnSelect:true,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:true},m=function e(t,i,n){i+=t.firstDay;while(i>=7)i-=7;return n?t.i18n.weekdaysShort[i]:t.i18n.weekdays[i]},F=function e(t){var i=[];var n="false";if(t.isEmpty)if(t.showDaysInNextAndPreviousMonths){i.push("is-outside-current-month");if(!t.enableSelectionDaysInNextAndPreviousMonths)i.push("is-selection-disabled")}else return'<td class="is-empty"></td>';if(t.isDisabled)i.push("is-disabled");if(t.isToday)i.push("is-today");if(t.isSelected){i.push("is-selected");n="true"}if(t.hasEvent)i.push("has-event");if(t.isInRange)i.push("is-inrange");if(t.isStartRange)i.push("is-startrange");if(t.isEndRange)i.push("is-endrange");return'<td data-day="'+t.day+'" class="'+i.join(" ")+'" aria-selected="'+n+'">'+'<button class="pika-button pika-day" type="button" '+'data-pika-year="'+t.year+'" data-pika-month="'+t.month+'" data-pika-day="'+t.day+'">'+t.day+"</button>"+"</td>"},y=function e(t,i){t.setHours(0,0,0,0);var n=t.getDate(),s=t.getDay(),l=i,a=l-1,o=7,r=function e(t){return(t+o-1)%o};t.setDate(n+a-r(s));var h=new Date(t.getFullYear(),0,l),c=24*60*60*1e3,d=(t.getTime()-h.getTime())/c,u=1+Math.round((d-a+r(h.getDay()))/o);return u},z=function e(t,i,n,s){var l=new Date(n,i,t),a=o?moment(l).isoWeek():y(l,s);return'<td class="pika-week">'+a+"</td>"},H=function e(t,i,n,s){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(s?" is-selected":"")+'">'+(i?t.reverse():t).join("")+"</tr>"},E=function e(t){return"<tbody>"+t.join("")+"</tbody>"},S=function e(t){var i,n=[];if(t.showWeekNumber)n.push("<th></th>");for(i=0;i<7;i++)n.push('<th scope="col"><abbr title="'+m(t,i)+'">'+m(t,i,true)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?n.reverse():n).join("")+"</tr></thead>"},w=function e(t,i,n,s,l,a){var o,r,h,c=t._o,d=n===c.minYear,u=n===c.maxYear,g='<div id="'+a+'" class="pika-title" role="heading" aria-live="assertive">',v,p,f=true,m=true;for(h=[],o=0;o<12;o++)h.push('<option value="'+(n===l?o-i:12+o-i)+'"'+(o===s?' selected="selected"':"")+(d&&o<c.minMonth||u&&o>c.maxMonth?' disabled="disabled"':"")+">"+c.i18n.months[o]+"</option>");v='<div class="pika-label">'+c.i18n.months[s]+'<select class="pika-select pika-select-month" tabindex="-1">'+h.join("")+"</select></div>";if(b(c.yearRange)){o=c.yearRange[0];r=c.yearRange[1]+1}else{o=n-c.yearRange;r=1+n+c.yearRange}for(h=[];o<r&&o<=c.maxYear;o++)if(o>=c.minYear)h.push('<option value="'+o+'"'+(o===n?' selected="selected"':"")+">"+o+"</option>");p='<div class="pika-label">'+n+c.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+h.join("")+"</select></div>";if(c.showMonthAfterYear)g+=p+v;else g+=v+p;if(d&&(s===0||c.minMonth>=s))f=false;if(u&&(s===11||c.maxMonth<=s))m=false;if(i===0)g+='<button class="pika-prev'+(f?"":" is-disabled")+'" type="button">'+c.i18n.previousMonth+"</button>";if(i===t._o.numberOfMonths-1)g+='<button class="pika-next'+(m?"":" is-disabled")+'" type="button">'+c.i18n.nextMonth+"</button>";return g+="</div>"},V=function e(t,i,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+S(t)+E(i)+"</table>"},e=function e(t){var n=this,s=n.config(t);n._onMouseDown=function(e){if(!n._v)return;e=e||window.event;var t=e.target||e.srcElement;if(!t)return;if(!r(t,"is-disabled"))if(r(t,"pika-button")&&!r(t,"is-empty")&&!r(t.parentNode,"is-disabled")){n.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day")));if(s.bound)c(function(){n.hide();if(s.blurFieldOnSelect&&s.field)s.field.blur()},100)}else if(r(t,"pika-prev"))n.prevMonth();else if(r(t,"pika-next"))n.nextMonth();if(!r(t,"pika-select"))if(e.preventDefault)e.preventDefault();else{e.returnValue=false;return false}else n._c=true};n._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;if(!t)return;if(r(t,"pika-select-month"))n.gotoMonth(t.value);else if(r(t,"pika-select-year"))n.gotoYear(t.value)};n._onKeyChange=function(e){e=e||window.event;if(n.isVisible())switch(e.keyCode){case 13:case 27:if(s.field)s.field.blur();break;case 37:n.adjustDate("subtract",1);break;case 38:n.adjustDate("subtract",7);break;case 39:n.adjustDate("add",1);break;case 40:n.adjustDate("add",7);break;case 8:case 46:n.setDate(null);break}};n._parseFieldValue=function(){if(s.parse)return s.parse(s.field.value,s.format);else if(o){var e=moment(s.field.value,s.format,s.formatStrict);return e&&e.isValid()?e.toDate():null}else return new Date(Date.parse(s.field.value))};n._onInputChange=function(e){var t;if(e.firedBy===n)return;t=n._parseFieldValue();if(M(t))n.setDate(t);if(!n._v)n.show()};n._onInputFocus=function(){n.show()};n._onInputClick=function(){n.show()};n._onInputBlur=function(){var e=g.activeElement;do{if(r(e,"pika-single"))return}while(e=e.parentNode);if(!n._c)n._b=c(function(){n.hide()},50);n._c=false};n._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,i=t;if(!t)return;if(!l&&r(t,"pika-select"))if(!t.onchange){t.setAttribute("onchange","return;");a(t,"change",n._onChange)}do{if(r(i,"pika-single")||i===s.trigger)return}while(i=i.parentNode);if(n._v&&t!==s.trigger&&i!==s.trigger)n.hide()};n.el=g.createElement("div");n.el.className="pika-single"+(s.isRTL?" is-rtl":"")+(s.theme?" "+s.theme:"");a(n.el,"mousedown",n._onMouseDown,true);a(n.el,"touchend",n._onMouseDown,true);a(n.el,"change",n._onChange);if(s.keyboardInput)a(g,"keydown",n._onKeyChange);if(s.field){if(s.container)s.container.appendChild(n.el);else if(s.bound)g.body.appendChild(n.el);else s.field.parentNode.insertBefore(n.el,s.field.nextSibling);a(s.field,"change",n._onInputChange);if(!s.defaultDate){s.defaultDate=n._parseFieldValue();s.setDefaultDate=true}}var i=s.defaultDate;if(M(i))if(s.setDefaultDate)n.setDate(i,true);else n.gotoDate(i);else n.gotoDate(new Date);if(s.bound){this.hide();n.el.className+=" is-bound";a(s.trigger,"click",n._onInputClick);a(s.trigger,"focus",n._onInputFocus);a(s.trigger,"blur",n._onInputBlur)}else this.show()};return e.prototype={config:function e(t){if(!this._o)this._o=h({},f,true);var i=h(this._o,t,true);i.isRTL=!!i.isRTL;i.field=i.field&&i.field.nodeName?i.field:null;i.theme=typeof i.theme==="string"&&i.theme?i.theme:null;i.bound=!!(i.bound!==undefined?i.field&&i.bound:i.field);i.trigger=i.trigger&&i.trigger.nodeName?i.trigger:i.field;i.disableWeekends=!!i.disableWeekends;i.disableDayFn=typeof i.disableDayFn==="function"?i.disableDayFn:null;var n=parseInt(i.numberOfMonths,10)||1;i.numberOfMonths=n>4?4:n;if(!M(i.minDate))i.minDate=false;if(!M(i.maxDate))i.maxDate=false;if(i.minDate&&i.maxDate&&i.maxDate<i.minDate)i.maxDate=i.minDate=false;if(i.minDate)this.setMinDate(i.minDate);if(i.maxDate)this.setMaxDate(i.maxDate);if(b(i.yearRange)){var s=(new Date).getFullYear()-10;i.yearRange[0]=parseInt(i.yearRange[0],10)||s;i.yearRange[1]=parseInt(i.yearRange[1],10)||s}else{i.yearRange=Math.abs(parseInt(i.yearRange,10))||f.yearRange;if(i.yearRange>100)i.yearRange=100}return i},toString:function e(t){t=t||this._o.format;if(!M(this._d))return"";if(this._o.toString)return this._o.toString(this._d,t);if(o)return moment(this._d).format(t);return this._d.toDateString()},getMoment:function e(){return o?moment(this._d):null},setMoment:function e(t,i){if(o&&moment.isMoment(t))this.setDate(t.toDate(),i)},getDate:function e(){return M(this._d)?new Date(this._d.getTime()):null},setDate:function e(t,i){if(!t){this._d=null;if(this._o.field){this._o.field.value="";d(this._o.field,"change",{firedBy:this})}return this.draw()}if(typeof t==="string")t=new Date(Date.parse(t));if(!M(t))return;var n=this._o.minDate,s=this._o.maxDate;if(M(n)&&t<n)t=n;else if(M(s)&&t>s)t=s;this._d=new Date(t.getTime());R(this._d);this.gotoDate(this._d);if(this._o.field){this._o.field.value=this.toString();d(this._o.field,"change",{firedBy:this})}if(!i&&typeof this._o.onSelect==="function")this._o.onSelect.call(this,this.getDate())},clear:function e(){this.setDate(null)},gotoDate:function e(t){var i=true;if(!M(t))return;if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),s=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),l=t.getTime();s.setMonth(s.getMonth()+1);s.setDate(s.getDate()-1);i=l<n.getTime()||s.getTime()<l}if(i){this.calendars=[{month:t.getMonth(),year:t.getFullYear()}];if(this._o.mainCalendar==="right")this.calendars[0].month+=1-this._o.numberOfMonths}this.adjustCalendars()},adjustDate:function e(t,i){var n=this.getDate()||new Date;var s=parseInt(i)*24*60*60*1e3;var l;if(t==="add")l=new Date(n.valueOf()+s);else if(t==="subtract")l=new Date(n.valueOf()-s);this.setDate(l)},adjustCalendars:function e(){this.calendars[0]=u(this.calendars[0]);for(var t=1;t<this._o.numberOfMonths;t++)this.calendars[t]=u({month:this.calendars[0].month+t,year:this.calendars[0].year});this.draw()},gotoToday:function e(){this.gotoDate(new Date)},gotoMonth:function e(t){if(!isNaN(t)){this.calendars[0].month=parseInt(t,10);this.adjustCalendars()}},nextMonth:function e(){this.calendars[0].month++;this.adjustCalendars()},prevMonth:function e(){this.calendars[0].month--;this.adjustCalendars()},gotoYear:function e(t){if(!isNaN(t)){this.calendars[0].year=parseInt(t,10);this.adjustCalendars()}},setMinDate:function e(t){if(t instanceof Date){R(t);this._o.minDate=t;this._o.minYear=t.getFullYear();this._o.minMonth=t.getMonth()}else{this._o.minDate=f.minDate;this._o.minYear=f.minYear;this._o.minMonth=f.minMonth;this._o.startRange=f.startRange}this.draw()},setMaxDate:function e(t){if(t instanceof Date){R(t);this._o.maxDate=t;this._o.maxYear=t.getFullYear();this._o.maxMonth=t.getMonth()}else{this._o.maxDate=f.maxDate;this._o.maxYear=f.maxYear;this._o.maxMonth=f.maxMonth;this._o.endRange=f.endRange}this.draw()},setStartRange:function e(t){this._o.startRange=t},setEndRange:function e(t){this._o.endRange=t},draw:function e(t){if(!this._v&&!t)return;var i=this._o,n=i.minYear,s=i.maxYear,l=i.minMonth,a=i.maxMonth,o="",r;if(this._y<=n){this._y=n;if(!isNaN(l)&&this._m<l)this._m=l}if(this._y>=s){this._y=s;if(!isNaN(a)&&this._m>a)this._m=a}for(var h=0;h<i.numberOfMonths;h++){r="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);o+='<div class="pika-lendar">'+w(this,h,this.calendars[h].year,this.calendars[h].month,this.calendars[0].year,r)+this.render(this.calendars[h].year,this.calendars[h].month,r)+"</div>"}this.el.innerHTML=o;if(i.bound)if(i.field.type!=="hidden")c(function(){i.trigger.focus()},1);if(typeof this._o.onDraw==="function")this._o.onDraw(this);if(i.bound)i.field.setAttribute("aria-label",i.ariaLabel)},adjustPosition:function e(){var t,i,n,s,l,a,o,r,h,c,d,u;if(this._o.container)return;this.el.style.position="absolute";t=this._o.trigger;i=t;n=this.el.offsetWidth;s=this.el.offsetHeight;l=window.innerWidth||g.documentElement.clientWidth;a=window.innerHeight||g.documentElement.clientHeight;o=window.pageYOffset||g.body.scrollTop||g.documentElement.scrollTop;d=true;u=true;if(typeof t.getBoundingClientRect==="function"){c=t.getBoundingClientRect();r=c.left+window.pageXOffset;h=c.bottom+window.pageYOffset}else{r=i.offsetLeft;h=i.offsetTop+i.offsetHeight;while(i=i.offsetParent){r+=i.offsetLeft;h+=i.offsetTop}}if(this._o.reposition&&r+n>l||this._o.position.indexOf("right")>-1&&r-n+t.offsetWidth>0){r=r-n+t.offsetWidth;d=false}if(this._o.reposition&&h+s>a+o||this._o.position.indexOf("top")>-1&&h-s-t.offsetHeight>0){h=h-s-t.offsetHeight;u=false}this.el.style.left=r+"px";this.el.style.top=h+"px";v(this.el,d?"left-aligned":"right-aligned");v(this.el,u?"bottom-aligned":"top-aligned");p(this.el,!d?"left-aligned":"right-aligned");p(this.el,!u?"bottom-aligned":"top-aligned")},render:function e(t,i,n){var s=this._o,l=new Date,a=B(t,i),o=new Date(t,i,1).getDay(),r=[],h=[];R(l);if(s.firstDay>0){o-=s.firstDay;if(o<0)o+=7}var c=i===0?11:i-1,d=i===11?0:i+1,u=i===0?t-1:t,g=i===11?t+1:t,v=B(u,c);var p=a+o,f=p;while(f>7)f-=7;p+=7-f;var m=false;for(var b=0,y=0;b<p;b++){var E=new Date(t,i,1+(b-o)),S=M(this._d)?P(E,this._d):false,w=P(E,l),k=s.events.indexOf(E.toDateString())!==-1?true:false,L=b<o||b>=a+o,C=1+(b-o),x=i,T=t,O=s.startRange&&P(s.startRange,E),A=s.endRange&&P(s.endRange,E),_=s.startRange&&s.endRange&&s.startRange<E&&E<s.endRange,I=s.minDate&&E<s.minDate||s.maxDate&&E>s.maxDate||s.disableWeekends&&N(E)||s.disableDayFn&&s.disableDayFn(E);if(L)if(b<o){C=v+C;x=c;T=u}else{C=C-a;x=d;T=g}var D={day:C,month:x,year:T,hasEvent:k,isSelected:S,isToday:w,isDisabled:I,isEmpty:L,isStartRange:O,isEndRange:A,isInRange:_,showDaysInNextAndPreviousMonths:s.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:s.enableSelectionDaysInNextAndPreviousMonths};if(s.pickWholeWeek&&S)m=true;h.push(F(D));if(++y===7){if(s.showWeekNumber)h.unshift(z(b-o,i,t,s.firstWeekOfYearMinDays));r.push(H(h,s.isRTL,s.pickWholeWeek,m));h=[];y=0;m=false}}return V(s,r,n)},isVisible:function e(){return this._v},show:function e(){if(!this.isVisible()){this._v=true;this.draw();p(this.el,"is-hidden");if(this._o.bound){a(g,"click",this._onClick);this.adjustPosition()}if(typeof this._o.onOpen==="function")this._o.onOpen.call(this)}},hide:function e(){var t=this._v;if(t!==false){if(this._o.bound)i(g,"click",this._onClick);if(!this._o.container){this.el.style.position="static";this.el.style.left="auto";this.el.style.top="auto"}v(this.el,"is-hidden");this._v=false;if(t!==undefined&&typeof this._o.onClose==="function")this._o.onClose.call(this)}},destroy:function e(){var t=this._o;this.hide();i(this.el,"mousedown",this._onMouseDown,true);i(this.el,"touchend",this._onMouseDown,true);i(this.el,"change",this._onChange);if(t.keyboardInput)i(g,"keydown",this._onKeyChange);if(t.field){i(t.field,"change",this._onInputChange);if(t.bound){i(t.trigger,"click",this._onInputClick);i(t.trigger,"focus",this._onInputFocus);i(t.trigger,"blur",this._onInputBlur)}}if(this.el.parentNode)this.el.parentNode.removeChild(this.el)}},e}(moment)}),H=function(){function i(e,t){var t=void 0===t?{}:t,i=t.format,i=void 0===i?"DD-MM-YYYY":i,n=t.theme,n=void 0===n?"ecl-datepicker-theme":n,s=t.yearRange,s=void 0===s?40:s,l=t.reposition,l=void 0!==l&&l,a=t.i18n,a=void 0===a?{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}:a,o=t.showDaysInNextAndPreviousMonths,o=void 0===o||o,t=t.enableSelectionDaysInNextAndPreviousMonths,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.picker=null,this.format=i,this.theme=n,this.yearRange=s,this.i18n=a,this.showDaysInNextAndPreviousMonths=o,this.enableSelectionDaysInNextAndPreviousMonths=t,this.reposition=l,this.direction="ltr"}i.autoInit=function(e,t){t=(void 0===t?{}:t).DATEPICKER,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLDatepicker=t};var e=i.prototype;return e.init=function(){return this.direction=getComputedStyle(this.element).direction,this.picker=new z({field:this.element,format:this.format,yearRange:this.yearRange,firstDay:1,i18n:this.i18n,theme:this.theme,reposition:this.reposition,isRTL:"rtl"===this.direction,position:"rtl"===this.direction?"bottom right":"bottom left",showDaysInNextAndPreviousMonths:this.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:this.enableSelectionDaysInNextAndPreviousMonths,onOpen:function(){this.direction=getComputedStyle(this.el).direction;var e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),t=this.el.getBoundingClientRect(),t="rtl"===this.direction?e-t.right:t.left;e<768&&(this.el.style.width="auto",this.el.style.left=t+"px",this.el.style.right=t+"px")}}),this.element.setAttribute("data-ecl-auto-initialized","true"),this.picker},e.destroy=function(){this.picker&&(this.picker.destroy(),this.picker=null),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},i}(),V=function(){function i(e,t){var t=void 0===t?{}:t,i=t.ellipsisButtonSelector,i=void 0===i?"[data-ecl-breadcrumb-ellipsis-button]":i,n=t.ellipsisSelector,n=void 0===n?"[data-ecl-breadcrumb-ellipsis]":n,s=t.segmentSelector,s=void 0===s?"[data-ecl-breadcrumb-item]":s,l=t.expandableItemsSelector,l=void 0===l?'[data-ecl-breadcrumb-item="expandable"]':l,a=t.staticItemsSelector,a=void 0===a?'[data-ecl-breadcrumb-item="static"]':a,o=t.onPartialExpand,o=void 0===o?null:o,r=t.onFullExpand,r=void 0===r?null:r,t=t.attachClickListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=i,this.ellipsisSelector=n,this.segmentSelector=s,this.expandableItemsSelector=l,this.staticItemsSelector=a,this.onPartialExpand=o,this.onFullExpand=r,this.attachClickListener=t,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).BREADCRUMB,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLBreadcrumb=t};var e=i.prototype;return e.init=function(){this.ellipsisButton=r(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=o(this.segmentSelector,this.element),this.staticElements=o(this.staticItemsSelector,this.element),this.expandableElements=o(this.expandableItemsSelector,this.element),this.check()},e.destroy=function(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.handleClickOnEllipsis=function(){return this.handleFullExpand()},e.check=function(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))},e.hideEllipsis=function(){var e=r(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.showAllItems=function(){this.expandableElements.forEach(function(e){return e.setAttribute("aria-hidden","false")})},e.handlePartialExpand=function(e){var i;!e||(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach(function(e,t){e.setAttribute("aria-hidden",i[t]?"false":"true")}))},e.handleFullExpand=function(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())},e.computeVisibilityMap=function(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var t=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=t)return{expanded:!0};var i=r(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(t<=i)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var n=0,s=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!s)return!1;e=(n+=e.getBoundingClientRect().width)+i<=t;return e||(s=!1),e}).reverse()}},i}(),W=function(){function i(e,t){var t=void 0===t?{}:t,i=t.ellipsisButtonSelector,i=void 0===i?"[data-ecl-breadcrumb-core-ellipsis-button]":i,n=t.ellipsisSelector,n=void 0===n?"[data-ecl-breadcrumb-core-ellipsis]":n,s=t.segmentSelector,s=void 0===s?"[data-ecl-breadcrumb-core-item]":s,l=t.expandableItemsSelector,l=void 0===l?'[data-ecl-breadcrumb-core-item="expandable"]':l,a=t.staticItemsSelector,a=void 0===a?'[data-ecl-breadcrumb-core-item="static"]':a,o=t.onPartialExpand,o=void 0===o?null:o,r=t.onFullExpand,r=void 0===r?null:r,t=t.attachClickListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=i,this.ellipsisSelector=n,this.segmentSelector=s,this.expandableItemsSelector=l,this.staticItemsSelector=a,this.onPartialExpand=o,this.onFullExpand=r,this.attachClickListener=t,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).BREADCRUMB_CORE,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLBreadcrumbCore=t};var e=i.prototype;return e.init=function(){this.ellipsisButton=r(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=o(this.segmentSelector,this.element),this.staticElements=o(this.staticItemsSelector,this.element),this.expandableElements=o(this.expandableItemsSelector,this.element),this.check(),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.handleClickOnEllipsis=function(){return this.handleFullExpand()},e.check=function(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))},e.hideEllipsis=function(){var e=r(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.showAllItems=function(){this.expandableElements.forEach(function(e){return e.setAttribute("aria-hidden","false")})},e.handlePartialExpand=function(e){var i;!e||(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach(function(e,t){e.setAttribute("aria-hidden",i[t]?"false":"true")}))},e.handleFullExpand=function(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())},e.computeVisibilityMap=function(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var t=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=t)return{expanded:!0};var i=r(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(t<=i)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var n=0,s=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!s)return!1;e=(n+=e.getBoundingClientRect().width)+i<=t;return e||(s=!1),e}).reverse()}},i}(),j=function(){function i(e,t){var t=void 0===t?{}:t,i=t.ellipsisButtonSelector,i=void 0===i?"[data-ecl-breadcrumb-standardised-ellipsis-button]":i,n=t.ellipsisSelector,n=void 0===n?"[data-ecl-breadcrumb-standardised-ellipsis]":n,s=t.segmentSelector,s=void 0===s?"[data-ecl-breadcrumb-standardised-item]":s,l=t.expandableItemsSelector,l=void 0===l?'[data-ecl-breadcrumb-standardised-item="expandable"]':l,a=t.staticItemsSelector,a=void 0===a?'[data-ecl-breadcrumb-standardised-item="static"]':a,o=t.onPartialExpand,o=void 0===o?null:o,r=t.onFullExpand,r=void 0===r?null:r,t=t.attachClickListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=i,this.ellipsisSelector=n,this.segmentSelector=s,this.expandableItemsSelector=l,this.staticItemsSelector=a,this.onPartialExpand=o,this.onFullExpand=r,this.attachClickListener=t,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).BREADCRUMB_STANDARDISED,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLBreadcrumbStandardised=t};var e=i.prototype;return e.init=function(){this.ellipsisButton=r(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=o(this.segmentSelector,this.element),this.staticElements=o(this.staticItemsSelector,this.element),this.expandableElements=o(this.expandableItemsSelector,this.element),this.check(),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.handleClickOnEllipsis=function(){return this.handleFullExpand()},e.check=function(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))},e.hideEllipsis=function(){var e=r(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.showAllItems=function(){this.expandableElements.forEach(function(e){return e.setAttribute("aria-hidden","false")})},e.handlePartialExpand=function(e){var i;!e||(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach(function(e,t){e.setAttribute("aria-hidden",i[t]?"false":"true")}))},e.handleFullExpand=function(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())},e.computeVisibilityMap=function(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var t=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=t)return{expanded:!0};var i=r(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(t<=i)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var n=0,s=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!s)return!1;e=(n+=e.getBoundingClientRect().width)+i<=t;return e||(s=!1),e}).reverse()}},i}(),Y=function(){function i(e,t){var t=void 0===t?{}:t,i=t.ellipsisButtonSelector,i=void 0===i?"[data-ecl-breadcrumb-harmonised-ellipsis-button]":i,n=t.ellipsisSelector,n=void 0===n?"[data-ecl-breadcrumb-harmonised-ellipsis]":n,s=t.segmentSelector,s=void 0===s?"[data-ecl-breadcrumb-harmonised-item]":s,l=t.expandableItemsSelector,l=void 0===l?'[data-ecl-breadcrumb-harmonised-item="expandable"]':l,a=t.staticItemsSelector,a=void 0===a?'[data-ecl-breadcrumb-harmonised-item="static"]':a,o=t.onPartialExpand,o=void 0===o?null:o,r=t.onFullExpand,r=void 0===r?null:r,t=t.attachClickListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=i,this.ellipsisSelector=n,this.segmentSelector=s,this.expandableItemsSelector=l,this.staticItemsSelector=a,this.onPartialExpand=o,this.onFullExpand=r,this.attachClickListener=t,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).BREADCRUMB_HARMONISED,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLBreadcrumbHarmonised=t};var e=i.prototype;return e.init=function(){this.ellipsisButton=r(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=o(this.segmentSelector,this.element),this.staticElements=o(this.staticItemsSelector,this.element),this.expandableElements=o(this.expandableItemsSelector,this.element),this.check(),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.handleClickOnEllipsis=function(){return this.handleFullExpand()},e.check=function(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))},e.hideEllipsis=function(){var e=r(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.showAllItems=function(){this.expandableElements.forEach(function(e){return e.setAttribute("aria-hidden","false")})},e.handlePartialExpand=function(e){var i;!e||(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach(function(e,t){e.setAttribute("aria-hidden",i[t]?"false":"true")}))},e.handleFullExpand=function(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())},e.computeVisibilityMap=function(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var t=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=t)return{expanded:!0};var i=r(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(t<=i)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var n=0,s=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!s)return!1;e=(n+=e.getBoundingClientRect().width)+i<=t;return e||(s=!1),e}).reverse()}},i}(),U=function(){function i(e,t){var t=void 0===t?{}:t,i=t.toggleSelector,i=void 0===i?"[data-ecl-expandable-toggle]":i,n=t.labelSelector,n=void 0===n?"[data-ecl-label]":n,s=t.labelExpanded,s=void 0===s?"data-ecl-label-expanded":s,l=t.labelCollapsed,l=void 0===l?"data-ecl-label-collapsed":l,t=t.attachClickListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=i,this.labelSelector=n,this.labelExpanded=s,this.labelCollapsed=l,this.attachClickListener=t,this.toggle=null,this.forceClose=!1,this.target=null,this.label=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).EXPANDABLE,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLExpandable=t};var e=i.prototype;return e.init=function(){if(this.toggle=r(this.toggleSelector,this.element),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),this.label=r(this.labelSelector,this.element),!this.target)throw new TypeError("Target has to be provided for expandable (aria-controls)");this.attachClickListener&&this.toggle&&this.toggle.addEventListener("click",this.handleClickOnToggle),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.handleClickOnToggle=function(){var e=!0===this.forceClose||"true"===this.toggle.getAttribute("aria-expanded");return this.toggle.setAttribute("aria-expanded",e?"false":"true"),this.target.hidden=e,this.label&&!e&&this.toggle.hasAttribute(this.labelExpanded)?this.label.innerHTML=this.toggle.getAttribute(this.labelExpanded):this.label&&e&&this.toggle.hasAttribute(this.labelCollapsed)&&(this.label.innerHTML=this.toggle.getAttribute(this.labelCollapsed)),this},i}(),G=function(){function i(e,t){var t=void 0===t?{}:t,i=t.translationToggleSelector,i=void 0===i?"[data-ecl-file-translation-toggle]":i,n=t.translationContainerSelector,n=void 0===n?"[data-ecl-file-translation-container]":n,t=t.attachClickListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.translationToggleSelector=i,this.translationContainerSelector=n,this.attachClickListener=t,this.translationToggle=null,this.translationContainer=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).FILE_DOWNLOAD,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLFileDownload=t};var e=i.prototype;return e.init=function(){this.translationToggle=r(this.translationToggleSelector,this.element),this.translationContainer=r(this.translationContainerSelector,this.element),this.attachClickListener&&this.translationToggle&&this.translationToggle.addEventListener("click",this.handleClickOnToggle),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.attachClickListener&&this.translationToggle&&this.translationToggle.removeEventListener("click",this.handleClickOnToggle),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.handleClickOnToggle=function(e){return e.preventDefault(),"true"===this.translationContainer.getAttribute("aria-expanded")?this.translationContainer.setAttribute("aria-expanded","false"):this.translationContainer.setAttribute("aria-expanded","true"),this},i}(),K=function(){function i(e,t){var t=void 0===t?{}:t,i=t.groupSelector,i=void 0===i?"[data-ecl-file-upload-group]":i,n=t.buttonSelector,n=void 0===n?"[data-ecl-file-upload-button]":n,s=t.listSelector,s=void 0===s?"[data-ecl-file-upload-list]":s,l=t.labelChoose,l=void 0===l?"data-ecl-file-upload-label-choose":l,a=t.labelReplace,a=void 0===a?"data-ecl-file-upload-label-replace":a,t=t.attachChangeListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.groupSelector=i,this.buttonSelector=n,this.listSelector=s,this.labelChoose=l,this.labelReplace=a,this.attachChangeListener=t,this.fileUploadGroup=null,this.fileUploadInput=null,this.fileUploadButton=null,this.fileUploadList=null,this.handleChange=this.handleChange.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).FILE_UPLOAD,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLFileUpload=t};var e=i.prototype;return e.init=function(){this.fileUploadGroup=this.element.closest(this.groupSelector),this.fileUploadInput=this.element,this.fileUploadButton=r(this.buttonSelector,this.fileUploadGroup),this.fileUploadList=r(this.listSelector,this.fileUploadGroup),this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.addEventListener("change",this.handleChange),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.removeEventListener("change",this.handleChange),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.handleChange=function(e){var n;"files"in e.target?(n="",Array.prototype.forEach.call(e.target.files,function(e){var t=function(e,t){if(0===e)return"0 Bytes";var t=(t=void 0===t?2:t)<0?0:t,i=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,i)).toFixed(t))+" "+["Bytes","kB","MB","GB","TB","PB","EB","ZB","YB"][i]}(e.size,1),i=e.name.split(".").pop();n+='<li class="ecl-file-upload__item">\n <span class="ecl-file-upload__item-name">'+e.name+'</span>\n <span class="ecl-file-upload__item-meta">('+t+" - "+i+")</span>\n </li>"}),this.fileUploadList.innerHTML=n,this.fileUploadButton.hasAttribute(this.labelReplace)&&(this.fileUploadButton.innerHTML=this.fileUploadButton.getAttribute(this.labelReplace))):this.fileUploadButton.hasAttribute(this.labelChoose)&&(this.fileUploadButton.innerHTML=this.fileUploadButton.getAttribute(this.labelChoose))},i}(),u=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],g=u.join(","),v="undefined"==typeof Element,p=v?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,f=!v&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},w=function(e,t,i){var n=Array.prototype.slice.apply(e.querySelectorAll(g));return t&&p.call(e,g)&&n.unshift(e),n=n.filter(i)},k=function e(t,i,n){for(var s=[],l=Array.from(t);l.length;){var a,o,r=l.shift();"SLOT"===r.tagName?(a=e((a=r.assignedElements()).length?a:r.children,!0,n),n.flatten?s.push.apply(s,a):s.push({scope:r,candidates:a})):(p.call(r,g)&&n.filter(r)&&(i||!t.includes(r))&&s.push(r),a=r.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(r),o=!n.shadowRootFilter||n.shadowRootFilter(r),a&&o?(o=e((!0===a?r:a).children,!0,n),n.flatten?s.push.apply(s,o):s.push({scope:r,candidates:o})):l.unshift.apply(l,r.children))}return s},L=function(e,t){return!(t.disabled||c(i=t)&&"hidden"===i.type||function(e,t){var i=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;t=p.call(e,"details>summary:first-of-type")?e.parentElement:e;if(p.call(t,"details:not([open]) *"))return!0;t=f(e).host,t=(null==t?void 0:t.ownerDocument.contains(t))||e.ownerDocument.contains(e);if(i&&"full"!==i){if("non-zero-area"===i)return d(e)}else{if("function"==typeof n){for(i=e;e;){var s=e.parentElement,l=f(e);if(s&&!s.shadowRoot&&!0===n(s))return d(e);e=e.assignedSlot||(s||l===e.ownerDocument?s:l.host)}e=i}if(t)return!e.getClientRects().length}return!1}(t,e)||"DETAILS"===(i=t).tagName&&Array.prototype.slice.apply(i.children).some(function(e){return"SUMMARY"===e.tagName})||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var i=0;i<t.children.length;i++){var n=t.children.item(i);if("LEGEND"===n.tagName)return!!p.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1}(t));var i},C=function(e,t){return!(F(t)||h(t)<0||!L(e,t))},q=function(e){e=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(e)||0<=e)},X=function a(e){var o=[],r=[];return e.forEach(function(e,t){var i=!!e.scope,n=i?e.scope:e,s=h(n,i),l=i?a(e.candidates):n;0===s?i?o.push.apply(o,l):o.push(n):r.push({documentOrder:t,tabIndex:s,item:e,isScope:i,content:l})}),r.sort(R).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(o)},$=u.concat("iframe").join(",");function m(t,e){var i,n=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)),n}function x(n){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?m(Object(s),!0).forEach(function(e){var t,i;t=n,i=s[e=e],e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(s)):m(Object(s)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(s,e))})}return n}function T(e){return setTimeout(e,0)}function O(e,i){var n=-1;return e.every(function(e,t){return!i(e)||(n=t,!1)}),n}function A(e){for(var t=arguments.length,i=new Array(1<t?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,i):e}function _(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target}function b(e,t){function a(e,t,i){return e&&void 0!==e[t]?e[t]:u[i||t]}function o(e){var t=u[e];if("function"==typeof t){for(var i=arguments.length,n=new Array(1<i?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];t=t.apply(void 0,n)}if(!(t=!0===t?void 0:t)){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"!=typeof t||(l=d.querySelector(t)))return l;throw new Error("`".concat(e,"` as selector refers to no known node"))}function r(){if(g.containerGroups=g.containers.map(function(e){var t,i,n=function(e,t){e=(t=t||{}).getShadowRoot?k([e],t.includeContainer,{filter:C.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:q}):w(e,t.includeContainer,C.bind(null,t));return X(e)}(e,u.tabbableOptions),s=(t=e,(i=(i=u.tabbableOptions)||{}).getShadowRoot?k([t],i.includeContainer,{filter:L.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):w(t,i.includeContainer,L.bind(null,i)));return{container:e,tabbableNodes:n,focusableNodes:s,firstTabbableNode:0<n.length?n[0]:null,lastTabbableNode:0<n.length?n[n.length-1]:null,nextTabbableNode:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=s.findIndex(function(e){return e===t});if(!(i<0))return e?s.slice(i+1).find(function(e){return E(e,u.tabbableOptions)}):s.slice(0,i).reverse().find(function(e){return E(e,u.tabbableOptions)})}}}),g.tabbableGroups=g.containerGroups.filter(function(e){return 0<e.tabbableNodes.length}),g.tabbableGroups.length<=0&&!o("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")}function h(e){var t=o("setReturnFocus",e);return t||!1!==t&&e}function l(){if(g.active)I.activateTrap(y),g.delayInitialFocusTimer=u.delayInitialFocus?T(function(){p(n())}):p(n()),d.addEventListener("focusin",s,!0),d.addEventListener("mousedown",i,{capture:!0,passive:!1}),d.addEventListener("touchstart",i,{capture:!0,passive:!1}),d.addEventListener("click",b,{capture:!0,passive:!1}),d.addEventListener("keydown",m,{capture:!0,passive:!1})}function c(){if(g.active)d.removeEventListener("focusin",s,!0),d.removeEventListener("mousedown",i,!0),d.removeEventListener("touchstart",i,!0),d.removeEventListener("click",b,!0),d.removeEventListener("keydown",m,!0)}var d=(null==t?void 0:t.document)||document,u=x({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),g={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},v=function(i){return g.containerGroups.findIndex(function(e){var t=e.container,e=e.tabbableNodes;return t.contains(i)||e.find(function(e){return e===i})})},n=function(){var e,t=o("initialFocus");if(!1===t)return!1;if(t=void 0===t?0<=v(d.activeElement)?d.activeElement:(e=g.tabbableGroups[0])&&e.firstTabbableNode||o("fallbackFocus"):t)return t;throw new Error("Your focus-trap needs to have at least one focusable element")},p=function e(t){var i;!1!==t&&t!==d.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!u.preventScroll}),g.mostRecentlyFocusedNode=t,(i=t).tagName&&"input"===i.tagName.toLowerCase()&&"function"==typeof i.select&&t.select()):e(n()))},i=function(e){var t=_(e);0<=v(t)||(A(u.clickOutsideDeactivates,e)?y.deactivate({returnFocus:u.returnFocusOnDeactivate&&!S(t,u.tabbableOptions)}):A(u.allowOutsideClick,e)||e.preventDefault())},s=function(e){var t=_(e),i=0<=v(t);i||t instanceof Document?i&&(g.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),p(g.mostRecentlyFocusedNode||n()))},f=function(e){var t,i,n,s=_(e),l=(r(),null);0<g.tabbableGroups.length?(n=0<=(t=v(s))?g.containerGroups[t]:void 0,t<0?l=e.shiftKey?g.tabbableGroups[g.tabbableGroups.length-1].lastTabbableNode:g.tabbableGroups[0].firstTabbableNode:e.shiftKey?0<=(i=(i=O(g.tabbableGroups,function(e){e=e.firstTabbableNode;return s===e}))<0&&(n.container===s||S(s,u.tabbableOptions)&&!E(s,u.tabbableOptions)&&!n.nextTabbableNode(s,!1))?t:i)&&(i=0===i?g.tabbableGroups.length-1:i-1,l=g.tabbableGroups[i].lastTabbableNode):0<=(i=(i=O(g.tabbableGroups,function(e){e=e.lastTabbableNode;return s===e}))<0&&(n.container===s||S(s,u.tabbableOptions)&&!E(s,u.tabbableOptions)&&!n.nextTabbableNode(s))?t:i)&&(n=i===g.tabbableGroups.length-1?0:i+1,l=g.tabbableGroups[n].firstTabbableNode)):l=o("fallbackFocus"),l&&(e.preventDefault(),p(l))},m=function(e){if(("Escape"===(t=e).key||"Esc"===t.key||27===t.keyCode)&&!1!==A(u.escapeDeactivates,e))return e.preventDefault(),void y.deactivate();var t;"Tab"!==(t=e).key&&9!==t.keyCode||f(e)},b=function(e){var t=_(e);0<=v(t)||A(u.clickOutsideDeactivates,e)||A(u.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},y={get active(){return g.active},get paused(){return g.paused},activate:function(e){if(g.active)return this;function t(){s&&r(),l(),n&&n()}var i=a(e,"onActivate"),n=a(e,"onPostActivate"),s=a(e,"checkCanFocusTrap");s||r(),g.active=!0,g.paused=!1,g.nodeFocusedBeforeActivation=d.activeElement,i&&i();return s?s(g.containers.concat()).then(t,t):t(),this},deactivate:function(e){if(!g.active)return this;function t(){T(function(){l&&p(h(g.nodeFocusedBeforeActivation)),n&&n()})}var e=x({onDeactivate:u.onDeactivate,onPostDeactivate:u.onPostDeactivate,checkCanReturnFocus:u.checkCanReturnFocus},e),i=(clearTimeout(g.delayInitialFocusTimer),g.delayInitialFocusTimer=void 0,c(),g.active=!1,g.paused=!1,I.deactivateTrap(y),a(e,"onDeactivate")),n=a(e,"onPostDeactivate"),s=a(e,"checkCanReturnFocus"),l=a(e,"returnFocus","returnFocusOnDeactivate");i&&i();return l&&s?s(h(g.nodeFocusedBeforeActivation)).then(t,t):t(),this},pause:function(){return g.paused||!g.active||(g.paused=!0,c()),this},unpause:function(){return g.paused&&g.active&&(g.paused=!1,r(),l()),this},updateContainerElements:function(e){e=[].concat(e).filter(Boolean);return g.containers=e.map(function(e){return"string"==typeof e?d.querySelector(e):e}),g.active&&r(),this}};return y.updateContainerElements(e),y}y=[];var y,I={activateTrap:function(e){0<y.length&&((t=y[y.length-1])!==e&&t.pause());var t=y.indexOf(e);-1!==t&&y.splice(t,1),y.push(e)},deactivateTrap:function(e){e=y.indexOf(e);-1!==e&&y.splice(e,1),0<y.length&&y[y.length-1].unpause()}},v=function(){function i(e,t){var t=void 0===t?{}:t,i=t.galleryItemSelector,i=void 0===i?"[data-ecl-gallery-item]":i,n=t.descriptionSelector,n=void 0===n?"[data-ecl-gallery-description]":n,s=t.metaSelector,s=void 0===s?"[data-ecl-gallery-meta]":s,l=t.closeButtonSelector,l=void 0===l?"[data-ecl-gallery-close]":l,a=t.viewAllSelector,a=void 0===a?"[data-ecl-gallery-all]":a,o=t.countSelector,o=void 0===o?"[data-ecl-gallery-count]":o,r=t.overlaySelector,r=void 0===r?"[data-ecl-gallery-overlay]":r,h=t.overlayHeaderSelector,h=void 0===h?"[data-ecl-gallery-overlay-header]":h,c=t.overlayFooterSelector,c=void 0===c?"[data-ecl-gallery-overlay-footer]":c,d=t.overlayMediaSelector,d=void 0===d?"[data-ecl-gallery-overlay-media]":d,u=t.overlayCounterCurrentSelector,u=void 0===u?"[data-ecl-gallery-overlay-counter-current]":u,g=t.overlayCounterMaxSelector,g=void 0===g?"[data-ecl-gallery-overlay-counter-max]":g,v=t.overlayDownloadSelector,v=void 0===v?"[data-ecl-gallery-overlay-download]":v,p=t.overlayShareSelector,p=void 0===p?"[data-ecl-gallery-overlay-share]":p,f=t.overlayDescriptionSelector,f=void 0===f?"[data-ecl-gallery-overlay-description]":f,m=t.overlayMetaSelector,m=void 0===m?"[data-ecl-gallery-overlay-meta]":m,b=t.overlayPreviousSelector,b=void 0===b?"[data-ecl-gallery-overlay-previous]":b,y=t.overlayNextSelector,y=void 0===y?"[data-ecl-gallery-overlay-next]":y,E=t.attachClickListener,E=void 0===E||E,S=t.attachKeyListener,S=void 0===S||S,t=t.attachResizeListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.galleryItemSelector=i,this.descriptionSelector=n,this.metaSelector=s,this.closeButtonSelector=l,this.viewAllSelector=a,this.countSelector=o,this.overlaySelector=r,this.overlayHeaderSelector=h,this.overlayFooterSelector=c,this.overlayMediaSelector=d,this.overlayCounterCurrentSelector=u,this.overlayCounterMaxSelector=g,this.overlayDownloadSelector=v,this.overlayShareSelector=p,this.overlayDescriptionSelector=f,this.overlayMetaSelector=m,this.overlayPreviousSelector=b,this.overlayNextSelector=y,this.attachClickListener=E,this.attachKeyListener=S,this.attachResizeListener=t,this.galleryItems=null,this.meta=null,this.closeButton=null,this.viewAll=null,this.count=null,this.overlay=null,this.overlayHeader=null,this.overlayFooter=null,this.overlayMedia=null,this.overlayCounterCurrent=null,this.overlayCounterMax=null,this.overlayDownload=null,this.overlayShare=null,this.overlayDescription=null,this.overlayMeta=null,this.overlayPrevious=null,this.overlayNext=null,this.selectedItem=null,this.focusTrap=null,this.isDesktop=!1,this.resizeTimer=null,this.breakpointMd=768,this.imageHeight=185,this.handleClickOnCloseButton=this.handleClickOnCloseButton.bind(this),this.handleClickOnViewAll=this.handleClickOnViewAll.bind(this),this.handleClickOnItem=this.handleClickOnItem.bind(this),this.handleKeyPressOnItem=this.handleKeyPressOnItem.bind(this),this.handleClickOnPreviousButton=this.handleClickOnPreviousButton.bind(this),this.handleClickOnNextButton=this.handleClickOnNextButton.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.handleResize=this.handleResize.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).GALLERY,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLGallery=t};var e=i.prototype;return e.init=function(){var t=this;this.galleryItems=o(this.galleryItemSelector,this.element),this.closeButton=r(this.closeButtonSelector,this.element),this.viewAll=r(this.viewAllSelector,this.element),this.count=r(this.countSelector,this.element),this.overlay=r(this.overlaySelector,this.element),this.overlayHeader=r(this.overlayHeaderSelector,this.overlay),this.overlayFooter=r(this.overlayFooterSelector,this.overlay),this.overlayMedia=r(this.overlayMediaSelector,this.overlay),this.overlayCounterCurrent=r(this.overlayCounterCurrentSelector,this.overlay),this.overlayCounterMax=r(this.overlayCounterMaxSelector,this.overlay),this.overlayDownload=r(this.overlayDownloadSelector,this.overlay),this.overlayShare=r(this.overlayShareSelector,this.overlay),this.overlayDescription=r(this.overlayDescriptionSelector,this.overlay),this.overlayMeta=r(this.overlayMetaSelector,this.overlay),this.overlayPrevious=r(this.overlayPreviousSelector,this.overlay),this.overlayNext=r(this.overlayNextSelector,this.overlay),this.focusTrap=b(this.overlay,{escapeDeactivates:!1,returnFocusOnDeactivate:!1}),this.isDialogSupported=!0,window.HTMLDialogElement||(this.isDialogSupported=!1),this.attachClickListener&&this.closeButton&&this.closeButton.addEventListener("click",this.handleClickOnCloseButton),this.attachClickListener&&this.viewAll&&this.viewAll.addEventListener("click",this.handleClickOnViewAll),this.attachClickListener&&this.galleryItems&&this.galleryItems.forEach(function(e){t.attachClickListener&&e.addEventListener("click",t.handleClickOnItem),t.attachKeyListener&&e.addEventListener("keyup",t.handleKeyPressOnItem)}),this.attachClickListener&&this.overlayPrevious&&this.overlayPrevious.addEventListener("click",this.handleClickOnPreviousButton),this.attachClickListener&&this.overlayNext&&this.overlayNext.addEventListener("click",this.handleClickOnNextButton),!this.isDialogSupported&&this.attachKeyListener&&this.overlay&&this.overlay.addEventListener("keyup",this.handleKeyboard),this.isDialogSupported&&this.overlay&&this.overlay.addEventListener("close",this.handleClickOnCloseButton),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.checkScreen(),this.hideItems(),this.galleryItems.forEach(function(e,t){e.setAttribute("data-ecl-gallery-item-id",t)}),this.count&&(this.count.innerHTML=this.galleryItems.length),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){var t=this;this.attachClickListener&&this.closeButton&&this.closeButton.removeEventListener("click",this.handleClickOnCloseButton),this.attachClickListener&&this.viewAll&&this.viewAll.removeEventListener("click",this.handleClickOnViewAll),this.attachClickListener&&this.galleryItems&&this.galleryItems.forEach(function(e){e.removeEventListener("click",t.handleClickOnItem)}),this.attachClickListener&&this.overlayPrevious&&this.overlayPrevious.removeEventListener("click",this.handleClickOnPreviousButton),this.attachClickListener&&this.overlayNext&&this.overlayNext.removeEventListener("click",this.handleClickOnNextButton),!this.isDialogSupported&&this.attachKeyListener&&this.overlay&&this.overlay.removeEventListener("keyup",this.handleKeyboard),this.isDialogSupported&&this.overlay&&this.overlay.removeEventListener("close",this.handleClickOnCloseButton),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.checkScreen=function(){window.innerWidth>this.breakpointMd?this.isDesktop=!0:this.isDesktop=!1},e.hideItems=function(){var i,n,s=this;if(this.viewAll)return this.isDesktop?(i=this.element.getBoundingClientRect().top,n=[],this.galleryItems.forEach(function(e,t){e.parentNode.classList.remove("ecl-gallery__item--hidden"),e.getBoundingClientRect().top-i>2*s.imageHeight&&(n=[].concat(n,[t]))}),void n.forEach(function(e){s.galleryItems[e].parentNode.classList.add("ecl-gallery__item--hidden")})):void this.galleryItems.forEach(function(e,t){2<t?e.parentNode.classList.add("ecl-gallery__item--hidden"):e.parentNode.classList.remove("ecl-gallery__item--hidden")})},e.handleResize=function(){var e=this;clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(function(){e.checkScreen(),e.hideItems()},200)},e.updateOverlay=function(e){var t=(this.selectedItem=e).getAttribute("data-ecl-gallery-item-embed-src"),i=r("video",e),n=null,i=(null!=t?((n=document.createElement("div")).classList.add("ecl-gallery__slider-embed"),(s=document.createElement("iframe")).setAttribute("src",t),s.setAttribute("frameBorder","0"),this.overlayMedia&&(n.appendChild(s),this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(n))):null!=i?((n=document.createElement("video")).setAttribute("poster",i.poster),n.setAttribute("controls","controls"),n.classList.add("ecl-gallery__slider-video"),this.overlayMedia&&(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(n)),o("source",i).forEach(function(e){var t=document.createElement("source");t.setAttribute("src",e.getAttribute("src")),t.setAttribute("type",e.getAttribute("type")),n.appendChild(t)}),o("track",i).forEach(function(e){var t=document.createElement("track");t.setAttribute("src",e.getAttribute("src")),t.setAttribute("kind",e.getAttribute("kind")),t.setAttribute("srclang",e.getAttribute("srcLang")),t.setAttribute("label",e.getAttribute("label")),n.appendChild(t)}),n.load()):(s=r("img",e),(n=document.createElement("img")).setAttribute("src",s.getAttribute("src")),n.setAttribute("alt",s.getAttribute("alt")),n.classList.add("ecl-gallery__slider-image"),this.overlayMedia&&(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(n))),this.overlayCounterCurrent.innerHTML=+e.getAttribute("data-ecl-gallery-item-id")+1,this.overlayCounterMax.innerHTML=this.galleryItems.length,this.selectedItem.getAttribute("data-ecl-gallery-item-share")),s=(null!=i?(this.overlayShare.href=i,this.overlayShare.hidden=!1):this.overlayShare.hidden=!0,null!=t?this.overlayDownload.hidden=!0:(this.overlayDownload.href=this.selectedItem.href,this.overlayDownload.hidden=!1),r(this.metaSelector,e)),i=(this.overlayMeta.innerHTML=s.innerHTML,r(this.descriptionSelector,e)),t=(this.overlayDescription.innerHTML=i.innerHTML,this.overlay.clientHeight-this.overlayHeader.clientHeight-this.overlayFooter.clientHeight);this.overlayMedia&&Object.assign(n.style,{maxHeight:t+"px"})},e.handleKeyboard=function(e){"Escape"!==e.key&&"Esc"!==e.key||this.handleClickOnCloseButton()},e.handleClickOnCloseButton=function(){this.isDialogSupported?this.overlay.close():this.overlay.removeAttribute("open");var e=r("iframe",this.overlayMedia),e=(e&&e.remove(),r("video",this.overlayMedia));e&&e.pause(),this.focusTrap.deactivate(),this.selectedItem.focus(),document.body.classList.remove("ecl-u-disablescroll")},e.handleKeyPressOnItem=function(e){32===e.keyCode&&this.handleClickOnItem(e)},e.handleClickOnViewAll=function(e){e.preventDefault(),document.body.classList.add("ecl-u-disablescroll"),this.isDialogSupported?this.overlay.showModal():this.overlay.setAttribute("open",""),this.updateOverlay(this.galleryItems[0]),this.focusTrap.activate()},e.handleClickOnItem=function(e){e.preventDefault(),document.body.classList.add("ecl-u-disablescroll"),this.isDialogSupported?this.overlay.showModal():this.overlay.setAttribute("open",""),this.updateOverlay(e.currentTarget),this.focusTrap.activate()},e.handleClickOnPreviousButton=function(){var e=+this.selectedItem.getAttribute("data-ecl-gallery-item-id")-1,t=(e<0&&(e=this.galleryItems.length-1),r("video",this.selectedItem));return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this},e.handleClickOnNextButton=function(){var e=+this.selectedItem.getAttribute("data-ecl-gallery-item-id")+1,t=(e>=this.galleryItems.length&&(e=0),r("video",this.selectedItem));return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this},i}(),D=l(function(e){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}function h(e){return parseFloat(e)||0}function c(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t}function i(t){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");if(!(t instanceof HTMLElement))throw new Error("First argument must be HTMLElement");if(f.some(function(e){return e._node===t}))throw new Error("Stickyfill is already applied to this node");this._node=t,this._stickyMode=null,this._active=!1,f.push(this),this.refresh()}function t(){var e,t,i;function n(){d.pageXOffset!=p.left?(p.top=d.pageYOffset,p.left=d.pageXOffset,b.refreshAll()):d.pageYOffset!=p.top&&(p.top=d.pageYOffset,p.left=d.pageXOffset,f.forEach(function(e){return e._recalcPosition()}))}function s(){e=setInterval(function(){f.forEach(function(e){return e._fastCheck()})},500)}o||(o=!0,n(),d.addEventListener("scroll",n),d.addEventListener("resize",b.refreshAll),d.addEventListener("orientationchange",b.refreshAll),i=t=e=void 0,"hidden"in u?(t="hidden",i="visibilitychange"):"webkitHidden"in u&&(t="webkitHidden",i="webkitvisibilitychange"),i?(u[t]||s(),u.addEventListener(i,function(){u[t]?clearInterval(e):s()})):s())}var d,u,s,l,g,a,o,v,p,f,m,b;d=window,u=document,g=!(s=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}),(a=void 0!==d)&&d.getComputedStyle?(l=u.createElement("div"),["","-webkit-","-moz-","-ms-"].some(function(e){try{l.style.position=e+"sticky"}catch(e){}return""!=l.style.position})&&(g=!0)):g=!0,o=!1,v="undefined"!=typeof ShadowRoot,p={top:null,left:null},f=[],s(i,[{key:"refresh",value:function(){var e,t,i,n,s,l,a,o;g||this._removed||(this._active&&this._deactivate(),e=this._node,t={position:(i=getComputedStyle(e)).position,top:i.top,display:i.display,marginTop:i.marginTop,marginBottom:i.marginBottom,marginLeft:i.marginLeft,marginRight:i.marginRight,cssFloat:i.cssFloat},isNaN(parseFloat(t.top))||"table-cell"==t.display||"none"==t.display||(this._active=!0,o=e.style.position,"sticky"!=i.position&&"-webkit-sticky"!=i.position||(e.style.position="static"),i=e.parentNode,n=v&&i instanceof ShadowRoot?i.host:i,s=e.getBoundingClientRect(),a=n.getBoundingClientRect(),l=getComputedStyle(n),this._parent={node:n,styles:{position:n.style.position},offsetHeight:n.offsetHeight},this._offsetToWindow={left:s.left,right:u.documentElement.clientWidth-s.right},this._offsetToParent={top:s.top-a.top-h(l.borderTopWidth),left:s.left-a.left-h(l.borderLeftWidth),right:-s.right+a.right-h(l.borderRightWidth)},this._styles={position:o,top:e.style.top,bottom:e.style.bottom,left:e.style.left,right:e.style.right,width:e.style.width,marginTop:e.style.marginTop,marginLeft:e.style.marginLeft,marginRight:e.style.marginRight},o=h(t.top),this._limits={start:s.top+d.pageYOffset-o,end:a.top+d.pageYOffset+n.offsetHeight-h(l.borderBottomWidth)-e.offsetHeight-o-h(t.marginBottom)},"absolute"!=(a=l.position)&&"relative"!=a&&(n.style.position="relative"),this._recalcPosition(),(o=this._clone={}).node=u.createElement("div"),r(o.node.style,{width:s.right-s.left+"px",height:s.bottom-s.top+"px",marginTop:t.marginTop,marginBottom:t.marginBottom,marginLeft:t.marginLeft,marginRight:t.marginRight,cssFloat:t.cssFloat,padding:0,border:0,borderSpacing:0,fontSize:"1em",position:"static"}),i.insertBefore(o.node,e),o.docOffsetTop=c(o.node)))}},{key:"_recalcPosition",value:function(){if(this._active&&!this._removed){var e=p.top<=this._limits.start?"start":p.top>=this._limits.end?"end":"middle";if(this._stickyMode!=e){switch(e){case"start":r(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:this._offsetToParent.top+"px",bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"middle":r(this._node.style,{position:"fixed",left:this._offsetToWindow.left+"px",right:this._offsetToWindow.right+"px",top:this._styles.top,bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"end":r(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:"auto",bottom:0,width:"auto",marginLeft:0,marginRight:0})}this._stickyMode=e}}}},{key:"_fastCheck",value:function(){this._active&&!this._removed&&(1<Math.abs(c(this._clone.node)-this._clone.docOffsetTop)||1<Math.abs(this._parent.node.offsetHeight-this._parent.offsetHeight))&&this.refresh()}},{key:"_deactivate",value:function(){var t=this;this._active&&!this._removed&&(this._clone.node.parentNode.removeChild(this._clone.node),delete this._clone,r(this._node.style,this._styles),delete this._styles,f.some(function(e){return e!==t&&e._parent&&e._parent.node===t._parent.node})||r(this._parent.node.style,this._parent.styles),delete this._parent,this._stickyMode=null,this._active=!1,delete this._offsetToWindow,delete this._offsetToParent,delete this._limits)}},{key:"remove",value:function(){var i=this;this._deactivate(),f.some(function(e,t){if(e._node===i._node)return f.splice(t,1),!0}),this._removed=!0}}]),b={stickies:f,Sticky:m=i,forceSticky:function(){g=!1,t(),this.refreshAll()},addOne:function(e){if(!(e instanceof HTMLElement)){if(!e.length||!e[0])return;e=e[0]}for(var t=0;t<f.length;t++)if(f[t]._node===e)return f[t];return new m(e)},add:function(i){if((i=i instanceof HTMLElement?[i]:i).length){for(var n=[],e=0;e<i.length;e++)(function(e){var t=i[e];t instanceof HTMLElement?f.some(function(e){if(e._node===t)return n.push(e),!0})||n.push(new m(t)):n.push(void 0)})(e);return n}},refreshAll:function(){f.forEach(function(e){return e.refresh()})},removeOne:function(t){if(!(t instanceof HTMLElement)){if(!t.length||!t[0])return;t=t[0]}f.some(function(e){if(e._node===t)return e.remove(),!0})},remove:function(i){if((i=i instanceof HTMLElement?[i]:i).length)for(var e=0;e<i.length;e++)!function(e){var t=i[e];f.some(function(e){if(e._node===t)return e.remove(),!0})}(e)},removeAll:function(){for(;f.length;)f[0].remove()}},g||t(),e.exports?e.exports=b:a&&(d.Stickyfill=b)}),J=l(function(e,t){function i(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}var n,c,d,u,s,g,v,l,p,a,f,m;Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(this))return null;do{if(t.matches(e))return t}while(null!==(t=t.parentElement));return null}),"function"!=typeof window.CustomEvent&&(i.prototype=window.Event.prototype,window.CustomEvent=i),n=0?window:B,e.exports=(c=n,d={navClass:"active",contentClass:"active",nested:!1,nestedClass:"active",offset:0,reflow:!1,events:!0},u=function(e,t,i){i.settings.events&&(e=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:i}),t.dispatchEvent(e))},s=function(e){var t=0;if(e.offsetParent)for(;e;)t+=e.offsetTop,e=e.offsetParent;return 0<=t?t:0},g=function(e){e&&e.sort(function(e,t){return s(e.content)<s(t.content)?-1:1})},v=function(e,t,i){e=e.getBoundingClientRect(),t="function"==typeof(t=t).offset?parseFloat(t.offset()):parseFloat(t.offset);return i?parseInt(e.bottom,10)<(c.innerHeight||document.documentElement.clientHeight):parseInt(e.top,10)<=t},l=function(){return c.innerHeight+c.pageYOffset>=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},p=function(e,t){return!(!l()||!v(e.content,t,!0))},a=function e(t,i){i.nested&&t.parentNode&&((t=t.parentNode.closest("li"))&&(t.classList.remove(i.nestedClass),e(t,i)))},f=function(e,t){var i;!e||(i=e.nav.closest("li"))&&(i.classList.remove(t.navClass),e.content.classList.remove(t.contentClass),a(i,t),u("gumshoeDeactivate",i,{link:e.nav,content:e.content,settings:t}))},m=function e(t,i){!i.nested||(t=t.parentNode.closest("li"))&&(t.classList.add(i.nestedClass),e(t,i))},function(e,t){function i(e){o&&c.cancelAnimationFrame(o),o=c.requestAnimationFrame(h.detect)}function n(e){o&&c.cancelAnimationFrame(o),o=c.requestAnimationFrame(function(){g(l),h.detect()})}var s,l,a,o,r,h={setup:function(){s=document.querySelectorAll(e),l=[],Array.prototype.forEach.call(s,function(e){var t=document.getElementById(decodeURIComponent(e.hash.substr(1)));t&&l.push({nav:e,content:t})}),g(l)}};h.detect=function(){var e,t,i,n=function(e,t){var i=e[e.length-1];if(p(i,t))return i;for(var n=e.length-1;0<=n;n--)if(v(e[n].content,t))return e[n]}(l,r);n?a&&n.content===a.content||(f(a,r),t=r,(e=n)&&(i=e.nav.closest("li"))&&(i.classList.add(t.navClass),e.content.classList.add(t.contentClass),m(i,t),u("gumshoeActivate",i,{link:e.nav,content:e.content,settings:t})),a=n):a&&(f(a,r),a=null)},h.destroy=function(){a&&f(a,r),c.removeEventListener("scroll",i,!1),r.reflow&&c.removeEventListener("resize",n,!1),r=o=a=s=l=null};return r=function(){var i={};return Array.prototype.forEach.call(arguments,function(e){for(var t in e){if(!e.hasOwnProperty(t))return;i[t]=e[t]}}),i}(d,t||{}),h.setup(),h.detect(),c.addEventListener("scroll",i,!1),r.reflow&&c.addEventListener("resize",n,!1),h})}),u=function(){function i(e,t){var t=void 0===t?{}:t,i=t.stickySelector,i=void 0===i?"[data-ecl-inpage-navigation]":i,n=t.containerSelector,n=void 0===n?"[data-ecl-inpage-navigation-container]":n,s=t.inPageList,s=void 0===s?"[data-ecl-inpage-navigation-list]":s,l=t.spySelector,l=void 0===l?"[data-ecl-inpage-navigation-link]":l,a=t.toggleSelector,a=void 0===a?"[data-ecl-inpage-navigation-trigger]":a,o=t.linksSelector,o=void 0===o?"[data-ecl-inpage-navigation-link]":o,r=t.spyActiveContainer,r=void 0===r?"ecl-inpage-navigation--visible":r,h=t.spyOffset,h=void 0===h?20:h,c=t.spyClass,c=void 0===c?"ecl-inpage-navigation__item--active":c,d=t.spyTrigger,d=void 0===d?"[data-ecl-inpage-navigation-trigger-current]":d,u=t.attachClickListener,u=void 0===u||u,t=t.contentClass,t=void 0===t?"ecl-inpage-navigation__heading--active":t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.attachClickListener=u,this.stickySelector=i,this.containerSelector=n,this.toggleSelector=a,this.linksSelector=o,this.inPageList=s,this.spyActiveContainer=r,this.spySelector=l,this.spyOffset=h,this.spyClass=c,this.spyTrigger=d,this.contentClass=t,this.gumshoe=null,this.observer=null,this.stickyObserver=null,this.handleClickOnToggler=this.handleClickOnToggler.bind(this),this.handleClickOnLink=this.handleClickOnLink.bind(this),this.initScrollSpy=this.initScrollSpy.bind(this),this.initObserver=this.initObserver.bind(this),this.activateScrollSpy=this.activateScrollSpy.bind(this),this.deactivateScrollSpy=this.deactivateScrollSpy.bind(this),this.destroySticky=this.destroySticky.bind(this),this.destroyScrollSpy=this.destroyScrollSpy.bind(this),this.destroyObserver=this.destroyObserver.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).INPAGE_NAVIGATION,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLInpageNavigation=t};var e=i.prototype;return e.initSticky=function(){this.stickyInstance=new D.Sticky(this.element)},e.destroySticky=function(){this.stickyInstance&&this.stickyInstance.remove()},e.initScrollSpy=function(){var e,n,s,l,a=this;this.gumshoe=new J(this.spySelector,{navClass:this.spyClass,contentClass:this.contentClass,offset:this.spyOffset,reflow:!0}),document.addEventListener("gumshoeActivate",this.activateScrollSpy,!1),document.addEventListener("gumshoeDeactivate",this.deactivateScrollSpy,!1),"IntersectionObserver"in window&&((e=r(this.containerSelector))&&(s=n=0,l=!1,this.stickyObserver=new IntersectionObserver(function(e){if(e&&e[0]){var e=e[0],t=e.boundingClientRect.y,i=e.intersectionRatio,e=e.isIntersecting;if(!l)return l=!0,n=t,void(s=i);t<n?s<i&&e||a.element.classList.remove(a.spyActiveContainer):n<t&&e&&s<i&&a.element.classList.add(a.spyActiveContainer),n=t,s=i}},{root:null}),this.stickyObserver.observe(e)))},e.activateScrollSpy=function(e){var t=r(this.spyTrigger);this.element.classList.add(this.spyActiveContainer),t.textContent=e.detail.content.textContent},e.deactivateScrollSpy=function(){var e=r(this.spyTrigger);this.element.classList.remove(this.spyActiveContainer),e.innerHTML=""},e.destroyScrollSpy=function(){this.stickyObserver&&this.stickyObserver.disconnect(),document.removeEventListener("gumshoeActivate",this.activateScrollSpy,!1),document.removeEventListener("gumshoeDeactivate",this.deactivateScrollSpy,!1),this.gumshoe.destroy()},e.initObserver=function(){var t;"MutationObserver"in window&&((t=this).observer=new MutationObserver(function(e){var n=r(".ecl-col-l-9"),s=r("[data-ecl-inpage-navigation-list]");e.forEach(function(e){e&&e.target&&e.target.classList&&!e.target.classList.contains("ecl-inpage-navigation__trigger-current")&&(0<e.addedNodes.length&&[].slice.call(e.addedNodes).forEach(function(t){var e,i;"H2"===t.tagName&&t.id&&(e=o("h2[id]",n).findIndex(function(e){return e.id===t.id}),(i=s.childNodes[e-1].cloneNode(!0)).childNodes[0].textContent=t.textContent,i.childNodes[0].href="#"+t.id,s.childNodes[e-1].after(i))}),0<e.removedNodes.length&&[].slice.call(e.removedNodes).forEach(function(t){"H2"===t.tagName&&t.id&&s.childNodes.forEach(function(e){-1!==e.childNodes[0].href.indexOf(t.id)&&e.remove()})}),t.update())})}),this.observer.observe(document,{subtree:!0,childList:!0}))},e.destroyObserver=function(){this.observer&&this.observer.disconnect()},e.init=function(){var t=this,e=r(this.toggleSelector,this.element),i=o(this.linksSelector,this.element);this.initSticky(this.element),this.initScrollSpy(),this.initObserver(),this.attachClickListener&&e&&e.addEventListener("click",this.handleClickOnToggler),this.attachClickListener&&i&&(i.forEach(function(e){return e.addEventListener("click",t.handleClickOnLink)}),e.addEventListener("click",this.handleClickOnToggler)),this.element.setAttribute("data-ecl-auto-initialized","true")},e.update=function(){this.gumshoe.setup()},e.handleClickOnToggler=function(e){var t=r(this.inPageList,this.element),i=r(this.toggleSelector,this.element),e=(e.preventDefault(),"true"===i.getAttribute("aria-expanded"));i.setAttribute("aria-expanded",e?"false":"true"),e?t.classList.remove("ecl-inpage-navigation__list--visible"):t.classList.add("ecl-inpage-navigation__list--visible")},e.handleClickOnLink=function(){var e=r(this.inPageList,this.element),t=r(this.toggleSelector,this.element);e.classList.remove("ecl-inpage-navigation__list--visible"),t.setAttribute("aria-expanded","false")},e.destroy=function(){var t=this;this.attachClickListener&&this.toggleElement&&this.toggleElement.removeEventListener("click",this.handleClickOnToggler),this.attachClickListener&&this.navLinks&&this.navLinks.forEach(function(e){return e.removeEventListener("click",t.handleClickOnLink)}),this.destroyScrollSpy(),this.destroySticky(),this.destroyObserver(),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},i}(),Q=function(){function i(e,t){var t=void 0===t?{}:t,i=t.closeSelector,i=void 0===i?"[data-ecl-message-close]":i,t=t.attachClickListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.closeSelector=i,this.attachClickListener=t,this.close=null,this.handleClickOnClose=this.handleClickOnClose.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).MESSAGE,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLMessage=t};var e=i.prototype;return e.init=function(){this.close=r(this.closeSelector,this.element),this.attachClickListener&&this.close&&this.close.addEventListener("click",this.handleClickOnClose),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.handleClickOnClose),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.handleClickOnClose=function(){return this.element.parentNode&&this.element.parentNode.removeChild(this.element),this},i}(),M=l(function(e){function n(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var i,s;e.exports=(i=[function(e,t,i){e.exports={BROWSER_TYPES:{CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",YANDEX:"Yandex",SAFARI:"Safari",INTERNET_EXPLORER:"Internet Explorer",EDGE:"Edge",CHROMIUM:"Chromium",IE:"IE",MOBILE_SAFARI:"Mobile Safari",EDGE_CHROMIUM:"Edge Chromium"},DEVICE_TYPES:{MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0},OS_TYPES:{IOS:"iOS",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows",MAC_OS:"Mac OS"},defaultData:{isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1}}},function(e,R,t){function i(){return f.name===r.WINDOWS&&"10"===f.version&&("string"==typeof m&&-1!==m.indexOf("Edg/"))}function n(){return g.name===V}function s(){return u("iPad")}var l=t(2),a=t(0),o=a.BROWSER_TYPES,r=a.OS_TYPES,a=a.DEVICE_TYPES,t=t(4),h=t.checkType,c=t.broPayload,P=t.mobilePayload,F=t.wearPayload,z=t.consolePayload,H=t.stvPayload,d=t.getNavigatorInstance,u=t.isIOS13Check,t=new l,g=t.getBrowser(),v=t.getDevice(),p=t.getEngine(),f=t.getOS(),m=t.getUA(),l=o.CHROME,t=o.CHROMIUM,b=o.IE,y=o.INTERNET_EXPLORER,E=o.OPERA,S=o.FIREFOX,w=o.SAFARI,V=o.EDGE,k=o.YANDEX,o=o.MOBILE_SAFARI,L=a.MOBILE,C=a.TABLET,x=a.SMART_TV,T=a.BROWSER,O=a.WEARABLE,a=a.CONSOLE,A=r.ANDROID,_=r.WINDOWS_PHONE,I=r.IOS,D=r.WINDOWS,M=r.MAC_OS,x=v.type===x,a=v.type===a,O=v.type===O,W=g.name===o||s(),t=g.name===t,j=function(){switch(v.type){case L:case C:return!0;default:return!1}}()||s(),Y=v.type===L,U=v.type===C||s(),T=v.type===T,A=f.name===A,_=f.name===_,I=f.name===I||s(),l=g.name===l,S=g.name===S,w=g.name===w||g.name===o,o=g.name===E,E=g.name===y||g.name===b,y=f.version||"none",b=f.name||"none",G=g.major,K=g.version,q=g.name,X=v.vendor||"none",$=v.model||"none",J=p.name,Q=p.version,Z=m,ee=n()||i(),k=g.name===k,te=v.type,N=(N=d())&&(/iPad|iPhone|iPod/.test(N.platform)||"MacIntel"===N.platform&&1<N.maxTouchPoints)&&!window.MSStream,ie=s(),ne=u("iPhone"),se=u("iPod"),d="string"==typeof(d=(d=d())&&d.userAgent.toLowerCase())&&/electron/.test(d),le=i(),ae=n(),D=f.name===D,M=f.name===M,B=h(v.type);e.exports={deviceDetect:function(){var e=B.isBrowser,t=B.isMobile,i=B.isTablet,n=B.isSmartTV,s=B.isConsole,l=B.isWearable;return e?c(e,g,p,f,m):n?H(n,p,f,m):s?z(s,p,f,m):t||i?P(B,v,f,m):l?F(l,p,f,m):void 0},isSmartTV:x,isConsole:a,isWearable:O,isMobileSafari:W,isChromium:t,isMobile:j,isMobileOnly:Y,isTablet:U,isBrowser:T,isAndroid:A,isWinPhone:_,isIOS:I,isChrome:l,isFirefox:S,isSafari:w,isOpera:o,isIE:E,osVersion:y,osName:b,fullBrowserVersion:G,browserVersion:K,browserName:q,mobileVendor:X,mobileModel:$,engineName:J,engineVersion:Q,getUA:Z,isEdge:ee,isYandex:k,deviceType:te,isIOS13:N,isIPad13:ie,isIPhone13:ne,isIPod13:se,isElectron:d,isEdgeChromium:le,isLegacyEdge:ae,isWindows:D,isMacOs:M}},function(e,t,i){var s,d,n,u,l,a,o,r,h,c,g,v,p,f,m,b,y,E,S,w,k;function L(e,t){if("object"==typeof e&&(t=e,e=d),!(this instanceof L))return new L(e,t).getResult();var i=e||(s&&s.navigator&&s.navigator.userAgent?s.navigator.userAgent:""),n=t?y.extend(w,t):w;return this.getBrowser=function(){var e={name:d,version:d};return E.rgx.call(e,i,n.browser),e.major=y.major(e.version),e},this.getCPU=function(){var e={architecture:d};return E.rgx.call(e,i,n.cpu),e},this.getDevice=function(){var e={vendor:d,model:d,type:d};return E.rgx.call(e,i,n.device),e},this.getEngine=function(){var e={name:d,version:d};return E.rgx.call(e,i,n.engine),e},this.getOS=function(){var e={name:d,version:d};return E.rgx.call(e,i,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(e){return i=e,this},this}s="object"==typeof window?window:this,u="function",l="undefined",a="model",r="type",h="vendor",g="architecture",v="console",p="mobile",f="tablet",m="smarttv",b="wearable",y={extend:function(e,t){var i,n={};for(i in e)t[i]&&t[i].length%2==0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:d},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},w={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o="name",c="version"],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],c],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],c],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[o,c],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],c],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],c],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],c],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],c],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],c],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],c],[/(qqbrowserlite)\/([\w\.]+)/i],[o,c],[/(QQ)\/([\d\.]+)/i],[o,c],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,c],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[o,c],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,c],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[c,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[c,[o,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[c,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],c],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],c],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[c,[o,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,c],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],c],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[o,"Chrome"],c],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],c],[/fxios\/([\w\.-]+)/i],[c,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[c,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[c,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],c],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[c,(E={rgx:function(e,t){for(var i,n,s,l,a,o=0;o<t.length&&!l;){for(var r=t[o],h=t[o+1],c=i=0;c<r.length&&!l;)if(l=r[c++].exec(e))for(n=0;n<h.length;n++)a=l[++i],"object"==typeof(s=h[n])&&0<s.length?2==s.length?typeof s[1]==u?this[s[0]]=s[1].call(this,a):this[s[0]]=s[1]:3==s.length?typeof s[1]!=u||s[1].exec&&s[1].test?this[s[0]]=a?a.replace(s[1],s[2]):d:this[s[0]]=a?s[1].call(this,a,s[2]):d:4==s.length&&(this[s[0]]=a?s[3].call(this,a.replace(s[1],s[2])):d):this[s]=a||d;o+=2}},str:function(e,t){for(var i in t)if("object"==typeof t[i]&&0<t[i].length){for(var n=0;n<t[i].length;n++)if(y.has(t[i][n],e))return"?"===i?d:i}else if(y.has(t[i],e))return"?"===i?d:i;return e}}).str,(S={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}}).browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[o,c],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],c],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,c]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,y.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[g,/ower/,"",y.lowerize]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[g,y.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[a,h,[r,f]],[/applecoremedia\/[\w\.]+ \((ipad)/],[a,[h,"Apple"],[r,f]],[/(apple\s{0,1}tv)/i],[[a,"Apple TV"],[h,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[h,a,[r,f]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[a,[h,"Amazon"],[r,f]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[a,E.str,S.device.amazon.model],[h,"Amazon"],[r,p]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[a,h,[r,p]],[/\((ip[honed|\s\w*]+);/i],[a,[h,"Apple"],[r,p]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[h,a,[r,p]],[/\(bb10;\s(\w+)/i],[a,[h,"BlackBerry"],[r,p]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[a,[h,"Asus"],[r,f]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[h,"Sony"],[a,"Xperia Tablet"],[r,f]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[a,[h,"Sony"],[r,p]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[h,a,[r,v]],[/android.+;\s(shield)\sbuild/i],[a,[h,"Nvidia"],[r,v]],[/(playstation\s[34portablevi]+)/i],[a,[h,"Sony"],[r,v]],[/(sprint\s(\w+))/i],[[h,E.str,S.device.sprint.vendor],[a,E.str,S.device.sprint.model],[r,p]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[h,a,[r,f]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[h,[a,/_/g," "],[r,p]],[/(nexus\s9)/i],[a,[h,"HTC"],[r,f]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[a,[h,"Huawei"],[r,p]],[/(microsoft);\s(lumia[\s\w]+)/i],[h,a,[r,p]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[a,[h,"Microsoft"],[r,v]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[h,"Microsoft"],[r,p]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[a,[h,"Motorola"],[r,p]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[a,[h,"Motorola"],[r,f]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[h,y.trim],[a,y.trim],[r,m]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[h,"Samsung"],[r,m]],[/\(dtv[\);].+(aquos)/i],[a,[h,"Sharp"],[r,m]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[h,"Samsung"],a,[r,f]],[/smart-tv.+(samsung)/i],[h,[r,m],a],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[h,"Samsung"],a,[r,p]],[/sie-(\w*)/i],[a,[h,"Siemens"],[r,p]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[h,"Nokia"],a,[r,p]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[a,[h,"Acer"],[r,f]],[/android.+([vl]k\-?\d{3})\s+build/i],[a,[h,"LG"],[r,f]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[h,"LG"],a,[r,f]],[/(lg) netcast\.tv/i],[h,a,[r,m]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[a,[h,"LG"],[r,p]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[a,[h,"Lenovo"],[r,f]],[/linux;.+((jolla));/i],[h,a,[r,p]],[/((pebble))app\/[\d\.]+\s/i],[h,a,[r,b]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[h,a,[r,p]],[/crkey/i],[[a,"Chromecast"],[h,"Google"]],[/android.+;\s(glass)\s\d/i],[a,[h,"Google"],[r,b]],[/android.+;\s(pixel c)\s/i],[a,[h,"Google"],[r,f]],[/android.+;\s(pixel xl|pixel)\s/i],[a,[h,"Google"],[r,p]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[h,"Xiaomi"],[r,p]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[h,"Xiaomi"],[r,f]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[a,[h,"Meizu"],[r,f]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[a,[h,"OnePlus"],[r,p]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[a,[h,"RCA"],[r,f]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[a,[h,"Dell"],[r,f]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[a,[h,"Verizon"],[r,f]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[h,"Barnes & Noble"],a,[r,f]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[a,[h,"NuVision"],[r,f]],[/android.+;\s(k88)\sbuild/i],[a,[h,"ZTE"],[r,f]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[a,[h,"Swiss"],[r,p]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[a,[h,"Swiss"],[r,f]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[a,[h,"Zeki"],[r,f]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[h,"Dragon Touch"],a,[r,f]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[a,[h,"Insignia"],[r,f]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[a,[h,"NextBook"],[r,f]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[h,"Voice"],a,[r,p]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[h,"LvTel"],a,[r,p]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[a,[h,"Envizen"],[r,f]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[h,a,[r,f]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[a,[h,"MachSpeed"],[r,f]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[h,a,[r,f]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[a,[h,"Rotor"],[r,f]],[/android.+(KS(.+))\s+build/i],[a,[h,"Amazon"],[r,f]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[h,a,[r,f]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[r,y.lowerize],h,a],[/(android[\w\.\s\-]{0,9});.+build/i],[a,[h,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[c,[o,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,c],[/rv\:([\w\.]{1,9}).+(gecko)/i],[c,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,c],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[o,[c,E.str,S.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[c,E.str,S.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],c],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[o,c],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],c],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],c],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[o,c],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],c],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],c],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[o,c],[/(haiku)\s(\w+)/i],[o,c],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[c,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac OS"],[c,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[o,c]]},L.VERSION="0.7.18",L.BROWSER={NAME:o,MAJOR:"major",VERSION:c},L.CPU={ARCHITECTURE:g},L.DEVICE={MODEL:a,VENDOR:h,TYPE:r,CONSOLE:v,MOBILE:p,SMARTTV:m,TABLET:f,WEARABLE:b,EMBEDDED:"embedded"},L.ENGINE={NAME:o,VERSION:c},L.OS={NAME:o,VERSION:c},typeof t!=l?(t=typeof e!=l&&e.exports?e.exports=L:t).UAParser=L:i(3)?(S=function(){return L}.call(t,i,t,e))!==d&&(e.exports=S):s&&(s.UAParser=L),typeof(k=s&&(s.jQuery||s.Zepto))!=l&&(n=new L,k.ua=n.getResult(),k.ua.get=function(){return n.getUA()},k.ua.set=function(e){n.setUA(e);var t,i=n.getResult();for(t in i)k.ua[t]=i[t]})},function(t,e){!function(e){t.exports=e}.call(e,{})},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,n=arguments[t];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i=i(0),n=i.DEVICE_TYPES,l=i.defaultData,a=t.getNavigatorInstance=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},i=t.isIOS13Check=function(e){var t=a();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&1<t.maxTouchPoints&&!window.MSStream)};e.exports={checkType:function(e){switch(e){case n.MOBILE:return{isMobile:!0};case n.TABLET:return{isTablet:!0};case n.SMART_TV:return{isSmartTV:!0};case n.CONSOLE:return{isConsole:!0};case n.WEARABLE:return{isWearable:!0};case n.BROWSER:return{isBrowser:!0};default:return l}},broPayload:function(e,t,i,n,s){return{isBrowser:e,browserMajorVersion:t.major,browserFullVersion:t.version,browserName:t.name,engineName:i.name||!1,engineVersion:i.version,osName:n.name,osVersion:n.version,userAgent:s}},mobilePayload:function(e,t,i,n){return s({},e,{vendor:t.vendor,model:t.model,os:i.name,osVersion:i.version,ua:n})},stvPayload:function(e,t,i,n){return{isSmartTV:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:n}},consolePayload:function(e,t,i,n){return{isConsole:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:n}},wearPayload:function(e,t,i,n){return{isWearable:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:n}},getNavigatorInstance:a,isIOS13Check:i}}],s={},n.m=i,n.c=s,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1))}),N=(M=M)&&M.__esModule&&Object.prototype.hasOwnProperty.call(M,"default")?M.default:M,M=function(){function i(e,t){var t=void 0===t?{}:t,i=t.openSelector,i=void 0===i?"[data-ecl-menu-open]":i,n=t.closeSelector,n=void 0===n?"[data-ecl-menu-close]":n,s=t.backSelector,s=void 0===s?"[data-ecl-menu-back]":s,l=t.overlaySelector,l=void 0===l?"[data-ecl-menu-overlay]":l,a=t.innerSelector,a=void 0===a?"[data-ecl-menu-inner]":a,o=t.itemSelector,o=void 0===o?"[data-ecl-menu-item]":o,r=t.linkSelector,r=void 0===r?"[data-ecl-menu-link]":r,h=t.megaSelector,h=void 0===h?"[data-ecl-menu-mega]":h,c=t.subItemSelector,c=void 0===c?"[data-ecl-menu-subitem]":c,d=t.attachClickListener,d=void 0===d||d,u=t.attachHoverListener,u=void 0===u||u,g=t.attachFocusListener,g=void 0===g||g,v=t.attachKeyListener,v=void 0===v||v,t=t.attachResizeListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.openSelector=i,this.closeSelector=n,this.backSelector=s,this.overlaySelector=l,this.innerSelector=a,this.itemSelector=o,this.linkSelector=r,this.megaSelector=h,this.subItemSelector=c,this.attachClickListener=d,this.attachHoverListener=u,this.attachFocusListener=g,this.attachKeyListener=v,this.attachResizeListener=t,this.open=null,this.close=null,this.back=null,this.overlay=null,this.inner=null,this.items=null,this.links=null,this.isOpen=!1,this.resizeTimer=null,this.handleClickOnOpen=this.handleClickOnOpen.bind(this),this.handleClickOnClose=this.handleClickOnClose.bind(this),this.handleClickOnBack=this.handleClickOnBack.bind(this),this.handleClickOnLink=this.handleClickOnLink.bind(this),this.handleHoverOnItem=this.handleHoverOnItem.bind(this),this.handleHoverOffItem=this.handleHoverOffItem.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.handleResize=this.handleResize.bind(this),this.useDesktopDisplay=this.useDesktopDisplay.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).MENU,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLMenu=t};var e=i.prototype;return e.init=function(){var t=this;this.open=r(this.openSelector,this.element),this.close=r(this.closeSelector,this.element),this.back=r(this.backSelector,this.element),this.overlay=r(this.overlaySelector,this.element),this.inner=r(this.innerSelector,this.element),this.items=o(this.itemSelector,this.element),this.links=o(this.linkSelector,this.element),this.useDesktopDisplay(),this.attachClickListener&&this.open&&this.open.addEventListener("click",this.handleClickOnOpen),this.attachClickListener&&this.close&&this.close.addEventListener("click",this.handleClickOnClose),this.attachClickListener&&this.back&&this.back.addEventListener("click",this.handleClickOnBack),this.attachClickListener&&this.overlay&&this.overlay.addEventListener("click",this.handleClickOnClose),this.attachClickListener&&this.links&&this.links.forEach(function(e){e.parentElement.hasAttribute("data-ecl-has-children")&&(e.addEventListener("click",t.handleClickOnLink),t.attachKeyListener&&e.addEventListener("keyup",t.handleKeyboard))}),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.items&&!N.isMobile&&this.items.forEach(function(e){t.checkMenuItem(e),e.hasAttribute("data-ecl-has-children")&&(t.attachHoverListener&&(e.addEventListener("mouseover",t.handleHoverOnItem),e.addEventListener("mouseout",t.handleHoverOffItem)),t.attachFocusListener&&(e.addEventListener("focusin",t.handleHoverOnItem),e.addEventListener("focusout",t.handleHoverOffItem)),t.attachKeyListener&&e.addEventListener("keyup",t.handleKeyboard))}),this.stickyInstance=new D.Sticky(this.element),setTimeout(function(){t.element.classList.add("ecl-menu--transition")},500),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){var t=this;this.stickyInstance&&this.stickyInstance.remove(),this.attachClickListener&&this.open&&this.open.removeEventListener("click",this.handleClickOnOpen),this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.handleClickOnClose),this.attachClickListener&&this.back&&this.back.removeEventListener("click",this.handleClickOnBack),this.attachClickListener&&this.overlay&&this.overlay.removeEventListener("click",this.handleClickOnClose),this.items&&!N.isMobile&&this.items.forEach(function(e){e.hasAttribute("data-ecl-has-children")&&(t.attachHoverListener&&(e.removeEventListener("mouseover",t.handleHoverOnItem),e.removeEventListener("mouseout",t.handleHoverOffItem)),t.attachFocusListener&&(e.removeEventListener("focusin",t.handleHoverOnItem),e.removeEventListener("focusout",t.handleHoverOffItem)),t.attachKeyListener&&e.removeEventListener("keyup",t.handleKeyboard))}),this.attachClickListener&&this.links&&this.links.forEach(function(e){e.parentElement.hasAttribute("data-ecl-has-children")&&(e.removeEventListener("click",t.handleClickOnLink),t.attachKeyListener&&e.removeEventListener("keyup",t.handleKeyboard))}),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.useDesktopDisplay=function(){return!N.isMobileOnly&&(N.isTablet?(this.element.classList.add("ecl-menu--forced-mobile"),!1):(this.element.classList.remove("ecl-menu--forced-mobile"),!0))},e.handleResize=function(){var t=this;return this.element.classList.remove("ecl-menu--transition"),clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(function(){t.element.classList.remove("ecl-menu--forced-mobile"),t.useDesktopDisplay(),t.items&&!N.isMobile&&t.items.forEach(function(e){t.checkMenuItem(e)}),t.element.classList.add("ecl-menu--transition")},200),this},e.checkMenuItem=function(e){var t=r(this.megaSelector,e);if(t){var i=o(this.subItemSelector,t);if(i.length<5)e.classList.add("ecl-menu__item--col1");else if(i.length<9)e.classList.add("ecl-menu__item--col2");else{if(!(i.length<13))return void e.classList.add("ecl-menu__item--full");e.classList.add("ecl-menu__item--col3")}var i=t.getBoundingClientRect(),n=this.inner.getBoundingClientRect(),e=e.getBoundingClientRect(),i=i.width;n.width<e.left-n.left+i?t.classList.add("ecl-menu__mega--rtl"):t.classList.remove("ecl-menu__mega--rtl")}},e.handleKeyboard=function(e){return"Escape"!==e.key&&"Esc"!==e.key||(e=e.target,document.activeElement===e&&e.blur()),this},e.handleClickOnOpen=function(e){return e.preventDefault(),this.element.setAttribute("aria-expanded","true"),this.inner.setAttribute("aria-hidden","false"),this.isOpen=!0,this},e.handleClickOnClose=function(){return this.element.setAttribute("aria-expanded","false"),this.inner.classList.remove("ecl-menu__inner--expanded"),this.inner.setAttribute("aria-hidden","true"),this.items.forEach(function(e){e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false")}),this.isOpen=!1,this},e.handleClickOnBack=function(){return this.inner.classList.remove("ecl-menu__inner--expanded"),this.items.forEach(function(e){e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false")}),this},e.handleClickOnLink=function(e){if(!this.isOpen||this.inner.classList.contains("ecl-menu__inner--expanded"))return!0;e.preventDefault(),this.inner.classList.add("ecl-menu__inner--expanded");var t=e.target.closest("[data-ecl-menu-item]");return this.items.forEach(function(e){e===t?(e.classList.add("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","true")):(e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false"))}),this},e.handleHoverOnItem=function(e){var t=e.target.closest("[data-ecl-menu-item]");return this.items.forEach(function(e){e===t?e.setAttribute("aria-expanded","true"):e.setAttribute("aria-expanded","false")}),this},e.handleHoverOffItem=function(e){return e.target.closest("[data-ecl-menu-item]").setAttribute("aria-expanded","false"),this},i}(),Z=function(){function i(e,t){var t=void 0===t?{}:t,i=t.toggleSelector,i=void 0===i?"[data-ecl-news-ticker-toggle]":i,n=t.prevSelector,n=void 0===n?"[data-ecl-news-ticker-prev]":n,s=t.nextSelector,s=void 0===s?"[data-ecl-news-ticker-next]":s,l=t.containerClass,l=void 0===l?".ecl-news-ticker__container":l,a=t.contentClass,a=void 0===a?".ecl-news-ticker__content":a,o=t.slidesClass,o=void 0===o?".ecl-news-ticker__slides":o,r=t.slideClass,r=void 0===r?".ecl-news-ticker__slide":r,h=t.currentSlideClass,h=void 0===h?".ecl-news-ticker__counter--current":h,c=t.attachClickListener,c=void 0===c||c,t=t.attachResizeListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=i,this.prevSelector=n,this.nextSelector=s,this.containerClass=l,this.contentClass=a,this.slidesClass=o,this.slideClass=r,this.currentSlideClass=h,this.attachClickListener=c,this.attachResizeListener=t,this.toggle=null,this.container=null,this.content=null,this.slides=null,this.btnPrev=null,this.btnNext=null,this.index=1,this.total=0,this.allowShift=!0,this.autoPlay=!1,this.autoPlayInterval=null,this.resizeTimer=null,this.cloneFirstSLide=null,this.cloneLastSLide=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.shiftSlide=this.shiftSlide.bind(this),this.checkIndex=this.checkIndex.bind(this),this.moveSlides=this.moveSlides.bind(this),this.resizeTicker=this.resizeTicker.bind(this),this.handleResize=this.handleResize.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).NEWS_TICKER,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLNewsTicker=t};var e=i.prototype;return e.init=function(){this.toggle=r(this.toggleSelector,this.element),this.btnPrev=r(this.prevSelector,this.element),this.btnNext=r(this.nextSelector,this.element),this.slidesContainer=r(this.slidesClass,this.element),this.container=r(this.containerClass,this.element),this.content=r(this.contentClass,this.element),this.slides=o(this.slideClass,this.element),this.total=this.slides.length;var e=this.slides[0],t=this.slides[this.slides.length-1];this.cloneFirstSLide=e.cloneNode(!0),this.cloneLastSLide=t.cloneNode(!0),this.slidesContainer.appendChild(this.cloneFirstSLide),this.slidesContainer.insertBefore(this.cloneLastSLide,e),this.slides=o(this.slideClass,this.element),this.moveSlides(!1),this.resizeTicker(),this.toggle&&this.handleClickOnToggle(),this.attachClickListener&&this.toggle&&this.toggle.addEventListener("click",this.handleClickOnToggle),this.attachClickListener&&this.btnNext&&this.btnNext.addEventListener("click",this.shiftSlide.bind(this,1,!0)),this.attachClickListener&&this.btnPrev&&this.btnPrev.addEventListener("click",this.shiftSlide.bind(this,-1,!0)),this.slidesContainer&&this.slidesContainer.addEventListener("transitionend",this.checkIndex),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.cloneFirstSLide&&this.cloneLastSLide&&(this.cloneFirstSLide.remove(),this.cloneLastSLide.remove()),this.toggle&&this.toggle.replaceWith(this.toggle.cloneNode(!0)),this.btnNext&&this.btnNext.replaceWith(this.btnNext.cloneNode(!0)),this.btnPrev&&this.btnPrev.replaceWith(this.btnPrev.cloneNode(!0)),this.slidesContainer&&this.slidesContainer.removeEventListener("transitionend",this.checkIndex),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.shiftSlide=function(e,t){this.allowShift&&(this.index=1===e?this.index+1:this.index-1,this.moveSlides(!0)),t&&this.autoPlay&&this.handleClickOnToggle(),this.allowShift=!1},e.moveSlides=function(e){var t=this.slides[this.index].offsetTop,i=this.slides[this.index].offsetHeight;this.content.style.height=i+"px",this.slidesContainer.style.transitionDuration=e?"0.4s":"0s",this.slidesContainer.style.transform="translate3d(0px, -"+t+"px, 0px)"},e.checkIndex=function(){var i=this;0===this.index&&(this.index=this.total,this.moveSlides(!1)),this.index===this.total+1&&(this.index=1,this.moveSlides(!1)),r(this.currentSlideClass,this.element).textContent=this.index,this.slides&&this.slides.forEach(function(e,t){i.index===t?e.removeAttribute("aria-hidden","true"):e.setAttribute("aria-hidden","true")}),this.allowShift=!0},e.handleClickOnToggle=function(){var e=this,t=r(this.toggleSelector+" .ecl-icon use",this.element),i=t.getAttribute("xlink:href"),n="",n=this.autoPlay?(clearInterval(this.autoPlayInterval),this.autoPlay=!1,i.replace("pause","play")):(this.autoPlayInterval=setInterval(function(){e.shiftSlide(1)},5e3),this.autoPlay=!0,i.replace("play","pause"));t.setAttribute("xlink:href",n)},e.resizeTicker=function(){var t=0;this.slides.forEach(function(e){e=e.offsetHeight;t=t<e?e:t}),this.container.style.height=t+10+"px"},e.handleResize=function(){return this.moveSlides(!1),this.resizeTicker(),this.autoPlay&&this.handleClickOnToggle(),this},i}(),ee=function(){function c(e,t){var t=void 0===t?{}:t,i=t.defaultText,i=void 0===i?"":i,n=t.searchText,n=void 0===n?"":n,s=t.selectAllText,s=void 0===s?"":s,l=t.noResultsText,l=void 0===l?"":l,a=t.selectMultipleId,a=void 0===a?"select-multiple":a,o=t.selectMultipleSelector,o=void 0===o?"[data-ecl-select-multiple]":o,r=t.defaultTextAttribute,r=void 0===r?"data-ecl-select-default":r,h=t.searchTextAttribute,h=void 0===h?"data-ecl-select-search":h,c=t.selectAllTextAttribute,c=void 0===c?"data-ecl-select-all":c,t=t.noResultsTextAttribute,t=void 0===t?"data-ecl-select-no-results":t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.selectMultipleId=a,this.selectMultipleSelector=o,this.defaultTextAttribute=r,this.searchTextAttribute=h,this.selectAllTextAttribute=c,this.noResultsTextAttribute=t,this.defaultText=i,this.searchText=n,this.selectAllText=s,this.noResultsText=l,this.input=null,this.search=null,this.checkboxes=null,this.select=null,this.selectAll=null,this.selectIcon=null,this.textDefault=null,this.textSearch=null,this.textSelectAll=null,this.textNoResults=null,this.selectMultiple=null,this.inputContainer=null,this.optionsContainer=null,this.searchContainer=null,this.form=null,this.updateCurrentValue=this.updateCurrentValue.bind(this),this.handleToggle=this.handleToggle.bind(this),this.handleClickOption=this.handleClickOption.bind(this),this.handleClickSelectAll=this.handleClickSelectAll.bind(this),this.handleFocusout=this.handleFocusout.bind(this),this.handleSearch=this.handleSearch.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.resetForm=this.resetForm.bind(this)}c.autoInit=function(e,t){t=new c(e,t=void 0===t?{}:t);return t.init(),e.ECLSelect=t},c.createSvgIcon=function(e,t){var i=document.createElement("div"),e=(i.innerHTML=e,i.children[0]);return e.removeAttribute("height"),e.removeAttribute("width"),e.setAttribute("focusable",!1),e.setAttribute("aria-hidden",!0),e.setAttribute("class",t),e},c.createCheckbox=function(e,t){if(!e||!t)return"";var i=e.id,n=e.text,s=e.disabled,l=e.selected,e=e.extraClass;if(!i||!n)return"";var a=document.createElement("div"),o=document.createElement("input"),r=document.createElement("label"),h=document.createElement("span");return e&&a.classList.add(e),l&&o.setAttribute("checked",!0),s&&(a.classList.add("ecl-checkbox--disabled"),o.setAttribute("disabled",s)),a.classList.add("ecl-checkbox"),a.setAttribute("data-select-multiple-value",n),o.classList.add("ecl-checkbox__input"),o.setAttribute("type","checkbox"),o.setAttribute("id",t+"-"+i),a.appendChild(o),r.classList.add("ecl-checkbox__label"),r.setAttribute("for",t+"-"+i),h.classList.add("ecl-checkbox__box"),h.appendChild(c.createSvgIcon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24" xml:space="preserve"><path d="m19.2 6.4-9.9 9.9-3.5-3.6c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4l4.2 4.2c.4.4 1 .4 1.4 0L20.6 7.8c.4-.4.4-1 0-1.4-.2-.2-.5-.3-.7-.3-.3 0-.5.1-.7.3z"/></svg>',"ecl-icon ecl-icon--s ecl-checkbox__icon")),r.appendChild(h),r.appendChild(document.createTextNode(n)),a.appendChild(r),a},c.createSelectIcon=function(){var e=document.createElement("div"),t=(e.classList.add("ecl-select__icon"),c.createSvgIcon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24" xml:space="preserve"><path d="M18.2 17.147c.2.2.4.3.7.3.3 0 .5-.1.7-.3.4-.4.4-1 0-1.4l-7.1-7.1c-.4-.4-1-.4-1.4 0l-7 7c-.3.4-.3 1 .1 1.4.4.4 1 .4 1.4 0l6.2-6.2 6.4 6.3z"/></svg>',"ecl-icon ecl-icon--s ecl-select__icon-shape ecl-icon--rotate-180"));return e.appendChild(t),e},c.checkCheckbox=function(e){e=e.target.closest(".ecl-checkbox").querySelector("input");return e.checked=!e.checked,e.checked};var e=c.prototype;return e.init=function(){var e,t=this,i=(this.select=this.element,Array.from(this.select.parentElement.classList));this.textDefault=this.defaultText||this.element.getAttribute(this.defaultTextAttribute),this.textSearch=this.searchText||this.element.getAttribute(this.searchTextAttribute),this.textSelectAll=this.selectAllText||this.element.getAttribute(this.selectAllTextAttribute),this.textNoResults=this.noResultsText||this.element.getAttribute(this.noResultsTextAttribute),this.selectMultiple=document.createElement("div"),this.selectMultiple.classList.add("ecl-select__multiple"),this.selectMultiple.addEventListener("focusout",this.handleFocusout),this.inputContainer=document.createElement("div"),(e=this.inputContainer.classList).add.apply(e,i),this.selectMultiple.appendChild(this.inputContainer),this.input=document.createElement("input"),this.input.classList.add("ecl-select","ecl-select__multiple-toggle"),this.input.setAttribute("type","text"),this.input.setAttribute("placeholder",this.textDefault||""),this.input.setAttribute("readonly",!0),i.find(function(e){return e.includes("disabled")})&&this.input.setAttribute("disabled",!0),this.input.addEventListener("keypress",this.handleToggle),this.input.addEventListener("click",this.handleToggle),this.inputContainer.appendChild(this.input),this.inputContainer.appendChild(c.createSelectIcon()),this.searchContainer=document.createElement("div"),this.searchContainer.style.display="none",(e=this.searchContainer.classList).add.apply(e,["ecl-select__multiple-dropdown"].concat(i)),this.selectMultiple.appendChild(this.searchContainer),this.search=document.createElement("input"),this.search.classList.add("ecl-text-input"),this.search.setAttribute("type","search"),this.search.setAttribute("placeholder",this.textSearch||""),this.search.addEventListener("keyup",this.handleSearch),this.search.addEventListener("search",this.handleSearch),this.searchContainer.appendChild(this.search),this.textSelectAll&&(this.selectAll=c.createCheckbox({id:"all",text:this.textSelectAll,extraClass:"ecl-select__multiple-all"},this.selectMultipleId),this.selectAll.addEventListener("click",this.handleClickSelectAll),this.selectAll.addEventListener("keypress",this.handleClickSelectAll),this.selectAll.addEventListener("change",this.handleClickSelectAll),this.searchContainer.appendChild(this.selectAll)),this.optionsContainer=document.createElement("div"),this.optionsContainer.classList.add("ecl-select__multiple-options"),this.searchContainer.appendChild(this.optionsContainer),this.select.options&&0<this.select.options.length&&(this.checkboxes=Array.from(this.select.options).map(function(e){e=c.createCheckbox({id:e.value,text:e.text,disabled:e.disabled,selected:e.selected},t.selectMultipleId);return e.setAttribute("data-visible",!0),e.classList.contains("ecl-checkbox--disabled")||(e.addEventListener("click",t.handleClickOption),e.addEventListener("keypress",t.handleClickOption)),t.optionsContainer.appendChild(e),e})),this.select.parentNode.parentNode.insertBefore(this.selectMultiple,this.select.parentNode.nextSibling),document.addEventListener("click",this.handleClickOutside),this.select.parentNode.classList.add("ecl-select__container--hidden"),this.updateCurrentValue(),this.form=this.element.closest("form"),this.form&&this.form.addEventListener("reset",this.resetForm),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){var t=this;this.selectMultiple.removeEventListener("focusout",this.handleFocusout),this.input.removeEventListener("keypress",this.handleToggle),this.input.removeEventListener("click",this.handleToggle),this.search.removeEventListener("keyup",this.handleSearch),this.selectAll.removeEventListener("click",this.handleClickSelectAll),this.selectAll.removeEventListener("keypress",this.handleClickSelectAll),this.checkboxes.forEach(function(e){e.removeEventListener("click",t.handleClickSelectAll),e.removeEventListener("click",t.handleClickOption)}),document.removeEventListener("click",this.handleClickOutside),this.selectMultiple&&this.selectMultiple.remove(),this.form&&this.form.removeEventListener("reset",this.resetForm),this.select.parentNode.classList.remove("ecl-select__container--hidden"),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.updateCurrentValue=function(){this.input.value=Array.from(this.select.options).filter(function(e){return e.selected}).map(function(e){return e.text}).join(", "),this.select.dispatchEvent(new window.Event("change",{bubbles:!0}))},e.handleToggle=function(e){e.preventDefault(),"none"===this.searchContainer.style.display?this.searchContainer.style.display="block":this.searchContainer.style.display="none"},e.handleClickOption=function(e){var t=this,i=(e.preventDefault(),c.checkCheckbox(e),e.target.closest(".ecl-checkbox"));Array.from(this.select.options).forEach(function(e){e.text===i.getAttribute("data-select-multiple-value")&&(e.getAttribute("selected")||e.selected?(e.removeAttribute("selected"),e.selected=!1,t.selectAll.querySelector("input").checked=!1):(e.setAttribute("selected","selected"),e.selected=!0))}),this.updateCurrentValue()},e.handleClickSelectAll=function(e){var i,n;e.preventDefault(),this.selectAll.querySelector("input").disabled||(i=c.checkCheckbox(e),n=Array.from(this.select.options).filter(function(e){return!e.disabled}),Array.from(this.searchContainer.querySelectorAll('[data-visible="true"]')).filter(function(e){return!e.querySelector("input").disabled}).forEach(function(t){t.querySelector("input").checked=i;var e=n.find(function(e){return e.text===t.getAttribute("data-select-multiple-value")});e&&(i?(e.setAttribute("selected","selected"),e.selected=!0):(e.removeAttribute("selected","selected"),e.selected=!1))}),this.updateCurrentValue())},e.handleFocusout=function(e){e.relatedTarget&&this.selectMultiple&&!this.selectMultiple.contains(e.relatedTarget)&&"block"===this.searchContainer.style.display&&(this.searchContainer.style.display="none")},e.handleSearch=function(e){var t,n=[],s=e.target.value.toLowerCase(),e=(this.checkboxes.forEach(function(e){var t,i;e.getAttribute("data-select-multiple-value").toLocaleLowerCase().includes(s)?(e.setAttribute("data-visible",!0),e.style.display="flex",t=e.querySelector(".ecl-checkbox__box"),(i=e.querySelector(".ecl-checkbox__label")).innerHTML=s?t.outerHTML+i.textContent.replace(new RegExp(s+"(?!([^<]+)?<)","gi"),"<b>$&</b>"):t.outerHTML+i.textContent,n.push(e)):(e.setAttribute("data-visible",!1),e.style.display="none")}),n.filter(function(e){return e.querySelector("input").checked})),e=(0===n.length||n.length!==e.length?this.selectAll.querySelector("input").checked=!1:this.selectAll.querySelector("input").checked=!0,this.searchContainer.querySelector(".ecl-select__multiple-no-results"));0!==n.length||e?0<n.length&&null!==e&&e.parentNode.removeChild(e):(e=document.createElement("div"),t=document.createElement("span"),e.classList.add("ecl-select__multiple-no-results"),t.innerHTML=this.textNoResults,e.appendChild(t),this.optionsContainer.appendChild(e)),0===s.length?(this.checkboxes.forEach(function(e){e.setAttribute("data-visible",!0),e.style.display="flex"}),this.selectAll.classList.remove("ecl-checkbox--disabled"),this.selectAll.querySelector("input").disabled=!1):(this.selectAll.classList.add("ecl-checkbox--disabled"),this.selectAll.querySelector("input").disabled=!0)},e.handleClickOutside=function(e){e.target&&this.selectMultiple&&!this.selectMultiple.contains(e.target)&&"block"===this.searchContainer.style.display&&(this.searchContainer.style.display="none")},e.resetForm=function(){var t=this;setTimeout(function(){Array.from(t.select.options).forEach(function(e){t.selectMultiple.querySelector('[data-select-multiple-value="'+e.text+'"]').querySelector(".ecl-checkbox__input").checked?(e.setAttribute("selected","selected"),e.selected=!0):(e.removeAttribute("selected","selected"),e.selected=!1)}),t.updateCurrentValue()},10)},c}(),te=function(){function i(e,t){var t=void 0===t?{}:t,i=t.languageLinkSelector,i=void 0===i?"[data-ecl-language-selector]":i,n=t.languageListOverlaySelector,n=void 0===n?"[data-ecl-language-list-overlay]":n,s=t.closeOverlaySelector,s=void 0===s?"[data-ecl-language-list-close]":s,l=t.searchToggleSelector,l=void 0===l?"[data-ecl-search-toggle]":l,a=t.searchFormSelector,a=void 0===a?"[data-ecl-search-form]":a,o=t.loginToggleSelector,o=void 0===o?"[data-ecl-login-toggle]":o,t=t.loginBoxSelector,t=void 0===t?"[data-ecl-login-box]":t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=i,this.languageListOverlaySelector=n,this.closeOverlaySelector=s,this.searchToggleSelector=l,this.searchFormSelector=a,this.loginToggleSelector=o,this.loginBoxSelector=t,this.languageSelector=null,this.languageListOverlay=null,this.close=null,this.focusTrap=null,this.searchToggle=null,this.searchForm=null,this.loginToggle=null,this.loginBox=null,this.openOverlay=this.openOverlay.bind(this),this.closeOverlay=this.closeOverlay.bind(this),this.toggleOverlay=this.toggleOverlay.bind(this),this.toggleSearch=this.toggleSearch.bind(this),this.toggleLogin=this.toggleLogin.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).SITE_HEADER_CORE,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLSiteHeaderCore=t};var e=i.prototype;return e.init=function(){this.languageSelector=r(this.languageLinkSelector),this.languageListOverlay=r(this.languageListOverlaySelector),this.close=r(this.closeOverlaySelector),this.focusTrap=b(this.languageListOverlay,{onDeactivate:this.closeOverlay}),this.languageSelector&&this.languageSelector.addEventListener("click",this.toggleOverlay),this.close&&this.close.addEventListener("click",this.toggleOverlay),this.searchToggle=r(this.searchToggleSelector),this.searchForm=r(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=r(this.loginToggleSelector),this.loginBox=r(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.languageSelector&&this.languageSelector.removeEventListener("click",this.toggleOverlay),this.focusTrap&&this.focusTrap.deactivate(),this.close&&this.close.removeEventListener("click",this.toggleOverlay),this.searchToggle&&this.searchToggle.removeEventListener("click",this.toggleSearch),this.loginToggle&&this.loginToggle.removeEventListener("click",this.toggleLogin),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.openOverlay=function(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageSelector.setAttribute("aria-expanded","true")},e.closeOverlay=function(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageSelector.setAttribute("aria-expanded","false")},e.toggleOverlay=function(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())},e.toggleSearch=function(e){var t;this.searchForm&&(e.preventDefault(),t="true"===this.searchToggle.getAttribute("aria-expanded"),this.loginToggle&&"true"===this.loginToggle.getAttribute("aria-expanded")&&this.toggleLogin(e),this.searchToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.searchForm.classList.remove("ecl-site-header-core__search--active"):this.searchForm.classList.add("ecl-site-header-core__search--active"))},e.toggleLogin=function(e){var t;this.loginBox&&(e.preventDefault(),t="true"===this.loginToggle.getAttribute("aria-expanded"),this.searchToggle&&"true"===this.searchToggle.getAttribute("aria-expanded")&&this.toggleSearch(e),this.loginToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.loginBox.classList.remove("ecl-site-header-core__login-box--active"):this.loginBox.classList.add("ecl-site-header-core__login-box--active"))},i}(),ie=function(){function i(e,t){var t=void 0===t?{}:t,i=t.languageLinkSelector,i=void 0===i?"[data-ecl-language-selector]":i,n=t.languageListOverlaySelector,n=void 0===n?"[data-ecl-language-list-overlay]":n,s=t.closeOverlaySelector,s=void 0===s?"[data-ecl-language-list-close]":s,l=t.searchToggleSelector,l=void 0===l?"[data-ecl-search-toggle]":l,a=t.searchFormSelector,a=void 0===a?"[data-ecl-search-form]":a,o=t.loginToggleSelector,o=void 0===o?"[data-ecl-login-toggle]":o,t=t.loginBoxSelector,t=void 0===t?"[data-ecl-login-box]":t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=i,this.languageListOverlaySelector=n,this.closeOverlaySelector=s,this.searchToggleSelector=l,this.searchFormSelector=a,this.loginToggleSelector=o,this.loginBoxSelector=t,this.languageSelector=null,this.languageListOverlay=null,this.close=null,this.focusTrap=null,this.searchToggle=null,this.searchForm=null,this.loginToggle=null,this.loginBox=null,this.openOverlay=this.openOverlay.bind(this),this.closeOverlay=this.closeOverlay.bind(this),this.toggleOverlay=this.toggleOverlay.bind(this),this.toggleSearch=this.toggleSearch.bind(this),this.toggleLogin=this.toggleLogin.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).SITE_HEADER_CORE,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLSiteHeaderHarmonised=t};var e=i.prototype;return e.init=function(){this.languageSelector=r(this.languageLinkSelector),this.languageListOverlay=r(this.languageListOverlaySelector),this.close=r(this.closeOverlaySelector),this.focusTrap=b(this.languageListOverlay,{onDeactivate:this.closeOverlay}),this.languageSelector&&this.languageSelector.addEventListener("click",this.toggleOverlay),this.close&&this.close.addEventListener("click",this.toggleOverlay),this.searchToggle=r(this.searchToggleSelector),this.searchForm=r(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=r(this.loginToggleSelector),this.loginBox=r(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.languageSelector&&this.languageSelector.removeEventListener("click",this.toggleOverlay),this.focusTrap&&this.focusTrap.deactivate(),this.close&&this.close.removeEventListener("click",this.toggleOverlay),this.searchToggle&&this.searchToggle.removeEventListener("click",this.toggleSearch),this.loginToggle&&this.loginToggle.removeEventListener("click",this.toggleLogin),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.openOverlay=function(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageSelector.setAttribute("aria-expanded","true")},e.closeOverlay=function(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageSelector.setAttribute("aria-expanded","false")},e.toggleOverlay=function(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())},e.toggleSearch=function(e){var t;this.searchForm&&(e.preventDefault(),t="true"===this.searchToggle.getAttribute("aria-expanded"),this.loginToggle&&"true"===this.loginToggle.getAttribute("aria-expanded")&&this.toggleLogin(e),this.searchToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.searchForm.classList.remove("ecl-site-header-harmonised__search--active"):this.searchForm.classList.add("ecl-site-header-harmonised__search--active"))},e.toggleLogin=function(e){var t;this.loginBox&&(e.preventDefault(),t="true"===this.loginToggle.getAttribute("aria-expanded"),this.searchToggle&&"true"===this.searchToggle.getAttribute("aria-expanded")&&this.toggleSearch(e),this.loginToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.loginBox.classList.remove("ecl-site-header-harmonised__login-box--active"):this.loginBox.classList.add("ecl-site-header-harmonised__login-box--active"))},i}(),ne=function(){function i(e,t){var t=void 0===t?{}:t,i=t.languageLinkSelector,i=void 0===i?"[data-ecl-language-selector]":i,n=t.languageListOverlaySelector,n=void 0===n?"[data-ecl-language-list-overlay]":n,s=t.closeOverlaySelector,s=void 0===s?"[data-ecl-language-list-close]":s,l=t.searchToggleSelector,l=void 0===l?"[data-ecl-search-toggle]":l,a=t.searchFormSelector,a=void 0===a?"[data-ecl-search-form]":a,o=t.loginToggleSelector,o=void 0===o?"[data-ecl-login-toggle]":o,t=t.loginBoxSelector,t=void 0===t?"[data-ecl-login-box]":t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=i,this.languageListOverlaySelector=n,this.closeOverlaySelector=s,this.searchToggleSelector=l,this.searchFormSelector=a,this.loginToggleSelector=o,this.loginBoxSelector=t,this.languageSelector=null,this.languageListOverlay=null,this.close=null,this.focusTrap=null,this.searchToggle=null,this.searchForm=null,this.loginToggle=null,this.loginBox=null,this.openOverlay=this.openOverlay.bind(this),this.closeOverlay=this.closeOverlay.bind(this),this.toggleOverlay=this.toggleOverlay.bind(this),this.toggleSearch=this.toggleSearch.bind(this),this.toggleLogin=this.toggleLogin.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).SITE_HEADER_CORE,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLSiteHeader=t};var e=i.prototype;return e.init=function(){this.languageSelector=r(this.languageLinkSelector),this.languageListOverlay=r(this.languageListOverlaySelector),this.close=r(this.closeOverlaySelector),this.focusTrap=b(this.languageListOverlay,{onDeactivate:this.closeOverlay}),this.languageSelector&&this.languageSelector.addEventListener("click",this.toggleOverlay),this.close&&this.close.addEventListener("click",this.toggleOverlay),this.searchToggle=r(this.searchToggleSelector),this.searchForm=r(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=r(this.loginToggleSelector),this.loginBox=r(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.languageSelector&&this.languageSelector.removeEventListener("click",this.toggleOverlay),this.focusTrap&&this.focusTrap.deactivate(),this.close&&this.close.removeEventListener("click",this.toggleOverlay),this.searchToggle&&this.searchToggle.removeEventListener("click",this.toggleSearch),this.loginToggle&&this.loginToggle.removeEventListener("click",this.toggleLogin),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.openOverlay=function(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageSelector.setAttribute("aria-expanded","true")},e.closeOverlay=function(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageSelector.setAttribute("aria-expanded","false")},e.toggleOverlay=function(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())},e.toggleSearch=function(e){var t;this.searchForm&&(e.preventDefault(),t="true"===this.searchToggle.getAttribute("aria-expanded"),this.loginToggle&&"true"===this.loginToggle.getAttribute("aria-expanded")&&this.toggleLogin(e),this.searchToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.searchForm.classList.remove("ecl-site-header__search--active"):this.searchForm.classList.add("ecl-site-header__search--active"))},e.toggleLogin=function(e){var t;this.loginBox&&(e.preventDefault(),t="true"===this.loginToggle.getAttribute("aria-expanded"),this.searchToggle&&"true"===this.searchToggle.getAttribute("aria-expanded")&&this.toggleSearch(e),this.loginToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.loginBox.classList.remove("ecl-site-header__login-box--active"):this.loginBox.classList.add("ecl-site-header__login-box--active"))},i}(),se=function(){function i(e,t){var t=void 0===t?{}:t,i=t.languageLinkSelector,i=void 0===i?"[data-ecl-language-selector]":i,n=t.languageListOverlaySelector,n=void 0===n?"[data-ecl-language-list-overlay]":n,s=t.closeOverlaySelector,s=void 0===s?"[data-ecl-language-list-close]":s,l=t.searchToggleSelector,l=void 0===l?"[data-ecl-search-toggle]":l,a=t.searchFormSelector,a=void 0===a?"[data-ecl-search-form]":a,o=t.loginToggleSelector,o=void 0===o?"[data-ecl-login-toggle]":o,t=t.loginBoxSelector,t=void 0===t?"[data-ecl-login-box]":t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=i,this.languageListOverlaySelector=n,this.closeOverlaySelector=s,this.searchToggleSelector=l,this.searchFormSelector=a,this.loginToggleSelector=o,this.loginBoxSelector=t,this.languageSelector=null,this.languageListOverlay=null,this.close=null,this.focusTrap=null,this.searchToggle=null,this.searchForm=null,this.loginToggle=null,this.loginBox=null,this.openOverlay=this.openOverlay.bind(this),this.closeOverlay=this.closeOverlay.bind(this),this.toggleOverlay=this.toggleOverlay.bind(this),this.toggleSearch=this.toggleSearch.bind(this),this.toggleLogin=this.toggleLogin.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).SITE_HEADER_CORE,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLSiteHeaderStandardised=t};var e=i.prototype;return e.init=function(){this.languageSelector=r(this.languageLinkSelector),this.languageListOverlay=r(this.languageListOverlaySelector),this.close=r(this.closeOverlaySelector),this.focusTrap=b(this.languageListOverlay,{onDeactivate:this.closeOverlay}),this.languageSelector&&this.languageSelector.addEventListener("click",this.toggleOverlay),this.close&&this.close.addEventListener("click",this.toggleOverlay),this.searchToggle=r(this.searchToggleSelector),this.searchForm=r(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=r(this.loginToggleSelector),this.loginBox=r(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.languageSelector&&this.languageSelector.removeEventListener("click",this.toggleOverlay),this.focusTrap&&this.focusTrap.deactivate(),this.close&&this.close.removeEventListener("click",this.toggleOverlay),this.searchToggle&&this.searchToggle.removeEventListener("click",this.toggleSearch),this.loginToggle&&this.loginToggle.removeEventListener("click",this.toggleLogin),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.openOverlay=function(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageSelector.setAttribute("aria-expanded","true")},e.closeOverlay=function(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageSelector.setAttribute("aria-expanded","false")},e.toggleOverlay=function(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())},e.toggleSearch=function(e){var t;this.searchForm&&(e.preventDefault(),t="true"===this.searchToggle.getAttribute("aria-expanded"),this.loginToggle&&"true"===this.loginToggle.getAttribute("aria-expanded")&&this.toggleLogin(e),this.searchToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.searchForm.classList.remove("ecl-site-header-standardised__search--active"):this.searchForm.classList.add("ecl-site-header-standardised__search--active"))},e.toggleLogin=function(e){var t;this.loginBox&&(e.preventDefault(),t="true"===this.loginToggle.getAttribute("aria-expanded"),this.searchToggle&&"true"===this.searchToggle.getAttribute("aria-expanded")&&this.toggleSearch(e),this.loginToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.loginBox.classList.remove("ecl-site-header-standardised__login-box--active"):this.loginBox.classList.add("ecl-site-header-standardised__login-box--active"))},i}(),le=function(){function n(e,t){t=(void 0===t?{}:t).sortSelector,t=void 0===t?"[data-ecl-table-sort-toggle]":t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.sortSelector=t,this.sortHeadings=null,this.handleClickOnSort=this.handleClickOnSort.bind(this)}n.autoInit=function(e,t){t=(void 0===t?{}:t).TABLE,t=new n(e,void 0===t?{}:t);return t.init(),e.ECLTable=t},n.createSortIcon=function(e){var t=document.createElement("span"),t=(t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24" xml:space="preserve"><path d="M7.4 13 11 9.4c.5-.5 1.4-.5 2 0l3.6 3.6c.9.9.2 2.4-1 2.4H8.4c-1.3 0-1.9-1.5-1-2.4"/></svg>',t.children[0]);return t.removeAttribute("height"),t.removeAttribute("width"),t.setAttribute("focusable",!1),t.setAttribute("aria-hidden",!0),t.setAttribute("class","ecl-table__icon ecl-icon ecl-icon--m "+e),t};var e=n.prototype;return e.init=function(){var i=this,e=(this.sortHeadings=o(this.sortSelector,this.element),this.sortHeadings&&this.sortHeadings.forEach(function(e){var t=document.createElement("span");t.classList.add("ecl-table__arrow"),t.appendChild(n.createSortIcon("ecl-table__icon-up")),t.appendChild(n.createSortIcon("ecl-table__icon-down")),e.appendChild(t),e.addEventListener("click",i.handleClickOnSort.bind(i,e))}),r("tbody",this.element));[].concat(o("tr",e)).forEach(function(e,t){e.setAttribute("data-ecl-table-order",t)}),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){var t=this;this.sortHeadings&&this.sortHeadings.forEach(function(e){e.removeEventListener("click",t.handleClickOnSort)}),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.handleClickOnSort=function(t){for(var e=t.closest("table"),i=r("tbody",e),n=t.getAttribute("aria-sort"),s=0,l=t.previousElementSibling;l;)s+=l.getAttribute("colspan")?Number(l.getAttribute("colspan")):1,l=l.previousElementSibling;function a(n,s){return function(e,t){return i=(s?e:t).children[n].textContent,t=(s?t:e).children[n].textContent,""===i||""===t||Number.isNaN(+i)||Number.isNaN(+t)?i.toString().localeCompare(t):i-t;var i}}n="descending"===n?([].concat(o("tr",i)).forEach(function(e,t){t=r("[data-ecl-table-order='"+t+"']");i.appendChild(t)}),null):([].concat(o("tr",i)).sort(a(s,"ascending"!==n)).forEach(function(e){return i.appendChild(e)}),"ascending"===n?"descending":"ascending");this.sortHeadings.forEach(function(e){n&&e===t?e.setAttribute("aria-sort",n):e.removeAttribute("aria-sort")})},n}(),ae=function(){function i(e,t){var t=void 0===t?{}:t,i=t.listSelector,i=void 0===i?".ecl-tabs__list":i,n=t.listItemsSelector,n=void 0===n?".ecl-tabs__item:not(.ecl-tabs__item--more)":n,s=t.moreItemSelector,s=void 0===s?".ecl-tabs__item--more":s,l=t.moreButtonSelector,l=void 0===l?".ecl-tabs__toggle":l,a=t.moreLabelSelector,a=void 0===a?".ecl-tabs__toggle .ecl-button__label":a,o=t.prevSelector,o=void 0===o?".ecl-tabs__prev":o,r=t.nextSelector,r=void 0===r?".ecl-tabs__next":r,h=t.attachClickListener,h=void 0===h||h,t=t.attachResizeListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.listSelector=i,this.listItemsSelector=n,this.moreItemSelector=s,this.moreButtonSelector=l,this.moreLabelSelector=a,this.prevSelector=o,this.nextSelector=r,this.attachClickListener=h,this.attachResizeListener=t,this.list=null,this.listItems=null,this.moreItem=null,this.moreButton=null,this.moreButtonActive=!1,this.moreLabel=null,this.moreLabelValue=null,this.dropdown=null,this.dropdownItems=null,this.allowShift=!0,this.buttonNextSize=0,this.index=0,this.total=0,this.direction="ltr",this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleResize=this.handleResize.bind(this),this.closeMoreDropdown=this.closeMoreDropdown.bind(this),this.shiftTabs=this.shiftTabs.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).TABS,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLTabs=t};var e=i.prototype;return e.init=function(){var t=this;this.list=r(this.listSelector,this.element),this.listItems=o(this.listItemsSelector,this.element),this.moreItem=r(this.moreItemSelector,this.element),this.moreButton=r(this.moreButtonSelector,this.element),this.moreLabel=r(this.moreLabelSelector,this.element),this.moreLabelValue=this.moreLabel.innerText,this.btnPrev=r(this.prevSelector,this.element),this.btnNext=r(this.nextSelector,this.element),this.total=this.listItems.length,this.moreButton&&(this.dropdown=document.createElement("ul"),this.dropdown.classList.add("ecl-tabs__dropdown"),this.listItems.forEach(function(e){t.dropdown.appendChild(e.cloneNode(!0))}),this.moreItem.appendChild(this.dropdown),this.dropdownItems=o(".ecl-tabs__dropdown .ecl-tabs__item",this.element),this.handleResize()),this.btnNext&&(this.buttonNextSize=this.btnNext.getBoundingClientRect().width),this.attachClickListener&&this.moreButton&&this.moreButton.addEventListener("click",this.handleClickOnToggle),this.attachClickListener&&document&&this.moreButton&&document.addEventListener("click",this.closeMoreDropdown),this.attachClickListener&&this.btnNext&&this.btnNext.addEventListener("click",this.shiftTabs.bind(this,"next",!0)),this.attachClickListener&&this.btnPrev&&this.btnPrev.addEventListener("click",this.shiftTabs.bind(this,"prev",!0)),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.dropdown&&this.dropdown.remove(),this.moreButton&&(this.moreLabel.textContent=this.moreLabelValue,this.moreButton.replaceWith(this.moreButton.cloneNode(!0))),this.btnNext&&this.btnNext.replaceWith(this.btnNext.cloneNode(!0)),this.btnPrev&&this.btnPrev.replaceWith(this.btnPrev.cloneNode(!0)),this.attachClickListener&&document&&this.moreButton&&document.removeEventListener("click",this.closeMoreDropdown),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.shiftTabs=function(e){this.index="next"===e?this.index+1:this.index-1,this.btnPrev.style.display=1<=this.index?"block":"none",this.btnNext.style.display=this.index>=this.total-1?"none":"block";var e=0===this.index?0:this.btnPrev.getBoundingClientRect().width+13,t=0,e=(this.direction=getComputedStyle(this.element).direction,t="rtl"===this.direction?Math.ceil(this.list.offsetWidth-this.listItems[this.index].offsetLeft-this.listItems[this.index].offsetWidth-e):Math.ceil(this.listItems[this.index].offsetLeft-e),Math.ceil(this.list.getBoundingClientRect().width-this.element.getBoundingClientRect().width));e<t&&(this.btnNext.style.display="none",t=e),this.list.style.transitionDuration="0.4s","rtl"===this.direction?this.list.style.transform="translate3d("+t+"px, 0px, 0px)":this.list.style.transform="translate3d(-"+t+"px, 0px, 0px)"},e.handleClickOnToggle=function(){this.dropdown.classList.toggle("ecl-tabs__dropdown--show"),this.moreButton.setAttribute("aria-expanded",this.dropdown.classList.contains("ecl-tabs__dropdown--show"))},e.handleResize=function(){var t,i=this;if("none"===window.getComputedStyle(this.moreButton).display&&this.closeMoreDropdown(this),this.list.style.transform="translate3d(0px, 0px, 0px)",Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<=480)return this.index=1,this.list.style.transitionDuration="0.4s",this.shiftTabs(this.index),this.moreItem&&this.moreItem.setAttribute("aria-hidden","true"),t=0,this.listItems.forEach(function(e){e.setAttribute("aria-hidden","false"),t+=Math.ceil(e.getBoundingClientRect().width)}),this.list.style.width=t+"px",this.btnNext.style.display="block",void(this.btnPrev.style.display="none");this.btnNext.style.display="none",this.btnPrev.style.display="none",this.list.style.width="auto";var n=this.moreButton.getBoundingClientRect().width+25,s=[],l=this.list.getBoundingClientRect().width;this.moreButtonActive=!1,this.listItems.forEach(function(e,t){e.setAttribute("aria-hidden","false"),l>=n+e.getBoundingClientRect().width&&!s.includes(t-1)?n+=e.getBoundingClientRect().width:(e.setAttribute("aria-hidden","true"),e.childNodes[0].classList.contains("ecl-tabs__link--active")&&(i.moreButtonActive=!0),s.push(t))}),this.moreButtonActive?this.moreButton.classList.add("ecl-tabs__toggle--active"):this.moreButton.classList.remove("ecl-tabs__toggle--active"),s.length?(this.moreItem.setAttribute("aria-hidden","false"),this.moreLabel.textContent=this.moreLabelValue.replace("%d",s.length),this.dropdownItems.forEach(function(e,t){s.includes(t)?e.setAttribute("aria-hidden","false"):e.setAttribute("aria-hidden","true")})):this.moreItem.setAttribute("aria-hidden","true")},e.closeMoreDropdown=function(e){for(var t=e.target;t;){if(t===this.moreButton)return;t=t.parentNode}this.moreButton.setAttribute("aria-expanded",!1),this.dropdown.classList.remove("ecl-tabs__dropdown--show")},i}(),oe=function(){function i(e,t){var t=void 0===t?{}:t,i=t.buttonSelector,i=void 0===i?"[data-ecl-timeline-button]":i,n=t.labelSelector,n=void 0===n?"[data-ecl-label]":n,s=t.labelExpanded,s=void 0===s?"data-ecl-label-expanded":s,l=t.labelCollapsed,l=void 0===l?"data-ecl-label-collapsed":l,t=t.attachClickListener,t=void 0===t||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.buttonSelector=i,this.labelSelector=n,this.labelExpanded=s,this.labelCollapsed=l,this.attachClickListener=t,this.button=null,this.label=null,this.handleClickOnButton=this.handleClickOnButton.bind(this)}i.autoInit=function(e,t){t=(void 0===t?{}:t).TIMELINE,t=new i(e,void 0===t?{}:t);return t.init(),e.ECLTimeline=t};var e=i.prototype;return e.init=function(){this.button=r(this.buttonSelector,this.element),this.label=r(this.labelSelector,this.element),this.attachClickListener&&this.button&&this.button.addEventListener("click",this.handleClickOnButton),this.element.setAttribute("data-ecl-auto-initialized","true")},e.destroy=function(){this.attachClickListener&&this.button&&this.button.removeEventListener("click",this.handleClickOnButton),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")},e.handleClickOnButton=function(){var e="true"===this.button.getAttribute("aria-expanded");return this.button.setAttribute("aria-expanded",e?"false":"true"),e?(this.element.removeAttribute("data-ecl-timeline-expanded"),this.button.blur(),this.button.focus()):this.element.setAttribute("data-ecl-timeline-expanded","true"),this.label&&!e&&this.button.hasAttribute(this.labelExpanded)?this.label.innerHTML=this.button.getAttribute(this.labelExpanded):this.label&&e&&this.button.hasAttribute(this.labelCollapsed)&&(this.label.innerHTML=this.button.getAttribute(this.labelCollapsed)),this},i}();return e.Accordion=moment,e.Breadcrumb=V,e.BreadcrumbCore=W,e.BreadcrumbHarmonised=Y,e.BreadcrumbStandardised=j,e.Carousel=n,e.CategoryFilter=s,e.Datepicker=H,e.Expandable=U,e.FileDownload=G,e.FileUpload=K,e.Gallery=v,e.InpageNavigation=u,e.Menu=M,e.Message=Q,e.NewsTicker=Z,e.Select=ee,e.SiteHeader=ne,e.SiteHeaderCore=te,e.SiteHeaderHarmonised=ie,e.SiteHeaderStandardised=se,e.Table=le,e.Tabs=ae,e.Timeline=oe,e.autoInit=function(e){var e=void 0===e?{}:e,t=e.root,t=void 0===t?document:t,n=function(e,t){if(null==e)return{};for(var i,n={},s=Object.keys(e),l=0;l<s.length;l++)i=s[l],0<=t.indexOf(i)||(n[i]=e[i]);return n}(e,a);if(!ECL)throw new TypeError("Called autoInit but ECL is not present");function i(){l.filter(function(e){return"true"!==e.getAttribute("data-ecl-auto-initialized")}).forEach(function(e){var t=e.getAttribute("data-ecl-auto-init");if(!t)throw new TypeError("(ecl-auto-init) "+t+" data-ecl-auto-init is empty");var i=ECL[t];if("function"!=typeof i)throw new TypeError("(ecl-auto-init) Could not find '"+t+"'");if("function"!=typeof i.autoInit)throw new TypeError("(ecl-auto-init) Could not find autoInit for '"+t+"'");t=i.autoInit(e,n);ECL.components.push(t),s.push(t)})}var s=[],l=(ECL.components||(ECL.components=[]),o("[data-ecl-auto-init]",t)),e=i;return i(),{update:e,destroy:function(){if(ECL.components)for(var e=ECL.components.length-1;0<=e;--e)ECL.components[e].destroy&&(ECL.components[e].destroy(),ECL.components.splice(e,1))},components:s}},Object.defineProperty(e,"__esModule",{value:!0}),e}({},moment);