@ecl/preset-ec 3.0.3 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/images/icons/lists/all.json +1 -1
- package/dist/images/icons/sprites/icons.svg +1 -1
- package/dist/images/icons/svg/all/calendar.svg +1 -1
- package/dist/images/icons/svg/all/check.svg +1 -1
- package/dist/images/icons/svg/all/growth.svg +1 -1
- package/dist/images/icons/svg/all/hamburger.svg +1 -1
- package/dist/images/icons/svg/all/organigram.svg +1 -1
- package/dist/images/icons/svg/all/package.svg +1 -1
- package/dist/images/icons/svg/all/pause-filled.svg +1 -0
- package/dist/images/icons/svg/all/pause.svg +1 -0
- package/dist/images/icons/svg/all/{video-play.svg → play-filled.svg} +0 -0
- package/dist/images/icons/svg/all/play.svg +1 -0
- package/dist/images/icons/svg/all/regulation.svg +1 -1
- package/dist/images/icons/svg/all/rss.svg +1 -1
- package/dist/images/icons/svg/all/solid-arrow.svg +1 -1
- package/dist/images/icons/svg/all/spreadsheet.svg +1 -1
- package/dist/images/icons/svg/all/video.svg +1 -1
- package/dist/images/logo/negative/logo-ec--bg.svg +59 -0
- package/dist/images/logo/negative/logo-ec--cs.svg +86 -0
- package/dist/images/logo/negative/logo-ec--da.svg +91 -0
- package/dist/images/logo/negative/logo-ec--de.svg +93 -0
- package/dist/images/logo/negative/logo-ec--el.svg +89 -0
- package/dist/images/logo/negative/logo-ec--en.svg +90 -0
- package/dist/images/logo/negative/logo-ec--es.svg +87 -0
- package/dist/images/logo/negative/logo-ec--et.svg +87 -0
- package/dist/images/logo/negative/logo-ec--fi.svg +88 -0
- package/dist/images/logo/negative/logo-ec--fr.svg +92 -0
- package/dist/images/logo/negative/logo-ec--ga.svg +90 -0
- package/dist/images/logo/negative/logo-ec--hr.svg +88 -0
- package/dist/images/logo/negative/logo-ec--hu.svg +58 -0
- package/dist/images/logo/negative/logo-ec--it.svg +95 -0
- package/dist/images/logo/negative/logo-ec--lt.svg +87 -0
- package/dist/images/logo/negative/logo-ec--lv.svg +87 -0
- package/dist/images/logo/negative/logo-ec--mt.svg +98 -0
- package/dist/images/logo/negative/logo-ec--nl.svg +89 -0
- package/dist/images/logo/negative/logo-ec--pl.svg +89 -0
- package/dist/images/logo/negative/logo-ec--pt.svg +58 -0
- package/dist/images/logo/negative/logo-ec--ro.svg +94 -0
- package/dist/images/logo/negative/logo-ec--sk.svg +87 -0
- package/dist/images/logo/negative/logo-ec--sl.svg +88 -0
- package/dist/images/logo/negative/logo-ec--sv.svg +94 -0
- package/dist/images/logo/package.json +2 -2
- package/dist/scripts/ecl-ec.js +2 -2
- package/dist/styles/ecl-ec-print.css +1 -1
- package/dist/styles/ecl-ec-print.css.map +1 -1
- package/dist/styles/ecl-ec.css +2 -2
- package/dist/styles/ecl-ec.css.map +1 -1
- package/dist/styles/optional/ecl-ec-default.css +1 -1
- package/package.json +10 -10
package/dist/scripts/ecl-ec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* @ecl/preset-ec - 3.
|
|
2
|
-
var ECL=function(e,t){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=i(t);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 l(e,t){return void 0===t&&(t=document),[].slice.call(t.querySelectorAll(e))}function o(e,t){return(t=void 0===t?document:t).querySelector(e)}var a=["root"],s=function(){function i(e,t){var i=void 0===t?{}:t,n=i.toggleSelector,s=void 0===n?"[data-ecl-accordion-toggle]":n,a=i.iconSelector,t=void 0===a?"[data-ecl-accordion-icon]":a,n=i.labelExpanded,a=void 0===n?"data-ecl-label-expanded":n,n=i.labelCollapsed,n=void 0===n?"data-ecl-label-collapsed":n,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=s,this.iconSelector=t,this.attachClickListener=i,this.labelExpanded=a,this.labelCollapsed=n,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=l(this.toggleSelector,this.element),this.label=o(this.labelSelector,this.element),this.attachClickListener&&this.toggles&&this.toggles.forEach(function(e){e.addEventListener("click",t.handleClickOnToggle.bind(t,e))})},e.destroy=function(){var t=this;this.attachClickListener&&this.toggles&&this.toggles.forEach(function(e){e.removeEventListener("click",t.handleClickOnToggle)})},e.handleClickOnToggle=function(e){var t=o("#"+e.getAttribute("aria-controls"),this.element);if(!t)throw new TypeError("Target has to be provided for accordion (aria-controls)");var i=!0===this.forceClose||"true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",i?"false":"true"),t.hidden=i;var n=o(this.iconSelector,e);!n||(t=o("use",n))&&(n=t.getAttribute("xlink:href"),s="",s=i?n.replace("minus","plus"):n.replace("plus","minus"),t.setAttribute("xlink:href",s));var s=o(".ecl-accordion__toggle-label",e);return s&&(s.textContent=i?e.getAttribute(this.labelCollapsed):e.getAttribute(this.labelExpanded)),this},i}(),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e,t){return e(t={exports:{}},t.exports),t.exports}function h(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?"true"!==e.contentEditable&&("AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex"))?e.tabIndex:0:t}function d(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function u(e){return"INPUT"===e.tagName}function g(e){if(!e.name)return 1;function t(e){return i.querySelectorAll('input[type="radio"][name="'+e+'"]')}var i=e.form||e.ownerDocument;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 p(e){return u(t=e)&&"radio"===t.type&&!g(e);var t}function y(e,t){return!(t.disabled||u(i=t)&&"hidden"===i.type||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var i=O.call(e,"details>summary:first-of-type")?e.parentElement:e;if(O.call(i,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){i=e.getBoundingClientRect(),t=i.width,i=i.height;return 0===t&&0===i}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||"DETAILS"===(e=t).tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})||function(e){if(u(e)||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||"BUTTON"===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!n.contains(e)}return!0}t=t.parentElement}return!1}(t));var i}function E(e,t){var i,n,s=[],a=[];return(i=e,n=(t=t||{}).includeContainer,e=function(e,t){return!(!y(e,t)||p(t)||h(t)<0)}.bind(null,t),t=Array.prototype.slice.apply(i.querySelectorAll(x)),n&&O.call(i,x)&&t.unshift(i),t=t.filter(e)).forEach(function(e,t){var i=h(e);0===i?s.push(e):a.push({documentOrder:t,tabIndex:i,node:e})}),a.sort(d).map(function(e){return e.node}).concat(s)}var f=c(function(e,t){!function(){var moment;try{moment=n.default}catch(e){}e.exports=function(moment){var o=typeof moment==="function",a=!!window.addEventListener,g=window.document,h=window.setTimeout,l=function e(t,i,n,s){if(a)t.addEventListener(i,n,!!s);else t.attachEvent("on"+i,n)},i=function e(t,i,n,s){if(a)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},p=function e(t,i){if(!r(t,i))t.className=t.className===""?i:t.className+" "+i},f=function e(t,i){t.className=n((" "+t.className+" ").replace(" "+i+" "," "))},b=function e(t){return/Array/.test(Object.prototype.toString.call(t))},I=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(I(t))t.setHours(0,0,0,0)},P=function e(t,i){return t.getTime()===i.getTime()},c=function e(t,i,n){var s,a;for(s in i){a=t[s]!==undefined;if(a&&typeof i[s]==="object"&&i[s]!==null&&i[s].nodeName===undefined)if(I(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||!a)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=c(s,n);t.dispatchEvent(s)}else if(g.createEventObject){s=g.createEventObject();s=c(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},v={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(),a=i,l=a-1,o=7,r=function e(t){return(t+o-1)%o};t.setDate(n+l-r(s));var c=new Date(t.getFullYear(),0,a),h=24*60*60*1e3,d=(t.getTime()-c.getTime())/h,u=1+Math.round((d-l+r(c.getDay()))/o);return u},H=function e(t,i,n,s){var a=new Date(n,i,t),l=o?moment(a).isoWeek():y(a,s);return'<td class="pika-week">'+l+"</td>"},z=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>"},w=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>"},k=function e(t,i,n,s,a,l){var o,r,c,h=t._o,d=n===h.minYear,u=n===h.maxYear,g='<div id="'+l+'" class="pika-title" role="heading" aria-live="assertive">',p,f,v=true,m=true;for(c=[],o=0;o<12;o++)c.push('<option value="'+(n===a?o-i:12+o-i)+'"'+(o===s?' selected="selected"':"")+(d&&o<h.minMonth||u&&o>h.maxMonth?' disabled="disabled"':"")+">"+h.i18n.months[o]+"</option>");p='<div class="pika-label">'+h.i18n.months[s]+'<select class="pika-select pika-select-month" tabindex="-1">'+c.join("")+"</select></div>";if(b(h.yearRange)){o=h.yearRange[0];r=h.yearRange[1]+1}else{o=n-h.yearRange;r=1+n+h.yearRange}for(c=[];o<r&&o<=h.maxYear;o++)if(o>=h.minYear)c.push('<option value="'+o+'"'+(o===n?' selected="selected"':"")+">"+o+"</option>");f='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+c.join("")+"</select></div>";if(h.showMonthAfterYear)g+=f+p;else g+=p+f;if(d&&(s===0||h.minMonth>=s))v=false;if(u&&(s===11||h.maxMonth<=s))m=false;if(i===0)g+='<button class="pika-prev'+(v?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>";if(i===t._o.numberOfMonths-1)g+='<button class="pika-next'+(m?"":" is-disabled")+'" type="button">'+h.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+'">'+w(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)h(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(I(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=h(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(!a&&r(t,"pika-select"))if(!t.onchange){t.setAttribute("onchange","return;");l(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:"");l(n.el,"mousedown",n._onMouseDown,true);l(n.el,"touchend",n._onMouseDown,true);l(n.el,"change",n._onChange);if(s.keyboardInput)l(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);l(s.field,"change",n._onInputChange);if(!s.defaultDate){s.defaultDate=n._parseFieldValue();s.setDefaultDate=true}}var i=s.defaultDate;if(I(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";l(s.trigger,"click",n._onInputClick);l(s.trigger,"focus",n._onInputFocus);l(s.trigger,"blur",n._onInputBlur)}else this.show()};return e.prototype={config:function e(t){if(!this._o)this._o=c({},v,true);var i=c(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(!I(i.minDate))i.minDate=false;if(!I(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))||v.yearRange;if(i.yearRange>100)i.yearRange=100}return i},toString:function e(t){t=t||this._o.format;if(!I(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 I(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(!I(t))return;var n=this._o.minDate,s=this._o.maxDate;if(I(n)&&t<n)t=n;else if(I(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(!I(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),a=t.getTime();s.setMonth(s.getMonth()+1);s.setDate(s.getDate()-1);i=a<n.getTime()||s.getTime()<a}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 a;if(t==="add")a=new Date(n.valueOf()+s);else if(t==="subtract")a=new Date(n.valueOf()-s);this.setDate(a)},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=v.minDate;this._o.minYear=v.minYear;this._o.minMonth=v.minMonth;this._o.startRange=v.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=v.maxDate;this._o.maxYear=v.maxYear;this._o.maxMonth=v.maxMonth;this._o.endRange=v.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,a=i.minMonth,l=i.maxMonth,o="",r;if(this._y<=n){this._y=n;if(!isNaN(a)&&this._m<a)this._m=a}if(this._y>=s){this._y=s;if(!isNaN(l)&&this._m>l)this._m=l}for(var c=0;c<i.numberOfMonths;c++){r="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);o+='<div class="pika-lendar">'+k(this,c,this.calendars[c].year,this.calendars[c].month,this.calendars[0].year,r)+this.render(this.calendars[c].year,this.calendars[c].month,r)+"</div>"}this.el.innerHTML=o;if(i.bound)if(i.field.type!=="hidden")h(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,a,l,o,r,c,h,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;a=window.innerWidth||g.documentElement.clientWidth;l=window.innerHeight||g.documentElement.clientHeight;o=window.pageYOffset||g.body.scrollTop||g.documentElement.scrollTop;d=true;u=true;if(typeof t.getBoundingClientRect==="function"){h=t.getBoundingClientRect();r=h.left+window.pageXOffset;c=h.bottom+window.pageYOffset}else{r=i.offsetLeft;c=i.offsetTop+i.offsetHeight;while(i=i.offsetParent){r+=i.offsetLeft;c+=i.offsetTop}}if(this._o.reposition&&r+n>a||this._o.position.indexOf("right")>-1&&r-n+t.offsetWidth>0){r=r-n+t.offsetWidth;d=false}if(this._o.reposition&&c+s>l+o||this._o.position.indexOf("top")>-1&&c-s-t.offsetHeight>0){c=c-s-t.offsetHeight;u=false}this.el.style.left=r+"px";this.el.style.top=c+"px";p(this.el,d?"left-aligned":"right-aligned");p(this.el,u?"bottom-aligned":"top-aligned");f(this.el,!d?"left-aligned":"right-aligned");f(this.el,!u?"bottom-aligned":"top-aligned")},render:function e(t,i,n){var s=this._o,a=new Date,l=B(t,i),o=new Date(t,i,1).getDay(),r=[],c=[];R(a);if(s.firstDay>0){o-=s.firstDay;if(o<0)o+=7}var h=i===0?11:i-1,d=i===11?0:i+1,u=i===0?t-1:t,g=i===11?t+1:t,p=B(u,h);var f=l+o,v=f;while(v>7)v-=7;f+=7-v;var m=false;for(var b=0,y=0;b<f;b++){var E=new Date(t,i,1+(b-o)),w=I(this._d)?P(E,this._d):false,k=P(E,a),S=s.events.indexOf(E.toDateString())!==-1?true:false,C=b<o||b>=l+o,L=1+(b-o),x=i,O=t,T=s.startRange&&P(s.startRange,E),A=s.endRange&&P(s.endRange,E),_=s.startRange&&s.endRange&&s.startRange<E&&E<s.endRange,D=s.minDate&&E<s.minDate||s.maxDate&&E>s.maxDate||s.disableWeekends&&N(E)||s.disableDayFn&&s.disableDayFn(E);if(C)if(b<o){L=p+L;x=h;O=u}else{L=L-l;x=d;O=g}var M={day:L,month:x,year:O,hasEvent:S,isSelected:w,isToday:k,isDisabled:D,isEmpty:C,isStartRange:T,isEndRange:A,isInRange:_,showDaysInNextAndPreviousMonths:s.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:s.enableSelectionDaysInNextAndPreviousMonths};if(s.pickWholeWeek&&w)m=true;c.push(F(M));if(++y===7){if(s.showWeekNumber)c.unshift(H(b-o,i,t,s.firstWeekOfYearMinDays));r.push(z(c,s.isRTL,s.pickWholeWeek,m));c=[];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();f(this.el,"is-hidden");if(this._o.bound){l(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"}p(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)}()}),v=function(){function i(e,t){var i=void 0===t?{}:t,n=i.format,s=void 0===n?"DD-MM-YYYY":n,a=i.theme,l=void 0===a?"ecl-datepicker-theme":a,t=i.yearRange,n=void 0===t?40:t,a=i.reposition,t=void 0!==a&&a,a=i.showDaysInNextAndPreviousMonths,a=void 0===a||a,i=i.enableSelectionDaysInNextAndPreviousMonths,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.format=s,this.theme=l,this.yearRange=n,this.showDaysInNextAndPreviousMonths=a,this.enableSelectionDaysInNextAndPreviousMonths=i,this.reposition=t}return 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},i.prototype.init=function(){return new f({field:this.element,format:this.format,yearRange:this.yearRange,theme:this.theme,reposition:this.reposition,showDaysInNextAndPreviousMonths:this.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:this.enableSelectionDaysInNextAndPreviousMonths})},i}(),m=function(){function i(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-core-ellipsis-button]":n,a=i.ellipsisSelector,l=void 0===a?"[data-ecl-breadcrumb-core-ellipsis]":a,o=i.segmentSelector,r=void 0===o?"[data-ecl-breadcrumb-core-item]":o,t=i.expandableItemsSelector,n=void 0===t?'[data-ecl-breadcrumb-core-item="expandable"]':t,a=i.staticItemsSelector,o=void 0===a?'[data-ecl-breadcrumb-core-item="static"]':a,t=i.onPartialExpand,a=void 0===t?null:t,t=i.onFullExpand,t=void 0===t?null:t,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=l,this.segmentSelector=r,this.expandableItemsSelector=n,this.staticItemsSelector=o,this.onPartialExpand=a,this.onFullExpand=t,this.attachClickListener=i,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=o(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=l(this.segmentSelector,this.element),this.staticElements=l(this.staticItemsSelector,this.element),this.expandableElements=l(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=o(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=o(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}(),b=function(){function i(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-standardised-ellipsis-button]":n,a=i.ellipsisSelector,l=void 0===a?"[data-ecl-breadcrumb-standardised-ellipsis]":a,o=i.segmentSelector,r=void 0===o?"[data-ecl-breadcrumb-standardised-item]":o,t=i.expandableItemsSelector,n=void 0===t?'[data-ecl-breadcrumb-standardised-item="expandable"]':t,a=i.staticItemsSelector,o=void 0===a?'[data-ecl-breadcrumb-standardised-item="static"]':a,t=i.onPartialExpand,a=void 0===t?null:t,t=i.onFullExpand,t=void 0===t?null:t,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=l,this.segmentSelector=r,this.expandableItemsSelector=n,this.staticItemsSelector=o,this.onPartialExpand=a,this.onFullExpand=t,this.attachClickListener=i,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=o(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=l(this.segmentSelector,this.element),this.staticElements=l(this.staticItemsSelector,this.element),this.expandableElements=l(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=o(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=o(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 i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-harmonised-ellipsis-button]":n,a=i.ellipsisSelector,l=void 0===a?"[data-ecl-breadcrumb-harmonised-ellipsis]":a,o=i.segmentSelector,r=void 0===o?"[data-ecl-breadcrumb-harmonised-item]":o,t=i.expandableItemsSelector,n=void 0===t?'[data-ecl-breadcrumb-harmonised-item="expandable"]':t,a=i.staticItemsSelector,o=void 0===a?'[data-ecl-breadcrumb-harmonised-item="static"]':a,t=i.onPartialExpand,a=void 0===t?null:t,t=i.onFullExpand,t=void 0===t?null:t,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=l,this.segmentSelector=r,this.expandableItemsSelector=n,this.staticItemsSelector=o,this.onPartialExpand=a,this.onFullExpand=t,this.attachClickListener=i,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=o(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=l(this.segmentSelector,this.element),this.staticElements=l(this.staticItemsSelector,this.element),this.expandableElements=l(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=o(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=o(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}(),k=function(){function i(e,t){var i=void 0===t?{}:t,n=i.toggleSelector,s=void 0===n?"[data-ecl-expandable-toggle]":n,a=i.labelSelector,t=void 0===a?"[data-ecl-label]":a,n=i.labelExpanded,a=void 0===n?"data-ecl-label-expanded":n,n=i.labelCollapsed,n=void 0===n?"data-ecl-label-collapsed":n,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=s,this.labelSelector=t,this.labelExpanded=a,this.labelCollapsed=n,this.attachClickListener=i,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=o(this.toggleSelector,this.element),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),this.label=o(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)},e.destroy=function(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle)},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}(),S=function(){function i(e,t){var i=void 0===t?{}:t,n=i.translationToggleSelector,t=void 0===n?"[data-ecl-file-translation-toggle]":n,n=i.translationContainerSelector,n=void 0===n?"[data-ecl-file-translation-container]":n,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.translationToggleSelector=t,this.translationContainerSelector=n,this.attachClickListener=i,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=o(this.translationToggleSelector,this.element),this.translationContainer=o(this.translationContainerSelector,this.element),this.attachClickListener&&this.translationToggle&&this.translationToggle.addEventListener("click",this.handleClickOnToggle)},e.destroy=function(){this.attachClickListener&&this.translationToggle&&this.translationToggle.removeEventListener("click",this.handleClickOnToggle)},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}(),C=function(){function i(e,t){var i=void 0===t?{}:t,n=i.groupSelector,s=void 0===n?"[data-ecl-file-upload-group]":n,a=i.buttonSelector,l=void 0===a?"[data-ecl-file-upload-button]":a,t=i.listSelector,n=void 0===t?"[data-ecl-file-upload-list]":t,a=i.labelChoose,t=void 0===a?"data-ecl-file-upload-label-choose":a,a=i.labelReplace,a=void 0===a?"data-ecl-file-upload-label-replace":a,i=i.attachChangeListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.groupSelector=s,this.buttonSelector=l,this.listSelector=n,this.labelChoose=t,this.labelReplace=a,this.attachChangeListener=i,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=o(this.buttonSelector,this.fileUploadGroup),this.fileUploadList=o(this.listSelector,this.fileUploadGroup),this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.addEventListener("change",this.handleChange)},e.destroy=function(){this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.removeEventListener("change",this.handleChange)},e.handleChange=function(e){var n;"files"in e.target?(n="",e.target.files.forEach(function(e){var t=function(e,t){if(0===e)return"0 Bytes";var i=(t=void 0===t?2:t)<0?0:t,t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(i))+" "+["Bytes","kB","MB","GB","TB","PB","EB","ZB","YB"][t]}(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}(),L=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],x=L.join(","),O="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,T=L.concat("iframe").join(",");function A(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 _(n){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?A(Object(s),!0).forEach(function(e){var t,i;t=n,e=s[i=e],i in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(s)):A(Object(s)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(s,e))})}return n}function D(e){return setTimeout(e,0)}function M(e,i){var n=-1;return e.every(function(e,t){return!i(e)||(n=t,!1)}),n}function I(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 N(e,t){function a(e,t,i){return e&&void 0!==e[t]?e[t]:v[i||t]}function i(t){return m.containers.some(function(e){return e.contains(t)})}function l(e){var t=v[e];if(!t)return null;var i=t;if("string"==typeof t&&!(i=f.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(i=t()))throw new Error("`".concat(e,"` did not return a node"));return i}function n(){var e;if(!1===a({},"initialFocus"))return!1;if(!(e=null!==l("initialFocus")?l("initialFocus"):i(f.activeElement)?f.activeElement:(e=m.tabbableGroups[0])&&e.firstTabbableNode||l("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function o(){if(m.tabbableGroups=m.containers.map(function(e){var t=E(e);if(0<t.length)return{container:e,firstTabbableNode:t[0],lastTabbableNode:t[t.length-1]}}).filter(function(e){return!!e}),m.tabbableGroups.length<=0&&!l("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;!1!==e&&e!==f.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!v.preventScroll}),m.mostRecentlyFocusedNode=e,(t=e).tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select&&e.select()):r(n()))}function c(e){var t=l("setReturnFocus");return t||e}function s(e){i(e.target)||(I(v.clickOutsideDeactivates,e)?b.deactivate({returnFocus:v.returnFocusOnDeactivate&&!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==O.call(e,T)&&y(t,e)}(e.target)}):I(v.allowOutsideClick,e)||e.preventDefault())}function h(e){var t=i(e.target);t||e.target instanceof Document?t&&(m.mostRecentlyFocusedNode=e.target):(e.stopImmediatePropagation(),r(m.mostRecentlyFocusedNode||n()))}function d(e){if(("Escape"===(t=e).key||"Esc"===t.key||27===t.keyCode)&&!1!==I(v.escapeDeactivates))return e.preventDefault(),void b.deactivate();var t;"Tab"!==(t=e).key&&9!==t.keyCode||function(t){o();var e,i,n,s=null;0<m.tabbableGroups.length?(e=M(m.tabbableGroups,function(e){return e.container.contains(t.target)}))<0?s=t.shiftKey?m.tabbableGroups[m.tabbableGroups.length-1].lastTabbableNode:m.tabbableGroups[0].firstTabbableNode:t.shiftKey?0<=(i=(i=M(m.tabbableGroups,function(e){e=e.firstTabbableNode;return t.target===e}))<0&&m.tabbableGroups[e].container===t.target?e:i)&&(n=0===i?m.tabbableGroups.length-1:i-1,s=m.tabbableGroups[n].lastTabbableNode):0<=(n=(n=M(m.tabbableGroups,function(e){e=e.lastTabbableNode;return t.target===e}))<0&&m.tabbableGroups[e].container===t.target?e:n)&&(n=n===m.tabbableGroups.length-1?0:n+1,s=m.tabbableGroups[n].firstTabbableNode):s=l("fallbackFocus"),s&&(t.preventDefault(),r(s))}(e)}function u(e){I(v.clickOutsideDeactivates,e)||i(e.target)||I(v.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}function g(){return m.active&&(P.activateTrap(b),m.delayInitialFocusTimer=v.delayInitialFocus?D(function(){r(n())}):r(n()),f.addEventListener("focusin",h,!0),f.addEventListener("mousedown",s,{capture:!0,passive:!1}),f.addEventListener("touchstart",s,{capture:!0,passive:!1}),f.addEventListener("click",u,{capture:!0,passive:!1}),f.addEventListener("keydown",d,{capture:!0,passive:!1}),b)}function p(){return m.active&&(f.removeEventListener("focusin",h,!0),f.removeEventListener("mousedown",s,!0),f.removeEventListener("touchstart",s,!0),f.removeEventListener("click",u,!0),f.removeEventListener("keydown",d,!0),b)}var f=document,v=_({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),m={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},b={activate:function(e){if(m.active)return this;var t=a(e,"onActivate"),i=a(e,"onPostActivate"),n=a(e,"checkCanFocusTrap");n||o(),m.active=!0,m.paused=!1,m.nodeFocusedBeforeActivation=f.activeElement,t&&t();t=function(){n&&o(),g(),i&&i()};return n?n(m.containers.concat()).then(t,t):t(),this},deactivate:function(e){if(!m.active)return this;clearTimeout(m.delayInitialFocusTimer),m.delayInitialFocusTimer=void 0,p(),m.active=!1,m.paused=!1,P.deactivateTrap(b);var t=a(e,"onDeactivate"),i=a(e,"onPostDeactivate"),n=a(e,"checkCanReturnFocus");t&&t();var s=a(e,"returnFocus","returnFocusOnDeactivate"),e=function(){D(function(){s&&r(c(m.nodeFocusedBeforeActivation)),i&&i()})};return s&&n?n(c(m.nodeFocusedBeforeActivation)).then(e,e):e(),this},pause:function(){return m.paused||!m.active||(m.paused=!0,p()),this},unpause:function(){return m.paused&&m.active&&(m.paused=!1,o(),g()),this},updateContainerElements:function(e){e=[].concat(e).filter(Boolean);return m.containers=e.map(function(e){return"string"==typeof e?f.querySelector(e):e}),m.active&&o(),this}};return b.updateContainerElements(e),b}var B,R,P=(B=[],{activateTrap:function(e){0<B.length&&((t=B[B.length-1])!==e&&t.pause());var t=B.indexOf(e);-1===t||B.splice(t,1),B.push(e)},deactivateTrap:function(e){e=B.indexOf(e);-1!==e&&B.splice(e,1),0<B.length&&B[B.length-1].unpause()}}),F=function(){function i(e,t){var i=void 0===t?{}:t,n=i.galleryItemSelector,s=void 0===n?"[data-ecl-gallery-item]":n,a=i.descriptionSelector,l=void 0===a?"[data-ecl-gallery-description]":a,o=i.metaSelector,r=void 0===o?"[data-ecl-gallery-meta]":o,c=i.closeButtonSelector,h=void 0===c?"[data-ecl-gallery-close]":c,d=i.viewAllSelector,u=void 0===d?"[data-ecl-gallery-all]":d,g=i.countSelector,p=void 0===g?"[data-ecl-gallery-count]":g,f=i.overlaySelector,v=void 0===f?"[data-ecl-gallery-overlay]":f,m=i.overlayHeaderSelector,b=void 0===m?"[data-ecl-gallery-overlay-header]":m,y=i.overlayFooterSelector,E=void 0===y?"[data-ecl-gallery-overlay-footer]":y,w=i.overlayMediaSelector,t=void 0===w?"[data-ecl-gallery-overlay-media]":w,n=i.overlayCounterCurrentSelector,a=void 0===n?"[data-ecl-gallery-overlay-counter-current]":n,o=i.overlayCounterMaxSelector,c=void 0===o?"[data-ecl-gallery-overlay-counter-max]":o,d=i.overlayDownloadSelector,g=void 0===d?"[data-ecl-gallery-overlay-download]":d,f=i.overlayShareSelector,m=void 0===f?"[data-ecl-gallery-overlay-share]":f,y=i.overlayDescriptionSelector,w=void 0===y?"[data-ecl-gallery-overlay-description]":y,n=i.overlayMetaSelector,o=void 0===n?"[data-ecl-gallery-overlay-meta]":n,d=i.overlayPreviousSelector,f=void 0===d?"[data-ecl-gallery-overlay-previous]":d,y=i.overlayNextSelector,n=void 0===y?"[data-ecl-gallery-overlay-next]":y,d=i.attachClickListener,y=void 0===d||d,d=i.attachKeyListener,d=void 0===d||d,i=i.attachResizeListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.galleryItemSelector=s,this.descriptionSelector=l,this.metaSelector=r,this.closeButtonSelector=h,this.viewAllSelector=u,this.countSelector=p,this.overlaySelector=v,this.overlayHeaderSelector=b,this.overlayFooterSelector=E,this.overlayMediaSelector=t,this.overlayCounterCurrentSelector=a,this.overlayCounterMaxSelector=c,this.overlayDownloadSelector=g,this.overlayShareSelector=m,this.overlayDescriptionSelector=w,this.overlayMetaSelector=o,this.overlayPreviousSelector=f,this.overlayNextSelector=n,this.attachClickListener=y,this.attachKeyListener=d,this.attachResizeListener=i,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=l(this.galleryItemSelector,this.element),this.closeButton=o(this.closeButtonSelector,this.element),this.viewAll=o(this.viewAllSelector,this.element),this.count=o(this.countSelector,this.element),this.overlay=o(this.overlaySelector,this.element),this.overlayHeader=o(this.overlayHeaderSelector,this.overlay),this.overlayFooter=o(this.overlayFooterSelector,this.overlay),this.overlayMedia=o(this.overlayMediaSelector,this.overlay),this.overlayCounterCurrent=o(this.overlayCounterCurrentSelector,this.overlay),this.overlayCounterMax=o(this.overlayCounterMaxSelector,this.overlay),this.overlayDownload=o(this.overlayDownloadSelector,this.overlay),this.overlayShare=o(this.overlayShareSelector,this.overlay),this.overlayDescription=o(this.overlayDescriptionSelector,this.overlay),this.overlayMeta=o(this.overlayMetaSelector,this.overlay),this.overlayPrevious=o(this.overlayPreviousSelector,this.overlay),this.overlayNext=o(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(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)},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)},e.checkScreen=function(){window.innerWidth>this.breakpointMd?this.isDesktop=!0:this.isDesktop=!1},e.hideItems=function(){var i=this;if(this.viewAll){if(this.isDesktop){var n=this.element.getBoundingClientRect().top,s=[];return this.galleryItems.forEach(function(e,t){e.parentNode.classList.remove("ecl-gallery__item--hidden"),e.getBoundingClientRect().top-n>2*i.imageHeight&&(s=[].concat(s,[t]))}),void s.forEach(function(e){i.galleryItems[e].parentNode.classList.add("ecl-gallery__item--hidden")})}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,i=(this.selectedItem=e).getAttribute("data-ecl-gallery-item-embed-src"),n=o("video",e),s=null;null!=i?((s=document.createElement("div")).classList.add("ecl-gallery__slider-embed"),(t=document.createElement("iframe")).setAttribute("src",i),t.setAttribute("frameBorder","0"),this.overlayMedia&&(s.appendChild(t),this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(s))):null!=n?((s=document.createElement("video")).setAttribute("poster",n.poster),s.setAttribute("controls","controls"),s.classList.add("ecl-gallery__slider-video"),this.overlayMedia&&(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(s)),l("source",n).forEach(function(e){var t=document.createElement("source");t.setAttribute("src",e.getAttribute("src")),t.setAttribute("type",e.getAttribute("type")),s.appendChild(t)}),l("track",n).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")),s.appendChild(t)}),s.load()):(a=o("img",e),(s=document.createElement("img")).setAttribute("src",a.getAttribute("src")),s.setAttribute("alt",a.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;var a=this.selectedItem.getAttribute("data-ecl-gallery-item-share");null!=a?(this.overlayShare.href=a,this.overlayShare.hidden=!1):this.overlayShare.hidden=!0,null!=i?this.overlayDownload.hidden=!0:(this.overlayDownload.href=this.selectedItem.href,this.overlayDownload.hidden=!1);i=o(this.metaSelector,e);this.overlayMeta.innerHTML=i.innerHTML;e=o(this.descriptionSelector,e);this.overlayDescription.innerHTML=e.innerHTML;e=this.overlay.clientHeight-this.overlayHeader.clientHeight-this.overlayFooter.clientHeight;this.overlayMedia&&Object.assign(s.style,{maxHeight:e+"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=o("iframe",this.overlayMedia);e&&e.remove();e=o("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;e<0&&(e=this.galleryItems.length-1);var t=o("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;e>=this.galleryItems.length&&(e=0);var t=o("video",this.selectedItem);return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this},i}(),H=c(function(b){!function(r,c){var e=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),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)}}var t,h=!1,i=void 0!==r;i&&r.getComputedStyle?(t=c.createElement("div"),["","-webkit-","-moz-","-ms-"].some(function(e){try{t.style.position=e+"sticky"}catch(e){}return""!=t.style.position})&&(h=!0)):h=!0;var a=!1,d="undefined"!=typeof ShadowRoot,l={top:null,left:null},o=[];function u(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}function g(e){return parseFloat(e)||0}function p(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t}var s=(e(f,[{key:"refresh",value:function(){var e,t,i,n,s,a,l,o;h||this._removed||(this._active&&this._deactivate(),e=this._node,t={position:(l=getComputedStyle(e)).position,top:l.top,display:l.display,marginTop:l.marginTop,marginBottom:l.marginBottom,marginLeft:l.marginLeft,marginRight:l.marginRight,cssFloat:l.cssFloat},isNaN(parseFloat(t.top))||"table-cell"==t.display||"none"==t.display||(this._active=!0,a=e.style.position,"sticky"!=l.position&&"-webkit-sticky"!=l.position||(e.style.position="static"),i=e.parentNode,o=d&&i instanceof ShadowRoot?i.host:i,n=e.getBoundingClientRect(),s=o.getBoundingClientRect(),l=getComputedStyle(o),this._parent={node:o,styles:{position:o.style.position},offsetHeight:o.offsetHeight},this._offsetToWindow={left:n.left,right:c.documentElement.clientWidth-n.right},this._offsetToParent={top:n.top-s.top-g(l.borderTopWidth),left:n.left-s.left-g(l.borderLeftWidth),right:-n.right+s.right-g(l.borderRightWidth)},this._styles={position:a,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},a=g(t.top),this._limits={start:n.top+r.pageYOffset-a,end:s.top+r.pageYOffset+o.offsetHeight-g(l.borderBottomWidth)-e.offsetHeight-a-g(t.marginBottom)},"absolute"!=(l=l.position)&&"relative"!=l&&(o.style.position="relative"),this._recalcPosition(),(o=this._clone={}).node=c.createElement("div"),u(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=p(o.node)))}},{key:"_recalcPosition",value:function(){if(this._active&&!this._removed){var e=l.top<=this._limits.start?"start":l.top>=this._limits.end?"end":"middle";if(this._stickyMode!=e){switch(e){case"start":u(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":u(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":u(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(p(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,u(this._node.style,this._styles),delete this._styles,o.some(function(e){return e!==t&&e._parent&&e._parent.node===t._parent.node})||u(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(),o.some(function(e,t){if(e._node===i._node)return o.splice(t,1),!0}),this._removed=!0}}]),f);function f(t){if(!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),!(t instanceof HTMLElement))throw new Error("First argument must be HTMLElement");if(o.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,o.push(this),this.refresh()}var v={stickies:o,Sticky:s,forceSticky:function(){h=!1,m(),this.refreshAll()},addOne:function(e){if(!(e instanceof HTMLElement)){if(!e.length||!e[0])return;e=e[0]}for(var t=0;t<o.length;t++)if(o[t]._node===e)return o[t];return new s(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?o.some(function(e){if(e._node===t)return n.push(e),!0})||n.push(new s(t)):n.push(void 0)})(e);return n}},refreshAll:function(){o.forEach(function(e){return e.refresh()})},removeOne:function(t){if(!(t instanceof HTMLElement)){if(!t.length||!t[0])return;t=t[0]}o.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];o.some(function(e){if(e._node===t)return e.remove(),!0})}(e)},removeAll:function(){for(;o.length;)o[0].remove()}};function m(){var e,t,i;function n(){r.pageXOffset!=l.left?(l.top=r.pageYOffset,l.left=r.pageXOffset,v.refreshAll()):r.pageYOffset!=l.top&&(l.top=r.pageYOffset,l.left=r.pageXOffset,o.forEach(function(e){return e._recalcPosition()}))}function s(){e=setInterval(function(){o.forEach(function(e){return e._fastCheck()})},500)}a||(a=!0,n(),r.addEventListener("scroll",n),r.addEventListener("resize",v.refreshAll),r.addEventListener("orientationchange",v.refreshAll),i=t=e=void 0,"hidden"in c?(t="hidden",i="visibilitychange"):"webkitHidden"in c&&(t="webkitHidden",i="webkitvisibilitychange"),i?(c[t]||s(),c.addEventListener(i,function(){c[t]?clearInterval(e):s()})):s())}h||m(),b.exports?b.exports=v:i&&(r.Stickyfill=v)}(window,document)}),z=c(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,h,d,u,s,g,l,o,p,a,f,v;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:r,e.exports=(h=n,d={navClass:"active",contentClass:"active",nested:!1,nestedClass:"active",offset:0,reflow:!1,events:!0},u=function(e,t,i){i.settings.events&&(i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:i}),t.dispatchEvent(i))},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})},l=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)<(h.innerHeight||document.documentElement.clientHeight):parseInt(e.top,10)<=t},o=function(){return h.innerHeight+h.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){var i,n,s=e[e.length-1];if(i=s,n=t,!(!o()||!l(i.content,n,!0)))return s;for(var a=e.length-1;0<=a;a--)if(l(e[a].content,t))return e[a]},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}))},v=function e(t,i){!i.nested||(t=t.parentNode.closest("li"))&&(t.classList.add(i.nestedClass),e(t,i))},function(e,t){var i,s,a,n,l,o={setup:function(){i=document.querySelectorAll(e),s=[],Array.prototype.forEach.call(i,function(e){var t=document.getElementById(decodeURIComponent(e.hash.substr(1)));t&&s.push({nav:e,content:t})}),g(s)}};o.detect=function(){var e,t,i,n=p(s,l);n?a&&n.content===a.content||(f(a,l),t=l,!(e=n)||(i=e.nav.closest("li"))&&(i.classList.add(t.navClass),e.content.classList.add(t.contentClass),v(i,t),u("gumshoeActivate",i,{link:e.nav,content:e.content,settings:t})),a=n):a&&(f(a,l),a=null)};function r(e){n&&h.cancelAnimationFrame(n),n=h.requestAnimationFrame(o.detect)}function c(e){n&&h.cancelAnimationFrame(n),n=h.requestAnimationFrame(function(){g(s),o.detect()})}o.destroy=function(){a&&f(a,l),h.removeEventListener("scroll",r,!1),l.reflow&&h.removeEventListener("resize",c,!1),l=n=a=i=s=null};return l=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||{}),o.setup(),o.detect(),h.addEventListener("scroll",r,!1),l.reflow&&h.addEventListener("resize",c,!1),o})}),V=function(){function i(e,t){var i=void 0===t?{}:t,n=i.stickySelector,s=void 0===n?"[data-ecl-inpage-navigation]":n,a=i.containerSelector,l=void 0===a?"[data-ecl-inpage-navigation-container]":a,o=i.inPageList,r=void 0===o?"[data-ecl-inpage-navigation-list]":o,c=i.spySelector,h=void 0===c?"[data-ecl-inpage-navigation-link]":c,d=i.toggleSelector,u=void 0===d?"[data-ecl-inpage-navigation-trigger]":d,t=i.linksSelector,n=void 0===t?"[data-ecl-inpage-navigation-link]":t,a=i.spyActiveContainer,o=void 0===a?"ecl-inpage-navigation--visible":a,c=i.spyOffset,d=void 0===c?20:c,t=i.spyClass,a=void 0===t?"ecl-inpage-navigation__item--active":t,c=i.spyTrigger,t=void 0===c?"[data-ecl-inpage-navigation-trigger-current]":c,c=i.attachClickListener,c=void 0===c||c,i=i.contentClass,i=void 0===i?"ecl-inpage-navigation__heading--active":i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.attachClickListener=c,this.stickySelector=s,this.containerSelector=l,this.toggleSelector=u,this.linksSelector=n,this.inPageList=r,this.spyActiveContainer=o,this.spySelector=h,this.spyOffset=d,this.spyClass=a,this.spyTrigger=t,this.contentClass=i,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 H.Sticky(this.element)},e.destroySticky=function(){this.stickyInstance&&this.stickyInstance.remove()},e.initScrollSpy=function(){var e,n,s,a,l=this;this.gumshoe=new z(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=o(this.containerSelector))&&(s=n=0,a=!1,this.stickyObserver=new IntersectionObserver(function(e){if(e&&e[0]){var t=e[0],i=t.boundingClientRect.y,e=t.intersectionRatio,t=t.isIntersecting;if(!a)return a=!0,n=i,void(s=e);i<n?s<e&&t||l.element.classList.remove(l.spyActiveContainer):n<i&&t&&s<e&&l.element.classList.add(l.spyActiveContainer),n=i,s=e}},{root:null}),this.stickyObserver.observe(e)))},e.activateScrollSpy=function(e){var t=o(this.spyTrigger);this.element.classList.add(this.spyActiveContainer),t.textContent=e.detail.content.textContent},e.deactivateScrollSpy=function(){var e=o(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=o(".ecl-col-l-9"),s=o("[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=l("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=o(this.toggleSelector,this.element),i=l(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))},e.update=function(){this.gumshoe.setup()},e.handleClickOnToggler=function(e){var t=o(this.inPageList,this.element),i=o(this.toggleSelector,this.element);e.preventDefault();e="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=o(this.inPageList,this.element),t=o(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()},i}(),j=function(){function i(e,t){var i=void 0===t?{}:t,t=i.closeSelector,t=void 0===t?"[data-ecl-message-close]":t,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.closeSelector=t,this.attachClickListener=i,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=o(this.closeSelector,this.element),this.attachClickListener&&this.close&&this.close.addEventListener("click",this.handleClickOnClose)},e.destroy=function(){this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.handleClickOnClose)},e.handleClickOnClose=function(){return this.element.parentNode&&this.element.parentNode.removeChild(this.element),this},i}(),W=c(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=(s={},n.m=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,t,i){var n,s,a=i(2),l=i(0),o=l.BROWSER_TYPES,r=l.OS_TYPES,c=l.DEVICE_TYPES,h=i(4),d=h.checkType,u=h.broPayload,g=h.mobilePayload,p=h.wearPayload,f=h.consolePayload,v=h.stvPayload,m=h.getNavigatorInstance,b=h.isIOS13Check,y=new a,E=y.getBrowser(),w=y.getDevice(),k=y.getEngine(),S=y.getOS(),C=y.getUA(),L=o.CHROME,x=o.CHROMIUM,O=o.IE,T=o.INTERNET_EXPLORER,A=o.OPERA,_=o.FIREFOX,D=o.SAFARI,M=o.EDGE,I=o.YANDEX,N=o.MOBILE_SAFARI,B=c.MOBILE,R=c.TABLET,P=c.SMART_TV,F=c.BROWSER,H=c.WEARABLE,z=c.CONSOLE,V=r.ANDROID,j=r.WINDOWS_PHONE,W=r.IOS,Y=r.WINDOWS,U=r.MAC_OS,G=function(){return S.name===r.WINDOWS&&"10"===S.version&&("string"==typeof C&&-1!==C.indexOf("Edg/"))},q=function(){return E.name===M},K=function(){return b("iPad")},X=w.type===P,$=w.type===z,Q=w.type===H,Z=E.name===N||K(),J=E.name===x,ee=function(){switch(w.type){case B:case R:return!0;default:return!1}}()||K(),te=w.type===B,ie=w.type===R||K(),ne=w.type===F,se=S.name===V,ae=S.name===j,le=S.name===W||K(),oe=E.name===L,re=E.name===_,ce=E.name===D||E.name===N,he=E.name===A,de=E.name===T||E.name===O,ue=S.version||"none",ge=S.name||"none",pe=E.major,fe=E.version,ve=E.name,me=w.vendor||"none",be=w.model||"none",ye=k.name,Ee=k.version,we=C,ke=q()||G(),Se=E.name===I,l=w.type,i=(n=m())&&(/iPad|iPhone|iPod/.test(n.platform)||"MacIntel"===n.platform&&1<n.maxTouchPoints)&&!window.MSStream,h=K(),a=b("iPhone"),y=b("iPod"),o="string"==typeof(s=(s=m())&&s.userAgent.toLowerCase())&&/electron/.test(s),c=G(),K=q(),G=S.name===Y,q=S.name===U,Ce=d(w.type);e.exports={deviceDetect:function(){var e=Ce.isBrowser,t=Ce.isMobile,i=Ce.isTablet,n=Ce.isSmartTV,s=Ce.isConsole,a=Ce.isWearable;return e?u(e,E,k,S,C):n?v(n,k,S,C):s?f(s,k,S,C):t||i?g(Ce,w,S,C):a?p(a,k,S,C):void 0},isSmartTV:X,isConsole:$,isWearable:Q,isMobileSafari:Z,isChromium:J,isMobile:ee,isMobileOnly:te,isTablet:ie,isBrowser:ne,isAndroid:se,isWinPhone:ae,isIOS:le,isChrome:oe,isFirefox:re,isSafari:ce,isOpera:he,isIE:de,osVersion:ue,osName:ge,fullBrowserVersion:pe,browserVersion:fe,browserName:ve,mobileVendor:me,mobileModel:be,engineName:ye,engineVersion:Ee,getUA:we,isEdge:ke,isYandex:Se,deviceType:l,isIOS13:i,isIPad13:h,isIPhone13:a,isIPod13:y,isElectron:o,isEdgeChromium:c,isLegacyEdge:K,isWindows:G,isMacOs:q}},function(k,S,C){var L;!function(s,d){function a(e,t){if("object"==typeof e&&(t=e,e=d),!(this instanceof a))return new a(e,t).getResult();var i=e||(s&&s.navigator&&s.navigator.userAgent?s.navigator.userAgent:""),n=t?v.extend(y,t):y;return this.getBrowser=function(){var e={name:d,version:d};return m.rgx.call(e,i,n.browser),e.major=v.major(e.version),e},this.getCPU=function(){var e={architecture:d};return m.rgx.call(e,i,n.cpu),e},this.getDevice=function(){var e={vendor:d,model:d,type:d};return m.rgx.call(e,i,n.device),e},this.getEngine=function(){var e={name:d,version:d};return m.rgx.call(e,i,n.engine),e},this.getOS=function(){var e={name:d,version:d};return m.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}var u="function",e="undefined",t="model",i="name",n="type",l="vendor",o="version",r="architecture",c="console",h="mobile",g="tablet",p="smarttv",f="wearable",v={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,"")}},m={rgx:function(e,t){for(var i,n,s,a,l,o=0;o<t.length&&!a;){for(var r=t[o],c=t[o+1],h=i=0;h<r.length&&!a;)if(a=r[h++].exec(e))for(n=0;n<c.length;n++)l=a[++i],"object"==typeof(s=c[n])&&0<s.length?2==s.length?typeof s[1]==u?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3==s.length?typeof s[1]!=u||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):d:this[s[0]]=l?s[1].call(this,l,s[2]):d:4==s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):d):this[s]=l||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(v.has(t[i][n],e))return"?"===i?d:i}else if(v.has(t[i],e))return"?"===i?d:i;return e}},b={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"}}}},y={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[i,o],[/(opios)[\/\s]+([\w\.]+)/i],[[i,"Opera Mini"],o],[/\s(opr)\/([\w\.]+)/i],[[i,"Opera"],o],[/(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],[i,o],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[i,"IE"],o],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[i,"Edge"],o],[/(yabrowser)\/([\w\.]+)/i],[[i,"Yandex"],o],[/(puffin)\/([\w\.]+)/i],[[i,"Puffin"],o],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[i,"UCBrowser"],o],[/(comodo_dragon)\/([\w\.]+)/i],[[i,/_/g," "],o],[/(micromessenger)\/([\w\.]+)/i],[[i,"WeChat"],o],[/(qqbrowserlite)\/([\w\.]+)/i],[i,o],[/(QQ)\/([\d\.]+)/i],[i,o],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[i,o],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[i,o],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[i,o],[/(MetaSr)[\/\s]?([\w\.]+)/i],[i],[/(LBBROWSER)/i],[i],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[o,[i,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[o,[i,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[o,[i,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[i,/(.+)/,"$1 WebView"],o],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[i,/(.+(?:g|us))(.+)/,"$1 $2"],o],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[o,[i,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[i,o],[/(dolfin)\/([\w\.]+)/i],[[i,"Dolphin"],o],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[i,"Chrome"],o],[/(coast)\/([\w\.]+)/i],[[i,"Opera Coast"],o],[/fxios\/([\w\.-]+)/i],[o,[i,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[o,[i,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[o,i],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[i,"GSA"],o],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[i,[o,m.str,b.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[i,o],[/(navigator|netscape)\/([\w\.-]+)/i],[[i,"Netscape"],o],[/(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],[i,o]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[r,"amd64"]],[/(ia32(?=;))/i],[[r,v.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[r,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[r,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[r,/ower/,"",v.lowerize]],[/(sun4\w)[;\)]/i],[[r,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[r,v.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[t,l,[n,g]],[/applecoremedia\/[\w\.]+ \((ipad)/],[t,[l,"Apple"],[n,g]],[/(apple\s{0,1}tv)/i],[[t,"Apple TV"],[l,"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],[l,t,[n,g]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[t,[l,"Amazon"],[n,g]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[t,m.str,b.device.amazon.model],[l,"Amazon"],[n,h]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[t,l,[n,h]],[/\((ip[honed|\s\w*]+);/i],[t,[l,"Apple"],[n,h]],[/(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],[l,t,[n,h]],[/\(bb10;\s(\w+)/i],[t,[l,"BlackBerry"],[n,h]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[t,[l,"Asus"],[n,g]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[l,"Sony"],[t,"Xperia Tablet"],[n,g]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[t,[l,"Sony"],[n,h]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[l,t,[n,c]],[/android.+;\s(shield)\sbuild/i],[t,[l,"Nvidia"],[n,c]],[/(playstation\s[34portablevi]+)/i],[t,[l,"Sony"],[n,c]],[/(sprint\s(\w+))/i],[[l,m.str,b.device.sprint.vendor],[t,m.str,b.device.sprint.model],[n,h]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[l,t,[n,g]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[l,[t,/_/g," "],[n,h]],[/(nexus\s9)/i],[t,[l,"HTC"],[n,g]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[t,[l,"Huawei"],[n,h]],[/(microsoft);\s(lumia[\s\w]+)/i],[l,t,[n,h]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[t,[l,"Microsoft"],[n,c]],[/(kin\.[onetw]{3})/i],[[t,/\./g," "],[l,"Microsoft"],[n,h]],[/\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],[t,[l,"Motorola"],[n,h]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[t,[l,"Motorola"],[n,g]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[l,v.trim],[t,v.trim],[n,p]],[/hbbtv.+maple;(\d+)/i],[[t,/^/,"SmartTV"],[l,"Samsung"],[n,p]],[/\(dtv[\);].+(aquos)/i],[t,[l,"Sharp"],[n,p]],[/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],[[l,"Samsung"],t,[n,g]],[/smart-tv.+(samsung)/i],[l,[n,p],t],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[l,"Samsung"],t,[n,h]],[/sie-(\w*)/i],[t,[l,"Siemens"],[n,h]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[l,"Nokia"],t,[n,h]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[t,[l,"Acer"],[n,g]],[/android.+([vl]k\-?\d{3})\s+build/i],[t,[l,"LG"],[n,g]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[l,"LG"],t,[n,g]],[/(lg) netcast\.tv/i],[l,t,[n,p]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[t,[l,"LG"],[n,h]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[t,[l,"Lenovo"],[n,g]],[/linux;.+((jolla));/i],[l,t,[n,h]],[/((pebble))app\/[\d\.]+\s/i],[l,t,[n,f]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[l,t,[n,h]],[/crkey/i],[[t,"Chromecast"],[l,"Google"]],[/android.+;\s(glass)\s\d/i],[t,[l,"Google"],[n,f]],[/android.+;\s(pixel c)\s/i],[t,[l,"Google"],[n,g]],[/android.+;\s(pixel xl|pixel)\s/i],[t,[l,"Google"],[n,h]],[/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],[[t,/_/g," "],[l,"Xiaomi"],[n,h]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[t,/_/g," "],[l,"Xiaomi"],[n,g]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[t,[l,"Meizu"],[n,g]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[t,[l,"OnePlus"],[n,h]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[t,[l,"RCA"],[n,g]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[t,[l,"Dell"],[n,g]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[t,[l,"Verizon"],[n,g]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[l,"Barnes & Noble"],t,[n,g]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[t,[l,"NuVision"],[n,g]],[/android.+;\s(k88)\sbuild/i],[t,[l,"ZTE"],[n,g]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[t,[l,"Swiss"],[n,h]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[t,[l,"Swiss"],[n,g]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[t,[l,"Zeki"],[n,g]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[l,"Dragon Touch"],t,[n,g]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[t,[l,"Insignia"],[n,g]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[t,[l,"NextBook"],[n,g]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[l,"Voice"],t,[n,h]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[l,"LvTel"],t,[n,h]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[t,[l,"Envizen"],[n,g]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[l,t,[n,g]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[t,[l,"MachSpeed"],[n,g]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[l,t,[n,g]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[t,[l,"Rotor"],[n,g]],[/android.+(KS(.+))\s+build/i],[t,[l,"Amazon"],[n,g]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[l,t,[n,g]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[n,v.lowerize],l,t],[/(android[\w\.\s\-]{0,9});.+build/i],[t,[l,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[o,[i,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[i,o],[/rv\:([\w\.]{1,9}).+(gecko)/i],[o,i]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[i,o],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[i,[o,m.str,b.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[i,"Windows"],[o,m.str,b.os.windows.version]],[/\((bb)(10);/i],[[i,"BlackBerry"],o],[/(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],[i,o],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[i,"Symbian"],o],[/\((series40);/i],[i],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[i,"Firefox OS"],o],[/(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],[i,o],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[i,"Chromium OS"],o],[/(sunos)\s?([\w\.\d]*)/i],[[i,"Solaris"],o],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[i,o],[/(haiku)\s(\w+)/i],[i,o],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[o,/_/g,"."],[i,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[i,"Mac OS"],[o,/_/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],[i,o]]};a.VERSION="0.7.18",a.BROWSER={NAME:i,MAJOR:"major",VERSION:o},a.CPU={ARCHITECTURE:r},a.DEVICE={MODEL:t,VENDOR:l,TYPE:n,CONSOLE:c,MOBILE:h,SMARTTV:p,TABLET:g,WEARABLE:f,EMBEDDED:"embedded"},a.ENGINE={NAME:i,VERSION:o},a.OS={NAME:i,VERSION:o},typeof S!=e?(S=typeof k!=e&&k.exports?k.exports=a:S).UAParser=a:C(3)?(L=function(){return a}.call(S,C,S,k))===d||(k.exports=L):s&&(s.UAParser=a);var E,w=s&&(s.jQuery||s.Zepto);typeof w!=e&&(E=new a,w.ua=E.getResult(),w.ua.get=function(){return E.getUA()},w.ua.set=function(e){E.setUA(e);var t,i=E.getResult();for(t in i)w.ua[t]=i[t]})}("object"==typeof window?window:this)},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,a=i.defaultData,l=t.getNavigatorInstance=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},t=t.isIOS13Check=function(e){var t=l();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 a}},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:l,isIOS13Check:t}}],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))}),Y=(R=W)&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R,U=c(function(e){function t(b,y){if(b){"undefined"!=typeof window&&"function"!=typeof window.CustomEvent&&(r.prototype=window.Event.prototype,window.CustomEvent=r),y=w({},{minHorizontal:10,minVertical:10,deltaHorizontal:3,deltaVertical:5,preventScroll:!1,lockAxis:!0,touch:!0,mouse:!0},y=y||{});var E=[],t=!1,e=function(){t=!0},i=function(e){t=!1,s(e)},n=function(e){t&&(e.changedTouches=[{clientX:e.clientX,clientY:e.clientY}],a(e))};y.mouse&&(b.addEventListener("mousedown",e),b.addEventListener("mouseup",i),b.addEventListener("mousemove",n));var s=function(e){var t=Math.abs,i=Math.max,n=Math.min;if(E.length){for(var s="function"==typeof TouchEvent&&e instanceof TouchEvent,a=[],l=[],o={top:!1,right:!1,bottom:!1,left:!1},r=0;r<E.length;r++)a.push(E[r].x),l.push(E[r].y);var c=a[0],h=a[a.length-1],d=l[0],u=l[l.length-1],g={x:[c,h],y:[d,u]};1<E.length&&(v={detail:w({touch:s,target:e.target},g)},m=new CustomEvent("swiperelease",v),b.dispatchEvent(m));var p=a[0]-a[a.length-1],f="none",f=0<p?"left":"right",v=n.apply(Math,a),m=i.apply(Math,a);t(p)>=y.minHorizontal&&("left"==f?t(v-a[a.length-1])<=y.deltaHorizontal&&(o.left=!0):"right"!=f||t(m-a[a.length-1])<=y.deltaHorizontal&&(o.right=!0)),f="none",f=0<(p=l[0]-l[l.length-1])?"top":"bottom",v=n.apply(Math,l),m=i.apply(Math,l),t(p)>=y.minVertical&&("top"==f?t(v-l[l.length-1])<=y.deltaVertical&&(o.top=!0):"bottom"!=f||t(m-l[l.length-1])<=y.deltaVertical&&(o.bottom=!0)),E=[],o.top||o.right||o.bottom||o.left?(y.lockAxis&&((o.left||o.right)&&t(c-h)>t(d-u)?o.top=o.bottom=!1:(o.top||o.bottom)&&t(c-h)<t(d-u)&&(o.left=o.right=!1)),o={detail:w({directions:o,touch:s,target:e.target},g)},o=new CustomEvent("swipe",o),b.dispatchEvent(o)):(g=new CustomEvent("swipecancel",{detail:w({touch:s,target:e.target},g)}),b.dispatchEvent(g))}},a=function(e){var t=e.changedTouches[0];E.push({x:t.clientX,y:t.clientY}),1<E.length&&(t={detail:{x:[E[0].x,E[E.length-1].x],y:[E[0].y,E[E.length-1].y],touch:"function"==typeof TouchEvent&&e instanceof TouchEvent,target:e.target}},t=new CustomEvent("swiping",t),(!0===y.preventScroll||"function"==typeof y.preventScroll&&y.preventScroll(t))&&e.preventDefault(),b.dispatchEvent(t))},l=!1;try{var o=Object.defineProperty({},"passive",{get:function(){l={passive:!y.preventScroll}}});window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}catch(b){}return y.touch&&(b.addEventListener("touchmove",a,l),b.addEventListener("touchend",s)),{off:function(){b.removeEventListener("touchmove",a,l),b.removeEventListener("touchend",s),b.removeEventListener("mousedown",e),b.removeEventListener("mouseup",i),b.removeEventListener("mousemove",n)}}}function r(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 w=Object.assign||function(e){for(var t,i=1;i<arguments.length;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e};e.exports=t,e.exports.default=t}),G=function(){function i(e,t){var i=void 0===t?{}:t,n=i.openSelector,s=void 0===n?"[data-ecl-menu-open]":n,a=i.closeSelector,l=void 0===a?"[data-ecl-menu-close]":a,o=i.backSelector,r=void 0===o?"[data-ecl-menu-back]":o,c=i.overlaySelector,h=void 0===c?"[data-ecl-menu-overlay]":c,d=i.innerSelector,u=void 0===d?"[data-ecl-menu-inner]":d,t=i.itemSelector,n=void 0===t?"[data-ecl-menu-item]":t,a=i.linkSelector,o=void 0===a?"[data-ecl-menu-link]":a,c=i.megaSelector,d=void 0===c?"[data-ecl-menu-mega]":c,t=i.subItemSelector,a=void 0===t?"[data-ecl-menu-subitem]":t,c=i.attachClickListener,t=void 0===c||c,c=i.attachSwipeListener,c=void 0===c||c,i=i.attachResizeListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.openSelector=s,this.closeSelector=l,this.backSelector=r,this.overlaySelector=h,this.innerSelector=u,this.itemSelector=n,this.linkSelector=o,this.megaSelector=d,this.subItemSelector=a,this.attachClickListener=t,this.attachSwipeListener=c,this.attachResizeListener=i,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.handleSwipe=this.handleSwipe.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=o(this.openSelector,this.element),this.close=o(this.closeSelector,this.element),this.back=o(this.backSelector,this.element),this.overlay=o(this.overlaySelector,this.element),this.inner=o(this.innerSelector,this.element),this.items=l(this.itemSelector,this.element),this.links=l(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)}),this.swipeInstance=U(document),this.attachSwipeListener&&document.addEventListener("swipe",this.handleSwipe),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.items&&!Y.isMobile&&this.items.forEach(function(e){t.checkMenuItem(e)}),this.stickyInstance=new H.Sticky(this.element),setTimeout(function(){t.element.classList.add("ecl-menu--transition")},500)},e.destroy=function(){var t=this;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.attachClickListener&&this.links&&this.links.forEach(function(e){e.parentElement.hasAttribute("data-ecl-has-children")&&e.removeEventListener("click",t.handleClickOnLink)}),this.attachSwipeListener&&document.removeEventListener("swipe",this.handleSwipe),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize)},e.useDesktopDisplay=function(){return!Y.isMobileOnly&&(Y.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&&!Y.isMobile&&t.items.forEach(function(e){t.checkMenuItem(e)}),t.element.classList.add("ecl-menu--transition")},200),this},e.handleSwipe=function(e){var t=e.detail.directions;return t.left&&this.handleClickOnOpen(e),t.right&&this.handleClickOnClose(e),this},e.checkMenuItem=function(e){var t=o(this.megaSelector,e);if(t){var i=l(this.subItemSelector,t);if(12<i.length)return e.classList.add("ecl-menu__item--full"),void(16<i.length&&i.slice(16).forEach(function(e){return e.classList.add("ecl-menu__subitem--extra")}));var n=t.getBoundingClientRect(),i=this.inner.getBoundingClientRect(),e=e.getBoundingClientRect(),n=n.width;i.width<e.left-i.left+n?t.classList.add("ecl-menu__mega--rtl"):t.classList.remove("ecl-menu__mega--rtl")}},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},i}(),q=function(){function h(e,t){var i=void 0===t?{}:t,n=i.defaultText,s=void 0===n?"":n,a=i.searchText,l=void 0===a?"":a,o=i.selectAllText,r=void 0===o?"":o,c=i.noResultsText,h=void 0===c?"":c,t=i.selectMultipleId,n=void 0===t?"select-multiple":t,a=i.selectMultipleSelector,o=void 0===a?"[data-ecl-select-multiple]":a,c=i.defaultTextAttribute,t=void 0===c?"data-ecl-select-default":c,a=i.searchTextAttribute,c=void 0===a?"data-ecl-select-search":a,a=i.selectAllTextAttribute,a=void 0===a?"data-ecl-select-all":a,i=i.noResultsTextAttribute,i=void 0===i?"data-ecl-select-no-results":i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.selectMultipleId=n,this.selectMultipleSelector=o,this.defaultTextAttribute=t,this.searchTextAttribute=c,this.selectAllTextAttribute=a,this.noResultsTextAttribute=i,this.defaultText=s,this.searchText=l,this.selectAllText=r,this.noResultsText=h,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.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)}h.autoInit=function(e,t){t=new h(e,t=void 0===t?{}:t);return t.init(),e.ECLSelect=t},h.createSvgIcon=function(e,t){var i=document.createElement("div");i.innerHTML=e;i=i.children[0];return i.removeAttribute("height"),i.removeAttribute("width"),i.setAttribute("focusable",!1),i.setAttribute("aria-hidden",!0),i.setAttribute("class",t),i},h.createCheckbox=function(e,t){if(!e||!t)return"";var i=e.id,n=e.text,s=e.disabled,a=e.selected,l=e.extraClass;if(!i||!n)return"";var o=document.createElement("div"),r=document.createElement("input"),c=document.createElement("label"),e=document.createElement("span");return l&&o.classList.add(l),a&&r.setAttribute("checked",!0),s&&(o.classList.add("ecl-checkbox--disabled"),r.setAttribute("disabled",s)),o.classList.add("ecl-checkbox"),o.setAttribute("data-select-multiple-value",n),r.classList.add("ecl-checkbox__input"),r.setAttribute("type","checkbox"),r.setAttribute("id",t+"-"+i),o.appendChild(r),c.classList.add("ecl-checkbox__label"),c.setAttribute("for",t+"-"+i),e.classList.add("ecl-checkbox__box"),e.appendChild(h.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 12L20 28l-8-8-4 4 12 12 20-20z"/></defs><use xlink:href="#id-3a"/></svg>',"ecl-icon ecl-icon--s ecl-checkbox__icon")),c.appendChild(e),c.appendChild(document.createTextNode(n)),o.appendChild(c),o},h.createSelectIcon=function(){var e=document.createElement("div");e.classList.add("ecl-select__icon");var t=h.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 38L24 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},h.checkCheckbox=function(e){e=e.target.closest(".ecl-checkbox").querySelector("input");return e.checked=!e.checked,e.checked};var e=h.prototype;return e.init=function(){var e,t=this;this.select=this.element;var i=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(h.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=h.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=h.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()},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.select.parentNode.classList.remove("ecl-select__container--hidden")},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;e.preventDefault(),h.checkCheckbox(e);var i=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=h.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 n=[],s=e.target.value.toLowerCase();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")});var t=n.filter(function(e){return e.querySelector("input").checked});0===n.length||n.length!==t.length?this.selectAll.querySelector("input").checked=!1:this.selectAll.querySelector("input").checked=!0;e=this.searchContainer.querySelector(".ecl-select__multiple-no-results");0!==n.length||e?0<n.length&&null!==e&&e.parentNode.removeChild(e):(t=document.createElement("div"),e=document.createElement("span"),t.classList.add("ecl-select__multiple-no-results"),e.innerHTML=this.textNoResults,t.appendChild(e),this.optionsContainer.appendChild(t)),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")},h}(),K=function(){function i(e,t){var i=void 0===t?{}:t,n=i.languageLinkSelector,s=void 0===n?"[data-ecl-language-selector]":n,a=i.languageListOverlaySelector,l=void 0===a?"[data-ecl-language-list-overlay]":a,o=i.closeOverlaySelector,t=void 0===o?"[data-ecl-language-list-close]":o,n=i.searchToggleSelector,a=void 0===n?"[data-ecl-search-toggle]":n,o=i.searchFormSelector,n=void 0===o?"[data-ecl-search-form]":o,o=i.loginToggleSelector,o=void 0===o?"[data-ecl-login-toggle]":o,i=i.loginBoxSelector,i=void 0===i?"[data-ecl-login-box]":i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=s,this.languageListOverlaySelector=l,this.closeOverlaySelector=t,this.searchToggleSelector=a,this.searchFormSelector=n,this.loginToggleSelector=o,this.loginBoxSelector=i,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=o(this.languageLinkSelector),this.languageListOverlay=o(this.languageListOverlaySelector),this.close=o(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=o(this.searchToggleSelector),this.searchForm=o(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=o(this.loginToggleSelector),this.loginBox=o(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin)},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)},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}(),X=function(){function i(e,t){var i=void 0===t?{}:t,n=i.languageLinkSelector,s=void 0===n?"[data-ecl-language-selector]":n,a=i.languageListOverlaySelector,l=void 0===a?"[data-ecl-language-list-overlay]":a,o=i.closeOverlaySelector,t=void 0===o?"[data-ecl-language-list-close]":o,n=i.searchToggleSelector,a=void 0===n?"[data-ecl-search-toggle]":n,o=i.searchFormSelector,n=void 0===o?"[data-ecl-search-form]":o,o=i.loginToggleSelector,o=void 0===o?"[data-ecl-login-toggle]":o,i=i.loginBoxSelector,i=void 0===i?"[data-ecl-login-box]":i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=s,this.languageListOverlaySelector=l,this.closeOverlaySelector=t,this.searchToggleSelector=a,this.searchFormSelector=n,this.loginToggleSelector=o,this.loginBoxSelector=i,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=o(this.languageLinkSelector),this.languageListOverlay=o(this.languageListOverlaySelector),this.close=o(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=o(this.searchToggleSelector),this.searchForm=o(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=o(this.loginToggleSelector),this.loginBox=o(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin)},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)},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}(),$=function(){function i(e,t){var i=void 0===t?{}:t,n=i.languageLinkSelector,s=void 0===n?"[data-ecl-language-selector]":n,a=i.languageListOverlaySelector,l=void 0===a?"[data-ecl-language-list-overlay]":a,o=i.closeOverlaySelector,t=void 0===o?"[data-ecl-language-list-close]":o,n=i.searchToggleSelector,a=void 0===n?"[data-ecl-search-toggle]":n,o=i.searchFormSelector,n=void 0===o?"[data-ecl-search-form]":o,o=i.loginToggleSelector,o=void 0===o?"[data-ecl-login-toggle]":o,i=i.loginBoxSelector,i=void 0===i?"[data-ecl-login-box]":i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=s,this.languageListOverlaySelector=l,this.closeOverlaySelector=t,this.searchToggleSelector=a,this.searchFormSelector=n,this.loginToggleSelector=o,this.loginBoxSelector=i,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=o(this.languageLinkSelector),this.languageListOverlay=o(this.languageListOverlaySelector),this.close=o(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=o(this.searchToggleSelector),this.searchForm=o(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=o(this.loginToggleSelector),this.loginBox=o(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin)},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)},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}(),t=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.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-27a" d="M32 30l-8-13-8 13z"/></defs><use xlink:href="#id-27a"/></svg>';t=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;this.sortHeadings=l(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))});var e=o("tbody",this.element);[].concat(l("tr",e)).forEach(function(e,t){e.setAttribute("data-ecl-table-order",t)})},e.destroy=function(){var t=this;this.sortHeadings&&this.sortHeadings.forEach(function(e){e.removeEventListener("click",t.handleClickOnSort)})},e.handleClickOnSort=function(t){for(var e=t.closest("table"),i=o("tbody",e),n=t.getAttribute("aria-sort"),s=0,a=t.previousElementSibling;a;)s+=a.getAttribute("colspan")?Number(a.getAttribute("colspan")):1,a=a.previousElementSibling;e=function(n,s){return function(e,t){return i=(s?e:t).children[n].textContent,e=(s?t:e).children[n].textContent,""===i||""===e||Number.isNaN(+i)||Number.isNaN(+e)?i.toString().localeCompare(e):i-e;var i}},n="descending"===n?([].concat(l("tr",i)).forEach(function(e,t){t=o("[data-ecl-table-order='"+t+"']");i.appendChild(t)}),null):([].concat(l("tr",i)).sort(e(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}(),L=function(){function i(e,t){var i=void 0===t?{}:t,n=i.buttonSelector,s=void 0===n?"[data-ecl-timeline-button]":n,a=i.labelSelector,t=void 0===a?"[data-ecl-label]":a,n=i.labelExpanded,a=void 0===n?"data-ecl-label-expanded":n,n=i.labelCollapsed,n=void 0===n?"data-ecl-label-collapsed":n,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.buttonSelector=s,this.labelSelector=t,this.labelExpanded=a,this.labelCollapsed=n,this.attachClickListener=i,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=o(this.buttonSelector,this.element),this.label=o(this.labelSelector,this.element),this.attachClickListener&&this.button&&this.button.addEventListener("click",this.handleClickOnButton)},e.destroy=function(){this.attachClickListener&&this.button&&this.button.removeEventListener("click",this.handleClickOnButton)},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=s,e.BreadcrumbCore=m,e.BreadcrumbHarmonised=w,e.BreadcrumbStandardised=b,e.Datepicker=v,e.Expandable=k,e.FileDownload=S,e.FileUpload=C,e.Gallery=F,e.InpageNavigation=V,e.Menu=G,e.Message=j,e.Select=q,e.SiteHeaderCore=K,e.SiteHeaderHarmonised=X,e.SiteHeaderStandardised=$,e.Table=t,e.Timeline=L,e.autoInit=function(e){var t=void 0===e?{}:e,e=t.root,e=void 0===e?document:e,n=function(e,t){if(null==e)return{};for(var i,n={},s=Object.keys(e),a=0;a<s.length;a++)i=s[a],0<=t.indexOf(i)||(n[i]=e[i]);return n}(t,a);if(!ECL)throw new TypeError("Called autoInit but ECL is not present");var s=[],i=l("[data-ecl-auto-init]",e),t=function(){i.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+"'");i=i.autoInit(e,n);s.push(i),e.setAttribute("data-ecl-auto-initialized","true")})},e=t;return t(),{update:e,destroy:function(){i.filter(function(e){return"true"===e.getAttribute("data-ecl-auto-initialized")}).forEach(function(e){var t=e.getAttribute("data-ecl-auto-init");t&&ECL[t]&&ECL[t].destroy&&(ECL[t].destroy(),e.removeAttribute("data-ecl-auto-initialized"))})},components:s}},Object.defineProperty(e,"__esModule",{value:!0}),e}({},moment);
|
|
1
|
+
/* @ecl/preset-ec - 3.1.3 Built on 2021-12-01T15:20:50.441Z */
|
|
2
|
+
var ECL=function(e,t){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=i(t);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 l(e,t){return void 0===t&&(t=document),[].slice.call(t.querySelectorAll(e))}function o(e,t){return(t=void 0===t?document:t).querySelector(e)}var a=["root"],s=function(){function i(e,t){var i=void 0===t?{}:t,n=i.toggleSelector,s=void 0===n?"[data-ecl-accordion-toggle]":n,a=i.iconSelector,t=void 0===a?"[data-ecl-accordion-icon]":a,n=i.labelExpanded,a=void 0===n?"data-ecl-label-expanded":n,n=i.labelCollapsed,n=void 0===n?"data-ecl-label-collapsed":n,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=s,this.iconSelector=t,this.attachClickListener=i,this.labelExpanded=a,this.labelCollapsed=n,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=l(this.toggleSelector,this.element),this.label=o(this.labelSelector,this.element),this.attachClickListener&&this.toggles&&this.toggles.forEach(function(e){e.addEventListener("click",t.handleClickOnToggle.bind(t,e))})},e.destroy=function(){var t=this;this.attachClickListener&&this.toggles&&this.toggles.forEach(function(e){e.removeEventListener("click",t.handleClickOnToggle)})},e.handleClickOnToggle=function(e){var t=o("#"+e.getAttribute("aria-controls"),this.element);if(!t)throw new TypeError("Target has to be provided for accordion (aria-controls)");var i=!0===this.forceClose||"true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",i?"false":"true"),t.hidden=i;var n=o(this.iconSelector,e);!n||(t=o("use",n))&&(n=t.getAttribute("xlink:href"),s="",s=i?n.replace("minus","plus"):n.replace("plus","minus"),t.setAttribute("xlink:href",s));var s=o(".ecl-accordion__toggle-label",e);return s&&(s.textContent=i?e.getAttribute(this.labelCollapsed):e.getAttribute(this.labelExpanded)),this},i}(),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e,t){return e(t={exports:{}},t.exports),t.exports}function h(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?"true"!==e.contentEditable&&("AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex"))?e.tabIndex:0:t}function d(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function u(e){return"INPUT"===e.tagName}function g(e){if(!e.name)return 1;function t(e){return i.querySelectorAll('input[type="radio"][name="'+e+'"]')}var i=e.form||e.ownerDocument;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 u(t=e)&&"radio"===t.type&&!g(e);var t}function y(e,t){return!(t.disabled||u(i=t)&&"hidden"===i.type||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var i=T.call(e,"details>summary:first-of-type")?e.parentElement:e;if(T.call(i,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){i=e.getBoundingClientRect(),t=i.width,i=i.height;return 0===t&&0===i}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||"DETAILS"===(e=t).tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})||function(e){if(u(e)||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||"BUTTON"===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!n.contains(e)}return!0}t=t.parentElement}return!1}(t));var i}function E(e,t){var i,n,s=[],a=[];return(i=e,n=(t=t||{}).includeContainer,e=function(e,t){return!(!y(e,t)||f(t)||h(t)<0)}.bind(null,t),t=Array.prototype.slice.apply(i.querySelectorAll(x)),n&&T.call(i,x)&&t.unshift(i),t=t.filter(e)).forEach(function(e,t){var i=h(e);0===i?s.push(e):a.push({documentOrder:t,tabIndex:i,node:e})}),a.sort(d).map(function(e){return e.node}).concat(s)}var p=c(function(e,t){!function(){var moment;try{moment=n.default}catch(e){}e.exports=function(moment){var o=typeof moment==="function",a=!!window.addEventListener,g=window.document,h=window.setTimeout,l=function e(t,i,n,s){if(a)t.addEventListener(i,n,!!s);else t.attachEvent("on"+i,n)},i=function e(t,i,n,s){if(a)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},f=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))},I=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(I(t))t.setHours(0,0,0,0)},P=function e(t,i){return t.getTime()===i.getTime()},c=function e(t,i,n){var s,a;for(s in i){a=t[s]!==undefined;if(a&&typeof i[s]==="object"&&i[s]!==null&&i[s].nodeName===undefined)if(I(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||!a)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=c(s,n);t.dispatchEvent(s)}else if(g.createEventObject){s=g.createEventObject();s=c(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},v={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(),a=i,l=a-1,o=7,r=function e(t){return(t+o-1)%o};t.setDate(n+l-r(s));var c=new Date(t.getFullYear(),0,a),h=24*60*60*1e3,d=(t.getTime()-c.getTime())/h,u=1+Math.round((d-l+r(c.getDay()))/o);return u},H=function e(t,i,n,s){var a=new Date(n,i,t),l=o?moment(a).isoWeek():y(a,s);return'<td class="pika-week">'+l+"</td>"},z=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>"},k=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,a,l){var o,r,c,h=t._o,d=n===h.minYear,u=n===h.maxYear,g='<div id="'+l+'" class="pika-title" role="heading" aria-live="assertive">',f,p,v=true,m=true;for(c=[],o=0;o<12;o++)c.push('<option value="'+(n===a?o-i:12+o-i)+'"'+(o===s?' selected="selected"':"")+(d&&o<h.minMonth||u&&o>h.maxMonth?' disabled="disabled"':"")+">"+h.i18n.months[o]+"</option>");f='<div class="pika-label">'+h.i18n.months[s]+'<select class="pika-select pika-select-month" tabindex="-1">'+c.join("")+"</select></div>";if(b(h.yearRange)){o=h.yearRange[0];r=h.yearRange[1]+1}else{o=n-h.yearRange;r=1+n+h.yearRange}for(c=[];o<r&&o<=h.maxYear;o++)if(o>=h.minYear)c.push('<option value="'+o+'"'+(o===n?' selected="selected"':"")+">"+o+"</option>");p='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+c.join("")+"</select></div>";if(h.showMonthAfterYear)g+=p+f;else g+=f+p;if(d&&(s===0||h.minMonth>=s))v=false;if(u&&(s===11||h.maxMonth<=s))m=false;if(i===0)g+='<button class="pika-prev'+(v?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>";if(i===t._o.numberOfMonths-1)g+='<button class="pika-next'+(m?"":" is-disabled")+'" type="button">'+h.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+'">'+k(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)h(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(I(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=h(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(!a&&r(t,"pika-select"))if(!t.onchange){t.setAttribute("onchange","return;");l(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:"");l(n.el,"mousedown",n._onMouseDown,true);l(n.el,"touchend",n._onMouseDown,true);l(n.el,"change",n._onChange);if(s.keyboardInput)l(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);l(s.field,"change",n._onInputChange);if(!s.defaultDate){s.defaultDate=n._parseFieldValue();s.setDefaultDate=true}}var i=s.defaultDate;if(I(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";l(s.trigger,"click",n._onInputClick);l(s.trigger,"focus",n._onInputFocus);l(s.trigger,"blur",n._onInputBlur)}else this.show()};return e.prototype={config:function e(t){if(!this._o)this._o=c({},v,true);var i=c(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(!I(i.minDate))i.minDate=false;if(!I(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))||v.yearRange;if(i.yearRange>100)i.yearRange=100}return i},toString:function e(t){t=t||this._o.format;if(!I(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 I(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(!I(t))return;var n=this._o.minDate,s=this._o.maxDate;if(I(n)&&t<n)t=n;else if(I(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(!I(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),a=t.getTime();s.setMonth(s.getMonth()+1);s.setDate(s.getDate()-1);i=a<n.getTime()||s.getTime()<a}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 a;if(t==="add")a=new Date(n.valueOf()+s);else if(t==="subtract")a=new Date(n.valueOf()-s);this.setDate(a)},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=v.minDate;this._o.minYear=v.minYear;this._o.minMonth=v.minMonth;this._o.startRange=v.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=v.maxDate;this._o.maxYear=v.maxYear;this._o.maxMonth=v.maxMonth;this._o.endRange=v.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,a=i.minMonth,l=i.maxMonth,o="",r;if(this._y<=n){this._y=n;if(!isNaN(a)&&this._m<a)this._m=a}if(this._y>=s){this._y=s;if(!isNaN(l)&&this._m>l)this._m=l}for(var c=0;c<i.numberOfMonths;c++){r="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);o+='<div class="pika-lendar">'+w(this,c,this.calendars[c].year,this.calendars[c].month,this.calendars[0].year,r)+this.render(this.calendars[c].year,this.calendars[c].month,r)+"</div>"}this.el.innerHTML=o;if(i.bound)if(i.field.type!=="hidden")h(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,a,l,o,r,c,h,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;a=window.innerWidth||g.documentElement.clientWidth;l=window.innerHeight||g.documentElement.clientHeight;o=window.pageYOffset||g.body.scrollTop||g.documentElement.scrollTop;d=true;u=true;if(typeof t.getBoundingClientRect==="function"){h=t.getBoundingClientRect();r=h.left+window.pageXOffset;c=h.bottom+window.pageYOffset}else{r=i.offsetLeft;c=i.offsetTop+i.offsetHeight;while(i=i.offsetParent){r+=i.offsetLeft;c+=i.offsetTop}}if(this._o.reposition&&r+n>a||this._o.position.indexOf("right")>-1&&r-n+t.offsetWidth>0){r=r-n+t.offsetWidth;d=false}if(this._o.reposition&&c+s>l+o||this._o.position.indexOf("top")>-1&&c-s-t.offsetHeight>0){c=c-s-t.offsetHeight;u=false}this.el.style.left=r+"px";this.el.style.top=c+"px";f(this.el,d?"left-aligned":"right-aligned");f(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,a=new Date,l=B(t,i),o=new Date(t,i,1).getDay(),r=[],c=[];R(a);if(s.firstDay>0){o-=s.firstDay;if(o<0)o+=7}var h=i===0?11:i-1,d=i===11?0:i+1,u=i===0?t-1:t,g=i===11?t+1:t,f=B(u,h);var p=l+o,v=p;while(v>7)v-=7;p+=7-v;var m=false;for(var b=0,y=0;b<p;b++){var E=new Date(t,i,1+(b-o)),k=I(this._d)?P(E,this._d):false,w=P(E,a),S=s.events.indexOf(E.toDateString())!==-1?true:false,C=b<o||b>=l+o,L=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,D=s.minDate&&E<s.minDate||s.maxDate&&E>s.maxDate||s.disableWeekends&&N(E)||s.disableDayFn&&s.disableDayFn(E);if(C)if(b<o){L=f+L;x=h;T=u}else{L=L-l;x=d;T=g}var M={day:L,month:x,year:T,hasEvent:S,isSelected:k,isToday:w,isDisabled:D,isEmpty:C,isStartRange:O,isEndRange:A,isInRange:_,showDaysInNextAndPreviousMonths:s.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:s.enableSelectionDaysInNextAndPreviousMonths};if(s.pickWholeWeek&&k)m=true;c.push(F(M));if(++y===7){if(s.showWeekNumber)c.unshift(H(b-o,i,t,s.firstWeekOfYearMinDays));r.push(z(c,s.isRTL,s.pickWholeWeek,m));c=[];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){l(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"}f(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)}()}),v=function(){function i(e,t){var i=void 0===t?{}:t,n=i.format,s=void 0===n?"DD-MM-YYYY":n,a=i.theme,l=void 0===a?"ecl-datepicker-theme":a,t=i.yearRange,n=void 0===t?40:t,a=i.reposition,t=void 0!==a&&a,a=i.showDaysInNextAndPreviousMonths,a=void 0===a||a,i=i.enableSelectionDaysInNextAndPreviousMonths,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.format=s,this.theme=l,this.yearRange=n,this.showDaysInNextAndPreviousMonths=a,this.enableSelectionDaysInNextAndPreviousMonths=i,this.reposition=t}return 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},i.prototype.init=function(){return new p({field:this.element,format:this.format,yearRange:this.yearRange,firstDay:1,theme:this.theme,reposition:this.reposition,showDaysInNextAndPreviousMonths:this.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:this.enableSelectionDaysInNextAndPreviousMonths,onOpen:function(){var e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),t=this.el.getBoundingClientRect();t.width>=e&&(this.el.style.width="auto",this.el.style.right=t.left+"px")}})},i}(),m=function(){function i(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-core-ellipsis-button]":n,a=i.ellipsisSelector,l=void 0===a?"[data-ecl-breadcrumb-core-ellipsis]":a,o=i.segmentSelector,r=void 0===o?"[data-ecl-breadcrumb-core-item]":o,t=i.expandableItemsSelector,n=void 0===t?'[data-ecl-breadcrumb-core-item="expandable"]':t,a=i.staticItemsSelector,o=void 0===a?'[data-ecl-breadcrumb-core-item="static"]':a,t=i.onPartialExpand,a=void 0===t?null:t,t=i.onFullExpand,t=void 0===t?null:t,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=l,this.segmentSelector=r,this.expandableItemsSelector=n,this.staticItemsSelector=o,this.onPartialExpand=a,this.onFullExpand=t,this.attachClickListener=i,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=o(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=l(this.segmentSelector,this.element),this.staticElements=l(this.staticItemsSelector,this.element),this.expandableElements=l(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=o(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=o(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}(),b=function(){function i(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-standardised-ellipsis-button]":n,a=i.ellipsisSelector,l=void 0===a?"[data-ecl-breadcrumb-standardised-ellipsis]":a,o=i.segmentSelector,r=void 0===o?"[data-ecl-breadcrumb-standardised-item]":o,t=i.expandableItemsSelector,n=void 0===t?'[data-ecl-breadcrumb-standardised-item="expandable"]':t,a=i.staticItemsSelector,o=void 0===a?'[data-ecl-breadcrumb-standardised-item="static"]':a,t=i.onPartialExpand,a=void 0===t?null:t,t=i.onFullExpand,t=void 0===t?null:t,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=l,this.segmentSelector=r,this.expandableItemsSelector=n,this.staticItemsSelector=o,this.onPartialExpand=a,this.onFullExpand=t,this.attachClickListener=i,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=o(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=l(this.segmentSelector,this.element),this.staticElements=l(this.staticItemsSelector,this.element),this.expandableElements=l(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=o(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=o(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}(),k=function(){function i(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-harmonised-ellipsis-button]":n,a=i.ellipsisSelector,l=void 0===a?"[data-ecl-breadcrumb-harmonised-ellipsis]":a,o=i.segmentSelector,r=void 0===o?"[data-ecl-breadcrumb-harmonised-item]":o,t=i.expandableItemsSelector,n=void 0===t?'[data-ecl-breadcrumb-harmonised-item="expandable"]':t,a=i.staticItemsSelector,o=void 0===a?'[data-ecl-breadcrumb-harmonised-item="static"]':a,t=i.onPartialExpand,a=void 0===t?null:t,t=i.onFullExpand,t=void 0===t?null:t,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=l,this.segmentSelector=r,this.expandableItemsSelector=n,this.staticItemsSelector=o,this.onPartialExpand=a,this.onFullExpand=t,this.attachClickListener=i,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=o(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=l(this.segmentSelector,this.element),this.staticElements=l(this.staticItemsSelector,this.element),this.expandableElements=l(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=o(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=o(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 i=void 0===t?{}:t,n=i.toggleSelector,s=void 0===n?"[data-ecl-expandable-toggle]":n,a=i.labelSelector,t=void 0===a?"[data-ecl-label]":a,n=i.labelExpanded,a=void 0===n?"data-ecl-label-expanded":n,n=i.labelCollapsed,n=void 0===n?"data-ecl-label-collapsed":n,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=s,this.labelSelector=t,this.labelExpanded=a,this.labelCollapsed=n,this.attachClickListener=i,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=o(this.toggleSelector,this.element),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),this.label=o(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)},e.destroy=function(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle)},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}(),S=function(){function i(e,t){var i=void 0===t?{}:t,n=i.translationToggleSelector,t=void 0===n?"[data-ecl-file-translation-toggle]":n,n=i.translationContainerSelector,n=void 0===n?"[data-ecl-file-translation-container]":n,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.translationToggleSelector=t,this.translationContainerSelector=n,this.attachClickListener=i,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=o(this.translationToggleSelector,this.element),this.translationContainer=o(this.translationContainerSelector,this.element),this.attachClickListener&&this.translationToggle&&this.translationToggle.addEventListener("click",this.handleClickOnToggle)},e.destroy=function(){this.attachClickListener&&this.translationToggle&&this.translationToggle.removeEventListener("click",this.handleClickOnToggle)},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}(),C=function(){function i(e,t){var i=void 0===t?{}:t,n=i.groupSelector,s=void 0===n?"[data-ecl-file-upload-group]":n,a=i.buttonSelector,l=void 0===a?"[data-ecl-file-upload-button]":a,t=i.listSelector,n=void 0===t?"[data-ecl-file-upload-list]":t,a=i.labelChoose,t=void 0===a?"data-ecl-file-upload-label-choose":a,a=i.labelReplace,a=void 0===a?"data-ecl-file-upload-label-replace":a,i=i.attachChangeListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.groupSelector=s,this.buttonSelector=l,this.listSelector=n,this.labelChoose=t,this.labelReplace=a,this.attachChangeListener=i,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=o(this.buttonSelector,this.fileUploadGroup),this.fileUploadList=o(this.listSelector,this.fileUploadGroup),this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.addEventListener("change",this.handleChange)},e.destroy=function(){this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.removeEventListener("change",this.handleChange)},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 i=(t=void 0===t?2:t)<0?0:t,t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(i))+" "+["Bytes","kB","MB","GB","TB","PB","EB","ZB","YB"][t]}(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}(),L=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],x=L.join(","),T="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,O=L.concat("iframe").join(",");function A(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 _(n){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?A(Object(s),!0).forEach(function(e){var t,i;t=n,e=s[i=e],i in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(s)):A(Object(s)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(s,e))})}return n}function D(e){return setTimeout(e,0)}function M(e,i){var n=-1;return e.every(function(e,t){return!i(e)||(n=t,!1)}),n}function I(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 N(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]:v[i||t]}function n(t){return!(!t||!m.containers.some(function(e){return e.contains(t)}))}function l(e){var t=v[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){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 a=t;if("string"==typeof t&&!(a=p.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a}function s(){var e,t=l("initialFocus");if(!1===t)return!1;if(!(t=void 0===t?n(p.activeElement)?p.activeElement:(e=m.tabbableGroups[0])&&e.firstTabbableNode||l("fallbackFocus"):t))throw new Error("Your focus-trap needs to have at least one focusable element");return t}function o(){if(m.tabbableGroups=m.containers.map(function(e){var t=E(e);if(0<t.length)return{container:e,firstTabbableNode:t[0],lastTabbableNode:t[t.length-1]}}).filter(function(e){return!!e}),m.tabbableGroups.length<=0&&!l("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;!1!==e&&e!==p.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!v.preventScroll}),m.mostRecentlyFocusedNode=e,(t=e).tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select&&e.select()):r(s()))}function c(e){var t=l("setReturnFocus",e);return t||!1!==t&&e}function i(e){var t=N(e);n(t)||(I(v.clickOutsideDeactivates,e)?b.deactivate({returnFocus:v.returnFocusOnDeactivate&&!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==T.call(e,O)&&y(t,e)}(t)}):I(v.allowOutsideClick,e)||e.preventDefault())}function h(e){var t=N(e),i=n(t);i||t instanceof Document?i&&(m.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),r(m.mostRecentlyFocusedNode||s()))}function d(e){if(("Escape"===(t=e).key||"Esc"===t.key||27===t.keyCode)&&!1!==I(v.escapeDeactivates,e))return e.preventDefault(),void b.deactivate();var t;"Tab"!==(t=e).key&&9!==t.keyCode||function(e){var t=N(e);o();var i,n,s,a=null;0<m.tabbableGroups.length?(i=M(m.tabbableGroups,function(e){return e.container.contains(t)}))<0?a=e.shiftKey?m.tabbableGroups[m.tabbableGroups.length-1].lastTabbableNode:m.tabbableGroups[0].firstTabbableNode:e.shiftKey?0<=(n=(n=M(m.tabbableGroups,function(e){e=e.firstTabbableNode;return t===e}))<0&&m.tabbableGroups[i].container===t?i:n)&&(s=0===n?m.tabbableGroups.length-1:n-1,a=m.tabbableGroups[s].lastTabbableNode):0<=(s=(s=M(m.tabbableGroups,function(e){e=e.lastTabbableNode;return t===e}))<0&&m.tabbableGroups[i].container===t?i:s)&&(s=s===m.tabbableGroups.length-1?0:s+1,a=m.tabbableGroups[s].firstTabbableNode):a=l("fallbackFocus"),a&&(e.preventDefault(),r(a))}(e)}function u(e){var t;I(v.clickOutsideDeactivates,e)||(t=N(e),n(t)||I(v.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation()))}function g(){return m.active&&(F.activateTrap(b),m.delayInitialFocusTimer=v.delayInitialFocus?D(function(){r(s())}):r(s()),p.addEventListener("focusin",h,!0),p.addEventListener("mousedown",i,{capture:!0,passive:!1}),p.addEventListener("touchstart",i,{capture:!0,passive:!1}),p.addEventListener("click",u,{capture:!0,passive:!1}),p.addEventListener("keydown",d,{capture:!0,passive:!1}),b)}function f(){return m.active&&(p.removeEventListener("focusin",h,!0),p.removeEventListener("mousedown",i,!0),p.removeEventListener("touchstart",i,!0),p.removeEventListener("click",u,!0),p.removeEventListener("keydown",d,!0),b)}var p=(null==t?void 0:t.document)||document,v=_({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),m={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},b={activate:function(e){if(m.active)return this;var t=a(e,"onActivate"),i=a(e,"onPostActivate"),n=a(e,"checkCanFocusTrap");n||o(),m.active=!0,m.paused=!1,m.nodeFocusedBeforeActivation=p.activeElement,t&&t();t=function(){n&&o(),g(),i&&i()};return n?n(m.containers.concat()).then(t,t):t(),this},deactivate:function(e){if(!m.active)return this;clearTimeout(m.delayInitialFocusTimer),m.delayInitialFocusTimer=void 0,f(),m.active=!1,m.paused=!1,F.deactivateTrap(b);var t=a(e,"onDeactivate"),i=a(e,"onPostDeactivate"),n=a(e,"checkCanReturnFocus");t&&t();var s=a(e,"returnFocus","returnFocusOnDeactivate"),e=function(){D(function(){s&&r(c(m.nodeFocusedBeforeActivation)),i&&i()})};return s&&n?n(c(m.nodeFocusedBeforeActivation)).then(e,e):e(),this},pause:function(){return m.paused||!m.active||(m.paused=!0,f()),this},unpause:function(){return m.paused&&m.active&&(m.paused=!1,o(),g()),this},updateContainerElements:function(e){e=[].concat(e).filter(Boolean);return m.containers=e.map(function(e){return"string"==typeof e?p.querySelector(e):e}),m.active&&o(),this}};return b.updateContainerElements(e),b}var R,P,F=(R=[],{activateTrap:function(e){0<R.length&&((t=R[R.length-1])!==e&&t.pause());var t=R.indexOf(e);-1===t||R.splice(t,1),R.push(e)},deactivateTrap:function(e){e=R.indexOf(e);-1!==e&&R.splice(e,1),0<R.length&&R[R.length-1].unpause()}}),H=function(){function i(e,t){var i=void 0===t?{}:t,n=i.galleryItemSelector,s=void 0===n?"[data-ecl-gallery-item]":n,a=i.descriptionSelector,l=void 0===a?"[data-ecl-gallery-description]":a,o=i.metaSelector,r=void 0===o?"[data-ecl-gallery-meta]":o,c=i.closeButtonSelector,h=void 0===c?"[data-ecl-gallery-close]":c,d=i.viewAllSelector,u=void 0===d?"[data-ecl-gallery-all]":d,g=i.countSelector,f=void 0===g?"[data-ecl-gallery-count]":g,p=i.overlaySelector,v=void 0===p?"[data-ecl-gallery-overlay]":p,m=i.overlayHeaderSelector,b=void 0===m?"[data-ecl-gallery-overlay-header]":m,y=i.overlayFooterSelector,E=void 0===y?"[data-ecl-gallery-overlay-footer]":y,k=i.overlayMediaSelector,t=void 0===k?"[data-ecl-gallery-overlay-media]":k,n=i.overlayCounterCurrentSelector,a=void 0===n?"[data-ecl-gallery-overlay-counter-current]":n,o=i.overlayCounterMaxSelector,c=void 0===o?"[data-ecl-gallery-overlay-counter-max]":o,d=i.overlayDownloadSelector,g=void 0===d?"[data-ecl-gallery-overlay-download]":d,p=i.overlayShareSelector,m=void 0===p?"[data-ecl-gallery-overlay-share]":p,y=i.overlayDescriptionSelector,k=void 0===y?"[data-ecl-gallery-overlay-description]":y,n=i.overlayMetaSelector,o=void 0===n?"[data-ecl-gallery-overlay-meta]":n,d=i.overlayPreviousSelector,p=void 0===d?"[data-ecl-gallery-overlay-previous]":d,y=i.overlayNextSelector,n=void 0===y?"[data-ecl-gallery-overlay-next]":y,d=i.attachClickListener,y=void 0===d||d,d=i.attachKeyListener,d=void 0===d||d,i=i.attachResizeListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.galleryItemSelector=s,this.descriptionSelector=l,this.metaSelector=r,this.closeButtonSelector=h,this.viewAllSelector=u,this.countSelector=f,this.overlaySelector=v,this.overlayHeaderSelector=b,this.overlayFooterSelector=E,this.overlayMediaSelector=t,this.overlayCounterCurrentSelector=a,this.overlayCounterMaxSelector=c,this.overlayDownloadSelector=g,this.overlayShareSelector=m,this.overlayDescriptionSelector=k,this.overlayMetaSelector=o,this.overlayPreviousSelector=p,this.overlayNextSelector=n,this.attachClickListener=y,this.attachKeyListener=d,this.attachResizeListener=i,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=l(this.galleryItemSelector,this.element),this.closeButton=o(this.closeButtonSelector,this.element),this.viewAll=o(this.viewAllSelector,this.element),this.count=o(this.countSelector,this.element),this.overlay=o(this.overlaySelector,this.element),this.overlayHeader=o(this.overlayHeaderSelector,this.overlay),this.overlayFooter=o(this.overlayFooterSelector,this.overlay),this.overlayMedia=o(this.overlayMediaSelector,this.overlay),this.overlayCounterCurrent=o(this.overlayCounterCurrentSelector,this.overlay),this.overlayCounterMax=o(this.overlayCounterMaxSelector,this.overlay),this.overlayDownload=o(this.overlayDownloadSelector,this.overlay),this.overlayShare=o(this.overlayShareSelector,this.overlay),this.overlayDescription=o(this.overlayDescriptionSelector,this.overlay),this.overlayMeta=o(this.overlayMetaSelector,this.overlay),this.overlayPrevious=o(this.overlayPreviousSelector,this.overlay),this.overlayNext=o(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)},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)},e.checkScreen=function(){window.innerWidth>this.breakpointMd?this.isDesktop=!0:this.isDesktop=!1},e.hideItems=function(){var i=this;if(this.viewAll){if(this.isDesktop){var n=this.element.getBoundingClientRect().top,s=[];return this.galleryItems.forEach(function(e,t){e.parentNode.classList.remove("ecl-gallery__item--hidden"),e.getBoundingClientRect().top-n>2*i.imageHeight&&(s=[].concat(s,[t]))}),void s.forEach(function(e){i.galleryItems[e].parentNode.classList.add("ecl-gallery__item--hidden")})}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,i=(this.selectedItem=e).getAttribute("data-ecl-gallery-item-embed-src"),n=o("video",e),s=null;null!=i?((s=document.createElement("div")).classList.add("ecl-gallery__slider-embed"),(t=document.createElement("iframe")).setAttribute("src",i),t.setAttribute("frameBorder","0"),this.overlayMedia&&(s.appendChild(t),this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(s))):null!=n?((s=document.createElement("video")).setAttribute("poster",n.poster),s.setAttribute("controls","controls"),s.classList.add("ecl-gallery__slider-video"),this.overlayMedia&&(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(s)),l("source",n).forEach(function(e){var t=document.createElement("source");t.setAttribute("src",e.getAttribute("src")),t.setAttribute("type",e.getAttribute("type")),s.appendChild(t)}),l("track",n).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")),s.appendChild(t)}),s.load()):(a=o("img",e),(s=document.createElement("img")).setAttribute("src",a.getAttribute("src")),s.setAttribute("alt",a.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;var a=this.selectedItem.getAttribute("data-ecl-gallery-item-share");null!=a?(this.overlayShare.href=a,this.overlayShare.hidden=!1):this.overlayShare.hidden=!0,null!=i?this.overlayDownload.hidden=!0:(this.overlayDownload.href=this.selectedItem.href,this.overlayDownload.hidden=!1);i=o(this.metaSelector,e);this.overlayMeta.innerHTML=i.innerHTML;e=o(this.descriptionSelector,e);this.overlayDescription.innerHTML=e.innerHTML;e=this.overlay.clientHeight-this.overlayHeader.clientHeight-this.overlayFooter.clientHeight;this.overlayMedia&&Object.assign(s.style,{maxHeight:e+"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=o("iframe",this.overlayMedia);e&&e.remove();e=o("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;e<0&&(e=this.galleryItems.length-1);var t=o("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;e>=this.galleryItems.length&&(e=0);var t=o("video",this.selectedItem);return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this},i}(),z=c(function(b){!function(r,c){var e=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),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)}}var t,h=!1,i=void 0!==r;i&&r.getComputedStyle?(t=c.createElement("div"),["","-webkit-","-moz-","-ms-"].some(function(e){try{t.style.position=e+"sticky"}catch(e){}return""!=t.style.position})&&(h=!0)):h=!0;var a=!1,d="undefined"!=typeof ShadowRoot,l={top:null,left:null},o=[];function u(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}function g(e){return parseFloat(e)||0}function f(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t}var s=(e(p,[{key:"refresh",value:function(){var e,t,i,n,s,a,l,o;h||this._removed||(this._active&&this._deactivate(),e=this._node,t={position:(l=getComputedStyle(e)).position,top:l.top,display:l.display,marginTop:l.marginTop,marginBottom:l.marginBottom,marginLeft:l.marginLeft,marginRight:l.marginRight,cssFloat:l.cssFloat},isNaN(parseFloat(t.top))||"table-cell"==t.display||"none"==t.display||(this._active=!0,a=e.style.position,"sticky"!=l.position&&"-webkit-sticky"!=l.position||(e.style.position="static"),i=e.parentNode,o=d&&i instanceof ShadowRoot?i.host:i,n=e.getBoundingClientRect(),s=o.getBoundingClientRect(),l=getComputedStyle(o),this._parent={node:o,styles:{position:o.style.position},offsetHeight:o.offsetHeight},this._offsetToWindow={left:n.left,right:c.documentElement.clientWidth-n.right},this._offsetToParent={top:n.top-s.top-g(l.borderTopWidth),left:n.left-s.left-g(l.borderLeftWidth),right:-n.right+s.right-g(l.borderRightWidth)},this._styles={position:a,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},a=g(t.top),this._limits={start:n.top+r.pageYOffset-a,end:s.top+r.pageYOffset+o.offsetHeight-g(l.borderBottomWidth)-e.offsetHeight-a-g(t.marginBottom)},"absolute"!=(l=l.position)&&"relative"!=l&&(o.style.position="relative"),this._recalcPosition(),(o=this._clone={}).node=c.createElement("div"),u(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=f(o.node)))}},{key:"_recalcPosition",value:function(){if(this._active&&!this._removed){var e=l.top<=this._limits.start?"start":l.top>=this._limits.end?"end":"middle";if(this._stickyMode!=e){switch(e){case"start":u(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":u(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":u(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(f(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,u(this._node.style,this._styles),delete this._styles,o.some(function(e){return e!==t&&e._parent&&e._parent.node===t._parent.node})||u(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(),o.some(function(e,t){if(e._node===i._node)return o.splice(t,1),!0}),this._removed=!0}}]),p);function p(t){if(!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),!(t instanceof HTMLElement))throw new Error("First argument must be HTMLElement");if(o.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,o.push(this),this.refresh()}var v={stickies:o,Sticky:s,forceSticky:function(){h=!1,m(),this.refreshAll()},addOne:function(e){if(!(e instanceof HTMLElement)){if(!e.length||!e[0])return;e=e[0]}for(var t=0;t<o.length;t++)if(o[t]._node===e)return o[t];return new s(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?o.some(function(e){if(e._node===t)return n.push(e),!0})||n.push(new s(t)):n.push(void 0)})(e);return n}},refreshAll:function(){o.forEach(function(e){return e.refresh()})},removeOne:function(t){if(!(t instanceof HTMLElement)){if(!t.length||!t[0])return;t=t[0]}o.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];o.some(function(e){if(e._node===t)return e.remove(),!0})}(e)},removeAll:function(){for(;o.length;)o[0].remove()}};function m(){var e,t,i;function n(){r.pageXOffset!=l.left?(l.top=r.pageYOffset,l.left=r.pageXOffset,v.refreshAll()):r.pageYOffset!=l.top&&(l.top=r.pageYOffset,l.left=r.pageXOffset,o.forEach(function(e){return e._recalcPosition()}))}function s(){e=setInterval(function(){o.forEach(function(e){return e._fastCheck()})},500)}a||(a=!0,n(),r.addEventListener("scroll",n),r.addEventListener("resize",v.refreshAll),r.addEventListener("orientationchange",v.refreshAll),i=t=e=void 0,"hidden"in c?(t="hidden",i="visibilitychange"):"webkitHidden"in c&&(t="webkitHidden",i="webkitvisibilitychange"),i?(c[t]||s(),c.addEventListener(i,function(){c[t]?clearInterval(e):s()})):s())}h||m(),b.exports?b.exports=v:i&&(r.Stickyfill=v)}(window,document)}),V=c(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,h,d,u,s,g,l,o,f,a,p,v;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:r,e.exports=(h=n,d={navClass:"active",contentClass:"active",nested:!1,nestedClass:"active",offset:0,reflow:!1,events:!0},u=function(e,t,i){i.settings.events&&(i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:i}),t.dispatchEvent(i))},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})},l=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)<(h.innerHeight||document.documentElement.clientHeight):parseInt(e.top,10)<=t},o=function(){return h.innerHeight+h.pageYOffset>=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},f=function(e,t){var i,n,s=e[e.length-1];if(i=s,n=t,!(!o()||!l(i.content,n,!0)))return s;for(var a=e.length-1;0<=a;a--)if(l(e[a].content,t))return e[a]},a=function e(t,i){i.nested&&t.parentNode&&((t=t.parentNode.closest("li"))&&(t.classList.remove(i.nestedClass),e(t,i)))},p=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}))},v=function e(t,i){!i.nested||(t=t.parentNode.closest("li"))&&(t.classList.add(i.nestedClass),e(t,i))},function(e,t){var i,s,a,n,l,o={setup:function(){i=document.querySelectorAll(e),s=[],Array.prototype.forEach.call(i,function(e){var t=document.getElementById(decodeURIComponent(e.hash.substr(1)));t&&s.push({nav:e,content:t})}),g(s)}};o.detect=function(){var e,t,i,n=f(s,l);n?a&&n.content===a.content||(p(a,l),t=l,!(e=n)||(i=e.nav.closest("li"))&&(i.classList.add(t.navClass),e.content.classList.add(t.contentClass),v(i,t),u("gumshoeActivate",i,{link:e.nav,content:e.content,settings:t})),a=n):a&&(p(a,l),a=null)};function r(e){n&&h.cancelAnimationFrame(n),n=h.requestAnimationFrame(o.detect)}function c(e){n&&h.cancelAnimationFrame(n),n=h.requestAnimationFrame(function(){g(s),o.detect()})}o.destroy=function(){a&&p(a,l),h.removeEventListener("scroll",r,!1),l.reflow&&h.removeEventListener("resize",c,!1),l=n=a=i=s=null};return l=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||{}),o.setup(),o.detect(),h.addEventListener("scroll",r,!1),l.reflow&&h.addEventListener("resize",c,!1),o})}),W=function(){function i(e,t){var i=void 0===t?{}:t,n=i.stickySelector,s=void 0===n?"[data-ecl-inpage-navigation]":n,a=i.containerSelector,l=void 0===a?"[data-ecl-inpage-navigation-container]":a,o=i.inPageList,r=void 0===o?"[data-ecl-inpage-navigation-list]":o,c=i.spySelector,h=void 0===c?"[data-ecl-inpage-navigation-link]":c,d=i.toggleSelector,u=void 0===d?"[data-ecl-inpage-navigation-trigger]":d,t=i.linksSelector,n=void 0===t?"[data-ecl-inpage-navigation-link]":t,a=i.spyActiveContainer,o=void 0===a?"ecl-inpage-navigation--visible":a,c=i.spyOffset,d=void 0===c?20:c,t=i.spyClass,a=void 0===t?"ecl-inpage-navigation__item--active":t,c=i.spyTrigger,t=void 0===c?"[data-ecl-inpage-navigation-trigger-current]":c,c=i.attachClickListener,c=void 0===c||c,i=i.contentClass,i=void 0===i?"ecl-inpage-navigation__heading--active":i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.attachClickListener=c,this.stickySelector=s,this.containerSelector=l,this.toggleSelector=u,this.linksSelector=n,this.inPageList=r,this.spyActiveContainer=o,this.spySelector=h,this.spyOffset=d,this.spyClass=a,this.spyTrigger=t,this.contentClass=i,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 z.Sticky(this.element)},e.destroySticky=function(){this.stickyInstance&&this.stickyInstance.remove()},e.initScrollSpy=function(){var e,n,s,a,l=this;this.gumshoe=new V(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=o(this.containerSelector))&&(s=n=0,a=!1,this.stickyObserver=new IntersectionObserver(function(e){if(e&&e[0]){var t=e[0],i=t.boundingClientRect.y,e=t.intersectionRatio,t=t.isIntersecting;if(!a)return a=!0,n=i,void(s=e);i<n?s<e&&t||l.element.classList.remove(l.spyActiveContainer):n<i&&t&&s<e&&l.element.classList.add(l.spyActiveContainer),n=i,s=e}},{root:null}),this.stickyObserver.observe(e)))},e.activateScrollSpy=function(e){var t=o(this.spyTrigger);this.element.classList.add(this.spyActiveContainer),t.textContent=e.detail.content.textContent},e.deactivateScrollSpy=function(){var e=o(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=o(".ecl-col-l-9"),s=o("[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=l("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=o(this.toggleSelector,this.element),i=l(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))},e.update=function(){this.gumshoe.setup()},e.handleClickOnToggler=function(e){var t=o(this.inPageList,this.element),i=o(this.toggleSelector,this.element);e.preventDefault();e="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=o(this.inPageList,this.element),t=o(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()},i}(),j=function(){function i(e,t){var i=void 0===t?{}:t,t=i.closeSelector,t=void 0===t?"[data-ecl-message-close]":t,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.closeSelector=t,this.attachClickListener=i,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=o(this.closeSelector,this.element),this.attachClickListener&&this.close&&this.close.addEventListener("click",this.handleClickOnClose)},e.destroy=function(){this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.handleClickOnClose)},e.handleClickOnClose=function(){return this.element.parentNode&&this.element.parentNode.removeChild(this.element),this},i}(),Y=c(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=(s={},n.m=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,t,i){var n,s,a=i(2),l=i(0),o=l.BROWSER_TYPES,r=l.OS_TYPES,c=l.DEVICE_TYPES,h=i(4),d=h.checkType,u=h.broPayload,g=h.mobilePayload,f=h.wearPayload,p=h.consolePayload,v=h.stvPayload,m=h.getNavigatorInstance,b=h.isIOS13Check,y=new a,E=y.getBrowser(),k=y.getDevice(),w=y.getEngine(),S=y.getOS(),C=y.getUA(),L=o.CHROME,x=o.CHROMIUM,T=o.IE,O=o.INTERNET_EXPLORER,A=o.OPERA,_=o.FIREFOX,D=o.SAFARI,M=o.EDGE,I=o.YANDEX,N=o.MOBILE_SAFARI,B=c.MOBILE,R=c.TABLET,P=c.SMART_TV,F=c.BROWSER,H=c.WEARABLE,z=c.CONSOLE,V=r.ANDROID,W=r.WINDOWS_PHONE,j=r.IOS,Y=r.WINDOWS,U=r.MAC_OS,G=function(){return S.name===r.WINDOWS&&"10"===S.version&&("string"==typeof C&&-1!==C.indexOf("Edg/"))},q=function(){return E.name===M},K=function(){return b("iPad")},X=k.type===P,$=k.type===z,Q=k.type===H,Z=E.name===N||K(),J=E.name===x,ee=function(){switch(k.type){case B:case R:return!0;default:return!1}}()||K(),te=k.type===B,ie=k.type===R||K(),ne=k.type===F,se=S.name===V,ae=S.name===W,le=S.name===j||K(),oe=E.name===L,re=E.name===_,ce=E.name===D||E.name===N,he=E.name===A,de=E.name===O||E.name===T,ue=S.version||"none",ge=S.name||"none",fe=E.major,pe=E.version,ve=E.name,me=k.vendor||"none",be=k.model||"none",ye=w.name,Ee=w.version,ke=C,we=q()||G(),Se=E.name===I,l=k.type,i=(n=m())&&(/iPad|iPhone|iPod/.test(n.platform)||"MacIntel"===n.platform&&1<n.maxTouchPoints)&&!window.MSStream,h=K(),a=b("iPhone"),y=b("iPod"),o="string"==typeof(s=(s=m())&&s.userAgent.toLowerCase())&&/electron/.test(s),c=G(),K=q(),G=S.name===Y,q=S.name===U,Ce=d(k.type);e.exports={deviceDetect:function(){var e=Ce.isBrowser,t=Ce.isMobile,i=Ce.isTablet,n=Ce.isSmartTV,s=Ce.isConsole,a=Ce.isWearable;return e?u(e,E,w,S,C):n?v(n,w,S,C):s?p(s,w,S,C):t||i?g(Ce,k,S,C):a?f(a,w,S,C):void 0},isSmartTV:X,isConsole:$,isWearable:Q,isMobileSafari:Z,isChromium:J,isMobile:ee,isMobileOnly:te,isTablet:ie,isBrowser:ne,isAndroid:se,isWinPhone:ae,isIOS:le,isChrome:oe,isFirefox:re,isSafari:ce,isOpera:he,isIE:de,osVersion:ue,osName:ge,fullBrowserVersion:fe,browserVersion:pe,browserName:ve,mobileVendor:me,mobileModel:be,engineName:ye,engineVersion:Ee,getUA:ke,isEdge:we,isYandex:Se,deviceType:l,isIOS13:i,isIPad13:h,isIPhone13:a,isIPod13:y,isElectron:o,isEdgeChromium:c,isLegacyEdge:K,isWindows:G,isMacOs:q}},function(w,S,C){var L;!function(s,d){function a(e,t){if("object"==typeof e&&(t=e,e=d),!(this instanceof a))return new a(e,t).getResult();var i=e||(s&&s.navigator&&s.navigator.userAgent?s.navigator.userAgent:""),n=t?v.extend(y,t):y;return this.getBrowser=function(){var e={name:d,version:d};return m.rgx.call(e,i,n.browser),e.major=v.major(e.version),e},this.getCPU=function(){var e={architecture:d};return m.rgx.call(e,i,n.cpu),e},this.getDevice=function(){var e={vendor:d,model:d,type:d};return m.rgx.call(e,i,n.device),e},this.getEngine=function(){var e={name:d,version:d};return m.rgx.call(e,i,n.engine),e},this.getOS=function(){var e={name:d,version:d};return m.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}var u="function",e="undefined",t="model",i="name",n="type",l="vendor",o="version",r="architecture",c="console",h="mobile",g="tablet",f="smarttv",p="wearable",v={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,"")}},m={rgx:function(e,t){for(var i,n,s,a,l,o=0;o<t.length&&!a;){for(var r=t[o],c=t[o+1],h=i=0;h<r.length&&!a;)if(a=r[h++].exec(e))for(n=0;n<c.length;n++)l=a[++i],"object"==typeof(s=c[n])&&0<s.length?2==s.length?typeof s[1]==u?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3==s.length?typeof s[1]!=u||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):d:this[s[0]]=l?s[1].call(this,l,s[2]):d:4==s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):d):this[s]=l||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(v.has(t[i][n],e))return"?"===i?d:i}else if(v.has(t[i],e))return"?"===i?d:i;return e}},b={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"}}}},y={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[i,o],[/(opios)[\/\s]+([\w\.]+)/i],[[i,"Opera Mini"],o],[/\s(opr)\/([\w\.]+)/i],[[i,"Opera"],o],[/(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],[i,o],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[i,"IE"],o],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[i,"Edge"],o],[/(yabrowser)\/([\w\.]+)/i],[[i,"Yandex"],o],[/(puffin)\/([\w\.]+)/i],[[i,"Puffin"],o],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[i,"UCBrowser"],o],[/(comodo_dragon)\/([\w\.]+)/i],[[i,/_/g," "],o],[/(micromessenger)\/([\w\.]+)/i],[[i,"WeChat"],o],[/(qqbrowserlite)\/([\w\.]+)/i],[i,o],[/(QQ)\/([\d\.]+)/i],[i,o],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[i,o],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[i,o],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[i,o],[/(MetaSr)[\/\s]?([\w\.]+)/i],[i],[/(LBBROWSER)/i],[i],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[o,[i,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[o,[i,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[o,[i,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[i,/(.+)/,"$1 WebView"],o],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[i,/(.+(?:g|us))(.+)/,"$1 $2"],o],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[o,[i,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[i,o],[/(dolfin)\/([\w\.]+)/i],[[i,"Dolphin"],o],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[i,"Chrome"],o],[/(coast)\/([\w\.]+)/i],[[i,"Opera Coast"],o],[/fxios\/([\w\.-]+)/i],[o,[i,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[o,[i,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[o,i],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[i,"GSA"],o],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[i,[o,m.str,b.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[i,o],[/(navigator|netscape)\/([\w\.-]+)/i],[[i,"Netscape"],o],[/(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],[i,o]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[r,"amd64"]],[/(ia32(?=;))/i],[[r,v.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[r,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[r,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[r,/ower/,"",v.lowerize]],[/(sun4\w)[;\)]/i],[[r,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[r,v.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[t,l,[n,g]],[/applecoremedia\/[\w\.]+ \((ipad)/],[t,[l,"Apple"],[n,g]],[/(apple\s{0,1}tv)/i],[[t,"Apple TV"],[l,"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],[l,t,[n,g]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[t,[l,"Amazon"],[n,g]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[t,m.str,b.device.amazon.model],[l,"Amazon"],[n,h]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[t,l,[n,h]],[/\((ip[honed|\s\w*]+);/i],[t,[l,"Apple"],[n,h]],[/(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],[l,t,[n,h]],[/\(bb10;\s(\w+)/i],[t,[l,"BlackBerry"],[n,h]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[t,[l,"Asus"],[n,g]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[l,"Sony"],[t,"Xperia Tablet"],[n,g]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[t,[l,"Sony"],[n,h]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[l,t,[n,c]],[/android.+;\s(shield)\sbuild/i],[t,[l,"Nvidia"],[n,c]],[/(playstation\s[34portablevi]+)/i],[t,[l,"Sony"],[n,c]],[/(sprint\s(\w+))/i],[[l,m.str,b.device.sprint.vendor],[t,m.str,b.device.sprint.model],[n,h]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[l,t,[n,g]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[l,[t,/_/g," "],[n,h]],[/(nexus\s9)/i],[t,[l,"HTC"],[n,g]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[t,[l,"Huawei"],[n,h]],[/(microsoft);\s(lumia[\s\w]+)/i],[l,t,[n,h]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[t,[l,"Microsoft"],[n,c]],[/(kin\.[onetw]{3})/i],[[t,/\./g," "],[l,"Microsoft"],[n,h]],[/\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],[t,[l,"Motorola"],[n,h]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[t,[l,"Motorola"],[n,g]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[l,v.trim],[t,v.trim],[n,f]],[/hbbtv.+maple;(\d+)/i],[[t,/^/,"SmartTV"],[l,"Samsung"],[n,f]],[/\(dtv[\);].+(aquos)/i],[t,[l,"Sharp"],[n,f]],[/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],[[l,"Samsung"],t,[n,g]],[/smart-tv.+(samsung)/i],[l,[n,f],t],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[l,"Samsung"],t,[n,h]],[/sie-(\w*)/i],[t,[l,"Siemens"],[n,h]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[l,"Nokia"],t,[n,h]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[t,[l,"Acer"],[n,g]],[/android.+([vl]k\-?\d{3})\s+build/i],[t,[l,"LG"],[n,g]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[l,"LG"],t,[n,g]],[/(lg) netcast\.tv/i],[l,t,[n,f]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[t,[l,"LG"],[n,h]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[t,[l,"Lenovo"],[n,g]],[/linux;.+((jolla));/i],[l,t,[n,h]],[/((pebble))app\/[\d\.]+\s/i],[l,t,[n,p]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[l,t,[n,h]],[/crkey/i],[[t,"Chromecast"],[l,"Google"]],[/android.+;\s(glass)\s\d/i],[t,[l,"Google"],[n,p]],[/android.+;\s(pixel c)\s/i],[t,[l,"Google"],[n,g]],[/android.+;\s(pixel xl|pixel)\s/i],[t,[l,"Google"],[n,h]],[/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],[[t,/_/g," "],[l,"Xiaomi"],[n,h]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[t,/_/g," "],[l,"Xiaomi"],[n,g]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[t,[l,"Meizu"],[n,g]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[t,[l,"OnePlus"],[n,h]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[t,[l,"RCA"],[n,g]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[t,[l,"Dell"],[n,g]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[t,[l,"Verizon"],[n,g]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[l,"Barnes & Noble"],t,[n,g]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[t,[l,"NuVision"],[n,g]],[/android.+;\s(k88)\sbuild/i],[t,[l,"ZTE"],[n,g]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[t,[l,"Swiss"],[n,h]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[t,[l,"Swiss"],[n,g]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[t,[l,"Zeki"],[n,g]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[l,"Dragon Touch"],t,[n,g]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[t,[l,"Insignia"],[n,g]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[t,[l,"NextBook"],[n,g]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[l,"Voice"],t,[n,h]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[l,"LvTel"],t,[n,h]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[t,[l,"Envizen"],[n,g]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[l,t,[n,g]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[t,[l,"MachSpeed"],[n,g]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[l,t,[n,g]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[t,[l,"Rotor"],[n,g]],[/android.+(KS(.+))\s+build/i],[t,[l,"Amazon"],[n,g]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[l,t,[n,g]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[n,v.lowerize],l,t],[/(android[\w\.\s\-]{0,9});.+build/i],[t,[l,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[o,[i,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[i,o],[/rv\:([\w\.]{1,9}).+(gecko)/i],[o,i]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[i,o],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[i,[o,m.str,b.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[i,"Windows"],[o,m.str,b.os.windows.version]],[/\((bb)(10);/i],[[i,"BlackBerry"],o],[/(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],[i,o],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[i,"Symbian"],o],[/\((series40);/i],[i],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[i,"Firefox OS"],o],[/(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],[i,o],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[i,"Chromium OS"],o],[/(sunos)\s?([\w\.\d]*)/i],[[i,"Solaris"],o],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[i,o],[/(haiku)\s(\w+)/i],[i,o],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[o,/_/g,"."],[i,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[i,"Mac OS"],[o,/_/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],[i,o]]};a.VERSION="0.7.18",a.BROWSER={NAME:i,MAJOR:"major",VERSION:o},a.CPU={ARCHITECTURE:r},a.DEVICE={MODEL:t,VENDOR:l,TYPE:n,CONSOLE:c,MOBILE:h,SMARTTV:f,TABLET:g,WEARABLE:p,EMBEDDED:"embedded"},a.ENGINE={NAME:i,VERSION:o},a.OS={NAME:i,VERSION:o},typeof S!=e?(S=typeof w!=e&&w.exports?w.exports=a:S).UAParser=a:C(3)?(L=function(){return a}.call(S,C,S,w))===d||(w.exports=L):s&&(s.UAParser=a);var E,k=s&&(s.jQuery||s.Zepto);typeof k!=e&&(E=new a,k.ua=E.getResult(),k.ua.get=function(){return E.getUA()},k.ua.set=function(e){E.setUA(e);var t,i=E.getResult();for(t in i)k.ua[t]=i[t]})}("object"==typeof window?window:this)},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,a=i.defaultData,l=t.getNavigatorInstance=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},t=t.isIOS13Check=function(e){var t=l();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 a}},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:l,isIOS13Check:t}}],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))}),U=(P=Y)&&P.__esModule&&Object.prototype.hasOwnProperty.call(P,"default")?P.default:P,G=function(){function i(e,t){var i=void 0===t?{}:t,n=i.openSelector,s=void 0===n?"[data-ecl-menu-open]":n,a=i.closeSelector,l=void 0===a?"[data-ecl-menu-close]":a,o=i.backSelector,r=void 0===o?"[data-ecl-menu-back]":o,c=i.overlaySelector,h=void 0===c?"[data-ecl-menu-overlay]":c,d=i.innerSelector,t=void 0===d?"[data-ecl-menu-inner]":d,n=i.itemSelector,a=void 0===n?"[data-ecl-menu-item]":n,o=i.linkSelector,c=void 0===o?"[data-ecl-menu-link]":o,d=i.megaSelector,n=void 0===d?"[data-ecl-menu-mega]":d,o=i.subItemSelector,d=void 0===o?"[data-ecl-menu-subitem]":o,o=i.attachClickListener,o=void 0===o||o,i=i.attachResizeListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.openSelector=s,this.closeSelector=l,this.backSelector=r,this.overlaySelector=h,this.innerSelector=t,this.itemSelector=a,this.linkSelector=c,this.megaSelector=n,this.subItemSelector=d,this.attachClickListener=o,this.attachResizeListener=i,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.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=o(this.openSelector,this.element),this.close=o(this.closeSelector,this.element),this.back=o(this.backSelector,this.element),this.overlay=o(this.overlaySelector,this.element),this.inner=o(this.innerSelector,this.element),this.items=l(this.itemSelector,this.element),this.links=l(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)}),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.items&&!U.isMobile&&this.items.forEach(function(e){t.checkMenuItem(e)}),this.stickyInstance=new z.Sticky(this.element),setTimeout(function(){t.element.classList.add("ecl-menu--transition")},500)},e.destroy=function(){var t=this;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.attachClickListener&&this.links&&this.links.forEach(function(e){e.parentElement.hasAttribute("data-ecl-has-children")&&e.removeEventListener("click",t.handleClickOnLink)}),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize)},e.useDesktopDisplay=function(){return!U.isMobileOnly&&(U.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&&!U.isMobile&&t.items.forEach(function(e){t.checkMenuItem(e)}),t.element.classList.add("ecl-menu--transition")},200),this},e.checkMenuItem=function(e){var t=o(this.megaSelector,e);if(t){var i=l(this.subItemSelector,t);if(12<i.length)return e.classList.add("ecl-menu__item--full"),void(16<i.length&&i.slice(16).forEach(function(e){return e.classList.add("ecl-menu__subitem--extra")}));var n=t.getBoundingClientRect(),i=this.inner.getBoundingClientRect(),e=e.getBoundingClientRect(),n=n.width;i.width<e.left-i.left+n?t.classList.add("ecl-menu__mega--rtl"):t.classList.remove("ecl-menu__mega--rtl")}},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},i}(),q=function(){function i(e,t){var i=void 0===t?{}:t,n=i.toggleSelector,s=void 0===n?"[data-ecl-news-ticker-toggle]":n,a=i.prevSelector,l=void 0===a?"[data-ecl-news-ticker-prev]":a,o=i.nextSelector,r=void 0===o?"[data-ecl-news-ticker-next]":o,c=i.containerClass,h=void 0===c?".ecl-news-ticker__container":c,t=i.contentClass,n=void 0===t?".ecl-news-ticker__content":t,a=i.slidesClass,o=void 0===a?".ecl-news-ticker__slides":a,c=i.slideClass,t=void 0===c?".ecl-news-ticker__slide":c,a=i.currentSlideClass,c=void 0===a?".ecl-news-ticker__counter--current":a,a=i.attachClickListener,a=void 0===a||a,i=i.attachResizeListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=s,this.prevSelector=l,this.nextSelector=r,this.containerClass=h,this.contentClass=n,this.slidesClass=o,this.slideClass=t,this.currentSlideClass=c,this.attachClickListener=a,this.attachResizeListener=i,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.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=o(this.toggleSelector,this.element),this.btnPrev=o(this.prevSelector,this.element),this.btnNext=o(this.nextSelector,this.element),this.slidesContainer=o(this.slidesClass,this.element),this.container=o(this.containerClass,this.element),this.content=o(this.contentClass,this.element),this.slides=l(this.slideClass,this.element),this.total=this.slides.length;var e=this.slides[0],t=this.slides[this.slides.length-1],i=e.cloneNode(!0),t=t.cloneNode(!0);this.slidesContainer.appendChild(i),this.slidesContainer.insertBefore(t,e),this.slides=l(this.slideClass,this.element),this.moveSlides(!1),this.resizeTicker(),"none"!==window.getComputedStyle(this.toggle).display&&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)},e.destroy=function(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle),this.attachClickListener&&this.btnNext&&this.btnNext.removeEventListener("click",this.shiftSlide),this.attachClickListener&&this.btnPrev&&this.btnPrev.removeEventListener("click",this.shiftSlide),this.slidesContainer&&this.slidesContainer.removeEventListener("transitionend",this.checkIndex),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize)},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(){0===this.index&&(this.index=this.total,this.moveSlides(!1)),this.index===this.total+1&&(this.index=1,this.moveSlides(!1)),o(this.currentSlideClass,this.element).textContent=this.index,this.allowShift=!0},e.handleClickOnToggle=function(){var e=this,t=o(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(){var e=this;return clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(function(){e.moveSlides(!1),e.resizeTicker()},100),this.autoPlay&&this.handleClickOnToggle(),this},i}(),K=function(){function h(e,t){var i=void 0===t?{}:t,n=i.defaultText,s=void 0===n?"":n,a=i.searchText,l=void 0===a?"":a,o=i.selectAllText,r=void 0===o?"":o,c=i.noResultsText,h=void 0===c?"":c,t=i.selectMultipleId,n=void 0===t?"select-multiple":t,a=i.selectMultipleSelector,o=void 0===a?"[data-ecl-select-multiple]":a,c=i.defaultTextAttribute,t=void 0===c?"data-ecl-select-default":c,a=i.searchTextAttribute,c=void 0===a?"data-ecl-select-search":a,a=i.selectAllTextAttribute,a=void 0===a?"data-ecl-select-all":a,i=i.noResultsTextAttribute,i=void 0===i?"data-ecl-select-no-results":i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.selectMultipleId=n,this.selectMultipleSelector=o,this.defaultTextAttribute=t,this.searchTextAttribute=c,this.selectAllTextAttribute=a,this.noResultsTextAttribute=i,this.defaultText=s,this.searchText=l,this.selectAllText=r,this.noResultsText=h,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.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)}h.autoInit=function(e,t){t=new h(e,t=void 0===t?{}:t);return t.init(),e.ECLSelect=t},h.createSvgIcon=function(e,t){var i=document.createElement("div");i.innerHTML=e;i=i.children[0];return i.removeAttribute("height"),i.removeAttribute("width"),i.setAttribute("focusable",!1),i.setAttribute("aria-hidden",!0),i.setAttribute("class",t),i},h.createCheckbox=function(e,t){if(!e||!t)return"";var i=e.id,n=e.text,s=e.disabled,a=e.selected,l=e.extraClass;if(!i||!n)return"";var o=document.createElement("div"),r=document.createElement("input"),c=document.createElement("label"),e=document.createElement("span");return l&&o.classList.add(l),a&&r.setAttribute("checked",!0),s&&(o.classList.add("ecl-checkbox--disabled"),r.setAttribute("disabled",s)),o.classList.add("ecl-checkbox"),o.setAttribute("data-select-multiple-value",n),r.classList.add("ecl-checkbox__input"),r.setAttribute("type","checkbox"),r.setAttribute("id",t+"-"+i),o.appendChild(r),c.classList.add("ecl-checkbox__label"),c.setAttribute("for",t+"-"+i),e.classList.add("ecl-checkbox__box"),e.appendChild(h.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-2a" d="M36 12L20 28l-8-8-4 4 12 12 20-20z"/></defs><use xlink:href="#id-2a"/></svg>',"ecl-icon ecl-icon--s ecl-checkbox__icon")),c.appendChild(e),c.appendChild(document.createTextNode(n)),o.appendChild(c),o},h.createSelectIcon=function(){var e=document.createElement("div");e.classList.add("ecl-select__icon");var t=h.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 38L24 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},h.checkCheckbox=function(e){e=e.target.closest(".ecl-checkbox").querySelector("input");return e.checked=!e.checked,e.checked};var e=h.prototype;return e.init=function(){var e,t=this;this.select=this.element;var i=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(h.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=h.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=h.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()},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.select.parentNode.classList.remove("ecl-select__container--hidden")},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;e.preventDefault(),h.checkCheckbox(e);var i=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=h.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 n=[],s=e.target.value.toLowerCase();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")});var t=n.filter(function(e){return e.querySelector("input").checked});0===n.length||n.length!==t.length?this.selectAll.querySelector("input").checked=!1:this.selectAll.querySelector("input").checked=!0;e=this.searchContainer.querySelector(".ecl-select__multiple-no-results");0!==n.length||e?0<n.length&&null!==e&&e.parentNode.removeChild(e):(t=document.createElement("div"),e=document.createElement("span"),t.classList.add("ecl-select__multiple-no-results"),e.innerHTML=this.textNoResults,t.appendChild(e),this.optionsContainer.appendChild(t)),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")},h}(),X=function(){function i(e,t){var i=void 0===t?{}:t,n=i.languageLinkSelector,s=void 0===n?"[data-ecl-language-selector]":n,a=i.languageListOverlaySelector,l=void 0===a?"[data-ecl-language-list-overlay]":a,o=i.closeOverlaySelector,t=void 0===o?"[data-ecl-language-list-close]":o,n=i.searchToggleSelector,a=void 0===n?"[data-ecl-search-toggle]":n,o=i.searchFormSelector,n=void 0===o?"[data-ecl-search-form]":o,o=i.loginToggleSelector,o=void 0===o?"[data-ecl-login-toggle]":o,i=i.loginBoxSelector,i=void 0===i?"[data-ecl-login-box]":i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=s,this.languageListOverlaySelector=l,this.closeOverlaySelector=t,this.searchToggleSelector=a,this.searchFormSelector=n,this.loginToggleSelector=o,this.loginBoxSelector=i,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=o(this.languageLinkSelector),this.languageListOverlay=o(this.languageListOverlaySelector),this.close=o(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=o(this.searchToggleSelector),this.searchForm=o(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=o(this.loginToggleSelector),this.loginBox=o(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin)},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)},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}(),$=function(){function i(e,t){var i=void 0===t?{}:t,n=i.languageLinkSelector,s=void 0===n?"[data-ecl-language-selector]":n,a=i.languageListOverlaySelector,l=void 0===a?"[data-ecl-language-list-overlay]":a,o=i.closeOverlaySelector,t=void 0===o?"[data-ecl-language-list-close]":o,n=i.searchToggleSelector,a=void 0===n?"[data-ecl-search-toggle]":n,o=i.searchFormSelector,n=void 0===o?"[data-ecl-search-form]":o,o=i.loginToggleSelector,o=void 0===o?"[data-ecl-login-toggle]":o,i=i.loginBoxSelector,i=void 0===i?"[data-ecl-login-box]":i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=s,this.languageListOverlaySelector=l,this.closeOverlaySelector=t,this.searchToggleSelector=a,this.searchFormSelector=n,this.loginToggleSelector=o,this.loginBoxSelector=i,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=o(this.languageLinkSelector),this.languageListOverlay=o(this.languageListOverlaySelector),this.close=o(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=o(this.searchToggleSelector),this.searchForm=o(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=o(this.loginToggleSelector),this.loginBox=o(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin)},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)},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}(),Q=function(){function i(e,t){var i=void 0===t?{}:t,n=i.languageLinkSelector,s=void 0===n?"[data-ecl-language-selector]":n,a=i.languageListOverlaySelector,l=void 0===a?"[data-ecl-language-list-overlay]":a,o=i.closeOverlaySelector,t=void 0===o?"[data-ecl-language-list-close]":o,n=i.searchToggleSelector,a=void 0===n?"[data-ecl-search-toggle]":n,o=i.searchFormSelector,n=void 0===o?"[data-ecl-search-form]":o,o=i.loginToggleSelector,o=void 0===o?"[data-ecl-login-toggle]":o,i=i.loginBoxSelector,i=void 0===i?"[data-ecl-login-box]":i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=s,this.languageListOverlaySelector=l,this.closeOverlaySelector=t,this.searchToggleSelector=a,this.searchFormSelector=n,this.loginToggleSelector=o,this.loginBoxSelector=i,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=o(this.languageLinkSelector),this.languageListOverlay=o(this.languageListOverlaySelector),this.close=o(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=o(this.searchToggleSelector),this.searchForm=o(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=o(this.loginToggleSelector),this.loginBox=o(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin)},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)},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}(),t=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.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-25a" d="M32 30l-8-13-8 13z"/></defs><use xlink:href="#id-25a"/></svg>';t=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;this.sortHeadings=l(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))});var e=o("tbody",this.element);[].concat(l("tr",e)).forEach(function(e,t){e.setAttribute("data-ecl-table-order",t)})},e.destroy=function(){var t=this;this.sortHeadings&&this.sortHeadings.forEach(function(e){e.removeEventListener("click",t.handleClickOnSort)})},e.handleClickOnSort=function(t){for(var e=t.closest("table"),i=o("tbody",e),n=t.getAttribute("aria-sort"),s=0,a=t.previousElementSibling;a;)s+=a.getAttribute("colspan")?Number(a.getAttribute("colspan")):1,a=a.previousElementSibling;e=function(n,s){return function(e,t){return i=(s?e:t).children[n].textContent,e=(s?t:e).children[n].textContent,""===i||""===e||Number.isNaN(+i)||Number.isNaN(+e)?i.toString().localeCompare(e):i-e;var i}},n="descending"===n?([].concat(l("tr",i)).forEach(function(e,t){t=o("[data-ecl-table-order='"+t+"']");i.appendChild(t)}),null):([].concat(l("tr",i)).sort(e(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}(),L=function(){function i(e,t){var i=void 0===t?{}:t,n=i.buttonSelector,s=void 0===n?"[data-ecl-timeline-button]":n,a=i.labelSelector,t=void 0===a?"[data-ecl-label]":a,n=i.labelExpanded,a=void 0===n?"data-ecl-label-expanded":n,n=i.labelCollapsed,n=void 0===n?"data-ecl-label-collapsed":n,i=i.attachClickListener,i=void 0===i||i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.buttonSelector=s,this.labelSelector=t,this.labelExpanded=a,this.labelCollapsed=n,this.attachClickListener=i,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=o(this.buttonSelector,this.element),this.label=o(this.labelSelector,this.element),this.attachClickListener&&this.button&&this.button.addEventListener("click",this.handleClickOnButton)},e.destroy=function(){this.attachClickListener&&this.button&&this.button.removeEventListener("click",this.handleClickOnButton)},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=s,e.BreadcrumbCore=m,e.BreadcrumbHarmonised=k,e.BreadcrumbStandardised=b,e.Datepicker=v,e.Expandable=w,e.FileDownload=S,e.FileUpload=C,e.Gallery=H,e.InpageNavigation=W,e.Menu=G,e.Message=j,e.NewsTicker=q,e.Select=K,e.SiteHeaderCore=X,e.SiteHeaderHarmonised=$,e.SiteHeaderStandardised=Q,e.Table=t,e.Timeline=L,e.autoInit=function(e){var t=void 0===e?{}:e,e=t.root,e=void 0===e?document:e,n=function(e,t){if(null==e)return{};for(var i,n={},s=Object.keys(e),a=0;a<s.length;a++)i=s[a],0<=t.indexOf(i)||(n[i]=e[i]);return n}(t,a);if(!ECL)throw new TypeError("Called autoInit but ECL is not present");var s=[],i=l("[data-ecl-auto-init]",e),t=function(){i.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+"'");i=i.autoInit(e,n);s.push(i),e.setAttribute("data-ecl-auto-initialized","true")})},e=t;return t(),{update:e,destroy:function(){i.filter(function(e){return"true"===e.getAttribute("data-ecl-auto-initialized")}).forEach(function(e){var t=e.getAttribute("data-ecl-auto-init");t&&ECL[t]&&ECL[t].destroy&&(ECL[t].destroy(),e.removeAttribute("data-ecl-auto-initialized"))})},components:s}},Object.defineProperty(e,"__esModule",{value:!0}),e}({},moment);
|