/* @ecl/ec-preset-website - 2.35.0 Built on 2020-11-26T09:34:28.511Z */ var ECL=function(e){"use strict";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 h(e,t){return void 0===t&&(t=document),[].slice.call(t.querySelectorAll(e))}function d(e,t){return void 0===t&&(t=document),t.querySelector(e)}var t=function(){function s(e,t){var i=void 0===t?{}:t,n=i.toggleSelector,s=void 0===n?"[data-ecl-accordion2-toggle]":n,a=i.iconSelector,r=void 0===a?"[data-ecl-accordion2-icon]":a,o=i.attachClickListener,l=void 0===o||o;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=r,this.attachClickListener=l,this.toggles=null,this.forceClose=!1,this.target=null,this.label=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).ACCORDION2,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLAccordion2=n};var e=s.prototype;return e.init=function(){var t=this;this.toggles=h(this.toggleSelector,this.element),this.label=d(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=d("#"+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,s,a,r=d(this.iconSelector,e);return!r||(n=d("use",r))&&(s=n.getAttribute("xlink:href"),a="",a=i?s.replace("ui--minus","ui--plus"):s.replace("ui--plus","ui--minus"),n.setAttribute("xlink:href",a)),this},s}(),i=function(){function s(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-ellipsis-button]":n,a=i.ellipsisSelector,r=void 0===a?"[data-ecl-breadcrumb-ellipsis]":a,o=i.segmentSelector,l=void 0===o?"[data-ecl-breadcrumb-item]":o,c=i.expandableItemsSelector,h=void 0===c?'[data-ecl-breadcrumb-item="expandable"]':c,d=i.staticItemsSelector,u=void 0===d?'[data-ecl-breadcrumb-item="static"]':d,f=i.onPartialExpand,m=void 0===f?null:f,g=i.onFullExpand,v=void 0===g?null:g,p=i.attachClickListener,y=void 0===p||p;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=r,this.segmentSelector=l,this.expandableItemsSelector=h,this.staticItemsSelector=u,this.onPartialExpand=m,this.onFullExpand=v,this.attachClickListener=y,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).BREADCRUMB,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLBreadcrumb=n};var e=s.prototype;return e.init=function(){this.ellipsisButton=d(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=h(this.segmentSelector,this.element),this.staticElements=h(this.staticItemsSelector,this.element),this.expandableElements=h(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=d(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 i=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=i)return{expanded:!0};var n=d(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(i<=n)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var s=0,a=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!a)return!1;var t=(s+=e.getBoundingClientRect().width)+n<=i;return t||(a=!1),t}).reverse()}},s}(),n=function(){function s(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,r=void 0===a?"[data-ecl-breadcrumb-core-ellipsis]":a,o=i.segmentSelector,l=void 0===o?"[data-ecl-breadcrumb-core-item]":o,c=i.expandableItemsSelector,h=void 0===c?'[data-ecl-breadcrumb-core-item="expandable"]':c,d=i.staticItemsSelector,u=void 0===d?'[data-ecl-breadcrumb-core-item="static"]':d,f=i.onPartialExpand,m=void 0===f?null:f,g=i.onFullExpand,v=void 0===g?null:g,p=i.attachClickListener,y=void 0===p||p;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=r,this.segmentSelector=l,this.expandableItemsSelector=h,this.staticItemsSelector=u,this.onPartialExpand=m,this.onFullExpand=v,this.attachClickListener=y,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).BREADCRUMB_CORE,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLBreadcrumbCore=n};var e=s.prototype;return e.init=function(){this.ellipsisButton=d(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=h(this.segmentSelector,this.element),this.staticElements=h(this.staticItemsSelector,this.element),this.expandableElements=h(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=d(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 i=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=i)return{expanded:!0};var n=d(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(i<=n)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var s=0,a=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!a)return!1;var t=(s+=e.getBoundingClientRect().width)+n<=i;return t||(a=!1),t}).reverse()}},s}(),s=function(){function s(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,r=void 0===a?"[data-ecl-breadcrumb-harmonised-ellipsis]":a,o=i.segmentSelector,l=void 0===o?"[data-ecl-breadcrumb-harmonised-item]":o,c=i.expandableItemsSelector,h=void 0===c?'[data-ecl-breadcrumb-harmonised-item="expandable"]':c,d=i.staticItemsSelector,u=void 0===d?'[data-ecl-breadcrumb-harmonised-item="static"]':d,f=i.onPartialExpand,m=void 0===f?null:f,g=i.onFullExpand,v=void 0===g?null:g,p=i.attachClickListener,y=void 0===p||p;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=r,this.segmentSelector=l,this.expandableItemsSelector=h,this.staticItemsSelector=u,this.onPartialExpand=m,this.onFullExpand=v,this.attachClickListener=y,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).BREADCRUMB_HARMONISED,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLBreadcrumbHarmonised=n};var e=s.prototype;return e.init=function(){this.ellipsisButton=d(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=h(this.segmentSelector,this.element),this.staticElements=h(this.staticItemsSelector,this.element),this.expandableElements=h(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=d(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 i=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=i)return{expanded:!0};var n=d(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(i<=n)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var s=0,a=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!a)return!1;var t=(s+=e.getBoundingClientRect().width)+n<=i;return t||(a=!1),t}).reverse()}},s}(),a=function(){function s(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,r=void 0===a?"[data-ecl-breadcrumb-standardised-ellipsis]":a,o=i.segmentSelector,l=void 0===o?"[data-ecl-breadcrumb-standardised-item]":o,c=i.expandableItemsSelector,h=void 0===c?'[data-ecl-breadcrumb-standardised-item="expandable"]':c,d=i.staticItemsSelector,u=void 0===d?'[data-ecl-breadcrumb-standardised-item="static"]':d,f=i.onPartialExpand,m=void 0===f?null:f,g=i.onFullExpand,v=void 0===g?null:g,p=i.attachClickListener,y=void 0===p||p;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=r,this.segmentSelector=l,this.expandableItemsSelector=h,this.staticItemsSelector=u,this.onPartialExpand=m,this.onFullExpand=v,this.attachClickListener=y,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).BREADCRUMB_STANDARDISED,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLBreadcrumbStandardised=n};var e=s.prototype;return e.init=function(){this.ellipsisButton=d(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=h(this.segmentSelector,this.element),this.staticElements=h(this.staticItemsSelector,this.element),this.expandableElements=h(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=d(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 i=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=i)return{expanded:!0};var n=d(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(i<=n)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var s=0,a=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!a)return!1;var t=(s+=e.getBoundingClientRect().width)+n<=i;return t||(a=!1),t}).reverse()}},s}(),r=function(){function s(e,t){var i=void 0===t?{}:t,n=i.moreItemSelector,s=void 0===n?"[data-ecl-contextual-navigation-more]":n,a=i.listSelector,r=void 0===a?"[data-ecl-contextual-navigation-list]":a,o=i.attachClickListener,l=void 0===o||o;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.moreItemSelector=s,this.listSelector=r,this.attachClickListener=l,this.moreItem=null,this.list=null,this.handleClickOnMore=this.handleClickOnMore.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).CONTEXTUAL_NAVIGATION,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLContextualNavigation=n};var e=s.prototype;return e.init=function(){this.moreItem=d(this.moreItemSelector,this.element),this.list=d(this.listSelector,this.element),this.attachClickListener&&this.moreItem&&this.moreItem.addEventListener("click",this.handleClickOnMore)},e.destroy=function(){this.attachClickListener&&this.moreItem&&this.moreItem.removeEventListener("click",this.handleClickOnMore)},e.handleClickOnMore=function(){this.list.setAttribute("aria-expanded","true"),this.moreItem.parentNode&&this.moreItem.parentNode.parentNode&&this.moreItem.parentNode.parentNode.removeChild(this.moreItem.parentNode)},s}(),o=function(){function s(e,t){var i=void 0===t?{}:t,n=i.toggleSelector,s=void 0===n?"[data-ecl-expandable-toggle]":n,a=i.labelSelector,r=void 0===a?"[data-ecl-label]":a,o=i.labelExpanded,l=void 0===o?"data-ecl-label-expanded":o,c=i.labelCollapsed,h=void 0===c?"data-ecl-label-collapsed":c,d=i.attachClickListener,u=void 0===d||d;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=r,this.labelExpanded=l,this.labelCollapsed=h,this.attachClickListener=u,this.toggle=null,this.forceClose=!1,this.target=null,this.label=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).EXPANDABLE,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLExpandable=n};var e=s.prototype;return e.init=function(){if(this.toggle=d(this.toggleSelector,this.element),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),this.label=d(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},s}(),l=function(){function s(e,t){var i=void 0===t?{}:t,n=i.translationToggleSelector,s=void 0===n?"[data-ecl-file-translation-toggle]":n,a=i.translationContainerSelector,r=void 0===a?"[data-ecl-file-translation-container]":a,o=i.attachClickListener,l=void 0===o||o;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.translationToggleSelector=s,this.translationContainerSelector=r,this.attachClickListener=l,this.translationToggle=null,this.translationContainer=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).FILE_DOWNLOAD,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLFileDownload=n};var e=s.prototype;return e.init=function(){this.translationToggle=d(this.translationToggleSelector,this.element),this.translationContainer=d(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},s}(),c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function cr(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function u(e,t){return e(t={exports:{}},t.exports),t.exports}var w=u(function(lr,e){lr.exports=function(){var t,s;function h(){return t.apply(null,arguments)}function e(e){t=e}function r(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function o(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(e).length===0}else{var t;for(t in e){if(l(e,t)){return false}}return true}}function a(e){return e===void 0}function d(e){return typeof e==="number"||Object.prototype.toString.call(e)==="[object Number]"}function u(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function n(e,t){var i=[],n;for(n=0;n>>0,s;for(s=0;s0){for(i=0;i=0;return(a?i?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},B={};function F(e,t,i,n){var s=n;if(typeof n==="string"){s=function e(){return this[n]()}}if(e){B[e]=s}if(t){B[t[0]]=function(){return I(s.apply(this,arguments),t[1],t[2])}}if(i){B[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)}}}function H(e){if(e.match(/\[[\s\S]/)){return e.replace(/^\[|\]$/g,"")}return e.replace(/\\/g,"")}function W(n){var s=n.match(R),e,a;for(e=0,a=s.length;e=0&&Y.test(e)){e=e.replace(Y,n);Y.lastIndex=0;i-=1}return e}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function j(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];if(t||!i){return t}this._longDateFormat[e]=i.match(R).map(function(e){if(e==="MMMM"||e==="MM"||e==="DD"||e==="dddd"){return e.slice(1)}return e}).join("");return this._longDateFormat[e]}var G="Invalid date";function q(){return this._invalidDate}var Z="%d",K=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var $={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(e,t,i,n){var s=this._relativeTime[i];return L(s)?s(e,t,i,n):s.replace(/%d/i,e)}function Q(e,t){var i=this._relativeTime[e>0?"future":"past"];return L(i)?i(t):i.replace(/%s/i,t)}var ee={};function te(e,t){var i=e.toLowerCase();ee[i]=ee[i+"s"]=ee[t]=e}function ie(e){return typeof e==="string"?ee[e]||ee[e.toLowerCase()]:undefined}function ne(e){var t={},i,n;for(n in e){if(l(e,n)){i=ie(n);if(i){t[i]=e[n]}}}return t}var se={};function ae(e,t){se[e]=t}function re(e){var t=[],i;for(i in e){if(l(e,i)){t.push({unit:i,priority:se[i]})}}t.sort(function(e,t){return e.priority-t.priority});return t}function oe(e){return e%4===0&&e%100!==0||e%400===0}function le(e){if(e<0){return Math.ceil(e)||0}else{return Math.floor(e)}}function ce(e){var t=+e,i=0;if(t!==0&&isFinite(t)){i=le(t)}return i}function he(t,i){return function(e){if(e!=null){ue(this,t,e);h.updateOffset(this,i);return this}else{return de(this,t)}}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ue(e,t,i){if(e.isValid()&&!isNaN(i)){if(t==="FullYear"&&oe(e.year())&&e.month()===1&&e.date()===29){i=ce(i);e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Je(i,e.month()))}else{e._d["set"+(e._isUTC?"UTC":"")+t](i)}}}function fe(e){e=ie(e);if(L(this[e])){return this[e]()}return this}function me(e,t){if(typeof e==="object"){e=ne(e);var i=re(e),n;for(n=0;n68?1900:2e3)};var gt=he("FullYear",true);function vt(){return oe(this.year())}function pt(e,t,i,n,s,a,r){var o;if(e<100&&e>=0){o=new Date(e+400,t,i,n,s,a,r);if(isFinite(o.getFullYear())){o.setFullYear(e)}}else{o=new Date(e,t,i,n,s,a,r)}return o}function yt(e){var t,i;if(e<100&&e>=0){i=Array.prototype.slice.call(arguments);i[0]=e+400;t=new Date(Date.UTC.apply(null,i));if(isFinite(t.getUTCFullYear())){t.setUTCFullYear(e)}}else{t=new Date(Date.UTC.apply(null,arguments))}return t}function bt(e,t,i){var n=7+t-i,s=(7+yt(e,0,n).getUTCDay()-t)%7;return-s+n-1}function wt(e,t,i,n,s){var a=(7+i-n)%7,r=bt(e,n,s),o=1+7*(t-1)+a+r,l,c;if(o<=0){l=e-1;c=mt(l)+o}else if(o>mt(e)){l=e+1;c=o-mt(e)}else{l=e;c=o}return{year:l,dayOfYear:c}}function _t(e,t,i){var n=bt(e.year(),t,i),s=Math.floor((e.dayOfYear()-n-1)/7)+1,a,r;if(s<1){r=e.year()-1;a=s+kt(r,t,i)}else if(s>kt(e.year(),t,i)){a=s-kt(e.year(),t,i);r=e.year()+1}else{r=e.year();a=s}return{week:a,year:r}}function kt(e,t,i){var n=bt(e,t,i),s=bt(e+1,t,i);return(mt(e)-n+s)/7}function St(e){return _t(e,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),te("week","w"),te("isoWeek","W"),ae("week",5),ae("isoWeek",5),Ne("w",we),Ne("ww",we,ve),Ne("W",we),Ne("WW",we,ve),Fe(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=ce(e)});var Et={dow:0,doy:6};function Ot(){return this._week.dow}function xt(){return this._week.doy}function Ct(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Lt(e){var t=_t(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}function Tt(e,t){if(typeof e!=="string"){return e}if(!isNaN(e)){return parseInt(e,10)}e=t.weekdaysParse(e);if(typeof e==="number"){return e}return null}function Mt(e,t){if(typeof e==="string"){return t.weekdaysParse(e)%7||7}return isNaN(e)?null:e}function Dt(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("d",0,"do","day"),F("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),F("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),F("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),te("day","d"),te("weekday","e"),te("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),Ne("d",we),Ne("e",we),Ne("E",we),Ne("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ne("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ne("dddd",function(e,t){return t.weekdaysRegex(e)}),Fe(["dd","ddd","dddd"],function(e,t,i,n){var s=i._locale.weekdaysParse(e,n,i._strict);if(s!=null){t.d=s}else{g(i).invalidWeekday=e}}),Fe(["d","e","E"],function(e,t,i,n){t[n]=ce(e)});var At="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rt=De,Yt=De,Pt=De;function Bt(e,t){var i=r(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===true?Dt(i,this._week.dow):e?i[e.day()]:i}function Ft(e){return e===true?Dt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return e===true?Dt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Wt(e,t,i){var n,s,a,r=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(n=0;n<7;++n){a=m([2e3,1]).day(n);this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase();this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase();this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase()}}if(i){if(t==="dddd"){s=Xe.call(this._weekdaysParse,r);return s!==-1?s:null}else if(t==="ddd"){s=Xe.call(this._shortWeekdaysParse,r);return s!==-1?s:null}else{s=Xe.call(this._minWeekdaysParse,r);return s!==-1?s:null}}else{if(t==="dddd"){s=Xe.call(this._weekdaysParse,r);if(s!==-1){return s}s=Xe.call(this._shortWeekdaysParse,r);if(s!==-1){return s}s=Xe.call(this._minWeekdaysParse,r);return s!==-1?s:null}else if(t==="ddd"){s=Xe.call(this._shortWeekdaysParse,r);if(s!==-1){return s}s=Xe.call(this._weekdaysParse,r);if(s!==-1){return s}s=Xe.call(this._minWeekdaysParse,r);return s!==-1?s:null}else{s=Xe.call(this._minWeekdaysParse,r);if(s!==-1){return s}s=Xe.call(this._weekdaysParse,r);if(s!==-1){return s}s=Xe.call(this._shortWeekdaysParse,r);return s!==-1?s:null}}}function Vt(e,t,i){var n,s,a;if(this._weekdaysParseExact){return Wt.call(this,e,t,i)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(n=0;n<7;n++){s=m([2e3,1]).day(n);if(i&&!this._fullWeekdaysParse[n]){this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i");this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i");this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")}if(!this._weekdaysParse[n]){a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,"");this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")}if(i&&t==="dddd"&&this._fullWeekdaysParse[n].test(e)){return n}else if(i&&t==="ddd"&&this._shortWeekdaysParse[n].test(e)){return n}else if(i&&t==="dd"&&this._minWeekdaysParse[n].test(e)){return n}else if(!i&&this._weekdaysParse[n].test(e)){return n}}}function Ut(e){if(!this.isValid()){return e!=null?this:NaN}var t=this._isUTC?this._d.getUTCDay():this._d.getDay();if(e!=null){e=Tt(e,this.localeData());return this.add(e-t,"d")}else{return t}}function zt(e){if(!this.isValid()){return e!=null?this:NaN}var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function jt(e){if(!this.isValid()){return e!=null?this:NaN}if(e!=null){var t=Mt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else{return this.day()||7}}function Gt(e){if(this._weekdaysParseExact){if(!l(this,"_weekdaysRegex")){Kt.call(this)}if(e){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!l(this,"_weekdaysRegex")){this._weekdaysRegex=Rt}return this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}}function qt(e){if(this._weekdaysParseExact){if(!l(this,"_weekdaysRegex")){Kt.call(this)}if(e){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!l(this,"_weekdaysShortRegex")){this._weekdaysShortRegex=Yt}return this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function Zt(e){if(this._weekdaysParseExact){if(!l(this,"_weekdaysRegex")){Kt.call(this)}if(e){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!l(this,"_weekdaysMinRegex")){this._weekdaysMinRegex=Pt}return this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function Kt(){function e(e,t){return t.length-e.length}var t=[],i=[],n=[],s=[],a,r,o,l,c;for(a=0;a<7;a++){r=m([2e3,1]).day(a);o=Ye(this.weekdaysMin(r,""));l=Ye(this.weekdaysShort(r,""));c=Ye(this.weekdays(r,""));t.push(o);i.push(l);n.push(c);s.push(o);s.push(l);s.push(c)}t.sort(e);i.sort(e);n.sort(e);s.sort(e);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Xt(){return this.hours()%12||12}function $t(){return this.hours()||24}function Jt(e,t){F(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Qt(e,t){return t._meridiemParse}function ei(e){return(e+"").toLowerCase().charAt(0)==="p"}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Xt),F("k",["kk",2],0,$t),F("hmm",0,0,function(){return""+Xt.apply(this)+I(this.minutes(),2)}),F("hmmss",0,0,function(){return""+Xt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)}),F("Hmm",0,0,function(){return""+this.hours()+I(this.minutes(),2)}),F("Hmmss",0,0,function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)}),Jt("a",true),Jt("A",false),te("hour","h"),ae("hour",13),Ne("a",Qt),Ne("A",Qt),Ne("H",we),Ne("h",we),Ne("k",we),Ne("HH",we,ve),Ne("hh",we,ve),Ne("kk",we,ve),Ne("hmm",_e),Ne("hmmss",ke),Ne("Hmm",_e),Ne("Hmmss",ke),Be(["H","HH"],ze),Be(["k","kk"],function(e,t,i){var n=ce(e);t[ze]=n===24?0:n}),Be(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e);i._meridiem=e}),Be(["h","hh"],function(e,t,i){t[ze]=ce(e);g(i).bigHour=true}),Be("hmm",function(e,t,i){var n=e.length-2;t[ze]=ce(e.substr(0,n));t[je]=ce(e.substr(n));g(i).bigHour=true}),Be("hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[ze]=ce(e.substr(0,n));t[je]=ce(e.substr(n,2));t[Ge]=ce(e.substr(s));g(i).bigHour=true}),Be("Hmm",function(e,t,i){var n=e.length-2;t[ze]=ce(e.substr(0,n));t[je]=ce(e.substr(n))}),Be("Hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[ze]=ce(e.substr(0,n));t[je]=ce(e.substr(n,2));t[Ge]=ce(e.substr(s))});var ti,ii=he("Hours",true);function ni(e,t,i){if(e>11){return i?"pm":"PM"}else{return i?"am":"AM"}}var si={calendar:A,longDateFormat:z,invalidDate:G,ordinal:Z,dayOfMonthOrdinalParse:K,relativeTime:$,months:Qe,monthsShort:et,week:Et,weekdays:At,weekdaysMin:It,weekdaysShort:Nt,meridiemParse:/[ap]\.?m?\.?/i},ai={},ri={},oi;function li(e,t){var i,n=Math.min(e.length,t.length);for(i=0;i0){s=di(a.slice(0,i).join("-"));if(s){return s}if(n&&n.length>=i&&li(a,n)>=i-1){break}i--}t++}return oi}function di(t){var e=null,i;if(ai[t]===undefined&&"object"!=="undefined"&&lr&&lr.exports){try{e=oi._abbr;i=cr;i("./locale/"+t);ui(e)}catch(e){ai[t]=null}}return ai[t]}function ui(e,t){var i;if(e){if(a(t)){i=gi(e)}else{i=fi(e,t)}if(i){oi=i}else{if(typeof console!=="undefined"&&console.warn){console.warn("Locale "+e+" not found. Did you forget to load it?")}}}return oi._abbr}function fi(e,t){if(t!==null){var i,n=si;t.abbr=e;if(ai[e]!=null){C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change "+"an existing locale. moment.defineLocale(localeName, "+"config) should only be used for creating a new locale "+"See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");n=ai[e]._config}else if(t.parentLocale!=null){if(ai[t.parentLocale]!=null){n=ai[t.parentLocale]._config}else{i=di(t.parentLocale);if(i!=null){n=i._config}else{if(!ri[t.parentLocale]){ri[t.parentLocale]=[]}ri[t.parentLocale].push({name:e,config:t});return null}}}ai[e]=new D(M(n,t));if(ri[e]){ri[e].forEach(function(e){fi(e.name,e.config)})}ui(e);return ai[e]}else{delete ai[e];return null}}function mi(e,t){if(null!=t){var i,n,s=si;null!=ai[e]&&null!=ai[e].parentLocale?ai[e].set(M(ai[e]._config,t)):(null!=(n=di(e))&&(s=n._config),t=M(s,t),null==n&&(t.abbr=e),(i=new D(t)).parentLocale=ai[e],ai[e]=i),ui(e)}else null!=ai[e]&&(null!=ai[e].parentLocale?(ai[e]=ai[e].parentLocale,e===ui()&&ui(e)):null!=ai[e]&&delete ai[e]);return ai[e]}function gi(e){var t;if(e&&e._locale&&e._locale._abbr){e=e._locale._abbr}if(!e){return oi}if(!r(e)){t=di(e);if(t){return t}e=[e]}return hi(e)}function vi(){return x(ai)}function pi(e){var t,i=e._a;if(i&&g(e).overflow===-2){t=i[Ve]<0||i[Ve]>11?Ve:i[Ue]<1||i[Ue]>Je(i[We],i[Ve])?Ue:i[ze]<0||i[ze]>24||i[ze]===24&&(i[je]!==0||i[Ge]!==0||i[qe]!==0)?ze:i[je]<0||i[je]>59?je:i[Ge]<0||i[Ge]>59?Ge:i[qe]<0||i[qe]>999?qe:-1;if(g(e)._overflowDayOfYear&&(tUe)){t=Ue}if(g(e)._overflowWeeks&&t===-1){t=Ze}if(g(e)._overflowWeekday&&t===-1){t=Ke}g(e).overflow=t}return e}var yi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wi=/Z|[+-]\d\d(?::?\d\d)?/,_i=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],ki=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Si=/^\/?Date\((-?\d+)/i,Ei=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Oi={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function xi(e){var t,i,n=e._i,s=yi.exec(n)||bi.exec(n),a,r,o,l;if(s){g(e).iso=true;for(t=0,i=_i.length;tmt(r)||e._dayOfYear===0){g(e)._overflowDayOfYear=true}i=yt(r,0,e._dayOfYear);e._a[Ve]=i.getUTCMonth();e._a[Ue]=i.getUTCDate()}for(t=0;t<3&&e._a[t]==null;++t){e._a[t]=n[t]=s[t]}for(;t<7;t++){e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t]}if(e._a[ze]===24&&e._a[je]===0&&e._a[Ge]===0&&e._a[qe]===0){e._nextDay=true;e._a[ze]=0}e._d=(e._useUTC?yt:pt).apply(null,n);a=e._useUTC?e._d.getUTCDay():e._d.getDay();if(e._tzm!=null){e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm)}if(e._nextDay){e._a[ze]=24}if(e._w&&typeof e._w.d!=="undefined"&&e._w.d!==a){g(e).weekdayMismatch=true}}function Pi(e){var t,i,n,s,a,r,o,l,c;t=e._w;if(t.GG!=null||t.W!=null||t.E!=null){a=1;r=4;i=Ii(t.GG,e._a[We],_t(Gi(),1,4).year);n=Ii(t.W,1);s=Ii(t.E,1);if(s<1||s>7){l=true}}else{a=e._locale._week.dow;r=e._locale._week.doy;c=_t(Gi(),a,r);i=Ii(t.gg,e._a[We],c.year);n=Ii(t.w,c.week);if(t.d!=null){s=t.d;if(s<0||s>6){l=true}}else if(t.e!=null){s=t.e+a;if(t.e<0||t.e>6){l=true}}else{s=a}}if(n<1||n>kt(i,a,r)){g(e)._overflowWeeks=true}else if(l!=null){g(e)._overflowWeekday=true}else{o=wt(i,n,s,a,r);e._a[We]=o.year;e._dayOfYear=o.dayOfYear}}function Bi(e){if(e._f===h.ISO_8601){xi(e);return}if(e._f===h.RFC_2822){Ai(e);return}e._a=[];g(e).empty=true;var t=""+e._i,i,n,s,a,r,o=t.length,l=0,c;s=U(e._f,e._locale).match(R)||[];for(i=0;i0){g(e).unusedInput.push(r)}t=t.slice(t.indexOf(n)+n.length);l+=n.length}if(B[a]){if(n){g(e).empty=false}else{g(e).unusedTokens.push(a)}He(a,n,e)}else if(e._strict&&!n){g(e).unusedTokens.push(a)}}g(e).charsLeftOver=o-l;if(t.length>0){g(e).unusedInput.push(t)}if(e._a[ze]<=12&&g(e).bigHour===true&&e._a[ze]>0){g(e).bigHour=undefined}g(e).parsedDateParts=e._a.slice(0);g(e).meridiem=e._meridiem;e._a[ze]=Fi(e._locale,e._a[ze],e._meridiem);c=g(e).era;if(c!==null){e._a[We]=e._locale.erasConvertYear(c,e._a[We])}Yi(e);pi(e)}function Fi(e,t,i){var n;if(i==null){return t}if(e.meridiemHour!=null){return e.meridiemHour(t,i)}else if(e.isPM!=null){n=e.isPM(i);if(n&&t<12){t+=12}if(!n&&t===12){t=0}return t}else{return t}}function Hi(e){var t,i,n,s,a,r,o=false;if(e._f.length===0){g(e).invalidFormat=true;e._d=new Date(NaN);return}for(s=0;sthis?this:e}else{return p()}});function Ki(e,t){var i,n;if(t.length===1&&r(t[0])){t=t[0]}if(!t.length){return Gi()}i=t[0];for(n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wn(){if(!a(this._isDSTShifted)){return this._isDSTShifted}var e={},t;w(e,this);e=Ui(e);if(e._a){t=e._isUTC?m(e._a):Gi(e._a);this._isDSTShifted=this.isValid()&&on(e._a,t.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function _n(){return this.isValid()?!this._isUTC:false}function kn(){return this.isValid()?this._isUTC:false}function Sn(){return this.isValid()?this._isUTC&&this._offset===0:false}h.updateOffset=function(){};var En=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,On=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function xn(e,t){var i=e,n=null,s,a,r;if(an(e)){i={ms:e._milliseconds,d:e._days,M:e._months}}else if(d(e)||!isNaN(+e)){i={};if(t){i[t]=+e}else{i.milliseconds=+e}}else if(n=En.exec(e)){s=n[1]==="-"?-1:1;i={y:0,d:ce(n[Ue])*s,h:ce(n[ze])*s,m:ce(n[je])*s,s:ce(n[Ge])*s,ms:ce(rn(n[qe]*1e3))*s}}else if(n=On.exec(e)){s=n[1]==="-"?-1:1;i={y:Cn(n[2],s),M:Cn(n[3],s),w:Cn(n[4],s),d:Cn(n[5],s),h:Cn(n[6],s),m:Cn(n[7],s),s:Cn(n[8],s)}}else if(i==null){i={}}else if(typeof i==="object"&&("from"in i||"to"in i)){r=Tn(Gi(i.from),Gi(i.to));i={};i.ms=r.milliseconds;i.M=r.months}a=new sn(i);if(an(e)&&l(e,"_locale")){a._locale=e._locale}if(an(e)&&l(e,"_isValid")){a._isValid=e._isValid}return a}function Cn(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function Ln(e,t){var i={};i.months=t.month()-e.month()+(t.year()-e.year())*12;if(e.clone().add(i.months,"M").isAfter(t)){--i.months}i.milliseconds=+t-+e.clone().add(i.months,"M");return i}function Tn(e,t){var i;if(!(e.isValid()&&t.isValid())){return{milliseconds:0,months:0}}t=dn(t,e);if(e.isBefore(t)){i=Ln(e,t)}else{i=Ln(t,e);i.milliseconds=-i.milliseconds;i.months=-i.months}return i}function Mn(s,a){return function(e,t){var i,n;if(t!==null&&!isNaN(+t)){C(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");n=e;e=t;t=n}i=xn(e,t);Dn(this,i,s);return this}}function Dn(e,t,i,n){var s=t._milliseconds,a=rn(t._days),r=rn(t._months);if(!e.isValid()){return}n=n==null?true:n;if(r){lt(e,de(e,"Month")+r*i)}if(a){ue(e,"Date",de(e,"Date")+a*i)}if(s){e._d.setTime(e._d.valueOf()+s*i)}if(n){h.updateOffset(e,a||r)}}xn.fn=sn.prototype,xn.invalid=nn;var An=Mn(1,"add"),Nn=Mn(-1,"subtract");function In(e){return typeof e==="string"||e instanceof String}function Rn(e){return k(e)||u(e)||In(e)||d(e)||Pn(e)||Yn(e)||e===null||e===undefined}function Yn(e){var t=o(e)&&!c(e),i=false,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,a;for(s=0;si.valueOf()}else{return i.valueOf()9999){return V(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ")}if(L(Date.prototype.toISOString)){if(t){return this.toDate().toISOString()}else{return new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",V(i,"Z"))}}return V(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jn(){if(!this.isValid()){return"moment.invalid(/* "+this._i+" */)"}var e="moment",t="",i,n,s,a;if(!this.isLocal()){e=this.utcOffset()===0?"moment.utc":"moment.parseZone";t="Z"}i="["+e+'("]';n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";s="-MM-DD[T]HH:mm:ss.SSS";a=t+'[")]';return this.format(i+n+s+a)}function Qn(e){if(!e){e=this.isUtc()?h.defaultFormatUtc:h.defaultFormat}var t=V(this,e);return this.localeData().postformat(t)}function es(e,t){if(this.isValid()&&(k(e)&&e.isValid()||Gi(e).isValid())){return xn({to:this,from:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}}function ts(e){return this.from(Gi(),e)}function is(e,t){if(this.isValid()&&(k(e)&&e.isValid()||Gi(e).isValid())){return xn({from:this,to:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}}function ns(e){return this.to(Gi(),e)}function ss(e){var t;if(e===undefined){return this._locale._abbr}else{t=gi(e);if(t!=null){this._locale=t}return this}}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var as=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){if(e===undefined){return this.localeData()}else{return this.locale(e)}});function rs(){return this._locale}var os=1e3,ls=60*os,cs=60*ls,hs=(365*400+97)*24*cs;function ds(e,t){return(e%t+t)%t}function us(e,t,i){if(e<100&&e>=0){return new Date(e+400,t,i)-hs}else{return new Date(e,t,i).valueOf()}}function fs(e,t,i){if(e<100&&e>=0){return Date.UTC(e+400,t,i)-hs}else{return Date.UTC(e,t,i)}}function ms(e){var t,i;e=ie(e);if(e===undefined||e==="millisecond"||!this.isValid()){return this}i=this._isUTC?fs:us;switch(e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf();t-=ds(t+(this._isUTC?0:this.utcOffset()*ls),cs);break;case"minute":t=this._d.valueOf();t-=ds(t,ls);break;case"second":t=this._d.valueOf();t-=ds(t,os);break}this._d.setTime(t);h.updateOffset(this,true);return this}function gs(e){var t,i;e=ie(e);if(e===undefined||e==="millisecond"||!this.isValid()){return this}i=this._isUTC?fs:us;switch(e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf();t+=cs-ds(t+(this._isUTC?0:this.utcOffset()*ls),cs)-1;break;case"minute":t=this._d.valueOf();t+=ls-ds(t,ls)-1;break;case"second":t=this._d.valueOf();t+=os-ds(t,os)-1;break}this._d.setTime(t);h.updateOffset(this,true);return this}function vs(){return this._d.valueOf()-(this._offset||0)*6e4}function ps(){return Math.floor(this.valueOf()/1e3)}function ys(){return new Date(this.valueOf())}function bs(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ws(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function _s(){return this.isValid()?this.toISOString():null}function ks(){return v(this)}function Ss(){return f({},g(this))}function Es(){return g(this).overflow}function Os(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xs(e,t){var i,n,s,a=this._eras||gi("en")._eras;for(i=0,n=a.length;i=0){return a[n]}}}function Ls(e,t){var i=e.since<=e.until?+1:-1;if(t===undefined){return h(e.since).year()}else{return h(e.since).year()+(t-e.offset)*i}}function Ts(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;ea){t=a}return Ks.call(this,e,t,i,n,s)}}function Ks(e,t,i,n,s){var a=wt(e,t,i,n,s),r=yt(a.year,0,a.dayOfYear);this.year(r.getUTCFullYear());this.month(r.getUTCMonth());this.date(r.getUTCDate());return this}function Xs(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),Ne("N",Ys),Ne("NN",Ys),Ne("NNN",Ys),Ne("NNNN",Ps),Ne("NNNNN",Bs),Be(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,n){var s=i._locale.erasParse(e,n,i._strict);if(s){g(i).era=s}else{g(i).invalidEra=e}}),Ne("y",xe),Ne("yy",xe),Ne("yyy",xe),Ne("yyyy",xe),Ne("yo",Fs),Be(["y","yy","yyy","yyyy"],We),Be(["yo"],function(e,t,i,n){var s;if(i._locale._eraYearOrdinalRegex){s=e.match(i._locale._eraYearOrdinalRegex)}if(i._locale.eraYearOrdinalParse){t[We]=i._locale.eraYearOrdinalParse(e,s)}else{t[We]=parseInt(e,10)}}),F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ws("gggg","weekYear"),Ws("ggggg","weekYear"),Ws("GGGG","isoWeekYear"),Ws("GGGGG","isoWeekYear"),te("weekYear","gg"),te("isoWeekYear","GG"),ae("weekYear",1),ae("isoWeekYear",1),Ne("G",Ce),Ne("g",Ce),Ne("GG",we,ve),Ne("gg",we,ve),Ne("GGGG",Ee,ye),Ne("gggg",Ee,ye),Ne("GGGGG",Oe,be),Ne("ggggg",Oe,be),Fe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=ce(e)}),Fe(["gg","GG"],function(e,t,i,n){t[n]=h.parseTwoDigitYear(e)}),F("Q",0,"Qo","quarter"),te("quarter","Q"),ae("quarter",7),Ne("Q",ge),Be("Q",function(e,t){t[Ve]=(ce(e)-1)*3}),F("D",["DD",2],"Do","date"),te("date","D"),ae("date",9),Ne("D",we),Ne("DD",we,ve),Ne("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Be(["D","DD"],Ue),Be("Do",function(e,t){t[Ue]=ce(e.match(we)[0])});var $s=he("Date",true);function Js(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}F("DDD",["DDDD",3],"DDDo","dayOfYear"),te("dayOfYear","DDD"),ae("dayOfYear",4),Ne("DDD",Se),Ne("DDDD",pe),Be(["DDD","DDDD"],function(e,t,i){i._dayOfYear=ce(e)}),F("m",["mm",2],0,"minute"),te("minute","m"),ae("minute",14),Ne("m",we),Ne("mm",we,ve),Be(["m","mm"],je);var Qs=he("Minutes",false);F("s",["ss",2],0,"second"),te("second","s"),ae("second",15),Ne("s",we),Ne("ss",we,ve),Be(["s","ss"],Ge);var ea=he("Seconds",false),ta,ia;for(F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return this.millisecond()*10}),F(0,["SSSSS",5],0,function(){return this.millisecond()*100}),F(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),F(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),F(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),F(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),te("millisecond","ms"),ae("millisecond",16),Ne("S",Se,ge),Ne("SS",Se,ve),Ne("SSS",Se,pe),ta="SSSS";ta.length<=9;ta+="S"){Ne(ta,xe)}function na(e,t){t[qe]=ce(("0."+e)*1e3)}for(ta="S";ta.length<=9;ta+="S"){Be(ta,na)}function sa(){return this._isUTC?"UTC":""}function aa(){return this._isUTC?"Coordinated Universal Time":""}ia=he("Milliseconds",false),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var ra=_.prototype;if(ra.add=An,ra.calendar=Hn,ra.clone=Wn,ra.diff=Zn,ra.endOf=gs,ra.format=Qn,ra.from=es,ra.fromNow=ts,ra.to=is,ra.toNow=ns,ra.get=fe,ra.invalidAt=Es,ra.isAfter=Vn,ra.isBefore=Un,ra.isBetween=zn,ra.isSame=jn,ra.isSameOrAfter=Gn,ra.isSameOrBefore=qn,ra.isValid=ks,ra.lang=as,ra.locale=ss,ra.localeData=rs,ra.max=Zi,ra.min=qi,ra.parsingFlags=Ss,ra.set=me,ra.startOf=ms,ra.subtract=Nn,ra.toArray=bs,ra.toObject=ws,ra.toDate=ys,ra.toISOString=$n,ra.inspect=Jn,typeof Symbol!=="undefined"&&Symbol.for!=null){ra[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}}function oa(e){return Gi(1e3*e)}function la(){return Gi.apply(null,arguments).parseZone()}function ca(e){return e}ra.toJSON=_s,ra.toString=Xn,ra.unix=ps,ra.valueOf=vs,ra.creationData=Os,ra.eraName=Ts,ra.eraNarrow=Ms,ra.eraAbbr=Ds,ra.eraYear=As,ra.year=gt,ra.isLeapYear=vt,ra.weekYear=Vs,ra.isoWeekYear=Us,ra.quarter=ra.quarters=Xs,ra.month=ct,ra.daysInMonth=ht,ra.week=ra.weeks=Ct,ra.isoWeek=ra.isoWeeks=Lt,ra.weeksInYear=Gs,ra.weeksInWeekYear=qs,ra.isoWeeksInYear=zs,ra.isoWeeksInISOWeekYear=js,ra.date=$s,ra.day=ra.days=Ut,ra.weekday=zt,ra.isoWeekday=jt,ra.dayOfYear=Js,ra.hour=ra.hours=ii,ra.minute=ra.minutes=Qs,ra.second=ra.seconds=ea,ra.millisecond=ra.milliseconds=ia,ra.utcOffset=fn,ra.utc=gn,ra.local=vn,ra.parseZone=pn,ra.hasAlignedHourOffset=yn,ra.isDST=bn,ra.isLocal=_n,ra.isUtcOffset=kn,ra.isUtc=Sn,ra.isUTC=Sn,ra.zoneAbbr=sa,ra.zoneName=aa,ra.dates=E("dates accessor is deprecated. Use date instead.",$s),ra.months=E("months accessor is deprecated. Use month instead",ct),ra.years=E("years accessor is deprecated. Use year instead",gt),ra.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mn),ra.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wn);var ha=D.prototype;function da(e,t,i,n){var s=gi(),a=m().set(n,t);return s[i](a,e)}function ua(e,t,i){if(d(e)){t=e;e=undefined}e=e||"";if(t!=null){return da(e,t,i,"month")}var n,s=[];for(n=0;n<12;n++){s[n]=da(e,n,i,"month")}return s}function fa(e,t,i,n){if(typeof e==="boolean"){if(d(t)){i=t;t=undefined}t=t||""}else{t=e;i=t;e=false;if(d(t)){i=t;t=undefined}t=t||""}var s=gi(),a=e?s._week.dow:0,r,o=[];if(i!=null){return da(t,(i+a)%7,n,"day")}for(r=0;r<7;r++){o[r]=da(t,(r+a)%7,n,"day")}return o}function ma(e,t){return ua(e,t,"months")}function ga(e,t){return ua(e,t,"monthsShort")}function va(e,t,i){return fa(e,t,i,"weekdays")}function pa(e,t,i){return fa(e,t,i,"weekdaysShort")}function ya(e,t,i){return fa(e,t,i,"weekdaysMin")}ha.calendar=N,ha.longDateFormat=j,ha.invalidDate=q,ha.ordinal=X,ha.preparse=ca,ha.postformat=ca,ha.relativeTime=J,ha.pastFuture=Q,ha.set=T,ha.eras=xs,ha.erasParse=Cs,ha.erasConvertYear=Ls,ha.erasAbbrRegex=Is,ha.erasNameRegex=Ns,ha.erasNarrowRegex=Rs,ha.months=st,ha.monthsShort=at,ha.monthsParse=ot,ha.monthsRegex=ut,ha.monthsShortRegex=dt,ha.week=St,ha.firstDayOfYear=xt,ha.firstDayOfWeek=Ot,ha.weekdays=Bt,ha.weekdaysMin=Ht,ha.weekdaysShort=Ft,ha.weekdaysParse=Vt,ha.weekdaysRegex=Gt,ha.weekdaysShortRegex=qt,ha.weekdaysMinRegex=Zt,ha.isPM=ei,ha.meridiem=ni,ui("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function e(t){var i=t%10,n=ce(t%100/10)===1?"th":i===1?"st":i===2?"nd":i===3?"rd":"th";return t+n}}),h.lang=E("moment.lang is deprecated. Use moment.locale instead.",ui),h.langData=E("moment.langData is deprecated. Use moment.localeData instead.",gi);var ba=Math.abs;function wa(){var e=this._data;return this._milliseconds=ba(this._milliseconds),this._days=ba(this._days),this._months=ba(this._months),e.milliseconds=ba(e.milliseconds),e.seconds=ba(e.seconds),e.minutes=ba(e.minutes),e.hours=ba(e.hours),e.months=ba(e.months),e.years=ba(e.years),this}function _a(e,t,i,n){var s=xn(t,i);e._milliseconds+=n*s._milliseconds;e._days+=n*s._days;e._months+=n*s._months;return e._bubble()}function ka(e,t){return _a(this,e,t,1)}function Sa(e,t){return _a(this,e,t,-1)}function Ea(e){if(e<0){return Math.floor(e)}else{return Math.ceil(e)}}function Oa(){var e,t,i,n,s,a=this._milliseconds,r=this._days,o=this._months,l=this._data;if(!(0<=a&&0<=r&&0<=o||a<=0&&r<=0&&o<=0))a+=864e5*Ea(Ca(o)+r),o=r=0;return l.milliseconds=a%1e3,e=le(a/1e3),l.seconds=e%60,t=le(e/60),l.minutes=t%60,i=le(t/60),l.hours=i%24,r+=le(i/24),s=le(xa(r)),o+=s,r-=Ea(Ca(s)),n=le(o/12),o%=12,l.days=r,l.months=o,l.years=n,this}function xa(e){return e*4800/146097}function Ca(e){return e*146097/4800}function La(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=ie(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+xa(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(Ca(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function Ta(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Ma(e){return function(){return this.as(e)}}var Da=Ma("ms"),Aa=Ma("s"),Na=Ma("m"),Ia=Ma("h"),Ra=Ma("d"),Ya=Ma("w"),Pa=Ma("M"),Ba=Ma("Q"),Fa=Ma("y");function Ha(){return xn(this)}function Wa(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function Va(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ua=Va("milliseconds"),za=Va("seconds"),ja=Va("minutes"),Ga=Va("hours"),qa=Va("days"),Za=Va("months"),Ka=Va("years");function Xa(){return le(this.days()/7)}var $a=Math.round,Ja={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Qa(e,t,i,n,s){return s.relativeTime(t||1,!!i,e,n)}function er(e,t,i,n){var s=xn(e).abs(),a=$a(s.as("s")),r=$a(s.as("m")),o=$a(s.as("h")),l=$a(s.as("d")),c=$a(s.as("M")),h=$a(s.as("w")),d=$a(s.as("y")),u=(a<=i.ss?["s",a]:a0)-(e<0)||+e}function rr(){if(!this.isValid()){return this.localeData().invalidDate()}var e=sr(this._milliseconds)/1e3,t=sr(this._days),i=sr(this._months),n,s,a,r,o=this.asSeconds(),l,c,h,d;if(!o){return"P0D"}n=le(e/60);s=le(n/60);e%=60;n%=60;a=le(i/12);i%=12;r=e?e.toFixed(3).replace(/\.?0+$/,""):"";l=o<0?"-":"";c=ar(this._months)!==ar(o)?"-":"";h=ar(this._days)!==ar(o)?"-":"";d=ar(this._milliseconds)!==ar(o)?"-":"";return l+"P"+(a?c+a+"Y":"")+(i?c+i+"M":"")+(t?h+t+"D":"")+(s||n||e?"T":"")+(s?d+s+"H":"")+(n?d+n+"M":"")+(e?d+r+"S":"")}var or=sn.prototype;return or.isValid=function(){return this._isValid},or.abs=function(){var e=this._data;return this._milliseconds=ba(this._milliseconds),this._days=ba(this._days),this._months=ba(this._months),e.milliseconds=ba(e.milliseconds),e.seconds=ba(e.seconds),e.minutes=ba(e.minutes),e.hours=ba(e.hours),e.months=ba(e.months),e.years=ba(e.years),this},or.add=function(e,t){return _a(this,e,t,1)},or.subtract=function(e,t){return _a(this,e,t,-1)},or.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=ie(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+xa(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(Ca(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},or.asMilliseconds=Da,or.asSeconds=Aa,or.asMinutes=Na,or.asHours=Ia,or.asDays=Ra,or.asWeeks=Ya,or.asMonths=Pa,or.asQuarters=Ba,or.asYears=Fa,or.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN},or._bubble=function(){var e,t,i,n,s,a=this._milliseconds,r=this._days,o=this._months,l=this._data;0<=a&&0<=r&&0<=o||a<=0&&r<=0&&o<=0||(a+=864e5*Ea(Ca(o)+r),o=r=0);return l.milliseconds=a%1e3,e=le(a/1e3),l.seconds=e%60,t=le(e/60),l.minutes=t%60,i=le(t/60),l.hours=i%24,r+=le(i/24),s=le(xa(r)),o+=s,r-=Ea(Ca(s)),n=le(o/12),o%=12,l.days=r,l.months=o,l.years=n,this},or.clone=function(){return xn(this)},or.get=function(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN},or.milliseconds=Ua,or.seconds=za,or.minutes=ja,or.hours=Ga,or.days=qa,or.weeks=function(){return le(this.days()/7)},or.months=Za,or.years=Ka,or.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,n,s=!1,a=Ja;"object"==typeof e&&(t=e,e=!1);"boolean"==typeof e&&(s=e);"object"==typeof t&&(a=Object.assign({},Ja,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1));i=this.localeData(),n=function(e,t,i,n){var s=xn(e).abs(),a=$a(s.as("s")),r=$a(s.as("m")),o=$a(s.as("h")),l=$a(s.as("d")),c=$a(s.as("M")),h=$a(s.as("w")),d=$a(s.as("y")),u=(a<=i.ss?["s",a]:a"+e.join("")+""},v=function(e){var t,i=[];for(e.showWeekNumber&&i.push(""),t=0;t<7;t++)i.push(''+R(e,t,!0)+"");return""+(e.isRTL?i.reverse():i).join("")+""},(y=function(e){var n=this,s=n.config(e);n._onMouseDown=function(e){if(n._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(l(t,"is-disabled")||(!l(t,"pika-button")||l(t,"is-empty")||l(t.parentNode,"is-disabled")?l(t,"pika-prev")?n.prevMonth():l(t,"pika-next")&&n.nextMonth():(n.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),s.bound&&c(function(){n.hide(),s.blurFieldOnSelect&&s.field&&s.field.blur()},100))),l(t,"pika-select"))n._c=!0;else{if(!e.preventDefault)return e.returnValue=!1;e.preventDefault()}}},n._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(l(t,"pika-select-month")?n.gotoMonth(t.value):l(t,"pika-select-year")&&n.gotoYear(t.value))},n._onKeyChange=function(e){if(e=e||window.event,n.isVisible())switch(e.keyCode){case 13:case 27:s.field&&s.field.blur();break;case 37:e.preventDefault(),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)}},n._onInputChange=function(e){var t;e.firedBy!==n&&(t=s.parse?s.parse(s.field.value,s.format):a?(t=i(s.field.value,s.format,s.formatStrict))&&t.isValid()?t.toDate():null:new Date(Date.parse(s.field.value)),D(t)&&n.setDate(t),n._v||n.show())},n._onInputFocus=function(){n.show()},n._onInputClick=function(){n.show()},n._onInputBlur=function(){var e=u.activeElement;do{if(l(e,"pika-single"))return}while(e=e.parentNode);n._c||(n._b=c(function(){n.hide()},50)),n._c=!1},n._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,i=t;if(t){!r&&l(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),o(t,"change",n._onChange)));do{if(l(i,"pika-single")||i===s.trigger)return}while(i=i.parentNode);n._v&&t!==s.trigger&&i!==s.trigger&&n.hide()}},n.el=u.createElement("div"),n.el.className="pika-single"+(s.isRTL?" is-rtl":"")+(s.theme?" "+s.theme:""),o(n.el,"mousedown",n._onMouseDown,!0),o(n.el,"touchend",n._onMouseDown,!0),o(n.el,"change",n._onChange),s.keyboardInput&&o(u,"keydown",n._onKeyChange),s.field&&(s.container?s.container.appendChild(n.el):s.bound?u.body.appendChild(n.el):s.field.parentNode.insertBefore(n.el,s.field.nextSibling),o(s.field,"change",n._onInputChange),s.defaultDate||(a&&s.field.value?s.defaultDate=i(s.field.value,s.format).toDate():s.defaultDate=new Date(Date.parse(s.field.value)),s.setDefaultDate=!0));var t=s.defaultDate;D(t)?s.setDefaultDate?n.setDate(t,!0):n.gotoDate(t):n.gotoDate(new Date),s.bound?(this.hide(),n.el.className+=" is-bound",o(s.trigger,"click",n._onInputClick),o(s.trigger,"focus",n._onInputFocus),o(s.trigger,"blur",n._onInputBlur)):this.show()}).prototype={config:function(e){this._o||(this._o=s({},d,!0));var t=s(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var i,n=parseInt(t.numberOfMonths,10)||1;return t.numberOfMonths=4=s&&(this._y=s,!isNaN(r)&&this._m>r&&(this._m=r)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l'+function(e,t,i,n,s,a){var r,o,l,c,h,d=e._o,u=i===d.minYear,f=i===d.maxYear,m='
',g=!0,v=!0;for(l=[],r=0;r<12;r++)l.push('");for(c='
'+d.i18n.months[n]+'
",o=p(d.yearRange)?(r=d.yearRange[0],d.yearRange[1]+1):(r=i-d.yearRange,1+i+d.yearRange),l=[];r=d.minYear&&l.push('");return h='
'+i+d.yearSuffix+'
",d.showMonthAfterYear?m+=h+c:m+=c+h,u&&(0===n||d.minMonth>=n)&&(g=!1),f&&(11===n||d.maxMonth<=n)&&(v=!1),0===t&&(m+='"),t===e._o.numberOfMonths-1&&(m+='"),m+="
"}(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,t)+this.render(this.calendars[l].year,this.calendars[l].month,t)+"";this.el.innerHTML=o,i.bound&&"hidden"!==i.field.type&&c(function(){i.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),i.bound&&i.field.setAttribute("aria-label",i.ariaLabel)}},adjustPosition:function(){var e,t,i,n,s,a,r,o,l,c,h,d;if(!this._o.container){if(this.el.style.position="absolute",t=e=this._o.trigger,i=this.el.offsetWidth,n=this.el.offsetHeight,s=window.innerWidth||u.documentElement.clientWidth,a=window.innerHeight||u.documentElement.clientHeight,r=window.pageYOffset||u.body.scrollTop||u.documentElement.scrollTop,d=h=!0,"function"==typeof e.getBoundingClientRect)o=(c=e.getBoundingClientRect()).left+window.pageXOffset,l=c.bottom+window.pageYOffset;else for(o=t.offsetLeft,l=t.offsetTop+t.offsetHeight;t=t.offsetParent;)o+=t.offsetLeft,l+=t.offsetTop;(this._o.reposition&&sn.maxDate||n.disableWeekends&&function(e){var t=e.getDay();return 0===t||6===t}(b)||n.disableDayFn&&n.disableDayFn(b),isEmpty:S,isStartRange:C,isEndRange:L,isInRange:T,showDaysInNextAndPreviousMonths:n.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:n.enableSelectionDaysInNextAndPreviousMonths};n.pickWholeWeek&&w&&(v=!0),l.push(function(e){var t=[],i="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),i="true"),e.hasEvent&&t.push("has-event"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'"}(M)),7==++y&&(n.showWeekNumber&&l.unshift(function(e,t,i){var n=new Date(i,0,1);return''+Math.ceil(((new Date(i,t,e)-n)/864e5+n.getDay()+1)/7)+""}(p-r,t,e)),o.push(function(e,t,i,n){return''+(t?e.reverse():e).join("")+""}(l,n.isRTL,n.pickWholeWeek,v)),y=0,v=!(l=[]))}return function(e,t,i){return''+function(e){var t,i=[];for(e.showWeekNumber&&i.push(""),t=0;t<7;t++)i.push('");return""+(e.isRTL?i.reverse():i).join("")+""}(e)+function(e){return""+e.join("")+""}(t)+"
'+R(e,t,!0)+"
"}(n,o,i)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),m(this.el,"is-hidden"),this._o.bound&&(o(u,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&t(u,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",f(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var e=this._o;this.hide(),t(this.el,"mousedown",this._onMouseDown,!0),t(this.el,"touchend",this._onMouseDown,!0),t(this.el,"change",this._onChange),e.keyboardInput&&t(u,"keydown",this._onKeyChange),e.field&&(t(e.field,"change",this._onInputChange),e.bound&&(t(e.trigger,"click",this._onInputClick),t(e.trigger,"focus",this._onInputFocus),t(e.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},y)}()}),m=function(){function s(e,t){var i=void 0===t?{}:t,n=i.format,s=void 0===n?"DD-MM-YYYY":n,a=i.theme,r=void 0===a?"ecl-datepicker-theme":a,o=i.yearRange,l=void 0===o?40:o,c=i.reposition,h=void 0!==c&&c,d=i.showDaysInNextAndPreviousMonths,u=void 0===d||d,f=i.enableSelectionDaysInNextAndPreviousMonths,m=void 0===f||f;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=r,this.yearRange=l,this.showDaysInNextAndPreviousMonths=u,this.enableSelectionDaysInNextAndPreviousMonths=m,this.reposition=h}return s.autoInit=function(e,t){var i=(void 0===t?{}:t).DATEPICKER,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLDatepicker=n},s.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})},s}();var g=function(){function s(e,t){var i=void 0===t?{}:t,n=i.groupSelector,s=void 0===n?"[data-ecl-file-upload-group]":n,a=i.buttonSelector,r=void 0===a?"[data-ecl-file-upload-button]":a,o=i.listSelector,l=void 0===o?"[data-ecl-file-upload-list]":o,c=i.labelChoose,h=void 0===c?"data-ecl-file-upload-label-choose":c,d=i.labelReplace,u=void 0===d?"data-ecl-file-upload-label-replace":d,f=i.attachChangeListener,m=void 0===f||f;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=r,this.listSelector=l,this.labelChoose=h,this.labelReplace=u,this.attachChangeListener=m,this.fileUploadGroup=null,this.fileUploadInput=null,this.fileUploadButton=null,this.fileUploadList=null,this.handleChange=this.handleChange.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).FILE_UPLOAD,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLFileUpload=n};var e=s.prototype;return e.init=function(){this.fileUploadGroup=this.element.closest(this.groupSelector),this.fileUploadInput=this.element,this.fileUploadButton=d(this.buttonSelector,this.fileUploadGroup),this.fileUploadList=d(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(void 0===t&&(t=2),0===e)return"0 Bytes";var i=t<0?0:t,n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(i))+" "+["Bytes","kB","MB","GB","TB","PB","EB","ZB","YB"][n]}(e.size,1),i=e.name.split(".").pop();n+='
  • \n '+e.name+'\n ('+t+" - "+i+")\n
  • "}),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))},s}(),v=function(){function d(e,t){var i=void 0===t?{}:t,n=i.defaultText,s=void 0===n?"":n,a=i.searchText,r=void 0===a?"":a,o=i.selectAllText,l=void 0===o?"":o,c=i.selectMultipleId,h=void 0===c?"select-multiple":c,d=i.selectMultipleSelector,u=void 0===d?"[data-ecl-select-multiple]":d,f=i.defaultTextAttribute,m=void 0===f?"data-ecl-select-default":f,g=i.searchTextAttribute,v=void 0===g?"data-ecl-select-search":g,p=i.selectAllTextAttribute,y=void 0===p?"data-ecl-select-all":p;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.selectMultipleId=h,this.selectMultipleSelector=u,this.defaultTextAttribute=m,this.searchTextAttribute=v,this.selectAllTextAttribute=y,this.defaultText=s,this.searchText=r,this.selectAllText=l,this.input=null,this.search=null,this.checkboxes=null,this.select=null,this.selectAll=null,this.selectIcon=null,this.textDefault=null,this.textSearch=null,this.textSelectAll=null,this.selectMultiple=null,this.inputContainer=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)}d.autoInit=function(e,t){void 0===t&&(t={});var i=new d(e,t);return i.init(),e.ECLSelect=i},d.createSvgIcon=function(e,t){var i=document.createElement("div");i.innerHTML=e;var n=i.children[0];return n.removeAttribute("height"),n.removeAttribute("width"),n.setAttribute("focusable",!1),n.setAttribute("aria-hidden",!0),n.setAttribute("class",t),n},d.createCheckbox=function(e,t){if(!e||!t)return"";var i=e.id,n=e.text,s=e.disabled,a=e.selected,r=e.extraClass;if(!i||!n)return"";var o=document.createElement("div"),l=document.createElement("input"),c=document.createElement("label"),h=document.createElement("span");return r&&o.classList.add(r),a&&l.setAttribute("checked",!0),s&&(o.classList.add("ecl-checkbox--disabled"),l.setAttribute("disabled",s)),o.classList.add("ecl-checkbox"),o.setAttribute("data-select-multiple-value",n),l.classList.add("ecl-checkbox__input"),l.setAttribute("type","checkbox"),l.setAttribute("id",t+"-"+i),o.appendChild(l),c.classList.add("ecl-checkbox__label"),c.setAttribute("for",t+"-"+i),h.classList.add("ecl-checkbox__box"),h.appendChild(d.createSvgIcon('',"ecl-icon ecl-icon--s ecl-checkbox__icon")),c.appendChild(h),c.appendChild(document.createTextNode(n)),o.appendChild(c),o},d.createSelectIcon=function(){var e=document.createElement("div");e.classList.add("ecl-select__icon");var t=d.createSvgIcon('',"ecl-icon ecl-icon--s ecl-select__icon-shape ecl-icon--rotate-180");return e.appendChild(t),e},d.checkCheckbox=function(e){var t=e.target.closest(".ecl-checkbox").querySelector("input");return t.checked=!t.checked,t.checked};var e=d.prototype;return e.init=function(){var e,t,i=this;this.select=this.element;var n=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.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,n),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),n.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(d.createSelectIcon()),this.searchContainer=document.createElement("div"),this.searchContainer.style.display="none",(t=this.searchContainer.classList).add.apply(t,["ecl-select__multiple-dropdown"].concat(n)),this.selectMultiple.appendChild(this.searchContainer),this.search=document.createElement("input"),this.search.classList.add("ecl-text-input"),this.search.setAttribute("type","text"),this.search.setAttribute("placeholder",this.textSearch||""),this.search.addEventListener("keyup",this.handleSearch),this.searchContainer.appendChild(this.search),this.textSelectAll&&(this.selectAll=d.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.searchContainer.appendChild(this.selectAll)),this.select.options&&0this.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=this.galleryItems.length&&(e=0);var t=d("video",this.selectedItem);return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this},s}(),B=u(function(d){!function(u,f){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=this._limits.end?"end":"middle";if(this._stickyMode!=e){switch(e){case"start":v(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":v(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":v(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.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},g=function(e,t){var i,n,s=e[e.length-1];if(i=s,n=t,o()&&r(i.content,n,!0))return s;for(var a=e.length-1;0<=a;a--)if(r(e[a].content,t))return e[a]},v=function(e,t){var i;!e||(i=e.nav.closest("li"))&&(i.classList.remove(t.navClass),e.content.classList.remove(t.contentClass),function e(t,i){var n;i.nested&&t.parentNode&&((n=t.parentNode.closest("li"))&&(n.classList.remove(i.nestedClass),e(n,i)))}(i,t),f("gumshoeDeactivate",i,{link:e.nav,content:e.content,settings:t}))},function(e,t){var i,n,s,a,r,o={};o.setup=function(){i=document.querySelectorAll(e),n=[],Array.prototype.forEach.call(i,function(e){var t=document.getElementById(decodeURIComponent(e.hash.substr(1)));t&&n.push({nav:e,content:t})}),m(n)},o.detect=function(){var e=g(n,r);e?s&&e.content===s.content||(v(s,r),function(e,t){var i;!e||(i=e.nav.closest("li"))&&(i.classList.add(t.navClass),e.content.classList.add(t.contentClass),function e(t,i){var n;!i.nested||(n=t.parentNode.closest("li"))&&(n.classList.add(i.nestedClass),e(n,i))}(i,t),f("gumshoeActivate",i,{link:e.nav,content:e.content,settings:t}))}(e,r),s=e):s&&(v(s,r),s=null)};var l=function(e){a&&h.cancelAnimationFrame(a),a=h.requestAnimationFrame(o.detect)},c=function(e){a&&h.cancelAnimationFrame(a),a=h.requestAnimationFrame(function(){m(n),o.detect()})};o.destroy=function(){s&&v(s,r),h.removeEventListener("scroll",l,!1),r.reflow&&h.removeEventListener("resize",c,!1),r=a=s=i=n=null};return function(){if(r=u(d,t||{}),o.setup(),o.detect(),h.addEventListener("scroll",l,false),r.reflow){h.addEventListener("resize",c,false)}}(),o})}),H=function(){function s(e,t){var i=void 0===t?{}:t,n=i.stickySelector,s=void 0===n?"[data-ecl-inpage-navigation]":n,a=i.containerSelector,r=void 0===a?"[data-ecl-inpage-navigation-container]":a,o=i.inPageList,l=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,f=i.linksSelector,m=void 0===f?"[data-ecl-inpage-navigation-link]":f,g=i.spyActiveContainer,v=void 0===g?"ecl-inpage-navigation--visible":g,p=i.spyOffset,y=void 0===p?20:p,b=i.spyClass,w=void 0===b?"ecl-inpage-navigation__item--active":b,_=i.spyTrigger,k=void 0===_?"[data-ecl-inpage-navigation-trigger-current]":_,S=i.attachClickListener,E=void 0===S||S,O=i.contentClass,x=void 0===O?"ecl-inpage-navigation__heading--active":O;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.attachClickListener=E,this.stickySelector=s,this.containerSelector=r,this.toggleSelector=u,this.linksSelector=m,this.inPageList=l,this.spyActiveContainer=v,this.spySelector=h,this.spyOffset=y,this.spyClass=w,this.spyTrigger=k,this.contentClass=x,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)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).INPAGE_NAVIGATION,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLInpageNavigation=n};var e=s.prototype;return e.initSticky=function(){this.stickyInstance=new B.Sticky(this.element)},e.destroySticky=function(){this.stickyInstance&&this.stickyInstance.remove()},e.initScrollSpy=function(){var e,a,r,o,l=this;this.gumshoe=new F(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=d(this.containerSelector))&&(r=a=0,o=!1,this.stickyObserver=new IntersectionObserver(function(e){if(e&&e[0]){var t=e[0],i=t.boundingClientRect.y,n=t.intersectionRatio,s=t.isIntersecting;if(!o)return o=!0,a=i,void(r=n);i=E.minHorizontal&&("left"==w?t(_-a[a.length-1])<=E.deltaHorizontal&&(o.left=!0):"right"!=w||t(k-a[a.length-1])<=E.deltaHorizontal&&(o.right=!0)),w="none",w=0<(b=r[0]-r[r.length-1])?"top":"bottom",_=n.apply(Math,r),k=i.apply(Math,r),t(b)>=E.minVertical&&("top"==w?t(_-r[r.length-1])<=E.deltaVertical&&(o.top=!0):"bottom"!=w||t(k-r[r.length-1])<=E.deltaVertical&&(o.bottom=!0)),O=[],o.top||o.right||o.bottom||o.left?(E.lockAxis&&((o.left||o.right)&&t(d-u)>t(f-m)?o.top=o.bottom=!1:(o.top||o.bottom)&&t(d-u)';var i=t.children[0];return i.removeAttribute("height"),i.removeAttribute("width"),i.setAttribute("focusable",!1),i.setAttribute("aria-hidden",!0),i.setAttribute("class","ecl-table__icon ecl-icon ecl-icon--2xs "+e),i};var e=s.prototype;return e.init=function(){var i=this;this.sortHeadings=h(this.sortSelector,this.element),this.sortHeadings&&this.sortHeadings.forEach(function(e){var t=document.createElement("span");t.classList.add("ecl-table__arrow"),t.appendChild(s.createSortIcon("ecl-table__icon-up")),t.appendChild(s.createSortIcon("ecl-table__icon-down")),e.appendChild(t),e.addEventListener("click",i.handleClickOnSort.bind(i,e))});var e=d("tbody",this.element);[].concat(h("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"),n=d("tbody",e),i=t.getAttribute("aria-sort"),s=0,a=t.previousElementSibling;a;)s+=a.getAttribute("colspan")?Number(a.getAttribute("colspan")):1,a=a.previousElementSibling;var r,o,i="descending"===i?([].concat(h("tr",n)).forEach(function(e,t){var i=d("[data-ecl-table-order='"+t+"']");n.appendChild(i)}),null):([].concat(h("tr",n)).sort((r=s,o="ascending"!==i,function(e,t){return i=(o?e:t).children[r].textContent,n=(o?t:e).children[r].textContent,""===i||""===n||Number.isNaN(+i)||Number.isNaN(+n)?i.toString().localeCompare(n):i-n;var i,n})).forEach(function(e){return n.appendChild(e)}),"ascending"===i?"descending":"ascending");this.sortHeadings.forEach(function(e){i&&e===t?e.setAttribute("aria-sort",i):e.removeAttribute("aria-sort")})},s}(),$=function(){function s(e,t){var i=void 0===t?{}:t,n=i.buttonSelector,s=void 0===n?"[data-ecl-timeline-button]":n,a=i.labelSelector,r=void 0===a?"[data-ecl-label]":a,o=i.labelExpanded,l=void 0===o?"data-ecl-label-expanded":o,c=i.labelCollapsed,h=void 0===c?"data-ecl-label-collapsed":c,d=i.attachClickListener,u=void 0===d||d;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=r,this.labelExpanded=l,this.labelCollapsed=h,this.attachClickListener=u,this.button=null,this.label=null,this.handleClickOnButton=this.handleClickOnButton.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).TIMELINE2,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLTimeline2=n};var e=s.prototype;return e.init=function(){this.button=d(this.buttonSelector,this.element),this.label=d(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},s}();return e.Accordion2=t,e.Breadcrumb=i,e.BreadcrumbCore=n,e.BreadcrumbHarmonised=s,e.BreadcrumbStandardised=a,e.ContextualNavigation=r,e.Datepicker=m,e.Expandable=o,e.FileDownload=l,e.FileUpload=g,e.Gallery=P,e.InpageNavigation=H,e.Menu=z,e.Message=j,e.Select=v,e.SiteHeader=G,e.SiteHeaderCore=q,e.SiteHeaderHarmonised=Z,e.SiteHeaderStandardised=K,e.Table=X,e.Timeline2=$,e.__moduleExports={},e.autoInit=function(e){var t=void 0===e?{}:e,i=t.root,n=void 0===i?document:i,s=function(e,t){if(null==e)return{};for(var i,n={},s=Object.keys(e),a=0;a