vendor: 6,067 bytes, lines 1-2
1/* flatpickr v4.5.1, @license MIT */ 2!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.flatpickr=n()}(this,function(){"use strict";var Q=function(e){return("0"+e).slice(-2)},X=function(e){return!0===e?1:0};function ee(t,a,i){var o;return void 0===i&&(i=!1),function(){var e=this,n=arguments;null!==o&&clearTimeout(o),o=window.setTimeout(function(){o=null,i||t.apply(e,n)},a),i&&!o&&t.apply(e,n)}}var ne=function(e){return e instanceof Array?e:[e]},e=function(){return undefined},te=function(e,n,t){return t.months[n?"shorthand":"longhand"][e]},b={D:e,F:function(e,n,t){e.setMonth(t.months.longhand.indexOf(n))},G:function(e,n){e.setHours(parseFloat(n))},H:function(e,n){e.setHours(parseFloat(n))},J:function(e,n){e.setDate(parseFloat(n))},K:function(e,n,t){e.setHours(e.getHours()%12+12*X(new RegExp(t.amPM[1],"i").test(n)))},M:function(e,n,t){e.setMonth(t.months.shorthand.indexOf(n))},S:function(e,n){e.setSeconds(parseFloat(n))},U:function(e,n){return new Date(1e3*parseFloat(n))},W:function(e,n){var t=parseInt(n);return new Date(e.getFullYear(),0,2+7*(t-1),0,0,0,0)},Y:function(e,n){e.setFullYear(parseFloat(n))},Z:function(e,n){return new Date(n)},d:function(e,n){e.setDate(parseFloat(n))},h:function(e,n){e.setHours(parseFloat(n))},i:function(e,n){e.setMinutes(parseFloat(n))},j:function(e,n){e.setDate(parseFloat(n))},l:e,m:function(e,n){e.setMonth(parseFloat(n)-1)},n:function(e,n){e.setMonth(parseFloat(n)-1)},s:function(e,n){e.setSeconds(parseFloat(n))},w:e,y:function(e,n){e.setFullYear(2e3+parseFloat(n))}},ae={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},d={Z:function(e){return e.toISOString()},D:function(e,n,t){return n.weekdays.shorthand[d.w(e,n,t)]},F:function(e,n,t){return te(d.n(e,n,t)-1,!1,n)},G:function(e,n,t){return Q(d.h(e,n,t))},H:function(e){return Q(e.getHours())},J:function(e,n){return n.ordinal!==undefined?e.getDate()+n.ordinal(e.getDate()):e.getDate()},K:function(e,n){return n.amPM[X(11<e.getHours())]},M:function(e,n){return te(e.getMonth(),!0,n)},S:function(e){return Q(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,n,t){return t.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return Q(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return Q(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,n){return n.weekdays.longhand[e.getDay()]},m:function(e){return Q(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},ie={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 n=e%100;if(3<n&&n<21)return"th";switch(n%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"},oe=function(e){var n=e.config,o=void 0===n?C:n,t=e.l10n,r=void 0===t?ie:t;return function(a,e,n){if(o.formatDate!==undefined)return o.formatDate(a,e);var i=n||r;return e.split("").map(function(e,n,t){return d[e]&&"\\"!==t[n-1]?d[e](a,i,o):"\\"!==e?e:""}).join("")}},re=function(e){var n=e.config,v=void 0===n?C:n,t=e.l10n,w=void 0===t?ie:t;return function(e,n,t,a){if(0!==e&&!e)return undefined;var i,o=a||w,r=e;if(e instanceof Date)i=new Date(e.getTime());else if("string"!=typeof e&&e.toFixed!==undefined)i=new Date(e);else if("string"==typeof e){var d=n||(v||C).dateFormat,l=String(e).trim();if("today"===l)i=new Date,t=!0;else if(/Z$/.test(l)||/GMT$/.test(l))i=new Date(e);else if(v&&v.parseDate)i=v.parseDate(e,d);else{i=v&&v.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var c,u=[],s=0,f=0,m="";s<d.length;s++){var g=d[s],p="\\"===g,h="\\"===d[s-1]||p;if(ae[g]&&!h){m+=ae[g];var D=new RegExp(m).exec(e);D&&(c=!0)&&u["Y"!==g?"push":"unshift"]({fn:b[g],val:D[++f]})}else p||(m+=".");u.forEach(function(e){var n=e.fn,t=e.val;return i=n(i,t,o)||i})}i=c?i:undefined}}return i instanceof Date&&!isNaN(i.getTime())?(!0===t&&i.setHours(0,0,0,0),i):(v.errorHandler(new Error("Invalid date provided: "+r)),undefined)}};function de(e,n,t){return void 0===t&&(t=!0),!1!==t?new Date(e.getTime()).setHours(0,0,0,0)-new Date(n.getTime()).setHours(0,0,0,0):e.getTime()-n.getTime()}var le=function(e,n,t){return e>Math.min(n,t)&&e<Math.max(n,t)},ce={DAY:864e5},C={_disable:[],_enable:[],allowInput:!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",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var n=new Date(e.getTime());n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var t=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewB
2ox='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:undefined,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};function ue(e,n,t){if(!0===t)return e.classList.add(n);e.classList.remove(n)}function se(e,n,t){var a=window.document.createElement(e);return n=n||"",t=t||"",a.className=n,t!==undefined&&(a.textContent=t),a}function fe(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function me(e,n){var t=se("div","numInputWrapper"),a=se("input","numInput "+e),i=se("span","arrowUp"),o=se("span","arrowDown");if(a.type="text",a.pattern="\\d*",n!==undefined)for(var r in n)a.setAttribute(r,n[r]);return t.appendChild(a),t.appendChild(i),t.appendChild(o),t}"function"!=typeof Object.assign&&(Object.assign=function(t){if(!t)throw TypeError("Cannot convert undefined or null to object");for(var e=arguments.length,a=new Array(1<e?e-1:0),n=1;n<e;n++)a[n-1]=arguments[n];for(var i=function(){var n=a[o];n&&Object.keys(n).forEach(function(e){return t[e]=n[e]})},o=0;o<a.length;o++)i();return t});var ge=300;function l(s,f){var h={config:Object.assign({},pe.defaultConfig),l10n:ie};function m(e){return e.bind(h)}function n(){var n=h.config;!1===n.weekNumbers&&1===n.showMonths||!0!==n.noCalendar&&window.requestAnimationFrame(function(){if(h.calendarContainer.style.visibility="hidden",h.calendarContainer.style.display="block",h.daysContainer!==undefined){var e=(h.days.offsetWidth+1)*n.showMonths;h.daysContainer.style.width=e+"px",h.calendarContainer.style.width=e+(h.weekWrapper!==undefined?h.weekWrapper.offsetWidth:0)+"px",h.calendarContainer.style.removeProperty("visibility"),h.calendarContainer.style.removeProperty("display")}})}function g(e){if(0!==h.selectedDates.length){e!==undefined&&"blur"!==e.type&&function(e){e.preventDefault();var n="keydown"===e.type,t=e.target;h.amPM!==undefined&&e.target===h.amPM&&(h.amPM.textContent=h.l10n.amPM[X(h.amPM.textContent===h.l10n.amPM[0])]);var a=parseFloat(t.getAttribute("data-min")),i=parseFloat(t.getAttribute("data-max")),o=parseFloat(t.getAttribute("data-step")),r=parseInt(t.value,10),d=e.delta||(n?38===e.which?1:-1:0),l=r+o*d;if("undefined"!=typeof t.value&&2===t.value.length){var c=t===h.hourElement,u=t===h.minuteElement;l<a?(l=i+l+X(!c)+(X(c)&&X(!h.amPM)),u&&D(undefined,-1,h.hourElement)):i<l&&(l=t===h.hourElement?l-i-X(!h.amPM):a,u&&D(undefined,1,h.hourElement)),h.amPM&&c&&(1===o?l+r===23:Math.abs(l-r)>o)&&(h.amPM.textContent=h.l10n.amPM[X(h.amPM.textContent===h.l10n.amPM[0])]),t.value=Q(l)}}(e);var n=h._input.value;p(),V(),h._input.value!==n&&h._debouncedChange()}}function p(){if(h.hourElement!==undefined&&h.minuteElement!==undefined){var e,n,t=(parseInt(h.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(h.minuteElement.value,10)||0)%60,i=h.secondElement!==undefined?(parseInt(h.secondElement.value,10)||0)%60:0;h.amPM!==undefined&&(e=t,n=h.amPM.textContent,t=e%12+12*X(n===h.l10n.amPM[1]));var o=h.config.minTime!==undefined||h.config.minDate&&h.minDateHasTime&&h.latestSelectedDateObj&&0===de(h.latestSelectedDateObj,h.config.minDate,!0);if(h.config.maxTime!==undefined||h.config.maxDate&&h.maxDateHasTime&&h.latestSelectedDateObj&&0===de(h.latestSelectedDateObj,h.config.maxDate,!0)){var r=h.config.maxTime!==undefined?h.config.maxTime:h.config.maxDate;(t=Math.min(t,r.getHours()))===r.getHours()&&(a=Math.min(a,r.getMinutes())),a===r.getMinutes()&&(i=Math.min(i,r.getSeconds()))}if(o){var d=h.config.minTime!==undefined?h.config.minTime:h.config.minDate;(t=Math.max(t,d.getHours()))===d.getHours()&&(a=Math.max(a,d.getMinutes())),a===d.getMinutes()&&(i=Math.max(i,d.getSeconds()))}l(t,a,i)}}function i(e){var n=e||h.latestSelectedDateObj;n&&l(n.getHours(),n.getMinutes(),n.getSeconds())}function a(){var e=h.config.defaultHour,n=h.config.defaultMinute,t=h.config.defaultSeconds;if(h.config.minDate!==undefined){var a=h.config.minDate.getHours(),i=h.config.minDate.getMinutes();(e=Math.max(e,a))===a&&(n=Math.max(i,n)),e===a&&n===i&&(t=h.config.minDate.getSeconds())}if(h.config.maxDate!==undefined){var o=h.config.maxDate.getHours(),r=h.config.maxDate.getMinutes();(e=Math.min(e,o))===o&&(n=Math.min(r,n)),e===o&&n===r&&(t=h.config.maxDate.getSeconds())}l(e,n,t)}function l(e,n,t){h.latestSelectedDateObj!==undefined&&h.latestSelectedDateObj.setHours(e%24,n,t||0,0),h.hourElement&&h.minuteElement&&!h.isMobile&&(h.hourElement.value=Q(h.config.time_24hr?e:(12+e)%12+12*X(e%12==0)),h.minuteElement.value=Q(n),h.amPM!==undefined&&(h.amPM.textContent=h.l10n.amPM[X(12<=e)]),h.secondElement!==undefined&&(h.secondElement.value=Q(t)))}function t(e){var n=parseInt(e.target.value)+(e.delta||0);(1<n/1e3||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&_(n)}function o(n,t,a,i){return t instanceof Array?t.forEach(function(e){return o(n,e,a,i)}
2):n instanceof Array?n.forEach(function(e){return o(e,t,a,i)}):(n.addEventListener(t,a,i),void h._handlers.push({element:n,event:t,handler:a,options:i}))}function r(n){return function(e){1===e.which&&n(e)}}function u(){q("onChange")}function d(e){var n=e!==undefined?h.parseDate(e):h.latestSelectedDateObj||(h.config.minDate&&h.config.minDate>h.now?h.config.minDate:h.config.maxDate&&h.config.maxDate<h.now?h.config.maxDate:h.now);try{n!==undefined&&(h.currentYear=n.getFullYear(),h.currentMonth=n.getMonth())}catch(t){t.message="Invalid date supplied: "+n,h.config.errorHandler(t)}h.redraw()}function c(e){~e.target.className.indexOf("arrow")&&D(e,e.target.classList.contains("arrowUp")?1:-1)}function D(e,n,t){var a=e&&e.target,i=t||a&&a.parentNode&&a.parentNode.firstChild,o=$("increment");o.delta=n,i&&i.dispatchEvent(o)}function v(e,n,t,a){var i,o=N(n,!0),r=se("span","flatpickr-day "+e,n.getDate().toString());return r.dateObj=n,r.$i=a,r.setAttribute("aria-label",h.formatDate(n,h.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===de(n,h.now)&&((h.todayDateElem=r).classList.add("today"),r.setAttribute("aria-current","date")),o?(r.tabIndex=-1,z(n)&&(r.classList.add("selected"),h.selectedDateElem=r,"range"===h.config.mode&&(ue(r,"startRange",h.selectedDates[0]&&0===de(n,h.selectedDates[0],!0)),ue(r,"endRange",h.selectedDates[1]&&0===de(n,h.selectedDates[1],!0)),"nextMonthDay"===e&&r.classList.add("inRange")))):r.classList.add("disabled"),"range"===h.config.mode&&(i=n,!("range"!==h.config.mode||h.selectedDates.length<2)&&0<=de(i,h.selectedDates[0])&&de(i,h.selectedDates[1])<=0&&!z(n)&&r.classList.add("inRange")),h.weekNumbers&&1===h.config.showMonths&&"prevMonthDay"!==e&&t%7==1&&h.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+h.config.getWeek(n)+"</span>"),q("onDayCreate",r),r}function w(e){e.focus(),"range"===h.config.mode&&P(e)}function b(e){for(var n=0<e?0:h.config.showMonths-1,t=0<e?h.config.showMonths:-1,a=n;a!=t;a+=e)for(var i=h.daysContainer.children[a],o=0<e?0:i.children.length-1,r=0<e?i.children.length:-1,d=o;d!=r;d+=e){var l=i.children[d];if(-1===l.className.indexOf("hidden")&&N(l.dateObj))return l}return undefined}function C(e,n){var t=F(document.activeElement),a=e!==undefined?e:t?document.activeElement:h.selectedDateElem!==undefined&&F(h.selectedDateElem)?h.selectedDateElem:h.todayDateElem!==undefined&&F(h.todayDateElem)?h.todayDateElem:b(0<n?1:-1);return a===undefined?h._input.focus():t?void function(e,n){for(var t=-1===e.className.indexOf("Month")?e.dateObj.getMonth():h.currentMonth,a=0<n?h.config.showMonths:-1,i=0<n?1:-1,o=t-h.currentMonth;o!=a;o+=i)for(var r=h.daysContainer.children[o],d=t-h.currentMonth===o?e.$i+n:n<0?r.children.length-1:0,l=r.children.length,c=d;
vendor: 4,379 bytes, line 2
20<=c&&c<l&&c!=(0<n?l:-1);c+=i){var u=r.children[c];if(-1===u.className.indexOf("hidden")&&N(u.dateObj)&&Math.abs(e.$i-c)>=Math.abs(n))return w(u)}h.changeMonth(i),C(b(i),0),undefined}(a,n):w(a)}function M(e,n){for(var t=(new Date(e,n,1).getDay()-h.l10n.firstDayOfWeek+7)%7,a=h.utils.getDaysInMonth((n-1+12)%12),i=h.utils.getDaysInMonth(n),o=window.document.createDocumentFragment(),r=1<h.config.showMonths,d=r?"prevMonthDay hidden":"prevMonthDay",l=r?"nextMonthDay hidden":"nextMonthDay",c=a+1-t,u=0;c<=a;c++,u++)o.appendChild(v(d,new Date(e,n-1,c),c,u));for(c=1;c<=i;c++,u++)o.appendChild(v("",new Date(e,n,c),c,u));for(var s=i+1;s<=42-t&&(1===h.config.showMonths||u%7!=0);s++,u++)o.appendChild(v(l,new Date(e,n+1,s%i),s,u));var f=se("div","dayContainer");return f.appendChild(o),f}function y(){if(h.daysContainer!==undefined){fe(h.daysContainer),h.weekNumbers&&fe(h.weekNumbers);for(var e=document.createDocumentFragment(),n=0;n<h.config.showMonths;n++){var t=new Date(h.currentYear,h.currentMonth,1);t.setMonth(h.currentMonth+n),e.appendChild(M(t.getFullYear(),t.getMonth()))}h.daysContainer.appendChild(e),h.days=h.daysContainer.firstChild,"range"===h.config.mode&&1===h.selectedDates.length&&P()}}function x(){var e=se("div","flatpickr-month"),n=window.document.createDocumentFragment(),t=se("span","cur-month"),a=me("cur-year",{tabindex:"-1"}),i=a.childNodes[0];i.setAttribute("aria-label",h.l10n.yearAriaLabel),h.config.minDate&&i.setAttribute("data-min",h.config.minDate.getFullYear().toString()),h.config.maxDate&&(i.setAttribute("data-max",h.config.maxDate.getFullYear().toString()),i.disabled=!!h.config.minDate&&h.config.minDate.getFullYear()===h.config.maxDate.getFullYear());var o=se("div","flatpickr-current-month");return o.appendChild(t),o.appendChild(a),n.appendChild(o),e.appendChild(n),{container:e,yearElement:i,monthElement:t}}function E(){fe(h.monthNav),h.monthNav.appendChild(h.prevMonthNav);for(var e=h.config.showMonths;e--;){var n=x();h.yearElements.push(n.yearElement),h.monthElements.push(n.monthElement),h.monthNav.appendChild(n.container)}h.monthNav.appendChild(h.nextMonthNav)}function T(){h.weekdayContainer?fe(h.weekdayContainer):h.weekdayContainer=se("div","flatpickr-weekdays");for(var e=h.config.showMonths;e--;){var n=se("div","flatpickr-weekdaycontainer");h.weekdayContainer.appendChild(n)}return k(),h.weekdayContainer}function k(){var e=h.l10n.firstDayOfWeek,n=h.l10n.weekdays.shorthand.concat();0<e&&e<n.length&&(n=n.splice(e,n.length).concat(n.splice(0,e)));for(var t=h.config.showMonths;t--;)h.weekdayContainer.children[t].innerHTML="\n <span class=flatpickr-weekday>\n "+n.join("</span><span class=flatpickr-weekday>")+"\n </span>\n "}function I(e,n){void 0===n&&(n=!0);var t=n?e:e-h.currentMonth;t<0&&!0===h._hidePrevMonthArrow||0<t&&!0===h._hideNextMonthArrow||(h.currentMonth+=t,(h.currentMonth<0||11<h.currentMonth)&&(h.currentYear+=11<h.currentMonth?1:-1,h.currentMonth=(h.currentMonth+12)%12,q("onYearChange")),y(),q("onMonthChange"),G())}function O(e){return!(!h.config.appendTo||!h.config.appendTo.contains(e))||h.calendarContainer.contains(e)}function S(n){if(h.isOpen&&!h.config.inline){var e=O(n.target),t=n.target===h.input||n.target===h.altInput||h.element.contains(n.target)||n.path&&n.path.indexOf&&(~n.path.indexOf(h.input)||~n.path.indexOf(h.altInput)),a="blur"===n.type?t&&n.relatedTarget&&!O(n.relatedTarget):!t&&!e,i=!h.config.ignoredFocusElements.some(function(e){return e.contains(n.target)});a&&i&&(h.close(),"range"===h.config.mode&&1===h.selectedDates.length&&(h.clear(!1),h.redraw()))}}function _(e){if(!(!e||h.config.minDate&&e<h.config.minDate.getFullYear()||h.config.maxDate&&e>h.config.maxDate.getFullYear())){var n=e,t=h.currentYear!==n;h.currentYear=n||h.currentYear,h.config.maxDate&&h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth=Math.min(h.config.maxDate.getMonth(),h.currentMonth):h.config.minDate&&h.currentYear===h.config.minDate.getFullYear()&&(h.currentMonth=Math.max(h.config.minDate.getMonth(),h.currentMonth)),t&&(h.redraw(),q("onYearChange"))}}function N(e,n){void 0===n&&(n=!0);var t=h.parseDate(e,undefined,n);if(h.config.minDate&&t&&de(t,h.config.minDate,n!==undefined?n:!h.minDateHasTime)<0||h.config.maxDate&&t&&0<de(t,h.config.maxDate,n!==undefined?n:!h.maxDateHasTime))return!1;if(0===h.config.enable.length&&0===h.config.disable.length)return!0;
2if(t===undefined)return!1;for(var a,i=0<h.config.enable.length,o=i?h.config.enable:h.config.disable,r=0;r<o.length;r++){if("function"==typeof(a=o[r])&&a(t))return i;if(a instanceof Date&&t!==undefined&&a.getTime()===t.getTime())return i;if("string"==typeof a&&t!==undefined){var d=h.parseDate(a,undefined,!0);return d&&d.getTime()===t.getTime()?i:!i}if("object"==typeof a&&t!==undefined&&a.from&&a.to&&t.getTime()>=a.from.getTime()&&t.getTime()<=a.to.getTime())return i}return!i}function F(e){return h.daysContainer!==undefined&&(-1===e.className.indexOf("hidden")&&h.daysContainer.contains(e))}function A(e){var n=e.target===h._input,t=h.config.allowInput,a=h.isOpen&&(!t||!n),i=h.config.inline&&n&&!t;if(13===e.keyCode&&n){if(t)return h.setDate(h._input.value,!0,e.target===h.altInput?h.config.altFormat:h.config.dateFormat),e.target.blur();h.open()}else if(O(e.target)||a||i){var o=!!h.timeContainer&&h.timeContainer.contains(e.target);switch(e.keyCode){case 13:o?g():K(e);break;case 27:e.preventDefault(),R();break;case 8:case 46:n&&!h.config.allowInput&&(e.preventDefault(),h.clear());break;case 37:case 39:if(o)h.hourElement&&h.hourElement.focus();else if(e.preventDefault(),h.daysContainer!==undefined&&(!1===t||F(document.activeElement))){var r=39===e.keyCode?1:-1;e.ctrlKey?(I(r),C(b(1),0)):C(undefined,r)}break;case 38:case 40:e.preventDefault();var d=40===e.keyCode?1:-1;h.daysContainer?e.ctrlKey?(_(h.currentYear-d),C(b(1),0)):o||C(undefined,7*d):h.config.enableTime&&(!o&&h.hourElement&&h.hourElement.focus(),g(e),h._debouncedChange());break;case 9:if(!o)break;var l=[h.hourElement,h.minuteElement,h.secondElement,h.amPM].filter(function(e){return e}),c=l.indexOf(e.target);if(-1!==c){var u=l[c+(e.shiftKey?-1:1)];u!==undefined&&(e.preventDefault(),u.focus())}}}if(h.amPM!==undefined&&e.target===h.amPM)switch(e.key){case h.l10n.amPM[0].charAt(0):case h.l10n.amPM[0].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[0],p(),V();break;case h.l10n.amPM[1].charAt(0):case h.l10n.amPM[1].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[1],p(),V()}q("onKeyDown",e)}function P(o){if(1===h.selectedDates.length&&(!o||o.classList.contains("flatpickr-day")&&!o.classList.contains("disabled"))){for(var r=o?o.dateObj.getTime():h.days.firstElementChild.dateObj.getTime(),d=h.parseDate(h.selectedDates[0],undefined,!0).getTime(),e=Math.min(r,h.selectedDates[0].getTime()),n=Math.max(r,h.selectedDates[0].getTime()),t=h.daysContainer.lastChild.lastChild.dateObj.getTime(),l=!1,c=0,u=0,a=e;a<t;a+=ce.DAY)N(new Date(a),!0)||(l=l||e<a&&a<n,a<d&&(!c||c<a)?c=a:d<a&&(!u||a<u)&&(u=a));for(var s=0;s<h.config.showMonths;s++)for(var f=h.daysContainer.children[s],m=h.daysContainer.children[s-1],i=function(e,n){var t=f.children[e],a=t.dateObj.getTime(),i=0<c&&a<c||0<u&&u<a;return i?(t.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){t.classList.remove(e)}),"continue"):l&&!i?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){t.classList.remove(e)}),void(o!==undefined&&(o.classList.add(r<h.selectedDates[0].getTime()?"startRange":"endRange"),!f.contains(o)&&0<s&&m&&m.lastChild.dateObj.getTime()>=a||(d<r&&a===d?t.classList.add("startRange"):r<d&&a===d&&t.classList.add("endRange"),c<=a&&(0===u||a<=u)&&le(a,d,r)&&t.classList.add("inRange")))))},g=0,p=f.children.length;g<p;g++)i(g)}}function j(){!h.isOpen||h.config["static"]||h.config.inline||L()}function Y(a){return function(e){var n=h.config["_"+a+"Date"]=h.parseDate(e,h.config.dateFormat),t=h.config["_"+("min"===a?"max":"min")+"Date"];n!==undefined&&(h["min"===a?"minDateHasTime":"maxDateHasTime"]=0<n.getHours()||0<n.getMinutes()||0<n.getSeconds()),h.selectedDates&&(h.selectedDates=h.selectedDates.filter(function(e){return N(e)}),h.selectedDates.length||"min"!==a||i(n),V()),h.daysContainer&&(W(),n!==undefined?h.currentYearElement[a]=n.getFullYear().toString():h.currentYearElement.removeAttribute(a),h.currentYearElement.disabled=!!t&&n!==undefined&&t.getFullYear()===n.getFullYear())}}function H(){"object"!=typeof h.config.locale&&"undefined"==typeof pe.l10ns[h.config.locale]&&h.config.errorHandler(new Error("flatpickr: invalid locale "+h.config.locale)),h.l10n=Object.assign({},pe.l10ns["default"],"object"==typeof h.config.locale?h.config.locale:"default"!==h.config.locale?pe.l10ns[h.config.locale]:un
2defined),ae.K="("+h.l10n.amPM[0]+"|"+h.l10n.amPM[1]+"|"+h.l10n.amPM[0].toLowerCase()+"|"+h.l10n.amPM[1].toLowerCase()+")",h.formatDate=oe(h),h.parseDate=re({config:h.config,l10n:h.l10n})}function L(e){if(h.calendarContainer!==undefined){q("onPreCalendarPosition");var n=e||h._positionElement,t=Array.prototype.reduce.call(h.calendarContainer.children,function(e,n){return e+n.offsetHeight},0),a=h.calendarContainer.offsetWidth,i=h.config.position.split(" "),o=i[0],r=1<i.length?i[1]:null,d=n.getBoundingClientRect(),l=window.innerHeight-d.bottom,c="above"===o||"below"!==o&&l<t&&d.top>t,u=window.pageYOffset+d.top+(c?-t-2:n.offsetHeight+2);if(ue(h.calendarContainer,"arrowTop",!c),ue(h.calendarContainer,"arrowBottom",c),!h.config.inline){var s=window.pageXOffset+d.left-(null!=r&&"center"===r?(a-d.width)/2:0),f=window.document.body.offsetWidth-d.right,m=s+a>window.document.body.offsetWidth;ue(h.calendarContainer,"rightMost",m),h.config["static"]||(h.calendarContainer.style.top=u+"px",m?(h.calendarContainer.style.left="auto",h.calendarContainer.style.right=f+"px"):(h.calendarContainer.style.left=s+"px",h.calendarContainer.style.right="auto"))}}}function W(){h.config.noCalendar||h.isMobile||(G(),y())}function R(){h._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||navigator.msMaxTouchPoints!==undefined?setTimeout(h.close,0):h.close()}function K(n){n.preventDefault(),n.stopPropagation();var t=function e(n,t){return t(n)?n:n.parentNode?e(n.parentNode,t):undefined}(n.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&!e.classList.contains("notAllowed")});if(t!==undefined){var a=t,i=h.latestSelectedDateObj=new Date(a.dateObj.getTime()),o=(i.getMonth()<h.currentMonth||i.getMonth()>h.currentMonth+h.config.showMonths-1)&&"range"!==h.config.mode;if(h.selectedDateElem=a,"single"===h.config.mode)h.selectedDates=[i];else if("multiple"===h.config.mode){var r=z(i);r?h.selectedDates.splice(parseInt(r),1):h.selectedDates.push(i)}else"range"===h.config.mode&&(2===h.selectedDates.length&&h.clear(!1),h.selectedDates.push(i),0!==de(i,h.selectedDates[0],!0)&&h.selectedDates.sort(function(e,n){return e.getTime()-n.getTime()}));if(p(),o){var d=h.currentYear!==i.getFullYear();h.currentYear=i.getFullYear(),h.currentMonth=i.getMonth(),d&&q("onYearChange"),q("onMonthChange")}if(G(),y(),V(),h.config.enableTime&&setTimeout(function(){return h.showTimeInput=!0},50),o||"range"===h.config.mode||1!==h.config.showMonths?h.selectedDateElem&&h.selectedDateElem.focus():w(a),h.hourElement!==undefined&&setTimeout(function(){return h.hourElement!==undefined&&h.hourElement.select()},451),h.config.closeOnSelect){var l="single"===h.config.mode&&!h.config.enableTime,c="range"===h.config.mode&&2===h.selectedDates.length&&!h.config.enableTime;(l||c)&&R()}u()}}h.parseDate=re({config:h.config,l10n:h.l10n}),h._handlers=[],h._bind=o,h._setHoursFromDate=i,h._positionCalendar=L,h.changeMonth=I,h.changeYear=_,h.clear=function(e){void 0===e&&(e=!0);h.input.value="",h.altInput!==undefined&&(h.altInput.value="");h.mobileInput!==undefined&&(h.mobileInput.value="");h.selectedDates=[],h.latestSelectedDateObj=undefined,!(h.showTimeInput=!1)===h.config.enableTime&&a();h.redraw(),e&&q("onChange")},h.close=function(){h.isOpen=!1,h.isMobile||(h.calendarContainer.classList.remove("open"),h._input.classList.remove("active"));q("onClose")},h._createElement=se,h.destroy=function(){h.config!==undefined&&q("onDestroy");for(var e=h._handlers.length;e--;){var n=h._handlers[e];n.element.removeEventListener(n.event,n.handler,n.options)}if(h._handlers=[],h.mobileInput)h.mobileInput.parentNode&&h.mobileInput.parentNode.removeChild(h.mobileInput),h.mobileInput=undefined;else if(h.calendarContainer&&h.calendarContainer.parentNode)if(h.config["static"]&&h.calendarContainer.parentNode){var t=h.calendarContainer.parentNode;for(t.lastChild&&t.removeChild(t.lastChild);t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}else h.calendarContainer.parentNode.removeChild(h.calendarContainer);h.altInput&&(h.input.type="text",h.altInput.parentNode&&h.altInput.parentNode.removeChild(h.altInput),delete h.altInput);h.input&&(h.input.type=h.input._type,h.input.classList.remove("flatpickr-input"),h.input.removeAttribute("readonly"),h.input.value="");["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","
2isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete h[e]}catch(n){}})},h.isEnabled=N,h.jumpToDate=d,h.open=function(e,n){void 0===n&&(n=h._positionElement);if(!0===h.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),setTimeout(function(){h.mobileInput!==undefined&&h.mobileInput.focus()},0),void q("onOpen");if(h._input.disabled||h.config.inline)return;var t=h.isOpen;h.isOpen=!0,t||(h.calendarContainer.classList.add("open"),h._input.classList.add("active"),q("onOpen"),L(n));!0===h.config.enableTime&&!0===h.config.noCalendar&&(0===h.selectedDates.length&&(h.setDate(h.config.minDate!==undefined?new Date(h.config.minDate.getTime()):new Date,!1),a(),V()),!1!==h.config.allowInput||e!==undefined&&h.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return h.hourElement.select()},50))}
2,h.redraw=W,h.set=function(e,n){null!==e&&"object"==typeof e?Object.assign(h.config,e):(h.config[e]=n,J[e]!==undefined&&J[e].forEach(function(e){return e()}));h.redraw(),d()},h.setDate=function(e,n,t){void 0===n&&(n=!1);void 0===t&&(t=h.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return h.clear(n);B(e,t),h.showTimeInput=0<h.selectedDates.length,h.latestSelectedDateObj=h.selectedDates[0],h.redraw(),d(),i(),V(n),n&&q("onChange")},h.toggle=function(e){if(!0===h.isOpen)return h.close();h.open(e)};var J={locale:[H,k],showMonths:[E,n,T]};function B(e,n){var t=[];if(e instanceof Array)t=e.map(function(e){return h.parseDate(e,n)});else if(e instanceof Date||"number"==typeof e)t=[h.parseDate(e,n)];else if("string"==typeof e)switch(h.config.mode){case"single":case"time":t=[h.parseDate(e,n)];break;case"multiple":t=e.split(h.config.conjunction).map(function(e){return h.parseDate(e,n)});break;case"range":t=e.split(h.l10n.rangeSeparator).map(function(e){return h.parseDate(e,n)})}else h.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));h.selectedDates=t.filter(function(e){return e instanceof Date&&N(e,!1)}),"range"===h.config.mode&&h.selectedDates.sort(function(e,n){return e.getTime()-n.getTime()})}function U(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?h.parseDate(e,undefined,!0):e&&"object"==typeof e&&e.from&&e.to?{from:h.parseDate(e.from,undefined),to:h.parseDate(e.to,undefined)}:e}).filter(function(e){return e})}function q(e,n){var t=h.config[e];if(t!==undefined&&0<t.length)for(var a=0;t[a]&&a<t.length;a++)t[a](h.selectedDates,h.input.value,h,n);"onChange"===e&&(h.input.dispatchEvent($("change")),h.input.dispatchEvent($("input")))}function $(e){var n=document.createEvent("Event");return n.initEvent(e,!0,!0),n}function z(e){for(var n=0;n<h.selectedDates.length;n++)if(0===de(h.selectedDates[n],e))return""+n;return!1}function G(){h.config.noCalendar||h.isMobile||!h.monthNav||(h.yearElements.forEach(function(e,n){var t=new Date(h.currentYear,h.currentMonth,1);t.setMonth(h.currentMonth+n),h.monthElements[n].textContent=te(t.getMonth(),h.config.shorthandCurrentMonth,h.l10n)+" ",e.value=t.getFullYear().toString()}),h._hidePrevMonthArrow=h.config.minDate!==undefined&&(h.currentYear===h.config.minDate.getFullYear()?h.currentMonth<=h.config.minDate.getMonth():h.currentYear<h.config.minDate.getFullYear()),h._hideNextMonthArrow=h.config.maxDate!==undefined&&(h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth+1>h.config.maxDate.getMonth():h.currentYear>h.config.maxDate.getFullYear()))}function V(e){if(void 0===e&&(e=!0),0===h.selectedDates.length)return h.clear(e);h.mobileInput!==undefined&&h.mobileFormatStr&&(h.mobileInput.value=h.latestSelectedDateObj!==undefined?h.formatDate(h.latestSelectedDateObj,h.mobileFormatStr):"");var n="range"!==h.config.mode?h.config.conjunction:h.l10n.rangeSeparator;h.input.value=h.selectedDates.map(function(e){return h.formatDate(e,h.config.dateFormat)}).join(n),h.altInput!==undefined&&(h.altInput.value=h.selectedDates.map(function(e){return h.formatDate(e,h.config.altFormat)}).join(n)),!1!==e&&q("onValueUpdate")}function Z(e){e.preventDefault();var n=h.prevMonthNav.contains(e.target),t=h.nextMonthNav.contains(e.target);n||t?I(n?-1:1):0<=h.yearElements.indexOf(e.target)?e.target.select():e.target.classList.contains("arrowUp")?h.changeYear(h.currentYear+1):e.target.classList.contains("arrowDown")&&h.changeYear(h.currentYear-1)}return function(){h.element=h.input=s,h.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],t=Object.assign({},f,JSON.parse(JSON.stringify(s.dataset||{}))),a={};h.config.parseDate=t.parseDate,h.config.formatDate=t.formatDate,Object.defineProperty(h.config,"enable",{get:function(){return h.config._enable},set:function(e){h.config._enable=U(e)}}),Object.defineProperty(h.config,"disable",{get:function(){return h.config._disable},set:function(e){h.config._disable=U(e)}});var i="time"===t.mode;t.dateFormat||!t.enableTime&&!i||(a.dateFormat=t.noCalendar||i?"H:i"+(t.enableSeconds?":S":""):pe.defaultConfig.dateFormat+" H:i"+(t.enableSeconds?":S":"")),t.altInput&&(t.enableTime||i)&&!t.altFormat&&(a.altFormat=t.noCalendar||i?"h:i"+(t.enableSeconds?":S K":" K"):pe.defaultConfig.altFormat+" h:i"+(t.enableSeconds?":S":"")+" K"),Object.defineProperty(h.config,"minDate",{get:function(){return h.config._minDate},set:Y("min")}),Object.defineProperty(h.config,"maxDate",{get:function(){return h.config._maxDate},set:Y("max")}
vendor: 5,284 bytes, line 2
2);var o=function(n){return function(e){h.config["min"===n?"_minTime":"_maxTime"]=h.parseDate(e,"H:i")}};Object.defineProperty(h.config,"minTime",{get:function(){return h.config._minTime},set:o("min")}),Object.defineProperty(h.config,"maxTime",{get:function(){return h.config._maxTime},set:o("max")}),"time"===t.mode&&(h.config.noCalendar=!0,h.config.enableTime=!0),Object.assign(h.config,a,t);for(var r=0;r<e.length;r++)h.config[e[r]]=!0===h.config[e[r]]||"true"===h.config[e[r]];for(var d=n.length;d--;)h.config[n[d]]!==undefined&&(h.config[n[d]]=ne(h.config[n[d]]||[]).map(m));h.isMobile=!h.config.disableMobile&&!h.config.inline&&"single"===h.config.mode&&!h.config.disable.length&&!h.config.enable.length&&!h.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var l=0;l<h.config.plugins.length;l++){var c=h.config.plugins[l](h)||{};for(var u in c)~n.indexOf(u)?h.config[u]=ne(c[u]).map(m).concat(h.config[u]):"undefined"==typeof t[u]&&(h.config[u]=c[u])}q("onParseConfig")}(),H(),function(){if(h.input=h.config.wrap?s.querySelector("[data-input]"):s,!h.input)return h.config.errorHandler(new Error("Invalid input element specified"));h.input._type=h.input.type,h.input.type="text",h.input.classList.add("flatpickr-input"),h._input=h.input,h.config.altInput&&(h.altInput=se(h.input.nodeName,h.input.className+" "+h.config.altInputClass),h._input=h.altInput,h.altInput.placeholder=h.input.placeholder,h.altInput.disabled=h.input.disabled,h.altInput.required=h.input.required,h.altInput.tabIndex=h.input.tabIndex,h.altInput.type="text",h.input.setAttribute("type","hidden"),!h.config["static"]&&h.input.parentNode&&h.input.parentNode.insertBefore(h.altInput,h.input.nextSibling)),h.config.allowInput||h._input.setAttribute("readonly","readonly"),h._positionElement=h.config.positionElement||h._input}(),function(){h.selectedDates=[],h.now=h.parseDate(h.config.now)||new Date;var e=h.config.defaultDate||("INPUT"!==h.input.nodeName&&"TEXTAREA"!==h.input.nodeName||!h.input.placeholder||h.input.value!==h.input.placeholder?h.input.value:null);e&&B(e,h.config.dateFormat);var n=0<h.selectedDates.length?h.selectedDates[0]:h.config.minDate&&h.config.minDate.getTime()>h.now.getTime()?h.config.minDate:h.config.maxDate&&h.config.maxDate.getTime()<h.now.getTime()?h.config.maxDate:h.now;h.currentYear=n.getFullYear(),h.currentMonth=n.getMonth(),0<h.selectedDates.length&&(h.latestSelectedDateObj=h.selectedDates[0]),h.config.minTime!==undefined&&(h.config.minTime=h.parseDate(h.config.minTime,"H:i")),h.config.maxTime!==undefined&&(h.config.maxTime=h.parseDate(h.config.maxTime,"H:i")),h.minDateHasTime=!!h.config.minDate&&(0<h.config.minDate.getHours()||0<h.config.minDate.getMinutes()||0<h.config.minDate.getSeconds()),h.maxDateHasTime=!!h.config.maxDate&&(0<h.config.maxDate.getHours()||0<h.config.maxDate.getMinutes()||0<h.config.maxDate.getSeconds()),Object.defineProperty(h,"showTimeInput",{get:function(){return h._showTimeInput},set:function(e){h._showTimeInput=e,h.calendarContainer&&ue(h.calendarContainer,"showTimeInput",e),h.isOpen&&L()}})}(),h.utils={getDaysInMonth:function(e,n){return void 0===e&&(e=h.currentMonth),void 0===n&&(n=h.currentYear),1===e&&(n%4==0&&n%100!=0||n%400==0)?29:h.l10n.daysInMonth[e]}},h.isMobile||function(){var e=window.document.createDocumentFragment();if(h.calendarContainer=se("div","flatpickr-calendar"),h.calendarContainer.tabIndex=-1,!h.config.noCalendar){if(e.appendChild((h.monthNav=se("div","flatpickr-months"),h.yearElements=[],h.monthElements=[],h.prevMonthNav=se("span","flatpickr-prev-month"),h.prevMonthNav.innerHTML=h.config.prevArrow,h.nextMonthNav=se("span","flatpickr-next-month"),h.nextMonthNav.innerHTML=h.config.nextArrow,E(),Object.defineProperty(h,"_hidePrevMonthArrow",{get:function(){return h.__hidePrevMonthArrow},set:function(e){h.__hidePrevMonthArrow!==e&&(ue(h.prevMonthNav,"disabled",e),h.__hidePrevMonthArrow=e)}}),Object.defineProperty(h,"_hideNextMonthArrow",{get:function(){return h.__hideNextMonthArrow},set:function(e){h.__hideNextMonthArrow!==e&&(ue(h.nextMonthNav,"disabled",e),h.__hideNextMonthArrow=e)}}),h.currentYearElement=h.yearElements[0],G(),h.monthNav)),h.innerContainer=se("div","flatpickr-innerContainer"),h.config.weekNumbers){var n=function(){h.calendarContainer.classList.add("hasWeeks");var e=se("div","flatpickr-weekwrapper");e.appendChild(se("span","flatpickr-weekday",h.l10n.weekAbbreviation));var n=se("div","flatpickr-weeks");return e.appendChild(n),{weekWrapper:e,weekNumbers:n}}(),t=n.weekWrapper,a=n.weekNumbers;h.innerContainer.appendChild(t),h.weekNumbers=a,h.weekWrapper=t}h.rContainer=se("div","flatpickr-rContainer"),h.rContainer.appendChild(T()),h.daysContainer||(h.daysContainer=se("div","flatpickr-days"),h.daysContainer.tabIndex=-1),y(),h.rContainer.appendChild(h.daysContainer),h.innerContainer.appendChild(h.rContainer),e.appendChild(h.innerContainer)}h.config.enableTime&&e.appendChild(function(){h.calendarContainer.classList.add("hasTime"),h.config.noCalendar&&h.calendarContainer.classList.add("noCalendar"),h.timeContainer=se("div","flatpickr-time"),h.timeContainer.tabIndex=-1;var e=se("span","flatpickr-time-separator",":"),n=me("flatpickr-hour");h.hourElement=n.childNodes[0];var t=me("flatpickr-minute");
2if(h.minuteElement=t.childNodes[0],h.hourElement.tabIndex=h.minuteElement.tabIndex=-1,h.hourElement.value=Q(h.latestSelectedDateObj?h.latestSelectedDateObj.getHours():h.config.time_24hr?h.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(h.config.defaultHour)),h.minuteElement.value=Q(h.latestSelectedDateObj?h.latestSelectedDateObj.getMinutes():h.config.defaultMinute),h.hourElement.setAttribute("data-step",h.config.hourIncrement.toString()),h.minuteElement.setAttribute("data-step",h.config.minuteIncrement.toString()),h.hourElement.setAttribute("data-min",h.config.time_24hr?"0":"1"),h.hourElement.setAttribute("data-max",h.config.time_24hr?"23":"12"),h.minuteElement.setAttribute("data-min","0"),h.minuteElement.setAttribute("data-max","59"),h.timeContainer.appendChild(n),h.timeContainer.appendChild(e),h.timeContainer.appendChild(t),h.config.time_24hr&&h.timeContainer.classList.add("time24hr"),h.config.enableSeconds){h.timeContainer.classList.add("hasSeconds");var a=me("flatpickr-second");h.secondElement=a.childNodes[0],h.secondElement.value=Q(h.latestSelectedDateObj?h.latestSelectedDateObj.getSeconds():h.config.defaultSeconds),h.secondElement.setAttribute("data-step",h.minuteElement.getAttribute("data-step")),h.secondElement.setAttribute("data-min",h.minuteElement.getAttribute("data-min")),h.secondElement.setAttribute("data-max",h.minuteElement.getAttribute("data-max")),h.timeContainer.appendChild(se("span","flatpickr-time-separator",":")),h.timeContainer.appendChild(a)}return h.config.time_24hr||(h.amPM=se("span","flatpickr-am-pm",h.l10n.amPM[X(11<(h.latestSelectedDateObj?h.hourElement.value:h.config.defaultHour))]),h.amPM.title=h.l10n.toggleTitle,h.amPM.tabIndex=-1,h.timeContainer.appendChild(h.amPM)),h.timeContainer}()),ue(h.calendarContainer,"rangeMode","range"===h.config.mode),ue(h.calendarContainer,"animate",!0===h.config.animate),ue(h.calendarContainer,"multiMonth",1<h.config.showMonths),h.calendarContainer.appendChild(e);var i=h.config.appendTo!==undefined&&h.config.appendTo.nodeType!==undefined;if((h.config.inline||h.config["static"])&&(h.calendarContainer.classList.add(h.config.inline?"inline":"static"),h.config.inline&&(!i&&h.element.parentNode?h.element.parentNode.insertBefore(h.calendarContainer,h._input.nextSibling):h.config.appendTo!==undefined&&h.config.appendTo.appendChild(h.calendarContainer)),h.config["static"])){var o=se("div","flatpickr-wrapper");h.element.parentNode&&h.element.parentNode.insertBefore(o,h.element),o.appendChild(h.element),h.altInput&&o.appendChild(h.altInput),o.appendChild(h.calendarContainer)}h.config["static"]||h.config.inline||(h.config.appendTo!==undefined?h.config.appendTo:window.document.body).appendChild(h.calendarContainer)}(),function(){if(h.config.wrap&&["open","close","toggle","clear"].forEach(function(n){Array.prototype.forEach.call(h.element.querySelectorAll("[data-"+n+"]"),function(e){return o(e,"click",h[n])})}),h.isMobile)return function(){var e=h.config.enableTime?h.config.noCalendar?"time":"datetime-local":"date";h.mobileInput=se("input",h.input.className+" flatpickr-mobile"),h.mobileInput.step=h.input.getAttribute("step")||"any",h.mobileInput.tabIndex=1,h.mobileInput.type=e,h.mobileInput.disabled=h.input.disabled,h.mobileInput.required=h.input.required,h.mobileInput.placeholder=h.input.placeholder,h.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",0<h.selectedDates.length&&(h.mobileInput.defaultValue=h.mobileInput.value=h.formatDate(h.selectedDates[0],h.mobileFormatStr)),h.config.minDate&&(h.mobileInput.min=h.formatDate(h.config.minDate,"Y-m-d")),h.config.maxDate&&(h.mobileInput.max=h.formatDate(h.config.maxDate,"Y-m-d")),h.input.type="hidden",h.altInput!==undefined&&(h.altInput.type="hidden");try{h.input.parentNode&&h.input.parentNode.insertBefore(h.mobileInput,h.input.nextSibling)}catch(n){}o(h.mobileInput,"change",function(e){h.setDate(e.target.value,!1,h.mobileFormatStr),q("onChange"),q("onClose")})}();var e=ee(j,50);h._debouncedChange=ee(u,ge),h.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&o(h.daysContainer,"mouseover",function(e){"range"===h.config.mode&&P(e.target)}),o(window.document.body,"keydown",A),h.config["static"]||o(h._input,"keydown",A),h.config.inline||h.config["static"]||o(window,"resize",e),window.ontouchstart!==undefined?o(window.document,"click",S):o(window.document,"mousedown",r(S)),o(window.document,"focus",S,{capture:!0}),!0===h.config.clickOpens&&(o(h._input,"focus",h.open),o(h._input,"mousedown",r(h.open))),h.daysContainer!==undefined&&(o(h.monthNav,"mousedown",r(Z)),o(h.monthNav,["keyup","increment"],t),o(h.daysContainer,"mousedown",r(K))),h.timeContainer!==undefined&&h.minuteElement!==undefined&&h.hourElement!==undefined&&(o(h.timeContainer,["increment"],g),o(h.timeContainer,"blur",g,{capture:!0}),o(h.timeContainer,"mousedown",r(c)),o([h.hourElement,h.minuteElement],["focus","click"],function(e){return e.target.select()}),h.secondElement!==undefined&&o(h.secondElement,"focus",function(){return h.secondElement&&h.secondElement.select()}),h.amPM!==undefined&&o(h.amPM,"mousedown",r(function(e){g(e),u()})))}(),(h.selectedDates.length||h.config.noCalendar)&&(h.config.enableTime&&i(h.config.noCalendar?h.latestSelectedDateObj||h.
2config.minDate:undefined),V(!1)),n(),h.showTimeInput=0<h.selectedDates.length||h.config.noCalendar;var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!h.isMobile&&e&&L(),q("onReady")}(),h}function t(e,n){for(var t=Array.prototype.slice.call(e),a=[],i=0;i<t.length;i++){var o=t[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;o._flatpickr!==undefined&&(o._flatpickr.destroy(),o._flatpickr=undefined),o._flatpickr=l(o,n||{}),a.push(o._flatpickr)}catch(r){console.error(r)}}return 1===a.length?a[0]:a}"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return t(this,e)},HTMLElement.prototype.flatpickr=function(e){return t([this],e)});var pe=function(e,n){return e instanceof NodeList?t(e,n):t("string"==typeof e?window.document.querySelectorAll(e):[e],n)};return pe.defaultConfig=C,pe.l10ns={en:Object.assign({},ie),"default":Object.assign({},ie)},pe.localize=function(e){pe.l10ns["default"]=Object.assign({},pe.l10ns["default"],e)},pe.setDefaults=function(e){pe.defaultConfig=Object.assign({},pe.defaultConfig,e)},pe.parseDate=re({}),pe.formatDate=oe({}),pe.compareDates=de,"undefined"!=typeof jQuery&&(jQuery.fn.flatpickr=function(e){return t(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=pe),pe});
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.