1/*! For license information please see scripts_inra_v2.8b347f28.js.LICENSE.txt */ 2(()=>{var e={517(e,t,n){"use strict";n.d(t,{T:()=>a});var a=function(){var e=document.querySelector(".uploadCustom");null!==e&&e.querySelectorAll('input[type="file"]').forEach(function(e){e.onchange=function(e){e.preventDefault();var t=e.currentTarget.files[0].name;document.querySelector(".fileText").innerHTML=t}})}},990(){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},o=0,r=t;o<r.length;o++){a(r[o])}return e})},433(e,t){!function(e){"use strict";var t={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};e.default=t,e.english=t,Object.defineProperty(e,"__esModule",{value:!0})}(t)},330(e,t){!function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","févr","mars","avr","mai","juin","juil","août","sept","oct","nov","déc"],longhand:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},ordinal:function(e){return e>1?"":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"Défiler pour augmenter la valeur",toggleTitle:"Cliquer pour basculer",time_24hr:!0};t.l10ns.fr=n;var a=t.l10ns;e.French=n,e.default=a,Object.defineProperty(e,"__esModule",{value:!0})}(t)}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=function(e,t){e.style.opacity=0,e.style.display=t||"block",function t(){var n=parseFloat(e.style.opacity);(n+=.1)>1||(e.style.opacity=n,requestAnimationFrame(t))}()},t=function(e){e.style.opacity=1,function t(){(e.style.opacity-=.1)<0?e.style.display="none":requestAnimationFrame(t)}()};function a(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function c(n,a,r,i){var c=a&&a.prototype instanceof u?a:u,d=Object.create(c.prototype);return o(d,"_invoke",function(n,a,o){var r,i,c,u=0,d=o||[],s=!1,f={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,n){return r=t,i=0,c=e,f.n=n,l}};function m(n,a){for(i=n,c=a,t=0;!s&&u&&!o&&t<d.length;t++){var o,r=d[t],m=f.p,g=r[2];n>3?(o=g===a)&&(c=r[(i=r[4])?5:(i=3,3)],r[4]=r[5]=e):r[0]<=m&&((o=n<2&&m<r[1])?(i=0,f.v=a,f.n=r[1]):m<g&&(o=n<3||r[0]>a||a>g)&&(r[4]=n,r[5]=a,f.n=g,i=0))}if(o||n>1)return l;throw s=!0,a}return function(o,d,g){if(u>1)throw TypeError("Generator is already running");for(s&&1===d&&m(d,g),i=d,c=g;(t=i<2?e:c)||!s;){r||(i?i<3?(i>1&&(f.n=-1),m(i,c)):f.n=c:f.v=c);try{if(u=2,r){if(i||(o="next"),t=r[o]){if(!(t=t.call(r,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,i<2&&(i=0)}else 1===i&&(t=r.return)&&t.call(r),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);r=e}else if((t=(s=f.n<0)?c:n.call(a,f))!==l)break}catch(t){r=e,i=1,c=t}finally{u=1}}return{value:t,done:s}}}(n,r,i),!0),d}var l={};function u(){}function d(){}function s(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(o(t={},r,function(){return this}),t),m=s.prototype=u.prototype=Object.create(f);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,o(e,i,"GeneratorFunction")),e.prototype=Object.create(m),e}return d.prototype=s,o(m,"constructor",s),o(s,"constructor",d),d.displayName="GeneratorFunction",o(s,i,"GeneratorFunction"),o(m),o(m,i,"Generator"),o(m,r,function(){return this}),o(m,"toString",function(){return"[object Generator]"}),(a=function(){return{w:c,m:g}})()}function o(e,t,n,a){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}o=function(e,t,n,a){function i(t,n){o(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!a,configurable:!a,writable:!a}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},o(e,t,n,a)}function r(e,t,n,a,o,r,i){try{var c=e[r](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(a,o)}function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}const l=function(t){t.preventDefault();
2var n=t.currentTarget.form,o=Routing.generate("ajax_generate_code"),c=new URLSearchParams(i(new FormData(n).entries())),l=function(){var e,t=(e=a().m(function e(){var t,n;return a().w(function(e){for(;;)switch(e.n){case 0:return t={method:"POST",body:c,headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"}},e.n=1,fetch(o,t);case 1:if((n=e.v).ok){e.n=2;break}throw new Error("HTTP error");case 2:return e.n=3,n.text();case 3:return e.a(2,e.v)}},e)}),function(){var t=this,n=arguments;return new Promise(function(a,o){var i=e.apply(t,n);function c(e){r(i,a,o,c,l,"next",e)}function l(e){r(i,a,o,c,l,"throw",e)}c(void 0)})});return function(){return t.apply(this,arguments)}}(),u=c.get("from"),d=document.querySelector('.ajax-result-generation-code[data-from="'+u+'"]');null!==d&&(d.style.display="none",l().then(function(t){d.innerHTML=t,e(d)}).catch(function(t){d.innerHTML=t,e(d)}))},u=function(e){e.value.length>parseInt(e.getAttribute("maxlength"))&&(e.value=e.value.slice(0,6))};document.querySelector("div.Cookiebar-container");const d=function(){var e=document.querySelector("div.Cookiebar-container");t(e),tarteaucitron.userInterface.respondAll(!0)},s=function(){var e=document.querySelector("div.Cookiebar-container");t(e),tarteaucitron.userInterface.respondAll(!1)},f=function(){var e=document.querySelector("a.Cookiebar-btn.popup-with-zoom-anim"),t=document.querySelector(".tarteaucitronInfoBox");
2e&&t.append(e),tarteaucitron.userInterface.openPanel(),tarteaucitron.reloadThePage=!0};var m='[data-widget~="Dropdown"]',g="data-widget-state",p=function(e){var t=e.parentNode,n="open"===t.getAttribute(g)?"close":"open";t.dataset.widgetState=n};const h=function(){var e=document.querySelectorAll(m);0!==e.length&&(document.querySelector("body").onclick=function(t){null===t.target.parentNode.parentNode.closest(m)&&e.forEach(function(e){e.setAttribute(g,"close")})},e.forEach(function(e){e.setAttribute(g,"close"),e.onclick=function(e){e.stopPropagation();var t=e.target;"SPAN"==t.tagName&&(t=t.parentNode),"svg"==t.tagName&&(t=t.parentNode),"Dropdown-trigger"===t.dataset.widget&&p(t)}}))};var v=n(517),y=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],b={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},w={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};const D=w;var M=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},C=function(e){return!0===e?1:0};function E(e,t){var n;return function(){var a=this,o=arguments;clearTimeout(n),n=setTimeout(function(){return e.apply(a,o)},t)}}var S=function(e){return e instanceof Array?e:[e]};function k(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function x(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function T(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function A(e,t){return t(e)?e:e.parentNode?A(e.parentNode,t):void 0}function I(e,t){var n=x("div","numInputWrapper"),a=x("input","numInput "+e),o=x("span","arrowUp"),r=x("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d*"),void 0!==t)for(var i in t)a.setAttribute(i,t[i]);return n.appendChild(a),n.appendChild(o),n.appendChild(r),n}function O(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var _=function(){},F=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},N={D:_,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*C(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var a=parseInt(t),o=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+n.firstDayOfWeek),o},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:_,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:_,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},P={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"
2(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},j={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[j.w(e,t,n)]},F:function(e,t,n){return F(j.n(e,t,n)-1,!1,t)},G:function(e,t,n){return M(j.h(e,t,n))},H:function(e){return M(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[C(e.getHours()>11)]},M:function(e,t){return F(e.getMonth(),!0,t)},S:function(e){return M(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return M(e.getFullYear(),4)},d:function(e){return M(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return M(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return M(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},L=function(e){var t=e.config,n=void 0===t?b:t,a=e.l10n,o=void 0===a?w:a,r=e.isMobile,i=void 0!==r&&r;return function(e,t,a){var r=a||o;return void 0===n.formatDate||i?t.split("").map(function(t,a,o){return j[t]&&"\\"!==o[a-1]?j[t](e,r,n):"\\"!==t?t:""}).join(""):n.formatDate(e,t,r)}},Y=function(e){var t=e.config,n=void 0===t?b:t,a=e.l10n,o=void 0===a?w:a;return function(e,t,a,r){if(0===e||e){var i,c=r||o,l=e;if(e instanceof Date)i=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)i=new Date(e);else if("string"==typeof e){var u=t||(n||b).dateFormat,d=String(e).trim();if("today"===d)i=new Date,a=!0;else if(n&&n.parseDate)i=n.parseDate(e,u);else if(/Z$/.test(d)||/GMT$/.test(d))i=new Date(e);else{for(var s=void 0,f=[],m=0,g=0,p="";m<u.length;m++){var h=u[m],v="\\"===h,y="\\"===u[m-1]||v;if(P[h]&&!y){p+=P[h];var w=new RegExp(p).exec(e);w&&(s=!0)&&f["Y"!==h?"push":"unshift"]({fn:N[h],val:w[++g]})}else v||(p+=".")}i=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),f.forEach(function(e){var t=e.fn,n=e.val;return i=t(i,n,c)||i}),i=s?i:void 0}}if(i instanceof Date&&!isNaN(i.getTime()))return!0===a&&i.setHours(0,0,0,0),i;n.errorHandler(new Error("Invalid date provided: "+l))}}};function H(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var q=function(e,t,n){return 3600*e+60*t+n},R=864e5;function W(e){var t=e.defaultHour,n=e.defaultMinute,a=e.defaultSeconds;if(void 0!==e.minDate){var o=e.minDate.getHours(),r=e.minDate.getMinutes(),i=e.minDate.getSeconds();t<o&&(t=o),t===o&&n<r&&(n=r),t===o&&n===r&&a<i&&(a=e.minDate.getSeconds())}if(void 0!==e.maxDate){var c=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,c))===c&&(n=Math.min(l,n)),t===c&&n===l&&(a=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:a}}n(990);var B=function(){return B=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},B.apply(this,arguments)},J=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],i=0,c=r.length;i<c;i++,o++)a[o]=r[i];return a};function K(e,t){var n={config:B(B({},b),U.defaultConfig),l10n:D};function a(){var e;return(null===(e=n.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function o(e){return e.bind(n)}function r(){var e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),void 0!==n.daysContainer){var t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+"px",n.calendarContainer.style.width=t+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}})}function i(e){if(0===n.selectedDates.length){var t=void 0===n.config.minDate||H(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),a=W(n.config);t.setHours(a.hours,a.minutes,a.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,a=O(e),o=a;void 0!==n.amPM&&a===n.amPM&&(n.amPM.textContent=n.l10n.amPM[C(n.amPM.textContent===n.l10n.amPM[0])]);var r=parseFloat(o.getAttribute("min")),i=parseFloat(o.getAttribute("max")),c=p
vendor: 21,769 bytes, line 2
2arseFloat(o.getAttribute("step")),l=parseInt(o.value,10),u=e.delta||(t?38===e.which?1:-1:0),d=l+c*u;if(void 0!==o.value&&2===o.value.length){var s=o===n.hourElement,f=o===n.minuteElement;d<r?(d=i+d+C(!s)+(C(s)&&C(!n.amPM)),f&&p(void 0,-1,n.hourElement)):d>i&&(d=o===n.hourElement?d-i-C(!n.amPM):r,f&&p(void 0,1,n.hourElement)),n.amPM&&s&&(1===c?d+l===23:Math.abs(d-l)>c)&&(n.amPM.textContent=n.l10n.amPM[C(n.amPM.textContent===n.l10n.amPM[0])]),o.value=M(d)}}(e);var o=n._input.value;c(),Ce(),n._input.value!==o&&n._debouncedChange()}function c(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e,t,a=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,o=(parseInt(n.minuteElement.value,10)||0)%60,r=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=a,t=n.amPM.textContent,a=e%12+12*C(t===n.l10n.amPM[1]));var i=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===H(n.latestSelectedDateObj,n.config.minDate,!0),c=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===H(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var l=q(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),d=q(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),s=q(a,o,r);if(s>d&&s<l){var f=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]}(l);a=f[0],o=f[1],r=f[2]}}else{if(c){var m=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(a=Math.min(a,m.getHours()))===m.getHours()&&(o=Math.min(o,m.getMinutes())),o===m.getMinutes()&&(r=Math.min(r,m.getSeconds()))}if(i){var g=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(a=Math.max(a,g.getHours()))===g.getHours()&&o<g.getMinutes()&&(o=g.getMinutes()),o===g.getMinutes()&&(r=Math.max(r,g.getSeconds()))}}u(a,o,r)}}function l(e){var t=e||n.latestSelectedDateObj;t&&t instanceof Date&&u(t.getHours(),t.getMinutes(),t.getSeconds())}function u(e,t,a){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(e%24,t,a||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=M(n.config.time_24hr?e:(12+e)%12+12*C(e%12==0)),n.minuteElement.value=M(t),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[C(e>=12)]),void 0!==n.secondElement&&(n.secondElement.value=M(a)))}function d(e){var t=O(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&ee(n)}function s(e,t,a,o){return t instanceof Array?t.forEach(function(t){return s(e,t,a,o)}):e instanceof Array?e.forEach(function(e){return s(e,t,a,o)}):(e.addEventListener(t,a,o),void n._handlers.push({remove:function(){return e.removeEventListener(t,a,o)}}))}function f(){ye("onChange")}function m(e,t){var a=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),o=n.currentYear,r=n.currentMonth;try{void 0!==a&&(n.currentYear=a.getFullYear(),n.currentMonth=a.getMonth())}catch(e){e.message="Invalid date supplied: "+a,n.config.errorHandler(e)}t&&n.currentYear!==o&&(ye("onYearChange"),K()),!t||n.currentYear===o&&n.currentMonth===r||ye("onMonthChange"),n.redraw()}function g(e){var t=O(e);~t.className.indexOf("arrow")&&p(e,t.classList.contains("arrowUp")?1:-1)}function p(e,t,n){var a=e&&O(e),o=n||a&&a.parentNode&&a.parentNode.firstChild,r=be("increment");r.delta=t,o&&o.dispatchEvent(r)}function h(e,t,a,o){var r=te(t,!0),i=x("span",e,t.getDate().toString());return i.dateObj=t,i.$i=o,i.setAttribute("aria-label",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===H(t,n.now)&&(n.todayDateElem=i,i.classList.add("today"),i.setAttribute("aria-current","date")),r?(i.tabIndex=-1,we(t)&&(i.classList.add("selected"),n.selectedDateElem=i,"range"===n.config.mode&&(k(i,"startRange",n.selectedDates[0]&&0===H(t,n.selectedDates[0],!0)),k(i,"endRange",n.selectedDates[1]&&0===H(t,n.selectedDates[1],!0)),"nextMonthDay"===e&&i.classList.add("inRange")))):i.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(e){return!("range"!==n.config.mode||n.selectedDates.length<2)&&(H(e,n.selectedDates[0])>=0&&H(e,n.selectedDates[1])<=0)}(t)&&!we(t)&&i.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&o%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(t)+"</span>"),ye("onDayCreate",i),i}function v(e){e.focus(),"range"===n.config.mode&&re(e)}function w(e){for(var t=e>0?0:n.config.showMonths-1,a=e>0?n.config.showMonths:-1,o=t;o!=a;o+=e)for(var r=n.daysContainer.children[o],i=e>0?0:r.children.length-1,c=e>0?r.children.length:-1,l=i;l!=c;l+=e){var u=r.children[l];if(-1===u.className.indexOf("hidden")&&te(u.dateObj))return u}}function _(e,t){var o=a(),r=ne(o||document.body),i=void 0!==e?e:r?o:void 0!==n.selectedDateElem&&ne(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&ne(n.todayDateElem)?n.todayDateElem:w(t>0?1:-1);void 0===i?n._input.focus():r?function(e,t){for(var a=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,o=t>0?n.config.showMonths:-1,r=t>0?1:-1,i=a-n.currentMonth;i!=o;i+=r)for(var c=n.daysContainer.children[i],l=a-n.currentMonth===i?e.$i+t:t<0?c.children.length-1:0,u=c.children.length,d=l;d>=0&&d<u&&d!=(t>0?u:-1);d+=r){var s=c.children[d];if(-1===s.className.indexOf("hidden")&&te(s.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return v(s)}n.changeMonth(r),_(w(r),0)}(i,t):v(i)}function N(e,t){for(var a=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,o=n.utils.getDaysInMonth((t-1+12)%12,e),r=n.utils.getDaysInMonth(t,e),i=window.document.createDocumentFragment(),c=n.config.showMonths>1,l=c?"prevMonthDay hidden":"prevMonthDay",u=c?"nextMonthDay hidden":"nextMonthDay",d=o+1-a,s=0;d<=o;d++,s++)i.appendChild(h("flatpickr-day "+l,new Date(e,t-1,d),0,s));for(d=1;d<=r;d++,s++)i.appendChild(h("flatpickr-day",new Date(e,t,d),0,s));for(var f=r+1;f<=42-a&&(1===n.config.showMonths||s%7!=0);f++,s++)i.appendChild(h("flatpickr-day "+u,new Date(e,t+1,f%r),0,s));var m=x("div","dayContainer");return m.appendChild(i),m}function j(){if(void 0!==n.daysContainer){T(n.daysContainer),n.weekNumbers&&T(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<n.config.showMonths;t++){var a=new Date(n.currentYear,n.currentMonth,1);a.setMonth(n.currentMonth+t),e.appendChild(N(a.getFullYear(),a.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&re()}}function K(){if(!(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var a=x("option","flatpickr-monthDropdown-month");a.value=new Date(n.currentYear,t).getMonth().toString(),a.textContent=F(t,n.config.shorthandCurrentMonth,n.l10n),a.tabIndex=-1,n.currentMonth===t&&(a.selected=!0),n.monthsDropdownContainer.appendChild(a)}}}function z(){var e,t=x("div","flatpickr-month"),a=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?e=x("span","cur-month"):(n.monthsDropdownContainer=x("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),s(n.monthsDropdownContainer,"change",function(e){var t=O(e),a=parseInt(t.value,10);n.changeMonth(a-n.currentMonth),ye("onMonthChange")}),K(),e=n.monthsDropdownContainer);var o=I("cur-year",{tabindex:"-1"}),r=o.getElementsByTagName("input")[0];r.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&r.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(r.setAttribute("max",n.config.maxDate.getFullYear().toString()),r.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var i=x("div","flatpickr-current-month");return i.appendChild(e),i.appendChild(o),a.appendChild(i),t.appendChild(a),{container:t,yearElement:r,monthElement:e}}function $(){T(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=z();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function G(){n.weekdayContainer?T(n.weekdayContainer):n.weekdayContainer=x("div","flatpickr-weekdays");for(var e=n.config.showMonths;e--;){var t=x("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(t)}return V(),n.weekdayContainer}function V(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=J(n.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=J(t.splice(e,t.length),t.splice(0,e)));for(var a=n.config.showMonths;a--;)n.weekdayContainer.children[a].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function X(e,t){void 0===t&&(t=!0);var a=t?e:e-n.currentMonth;a<0&&!0===n._hidePrevMonthArrow||a>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=a,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,ye("onYearChange"),K()),j(),ye("onMonthChange"),De())}function Z(e){return n.calendarContainer.contains(e)}function Q(e){if(n.isOpen&&!n.config.inline){var t=O(e),a=Z(t),o=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)))&&!a&&!Z(e.relatedTarget),r=!n.config.ignoredFocusElements.some(function(e){return e.contains(t)});o&&r&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&i(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function ee(e){if(!(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())){var t=e,a=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),a&&(n.redraw(),ye("onYearChange"),K())}}function te(e,t){var a;void 0===t&&(t=!0);var o=n.parseDate(e,void 0,t);if(n.config.minDate&&o&&H(o,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&o&&H(o,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===o)return!1;for(var r=!!n.config.enable,i=null!==(a=n.config.enable)&&void 0!==a?a:n.config.disable,c=0,l=void 0;c<i.length;c++){if("function"==typeof(l=i[c])&&l(o))return r;if(l instanceof Date&&void 0!==o&&l.getTime()===o.getTime())return r;if("string"==typeof l){var u=n.parseDate(l,void 0,!0);return u&&u.getTime()===o.getTime()?r:!r}if("object"==typeof l&&void 0!==o&&l.from&&l.to&&o.getTime()>=l.from.getTime()&&o.getTime()<=l.to.getTime())return r}return!r}function ne(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e))}function ae(e){var t=e.target===n._input,a=n._input.value.trimEnd()!==Me();!t||!a||e.relatedTarget&&Z(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function oe(t){var o=O(t),r=n.config.wrap?e.contains(o):o===n._input,l=n.config.allowInput,u=n.isOpen&&(!l||!r),d=n.config.inline&&r&&!l;if(13===t.keyCode&&r){if(l)return n.setDate(n._input.value,!0,o===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),o.blur();n.open()}else if(Z(o)||u||d){var s=!!n.timeContainer&&n.timeContainer.contains(o);switch(t.keyCode){case 13:s?(t.preventDefault(),i(),fe()):me(t);break;case 27:t.preventDefault(),fe();break;case 8:case 46:r&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(s||r)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var f=a();if(void 0!==n.daysContainer&&(!1===l||f&&ne(f))){var m=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),X(m),_(w(1),0)):_(void 0,m)}}break;case 38:case 40:t.preventDefault();var g=40===t.keyCode?1:-1;n.daysContainer&&void 0!==o.$i||o===n.input||o===n.altInput?t.ctrlKey?(t.stopPropagation(),ee(n.currentYear-g),_(w(1),0)):s||_(void 0,7*g):o===n.currentYearElement?ee(n.currentYear-g):n.config.enableTime&&(!s&&n.hourElement&&n.hourElement.focus(),i(t),n._debouncedChange());break;case 9:if(s){var p=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter(function(e){return e}),h=p.indexOf(o);if(-1!==h){var v=p[h+(t.shiftKey?-1:1)];t.preventDefault(),(v||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(o)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&o===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],c(),Ce();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],c(),Ce()}(r||Z(o))&&ye("onKeyDown",t)}function re(e,t){if(void 0===t&&(t="flatpickr-day"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var a=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),o=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),r=Math.min(a,n.selectedDates[0].getTime()),i=Math.max(a,n.selectedDates[0].getTime()),c=!1,l=0,u=0,d=r;d<i;d+=R)te(new Date(d),!0)||(c=c||d>r&&d<i,d<o&&(!l||d>l)?l=d:d>o&&(!u||d<u)&&(u=d));Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+"+n.config.showMonths+") > ."+t)).forEach(function(t){var r,i,d,s=t.dateObj.getTime(),f=l>0&&s<l||u>0&&s>u;if(f)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach(function(e){t.classList.remove(e)});c&&!f||(["startRange","inRange","endRange","notAllowed"].forEach(function(e){t.classList.remove(e)}),void 0!==e&&(e.classList.add(a<=n.selectedDates[0].getTime()?"startRange":"endRange"),o<a&&s===o?t.classList.add("startRange"):o>a&&s===o&&t.classList.add("endRange"),s>=l&&(0===u||s<=u)&&(i=o,d=a,(r=s)>Math.min(i,d)&&r<Math.max(i,d))&&t.classList.add("inRange")))})}}function ie(){!n.isOpen||n.config.static||n.config.inline||de()}function ce(e){return function(t){var a=n.config["_"+e+"Date"]=n.parseDate(t,n.config.dateFormat),o=n.config["_"+("min"===e?"max":"min")+"Date"];void 0!==a&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=a.getHours()>0||a.getMinutes()>0||a.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter(function(e){return te(e)}),n.selectedDates.length||"min"!==e||l(a),Ce()),n.daysContainer&&(se(),void 0!==a?n.currentYearElement[e]=a.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!o&&void 0!==a&&o.getFullYear()===a.getFullYear())}}function le(){return n.config.wrap?e.querySelector("[data-input]"):e}function ue(){"object"!=typeof n.config.locale&&void 0===U.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=B(B({},U.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?U.l10ns[n.config.locale]:void 0),P.D="("+n.l10n.weekdays.shorthand.join("|")+")",P.l="("+n.l10n.weekdays.longhand.join("|")+")",P.M="("+n.l10n.months.shorthand.join("|")+")",P.F="("+n.l10n.months.longhand.join("|")+")",P.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===B(B({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===U.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=L(n),n.parseDate=Y({config:n.config,l10n:n.l10n})}function de(e){if("function"!=typeof n.config.position){if(void 0!==n.calendarContainer){ye("onPreCalendarPosition");var t=e||n._positionElement,a=Array.prototype.reduce.call(n.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),o=n.calendarContainer.offsetWidth,r=n.config.position.split(" "),i=r[0],c=r.length>1?r[1]:null,l=t.getBoundingClientRect(),u=window.innerHeight-l.bottom,d="above"===i||"below"!==i&&u<a&&l.top>a,s=window.pageYOffset+l.top+(d?-a-2:t.offsetHeight+2);if(k(n.calendarContainer,"arrowTop",!d),k(n.calendarContainer,"arrowBottom",d),!n.config.inline){var f=window.pageXOffset+l.left,m=!1,g=!1;"center"===c?(f-=(o-l.width)/2,m=!0):"right"===c&&(f-=o-l.width,g=!0),k(n.calendarContainer,"arrowLeft",!m&&!g),k(n.calendarContainer,"arrowCenter",m),k(n.calendarContainer,"arrowRight",g);var p=window.document.body.offsetWidth-(window.pageXOffset+l.right),h=f+o>window.document.body.offsetWidth,v=p+o>window.document.body.offsetWidth;if(k(n.calendarContainer,"rightMost",h),!n.config.static)if(n.calendarContainer.style.top=s+"px",h)if(v){var y=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(a=document.createElement("style"),document.head.appendChild(a),a.sheet);var a}();if(void 0===y)return;var b=window.document.body.offsetWidth,w=Math.max(0,b/2-o/2),D=y.cssRules.length,M="{left:"+l.left+"px;right:auto;}";k(n.calendarContainer,"rightMost",!1),k(n.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+M,D),n.calendarContainer.style.left=w+"px",n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=p+"px";else n.calendarContainer.style.left=f+"px",n.calendarContainer.style.right="auto"}}}else n.config.position(n,e)}function se(){n.config.noCalendar||n.isMobile||(K(),De(),j())}function fe(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function me(e){e.preventDefault(),e.stopPropagation();var t=A(O(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var a=t,o=n.latestSelectedDateObj=new Date(a.dateObj.getTime()),r=(o.getMonth()<n.currentMonth||o.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=a,"single"===n.config.mode)n.selectedDates=[o];else if("multiple"===n.config.mode){var i=we(o);i?n.selectedDates.splice(parseInt(i),1):n.selectedDates.push(o)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=o,n.selectedDates.push(o),0!==H(o,n.selectedDates[0],!0)&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(c(),r){var l=n.currentYear!==o.getFullYear();n.currentYear=o.getFullYear(),n.currentMonth=o.getMonth(),l&&(ye("onYearChange"),K()),ye("onMonthChange")}if(De(),j(),Ce(),r||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():v(a),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var u="single"===n.config.mode&&!n.config.enableTime,d="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(u||d)&&fe()}f()}}n.parseDate=Y({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=s,n._setHoursFromDate=l,n._positionCalendar=de,n.changeMonth=X,n.changeYear=ee,n.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var a=W(n.config);u(a.hours,a.minutes,a.seconds)}n.redraw(),e&&ye("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));ye("onClose")},n.onMouseOver=re,n._createElement=x,n.createDay=h,n.destroy=function(){void 0!==n.config&&ye("onDestroy");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","
2isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete n[e]}catch(e){}})},n.isEnabled=te,n.jumpToDate=m,n.updateValue=Ce,n.open=function(e,t){void 0===t&&(t=n._positionElement);if(!0===n.isMobile){if(e){e.preventDefault();var a=O(e);a&&a.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void ye("onOpen")}if(n._input.disabled||n.config.inline)return;var o=n.isOpen;n.isOpen=!0,o||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),ye("onOpen"),de(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return n.hourElement.select()},50))},n.redraw=se,n.set=function(e,t){if(null!==e&&"object"==typeof e)for(var a in Object.assign(n.config,e),e)void 0!==ge[a]&&ge[a].forEach(function(e){return e()});else n.config[e]=t,void 0!==ge[e]?ge[e].forEach(function(e){return e()}):y.indexOf(e)>-1&&(n.config[e]=S(t));n.redraw(),Ce(!0)},n.setDate=function(e,t,a){void 0===t&&(t=!1);void 0===a&&(a=n.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);pe(e,a),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),m(void 0,t),l(),0===n.selectedDates.length&&n.clear(!1);Ce(t),t&&ye("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var ge={locale:[ue,V],showMonths:[$,r,G],minDate:[m],maxDate:[m],positionElement:[ve],clickOpens:[function(){!0===n.config.clickOpens?(s(n._input,"focus",n.open),s(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function pe(e,t){var a=[];if(e instanceof Array)a=e.map(function(e){return n.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)a=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":a=[n.parseDate(e,t)];break;case"multiple":a=e.split(n.config.conjunction).map(function(e){return n.parseDate(e,t)});break;case"range":a=e.split(n.l10n.rangeSeparator).map(function(e){return n.parseDate(e,t)})}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?a:a.filter(function(e){return e instanceof Date&&te(e,!1)}),"range"===n.config.mode&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function he(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function ve(){n._positionElement=n.config.positionElement||n._input}function ye(e,t){if(void 0!==n.config){var a=n.config[e];if(void 0!==a&&a.length>0)for(var o=0;a[o]&&o<a.length;o++)a[o](n.selectedDates,n.input.value,n,t);"onChange"===e&&(n.input.dispatchEvent(be("change")),n.input.dispatchEvent(be("input")))}}function be(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function we(e){for(var t=0;t<n.selectedDates.length;t++){var a=n.selectedDates[t];if(a instanceof Date&&0===H(a,e))return""+t}return!1}function De(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach(function(e,t){var a=new Date(n.currentYear,n.currentMonth,1);a.setMonth(n.currentMonth+t),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=F(a.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=a.getMonth().toString(),e.value=a.getFullYear().toString()}),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function Me(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map(function(e){return n.formatDate(e,t)}).filter(function(e,t,a){return"range"!==n.config.mode||n.config.enableTime||a.indexOf(e)===t}).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function Ce(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=Me(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=Me(n.config.altFormat)),!1!==e&&ye("onValueUpdate")}function Ee(e){var t=O(e),a=n.prevMonthNav.contains(t),o=n.nextMonthNav.contains(t);a||o?X(a?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var a=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=B(B({},JSON.parse(JSON.stringify(e.dataset||{}))),t),i={};n.config.parseDate=r.parseDate,n.config.formatDate=r.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(e){n.config._enable=he(e)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(e){n.config._disable=he(e)}});var c="time"===r.mode;if(!r.dateFormat&&(r.enableTime||c)){var l=U.defaultConfig.dateFormat||b.dateFormat;i.dateFormat=r.noCalendar||c?"H:i"+(r.enableSeconds?":S":""):l+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||c)&&!r.altFormat){var u=U.defaultConfig.altFormat||b.altFormat;i.altFormat=r.noCalendar||c?"h:i"+(r.enableSeconds?":S K":" K"):u+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:ce("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:ce("max")}
vendor: 5,763 bytes, line 2
2);var d=function(e){return function(t){n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:d("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:d("max")}),"time"===r.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,i,r);for(var s=0;s<a.length;s++)n.config[a[s]]=!0===n.config[a[s]]||"true"===n.config[a[s]];y.filter(function(e){return void 0!==n.config[e]}).forEach(function(e){n.config[e]=S(n.config[e]||[]).map(o)}),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(s=0;s<n.config.plugins.length;s++){var f=n.config.plugins[s](n)||{};for(var m in f)y.indexOf(m)>-1?n.config[m]=S(f[m]).map(o).concat(n.config[m]):void 0===r[m]&&(n.config[m]=f[m])}r.altInputClass||(n.config.altInputClass=le().className+" "+n.config.altInputClass);ye("onParseConfig")}(),ue(),function(){if(n.input=le(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=x(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");ve()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&pe(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=x("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=x("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=x("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=x("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,$(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&(k(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&(k(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],De(),n.monthNav)),n.innerContainer=x("div","flatpickr-innerContainer"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add("hasWeeks");var e=x("div","flatpickr-weekwrapper");e.appendChild(x("span","flatpickr-weekday",n.l10n.weekAbbreviation));var t=x("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),a=t.weekWrapper,o=t.weekNumbers;n.innerContainer.appendChild(a),n.weekNumbers=o,n.weekWrapper=a}n.rContainer=x("div","flatpickr-rContainer"),n.rContainer.appendChild(G()),n.daysContainer||(n.daysContainer=x("div","flatpickr-days"),n.daysContainer.tabIndex=-1),j(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var e=W(n.config);n.timeContainer=x("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var t=x("span","flatpickr-time-separator",":"),a=I("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=a.getElementsByTagName("input")[0];var o=I("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=o.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=M(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=M(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",
2n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(a),n.timeContainer.appendChild(t),n.timeContainer.appendChild(o),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var r=I("flatpickr-second");n.secondElement=r.getElementsByTagName("input")[0],n.secondElement.value=M(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(x("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(r)}n.config.time_24hr||(n.amPM=x("span","flatpickr-am-pm",n.l10n.amPM[C((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());k(n.calendarContainer,"rangeMode","range"===n.config.mode),k(n.calendarContainer,"animate",!0===n.config.animate),k(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);var r=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!r&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var i=x("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(i,n.element),i.appendChild(n.element),n.altInput&&i.appendChild(n.altInput),i.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+e+"]"),function(t){return s(t,"click",n[e])})});if(n.isMobile)return void function(){var e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=x("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}s(n.mobileInput,"change",function(e){n.setDate(O(e).value,!1,n.mobileFormatStr),ye("onChange"),ye("onClose")})}();var e=E(ie,50);n._debouncedChange=E(f,300),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&s(n.daysContainer,"mouseover",function(e){"range"===n.config.mode&&re(O(e))});s(n._input,"keydown",oe),void 0!==n.calendarContainer&&s(n.calendarContainer,"keydown",oe);n.config.inline||n.config.static||s(window,"resize",e);void 0!==window.ontouchstart?s(window.document,"touchstart",Q):s(window.document,"mousedown",Q);s(window.document,"focus",Q,{capture:!0}),!0===n.config.clickOpens&&(s(n._input,"focus",n.open),s(n._input,"click",n.open));void 0!==n.daysContainer&&(s(n.monthNav,"click",Ee),s(n.monthNav,["keyup","increment"],d),s(n.daysContainer,"click",me));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var t=function(e){return O(e).select()};s(n.timeContainer,["increment"],i),s(n.timeContainer,"blur",i,{capture:!0}),s(n.timeContainer,"click",g),s([n.hourElement,n.minuteElement],["focus","click"],t),void 0!==n.secondElement&&s(n.secondElement,"focus",function(){return n.secondElement&&n.secondElement.select()}),void 0!==n.amPM&&s(n.amPM,"click",function(e){i(e)})}n.config.allowInput&&s(n._input,"blur",ae)}
2(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&l(n.config.noCalendar?n.latestSelectedDateObj:void 0),Ce(!1)),r();var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&a&&de(),ye("onReady")}(),n}function z(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),a=[],o=0;o<n.length;o++){var r=n[o];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=K(r,t||{}),a.push(r._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return z(this,e)},HTMLElement.prototype.flatpickr=function(e){return z([this],e)});var U=function(e,t){return"string"==typeof e?z(window.document.querySelectorAll(e),t):e instanceof Node?z([e],t):z(e,t)};U.defaultConfig={},U.l10ns={en:B({},D),default:B({},D)},U.localize=function(e){U.l10ns.default=B(B({},U.l10ns.default),e)},U.setDefaults=function(e){U.defaultConfig=B(B({},U.defaultConfig),e)},U.parseDate=Y({}),U.formatDate=L({}),U.compareDates=H,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return z(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=U);const G=U;var V=n(330),X=n(433);const Z=function(){var e=document.querySelectorAll('[data-type-field="flatpickr"]');Array.from(e).forEach(function(e){var t,n;G(e,{allowInput:!0,dateFormat:(n=e.dataset.getFormat,n.replace(/d+/gi,"d").replace(/m+/gi,"m").replace(/y{4}/gi,"Y").replace(/y{2}/gi,"y")),locale:(t=document.documentElement.lang,t.includes("fr")?V.French:X.english)})})};function Q(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,r=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw r}}}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var te="body",ne=function(e){e.preventDefault();var t="open"===document.querySelector(te).getAttribute("data-menuRwd-state")?"close":"open";document.querySelector(te).setAttribute("data-menuRwd-state",t)};const ae=function(e){for(var t=[],n=e.parentNode.firstChild;n;)1===n.nodeType&&n!==e&&t.push(n),n=n.nextSibling;return t};var oe="[data-navigation-submenu]",re=function(){var e=document.querySelectorAll(".MainNav-list > li");null!==e&&0<e.length&&e.forEach(function(e){e.onmouseenter=function(e){ce(e)},e.onmouseleave=function(e){le(e)}})},ie=function(){var e=document.querySelectorAll("[data-widget-hasChild] > .MainNav-item");null!==e&&0<e.length&&e.forEach(function(e){e.onclick=function(e){ue(e)}})},ce=function(e){var t=e.currentTarget;t.setAttribute("data-widget-state","open"),ae(t).forEach(function(e){e.setAttribute("data-widget-state","close")})},le=function(e){var t=e.currentTarget;t.setAttribute("data-widget-state","close"),ae(t).forEach(function(e){e.setAttribute("data-widget-state","close")})},ue=function(e){var t=e.currentTarget.parentNode,n="open"===t.getAttribute("data-widget-state")?"close":"open";t.setAttribute("data-widget-state",n)};function de(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return se(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var fe=function(e){void 0===e.getAttribute("data-widget-state")&&e.setAttribute("data-widget-state","close")},me=function(e){var t=e.currentTarget.parentNode,n="open"===t.getAttribute("data-widget-state")?"close"
2:"open";t.setAttribute("data-widget-state",n)},ge=function(e){var t="false"===e.getAttribute("aria-hidden")?"true":"false";e.setAttribute("aria-hidden",t),e.style.display="block"};function pe(e){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function he(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,ve(a.key),a)}}function ve(e){var t=function(e,t){if("object"!=pe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=pe(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pe(t)?t:t+""}const ye=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modal=t,this.triggerElements=null,this.activeTrigger=null,this.mainContent=document.querySelector("[data-main-content]"),this.body=document.querySelector("body")},t=[{key:"init",value:function(){this.modal&&this.checkTrigger()&&this.initModal()}},{key:"checkTrigger",value:function(){var e=this.modal.getAttribute("data-modal"),t=document.querySelectorAll("[data-modal-trigger=".concat(e,"]"));return this.triggerElements=t,t.length}},{key:"initModal",value:function(){this.addTriggerListener(),this.KeyboardCloseModal(),this.keyboardLoopTabulation()}},{key:"addTriggerListener",value:function(){var e=this;this.triggerElements.forEach(function(t){t.addEventListener("click",function(t){e.apparitionHandler(t)})})}},{key:"apparitionHandler",value:function(){"true"===this.modal.getAttribute("aria-hidden")?(this.showModal(),this.modal.focus()):this.hideModal()}},{key:"showModal",value:function(){var e=this;this.modal.style.display="block",setTimeout(function(){e.modal.setAttribute("aria-hidden","false"),e.body.style.overflow="hidden",e.mainContent&&e.mainContent.setAttribute("aria-hidden","true")},100)}},{key:"hideModal",value:function(){var e=this;this.mainContent&&this.mainContent.setAttribute("aria-hidden","false"),this.modal.setAttribute("aria-hidden","true"),this.body.removeAttribute("style"),setTimeout(function(){e.modal.style.display="none"},300)}},{key:"KeyboardCloseModal",value:function(){var e=this;document.addEventListener("keydown",function(t){"Escape"===t.key&&("true"===e.modal.getAttribute("aria-hidden")||e.hideModal())})}},{key:"keyboardLoopTabulation",value:function(){var e=this.modal.querySelector("[data-modal-loop-start]"),t=(this.modal.querySelector("[data-modal-loop-end]"),this.modal.querySelector("[data-modal-dummytoFocus-start]"),this.modal.querySelector("[data-modal-dummytoFocus-end]"));e.addEventListener("focus",function(e){t.focus()},!0)}}],t&&he(e.prototype,t),n&&he(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function be(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,r=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw r}}}}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll("[data-modal]");e.length&&e.forEach(function(e){new ye(e).init()})});var De="accordion-part--expanded",Me=".collapsible",Ce=function(){document.querySelectorAll(".accordion-part").forEach(function(e){e.querySelector(".accordion-part__header").addEventListener("click",function(t){!function(e){var t=e.classList.contains(De);t?function(e){var t=e.querySelector(Me);t.style.height=t.scrollHeight+"px",requestAnimationFrame(function(){t.style.height="0px"}),e.classList.remove(De),e.resizeObserver&&(e.resizeObserver.disconnect(),delete e.resizeObserver)}(e):function(e){var t=e.querySelector(Me),n=t.scrollHeight;t.style.height="0px",requestAnimationFrame(function(){t.style.height=n+"px"}),e.classList.add(De);var a=t.querySelector(".collapsible__content"),o=new ResizeObserver(function(n){var o,r=be(n);try{for(r.s();!(o=r.n()).done;){var i=o.value;i.target===a&&e.classList.contains(De)&&(t.style.height="".concat(i.borderBoxSize[0].blockSize,"px"))}}catch(e){r.e(e)}finally{r.f()}});o.observe(a),e.resizeObserver=o}(e)}(e),t.stopPropagation()})})};!function(){var e=this,t=function(){var e;h(),v.T(),function(){document.querySelector(te).setAttribute("data-menuRwd-state","close");var e=document.querySelector(".HeaderRwd-item--nav");null!==e&&(e.onclick=function(e){ne(e)})}(),function(){Z();var e=document.querySelector(".captcha-field");if(null!==e){var t,n=Q(e.parentNode.children);try{for(n.s();!(t=n.n()).done;){var a=t.value;a!==e&&a.classList.contains("help-block")&&e.parentNode.removeChild(a)}}catch(e){n.e(e)}finally{n.f()}}}(),n(),document.querySelectorAll('[data-widget~="ImageCover"]').forEach(function(e){var t=de(e.children).filter(function(e){return!e.firstElementChild.querySelector(":not(img)")})[0].firstElementChild.src;e.style.backgroundImage="url("+t+")"}),document.querySelectorAll("[data-widget~='ToggleBlock']").forEach(function(e){fe(e),e.querySelector("[data-widget~='ToggleBlock-trigger']").onclick=function(e){me(e)}}),document.querySelectorAll('[data-widget~="Tooltip"]').forEach(function(e){var t=e.getAttribute("aria-describedby"),n=document.getElementById(t);n.setAttribute("aria-hidden","true"),n.style.display="none",e.onclick=function(){ge(n)}}),null!=(e=document.querySelectorAll("[data-mouseenter]"))&&e.forEach(function(e){e.addEventListener("mouseenter",function(){e.querySelector(oe).classList.add("HorizontalMenu-childContainer--open")}),e.addEventListener("mouseleave",function(){e.querySelector(oe).classList.remove("HorizontalMenu-childContainer--open")})}),Ce(),a(),o(),r(),i(),c()},n=function(){!function(){var e=document.querySelector('[data-widget~="DropdownNav"]');if(null!==e){var t=e.querySelectorAll("li:not(li li li)");0<t.length&&t.forEach(function(e){e.children.length>1&&e.setAttribute("data-widget-hasChild","")})}}(),window.matchMedia("(min-width: 960px)").matches?re():ie()},a=function(){var e=document.querySelectorAll(".generate-code");null!==e&&e.length>0&&e.forEach(function(e){e.onclick=function(e){l(e)}});var t=document.querySelectorAll(".code");t.length>0&&t.forEach(function(e){e.onkeyup=function(e){var t=e.currentTarget;u(t)}})},o=function(){var e=document.getElementById("home_more_news");null!==e&&(e.onclick=function(){document.getElementById("hidden_cards").classList.remove("hidden"),document.getElementById("#home_more_news").style.visibility="hidden",document.getElementById("#home_all_news").classList.remove("hidden")})},r=function(){var e=document.querySelectorAll("input[name=DiscardButton], input[name=StoreExitButton], input[name=StoreButton]"),t=document.getElementById("editform");e.forEach(function(e){e.onmouseenter=function(){return t.setAttribute("novalidate","novalidate")},e.onmouseleave=function(){return t.removeAttribute("novalidate")}})},i=function(){var t=document.querySelector("twitter-tweet-button");null!==t&&(t.onclick=function(){var t=($(window).width()-575)/2,n=($(window).height()-400)/2,a=e.href,o="status=1,width=575,height=400,top="+n+",left="+t;return window.open(a,"twitter",o),!1})},c=function(){var e=document.getElementById("btn-accept-cookie"),t=document.getElementById("btn-decline-cookie"),n=document.getElementsByClassName("btn-pers
2onalize-cookie");if(null!==e&&(e.onclick=function(){return d()},document.querySelector("body").classList.contains("ibexa-preview-mode")))var a=setInterval(function(){"block"===document.querySelector("div.Cookiebar-container").style.display&&(e.click(),clearInterval(a))},1e3);if(null!==t){var o=t.dataset.siteacces;t.onclick=function(){return s(o)}}Array.from(n).forEach(function(e){e.onclick=function(){f()}})};document.addEventListener("DOMContentLoaded",function(){t()}),window.addEventListener("orientationchange",function(e){window.matchMedia("(min-width: 960px)").matches?re():ie()})}()})()})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.