PageSourceSearch

https://cdn.logitravel.pt/babylon/logitravel/logitravel/client/chunks/react-flatpickr.V2CR5Lib.js

js logitravel.pt collected 2026-09-26 13:12:00 UTC 52,665 bytes, 6 lines download raw bytes

vendor: 5,096 bytes, line 1
1import{r as K,j as Ve}from"./constants.DVfzoI-P.js";var Ee=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],X={_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:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},re={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},F=function(a,r){return r===void 0&&(r=2),("000"+a).slice(r*-1)},j=function(a){return a===!0?1:0};function Je(a,r){var e;return function(){var d=this,s=arguments;clearTimeout(e),e=setTimeout(function(){return a.apply(d,s)},r)}}var ke=function(a){return a instanceof Array?a:[a]};function A(a,r,e){if(e===!0)return a.classList.add(r);a.classList.remove(r)}function D(a,r,e){var d=window.document.createElement(a);return r=r||"",e=e||"",d.className=r,e!==void 0&&(d.textContent=e),d}function ge(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function qe(a,r){if(r(a))return a;if(a.parentNode)return qe(a.parentNode,r)}function me(a,r){var e=D("div","numInputWrapper"),d=D("input","numInput "+a),s=D("span","arrowUp"),m=D("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?d.type="number":(d.type="text",d.pattern="\\d*"),r!==void 0)for(var w in r)d.setAttribute(w,r[w]);return e.appendChild(d),e.appendChild(s),e.appendChild(m),e}function Y(a){try{if(typeof a.composedPath=="function"){var r=a.composedPath();return r[0]}return a.target}catch{return a.target}}var Te=function(){},pe=function(a,r,e){return e.months[r?"shorthand":"longhand"][a]},Sn={D:Te,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*j(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 d=parseInt(r),s=new Date(a.getFullYear(),0,2+(d-1)*7,0,0,0,0);return s.setDate(s.getDate()-s.getDay()+e.firstDayOfWeek),s},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:Te,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:Te,y:function(a,r){a.setFullYear(2e3+parseFloat(r))}},q={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"
1(\\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})"},ie={Z:function(a){return a.toISOString()},D:function(a,r,e){return r.weekdays.shorthand[ie.w(a,r,e)]},F:function(a,r,e){return pe(ie.n(a,r,e)-1,!1,r)},G:function(a,r,e){return F(ie.h(a,r,e))},H:function(a){return F(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[j(a.getHours()>11)]},M:function(a,r){return pe(a.getMonth(),!0,r)},S:function(a){return F(a.getSeconds())},U:function(a){return a.getTime()/1e3},W:function(a,r,e){return e.getWeek(a)},Y:function(a){return F(a.getFullYear(),4)},d:function(a){return F(a.getDate())},h:function(a){return a.getHours()%12?a.getHours()%12:12},i:function(a){return F(a.getMinutes())},j:function(a){return a.getDate()},l:function(a,r){return r.weekdays.longhand[a.getDay()]},m:function(a){return F(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)}},ze=function(a){var r=a.config,e=r===void 0?X:r,d=a.l10n,s=d===void 0?re:d,m=a.isMobile,w=m===void 0?!1:m;return function(x,E,N){var b=N||s;return e.formatDate!==void 0&&!w?e.formatDate(x,E,b):E.split("").map(function(C,I,L){return ie[C]&&L[I-1]!=="\\"?ie[C](x,b,e):C!=="\\"?C:""}).join("")}},_e=function(a){var r=a.config,e=r===void 0?X:r,d=a.l10n,s=d===void 0?re:d;return function(m,w,x,E){if(!(m!==0&&!m)){var N=E||s,b,C=m;if(m instanceof Date)b=new Date(m.getTime());else if(typeof m!="string"&&m.toFixed!==void 0)b=new Date(m);else if(typeof m=="string"){var I=w||(e||X).dateFormat,L=String(m).trim();if(L==="today")b=new Date,x=!0;else if(e&&e.parseDate)b=e.parseDate(m,I);else if(/Z$/.test(L)||/GMT$/.test(L))b=new Date(m);else{for(var O=void 0,h=[],T=0,R=0,_="";T<I.length;T++){var V=I[T],z=V==="\\",he=I[T-1]==="\\"||z;if(q[V]&&!he){_+=q[V];var J=new RegExp(_).exec(m);J&&(O=!0)&&h[V!=="Y"?"push":"unshift"]({fn:Sn[V],val:J[++R]})}else z||(_+=".")}b=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),h.forEach(function($){var G=$.fn,ve=$.val;return b=G(b,ve,N)||b}),b=O?b:void 0}}if(!(b instanceof Date&&!isNaN(b.getTime()))){e.errorHandler(new Error("Invalid date provided: "+C));return}return x===!0&&b.setHours(0,0,0,0),b}}};function H(a,r,e){return e===void 0&&(e=!0),e!==!1?new Date(a.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):a.getTime()-r.getTime()}var In=function(a,r,e){return a>Math.min(r,e)&&a<Math.max(r,e)},Se=function(a,r,e){return a*3600+r*60+e},_n=function(a){var r=Math.floor(a/3600),e=(a-r*3600)/60;return[r,e,a-r*3600-e*60]},An={DAY:864e5};function Ie(a){var r=a.defaultHour,e=a.defaultMinute,d=a.defaultSeconds;if(a.minDate!==void 0){var s=a.minDate.getHours(),m=a.minDate.getMinutes(),w=a.minDate.getSeconds();r<s&&(r=s),r===s&&e<m&&(e=m),r===s&&e===m&&d<w&&(d=a.minDate.getSeconds())}if(a.maxDate!==void 0){var x=a.maxDate.getHours(),E=a.maxDate.getMinutes();r=Math.min(r,x),r===x&&(e=Math.min(E,e)),r===x&&e===E&&(d=a.maxDate.getSeconds())}return{hours:r,minutes:e,seconds:d}}typeof Object.assign!="function"&&(Object.assign=function(a){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];if(!a)throw TypeError("Cannot convert undefined or null to object");for(var d=function(x){x&&Object.keys(x).forEach(function(E){return a[E]=x[E]})},s=0,m=r;s<m.length;s++){var w=m[s];d(w)}return a});var S=function(){return S=Object.assign||function(a){for(var r,e=1,d=arguments.length;e<d;e++){r=arguments[e];
vendor: 10,251 bytes, line 1
1for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(a[s]=r[s])}return a},S.apply(this,arguments)},Ue=function(){for(var a=0,r=0,e=arguments.length;r<e;r++)a+=arguments[r].length;for(var d=Array(a),s=0,r=0;r<e;r++)for(var m=arguments[r],w=0,x=m.length;w<x;w++,s++)d[s]=m[w];return d},On=300;function Fn(a,r){var e={config:S(S({},X),k.defaultConfig),l10n:re};e.parseDate=_e({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=h,e._setHoursFromDate=I,e._positionCalendar=ce,e.changeMonth=De,e.changeYear=le,e.clear=en,e.close=nn,e.onMouseOver=fe,e._createElement=D,e.createDay=J,e.destroy=tn,e.isEnabled=U,e.jumpToDate=_,e.updateValue=B,e.open=on,e.redraw=Le,e.set=cn,e.setDate=sn,e.toggle=pn;function d(){e.utils={getDaysInMonth:function(n,t){return n===void 0&&(n=e.currentMonth),t===void 0&&(t=e.currentYear),n===1&&(t%4===0&&t%100!==0||t%400===0)?29:e.l10n.daysInMonth[n]}}}function s(){e.element=e.input=a,e.isOpen=!1,ln(),je(),gn(),dn(),d(),e.isMobile||he(),R(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&I(e.config.noCalendar?e.latestSelectedDateObj:void 0),B(!1)),x();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&n&&ce(),y("onReady")}function m(){var n;return((n=e.calendarContainer)===null||n===void 0?void 0:n.getRootNode()).activeElement||document.activeElement}function w(n){return n.bind(e)}function x(){var n=e.config;n.weekNumbers===!1&&n.showMonths===1||n.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){var t=(e.days.offsetWidth+1)*n.showMonths;e.daysContainer.style.width=t+"px",e.calendarContainer.style.width=t+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function E(n){if(e.selectedDates.length===0){var t=e.config.minDate===void 0||H(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),i=Ie(e.config);t.setHours(i.hours,i.minutes,i.seconds,t.getMilliseconds()),e.selectedDates=[t],e.latestSelectedDateObj=t}n!==void 0&&n.type!=="blur"&&Dn(n);var o=e._input.value;C(),B(),e._input.value!==o&&e._debouncedChange()}function N(n,t){return n%12+12*j(t===e.l10n.amPM[1])}function b(n){switch(n%24){case 0:case 12:return 12;default:return n%12}}function C(){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=N(n,e.amPM.textContent));var o=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&H(e.latestSelectedDateObj,e.config.minDate,!0)===0,l=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&H(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 u=Se(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),p=Se(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),c=Se(n,t,i);if(c>p&&c<u){var v=_n(u);n=v[0],t=v[1],i=v[2]}}else{if(l){var f=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;n=Math.min(n,f.getHours()),n===f.getHours()&&(t=Math.min(t,f.getMinutes())),t===f.getMinutes()&&(i=Math.min(i,f.getSeconds()))}if(o){var g=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;n=Math.max(n,g.getHours()),n===g.getHours()&&t<g.getMinutes()&&(t=g.getMinutes()),t===g.getMinutes()&&(i=Math.max(i,g.getSeconds()))}}L(n,t,i)}}function I(n){var t=n||e.latestSelectedDateObj;t&&t instanceof Date&&L(t.getHours(),t.getMinutes(),t.getSeconds())}function L(n,t,i){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(n%24,t,i||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=F(e.config.time_24hr?n:(12+n)%12+12*j(n%12===0)),e.minuteElement.value=F(t),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[j(n>=12)]),e.secondElement!==void 0&&(e.secondElement.value=F(i)))}function O(n){var t=Y(n),i=parseInt(t.value)+(n.delta||0);(i/1e3>1||n.key==="Enter"&&!/[^\d]/.test(i.toString()))&&le(i)}function h(n,t,i,o){if(t instanceof Array)return t.forEach(function(l){return h(n,l,i,o)});if(n instanceof Array)return n.forEach(function(l){return h(l,t,i,o)});n.addEventListener(t,i,o),e._handlers.push({remove:function(){return n.removeEventListener(t,i,o)}})}function T(){y("onChange")}function R(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(i){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+i+"]"),function(o){return h(o,"click",e[i])})}),e.isMobile){mn();return}var n=Je(rn,50);if(e._debouncedChange=Je(T,On),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&h(e.daysContainer,"mouseover",function(i){e.config.mode==="range"&&fe(Y(i))}),h(e._input,"keydown",Pe),e.calendarContainer!==void 0&&h(e.calendarContainer,"keydown",Pe),!e.config.inline&&!e.config.static&&h(window,"resize",n),window.ontouchstart!==void 0?h(window.document,"touchstart",Me):h(window.document,"mousedown",Me),h(window.document,"focus",Me,{capture:!0}),e.config.clickOpens===!0&&(h(e._input,"focus",e.open),h(e._input,"click",e.open)),e.daysContainer!==void 0&&(h(e.monthNav,"click",vn),h(e.monthNav,["keyup","increment"],O),h(e.daysContainer,"click",Re)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var t=function(i){return Y(i).select()};h(e.timeContainer,["increment"],E),h(e.timeContainer,"blur",E,{capture:!0}),h(e.timeContainer,"click",V),h([e.hourElement,e.minuteElement],["focus","click"],t),e.secondElement!==void 0&&h(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&h(e.amPM,"click",function(i){E(i)})}e.config.allowInput&&h(e._input,"blur",an)}function _(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.maxDate<e.now?e.config.maxDate:e.now),o=e.currentYear,l=e.currentMonth;try{i!==void 0&&(e.currentYear=i.getFullYear(),e.currentMonth=i.getMonth())}catch(u){u.message="Invalid date supplied: "+i,e.config.errorHandler(u)}t&&e.currentYear!==o&&(y("onYearChange"),Z()),t&&(e.currentYear!==o||e.currentMonth!==l)&&y("onMonthChange"),e.redraw()}function V(n){var t=Y(n);~t.className.indexOf("arrow")&&z(n,t.classList.contains("arrowUp")?1:-1)}function z(n,t,i){var o=n&&Y(n),l=i||o&&o.parentNode&&o.parentNode.firstChild,u=Ce("increment");u.delta=t,l&&l.dispatchEvent(u)}function he(){var n=window.document.createDocumentFragment();if(e.calendarContainer=D("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(n.appendChild(Ze()),e.innerContainer=D("div","flatpickr-innerContainer"),e.config.weekNumbers){var t=Xe(),i=t.weekWrapper,o=t.weekNumbers;e.innerContainer.appendChild(i),e.weekNumbers=o,e.weekWrapper=i}e.rContainer=D("div","flatpickr-rContainer"),e.rContainer.appendChild(Fe()),e.daysContainer||(e.daysContainer=D("div","flatpickr-days"),e.daysContainer.tabIndex=-1),oe(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),n.appendChild(e.innerContainer)}e.config.enableTime&&n.appendChild(Qe()),A(e.calendarContainer,"rangeMode",e.config.mode==="range"),A(e.calendarContainer,"animate",e.config.animate===!0),A(e.calendarContainer,"multiMonth",e.config.showMonths>1),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 u=D("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(u,e.element),u.appendChild(e.element),e.altInput&&u.appendChild(e.altInput),u.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function J(n,t,i,o){var l=U(t,!0),u=D("span",n,t.getDate().toString());return u.dateObj=t,u.$i=o,u.setAttribute("aria-label",e.formatDate(t,e.config.ariaDateFormat)),n.indexOf("hidden")===-1&&H(t,e.now)===0&&(e.todayDateElem=u,u.classList.add("today"),u.setAttribute("aria-current","date")),l?(u.tabIndex=-1,we(t)&&(u.classList.add("selected"),e.selectedDateElem=u,e.config.mode==="range"&&(A(u,"startRange",e.selectedDates[0]&&H(t,e.selectedDates[0],!0)===0),A(u,"endRange",e.selectedDates[1]&&H(t,e.selectedDates[1],!0)===0),n==="nextMonthDay"&&u.classList.add("inRange")))):u.classList.add("flatpickr-disabled"),e.config.mode==="range"&&hn(t)&&!we(t)&&u.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&n!=="prevMonthDay"&&o%7===6&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(t)+"</span>"),y("onDayCreate",u),u}function $(n){n.focus(),e.config.mode==="range"&&fe(n)}function G(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],u=n>0?0:l.children.length-1,p=n>0?l.children.length:-1,c=u;c!=p;c+=n){var v=l.children[c];if(v.className.indexOf("hidden")===-1&&U(v.dateObj))return v}}function ve(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,u=i-e.currentMonth;u!=o;u+=l)for(var p=e.daysContainer.children[u],c=i-e.currentMonth===u?n.$i+t:t<0?p.children.length-1:0,v=p.children.length,f=c;f>=0&&f<v&&f!=(t>0?v:-1);f+=l){var g=p.children[f];if(g.className.indexOf("hidden")===-1&&U(g.dateObj)&&Math.abs(n.$i-f)>=Math.abs(t))return $(g)}e.changeMonth(l),ne(G(l),0)}function ne(n,t){var i=m(),o=ue(i||document.body),l=n!==void 0?n:o?i:e.selectedDateElem!==void 0&&ue(e.selectedDateElem)?e.
vendor: 6,635 bytes, line 1
1selectedDateElem:e.todayDateElem!==void 0&&ue(e.todayDateElem)?e.todayDateElem:G(t>0?1:-1);l===void 0?e._input.focus():o?ve(l,t):$(l)}function $e(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),u=window.document.createDocumentFragment(),p=e.config.showMonths>1,c=p?"prevMonthDay hidden":"prevMonthDay",v=p?"nextMonthDay hidden":"nextMonthDay",f=o+1-i,g=0;f<=o;f++,g++)u.appendChild(J("flatpickr-day "+c,new Date(n,t-1,f),f,g));for(f=1;f<=l;f++,g++)u.appendChild(J("flatpickr-day",new Date(n,t,f),f,g));for(var M=l+1;M<=42-i&&(e.config.showMonths===1||g%7!==0);M++,g++)u.appendChild(J("flatpickr-day "+v,new Date(n,t+1,M%l),M,g));var W=D("div","dayContainer");return W.appendChild(u),W}function oe(){if(e.daysContainer!==void 0){ge(e.daysContainer),e.weekNumbers&&ge(e.weekNumbers);for(var n=document.createDocumentFragment(),t=0;t<e.config.showMonths;t++){var i=new Date(e.currentYear,e.currentMonth,1);i.setMonth(e.currentMonth+t),n.appendChild($e(i.getFullYear(),i.getMonth()))}e.daysContainer.appendChild(n),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&fe()}}function Z(){if(!(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")){var n=function(o){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&o<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&o>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(n(t)){var i=D("option","flatpickr-monthDropdown-month");i.value=new Date(e.currentYear,t).getMonth().toString(),i.textContent=pe(t,e.config.shorthandCurrentMonth,e.l10n),i.tabIndex=-1,e.currentMonth===t&&(i.selected=!0),e.monthsDropdownContainer.appendChild(i)}}}function Ge(){var n=D("div","flatpickr-month"),t=window.document.createDocumentFragment(),i;e.config.showMonths>1||e.config.monthSelectorType==="static"?i=D("span","cur-month"):(e.monthsDropdownContainer=D("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),h(e.monthsDropdownContainer,"change",function(p){var c=Y(p),v=parseInt(c.value,10);e.changeMonth(v-e.currentMonth),y("onMonthChange")}),Z(),i=e.monthsDropdownContainer);var o=me("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 u=D("div","flatpickr-current-month");return u.appendChild(i),u.appendChild(o),t.appendChild(u),n.appendChild(t),{container:n,yearElement:l,monthElement:i}}function Oe(){ge(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var n=e.config.showMonths;n--;){var t=Ge();e.yearElements.push(t.yearElement),e.monthElements.push(t.monthElement),e.monthNav.appendChild(t.container)}e.monthNav.appendChild(e.nextMonthNav)}function Ze(){return e.monthNav=D("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=D("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=D("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,Oe(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(n){e.__hidePrevMonthArrow!==n&&(A(e.prevMonthNav,"flatpickr-disabled",n),e.__hidePrevMonthArrow=n)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(n){e.__hideNextMonthArrow!==n&&(A(e.nextMonthNav,"flatpickr-disabled",n),e.__hideNextMonthArrow=n)}}),e.currentYearElement=e.yearElements[0],de(),e.monthNav}function Qe(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var n=Ie(e.config);e.timeContainer=D("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var t=D("span","flatpickr-time-separator",":"),i=me("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=i.getElementsByTagName("input")[0];var o=me("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=o.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=F(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?n.hours:b(n.hours)),e.minuteElement.value=F(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=me("flatpickr-second");e.secondElement=l.getElementsByTagName("input")[0],e.secondElement.value=F(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(D("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(l)}return e.config.time_24hr||(e.amPM=D("span","flatpickr-am-pm",e.l10n.amPM[j((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 Fe(){e.weekdayContainer?ge(e.weekdayContainer):e.weekdayContainer=D("div","flatpickr-weekdays");for(var n=e.config.showMonths;n--;){var t=D("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(t)}return Ne(),e.weekdayContainer}function Ne(){if(e.weekdayContainer){var n=e.l10n.firstDayOfWeek,t=Ue(e.l10n.weekdays.shorthand);n>0&&n<t.length&&(t=Ue(t.splice(n,t.length),t.splice(0,n)));for(var i=e.config.showMonths;i--;)e.weekdayContainer.children[i].innerHTML=`
2      <span class='flatpickr-weekday'>
3        `+t.join("</span><span class='flatpickr-weekday'>")+`
4      </span>
5      `}}function Xe(){e.calendarContainer.classList.add("hasWeeks");var n=D("div","flatpickr-weekwrapper");n.appendChild(D("span","flatpickr-weekday",e.l10n.weekAbbreviation));var t=D("div","flatpickr-weeks");return n.appendChild(t),{weekWrapper:n,weekNumbers:t}}function De(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,y("onYearChange"),Z()),oe(),y("onMonthChange"),de())}function en(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=Ie(e.config),o=i.hours,l=i.minutes,u=i.seconds;L(o,l,u)}e.redraw(),n&&y("onChange")}function nn(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),y("onClose")}function tn(){e.config!==void 0&&y("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 te(n){return e.calendarContainer.contains(n)}function Me(n){if(e.isOpen&&!e.config.inline){var t=Y(n),i=te(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&&!te(n.relatedTarget),u=!e.config.ignoredFocusElements.some(function(p){return p.contains(t)});l&&u&&(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 le(n){if(!(!n||e.config.minDate&&n<e.config.minDate.getFullYear()||e.config.maxDate&&n>e.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(),y("onYearChange"),Z())}}function U(n,t){var i;t===void 0&&(t=!0);var o=e.parseDate(n,void 0,t);if(e.config.minDate&&o&&H(o,e.config.minDate,t!==void 0?t:!e.minDateHasTime)<0||e.config.maxDate&&o&&H(o,e.config.maxDate,t!==void 0?t:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;
vendor: 17,289 bytes, line 5
5if(o===void 0)return!1;for(var l=!!e.config.enable,u=(i=e.config.enable)!==null&&i!==void 0?i:e.config.disable,p=0,c=void 0;p<u.length;p++){if(c=u[p],typeof c=="function"&&c(o))return l;if(c instanceof Date&&o!==void 0&&c.getTime()===o.getTime())return l;if(typeof c=="string"){var v=e.parseDate(c,void 0,!0);return v&&v.getTime()===o.getTime()?l:!l}else if(typeof c=="object"&&o!==void 0&&c.from&&c.to&&o.getTime()>=c.from.getTime()&&o.getTime()<=c.to.getTime())return l}return!l}function ue(n){return e.daysContainer!==void 0?n.className.indexOf("hidden")===-1&&n.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(n):!1}function an(n){var t=n.target===e._input,i=e._input.value.trimEnd()!==ye();t&&i&&!(n.relatedTarget&&te(n.relatedTarget))&&e.setDate(e._input.value,!0,n.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Pe(n){var t=Y(n),i=e.config.wrap?a.contains(t):t===e._input,o=e.config.allowInput,l=e.isOpen&&(!o||!i),u=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(te(t)||l||u){var p=!!e.timeContainer&&e.timeContainer.contains(t);switch(n.keyCode){case 13:p?(n.preventDefault(),E(),be()):Re(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(!p&&!i){n.preventDefault();var c=m();if(e.daysContainer!==void 0&&(o===!1||c&&ue(c))){var v=n.keyCode===39?1:-1;n.ctrlKey?(n.stopPropagation(),De(v),ne(G(1),0)):ne(void 0,v)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:n.preventDefault();var f=n.keyCode===40?1:-1;e.daysContainer&&t.$i!==void 0||t===e.input||t===e.altInput?n.ctrlKey?(n.stopPropagation(),le(e.currentYear-f),ne(G(1),0)):p||ne(void 0,f*7):t===e.currentYearElement?le(e.currentYear-f):e.config.enableTime&&(!p&&e.hourElement&&e.hourElement.focus(),E(n),e._debouncedChange());break;case 9:if(p){var g=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(P){return P}),M=g.indexOf(t);if(M!==-1){var W=g[M+(n.shiftKey?-1:1)];n.preventDefault(),(W||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],C(),B();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],C(),B();break}(i||te(t))&&y("onKeyDown",n)}function fe(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()),u=Math.max(i,e.selectedDates[0].getTime()),p=!1,c=0,v=0,f=l;f<u;f+=An.DAY)U(new Date(f),!0)||(p=p||f>l&&f<u,f<o&&(!c||f>c)?c=f:f>o&&(!v||f<v)&&(v=f));var g=Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+"+e.config.showMonths+") > ."+t));g.forEach(function(M){var W=M.dateObj,P=W.getTime(),ae=c>0&&P<c||v>0&&P>v;if(ae){M.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Q){M.classList.remove(Q)});return}else if(p&&!ae)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Q){M.classList.remove(Q)}),n!==void 0&&(n.classList.add(i<=e.selectedDates[0].getTime()?"startRange":"endRange"),o<i&&P===o?M.classList.add("startRange"):o>i&&P===o&&M.classList.add("endRange"),P>=c&&(v===0||P<=v)&&In(P,o,i)&&M.classList.add("inRange"))})}}function rn(){e.isOpen&&!e.config.static&&!e.config.inline&&ce()}function on(n,t){if(t===void 0&&(t=e._positionElement),e.isMobile===!0){if(n){n.preventDefault();var i=Y(n);i&&i.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),y("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"),y("onOpen"),ce(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 Ye(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 U(l)}),!e.selectedDates.length&&n==="min"&&I(i),B()),e.daysContainer&&(Le(),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 ln(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=S(S({},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(g){e.config._enable=Be(g)}}),Object.defineProperty(e.config,"disable",{get:function(){return e.config._disable},set:function(g){e.config._disable=Be(g)}});var o=t.mode==="time";if(!t.dateFormat&&(t.enableTime||o)){var l=k.defaultConfig.dateFormat||X.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 u=k.defaultConfig.altFormat||X.altFormat;i.altFormat=t.noCalendar||o?"h:i"+(t.enableSeconds?":S K":" K"):u+(" h:i"+(t.enableSeconds?":S":"")+" K")}Object.defineProperty(e.config,"minDate",{get:function(){return e.config._minDate},set:Ye("min")}),Object.defineProperty(e.config,"maxDate",{get:function(){return e.config._maxDate},set:Ye("max")});var p=function(g){return function(M){e.config[g==="min"?"_minTime":"_maxTime"]=e.parseDate(M,"H:i:S")}};Object.defineProperty(e.config,"minTime",{get:function(){return e.config._minTime},set:p("min")}),Object.defineProperty(e.config,"maxTime",{get:function(){return e.config._maxTime},set:p("max")}),t.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,i,t);for(var c=0;c<n.length;c++)e.config[n[c]]=e.config[n[c]]===!0||e.config[n[c]]==="true";Ee.filter(function(g){return e.config[g]!==void 0}).forEach(function(g){e.config[g]=ke(e.config[g]||[]).map(w)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var c=0;c<e.config.plugins.length;c++){var v=e.config.plugins[c](e)||{};for(var f in v)Ee.indexOf(f)>-1?e.config[f]=ke(v[f]).map(w).concat(e.config[f]):typeof t[f]>"u"&&(e.config[f]=v[f])}t.altInputClass||(e.config.altInputClass=He().className+" "+e.config.altInputClass),y("onParseConfig")}function He(){return e.config.wrap?a.querySelector("[data-input]"):a}function je(){typeof e.config.locale!="object"&&typeof k.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=S(S({},k.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?k.l10ns[e.config.locale]:void 0),q.D="("+e.l10n.weekdays.shorthand.join("|")+")",q.l="("+e.l10n.weekdays.longhand.join("|")+")",q.M="("+e.l10n.months.shorthand.join("|")+")",q.F="("+e.l10n.months.longhand.join("|")+")",q.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var n=S(S({},r),JSON.parse(JSON.stringify(a.dataset||{})));n.time_24hr===void 0&&k.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=ze(e),e.parseDate=_e({config:e.config,l10n:e.l10n})}function ce(n){if(typeof e.config.position=="function")return void e.config.position(e,n);if(e.calendarContainer!==void 0){y("onPreCalendarPosition");var t=n||e._positionElement,i=Array.prototype.reduce.call(e.calendarContainer.children,(function(kn,Tn){return kn+Tn.offsetHeight}),0),o=e.calendarContainer.offsetWidth,l=e.config.position.split(" "),u=l[0],p=l.length>1?l[1]:null,c=t.getBoundingClientRect(),v=window.innerHeight-c.bottom,f=u==="above"||u!=="below"&&v<i&&c.top>i,g=window.pageYOffset+c.top+(f?-i-2:t.offsetHeight+2);if(A(e.calendarContainer,"arrowTop",!f),A(e.calendarContainer,"arrowBottom",f),!e.config.inline){var M=window.pageXOffset+c.left,W=!1,P=!1;p==="center"?(M-=(o-c.width)/2,W=!0):p==="right"&&(M-=o-c.width,P=!0),A(e.calendarContainer,"arrowLeft",!W&&!P),A(e.calendarContainer,"arrowCenter",W),A(e.calendarContainer,"arrowRight",P);var ae=window.document.body.offsetWidth-(window.pageXOffset+c.right),Q=M+o>window.document.body.offsetWidth,Mn=ae+o>window.document.body.offsetWidth;if(A(e.calendarContainer,"rightMost",Q),!e.config.static)if(e.calendarContainer.style.top=g+"px",!Q)e.calendarContainer.style.left=M+"px",e.calendarContainer.style.right="auto";else if(!Mn)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=ae+"px";else{var xe=un();if(xe===void 0)return;var bn=window.document.body.offsetWidth,Cn=Math.max(0,bn/2-o/2),wn=".flatpickr-calendar.centerMost:before",yn=".flatpickr-calendar.centerMost:after",xn=xe.cssRules.length,En="{left:"+c.left+"px;right:auto;}";A(e.calendarContainer,"rightMost",!1),A(e.calendarContainer,"centerMost",!0),xe.insertRule(wn+","+yn+En,xn),e.calendarContainer.style.left=Cn+"px",e.calendarContainer.style.right="auto"}}}}function un(){for(var n=null,t=0;t<document.styleSheets.length;t++){var i=document.styleSheets[t];if(i.cssRules){try{i.cssRules}catch{continue}n=i;break}}return n??fn()}function fn(){var n=document.createElement("style");return document.head.appendChild(n),n.sheet}function Le(){e.config.noCalendar||e.isMobile||(Z(),de(),oe())}function be(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function Re(n){n.preventDefault(),n.stopPropagation();var t=function(g){return g.classList&&g.classList.contains("flatpickr-day")&&!g.classList.contains("flatpickr-disabled")&&!g.classList.contains("notAllowed")},i=qe(Y(n),t);if(i!==void 0){var o=i,l=e.latestSelectedDateObj=new Date(o.dateObj.getTime()),u=(l.getMonth()<e.currentMonth||l.getMonth()>e.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 p=we(l);p?e.selectedDates.splice(parseInt(p),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),H(l,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(g,M){return g.getTime()-M.getTime()}));if(C(),u){var c=e.currentYear!==l.getFullYear();e.currentYear=l.getFullYear(),e.currentMonth=l.getMonth(),c&&(y("onYearChange"),Z()),y("onMonthChange")}if(de(),oe(),B(),!u&&e.config.mode!=="range"&&e.config.showMonths===1?$(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 v=e.config.mode==="single"&&!e.config.enableTime,f=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(v||f)&&be()}T()}}var se={locale:[je,Ne],showMonths:[Oe,x,Fe],minDate:[_],maxDate:[_],positionElement:[Ke],clickOpens:[function(){e.config.clickOpens===!0?(h(e._input,"focus",e.open),h(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function cn(n,t){if(n!==null&&typeof n=="object"){Object.assign(e.config,n);for(var i in n)se[i]!==void 0&&se[i].forEach(function(o){return o()})}else e.config[n]=t,se[n]!==void 0?se[n].forEach(function(o){return o()}):Ee.indexOf(n)>-1&&(e.config[n]=ke(t));e.redraw(),B(!0)}function We(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&&U(o,!1)}),e.config.mode==="range"&&e.selectedDates.sort(function(o,l){return o.getTime()-l.getTime()})}function sn(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);We(n,i),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),_(void 0,t),I(),e.selectedDates.length===0&&e.clear(!1),B(t),t&&y("onChange")}function Be(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 dn(){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&&We(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()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>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 gn(){if(e.input=He(),!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=D(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"),Ke()}function Ke(){e._positionElement=e.config.positionElement||e._input}function mn(){var n=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=D("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{}h(e.mobileInput,"change",function(t){e.setDate(Y(t).value,!1,e.mobileFormatStr),y("onChange"),y("onClose")})}function pn(n){if(e.isOpen===!0)return e.close();e.open(n)}function y(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<i.length;o++)i[o](e.selectedDates,e.input.value,e,t);n==="onChange"&&(e.input.dispatchEvent(Ce("change")),e.input.dispatchEvent(Ce("input")))}}function Ce(n){var t=document.createEvent("Event");return t.initEvent(n,!0,!0),t}function we(n){for(var t=0;t<e.selectedDates.length;t++){var i=e.selectedDates[t];if(i instanceof Date&&H(i,n)===0)return""+t}return!1}function hn(n){return e.config.mode!=="range"||e.selectedDates.length<2?!1:H(n,e.selectedDates[0])>=0&&H(n,e.selectedDates[1])<=0}function de(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEac
5h(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=pe(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.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function ye(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 B(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=ye(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=ye(e.config.altFormat)),n!==!1&&y("onValueUpdate")}function vn(n){var t=Y(n),i=e.prevMonthNav.contains(t),o=e.nextMonthNav.contains(t);i||o?De(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 Dn(n){n.preventDefault();var t=n.type==="keydown",i=Y(n),o=i;e.amPM!==void 0&&i===e.amPM&&(e.amPM.textContent=e.l10n.amPM[j(e.amPM.textContent===e.l10n.amPM[0])]);var l=parseFloat(o.getAttribute("min")),u=parseFloat(o.getAttribute("max")),p=parseFloat(o.getAttribute("step")),c=parseInt(o.value,10),v=n.delta||(t?n.which===38?1:-1:0),f=c+p*v;if(typeof o.value<"u"&&o.value.length===2){var g=o===e.hourElement,M=o===e.minuteElement;f<l?(f=u+f+j(!g)+(j(g)&&j(!e.amPM)),M&&z(void 0,-1,e.hourElement)):f>u&&(f=o===e.hourElement?f-u-j(!e.amPM):l,M&&z(void 0,1,e.hourElement)),e.amPM&&g&&(p===1?f+c===23:Math.abs(f-c)>p)&&(e.amPM.textContent=e.l10n.amPM[j(e.amPM.textContent===e.l10n.amPM[0])]),o.value=F(f)}}return s(),e}function ee(a,r){for(var e=Array.prototype.slice.call(a).filter(function(w){return w instanceof HTMLElement}),d=[],s=0;s<e.length;s++){var m=e[s];try{if(m.getAttribute("data-fp-omit")!==null)continue;m._flatpickr!==void 0&&(m._flatpickr.destroy(),m._flatpickr=void 0),m._flatpickr=Fn(m,r||{}),d.push(m._flatpickr)}catch(w){console.error(w)}}return d.length===1?d[0]:d}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(a){return ee(this,a)},HTMLElement.prototype.flatpickr=function(a){return ee([this],a)});var k=function(a,r){return typeof a=="string"?ee(window.document.querySelectorAll(a),r):a instanceof Node?ee([a],r):ee(a,r)};k.defaultConfig={};k.l10ns={en:S({},re),default:S({},re)};k.localize=function(a){k.l10ns.default=S(S({},k.l10ns.default),a)};k.setDefaults=function(a){k.defaultConfig=S(S({},k.defaultConfig),a)};k.parseDate=_e({});k.formatDate=ze({});k.compareDates=H;typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(a){return ee(this,a)});Date.prototype.fp_incr=function(a){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof a=="string"?parseInt(a,10):a))};typeof window<"u"&&(window.flatpickr=k);const Nn=["onCreate","onDestroy"],Ae=["onChange","onOpen","onClose","onMonthChange","onYearChange","onReady","onValueUpdate","onDayCreate"],Pn=(a,r)=>(Ae.forEach(e=>{const d=r[e],s=a[e];if(d){s&&!Array.isArray(s)?a[e]=[a[e]]:a[e]||(a[e]=[]);const m=Array.isArray(d)?d:[d];a[e].length===0?a[e]=m:a[e].push(...m)}}),Ae.forEach(e=>{delete r[e]}),Nn.forEach(e=>{delete r[e]}),a),Hn=a=>{const r=K.useMemo(()=>({...a}),[a]),{defaultValue:e,options:d={},value:s,children:m,render:w,onCreate:x,onDestroy:E}=r,N=K.useMemo(()=>Pn(d,r),[d,r]),b=K.useRef(null),C=K.useRef(void 0);K.useImperativeHandle(a.ref,()=>({get flatpickr(){return C.current}}),[]),K.useEffect(()=>{const O=()=>{var T;N.onClose=N.onClose||(()=>{var R;(R=b.current)!=null&&R.blur&&b.current.blur()}),C.current=(((T=k)==null?void 0:T.default)||k)(b.current,N),x?.(C.current)},h=()=>{E?.(C.current),C.current&&C.current.destroy(),C.current=void 0};return O(),()=>{h()}},[N,x,E]),K.useEffect(()=>{var O;if(C.current){const h=Object.getOwnPropertyNames(N);for(let T=h.length-1;T>=0;T--){const R=h[T];let _=N[R];_?.toString()!==((O=C.current.config[R])==null?void 0:O.toString())&&
5(Ae.includes(R)&&!Array.isArray(_)&&(_=[_]),C.current.set(R,_))}s!==void 0&&s!==C.current.input.value&&C.current.setDate(s,!1)}},[N,s]);const I=K.useCallback(O=>{b.current=O},[]);if(w)return w({...r,defaultValue:e,value:s},I);const L=K.useCallback(O=>{var h,T;a&&a.onChange&&(Array.isArray(a?.onChange)?(h=a?.onChange)==null||h.forEach(()=>[new Date(O.target.value)],s?.toString()||""):typeof a.onChange=="function"&&((T=a?.onChange)==null||T.call(a,[new Date(O.target.value)],s?.toString()||"",C.current)))},[a,s]);return d.wrap?Ve.jsx("div",{className:"flatpickr",ref:I,children:m}):Ve.jsx("input",{onChange:L,...r,value:s?.toString(),defaultValue:e,ref:I})};export{Hn as default};
6//# sourceMappingURL=react-flatpickr.V2CR5Lib.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.