@ecl/preset-ec 3.3.2 → 3.4.0

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.
Files changed (30) hide show
  1. package/dist/images/icons/lists/all.json +1 -1
  2. package/dist/images/icons/sprites/icons.svg +1 -1
  3. package/dist/images/icons/svg/all/livestreaming.svg +1 -1
  4. package/dist/images/icons/svg/all/location.svg +1 -1
  5. package/dist/images/icons/svg/all/print.svg +1 -1
  6. package/dist/images/icons/svg/all/regulation.svg +1 -1
  7. package/dist/images/icons/svg/all/star-filled.svg +1 -0
  8. package/dist/images/icons/svg/all/star-outline.svg +1 -0
  9. package/dist/images/icons-social-media/lists/all.json +1 -1
  10. package/dist/images/icons-social-media/lists/social-media.json +1 -1
  11. package/dist/images/icons-social-media/sprites/icons-social-media.svg +1 -1
  12. package/dist/images/icons-social-media/svg/social-media/mastodon-color.svg +1 -0
  13. package/dist/images/icons-social-media/svg/social-media/mastodon-negative.svg +1 -0
  14. package/dist/images/icons-social-media/svg/social-media/mastodon.svg +1 -0
  15. package/dist/images/icons-social-media/svg/social-media/reddit-color.svg +1 -0
  16. package/dist/images/icons-social-media/svg/social-media/reddit-negative.svg +1 -0
  17. package/dist/images/icons-social-media/svg/social-media/reddit.svg +1 -1
  18. package/dist/images/social-icons/lists/social.json +1 -1
  19. package/dist/images/social-icons/sprites/icons-social.svg +17 -1
  20. package/dist/images/social-icons/svg/social/mastodon.svg +1 -0
  21. package/dist/images/social-icons/svg/social/mastodon_hover.svg +1 -0
  22. package/dist/images/social-icons/svg/social/telegram.svg +1 -0
  23. package/dist/images/social-icons/svg/social/telegram_hover.svg +1 -0
  24. package/dist/scripts/ecl-ec.js +2 -2
  25. package/dist/styles/ecl-ec-print.css +1 -1
  26. package/dist/styles/ecl-ec-print.css.map +1 -0
  27. package/dist/styles/ecl-ec.css +2 -2
  28. package/dist/styles/ecl-ec.css.map +1 -0
  29. package/dist/styles/optional/ecl-ec-default.css +1 -1
  30. package/package.json +10 -10
