From 8ea405fdbcd7f17cddd51cd64960b25379e45954 Mon Sep 17 00:00:00 2001 From: Iosif Chatzimichail Date: Sun, 3 Nov 2024 14:48:00 +0200 Subject: [PATCH] Correct import --- resources/build/assets/app-CuwAdnd6.js | 5 ----- resources/build/assets/app-QPD58V34.js | 5 +++++ resources/build/manifest.json | 2 +- resources/js/app.js | 3 ++- 4 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 resources/build/assets/app-CuwAdnd6.js create mode 100644 resources/build/assets/app-QPD58V34.js diff --git a/resources/build/assets/app-CuwAdnd6.js b/resources/build/assets/app-CuwAdnd6.js deleted file mode 100644 index 4c595fa..0000000 --- a/resources/build/assets/app-CuwAdnd6.js +++ /dev/null @@ -1,5 +0,0 @@ -var xe=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],$={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,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(a){return typeof console<"u"&&console.warn(a)},getWeek:function(a){var r=new Date(a.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var e=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},te={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(a){var r=a%100;if(r>3&&r<21)return"th";switch(r%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(a,r){return r===void 0&&(r=2),("000"+a).slice(r*-1)},F=function(a){return a===!0?1:0};function Be(a,r){var e;return function(){var m=this,h=arguments;clearTimeout(e),e=setTimeout(function(){return a.apply(m,h)},r)}}var Ee=function(a){return a instanceof Array?a:[a]};function I(a,r,e){if(e===!0)return a.classList.add(r);a.classList.remove(r)}function v(a,r,e){var m=window.document.createElement(a);return r=r||"",e=e||"",m.className=r,e!==void 0&&(m.textContent=e),m}function se(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function Ue(a,r){if(r(a))return a;if(a.parentNode)return Ue(a.parentNode,r)}function de(a,r){var e=v("div","numInputWrapper"),m=v("input","numInput "+a),h=v("span","arrowUp"),g=v("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?m.type="number":(m.type="text",m.pattern="\\d*"),r!==void 0)for(var w in r)m.setAttribute(w,r[w]);return e.appendChild(m),e.appendChild(h),e.appendChild(g),e}function _(a){try{if(typeof a.composedPath=="function"){var r=a.composedPath();return r[0]}return a.target}catch{return a.target}}var ke=function(){},ge=function(a,r,e){return e.months[r?"shorthand":"longhand"][a]},In={D:ke,F:function(a,r,e){a.setMonth(e.months.longhand.indexOf(r))},G:function(a,r){a.setHours((a.getHours()>=12?12:0)+parseFloat(r))},H:function(a,r){a.setHours(parseFloat(r))},J:function(a,r){a.setDate(parseFloat(r))},K:function(a,r,e){a.setHours(a.getHours()%12+12*F(new RegExp(e.amPM[1],"i").test(r)))},M:function(a,r,e){a.setMonth(e.months.shorthand.indexOf(r))},S:function(a,r){a.setSeconds(parseFloat(r))},U:function(a,r){return new Date(parseFloat(r)*1e3)},W:function(a,r,e){var m=parseInt(r),h=new Date(a.getFullYear(),0,2+(m-1)*7,0,0,0,0);return h.setDate(h.getDate()-h.getDay()+e.firstDayOfWeek),h},Y:function(a,r){a.setFullYear(parseFloat(r))},Z:function(a,r){return new Date(r)},d:function(a,r){a.setDate(parseFloat(r))},h:function(a,r){a.setHours((a.getHours()>=12?12:0)+parseFloat(r))},i:function(a,r){a.setMinutes(parseFloat(r))},j:function(a,r){a.setDate(parseFloat(r))},l:ke,m:function(a,r){a.setMonth(parseFloat(r)-1)},n:function(a,r){a.setMonth(parseFloat(r)-1)},s:function(a,r){a.setSeconds(parseFloat(r))},u:function(a,r){return new Date(parseFloat(r))},w:ke,y:function(a,r){a.setFullYear(2e3+parseFloat(r))}},K={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})"},ne={Z:function(a){return a.toISOString()},D:function(a,r,e){return r.weekdays.shorthand[ne.w(a,r,e)]},F:function(a,r,e){return ge(ne.n(a,r,e)-1,!1,r)},G:function(a,r,e){return S(ne.h(a,r,e))},H:function(a){return S(a.getHours())},J:function(a,r){return r.ordinal!==void 0?a.getDate()+r.ordinal(a.getDate()):a.getDate()},K:function(a,r){return r.amPM[F(a.getHours()>11)]},M:function(a,r){return ge(a.getMonth(),!0,r)},S:function(a){return S(a.getSeconds())},U:function(a){return a.getTime()/1e3},W:function(a,r,e){return e.getWeek(a)},Y:function(a){return S(a.getFullYear(),4)},d:function(a){return S(a.getDate())},h:function(a){return a.getHours()%12?a.getHours()%12:12},i:function(a){return S(a.getMinutes())},j:function(a){return a.getDate()},l:function(a,r){return r.weekdays.longhand[a.getDay()]},m:function(a){return S(a.getMonth()+1)},n:function(a){return a.getMonth()+1},s:function(a){return a.getSeconds()},u:function(a){return a.getTime()},w:function(a){return a.getDay()},y:function(a){return String(a.getFullYear()).substring(2)}},qe=function(a){var r=a.config,e=r===void 0?$:r,m=a.l10n,h=m===void 0?te:m,g=a.isMobile,w=g===void 0?!1:g;return function(x,E,Z){var C=Z||h;return e.formatDate!==void 0&&!w?e.formatDate(x,E,C):E.split("").map(function(A,N,P){return ne[A]&&P[N-1]!=="\\"?ne[A](x,C,e):A!=="\\"?A:""}).join("")}},Te=function(a){var r=a.config,e=r===void 0?$:r,m=a.l10n,h=m===void 0?te:m;return function(g,w,x,E){if(!(g!==0&&!g)){var Z=E||h,C,A=g;if(g instanceof Date)C=new Date(g.getTime());else if(typeof g!="string"&&g.toFixed!==void 0)C=new Date(g);else if(typeof g=="string"){var N=w||(e||$).dateFormat,P=String(g).trim();if(P==="today")C=new Date,x=!0;else if(e&&e.parseDate)C=e.parseDate(g,N);else if(/Z$/.test(P)||/GMT$/.test(P))C=new Date(g);else{for(var ae=void 0,D=[],j=0,me=0,L="";jMath.min(r,e)&&a=0?new Date:new Date(e.config.minDate.getTime()),i=Se(e.config);t.setHours(i.hours,i.minutes,i.seconds,t.getMilliseconds()),e.selectedDates=[t],e.latestSelectedDateObj=t}n!==void 0&&n.type!=="blur"&&vn(n);var o=e._input.value;A(),H(),e._input.value!==o&&e._debouncedChange()}function Z(n,t){return n%12+12*F(t===e.l10n.amPM[1])}function C(n){switch(n%24){case 0:case 12:return 12;default:return n%12}}function A(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var n=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(e.minuteElement.value,10)||0)%60,i=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(n=Z(n,e.amPM.textContent));var o=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&O(e.latestSelectedDateObj,e.config.minDate,!0)===0,l=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&O(e.latestSelectedDateObj,e.config.maxDate,!0)===0;if(e.config.maxTime!==void 0&&e.config.minTime!==void 0&&e.config.minTime>e.config.maxTime){var f=Ie(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),d=Ie(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),c=Ie(n,t,i);if(c>d&&c=12)]),e.secondElement!==void 0&&(e.secondElement.value=S(i)))}function ae(n){var t=_(n),i=parseInt(t.value)+(n.delta||0);(i/1e3>1||n.key==="Enter"&&!/[^\d]/.test(i.toString()))&&re(i)}function D(n,t,i,o){if(t instanceof Array)return t.forEach(function(l){return D(n,l,i,o)});if(n instanceof Array)return n.forEach(function(l){return D(l,t,i,o)});n.addEventListener(t,i,o),e._handlers.push({remove:function(){return n.removeEventListener(t,i,o)}})}function j(){M("onChange")}function me(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(i){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+i+"]"),function(o){return D(o,"click",e[i])})}),e.isMobile){gn();return}var n=Be(an,50);if(e._debouncedChange=Be(j,On),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&D(e.daysContainer,"mouseover",function(i){e.config.mode==="range"&&le(_(i))}),D(e._input,"keydown",Ae),e.calendarContainer!==void 0&&D(e.calendarContainer,"keydown",Ae),!e.config.inline&&!e.config.static&&D(window,"resize",n),window.ontouchstart!==void 0?D(window.document,"touchstart",De):D(window.document,"mousedown",De),D(window.document,"focus",De,{capture:!0}),e.config.clickOpens===!0&&(D(e._input,"focus",e.open),D(e._input,"click",e.open)),e.daysContainer!==void 0&&(D(e.monthNav,"click",hn),D(e.monthNav,["keyup","increment"],ae),D(e.daysContainer,"click",Le)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var t=function(i){return _(i).select()};D(e.timeContainer,["increment"],E),D(e.timeContainer,"blur",E,{capture:!0}),D(e.timeContainer,"click",R),D([e.hourElement,e.minuteElement],["focus","click"],t),e.secondElement!==void 0&&D(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&D(e.amPM,"click",function(i){E(i)})}e.config.allowInput&&D(e._input,"blur",tn)}function L(n,t){var i=n!==void 0?e.parseDate(n):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate1),e.calendarContainer.appendChild(n);var l=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!l&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){var f=v("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(f,e.element),f.appendChild(e.element),e.altInput&&f.appendChild(e.altInput),f.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function W(n,t,i,o){var l=B(t,!0),f=v("span",n,t.getDate().toString());return f.dateObj=t,f.$i=o,f.setAttribute("aria-label",e.formatDate(t,e.config.ariaDateFormat)),n.indexOf("hidden")===-1&&O(t,e.now)===0&&(e.todayDateElem=f,f.classList.add("today"),f.setAttribute("aria-current","date")),l?(f.tabIndex=-1,we(t)&&(f.classList.add("selected"),e.selectedDateElem=f,e.config.mode==="range"&&(I(f,"startRange",e.selectedDates[0]&&O(t,e.selectedDates[0],!0)===0),I(f,"endRange",e.selectedDates[1]&&O(t,e.selectedDates[1],!0)===0),n==="nextMonthDay"&&f.classList.add("inRange")))):f.classList.add("flatpickr-disabled"),e.config.mode==="range"&&pn(t)&&!we(t)&&f.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&n!=="prevMonthDay"&&o%7===6&&e.weekNumbers.insertAdjacentHTML("beforeend",""+e.config.getWeek(t)+""),M("onDayCreate",f),f}function J(n){n.focus(),e.config.mode==="range"&&le(n)}function U(n){for(var t=n>0?0:e.config.showMonths-1,i=n>0?e.config.showMonths:-1,o=t;o!=i;o+=n)for(var l=e.daysContainer.children[o],f=n>0?0:l.children.length-1,d=n>0?l.children.length:-1,c=f;c!=d;c+=n){var p=l.children[c];if(p.className.indexOf("hidden")===-1&&B(p.dateObj))return p}}function he(n,t){for(var i=n.className.indexOf("Month")===-1?n.dateObj.getMonth():e.currentMonth,o=t>0?e.config.showMonths:-1,l=t>0?1:-1,f=i-e.currentMonth;f!=o;f+=l)for(var d=e.daysContainer.children[f],c=i-e.currentMonth===f?n.$i+t:t<0?d.children.length-1:0,p=d.children.length,u=c;u>=0&&u0?p:-1);u+=l){var s=d.children[u];if(s.className.indexOf("hidden")===-1&&B(s.dateObj)&&Math.abs(n.$i-u)>=Math.abs(t))return J(s)}e.changeMonth(l),Q(U(l),0)}function Q(n,t){var i=g(),o=oe(i||document.body),l=n!==void 0?n:o?i:e.selectedDateElem!==void 0&&oe(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&oe(e.todayDateElem)?e.todayDateElem:U(t>0?1:-1);l===void 0?e._input.focus():o?he(l,t):J(l)}function ze(n,t){for(var i=(new Date(n,t,1).getDay()-e.l10n.firstDayOfWeek+7)%7,o=e.utils.getDaysInMonth((t-1+12)%12,n),l=e.utils.getDaysInMonth(t,n),f=window.document.createDocumentFragment(),d=e.config.showMonths>1,c=d?"prevMonthDay hidden":"prevMonthDay",p=d?"nextMonthDay hidden":"nextMonthDay",u=o+1-i,s=0;u<=o;u++,s++)f.appendChild(W("flatpickr-day "+c,new Date(n,t-1,u),u,s));for(u=1;u<=l;u++,s++)f.appendChild(W("flatpickr-day",new Date(n,t,u),u,s));for(var b=l+1;b<=42-i&&(e.config.showMonths===1||s%7!==0);b++,s++)f.appendChild(W("flatpickr-day "+p,new Date(n,t+1,b%l),b,s));var Y=v("div","dayContainer");return Y.appendChild(f),Y}function ie(){if(e.daysContainer!==void 0){se(e.daysContainer),e.weekNumbers&&se(e.weekNumbers);for(var n=document.createDocumentFragment(),t=0;t1||e.config.monthSelectorType!=="dropdown")){var n=function(o){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&oe.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(n(t)){var i=v("option","flatpickr-monthDropdown-month");i.value=new Date(e.currentYear,t).getMonth().toString(),i.textContent=ge(t,e.config.shorthandCurrentMonth,e.l10n),i.tabIndex=-1,e.currentMonth===t&&(i.selected=!0),e.monthsDropdownContainer.appendChild(i)}}}function $e(){var n=v("div","flatpickr-month"),t=window.document.createDocumentFragment(),i;e.config.showMonths>1||e.config.monthSelectorType==="static"?i=v("span","cur-month"):(e.monthsDropdownContainer=v("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),D(e.monthsDropdownContainer,"change",function(d){var c=_(d),p=parseInt(c.value,10);e.changeMonth(p-e.currentMonth),M("onMonthChange")}),q(),i=e.monthsDropdownContainer);var o=de("cur-year",{tabindex:"-1"}),l=o.getElementsByTagName("input")[0];l.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&l.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(l.setAttribute("max",e.config.maxDate.getFullYear().toString()),l.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());var f=v("div","flatpickr-current-month");return f.appendChild(i),f.appendChild(o),t.appendChild(f),n.appendChild(t),{container:n,yearElement:l,monthElement:i}}function _e(){se(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var n=e.config.showMonths;n--;){var t=$e();e.yearElements.push(t.yearElement),e.monthElements.push(t.monthElement),e.monthNav.appendChild(t.container)}e.monthNav.appendChild(e.nextMonthNav)}function Ge(){return e.monthNav=v("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=v("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=v("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,_e(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(n){e.__hidePrevMonthArrow!==n&&(I(e.prevMonthNav,"flatpickr-disabled",n),e.__hidePrevMonthArrow=n)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(n){e.__hideNextMonthArrow!==n&&(I(e.nextMonthNav,"flatpickr-disabled",n),e.__hideNextMonthArrow=n)}}),e.currentYearElement=e.yearElements[0],ce(),e.monthNav}function Ze(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var n=Se(e.config);e.timeContainer=v("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var t=v("span","flatpickr-time-separator",":"),i=de("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=i.getElementsByTagName("input")[0];var o=de("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=o.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=S(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?n.hours:C(n.hours)),e.minuteElement.value=S(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():n.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(i),e.timeContainer.appendChild(t),e.timeContainer.appendChild(o),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");var l=de("flatpickr-second");e.secondElement=l.getElementsByTagName("input")[0],e.secondElement.value=S(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():n.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(v("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(l)}return e.config.time_24hr||(e.amPM=v("span","flatpickr-am-pm",e.l10n.amPM[F((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function Oe(){e.weekdayContainer?se(e.weekdayContainer):e.weekdayContainer=v("div","flatpickr-weekdays");for(var n=e.config.showMonths;n--;){var t=v("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(t)}return Fe(),e.weekdayContainer}function Fe(){if(e.weekdayContainer){var n=e.l10n.firstDayOfWeek,t=Ke(e.l10n.weekdays.shorthand);n>0&&n - `+t.join("")+` - - `}}function Qe(){e.calendarContainer.classList.add("hasWeeks");var n=v("div","flatpickr-weekwrapper");n.appendChild(v("span","flatpickr-weekday",e.l10n.weekAbbreviation));var t=v("div","flatpickr-weeks");return n.appendChild(t),{weekWrapper:n,weekNumbers:t}}function ve(n,t){t===void 0&&(t=!0);var i=t?n:n-e.currentMonth;i<0&&e._hidePrevMonthArrow===!0||i>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=i,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,M("onYearChange"),q()),ie(),M("onMonthChange"),ce())}function Xe(n,t){if(n===void 0&&(n=!0),t===void 0&&(t=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,t===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var i=Se(e.config),o=i.hours,l=i.minutes,f=i.seconds;P(o,l,f)}e.redraw(),n&&M("onChange")}function en(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),M("onClose")}function nn(){e.config!==void 0&&M("onDestroy");for(var n=e._handlers.length;n--;)e._handlers[n].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){var t=e.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.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(i){try{delete e[i]}catch{}})}function X(n){return e.calendarContainer.contains(n)}function De(n){if(e.isOpen&&!e.config.inline){var t=_(n),i=X(t),o=t===e.input||t===e.altInput||e.element.contains(t)||n.path&&n.path.indexOf&&(~n.path.indexOf(e.input)||~n.path.indexOf(e.altInput)),l=!o&&!i&&!X(n.relatedTarget),f=!e.config.ignoredFocusElements.some(function(d){return d.contains(t)});l&&f&&(e.config.allowInput&&e.setDate(e._input.value,!1,e.config.altInput?e.config.altFormat:e.config.dateFormat),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&E(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}function re(n){if(!(!n||e.config.minDate&&ne.config.maxDate.getFullYear())){var t=n,i=e.currentYear!==t;e.currentYear=t||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),i&&(e.redraw(),M("onYearChange"),q())}}function B(n,t){var i;t===void 0&&(t=!0);var o=e.parseDate(n,void 0,t);if(e.config.minDate&&o&&O(o,e.config.minDate,t!==void 0?t:!e.minDateHasTime)<0||e.config.maxDate&&o&&O(o,e.config.maxDate,t!==void 0?t:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(o===void 0)return!1;for(var l=!!e.config.enable,f=(i=e.config.enable)!==null&&i!==void 0?i:e.config.disable,d=0,c=void 0;d=c.from.getTime()&&o.getTime()<=c.to.getTime())return l}return!l}function oe(n){return e.daysContainer!==void 0?n.className.indexOf("hidden")===-1&&n.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(n):!1}function tn(n){var t=n.target===e._input,i=e._input.value.trimEnd()!==Ce();t&&i&&!(n.relatedTarget&&X(n.relatedTarget))&&e.setDate(e._input.value,!0,n.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Ae(n){var t=_(n),i=e.config.wrap?a.contains(t):t===e._input,o=e.config.allowInput,l=e.isOpen&&(!o||!i),f=e.config.inline&&i&&!o;if(n.keyCode===13&&i){if(o)return e.setDate(e._input.value,!0,t===e.altInput?e.config.altFormat:e.config.dateFormat),e.close(),t.blur();e.open()}else if(X(t)||l||f){var d=!!e.timeContainer&&e.timeContainer.contains(t);switch(n.keyCode){case 13:d?(n.preventDefault(),E(),be()):Le(n);break;case 27:n.preventDefault(),be();break;case 8:case 46:i&&!e.config.allowInput&&(n.preventDefault(),e.clear());break;case 37:case 39:if(!d&&!i){n.preventDefault();var c=g();if(e.daysContainer!==void 0&&(o===!1||c&&oe(c))){var p=n.keyCode===39?1:-1;n.ctrlKey?(n.stopPropagation(),ve(p),Q(U(1),0)):Q(void 0,p)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:n.preventDefault();var u=n.keyCode===40?1:-1;e.daysContainer&&t.$i!==void 0||t===e.input||t===e.altInput?n.ctrlKey?(n.stopPropagation(),re(e.currentYear-u),Q(U(1),0)):d||Q(void 0,u*7):t===e.currentYearElement?re(e.currentYear-u):e.config.enableTime&&(!d&&e.hourElement&&e.hourElement.focus(),E(n),e._debouncedChange());break;case 9:if(d){var s=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(T){return T}),b=s.indexOf(t);if(b!==-1){var Y=s[b+(n.shiftKey?-1:1)];n.preventDefault(),(Y||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(t)&&n.shiftKey&&(n.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&t===e.amPM)switch(n.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],A(),H();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],A(),H();break}(i||X(t))&&M("onKeyDown",n)}function le(n,t){if(t===void 0&&(t="flatpickr-day"),!(e.selectedDates.length!==1||n&&(!n.classList.contains(t)||n.classList.contains("flatpickr-disabled")))){for(var i=n?n.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),o=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),l=Math.min(i,e.selectedDates[0].getTime()),f=Math.max(i,e.selectedDates[0].getTime()),d=!1,c=0,p=0,u=l;ul&&uc)?c=u:u>o&&(!p||u ."+t));s.forEach(function(b){var Y=b.dateObj,T=Y.getTime(),ee=c>0&&T0&&T>p;if(ee){b.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(z){b.classList.remove(z)});return}else if(d&&!ee)return;["startRange","inRange","endRange","notAllowed"].forEach(function(z){b.classList.remove(z)}),n!==void 0&&(n.classList.add(i<=e.selectedDates[0].getTime()?"startRange":"endRange"),oi&&T===o&&b.classList.add("endRange"),T>=c&&(p===0||T<=p)&&Sn(T,o,i)&&b.classList.add("inRange"))})}}function an(){e.isOpen&&!e.config.static&&!e.config.inline&&fe()}function rn(n,t){if(t===void 0&&(t=e._positionElement),e.isMobile===!0){if(n){n.preventDefault();var i=_(n);i&&i.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),M("onOpen");return}else if(e._input.disabled||e.config.inline)return;var o=e.isOpen;e.isOpen=!0,o||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),M("onOpen"),fe(t)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(n===void 0||!e.timeContainer.contains(n.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}function Ne(n){return function(t){var i=e.config["_"+n+"Date"]=e.parseDate(t,e.config.dateFormat),o=e.config["_"+(n==="min"?"max":"min")+"Date"];i!==void 0&&(e[n==="min"?"minDateHasTime":"maxDateHasTime"]=i.getHours()>0||i.getMinutes()>0||i.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(function(l){return B(l)}),!e.selectedDates.length&&n==="min"&&N(i),H()),e.daysContainer&&(He(),i!==void 0?e.currentYearElement[n]=i.getFullYear().toString():e.currentYearElement.removeAttribute(n),e.currentYearElement.disabled=!!o&&i!==void 0&&o.getFullYear()===i.getFullYear())}}function on(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=k(k({},JSON.parse(JSON.stringify(a.dataset||{}))),r),i={};e.config.parseDate=t.parseDate,e.config.formatDate=t.formatDate,Object.defineProperty(e.config,"enable",{get:function(){return e.config._enable},set:function(s){e.config._enable=Re(s)}}),Object.defineProperty(e.config,"disable",{get:function(){return e.config._disable},set:function(s){e.config._disable=Re(s)}});var o=t.mode==="time";if(!t.dateFormat&&(t.enableTime||o)){var l=y.defaultConfig.dateFormat||$.dateFormat;i.dateFormat=t.noCalendar||o?"H:i"+(t.enableSeconds?":S":""):l+" H:i"+(t.enableSeconds?":S":"")}if(t.altInput&&(t.enableTime||o)&&!t.altFormat){var f=y.defaultConfig.altFormat||$.altFormat;i.altFormat=t.noCalendar||o?"h:i"+(t.enableSeconds?":S K":" K"):f+(" h:i"+(t.enableSeconds?":S":"")+" K")}Object.defineProperty(e.config,"minDate",{get:function(){return e.config._minDate},set:Ne("min")}),Object.defineProperty(e.config,"maxDate",{get:function(){return e.config._maxDate},set:Ne("max")});var d=function(s){return function(b){e.config[s==="min"?"_minTime":"_maxTime"]=e.parseDate(b,"H:i:S")}};Object.defineProperty(e.config,"minTime",{get:function(){return e.config._minTime},set:d("min")}),Object.defineProperty(e.config,"maxTime",{get:function(){return e.config._maxTime},set:d("max")}),t.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,i,t);for(var c=0;c-1?e.config[u]=Ee(p[u]).map(w).concat(e.config[u]):typeof t[u]>"u"&&(e.config[u]=p[u])}t.altInputClass||(e.config.altInputClass=Ye().className+" "+e.config.altInputClass),M("onParseConfig")}function Ye(){return e.config.wrap?a.querySelector("[data-input]"):a}function Pe(){typeof e.config.locale!="object"&&typeof y.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=k(k({},y.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?y.l10ns[e.config.locale]:void 0),K.D="("+e.l10n.weekdays.shorthand.join("|")+")",K.l="("+e.l10n.weekdays.longhand.join("|")+")",K.M="("+e.l10n.months.shorthand.join("|")+")",K.F="("+e.l10n.months.longhand.join("|")+")",K.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var n=k(k({},r),JSON.parse(JSON.stringify(a.dataset||{})));n.time_24hr===void 0&&y.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=qe(e),e.parseDate=Te({config:e.config,l10n:e.l10n})}function fe(n){if(typeof e.config.position=="function")return void e.config.position(e,n);if(e.calendarContainer!==void 0){M("onPreCalendarPosition");var t=n||e._positionElement,i=Array.prototype.reduce.call(e.calendarContainer.children,function(En,kn){return En+kn.offsetHeight},0),o=e.calendarContainer.offsetWidth,l=e.config.position.split(" "),f=l[0],d=l.length>1?l[1]:null,c=t.getBoundingClientRect(),p=window.innerHeight-c.bottom,u=f==="above"||f!=="below"&&pi,s=window.pageYOffset+c.top+(u?-i-2:t.offsetHeight+2);if(I(e.calendarContainer,"arrowTop",!u),I(e.calendarContainer,"arrowBottom",u),!e.config.inline){var b=window.pageXOffset+c.left,Y=!1,T=!1;d==="center"?(b-=(o-c.width)/2,Y=!0):d==="right"&&(b-=o-c.width,T=!0),I(e.calendarContainer,"arrowLeft",!Y&&!T),I(e.calendarContainer,"arrowCenter",Y),I(e.calendarContainer,"arrowRight",T);var ee=window.document.body.offsetWidth-(window.pageXOffset+c.right),z=b+o>window.document.body.offsetWidth,Dn=ee+o>window.document.body.offsetWidth;if(I(e.calendarContainer,"rightMost",z),!e.config.static)if(e.calendarContainer.style.top=s+"px",!z)e.calendarContainer.style.left=b+"px",e.calendarContainer.style.right="auto";else if(!Dn)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=ee+"px";else{var ye=ln();if(ye===void 0)return;var bn=window.document.body.offsetWidth,Mn=Math.max(0,bn/2-o/2),wn=".flatpickr-calendar.centerMost:before",Cn=".flatpickr-calendar.centerMost:after",yn=ye.cssRules.length,xn="{left:"+c.left+"px;right:auto;}";I(e.calendarContainer,"rightMost",!1),I(e.calendarContainer,"centerMost",!0),ye.insertRule(wn+","+Cn+xn,yn),e.calendarContainer.style.left=Mn+"px",e.calendarContainer.style.right="auto"}}}}function ln(){for(var n=null,t=0;te.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=o,e.config.mode==="single")e.selectedDates=[l];else if(e.config.mode==="multiple"){var d=we(l);d?e.selectedDates.splice(parseInt(d),1):e.selectedDates.push(l)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=l,e.selectedDates.push(l),O(l,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(s,b){return s.getTime()-b.getTime()}));if(A(),f){var c=e.currentYear!==l.getFullYear();e.currentYear=l.getFullYear(),e.currentMonth=l.getMonth(),c&&(M("onYearChange"),q()),M("onMonthChange")}if(ce(),ie(),H(),!f&&e.config.mode!=="range"&&e.config.showMonths===1?J(o):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){var p=e.config.mode==="single"&&!e.config.enableTime,u=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(p||u)&&be()}j()}}var ue={locale:[Pe,Fe],showMonths:[_e,x,Oe],minDate:[L],maxDate:[L],positionElement:[We],clickOpens:[function(){e.config.clickOpens===!0?(D(e._input,"focus",e.open),D(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function un(n,t){if(n!==null&&typeof n=="object"){Object.assign(e.config,n);for(var i in n)ue[i]!==void 0&&ue[i].forEach(function(o){return o()})}else e.config[n]=t,ue[n]!==void 0?ue[n].forEach(function(o){return o()}):xe.indexOf(n)>-1&&(e.config[n]=Ee(t));e.redraw(),H(!0)}function je(n,t){var i=[];if(n instanceof Array)i=n.map(function(o){return e.parseDate(o,t)});else if(n instanceof Date||typeof n=="number")i=[e.parseDate(n,t)];else if(typeof n=="string")switch(e.config.mode){case"single":case"time":i=[e.parseDate(n,t)];break;case"multiple":i=n.split(e.config.conjunction).map(function(o){return e.parseDate(o,t)});break;case"range":i=n.split(e.l10n.rangeSeparator).map(function(o){return e.parseDate(o,t)});break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(n)));e.selectedDates=e.config.allowInvalidPreload?i:i.filter(function(o){return o instanceof Date&&B(o,!1)}),e.config.mode==="range"&&e.selectedDates.sort(function(o,l){return o.getTime()-l.getTime()})}function cn(n,t,i){if(t===void 0&&(t=!1),i===void 0&&(i=e.config.dateFormat),n!==0&&!n||n instanceof Array&&n.length===0)return e.clear(t);je(n,i),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),L(void 0,t),N(),e.selectedDates.length===0&&e.clear(!1),H(t),t&&M("onChange")}function Re(n){return n.slice().map(function(t){return typeof t=="string"||typeof t=="number"||t instanceof Date?e.parseDate(t,void 0,!0):t&&typeof t=="object"&&t.from&&t.to?{from:e.parseDate(t.from,void 0),to:e.parseDate(t.to,void 0)}:t}).filter(function(t){return t})}function sn(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;var n=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);n&&je(n,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function dn(){if(e.input=Ye(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=v(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),We()}function We(){e._positionElement=e.config.positionElement||e._input}function gn(){var n=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=v("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=n,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=n==="datetime-local"?"Y-m-d\\TH:i:S":n==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}D(e.mobileInput,"change",function(t){e.setDate(_(t).value,!1,e.mobileFormatStr),M("onChange"),M("onClose")})}function mn(n){if(e.isOpen===!0)return e.close();e.open(n)}function M(n,t){if(e.config!==void 0){var i=e.config[n];if(i!==void 0&&i.length>0)for(var o=0;i[o]&&o=0&&O(n,e.selectedDates[1])<=0}function ce(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(n,t){var i=new Date(e.currentYear,e.currentMonth,1);i.setMonth(e.currentMonth+t),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[t].textContent=ge(i.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=i.getMonth().toString(),n.value=i.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYeare.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function Ce(n){var t=n||(e.config.altInput?e.config.altFormat:e.config.dateFormat);return e.selectedDates.map(function(i){return e.formatDate(i,t)}).filter(function(i,o,l){return e.config.mode!=="range"||e.config.enableTime||l.indexOf(i)===o}).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function H(n){n===void 0&&(n=!0),e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=Ce(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=Ce(e.config.altFormat)),n!==!1&&M("onValueUpdate")}function hn(n){var t=_(n),i=e.prevMonthNav.contains(t),o=e.nextMonthNav.contains(t);i||o?ve(i?-1:1):e.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):t.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function vn(n){n.preventDefault();var t=n.type==="keydown",i=_(n),o=i;e.amPM!==void 0&&i===e.amPM&&(e.amPM.textContent=e.l10n.amPM[F(e.amPM.textContent===e.l10n.amPM[0])]);var l=parseFloat(o.getAttribute("min")),f=parseFloat(o.getAttribute("max")),d=parseFloat(o.getAttribute("step")),c=parseInt(o.value,10),p=n.delta||(t?n.which===38?1:-1:0),u=c+d*p;if(typeof o.value<"u"&&o.value.length===2){var s=o===e.hourElement,b=o===e.minuteElement;uf&&(u=o===e.hourElement?u-f-F(!e.amPM):l,b&&V(void 0,1,e.hourElement)),e.amPM&&s&&(d===1?u+c===23:Math.abs(u-c)>d)&&(e.amPM.textContent=e.l10n.amPM[F(e.amPM.textContent===e.l10n.amPM[0])]),o.value=S(u)}}return h(),e}function G(a,r){for(var e=Array.prototype.slice.call(a).filter(function(w){return w instanceof HTMLElement}),m=[],h=0;h",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},We={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(r){var n=r%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},K=function(r,n){return n===void 0&&(n=2),("000"+r).slice(n*-1)},Q=function(r){return r===!0?1:0};function Ot(r,n){var e;return function(){var c=this,m=arguments;clearTimeout(e),e=setTimeout(function(){return r.apply(c,m)},n)}}var St=function(r){return r instanceof Array?r:[r]};function z(r,n,e){if(e===!0)return r.classList.add(n);r.classList.remove(n)}function k(r,n,e){var c=window.document.createElement(r);return n=n||"",e=e||"",c.className=n,e!==void 0&&(c.textContent=e),c}function rt(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function Yt(r,n){if(n(r))return r;if(r.parentNode)return Yt(r.parentNode,n)}function at(r,n){var e=k("div","numInputWrapper"),c=k("input","numInput "+r),m=k("span","arrowUp"),p=k("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?c.type="number":(c.type="text",c.pattern="\\d*"),n!==void 0)for(var v in n)c.setAttribute(v,n[v]);return e.appendChild(c),e.appendChild(m),e.appendChild(p),e}function X(r){try{if(typeof r.composedPath=="function"){var n=r.composedPath();return n[0]}return r.target}catch{return r.target}}var yt=function(){},ot=function(r,n,e){return e.months[n?"shorthand":"longhand"][r]},qt={D:yt,F:function(r,n,e){r.setMonth(e.months.longhand.indexOf(n))},G:function(r,n){r.setHours((r.getHours()>=12?12:0)+parseFloat(n))},H:function(r,n){r.setHours(parseFloat(n))},J:function(r,n){r.setDate(parseFloat(n))},K:function(r,n,e){r.setHours(r.getHours()%12+12*Q(new RegExp(e.amPM[1],"i").test(n)))},M:function(r,n,e){r.setMonth(e.months.shorthand.indexOf(n))},S:function(r,n){r.setSeconds(parseFloat(n))},U:function(r,n){return new Date(parseFloat(n)*1e3)},W:function(r,n,e){var c=parseInt(n),m=new Date(r.getFullYear(),0,2+(c-1)*7,0,0,0,0);return m.setDate(m.getDate()-m.getDay()+e.firstDayOfWeek),m},Y:function(r,n){r.setFullYear(parseFloat(n))},Z:function(r,n){return new Date(n)},d:function(r,n){r.setDate(parseFloat(n))},h:function(r,n){r.setHours((r.getHours()>=12?12:0)+parseFloat(n))},i:function(r,n){r.setMinutes(parseFloat(n))},j:function(r,n){r.setDate(parseFloat(n))},l:yt,m:function(r,n){r.setMonth(parseFloat(n)-1)},n:function(r,n){r.setMonth(parseFloat(n)-1)},s:function(r,n){r.setSeconds(parseFloat(n))},u:function(r,n){return new Date(parseFloat(n))},w:yt,y:function(r,n){r.setFullYear(2e3+parseFloat(n))}},ve={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})"},ze={Z:function(r){return r.toISOString()},D:function(r,n,e){return n.weekdays.shorthand[ze.w(r,n,e)]},F:function(r,n,e){return ot(ze.n(r,n,e)-1,!1,n)},G:function(r,n,e){return K(ze.h(r,n,e))},H:function(r){return K(r.getHours())},J:function(r,n){return n.ordinal!==void 0?r.getDate()+n.ordinal(r.getDate()):r.getDate()},K:function(r,n){return n.amPM[Q(r.getHours()>11)]},M:function(r,n){return ot(r.getMonth(),!0,n)},S:function(r){return K(r.getSeconds())},U:function(r){return r.getTime()/1e3},W:function(r,n,e){return e.getWeek(r)},Y:function(r){return K(r.getFullYear(),4)},d:function(r){return K(r.getDate())},h:function(r){return r.getHours()%12?r.getHours()%12:12},i:function(r){return K(r.getMinutes())},j:function(r){return r.getDate()},l:function(r,n){return n.weekdays.longhand[r.getDay()]},m:function(r){return K(r.getMonth()+1)},n:function(r){return r.getMonth()+1},s:function(r){return r.getSeconds()},u:function(r){return r.getTime()},w:function(r){return r.getDay()},y:function(r){return String(r.getFullYear()).substring(2)}},jt=function(r){var n=r.config,e=n===void 0?Ae:n,c=r.l10n,m=c===void 0?We:c,p=r.isMobile,v=p===void 0?!1:p;return function(C,S,y){var x=y||m;return e.formatDate!==void 0&&!v?e.formatDate(C,S,x):S.split("").map(function(A,N,M){return ze[A]&&M[N-1]!=="\\"?ze[A](C,x,e):A!=="\\"?A:""}).join("")}},kt=function(r){var n=r.config,e=n===void 0?Ae:n,c=r.l10n,m=c===void 0?We:c;return function(p,v,C,S){if(!(p!==0&&!p)){var y=S||m,x,A=p;if(p instanceof Date)x=new Date(p.getTime());else if(typeof p!="string"&&p.toFixed!==void 0)x=new Date(p);else if(typeof p=="string"){var N=v||(e||Ae).dateFormat,M=String(p).trim();if(M==="today")x=new Date,C=!0;else if(e&&e.parseDate)x=e.parseDate(p,N);else if(/Z$/.test(M)||/GMT$/.test(M))x=new Date(p);else{for(var B=void 0,D=[],T=0,ce=0,Y="";TMath.min(n,e)&&r=0?new Date:new Date(e.config.minDate.getTime()),a=Et(e.config);t.setHours(a.hours,a.minutes,a.seconds,t.getMilliseconds()),e.selectedDates=[t],e.latestSelectedDateObj=t}i!==void 0&&i.type!=="blur"&&Ct(i);var o=e._input.value;A(),Z(),e._input.value!==o&&e._debouncedChange()}function y(i,t){return i%12+12*Q(t===e.l10n.amPM[1])}function x(i){switch(i%24){case 0:case 12:return 12;default:return i%12}}function A(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var i=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(e.minuteElement.value,10)||0)%60,a=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(i=y(i,e.amPM.textContent));var o=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&G(e.latestSelectedDateObj,e.config.minDate,!0)===0,s=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&G(e.latestSelectedDateObj,e.config.maxDate,!0)===0;if(e.config.maxTime!==void 0&&e.config.minTime!==void 0&&e.config.minTime>e.config.maxTime){var l=xt(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),f=xt(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),u=xt(i,t,a);if(u>f&&u=12)]),e.secondElement!==void 0&&(e.secondElement.value=K(a)))}function B(i){var t=X(i),a=parseInt(t.value)+(i.delta||0);(a/1e3>1||i.key==="Enter"&&!/[^\d]/.test(a.toString()))&&me(a)}function D(i,t,a,o){if(t instanceof Array)return t.forEach(function(s){return D(i,s,a,o)});if(i instanceof Array)return i.forEach(function(s){return D(s,t,a,o)});i.addEventListener(t,a,o),e._handlers.push({remove:function(){return i.removeEventListener(t,a,o)}})}function T(){O("onChange")}function ce(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(a){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+a+"]"),function(o){return D(o,"click",e[a])})}),e.isMobile){xe();return}var i=Ot(pt,50);if(e._debouncedChange=Ot(T,$t),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&D(e.daysContainer,"mouseover",function(a){e.config.mode==="range"&&Me(X(a))}),D(e._input,"keydown",Xe),e.calendarContainer!==void 0&&D(e.calendarContainer,"keydown",Xe),!e.config.inline&&!e.config.static&&D(window,"resize",i),window.ontouchstart!==void 0?D(window.document,"touchstart",de):D(window.document,"mousedown",de),D(window.document,"focus",de,{capture:!0}),e.config.clickOpens===!0&&(D(e._input,"focus",e.open),D(e._input,"click",e.open)),e.daysContainer!==void 0&&(D(e.monthNav,"click",wt),D(e.monthNav,["keyup","increment"],B),D(e.daysContainer,"click",pe)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var t=function(a){return X(a).select()};D(e.timeContainer,["increment"],S),D(e.timeContainer,"blur",S,{capture:!0}),D(e.timeContainer,"click",q),D([e.hourElement,e.minuteElement],["focus","click"],t),e.secondElement!==void 0&&D(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&D(e.amPM,"click",function(a){S(a)})}e.config.allowInput&&D(e._input,"blur",Je)}function Y(i,t){var a=i!==void 0?e.parseDate(i):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate1),e.calendarContainer.appendChild(i);var s=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!s&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){var l=k("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(l,e.element),l.appendChild(e.element),e.altInput&&l.appendChild(e.altInput),l.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function $(i,t,a,o){var s=U(t,!0),l=k("span",i,t.getDate().toString());return l.dateObj=t,l.$i=o,l.setAttribute("aria-label",e.formatDate(t,e.config.ariaDateFormat)),i.indexOf("hidden")===-1&&G(t,e.now)===0&&(e.todayDateElem=l,l.classList.add("today"),l.setAttribute("aria-current","date")),s?(l.tabIndex=-1,Le(t)&&(l.classList.add("selected"),e.selectedDateElem=l,e.config.mode==="range"&&(z(l,"startRange",e.selectedDates[0]&&G(t,e.selectedDates[0],!0)===0),z(l,"endRange",e.selectedDates[1]&&G(t,e.selectedDates[1],!0)===0),i==="nextMonthDay"&&l.classList.add("inRange")))):l.classList.add("flatpickr-disabled"),e.config.mode==="range"&&Qe(t)&&!Le(t)&&l.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&i!=="prevMonthDay"&&o%7===6&&e.weekNumbers.insertAdjacentHTML("beforeend",""+e.config.getWeek(t)+""),O("onDayCreate",l),l}function ie(i){i.focus(),e.config.mode==="range"&&Me(i)}function j(i){for(var t=i>0?0:e.config.showMonths-1,a=i>0?e.config.showMonths:-1,o=t;o!=a;o+=i)for(var s=e.daysContainer.children[o],l=i>0?0:s.children.length-1,f=i>0?s.children.length:-1,u=l;u!=f;u+=i){var d=s.children[u];if(d.className.indexOf("hidden")===-1&&U(d.dateObj))return d}}function _e(i,t){for(var a=i.className.indexOf("Month")===-1?i.dateObj.getMonth():e.currentMonth,o=t>0?e.config.showMonths:-1,s=t>0?1:-1,l=a-e.currentMonth;l!=o;l+=s)for(var f=e.daysContainer.children[l],u=a-e.currentMonth===l?i.$i+t:t<0?f.children.length-1:0,d=f.children.length,g=u;g>=0&&g0?d:-1);g+=s){var h=f.children[g];if(h.className.indexOf("hidden")===-1&&U(h.dateObj)&&Math.abs(i.$i-g)>=Math.abs(t))return ie(h)}e.changeMonth(s),te(j(s),0)}function te(i,t){var a=p(),o=Ce(a||document.body),s=i!==void 0?i:o?a:e.selectedDateElem!==void 0&&Ce(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&Ce(e.todayDateElem)?e.todayDateElem:j(t>0?1:-1);s===void 0?e._input.focus():o?_e(s,t):ie(s)}function ft(i,t){for(var a=(new Date(i,t,1).getDay()-e.l10n.firstDayOfWeek+7)%7,o=e.utils.getDaysInMonth((t-1+12)%12,i),s=e.utils.getDaysInMonth(t,i),l=window.document.createDocumentFragment(),f=e.config.showMonths>1,u=f?"prevMonthDay hidden":"prevMonthDay",d=f?"nextMonthDay hidden":"nextMonthDay",g=o+1-a,h=0;g<=o;g++,h++)l.appendChild($("flatpickr-day "+u,new Date(i,t-1,g),g,h));for(g=1;g<=s;g++,h++)l.appendChild($("flatpickr-day",new Date(i,t,g),g,h));for(var b=s+1;b<=42-a&&(e.config.showMonths===1||h%7!==0);b++,h++)l.appendChild($("flatpickr-day "+d,new Date(i,t+1,b%s),b,h));var E=k("div","dayContainer");return E.appendChild(l),E}function De(){if(e.daysContainer!==void 0){rt(e.daysContainer),e.weekNumbers&&rt(e.weekNumbers);for(var i=document.createDocumentFragment(),t=0;t1||e.config.monthSelectorType!=="dropdown")){var i=function(o){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&oe.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(i(t)){var a=k("option","flatpickr-monthDropdown-month");a.value=new Date(e.currentYear,t).getMonth().toString(),a.textContent=ot(t,e.config.shorthandCurrentMonth,e.l10n),a.tabIndex=-1,e.currentMonth===t&&(a.selected=!0),e.monthsDropdownContainer.appendChild(a)}}}function Ke(){var i=k("div","flatpickr-month"),t=window.document.createDocumentFragment(),a;e.config.showMonths>1||e.config.monthSelectorType==="static"?a=k("span","cur-month"):(e.monthsDropdownContainer=k("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),D(e.monthsDropdownContainer,"change",function(f){var u=X(f),d=parseInt(u.value,10);e.changeMonth(d-e.currentMonth),O("onMonthChange")}),oe(),a=e.monthsDropdownContainer);var o=at("cur-year",{tabindex:"-1"}),s=o.getElementsByTagName("input")[0];s.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&s.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(s.setAttribute("max",e.config.maxDate.getFullYear().toString()),s.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());var l=k("div","flatpickr-current-month");return l.appendChild(a),l.appendChild(o),t.appendChild(l),i.appendChild(t),{container:i,yearElement:s,monthElement:a}}function be(){rt(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var i=e.config.showMonths;i--;){var t=Ke();e.yearElements.push(t.yearElement),e.monthElements.push(t.monthElement),e.monthNav.appendChild(t.container)}e.monthNav.appendChild(e.nextMonthNav)}function ut(){return e.monthNav=k("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=k("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=k("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,be(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(i){e.__hidePrevMonthArrow!==i&&(z(e.prevMonthNav,"flatpickr-disabled",i),e.__hidePrevMonthArrow=i)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(i){e.__hideNextMonthArrow!==i&&(z(e.nextMonthNav,"flatpickr-disabled",i),e.__hideNextMonthArrow=i)}}),e.currentYearElement=e.yearElements[0],ke(),e.monthNav}function ct(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var i=Et(e.config);e.timeContainer=k("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var t=k("span","flatpickr-time-separator",":"),a=at("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=a.getElementsByTagName("input")[0];var o=at("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=o.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=K(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?i.hours:x(i.hours)),e.minuteElement.value=K(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():i.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(a),e.timeContainer.appendChild(t),e.timeContainer.appendChild(o),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");var s=at("flatpickr-second");e.secondElement=s.getElementsByTagName("input")[0],e.secondElement.value=K(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():i.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(k("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(s)}return e.config.time_24hr||(e.amPM=k("span","flatpickr-am-pm",e.l10n.amPM[Q((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function we(){e.weekdayContainer?rt(e.weekdayContainer):e.weekdayContainer=k("div","flatpickr-weekdays");for(var i=e.config.showMonths;i--;){var t=k("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(t)}return Oe(),e.weekdayContainer}function Oe(){if(e.weekdayContainer){var i=e.l10n.firstDayOfWeek,t=It(e.l10n.weekdays.shorthand);i>0&&i + `+t.join("")+` + + `}}function dt(){e.calendarContainer.classList.add("hasWeeks");var i=k("div","flatpickr-weekwrapper");i.appendChild(k("span","flatpickr-weekday",e.l10n.weekAbbreviation));var t=k("div","flatpickr-weeks");return i.appendChild(t),{weekWrapper:i,weekNumbers:t}}function Ie(i,t){t===void 0&&(t=!0);var a=t?i:i-e.currentMonth;a<0&&e._hidePrevMonthArrow===!0||a>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=a,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,O("onYearChange"),oe()),De(),O("onMonthChange"),ke())}function qe(i,t){if(i===void 0&&(i=!0),t===void 0&&(t=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,t===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var a=Et(e.config),o=a.hours,s=a.minutes,l=a.seconds;M(o,s,l)}e.redraw(),i&&O("onChange")}function mt(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),O("onClose")}function gt(){e.config!==void 0&&O("onDestroy");for(var i=e._handlers.length;i--;)e._handlers[i].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){var t=e.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.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(a){try{delete e[a]}catch{}})}function ne(i){return e.calendarContainer.contains(i)}function de(i){if(e.isOpen&&!e.config.inline){var t=X(i),a=ne(t),o=t===e.input||t===e.altInput||e.element.contains(t)||i.path&&i.path.indexOf&&(~i.path.indexOf(e.input)||~i.path.indexOf(e.altInput)),s=!o&&!a&&!ne(i.relatedTarget),l=!e.config.ignoredFocusElements.some(function(f){return f.contains(t)});s&&l&&(e.config.allowInput&&e.setDate(e._input.value,!1,e.config.altInput?e.config.altFormat:e.config.dateFormat),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&S(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}function me(i){if(!(!i||e.config.minDate&&ie.config.maxDate.getFullYear())){var t=i,a=e.currentYear!==t;e.currentYear=t||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),a&&(e.redraw(),O("onYearChange"),oe())}}function U(i,t){var a;t===void 0&&(t=!0);var o=e.parseDate(i,void 0,t);if(e.config.minDate&&o&&G(o,e.config.minDate,t!==void 0?t:!e.minDateHasTime)<0||e.config.maxDate&&o&&G(o,e.config.maxDate,t!==void 0?t:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(o===void 0)return!1;for(var s=!!e.config.enable,l=(a=e.config.enable)!==null&&a!==void 0?a:e.config.disable,f=0,u=void 0;f=u.from.getTime()&&o.getTime()<=u.to.getTime())return s}return!s}function Ce(i){return e.daysContainer!==void 0?i.className.indexOf("hidden")===-1&&i.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(i):!1}function Je(i){var t=i.target===e._input,a=e._input.value.trimEnd()!==Ye();t&&a&&!(i.relatedTarget&&ne(i.relatedTarget))&&e.setDate(e._input.value,!0,i.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Xe(i){var t=X(i),a=e.config.wrap?r.contains(t):t===e._input,o=e.config.allowInput,s=e.isOpen&&(!o||!a),l=e.config.inline&&a&&!o;if(i.keyCode===13&&a){if(o)return e.setDate(e._input.value,!0,t===e.altInput?e.config.altFormat:e.config.dateFormat),e.close(),t.blur();e.open()}else if(ne(t)||s||l){var f=!!e.timeContainer&&e.timeContainer.contains(t);switch(i.keyCode){case 13:f?(i.preventDefault(),S(),_()):pe(i);break;case 27:i.preventDefault(),_();break;case 8:case 46:a&&!e.config.allowInput&&(i.preventDefault(),e.clear());break;case 37:case 39:if(!f&&!a){i.preventDefault();var u=p();if(e.daysContainer!==void 0&&(o===!1||u&&Ce(u))){var d=i.keyCode===39?1:-1;i.ctrlKey?(i.stopPropagation(),Ie(d),te(j(1),0)):te(void 0,d)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:i.preventDefault();var g=i.keyCode===40?1:-1;e.daysContainer&&t.$i!==void 0||t===e.input||t===e.altInput?i.ctrlKey?(i.stopPropagation(),me(e.currentYear-g),te(j(1),0)):f||te(void 0,g*7):t===e.currentYearElement?me(e.currentYear-g):e.config.enableTime&&(!f&&e.hourElement&&e.hourElement.focus(),S(i),e._debouncedChange());break;case 9:if(f){var h=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(w){return w}),b=h.indexOf(t);if(b!==-1){var E=h[b+(i.shiftKey?-1:1)];i.preventDefault(),(E||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(t)&&i.shiftKey&&(i.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&t===e.amPM)switch(i.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],A(),Z();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],A(),Z();break}(a||ne(t))&&O("onKeyDown",i)}function Me(i,t){if(t===void 0&&(t="flatpickr-day"),!(e.selectedDates.length!==1||i&&(!i.classList.contains(t)||i.classList.contains("flatpickr-disabled")))){for(var a=i?i.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),o=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),s=Math.min(a,e.selectedDates[0].getTime()),l=Math.max(a,e.selectedDates[0].getTime()),f=!1,u=0,d=0,g=s;gs&&gu)?u=g:g>o&&(!d||g ."+t));h.forEach(function(b){var E=b.dateObj,w=E.getTime(),P=u>0&&w0&&w>d;if(P){b.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(I){b.classList.remove(I)});return}else if(f&&!P)return;["startRange","inRange","endRange","notAllowed"].forEach(function(I){b.classList.remove(I)}),i!==void 0&&(i.classList.add(a<=e.selectedDates[0].getTime()?"startRange":"endRange"),oa&&w===o&&b.classList.add("endRange"),w>=u&&(d===0||w<=d)&&Jt(w,o,a)&&b.classList.add("inRange"))})}}function pt(){e.isOpen&&!e.config.static&&!e.config.inline&&ge()}function Te(i,t){if(t===void 0&&(t=e._positionElement),e.isMobile===!0){if(i){i.preventDefault();var a=X(i);a&&a.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),O("onOpen");return}else if(e._input.disabled||e.config.inline)return;var o=e.isOpen;e.isOpen=!0,o||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),O("onOpen"),ge(t)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(i===void 0||!e.timeContainer.contains(i.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}function Se(i){return function(t){var a=e.config["_"+i+"Date"]=e.parseDate(t,e.config.dateFormat),o=e.config["_"+(i==="min"?"max":"min")+"Date"];a!==void 0&&(e[i==="min"?"minDateHasTime":"maxDateHasTime"]=a.getHours()>0||a.getMinutes()>0||a.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(function(s){return U(s)}),!e.selectedDates.length&&i==="min"&&N(a),Z()),e.daysContainer&&(se(),a!==void 0?e.currentYearElement[i]=a.getFullYear().toString():e.currentYearElement.removeAttribute(i),e.currentYearElement.disabled=!!o&&a!==void 0&&o.getFullYear()===a.getFullYear())}}function ht(){var i=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=R(R({},JSON.parse(JSON.stringify(r.dataset||{}))),n),a={};e.config.parseDate=t.parseDate,e.config.formatDate=t.formatDate,Object.defineProperty(e.config,"enable",{get:function(){return e.config._enable},set:function(h){e.config._enable=ye(h)}}),Object.defineProperty(e.config,"disable",{get:function(){return e.config._disable},set:function(h){e.config._disable=ye(h)}});var o=t.mode==="time";if(!t.dateFormat&&(t.enableTime||o)){var s=L.defaultConfig.dateFormat||Ae.dateFormat;a.dateFormat=t.noCalendar||o?"H:i"+(t.enableSeconds?":S":""):s+" H:i"+(t.enableSeconds?":S":"")}if(t.altInput&&(t.enableTime||o)&&!t.altFormat){var l=L.defaultConfig.altFormat||Ae.altFormat;a.altFormat=t.noCalendar||o?"h:i"+(t.enableSeconds?":S K":" K"):l+(" h:i"+(t.enableSeconds?":S":"")+" K")}Object.defineProperty(e.config,"minDate",{get:function(){return e.config._minDate},set:Se("min")}),Object.defineProperty(e.config,"maxDate",{get:function(){return e.config._maxDate},set:Se("max")});var f=function(h){return function(b){e.config[h==="min"?"_minTime":"_maxTime"]=e.parseDate(b,"H:i:S")}};Object.defineProperty(e.config,"minTime",{get:function(){return e.config._minTime},set:f("min")}),Object.defineProperty(e.config,"maxTime",{get:function(){return e.config._maxTime},set:f("max")}),t.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,a,t);for(var u=0;u-1?e.config[g]=St(d[g]).map(v).concat(e.config[g]):typeof t[g]>"u"&&(e.config[g]=d[g])}t.altInputClass||(e.config.altInputClass=Ge().className+" "+e.config.altInputClass),O("onParseConfig")}function Ge(){return e.config.wrap?r.querySelector("[data-input]"):r}function $e(){typeof e.config.locale!="object"&&typeof L.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=R(R({},L.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?L.l10ns[e.config.locale]:void 0),ve.D="("+e.l10n.weekdays.shorthand.join("|")+")",ve.l="("+e.l10n.weekdays.longhand.join("|")+")",ve.M="("+e.l10n.months.shorthand.join("|")+")",ve.F="("+e.l10n.months.longhand.join("|")+")",ve.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var i=R(R({},n),JSON.parse(JSON.stringify(r.dataset||{})));i.time_24hr===void 0&&L.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=jt(e),e.parseDate=kt({config:e.config,l10n:e.l10n})}function ge(i){if(typeof e.config.position=="function")return void e.config.position(e,i);if(e.calendarContainer!==void 0){O("onPreCalendarPosition");var t=i||e._positionElement,a=Array.prototype.reduce.call(e.calendarContainer.children,function(nt,Kt){return nt+Kt.offsetHeight},0),o=e.calendarContainer.offsetWidth,s=e.config.position.split(" "),l=s[0],f=s.length>1?s[1]:null,u=t.getBoundingClientRect(),d=window.innerHeight-u.bottom,g=l==="above"||l!=="below"&&da,h=window.pageYOffset+u.top+(g?-a-2:t.offsetHeight+2);if(z(e.calendarContainer,"arrowTop",!g),z(e.calendarContainer,"arrowBottom",g),!e.config.inline){var b=window.pageXOffset+u.left,E=!1,w=!1;f==="center"?(b-=(o-u.width)/2,E=!0):f==="right"&&(b-=o-u.width,w=!0),z(e.calendarContainer,"arrowLeft",!E&&!w),z(e.calendarContainer,"arrowCenter",E),z(e.calendarContainer,"arrowRight",w);var P=window.document.body.offsetWidth-(window.pageXOffset+u.right),I=b+o>window.document.body.offsetWidth,H=P+o>window.document.body.offsetWidth;if(z(e.calendarContainer,"rightMost",I),!e.config.static)if(e.calendarContainer.style.top=h+"px",!I)e.calendarContainer.style.left=b+"px",e.calendarContainer.style.right="auto";else if(!H)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=P+"px";else{var F=Fe();if(F===void 0)return;var je=window.document.body.offsetWidth,Ve=Math.max(0,je/2-o/2),Re=".flatpickr-calendar.centerMost:before",et=".flatpickr-calendar.centerMost:after",Ue=F.cssRules.length,tt="{left:"+u.left+"px;right:auto;}";z(e.calendarContainer,"rightMost",!1),z(e.calendarContainer,"centerMost",!0),F.insertRule(Re+","+et+tt,Ue),e.calendarContainer.style.left=Ve+"px",e.calendarContainer.style.right="auto"}}}}function Fe(){for(var i=null,t=0;te.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=o,e.config.mode==="single")e.selectedDates=[s];else if(e.config.mode==="multiple"){var f=Le(s);f?e.selectedDates.splice(parseInt(f),1):e.selectedDates.push(s)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=s,e.selectedDates.push(s),G(s,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(h,b){return h.getTime()-b.getTime()}));if(A(),l){var u=e.currentYear!==s.getFullYear();e.currentYear=s.getFullYear(),e.currentMonth=s.getMonth(),u&&(O("onYearChange"),oe()),O("onMonthChange")}if(ke(),De(),Z(),!l&&e.config.mode!=="range"&&e.config.showMonths===1?ie(o):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){var d=e.config.mode==="single"&&!e.config.enableTime,g=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(d||g)&&_()}T()}}var le={locale:[$e,Oe],showMonths:[be,C,we],minDate:[Y],maxDate:[Y],positionElement:[He],clickOpens:[function(){e.config.clickOpens===!0?(D(e._input,"focus",e.open),D(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function Ze(i,t){if(i!==null&&typeof i=="object"){Object.assign(e.config,i);for(var a in i)le[a]!==void 0&&le[a].forEach(function(o){return o()})}else e.config[i]=t,le[i]!==void 0?le[i].forEach(function(o){return o()}):Mt.indexOf(i)>-1&&(e.config[i]=St(t));e.redraw(),Z(!0)}function Ne(i,t){var a=[];if(i instanceof Array)a=i.map(function(o){return e.parseDate(o,t)});else if(i instanceof Date||typeof i=="number")a=[e.parseDate(i,t)];else if(typeof i=="string")switch(e.config.mode){case"single":case"time":a=[e.parseDate(i,t)];break;case"multiple":a=i.split(e.config.conjunction).map(function(o){return e.parseDate(o,t)});break;case"range":a=i.split(e.l10n.rangeSeparator).map(function(o){return e.parseDate(o,t)});break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(i)));e.selectedDates=e.config.allowInvalidPreload?a:a.filter(function(o){return o instanceof Date&&U(o,!1)}),e.config.mode==="range"&&e.selectedDates.sort(function(o,s){return o.getTime()-s.getTime()})}function Dt(i,t,a){if(t===void 0&&(t=!1),a===void 0&&(a=e.config.dateFormat),i!==0&&!i||i instanceof Array&&i.length===0)return e.clear(t);Ne(i,a),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),Y(void 0,t),N(),e.selectedDates.length===0&&e.clear(!1),Z(t),t&&O("onChange")}function ye(i){return i.slice().map(function(t){return typeof t=="string"||typeof t=="number"||t instanceof Date?e.parseDate(t,void 0,!0):t&&typeof t=="object"&&t.from&&t.to?{from:e.parseDate(t.from,void 0),to:e.parseDate(t.to,void 0)}:t}).filter(function(t){return t})}function re(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;var i=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);i&&Ne(i,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function he(){if(e.input=Ge(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=k(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),He()}function He(){e._positionElement=e.config.positionElement||e._input}function xe(){var i=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=k("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=i,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=i==="datetime-local"?"Y-m-d\\TH:i:S":i==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}D(e.mobileInput,"change",function(t){e.setDate(X(t).value,!1,e.mobileFormatStr),O("onChange"),O("onClose")})}function bt(i){if(e.isOpen===!0)return e.close();e.open(i)}function O(i,t){if(e.config!==void 0){var a=e.config[i];if(a!==void 0&&a.length>0)for(var o=0;a[o]&&o=0&&G(i,e.selectedDates[1])<=0}function ke(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(i,t){var a=new Date(e.currentYear,e.currentMonth,1);a.setMonth(e.currentMonth+t),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[t].textContent=ot(a.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=a.getMonth().toString(),i.value=a.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYeare.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function Ye(i){var t=i||(e.config.altInput?e.config.altFormat:e.config.dateFormat);return e.selectedDates.map(function(a){return e.formatDate(a,t)}).filter(function(a,o,s){return e.config.mode!=="range"||e.config.enableTime||s.indexOf(a)===o}).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Z(i){i===void 0&&(i=!0),e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=Ye(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=Ye(e.config.altFormat)),i!==!1&&O("onValueUpdate")}function wt(i){var t=X(i),a=e.prevMonthNav.contains(t),o=e.nextMonthNav.contains(t);a||o?Ie(a?-1:1):e.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):t.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Ct(i){i.preventDefault();var t=i.type==="keydown",a=X(i),o=a;e.amPM!==void 0&&a===e.amPM&&(e.amPM.textContent=e.l10n.amPM[Q(e.amPM.textContent===e.l10n.amPM[0])]);var s=parseFloat(o.getAttribute("min")),l=parseFloat(o.getAttribute("max")),f=parseFloat(o.getAttribute("step")),u=parseInt(o.value,10),d=i.delta||(t?i.which===38?1:-1:0),g=u+f*d;if(typeof o.value<"u"&&o.value.length===2){var h=o===e.hourElement,b=o===e.minuteElement;gl&&(g=o===e.hourElement?g-l-Q(!e.amPM):s,b&&J(void 0,1,e.hourElement)),e.amPM&&h&&(f===1?g+u===23:Math.abs(g-u)>f)&&(e.amPM.textContent=e.l10n.amPM[Q(e.amPM.textContent===e.l10n.amPM[0])]),o.value=K(g)}}return m(),e}function Pe(r,n){for(var e=Array.prototype.slice.call(r).filter(function(v){return v instanceof HTMLElement}),c=[],m=0;m0&&(V(r,n),setTimeout(function(){it(r,n)},e))}function Ht(r){return Math.max(Math.min(r,100),0)}function lt(r){return Array.isArray(r)?r:[r]}function rn(r){r=String(r);var n=r.split(".");return n.length>1?n[1].length:0}function V(r,n){r.classList&&!/\s/.test(n)?r.classList.add(n):r.className+=" "+n}function it(r,n){r.classList&&!/\s/.test(n)?r.classList.remove(n):r.className=r.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," ")}function an(r,n){return r.classList?r.classList.contains(n):new RegExp("\\b"+n+"\\b").test(r.className)}function Vt(r){var n=window.pageXOffset!==void 0,e=(r.compatMode||"")==="CSS1Compat",c=n?window.pageXOffset:e?r.documentElement.scrollLeft:r.body.scrollLeft,m=n?window.pageYOffset:e?r.documentElement.scrollTop:r.body.scrollTop;return{x:c,y:m}}function on(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function sn(){var r=!1;try{var n=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("test",null,n)}catch{}return r}function ln(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function _t(r,n){return 100/(n-r)}function Pt(r,n,e){return n*100/(r[e+1]-r[e])}function fn(r,n){return Pt(r,r[0]<0?n+Math.abs(r[0]):n-r[0],0)}function un(r,n){return n*(r[1]-r[0])/100+r[0]}function Be(r,n){for(var e=1;r>=n[e];)e+=1;return e}function cn(r,n,e){if(e>=r.slice(-1)[0])return 100;var c=Be(e,r),m=r[c-1],p=r[c],v=n[c-1],C=n[c];return v+fn([m,p],e)/_t(v,C)}function dn(r,n,e){if(e>=100)return r.slice(-1)[0];var c=Be(e,n),m=r[c-1],p=r[c],v=n[c-1],C=n[c];return un([m,p],(e-v)*_t(v,C))}function mn(r,n,e,c){if(c===100)return c;var m=Be(c,r),p=r[m-1],v=r[m];return e?c-p>(v-p)/2?v:p:n[m-1]?r[m-1]+tn(c-r[m-1],n[m-1]):c}var Rt=function(){function r(n,e,c){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[c||!1],this.xNumSteps=[!1],this.snap=e;var m,p=[];for(Object.keys(n).forEach(function(v){p.push([lt(n[v]),v])}),p.sort(function(v,C){return v[0][0]-C[0][0]}),m=0;mthis.xPct[m+1];)m++;else n===this.xPct[this.xPct.length-1]&&(m=this.xPct.length-2);!c&&n===this.xPct[m+1]&&m++,e===null&&(e=[]);var p,v=1,C=e[m],S=0,y=0,x=0,A=0;for(c?p=(n-this.xPct[m])/(this.xPct[m+1]-this.xPct[m]):p=(this.xPct[m+1]-n)/(this.xPct[m+1]-this.xPct[m]);C>0;)S=this.xPct[m+1+A]-this.xPct[m+A],e[m+A]*v+100-p*100>100?(y=S*p,v=(C-100*p)/e[m+A],p=1):(y=e[m+A]*S/100*v,v=0),c?(x=x-y,this.xPct.length+A>=1&&A--):(x=x+y,this.xPct.length-A>=1&&A++),C=e[m+A]*v;return n+x},r.prototype.toStepping=function(n){return n=cn(this.xVal,this.xPct,n),n},r.prototype.fromStepping=function(n){return dn(this.xVal,this.xPct,n)},r.prototype.getStep=function(n){return n=mn(this.xPct,this.xSteps,this.snap,n),n},r.prototype.getDefaultStep=function(n,e,c){var m=Be(n,this.xPct);return(n===100||e&&n===this.xPct[m-1])&&(m=Math.max(m-1,1)),(this.xVal[m]-this.xVal[m-1])/c},r.prototype.getNearbySteps=function(n){var e=Be(n,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e],step:this.xNumSteps[e],highestStep:this.xHighestCompleteStep[e]}}},r.prototype.countStepDecimals=function(){var n=this.xNumSteps.map(rn);return Math.max.apply(null,n)},r.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},r.prototype.convert=function(n){return this.getStep(this.toStepping(n))},r.prototype.handleEntryPoint=function(n,e){var c;if(n==="min"?c=0:n==="max"?c=100:c=parseFloat(n),!ee(c)||!ee(e[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(c),this.xVal.push(e[0]);var m=Number(e[1]);c?this.xSteps.push(isNaN(m)?!1:m):isNaN(m)||(this.xSteps[0]=m),this.xHighestCompleteStep.push(0)},r.prototype.handleStepPoint=function(n,e){if(e){if(this.xVal[n]===this.xVal[n+1]){this.xSteps[n]=this.xHighestCompleteStep[n]=this.xVal[n];return}this.xSteps[n]=Pt([this.xVal[n],this.xVal[n+1]],e,0)/_t(this.xPct[n],this.xPct[n+1]);var c=(this.xVal[n+1]-this.xVal[n])/this.xNumSteps[n],m=Math.ceil(Number(c.toFixed(3))-1),p=this.xVal[n]+this.xNumSteps[n]*m;this.xHighestCompleteStep[n]=p}},r}(),Lt={to:function(r){return r===void 0?"":r.toFixed(2)},from:Number},Ut={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},fe={tooltips:".__tooltips",aria:".__aria"};function gn(r,n){if(!ee(n))throw new Error("noUiSlider: 'step' is not numeric.");r.singleStep=n}function pn(r,n){if(!ee(n))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");r.keyboardPageMultiplier=n}function hn(r,n){if(!ee(n))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");r.keyboardMultiplier=n}function vn(r,n){if(!ee(n))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");r.keyboardDefaultStep=n}function Dn(r,n){if(typeof n!="object"||Array.isArray(n))throw new Error("noUiSlider: 'range' is not an object.");if(n.min===void 0||n.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");r.spectrum=new Rt(n,r.snap||!1,r.singleStep)}function bn(r,n){if(n=lt(n),!Array.isArray(n)||!n.length)throw new Error("noUiSlider: 'start' option is incorrect.");r.handles=n.length,r.start=n}function wn(r,n){if(typeof n!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");r.snap=n}function Cn(r,n){if(typeof n!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");r.animate=n}function Mn(r,n){if(typeof n!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");r.animationDuration=n}function zt(r,n){var e=[!1],c;if(n==="lower"?n=[!0,!1]:n==="upper"&&(n=[!1,!0]),n===!0||n===!1){for(c=1;c1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function En(r,n){switch(n){case"ltr":r.dir=0;break;case"rtl":r.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function kn(r,n){if(typeof n!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var e=n.indexOf("tap")>=0,c=n.indexOf("drag")>=0,m=n.indexOf("fixed")>=0,p=n.indexOf("snap")>=0,v=n.indexOf("hover")>=0,C=n.indexOf("unconstrained")>=0,S=n.indexOf("invert-connects")>=0,y=n.indexOf("drag-all")>=0,x=n.indexOf("smooth-steps")>=0;if(m){if(r.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Wt(r,r.start[1]-r.start[0])}if(S&&r.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(C&&(r.margin||r.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");r.events={tap:e||p,drag:c,dragAll:y,smoothSteps:x,fixed:m,snap:p,hover:v,unconstrained:C,invertConnects:S}}function An(r,n){if(n!==!1)if(n===!0||st(n)){r.tooltips=[];for(var e=0;e= 2) required for mode 'count'.");for(var a=t.values-1,o=100/a,s=[];a--;)s[a]=a*o;return s.push(100),qe(s,t.stepped)}return t.mode===ue.Positions?qe(t.values,t.stepped):t.mode===ue.Values?t.stepped?t.values.map(function(l){return M.fromStepping(M.getStep(M.toStepping(l)))}):t.values:[]}function qe(t,a){return t.map(function(o){return M.fromStepping(a?M.getStep(o):o)})}function mt(t){function a(h,b){return Number((h+b).toFixed(7))}var o=Ie(t),s={},l=M.xVal[0],f=M.xVal[M.xVal.length-1],u=!1,d=!1,g=0;return o=en(o.slice().sort(function(h,b){return h-b})),o[0]!==l&&(o.unshift(l),u=!0),o[o.length-1]!==f&&(o.push(f),d=!0),o.forEach(function(h,b){var E,w,P,I=h,H=o[b+1],F,je,Ve,Re,et,Ue,tt,nt=t.mode===ue.Steps;for(nt&&(E=M.xNumSteps[b]),E||(E=H-I),H===void 0&&(H=I),E=Math.max(E,1e-7),w=I;w<=H;w=a(w,E)){for(F=M.toStepping(w),je=F-g,et=je/(t.density||1),Ue=Math.round(et),tt=je/Ue,P=1;P<=Ue;P+=1)Ve=g+P*tt,s[Ve.toFixed(5)]=[M.fromStepping(Ve),0];Re=o.indexOf(w)>-1?W.LargeValue:nt?W.SmallValue:W.NoValue,!b&&u&&w!==H&&(Re=0),w===H&&d||(s[F.toFixed(5)]=[w,Re]),g=F}}),s}function gt(t,a,o){var s,l,f=J.createElement("div"),u=(s={},s[W.None]="",s[W.NoValue]=n.cssClasses.valueNormal,s[W.LargeValue]=n.cssClasses.valueLarge,s[W.SmallValue]=n.cssClasses.valueSub,s),d=(l={},l[W.None]="",l[W.NoValue]=n.cssClasses.markerNormal,l[W.LargeValue]=n.cssClasses.markerLarge,l[W.SmallValue]=n.cssClasses.markerSub,l),g=[n.cssClasses.valueHorizontal,n.cssClasses.valueVertical],h=[n.cssClasses.markerHorizontal,n.cssClasses.markerVertical];V(f,n.cssClasses.pips),V(f,n.ort===0?n.cssClasses.pipsHorizontal:n.cssClasses.pipsVertical);function b(w,P){var I=P===n.cssClasses.value,H=I?g:h,F=I?u:d;return P+" "+H[n.ort]+" "+F[w]}function E(w,P,I){if(I=a?a(P,I):I,I!==W.None){var H=j(f,!1);H.className=b(I,n.cssClasses.marker),H.style[n.style]=w+"%",I>W.NoValue&&(H=j(f,!1),H.className=b(I,n.cssClasses.value),H.setAttribute("data-value",String(P)),H.style[n.style]=w+"%",H.innerHTML=String(o.to(P)))}}return Object.keys(t).forEach(function(w){E(w,t[w][0],t[w][1])}),f}function ne(){A&&(Tt(A),A=null)}function de(t){ne();var a=mt(t),o=t.filter,s=t.format||{to:function(l){return String(Math.round(l))}};return A=v.appendChild(gt(a,o,s)),A}function me(){var t=C.getBoundingClientRect(),a="offset"+["Width","Height"][n.ort];return n.ort===0?t.width||C[a]:t.height||C[a]}function U(t,a,o,s){var l=function(u){var d=Ce(u,s.pageOffset,s.target||a);if(!d||Ke()&&!s.doNotReject||an(v,n.cssClasses.tap)&&!s.doNotReject||t===c.start&&d.buttons!==void 0&&d.buttons>1||s.hover&&d.buttons)return!1;p||d.preventDefault(),d.calcPoint=d.points[n.ort],o(d,s)},f=[];return t.split(" ").forEach(function(u){a.addEventListener(u,l,p?{passive:!0}:!1),f.push([u,l])}),f}function Ce(t,a,o){var s=t.type.indexOf("touch")===0,l=t.type.indexOf("mouse")===0,f=t.type.indexOf("pointer")===0,u=0,d=0;if(t.type.indexOf("MSPointer")===0&&(f=!0),t.type==="mousedown"&&!t.buttons&&!t.touches)return!1;if(s){var g=function(E){var w=E.target;return w===o||o.contains(w)||t.composed&&t.composedPath().shift()===o};if(t.type==="touchstart"){var h=Array.prototype.filter.call(t.touches,g);if(h.length>1)return!1;u=h[0].pageX,d=h[0].pageY}else{var b=Array.prototype.find.call(t.changedTouches,g);if(!b)return!1;u=b.pageX,d=b.pageY}}return a=a||Vt(J),(l||f)&&(u=t.clientX+a.x,d=t.clientY+a.y),t.pageOffset=a,t.points=[u,d],t.cursor=l||f,t}function Je(t){var a=t-nn(C,n.ort),o=a*100/me();return o=Ht(o),n.dir?100-o:o}function Xe(t){var a=100,o=!1;return y.forEach(function(s,l){if(!be(l)){var f=D[l],u=Math.abs(f-t),d=u===100&&a===100,g=uf;(g||h||d)&&(o=l,a=u)}}),o}function Me(t,a){t.type==="mouseout"&&t.target.nodeName==="HTML"&&t.relatedTarget===null&&Te(t,a)}function pt(t,a){if(navigator.appVersion.indexOf("MSIE 9")===-1&&t.buttons===0&&a.buttonsProperty!==0)return Te(t,a);var o=(n.dir?-1:1)*(t.calcPoint-a.startCalcPoint),s=o*100/a.baseSize;Ze(o>0,s,a.locations,a.handleNumbers,a.connect)}function Te(t,a){a.handle&&(it(a.handle,n.cssClasses.active),ce-=1),a.listeners.forEach(function(o){ae.removeEventListener(o[0],o[1])}),ce===0&&(it(v,n.cssClasses.drag),ye(),t.cursor&&($.style.cursor="",$.removeEventListener("selectstart",Ft))),n.events.smoothSteps&&(a.handleNumbers.forEach(function(o){re(o,D[o],!0,!0,!1,!1)}),a.handleNumbers.forEach(function(o){_("update",o)})),a.handleNumbers.forEach(function(o){_("change",o),_("set",o),_("end",o)})}function Se(t,a){if(!a.handleNumbers.some(be)){var o;if(a.handleNumbers.length===1){var s=y[a.handleNumbers[0]];o=s.children[0],ce+=1,V(o,n.cssClasses.active)}t.stopPropagation();var l=[],f=U(c.move,ae,pt,{target:t.target,handle:o,connect:a.connect,listeners:l,startCalcPoint:t.calcPoint,baseSize:me(),pageOffset:t.pageOffset,handleNumbers:a.handleNumbers,buttonsProperty:t.buttons,locations:D.slice()}),u=U(c.end,ae,Te,{target:t.target,handle:o,listeners:l,doNotReject:!0,handleNumbers:a.handleNumbers}),d=U("mouseout",ae,Me,{target:t.target,handle:o,listeners:l,doNotReject:!0,handleNumbers:a.handleNumbers});l.push.apply(l,f.concat(u,d)),t.cursor&&($.style.cursor=getComputedStyle(t.target).cursor,y.length>1&&V(v,n.cssClasses.drag),$.addEventListener("selectstart",Ft,!1)),a.handleNumbers.forEach(function(g){_("start",g)})}}function ht(t){t.stopPropagation();var a=Je(t.calcPoint),o=Xe(a);o!==!1&&(n.events.snap||Nt(v,n.cssClasses.tap,n.animationDuration),re(o,a,!0,!0),ye(),_("slide",o,!0),_("update",o,!0),n.events.snap?Se(t,{handleNumbers:[o]}):(_("change",o,!0),_("set",o,!0)))}function Ge(t){var a=Je(t.calcPoint),o=M.getStep(a),s=M.fromStepping(o);Object.keys(Y).forEach(function(l){l.split(".")[0]==="hover"&&Y[l].forEach(function(f){f.call(i,s)})})}function $e(t,a){if(Ke()||be(a))return!1;var o=["Left","Right"],s=["Down","Up"],l=["PageDown","PageUp"],f=["Home","End"];n.dir&&!n.ort?o.reverse():n.ort&&!n.dir&&(s.reverse(),l.reverse());var u=t.key.replace("Arrow",""),d=u===l[0],g=u===l[1],h=u===s[0]||u===o[0]||d,b=u===s[1]||u===o[1]||g,E=u===f[0],w=u===f[1];if(!h&&!b&&!E&&!w)return!0;t.preventDefault();var P;if(b||h){var I=h?0:1,H=Qe(a),F=H[I];if(F===null)return!1;F===!1&&(F=M.getDefaultStep(D[a],h,n.keyboardDefaultStep)),g||d?F*=n.keyboardPageMultiplier:F*=n.keyboardMultiplier,F=Math.max(F,1e-7),F=(h?-1:1)*F,P=B[a]+F}else w?P=n.spectrum.xVal[n.spectrum.xVal.length-1]:P=n.spectrum.xVal[0];return re(a,M.toStepping(P),!0,!0),_("slide",a),_("update",a),_("change",a),_("set",a),!1}function ge(t){t.fixed||y.forEach(function(a,o){U(c.start,a.children[0],Se,{handleNumbers:[o]})}),t.tap&&U(c.start,C,ht,{}),t.hover&&U(c.move,C,Ge,{hover:!0}),t.drag&&x.forEach(function(a,o){if(!(a===!1||o===0||o===x.length-1)){var s=y[o-1],l=y[o],f=[a],u=[s,l],d=[o-1,o];V(a,n.cssClasses.draggable),t.fixed&&(f.push(s.children[0]),f.push(l.children[0])),t.dragAll&&(u=y,d=T),f.forEach(function(g){U(c.start,g,Se,{handles:u,handleNumbers:d,connect:a})})}})}function Fe(t,a){Y[t]=Y[t]||[],Y[t].push(a),t.split(".")[0]==="update"&&y.forEach(function(o,s){_("update",s)})}function vt(t){return t===fe.aria||t===fe.tooltips}function se(t){var a=t&&t.split(".")[0],o=a?t.substring(a.length):t;Object.keys(Y).forEach(function(s){var l=s.split(".")[0],f=s.substring(l.length);(!a||a===l)&&(!o||o===f)&&(!vt(f)||o===f)&&delete Y[s]})}function _(t,a,o){Object.keys(Y).forEach(function(s){var l=s.split(".")[0];t===l&&Y[s].forEach(function(f){f.call(i,B.map(n.format.to),a,B.slice(),o||!1,D.slice(),i)})})}function pe(t,a,o,s,l,f,u){var d;return y.length>1&&!n.events.unconstrained&&(s&&a>0&&(d=M.getAbsoluteDistance(t[a-1],n.margin,!1),o=Math.max(o,d)),l&&a1&&n.limit&&(s&&a>0&&(d=M.getAbsoluteDistance(t[a-1],n.limit,!1),o=Math.min(o,d)),l&&a1?s.forEach(function(E,w){var P=pe(f,E,f[E]+a,g[w],h[w],!1,d);P===!1?a=0:(a=P-f[E],f[E]=P)}):g=h=[!0];var b=!1;s.forEach(function(E,w){b=re(E,o[E]+a,g[w],h[w],!1,d)||b}),b&&(s.forEach(function(E){_("update",E),_("slide",E)}),l!=null&&_("drag",u))}function Ne(t,a){return n.dir?100-t-a:t}function Dt(t,a){D[t]=a,B[t]=M.fromStepping(a);var o=Ne(a,0)-ie,s="translate("+le(o+"%","0")+")";if(y[t].style[n.transformRule]=s,n.events.invertConnects&&D.length>1){var l=D.every(function(f,u,d){return u===0||f>=d[u-1]});if(q!==!l){wt();return}}he(t),he(t+1),q&&(he(t-1),he(t+2))}function ye(){T.forEach(function(t){var a=D[t]>50?-1:1,o=3+(y.length+a*t);y[t].style.zIndex=String(o)})}function re(t,a,o,s,l,f){return l||(a=pe(D,t,a,o,s,!1,f)),a===!1?!1:(Dt(t,a),!0)}function he(t){if(x[t]){var a=D.slice();q&&a.sort(function(d,g){return d-g});var o=0,s=100;t!==0&&(o=a[t-1]),t!==x.length-1&&(s=a[t]);var l=s-o,f="translate("+le(Ne(o,l)+"%","0")+")",u="scale("+le(l/100,"1")+")";x[t].style[n.transformRule]=f+" "+u}}function He(t,a){return t===null||t===!1||t===void 0||(typeof t=="number"&&(t=String(t)),t=n.format.from(t),t!==!1&&(t=M.toStepping(t)),t===!1||isNaN(t))?D[a]:t}function xe(t,a,o){var s=lt(t),l=D[0]===void 0;a=a===void 0?!0:a,n.animate&&!l&&Nt(v,n.cssClasses.tap,n.animationDuration),T.forEach(function(d){re(d,He(s[d],d),!0,!1,o)});var f=T.length===1?0:1;if(l&&M.hasNoSize()&&(o=!0,D[0]=0,T.length>1)){var u=100/(T.length-1);T.forEach(function(d){D[d]=d*u})}for(;f=0&&to.stepAfter.startValue&&(l=o.stepAfter.startValue-s),s>o.thisStep.startValue?f=o.thisStep.step:o.stepBefore.step===!1?f=!1:f=s-o.stepBefore.highestStep,a===100?l=null:a===0&&(f=null);var u=M.countStepDecimals();return l!==null&&l!==!1&&(l=Number(l.toFixed(u))),f!==null&&f!==!1&&(f=Number(f.toFixed(u))),[f,l]}function ke(){return T.map(Qe)}function Ye(t,a){var o=Ee(),s=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];s.forEach(function(f){t[f]!==void 0&&(e[f]=t[f])});var l=Bt(e);s.forEach(function(f){t[f]!==void 0&&(n[f]=l[f])}),M=l.spectrum,n.margin=l.margin,n.limit=l.limit,n.padding=l.padding,n.pips?de(n.pips):ne(),n.tooltips?Oe():we(),D=[],xe(At(t.start)?t.start:o,a),t.connect&&Z()}function Z(){for(;S.firstChild;)S.removeChild(S.firstChild);for(var t=0;t<=n.handles;t++)x[t]=te(S,n.connect[t]),he(t);ge({drag:n.events.drag,fixed:!0})}function wt(){q=!q,zt(n,n.connect.map(function(t){return!t})),Z()}function Ct(){C=De(v),ft(n.connect,C),ge(n.events),xe(n.start),n.pips&&de(n.pips),n.tooltips&&Oe(),dt()}Ct();var i={destroy:Le,steps:ke,on:Fe,off:se,get:Ee,set:xe,setHandle:O,reset:bt,disable:ut,enable:ct,__moveHandles:function(t,a,o){Ze(t,a,D,o)},options:e,updateOptions:Ye,target:v,removePips:ne,removeTooltips:we,getPositions:function(){return D.slice()},getTooltips:function(){return N},getOrigins:function(){return y},pips:de};return i}function Ln(r,n){if(!r||!r.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+r);if(r.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var e=Bt(n),c=Hn(r,e,n);return r.noUiSlider=c,c}const Yn={__spectrum:Rt,cssClasses:Ut,create:Ln};window.noUiSlider=Yn; diff --git a/resources/build/manifest.json b/resources/build/manifest.json index 667606b..d30afd6 100644 --- a/resources/build/manifest.json +++ b/resources/build/manifest.json @@ -5,7 +5,7 @@ "isEntry": true }, "resources/js/app.js": { - "file": "assets/app-CuwAdnd6.js", + "file": "assets/app-QPD58V34.js", "name": "app", "src": "resources/js/app.js", "isEntry": true, diff --git a/resources/js/app.js b/resources/js/app.js index ff8d2ff..6196e15 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -3,4 +3,5 @@ import flatpickr from "flatpickr" import "flatpickr/dist/flatpickr.min.css"; import noUiSlider from 'nouislider'; -import 'nouislider/dist/nouislider.css'; \ No newline at end of file +import 'nouislider/dist/nouislider.css'; +window.noUiSlider = noUiSlider; \ No newline at end of file