PageSourceSearch

https://www.ato.com.my/catalog/view/theme/aio/plugins/flatpickr.js?ver=1.0

js ato.com.my collected 2026-10-06 18:17:33 UTC 74,232 bytes, 1,262 lines download raw bytes

vendor: 3,835 bytes, lines 1-82
1/* flatpickr v4.6.1,, @license MIT */ ! function(e, t) {
2    "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = e || self).flatpickr = t()
3}(this, function() {
4    "use strict";
5    var e = function() {
6            return (e = Object.assign || function(e) {
7                for (var t, n = 1, a = arguments.length; n < a; n++)
8                    for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
9                return e
10            }).apply(this, arguments)
11        },
12        t = ["onChange", "onClose", "onDayCreate", "onDestroy", "onKeyDown", "onMonthChange", "onOpen", "onParseConfig", "onReady", "onValueUpdate", "onYearChange", "onPreCalendarPosition"],
13        n = {
14            _disable: [],
15            _enable: [],
16            allowInput: !1,
17            altFormat: "F j, Y",
18            altInput: !1,
19            altInputClass: "form-control input",
20            animate: "object" == typeof window && -1 === window.navigator.userAgent.indexOf("MSIE"),
21            ariaDateFormat: "F j, Y",
22            clickOpens: !0,
23            closeOnSelect: !0,
24            conjunction: ", ",
25            dateFormat: "Y-m-d",
26            defaultHour: 12,
27            defaultMinute: 0,
28            defaultSeconds: 0,
29            disable: [],
30            disableMobile: !1,
31            enable: [],
32            enableSeconds: !1,
33            enableTime: !1,
34            errorHandler: function(e) {
35                return "undefined" != typeof console && console.warn(e)
36            },
37            getWeek: function(e) {
38                var t = new Date(e.getTime());
39                t.setHours(0, 0, 0, 0), t.setDate(t.getDate() + 3 - (t.getDay() + 6) % 7);
40                var n = new Date(t.getFullYear(), 0, 4);
41                return 1 + Math.round(((t.getTime() - n.getTime()) / 864e5 - 3 + (n.getDay() + 6) % 7) / 7)
42            },
43            hourIncrement: 1,
44            ignoredFocusElements: [],
45            inline: !1,
46            locale: "default",
47            minuteIncrement: 5,
48            mode: "single",
49            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>",
50            noCalendar: !1,
51            now: new Date,
52            onChange: [],
53            onClose: [],
54            onDayCreate: [],
55            onDestroy: [],
56            onKeyDown: [],
57            onMonthChange: [],
58            onOpen: [],
59            onParseConfig: [],
60            onReady: [],
61            onValueUpdate: [],
62            onYearChange: [],
63            onPreCalendarPosition: [],
64            plugins: [],
65            position: "auto",
66            positionElement: void 0,
67            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>",
68            shorthandCurrentMonth: !1,
69            showMonths: 1,
70            static: true,
71            time_24hr: !1,
72            weekNumbers: !1,
73            wrap: !1
74        },
75        a = {
76            weekdays: {
77                shorthand: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
78                longhand: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
79            },
80            months: {
81                shorthand: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
82                longhand: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
vendor: 11,391 bytes, lines 82-413
82November", "December"]
83            },
84            daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
85            firstDayOfWeek: 0,
86            ordinal: function(e) {
87                var t = e % 100;
88                if (t > 3 && t < 21) return "th";
89                switch (t % 10) {
90                    case 1:
91                        return "st";
92                    case 2:
93                        return "nd";
94                    case 3:
95                        return "rd";
96                    default:
97                        return "th"
98                }
99            },
100            rangeSeparator: " to ",
101            weekAbbreviation: "Wk",
102            scrollTitle: "Scroll to increment",
103            toggleTitle: "Click to toggle",
104            amPM: ["AM", "PM"],
105            yearAriaLabel: "Year",
106            time_24hr: !1
107        },
108        i = function(e) {
109            return ("0" + e).slice(-2)
110        },
111        o = function(e) {
112            return !0 === e ? 1 : 0
113        };
114
115    function r(e, t, n) {
116        var a;
117        return void 0 === n && (n = !1),
118            function() {
119                var i = this,
120                    o = arguments;
121                null !== a && clearTimeout(a), a = window.setTimeout(function() {
122                    a = null, n || e.apply(i, o)
123                }, t), n && !a && e.apply(i, o)
124            }
125    }
126    var l = function(e) {
127        return e instanceof Array ? e : [e]
128    };
129
130    function c(e, t, n) {
131        if (!0 === n) return e.classList.add(t);
132        e.classList.remove(t)
133    }
134
135    function d(e, t, n) {
136        var a = window.document.createElement(e);
137        return t = t || "", n = n || "", a.className = t, void 0 !== n && (a.textContent = n), a
138    }
139
140    function s(e) {
141        for (; e.firstChild;) e.removeChild(e.firstChild)
142    }
143
144    function u(e, t) {
145        var n = d("div", "numInputWrapper"),
146            a = d("input", "numInput " + e),
147            i = d("span", "arrowUp"),
148            o = d("span", "arrowDown");
149        if (-1 === navigator.userAgent.indexOf("MSIE 9.0") ? a.type = "number" : (a.type = "text", a.pattern = "\\d*"), void 0 !== t)
150            for (var r in t) a.setAttribute(r, t[r]);
151        return n.appendChild(a), n.appendChild(i), n.appendChild(o), n
152    }
153    var f = function() {},
154        m = function(e, t, n) {
155            return n.months[t ? "shorthand" : "longhand"][e]
156        },
157        g = {
158            D: f,
159            F: function(e, t, n) {
160                e.setMonth(n.months.longhand.indexOf(t))
161            },
162            G: function(e, t) {
163                e.setHours(parseFloat(t))
164            },
165            H: function(e, t) {
166                e.setHours(parseFloat(t))
167            },
168            J: function(e, t) {
169                e.setDate(parseFloat(t))
170            },
171            K: function(e, t, n) {
172                e.setHours(e.getHours() % 12 + 12 * o(new RegExp(n.amPM[1], "i").test(t)))
173            },
174            M: function(e, t, n) {
175                e.setMonth(n.months.shorthand.indexOf(t))
176            },
177            S: function(e, t) {
178                e.setSeconds(parseFloat(t))
179            },
180            U: function(e, t) {
181                return new Date(1e3 * parseFloat(t))
182            },
183            W: function(e, t, n) {
184                var a = parseInt(t),
185                    i = new Date(e.getFullYear(), 0, 2 + 7 * (a - 1), 0, 0, 0, 0);
186                return i.setDate(i.getDate() - i.getDay() + n.firstDayOfWeek), i
187            },
188            Y: function(e, t) {
189                e.setFullYear(parseFloat(t))
190            },
191            Z: function(e, t) {
192                return new Date(t)
193            },
194            d: function(e, t) {
195                e.setDate(parseFloat(t))
196            },
197            h: function(e, t) {
198                e.setHours(parseFloat(t))
199            },
200            i: function(e, t) {
201                e.setMinutes(parseFloat(t))
202            },
203            j: function(e, t) {
204                e.setDate(parseFloat(t))
205            },
206            l: f,
207            m: function(e, t) {
208                e.setMonth(parseFloat(t) - 1)
209            },
210            n: function(e, t) {
211                e.setMonth(parseFloat(t) - 1)
212            },
213            s: function(e, t) {
214                e.setSeconds(parseFloat(t))
215            },
216            u: function(e, t) {
217                return new Date(parseFloat(t))
218            },
219            w: f,
220            y: function(e, t) {
221                e.setFullYear(2e3 + parseFloat(t))
222            }
223        },
224        p = {
225            D: "(\\w+)",
226            F: "(\\w+)",
227            G: "(\\d\\d|\\d)",
228            H: "(\\d\\d|\\d)",
229            J: "(\\d\\d|\\d)\\w+",
230            K: "",
231            M: "(\\w+)",
232            S: "(\\d\\d|\\d)",
233            U: "(.+)",
234            W: "(\\d\\d|\\d)",
235            Y: "(\\d{4})",
236            Z: "(.+)",
237            d: "(\\d\\d|\\d)",
238            h: "(\\d\\d|\\d)",
239            i: "(\\d\\d|\\d)",
240            j: "(\\d\\d|\\d)",
241            l: "(\\w+)",
242            m: "(\\d\\d|\\d)",
243            n: "(\\d\\d|\\d)",
244            s: "(\\d\\d|\\d)",
245            u: "(.+)",
246            w: "(\\d\\d|\\d)",
247            y: "(\\d{2})"
248        },
249        h = {
250            Z: function(e) {
251                return e.toISOString()
252            },
253            D: function(e, t, n) {
254                return t.weekdays.shorthand[h.w(e, t, n)]
255            },
256            F: function(e, t, n) {
257                return m(h.n(e, t, n) - 1, !1, t)
258            },
259            G: function(e, t, n) {
260                return i(h.h(e, t, n))
261            },
262            H: function(e) {
263                return i(e.getHours())
264            },
265            J: function(e, t) {
266                return void 0 !== t.ordinal ? e.getDate() + t.ordinal(e.getDate()) : e.getDate()
267            },
268            K: function(e, t) {
269                return t.amPM[o(e.getHours() > 11)]
270            },
271            M: function(e, t) {
272                return m(e.getMonth(), !0, t)
273            },
274            S: function(e) {
275                return i(e.getSeconds())
276            },
277            U: function(e) {
278                return e.getTime() / 1e3
279            },
280            W: function(e, t, n) {
281                return n.getWeek(e)
282            },
283            Y: function(e) {
284                return e.getFullYear()
285            },
286            d: function(e) {
287                return i(e.getDate())
288            },
289            h: function(e) {
290                return e.getHours() % 12 ? e.getHours() % 12 : 12
291            },
292            i: function(e) {
293                return i(e.getMinutes())
294            },
295            j: function(e) {
296                return e.getDate()
297            },
298            l: function(e, t) {
299                return t.weekdays.longhand[e.getDay()]
300            },
301            m: function(e) {
302                return i(e.getMonth() + 1)
303            },
304            n: function(e) {
305                return e.getMonth() + 1
306            },
307            s: function(e) {
308                return e.getSeconds()
309            },
310            u: function(e) {
311                return e.getTime()
312            },
313            w: function(e) {
314                return e.getDay()
315            },
316            y: function(e) {
317                return String(e.getFullYear()).substring(2)
318            }
319        },
320        v = function(e) {
321            var t = e.config,
322                i = void 0 === t ? n : t,
323                o = e.l10n,
324                r = void 0 === o ? a : o;
325            return function(e, t, n) {
326                var a = n || r;
327                return void 0 !== i.formatDate ? i.formatDate(e, t, a) : t.split("").map(function(t, n, o) {
328                    return h[t] && "\\" !== o[n - 1] ? h[t](e, a, i) : "\\" !== t ? t : ""
329                }).join("")
330            }
331        },
332        D = function(e) {
333            var t = e.config,
334                i = void 0 === t ? n : t,
335                o = e.l10n,
336                r = void 0 === o ? a : o;
337            return function(e, t, a, o) {
338                if (0 === e || e) {
339                    var l, c = o || r,
340                        d = e;
341                    if (e instanceof Date) l = new Date(e.getTime());
342                    else if ("string" != typeof e && void 0 !== e.toFixed) l = new Date(e);
343                    else if ("string" == typeof e) {
344                        var s = t || (i || n).dateFormat,
345                            u = String(e).trim();
346                        if ("today" === u) l = new Date, a = !0;
347                        else if (/Z$/.test(u) || /GMT$/.test(u)) l = new Date(e);
348                        else if (i && i.parseDate) l = i.parseDate(e, s);
349                        else {
350                            l = i && i.noCalendar ? new Date((new Date).setHours(0, 0, 0, 0)) : new Date((new Date).getFullYear(), 0, 1, 0, 0, 0, 0);
351                            for (var f = void 0, m = [], h = 0, v = 0, D = ""; h < s.length; h++) {
352                                var w = s[h],
353                                    C = "\\" === w,
354                                    M = "\\" === s[h - 1] || C;
355                                if (p[w] && !M) {
356                                    D += p[w];
357                                    var b = new RegExp(D).exec(e);
358                                    b && (f = !0) && m["Y" !== w ? "push" : "unshift"]({
359                                        fn: g[w],
360                                        val: b[++v]
361                                    })
362                                } else C || (D += ".");
363                                m.forEach(function(e) {
364                                    var t = e.fn,
365                                        n = e.val;
366                                    return l = t(l, n, c) || l
367                                })
368                            }
369                            l = f ? l : void 0
370                        }
371                    }
372                    if (l instanceof Date && !isNaN(l.getTime())) return !0 === a && l.setHours(0, 0, 0, 0), l;
373                    i.errorHandler(new Error("Invalid date provided: " + d))
374                }
375            }
376        };
377
378    function w(e, t, n) {
379        return void 0 === n && (n = !0), !1 !== n ? new Date(e.getTime()).setHours(0, 0, 0, 0) - new Date(t.getTime()).setHours(0, 0, 0, 0) : e.getTime() - t.getTime()
380    }
381    var C = function(e, t, n) {
382            return e > Math.min(t, n) && e < Math.max(t, n)
383        },
384        M = {
385            DAY: 864e5
386        };
387    "function" != typeof Object.assign && (Object.assign = function(e) {
388        for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
389        if (!e) throw TypeError("Cannot convert undefined or null to object");
390        for (var a = function(t) {
391                t && Object.keys(t).forEach(function(n) {
392                    return e[n] = t[n]
393                })
394            }, i = 0, o = t; i < o.length; i++) {
395            a(o[i])
396        }
397        return e
398    });
399    var b = 300;
400
401    function y(f, g) {
402        var h = {
403            config: e({}, n, E.defaultConfig),
404            l10n: a
405        };
406
407        function y(e) {
408            return e.bind(h)
409        }
410
411        function x() {
412            var e = h.config;
413            !1 === e.weekNumbers && 1 === e.showMonths || !0 !== e.
vendor: 30,379 bytes, lines 413-894
413noCalendar && window.requestAnimationFrame(function() {
414                if (void 0 !== h.calendarContainer && (h.calendarContainer.style.visibility = "hidden", h.calendarContainer.style.display = "block"), void 0 !== h.daysContainer) {
415                    var t = (h.days.offsetWidth + 1) * e.showMonths;
416                    h.daysContainer.style.width = t + "px", h.calendarContainer.style.width = t + (void 0 !== h.weekWrapper ? h.weekWrapper.offsetWidth : 0) + "px", h.calendarContainer.style.removeProperty("visibility"), h.calendarContainer.style.removeProperty("display")
417                }
418            })
419        }
420
421        function T(e) {
422            0 === h.selectedDates.length && ie(), void 0 !== e && "blur" !== e.type && function(e) {
423                e.preventDefault();
424                var t = "keydown" === e.type,
425                    n = e.target;
426                void 0 !== h.amPM && e.target === h.amPM && (h.amPM.textContent = h.l10n.amPM[o(h.amPM.textContent === h.l10n.amPM[0])]);
427                var a = parseFloat(n.getAttribute("min")),
428                    r = parseFloat(n.getAttribute("max")),
429                    l = parseFloat(n.getAttribute("step")),
430                    c = parseInt(n.value, 10),
431                    d = e.delta || (t ? 38 === e.which ? 1 : -1 : 0),
432                    s = c + l * d;
433                if (void 0 !== n.value && 2 === n.value.length) {
434                    var u = n === h.hourElement,
435                        f = n === h.minuteElement;
436                    s < a ? (s = r + s + o(!u) + (o(u) && o(!h.amPM)), f && j(void 0, -1, h.hourElement)) : s > r && (s = n === h.hourElement ? s - r - o(!h.amPM) : a, f && j(void 0, 1, h.hourElement)), h.amPM && u && (1 === l ? s + c === 23 : Math.abs(s - c) > l) && (h.amPM.textContent = h.l10n.amPM[o(h.amPM.textContent === h.l10n.amPM[0])]), n.value = i(s)
437                }
438            }(e);
439            var t = h._input.value;
440            k(), we(), h._input.value !== t && h._debouncedChange()
441        }
442
443        function k() {
444            if (void 0 !== h.hourElement && void 0 !== h.minuteElement) {
445                var e, t, n = (parseInt(h.hourElement.value.slice(-2), 10) || 0) % 24,
446                    a = (parseInt(h.minuteElement.value, 10) || 0) % 60,
447                    i = void 0 !== h.secondElement ? (parseInt(h.secondElement.value, 10) || 0) % 60 : 0;
448                void 0 !== h.amPM && (e = n, t = h.amPM.textContent, n = e % 12 + 12 * o(t === h.l10n.amPM[1]));
449                var r = void 0 !== h.config.minTime || h.config.minDate && h.minDateHasTime && h.latestSelectedDateObj && 0 === w(h.latestSelectedDateObj, h.config.minDate, !0);
450                if (void 0 !== h.config.maxTime || h.config.maxDate && h.maxDateHasTime && h.latestSelectedDateObj && 0 === w(h.latestSelectedDateObj, h.config.maxDate, !0)) {
451                    var l = void 0 !== h.config.maxTime ? h.config.maxTime : h.config.maxDate;
452                    (n = Math.min(n, l.getHours())) === l.getHours() && (a = Math.min(a, l.getMinutes())), a === l.getMinutes() && (i = Math.min(i, l.getSeconds()))
453                }
454                if (r) {
455                    var c = void 0 !== h.config.minTime ? h.config.minTime : h.config.minDate;
456                    (n = Math.max(n, c.getHours())) === c.getHours() && (a = Math.max(a, c.getMinutes())), a === c.getMinutes() && (i = Math.max(i, c.getSeconds()))
457                }
458                O(n, a, i)
459            }
460        }
461
462        function I(e) {
463            var t = e || h.latestSelectedDateObj;
464            t && O(t.getHours(), t.getMinutes(), t.getSeconds())
465        }
466
467        function S() {
468            var e = h.config.defaultHour,
469                t = h.config.defaultMinute,
470                n = h.config.defaultSeconds;
471            if (void 0 !== h.config.minDate) {
472                var a = h.config.minDate.getHours(),
473                    i = h.config.minDate.getMinutes();
474                (e = Math.max(e, a)) === a && (t = Math.max(i, t)), e === a && t === i && (n = h.config.minDate.getSeconds())
475            }
476            if (void 0 !== h.config.maxDate) {
477                var o = h.config.maxDate.getHours(),
478                    r = h.config.maxDate.getMinutes();
479                (e = Math.min(e, o)) === o && (t = Math.min(r, t)), e === o && t === r && (n = h.config.maxDate.getSeconds())
480            }
481            O(e, t, n)
482        }
483
484        function O(e, t, n) {
485            void 0 !== h.latestSelectedDateObj && h.latestSelectedDateObj.setHours(e % 24, t, n || 0, 0), h.hourElement && h.minuteElement && !h.isMobile && (h.hourElement.value = i(h.config.time_24hr ? e : (12 + e) % 12 + 12 * o(e % 12 == 0)), h.minuteElement.value = i(t), void 0 !== h.amPM && (h.amPM.textContent = h.l10n.amPM[o(e >= 12)]), void 0 !== h.secondElement && (h.secondElement.value = i(n)))
486        }
487
488        function _(e) {
489            var t = parseInt(e.target.value) + (e.delta || 0);
490            (t / 1e3 > 1 || "Enter" === e.key && !/[^\d]/.test(t.toString())) && Q(t)
491        }
492
493        function F(e, t, n, a) {
494            return t instanceof Array ? t.forEach(function(t) {
495                return F(e, t, n, a)
496            }) : e instanceof Array ? e.forEach(function(e) {
497                return F(e, t, n, a)
498            }) : (e.addEventListener(t, n, a), void h._handlers.push({
499                element: e,
500                event: t,
501                handler: n,
502                options: a
503            }))
504        }
505
506        function N(e) {
507            return function(t) {
508                1 === t.which && e(t)
509            }
510        }
511
512        function Y() {
513            ge("onChange")
514        }
515
516        function P(e, t) {
517            var n = void 0 !== e ? h.parseDate(e) : h.latestSelectedDateObj || (h.config.minDate && h.config.minDate > h.now ? h.config.minDate : h.config.maxDate && h.config.maxDate < h.now ? h.config.maxDate : h.now),
518                a = h.currentYear,
519                i = h.currentMonth;
520            try {
521                void 0 !== n && (h.currentYear = n.getFullYear(), h.currentMonth = n.getMonth())
522            } catch (e) {
523                e.message = "Invalid date supplied: " + n, h.config.errorHandler(e)
524            }
525            t && h.currentYear !== a && (ge("onYearChange"), K()), !t || h.currentYear === a && h.currentMonth === i || ge("onMonthChange"), h.redraw()
526        }
527
528        function A(e) {
529            ~e.target.className.indexOf("arrow") && j(e, e.target.classList.contains("arrowUp") ? 1 : -1)
530        }
531
532        function j(e, t, n) {
533            var a = e && e.target,
534                i = n || a && a.parentNode && a.parentNode.firstChild,
535                o = pe("increment");
536            o.delta = t, i && i.dispatchEvent(o)
537        }
538
539        function H(e, t, n, a) {
540            var i = X(t, !0),
541                o = d("span", "flatpickr-day " + e, t.getDate().toString());
542            return o.dateObj = t, o.$i = a, o.setAttribute("aria-label", h.formatDate(t, h.config.ariaDateFormat)), -1 === e.indexOf("hidden") && 0 === w(t, h.now) && (h.todayDateElem = o, o.classList.add("today"), o.setAttribute("aria-current", "date")), i ? (o.tabIndex = -1, he(t) && (o.classList.add("selected"), h.selectedDateElem = o, "range" === h.config.mode && (c(o, "startRange", h.selectedDates[0] && 0 === w(t, h.selectedDates[0], !0)), c(o, "endRange", h.selectedDates[1] && 0 === w(t, h.selectedDates[1], !0)), "nextMonthDay" === e && o.classList.add("inRange")))) : o.classList.add("flatpickr-disabled"), "range" === h.config.mode && function(e) {
543                return !("range" !== h.config.mode || h.selectedDates.length < 2) && w(e, h.selectedDates[0]) >= 0 && w(e, h.selectedDates[1]) <= 0
544            }(t) && !he(t) && o.classList.add("inRange"), h.weekNumbers && 1 === h.config.showMonths && "prevMonthDay" !== e && n % 7 == 1 && h.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + h.config.getWeek(t) + "</span>"), ge("onDayCreate", o), o
545        }
546
547        function L(e) {
548            e.focus(), "range" === h.config.mode && ne(e)
549        }
550
551        function W(e) {
552            for (var t = e > 0 ? 0 : h.config.showMonths - 1, n = e > 0 ? h.config.showMonths : -1, a = t; a != n; a += e)
553                for (var i = h.daysContainer.children[a], o = e > 0 ? 0 : i.children.length - 1, r = e > 0 ? i.children.length : -1, l = o; l != r; l += e) {
554                    var c = i.children[l];
555                    if (-1 === c.className.indexOf("hidden") && X(c.dateObj)) return c
556                }
557        }
558
559        function R(e, t) {
560            var n = ee(document.activeElement || document.body),
561                a = void 0 !== e ? e : n ? document.activeElement : void 0 !== h.selectedDateElem && ee(h.selectedDateElem) ? h.selectedDateElem : void 0 !== h.todayDateElem && ee(h.todayDateElem) ? h.todayDateElem : W(t > 0 ? 1 : -1);
562            return void 0 === a ? h._input.focus() : n ? void
563            function(e, t) {
564                for (var n = -1 === e.className.indexOf("Month") ? e.dateObj.getMonth() : h.currentMonth, a = t > 0 ? h.config.showMonths : -1, i = t > 0 ? 1 : -1, o = n - h.currentMonth; o != a; o += i)
565                    for (var r = h.daysContainer.children[o], l = n - h.currentMonth === o ? e.$i + t : t < 0 ? r.children.length - 1 : 0, c = r.children.length, d = l; d >= 0 && d < c && d != (t > 0 ? c : -1); d += i) {
566                        var s = r.children[d];
567                        if (-1 === s.className.indexOf("hidden") && X(s.dateObj) && Math.abs(e.$i - d) >= Math.abs(t)) return L(s)
568                    }
569                h.changeMonth(i), R(W(i), 0)
570            }(a, t): L(a)
571        }
572
573        function B(e, t) {
574            for (var n = (new Date(e, t, 1).getDay() - h.l10n.firstDayOfWeek + 7) % 7, a = h.utils.getDaysInMonth((t - 1 + 12) % 12), i = h.utils.getDaysInMonth(t), o = window.document.createDocumentFragment(), r = h.config.showMonths > 1, l = r ? "prevMonthDay hidden" : "prevMonthDay", c = r ? "nextMonthDay hidden" : "nextMonthDay", s = a + 1 - n, u = 0; s <= a; s++, u++) o.appendChild(H(l, new Date(e, t - 1, s), s, u));
575            for (s = 1; s <= i; s++, u++) o.appendChild(H("", new Date(e, t, s), s, u));
576            for (var f = i + 1; f <= 42 - n && (1 === h.config.showMonths || u % 7 != 0); f++, u++) o.appendChild(H(c, new Date(e, t + 1, f % i), f, u));
577            var m = d("div", "dayContainer");
578            return m.appendChild(o), m
579        }
580
581        function J() {
582            if (void 0 !== h.daysContainer) {
583                s(h.daysContainer), h.weekNumbers && s(h.weekNumbers);
584                for (var e = document.createDocumentFragment(), t = 0; t < h.config.showMonths; t++) {
585                    var n = new Date(h.currentYear, h.currentMonth, 1);
586                    n.setMonth(h.currentMonth + t), e.appendChild(B(n.getFullYear(), n.getMonth()))
587                }
588                h.daysContainer.appendChild(e), h.days = h.daysContainer.firstChild, "range" === h.config.mode && 1 === h.selectedDates.length && ne()
589            }
590        }
591
592        function K() {
593            if (!(h.config.showMonths > 1)) {
594                var e = function(e) {
595                    return !(void 0 !== h.config.minDate && h.currentYear === h.config.minDate.getFullYear() && e < h.config.minDate.getMonth()) && !(void 0 !== h.config.maxDate && h.currentYear === h.config.maxDate.getFullYear() && e > h.config.maxDate.getMonth())
596                };
597                h.monthsDropdownContainer.tabIndex = -1, h.monthsDropdownContainer.innerHTML = "";
598                for (var t = 0; t < 12; t++)
599                    if (e(t)) {
600                        var n = d("option", "flatpickr-monthDropdown-month");
601                        n.value = new Date(h.currentYear, t).getMonth().toString(), n.textContent = m(t, !1, h.l10n), n.tabIndex = -1, h.currentMonth === t && (n.selected = !0), h.monthsDropdownContainer.appendChild(n)
602                    }
603            }
604        }
605
606        function U() {
607            var e, t = d("div", "flatpickr-month"),
608                n = window.document.createDocumentFragment();
609            h.config.showMonths > 1 ? e = d("span", "cur-month") : (h.monthsDropdownContainer = d("select", "flatpickr-monthDropdown-months"), F(h.monthsDropdownContainer, "change", function(e) {
610                var t = e.target,
611                    n = parseInt(t.value, 10);
612                h.changeMonth(n - h.currentMonth), ge("onMonthChange")
613            }), K(), e = h.monthsDropdownContainer);
614            var a = u("cur-year", {
615                    tabindex: "-1"
616                }),
617                i = a.getElementsByTagName("input")[0];
618            i.setAttribute("aria-label", h.l10n.yearAriaLabel), h.config.minDate && i.setAttribute("min", h.config.minDate.getFullYear().toString()), h.config.maxDate && (i.setAttribute("max", h.config.maxDate.getFullYear().toString()), i.disabled = !!h.config.minDate && h.config.minDate.getFullYear() === h.config.maxDate.getFullYear());
619            var o = d("div", "flatpickr-current-month");
620            return o.appendChild(e), o.appendChild(a), n.appendChild(o), t.appendChild(n), {
621                container: t,
622                yearElement: i,
623                monthElement: e
624            }
625        }
626
627        function q() {
628            s(h.monthNav), h.monthNav.appendChild(h.prevMonthNav), h.config.showMonths && (h.yearElements = [], h.monthElements = []);
629            for (var e = h.config.showMonths; e--;) {
630                var t = U();
631                h.yearElements.push(t.yearElement), h.monthElements.push(t.monthElement), h.monthNav.appendChild(t.container)
632            }
633            h.monthNav.appendChild(h.nextMonthNav)
634        }
635
636        function $() {
637            h.weekdayContainer ? s(h.weekdayContainer) : h.weekdayContainer = d("div", "flatpickr-weekdays");
638            for (var e = h.config.showMonths; e--;) {
639                var t = d("div", "flatpickr-weekdaycontainer");
640                h.weekdayContainer.appendChild(t)
641            }
642            return z(), h.weekdayContainer
643        }
644
645        function z() {
646            var e = h.l10n.firstDayOfWeek,
647                t = h.l10n.weekdays.shorthand.slice();
648            e > 0 && e < t.length && (t = t.splice(e, t.length).concat(t.splice(0, e)));
649            for (var n = h.config.showMonths; n--;) h.weekdayContainer.children[n].innerHTML = "\n      <span class='flatpickr-weekday'>\n        " + t.join("</span><span class='flatpickr-weekday'>") + "\n      </span>\n      "
650        }
651
652        function G(e, t) {
653            void 0 === t && (t = !0);
654            var n = t ? e : e - h.currentMonth;
655            n < 0 && !0 === h._hidePrevMonthArrow || n > 0 && !0 === h._hideNextMonthArrow || (h.currentMonth += n, (h.currentMonth < 0 || h.currentMonth > 11) && (h.currentYear += h.currentMonth > 11 ? 1 : -1, h.currentMonth = (h.currentMonth + 12) % 12, ge("onYearChange"), K()), J(), ge("onMonthChange"), ve())
656        }
657
658        function V(e) {
659            return !(!h.config.appendTo || !h.config.appendTo.contains(e)) || h.calendarContainer.contains(e)
660        }
661
662        function Z(e) {
663            if (h.isOpen && !h.config.inline) {
664                var t = "function" == typeof(r = e).composedPath ? r.composedPath()[0] : r.target,
665                    n = V(t),
666                    a = t === h.input || t === h.altInput || h.element.contains(t) || e.path && e.path.indexOf && (~e.path.indexOf(h.input) || ~e.path.indexOf(h.altInput)),
667                    i = "blur" === e.type ? a && e.relatedTarget && !V(e.relatedTarget) : !a && !n && !V(e.relatedTarget),
668                    o = !h.config.ignoredFocusElements.some(function(e) {
669                        return e.contains(t)
670                    });
671                i && o && (h.close(), "range" === h.config.mode && 1 === h.selectedDates.length && (h.clear(!1), h.redraw()))
672            }
673            var r
674        }
675
676        function Q(e) {
677            if (!(!e || h.config.minDate && e < h.config.minDate.getFullYear() || h.config.maxDate && e > h.config.maxDate.getFullYear())) {
678                var t = e,
679                    n = h.currentYear !== t;
680                h.currentYear = t || h.currentYear, h.config.maxDate && h.currentYear === h.config.maxDate.getFullYear() ? h.currentMonth = Math.min(h.config.maxDate.getMonth(), h.currentMonth) : h.config.minDate && h.currentYear === h.config.minDate.getFullYear() && (h.currentMonth = Math.max(h.config.minDate.getMonth(), h.currentMonth)), n && (h.redraw(), ge("onYearChange"), K())
681            }
682        }
683
684        function X(e, t) {
685            void 0 === t && (t = !0);
686            var n = h.parseDate(e, void 0, t);
687            if (h.config.minDate && n && w(n, h.config.minDate, void 0 !== t ? t : !h.minDateHasTime) < 0 || h.config.maxDate && n && w(n, h.config.maxDate, void 0 !== t ? t : !h.maxDateHasTime) > 0) return !1;
688            if (0 === h.config.enable.length && 0 === h.config.disable.length) return !0;
689            if (void 0 === n) return !1;
690            for (var a = h.config.enable.length > 0, i = a ? h.config.enable : h.config.disable, o = 0, r = void 0; o < i.length; o++) {
691                if ("function" == typeof(r = i[o]) && r(n)) return a;
692                if (r instanceof Date && void 0 !== n && r.getTime() === n.getTime()) return a;
693                if ("string" == typeof r && void 0 !== n) {
694                    var l = h.parseDate(r, void 0, !0);
695                    return l && l.getTime() === n.getTime() ? a : !a
696                }
697                if ("object" == typeof r && void 0 !== n && r.from && r.to && n.getTime() >= r.from.getTime() && n.getTime() <= r.to.getTime()) return a
698            }
699            return !a
700        }
701
702        function ee(e) {
703            return void 0 !== h.daysContainer && (-1 === e.className.indexOf("hidden") && h.daysContainer.contains(e))
704        }
705
706        function te(e) {
707            var t = e.target === h._input,
708                n = h.config.allowInput,
709                a = h.isOpen && (!n || !t),
710                i = h.config.inline && t && !n;
711            if (13 === e.keyCode && t) {
712                if (n) return h.setDate(h._input.value, !0, e.target === h.altInput ? h.config.altFormat : h.config.dateFormat), e.target.blur();
713                h.open()
714            } else if (V(e.target) || a || i) {
715                var o = !!h.timeContainer && h.timeContainer.contains(e.target);
716                switch (e.keyCode) {
717                    case 13:
718                        o ? (e.preventDefault(), T(), de()) : se(e);
719                        break;
720                    case 27:
721                        e.preventDefault(), de();
722                        break;
723                    case 8:
724                    case 46:
725                        t && !h.config.allowInput && (e.preventDefault(), h.clear());
726                        break;
727                    case 37:
728                    case 39:
729                        if (o || t) h.hourElement && h.hourElement.focus();
730                        else if (e.preventDefault(), void 0 !== h.daysContainer && (!1 === n || document.activeElement && ee(document.activeElement))) {
731                            var r = 39 === e.keyCode ? 1 : -1;
732                            e.ctrlKey ? (e.stopPropagation(), G(r), R(W(1), 0)) : R(void 0, r)
733                        }
734                        break;
735                    case 38:
736                    case 40:
737                        e.preventDefault();
738                        var l = 40 === e.keyCode ? 1 : -1;
739                        h.daysContainer && void 0 !== e.target.$i || e.target === h.input ? e.ctrlKey ? (e.stopPropagation(), Q(h.currentYear - l), R(W(1), 0)) : o || R(void 0, 7 * l) : e.target === h.currentYearElement ? Q(h.currentYear - l) : h.config.enableTime && (!o && h.hourElement && h.hourElement.focus(), T(e), h._debouncedChange());
740                        break;
741                    case 9:
742                        if (o) {
743                            var c = [h.hourElement, h.minuteElement, h.secondElement, h.amPM].concat(h.pluginElements).filter(function(e) {
744                                    return e
745                                }),
746                                d = c.indexOf(e.target);
747                            if (-1 !== d) {
748                                var s = c[d + (e.shiftKey ? -1 : 1)];
749                                e.preventDefault(), (s || h._input).focus()
750                            }
751                        } else !h.config.noCalendar && h.daysContainer && h.daysContainer.contains(e.target) && e.shiftKey && (e.preventDefault(), h._input.focus())
752                }
753            }
754            if (void 0 !== h.amPM && e.target === h.amPM) switch (e.key) {
755                case h.l10n.amPM[0].charAt(0):
756                case h.l10n.amPM[0].charAt(0).toLowerCase():
757                    h.amPM.textContent = h.l10n.amPM[0], k(), we();
758                    break;
759                case h.l10n.amPM[1].charAt(0):
760                case h.l10n.amPM[1].charAt(0).toLowerCase():
761                    h.amPM.textContent = h.l10n.amPM[1], k(), we()
762            }(t || V(e.target)) && ge("onKeyDown", e)
763        }
764
765        function ne(e) {
766            if (1 === h.selectedDates.length && (!e || e.classList.contains("flatpickr-day") && !e.classList.contains("flatpickr-disabled"))) {
767                for (var t = e ? e.dateObj.getTime() : h.days.firstElementChild.dateObj.getTime(), n = h.parseDate(h.selectedDates[0], void 0, !0).getTime(), a = Math.min(t, h.selectedDates[0].getTime()), i = Math.max(t, h.selectedDates[0].getTime()), o = !1, r = 0, l = 0, c = a; c < i; c += M.DAY) X(new Date(c), !0) || (o = o || c > a && c < i, c < n && (!r || c > r) ? r = c : c > n && (!l || c < l) && (l = c));
768                for (var d = 0; d < h.config.showMonths; d++)
769                    for (var s = h.daysContainer.children[d], u = function(a, i) {
770                            var c = s.children[a],
771                                d = c.dateObj.getTime(),
772                                u = r > 0 && d < r || l > 0 && d > l;
773                            return u ? (c.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(e) {
774                                c.classList.remove(e)
775                            }), "continue") : o && !u ? "continue" : (["startRange", "inRange", "endRange", "notAllowed"].forEach(function(e) {
776                                c.classList.remove(e)
777                            }), void(void 0 !== e && (e.classList.add(t <= h.selectedDates[0].getTime() ? "startRange" : "endRange"), n < t && d === n ? c.classList.add("startRange") : n > t && d === n && c.classList.add("endRange"), d >= r && (0 === l || d <= l) && C(d, n, t) && c.classList.add("inRange"))))
778                        }, f = 0, m = s.children.length; f < m; f++) u(f)
779            }
780        }
781
782        function ae() {
783            !h.isOpen || h.config.static || h.config.inline || le()
784        }
785
786        function ie() {
787            h.setDate(void 0 !== h.config.minDate ? new Date(h.config.minDate.getTime()) : new Date, !0), S(), we()
788        }
789
790        function oe(e) {
791            return function(t) {
792                var n = h.config["_" + e + "Date"] = h.parseDate(t, h.config.dateFormat),
793                    a = h.config["_" + ("min" === e ? "max" : "min") + "Date"];
794                void 0 !== n && (h["min" === e ? "minDateHasTime" : "maxDateHasTime"] = n.getHours() > 0 || n.getMinutes() > 0 || n.getSeconds() > 0), h.selectedDates && (h.selectedDates = h.selectedDates.filter(function(e) {
795                    return X(e)
796                }), h.selectedDates.length || "min" !== e || I(n), we()), h.daysContainer && (ce(), void 0 !== n ? h.currentYearElement[e] = n.getFullYear().toString() : h.currentYearElement.removeAttribute(e), h.currentYearElement.disabled = !!a && void 0 !== n && a.getFullYear() === n.getFullYear())
797            }
798        }
799
800        function re() {
801            "object" != typeof h.config.locale && void 0 === E.l10ns[h.config.locale] && h.config.errorHandler(new Error("flatpickr: invalid locale " + h.config.locale)), h.l10n = e({}, E.l10ns.default, "object" == typeof h.config.locale ? h.config.locale : "default" !== h.config.locale ? E.l10ns[h.config.locale] : void 0), p.K = "(" + h.l10n.amPM[0] + "|" + h.l10n.amPM[1] + "|" + h.l10n.amPM[0].toLowerCase() + "|" + h.l10n.amPM[1].toLowerCase() + ")", void 0 === e({}, g, JSON.parse(JSON.stringify(f.dataset || {}))).time_24hr && void 0 === E.defaultConfig.time_24hr && (h.config.time_24hr = h.l10n.time_24hr), h.formatDate = v(h), h.parseDate = D({
802                config: h.config,
803                l10n: h.l10n
804            })
805        }
806
807        function le(e) {
808            if (void 0 !== h.calendarContainer) {
809                ge("onPreCalendarPosition");
810                var t = e || h._positionElement,
811                    n = Array.prototype.reduce.call(h.calendarContainer.children, function(e, t) {
812                        return e + t.offsetHeight
813                    }, 0),
814                    a = h.calendarContainer.offsetWidth,
815                    i = h.config.position.split(" "),
816                    o = i[0],
817                    r = i.length > 1 ? i[1] : null,
818                    l = t.getBoundingClientRect(),
819                    d = window.innerHeight - l.bottom,
820                    s = "above" === o || "below" !== o && d < n && l.top > n,
821                    u = window.pageYOffset + l.top + (s ? -n - 2 : t.offsetHeight + 2);
822				var style = window.document.body.currentStyle || window.getComputedStyle(window.document.body),
823					width = window.document.body.offsetWidth, // or use style.width
824					margin = parseFloat(style.marginLeft) + parseFloat(style.marginRight),
825					padding = parseFloat(style.paddingLeft) + parseFloat(style.paddingRight),
826					border = parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth),
827					bodywidth = width + margin - padding + border;
828
829                if (c(h.calendarContainer, "arrowTop", !s), c(h.calendarContainer, "arrowBottom", s), !h.config.inline) {
830                    var f = window.pageXOffset + l.left - (null != r && "center" === r ? (a - l.width) / 2 : 0) - parseFloat(style.marginLeft),
831                        m = bodywidth - l.right,
832                        g = f + a > bodywidth,
833                        p = m + a > window.document.body.offsetWidth;
834
835                    if (c(h.calendarContainer, "rightMost", g), !h.config.static)
836                        if (h.calendarContainer.style.top = u + "px", g)
837                            if (p) {
838                                var v = document.styleSheets[0];
839                                if (void 0 === v) return;
840                                var D = window.document.body.offsetWidth,
841                                    w = Math.max(0, D / 2 - a / 2),
842                                    C = v.cssRules.length,
843                                    M = "{left:" + l.left + "px;right:auto;}";
844                                c(h.calendarContainer, "rightMost", !1), c(h.calendarContainer, "centerMost", !0), v.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after" + M, C), h.calendarContainer.style.left = w + "px", h.calendarContainer.style.right = "auto"
845                            } else h.calendarContainer.style.left = "auto", h.calendarContainer.style.right = m + "px";
846                    else h.calendarContainer.style.left = f + "px", h.calendarContainer.style.right = "auto"
847                }
848            }
849        }
850
851        function ce() {
852            h.config.noCalendar || h.isMobile || (ve(), J())
853        }
854
855        function de() {
856            h._input.focus(), -1 !== window.navigator.userAgent.indexOf("MSIE") || void 0 !== navigator.msMaxTouchPoints ? setTimeout(h.close, 0) : h.close()
857        }
858
859        function se(e) {
860            e.preventDefault(), e.stopPropagation();
861            var t = function e(t, n) {
862                return n(t) ? t : t.parentNode ? e(t.parentNode, n) : void 0
863            }(e.target, function(e) {
864                return e.classList && e.classList.contains("flatpickr-day") && !e.classList.contains("flatpickr-disabled") && !e.classList.contains("notAllowed")
865            });
866            if (void 0 !== t) {
867                var n = t,
868                    a = h.latestSelectedDateObj = new Date(n.dateObj.getTime()),
869                    i = (a.getMonth() < h.currentMonth || a.getMonth() > h.currentMonth + h.config.showMonths - 1) && "range" !== h.config.mode;
870                if (h.selectedDateElem = n, "single" === h.config.mode) h.selectedDates = [a];
871                else if ("multiple" === h.config.mode) {
872                    var o = he(a);
873                    o ? h.selectedDates.splice(parseInt(o), 1) : h.selectedDates.push(a)
874                } else "range" === h.config.mode && (2 === h.selectedDates.length && h.clear(!1, !1), h.latestSelectedDateObj = a, h.selectedDates.push(a), 0 !== w(a, h.selectedDates[0], !0) && h.selectedDates.sort(function(e, t) {
875                    return e.getTime() - t.getTime()
876                }));
877                if (k(), i) {
878                    var r = h.currentYear !== a.getFullYear();
879                    h.currentYear = a.getFullYear(), h.currentMonth = a.getMonth(), r && (ge("onYearChange"), K()), ge("onMonthChange")
880                }
881                if (ve(), J(), we(), h.config.enableTime && setTimeout(function() {
882                        return h.showTimeInput = !0
883                    }, 50), i || "range" === h.config.mode || 1 !== h.config.showMonths ? void 0 !== h.selectedDateElem && void 0 === h.hourElement && h.selectedDateElem && h.selectedDateElem.focus() : L(n), void 0 !== h.hourElement && void 0 !== h.hourElement && h.hourElement.focus(), h.config.closeOnSelect) {
884                    var l = "single" === h.config.mode && !h.config.enableTime,
885                        c = "range" === h.config.mode && 2 === h.selectedDates.length && !h.config.enableTime;
886                    (l || c) && de()
887                }
888                Y()
889            }
890        }
891        h.parseDate = D({
892            config: h.config,
893            l10n: h.l10n
894        }), h._handlers = [], h.pluginElements = [], h.loadedPlugins = [], h._bind = F, h._setHoursFromDate = I, h._positionCalendar = le, h.
vendor: 7,078 bytes, lines 894-1016
894changeMonth = G, h.changeYear = Q, h.clear = function(e, t) {
895            void 0 === e && (e = !0);
896            void 0 === t && (t = !0);
897            h.input.value = "", void 0 !== h.altInput && (h.altInput.value = "");
898            void 0 !== h.mobileInput && (h.mobileInput.value = "");
899            h.selectedDates = [], h.latestSelectedDateObj = void 0, !0 === t && (h.currentYear = h._initialDate.getFullYear(), h.currentMonth = h._initialDate.getMonth());
900            h.showTimeInput = !1, !0 === h.config.enableTime && S();
901            h.redraw(), e && ge("onChange")
902        }, h.close = function() {
903            h.isOpen = !1, h.isMobile || (void 0 !== h.calendarContainer && h.calendarContainer.classList.remove("open"), void 0 !== h._input && h._input.classList.remove("active"));
904            ge("onClose")
905        }, h._createElement = d, h.destroy = function() {
906            void 0 !== h.config && ge("onDestroy");
907            for (var e = h._handlers.length; e--;) {
908                var t = h._handlers[e];
909                t.element.removeEventListener(t.event, t.handler, t.options)
910            }
911            if (h._handlers = [], h.mobileInput) h.mobileInput.parentNode && h.mobileInput.parentNode.removeChild(h.mobileInput), h.mobileInput = void 0;
912            else if (h.calendarContainer && h.calendarContainer.parentNode)
913                if (h.config.static && h.calendarContainer.parentNode) {
914                    var n = h.calendarContainer.parentNode;
915                    if (n.lastChild && n.removeChild(n.lastChild), n.parentNode) {
916                        for (; n.firstChild;) n.parentNode.insertBefore(n.firstChild, n);
917                        n.parentNode.removeChild(n)
918                    }
919                } else h.calendarContainer.parentNode.removeChild(h.calendarContainer);
920            h.altInput && (h.input.type = "text", h.altInput.parentNode && h.altInput.parentNode.removeChild(h.altInput), delete h.altInput);
921            h.input && (h.input.type = h.input._type, h.input.classList.remove("flatpickr-input"), h.input.removeAttribute("readonly"), h.input.value = "");
922            ["_showTimeInput", "latestSelectedDateObj", "_hideNextMonthArrow", "_hidePrevMonthArrow", "__hideNextMonthArrow", "__hidePrevMonthArrow", "isMobile", "isOpen", "selectedDateElem", "minDateHasTime", "maxDateHasTime", "days", "daysContainer", "_input", "_positionElement", "innerContainer", "rContainer", "monthNav", "todayDateElem", "calendarContainer", "weekdayContainer", "prevMonthNav", "nextMonthNav", "monthsDropdownContainer", "currentMonthElement", "currentYearElement", "navigationCurrentMonth", "selectedDateElem", "config"].forEach(function(e) {
923                try {
924                    delete h[e]
925                } catch (e) {}
926            })
927        }, h.isEnabled = X, h.jumpToDate = P, h.open = function(e, t) {
928            void 0 === t && (t = h._positionElement);
929            if (!0 === h.isMobile) return e && (e.preventDefault(), e.target && e.target.blur()), void 0 !== h.mobileInput && (h.mobileInput.focus(), h.mobileInput.click()), void ge("onOpen");
930            if (h._input.disabled || h.config.inline) return;
931            var n = h.isOpen;
932            h.isOpen = !0, n || (h.calendarContainer.classList.add("open"), h._input.classList.add("active"), ge("onOpen"), le(t));
933            !0 === h.config.enableTime && !0 === h.config.noCalendar && (0 === h.selectedDates.length && ie(), !1 !== h.config.allowInput || void 0 !== e && h.timeContainer.contains(e.relatedTarget) || setTimeout(function() {
934                return h.hourElement.select()
935            }, 50))
936        }, h.redraw = ce, h.set = function(e, n) {
937            if (null !== e && "object" == typeof e)
938                for (var a in Object.assign(h.config, e), e) void 0 !== ue[a] && ue[a].forEach(function(e) {
939                    return e()
940                });
941            else h.config[e] = n, void 0 !== ue[e] ? ue[e].forEach(function(e) {
942                return e()
943            }) : t.indexOf(e) > -1 && (h.config[e] = l(n));
944            h.redraw(), we(!1)
945        }, h.setDate = function(e, t, n) {
946            void 0 === t && (t = !1);
947            void 0 === n && (n = h.config.dateFormat);
948            if (0 !== e && !e || e instanceof Array && 0 === e.length) return h.clear(t);
949            fe(e, n), h.showTimeInput = h.selectedDates.length > 0, h.latestSelectedDateObj = h.selectedDates[h.selectedDates.length - 1], h.redraw(), P(), I(), 0 === h.selectedDates.length && h.clear(!1);
950            we(t), t && ge("onChange")
951        }, h.toggle = function(e) {
952            if (!0 === h.isOpen) return h.close();
953            h.open(e)
954        };
955        var ue = {
956            locale: [re, z],
957            showMonths: [q, x, $],
958            minDate: [P],
959            maxDate: [P]
960        };
961
962        function fe(e, t) {
963            var n = [];
964            if (e instanceof Array) n = e.map(function(e) {
965                return h.parseDate(e, t)
966            });
967            else if (e instanceof Date || "number" == typeof e) n = [h.parseDate(e, t)];
968            else if ("string" == typeof e) switch (h.config.mode) {
969                case "single":
970                case "time":
971                    n = [h.parseDate(e, t)];
972                    break;
973                case "multiple":
974                    n = e.split(h.config.conjunction).map(function(e) {
975                        return h.parseDate(e, t)
976                    });
977                    break;
978                case "range":
979                    n = e.split(h.l10n.rangeSeparator).map(function(e) {
980                        return h.parseDate(e, t)
981                    })
982            } else h.config.errorHandler(new Error("Invalid date supplied: " + JSON.stringify(e)));
983            h.selectedDates = n.filter(function(e) {
984                return e instanceof Date && X(e, !1)
985            }), "range" === h.config.mode && h.selectedDates.sort(function(e, t) {
986                return e.getTime() - t.getTime()
987            })
988        }
989
990        function me(e) {
991            return e.slice().map(function(e) {
992                return "string" == typeof e || "number" == typeof e || e instanceof Date ? h.parseDate(e, void 0, !0) : e && "object" == typeof e && e.from && e.to ? {
993                    from: h.parseDate(e.from, void 0),
994                    to: h.parseDate(e.to, void 0)
995                } : e
996            }).filter(function(e) {
997                return e
998            })
999        }
1000
1001        function ge(e, t) {
1002            if (void 0 !== h.config) {
1003                var n = h.config[e];
1004                if (void 0 !== n && n.length > 0)
1005                    for (var a = 0; n[a] && a < n.length; a++) n[a](h.selectedDates, h.input.value, h, t);
1006                "onChange" === e && (h.input.dispatchEvent(pe("change")), h.input.dispatchEvent(pe("input")))
1007            }
1008        }
1009
1010        function pe(e) {
1011            var t = document.createEvent("Event");
1012            return t.initEvent(e, !0, !0), t
1013        }
1014
1015        function he(e) {
1016            for (var t = 0; t < h.selectedDates.length; t++)
vendor: 17,142 bytes, lines 1017-1198
1017                if (0 === w(h.selectedDates[t], e)) return "" + t;
1018            return !1
1019        }
1020
1021        function ve() {
1022            h.config.noCalendar || h.isMobile || !h.monthNav || (h.yearElements.forEach(function(e, t) {
1023                var n = new Date(h.currentYear, h.currentMonth, 1);
1024                n.setMonth(h.currentMonth + t), h.config.showMonths > 1 ? h.monthElements[t].textContent = m(n.getMonth(), h.config.shorthandCurrentMonth, h.l10n) + " " : h.monthsDropdownContainer.value = n.getMonth().toString(), e.value = n.getFullYear().toString()
1025            }), h._hidePrevMonthArrow = void 0 !== h.config.minDate && (h.currentYear === h.config.minDate.getFullYear() ? h.currentMonth <= h.config.minDate.getMonth() : h.currentYear < h.config.minDate.getFullYear()), h._hideNextMonthArrow = void 0 !== h.config.maxDate && (h.currentYear === h.config.maxDate.getFullYear() ? h.currentMonth + 1 > h.config.maxDate.getMonth() : h.currentYear > h.config.maxDate.getFullYear()))
1026        }
1027
1028        function De(e) {
1029            return h.selectedDates.map(function(t) {
1030                return h.formatDate(t, e)
1031            }).filter(function(e, t, n) {
1032                return "range" !== h.config.mode || h.config.enableTime || n.indexOf(e) === t
1033            }).join("range" !== h.config.mode ? h.config.conjunction : h.l10n.rangeSeparator)
1034        }
1035
1036        function we(e) {
1037            void 0 === e && (e = !0), void 0 !== h.mobileInput && h.mobileFormatStr && (h.mobileInput.value = void 0 !== h.latestSelectedDateObj ? h.formatDate(h.latestSelectedDateObj, h.mobileFormatStr) : ""), h.input.value = De(h.config.dateFormat), void 0 !== h.altInput && (h.altInput.value = De(h.config.altFormat)), !1 !== e && ge("onValueUpdate")
1038        }
1039
1040        function Ce(e) {
1041            var t = h.prevMonthNav.contains(e.target),
1042                n = h.nextMonthNav.contains(e.target);
1043            t || n ? G(t ? -1 : 1) : h.yearElements.indexOf(e.target) >= 0 ? e.target.select() : e.target.classList.contains("arrowUp") ? h.changeYear(h.currentYear + 1) : e.target.classList.contains("arrowDown") && h.changeYear(h.currentYear - 1)
1044        }
1045        return function() {
1046            h.element = h.input = f, h.isOpen = !1,
1047                function() {
1048                    var a = ["wrap", "weekNumbers", "allowInput", "clickOpens", "time_24hr", "enableTime", "noCalendar", "altInput", "shorthandCurrentMonth", "inline", "static", "enableSeconds", "disableMobile"],
1049                        i = e({}, g, JSON.parse(JSON.stringify(f.dataset || {}))),
1050                        o = {};
1051                    h.config.parseDate = i.parseDate, h.config.formatDate = i.formatDate, Object.defineProperty(h.config, "enable", {
1052                        get: function() {
1053                            return h.config._enable
1054                        },
1055                        set: function(e) {
1056                            h.config._enable = me(e)
1057                        }
1058                    }), Object.defineProperty(h.config, "disable", {
1059                        get: function() {
1060                            return h.config._disable
1061                        },
1062                        set: function(e) {
1063                            h.config._disable = me(e)
1064                        }
1065                    });
1066                    var r = "time" === i.mode;
1067                    if (!i.dateFormat && (i.enableTime || r)) {
1068                        var c = E.defaultConfig.dateFormat || n.dateFormat;
1069                        o.dateFormat = i.noCalendar || r ? "H:i" + (i.enableSeconds ? ":S" : "") : c + " H:i" + (i.enableSeconds ? ":S" : "")
1070                    }
1071                    if (i.altInput && (i.enableTime || r) && !i.altFormat) {
1072                        var d = E.defaultConfig.altFormat || n.altFormat;
1073                        o.altFormat = i.noCalendar || r ? "h:i" + (i.enableSeconds ? ":S K" : " K") : d + " h:i" + (i.enableSeconds ? ":S" : "") + " K"
1074                    }
1075                    i.altInputClass || (h.config.altInputClass = h.input.className + " " + h.config.altInputClass), Object.defineProperty(h.config, "minDate", {
1076                        get: function() {
1077                            return h.config._minDate
1078                        },
1079                        set: oe("min")
1080                    }), Object.defineProperty(h.config, "maxDate", {
1081                        get: function() {
1082                            return h.config._maxDate
1083                        },
1084                        set: oe("max")
1085                    });
1086                    var s = function(e) {
1087                        return function(t) {
1088                            h.config["min" === e ? "_minTime" : "_maxTime"] = h.parseDate(t, "H:i")
1089                        }
1090                    };
1091                    Object.defineProperty(h.config, "minTime", {
1092                        get: function() {
1093                            return h.config._minTime
1094                        },
1095                        set: s("min")
1096                    }), Object.defineProperty(h.config, "maxTime", {
1097                        get: function() {
1098                            return h.config._maxTime
1099                        },
1100                        set: s("max")
1101                    }), "time" === i.mode && (h.config.noCalendar = !0, h.config.enableTime = !0), Object.assign(h.config, o, i);
1102                    for (var u = 0; u < a.length; u++) h.config[a[u]] = !0 === h.config[a[u]] || "true" === h.config[a[u]];
1103                    t.filter(function(e) {
1104                        return void 0 !== h.config[e]
1105                    }).forEach(function(e) {
1106                        h.config[e] = l(h.config[e] || []).map(y)
1107                    }), h.isMobile = !h.config.disableMobile && !h.config.inline && "single" === h.config.mode && !h.config.disable.length && !h.config.enable.length && !h.config.weekNumbers && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1108                    for (var u = 0; u < h.config.plugins.length; u++) {
1109                        var m = h.config.plugins[u](h) || {};
1110                        for (var p in m) t.indexOf(p) > -1 ? h.config[p] = l(m[p]).map(y).concat(h.config[p]) : void 0 === i[p] && (h.config[p] = m[p])
1111                    }
1112                    ge("onParseConfig")
1113                }(), re(), h.input = h.config.wrap ? f.querySelector("[data-input]") : f, h.input ? (h.input._type = h.input.type, h.input.type = "text", h.input.classList.add("flatpickr-input"), h._input = h.input, h.config.altInput && (h.altInput = d(h.input.nodeName, h.config.altInputClass), h._input = h.altInput, h.altInput.placeholder = h.input.placeholder, h.altInput.disabled = h.input.disabled, h.altInput.required = h.input.required, h.altInput.tabIndex = h.input.tabIndex, h.altInput.type = "text", h.input.setAttribute("type", "hidden"), !h.config.static && h.input.parentNode && h.input.parentNode.insertBefore(h.altInput, h.input.nextSibling)), h.config.allowInput || h._input.setAttribute("readonly", "readonly"), h._positionElement = h.config.positionElement || h._input) : h.config.errorHandler(new Error("Invalid input element specified")),
1114                function() {
1115                    h.selectedDates = [], h.now = h.parseDate(h.config.now) || new Date;
1116                    var e = h.config.defaultDate || ("INPUT" !== h.input.nodeName && "TEXTAREA" !== h.input.nodeName || !h.input.placeholder || h.input.value !== h.input.placeholder ? h.input.value : null);
1117                    e && fe(e, h.config.dateFormat), h._initialDate = h.selectedDates.length > 0 ? h.selectedDates[0] : h.config.minDate && h.config.minDate.getTime() > h.now.getTime() ? h.config.minDate : h.config.maxDate && h.config.maxDate.getTime() < h.now.getTime() ? h.config.maxDate : h.now, h.currentYear = h._initialDate.getFullYear(), h.currentMonth = h._initialDate.getMonth(), h.selectedDates.length > 0 && (h.latestSelectedDateObj = h.selectedDates[0]), void 0 !== h.config.minTime && (h.config.minTime = h.parseDate(h.config.minTime, "H:i")), void 0 !== h.config.maxTime && (h.config.maxTime = h.parseDate(h.config.maxTime, "H:i")), h.minDateHasTime = !!h.config.minDate && (h.config.minDate.getHours() > 0 || h.config.minDate.getMinutes() > 0 || h.config.minDate.getSeconds() > 0), h.maxDateHasTime = !!h.config.maxDate && (h.config.maxDate.getHours() > 0 || h.config.maxDate.getMinutes() > 0 || h.config.maxDate.getSeconds() > 0), Object.defineProperty(h, "showTimeInput", {
1118                        get: function() {
1119                            return h._showTimeInput
1120                        },
1121                        set: function(e) {
1122                            h._showTimeInput = e, h.calendarContainer && c(h.calendarContainer, "showTimeInput", e), h.isOpen && le()
1123                        }
1124                    })
1125                }(), h.utils = {
1126                    getDaysInMonth: function(e, t) {
1127                        return void 0 === e && (e = h.currentMonth), void 0 === t && (t = h.currentYear), 1 === e && (t % 4 == 0 && t % 100 != 0 || t % 400 == 0) ? 29 : h.l10n.daysInMonth[e]
1128                    }
1129                }, h.isMobile || function() {
1130                    var e = window.document.createDocumentFragment();
1131                    if (h.calendarContainer = d("div", "flatpickr-calendar"), h.calendarContainer.tabIndex = -1, !h.config.noCalendar) {
1132                        if (e.appendChild((h.monthNav = d("div", "flatpickr-months"), h.yearElements = [], h.monthElements = [], h.prevMonthNav = d("span", "flatpickr-prev-month"), h.prevMonthNav.innerHTML = h.config.prevArrow, h.nextMonthNav = d("span", "flatpickr-next-month"), h.nextMonthNav.innerHTML = h.config.nextArrow, q(), Object.defineProperty(h, "_hidePrevMonthArrow", {
1133                                get: function() {
1134                                    return h.__hidePrevMonthArrow
1135                                },
1136                                set: function(e) {
1137                                    h.__hidePrevMonthArrow !== e && (c(h.prevMonthNav, "flatpickr-disabled", e), h.__hidePrevMonthArrow = e)
1138                                }
1139                            }), Object.defineProperty(h, "_hideNextMonthArrow", {
1140                                get: function() {
1141                                    return h.__hideNextMonthArrow
1142                                },
1143                                set: function(e) {
1144                                    h.__hideNextMonthArrow !== e && (c(h.nextMonthNav, "flatpickr-disabled", e), h.__hideNextMonthArrow = e)
1145                                }
1146                            }), h.currentYearElement = h.yearElements[0], ve(), h.monthNav)), h.innerContainer = d("div", "flatpickr-innerContainer"), h.config.weekNumbers) {
1147                            var t = function() {
1148                                    h.calendarContainer.classList.add("hasWeeks");
1149                                    var e = d("div", "flatpickr-weekwrapper");
1150                                    e.appendChild(d("span", "flatpickr-weekday", h.l10n.weekAbbreviation));
1151                                    var t = d("div", "flatpickr-weeks");
1152                                    return e.appendChild(t), {
1153                                        weekWrapper: e,
1154                                        weekNumbers: t
1155                                    }
1156                                }(),
1157                                n = t.weekWrapper,
1158                                a = t.weekNumbers;
1159                            h.innerContainer.appendChild(n), h.weekNumbers = a, h.weekWrapper = n
1160                        }
1161                        h.rContainer = d("div", "flatpickr-rContainer"), h.rContainer.appendChild($()), h.daysContainer || (h.daysContainer = d("div", "flatpickr-days"), h.daysContainer.tabIndex = -1), J(), h.rContainer.appendChild(h.daysContainer), h.innerContainer.appendChild(h.rContainer), e.appendChild(h.innerContainer)
1162                    }
1163                    h.config.enableTime && e.appendChild(function() {
1164                        h.calendarContainer.classList.add("hasTime"), h.config.noCalendar && h.calendarContainer.classList.add("noCalendar"), h.timeContainer = d("div", "flatpickr-time"), h.timeContainer.tabIndex = -1;
1165                        var e = d("span", "flatpickr-time-separator", ":"),
1166                            t = u("flatpickr-hour");
1167                        h.hourElement = t.getElementsByTagName("input")[0];
1168                        var n = u("flatpickr-minute");
1169                        if (h.minuteElement = n.getElementsByTagName("input")[0], h.hourElement.tabIndex = h.minuteElement.tabIndex = -1, h.hourElement.value = i(h.latestSelectedDateObj ? h.latestSelectedDateObj.getHours() : h.config.time_24hr ? h.config.defaultHour : function(e) {
1170                                switch (e % 24) {
1171                                    case 0:
1172                                    case 12:
1173                                        return 12;
1174                                    default:
1175                                        return e % 12
1176                                }
1177                            }(h.config.defaultHour)), h.minuteElement.value = i(h.latestSelectedDateObj ? h.latestSelectedDateObj.getMinutes() : h.config.defaultMinute), h.hourElement.setAttribute("step", h.config.hourIncrement.toString()), h.minuteElement.setAttribute("step", h.config.minuteIncrement.toString()), h.hourElement.setAttribute("min", h.config.time_24hr ? "0" : "1"), h.hourElement.setAttribute("max", h.config.time_24hr ? "23" : "12"), h.minuteElement.setAttribute("min", "0"), h.minuteElement.setAttribute("max", "59"), h.timeContainer.appendChild(t), h.timeContainer.appendChild(e), h.timeContainer.appendChild(n), h.config.time_24hr && h.timeContainer.classList.add("time24hr"), h.config.enableSeconds) {
1178                            h.timeContainer.classList.add("hasSeconds");
1179                            var a = u("flatpickr-second");
1180                            h.secondElement = a.getElementsByTagName("input")[0], h.secondElement.value = i(h.latestSelectedDateObj ? h.latestSelectedDateObj.getSeconds() : h.config.defaultSeconds), h.secondElement.setAttribute("step", h.minuteElement.getAttribute("step")), h.secondElement.setAttribute("min", "0"), h.secondElement.setAttribute("max", "59"), h.timeContainer.appendChild(d("span", "flatpickr-time-separator", ":")), h.timeContainer.appendChild(a)
1181                        }
1182                        return h.config.time_24hr || (h.amPM = d("span", "flatpickr-am-pm", h.l10n.amPM[o((h.latestSelectedDateObj ? h.hourElement.value : h.config.defaultHour) > 11)]), h.amPM.title = h.l10n.toggleTitle, h.amPM.tabIndex = -1, h.timeContainer.appendChild(h.amPM)), h.timeContainer
1183                    }()), c(h.calendarContainer, "rangeMode", "range" === h.config.mode), c(h.calendarContainer, "animate", !0 === h.config.animate), c(h.calendarContainer, "multiMonth", h.config.showMonths > 1), h.calendarContainer.appendChild(e);
1184                    var r = void 0 !== h.config.appendTo && void 0 !== h.config.appendTo.nodeType;
1185                    if ((h.config.inline || h.config.static) && (h.calendarContainer.classList.add(h.config.inline ? "inline" : "static"), h.config.inline && (!r && h.element.parentNode ? h.element.parentNode.insertBefore(h.calendarContainer, h._input.nextSibling) : void 0 !== h.config.appendTo && h.config.appendTo.appendChild(h.calendarContainer)), h.config.static)) {
1186                        var l = d("div", "flatpickr-wrapper");
1187                        h.element.parentNode && h.element.parentNode.insertBefore(l, h.element), l.appendChild(h.element), h.altInput && l.appendChild(h.altInput), l.appendChild(h.calendarContainer)
1188                    }
1189                    h.config.static || h.config.inline || (void 0 !== h.config.appendTo ? h.config.appendTo : window.document.body).appendChild(h.calendarContainer)
1190                }(),
1191                function() {
1192                    if (h.config.wrap && ["open", "close", "toggle", "clear"].forEach(function(e) {
1193                            Array.prototype.forEach.call(h.element.querySelectorAll("[data-" + e + "]"), function(t) {
1194                                return F(t, "click", h[e])
1195                            })
1196                        }), h.isMobile) ! function() {
1197                        var e = h.config.enableTime ? h.config.noCalendar ? "time" : "datetime-local" : "date";
1198                        h.mobileInput = d("input", h.input.className + " flatpickr-mobile"), h.mobileInput.step = h.input.getAttribute("step") || "any", h.mobileInput.tabIndex = 1, h.mobileInput.type = e, h.mobileInput.disabled = h.input.disabled, h.mobileInput.required = h.input.required, h.mobileInput.placeholder = h.input.placeholder, h.mobileFormatStr = "datetime-local" === e ? "Y-m-d\\TH:i:S" : "date" === e ? "Y-m-d" : "H:i:S", h.selectedDates.length > 0 && (h.mobileInput.defaultValue = h.mobileInput.value = h.formatDate(h.selectedDates[0], h.mobileFormatStr)), h.config.minDate && (h.mobileInput.min = h.formatDate(h.c
1198onfig.minDate, "Y-m-d")), h.config.maxDate && (h.mobileInput.max = h.formatDate(h.config.maxDate, "Y-m-d")), h.input.type = "hidden", void 0 !== h.altInput && (h.altInput.type = "hidden");
1199                        try {
1200                            h.input.parentNode && h.input.parentNode.insertBefore(h.mobileInput, h.input.nextSibling)
1201                        } catch (e) {}
1202                        F(h.mobileInput, "change", function(e) {
1203                            h.setDate(e.target.value, !1, h.mobileFormatStr), ge("onChange"), ge("onClose")
1204                        })
1205                    }();
1206                    else {
1207                        var e = r(ae, 50);
1208                        h._debouncedChange = r(Y, b), h.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && F(h.daysContainer, "mouseover", function(e) {
1209                            "range" === h.config.mode && ne(e.target)
1210                        }), F(window.document.body, "keydown", te), h.config.inline || h.config.static || F(window, "resize", e), void 0 !== window.ontouchstart ? F(window.document, "touchstart", Z) : F(window.document, "mousedown", N(Z)), F(window.document, "focus", Z, {
1211                            capture: !0
1212                        }
vendor: 3,159 bytes, lines 1212-1262
1212), !0 === h.config.clickOpens && (F(h._input, "focus", h.open), F(h._input, "mousedown", N(h.open))), void 0 !== h.daysContainer && (F(h.monthNav, "mousedown", N(Ce)), F(h.monthNav, ["keyup", "increment"], _), F(h.daysContainer, "mousedown", N(se))), void 0 !== h.timeContainer && void 0 !== h.minuteElement && void 0 !== h.hourElement && (F(h.timeContainer, ["increment"], T), F(h.timeContainer, "blur", T, {
1213                            capture: !0
1214                        }), F(h.timeContainer, "mousedown", N(A)), F([h.hourElement, h.minuteElement], ["focus", "click"], function(e) {
1215                            return e.target.select()
1216                        }), void 0 !== h.secondElement && F(h.secondElement, "focus", function() {
1217                            return h.secondElement && h.secondElement.select()
1218                        }), void 0 !== h.amPM && F(h.amPM, "mousedown", N(function(e) {
1219                            T(e), Y()
1220                        })))
1221                    }
1222                }(), (h.selectedDates.length || h.config.noCalendar) && (h.config.enableTime && I(h.config.noCalendar ? h.latestSelectedDateObj || h.config.minDate : void 0), we(!1)), x(), h.showTimeInput = h.selectedDates.length > 0 || h.config.noCalendar;
1223            var a = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
1224            !h.isMobile && a && le(), ge("onReady")
1225        }(), h
1226    }
1227
1228    function x(e, t) {
1229        for (var n = Array.prototype.slice.call(e).filter(function(e) {
1230                return e instanceof HTMLElement
1231            }), a = [], i = 0; i < n.length; i++) {
1232            var o = n[i];
1233            try {
1234                if (null !== o.getAttribute("data-fp-omit")) continue;
1235                void 0 !== o._flatpickr && (o._flatpickr.destroy(), o._flatpickr = void 0), o._flatpickr = y(o, t || {}), a.push(o._flatpickr)
1236            } catch (e) {
1237                console.error(e)
1238            }
1239        }
1240        return 1 === a.length ? a[0] : a
1241    }
1242    "undefined" != typeof HTMLElement && "undefined" != typeof HTMLCollection && "undefined" != typeof NodeList && (HTMLCollection.prototype.flatpickr = NodeList.prototype.flatpickr = function(e) {
1243        return x(this, e)
1244    }, HTMLElement.prototype.flatpickr = function(e) {
1245        return x([this], e)
1246    });
1247    var E = function(e, t) {
1248        return "string" == typeof e ? x(window.document.querySelectorAll(e), t) : e instanceof Node ? x([e], t) : x(e, t)
1249    };
1250    return E.defaultConfig = {}, E.l10ns = {
1251        en: e({}, a),
1252        default: e({}, a)
1253    }, E.localize = function(t) {
1254        E.l10ns.default = e({}, E.l10ns.default, t)
1255    }, E.setDefaults = function(t) {
1256        E.defaultConfig = e({}, E.defaultConfig, t)
1257    }, E.parseDate = D({}), E.formatDate = v({}), E.compareDates = w, "undefined" != typeof jQuery && void 0 !== jQuery.fn && (jQuery.fn.flatpickr = function(e) {
1258        return x(this, e)
1259    }), Date.prototype.fp_incr = function(e) {
1260        return new Date(this.getFullYear(), this.getMonth(), this.getDate() + ("string" == typeof e ? parseInt(e, 10) : e))
1261    }, "undefined" != typeof window && (window.flatpickr = E), E
1262});

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.