@@ -1,2 +1,2 @@
1
- /* @ecl/preset-ec - 3.3.2 Built on 2022-06-08T10:04:00.590Z */
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 width="48" height="48" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path id="id-3a" d="M36 12 20 28l-8-8-4 4 12 12 20-20z"/></defs><use xlink:href="#id-3a"/></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 width="48" height="48" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path id="id-7a" d="M40 38 24 20 8 38l-6-6L24 8l22 24z"/></defs><use xlink:href="#id-7a"/></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 width="48" height="48" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path id="id-24a" d="m32 30-8-13-8 13z"/></defs><use xlink:href="#id-24a"/></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--l "+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);
1
+ /* @ecl/preset-ec - 3.4.0 Built on 2022-08-04T12:51:08.446Z */
2
+ var ECL=function(e,moment){"use strict";function B(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var P=B(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 r(e,t){return void 0===t&&(t=document),[].slice.call(t.querySelectorAll(e))}function h(e,t){return(t=void 0===t?document:t).querySelector(e)}var R=["root"];var F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var z=t(function(e,t){var moment;try{moment=P.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,s,n){if(l)t.addEventListener(i,s,!!n);else t.attachEvent("on"+i,s)},i=function e(t,i,s,n){if(l)t.removeEventListener(i,s,!!n);else t.detachEvent("on"+i,s)},s=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=s((" "+t.className+" ").replace(" "+i+" "," "))},f=function e(t){return/Array/.test(Object.prototype.toString.call(t))},D=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},n=function e(t){return t%4===0&&t%100!==0||t%400===0},B=function e(t,i){return[31,n(t)?29:28,31,30,31,30,31,31,30,31,30,31][i]},P=function e(t){if(D(t))t.setHours(0,0,0,0)},R=function e(t,i){return t.getTime()===i.getTime()},h=function e(t,i,s){var n,l;for(n in i){l=t[n]!==undefined;if(l&&typeof i[n]==="object"&&i[n]!==null&&i[n].nodeName===undefined)if(D(i[n])){if(s)t[n]=new Date(i[n].getTime())}else if(f(i[n])){if(s)t[n]=i[n].slice(0)}else t[n]=e({},i[n],s);else if(s||!l)t[n]=i[n]}return t},d=function e(t,i,s){var n;if(g.createEvent){n=g.createEvent("HTMLEvents");n.initEvent(i,true,false);n=h(n,s);t.dispatchEvent(n)}else if(g.createEventObject){n=g.createEventObject();n=h(n,s);t.fireEvent("on"+i,n)}},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},m={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},b=function e(t,i,s){i+=t.firstDay;while(i>=7)i-=7;return s?t.i18n.weekdaysShort[i]:t.i18n.weekdays[i]},F=function e(t){var i=[];var s="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");s="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="'+s+'">'+'<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 s=t.getDate(),n=t.getDay(),l=i,a=l-1,o=7,r=function e(t){return(t+o-1)%o};t.setDate(s+a-r(n));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,s,n){var l=new Date(s,i,t),a=o?moment(l).isoWeek():y(l,n);return'<td class="pika-week">'+a+"</td>"},H=function e(t,i,s,n){return'<tr class="pika-row'+(s?" pick-whole-week":"")+(n?" is-selected":"")+'">'+(i?t.reverse():t).join("")+"</tr>"},E=function e(t){return"<tbody>"+t.join("")+"</tbody>"},S=function e(t){var i,s=[];if(t.showWeekNumber)s.push("<th></th>");for(i=0;i<7;i++)s.push('<th scope="col"><abbr title="'+b(t,i)+'">'+b(t,i,true)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?s.reverse():s).join("")+"</tr></thead>"},w=function e(t,i,s,n,l,a){var o,r,h,c=t._o,d=s===c.minYear,u=s===c.maxYear,g='<div id="'+a+'" class="pika-title" role="heading" aria-live="assertive">',v,p,m=true,b=true;for(h=[],o=0;o<12;o++)h.push('<option value="'+(s===l?o-i:12+o-i)+'"'+(o===n?' 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[n]+'<select class="pika-select pika-select-month" tabindex="-1">'+h.join("")+"</select></div>";if(f(c.yearRange)){o=c.yearRange[0];r=c.yearRange[1]+1}else{o=s-c.yearRange;r=1+s+c.yearRange}for(h=[];o<r&&o<=c.maxYear;o++)if(o>=c.minYear)h.push('<option value="'+o+'"'+(o===s?' selected="selected"':"")+">"+o+"</option>");p='<div class="pika-label">'+s+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&&(n===0||c.minMonth>=n))m=false;if(u&&(n===11||c.maxMonth<=n))b=false;if(i===0)g+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+c.i18n.previousMonth+"</button>";if(i===t._o.numberOfMonths-1)g+='<button class="pika-next'+(b?"":" is-disabled")+'" type="button">'+c.i18n.nextMonth+"</button>";return g+="</div>"},V=function e(t,i,s){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+s+'">'+S(t)+E(i)+"</table>"},e=function e(t){var s=this,n=s.config(t);s._onMouseDown=function(e){if(!s._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")){s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day")));if(n.bound)c(function(){s.hide();if(n.blurFieldOnSelect&&n.field)n.field.blur()},100)}else if(r(t,"pika-prev"))s.prevMonth();else if(r(t,"pika-next"))s.nextMonth();if(!r(t,"pika-select"))if(e.preventDefault)e.preventDefault();else{e.returnValue=false;return false}else s._c=true};s._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;if(!t)return;if(r(t,"pika-select-month"))s.gotoMonth(t.value);else if(r(t,"pika-select-year"))s.gotoYear(t.value)};s._onKeyChange=function(e){e=e||window.event;if(s.isVisible())switch(e.keyCode){case 13:case 27:if(n.field)n.field.blur();break;case 37:s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7);break;case 8:case 46:s.setDate(null);break}};s._parseFieldValue=function(){if(n.parse)return n.parse(n.field.value,n.format);else if(o){var e=moment(n.field.value,n.format,n.formatStrict);return e&&e.isValid()?e.toDate():null}else return new Date(Date.parse(n.field.value))};s._onInputChange=function(e){var t;if(e.firedBy===s)return;t=s._parseFieldValue();if(D(t))s.setDate(t);if(!s._v)s.show()};s._onInputFocus=function(){s.show()};s._onInputClick=function(){s.show()};s._onInputBlur=function(){var e=g.activeElement;do{if(r(e,"pika-single"))return}while(e=e.parentNode);if(!s._c)s._b=c(function(){s.hide()},50);s._c=false};s._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",s._onChange)}do{if(r(i,"pika-single")||i===n.trigger)return}while(i=i.parentNode);if(s._v&&t!==n.trigger&&i!==n.trigger)s.hide()};s.el=g.createElement("div");s.el.className="pika-single"+(n.isRTL?" is-rtl":"")+(n.theme?" "+n.theme:"");a(s.el,"mousedown",s._onMouseDown,true);a(s.el,"touchend",s._onMouseDown,true);a(s.el,"change",s._onChange);if(n.keyboardInput)a(g,"keydown",s._onKeyChange);if(n.field){if(n.container)n.container.appendChild(s.el);else if(n.bound)g.body.appendChild(s.el);else n.field.parentNode.insertBefore(s.el,n.field.nextSibling);a(n.field,"change",s._onInputChange);if(!n.defaultDate){n.defaultDate=s._parseFieldValue();n.setDefaultDate=true}}var i=n.defaultDate;if(D(i))if(n.setDefaultDate)s.setDate(i,true);else s.gotoDate(i);else s.gotoDate(new Date);if(n.bound){this.hide();s.el.className+=" is-bound";a(n.trigger,"click",s._onInputClick);a(n.trigger,"focus",s._onInputFocus);a(n.trigger,"blur",s._onInputBlur)}else this.show()};return e.prototype={config:function e(t){if(!this._o)this._o=h({},m,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 s=parseInt(i.numberOfMonths,10)||1;i.numberOfMonths=s>4?4:s;if(!D(i.minDate))i.minDate=false;if(!D(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(f(i.yearRange)){var n=(new Date).getFullYear()-10;i.yearRange[0]=parseInt(i.yearRange[0],10)||n;i.yearRange[1]=parseInt(i.yearRange[1],10)||n}else{i.yearRange=Math.abs(parseInt(i.yearRange,10))||m.yearRange;if(i.yearRange>100)i.yearRange=100}return i},toString:function e(t){t=t||this._o.format;if(!D(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 D(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(!D(t))return;var s=this._o.minDate,n=this._o.maxDate;if(D(s)&&t<s)t=s;else if(D(n)&&t>n)t=n;this._d=new Date(t.getTime());P(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(!D(t))return;if(this.calendars){var s=new Date(this.calendars[0].year,this.calendars[0].month,1),n=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),l=t.getTime();n.setMonth(n.getMonth()+1);n.setDate(n.getDate()-1);i=l<s.getTime()||n.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 s=this.getDate()||new Date;var n=parseInt(i)*24*60*60*1e3;var l;if(t==="add")l=new Date(s.valueOf()+n);else if(t==="subtract")l=new Date(s.valueOf()-n);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){P(t);this._o.minDate=t;this._o.minYear=t.getFullYear();this._o.minMonth=t.getMonth()}else{this._o.minDate=m.minDate;this._o.minYear=m.minYear;this._o.minMonth=m.minMonth;this._o.startRange=m.startRange}this.draw()},setMaxDate:function e(t){if(t instanceof Date){P(t);this._o.maxDate=t;this._o.maxYear=t.getFullYear();this._o.maxMonth=t.getMonth()}else{this._o.maxDate=m.maxDate;this._o.maxYear=m.maxYear;this._o.maxMonth=m.maxMonth;this._o.endRange=m.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,s=i.minYear,n=i.maxYear,l=i.minMonth,a=i.maxMonth,o="",r;if(this._y<=s){this._y=s;if(!isNaN(l)&&this._m<l)this._m=l}if(this._y>=n){this._y=n;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,s,n,l,a,o,r,h,c,d,u;if(this._o.container)return;this.el.style.position="absolute";t=this._o.trigger;i=t;s=this.el.offsetWidth;n=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+s>l||this._o.position.indexOf("right")>-1&&r-s+t.offsetWidth>0){r=r-s+t.offsetWidth;d=false}if(this._o.reposition&&h+n>a+o||this._o.position.indexOf("top")>-1&&h-n-t.offsetHeight>0){h=h-n-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,s){var n=this._o,l=new Date,a=B(t,i),o=new Date(t,i,1).getDay(),r=[],h=[];P(l);if(n.firstDay>0){o-=n.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,m=p;while(m>7)m-=7;p+=7-m;var b=false;for(var f=0,y=0;f<p;f++){var E=new Date(t,i,1+(f-o)),S=D(this._d)?R(E,this._d):false,w=R(E,l),k=n.events.indexOf(E.toDateString())!==-1?true:false,L=f<o||f>=a+o,C=1+(f-o),x=i,O=t,A=n.startRange&&R(n.startRange,E),T=n.endRange&&R(n.endRange,E),_=n.startRange&&n.endRange&&n.startRange<E&&E<n.endRange,I=n.minDate&&E<n.minDate||n.maxDate&&E>n.maxDate||n.disableWeekends&&N(E)||n.disableDayFn&&n.disableDayFn(E);if(L)if(f<o){C=v+C;x=c;O=u}else{C=C-a;x=d;O=g}var M={day:C,month:x,year:O,hasEvent:k,isSelected:S,isToday:w,isDisabled:I,isEmpty:L,isStartRange:A,isEndRange:T,isInRange:_,showDaysInNextAndPreviousMonths:n.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:n.enableSelectionDaysInNextAndPreviousMonths};if(n.pickWholeWeek&&S)b=true;h.push(F(M));if(++y===7){if(n.showWeekNumber)h.unshift(z(f-o,i,t,n.firstWeekOfYearMinDays));r.push(H(h,n.isRTL,n.pickWholeWeek,b));h=[];y=0;b=false}}return V(n,r,s)},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)});function c(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 H(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function s(e){return"INPUT"===e.tagName}function V(e){if(!e.name)return 1;function t(e){return i.querySelectorAll('input[type="radio"][name="'+e+'"]')}var i=e.form||o(e);if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)s=t(window.CSS.escape(e.name));else try{s=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 s=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]}(s,e.form);return!s||s===e}function W(e){return s(t=e)&&"radio"===t.type&&!V(e);var t}function a(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!==u.call(e,d)&&C(t,e);throw new Error("No node provided")}function S(e,t){if(t=t||{},e)return!1!==u.call(e,U)&&L(t,e);throw new Error("No node provided")}var moment=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],d=moment.join(","),i="undefined"==typeof Element,u=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,o=!i&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},w=function(e,t,i){var s=Array.prototype.slice.apply(e.querySelectorAll(d));return t&&u.call(e,d)&&s.unshift(e),s=s.filter(i)},k=function e(t,i,s){for(var n=[],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,s),s.flatten?n.push.apply(n,a):n.push({scope:r,candidates:a})):(u.call(r,d)&&s.filter(r)&&(i||!t.includes(r))&&n.push(r),a=r.shadowRoot||"function"==typeof s.getShadowRoot&&s.getShadowRoot(r),o=!s.shadowRootFilter||s.shadowRootFilter(r),a&&o?(o=e((!0===a?r:a).children,!0,s),s.flatten?n.push.apply(n,o):n.push({scope:r,candidates:o})):l.unshift.apply(l,r.children))}return n},L=function(e,t){return!(t.disabled||s(i=t)&&"hidden"===i.type||function(e,t){var i=t.displayCheck,s=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;t=u.call(e,"details>summary:first-of-type")?e.parentElement:e;if(u.call(t,"details:not([open]) *"))return!0;t=o(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 a(e)}else{if("function"==typeof s){for(i=e;e;){var n=e.parentElement,l=o(e);if(n&&!n.shadowRoot&&!0===s(n))return a(e);e=e.assignedSlot||(n||l===e.ownerDocument?n: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 s=t.children.item(i);if("LEGEND"===s.tagName)return!!u.call(t,"fieldset[disabled] *")||!s.contains(e)}return!0}t=t.parentElement}return!1}(t));var i},C=function(e,t){return!(W(t)||c(t)<0||!L(e,t))},K=function(e){e=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(e)||0<=e)},j=function a(e){var o=[],r=[];return e.forEach(function(e,t){var i=!!e.scope,s=i?e.scope:e,n=c(s,i),l=i?a(e.candidates):s;0===n?i?o.push.apply(o,l):o.push(s):r.push({documentOrder:t,tabIndex:n,item:e,isScope:i,content:l})}),r.sort(H).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(o)},U=moment.concat("iframe").join(",");function l(t,e){var i,s=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,i)),s}function x(s){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){var t,i;t=s,i=n[e=e],e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(n,e))})}return s}function O(e){return setTimeout(e,0)}function A(e,i){var s=-1;return e.every(function(e,t){return!i(e)||(s=t,!1)}),s}function T(e){for(var t=arguments.length,i=new Array(1<t?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];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 n(e,t){function l(e,t,i){return e&&void 0!==e[t]?e[t]:d[i||t]}function a(e){var t=d[e];if("function"==typeof t){for(var i=arguments.length,s=new Array(1<i?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];t=t.apply(void 0,s)}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=c.querySelector(t)))return l;throw new Error("`".concat(e,"` as selector refers to no known node"))}function o(){if(u.containerGroups=u.containers.map(function(e){var t,i,s=function(e,t){e=(t=t||{}).getShadowRoot?k([e],t.includeContainer,{filter:C.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:K}):w(e,t.includeContainer,C.bind(null,t));return j(e)}(e,d.tabbableOptions),n=(t=e,(i=(i=d.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:s,focusableNodes:n,firstTabbableNode:0<s.length?s[0]:null,lastTabbableNode:0<s.length?s[s.length-1]:null,nextTabbableNode:function(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=n.findIndex(function(e){return e===t});if(!(i<0))return e?n.slice(i+1).find(function(e){return E(e,d.tabbableOptions)}):n.slice(0,i).reverse().find(function(e){return E(e,d.tabbableOptions)})}}}),u.tabbableGroups=u.containerGroups.filter(function(e){return 0<e.tabbableNodes.length}),u.tabbableGroups.length<=0&&!a("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 r(e){var t=a("setReturnFocus",e);return t||!1!==t&&e}function n(){if(u.active)I.activateTrap(y),u.delayInitialFocusTimer=d.delayInitialFocus?O(function(){v(s())}):v(s()),c.addEventListener("focusin",p,!0),c.addEventListener("mousedown",i,{capture:!0,passive:!1}),c.addEventListener("touchstart",i,{capture:!0,passive:!1}),c.addEventListener("click",f,{capture:!0,passive:!1}),c.addEventListener("keydown",b,{capture:!0,passive:!1})}function h(){if(u.active)c.removeEventListener("focusin",p,!0),c.removeEventListener("mousedown",i,!0),c.removeEventListener("touchstart",i,!0),c.removeEventListener("click",f,!0),c.removeEventListener("keydown",b,!0)}var c=(null==t?void 0:t.document)||document,d=x({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),u={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},g=function(i){return u.containerGroups.findIndex(function(e){var t=e.container,e=e.tabbableNodes;return t.contains(i)||e.find(function(e){return e===i})})},s=function(){var e,t=a("initialFocus");if(!1===t)return!1;if(t=void 0===t?0<=g(c.activeElement)?c.activeElement:(e=u.tabbableGroups[0])&&e.firstTabbableNode||a("fallbackFocus"):t)return t;throw new Error("Your focus-trap needs to have at least one focusable element")},v=function e(t){var i;!1!==t&&t!==c.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!d.preventScroll}),u.mostRecentlyFocusedNode=t,(i=t).tagName&&"input"===i.tagName.toLowerCase()&&"function"==typeof i.select&&t.select()):e(s()))},i=function(e){var t=_(e);0<=g(t)||(T(d.clickOutsideDeactivates,e)?y.deactivate({returnFocus:d.returnFocusOnDeactivate&&!S(t,d.tabbableOptions)}):T(d.allowOutsideClick,e)||e.preventDefault())},p=function(e){var t=_(e),i=0<=g(t);i||t instanceof Document?i&&(u.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),v(u.mostRecentlyFocusedNode||s()))},m=function(e){var t,i,s,n=_(e),l=(o(),null);0<u.tabbableGroups.length?(s=0<=(t=g(n))?u.containerGroups[t]:void 0,t<0?l=e.shiftKey?u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:u.tabbableGroups[0].firstTabbableNode:e.shiftKey?0<=(i=(i=A(u.tabbableGroups,function(e){e=e.firstTabbableNode;return n===e}))<0&&(s.container===n||S(n,d.tabbableOptions)&&!E(n,d.tabbableOptions)&&!s.nextTabbableNode(n,!1))?t:i)&&(i=0===i?u.tabbableGroups.length-1:i-1,l=u.tabbableGroups[i].lastTabbableNode):0<=(i=(i=A(u.tabbableGroups,function(e){e=e.lastTabbableNode;return n===e}))<0&&(s.container===n||S(n,d.tabbableOptions)&&!E(n,d.tabbableOptions)&&!s.nextTabbableNode(n))?t:i)&&(s=i===u.tabbableGroups.length-1?0:i+1,l=u.tabbableGroups[s].firstTabbableNode)):l=a("fallbackFocus"),l&&(e.preventDefault(),v(l))},b=function(e){var t;"Escape"!==(t=e).key&&"Esc"!==t.key&&27!==t.keyCode||!1===T(d.escapeDeactivates,e)?"Tab"!==(t=e).key&&9!==t.keyCode||m(e):(e.preventDefault(),y.deactivate())},f=function(e){var t=_(e);0<=g(t)||T(d.clickOutsideDeactivates,e)||T(d.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},y={get active(){return u.active},get paused(){return u.paused},activate:function(e){var t,i,s;return u.active||(t=l(e,"onActivate"),i=l(e,"onPostActivate"),(s=l(e,"checkCanFocusTrap"))||o(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=c.activeElement,t&&t(),e=function(){s&&o(),n(),i&&i()},s?s(u.containers.concat()).then(e,e):e()),this},deactivate:function(e){var t,i,s,n;return u.active&&(e=x({onDeactivate:d.onDeactivate,onPostDeactivate:d.onPostDeactivate,checkCanReturnFocus:d.checkCanReturnFocus},e),clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,h(),u.active=!1,u.paused=!1,I.deactivateTrap(y),t=l(e,"onDeactivate"),i=l(e,"onPostDeactivate"),s=l(e,"checkCanReturnFocus"),n=l(e,"returnFocus","returnFocusOnDeactivate"),t&&t(),e=function(){O(function(){n&&v(r(u.nodeFocusedBeforeActivation)),i&&i()})},n&&s?s(r(u.nodeFocusedBeforeActivation)).then(e,e):e()),this},pause:function(){return!u.paused&&u.active&&(u.paused=!0,h()),this},unpause:function(){return u.paused&&u.active&&(u.paused=!1,o(),n()),this},updateContainerElements:function(e){e=[].concat(e).filter(Boolean);return u.containers=e.map(function(e){return"string"==typeof e?c.querySelector(e):e}),u.active&&o(),this}};return y.updateContainerElements(e),y}g=[];var g,I={activateTrap:function(e){0<g.length&&((t=g[g.length-1])!==e&&t.pause());var t=g.indexOf(e);-1!==t&&g.splice(t,1),g.push(e)},deactivateTrap:function(e){e=g.indexOf(e);-1!==e&&g.splice(e,1),0<g.length&&g[g.length-1].unpause()}};var v=t(function(e){function s(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}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(m.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,m.push(this),this.refresh()}function t(){var e,t,i;function s(){d.pageXOffset!=p.left?(p.top=d.pageYOffset,p.left=d.pageXOffset,f.refreshAll()):d.pageYOffset!=p.top&&(p.top=d.pageYOffset,p.left=d.pageXOffset,m.forEach(function(e){return e._recalcPosition()}))}function n(){e=setInterval(function(){m.forEach(function(e){return e._fastCheck()})},500)}o||(o=!0,s(),d.addEventListener("scroll",s),d.addEventListener("resize",f.refreshAll),d.addEventListener("orientationchange",f.refreshAll),i=t=e=void 0,"hidden"in u?(t="hidden",i="visibilitychange"):"webkitHidden"in u&&(t="webkitHidden",i="webkitvisibilitychange"),i?(u[t]||n(),u.addEventListener(i,function(){u[t]?clearInterval(e):n()})):n())}var d,u,n,l,g,a,o,v,p,m,b,f;d=window,u=document,g=!(n=function(e,t,i){return t&&s(e.prototype,t),i&&s(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},m=[],n(i,[{key:"refresh",value:function(){var e,t,i,s,n,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,s=v&&i instanceof ShadowRoot?i.host:i,n=e.getBoundingClientRect(),a=s.getBoundingClientRect(),l=getComputedStyle(s),this._parent={node:s,styles:{position:s.style.position},offsetHeight:s.offsetHeight},this._offsetToWindow={left:n.left,right:u.documentElement.clientWidth-n.right},this._offsetToParent={top:n.top-a.top-h(l.borderTopWidth),left:n.left-a.left-h(l.borderLeftWidth),right:-n.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:n.top+d.pageYOffset-o,end:a.top+d.pageYOffset+s.offsetHeight-h(l.borderBottomWidth)-e.offsetHeight-o-h(t.marginBottom)},"absolute"!=(a=l.position)&&"relative"!=a&&(s.style.position="relative"),this._recalcPosition(),(o=this._clone={}).node=u.createElement("div"),r(o.node.style,{width:n.right-n.left+"px",height:n.bottom-n.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,m.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(),m.some(function(e,t){if(e._node===i._node)return m.splice(t,1),!0}),this._removed=!0}}]),f={stickies:m,Sticky:b=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<m.length;t++)if(m[t]._node===e)return m[t];return new b(e)},add:function(i){if((i=i instanceof HTMLElement?[i]:i).length){for(var s=[],e=0;e<i.length;e++)(function(e){var t=i[e];t instanceof HTMLElement?m.some(function(e){if(e._node===t)return s.push(e),!0})||s.push(new b(t)):s.push(void 0)})(e);return s}},refreshAll:function(){m.forEach(function(e){return e.refresh()})},removeOne:function(t){if(!(t instanceof HTMLElement)){if(!t.length||!t[0])return;t=t[0]}m.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];m.some(function(e){if(e._node===t)return e.remove(),!0})}(e)},removeAll:function(){for(;m.length;)m[0].remove()}},g||t(),e.exports?e.exports=f:a&&(d.Stickyfill=f)}),Y=t(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 s,c,d,u,n,g,v,l,p,a,m,b;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))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),s=0?window:F,e.exports=(c=s,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))},n=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 n(e.content)<n(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)))},m=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}))},b=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 s(e){o&&c.cancelAnimationFrame(o),o=c.requestAnimationFrame(function(){g(l),h.detect()})}var n,l,a,o,r,h={setup:function(){n=document.querySelectorAll(e),l=[],Array.prototype.forEach.call(n,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,s=function(e,t){var i=e[e.length-1];if(p(i,t))return i;for(var s=e.length-1;0<=s;s--)if(v(e[s].content,t))return e[s]}(l,r);s?a&&s.content===a.content||(m(a,r),t=r,(e=s)&&(i=e.nav.closest("li"))&&(i.classList.add(t.navClass),e.content.classList.add(t.contentClass),b(i,t),u("gumshoeActivate",i,{link:e.nav,content:e.content,settings:t})),a=s):a&&(m(a,r),a=null)},h.destroy=function(){a&&m(a,r),c.removeEventListener("scroll",i,!1),r.reflow&&c.removeEventListener("resize",s,!1),r=o=a=n=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",s,!1),h})});var i=t(function(e){function s(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}var i,n;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,P,t){function i(){return m.name===r.WINDOWS&&"10"===m.version&&("string"==typeof b&&-1!==b.indexOf("Edg/"))}function s(){return g.name===V}function n(){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,R=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(),m=t.getOS(),b=t.getUA(),l=o.CHROME,t=o.CHROMIUM,f=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,O=a.BROWSER,A=a.WEARABLE,a=a.CONSOLE,T=r.ANDROID,_=r.WINDOWS_PHONE,I=r.IOS,M=r.WINDOWS,D=r.MAC_OS,x=v.type===x,a=v.type===a,A=v.type===A,W=g.name===o||n(),t=g.name===t,K=function(){switch(v.type){case L:case C:return!0;default:return!1}}()||n(),j=v.type===L,U=v.type===C||n(),O=v.type===O,T=m.name===T,_=m.name===_,I=m.name===I||n(),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===f,y=m.version||"none",f=m.name||"none",Y=g.major,G=g.version,q=g.name,X=v.vendor||"none",$=v.model||"none",J=p.name,Q=p.version,Z=b,ee=s()||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=n(),se=u("iPhone"),ne=u("iPod"),d="string"==typeof(d=(d=d())&&d.userAgent.toLowerCase())&&/electron/.test(d),le=i(),ae=s(),M=m.name===M,D=m.name===D,B=h(v.type);e.exports={deviceDetect:function(){var e=B.isBrowser,t=B.isMobile,i=B.isTablet,s=B.isSmartTV,n=B.isConsole,l=B.isWearable;return e?c(e,g,p,m,b):s?H(s,p,m,b):n?z(n,p,m,b):t||i?R(B,v,m,b):l?F(l,p,m,b):void 0},isSmartTV:x,isConsole:a,isWearable:A,isMobileSafari:W,isChromium:t,isMobile:K,isMobileOnly:j,isTablet:U,isBrowser:O,isAndroid:T,isWinPhone:_,isIOS:I,isChrome:l,isFirefox:S,isSafari:w,isOpera:o,isIE:E,osVersion:y,osName:f,fullBrowserVersion:Y,browserVersion:G,browserName:q,mobileVendor:X,mobileModel:$,engineName:J,engineVersion:Q,getUA:Z,isEdge:ee,isYandex:k,deviceType:te,isIOS13:N,isIPad13:ie,isIPhone13:se,isIPod13:ne,isElectron:d,isEdgeChromium:le,isLegacyEdge:ae,isWindows:M,isMacOs:D}},function(e,t,i){var n,d,s,u,l,a,o,r,h,c,g,v,p,m,b,f,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||(n&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),s=t?y.extend(w,t):w;return this.getBrowser=function(){var e={name:d,version:d};return E.rgx.call(e,i,s.browser),e.major=y.major(e.version),e},this.getCPU=function(){var e={architecture:d};return E.rgx.call(e,i,s.cpu),e},this.getDevice=function(){var e={vendor:d,model:d,type:d};return E.rgx.call(e,i,s.device),e},this.getEngine=function(){var e={name:d,version:d};return E.rgx.call(e,i,s.engine),e},this.getOS=function(){var e={name:d,version:d};return E.rgx.call(e,i,s.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}n="object"==typeof window?window:this,u="function",l="undefined",a="model",r="type",h="vendor",g="architecture",v="console",p="mobile",m="tablet",b="smarttv",f="wearable",y={extend:function(e,t){var i,s={};for(i in e)t[i]&&t[i].length%2==0?s[i]=t[i].concat(e[i]):s[i]=e[i];return s},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,s,n,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(s=0;s<h.length;s++)a=l[++i],"object"==typeof(n=h[s])&&0<n.length?2==n.length?typeof n[1]==u?this[n[0]]=n[1].call(this,a):this[n[0]]=n[1]:3==n.length?typeof n[1]!=u||n[1].exec&&n[1].test?this[n[0]]=a?a.replace(n[1],n[2]):d:this[n[0]]=a?n[1].call(this,a,n[2]):d:4==n.length&&(this[n[0]]=a?n[3].call(this,a.replace(n[1],n[2])):d):this[n]=a||d;o+=2}},str:function(e,t){for(var i in t)if("object"==typeof t[i]&&0<t[i].length){for(var s=0;s<t[i].length;s++)if(y.has(t[i][s],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,m]],[/applecoremedia\/[\w\.]+ \((ipad)/],[a,[h,"Apple"],[r,m]],[/(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,m]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[a,[h,"Amazon"],[r,m]],[/(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,m]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[h,"Sony"],[a,"Xperia Tablet"],[r,m]],[/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,m]],[/(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,m]],[/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,m]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[h,y.trim],[a,y.trim],[r,b]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[h,"Samsung"],[r,b]],[/\(dtv[\);].+(aquos)/i],[a,[h,"Sharp"],[r,b]],[/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,m]],[/smart-tv.+(samsung)/i],[h,[r,b],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,m]],[/android.+([vl]k\-?\d{3})\s+build/i],[a,[h,"LG"],[r,m]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[h,"LG"],a,[r,m]],[/(lg) netcast\.tv/i],[h,a,[r,b]],[/(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,m]],[/linux;.+((jolla));/i],[h,a,[r,p]],[/((pebble))app\/[\d\.]+\s/i],[h,a,[r,f]],[/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,f]],[/android.+;\s(pixel c)\s/i],[a,[h,"Google"],[r,m]],[/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,m]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[a,[h,"Meizu"],[r,m]],[/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,m]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[a,[h,"Dell"],[r,m]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[a,[h,"Verizon"],[r,m]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[h,"Barnes & Noble"],a,[r,m]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[a,[h,"NuVision"],[r,m]],[/android.+;\s(k88)\sbuild/i],[a,[h,"ZTE"],[r,m]],[/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,m]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[a,[h,"Zeki"],[r,m]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[h,"Dragon Touch"],a,[r,m]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[a,[h,"Insignia"],[r,m]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[a,[h,"NextBook"],[r,m]],[/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,m]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[h,a,[r,m]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[a,[h,"MachSpeed"],[r,m]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[h,a,[r,m]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[a,[h,"Rotor"],[r,m]],[/android.+(KS(.+))\s+build/i],[a,[h,"Amazon"],[r,m]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[h,a,[r,m]],[/\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:b,TABLET:m,WEARABLE:f,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):n&&(n.UAParser=L),typeof(k=n&&(n.jQuery||n.Zepto))!=l&&(s=new L,k.ua=s.getResult(),k.ua.get=function(){return s.getUA()},k.ua.set=function(e){s.setUA(e);var t,i=s.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 n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,s=arguments[t];for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},i=i(0),s=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 s.MOBILE:return{isMobile:!0};case s.TABLET:return{isTablet:!0};case s.SMART_TV:return{isSmartTV:!0};case s.CONSOLE:return{isConsole:!0};case s.WEARABLE:return{isWearable:!0};case s.BROWSER:return{isBrowser:!0};default:return l}},broPayload:function(e,t,i,s,n){return{isBrowser:e,browserMajorVersion:t.major,browserFullVersion:t.version,browserName:t.name,engineName:i.name||!1,engineVersion:i.version,osName:s.name,osVersion:s.version,userAgent:n}},mobilePayload:function(e,t,i,s){return n({},e,{vendor:t.vendor,model:t.model,os:i.name,osVersion:i.version,ua:s})},stvPayload:function(e,t,i,s){return{isSmartTV:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:s}},consolePayload:function(e,t,i,s){return{isConsole:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:s}},wearPayload:function(e,t,i,s){return{isWearable:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:s}},getNavigatorInstance:a,isIOS13Check:i}}],n={},s.m=i,s.c=n,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=1))}),p=(moment=i)&&moment.__esModule&&Object.prototype.hasOwnProperty.call(moment,"default")?moment.default:moment;class m{static autoInit(e,t){void 0===t&&(t={});t=new m(e,t);return t.init(),e.ECLSelect=t}constructor(e,t){var t=void 0===t?{}:t,i=t.defaultText,i=void 0===i?"":i,s=t.searchText,s=void 0===s?"":s,n=t.selectAllText,n=void 0===n?"":n,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=s,this.selectAllText=n,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.handleEsc=this.handleEsc.bind(this),this.handleFocusout=this.handleFocusout.bind(this),this.handleSearch=this.handleSearch.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this),this.moveFocus=this.moveFocus.bind(this),this.resetForm=this.resetForm.bind(this),this.handleKeyboardOnSelect=this.handleKeyboardOnSelect.bind(this),this.handleKeyboardOnSelectAll=this.handleKeyboardOnSelectAll.bind(this),this.handleKeyboardOnSearch=this.handleKeyboardOnSearch.bind(this),this.handleKeyboardOnOptions=this.handleKeyboardOnOptions.bind(this),this.handleKeyboardOnOption=this.handleKeyboardOnOption.bind(this)}static createSvgIcon(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}static createCheckbox(e,t){if(!e||!t)return"";var i=e.id,s=e.text,n=e.disabled,l=e.selected,e=e.extraClass;if(!i||!s)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),n&&(a.classList.add("ecl-checkbox--disabled"),o.setAttribute("disabled",n)),a.classList.add("ecl-checkbox"),a.setAttribute("data-select-multiple-value",s),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(m.createSvgIcon('<svg width="48" height="48" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path id="id-3a" d="M36 12 20 28l-8-8-4 4 12 12 20-20z"/></defs><use xlink:href="#id-3a"/></svg>',"ecl-icon ecl-icon--s ecl-checkbox__icon")),r.appendChild(h),r.appendChild(document.createTextNode(s)),a.appendChild(r),a}static createSelectIcon(){var e=document.createElement("div"),t=(e.classList.add("ecl-select__icon"),m.createSvgIcon('<svg width="48" height="48" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path id="id-7a" d="M40 38 24 20 8 38l-6-6L24 8l22 24z"/></defs><use xlink:href="#id-7a"/></svg>',"ecl-icon ecl-icon--s ecl-select__icon-shape ecl-icon--rotate-180"));return e.appendChild(t),e}static checkCheckbox(e){e=e.target.closest(".ecl-checkbox").querySelector("input");return e.checked=!e.checked,e.checked}init(){this.select=this.element;var e=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"),this.inputContainer.classList.add(...e),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),e.find(e=>e.includes("disabled"))&&this.input.setAttribute("disabled",!0),this.input.addEventListener("keydown",this.handleKeyboardOnSelect),this.input.addEventListener("click",this.handleToggle),this.inputContainer.appendChild(this.input),this.inputContainer.appendChild(m.createSelectIcon()),this.searchContainer=document.createElement("div"),this.searchContainer.style.display="none",this.searchContainer.classList.add("ecl-select__multiple-dropdown",...e),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=m.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.search.addEventListener("keydown",this.handleKeyboardOnSearch),this.optionsContainer=document.createElement("div"),this.optionsContainer.classList.add("ecl-select__multiple-options"),this.searchContainer.appendChild(this.optionsContainer),this.selectAll.addEventListener("keydown",this.handleKeyboardOnSelectAll),this.optionsContainer.addEventListener("keydown",this.handleKeyboardOnOptions),this.select.options&&0<this.select.options.length&&(this.checkboxes=Array.from(this.select.options).map(e=>{e=m.createCheckbox({id:e.value,text:e.text,disabled:e.disabled,selected:e.selected},this.selectMultipleId);return e.setAttribute("data-visible",!0),e.classList.contains("ecl-checkbox--disabled")||(e.addEventListener("click",this.handleClickOption),e.addEventListener("keydown",this.handleKeyboardOnOption)),this.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")}destroy(){this.selectMultiple.removeEventListener("focusout",this.handleFocusout),this.input.removeEventListener("keydown",this.handleKeyboardOnSelect),this.input.removeEventListener("click",this.handleToggle),this.search.removeEventListener("keyup",this.handleSearch),this.search.removeEventListener("keydown",this.handleKeyboardOnSearch),this.selectAll.removeEventListener("click",this.handleClickSelectAll),this.selectAll.removeEventListener("keypress",this.handleClickSelectAll),this.selectAll.removeEventListener("keydown",this.handleKeyboardOnSelectAll),this.optionsContainer.removeEventListener("keydown",this.handleKeyboardOnOptions),this.checkboxes.forEach(e=>{e.removeEventListener("click",this.handleClickSelectAll),e.removeEventListener("click",this.handleClickOption),e.removeEventListener("keydown",this.handleKeyboardOnOption)}),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")}updateCurrentValue(){this.input.value=Array.from(this.select.options).filter(e=>e.selected).map(e=>e.text).join(", "),this.select.dispatchEvent(new window.Event("change",{bubbles:!0}))}handleToggle(e){e.preventDefault(),"none"===this.searchContainer.style.display?this.searchContainer.style.display="block":this.searchContainer.style.display="none"}handleClickOption(e){e.preventDefault(),m.checkCheckbox(e);var t=e.target.closest(".ecl-checkbox");Array.from(this.select.options).forEach(e=>{e.text===t.getAttribute("data-select-multiple-value")&&(e.getAttribute("selected")||e.selected?(e.removeAttribute("selected"),e.selected=!1,this.selectAll.querySelector("input").checked=!1):(e.setAttribute("selected","selected"),e.selected=!0))}),this.updateCurrentValue()}handleClickSelectAll(e){var i,s;e.preventDefault(),this.selectAll.querySelector("input").disabled||(i=m.checkCheckbox(e),s=Array.from(this.select.options).filter(e=>!e.disabled),Array.from(this.searchContainer.querySelectorAll('[data-visible="true"]')).filter(e=>!e.querySelector("input").disabled).forEach(t=>{t.querySelector("input").checked=i;var e=s.find(e=>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())}handleFocusout(e){e.relatedTarget&&this.selectMultiple&&!this.selectMultiple.contains(e.relatedTarget)&&"block"===this.searchContainer.style.display&&(this.searchContainer.style.display="none")}handleSearch(e){var t,s=[],n=e.target.value.toLowerCase(),e=(this.checkboxes.forEach(e=>{var t,i;e.getAttribute("data-select-multiple-value").toLocaleLowerCase().includes(n)?(e.setAttribute("data-visible",!0),e.style.display="flex",t=e.querySelector(".ecl-checkbox__box"),(i=e.querySelector(".ecl-checkbox__label")).innerHTML=n?t.outerHTML+i.textContent.replace(new RegExp(n+"(?!([^<]+)?<)","gi"),"<b>$&</b>"):t.outerHTML+i.textContent,s.push(e)):(e.setAttribute("data-visible",!1),e.style.display="none")}),s.filter(e=>e.querySelector("input").checked)),e=(0===s.length||s.length!==e.length?this.selectAll.querySelector("input").checked=!1:this.selectAll.querySelector("input").checked=!0,this.searchContainer.querySelector(".ecl-select__multiple-no-results"));0!==s.length||e?0<s.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===n.length?(this.checkboxes.forEach(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)}handleClickOutside(e){e.target&&this.selectMultiple&&!this.selectMultiple.contains(e.target)&&"block"===this.searchContainer.style.display&&(this.searchContainer.style.display="none")}handleKeyboardOnSelect(e){switch(e.key){case"Escape":this.handleEsc();break;case" ":case"ArrowDown":this.handleToggle(e),this.search.focus()}}handleKeyboardOnSelectAll(e){switch(e.key){case"Escape":this.handleEsc();break;case"ArrowDown":this.optionsContainer.querySelectorAll("input")[0].focus(),e.preventDefault();break;case"ArrowUp":this.search.focus()}}handleKeyboardOnOptions(e){switch(e.key){case"Escape":this.handleEsc();break;case"ArrowDown":this.moveFocus("down");break;case"ArrowUp":this.moveFocus("up")}}handleKeyboardOnSearch(e){switch(e.key){case"Escape":this.handleEsc();break;case"ArrowDown":var t;this.selectAll.querySelector("input").disabled?(t=Array.from(this.optionsContainer.querySelectorAll(".ecl-checkbox")).filter(e=>"none"!==e.style.display))[0]&&t[0].querySelector("input").focus():this.selectAll.querySelector("input").focus();break;case"ArrowUp":this.input.focus(),this.handleToggle(e)}}handleKeyboardOnOption(e){"Enter"!==e.key&&" "!==e.key||this.handleClickOption(e)}handleEsc(){"block"===this.searchContainer.style.display&&(this.searchContainer.style.display="none")}moveFocus(e){var t=document.activeElement,i=Array.from(t.parentElement.parentElement.querySelectorAll(".ecl-checkbox__input")),t=i.indexOf(t);"down"===e?0<(e=i.splice(t+1,i.length).filter(e=>!e.disabled&&"none"!==e.parentElement.style.display)).length&&e[0].focus():0<(e=i.splice(0,t).filter(e=>!e.disabled&&"none"!==e.parentElement.style.display)).length?e.pop().focus():(this.optionsContainer.scrollTop=0,(this.selectAll.querySelector("input").disabled?this.search:this.selectAll.querySelector("input")).focus())}resetForm(){setTimeout(()=>{Array.from(this.select.options).forEach(e=>{this.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)}),this.updateCurrentValue()},10)}}class b{static autoInit(e,t){t=(void 0===t?{}:t).TABLE,t=void 0===t?{}:t,t=new b(e,t);return t.init(),e.ECLTable=t}constructor(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)}static createSortIcon(e){var t=document.createElement("span"),t=(t.innerHTML='<svg width="48" height="48" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path id="id-24a" d="m32 30-8-13-8 13z"/></defs><use xlink:href="#id-24a"/></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--l "+e),t}init(){this.sortHeadings=r(this.sortSelector,this.element),this.sortHeadings&&this.sortHeadings.forEach(e=>{var t=document.createElement("button");t.classList.add("ecl-table__arrow"),t.appendChild(b.createSortIcon("ecl-table__icon-up")),t.appendChild(b.createSortIcon("ecl-table__icon-down")),e.appendChild(t),e.addEventListener("click",this.handleClickOnSort.bind(this,e))});var e=h("tbody",this.element);[...r("tr",e)].forEach((e,t)=>{e.setAttribute("data-ecl-table-order",t)}),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){this.sortHeadings&&this.sortHeadings.forEach(e=>{e.removeEventListener("click",this.handleClickOnSort)}),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}handleClickOnSort(t){for(var e=t.closest("table"),i=h("tbody",e),s=t.getAttribute("aria-sort"),n=0,l=t.previousElementSibling;l;)n+=l.getAttribute("colspan")?Number(l.getAttribute("colspan")):1,l=l.previousElementSibling;var a,o,s="descending"===s?([...r("tr",i)].forEach((e,t)=>{t=h("[data-ecl-table-order='"+t+"']");i.appendChild(t)}),null):([...r("tr",i)].sort((a=n,o="ascending"!==s,(e,t)=>((e,t)=>""===e||""===t||Number.isNaN(+e)||Number.isNaN(+t)?e.toString().localeCompare(t):e-t)((o?e:t).children[a].textContent,(o?t:e).children[a].textContent))).forEach(e=>i.appendChild(e)),"ascending"===s?"descending":"ascending");this.sortHeadings.forEach(e=>{s&&e===t?e.setAttribute("aria-sort",s):e.removeAttribute("aria-sort")})}}return e.Accordion=class f{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).ACCORDION)?{}:t,(t=new f(e,t)).init(),e.ECLAccordion=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).toggleSelector)?"[data-ecl-accordion-toggle]":i,s=void 0===(s=t.iconSelector)?"[data-ecl-accordion-icon]":s,n=void 0===(n=t.labelExpanded)?"data-ecl-label-expanded":n,l=void 0===(l=t.labelCollapsed)?"data-ecl-label-collapsed":l,t=void 0===(t=t.attachClickListener)||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=s,this.attachClickListener=t,this.labelExpanded=n,this.labelCollapsed=l,this.toggles=null,this.forceClose=!1,this.target=null,this.label=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}init(){this.toggles=r(this.toggleSelector,this.element),this.label=h(this.labelSelector,this.element),this.attachClickListener&&this.toggles&&this.toggles.forEach(e=>{e.addEventListener("click",this.handleClickOnToggle.bind(this,e))}),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){this.attachClickListener&&this.toggles&&this.toggles.forEach(e=>{e.replaceWith(e.cloneNode(!0))}),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}handleClickOnToggle(e){var t=h("#"+e.getAttribute("aria-controls"),this.element);if(!t)throw new TypeError("Target has to be provided for accordion (aria-controls)");var i,s=!0===this.forceClose||"true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",s?"false":"true"),t.hidden=s;(t=h(this.iconSelector,e))&&(t=h("use",t))&&(n=t.getAttribute("xlink:href"),i="",i=s?n.replace("minus","plus"):n.replace("plus","minus"),t.setAttribute("xlink:href",i));var n=h(".ecl-accordion__toggle-label",e);return n&&(n.textContent=s?e.getAttribute(this.labelCollapsed):e.getAttribute(this.labelExpanded)),this}},e.Breadcrumb=class y{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).BREADCRUMB)?{}:t,(t=new y(e,t)).init(),e.ECLBreadcrumb=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).ellipsisButtonSelector)?"[data-ecl-breadcrumb-ellipsis-button]":i,s=void 0===(s=t.ellipsisSelector)?"[data-ecl-breadcrumb-ellipsis]":s,n=void 0===(n=t.segmentSelector)?"[data-ecl-breadcrumb-item]":n,l=void 0===(l=t.expandableItemsSelector)?'[data-ecl-breadcrumb-item="expandable"]':l,a=void 0===(a=t.staticItemsSelector)?'[data-ecl-breadcrumb-item="static"]':a,o=void 0===(o=t.onPartialExpand)?null:o,r=void 0===(r=t.onFullExpand)?null:r,t=void 0===(t=t.attachClickListener)||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=s,this.segmentSelector=n,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)}init(){this.ellipsisButton=h(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=r(this.segmentSelector,this.element),this.staticElements=r(this.staticItemsSelector,this.element),this.expandableElements=r(this.expandableItemsSelector,this.element),this.check()}destroy(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)}handleClickOnEllipsis(){return this.handleFullExpand()}check(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))}hideEllipsis(){var e=h(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)}showAllItems(){this.expandableElements.forEach(e=>e.setAttribute("aria-hidden","false"))}handlePartialExpand(e){var i;e&&(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach((e,t)=>{e.setAttribute("aria-hidden",i[t]?"false":"true")}))}handleFullExpand(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())}computeVisibilityMap(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var t=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(e=>e.getBoundingClientRect().width).reduce((e,t)=>e+t)<=t)return{expanded:!0};var i=h(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce((e,t)=>e+t.getBoundingClientRect().width,0);if(t<=i)return{expanded:!1,isItemVisible:[...this.expandableElements.map(()=>!1)]};var s=0,n=!0;return{expanded:!1,isItemVisible:[...this.expandableElements].reverse().map(e=>!!n&&((e=(s+=e.getBoundingClientRect().width)+i<=t)||(n=!1),e)).reverse()}}},e.BreadcrumbCore=class M{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).BREADCRUMB_CORE)?{}:t,(t=new M(e,t)).init(),e.ECLBreadcrumbCore=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).ellipsisButtonSelector)?"[data-ecl-breadcrumb-core-ellipsis-button]":i,s=void 0===(s=t.ellipsisSelector)?"[data-ecl-breadcrumb-core-ellipsis]":s,n=void 0===(n=t.segmentSelector)?"[data-ecl-breadcrumb-core-item]":n,l=void 0===(l=t.expandableItemsSelector)?'[data-ecl-breadcrumb-core-item="expandable"]':l,a=void 0===(a=t.staticItemsSelector)?'[data-ecl-breadcrumb-core-item="static"]':a,o=void 0===(o=t.onPartialExpand)?null:o,r=void 0===(r=t.onFullExpand)?null:r,t=void 0===(t=t.attachClickListener)||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=s,this.segmentSelector=n,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)}init(){this.ellipsisButton=h(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=r(this.segmentSelector,this.element),this.staticElements=r(this.staticItemsSelector,this.element),this.expandableElements=r(this.expandableItemsSelector,this.element),this.check(),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}handleClickOnEllipsis(){return this.handleFullExpand()}check(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))}hideEllipsis(){var e=h(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)}showAllItems(){this.expandableElements.forEach(e=>e.setAttribute("aria-hidden","false"))}handlePartialExpand(e){var i;e&&(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach((e,t)=>{e.setAttribute("aria-hidden",i[t]?"false":"true")}))}handleFullExpand(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())}computeVisibilityMap(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var t=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(e=>e.getBoundingClientRect().width).reduce((e,t)=>e+t)<=t)return{expanded:!0};var i=h(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce((e,t)=>e+t.getBoundingClientRect().width,0);if(t<=i)return{expanded:!1,isItemVisible:[...this.expandableElements.map(()=>!1)]};var s=0,n=!0;return{expanded:!1,isItemVisible:[...this.expandableElements].reverse().map(e=>!!n&&((e=(s+=e.getBoundingClientRect().width)+i<=t)||(n=!1),e)).reverse()}}},e.BreadcrumbHarmonised=class D{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).BREADCRUMB_HARMONISED)?{}:t,(t=new D(e,t)).init(),e.ECLBreadcrumbHarmonised=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).ellipsisButtonSelector)?"[data-ecl-breadcrumb-harmonised-ellipsis-button]":i,s=void 0===(s=t.ellipsisSelector)?"[data-ecl-breadcrumb-harmonised-ellipsis]":s,n=void 0===(n=t.segmentSelector)?"[data-ecl-breadcrumb-harmonised-item]":n,l=void 0===(l=t.expandableItemsSelector)?'[data-ecl-breadcrumb-harmonised-item="expandable"]':l,a=void 0===(a=t.staticItemsSelector)?'[data-ecl-breadcrumb-harmonised-item="static"]':a,o=void 0===(o=t.onPartialExpand)?null:o,r=void 0===(r=t.onFullExpand)?null:r,t=void 0===(t=t.attachClickListener)||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=s,this.segmentSelector=n,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)}init(){this.ellipsisButton=h(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=r(this.segmentSelector,this.element),this.staticElements=r(this.staticItemsSelector,this.element),this.expandableElements=r(this.expandableItemsSelector,this.element),this.check(),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}handleClickOnEllipsis(){return this.handleFullExpand()}check(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))}hideEllipsis(){var e=h(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)}showAllItems(){this.expandableElements.forEach(e=>e.setAttribute("aria-hidden","false"))}handlePartialExpand(e){var i;e&&(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach((e,t)=>{e.setAttribute("aria-hidden",i[t]?"false":"true")}))}handleFullExpand(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())}computeVisibilityMap(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var t=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(e=>e.getBoundingClientRect().width).reduce((e,t)=>e+t)<=t)return{expanded:!0};var i=h(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce((e,t)=>e+t.getBoundingClientRect().width,0);if(t<=i)return{expanded:!1,isItemVisible:[...this.expandableElements.map(()=>!1)]};var s=0,n=!0;return{expanded:!1,isItemVisible:[...this.expandableElements].reverse().map(e=>!!n&&((e=(s+=e.getBoundingClientRect().width)+i<=t)||(n=!1),e)).reverse()}}},e.BreadcrumbStandardised=class N{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).BREADCRUMB_STANDARDISED)?{}:t,(t=new N(e,t)).init(),e.ECLBreadcrumbStandardised=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).ellipsisButtonSelector)?"[data-ecl-breadcrumb-standardised-ellipsis-button]":i,s=void 0===(s=t.ellipsisSelector)?"[data-ecl-breadcrumb-standardised-ellipsis]":s,n=void 0===(n=t.segmentSelector)?"[data-ecl-breadcrumb-standardised-item]":n,l=void 0===(l=t.expandableItemsSelector)?'[data-ecl-breadcrumb-standardised-item="expandable"]':l,a=void 0===(a=t.staticItemsSelector)?'[data-ecl-breadcrumb-standardised-item="static"]':a,o=void 0===(o=t.onPartialExpand)?null:o,r=void 0===(r=t.onFullExpand)?null:r,t=void 0===(t=t.attachClickListener)||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=s,this.segmentSelector=n,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)}init(){this.ellipsisButton=h(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=r(this.segmentSelector,this.element),this.staticElements=r(this.staticItemsSelector,this.element),this.expandableElements=r(this.expandableItemsSelector,this.element),this.check(),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}handleClickOnEllipsis(){return this.handleFullExpand()}check(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))}hideEllipsis(){var e=h(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)}showAllItems(){this.expandableElements.forEach(e=>e.setAttribute("aria-hidden","false"))}handlePartialExpand(e){var i;e&&(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach((e,t)=>{e.setAttribute("aria-hidden",i[t]?"false":"true")}))}handleFullExpand(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())}computeVisibilityMap(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var t=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(e=>e.getBoundingClientRect().width).reduce((e,t)=>e+t)<=t)return{expanded:!0};var i=h(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce((e,t)=>e+t.getBoundingClientRect().width,0);if(t<=i)return{expanded:!1,isItemVisible:[...this.expandableElements.map(()=>!1)]};var s=0,n=!0;return{expanded:!1,isItemVisible:[...this.expandableElements].reverse().map(e=>!!n&&((e=(s+=e.getBoundingClientRect().width)+i<=t)||(n=!1),e)).reverse()}}},e.Carousel=class G{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).CAROUSEL)?{}:t,(t=new G(e,t)).init(),e.ECLCarousel=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).playSelector)?".ecl-carousel__play":i,s=void 0===(s=t.pauseSelector)?".ecl-carousel__pause":s,n=void 0===(n=t.prevSelector)?".ecl-carousel__prev":n,l=void 0===(l=t.nextSelector)?".ecl-carousel__next":l,a=void 0===(a=t.containerClass)?".ecl-carousel__container":a,o=void 0===(o=t.slidesClass)?".ecl-carousel__slides":o,r=void 0===(r=t.slideClass)?".ecl-carousel__slide":r,h=void 0===(h=t.currentSlideClass)?".ecl-carousel__current":h,c=void 0===(c=t.navigationItemsClass)?".ecl-carousel__navigation-item":c,d=void 0===(d=t.controlsClass)?".ecl-carousel__controls":d,u=void 0===(u=t.paginationClass)?".ecl-carousel__pagination":u,g=void 0===(g=t.attachClickListener)||g,t=void 0===(t=t.attachResizeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.playSelector=i,this.pauseSelector=s,this.prevSelector=n,this.nextSelector=l,this.containerClass=a,this.slidesClass=o,this.slideClass=r,this.currentSlideClass=h,this.navigationItemsClass=c,this.controlsClass=d,this.paginationClass=u,this.attachClickListener=g,this.attachResizeListener=t,this.container=null,this.slides=null,this.btnPlay=null,this.btnPause=null,this.btnPrev=null,this.btnNext=null,this.index=1,this.total=0,this.allowShift=!0,this.autoPlay=null,this.autoPlayInterval=null,this.hoverAutoPlay=null,this.resizeTimer=null,this.posX1=0,this.posX2=0,this.posInitial=0,this.posFinal=0,this.threshold=80,this.navigationItems=null,this.controls=null,this.direction="ltr",this.cloneFirstSLide=null,this.cloneLastSLide=null,this.handleAutoPlay=this.handleAutoPlay.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.shiftSlide=this.shiftSlide.bind(this),this.checkIndex=this.checkIndex.bind(this),this.moveSlides=this.moveSlides.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),this.handleFocus=this.handleFocus.bind(this)}init(){if(this.btnPlay=h(this.playSelector,this.element),this.btnPause=h(this.pauseSelector,this.element),this.btnPrev=h(this.prevSelector,this.element),this.btnNext=h(this.nextSelector,this.element),this.slidesContainer=h(this.slidesClass,this.element),this.container=h(this.containerClass,this.element),this.navigationItems=r(this.navigationItemsClass,this.element),this.pagination=h(this.paginationClass,this.element),this.controls=h(this.controlsClass,this.element),this.currentSlide=h(this.currentSlideClass,this.element),this.direction=getComputedStyle(this.element).direction,this.slides=r(this.slideClass,this.element),this.total=this.slides.length,this.total<=1)return this.btnNext&&(this.btnNext.style.display="none"),this.btnPrev&&(this.btnPrev.style.display="none"),this.controls&&(this.controls.style.display="none"),this.slidesContainer&&(this.slidesContainer.style.display="block"),!1;var e=this.slides[0],t=this.slides[this.slides.length-1];return this.cloneFirstSLide=e.cloneNode(!0),this.cloneLastSLide=t.cloneNode(!0),this.slidesContainer.appendChild(this.cloneFirstSLide),this.slidesContainer.insertBefore(this.cloneLastSLide,e),this.slides=r(this.slideClass,this.element),this.slides.forEach(e=>{e.style.width=100/this.slides.length+"%"}),this.handleResize(),this.navigationItems&&this.navigationItems.forEach((e,t)=>{e.addEventListener("click",this.shiftSlide.bind(this,t+1,!0))}),this.attachClickListener&&this.btnPlay&&this.btnPause&&(this.btnPlay.addEventListener("click",this.handleAutoPlay),this.btnPause.addEventListener("click",this.handleAutoPlay)),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.addEventListener("mouseover",this.handleMouseOver),this.slidesContainer.addEventListener("mouseout",this.handleMouseOut),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.container&&this.container.addEventListener("focus",this.handleFocus,!0),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true"),this}destroy(){this.cloneFirstSLide&&this.cloneLastSLide&&(this.cloneFirstSLide.remove(),this.cloneLastSLide.remove()),this.btnPlay&&this.btnPlay.replaceWith(this.btnPlay.cloneNode(!0)),this.btnPause&&this.btnPause.replaceWith(this.btnPause.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("mouseover",this.handleMouseOver),this.slidesContainer.removeEventListener("mouseout",this.handleMouseOut),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.container&&this.container.removeEventListener("focus",this.handleFocus,!0),this.navigationItems&&this.navigationItems.forEach(e=>{e.replaceWith(e.cloneNode(!0))}),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.autoPlayInterval&&(clearInterval(this.autoPlayInterval),this.autoPlay=null),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}dragStart(e){(e=e||window.event).preventDefault(),this.posInitial=this.slidesContainer.offsetLeft,"touchstart"===e.type&&(this.posX1=e.touches[0].clientX)}dragAction(e){"touchmove"===(e=e||window.event).type&&(this.posX2=this.posX1-e.touches[0].clientX,this.posX1=e.touches[0].clientX),this.slidesContainer.style.left=this.slidesContainer.offsetLeft-this.posX2+"px"}dragEnd(){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"}shiftSlide(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.handleAutoPlay(),this.allowShift=!1}moveSlides(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"}checkIndex(){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((e,t)=>{var i=h(".ecl-link--cta",e);this.index===t?(e.removeAttribute("inert","true"),i&&i.removeAttribute("tabindex",-1)):(e.setAttribute("inert","true"),i&&i.setAttribute("tabindex",-1))}),this.navigationItems&&this.navigationItems.forEach((e,t)=>{this.index===t+1?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current","true")}),this.allowShift=!0}handleAutoPlay(){var e;this.autoPlay?(clearInterval(this.autoPlayInterval),this.autoPlay=!1,e=document.activeElement===this.btnPause,this.btnPlay.style.display="flex",this.btnPause.style.display="none",e&&this.btnPlay.focus()):(this.autoPlayInterval=setInterval(()=>{this.shiftSlide("next")},5e3),this.autoPlay=!0,e=document.activeElement===this.btnPlay,this.btnPlay.style.display="none",this.btnPause.style.display="flex",e&&this.btnPause.focus())}handleMouseOver(){return this.hoverAutoPlay=this.autoPlay,this.hoverAutoPlay&&this.handleAutoPlay(),this}handleMouseOut(){return this.hoverAutoPlay&&this.handleAutoPlay(),this}handleResize(){var e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),t=this.container.offsetWidth;this.slidesContainer.style.width=t*this.slides.length+"px",this.moveSlides(!1),996<=e&&e<=1220?this.container.classList.add("ecl-carousel-container--padded"):this.container.classList.remove("ecl-carousel-container--padded"),e<=996?(this.pagination.parentNode.insertBefore(this.btnPrev,this.pagination),this.pagination.parentNode.insertBefore(this.btnNext,this.pagination.nextSibling)):(this.container.insertBefore(this.btnPrev,this.slidesContainer.nextSibling),this.container.insertBefore(this.btnNext,this.btnPrev.nextSibling)),(e<=768&&this.autoPlay||768<e&&null===this.autoPlay)&&this.handleAutoPlay()}handleFocus(e){return(e=e.target)&&e.contains(document.activeElement)&&this.autoPlay&&this.handleAutoPlay(),this}},e.CategoryFilter=class q{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).CATEGORY_FILTER)?{}:t,(t=new q(e,t)).init(),e.ECLCategoryFilter=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).itemSelector)?".ecl-category-filter__item--has-children":i,t=void 0===(t=t.attachClickListener)||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)}init(){this.items=r(this.itemSelector,this.element),this.attachClickListener&&this.items&&this.items.forEach(e=>e.addEventListener("click",this.handleClickExpand)),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){this.attachClickListener&&this.items&&this.items.forEach(e=>{e.removeEventListener("click",this.handleClickExpand,!1)}),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}handleClickExpand(e){e.preventDefault();var t=e.target.closest(".ecl-category-filter__item");t.classList.contains("ecl-category-filter__item--level-1")&&(this.items.forEach(e=>{e!==t&&e.parentElement.setAttribute("aria-expanded","false")}),"true"===t.parentElement.getAttribute("aria-expanded"))?(t.parentElement.setAttribute("aria-expanded","false"),t.classList.remove("ecl-category-filter__item--current")):(this.items.forEach(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"))}},e.Datepicker=class X{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).DATEPICKER)?{}:t,(t=new X(e,t)).init(),e.ECLDatepicker=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).format)?"DD-MM-YYYY":i,s=void 0===(s=t.theme)?"ecl-datepicker-theme":s,n=void 0===(n=t.yearRange)?40:n,l=void 0!==(l=t.reposition)&&l,a=void 0===(a=t.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"]}:a,o=void 0===(o=t.showDaysInNextAndPreviousMonths)||o,t=void 0===(t=t.enableSelectionDaysInNextAndPreviousMonths)||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=s,this.yearRange=n,this.i18n=a,this.showDaysInNextAndPreviousMonths=o,this.enableSelectionDaysInNextAndPreviousMonths=t,this.reposition=l,this.direction="ltr"}init(){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(){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}destroy(){this.picker&&(this.picker.destroy(),this.picker=null),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}},e.Expandable=class ${static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).EXPANDABLE)?{}:t,(t=new $(e,t)).init(),e.ECLExpandable=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).toggleSelector)?"[data-ecl-expandable-toggle]":i,s=void 0===(s=t.labelSelector)?"[data-ecl-label]":s,n=void 0===(n=t.labelExpanded)?"data-ecl-label-expanded":n,l=void 0===(l=t.labelCollapsed)?"data-ecl-label-collapsed":l,t=void 0===(t=t.attachClickListener)||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=s,this.labelExpanded=n,this.labelCollapsed=l,this.attachClickListener=t,this.toggle=null,this.forceClose=!1,this.target=null,this.label=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}init(){if(this.toggle=h(this.toggleSelector,this.element),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),this.label=h(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")}destroy(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}handleClickOnToggle(){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}},e.FileDownload=class J{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).FILE_DOWNLOAD)?{}:t,(t=new J(e,t)).init(),e.ECLFileDownload=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).translationToggleSelector)?"[data-ecl-file-translation-toggle]":i,s=void 0===(s=t.translationContainerSelector)?"[data-ecl-file-translation-container]":s,t=void 0===(t=t.attachClickListener)||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=s,this.attachClickListener=t,this.translationToggle=null,this.translationContainer=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}init(){this.translationToggle=h(this.translationToggleSelector,this.element),this.translationContainer=h(this.translationContainerSelector,this.element),this.attachClickListener&&this.translationToggle&&this.translationToggle.addEventListener("click",this.handleClickOnToggle),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){this.attachClickListener&&this.translationToggle&&this.translationToggle.removeEventListener("click",this.handleClickOnToggle),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}handleClickOnToggle(e){return e.preventDefault(),"true"===this.translationContainer.getAttribute("aria-expanded")?this.translationContainer.setAttribute("aria-expanded","false"):this.translationContainer.setAttribute("aria-expanded","true"),this}},e.FileUpload=class Q{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).FILE_UPLOAD)?{}:t,(t=new Q(e,t)).init(),e.ECLFileUpload=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).groupSelector)?"[data-ecl-file-upload-group]":i,s=void 0===(s=t.buttonSelector)?"[data-ecl-file-upload-button]":s,n=void 0===(n=t.listSelector)?"[data-ecl-file-upload-list]":n,l=void 0===(l=t.labelChoose)?"data-ecl-file-upload-label-choose":l,a=void 0===(a=t.labelReplace)?"data-ecl-file-upload-label-replace":a,t=void 0===(t=t.attachChangeListener)||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=s,this.listSelector=n,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)}init(){this.fileUploadGroup=this.element.closest(this.groupSelector),this.fileUploadInput=this.element,this.fileUploadButton=h(this.buttonSelector,this.fileUploadGroup),this.fileUploadList=h(this.listSelector,this.fileUploadGroup),this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.addEventListener("change",this.handleChange),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.removeEventListener("change",this.handleChange),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}handleChange(e){var s;"files"in e.target?(s="",Array.prototype.forEach.call(e.target.files,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();s+='<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=s,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))}},e.Gallery=class Z{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).GALLERY)?{}:t,(t=new Z(e,t)).init(),e.ECLGallery=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).galleryItemSelector)?"[data-ecl-gallery-item]":i,s=void 0===(s=t.descriptionSelector)?"[data-ecl-gallery-description]":s,n=void 0===(n=t.metaSelector)?"[data-ecl-gallery-meta]":n,l=void 0===(l=t.closeButtonSelector)?"[data-ecl-gallery-close]":l,a=void 0===(a=t.viewAllSelector)?"[data-ecl-gallery-all]":a,o=void 0===(o=t.countSelector)?"[data-ecl-gallery-count]":o,r=void 0===(r=t.overlaySelector)?"[data-ecl-gallery-overlay]":r,h=void 0===(h=t.overlayHeaderSelector)?"[data-ecl-gallery-overlay-header]":h,c=void 0===(c=t.overlayFooterSelector)?"[data-ecl-gallery-overlay-footer]":c,d=void 0===(d=t.overlayMediaSelector)?"[data-ecl-gallery-overlay-media]":d,u=void 0===(u=t.overlayCounterCurrentSelector)?"[data-ecl-gallery-overlay-counter-current]":u,g=void 0===(g=t.overlayCounterMaxSelector)?"[data-ecl-gallery-overlay-counter-max]":g,v=void 0===(v=t.overlayDownloadSelector)?"[data-ecl-gallery-overlay-download]":v,p=void 0===(p=t.overlayShareSelector)?"[data-ecl-gallery-overlay-share]":p,m=void 0===(m=t.overlayDescriptionSelector)?"[data-ecl-gallery-overlay-description]":m,b=void 0===(b=t.overlayMetaSelector)?"[data-ecl-gallery-overlay-meta]":b,f=void 0===(f=t.overlayPreviousSelector)?"[data-ecl-gallery-overlay-previous]":f,y=void 0===(y=t.overlayNextSelector)?"[data-ecl-gallery-overlay-next]":y,E=void 0===(E=t.attachClickListener)||E,S=void 0===(S=t.attachKeyListener)||S,t=void 0===(t=t.attachResizeListener)||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=s,this.metaSelector=n,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=m,this.overlayMetaSelector=b,this.overlayPreviousSelector=f,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)}init(){this.galleryItems=r(this.galleryItemSelector,this.element),this.closeButton=h(this.closeButtonSelector,this.element),this.viewAll=h(this.viewAllSelector,this.element),this.count=h(this.countSelector,this.element),this.overlay=h(this.overlaySelector,this.element),this.overlayHeader=h(this.overlayHeaderSelector,this.overlay),this.overlayFooter=h(this.overlayFooterSelector,this.overlay),this.overlayMedia=h(this.overlayMediaSelector,this.overlay),this.overlayCounterCurrent=h(this.overlayCounterCurrentSelector,this.overlay),this.overlayCounterMax=h(this.overlayCounterMaxSelector,this.overlay),this.overlayDownload=h(this.overlayDownloadSelector,this.overlay),this.overlayShare=h(this.overlayShareSelector,this.overlay),this.overlayDescription=h(this.overlayDescriptionSelector,this.overlay),this.overlayMeta=h(this.overlayMetaSelector,this.overlay),this.overlayPrevious=h(this.overlayPreviousSelector,this.overlay),this.overlayNext=h(this.overlayNextSelector,this.overlay),this.focusTrap=n(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(e=>{this.attachClickListener&&e.addEventListener("click",this.handleClickOnItem),this.attachKeyListener&&e.addEventListener("keyup",this.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((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")}destroy(){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(e=>{e.removeEventListener("click",this.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")}checkScreen(){window.innerWidth>this.breakpointMd?this.isDesktop=!0:this.isDesktop=!1}hideItems(){var i,s;this.viewAll&&(this.isDesktop?(i=this.element.getBoundingClientRect().top,s=[],this.galleryItems.forEach((e,t)=>{e.parentNode.classList.remove("ecl-gallery__item--hidden"),e.getBoundingClientRect().top-i>2*this.imageHeight&&(s=[...s,t])}),s.forEach(e=>{this.galleryItems[e].parentNode.classList.add("ecl-gallery__item--hidden")})):this.galleryItems.forEach((e,t)=>{2<t?e.parentNode.classList.add("ecl-gallery__item--hidden"):e.parentNode.classList.remove("ecl-gallery__item--hidden")}))}handleResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.checkScreen(),this.hideItems()},200)}updateOverlay(e){var t=(this.selectedItem=e).getAttribute("data-ecl-gallery-item-embed-src"),i=h("video",e),s=null;null!=t?((s=document.createElement("div")).classList.add("ecl-gallery__slider-embed"),(n=document.createElement("iframe")).setAttribute("src",t),n.setAttribute("frameBorder","0"),this.overlayMedia&&(s.appendChild(n),this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(s))):null!=i?((s=document.createElement("video")).setAttribute("poster",i.poster),s.setAttribute("controls","controls"),s.classList.add("ecl-gallery__slider-video"),this.overlayMedia&&(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(s)),r("source",i).forEach(e=>{var t=document.createElement("source");t.setAttribute("src",e.getAttribute("src")),t.setAttribute("type",e.getAttribute("type")),s.appendChild(t)}),r("track",i).forEach(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")),s.appendChild(t)}),s.load()):(n=h("img",e),(s=document.createElement("img")).setAttribute("src",n.getAttribute("src")),s.setAttribute("alt",n.getAttribute("alt")),s.classList.add("ecl-gallery__slider-image"),this.overlayMedia&&(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(s))),this.overlayCounterCurrent.innerHTML=+e.getAttribute("data-ecl-gallery-item-id")+1,this.overlayCounterMax.innerHTML=this.galleryItems.length;null!=(i=this.selectedItem.getAttribute("data-ecl-gallery-item-share"))?(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);var n=h(this.metaSelector,e),i=(this.overlayMeta.innerHTML=n.innerHTML,h(this.descriptionSelector,e)),t=(this.overlayDescription.innerHTML=i.innerHTML,this.overlay.clientHeight-this.overlayHeader.clientHeight-this.overlayFooter.clientHeight);this.overlayMedia&&Object.assign(s.style,{maxHeight:t+"px"})}handleKeyboard(e){"Escape"!==e.key&&"Esc"!==e.key||this.handleClickOnCloseButton()}handleClickOnCloseButton(){this.isDialogSupported?this.overlay.close():this.overlay.removeAttribute("open");var e=h("iframe",this.overlayMedia);e&&e.remove(),(e=h("video",this.overlayMedia))&&e.pause(),this.focusTrap.deactivate(),this.selectedItem.focus(),document.body.classList.remove("ecl-u-disablescroll")}handleKeyPressOnItem(e){32===e.keyCode&&this.handleClickOnItem(e)}handleClickOnViewAll(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()}handleClickOnItem(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()}handleClickOnPreviousButton(){var e=+this.selectedItem.getAttribute("data-ecl-gallery-item-id")-1,t=(e<0&&(e=this.galleryItems.length-1),h("video",this.selectedItem));return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this}handleClickOnNextButton(){var e=+this.selectedItem.getAttribute("data-ecl-gallery-item-id")+1,t=(e>=this.galleryItems.length&&(e=0),h("video",this.selectedItem));return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this}},e.InpageNavigation=class ee{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).INPAGE_NAVIGATION)?{}:t,(t=new ee(e,t)).init(),e.ECLInpageNavigation=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).stickySelector)?"[data-ecl-inpage-navigation]":i,s=void 0===(s=t.containerSelector)?"[data-ecl-inpage-navigation-container]":s,n=void 0===(n=t.inPageList)?"[data-ecl-inpage-navigation-list]":n,l=void 0===(l=t.spySelector)?"[data-ecl-inpage-navigation-link]":l,a=void 0===(a=t.toggleSelector)?"[data-ecl-inpage-navigation-trigger]":a,o=void 0===(o=t.linksSelector)?"[data-ecl-inpage-navigation-link]":o,r=void 0===(r=t.spyActiveContainer)?"ecl-inpage-navigation--visible":r,h=void 0===(h=t.spyOffset)?20:h,c=void 0===(c=t.spyClass)?"ecl-inpage-navigation__item--active":c,d=void 0===(d=t.spyTrigger)?"[data-ecl-inpage-navigation-trigger-current]":d,u=void 0===(u=t.attachClickListener)||u,t=void 0===(t=t.contentClass)?"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=s,this.toggleSelector=a,this.linksSelector=o,this.inPageList=n,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)}initSticky(){this.stickyInstance=new v.Sticky(this.element)}destroySticky(){this.stickyInstance&&this.stickyInstance.remove()}initScrollSpy(){var e,s,n,l;this.gumshoe=new Y(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=h(this.containerSelector))&&(n=s=0,l=!1,this.stickyObserver=new IntersectionObserver(e=>{var t,i;e&&e[0]&&(t=(e=e[0]).boundingClientRect.y,i=e.intersectionRatio,e=e.isIntersecting,l?t<s?n<i&&e||this.element.classList.remove(this.spyActiveContainer):s<t&&e&&n<i&&this.element.classList.add(this.spyActiveContainer):l=!0,s=t,n=i)},{root:null}),this.stickyObserver.observe(e))}activateScrollSpy(e){var t=h(this.spyTrigger);this.element.classList.add(this.spyActiveContainer),t.textContent=e.detail.content.textContent}deactivateScrollSpy(){var e=h(this.spyTrigger);this.element.classList.remove(this.spyActiveContainer),e.innerHTML=""}destroyScrollSpy(){this.stickyObserver&&this.stickyObserver.disconnect(),document.removeEventListener("gumshoeActivate",this.activateScrollSpy,!1),document.removeEventListener("gumshoeDeactivate",this.deactivateScrollSpy,!1),this.gumshoe.destroy()}initObserver(){var t;"MutationObserver"in window&&((t=this).observer=new MutationObserver(e=>{var s=h(".ecl-col-l-9"),n=h("[data-ecl-inpage-navigation-list]");e.forEach(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(t=>{var e,i;"H2"===t.tagName&&t.id&&(e=r("h2[id]",s).findIndex(e=>e.id===t.id),(i=n.childNodes[e-1].cloneNode(!0)).childNodes[0].textContent=t.textContent,i.childNodes[0].href="#"+t.id,n.childNodes[e-1].after(i))}),0<e.removedNodes.length&&[].slice.call(e.removedNodes).forEach(t=>{"H2"===t.tagName&&t.id&&n.childNodes.forEach(e=>{-1!==e.childNodes[0].href.indexOf(t.id)&&e.remove()})}),t.update())})}),this.observer.observe(document,{subtree:!0,childList:!0}))}destroyObserver(){this.observer&&this.observer.disconnect()}init(){var e=h(this.toggleSelector,this.element),t=r(this.linksSelector,this.element);this.initSticky(this.element),this.initScrollSpy(),this.initObserver(),this.attachClickListener&&e&&e.addEventListener("click",this.handleClickOnToggler),this.attachClickListener&&t&&(t.forEach(e=>e.addEventListener("click",this.handleClickOnLink)),e.addEventListener("click",this.handleClickOnToggler)),this.element.setAttribute("data-ecl-auto-initialized","true")}update(){this.gumshoe.setup()}handleClickOnToggler(e){var t=h(this.inPageList,this.element),i=h(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")}handleClickOnLink(){var e=h(this.inPageList,this.element),t=h(this.toggleSelector,this.element);e.classList.remove("ecl-inpage-navigation__list--visible"),t.setAttribute("aria-expanded","false")}destroy(){this.attachClickListener&&this.toggleElement&&this.toggleElement.removeEventListener("click",this.handleClickOnToggler),this.attachClickListener&&this.navLinks&&this.navLinks.forEach(e=>e.removeEventListener("click",this.handleClickOnLink)),this.destroyScrollSpy(),this.destroySticky(),this.destroyObserver(),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}},e.Menu=class te{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).MENU)?{}:t,(t=new te(e,t)).init(),e.ECLMenu=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).openSelector)?"[data-ecl-menu-open]":i,s=void 0===(s=t.closeSelector)?"[data-ecl-menu-close]":s,n=void 0===(n=t.backSelector)?"[data-ecl-menu-back]":n,l=void 0===(l=t.overlaySelector)?"[data-ecl-menu-overlay]":l,a=void 0===(a=t.innerSelector)?"[data-ecl-menu-inner]":a,o=void 0===(o=t.itemSelector)?"[data-ecl-menu-item]":o,r=void 0===(r=t.linkSelector)?"[data-ecl-menu-link]":r,h=void 0===(h=t.caretSelector)?"[data-ecl-menu-caret]":h,c=void 0===(c=t.megaSelector)?"[data-ecl-menu-mega]":c,d=void 0===(d=t.subItemSelector)?"[data-ecl-menu-subitem]":d,u=void 0===(u=t.attachClickListener)||u,g=void 0===(g=t.attachHoverListener)||g,v=void 0===(v=t.attachFocusListener)||v,p=void 0===(p=t.attachKeyListener)||p,t=void 0===(t=t.attachResizeListener)||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=s,this.backSelector=n,this.overlaySelector=l,this.innerSelector=a,this.itemSelector=o,this.linkSelector=r,this.caretSelector=h,this.megaSelector=c,this.subItemSelector=d,this.attachClickListener=u,this.attachHoverListener=g,this.attachFocusListener=v,this.attachKeyListener=p,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.isKeyEvent=!1,this.handleClickOnOpen=this.handleClickOnOpen.bind(this),this.handleClickOnClose=this.handleClickOnClose.bind(this),this.handleClickOnBack=this.handleClickOnBack.bind(this),this.handleClickOnCaret=this.handleClickOnCaret.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),this.closeOpenDropdown=this.closeOpenDropdown.bind(this)}init(){this.open=h(this.openSelector,this.element),this.close=h(this.closeSelector,this.element),this.back=h(this.backSelector,this.element),this.overlay=h(this.overlaySelector,this.element),this.inner=h(this.innerSelector,this.element),this.items=r(this.itemSelector,this.element),this.subItems=r(this.subItemSelector,this.element),this.links=r(this.linkSelector,this.element),this.carets=r(this.caretSelector,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.links&&this.links.forEach(e=>{this.attachFocusListener&&e.addEventListener("focusin",this.closeOpenDropdown),this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyboard)}),this.carets&&this.carets.forEach(e=>{this.attachKeyListener&&e.addEventListener("keyup",this.handleKeyboard),this.attachClickListener&&e.addEventListener("click",this.handleClickOnCaret)}),this.subItems&&this.subItems.forEach(e=>{this.attachKeyListener&&(e=h(".ecl-menu__sublink",e))&&e.addEventListener("keyup",this.handleKeyboard)}),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.items&&!p.isMobile&&this.items.forEach(e=>{this.checkMenuItem(e),e.hasAttribute("data-ecl-has-children")&&this.attachHoverListener&&(e.addEventListener("mouseover",this.handleHoverOnItem),e.addEventListener("mouseout",this.handleHoverOffItem))}),this.stickyInstance=new v.Sticky(this.element),setTimeout(()=>{this.element.classList.add("ecl-menu--transition")},500),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){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.attachKeyListener&&this.carets&&this.carets.forEach(e=>{e.removeEventListener("keyup",this.handleKeyboard)}),this.items&&!p.isMobile&&this.items.forEach(e=>{e.hasAttribute("data-ecl-has-children")&&this.attachHoverListener&&(e.removeEventListener("mouseover",this.handleHoverOnItem),e.removeEventListener("mouseout",this.handleHoverOffItem))}),this.links&&this.links.forEach(e=>{this.attachFocusListener&&e.removeEventListener("focusin",this.closeOpenDropdown),this.attachKeyListener&&e.removeEventListener("keyup",this.handleKeyboard)}),this.carets&&this.carets.forEach(e=>{this.attachKeyListener&&e.removeEventListener("keyup",this.handleKeyboard),this.attachClickListener&&e.removeEventListener("click",this.handleClickOnCaret)}),this.subItems&&this.subItems.forEach(e=>{this.attachKeyListener&&(e=h(".ecl-menu__sublink",e))&&e.removeEventListener("keyup",this.handleKeyboard)}),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}useDesktopDisplay(){return!p.isMobileOnly&&(p.isTablet?(this.element.classList.add("ecl-menu--forced-mobile"),!1):(this.element.classList.remove("ecl-menu--forced-mobile"),!0))}handleResize(){return this.element.classList.remove("ecl-menu--transition"),clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.element.classList.remove("ecl-menu--forced-mobile"),this.useDesktopDisplay(),this.items&&!p.isMobile&&this.items.forEach(e=>{this.checkMenuItem(e)}),this.element.classList.add("ecl-menu--transition")},200),this}checkMenuItem(e){var t=h(this.megaSelector,e);if(t){if((i=r(this.subItemSelector,t)).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(),s=this.inner.getBoundingClientRect(),e=e.getBoundingClientRect(),i=i.width;s.width<e.left-s.left+i?t.classList.add("ecl-menu__mega--rtl"):t.classList.remove("ecl-menu__mega--rtl")}}handleKeyboard(e){var t=e.target,i=t.classList,s=this.element.getAttribute("aria-expanded"),n=t.closest(this.itemSelector);if("Escape"===e.key||"Esc"===e.key)document.activeElement===t&&t.blur(),"false"===s?((l=h(".ecl-menu__button-caret",n))&&l.focus(),this.closeOpenDropdown()):this.handleClickOnClose();else{if(i.contains("ecl-menu__button-caret")&&"false"===s){if(32===e.keyCode||"Enter"===e.key)return void("true"===n.getAttribute("aria-expanded")?this.handleHoverOffItem(e):this.handleHoverOnItem(e));if("ArrowDown"===e.key)if(l=h(".ecl-menu__sublink:first-of-type",n))return void l.focus()}if(i.contains("ecl-menu__link")||i.contains("ecl-menu__button-caret")){if("ArrowLeft"===e.key||"ArrowUp"===e.key){if((s=t.previousSibling)&&s.classList.contains("ecl-menu__link"))return void s.focus();if(s=t.parentElement.previousSibling){var l,n=s.classList.contains("ecl-menu__item--has-children")?".ecl-menu__button-caret":".ecl-menu__link";if(l=h(n,s))return void l.focus()}}if("ArrowRight"===e.key||"ArrowDown"===e.key){if((n=t.nextSibling)&&n.classList.contains("ecl-menu__button-caret"))return void n.focus();(n=t.parentElement.nextSibling)&&(s=h(".ecl-menu__link",n))&&s.focus()}this.closeOpenDropdown()}i.contains("ecl-menu__sublink")&&("ArrowDown"===e.key&&(l=t.parentElement.nextSibling)&&(n=h(".ecl-menu__sublink",l))?n.focus():"ArrowUp"===e.key&&((s=t.parentElement.previousSibling)?(i=h(".ecl-menu__sublink",s))&&i.focus():(l=h(this.itemSelector+'[aria-expanded="true"] '+this.caretSelector,this.element))&&l.focus()))}}handleClickOnOpen(e){return e.preventDefault(),this.element.setAttribute("aria-expanded","true"),this.inner.setAttribute("aria-hidden","false"),this.isOpen=!0,this}handleClickOnClose(){return this.element.setAttribute("aria-expanded","false"),this.inner.classList.remove("ecl-menu__inner--expanded"),this.inner.setAttribute("aria-hidden","true"),this.items.forEach(e=>{e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false")}),this.isOpen=!1,this}handleClickOnBack(){return this.inner.classList.remove("ecl-menu__inner--expanded"),this.items.forEach(e=>{e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false")}),this}handleClickOnCaret(e){var t;"false"!==this.element.getAttribute("aria-expanded")&&(this.inner.classList.add("ecl-menu__inner--expanded"),t=e.target.closest(this.itemSelector),this.items.forEach(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"))}))}handleHoverOnItem(e){var t=e.target.closest(this.itemSelector);return this.items.forEach(e=>{e===t?e.setAttribute("aria-expanded","true"):(e.setAttribute("aria-expanded","false"),(e=h(".ecl-menu__button-caret",e))&&e.blur())}),this}handleHoverOffItem(e){return e.target.closest(this.itemSelector).setAttribute("aria-expanded","false"),this}closeOpenDropdown(){var e=h(this.itemSelector+"[aria-expanded='true']",this.element);e&&e.setAttribute("aria-expanded","false")}},e.Message=class ie{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).MESSAGE)?{}:t,(t=new ie(e,t)).init(),e.ECLMessage=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).closeSelector)?"[data-ecl-message-close]":i,t=void 0===(t=t.attachClickListener)||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)}init(){this.close=h(this.closeSelector,this.element),this.attachClickListener&&this.close&&this.close.addEventListener("click",this.handleClickOnClose),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.handleClickOnClose),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}handleClickOnClose(){return this.element.parentNode&&this.element.parentNode.removeChild(this.element),this}},e.NewsTicker=class se{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).NEWS_TICKER)?{}:t,(t=new se(e,t)).init(),e.ECLNewsTicker=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).playSelector)?"[data-ecl-news-ticker-play]":i,s=void 0===(s=t.pauseSelector)?"[data-ecl-news-ticker-pause]":s,n=void 0===(n=t.prevSelector)?"[data-ecl-news-ticker-prev]":n,l=void 0===(l=t.nextSelector)?"[data-ecl-news-ticker-next]":l,a=void 0===(a=t.containerClass)?".ecl-news-ticker__container":a,o=void 0===(o=t.contentClass)?".ecl-news-ticker__content":o,r=void 0===(r=t.slidesClass)?".ecl-news-ticker__slides":r,h=void 0===(h=t.slideClass)?".ecl-news-ticker__slide":h,c=void 0===(c=t.currentSlideClass)?".ecl-news-ticker__counter--current":c,d=void 0===(d=t.controlsClass)?".ecl-news-ticker__controls":d,u=void 0===(u=t.attachClickListener)||u,t=void 0===(t=t.attachResizeListener)||t;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.playSelector=i,this.pauseSelector=s,this.prevSelector=n,this.nextSelector=l,this.containerClass=a,this.contentClass=o,this.slidesClass=r,this.slideClass=h,this.currentSlideClass=c,this.controlsClass=d,this.attachClickListener=u,this.attachResizeListener=t,this.container=null,this.content=null,this.slides=null,this.btnPlay=null,this.btnPause=null,this.btnPrev=null,this.btnNext=null,this.index=1,this.total=0,this.allowShift=!0,this.autoPlay=null,this.autoPlayInterval=null,this.hoverAutoPlay=null,this.resizeTimer=null,this.cloneFirstSLide=null,this.cloneLastSLide=null,this.handleAutoPlay=this.handleAutoPlay.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.shiftSlide=this.shiftSlide.bind(this),this.checkIndex=this.checkIndex.bind(this),this.moveSlides=this.moveSlides.bind(this),this.handleResize=this.handleResize.bind(this),this.handleFocus=this.handleFocus.bind(this)}init(){if(this.btnPlay=h(this.playSelector,this.element),this.btnPause=h(this.pauseSelector,this.element),this.btnPrev=h(this.prevSelector,this.element),this.btnNext=h(this.nextSelector,this.element),this.slidesContainer=h(this.slidesClass,this.element),this.container=h(this.containerClass,this.element),this.content=h(this.contentClass,this.element),this.controls=h(this.controlsClass,this.element),this.slides=r(this.slideClass,this.element),this.total=this.slides.length,this.total<=1&&this.controls)return this.content.style.height="auto",!(this.controls.style.display="none");var e=this.slides[0],t=this.slides[this.slides.length-1];return this.cloneFirstSLide=e.cloneNode(!0),this.cloneLastSLide=t.cloneNode(!0),this.slidesContainer.appendChild(this.cloneFirstSLide),this.slidesContainer.insertBefore(this.cloneLastSLide,e),this.slides=r(this.slideClass,this.element),this.handleResize(),this.handleAutoPlay(),this.attachClickListener&&this.btnPlay&&this.btnPause&&(this.btnPlay.addEventListener("click",this.handleAutoPlay),this.btnPause.addEventListener("click",this.handleAutoPlay)),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.slidesContainer.addEventListener("mouseover",this.handleMouseOver),this.slidesContainer.addEventListener("mouseout",this.handleMouseOut)),this.container&&this.container.addEventListener("focus",this.handleFocus,!0),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.element.setAttribute("data-ecl-auto-initialized","true"),this}destroy(){this.cloneFirstSLide&&this.cloneLastSLide&&(this.cloneFirstSLide.remove(),this.cloneLastSLide.remove()),this.btnPlay&&this.btnPlay.replaceWith(this.btnPlay.cloneNode(!0)),this.btnPause&&this.btnPause.replaceWith(this.btnPause.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.slidesContainer.removeEventListener("mouseover",this.handleMouseOver),this.slidesContainer.removeEventListener("mouseout",this.handleMouseOut)),this.container&&this.container.removeEventListener("focus",this.handleFocus,!0),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize),this.autoPlayInterval&&(clearInterval(this.autoPlayInterval),this.autoPlay=null),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}shiftSlide(e,t){this.allowShift&&(this.index=1===e?this.index+1:this.index-1,this.moveSlides(!0)),t&&this.autoPlay&&this.handleAutoPlay(),this.allowShift=!1}moveSlides(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":"1ms",this.slidesContainer.style.transform="translate3d(0px, -"+t+"px, 0px)"}checkIndex(){0===this.index&&(this.index=this.total,this.moveSlides(!1)),this.index===this.total+1&&(this.index=1,this.moveSlides(!1)),h(this.currentSlideClass,this.element).textContent=this.index,this.slides&&this.slides.forEach((e,t)=>{var i=h(".ecl-link",e);this.index===t?(e.removeAttribute("inert","true"),i&&i.removeAttribute("tabindex",-1)):(e.setAttribute("inert","true"),i&&i.setAttribute("tabindex",-1))}),this.allowShift=!0}handleAutoPlay(){var e;this.autoPlay?(clearInterval(this.autoPlayInterval),this.autoPlay=!1,e=document.activeElement===this.btnPause,this.btnPlay.style.display="flex",this.btnPause.style.display="none",e&&this.btnPlay.focus()):(this.autoPlayInterval=setInterval(()=>{this.shiftSlide(1)},5e3),this.autoPlay=!0,e=document.activeElement===this.btnPlay,this.btnPlay.style.display="none",this.btnPause.style.display="flex",e&&this.btnPause.focus())}handleMouseOver(){return this.hoverAutoPlay=this.autoPlay,this.hoverAutoPlay&&this.handleAutoPlay(),this}handleMouseOut(){return this.hoverAutoPlay&&this.handleAutoPlay(),this}handleResize(){var t=0;this.slides.forEach(e=>{e=e.offsetHeight,t=t<e?e:t}),t=t<58?58:t,this.container.style.height=t+10+"px",this.moveSlides(!1)}handleFocus(e){return(e=e.target)&&e.contains(document.activeElement)&&this.autoPlay&&this.handleAutoPlay(),this}},e.Select=m,e.SiteHeader=class ne{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).SITE_HEADER_CORE)?{}:t,(t=new ne(e,t)).init(),e.ECLSiteHeader=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).languageLinkSelector)?"[data-ecl-language-selector]":i,s=void 0===(s=t.languageListOverlaySelector)?"[data-ecl-language-list-overlay]":s,n=void 0===(n=t.closeOverlaySelector)?"[data-ecl-language-list-close]":n,l=void 0===(l=t.searchToggleSelector)?"[data-ecl-search-toggle]":l,a=void 0===(a=t.searchFormSelector)?"[data-ecl-search-form]":a,o=void 0===(o=t.loginToggleSelector)?"[data-ecl-login-toggle]":o,t=void 0===(t=t.loginBoxSelector)?"[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=s,this.closeOverlaySelector=n,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)}init(){this.languageSelector=h(this.languageLinkSelector),this.languageListOverlay=h(this.languageListOverlaySelector),this.close=h(this.closeOverlaySelector),this.focusTrap=n(this.languageListOverlay,{onDeactivate:this.closeOverlay}),this.languageSelector&&this.languageSelector.addEventListener("click",this.toggleOverlay),this.close&&this.close.addEventListener("click",this.toggleOverlay),this.searchToggle=h(this.searchToggleSelector),this.searchForm=h(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=h(this.loginToggleSelector),this.loginBox=h(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){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")}openOverlay(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageSelector.setAttribute("aria-expanded","true")}closeOverlay(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageSelector.setAttribute("aria-expanded","false")}toggleOverlay(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())}toggleSearch(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"))}toggleLogin(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"))}},e.SiteHeaderCore=class le{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).SITE_HEADER_CORE)?{}:t,(t=new le(e,t)).init(),e.ECLSiteHeaderCore=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).languageLinkSelector)?"[data-ecl-language-selector]":i,s=void 0===(s=t.languageListOverlaySelector)?"[data-ecl-language-list-overlay]":s,n=void 0===(n=t.closeOverlaySelector)?"[data-ecl-language-list-close]":n,l=void 0===(l=t.searchToggleSelector)?"[data-ecl-search-toggle]":l,a=void 0===(a=t.searchFormSelector)?"[data-ecl-search-form]":a,o=void 0===(o=t.loginToggleSelector)?"[data-ecl-login-toggle]":o,t=void 0===(t=t.loginBoxSelector)?"[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=s,this.closeOverlaySelector=n,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)}init(){this.languageSelector=h(this.languageLinkSelector),this.languageListOverlay=h(this.languageListOverlaySelector),this.close=h(this.closeOverlaySelector),this.focusTrap=n(this.languageListOverlay,{onDeactivate:this.closeOverlay}),this.languageSelector&&this.languageSelector.addEventListener("click",this.toggleOverlay),this.close&&this.close.addEventListener("click",this.toggleOverlay),this.searchToggle=h(this.searchToggleSelector),this.searchForm=h(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=h(this.loginToggleSelector),this.loginBox=h(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){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")}openOverlay(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageSelector.setAttribute("aria-expanded","true")}closeOverlay(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageSelector.setAttribute("aria-expanded","false")}toggleOverlay(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())}toggleSearch(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"))}toggleLogin(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"))}},e.SiteHeaderHarmonised=class ae{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).SITE_HEADER_CORE)?{}:t,(t=new ae(e,t)).init(),e.ECLSiteHeaderHarmonised=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).languageLinkSelector)?"[data-ecl-language-selector]":i,s=void 0===(s=t.languageListOverlaySelector)?"[data-ecl-language-list-overlay]":s,n=void 0===(n=t.closeOverlaySelector)?"[data-ecl-language-list-close]":n,l=void 0===(l=t.searchToggleSelector)?"[data-ecl-search-toggle]":l,a=void 0===(a=t.searchFormSelector)?"[data-ecl-search-form]":a,o=void 0===(o=t.loginToggleSelector)?"[data-ecl-login-toggle]":o,t=void 0===(t=t.loginBoxSelector)?"[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=s,this.closeOverlaySelector=n,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)}init(){this.languageSelector=h(this.languageLinkSelector),this.languageListOverlay=h(this.languageListOverlaySelector),this.close=h(this.closeOverlaySelector),this.focusTrap=n(this.languageListOverlay,{onDeactivate:this.closeOverlay}),this.languageSelector&&this.languageSelector.addEventListener("click",this.toggleOverlay),this.close&&this.close.addEventListener("click",this.toggleOverlay),this.searchToggle=h(this.searchToggleSelector),this.searchForm=h(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=h(this.loginToggleSelector),this.loginBox=h(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){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")}openOverlay(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageSelector.setAttribute("aria-expanded","true")}closeOverlay(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageSelector.setAttribute("aria-expanded","false")}toggleOverlay(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())}toggleSearch(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"))}toggleLogin(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"))}},e.SiteHeaderStandardised=class oe{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).SITE_HEADER_CORE)?{}:t,(t=new oe(e,t)).init(),e.ECLSiteHeaderStandardised=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).languageLinkSelector)?"[data-ecl-language-selector]":i,s=void 0===(s=t.languageListOverlaySelector)?"[data-ecl-language-list-overlay]":s,n=void 0===(n=t.closeOverlaySelector)?"[data-ecl-language-list-close]":n,l=void 0===(l=t.searchToggleSelector)?"[data-ecl-search-toggle]":l,a=void 0===(a=t.searchFormSelector)?"[data-ecl-search-form]":a,o=void 0===(o=t.loginToggleSelector)?"[data-ecl-login-toggle]":o,t=void 0===(t=t.loginBoxSelector)?"[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=s,this.closeOverlaySelector=n,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)}init(){this.languageSelector=h(this.languageLinkSelector),this.languageListOverlay=h(this.languageListOverlaySelector),this.close=h(this.closeOverlaySelector),this.focusTrap=n(this.languageListOverlay,{onDeactivate:this.closeOverlay}),this.languageSelector&&this.languageSelector.addEventListener("click",this.toggleOverlay),this.close&&this.close.addEventListener("click",this.toggleOverlay),this.searchToggle=h(this.searchToggleSelector),this.searchForm=h(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=h(this.loginToggleSelector),this.loginBox=h(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){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")}openOverlay(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageSelector.setAttribute("aria-expanded","true")}closeOverlay(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageSelector.setAttribute("aria-expanded","false")}toggleOverlay(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())}toggleSearch(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"))}toggleLogin(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"))}},e.Table=b,e.Tabs=class re{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).TABS)?{}:t,(t=new re(e,t)).init(),e.ECLTabs=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).listSelector)?".ecl-tabs__list":i,s=void 0===(s=t.listItemsSelector)?".ecl-tabs__item:not(.ecl-tabs__item--more)":s,n=void 0===(n=t.moreItemSelector)?".ecl-tabs__item--more":n,l=void 0===(l=t.moreButtonSelector)?".ecl-tabs__toggle":l,a=void 0===(a=t.moreLabelSelector)?".ecl-tabs__toggle .ecl-button__label":a,o=void 0===(o=t.prevSelector)?".ecl-tabs__prev":o,r=void 0===(r=t.nextSelector)?".ecl-tabs__next":r,h=void 0===(h=t.attachClickListener)||h,t=void 0===(t=t.attachResizeListener)||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=s,this.moreItemSelector=n,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.tabsKey=[],this.firstTab=null,this.lastTab=null,this.direction="ltr",this.isMobile=!1,this.handleClickOnToggle=this.handleClickOnToggle.bind(this),this.handleResize=this.handleResize.bind(this),this.closeMoreDropdown=this.closeMoreDropdown.bind(this),this.shiftTabs=this.shiftTabs.bind(this),this.handleKeyboardOnTabs=this.handleKeyboardOnTabs.bind(this),this.moveFocus=this.moveFocus.bind(this),this.arrowFocusToTab=this.arrowFocusToTab.bind(this),this.tabsKeyEvents=this.tabsKeyEvents.bind(this)}init(){this.list=h(this.listSelector,this.element),this.listItems=r(this.listItemsSelector,this.element),this.moreItem=h(this.moreItemSelector,this.element),this.moreButton=h(this.moreButtonSelector,this.element),this.moreLabel=h(this.moreLabelSelector,this.element),this.moreLabelValue=this.moreLabel.innerText,this.btnPrev=h(this.prevSelector,this.element),this.btnNext=h(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(e=>{this.dropdown.appendChild(e.cloneNode(!0))}),this.moreItem.appendChild(this.dropdown),this.dropdownItems=r(".ecl-tabs__dropdown .ecl-tabs__item",this.element)),this.btnNext&&(this.buttonNextSize=this.btnNext.getBoundingClientRect().width),this.handleResize(),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")}destroy(){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.tabsKey&&this.tabsKey.forEach(e=>{e.addEventListener("keydown",this.handleKeyboardOnTabs)}),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}shiftTabs(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;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),(e=Math.ceil(this.list.getBoundingClientRect().width-this.element.getBoundingClientRect().width))<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)"}handleClickOnToggle(){this.dropdown.classList.toggle("ecl-tabs__dropdown--show"),this.moreButton.setAttribute("aria-expanded",this.dropdown.classList.contains("ecl-tabs__dropdown--show"))}handleResize(){var t,i,s,n;"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?(this.isMobile=!0,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(e=>{e.setAttribute("aria-hidden","false"),t+=Math.ceil(e.getBoundingClientRect().width)}),this.list.style.width=t+"px",this.btnNext.style.display="block",this.btnPrev.style.display="none"):(this.isMobile=!1,this.btnNext.style.display="none",this.btnPrev.style.display="none",this.list.style.width="auto",i=this.moreButton.getBoundingClientRect().width+25,s=[],n=this.list.getBoundingClientRect().width,this.moreButtonActive=!1,this.listItems.forEach((e,t)=>{e.setAttribute("aria-hidden","false"),n>=i+e.getBoundingClientRect().width&&!s.includes(t-1)?i+=e.getBoundingClientRect().width:(e.setAttribute("aria-hidden","true"),e.childNodes[0].classList.contains("ecl-tabs__link--active")&&(this.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((e,t)=>{s.includes(t)?e.setAttribute("aria-hidden","false"):e.setAttribute("aria-hidden","true")})):this.moreItem.setAttribute("aria-hidden","true")),this.tabsKeyEvents()}tabsKeyEvents(){this.tabsKey=[],this.listItems.forEach((e,t,i)=>{var s=null;"false"!==e.getAttribute("aria-hidden")&&(e=this.dropdownItems[t]),(s=h(".ecl-tabs__link",e)).addEventListener("keydown",this.handleKeyboardOnTabs),this.tabsKey.push(s),0===t&&(this.firstTab=s),t===i.length-1&&(this.lastTab=s)})}closeMoreDropdown(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")}handleKeyboardOnTabs(e){var t=e.currentTarget;switch(e.key){case"ArrowLeft":this.arrowFocusToTab(t,"prev");break;case"ArrowRight":this.arrowFocusToTab(t,"next");break;case"Home":this.moveFocus(this.firstTab);break;case"End":this.moveFocus(this.lastTab)}}moveFocus(e){e.closest(".ecl-tabs__dropdown")?(this.moreButton.setAttribute("aria-expanded",!0),this.dropdown.classList.add("ecl-tabs__dropdown--show")):(this.moreButton.setAttribute("aria-expanded",!1),this.dropdown.classList.remove("ecl-tabs__dropdown--show")),e.focus()}arrowFocusToTab(e,t){var i=this.tabsKey.indexOf(e),i="next"===t?i+1:i-1,s="next"===t?this.firstTab:this.lastTab,n="next"===t?this.lastTab:this.firstTab;this.isMobile?e!==n&&(this.moveFocus(this.tabsKey[i]),this.shiftTabs(t)):e===n?this.moveFocus(s):this.moveFocus(this.tabsKey[i])}},e.Timeline=class he{static autoInit(e,t){return t=void 0===(t=(void 0===t?{}:t).TIMELINE)?{}:t,(t=new he(e,t)).init(),e.ECLTimeline=t}constructor(e,t){var i=void 0===(i=(t=void 0===t?{}:t).buttonSelector)?"[data-ecl-timeline-button]":i,s=void 0===(s=t.labelSelector)?"[data-ecl-label]":s,n=void 0===(n=t.labelExpanded)?"data-ecl-label-expanded":n,l=void 0===(l=t.labelCollapsed)?"data-ecl-label-collapsed":l,t=void 0===(t=t.attachClickListener)||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=s,this.labelExpanded=n,this.labelCollapsed=l,this.attachClickListener=t,this.button=null,this.label=null,this.handleClickOnButton=this.handleClickOnButton.bind(this)}init(){this.button=h(this.buttonSelector,this.element),this.label=h(this.labelSelector,this.element),this.attachClickListener&&this.button&&this.button.addEventListener("click",this.handleClickOnButton),this.element.setAttribute("data-ecl-auto-initialized","true")}destroy(){this.attachClickListener&&this.button&&this.button.removeEventListener("click",this.handleClickOnButton),this.element&&this.element.removeAttribute("data-ecl-auto-initialized")}handleClickOnButton(){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}},e.autoInit=function(e){var e=void 0===e?{}:e,t=e.root,t=void 0===t?document:t,s=function(e,t){if(null==e)return{};for(var i,s={},n=Object.keys(e),l=0;l<n.length;l++)i=n[l],0<=t.indexOf(i)||(s[i]=e[i]);return s}(e,R);if(!ECL)throw new TypeError("Called autoInit but ECL is not present");var n=[],i=(ECL.components||(ECL.components=[]),r("[data-ecl-auto-init]",t)),l=()=>{i.filter(e=>"true"!==e.getAttribute("data-ecl-auto-initialized")).forEach(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,s);ECL.components.push(t),n.push(t)})};return l(),{update:()=>l(),destroy:()=>{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:n}},Object.defineProperty(e,"__esModule",{value:!0}),e}({},moment);