@limetech/lime-elements 36.3.0-next.13 → 36.3.0-next.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{dateFormatter-d7a8d40d.js → dateFormatter-5353def7.js} +227 -141
- package/dist/cjs/limel-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +9 -3
- package/dist/cjs/limel-split-button.cjs.entry.js +1 -1
- package/dist/collection/components/chip-set/chip-set.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/dateFormatter.js +7 -3
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +1 -1
- package/dist/collection/components/date-picker/pickers/Picker.js +11 -2
- package/dist/collection/components/file/file.js +1 -1
- package/dist/collection/components/snackbar/snackbar.js +1 -1
- package/dist/collection/components/split-button/split-button.css +4 -0
- package/dist/esm/{dateFormatter-784c3334.js → dateFormatter-e13137e8.js} +227 -141
- package/dist/esm/limel-date-picker.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +9 -3
- package/dist/esm/limel-split-button.entry.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-3a7b55ce.entry.js +1 -0
- package/dist/lime-elements/{p-d512656b.entry.js → p-7fb5f651.entry.js} +1 -1
- package/dist/lime-elements/{p-73df4d83.js → p-9900c44b.js} +5 -3
- package/dist/lime-elements/{p-c4a89055.entry.js → p-aec225e5.entry.js} +1 -1
- package/dist/types/components/date-picker/date.types.d.ts +1 -1
- package/dist/types/components/date-picker/dateFormatter.d.ts +3 -2
- package/dist/types/components/date-picker/pickers/Picker.d.ts +3 -0
- package/package.json +7 -7
- package/dist/lime-elements/p-e4f8d6a8.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,c as n,h as r}from"./p-d4e788e1.js";import{t}from"./p-246862ec.js";import{c as a,a as o,g as i}from"./p-eab67c09.js";import{D as d}from"./p-73df4d83.js";import{m as s}from"./p-945afca2.js";import{i as l,a as c}from"./p-cc9ebbef.js";import{e as u}from"./p-eda23c05.js";import{b as h,a as f}from"./p-9acf7b5d.js";import{i as p}from"./p-c93050d6.js";import{t as m}from"./p-365098fe.js";import"./p-d529bb7d.js";import"./p-858c6b82.js";function g(e){return e?1/0===(e=m(e))||-1/0===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}var v=Math.ceil,w=Math.max,k=function(e,n,r){return r&&"number"!=typeof r&&function(e,n,r){if(!p(r))return!1;var t=typeof n;return!!("number"==t?h(r)&&f(n,r.length):"string"==t&&n in r)&&u(r[n],e)}(e,n,r)&&(n=r=void 0),e=g(e),void 0===n?(n=e,e=0):n=g(n),function(e,n,r){for(var t=-1,a=w(v((n-e)/(r||1)),0),o=Array(a);a--;)o[++t]=e,e+=r;return o}(e,n,r=void 0===r?e<n?1:-1:g(r))},b=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],y={_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 n=new Date(e.getTime());n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var r=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-r.getTime())/864e5-3+(r.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},M={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(n>3&&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",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},S=function(e,n){return void 0===n&&(n=2),("000"+e).slice(-1*n)},D=function(e){return!0===e?1:0};function x(e,n){var r;return function(){var t=this,a=arguments;clearTimeout(r),r=setTimeout((function(){return e.apply(t,a)}),n)}}var A=function(e){return e instanceof Array?e:[e]};function T(e,n,r){if(!0===r)return e.classList.add(n);e.classList.remove(n)}function O(e,n,r){var t=window.document.createElement(e);return r=r||"",t.className=n=n||"",void 0!==r&&(t.textContent=r),t}function j(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function J(e,n){return n(e)?e:e.parentNode?J(e.parentNode,n):void 0}function C(e,n){var r=O("div","numInputWrapper"),t=O("input","numInput "+e),a=O("span","arrowUp"),o=O("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?t.type="number":(t.type="text",t.pattern="\\d*"),void 0!==n)for(var i in n)t.setAttribute(i,n[i]);return r.appendChild(t),r.appendChild(a),r.appendChild(o),r}function P(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(n){return e.target}}var W=function(){},N=function(e,n,r){return r.months[n?"shorthand":"longhand"][e]},F={D:W,F:function(e,n,r){e.setMonth(r.months.longhand.indexOf(n))},G:function(e,n){e.setHours((e.getHours()>=12?12:0)+parseFloat(n))},H:function(e,n){e.setHours(parseFloat(n))},J:function(e,n){e.setDate(parseFloat(n))},K:function(e,n,r){e.setHours(e.getHours()%12+12*D(new RegExp(r.amPM[1],"i").test(n)))},M:function(e,n,r){e.setMonth(r.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,r){var t=parseInt(n),a=new Date(e.getFullYear(),0,2+7*(t-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+r.firstDayOfWeek),a},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((e.getHours()>=12?12:0)+parseFloat(n))},i:function(e,n){e.setMinutes(parseFloat(n))},j:function(e,n){e.setDate(parseFloat(n))},l:W,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))},u:function(e,n){return new Date(parseFloat(n))},w:W,y:function(e,n){e.setFullYear(2e3+parseFloat(n))}},L={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",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:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},z={Z:function(e){return e.toISOString()},D:function(e,n,r){return n.weekdays.shorthand[z.w(e,n,r)]},F:function(e,n,r){return N(z.n(e,n,r)-1,!1,n)},G:function(e,n,r){return S(z.h(e,n,r))},H:function(e){return S(e.getHours())},J:function(e,n){return void 0!==n.ordinal?e.getDate()+n.ordinal(e.getDate()):e.getDate()},K:function(e,n){return n.amPM[D(e.getHours()>11)]},M:function(e,n){return N(e.getMonth(),!0,n)},S:function(e){return S(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,n,r){return r.getWeek(e)},Y:function(e){return S(e.getFullYear(),4)},d:function(e){return S(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return S(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,n){return n.weekdays.longhand[e.getDay()]},m:function(e){return S(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)}},I=function(e){var n=e.config,r=void 0===n?y:n,t=e.l10n,a=void 0===t?M:t,o=e.isMobile,i=void 0!==o&&o;return function(e,n,t){var o=t||a;return void 0===r.formatDate||i?n.split("").map((function(n,t,a){return z[n]&&"\\"!==a[t-1]?z[n](e,o,r):"\\"!==n?n:""})).join(""):r.formatDate(e,n,o)}},R=function(e){var n=e.config,r=void 0===n?y:n,t=e.l10n,a=void 0===t?M:t;return function(e,n,t,o){if(0===e||e){var i,d=o||a,s=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 l=n||(r||y).dateFormat,c=String(e).trim();if("today"===c)i=new Date,t=!0;else if(r&&r.parseDate)i=r.parseDate(e,l);else if(/Z$/.test(c)||/GMT$/.test(c))i=new Date(e);else{for(var u=void 0,h=[],f=0,p=0,m="";f<l.length;f++){var g=l[f],v="\\"===g;if(L[g]&&"\\"!==l[f-1]&&!v){m+=L[g];var w=new RegExp(m).exec(e);w&&(u=!0)&&h["Y"!==g?"push":"unshift"]({fn:F[g],val:w[++p]})}else v||(m+=".")}i=r&&r.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),h.forEach((function(e){return i=(0,e.fn)(i,e.val,d)||i})),i=u?i:void 0}}if(i instanceof Date&&!isNaN(i.getTime()))return!0===t&&i.setHours(0,0,0,0),i;r.errorHandler(new Error("Invalid date provided: "+s))}}};function _(e,n,r){return void 0===r&&(r=!0),!1!==r?new Date(e.getTime()).setHours(0,0,0,0)-new Date(n.getTime()).setHours(0,0,0,0):e.getTime()-n.getTime()}var Y=function(e,n,r){return 3600*e+60*n+r};function E(e){var n=e.defaultHour,r=e.defaultMinute,t=e.defaultSeconds;if(void 0!==e.minDate){var a=e.minDate.getHours(),o=e.minDate.getMinutes(),i=e.minDate.getSeconds();n<a&&(n=a),n===a&&r<o&&(r=o),n===a&&r===o&&t<i&&(t=e.minDate.getSeconds())}if(void 0!==e.maxDate){var d=e.maxDate.getHours(),s=e.maxDate.getMinutes();(n=Math.min(n,d))===d&&(r=Math.min(s,r)),n===d&&r===s&&(t=e.maxDate.getSeconds())}return{hours:n,minutes:r,seconds:t}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var t=function(n){n&&Object.keys(n).forEach((function(r){return e[r]=n[r]}))},a=0,o=n;a<o.length;a++){var i=o[a];t(i)}return e});var H=function(){return(H=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},K=function(){for(var e=0,n=0,r=arguments.length;n<r;n++)e+=arguments[n].length;var t=Array(e),a=0;for(n=0;n<r;n++)for(var o=arguments[n],i=0,d=o.length;i<d;i++,a++)t[a]=o[i];return t};function G(e,n){var r={config:H(H({},y),q.defaultConfig),l10n:M};function t(){var e;return(null===(e=r.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function a(e){return e.bind(r)}function o(){var e=r.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==r.calendarContainer&&(r.calendarContainer.style.visibility="hidden",r.calendarContainer.style.display="block"),void 0!==r.daysContainer){var n=(r.days.offsetWidth+1)*e.showMonths;r.daysContainer.style.width=n+"px",r.calendarContainer.style.width=n+(void 0!==r.weekWrapper?r.weekWrapper.offsetWidth:0)+"px",r.calendarContainer.style.removeProperty("visibility"),r.calendarContainer.style.removeProperty("display")}}))}function i(e){if(0===r.selectedDates.length){var n=void 0===r.config.minDate||_(new Date,r.config.minDate)>=0?new Date:new Date(r.config.minDate.getTime()),t=E(r.config);n.setHours(t.hours,t.minutes,t.seconds,n.getMilliseconds()),r.selectedDates=[n],r.latestSelectedDateObj=n}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var n="keydown"===e.type,t=P(e),a=t;void 0!==r.amPM&&t===r.amPM&&(r.amPM.textContent=r.l10n.amPM[D(r.amPM.textContent===r.l10n.amPM[0])]);var o=parseFloat(a.getAttribute("min")),i=parseFloat(a.getAttribute("max")),d=parseFloat(a.getAttribute("step")),s=parseInt(a.value,10),l=s+d*(e.delta||(n?38===e.which?1:-1:0));if(void 0!==a.value&&2===a.value.length){var c=a===r.hourElement,u=a===r.minuteElement;l<o?(l=i+l+D(!c)+(D(c)&&D(!r.amPM)),u&&m(void 0,-1,r.hourElement)):l>i&&(l=a===r.hourElement?l-i-D(!r.amPM):o,u&&m(void 0,1,r.hourElement)),r.amPM&&c&&(1===d?l+s===23:Math.abs(l-s)>d)&&(r.amPM.textContent=r.l10n.amPM[D(r.amPM.textContent===r.l10n.amPM[0])]),a.value=S(l)}}(e);var a=r._input.value;d(),Me(),r._input.value!==a&&r._debouncedChange()}function d(){if(void 0!==r.hourElement&&void 0!==r.minuteElement){var e=(parseInt(r.hourElement.value.slice(-2),10)||0)%24,n=(parseInt(r.minuteElement.value,10)||0)%60,t=void 0!==r.secondElement?(parseInt(r.secondElement.value,10)||0)%60:0;void 0!==r.amPM&&(e=e%12+12*D(r.amPM.textContent===r.l10n.amPM[1]));var a=void 0!==r.config.minTime||r.config.minDate&&r.minDateHasTime&&r.latestSelectedDateObj&&0===_(r.latestSelectedDateObj,r.config.minDate,!0),o=void 0!==r.config.maxTime||r.config.maxDate&&r.maxDateHasTime&&r.latestSelectedDateObj&&0===_(r.latestSelectedDateObj,r.config.maxDate,!0);if(void 0!==r.config.maxTime&&void 0!==r.config.minTime&&r.config.minTime>r.config.maxTime){var i=Y(r.config.minTime.getHours(),r.config.minTime.getMinutes(),r.config.minTime.getSeconds()),d=Y(r.config.maxTime.getHours(),r.config.maxTime.getMinutes(),r.config.maxTime.getSeconds()),s=Y(e,n,t);if(s>d&&s<i){var c=function(e){var n=Math.floor(e/3600),r=(e-3600*n)/60;return[n,r,e-3600*n-60*r]}(i);e=c[0],n=c[1],t=c[2]}}else{if(o){var u=void 0!==r.config.maxTime?r.config.maxTime:r.config.maxDate;(e=Math.min(e,u.getHours()))===u.getHours()&&(n=Math.min(n,u.getMinutes())),n===u.getMinutes()&&(t=Math.min(t,u.getSeconds()))}if(a){var h=void 0!==r.config.minTime?r.config.minTime:r.config.minDate;(e=Math.max(e,h.getHours()))===h.getHours()&&n<h.getMinutes()&&(n=h.getMinutes()),n===h.getMinutes()&&(t=Math.max(t,h.getSeconds()))}}l(e,n,t)}}function s(e){var n=e||r.latestSelectedDateObj;n&&n instanceof Date&&l(n.getHours(),n.getMinutes(),n.getSeconds())}function l(e,n,t){void 0!==r.latestSelectedDateObj&&r.latestSelectedDateObj.setHours(e%24,n,t||0,0),r.hourElement&&r.minuteElement&&!r.isMobile&&(r.hourElement.value=S(r.config.time_24hr?e:(12+e)%12+12*D(e%12==0)),r.minuteElement.value=S(n),void 0!==r.amPM&&(r.amPM.textContent=r.l10n.amPM[D(e>=12)]),void 0!==r.secondElement&&(r.secondElement.value=S(t)))}function c(e){var n=P(e),r=parseInt(n.value)+(e.delta||0);(r/1e3>1||"Enter"===e.key&&!/[^\d]/.test(r.toString()))&&X(r)}function u(e,n,t,a){return n instanceof Array?n.forEach((function(n){return u(e,n,t,a)})):e instanceof Array?e.forEach((function(e){return u(e,n,t,a)})):(e.addEventListener(n,t,a),void r._handlers.push({remove:function(){return e.removeEventListener(n,t,a)}}))}function h(){ve("onChange")}function f(e,n){var t=void 0!==e?r.parseDate(e):r.latestSelectedDateObj||(r.config.minDate&&r.config.minDate>r.now?r.config.minDate:r.config.maxDate&&r.config.maxDate<r.now?r.config.maxDate:r.now),a=r.currentYear,o=r.currentMonth;try{void 0!==t&&(r.currentYear=t.getFullYear(),r.currentMonth=t.getMonth())}catch(e){e.message="Invalid date supplied: "+t,r.config.errorHandler(e)}n&&r.currentYear!==a&&(ve("onYearChange"),z()),!n||r.currentYear===a&&r.currentMonth===o||ve("onMonthChange"),r.redraw()}function p(e){var n=P(e);~n.className.indexOf("arrow")&&m(e,n.classList.contains("arrowUp")?1:-1)}function m(e,n,r){var t=e&&P(e),a=r||t&&t.parentNode&&t.parentNode.firstChild,o=we("increment");o.delta=n,a&&a.dispatchEvent(o)}function g(e,n,t,a){var o=ee(n,!0),i=O("span",e,n.getDate().toString());return i.dateObj=n,i.$i=a,i.setAttribute("aria-label",r.formatDate(n,r.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===_(n,r.now)&&(r.todayDateElem=i,i.classList.add("today"),i.setAttribute("aria-current","date")),o?(i.tabIndex=-1,ke(n)&&(i.classList.add("selected"),r.selectedDateElem=i,"range"===r.config.mode&&(T(i,"startRange",r.selectedDates[0]&&0===_(n,r.selectedDates[0],!0)),T(i,"endRange",r.selectedDates[1]&&0===_(n,r.selectedDates[1],!0)),"nextMonthDay"===e&&i.classList.add("inRange")))):i.classList.add("flatpickr-disabled"),"range"===r.config.mode&&function(e){return!("range"!==r.config.mode||r.selectedDates.length<2)&&_(e,r.selectedDates[0])>=0&&_(e,r.selectedDates[1])<=0}(n)&&!ke(n)&&i.classList.add("inRange"),r.weekNumbers&&1===r.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&r.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+r.config.getWeek(n)+"</span>"),ve("onDayCreate",i),i}function v(e){e.focus(),"range"===r.config.mode&&ae(e)}function w(e){for(var n=e>0?r.config.showMonths:-1,t=e>0?0:r.config.showMonths-1;t!=n;t+=e)for(var a=r.daysContainer.children[t],o=e>0?a.children.length:-1,i=e>0?0:a.children.length-1;i!=o;i+=e){var d=a.children[i];if(-1===d.className.indexOf("hidden")&&ee(d.dateObj))return d}}function k(e,n){var a=t(),o=ne(a||document.body),i=void 0!==e?e:o?a:void 0!==r.selectedDateElem&&ne(r.selectedDateElem)?r.selectedDateElem:void 0!==r.todayDateElem&&ne(r.todayDateElem)?r.todayDateElem:w(n>0?1:-1);void 0===i?r._input.focus():o?function(e,n){for(var t=-1===e.className.indexOf("Month")?e.dateObj.getMonth():r.currentMonth,a=n>0?r.config.showMonths:-1,o=n>0?1:-1,i=t-r.currentMonth;i!=a;i+=o)for(var d=r.daysContainer.children[i],s=d.children.length,l=t-r.currentMonth===i?e.$i+n:n<0?d.children.length-1:0;l>=0&&l<s&&l!=(n>0?s:-1);l+=o){var c=d.children[l];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj)&&Math.abs(e.$i-l)>=Math.abs(n))return v(c)}r.changeMonth(o),k(w(o),0)}(i,n):v(i)}function W(e,n){for(var t=(new Date(e,n,1).getDay()-r.l10n.firstDayOfWeek+7)%7,a=r.utils.getDaysInMonth((n-1+12)%12,e),o=r.utils.getDaysInMonth(n,e),i=window.document.createDocumentFragment(),d=r.config.showMonths>1,s=d?"prevMonthDay hidden":"prevMonthDay",l=d?"nextMonthDay hidden":"nextMonthDay",c=a+1-t,u=0;c<=a;c++,u++)i.appendChild(g("flatpickr-day "+s,new Date(e,n-1,c),0,u));for(c=1;c<=o;c++,u++)i.appendChild(g("flatpickr-day",new Date(e,n,c),0,u));for(var h=o+1;h<=42-t&&(1===r.config.showMonths||u%7!=0);h++,u++)i.appendChild(g("flatpickr-day "+l,new Date(e,n+1,h%o),0,u));var f=O("div","dayContainer");return f.appendChild(i),f}function F(){if(void 0!==r.daysContainer){j(r.daysContainer),r.weekNumbers&&j(r.weekNumbers);for(var e=document.createDocumentFragment(),n=0;n<r.config.showMonths;n++){var t=new Date(r.currentYear,r.currentMonth,1);t.setMonth(r.currentMonth+n),e.appendChild(W(t.getFullYear(),t.getMonth()))}r.daysContainer.appendChild(e),r.days=r.daysContainer.firstChild,"range"===r.config.mode&&1===r.selectedDates.length&&ae()}}function z(){if(!(r.config.showMonths>1||"dropdown"!==r.config.monthSelectorType)){var e=function(e){return!(void 0!==r.config.minDate&&r.currentYear===r.config.minDate.getFullYear()&&e<r.config.minDate.getMonth()||void 0!==r.config.maxDate&&r.currentYear===r.config.maxDate.getFullYear()&&e>r.config.maxDate.getMonth())};r.monthsDropdownContainer.tabIndex=-1,r.monthsDropdownContainer.innerHTML="";for(var n=0;n<12;n++)if(e(n)){var t=O("option","flatpickr-monthDropdown-month");t.value=new Date(r.currentYear,n).getMonth().toString(),t.textContent=N(n,r.config.shorthandCurrentMonth,r.l10n),t.tabIndex=-1,r.currentMonth===n&&(t.selected=!0),r.monthsDropdownContainer.appendChild(t)}}}function G(){var e,n=O("div","flatpickr-month"),t=window.document.createDocumentFragment();r.config.showMonths>1||"static"===r.config.monthSelectorType?e=O("span","cur-month"):(r.monthsDropdownContainer=O("select","flatpickr-monthDropdown-months"),r.monthsDropdownContainer.setAttribute("aria-label",r.l10n.monthAriaLabel),u(r.monthsDropdownContainer,"change",(function(e){var n=P(e),t=parseInt(n.value,10);r.changeMonth(t-r.currentMonth),ve("onMonthChange")})),z(),e=r.monthsDropdownContainer);var a=C("cur-year",{tabindex:"-1"}),o=a.getElementsByTagName("input")[0];o.setAttribute("aria-label",r.l10n.yearAriaLabel),r.config.minDate&&o.setAttribute("min",r.config.minDate.getFullYear().toString()),r.config.maxDate&&(o.setAttribute("max",r.config.maxDate.getFullYear().toString()),o.disabled=!!r.config.minDate&&r.config.minDate.getFullYear()===r.config.maxDate.getFullYear());var i=O("div","flatpickr-current-month");return i.appendChild(e),i.appendChild(a),t.appendChild(i),n.appendChild(t),{container:n,yearElement:o,monthElement:e}}function U(){j(r.monthNav),r.monthNav.appendChild(r.prevMonthNav),r.config.showMonths&&(r.yearElements=[],r.monthElements=[]);for(var e=r.config.showMonths;e--;){var n=G();r.yearElements.push(n.yearElement),r.monthElements.push(n.monthElement),r.monthNav.appendChild(n.container)}r.monthNav.appendChild(r.nextMonthNav)}function V(){r.weekdayContainer?j(r.weekdayContainer):r.weekdayContainer=O("div","flatpickr-weekdays");for(var e=r.config.showMonths;e--;){var n=O("div","flatpickr-weekdaycontainer");r.weekdayContainer.appendChild(n)}return B(),r.weekdayContainer}function B(){if(r.weekdayContainer){var e=r.l10n.firstDayOfWeek,n=K(r.l10n.weekdays.shorthand);e>0&&e<n.length&&(n=K(n.splice(e,n.length),n.splice(0,e)));for(var t=r.config.showMonths;t--;)r.weekdayContainer.children[t].innerHTML="\n <span class='flatpickr-weekday'>\n "+n.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Q(e,n){void 0===n&&(n=!0);var t=n?e:e-r.currentMonth;t<0&&!0===r._hidePrevMonthArrow||t>0&&!0===r._hideNextMonthArrow||(r.currentMonth+=t,(r.currentMonth<0||r.currentMonth>11)&&(r.currentYear+=r.currentMonth>11?1:-1,r.currentMonth=(r.currentMonth+12)%12,ve("onYearChange"),z()),F(),ve("onMonthChange"),be())}function Z(e){return r.calendarContainer.contains(e)}function $(e){if(r.isOpen&&!r.config.inline){var n=P(e),t=Z(n),a=!(n===r.input||n===r.altInput||r.element.contains(n)||e.path&&e.path.indexOf&&(~e.path.indexOf(r.input)||~e.path.indexOf(r.altInput))||t||Z(e.relatedTarget)),o=!r.config.ignoredFocusElements.some((function(e){return e.contains(n)}));a&&o&&(r.config.allowInput&&r.setDate(r._input.value,!1,r.config.altInput?r.config.altFormat:r.config.dateFormat),void 0!==r.timeContainer&&void 0!==r.minuteElement&&void 0!==r.hourElement&&""!==r.input.value&&void 0!==r.input.value&&i(),r.close(),r.config&&"range"===r.config.mode&&1===r.selectedDates.length&&r.clear(!1))}}function X(e){if(!(!e||r.config.minDate&&e<r.config.minDate.getFullYear()||r.config.maxDate&&e>r.config.maxDate.getFullYear())){var n=r.currentYear!==e;r.currentYear=e||r.currentYear,r.config.maxDate&&r.currentYear===r.config.maxDate.getFullYear()?r.currentMonth=Math.min(r.config.maxDate.getMonth(),r.currentMonth):r.config.minDate&&r.currentYear===r.config.minDate.getFullYear()&&(r.currentMonth=Math.max(r.config.minDate.getMonth(),r.currentMonth)),n&&(r.redraw(),ve("onYearChange"),z())}}function ee(e,n){var t;void 0===n&&(n=!0);var a=r.parseDate(e,void 0,n);if(r.config.minDate&&a&&_(a,r.config.minDate,void 0!==n?n:!r.minDateHasTime)<0||r.config.maxDate&&a&&_(a,r.config.maxDate,void 0!==n?n:!r.maxDateHasTime)>0)return!1;if(!r.config.enable&&0===r.config.disable.length)return!0;if(void 0===a)return!1;for(var o=!!r.config.enable,i=null!==(t=r.config.enable)&&void 0!==t?t:r.config.disable,d=0,s=void 0;d<i.length;d++){if("function"==typeof(s=i[d])&&s(a))return o;if(s instanceof Date&&void 0!==a&&s.getTime()===a.getTime())return o;if("string"==typeof s){var l=r.parseDate(s,void 0,!0);return l&&l.getTime()===a.getTime()?o:!o}if("object"==typeof s&&void 0!==a&&s.from&&s.to&&a.getTime()>=s.from.getTime()&&a.getTime()<=s.to.getTime())return o}return!o}function ne(e){return void 0!==r.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&r.daysContainer.contains(e)}function re(e){var n=e.target===r._input,t=r._input.value.trimEnd()!==ye();!n||!t||e.relatedTarget&&Z(e.relatedTarget)||r.setDate(r._input.value,!0,e.target===r.altInput?r.config.altFormat:r.config.dateFormat)}function te(n){var a=P(n),o=r.config.wrap?e.contains(a):a===r._input,s=r.config.allowInput,l=r.isOpen&&(!s||!o),c=r.config.inline&&o&&!s;if(13===n.keyCode&&o){if(s)return r.setDate(r._input.value,!0,a===r.altInput?r.config.altFormat:r.config.dateFormat),r.close(),a.blur();r.open()}else if(Z(a)||l||c){var u=!!r.timeContainer&&r.timeContainer.contains(a);switch(n.keyCode){case 13:u?(n.preventDefault(),i(),ue()):he(n);break;case 27:n.preventDefault(),ue();break;case 8:case 46:o&&!r.config.allowInput&&(n.preventDefault(),r.clear());break;case 37:case 39:if(u||o)r.hourElement&&r.hourElement.focus();else{n.preventDefault();var h=t();if(void 0!==r.daysContainer&&(!1===s||h&&ne(h))){var f=39===n.keyCode?1:-1;n.ctrlKey?(n.stopPropagation(),Q(f),k(w(1),0)):k(void 0,f)}}break;case 38:case 40:n.preventDefault();var p=40===n.keyCode?1:-1;r.daysContainer&&void 0!==a.$i||a===r.input||a===r.altInput?n.ctrlKey?(n.stopPropagation(),X(r.currentYear-p),k(w(1),0)):u||k(void 0,7*p):a===r.currentYearElement?X(r.currentYear-p):r.config.enableTime&&(!u&&r.hourElement&&r.hourElement.focus(),i(n),r._debouncedChange());break;case 9:if(u){var m=[r.hourElement,r.minuteElement,r.secondElement,r.amPM].concat(r.pluginElements).filter((function(e){return e})),g=m.indexOf(a);if(-1!==g){var v=m[g+(n.shiftKey?-1:1)];n.preventDefault(),(v||r._input).focus()}}else!r.config.noCalendar&&r.daysContainer&&r.daysContainer.contains(a)&&n.shiftKey&&(n.preventDefault(),r._input.focus())}}if(void 0!==r.amPM&&a===r.amPM)switch(n.key){case r.l10n.amPM[0].charAt(0):case r.l10n.amPM[0].charAt(0).toLowerCase():r.amPM.textContent=r.l10n.amPM[0],d(),Me();break;case r.l10n.amPM[1].charAt(0):case r.l10n.amPM[1].charAt(0).toLowerCase():r.amPM.textContent=r.l10n.amPM[1],d(),Me()}(o||Z(a))&&ve("onKeyDown",n)}function ae(e,n){if(void 0===n&&(n="flatpickr-day"),1===r.selectedDates.length&&(!e||e.classList.contains(n)&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():r.days.firstElementChild.dateObj.getTime(),a=r.parseDate(r.selectedDates[0],void 0,!0).getTime(),o=Math.min(t,r.selectedDates[0].getTime()),i=Math.max(t,r.selectedDates[0].getTime()),d=!1,s=0,l=0,c=o;c<i;c+=864e5)ee(new Date(c),!0)||(d=d||c>o&&c<i,c<a&&(!s||c>s)?s=c:c>a&&(!l||c<l)&&(l=c));Array.from(r.rContainer.querySelectorAll("*:nth-child(-n+"+r.config.showMonths+") > ."+n)).forEach((function(n){var o,i,c,u=n.dateObj.getTime(),h=s>0&&u<s||l>0&&u>l;if(h)return n.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){n.classList.remove(e)}));d&&!h||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){n.classList.remove(e)})),void 0!==e&&(e.classList.add(t<=r.selectedDates[0].getTime()?"startRange":"endRange"),a<t&&u===a?n.classList.add("startRange"):a>t&&u===a&&n.classList.add("endRange"),u>=s&&(0===l||u<=l)&&(i=a,c=t,(o=u)>Math.min(i,c)&&o<Math.max(i,c))&&n.classList.add("inRange")))}))}}function oe(){!r.isOpen||r.config.static||r.config.inline||le()}function ie(e){return function(n){var t=r.config["_"+e+"Date"]=r.parseDate(n,r.config.dateFormat),a=r.config["_"+("min"===e?"max":"min")+"Date"];void 0!==t&&(r["min"===e?"minDateHasTime":"maxDateHasTime"]=t.getHours()>0||t.getMinutes()>0||t.getSeconds()>0),r.selectedDates&&(r.selectedDates=r.selectedDates.filter((function(e){return ee(e)})),r.selectedDates.length||"min"!==e||s(t),Me()),r.daysContainer&&(ce(),void 0!==t?r.currentYearElement[e]=t.getFullYear().toString():r.currentYearElement.removeAttribute(e),r.currentYearElement.disabled=!!a&&void 0!==t&&a.getFullYear()===t.getFullYear())}}function de(){return r.config.wrap?e.querySelector("[data-input]"):e}function se(){"object"!=typeof r.config.locale&&void 0===q.l10ns[r.config.locale]&&r.config.errorHandler(new Error("flatpickr: invalid locale "+r.config.locale)),r.l10n=H(H({},q.l10ns.default),"object"==typeof r.config.locale?r.config.locale:"default"!==r.config.locale?q.l10ns[r.config.locale]:void 0),L.D="("+r.l10n.weekdays.shorthand.join("|")+")",L.l="("+r.l10n.weekdays.longhand.join("|")+")",L.M="("+r.l10n.months.shorthand.join("|")+")",L.F="("+r.l10n.months.longhand.join("|")+")",L.K="("+r.l10n.amPM[0]+"|"+r.l10n.amPM[1]+"|"+r.l10n.amPM[0].toLowerCase()+"|"+r.l10n.amPM[1].toLowerCase()+")",void 0===H(H({},n),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===q.defaultConfig.time_24hr&&(r.config.time_24hr=r.l10n.time_24hr),r.formatDate=I(r),r.parseDate=R({config:r.config,l10n:r.l10n})}function le(e){if("function"!=typeof r.config.position){if(void 0!==r.calendarContainer){ve("onPreCalendarPosition");var n=e||r._positionElement,t=Array.prototype.reduce.call(r.calendarContainer.children,(function(e,n){return e+n.offsetHeight}),0),a=r.calendarContainer.offsetWidth,o=r.config.position.split(" "),i=o[0],d=o.length>1?o[1]:null,s=n.getBoundingClientRect(),l=window.innerHeight-s.bottom,c="above"===i||"below"!==i&&l<t&&s.top>t,u=window.pageYOffset+s.top+(c?-t-2:n.offsetHeight+2);if(T(r.calendarContainer,"arrowTop",!c),T(r.calendarContainer,"arrowBottom",c),!r.config.inline){var h=window.pageXOffset+s.left,f=!1,p=!1;"center"===d?(h-=(a-s.width)/2,f=!0):"right"===d&&(h-=a-s.width,p=!0),T(r.calendarContainer,"arrowLeft",!f&&!p),T(r.calendarContainer,"arrowCenter",f),T(r.calendarContainer,"arrowRight",p);var m=window.document.body.offsetWidth-(window.pageXOffset+s.right),g=h+a>window.document.body.offsetWidth,v=m+a>window.document.body.offsetWidth;if(T(r.calendarContainer,"rightMost",g),!r.config.static)if(r.calendarContainer.style.top=u+"px",g)if(v){var w=function(){for(var e=null,n=0;n<document.styleSheets.length;n++){var r=document.styleSheets[n];if(r.cssRules){e=r;break}}return null!=e?e:function(){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}()}();if(void 0===w)return;var k=window.document.body.offsetWidth,b=Math.max(0,k/2-a/2),y=w.cssRules.length,M="{left:"+s.left+"px;right:auto;}";T(r.calendarContainer,"rightMost",!1),T(r.calendarContainer,"centerMost",!0),w.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+M,y),r.calendarContainer.style.left=b+"px",r.calendarContainer.style.right="auto"}else r.calendarContainer.style.left="auto",r.calendarContainer.style.right=m+"px";else r.calendarContainer.style.left=h+"px",r.calendarContainer.style.right="auto"}}}else r.config.position(r,e)}function ce(){r.config.noCalendar||r.isMobile||(z(),be(),F())}function ue(){r._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(r.close,0):r.close()}function he(e){e.preventDefault(),e.stopPropagation();var n=J(P(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==n){var t=n,a=r.latestSelectedDateObj=new Date(t.dateObj.getTime()),o=(a.getMonth()<r.currentMonth||a.getMonth()>r.currentMonth+r.config.showMonths-1)&&"range"!==r.config.mode;if(r.selectedDateElem=t,"single"===r.config.mode)r.selectedDates=[a];else if("multiple"===r.config.mode){var i=ke(a);i?r.selectedDates.splice(parseInt(i),1):r.selectedDates.push(a)}else"range"===r.config.mode&&(2===r.selectedDates.length&&r.clear(!1,!1),r.latestSelectedDateObj=a,r.selectedDates.push(a),0!==_(a,r.selectedDates[0],!0)&&r.selectedDates.sort((function(e,n){return e.getTime()-n.getTime()})));if(d(),o){var s=r.currentYear!==a.getFullYear();r.currentYear=a.getFullYear(),r.currentMonth=a.getMonth(),s&&(ve("onYearChange"),z()),ve("onMonthChange")}be(),F(),Me(),o||"range"===r.config.mode||1!==r.config.showMonths?void 0!==r.selectedDateElem&&void 0===r.hourElement&&r.selectedDateElem&&r.selectedDateElem.focus():v(t),void 0!==r.hourElement&&void 0!==r.hourElement&&r.hourElement.focus(),r.config.closeOnSelect&&("single"===r.config.mode&&!r.config.enableTime||"range"===r.config.mode&&2===r.selectedDates.length&&!r.config.enableTime)&&ue(),h()}}r.parseDate=R({config:r.config,l10n:r.l10n}),r._handlers=[],r.pluginElements=[],r.loadedPlugins=[],r._bind=u,r._setHoursFromDate=s,r._positionCalendar=le,r.changeMonth=Q,r.changeYear=X,r.clear=function(e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!0),r.input.value="",void 0!==r.altInput&&(r.altInput.value=""),void 0!==r.mobileInput&&(r.mobileInput.value=""),r.selectedDates=[],r.latestSelectedDateObj=void 0,!0===n&&(r.currentYear=r._initialDate.getFullYear(),r.currentMonth=r._initialDate.getMonth()),!0===r.config.enableTime){var t=E(r.config);l(t.hours,t.minutes,t.seconds)}r.redraw(),e&&ve("onChange")},r.close=function(){r.isOpen=!1,r.isMobile||(void 0!==r.calendarContainer&&r.calendarContainer.classList.remove("open"),void 0!==r._input&&r._input.classList.remove("active")),ve("onClose")},r.onMouseOver=ae,r._createElement=O,r.createDay=g,r.destroy=function(){void 0!==r.config&&ve("onDestroy");for(var e=r._handlers.length;e--;)r._handlers[e].remove();if(r._handlers=[],r.mobileInput)r.mobileInput.parentNode&&r.mobileInput.parentNode.removeChild(r.mobileInput),r.mobileInput=void 0;else if(r.calendarContainer&&r.calendarContainer.parentNode)if(r.config.static&&r.calendarContainer.parentNode){var n=r.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else r.calendarContainer.parentNode.removeChild(r.calendarContainer);r.altInput&&(r.input.type="text",r.altInput.parentNode&&r.altInput.parentNode.removeChild(r.altInput),delete r.altInput),r.input&&(r.input.type=r.input._type,r.input.classList.remove("flatpickr-input"),r.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","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 r[e]}catch(e){}}))},r.isEnabled=ee,r.jumpToDate=f,r.updateValue=Me,r.open=function(e,n){if(void 0===n&&(n=r._positionElement),!0===r.isMobile){if(e){e.preventDefault();var t=P(e);t&&t.blur()}return void 0!==r.mobileInput&&(r.mobileInput.focus(),r.mobileInput.click()),void ve("onOpen")}if(!r._input.disabled&&!r.config.inline){var a=r.isOpen;r.isOpen=!0,a||(r.calendarContainer.classList.add("open"),r._input.classList.add("active"),ve("onOpen"),le(n)),!0===r.config.enableTime&&!0===r.config.noCalendar&&(!1!==r.config.allowInput||void 0!==e&&r.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return r.hourElement.select()}),50))}},r.redraw=ce,r.set=function(e,n){if(null!==e&&"object"==typeof e)for(var t in Object.assign(r.config,e),e)void 0!==fe[t]&&fe[t].forEach((function(e){return e()}));else r.config[e]=n,void 0!==fe[e]?fe[e].forEach((function(e){return e()})):b.indexOf(e)>-1&&(r.config[e]=A(n));r.redraw(),Me(!0)},r.setDate=function(e,n,t){if(void 0===n&&(n=!1),void 0===t&&(t=r.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return r.clear(n);pe(e,t),r.latestSelectedDateObj=r.selectedDates[r.selectedDates.length-1],r.redraw(),f(void 0,n),s(),0===r.selectedDates.length&&r.clear(!1),Me(n),n&&ve("onChange")},r.toggle=function(e){if(!0===r.isOpen)return r.close();r.open(e)};var fe={locale:[se,B],showMonths:[U,o,V],minDate:[f],maxDate:[f],positionElement:[ge],clickOpens:[function(){!0===r.config.clickOpens?(u(r._input,"focus",r.open),u(r._input,"click",r.open)):(r._input.removeEventListener("focus",r.open),r._input.removeEventListener("click",r.open))}]};function pe(e,n){var t=[];if(e instanceof Array)t=e.map((function(e){return r.parseDate(e,n)}));else if(e instanceof Date||"number"==typeof e)t=[r.parseDate(e,n)];else if("string"==typeof e)switch(r.config.mode){case"single":case"time":t=[r.parseDate(e,n)];break;case"multiple":t=e.split(r.config.conjunction).map((function(e){return r.parseDate(e,n)}));break;case"range":t=e.split(r.l10n.rangeSeparator).map((function(e){return r.parseDate(e,n)}))}else r.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));r.selectedDates=r.config.allowInvalidPreload?t:t.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===r.config.mode&&r.selectedDates.sort((function(e,n){return e.getTime()-n.getTime()}))}function me(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?r.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:r.parseDate(e.from,void 0),to:r.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ge(){r._positionElement=r.config.positionElement||r._input}function ve(e,n){if(void 0!==r.config){var t=r.config[e];if(void 0!==t&&t.length>0)for(var a=0;t[a]&&a<t.length;a++)t[a](r.selectedDates,r.input.value,r,n);"onChange"===e&&(r.input.dispatchEvent(we("change")),r.input.dispatchEvent(we("input")))}}function we(e){var n=document.createEvent("Event");return n.initEvent(e,!0,!0),n}function ke(e){for(var n=0;n<r.selectedDates.length;n++){var t=r.selectedDates[n];if(t instanceof Date&&0===_(t,e))return""+n}return!1}function be(){r.config.noCalendar||r.isMobile||!r.monthNav||(r.yearElements.forEach((function(e,n){var t=new Date(r.currentYear,r.currentMonth,1);t.setMonth(r.currentMonth+n),r.config.showMonths>1||"static"===r.config.monthSelectorType?r.monthElements[n].textContent=N(t.getMonth(),r.config.shorthandCurrentMonth,r.l10n)+" ":r.monthsDropdownContainer.value=t.getMonth().toString(),e.value=t.getFullYear().toString()})),r._hidePrevMonthArrow=void 0!==r.config.minDate&&(r.currentYear===r.config.minDate.getFullYear()?r.currentMonth<=r.config.minDate.getMonth():r.currentYear<r.config.minDate.getFullYear()),r._hideNextMonthArrow=void 0!==r.config.maxDate&&(r.currentYear===r.config.maxDate.getFullYear()?r.currentMonth+1>r.config.maxDate.getMonth():r.currentYear>r.config.maxDate.getFullYear()))}function ye(e){var n=e||(r.config.altInput?r.config.altFormat:r.config.dateFormat);return r.selectedDates.map((function(e){return r.formatDate(e,n)})).filter((function(e,n,t){return"range"!==r.config.mode||r.config.enableTime||t.indexOf(e)===n})).join("range"!==r.config.mode?r.config.conjunction:r.l10n.rangeSeparator)}function Me(e){void 0===e&&(e=!0),void 0!==r.mobileInput&&r.mobileFormatStr&&(r.mobileInput.value=void 0!==r.latestSelectedDateObj?r.formatDate(r.latestSelectedDateObj,r.mobileFormatStr):""),r.input.value=ye(r.config.dateFormat),void 0!==r.altInput&&(r.altInput.value=ye(r.config.altFormat)),!1!==e&&ve("onValueUpdate")}function Se(e){var n=P(e),t=r.prevMonthNav.contains(n),a=r.nextMonthNav.contains(n);t||a?Q(t?-1:1):r.yearElements.indexOf(n)>=0?n.select():n.classList.contains("arrowUp")?r.changeYear(r.currentYear+1):n.classList.contains("arrowDown")&&r.changeYear(r.currentYear-1)}return function(){r.element=r.input=e,r.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],o=H(H({},JSON.parse(JSON.stringify(e.dataset||{}))),n),i={};r.config.parseDate=o.parseDate,r.config.formatDate=o.formatDate,Object.defineProperty(r.config,"enable",{get:function(){return r.config._enable},set:function(e){r.config._enable=me(e)}}),Object.defineProperty(r.config,"disable",{get:function(){return r.config._disable},set:function(e){r.config._disable=me(e)}});var d="time"===o.mode;o.dateFormat||!o.enableTime&&!d||(i.dateFormat=o.noCalendar||d?"H:i"+(o.enableSeconds?":S":""):(q.defaultConfig.dateFormat||y.dateFormat)+" H:i"+(o.enableSeconds?":S":"")),o.altInput&&(o.enableTime||d)&&!o.altFormat&&(i.altFormat=o.noCalendar||d?"h:i"+(o.enableSeconds?":S K":" K"):(q.defaultConfig.altFormat||y.altFormat)+" h:i"+(o.enableSeconds?":S":"")+" K"),Object.defineProperty(r.config,"minDate",{get:function(){return r.config._minDate},set:ie("min")}),Object.defineProperty(r.config,"maxDate",{get:function(){return r.config._maxDate},set:ie("max")});var s=function(e){return function(n){r.config["min"===e?"_minTime":"_maxTime"]=r.parseDate(n,"H:i:S")}};Object.defineProperty(r.config,"minTime",{get:function(){return r.config._minTime},set:s("min")}),Object.defineProperty(r.config,"maxTime",{get:function(){return r.config._maxTime},set:s("max")}),"time"===o.mode&&(r.config.noCalendar=!0,r.config.enableTime=!0),Object.assign(r.config,i,o);for(var l=0;l<t.length;l++)r.config[t[l]]=!0===r.config[t[l]]||"true"===r.config[t[l]];for(b.filter((function(e){return void 0!==r.config[e]})).forEach((function(e){r.config[e]=A(r.config[e]||[]).map(a)})),r.isMobile=!r.config.disableMobile&&!r.config.inline&&"single"===r.config.mode&&!r.config.disable.length&&!r.config.enable&&!r.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),l=0;l<r.config.plugins.length;l++){var c=r.config.plugins[l](r)||{};for(var u in c)b.indexOf(u)>-1?r.config[u]=A(c[u]).map(a).concat(r.config[u]):void 0===o[u]&&(r.config[u]=c[u])}o.altInputClass||(r.config.altInputClass=de().className+" "+r.config.altInputClass),ve("onParseConfig")}(),se(),r.input=de(),r.input?(r.input._type=r.input.type,r.input.type="text",r.input.classList.add("flatpickr-input"),r._input=r.input,r.config.altInput&&(r.altInput=O(r.input.nodeName,r.config.altInputClass),r._input=r.altInput,r.altInput.placeholder=r.input.placeholder,r.altInput.disabled=r.input.disabled,r.altInput.required=r.input.required,r.altInput.tabIndex=r.input.tabIndex,r.altInput.type="text",r.input.setAttribute("type","hidden"),!r.config.static&&r.input.parentNode&&r.input.parentNode.insertBefore(r.altInput,r.input.nextSibling)),r.config.allowInput||r._input.setAttribute("readonly","readonly"),ge()):r.config.errorHandler(new Error("Invalid input element specified")),function(){r.selectedDates=[],r.now=r.parseDate(r.config.now)||new Date;var e=r.config.defaultDate||("INPUT"!==r.input.nodeName&&"TEXTAREA"!==r.input.nodeName||!r.input.placeholder||r.input.value!==r.input.placeholder?r.input.value:null);e&&pe(e,r.config.dateFormat),r._initialDate=r.selectedDates.length>0?r.selectedDates[0]:r.config.minDate&&r.config.minDate.getTime()>r.now.getTime()?r.config.minDate:r.config.maxDate&&r.config.maxDate.getTime()<r.now.getTime()?r.config.maxDate:r.now,r.currentYear=r._initialDate.getFullYear(),r.currentMonth=r._initialDate.getMonth(),r.selectedDates.length>0&&(r.latestSelectedDateObj=r.selectedDates[0]),void 0!==r.config.minTime&&(r.config.minTime=r.parseDate(r.config.minTime,"H:i")),void 0!==r.config.maxTime&&(r.config.maxTime=r.parseDate(r.config.maxTime,"H:i")),r.minDateHasTime=!!r.config.minDate&&(r.config.minDate.getHours()>0||r.config.minDate.getMinutes()>0||r.config.minDate.getSeconds()>0),r.maxDateHasTime=!!r.config.maxDate&&(r.config.maxDate.getHours()>0||r.config.maxDate.getMinutes()>0||r.config.maxDate.getSeconds()>0)}(),r.utils={getDaysInMonth:function(e,n){return void 0===e&&(e=r.currentMonth),void 0===n&&(n=r.currentYear),1===e&&(n%4==0&&n%100!=0||n%400==0)?29:r.l10n.daysInMonth[e]}},r.isMobile||function(){var e=window.document.createDocumentFragment();if(r.calendarContainer=O("div","flatpickr-calendar"),r.calendarContainer.tabIndex=-1,!r.config.noCalendar){if(e.appendChild((r.monthNav=O("div","flatpickr-months"),r.yearElements=[],r.monthElements=[],r.prevMonthNav=O("span","flatpickr-prev-month"),r.prevMonthNav.innerHTML=r.config.prevArrow,r.nextMonthNav=O("span","flatpickr-next-month"),r.nextMonthNav.innerHTML=r.config.nextArrow,U(),Object.defineProperty(r,"_hidePrevMonthArrow",{get:function(){return r.__hidePrevMonthArrow},set:function(e){r.__hidePrevMonthArrow!==e&&(T(r.prevMonthNav,"flatpickr-disabled",e),r.__hidePrevMonthArrow=e)}}),Object.defineProperty(r,"_hideNextMonthArrow",{get:function(){return r.__hideNextMonthArrow},set:function(e){r.__hideNextMonthArrow!==e&&(T(r.nextMonthNav,"flatpickr-disabled",e),r.__hideNextMonthArrow=e)}}),r.currentYearElement=r.yearElements[0],be(),r.monthNav)),r.innerContainer=O("div","flatpickr-innerContainer"),r.config.weekNumbers){var n=function(){r.calendarContainer.classList.add("hasWeeks");var e=O("div","flatpickr-weekwrapper");e.appendChild(O("span","flatpickr-weekday",r.l10n.weekAbbreviation));var n=O("div","flatpickr-weeks");return e.appendChild(n),{weekWrapper:e,weekNumbers:n}}(),t=n.weekWrapper,a=n.weekNumbers;r.innerContainer.appendChild(t),r.weekNumbers=a,r.weekWrapper=t}r.rContainer=O("div","flatpickr-rContainer"),r.rContainer.appendChild(V()),r.daysContainer||(r.daysContainer=O("div","flatpickr-days"),r.daysContainer.tabIndex=-1),F(),r.rContainer.appendChild(r.daysContainer),r.innerContainer.appendChild(r.rContainer),e.appendChild(r.innerContainer)}r.config.enableTime&&e.appendChild(function(){r.calendarContainer.classList.add("hasTime"),r.config.noCalendar&&r.calendarContainer.classList.add("noCalendar");var e=E(r.config);r.timeContainer=O("div","flatpickr-time"),r.timeContainer.tabIndex=-1;var n=O("span","flatpickr-time-separator",":"),t=C("flatpickr-hour",{"aria-label":r.l10n.hourAriaLabel});r.hourElement=t.getElementsByTagName("input")[0];var a=C("flatpickr-minute",{"aria-label":r.l10n.minuteAriaLabel});if(r.minuteElement=a.getElementsByTagName("input")[0],r.hourElement.tabIndex=r.minuteElement.tabIndex=-1,r.hourElement.value=S(r.latestSelectedDateObj?r.latestSelectedDateObj.getHours():r.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),r.minuteElement.value=S(r.latestSelectedDateObj?r.latestSelectedDateObj.getMinutes():e.minutes),r.hourElement.setAttribute("step",r.config.hourIncrement.toString()),r.minuteElement.setAttribute("step",r.config.minuteIncrement.toString()),r.hourElement.setAttribute("min",r.config.time_24hr?"0":"1"),r.hourElement.setAttribute("max",r.config.time_24hr?"23":"12"),r.hourElement.setAttribute("maxlength","2"),r.minuteElement.setAttribute("min","0"),r.minuteElement.setAttribute("max","59"),r.minuteElement.setAttribute("maxlength","2"),r.timeContainer.appendChild(t),r.timeContainer.appendChild(n),r.timeContainer.appendChild(a),r.config.time_24hr&&r.timeContainer.classList.add("time24hr"),r.config.enableSeconds){r.timeContainer.classList.add("hasSeconds");var o=C("flatpickr-second");r.secondElement=o.getElementsByTagName("input")[0],r.secondElement.value=S(r.latestSelectedDateObj?r.latestSelectedDateObj.getSeconds():e.seconds),r.secondElement.setAttribute("step",r.minuteElement.getAttribute("step")),r.secondElement.setAttribute("min","0"),r.secondElement.setAttribute("max","59"),r.secondElement.setAttribute("maxlength","2"),r.timeContainer.appendChild(O("span","flatpickr-time-separator",":")),r.timeContainer.appendChild(o)}return r.config.time_24hr||(r.amPM=O("span","flatpickr-am-pm",r.l10n.amPM[D((r.latestSelectedDateObj?r.hourElement.value:r.config.defaultHour)>11)]),r.amPM.title=r.l10n.toggleTitle,r.amPM.tabIndex=-1,r.timeContainer.appendChild(r.amPM)),r.timeContainer}()),T(r.calendarContainer,"rangeMode","range"===r.config.mode),T(r.calendarContainer,"animate",!0===r.config.animate),T(r.calendarContainer,"multiMonth",r.config.showMonths>1),r.calendarContainer.appendChild(e);var o=void 0!==r.config.appendTo&&void 0!==r.config.appendTo.nodeType;if((r.config.inline||r.config.static)&&(r.calendarContainer.classList.add(r.config.inline?"inline":"static"),r.config.inline&&(!o&&r.element.parentNode?r.element.parentNode.insertBefore(r.calendarContainer,r._input.nextSibling):void 0!==r.config.appendTo&&r.config.appendTo.appendChild(r.calendarContainer)),r.config.static)){var i=O("div","flatpickr-wrapper");r.element.parentNode&&r.element.parentNode.insertBefore(i,r.element),i.appendChild(r.element),r.altInput&&i.appendChild(r.altInput),i.appendChild(r.calendarContainer)}r.config.static||r.config.inline||(void 0!==r.config.appendTo?r.config.appendTo:window.document.body).appendChild(r.calendarContainer)}(),function(){if(r.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(r.element.querySelectorAll("[data-"+e+"]"),(function(n){return u(n,"click",r[e])}))})),r.isMobile)!function(){var e=r.config.enableTime?r.config.noCalendar?"time":"datetime-local":"date";r.mobileInput=O("input",r.input.className+" flatpickr-mobile"),r.mobileInput.tabIndex=1,r.mobileInput.type=e,r.mobileInput.disabled=r.input.disabled,r.mobileInput.required=r.input.required,r.mobileInput.placeholder=r.input.placeholder,r.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",r.selectedDates.length>0&&(r.mobileInput.defaultValue=r.mobileInput.value=r.formatDate(r.selectedDates[0],r.mobileFormatStr)),r.config.minDate&&(r.mobileInput.min=r.formatDate(r.config.minDate,"Y-m-d")),r.config.maxDate&&(r.mobileInput.max=r.formatDate(r.config.maxDate,"Y-m-d")),r.input.getAttribute("step")&&(r.mobileInput.step=String(r.input.getAttribute("step"))),r.input.type="hidden",void 0!==r.altInput&&(r.altInput.type="hidden");try{r.input.parentNode&&r.input.parentNode.insertBefore(r.mobileInput,r.input.nextSibling)}catch(e){}u(r.mobileInput,"change",(function(e){r.setDate(P(e).value,!1,r.mobileFormatStr),ve("onChange"),ve("onClose")}))}();else{var e=x(oe,50);if(r._debouncedChange=x(h,300),r.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&u(r.daysContainer,"mouseover",(function(e){"range"===r.config.mode&&ae(P(e))})),u(r._input,"keydown",te),void 0!==r.calendarContainer&&u(r.calendarContainer,"keydown",te),r.config.inline||r.config.static||u(window,"resize",e),void 0!==window.ontouchstart?u(window.document,"touchstart",$):u(window.document,"mousedown",$),u(window.document,"focus",$,{capture:!0}),!0===r.config.clickOpens&&(u(r._input,"focus",r.open),u(r._input,"click",r.open)),void 0!==r.daysContainer&&(u(r.monthNav,"click",Se),u(r.monthNav,["keyup","increment"],c),u(r.daysContainer,"click",he)),void 0!==r.timeContainer&&void 0!==r.minuteElement&&void 0!==r.hourElement){u(r.timeContainer,["increment"],i),u(r.timeContainer,"blur",i,{capture:!0}),u(r.timeContainer,"click",p),u([r.hourElement,r.minuteElement],["focus","click"],(function(e){return P(e).select()})),void 0!==r.secondElement&&u(r.secondElement,"focus",(function(){return r.secondElement&&r.secondElement.select()})),void 0!==r.amPM&&u(r.amPM,"click",(function(e){i(e)}))}r.config.allowInput&&u(r._input,"blur",re)}}(),(r.selectedDates.length||r.config.noCalendar)&&(r.config.enableTime&&s(r.config.noCalendar?r.latestSelectedDateObj:void 0),Me(!1)),o();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!r.isMobile&&t&&le(),ve("onReady")}(),r}function U(e,n){for(var r=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),t=[],a=0;a<r.length;a++){var o=r[a];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=G(o,n||{}),t.push(o._flatpickr)}catch(e){console.error(e)}}return 1===t.length?t[0]:t}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return U(this,e)},HTMLElement.prototype.flatpickr=function(e){return U([this],e)});var q=function(e,n){return"string"==typeof e?U(window.document.querySelectorAll(e),n):e instanceof Node?U([e],n):U(e,n)};q.defaultConfig={},q.l10ns={en:H({},M),default:H({},M)},q.localize=function(e){q.l10ns.default=H(H({},q.l10ns.default),e)},q.setDefaults=function(e){q.defaultConfig=H(H({},q.defaultConfig),e)},q.parseDate=R({}),q.formatDate=I({}),q.compareDates=_,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return U(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=q);const V=i(a((function(e,n){!function(e){
|
|
1
|
+
import{r as e,c as n,h as r}from"./p-d4e788e1.js";import{t}from"./p-246862ec.js";import{c as a,a as o,g as i}from"./p-eab67c09.js";import{D as d}from"./p-9900c44b.js";import{m as s}from"./p-945afca2.js";import{i as l,a as c}from"./p-cc9ebbef.js";import{e as u}from"./p-eda23c05.js";import{b as h,a as f}from"./p-9acf7b5d.js";import{i as p}from"./p-c93050d6.js";import{t as m}from"./p-365098fe.js";import"./p-d529bb7d.js";import"./p-858c6b82.js";function g(e){return e?1/0===(e=m(e))||-1/0===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}var v=Math.ceil,w=Math.max,k=function(e,n,r){return r&&"number"!=typeof r&&function(e,n,r){if(!p(r))return!1;var t=typeof n;return!!("number"==t?h(r)&&f(n,r.length):"string"==t&&n in r)&&u(r[n],e)}(e,n,r)&&(n=r=void 0),e=g(e),void 0===n?(n=e,e=0):n=g(n),function(e,n,r){for(var t=-1,a=w(v((n-e)/(r||1)),0),o=Array(a);a--;)o[++t]=e,e+=r;return o}(e,n,r=void 0===r?e<n?1:-1:g(r))},b=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],y={_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 n=new Date(e.getTime());n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var r=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-r.getTime())/864e5-3+(r.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},M={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(n>3&&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",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},S=function(e,n){return void 0===n&&(n=2),("000"+e).slice(-1*n)},D=function(e){return!0===e?1:0};function x(e,n){var r;return function(){var t=this,a=arguments;clearTimeout(r),r=setTimeout((function(){return e.apply(t,a)}),n)}}var A=function(e){return e instanceof Array?e:[e]};function T(e,n,r){if(!0===r)return e.classList.add(n);e.classList.remove(n)}function O(e,n,r){var t=window.document.createElement(e);return r=r||"",t.className=n=n||"",void 0!==r&&(t.textContent=r),t}function j(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function J(e,n){return n(e)?e:e.parentNode?J(e.parentNode,n):void 0}function C(e,n){var r=O("div","numInputWrapper"),t=O("input","numInput "+e),a=O("span","arrowUp"),o=O("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?t.type="number":(t.type="text",t.pattern="\\d*"),void 0!==n)for(var i in n)t.setAttribute(i,n[i]);return r.appendChild(t),r.appendChild(a),r.appendChild(o),r}function P(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(n){return e.target}}var W=function(){},N=function(e,n,r){return r.months[n?"shorthand":"longhand"][e]},F={D:W,F:function(e,n,r){e.setMonth(r.months.longhand.indexOf(n))},G:function(e,n){e.setHours((e.getHours()>=12?12:0)+parseFloat(n))},H:function(e,n){e.setHours(parseFloat(n))},J:function(e,n){e.setDate(parseFloat(n))},K:function(e,n,r){e.setHours(e.getHours()%12+12*D(new RegExp(r.amPM[1],"i").test(n)))},M:function(e,n,r){e.setMonth(r.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,r){var t=parseInt(n),a=new Date(e.getFullYear(),0,2+7*(t-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+r.firstDayOfWeek),a},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((e.getHours()>=12?12:0)+parseFloat(n))},i:function(e,n){e.setMinutes(parseFloat(n))},j:function(e,n){e.setDate(parseFloat(n))},l:W,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))},u:function(e,n){return new Date(parseFloat(n))},w:W,y:function(e,n){e.setFullYear(2e3+parseFloat(n))}},L={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",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:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},z={Z:function(e){return e.toISOString()},D:function(e,n,r){return n.weekdays.shorthand[z.w(e,n,r)]},F:function(e,n,r){return N(z.n(e,n,r)-1,!1,n)},G:function(e,n,r){return S(z.h(e,n,r))},H:function(e){return S(e.getHours())},J:function(e,n){return void 0!==n.ordinal?e.getDate()+n.ordinal(e.getDate()):e.getDate()},K:function(e,n){return n.amPM[D(e.getHours()>11)]},M:function(e,n){return N(e.getMonth(),!0,n)},S:function(e){return S(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,n,r){return r.getWeek(e)},Y:function(e){return S(e.getFullYear(),4)},d:function(e){return S(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return S(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,n){return n.weekdays.longhand[e.getDay()]},m:function(e){return S(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)}},I=function(e){var n=e.config,r=void 0===n?y:n,t=e.l10n,a=void 0===t?M:t,o=e.isMobile,i=void 0!==o&&o;return function(e,n,t){var o=t||a;return void 0===r.formatDate||i?n.split("").map((function(n,t,a){return z[n]&&"\\"!==a[t-1]?z[n](e,o,r):"\\"!==n?n:""})).join(""):r.formatDate(e,n,o)}},R=function(e){var n=e.config,r=void 0===n?y:n,t=e.l10n,a=void 0===t?M:t;return function(e,n,t,o){if(0===e||e){var i,d=o||a,s=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 l=n||(r||y).dateFormat,c=String(e).trim();if("today"===c)i=new Date,t=!0;else if(r&&r.parseDate)i=r.parseDate(e,l);else if(/Z$/.test(c)||/GMT$/.test(c))i=new Date(e);else{for(var u=void 0,h=[],f=0,p=0,m="";f<l.length;f++){var g=l[f],v="\\"===g;if(L[g]&&"\\"!==l[f-1]&&!v){m+=L[g];var w=new RegExp(m).exec(e);w&&(u=!0)&&h["Y"!==g?"push":"unshift"]({fn:F[g],val:w[++p]})}else v||(m+=".")}i=r&&r.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),h.forEach((function(e){return i=(0,e.fn)(i,e.val,d)||i})),i=u?i:void 0}}if(i instanceof Date&&!isNaN(i.getTime()))return!0===t&&i.setHours(0,0,0,0),i;r.errorHandler(new Error("Invalid date provided: "+s))}}};function _(e,n,r){return void 0===r&&(r=!0),!1!==r?new Date(e.getTime()).setHours(0,0,0,0)-new Date(n.getTime()).setHours(0,0,0,0):e.getTime()-n.getTime()}var Y=function(e,n,r){return 3600*e+60*n+r};function E(e){var n=e.defaultHour,r=e.defaultMinute,t=e.defaultSeconds;if(void 0!==e.minDate){var a=e.minDate.getHours(),o=e.minDate.getMinutes(),i=e.minDate.getSeconds();n<a&&(n=a),n===a&&r<o&&(r=o),n===a&&r===o&&t<i&&(t=e.minDate.getSeconds())}if(void 0!==e.maxDate){var d=e.maxDate.getHours(),s=e.maxDate.getMinutes();(n=Math.min(n,d))===d&&(r=Math.min(s,r)),n===d&&r===s&&(t=e.maxDate.getSeconds())}return{hours:n,minutes:r,seconds:t}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var t=function(n){n&&Object.keys(n).forEach((function(r){return e[r]=n[r]}))},a=0,o=n;a<o.length;a++){var i=o[a];t(i)}return e});var H=function(){return(H=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},K=function(){for(var e=0,n=0,r=arguments.length;n<r;n++)e+=arguments[n].length;var t=Array(e),a=0;for(n=0;n<r;n++)for(var o=arguments[n],i=0,d=o.length;i<d;i++,a++)t[a]=o[i];return t};function G(e,n){var r={config:H(H({},y),q.defaultConfig),l10n:M};function t(){var e;return(null===(e=r.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function a(e){return e.bind(r)}function o(){var e=r.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==r.calendarContainer&&(r.calendarContainer.style.visibility="hidden",r.calendarContainer.style.display="block"),void 0!==r.daysContainer){var n=(r.days.offsetWidth+1)*e.showMonths;r.daysContainer.style.width=n+"px",r.calendarContainer.style.width=n+(void 0!==r.weekWrapper?r.weekWrapper.offsetWidth:0)+"px",r.calendarContainer.style.removeProperty("visibility"),r.calendarContainer.style.removeProperty("display")}}))}function i(e){if(0===r.selectedDates.length){var n=void 0===r.config.minDate||_(new Date,r.config.minDate)>=0?new Date:new Date(r.config.minDate.getTime()),t=E(r.config);n.setHours(t.hours,t.minutes,t.seconds,n.getMilliseconds()),r.selectedDates=[n],r.latestSelectedDateObj=n}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var n="keydown"===e.type,t=P(e),a=t;void 0!==r.amPM&&t===r.amPM&&(r.amPM.textContent=r.l10n.amPM[D(r.amPM.textContent===r.l10n.amPM[0])]);var o=parseFloat(a.getAttribute("min")),i=parseFloat(a.getAttribute("max")),d=parseFloat(a.getAttribute("step")),s=parseInt(a.value,10),l=s+d*(e.delta||(n?38===e.which?1:-1:0));if(void 0!==a.value&&2===a.value.length){var c=a===r.hourElement,u=a===r.minuteElement;l<o?(l=i+l+D(!c)+(D(c)&&D(!r.amPM)),u&&m(void 0,-1,r.hourElement)):l>i&&(l=a===r.hourElement?l-i-D(!r.amPM):o,u&&m(void 0,1,r.hourElement)),r.amPM&&c&&(1===d?l+s===23:Math.abs(l-s)>d)&&(r.amPM.textContent=r.l10n.amPM[D(r.amPM.textContent===r.l10n.amPM[0])]),a.value=S(l)}}(e);var a=r._input.value;d(),Me(),r._input.value!==a&&r._debouncedChange()}function d(){if(void 0!==r.hourElement&&void 0!==r.minuteElement){var e=(parseInt(r.hourElement.value.slice(-2),10)||0)%24,n=(parseInt(r.minuteElement.value,10)||0)%60,t=void 0!==r.secondElement?(parseInt(r.secondElement.value,10)||0)%60:0;void 0!==r.amPM&&(e=e%12+12*D(r.amPM.textContent===r.l10n.amPM[1]));var a=void 0!==r.config.minTime||r.config.minDate&&r.minDateHasTime&&r.latestSelectedDateObj&&0===_(r.latestSelectedDateObj,r.config.minDate,!0),o=void 0!==r.config.maxTime||r.config.maxDate&&r.maxDateHasTime&&r.latestSelectedDateObj&&0===_(r.latestSelectedDateObj,r.config.maxDate,!0);if(void 0!==r.config.maxTime&&void 0!==r.config.minTime&&r.config.minTime>r.config.maxTime){var i=Y(r.config.minTime.getHours(),r.config.minTime.getMinutes(),r.config.minTime.getSeconds()),d=Y(r.config.maxTime.getHours(),r.config.maxTime.getMinutes(),r.config.maxTime.getSeconds()),s=Y(e,n,t);if(s>d&&s<i){var c=function(e){var n=Math.floor(e/3600),r=(e-3600*n)/60;return[n,r,e-3600*n-60*r]}(i);e=c[0],n=c[1],t=c[2]}}else{if(o){var u=void 0!==r.config.maxTime?r.config.maxTime:r.config.maxDate;(e=Math.min(e,u.getHours()))===u.getHours()&&(n=Math.min(n,u.getMinutes())),n===u.getMinutes()&&(t=Math.min(t,u.getSeconds()))}if(a){var h=void 0!==r.config.minTime?r.config.minTime:r.config.minDate;(e=Math.max(e,h.getHours()))===h.getHours()&&n<h.getMinutes()&&(n=h.getMinutes()),n===h.getMinutes()&&(t=Math.max(t,h.getSeconds()))}}l(e,n,t)}}function s(e){var n=e||r.latestSelectedDateObj;n&&n instanceof Date&&l(n.getHours(),n.getMinutes(),n.getSeconds())}function l(e,n,t){void 0!==r.latestSelectedDateObj&&r.latestSelectedDateObj.setHours(e%24,n,t||0,0),r.hourElement&&r.minuteElement&&!r.isMobile&&(r.hourElement.value=S(r.config.time_24hr?e:(12+e)%12+12*D(e%12==0)),r.minuteElement.value=S(n),void 0!==r.amPM&&(r.amPM.textContent=r.l10n.amPM[D(e>=12)]),void 0!==r.secondElement&&(r.secondElement.value=S(t)))}function c(e){var n=P(e),r=parseInt(n.value)+(e.delta||0);(r/1e3>1||"Enter"===e.key&&!/[^\d]/.test(r.toString()))&&X(r)}function u(e,n,t,a){return n instanceof Array?n.forEach((function(n){return u(e,n,t,a)})):e instanceof Array?e.forEach((function(e){return u(e,n,t,a)})):(e.addEventListener(n,t,a),void r._handlers.push({remove:function(){return e.removeEventListener(n,t,a)}}))}function h(){ve("onChange")}function f(e,n){var t=void 0!==e?r.parseDate(e):r.latestSelectedDateObj||(r.config.minDate&&r.config.minDate>r.now?r.config.minDate:r.config.maxDate&&r.config.maxDate<r.now?r.config.maxDate:r.now),a=r.currentYear,o=r.currentMonth;try{void 0!==t&&(r.currentYear=t.getFullYear(),r.currentMonth=t.getMonth())}catch(e){e.message="Invalid date supplied: "+t,r.config.errorHandler(e)}n&&r.currentYear!==a&&(ve("onYearChange"),z()),!n||r.currentYear===a&&r.currentMonth===o||ve("onMonthChange"),r.redraw()}function p(e){var n=P(e);~n.className.indexOf("arrow")&&m(e,n.classList.contains("arrowUp")?1:-1)}function m(e,n,r){var t=e&&P(e),a=r||t&&t.parentNode&&t.parentNode.firstChild,o=we("increment");o.delta=n,a&&a.dispatchEvent(o)}function g(e,n,t,a){var o=ee(n,!0),i=O("span",e,n.getDate().toString());return i.dateObj=n,i.$i=a,i.setAttribute("aria-label",r.formatDate(n,r.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===_(n,r.now)&&(r.todayDateElem=i,i.classList.add("today"),i.setAttribute("aria-current","date")),o?(i.tabIndex=-1,ke(n)&&(i.classList.add("selected"),r.selectedDateElem=i,"range"===r.config.mode&&(T(i,"startRange",r.selectedDates[0]&&0===_(n,r.selectedDates[0],!0)),T(i,"endRange",r.selectedDates[1]&&0===_(n,r.selectedDates[1],!0)),"nextMonthDay"===e&&i.classList.add("inRange")))):i.classList.add("flatpickr-disabled"),"range"===r.config.mode&&function(e){return!("range"!==r.config.mode||r.selectedDates.length<2)&&_(e,r.selectedDates[0])>=0&&_(e,r.selectedDates[1])<=0}(n)&&!ke(n)&&i.classList.add("inRange"),r.weekNumbers&&1===r.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&r.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+r.config.getWeek(n)+"</span>"),ve("onDayCreate",i),i}function v(e){e.focus(),"range"===r.config.mode&&ae(e)}function w(e){for(var n=e>0?r.config.showMonths:-1,t=e>0?0:r.config.showMonths-1;t!=n;t+=e)for(var a=r.daysContainer.children[t],o=e>0?a.children.length:-1,i=e>0?0:a.children.length-1;i!=o;i+=e){var d=a.children[i];if(-1===d.className.indexOf("hidden")&&ee(d.dateObj))return d}}function k(e,n){var a=t(),o=ne(a||document.body),i=void 0!==e?e:o?a:void 0!==r.selectedDateElem&&ne(r.selectedDateElem)?r.selectedDateElem:void 0!==r.todayDateElem&&ne(r.todayDateElem)?r.todayDateElem:w(n>0?1:-1);void 0===i?r._input.focus():o?function(e,n){for(var t=-1===e.className.indexOf("Month")?e.dateObj.getMonth():r.currentMonth,a=n>0?r.config.showMonths:-1,o=n>0?1:-1,i=t-r.currentMonth;i!=a;i+=o)for(var d=r.daysContainer.children[i],s=d.children.length,l=t-r.currentMonth===i?e.$i+n:n<0?d.children.length-1:0;l>=0&&l<s&&l!=(n>0?s:-1);l+=o){var c=d.children[l];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj)&&Math.abs(e.$i-l)>=Math.abs(n))return v(c)}r.changeMonth(o),k(w(o),0)}(i,n):v(i)}function W(e,n){for(var t=(new Date(e,n,1).getDay()-r.l10n.firstDayOfWeek+7)%7,a=r.utils.getDaysInMonth((n-1+12)%12,e),o=r.utils.getDaysInMonth(n,e),i=window.document.createDocumentFragment(),d=r.config.showMonths>1,s=d?"prevMonthDay hidden":"prevMonthDay",l=d?"nextMonthDay hidden":"nextMonthDay",c=a+1-t,u=0;c<=a;c++,u++)i.appendChild(g("flatpickr-day "+s,new Date(e,n-1,c),0,u));for(c=1;c<=o;c++,u++)i.appendChild(g("flatpickr-day",new Date(e,n,c),0,u));for(var h=o+1;h<=42-t&&(1===r.config.showMonths||u%7!=0);h++,u++)i.appendChild(g("flatpickr-day "+l,new Date(e,n+1,h%o),0,u));var f=O("div","dayContainer");return f.appendChild(i),f}function F(){if(void 0!==r.daysContainer){j(r.daysContainer),r.weekNumbers&&j(r.weekNumbers);for(var e=document.createDocumentFragment(),n=0;n<r.config.showMonths;n++){var t=new Date(r.currentYear,r.currentMonth,1);t.setMonth(r.currentMonth+n),e.appendChild(W(t.getFullYear(),t.getMonth()))}r.daysContainer.appendChild(e),r.days=r.daysContainer.firstChild,"range"===r.config.mode&&1===r.selectedDates.length&&ae()}}function z(){if(!(r.config.showMonths>1||"dropdown"!==r.config.monthSelectorType)){var e=function(e){return!(void 0!==r.config.minDate&&r.currentYear===r.config.minDate.getFullYear()&&e<r.config.minDate.getMonth()||void 0!==r.config.maxDate&&r.currentYear===r.config.maxDate.getFullYear()&&e>r.config.maxDate.getMonth())};r.monthsDropdownContainer.tabIndex=-1,r.monthsDropdownContainer.innerHTML="";for(var n=0;n<12;n++)if(e(n)){var t=O("option","flatpickr-monthDropdown-month");t.value=new Date(r.currentYear,n).getMonth().toString(),t.textContent=N(n,r.config.shorthandCurrentMonth,r.l10n),t.tabIndex=-1,r.currentMonth===n&&(t.selected=!0),r.monthsDropdownContainer.appendChild(t)}}}function G(){var e,n=O("div","flatpickr-month"),t=window.document.createDocumentFragment();r.config.showMonths>1||"static"===r.config.monthSelectorType?e=O("span","cur-month"):(r.monthsDropdownContainer=O("select","flatpickr-monthDropdown-months"),r.monthsDropdownContainer.setAttribute("aria-label",r.l10n.monthAriaLabel),u(r.monthsDropdownContainer,"change",(function(e){var n=P(e),t=parseInt(n.value,10);r.changeMonth(t-r.currentMonth),ve("onMonthChange")})),z(),e=r.monthsDropdownContainer);var a=C("cur-year",{tabindex:"-1"}),o=a.getElementsByTagName("input")[0];o.setAttribute("aria-label",r.l10n.yearAriaLabel),r.config.minDate&&o.setAttribute("min",r.config.minDate.getFullYear().toString()),r.config.maxDate&&(o.setAttribute("max",r.config.maxDate.getFullYear().toString()),o.disabled=!!r.config.minDate&&r.config.minDate.getFullYear()===r.config.maxDate.getFullYear());var i=O("div","flatpickr-current-month");return i.appendChild(e),i.appendChild(a),t.appendChild(i),n.appendChild(t),{container:n,yearElement:o,monthElement:e}}function U(){j(r.monthNav),r.monthNav.appendChild(r.prevMonthNav),r.config.showMonths&&(r.yearElements=[],r.monthElements=[]);for(var e=r.config.showMonths;e--;){var n=G();r.yearElements.push(n.yearElement),r.monthElements.push(n.monthElement),r.monthNav.appendChild(n.container)}r.monthNav.appendChild(r.nextMonthNav)}function V(){r.weekdayContainer?j(r.weekdayContainer):r.weekdayContainer=O("div","flatpickr-weekdays");for(var e=r.config.showMonths;e--;){var n=O("div","flatpickr-weekdaycontainer");r.weekdayContainer.appendChild(n)}return B(),r.weekdayContainer}function B(){if(r.weekdayContainer){var e=r.l10n.firstDayOfWeek,n=K(r.l10n.weekdays.shorthand);e>0&&e<n.length&&(n=K(n.splice(e,n.length),n.splice(0,e)));for(var t=r.config.showMonths;t--;)r.weekdayContainer.children[t].innerHTML="\n <span class='flatpickr-weekday'>\n "+n.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Q(e,n){void 0===n&&(n=!0);var t=n?e:e-r.currentMonth;t<0&&!0===r._hidePrevMonthArrow||t>0&&!0===r._hideNextMonthArrow||(r.currentMonth+=t,(r.currentMonth<0||r.currentMonth>11)&&(r.currentYear+=r.currentMonth>11?1:-1,r.currentMonth=(r.currentMonth+12)%12,ve("onYearChange"),z()),F(),ve("onMonthChange"),be())}function Z(e){return r.calendarContainer.contains(e)}function $(e){if(r.isOpen&&!r.config.inline){var n=P(e),t=Z(n),a=!(n===r.input||n===r.altInput||r.element.contains(n)||e.path&&e.path.indexOf&&(~e.path.indexOf(r.input)||~e.path.indexOf(r.altInput))||t||Z(e.relatedTarget)),o=!r.config.ignoredFocusElements.some((function(e){return e.contains(n)}));a&&o&&(r.config.allowInput&&r.setDate(r._input.value,!1,r.config.altInput?r.config.altFormat:r.config.dateFormat),void 0!==r.timeContainer&&void 0!==r.minuteElement&&void 0!==r.hourElement&&""!==r.input.value&&void 0!==r.input.value&&i(),r.close(),r.config&&"range"===r.config.mode&&1===r.selectedDates.length&&r.clear(!1))}}function X(e){if(!(!e||r.config.minDate&&e<r.config.minDate.getFullYear()||r.config.maxDate&&e>r.config.maxDate.getFullYear())){var n=r.currentYear!==e;r.currentYear=e||r.currentYear,r.config.maxDate&&r.currentYear===r.config.maxDate.getFullYear()?r.currentMonth=Math.min(r.config.maxDate.getMonth(),r.currentMonth):r.config.minDate&&r.currentYear===r.config.minDate.getFullYear()&&(r.currentMonth=Math.max(r.config.minDate.getMonth(),r.currentMonth)),n&&(r.redraw(),ve("onYearChange"),z())}}function ee(e,n){var t;void 0===n&&(n=!0);var a=r.parseDate(e,void 0,n);if(r.config.minDate&&a&&_(a,r.config.minDate,void 0!==n?n:!r.minDateHasTime)<0||r.config.maxDate&&a&&_(a,r.config.maxDate,void 0!==n?n:!r.maxDateHasTime)>0)return!1;if(!r.config.enable&&0===r.config.disable.length)return!0;if(void 0===a)return!1;for(var o=!!r.config.enable,i=null!==(t=r.config.enable)&&void 0!==t?t:r.config.disable,d=0,s=void 0;d<i.length;d++){if("function"==typeof(s=i[d])&&s(a))return o;if(s instanceof Date&&void 0!==a&&s.getTime()===a.getTime())return o;if("string"==typeof s){var l=r.parseDate(s,void 0,!0);return l&&l.getTime()===a.getTime()?o:!o}if("object"==typeof s&&void 0!==a&&s.from&&s.to&&a.getTime()>=s.from.getTime()&&a.getTime()<=s.to.getTime())return o}return!o}function ne(e){return void 0!==r.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&r.daysContainer.contains(e)}function re(e){var n=e.target===r._input,t=r._input.value.trimEnd()!==ye();!n||!t||e.relatedTarget&&Z(e.relatedTarget)||r.setDate(r._input.value,!0,e.target===r.altInput?r.config.altFormat:r.config.dateFormat)}function te(n){var a=P(n),o=r.config.wrap?e.contains(a):a===r._input,s=r.config.allowInput,l=r.isOpen&&(!s||!o),c=r.config.inline&&o&&!s;if(13===n.keyCode&&o){if(s)return r.setDate(r._input.value,!0,a===r.altInput?r.config.altFormat:r.config.dateFormat),r.close(),a.blur();r.open()}else if(Z(a)||l||c){var u=!!r.timeContainer&&r.timeContainer.contains(a);switch(n.keyCode){case 13:u?(n.preventDefault(),i(),ue()):he(n);break;case 27:n.preventDefault(),ue();break;case 8:case 46:o&&!r.config.allowInput&&(n.preventDefault(),r.clear());break;case 37:case 39:if(u||o)r.hourElement&&r.hourElement.focus();else{n.preventDefault();var h=t();if(void 0!==r.daysContainer&&(!1===s||h&&ne(h))){var f=39===n.keyCode?1:-1;n.ctrlKey?(n.stopPropagation(),Q(f),k(w(1),0)):k(void 0,f)}}break;case 38:case 40:n.preventDefault();var p=40===n.keyCode?1:-1;r.daysContainer&&void 0!==a.$i||a===r.input||a===r.altInput?n.ctrlKey?(n.stopPropagation(),X(r.currentYear-p),k(w(1),0)):u||k(void 0,7*p):a===r.currentYearElement?X(r.currentYear-p):r.config.enableTime&&(!u&&r.hourElement&&r.hourElement.focus(),i(n),r._debouncedChange());break;case 9:if(u){var m=[r.hourElement,r.minuteElement,r.secondElement,r.amPM].concat(r.pluginElements).filter((function(e){return e})),g=m.indexOf(a);if(-1!==g){var v=m[g+(n.shiftKey?-1:1)];n.preventDefault(),(v||r._input).focus()}}else!r.config.noCalendar&&r.daysContainer&&r.daysContainer.contains(a)&&n.shiftKey&&(n.preventDefault(),r._input.focus())}}if(void 0!==r.amPM&&a===r.amPM)switch(n.key){case r.l10n.amPM[0].charAt(0):case r.l10n.amPM[0].charAt(0).toLowerCase():r.amPM.textContent=r.l10n.amPM[0],d(),Me();break;case r.l10n.amPM[1].charAt(0):case r.l10n.amPM[1].charAt(0).toLowerCase():r.amPM.textContent=r.l10n.amPM[1],d(),Me()}(o||Z(a))&&ve("onKeyDown",n)}function ae(e,n){if(void 0===n&&(n="flatpickr-day"),1===r.selectedDates.length&&(!e||e.classList.contains(n)&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():r.days.firstElementChild.dateObj.getTime(),a=r.parseDate(r.selectedDates[0],void 0,!0).getTime(),o=Math.min(t,r.selectedDates[0].getTime()),i=Math.max(t,r.selectedDates[0].getTime()),d=!1,s=0,l=0,c=o;c<i;c+=864e5)ee(new Date(c),!0)||(d=d||c>o&&c<i,c<a&&(!s||c>s)?s=c:c>a&&(!l||c<l)&&(l=c));Array.from(r.rContainer.querySelectorAll("*:nth-child(-n+"+r.config.showMonths+") > ."+n)).forEach((function(n){var o,i,c,u=n.dateObj.getTime(),h=s>0&&u<s||l>0&&u>l;if(h)return n.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){n.classList.remove(e)}));d&&!h||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){n.classList.remove(e)})),void 0!==e&&(e.classList.add(t<=r.selectedDates[0].getTime()?"startRange":"endRange"),a<t&&u===a?n.classList.add("startRange"):a>t&&u===a&&n.classList.add("endRange"),u>=s&&(0===l||u<=l)&&(i=a,c=t,(o=u)>Math.min(i,c)&&o<Math.max(i,c))&&n.classList.add("inRange")))}))}}function oe(){!r.isOpen||r.config.static||r.config.inline||le()}function ie(e){return function(n){var t=r.config["_"+e+"Date"]=r.parseDate(n,r.config.dateFormat),a=r.config["_"+("min"===e?"max":"min")+"Date"];void 0!==t&&(r["min"===e?"minDateHasTime":"maxDateHasTime"]=t.getHours()>0||t.getMinutes()>0||t.getSeconds()>0),r.selectedDates&&(r.selectedDates=r.selectedDates.filter((function(e){return ee(e)})),r.selectedDates.length||"min"!==e||s(t),Me()),r.daysContainer&&(ce(),void 0!==t?r.currentYearElement[e]=t.getFullYear().toString():r.currentYearElement.removeAttribute(e),r.currentYearElement.disabled=!!a&&void 0!==t&&a.getFullYear()===t.getFullYear())}}function de(){return r.config.wrap?e.querySelector("[data-input]"):e}function se(){"object"!=typeof r.config.locale&&void 0===q.l10ns[r.config.locale]&&r.config.errorHandler(new Error("flatpickr: invalid locale "+r.config.locale)),r.l10n=H(H({},q.l10ns.default),"object"==typeof r.config.locale?r.config.locale:"default"!==r.config.locale?q.l10ns[r.config.locale]:void 0),L.D="("+r.l10n.weekdays.shorthand.join("|")+")",L.l="("+r.l10n.weekdays.longhand.join("|")+")",L.M="("+r.l10n.months.shorthand.join("|")+")",L.F="("+r.l10n.months.longhand.join("|")+")",L.K="("+r.l10n.amPM[0]+"|"+r.l10n.amPM[1]+"|"+r.l10n.amPM[0].toLowerCase()+"|"+r.l10n.amPM[1].toLowerCase()+")",void 0===H(H({},n),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===q.defaultConfig.time_24hr&&(r.config.time_24hr=r.l10n.time_24hr),r.formatDate=I(r),r.parseDate=R({config:r.config,l10n:r.l10n})}function le(e){if("function"!=typeof r.config.position){if(void 0!==r.calendarContainer){ve("onPreCalendarPosition");var n=e||r._positionElement,t=Array.prototype.reduce.call(r.calendarContainer.children,(function(e,n){return e+n.offsetHeight}),0),a=r.calendarContainer.offsetWidth,o=r.config.position.split(" "),i=o[0],d=o.length>1?o[1]:null,s=n.getBoundingClientRect(),l=window.innerHeight-s.bottom,c="above"===i||"below"!==i&&l<t&&s.top>t,u=window.pageYOffset+s.top+(c?-t-2:n.offsetHeight+2);if(T(r.calendarContainer,"arrowTop",!c),T(r.calendarContainer,"arrowBottom",c),!r.config.inline){var h=window.pageXOffset+s.left,f=!1,p=!1;"center"===d?(h-=(a-s.width)/2,f=!0):"right"===d&&(h-=a-s.width,p=!0),T(r.calendarContainer,"arrowLeft",!f&&!p),T(r.calendarContainer,"arrowCenter",f),T(r.calendarContainer,"arrowRight",p);var m=window.document.body.offsetWidth-(window.pageXOffset+s.right),g=h+a>window.document.body.offsetWidth,v=m+a>window.document.body.offsetWidth;if(T(r.calendarContainer,"rightMost",g),!r.config.static)if(r.calendarContainer.style.top=u+"px",g)if(v){var w=function(){for(var e=null,n=0;n<document.styleSheets.length;n++){var r=document.styleSheets[n];if(r.cssRules){e=r;break}}return null!=e?e:function(){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}()}();if(void 0===w)return;var k=window.document.body.offsetWidth,b=Math.max(0,k/2-a/2),y=w.cssRules.length,M="{left:"+s.left+"px;right:auto;}";T(r.calendarContainer,"rightMost",!1),T(r.calendarContainer,"centerMost",!0),w.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+M,y),r.calendarContainer.style.left=b+"px",r.calendarContainer.style.right="auto"}else r.calendarContainer.style.left="auto",r.calendarContainer.style.right=m+"px";else r.calendarContainer.style.left=h+"px",r.calendarContainer.style.right="auto"}}}else r.config.position(r,e)}function ce(){r.config.noCalendar||r.isMobile||(z(),be(),F())}function ue(){r._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(r.close,0):r.close()}function he(e){e.preventDefault(),e.stopPropagation();var n=J(P(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==n){var t=n,a=r.latestSelectedDateObj=new Date(t.dateObj.getTime()),o=(a.getMonth()<r.currentMonth||a.getMonth()>r.currentMonth+r.config.showMonths-1)&&"range"!==r.config.mode;if(r.selectedDateElem=t,"single"===r.config.mode)r.selectedDates=[a];else if("multiple"===r.config.mode){var i=ke(a);i?r.selectedDates.splice(parseInt(i),1):r.selectedDates.push(a)}else"range"===r.config.mode&&(2===r.selectedDates.length&&r.clear(!1,!1),r.latestSelectedDateObj=a,r.selectedDates.push(a),0!==_(a,r.selectedDates[0],!0)&&r.selectedDates.sort((function(e,n){return e.getTime()-n.getTime()})));if(d(),o){var s=r.currentYear!==a.getFullYear();r.currentYear=a.getFullYear(),r.currentMonth=a.getMonth(),s&&(ve("onYearChange"),z()),ve("onMonthChange")}be(),F(),Me(),o||"range"===r.config.mode||1!==r.config.showMonths?void 0!==r.selectedDateElem&&void 0===r.hourElement&&r.selectedDateElem&&r.selectedDateElem.focus():v(t),void 0!==r.hourElement&&void 0!==r.hourElement&&r.hourElement.focus(),r.config.closeOnSelect&&("single"===r.config.mode&&!r.config.enableTime||"range"===r.config.mode&&2===r.selectedDates.length&&!r.config.enableTime)&&ue(),h()}}r.parseDate=R({config:r.config,l10n:r.l10n}),r._handlers=[],r.pluginElements=[],r.loadedPlugins=[],r._bind=u,r._setHoursFromDate=s,r._positionCalendar=le,r.changeMonth=Q,r.changeYear=X,r.clear=function(e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!0),r.input.value="",void 0!==r.altInput&&(r.altInput.value=""),void 0!==r.mobileInput&&(r.mobileInput.value=""),r.selectedDates=[],r.latestSelectedDateObj=void 0,!0===n&&(r.currentYear=r._initialDate.getFullYear(),r.currentMonth=r._initialDate.getMonth()),!0===r.config.enableTime){var t=E(r.config);l(t.hours,t.minutes,t.seconds)}r.redraw(),e&&ve("onChange")},r.close=function(){r.isOpen=!1,r.isMobile||(void 0!==r.calendarContainer&&r.calendarContainer.classList.remove("open"),void 0!==r._input&&r._input.classList.remove("active")),ve("onClose")},r.onMouseOver=ae,r._createElement=O,r.createDay=g,r.destroy=function(){void 0!==r.config&&ve("onDestroy");for(var e=r._handlers.length;e--;)r._handlers[e].remove();if(r._handlers=[],r.mobileInput)r.mobileInput.parentNode&&r.mobileInput.parentNode.removeChild(r.mobileInput),r.mobileInput=void 0;else if(r.calendarContainer&&r.calendarContainer.parentNode)if(r.config.static&&r.calendarContainer.parentNode){var n=r.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else r.calendarContainer.parentNode.removeChild(r.calendarContainer);r.altInput&&(r.input.type="text",r.altInput.parentNode&&r.altInput.parentNode.removeChild(r.altInput),delete r.altInput),r.input&&(r.input.type=r.input._type,r.input.classList.remove("flatpickr-input"),r.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","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 r[e]}catch(e){}}))},r.isEnabled=ee,r.jumpToDate=f,r.updateValue=Me,r.open=function(e,n){if(void 0===n&&(n=r._positionElement),!0===r.isMobile){if(e){e.preventDefault();var t=P(e);t&&t.blur()}return void 0!==r.mobileInput&&(r.mobileInput.focus(),r.mobileInput.click()),void ve("onOpen")}if(!r._input.disabled&&!r.config.inline){var a=r.isOpen;r.isOpen=!0,a||(r.calendarContainer.classList.add("open"),r._input.classList.add("active"),ve("onOpen"),le(n)),!0===r.config.enableTime&&!0===r.config.noCalendar&&(!1!==r.config.allowInput||void 0!==e&&r.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return r.hourElement.select()}),50))}},r.redraw=ce,r.set=function(e,n){if(null!==e&&"object"==typeof e)for(var t in Object.assign(r.config,e),e)void 0!==fe[t]&&fe[t].forEach((function(e){return e()}));else r.config[e]=n,void 0!==fe[e]?fe[e].forEach((function(e){return e()})):b.indexOf(e)>-1&&(r.config[e]=A(n));r.redraw(),Me(!0)},r.setDate=function(e,n,t){if(void 0===n&&(n=!1),void 0===t&&(t=r.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return r.clear(n);pe(e,t),r.latestSelectedDateObj=r.selectedDates[r.selectedDates.length-1],r.redraw(),f(void 0,n),s(),0===r.selectedDates.length&&r.clear(!1),Me(n),n&&ve("onChange")},r.toggle=function(e){if(!0===r.isOpen)return r.close();r.open(e)};var fe={locale:[se,B],showMonths:[U,o,V],minDate:[f],maxDate:[f],positionElement:[ge],clickOpens:[function(){!0===r.config.clickOpens?(u(r._input,"focus",r.open),u(r._input,"click",r.open)):(r._input.removeEventListener("focus",r.open),r._input.removeEventListener("click",r.open))}]};function pe(e,n){var t=[];if(e instanceof Array)t=e.map((function(e){return r.parseDate(e,n)}));else if(e instanceof Date||"number"==typeof e)t=[r.parseDate(e,n)];else if("string"==typeof e)switch(r.config.mode){case"single":case"time":t=[r.parseDate(e,n)];break;case"multiple":t=e.split(r.config.conjunction).map((function(e){return r.parseDate(e,n)}));break;case"range":t=e.split(r.l10n.rangeSeparator).map((function(e){return r.parseDate(e,n)}))}else r.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));r.selectedDates=r.config.allowInvalidPreload?t:t.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===r.config.mode&&r.selectedDates.sort((function(e,n){return e.getTime()-n.getTime()}))}function me(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?r.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:r.parseDate(e.from,void 0),to:r.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ge(){r._positionElement=r.config.positionElement||r._input}function ve(e,n){if(void 0!==r.config){var t=r.config[e];if(void 0!==t&&t.length>0)for(var a=0;t[a]&&a<t.length;a++)t[a](r.selectedDates,r.input.value,r,n);"onChange"===e&&(r.input.dispatchEvent(we("change")),r.input.dispatchEvent(we("input")))}}function we(e){var n=document.createEvent("Event");return n.initEvent(e,!0,!0),n}function ke(e){for(var n=0;n<r.selectedDates.length;n++){var t=r.selectedDates[n];if(t instanceof Date&&0===_(t,e))return""+n}return!1}function be(){r.config.noCalendar||r.isMobile||!r.monthNav||(r.yearElements.forEach((function(e,n){var t=new Date(r.currentYear,r.currentMonth,1);t.setMonth(r.currentMonth+n),r.config.showMonths>1||"static"===r.config.monthSelectorType?r.monthElements[n].textContent=N(t.getMonth(),r.config.shorthandCurrentMonth,r.l10n)+" ":r.monthsDropdownContainer.value=t.getMonth().toString(),e.value=t.getFullYear().toString()})),r._hidePrevMonthArrow=void 0!==r.config.minDate&&(r.currentYear===r.config.minDate.getFullYear()?r.currentMonth<=r.config.minDate.getMonth():r.currentYear<r.config.minDate.getFullYear()),r._hideNextMonthArrow=void 0!==r.config.maxDate&&(r.currentYear===r.config.maxDate.getFullYear()?r.currentMonth+1>r.config.maxDate.getMonth():r.currentYear>r.config.maxDate.getFullYear()))}function ye(e){var n=e||(r.config.altInput?r.config.altFormat:r.config.dateFormat);return r.selectedDates.map((function(e){return r.formatDate(e,n)})).filter((function(e,n,t){return"range"!==r.config.mode||r.config.enableTime||t.indexOf(e)===n})).join("range"!==r.config.mode?r.config.conjunction:r.l10n.rangeSeparator)}function Me(e){void 0===e&&(e=!0),void 0!==r.mobileInput&&r.mobileFormatStr&&(r.mobileInput.value=void 0!==r.latestSelectedDateObj?r.formatDate(r.latestSelectedDateObj,r.mobileFormatStr):""),r.input.value=ye(r.config.dateFormat),void 0!==r.altInput&&(r.altInput.value=ye(r.config.altFormat)),!1!==e&&ve("onValueUpdate")}function Se(e){var n=P(e),t=r.prevMonthNav.contains(n),a=r.nextMonthNav.contains(n);t||a?Q(t?-1:1):r.yearElements.indexOf(n)>=0?n.select():n.classList.contains("arrowUp")?r.changeYear(r.currentYear+1):n.classList.contains("arrowDown")&&r.changeYear(r.currentYear-1)}return function(){r.element=r.input=e,r.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],o=H(H({},JSON.parse(JSON.stringify(e.dataset||{}))),n),i={};r.config.parseDate=o.parseDate,r.config.formatDate=o.formatDate,Object.defineProperty(r.config,"enable",{get:function(){return r.config._enable},set:function(e){r.config._enable=me(e)}}),Object.defineProperty(r.config,"disable",{get:function(){return r.config._disable},set:function(e){r.config._disable=me(e)}});var d="time"===o.mode;o.dateFormat||!o.enableTime&&!d||(i.dateFormat=o.noCalendar||d?"H:i"+(o.enableSeconds?":S":""):(q.defaultConfig.dateFormat||y.dateFormat)+" H:i"+(o.enableSeconds?":S":"")),o.altInput&&(o.enableTime||d)&&!o.altFormat&&(i.altFormat=o.noCalendar||d?"h:i"+(o.enableSeconds?":S K":" K"):(q.defaultConfig.altFormat||y.altFormat)+" h:i"+(o.enableSeconds?":S":"")+" K"),Object.defineProperty(r.config,"minDate",{get:function(){return r.config._minDate},set:ie("min")}),Object.defineProperty(r.config,"maxDate",{get:function(){return r.config._maxDate},set:ie("max")});var s=function(e){return function(n){r.config["min"===e?"_minTime":"_maxTime"]=r.parseDate(n,"H:i:S")}};Object.defineProperty(r.config,"minTime",{get:function(){return r.config._minTime},set:s("min")}),Object.defineProperty(r.config,"maxTime",{get:function(){return r.config._maxTime},set:s("max")}),"time"===o.mode&&(r.config.noCalendar=!0,r.config.enableTime=!0),Object.assign(r.config,i,o);for(var l=0;l<t.length;l++)r.config[t[l]]=!0===r.config[t[l]]||"true"===r.config[t[l]];for(b.filter((function(e){return void 0!==r.config[e]})).forEach((function(e){r.config[e]=A(r.config[e]||[]).map(a)})),r.isMobile=!r.config.disableMobile&&!r.config.inline&&"single"===r.config.mode&&!r.config.disable.length&&!r.config.enable&&!r.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),l=0;l<r.config.plugins.length;l++){var c=r.config.plugins[l](r)||{};for(var u in c)b.indexOf(u)>-1?r.config[u]=A(c[u]).map(a).concat(r.config[u]):void 0===o[u]&&(r.config[u]=c[u])}o.altInputClass||(r.config.altInputClass=de().className+" "+r.config.altInputClass),ve("onParseConfig")}(),se(),r.input=de(),r.input?(r.input._type=r.input.type,r.input.type="text",r.input.classList.add("flatpickr-input"),r._input=r.input,r.config.altInput&&(r.altInput=O(r.input.nodeName,r.config.altInputClass),r._input=r.altInput,r.altInput.placeholder=r.input.placeholder,r.altInput.disabled=r.input.disabled,r.altInput.required=r.input.required,r.altInput.tabIndex=r.input.tabIndex,r.altInput.type="text",r.input.setAttribute("type","hidden"),!r.config.static&&r.input.parentNode&&r.input.parentNode.insertBefore(r.altInput,r.input.nextSibling)),r.config.allowInput||r._input.setAttribute("readonly","readonly"),ge()):r.config.errorHandler(new Error("Invalid input element specified")),function(){r.selectedDates=[],r.now=r.parseDate(r.config.now)||new Date;var e=r.config.defaultDate||("INPUT"!==r.input.nodeName&&"TEXTAREA"!==r.input.nodeName||!r.input.placeholder||r.input.value!==r.input.placeholder?r.input.value:null);e&&pe(e,r.config.dateFormat),r._initialDate=r.selectedDates.length>0?r.selectedDates[0]:r.config.minDate&&r.config.minDate.getTime()>r.now.getTime()?r.config.minDate:r.config.maxDate&&r.config.maxDate.getTime()<r.now.getTime()?r.config.maxDate:r.now,r.currentYear=r._initialDate.getFullYear(),r.currentMonth=r._initialDate.getMonth(),r.selectedDates.length>0&&(r.latestSelectedDateObj=r.selectedDates[0]),void 0!==r.config.minTime&&(r.config.minTime=r.parseDate(r.config.minTime,"H:i")),void 0!==r.config.maxTime&&(r.config.maxTime=r.parseDate(r.config.maxTime,"H:i")),r.minDateHasTime=!!r.config.minDate&&(r.config.minDate.getHours()>0||r.config.minDate.getMinutes()>0||r.config.minDate.getSeconds()>0),r.maxDateHasTime=!!r.config.maxDate&&(r.config.maxDate.getHours()>0||r.config.maxDate.getMinutes()>0||r.config.maxDate.getSeconds()>0)}(),r.utils={getDaysInMonth:function(e,n){return void 0===e&&(e=r.currentMonth),void 0===n&&(n=r.currentYear),1===e&&(n%4==0&&n%100!=0||n%400==0)?29:r.l10n.daysInMonth[e]}},r.isMobile||function(){var e=window.document.createDocumentFragment();if(r.calendarContainer=O("div","flatpickr-calendar"),r.calendarContainer.tabIndex=-1,!r.config.noCalendar){if(e.appendChild((r.monthNav=O("div","flatpickr-months"),r.yearElements=[],r.monthElements=[],r.prevMonthNav=O("span","flatpickr-prev-month"),r.prevMonthNav.innerHTML=r.config.prevArrow,r.nextMonthNav=O("span","flatpickr-next-month"),r.nextMonthNav.innerHTML=r.config.nextArrow,U(),Object.defineProperty(r,"_hidePrevMonthArrow",{get:function(){return r.__hidePrevMonthArrow},set:function(e){r.__hidePrevMonthArrow!==e&&(T(r.prevMonthNav,"flatpickr-disabled",e),r.__hidePrevMonthArrow=e)}}),Object.defineProperty(r,"_hideNextMonthArrow",{get:function(){return r.__hideNextMonthArrow},set:function(e){r.__hideNextMonthArrow!==e&&(T(r.nextMonthNav,"flatpickr-disabled",e),r.__hideNextMonthArrow=e)}}),r.currentYearElement=r.yearElements[0],be(),r.monthNav)),r.innerContainer=O("div","flatpickr-innerContainer"),r.config.weekNumbers){var n=function(){r.calendarContainer.classList.add("hasWeeks");var e=O("div","flatpickr-weekwrapper");e.appendChild(O("span","flatpickr-weekday",r.l10n.weekAbbreviation));var n=O("div","flatpickr-weeks");return e.appendChild(n),{weekWrapper:e,weekNumbers:n}}(),t=n.weekWrapper,a=n.weekNumbers;r.innerContainer.appendChild(t),r.weekNumbers=a,r.weekWrapper=t}r.rContainer=O("div","flatpickr-rContainer"),r.rContainer.appendChild(V()),r.daysContainer||(r.daysContainer=O("div","flatpickr-days"),r.daysContainer.tabIndex=-1),F(),r.rContainer.appendChild(r.daysContainer),r.innerContainer.appendChild(r.rContainer),e.appendChild(r.innerContainer)}r.config.enableTime&&e.appendChild(function(){r.calendarContainer.classList.add("hasTime"),r.config.noCalendar&&r.calendarContainer.classList.add("noCalendar");var e=E(r.config);r.timeContainer=O("div","flatpickr-time"),r.timeContainer.tabIndex=-1;var n=O("span","flatpickr-time-separator",":"),t=C("flatpickr-hour",{"aria-label":r.l10n.hourAriaLabel});r.hourElement=t.getElementsByTagName("input")[0];var a=C("flatpickr-minute",{"aria-label":r.l10n.minuteAriaLabel});if(r.minuteElement=a.getElementsByTagName("input")[0],r.hourElement.tabIndex=r.minuteElement.tabIndex=-1,r.hourElement.value=S(r.latestSelectedDateObj?r.latestSelectedDateObj.getHours():r.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),r.minuteElement.value=S(r.latestSelectedDateObj?r.latestSelectedDateObj.getMinutes():e.minutes),r.hourElement.setAttribute("step",r.config.hourIncrement.toString()),r.minuteElement.setAttribute("step",r.config.minuteIncrement.toString()),r.hourElement.setAttribute("min",r.config.time_24hr?"0":"1"),r.hourElement.setAttribute("max",r.config.time_24hr?"23":"12"),r.hourElement.setAttribute("maxlength","2"),r.minuteElement.setAttribute("min","0"),r.minuteElement.setAttribute("max","59"),r.minuteElement.setAttribute("maxlength","2"),r.timeContainer.appendChild(t),r.timeContainer.appendChild(n),r.timeContainer.appendChild(a),r.config.time_24hr&&r.timeContainer.classList.add("time24hr"),r.config.enableSeconds){r.timeContainer.classList.add("hasSeconds");var o=C("flatpickr-second");r.secondElement=o.getElementsByTagName("input")[0],r.secondElement.value=S(r.latestSelectedDateObj?r.latestSelectedDateObj.getSeconds():e.seconds),r.secondElement.setAttribute("step",r.minuteElement.getAttribute("step")),r.secondElement.setAttribute("min","0"),r.secondElement.setAttribute("max","59"),r.secondElement.setAttribute("maxlength","2"),r.timeContainer.appendChild(O("span","flatpickr-time-separator",":")),r.timeContainer.appendChild(o)}return r.config.time_24hr||(r.amPM=O("span","flatpickr-am-pm",r.l10n.amPM[D((r.latestSelectedDateObj?r.hourElement.value:r.config.defaultHour)>11)]),r.amPM.title=r.l10n.toggleTitle,r.amPM.tabIndex=-1,r.timeContainer.appendChild(r.amPM)),r.timeContainer}()),T(r.calendarContainer,"rangeMode","range"===r.config.mode),T(r.calendarContainer,"animate",!0===r.config.animate),T(r.calendarContainer,"multiMonth",r.config.showMonths>1),r.calendarContainer.appendChild(e);var o=void 0!==r.config.appendTo&&void 0!==r.config.appendTo.nodeType;if((r.config.inline||r.config.static)&&(r.calendarContainer.classList.add(r.config.inline?"inline":"static"),r.config.inline&&(!o&&r.element.parentNode?r.element.parentNode.insertBefore(r.calendarContainer,r._input.nextSibling):void 0!==r.config.appendTo&&r.config.appendTo.appendChild(r.calendarContainer)),r.config.static)){var i=O("div","flatpickr-wrapper");r.element.parentNode&&r.element.parentNode.insertBefore(i,r.element),i.appendChild(r.element),r.altInput&&i.appendChild(r.altInput),i.appendChild(r.calendarContainer)}r.config.static||r.config.inline||(void 0!==r.config.appendTo?r.config.appendTo:window.document.body).appendChild(r.calendarContainer)}(),function(){if(r.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(r.element.querySelectorAll("[data-"+e+"]"),(function(n){return u(n,"click",r[e])}))})),r.isMobile)!function(){var e=r.config.enableTime?r.config.noCalendar?"time":"datetime-local":"date";r.mobileInput=O("input",r.input.className+" flatpickr-mobile"),r.mobileInput.tabIndex=1,r.mobileInput.type=e,r.mobileInput.disabled=r.input.disabled,r.mobileInput.required=r.input.required,r.mobileInput.placeholder=r.input.placeholder,r.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",r.selectedDates.length>0&&(r.mobileInput.defaultValue=r.mobileInput.value=r.formatDate(r.selectedDates[0],r.mobileFormatStr)),r.config.minDate&&(r.mobileInput.min=r.formatDate(r.config.minDate,"Y-m-d")),r.config.maxDate&&(r.mobileInput.max=r.formatDate(r.config.maxDate,"Y-m-d")),r.input.getAttribute("step")&&(r.mobileInput.step=String(r.input.getAttribute("step"))),r.input.type="hidden",void 0!==r.altInput&&(r.altInput.type="hidden");try{r.input.parentNode&&r.input.parentNode.insertBefore(r.mobileInput,r.input.nextSibling)}catch(e){}u(r.mobileInput,"change",(function(e){r.setDate(P(e).value,!1,r.mobileFormatStr),ve("onChange"),ve("onClose")}))}();else{var e=x(oe,50);if(r._debouncedChange=x(h,300),r.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&u(r.daysContainer,"mouseover",(function(e){"range"===r.config.mode&&ae(P(e))})),u(r._input,"keydown",te),void 0!==r.calendarContainer&&u(r.calendarContainer,"keydown",te),r.config.inline||r.config.static||u(window,"resize",e),void 0!==window.ontouchstart?u(window.document,"touchstart",$):u(window.document,"mousedown",$),u(window.document,"focus",$,{capture:!0}),!0===r.config.clickOpens&&(u(r._input,"focus",r.open),u(r._input,"click",r.open)),void 0!==r.daysContainer&&(u(r.monthNav,"click",Se),u(r.monthNav,["keyup","increment"],c),u(r.daysContainer,"click",he)),void 0!==r.timeContainer&&void 0!==r.minuteElement&&void 0!==r.hourElement){u(r.timeContainer,["increment"],i),u(r.timeContainer,"blur",i,{capture:!0}),u(r.timeContainer,"click",p),u([r.hourElement,r.minuteElement],["focus","click"],(function(e){return P(e).select()})),void 0!==r.secondElement&&u(r.secondElement,"focus",(function(){return r.secondElement&&r.secondElement.select()})),void 0!==r.amPM&&u(r.amPM,"click",(function(e){i(e)}))}r.config.allowInput&&u(r._input,"blur",re)}}(),(r.selectedDates.length||r.config.noCalendar)&&(r.config.enableTime&&s(r.config.noCalendar?r.latestSelectedDateObj:void 0),Me(!1)),o();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!r.isMobile&&t&&le(),ve("onReady")}(),r}function U(e,n){for(var r=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),t=[],a=0;a<r.length;a++){var o=r[a];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=G(o,n||{}),t.push(o._flatpickr)}catch(e){console.error(e)}}return 1===t.length?t[0]:t}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return U(this,e)},HTMLElement.prototype.flatpickr=function(e){return U([this],e)});var q=function(e,n){return"string"==typeof e?U(window.document.querySelectorAll(e),n):e instanceof Node?U([e],n):U(e,n)};q.defaultConfig={},q.l10ns={en:H({},M),default:H({},M)},q.localize=function(e){q.l10ns.default=H(H({},q.l10ns.default),e)},q.setDefaults=function(e){q.defaultConfig=H(H({},q.defaultConfig),e)},q.parseDate=R({}),q.formatDate=I({}),q.compareDates=_,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return U(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=q);const V=i(a((function(e,n){!function(e){
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare type DateType = 'datetime' | 'date' | 'time' | 'week' | 'month' | 'quarter' | 'year';
|
|
2
|
-
export declare type Languages = 'da' | 'en' | 'fi' | 'nb' | 'no' | 'nl' | 'sv';
|
|
2
|
+
export declare type Languages = 'da' | 'de' | 'en' | 'fi' | 'fr' | 'nb' | 'no' | 'nl' | 'sv';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import 'moment/locale/da';
|
|
2
|
+
import 'moment/locale/de';
|
|
2
3
|
import 'moment/locale/fi';
|
|
3
|
-
import 'moment/locale/nb';
|
|
4
|
-
import 'moment/locale/sv';
|
|
5
4
|
import 'moment/locale/fr';
|
|
5
|
+
import 'moment/locale/nb';
|
|
6
6
|
import 'moment/locale/nl';
|
|
7
|
+
import 'moment/locale/sv';
|
|
7
8
|
import { DateType } from './date.types';
|
|
8
9
|
export declare class DateFormatter {
|
|
9
10
|
private language;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import flatpickr from 'flatpickr';
|
|
2
2
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
3
3
|
import 'moment/locale/da';
|
|
4
|
+
import 'moment/locale/de';
|
|
4
5
|
import 'moment/locale/fi';
|
|
6
|
+
import 'moment/locale/fr';
|
|
5
7
|
import 'moment/locale/nb';
|
|
8
|
+
import 'moment/locale/nl';
|
|
6
9
|
import 'moment/locale/sv';
|
|
7
10
|
export declare abstract class Picker {
|
|
8
11
|
protected change: EventEmitter<Date>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "36.3.0-next.
|
|
3
|
+
"version": "36.3.0-next.15",
|
|
4
4
|
"description": "Lime Elements",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"codemirror": "^5.65.9",
|
|
60
60
|
"cross-env": "^7.0.3",
|
|
61
61
|
"cz-conventional-changelog": "^3.3.0",
|
|
62
|
-
"dayjs": "^1.11.
|
|
63
|
-
"eslint": "^8.
|
|
64
|
-
"eslint-config-prettier": "^8.
|
|
62
|
+
"dayjs": "^1.11.7",
|
|
63
|
+
"eslint": "^8.33.0",
|
|
64
|
+
"eslint-config-prettier": "^8.6.0",
|
|
65
65
|
"eslint-plugin-ban": "^1.6.0",
|
|
66
|
-
"eslint-plugin-jsdoc": "^39.7.
|
|
66
|
+
"eslint-plugin-jsdoc": "^39.7.5",
|
|
67
67
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
68
68
|
"eslint-plugin-prettier": "^4.2.1",
|
|
69
|
-
"eslint-plugin-react": "^7.32.
|
|
69
|
+
"eslint-plugin-react": "^7.32.2",
|
|
70
70
|
"eslint-plugin-sonarjs": "^0.16.0",
|
|
71
71
|
"flatpickr": "^4.6.13",
|
|
72
72
|
"html-escaper": "^3.0.3",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"showdown": "2.1.0",
|
|
90
90
|
"shx": "^0.3.3",
|
|
91
91
|
"tabulator-tables": "^4.9.3",
|
|
92
|
-
"typescript": "^4.9.
|
|
92
|
+
"typescript": "^4.9.5"
|
|
93
93
|
},
|
|
94
94
|
"keywords": [
|
|
95
95
|
"lime elements",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as o,H as r}from"./p-d4e788e1.js";const i=class{constructor(r){e(this,r),this.select=t(this,"select",7),this.renderMenu=()=>{if(this.items.length)return o("limel-menu",{class:{primary:this.primary},disabled:this.disabled,items:this.items,openDirection:"bottom"},o("button",{class:"menu-trigger",slot:"trigger",disabled:this.disabled},"⋮"))},this.label=void 0,this.primary=!1,this.icon=void 0,this.disabled=!1,this.items=[]}render(){return o(r,{class:{"has-menu":!!this.items.length}},o("limel-button",{label:this.label,primary:this.primary,icon:this.icon,disabled:this.disabled}),this.renderMenu())}};i.style=':host(limel-split-button.has-menu){--button-padding-right:2rem}:host(limel-split-button){display:inline-flex;isolation:isolate}:host(limel-split-button) *{box-sizing:border-box}limel-button{width:100%}limel-menu{display:flex;justify-content:flex-end;position:relative;z-index:1;padding:0.125rem;margin-left:calc(var(--button-padding-right) * -1);width:var(--button-padding-right)}limel-menu:before{transition:background-color 0.5s ease;content:"";position:absolute;inset:0.375rem auto 0.375rem 0.6875rem;width:1px;background-color:currentColor;opacity:0.2}limel-menu:not([disabled]){color:var(--mdc-theme-primary, rgb(var(--color-teal-default)))}limel-menu:not([disabled]).primary{color:var(--mdc-theme-on-primary, rgb(var(--color-white)))}limel-menu[disabled]{color:rgba(var(--contrast-1600), 0.37)}limel-menu:hover:before,limel-menu:focus-within:before{background-color:transparent}.menu-trigger{all:unset;text-align:center;font-weight:bold;border-radius:0.125rem;height:100%;width:1rem}.menu-trigger:not(:disabled){transition:color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;color:var(--mdc-theme-on-surface);background-color:transparent;cursor:pointer}.menu-trigger:not(:disabled):hover{color:var(--mdc-theme-on-surface);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}.menu-trigger:not(:disabled):active{box-shadow:var(--button-shadow-pressed);transform:translate3d(0, 0.08rem, 0)}.menu-trigger:not(:disabled):focus{outline:none}.menu-trigger:not(:disabled):focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.menu-trigger:not(:disabled):focus-visible,.menu-trigger:not(:disabled):hover{background-color:rgb(var(--color-white), 0.1)}.menu-trigger:before{content:"";position:absolute;inset:-0.25rem;z-index:-1}';export{i as limel_split_button}
|