@limetech/lime-elements 35.0.0-next.36 → 35.0.0-next.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{dateFormatter-26eac73a.js → dateFormatter-34b77ead.js} +37 -31
- package/dist/cjs/limel-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +2 -2
- package/dist/cjs/limel-form.cjs.entry.js +1 -1
- package/dist/cjs/{moment-d287c0ed.js → moment-5c6581b7.js} +94 -79
- package/dist/esm/{dateFormatter-c9b41548.js → dateFormatter-ed618478.js} +37 -31
- package/dist/esm/limel-date-picker.entry.js +2 -2
- package/dist/esm/limel-flatpickr-adapter.entry.js +2 -2
- package/dist/esm/limel-form.entry.js +1 -1
- package/dist/esm/{moment-8dadd938.js → moment-29c213b7.js} +94 -79
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-2ff40ce6.js +3 -0
- package/dist/lime-elements/{p-65752bdd.entry.js → p-5b7a8c61.entry.js} +1 -1
- package/dist/lime-elements/{p-d4cc95c7.entry.js → p-716a6acd.entry.js} +1 -1
- package/dist/lime-elements/{p-e1928c0e.js → p-72e03943.js} +1 -1
- package/dist/lime-elements/{p-2a5ae357.entry.js → p-eae8c615.entry.js} +1 -1
- package/dist/types/components/form/fields/array-field.d.ts +0 -1
- package/dist/types/components/form/fields/object-field.d.ts +2 -2
- package/package.json +13 -13
- package/dist/lime-elements/p-a397bab7.js +0 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{c as t,a as n,b as i}from"./p-eab67c09.js";var e=t((function(t){t.exports=function(){var n,e;function r(){return n.apply(null,arguments)}function s(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function u(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function h(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var n;for(n in t)if(o(t,n))return!1;return!0}function a(t){return void 0===t}function f(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,n){var i,e=[],r=t.length;for(i=0;i<r;++i)e.push(n(t[i],i));return e}function l(t,n){for(var i in n)o(n,i)&&(t[i]=n[i]);return o(n,"toString")&&(t.toString=n.toString),o(n,"valueOf")&&(t.valueOf=n.valueOf),t}function m(t,n,i,e){return bn(t,n,i,e,!0).utc()}function v(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function Y(t){if(null==t._isValid){var n=v(t),i=e.call(n.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&i);if(t._strict&&(r=r&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function M(t){var n=m(NaN);return null!=t?l(v(n),t):v(n).userInvalidated=!0,n}e=Array.prototype.some?Array.prototype.some:function(t){var n,i=Object(this),e=i.length>>>0;for(n=0;n<e;n++)if(n in i&&t.call(this,i[n],n,i))return!0;return!1};var y=r.momentProperties=[],D=!1;function S(t,n){var i,e,r,s=y.length;if(a(n._isAMomentObject)||(t._isAMomentObject=n._isAMomentObject),a(n._i)||(t._i=n._i),a(n._f)||(t._f=n._f),a(n._l)||(t._l=n._l),a(n._strict)||(t._strict=n._strict),a(n._tzm)||(t._tzm=n._tzm),a(n._isUTC)||(t._isUTC=n._isUTC),a(n._offset)||(t._offset=n._offset),a(n._pf)||(t._pf=v(n)),a(n._locale)||(t._locale=n._locale),s>0)for(i=0;i<s;i++)a(r=n[e=y[i]])||(t[e]=r);return t}function g(t){S(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===D&&(D=!0,r.updateOffset(this),D=!1)}function w(t){return t instanceof g||null!=t&&null!=t._isAMomentObject}function N(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function p(t,n){var i=!0;return l((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),i){var e,s,u,h=[],a=arguments.length;for(s=0;s<a;s++){if(e="","object"==typeof arguments[s]){for(u in e+="\n["+s+"] ",arguments[0])o(arguments[0],u)&&(e+=u+": "+arguments[0][u]+", ");e=e.slice(0,-2)}else e=arguments[s];h.push(e)}N(t+"\nArguments: "+Array.prototype.slice.call(h).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)}),n)}var k,b={};function T(t,n){null!=r.deprecationHandler&&r.deprecationHandler(t,n),b[t]||(N(n),b[t]=!0)}function _(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function H(t,n){var i,e=l({},t);for(i in n)o(n,i)&&(u(t[i])&&u(n[i])?(e[i]={},l(e[i],t[i]),l(e[i],n[i])):null!=n[i]?e[i]=n[i]:delete e[i]);for(i in t)o(t,i)&&!o(n,i)&&u(t[i])&&(e[i]=l({},e[i]));return e}function G(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,k=Object.keys?Object.keys:function(t){var n,i=[];for(n in t)o(t,n)&&i.push(n);return i};function W(t,n,i){var e=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,n-e.length)).toString().substr(1)+e}var E=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,x=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},A={};function O(t,n,i,e){var r=e;"string"==typeof e&&(r=function(){return this[e]()}),t&&(A[t]=r),n&&(A[n[0]]=function(){return W(r.apply(this,arguments),n[1],n[2])}),i&&(A[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function j(t,n){return t.isValid()?(n=L(n,t.localeData()),F[n]=F[n]||function(t){var n,i,e,r=t.match(E);for(n=0,i=r.length;n<i;n++)r[n]=A[r[n]]?A[r[n]]:(e=r[n]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(n){var e,s="";for(e=0;e<i;e++)s+=_(r[e])?r[e].call(n,t):r[e];return s}}(n),F[n](t)):t.localeData().invalidDate()}function L(t,n){var i=5;function e(t){return n.longDateFormat(t)||t}for(x.lastIndex=0;i>=0&&x.test(t);)t=t.replace(x,e),x.lastIndex=0,i-=1;return t}var R={};function Z(t,n){var i=t.toLowerCase();R[i]=R[i+"s"]=R[n]=t}function I(t){return"string"==typeof t?R[t]||R[t.toLowerCase()]:void 0}function C(t){var n,i,e={};for(i in t)o(t,i)&&(n=I(i))&&(e[n]=t[i]);return e}var U={};function $(t,n){U[t]=n}function P(t){return t%4==0&&t%100!=0||t%400==0}function z(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function q(t){var n=+t,i=0;return 0!==n&&isFinite(n)&&(i=z(n)),i}function J(t,n){return function(i){return null!=i?(B(this,t,i),r.updateOffset(this,n),this):Q(this,t)}}function Q(t,n){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+n]():NaN}function B(t,n,i){t.isValid()&&!isNaN(i)&&("FullYear"===n&&P(t.year())&&1===t.month()&&29===t.date()?(i=q(i),t._d["set"+(t._isUTC?"UTC":"")+n](i,t.month(),wt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+n](i))}var X,K=/\d/,V=/\d\d/,tt=/\d{3}/,nt=/\d{4}/,it=/[+-]?\d{6}/,et=/\d\d?/,rt=/\d\d\d\d?/,st=/\d\d\d\d\d\d?/,ut=/\d{1,3}/,ot=/\d{1,4}/,ht=/[+-]?\d{1,6}/,at=/\d+/,ft=/[+-]?\d+/,ct=/Z|[+-]\d\d:?\d\d/gi,dt=/Z|[+-]\d\d(?::?\d\d)?/gi,lt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function mt(t,n,i){X[t]=_(n)?n:function(t){return t&&i?i:n}}function vt(t,n){return o(X,t)?X[t](n._strict,n._locale):new RegExp(Yt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,n,i,e,r){return n||i||e||r}))))}function Yt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}X={};var Mt={};function yt(t,n){var i,e,r=n;for("string"==typeof t&&(t=[t]),f(n)&&(r=function(t,i){i[n]=q(t)}),e=t.length,i=0;i<e;i++)Mt[t[i]]=r}function Dt(t,n){yt(t,(function(t,i,e,r){e._w=e._w||{},n(t,e._w,e,r)}))}function St(t,n,i){null!=n&&o(Mt,t)&&Mt[t](n,i._a,i,t)}var gt;function wt(t,n){if(isNaN(t)||isNaN(n))return NaN;var i,e=(n%(i=12)+i)%i;return t+=(n-e)/12,1===e?P(t)?29:28:31-e%7%2}gt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n<this.length;++n)if(this[n]===t)return n;return-1},O("M",["MM",2],"Mo",(function(){return this.month()+1})),O("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),O("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),Z("month","M"),$("month",8),mt("M",et),mt("MM",et,V),mt("MMM",(function(t,n){return n.monthsShortRegex(t)})),mt("MMMM",(function(t,n){return n.monthsRegex(t)})),yt(["M","MM"],(function(t,n){n[1]=q(t)-1})),yt(["MMM","MMMM"],(function(t,n,i,e){var r=i._locale.monthsParse(t,e,i._strict);null!=r?n[1]=r:v(i).invalidMonth=t}));var Nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),pt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),kt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,bt=lt,Tt=lt;function _t(t,n,i){var e,r,s,u=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],e=0;e<12;++e)s=m([2e3,e]),this._shortMonthsParse[e]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[e]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===n?-1!==(r=gt.call(this._shortMonthsParse,u))?r:null:-1!==(r=gt.call(this._longMonthsParse,u))?r:null:"MMM"===n?-1!==(r=gt.call(this._shortMonthsParse,u))||-1!==(r=gt.call(this._longMonthsParse,u))?r:null:-1!==(r=gt.call(this._longMonthsParse,u))||-1!==(r=gt.call(this._shortMonthsParse,u))?r:null}function Ht(t,n){var i;if(!t.isValid())return t;if("string"==typeof n)if(/^\d+$/.test(n))n=q(n);else if(!f(n=t.localeData().monthsParse(n)))return t;return i=Math.min(t.date(),wt(t.year(),n)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](n,i),t}function Gt(t){return null!=t?(Ht(this,t),r.updateOffset(this,!0),this):Q(this,"Month")}function Wt(){function t(t,n){return n.length-t.length}var n,i,e=[],r=[],s=[];for(n=0;n<12;n++)i=m([2e3,n]),e.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(e.sort(t),r.sort(t),s.sort(t),n=0;n<12;n++)e[n]=Yt(e[n]),r[n]=Yt(r[n]);for(n=0;n<24;n++)s[n]=Yt(s[n]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Et(t){return P(t)?366:365}O("Y",0,0,(function(){var t=this.year();return t<=9999?W(t,4):"+"+t})),O(0,["YY",2],0,(function(){return this.year()%100})),O(0,["YYYY",4],0,"year"),O(0,["YYYYY",5],0,"year"),O(0,["YYYYYY",6,!0],0,"year"),Z("year","y"),$("year",1),mt("Y",ft),mt("YY",et,V),mt("YYYY",ot,nt),mt("YYYYY",ht,it),mt("YYYYYY",ht,it),yt(["YYYYY","YYYYYY"],0),yt("YYYY",(function(t,n){n[0]=2===t.length?r.parseTwoDigitYear(t):q(t)})),yt("YY",(function(t,n){n[0]=r.parseTwoDigitYear(t)})),yt("Y",(function(t,n){n[0]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return q(t)+(q(t)>68?1900:2e3)};var xt=J("FullYear",!0);function Ft(t,n,i,e,r,s,u){var o;return t<100&&t>=0?(o=new Date(t+400,n,i,e,r,s,u),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,n,i,e,r,s,u),o}function At(t){var n,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,n=new Date(Date.UTC.apply(null,i)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t)):n=new Date(Date.UTC.apply(null,arguments)),n}function Ot(t,n,i){var e=7+n-i;return-(7+At(t,0,e).getUTCDay()-n)%7+e-1}function jt(t,n,i,e,r){var s,u,o=1+7*(n-1)+(7+i-e)%7+Ot(t,e,r);return o<=0?u=Et(s=t-1)+o:o>Et(t)?(s=t+1,u=o-Et(t)):(s=t,u=o),{year:s,dayOfYear:u}}function Lt(t,n,i){var e,r,s=Ot(t.year(),n,i),u=Math.floor((t.dayOfYear()-s-1)/7)+1;return u<1?e=u+Rt(r=t.year()-1,n,i):u>Rt(t.year(),n,i)?(e=u-Rt(t.year(),n,i),r=t.year()+1):(r=t.year(),e=u),{week:e,year:r}}function Rt(t,n,i){var e=Ot(t,n,i),r=Ot(t+1,n,i);return(Et(t)-e+r)/7}O("w",["ww",2],"wo","week"),O("W",["WW",2],"Wo","isoWeek"),Z("week","w"),Z("isoWeek","W"),$("week",5),$("isoWeek",5),mt("w",et),mt("ww",et,V),mt("W",et),mt("WW",et,V),Dt(["w","ww","W","WW"],(function(t,n,i,e){n[e.substr(0,1)]=q(t)}));function Zt(t,n){return t.slice(n,7).concat(t.slice(0,n))}O("d",0,"do","day"),O("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),O("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),O("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),O("e",0,0,"weekday"),O("E",0,0,"isoWeekday"),Z("day","d"),Z("weekday","e"),Z("isoWeekday","E"),$("day",11),$("weekday",11),$("isoWeekday",11),mt("d",et),mt("e",et),mt("E",et),mt("dd",(function(t,n){return n.weekdaysMinRegex(t)})),mt("ddd",(function(t,n){return n.weekdaysShortRegex(t)})),mt("dddd",(function(t,n){return n.weekdaysRegex(t)})),Dt(["dd","ddd","dddd"],(function(t,n,i,e){var r=i._locale.weekdaysParse(t,e,i._strict);null!=r?n.d=r:v(i).invalidWeekday=t})),Dt(["d","e","E"],(function(t,n,i,e){n[e]=q(t)}));var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ct="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ut="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$t=lt,Pt=lt,zt=lt;function qt(t,n,i){var e,r,s,u=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],e=0;e<7;++e)s=m([2e3,1]).day(e),this._minWeekdaysParse[e]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[e]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[e]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===n?-1!==(r=gt.call(this._weekdaysParse,u))?r:null:"ddd"===n?-1!==(r=gt.call(this._shortWeekdaysParse,u))?r:null:-1!==(r=gt.call(this._minWeekdaysParse,u))?r:null:"dddd"===n?-1!==(r=gt.call(this._weekdaysParse,u))||-1!==(r=gt.call(this._shortWeekdaysParse,u))||-1!==(r=gt.call(this._minWeekdaysParse,u))?r:null:"ddd"===n?-1!==(r=gt.call(this._shortWeekdaysParse,u))||-1!==(r=gt.call(this._weekdaysParse,u))||-1!==(r=gt.call(this._minWeekdaysParse,u))?r:null:-1!==(r=gt.call(this._minWeekdaysParse,u))||-1!==(r=gt.call(this._weekdaysParse,u))||-1!==(r=gt.call(this._shortWeekdaysParse,u))?r:null}function Jt(){function t(t,n){return n.length-t.length}var n,i,e,r,s,u=[],o=[],h=[],a=[];for(n=0;n<7;n++)i=m([2e3,1]).day(n),e=Yt(this.weekdaysMin(i,"")),r=Yt(this.weekdaysShort(i,"")),s=Yt(this.weekdays(i,"")),u.push(e),o.push(r),h.push(s),a.push(e),a.push(r),a.push(s);u.sort(t),o.sort(t),h.sort(t),a.sort(t),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+u.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Bt(t,n){O(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)}))}function Xt(t,n){return n._meridiemParse}O("H",["HH",2],0,"hour"),O("h",["hh",2],0,Qt),O("k",["kk",2],0,(function(){return this.hours()||24})),O("hmm",0,0,(function(){return""+Qt.apply(this)+W(this.minutes(),2)})),O("hmmss",0,0,(function(){return""+Qt.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)})),O("Hmm",0,0,(function(){return""+this.hours()+W(this.minutes(),2)})),O("Hmmss",0,0,(function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)})),Bt("a",!0),Bt("A",!1),Z("hour","h"),$("hour",13),mt("a",Xt),mt("A",Xt),mt("H",et),mt("h",et),mt("k",et),mt("HH",et,V),mt("hh",et,V),mt("kk",et,V),mt("hmm",rt),mt("hmmss",st),mt("Hmm",rt),mt("Hmmss",st),yt(["H","HH"],3),yt(["k","kk"],(function(t,n){var i=q(t);n[3]=24===i?0:i})),yt(["a","A"],(function(t,n,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),yt(["h","hh"],(function(t,n,i){n[3]=q(t),v(i).bigHour=!0})),yt("hmm",(function(t,n,i){var e=t.length-2;n[3]=q(t.substr(0,e)),n[4]=q(t.substr(e)),v(i).bigHour=!0})),yt("hmmss",(function(t,n,i){var e=t.length-4,r=t.length-2;n[3]=q(t.substr(0,e)),n[4]=q(t.substr(e,2)),n[5]=q(t.substr(r)),v(i).bigHour=!0})),yt("Hmm",(function(t,n){var i=t.length-2;n[3]=q(t.substr(0,i)),n[4]=q(t.substr(i))})),yt("Hmmss",(function(t,n){var i=t.length-4,e=t.length-2;n[3]=q(t.substr(0,i)),n[4]=q(t.substr(i,2)),n[5]=q(t.substr(e))}));var Kt=J("Hours",!0);var Vt,tn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Nt,monthsShort:pt,week:{dow:0,doy:6},weekdays:It,weekdaysMin:Ut,weekdaysShort:Ct,meridiemParse:/[ap]\.?m?\.?/i},nn={},en={};function rn(t,n){var i,e=Math.min(t.length,n.length);for(i=0;i<e;i+=1)if(t[i]!==n[i])return i;return e}function sn(t){return t?t.toLowerCase().replace("_","-"):t}function un(n){var e=null;if(void 0===nn[n]&&t&&t.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(n))try{e=Vt._abbr,i("./locale/"+n),on(e)}catch(t){nn[n]=null}return nn[n]}function on(t,n){var i;return t&&((i=a(n)?an(t):hn(t,n))?Vt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Vt._abbr}function hn(t,n){if(null!==n){var i,e=tn;if(n.abbr=t,null!=nn[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),e=nn[t]._config;else if(null!=n.parentLocale)if(null!=nn[n.parentLocale])e=nn[n.parentLocale]._config;else{if(null==(i=un(n.parentLocale)))return en[n.parentLocale]||(en[n.parentLocale]=[]),en[n.parentLocale].push({name:t,config:n}),null;e=i._config}return nn[t]=new G(H(e,n)),en[t]&&en[t].forEach((function(t){hn(t.name,t.config)})),on(t),nn[t]}return delete nn[t],null}function an(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Vt;if(!s(t)){if(n=un(t))return n;t=[t]}return function(t){for(var n,i,e,r,s=0;s<t.length;){for(n=(r=sn(t[s]).split("-")).length,i=(i=sn(t[s+1]))?i.split("-"):null;n>0;){if(e=un(r.slice(0,n).join("-")))return e;if(i&&i.length>=n&&rn(r,i)>=n-1)break;n--}s++}return Vt}(t)}function fn(t){var n,i=t._a;return i&&-2===v(t).overflow&&(n=i[1]<0||i[1]>11?1:i[2]<1||i[2]>wt(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,v(t)._overflowDayOfYear&&(n<0||n>2)&&(n=2),v(t)._overflowWeeks&&-1===n&&(n=7),v(t)._overflowWeekday&&-1===n&&(n=8),v(t).overflow=n),t}var cn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ln=/Z|[+-]\d\d(?::?\d\d)?/,mn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],vn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yn=/^\/?Date\((-?\d+)/i,Mn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dn(t){var n,i,e,r,s,u,o=t._i,h=cn.exec(o)||dn.exec(o),a=mn.length,f=vn.length;if(h){for(v(t).iso=!0,n=0,i=a;n<i;n++)if(mn[n][1].exec(h[1])){r=mn[n][0],e=!1!==mn[n][2];break}if(null==r)return void(t._isValid=!1);if(h[3]){for(n=0,i=f;n<i;n++)if(vn[n][1].exec(h[3])){s=(h[2]||" ")+vn[n][0];break}if(null==s)return void(t._isValid=!1)}if(!e&&null!=s)return void(t._isValid=!1);if(h[4]){if(!ln.exec(h[4]))return void(t._isValid=!1);u="Z"}t._f=r+(s||"")+(u||""),pn(t)}else t._isValid=!1}function Sn(t){var n=parseInt(t,10);return n<=49?2e3+n:n<=999?1900+n:n}function gn(t){var n,i,e,r,s,u,o,h=Mn.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(h){if(i=h[3],e=h[2],r=h[5],s=h[6],u=h[7],o=[Sn(h[4]),pt.indexOf(i),parseInt(e,10),parseInt(r,10),parseInt(s,10)],u&&o.push(parseInt(u,10)),!function(t,n,i){return!t||Ct.indexOf(t)===new Date(n[0],n[1],n[2]).getDay()||(v(i).weekdayMismatch=!0,i._isValid=!1,!1)}(h[1],n=o,t))return;t._a=n,t._tzm=function(t,n,i){if(t)return yn[t];if(n)return 0;var e=parseInt(i,10),r=e%100;return(e-r)/100*60+r}(h[8],h[9],h[10]),t._d=At.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),v(t).rfc2822=!0}else t._isValid=!1}function wn(t,n,i){return null!=t?t:null!=n?n:i}function Nn(t){var n,i,e,s,u,o=[];if(!t._d){for(e=function(t){var n=new Date(r.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var n,i,e,r,s,u,o,h,a;null!=(n=t._w).GG||null!=n.W||null!=n.E?(s=1,u=4,i=wn(n.GG,t._a[0],Lt(Tn(),1,4).year),e=wn(n.W,1),((r=wn(n.E,1))<1||r>7)&&(h=!0)):(s=t._locale._week.dow,u=t._locale._week.doy,a=Lt(Tn(),s,u),i=wn(n.gg,t._a[0],a.year),e=wn(n.w,a.week),null!=n.d?((r=n.d)<0||r>6)&&(h=!0):null!=n.e?(r=n.e+s,(n.e<0||n.e>6)&&(h=!0)):r=s),e<1||e>Rt(i,s,u)?v(t)._overflowWeeks=!0:null!=h?v(t)._overflowWeekday=!0:(o=jt(i,e,r,s,u),t._a[0]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(u=wn(t._a[0],e[0]),(t._dayOfYear>Et(u)||0===t._dayOfYear)&&(v(t)._overflowDayOfYear=!0),i=At(u,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=o[n]=e[n];for(;n<7;n++)t._a[n]=o[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?At:Ft).apply(null,o),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(v(t).weekdayMismatch=!0)}}function pn(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],v(t).empty=!0;var n,i,e,s,u,o,h,a=""+t._i,f=a.length,c=0;for(h=(e=L(t._f,t._locale).match(E)||[]).length,n=0;n<h;n++)(i=(a.match(vt(s=e[n],t))||[])[0])&&((u=a.substr(0,a.indexOf(i))).length>0&&v(t).unusedInput.push(u),a=a.slice(a.indexOf(i)+i.length),c+=i.length),A[s]?(i?v(t).empty=!1:v(t).unusedTokens.push(s),St(s,i,t)):t._strict&&!i&&v(t).unusedTokens.push(s);v(t).charsLeftOver=f-c,a.length>0&&v(t).unusedInput.push(a),t._a[3]<=12&&!0===v(t).bigHour&&t._a[3]>0&&(v(t).bigHour=void 0),v(t).parsedDateParts=t._a.slice(0),v(t).meridiem=t._meridiem,t._a[3]=function(t,n,i){var e;return null==i?n:null!=t.meridiemHour?t.meridiemHour(n,i):null!=t.isPM?((e=t.isPM(i))&&n<12&&(n+=12),e||12!==n||(n=0),n):n}(t._locale,t._a[3],t._meridiem),null!==(o=v(t).era)&&(t._a[0]=t._locale.erasConvertYear(o,t._a[0])),Nn(t),fn(t)}else gn(t);else Dn(t)}function kn(t){var n=t._i,i=t._f;return t._locale=t._locale||an(t._l),null===n||void 0===i&&""===n?M({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),w(n)?new g(fn(n)):(c(n)?t._d=n:s(i)?function(t){var n,i,e,r,s,u,o=!1,h=t._f.length;if(0===h)return v(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<h;r++)s=0,u=!1,n=S({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._f=t._f[r],pn(n),Y(n)&&(u=!0),s+=v(n).charsLeftOver,s+=10*v(n).unusedTokens.length,v(n).score=s,o?s<e&&(e=s,i=n):(null==e||s<e||u)&&(e=s,i=n,u&&(o=!0));l(t,i||n)}(t):i?pn(t):function(t){var n=t._i;a(n)?t._d=new Date(r.now()):c(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(t){var n=Yn.exec(t._i);null===n?(Dn(t),!1===t._isValid&&(delete t._isValid,gn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:r.createFromInputFallback(t)))):t._d=new Date(+n[1])}(t):s(n)?(t._a=d(n.slice(0),(function(t){return parseInt(t,10)})),Nn(t)):u(n)?function(t){if(!t._d){var n=C(t._i);t._a=d([n.year,n.month,void 0===n.day?n.date:n.day,n.hour,n.minute,n.second,n.millisecond],(function(t){return t&&parseInt(t,10)})),Nn(t)}}(t):f(n)?t._d=new Date(n):r.createFromInputFallback(t)}(t),Y(t)||(t._d=null),t))}function bn(t,n,i,e,r){var o,a={};return!0!==n&&!1!==n||(e=n,n=void 0),!0!==i&&!1!==i||(e=i,i=void 0),(u(t)&&h(t)||s(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=i,a._i=t,a._f=n,a._strict=e,(o=new g(fn(kn(a))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Tn(t,n,i,e){return bn(t,n,i,e,!1)}r.createFromInputFallback=p("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var _n=p("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Tn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:M()})),Hn=p("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Tn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:M()}));function Gn(t,n){var i,e;if(1===n.length&&s(n[0])&&(n=n[0]),!n.length)return Tn();for(i=n[0],e=1;e<n.length;++e)n[e].isValid()&&!n[e][t](i)||(i=n[e]);return i}var Wn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function En(t){var n=C(t),i=n.year||0,e=n.quarter||0,r=n.month||0,s=n.week||n.isoWeek||0,u=n.day||0,h=n.hour||0,a=n.minute||0,f=n.second||0,c=n.millisecond||0;this._isValid=function(t){var n,i,e=!1,r=Wn.length;for(n in t)if(o(t,n)&&(-1===gt.call(Wn,n)||null!=t[n]&&isNaN(t[n])))return!1;for(i=0;i<r;++i)if(t[Wn[i]]){if(e)return!1;parseFloat(t[Wn[i]])!==q(t[Wn[i]])&&(e=!0)}return!0}(n),this._milliseconds=+c+1e3*f+6e4*a+1e3*h*60*60,this._days=+u+7*s,this._months=+r+3*e+12*i,this._data={},this._locale=an(),this._bubble()}function xn(t){return t instanceof En}function Fn(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function An(t,n){O(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+W(~~(t/60),2)+n+W(~~t%60,2)}))}An("Z",":"),An("ZZ",""),mt("Z",dt),mt("ZZ",dt),yt(["Z","ZZ"],(function(t,n,i){i._useUTC=!0,i._tzm=jn(dt,t)}));var On=/([\+\-]|\d\d)/gi;function jn(t,n){var i,e,r=(n||"").match(t);return null===r?null:0===(e=60*(i=((r[r.length-1]||[])+"").match(On)||["-",0,0])[1]+q(i[2]))?0:"+"===i[0]?e:-e}function Ln(t,n){var i,e;return n._isUTC?(i=n.clone(),e=(w(t)||c(t)?t.valueOf():Tn(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+e),r.updateOffset(i,!1),i):Tn(t).local()}function Rn(t){return-Math.round(t._d.getTimezoneOffset())}function Zn(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var In=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Cn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Un(t,n){var i,e,r,s,u,h,a=t,c=null;return xn(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:f(t)||!isNaN(+t)?(a={},n?a[n]=+t:a.milliseconds=+t):(c=In.exec(t))?(i="-"===c[1]?-1:1,a={y:0,d:q(c[2])*i,h:q(c[3])*i,m:q(c[4])*i,s:q(c[5])*i,ms:q(Fn(1e3*c[6]))*i}):(c=Cn.exec(t))?a={y:$n(c[2],i="-"===c[1]?-1:1),M:$n(c[3],i),w:$n(c[4],i),d:$n(c[5],i),h:$n(c[6],i),m:$n(c[7],i),s:$n(c[8],i)}:null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(s=Tn(a.from),u=Tn(a.to),r=s.isValid()&&u.isValid()?(u=Ln(u,s),s.isBefore(u)?h=Pn(s,u):((h=Pn(u,s)).milliseconds=-h.milliseconds,h.months=-h.months),h):{milliseconds:0,months:0},(a={}).ms=r.milliseconds,a.M=r.months),e=new En(a),xn(t)&&o(t,"_locale")&&(e._locale=t._locale),xn(t)&&o(t,"_isValid")&&(e._isValid=t._isValid),e}function $n(t,n){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*n}function Pn(t,n){var i={};return i.months=n.month()-t.month()+12*(n.year()-t.year()),t.clone().add(i.months,"M").isAfter(n)&&--i.months,i.milliseconds=+n-+t.clone().add(i.months,"M"),i}function zn(t,n){return function(i,e){var r;return null===e||isNaN(+e)||(T(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=e,e=r),qn(this,Un(i,e),t),this}}function qn(t,n,i,e){var s=n._milliseconds,u=Fn(n._days),o=Fn(n._months);t.isValid()&&(e=null==e||e,o&&Ht(t,Q(t,"Month")+o*i),u&&B(t,"Date",Q(t,"Date")+u*i),s&&t._d.setTime(t._d.valueOf()+s*i),e&&r.updateOffset(t,u||o))}Un.fn=En.prototype,Un.invalid=function(){return Un(NaN)};var Jn=zn(1,"add"),Qn=zn(-1,"subtract");function Bn(t){return"string"==typeof t||t instanceof String}function Xn(t){return w(t)||c(t)||Bn(t)||f(t)||function(t){var n=s(t),i=!1;return n&&(i=0===t.filter((function(n){return!f(n)&&Bn(t)})).length),n&&i}(t)||function(t){var n,i=u(t)&&!h(t),e=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=r.length;for(n=0;n<s;n+=1)e=e||o(t,r[n]);return i&&e}(t)||null==t}function Kn(t){var n,i=u(t)&&!h(t),e=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(n=0;n<r.length;n+=1)e=e||o(t,r[n]);return i&&e}function Vn(t,n){if(t.date()<n.date())return-Vn(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),e=t.clone().add(i,"months");return-(i+(n-e<0?(n-e)/(e-t.clone().add(i-1,"months")):(n-e)/(t.clone().add(i+1,"months")-e)))||0}function ti(t){var n;return void 0===t?this._locale._abbr:(null!=(n=an(t))&&(this._locale=n),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ni=p("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ii(){return this._locale}var ei=1e3,ri=6e4,si=36e5,ui=126227808e5;function oi(t,n){return(t%n+n)%n}function hi(t,n,i){return t<100&&t>=0?new Date(t+400,n,i)-ui:new Date(t,n,i).valueOf()}function ai(t,n,i){return t<100&&t>=0?Date.UTC(t+400,n,i)-ui:Date.UTC(t,n,i)}function fi(t,n){return n.erasAbbrRegex(t)}function ci(){var t,n,i=[],e=[],r=[],s=[],u=this.eras();for(t=0,n=u.length;t<n;++t)e.push(Yt(u[t].name)),i.push(Yt(u[t].abbr)),r.push(Yt(u[t].narrow)),s.push(Yt(u[t].name)),s.push(Yt(u[t].abbr)),s.push(Yt(u[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function di(t,n){O(0,[t,t.length],0,n)}function li(t,n,i,e,r){var s;return null==t?Lt(this,e,r).year:(n>(s=Rt(t,e,r))&&(n=s),mi.call(this,t,n,i,e,r))}function mi(t,n,i,e,r){var s=jt(t,n,i,e,r),u=At(s.year,0,s.dayOfYear);return this.year(u.getUTCFullYear()),this.month(u.getUTCMonth()),this.date(u.getUTCDate()),this}O("N",0,0,"eraAbbr"),O("NN",0,0,"eraAbbr"),O("NNN",0,0,"eraAbbr"),O("NNNN",0,0,"eraName"),O("NNNNN",0,0,"eraNarrow"),O("y",["y",1],"yo","eraYear"),O("y",["yy",2],0,"eraYear"),O("y",["yyy",3],0,"eraYear"),O("y",["yyyy",4],0,"eraYear"),mt("N",fi),mt("NN",fi),mt("NNN",fi),mt("NNNN",(function(t,n){return n.erasNameRegex(t)})),mt("NNNNN",(function(t,n){return n.erasNarrowRegex(t)})),yt(["N","NN","NNN","NNNN","NNNNN"],(function(t,n,i,e){var r=i._locale.erasParse(t,e,i._strict);r?v(i).era=r:v(i).invalidEra=t})),mt("y",at),mt("yy",at),mt("yyy",at),mt("yyyy",at),mt("yo",(function(t,n){return n._eraYearOrdinalRegex||at})),yt(["y","yy","yyy","yyyy"],0),yt(["yo"],(function(t,n,i){var e;i._locale._eraYearOrdinalRegex&&(e=t.match(i._locale._eraYearOrdinalRegex)),n[0]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,e):parseInt(t,10)})),O(0,["gg",2],0,(function(){return this.weekYear()%100})),O(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),di("gggg","weekYear"),di("ggggg","weekYear"),di("GGGG","isoWeekYear"),di("GGGGG","isoWeekYear"),Z("weekYear","gg"),Z("isoWeekYear","GG"),$("weekYear",1),$("isoWeekYear",1),mt("G",ft),mt("g",ft),mt("GG",et,V),mt("gg",et,V),mt("GGGG",ot,nt),mt("gggg",ot,nt),mt("GGGGG",ht,it),mt("ggggg",ht,it),Dt(["gggg","ggggg","GGGG","GGGGG"],(function(t,n,i,e){n[e.substr(0,2)]=q(t)})),Dt(["gg","GG"],(function(t,n,i,e){n[e]=r.parseTwoDigitYear(t)})),O("Q",0,"Qo","quarter"),Z("quarter","Q"),$("quarter",7),mt("Q",K),yt("Q",(function(t,n){n[1]=3*(q(t)-1)})),O("D",["DD",2],"Do","date"),Z("date","D"),$("date",9),mt("D",et),mt("DD",et,V),mt("Do",(function(t,n){return t?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient})),yt(["D","DD"],2),yt("Do",(function(t,n){n[2]=q(t.match(et)[0])}));var vi=J("Date",!0);O("DDD",["DDDD",3],"DDDo","dayOfYear"),Z("dayOfYear","DDD"),$("dayOfYear",4),mt("DDD",ut),mt("DDDD",tt),yt(["DDD","DDDD"],(function(t,n,i){i._dayOfYear=q(t)})),O("m",["mm",2],0,"minute"),Z("minute","m"),$("minute",14),mt("m",et),mt("mm",et,V),yt(["m","mm"],4);var Yi=J("Minutes",!1);O("s",["ss",2],0,"second"),Z("second","s"),$("second",15),mt("s",et),mt("ss",et,V),yt(["s","ss"],5);var Mi,yi,Di=J("Seconds",!1);for(O("S",0,0,(function(){return~~(this.millisecond()/100)})),O(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),O(0,["SSS",3],0,"millisecond"),O(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),O(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),O(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),O(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),O(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),O(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Z("millisecond","ms"),$("millisecond",16),mt("S",ut,K),mt("SS",ut,V),mt("SSS",ut,tt),Mi="SSSS";Mi.length<=9;Mi+="S")mt(Mi,at);function Si(t,n){n[6]=q(1e3*("0."+t))}for(Mi="S";Mi.length<=9;Mi+="S")yt(Mi,Si);yi=J("Milliseconds",!1),O("z",0,0,"zoneAbbr"),O("zz",0,0,"zoneName");var gi=g.prototype;function wi(t){return t}gi.add=Jn,gi.calendar=function(t,n){1===arguments.length&&(arguments[0]?Xn(arguments[0])?(t=arguments[0],n=void 0):Kn(arguments[0])&&(n=arguments[0],t=void 0):(t=void 0,n=void 0));var i=t||Tn(),e=Ln(i,this).startOf("day"),s=r.calendarFormat(this,e)||"sameElse",u=n&&(_(n[s])?n[s].call(this,i):n[s]);return this.format(u||this.localeData().calendar(s,this,Tn(i)))},gi.clone=function(){return new g(this)},gi.diff=function(t,n,i){var e,r,s;if(!this.isValid())return NaN;if(!(e=Ln(t,this)).isValid())return NaN;switch(r=6e4*(e.utcOffset()-this.utcOffset()),n=I(n)){case"year":s=Vn(this,e)/12;break;case"month":s=Vn(this,e);break;case"quarter":s=Vn(this,e)/3;break;case"second":s=(this-e)/1e3;break;case"minute":s=(this-e)/6e4;break;case"hour":s=(this-e)/36e5;break;case"day":s=(this-e-r)/864e5;break;case"week":s=(this-e-r)/6048e5;break;default:s=this-e}return i?s:z(s)},gi.endOf=function(t){var n,i;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?ai:hi,t){case"year":n=i(this.year()+1,0,1)-1;break;case"quarter":n=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=i(this.year(),this.month()+1,1)-1;break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=si-oi(n+(this._isUTC?0:this.utcOffset()*ri),si)-1;break;case"minute":n=this._d.valueOf(),n+=ri-oi(n,ri)-1;break;case"second":n=this._d.valueOf(),n+=ei-oi(n,ei)-1}return this._d.setTime(n),r.updateOffset(this,!0),this},gi.format=function(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var n=j(this,t);return this.localeData().postformat(n)},gi.from=function(t,n){return this.isValid()&&(w(t)&&t.isValid()||Tn(t).isValid())?Un({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},gi.fromNow=function(t){return this.from(Tn(),t)},gi.to=function(t,n){return this.isValid()&&(w(t)&&t.isValid()||Tn(t).isValid())?Un({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},gi.toNow=function(t){return this.to(Tn(),t)},gi.get=function(t){return _(this[t=I(t)])?this[t]():this},gi.invalidAt=function(){return v(this).overflow},gi.isAfter=function(t,n){var i=w(t)?t:Tn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=I(n)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(n).valueOf())},gi.isBefore=function(t,n){var i=w(t)?t:Tn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=I(n)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(n).valueOf()<i.valueOf())},gi.isBetween=function(t,n,i,e){var r=w(t)?t:Tn(t),s=w(n)?n:Tn(n);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(e=e||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===e[1]?this.isBefore(s,i):!this.isAfter(s,i))},gi.isSame=function(t,n){var i,e=w(t)?t:Tn(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(n=I(n)||"millisecond")?this.valueOf()===e.valueOf():(i=e.valueOf(),this.clone().startOf(n).valueOf()<=i&&i<=this.clone().endOf(n).valueOf()))},gi.isSameOrAfter=function(t,n){return this.isSame(t,n)||this.isAfter(t,n)},gi.isSameOrBefore=function(t,n){return this.isSame(t,n)||this.isBefore(t,n)},gi.isValid=function(){return Y(this)},gi.lang=ni,gi.locale=ti,gi.localeData=ii,gi.max=Hn,gi.min=_n,gi.parsingFlags=function(){return l({},v(this))},gi.set=function(t,n){if("object"==typeof t){var i,e=function(t){var n,i=[];for(n in t)o(t,n)&&i.push({unit:n,priority:U[n]});return i.sort((function(t,n){return t.priority-n.priority})),i}(t=C(t)),r=e.length;for(i=0;i<r;i++)this[e[i].unit](t[e[i].unit])}else if(_(this[t=I(t)]))return this[t](n);return this},gi.startOf=function(t){var n,i;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?ai:hi,t){case"year":n=i(this.year(),0,1);break;case"quarter":n=i(this.year(),this.month()-this.month()%3,1);break;case"month":n=i(this.year(),this.month(),1);break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=i(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=oi(n+(this._isUTC?0:this.utcOffset()*ri),si);break;case"minute":n=this._d.valueOf(),n-=oi(n,ri);break;case"second":n=this._d.valueOf(),n-=oi(n,ei)}return this._d.setTime(n),r.updateOffset(this,!0),this},gi.subtract=Qn,gi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},gi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},gi.toDate=function(){return new Date(this.valueOf())},gi.toISOString=function(t){if(!this.isValid())return null;var n=!0!==t,i=n?this.clone().utc():this;return i.year()<0||i.year()>9999?j(i,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(i,"Z")):j(i,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},gi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,n,i="moment",e="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+i+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(gi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),gi.toJSON=function(){return this.isValid()?this.toISOString():null},gi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},gi.unix=function(){return Math.floor(this.valueOf()/1e3)},gi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},gi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},gi.eraName=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].name;if(e[t].until<=i&&i<=e[t].since)return e[t].name}return""},gi.eraNarrow=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].narrow;if(e[t].until<=i&&i<=e[t].since)return e[t].narrow}return""},gi.eraAbbr=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].abbr;if(e[t].until<=i&&i<=e[t].since)return e[t].abbr}return""},gi.eraYear=function(){var t,n,i,e,s=this.localeData().eras();for(t=0,n=s.length;t<n;++t)if(i=s[t].since<=s[t].until?1:-1,e=this.clone().startOf("day").valueOf(),s[t].since<=e&&e<=s[t].until||s[t].until<=e&&e<=s[t].since)return(this.year()-r(s[t].since).year())*i+s[t].offset;return this.year()},gi.year=xt,gi.isLeapYear=function(){return P(this.year())},gi.weekYear=function(t){return li.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},gi.isoWeekYear=function(t){return li.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},gi.quarter=gi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},gi.month=Gt,gi.daysInMonth=function(){return wt(this.year(),this.month())},gi.week=gi.weeks=function(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),"d")},gi.isoWeek=gi.isoWeeks=function(t){var n=Lt(this,1,4).week;return null==t?n:this.add(7*(t-n),"d")},gi.weeksInYear=function(){var t=this.localeData()._week;return Rt(this.year(),t.dow,t.doy)},gi.weeksInWeekYear=function(){var t=this.localeData()._week;return Rt(this.weekYear(),t.dow,t.doy)},gi.isoWeeksInYear=function(){return Rt(this.year(),1,4)},gi.isoWeeksInISOWeekYear=function(){return Rt(this.isoWeekYear(),1,4)},gi.date=vi,gi.day=gi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,n){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-n,"d")):n},gi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,"d")},gi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var n=function(t,n){return"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},gi.dayOfYear=function(t){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?n:this.add(t-n,"d")},gi.hour=gi.hours=Kt,gi.minute=gi.minutes=Yi,gi.second=gi.seconds=Di,gi.millisecond=gi.milliseconds=yi,gi.utcOffset=function(t,n,i){var e,s=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=jn(dt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&n&&(e=Rn(this)),this._offset=t,this._isUTC=!0,null!=e&&this.add(e,"m"),s!==t&&(!n||this._changeInProgress?qn(this,Un(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:Rn(this)},gi.utc=function(t){return this.utcOffset(0,t)},gi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Rn(this),"m")),this},gi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=jn(ct,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},gi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Tn(t).utcOffset():0,(this.utcOffset()-t)%60==0)},gi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},gi.isLocal=function(){return!!this.isValid()&&!this._isUTC},gi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},gi.isUtc=Zn,gi.isUTC=Zn,gi.zoneAbbr=function(){return this._isUTC?"UTC":""},gi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},gi.dates=p("dates accessor is deprecated. Use date instead.",vi),gi.months=p("months accessor is deprecated. Use month instead",Gt),gi.years=p("years accessor is deprecated. Use year instead",xt),gi.zone=p("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,n){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()})),gi.isDSTShifted=p("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t,n={};return S(n,this),(n=kn(n))._a?(t=n._isUTC?m(n._a):Tn(n._a),this._isDSTShifted=this.isValid()&&function(t,n,i){var e,r=Math.min(t.length,n.length),s=Math.abs(t.length-n.length),u=0;for(e=0;e<r;e++)(i&&t[e]!==n[e]||!i&&q(t[e])!==q(n[e]))&&u++;return u+s}(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Ni=G.prototype;function pi(t,n,i,e){var r=an(),s=m().set(e,n);return r[i](s,t)}function ki(t,n,i){if(f(t)&&(n=t,t=void 0),t=t||"",null!=n)return pi(t,n,i,"month");var e,r=[];for(e=0;e<12;e++)r[e]=pi(t,e,i,"month");return r}function bi(t,n,i,e){"boolean"==typeof t?(f(n)&&(i=n,n=void 0),n=n||""):(i=n=t,t=!1,f(n)&&(i=n,n=void 0),n=n||"");var r,s=an(),u=t?s._week.dow:0,o=[];if(null!=i)return pi(n,(i+u)%7,e,"day");for(r=0;r<7;r++)o[r]=pi(n,(r+u)%7,e,"day");return o}Ni.calendar=function(t,n,i){var e=this._calendar[t]||this._calendar.sameElse;return _(e)?e.call(n,i):e},Ni.longDateFormat=function(t){var n=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return n||!i?n:(this._longDateFormat[t]=i.match(E).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Ni.invalidDate=function(){return this._invalidDate},Ni.ordinal=function(t){return this._ordinal.replace("%d",t)},Ni.preparse=wi,Ni.postformat=wi,Ni.relativeTime=function(t,n,i,e){var r=this._relativeTime[i];return _(r)?r(t,n,i,e):r.replace(/%d/i,t)},Ni.pastFuture=function(t,n){var i=this._relativeTime[t>0?"future":"past"];return _(i)?i(n):i.replace(/%s/i,n)},Ni.set=function(t){var n,i;for(i in t)o(t,i)&&(_(n=t[i])?this[i]=n:this["_"+i]=n);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ni.eras=function(){var t,n,i,e=this._eras||an("en")._eras;for(t=0,n=e.length;t<n;++t){switch(typeof e[t].since){case"string":i=r(e[t].since).startOf("day"),e[t].since=i.valueOf()}switch(typeof e[t].until){case"undefined":e[t].until=1/0;break;case"string":i=r(e[t].until).startOf("day").valueOf(),e[t].until=i.valueOf()}}return e},Ni.erasParse=function(t,n,i){var e,r,s,u,o,h=this.eras();for(t=t.toUpperCase(),e=0,r=h.length;e<r;++e)if(s=h[e].name.toUpperCase(),u=h[e].abbr.toUpperCase(),o=h[e].narrow.toUpperCase(),i)switch(n){case"N":case"NN":case"NNN":if(u===t)return h[e];break;case"NNNN":if(s===t)return h[e];break;case"NNNNN":if(o===t)return h[e]}else if([s,u,o].indexOf(t)>=0)return h[e]},Ni.erasConvertYear=function(t,n){var i=t.since<=t.until?1:-1;return void 0===n?r(t.since).year():r(t.since).year()+(n-t.offset)*i},Ni.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||ci.call(this),t?this._erasAbbrRegex:this._erasRegex},Ni.erasNameRegex=function(t){return o(this,"_erasNameRegex")||ci.call(this),t?this._erasNameRegex:this._erasRegex},Ni.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||ci.call(this),t?this._erasNarrowRegex:this._erasRegex},Ni.months=function(t,n){return t?s(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||kt).test(n)?"format":"standalone"][t.month()]:s(this._months)?this._months:this._months.standalone},Ni.monthsShort=function(t,n){return t?s(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[kt.test(n)?"format":"standalone"][t.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ni.monthsParse=function(t,n,i){var e,r,s;if(this._monthsParseExact)return _t.call(this,t,n,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),e=0;e<12;e++){if(r=m([2e3,e]),i&&!this._longMonthsParse[e]&&(this._longMonthsParse[e]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[e]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[e]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[e]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===n&&this._longMonthsParse[e].test(t))return e;if(i&&"MMM"===n&&this._shortMonthsParse[e].test(t))return e;if(!i&&this._monthsParse[e].test(t))return e}},Ni.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Wt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Tt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Ni.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Wt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=bt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Ni.week=function(t){return Lt(t,this._week.dow,this._week.doy).week},Ni.firstDayOfYear=function(){return this._week.doy},Ni.firstDayOfWeek=function(){return this._week.dow},Ni.weekdays=function(t,n){var i=s(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===t?Zt(i,this._week.dow):t?i[t.day()]:i},Ni.weekdaysMin=function(t){return!0===t?Zt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Ni.weekdaysShort=function(t){return!0===t?Zt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Ni.weekdaysParse=function(t,n,i){var e,r,s;if(this._weekdaysParseExact)return qt.call(this,t,n,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),e=0;e<7;e++){if(r=m([2e3,1]).day(e),i&&!this._fullWeekdaysParse[e]&&(this._fullWeekdaysParse[e]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[e]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[e]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[e]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[e]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===n&&this._fullWeekdaysParse[e].test(t))return e;if(i&&"ddd"===n&&this._shortWeekdaysParse[e].test(t))return e;if(i&&"dd"===n&&this._minWeekdaysParse[e].test(t))return e;if(!i&&this._weekdaysParse[e].test(t))return e}},Ni.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=$t),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Ni.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Pt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ni.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ni.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Ni.meridiem=function(t,n,i){return t>11?i?"pm":"PM":i?"am":"AM"},on("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10;return t+(1===q(t%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),r.lang=p("moment.lang is deprecated. Use moment.locale instead.",on),r.langData=p("moment.langData is deprecated. Use moment.localeData instead.",an);var Ti=Math.abs;function _i(t,n,i,e){var r=Un(n,i);return t._milliseconds+=e*r._milliseconds,t._days+=e*r._days,t._months+=e*r._months,t._bubble()}function Hi(t){return t<0?Math.floor(t):Math.ceil(t)}function Gi(t){return 4800*t/146097}function Wi(t){return 146097*t/4800}function Ei(t){return function(){return this.as(t)}}var xi=Ei("ms"),Fi=Ei("s"),Ai=Ei("m"),Oi=Ei("h"),ji=Ei("d"),Li=Ei("w"),Ri=Ei("M"),Zi=Ei("Q"),Ii=Ei("y");function Ci(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ui=Ci("milliseconds"),$i=Ci("seconds"),Pi=Ci("minutes"),zi=Ci("hours"),qi=Ci("days"),Ji=Ci("months"),Qi=Ci("years");var Bi=Math.round,Xi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ki(t,n,i,e,r){return r.relativeTime(n||1,!!i,t,e)}var Vi=Math.abs;function te(t){return(t>0)-(t<0)||+t}function ne(){if(!this.isValid())return this.localeData().invalidDate();var t,n,i,e,r,s,u,o,h=Vi(this._milliseconds)/1e3,a=Vi(this._days),f=Vi(this._months),c=this.asSeconds();return c?(t=z(h/60),n=z(t/60),h%=60,t%=60,i=z(f/12),f%=12,e=h?h.toFixed(3).replace(/\.?0+$/,""):"",r=c<0?"-":"",s=te(this._months)!==te(c)?"-":"",u=te(this._days)!==te(c)?"-":"",o=te(this._milliseconds)!==te(c)?"-":"",r+"P"+(i?s+i+"Y":"")+(f?s+f+"M":"")+(a?u+a+"D":"")+(n||t||h?"T":"")+(n?o+n+"H":"")+(t?o+t+"M":"")+(h?o+e+"S":"")):"P0D"}var ie=En.prototype;return ie.isValid=function(){return this._isValid},ie.abs=function(){var t=this._data;return this._milliseconds=Ti(this._milliseconds),this._days=Ti(this._days),this._months=Ti(this._months),t.milliseconds=Ti(t.milliseconds),t.seconds=Ti(t.seconds),t.minutes=Ti(t.minutes),t.hours=Ti(t.hours),t.months=Ti(t.months),t.years=Ti(t.years),this},ie.add=function(t,n){return _i(this,t,n,1)},ie.subtract=function(t,n){return _i(this,t,n,-1)},ie.as=function(t){if(!this.isValid())return NaN;var n,i,e=this._milliseconds;if("month"===(t=I(t))||"quarter"===t||"year"===t)switch(i=this._months+Gi(n=this._days+e/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(n=this._days+Math.round(Wi(this._months)),t){case"week":return n/7+e/6048e5;case"day":return n+e/864e5;case"hour":return 24*n+e/36e5;case"minute":return 1440*n+e/6e4;case"second":return 86400*n+e/1e3;case"millisecond":return Math.floor(864e5*n)+e;default:throw new Error("Unknown unit "+t)}},ie.asMilliseconds=xi,ie.asSeconds=Fi,ie.asMinutes=Ai,ie.asHours=Oi,ie.asDays=ji,ie.asWeeks=Li,ie.asMonths=Ri,ie.asQuarters=Zi,ie.asYears=Ii,ie.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},ie._bubble=function(){var t,n,i,e,r,s=this._milliseconds,u=this._days,o=this._months,h=this._data;return s>=0&&u>=0&&o>=0||s<=0&&u<=0&&o<=0||(s+=864e5*Hi(Wi(o)+u),u=0,o=0),h.milliseconds=s%1e3,t=z(s/1e3),h.seconds=t%60,n=z(t/60),h.minutes=n%60,i=z(n/60),h.hours=i%24,u+=z(i/24),o+=r=z(Gi(u)),u-=Hi(Wi(r)),e=z(o/12),o%=12,h.days=u,h.months=o,h.years=e,this},ie.clone=function(){return Un(this)},ie.get=function(t){return t=I(t),this.isValid()?this[t+"s"]():NaN},ie.milliseconds=Ui,ie.seconds=$i,ie.minutes=Pi,ie.hours=zi,ie.days=qi,ie.weeks=function(){return z(this.days()/7)},ie.months=Ji,ie.years=Qi,ie.humanize=function(t,n){if(!this.isValid())return this.localeData().invalidDate();var i,e,r=!1,s=Xi;return"object"==typeof t&&(n=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof n&&(s=Object.assign({},Xi,n),null!=n.s&&null==n.ss&&(s.ss=n.s-1)),e=function(t,n,i,e){var r=Un(t).abs(),s=Bi(r.as("s")),u=Bi(r.as("m")),o=Bi(r.as("h")),h=Bi(r.as("d")),a=Bi(r.as("M")),f=Bi(r.as("w")),c=Bi(r.as("y")),d=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||u<=1&&["m"]||u<i.m&&["mm",u]||o<=1&&["h"]||o<i.h&&["hh",o]||h<=1&&["d"]||h<i.d&&["dd",h];return null!=i.w&&(d=d||f<=1&&["w"]||f<i.w&&["ww",f]),(d=d||a<=1&&["M"]||a<i.M&&["MM",a]||c<=1&&["y"]||["yy",c])[2]=n,d[3]=+t>0,d[4]=e,Ki.apply(null,d)}(this,!r,s,i=this.localeData()),r&&(e=i.pastFuture(+this,e)),i.postformat(e)},ie.toISOString=ne,ie.toString=ne,ie.toJSON=ne,ie.locale=ti,ie.localeData=ii,ie.toIsoString=p("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ne),ie.lang=ni,O("X",0,0,"unix"),O("x",0,0,"valueOf"),mt("x",ft),mt("X",/[+-]?\d+(\.\d{1,3})?/),yt("X",(function(t,n,i){i._d=new Date(1e3*parseFloat(t))})),yt("x",(function(t,n,i){i._d=new Date(q(t))})),
|
|
2
|
+
//! moment.js
|
|
3
|
+
r.version="2.29.2",n=Tn,r.fn=gi,r.min=function(){return Gn("isBefore",[].slice.call(arguments,0))},r.max=function(){return Gn("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=m,r.unix=function(t){return Tn(1e3*t)},r.months=function(t,n){return ki(t,n,"months")},r.isDate=c,r.locale=on,r.invalid=M,r.duration=Un,r.isMoment=w,r.weekdays=function(t,n,i){return bi(t,n,i,"weekdays")},r.parseZone=function(){return Tn.apply(null,arguments).parseZone()},r.localeData=an,r.isDuration=xn,r.monthsShort=function(t,n){return ki(t,n,"monthsShort")},r.weekdaysMin=function(t,n,i){return bi(t,n,i,"weekdaysMin")},r.defineLocale=hn,r.updateLocale=function(t,n){if(null!=n){var i,e,r=tn;null!=nn[t]&&null!=nn[t].parentLocale?nn[t].set(H(nn[t]._config,n)):(null!=(e=un(t))&&(r=e._config),n=H(r,n),null==e&&(n.abbr=t),(i=new G(n)).parentLocale=nn[t],nn[t]=i),on(t)}else null!=nn[t]&&(null!=nn[t].parentLocale?(nn[t]=nn[t].parentLocale,t===on()&&on(t)):null!=nn[t]&&delete nn[t]);return nn[t]},r.locales=function(){return k(nn)},r.weekdaysShort=function(t,n,i){return bi(t,n,i,"weekdaysShort")},r.normalizeUnits=I,r.relativeTimeRounding=function(t){return void 0===t?Bi:"function"==typeof t&&(Bi=t,!0)},r.relativeTimeThreshold=function(t,n){return void 0!==Xi[t]&&(void 0===n?Xi[t]:(Xi[t]=n,"s"===t&&(Xi.ss=n-1),!0))},r.calendarFormat=function(t,n){var i=t.diff(n,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},r.prototype=gi,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}));export{e as m}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,c as r,h as n,g as t}from"./p-e9a95b8f.js";import{c as i,a as o}from"./p-eab67c09.js";import{k as a,a as u,g as l,m as s,i as c,b as f,c as d,d as v,e as h,S as m,s as p,f as y,h as b,j as g}from"./p-426d11b4.js";import{i as w}from"./p-0b1af919.js";import{i as k}from"./p-7f43b0c4.js";import{g as E,t as x,b as S,a as j,p as F,h as O,n as C}from"./p-1a64b531.js";import{b as P}from"./p-090bc949.js";import{b as D}from"./p-c93050d6.js";import{i as _}from"./p-858c6b82.js";import{a as A,b as N,c as R,d as $,i as T}from"./p-f83213b8.js";import{m as I}from"./p-
|
|
1
|
+
import{r as e,c as r,h as n,g as t}from"./p-e9a95b8f.js";import{c as i,a as o}from"./p-eab67c09.js";import{k as a,a as u,g as l,m as s,i as c,b as f,c as d,d as v,e as h,S as m,s as p,f as y,h as b,j as g}from"./p-426d11b4.js";import{i as w}from"./p-0b1af919.js";import{i as k}from"./p-7f43b0c4.js";import{g as E,t as x,b as S,a as j,p as F,h as O,n as C}from"./p-1a64b531.js";import{b as P}from"./p-090bc949.js";import{b as D}from"./p-c93050d6.js";import{i as _}from"./p-858c6b82.js";import{a as A,b as N,c as R,d as $,i as T}from"./p-f83213b8.js";import{m as I}from"./p-2ff40ce6.js";import{i as M}from"./p-af8d4fe7.js";import{c as z}from"./p-6c094f3f.js";import"./p-eda23c05.js";import"./p-379955f4.js";import"./p-d529bb7d.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,c as r,h as t}from"./p-e9a95b8f.js";import{t as n}from"./p-3bf54a4c.js";import{c as a,a as i,g as o}from"./p-eab67c09.js";import{D as d}from"./p-e1928c0e.js";import{m as l}from"./p-a397bab7.js";import{i as s,a as c}from"./p-cc9ebbef.js";import{e as h}from"./p-eda23c05.js";import{i as u,b as p}from"./p-7f43b0c4.js";import{i as f}from"./p-c93050d6.js";import{t as m}from"./p-365098fe.js";import"./p-d529bb7d.js";import"./p-858c6b82.js";function k(e){return e?1/0===(e=m(e))||-1/0===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}var g=Math.ceil,w=Math.max,b=function(e,r,t){return t&&"number"!=typeof t&&function(e,r,t){if(!f(t))return!1;var n=typeof r;return!!("number"==n?u(t)&&p(r,t.length):"string"==n&&r in t)&&h(t[r],e)}(e,r,t)&&(r=t=void 0),e=k(e),void 0===r?(r=e,e=0):r=k(r),function(e,r,t){for(var n=-1,a=w(g((r-e)/(t||1)),0),i=Array(a);a--;)i[++n]=e,e+=t;return i}(e,r,t=void 0===t?e<r?1:-1:k(t))},v=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],y={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var r=new Date(e.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var t=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-t.getTime())/864e5-3+(t.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},x={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var r=e%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},M=function(e,r){return void 0===r&&(r=2),("000"+e).slice(-1*r)},D=function(e){return!0===e?1:0};function S(e,r){var t;return function(){var n=this,a=arguments;clearTimeout(t),t=setTimeout((function(){return e.apply(n,a)}),r)}}var A=function(e){return e instanceof Array?e:[e]};function T(e,r,t){if(!0===t)return e.classList.add(r);e.classList.remove(r)}function O(e,r,t){var n=window.document.createElement(e);return t=t||"",n.className=r=r||"",void 0!==t&&(n.textContent=t),n}function j(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function J(e,r){return r(e)?e:e.parentNode?J(e.parentNode,r):void 0}function C(e,r){var t=O("div","numInputWrapper"),n=O("input","numInput "+e),a=O("span","arrowUp"),i=O("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==r)for(var o in r)n.setAttribute(o,r[o]);return t.appendChild(n),t.appendChild(a),t.appendChild(i),t}function W(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(r){return e.target}}var P=function(){},z=function(e,r,t){return t.months[r?"shorthand":"longhand"][e]},R={D:P,F:function(e,r,t){e.setMonth(t.months.longhand.indexOf(r))},G:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},H:function(e,r){e.setHours(parseFloat(r))},J:function(e,r){e.setDate(parseFloat(r))},K:function(e,r,t){e.setHours(e.getHours()%12+12*D(new RegExp(t.amPM[1],"i").test(r)))},M:function(e,r,t){e.setMonth(t.months.shorthand.indexOf(r))},S:function(e,r){e.setSeconds(parseFloat(r))},U:function(e,r){return new Date(1e3*parseFloat(r))},W:function(e,r,t){var n=parseInt(r),a=new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+t.firstDayOfWeek),a},Y:function(e,r){e.setFullYear(parseFloat(r))},Z:function(e,r){return new Date(r)},d:function(e,r){e.setDate(parseFloat(r))},h:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},i:function(e,r){e.setMinutes(parseFloat(r))},j:function(e,r){e.setDate(parseFloat(r))},l:P,m:function(e,r){e.setMonth(parseFloat(r)-1)},n:function(e,r){e.setMonth(parseFloat(r)-1)},s:function(e,r){e.setSeconds(parseFloat(r))},u:function(e,r){return new Date(parseFloat(r))},w:P,y:function(e,r){e.setFullYear(2e3+parseFloat(r))}},F={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},N={Z:function(e){return e.toISOString()},D:function(e,r,t){return r.weekdays.shorthand[N.w(e,r,t)]},F:function(e,r,t){return z(N.n(e,r,t)-1,!1,r)},G:function(e,r,t){return M(N.h(e,r,t))},H:function(e){return M(e.getHours())},J:function(e,r){return void 0!==r.ordinal?e.getDate()+r.ordinal(e.getDate()):e.getDate()},K:function(e,r){return r.amPM[D(e.getHours()>11)]},M:function(e,r){return z(e.getMonth(),!0,r)},S:function(e){return M(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,r,t){return t.getWeek(e)},Y:function(e){return M(e.getFullYear(),4)},d:function(e){return M(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return M(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,r){return r.weekdays.longhand[e.getDay()]},m:function(e){return M(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},L=function(e){var r=e.config,t=void 0===r?y:r,n=e.l10n,a=void 0===n?x:n,i=e.isMobile,o=void 0!==i&&i;return function(e,r,n){var i=n||a;return void 0===t.formatDate||o?r.split("").map((function(r,n,a){return N[r]&&"\\"!==a[n-1]?N[r](e,i,t):"\\"!==r?r:""})).join(""):t.formatDate(e,r,i)}},I=function(e){var r=e.config,t=void 0===r?y:r,n=e.l10n,a=void 0===n?x:n;return function(e,r,n,i){if(0===e||e){var o,d=i||a,l=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var s=r||(t||y).dateFormat,c=String(e).trim();if("today"===c)o=new Date,n=!0;else if(t&&t.parseDate)o=t.parseDate(e,s);else if(/Z$/.test(c)||/GMT$/.test(c))o=new Date(e);else{for(var h=void 0,u=[],p=0,f=0,m="";p<s.length;p++){var k=s[p],g="\\"===k;if(F[k]&&"\\"!==s[p-1]&&!g){m+=F[k];var w=new RegExp(m).exec(e);w&&(h=!0)&&u["Y"!==k?"push":"unshift"]({fn:R[k],val:w[++f]})}else g||(m+=".")}o=t&&t.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),u.forEach((function(e){return o=(0,e.fn)(o,e.val,d)||o})),o=h?o:void 0}}if(o instanceof Date&&!isNaN(o.getTime()))return!0===n&&o.setHours(0,0,0,0),o;t.errorHandler(new Error("Invalid date provided: "+l))}}};function _(e,r,t){return void 0===t&&(t=!0),!1!==t?new Date(e.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):e.getTime()-r.getTime()}var Y=function(e,r,t){return 3600*e+60*r+t};function E(e){var r=e.defaultHour,t=e.defaultMinute,n=e.defaultSeconds;if(void 0!==e.minDate){var a=e.minDate.getHours(),i=e.minDate.getMinutes(),o=e.minDate.getSeconds();r<a&&(r=a),r===a&&t<i&&(t=i),r===a&&t===i&&n<o&&(n=e.minDate.getSeconds())}if(void 0!==e.maxDate){var d=e.maxDate.getHours(),l=e.maxDate.getMinutes();(r=Math.min(r,d))===d&&(t=Math.min(l,t)),r===d&&t===l&&(n=e.maxDate.getSeconds())}return{hours:r,minutes:t,seconds:n}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var n=function(r){r&&Object.keys(r).forEach((function(t){return e[t]=r[t]}))},a=0,i=r;a<i.length;a++){var o=i[a];n(o)}return e});var H=function(){return(H=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e}).apply(this,arguments)},K=function(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),a=0;for(r=0;r<t;r++)for(var i=arguments[r],o=0,d=i.length;o<d;o++,a++)n[a]=i[o];return n};function G(e,r){var t={config:H(H({},y),q.defaultConfig),l10n:x};function n(){var e;return(null===(e=t.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function a(e){return e.bind(t)}function i(){var e=t.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==t.calendarContainer&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),void 0!==t.daysContainer){var r=(t.days.offsetWidth+1)*e.showMonths;t.daysContainer.style.width=r+"px",t.calendarContainer.style.width=r+(void 0!==t.weekWrapper?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}}))}function o(e){if(0===t.selectedDates.length){var r=void 0===t.config.minDate||_(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),n=E(t.config);r.setHours(n.hours,n.minutes,n.seconds,r.getMilliseconds()),t.selectedDates=[r],t.latestSelectedDateObj=r}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var r="keydown"===e.type,n=W(e),a=n;void 0!==t.amPM&&n===t.amPM&&(t.amPM.textContent=t.l10n.amPM[D(t.amPM.textContent===t.l10n.amPM[0])]);var i=parseFloat(a.getAttribute("min")),o=parseFloat(a.getAttribute("max")),d=parseFloat(a.getAttribute("step")),l=parseInt(a.value,10),s=l+d*(e.delta||(r?38===e.which?1:-1:0));if(void 0!==a.value&&2===a.value.length){var c=a===t.hourElement,h=a===t.minuteElement;s<i?(s=o+s+D(!c)+(D(c)&&D(!t.amPM)),h&&m(void 0,-1,t.hourElement)):s>o&&(s=a===t.hourElement?s-o-D(!t.amPM):i,h&&m(void 0,1,t.hourElement)),t.amPM&&c&&(1===d?s+l===23:Math.abs(s-l)>d)&&(t.amPM.textContent=t.l10n.amPM[D(t.amPM.textContent===t.l10n.amPM[0])]),a.value=M(s)}}(e);var a=t._input.value;d(),xe(),t._input.value!==a&&t._debouncedChange()}function d(){if(void 0!==t.hourElement&&void 0!==t.minuteElement){var e=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(t.minuteElement.value,10)||0)%60,n=void 0!==t.secondElement?(parseInt(t.secondElement.value,10)||0)%60:0;void 0!==t.amPM&&(e=e%12+12*D(t.amPM.textContent===t.l10n.amPM[1]));var a=void 0!==t.config.minTime||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&0===_(t.latestSelectedDateObj,t.config.minDate,!0),i=void 0!==t.config.maxTime||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&0===_(t.latestSelectedDateObj,t.config.maxDate,!0);if(void 0!==t.config.maxTime&&void 0!==t.config.minTime&&t.config.minTime>t.config.maxTime){var o=Y(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),d=Y(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),l=Y(e,r,n);if(l>d&&l<o){var c=function(e){var r=Math.floor(e/3600),t=(e-3600*r)/60;return[r,t,e-3600*r-60*t]}(o);e=c[0],r=c[1],n=c[2]}}else{if(i){var h=void 0!==t.config.maxTime?t.config.maxTime:t.config.maxDate;(e=Math.min(e,h.getHours()))===h.getHours()&&(r=Math.min(r,h.getMinutes())),r===h.getMinutes()&&(n=Math.min(n,h.getSeconds()))}if(a){var u=void 0!==t.config.minTime?t.config.minTime:t.config.minDate;(e=Math.max(e,u.getHours()))===u.getHours()&&r<u.getMinutes()&&(r=u.getMinutes()),r===u.getMinutes()&&(n=Math.max(n,u.getSeconds()))}}s(e,r,n)}}function l(e){var r=e||t.latestSelectedDateObj;r&&r instanceof Date&&s(r.getHours(),r.getMinutes(),r.getSeconds())}function s(e,r,n){void 0!==t.latestSelectedDateObj&&t.latestSelectedDateObj.setHours(e%24,r,n||0,0),t.hourElement&&t.minuteElement&&!t.isMobile&&(t.hourElement.value=M(t.config.time_24hr?e:(12+e)%12+12*D(e%12==0)),t.minuteElement.value=M(r),void 0!==t.amPM&&(t.amPM.textContent=t.l10n.amPM[D(e>=12)]),void 0!==t.secondElement&&(t.secondElement.value=M(n)))}function c(e){var r=W(e),t=parseInt(r.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&X(t)}function h(e,r,n,a){return r instanceof Array?r.forEach((function(r){return h(e,r,n,a)})):e instanceof Array?e.forEach((function(e){return h(e,r,n,a)})):(e.addEventListener(r,n,a),void t._handlers.push({remove:function(){return e.removeEventListener(r,n,a)}}))}function u(){ge("onChange")}function p(e,r){var n=void 0!==e?t.parseDate(e):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),a=t.currentYear,i=t.currentMonth;try{void 0!==n&&(t.currentYear=n.getFullYear(),t.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,t.config.errorHandler(e)}r&&t.currentYear!==a&&(ge("onYearChange"),N()),!r||t.currentYear===a&&t.currentMonth===i||ge("onMonthChange"),t.redraw()}function f(e){var r=W(e);~r.className.indexOf("arrow")&&m(e,r.classList.contains("arrowUp")?1:-1)}function m(e,r,t){var n=e&&W(e),a=t||n&&n.parentNode&&n.parentNode.firstChild,i=we("increment");i.delta=r,a&&a.dispatchEvent(i)}function k(e,r,n,a){var i=ee(r,!0),o=O("span",e,r.getDate().toString());return o.dateObj=r,o.$i=a,o.setAttribute("aria-label",t.formatDate(r,t.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===_(r,t.now)&&(t.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,be(r)&&(o.classList.add("selected"),t.selectedDateElem=o,"range"===t.config.mode&&(T(o,"startRange",t.selectedDates[0]&&0===_(r,t.selectedDates[0],!0)),T(o,"endRange",t.selectedDates[1]&&0===_(r,t.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===t.config.mode&&function(e){return!("range"!==t.config.mode||t.selectedDates.length<2)&&_(e,t.selectedDates[0])>=0&&_(e,t.selectedDates[1])<=0}(r)&&!be(r)&&o.classList.add("inRange"),t.weekNumbers&&1===t.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(r)+"</span>"),ge("onDayCreate",o),o}function g(e){e.focus(),"range"===t.config.mode&&ae(e)}function w(e){for(var r=e>0?t.config.showMonths:-1,n=e>0?0:t.config.showMonths-1;n!=r;n+=e)for(var a=t.daysContainer.children[n],i=e>0?a.children.length:-1,o=e>0?0:a.children.length-1;o!=i;o+=e){var d=a.children[o];if(-1===d.className.indexOf("hidden")&&ee(d.dateObj))return d}}function b(e,r){var a=n(),i=re(a||document.body),o=void 0!==e?e:i?a:void 0!==t.selectedDateElem&&re(t.selectedDateElem)?t.selectedDateElem:void 0!==t.todayDateElem&&re(t.todayDateElem)?t.todayDateElem:w(r>0?1:-1);void 0===o?t._input.focus():i?function(e,r){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():t.currentMonth,a=r>0?t.config.showMonths:-1,i=r>0?1:-1,o=n-t.currentMonth;o!=a;o+=i)for(var d=t.daysContainer.children[o],l=d.children.length,s=n-t.currentMonth===o?e.$i+r:r<0?d.children.length-1:0;s>=0&&s<l&&s!=(r>0?l:-1);s+=i){var c=d.children[s];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj)&&Math.abs(e.$i-s)>=Math.abs(r))return g(c)}t.changeMonth(i),b(w(i),0)}(o,r):g(o)}function P(e,r){for(var n=(new Date(e,r,1).getDay()-t.l10n.firstDayOfWeek+7)%7,a=t.utils.getDaysInMonth((r-1+12)%12,e),i=t.utils.getDaysInMonth(r,e),o=window.document.createDocumentFragment(),d=t.config.showMonths>1,l=d?"prevMonthDay hidden":"prevMonthDay",s=d?"nextMonthDay hidden":"nextMonthDay",c=a+1-n,h=0;c<=a;c++,h++)o.appendChild(k("flatpickr-day "+l,new Date(e,r-1,c),c,h));for(c=1;c<=i;c++,h++)o.appendChild(k("flatpickr-day",new Date(e,r,c),c,h));for(var u=i+1;u<=42-n&&(1===t.config.showMonths||h%7!=0);u++,h++)o.appendChild(k("flatpickr-day "+s,new Date(e,r+1,u%i),u,h));var p=O("div","dayContainer");return p.appendChild(o),p}function R(){if(void 0!==t.daysContainer){j(t.daysContainer),t.weekNumbers&&j(t.weekNumbers);for(var e=document.createDocumentFragment(),r=0;r<t.config.showMonths;r++){var n=new Date(t.currentYear,t.currentMonth,1);n.setMonth(t.currentMonth+r),e.appendChild(P(n.getFullYear(),n.getMonth()))}t.daysContainer.appendChild(e),t.days=t.daysContainer.firstChild,"range"===t.config.mode&&1===t.selectedDates.length&&ae()}}function N(){if(!(t.config.showMonths>1||"dropdown"!==t.config.monthSelectorType)){var e=function(e){return!(void 0!==t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&e<t.config.minDate.getMonth()||void 0!==t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()&&e>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var r=0;r<12;r++)if(e(r)){var n=O("option","flatpickr-monthDropdown-month");n.value=new Date(t.currentYear,r).getMonth().toString(),n.textContent=z(r,t.config.shorthandCurrentMonth,t.l10n),n.tabIndex=-1,t.currentMonth===r&&(n.selected=!0),t.monthsDropdownContainer.appendChild(n)}}}function G(){var e,r=O("div","flatpickr-month"),n=window.document.createDocumentFragment();t.config.showMonths>1||"static"===t.config.monthSelectorType?e=O("span","cur-month"):(t.monthsDropdownContainer=O("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),h(t.monthsDropdownContainer,"change",(function(e){var r=W(e),n=parseInt(r.value,10);t.changeMonth(n-t.currentMonth),ge("onMonthChange")})),N(),e=t.monthsDropdownContainer);var a=C("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&i.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(i.setAttribute("max",t.config.maxDate.getFullYear().toString()),i.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var o=O("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),n.appendChild(o),r.appendChild(n),{container:r,yearElement:i,monthElement:e}}function U(){j(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var e=t.config.showMonths;e--;){var r=G();t.yearElements.push(r.yearElement),t.monthElements.push(r.monthElement),t.monthNav.appendChild(r.container)}t.monthNav.appendChild(t.nextMonthNav)}function B(){t.weekdayContainer?j(t.weekdayContainer):t.weekdayContainer=O("div","flatpickr-weekdays");for(var e=t.config.showMonths;e--;){var r=O("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(r)}return V(),t.weekdayContainer}function V(){if(t.weekdayContainer){var e=t.l10n.firstDayOfWeek,r=K(t.l10n.weekdays.shorthand);e>0&&e<r.length&&(r=K(r.splice(e,r.length),r.splice(0,e)));for(var n=t.config.showMonths;n--;)t.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+r.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Q(e,r){void 0===r&&(r=!0);var n=r?e:e-t.currentMonth;n<0&&!0===t._hidePrevMonthArrow||n>0&&!0===t._hideNextMonthArrow||(t.currentMonth+=n,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,ge("onYearChange"),N()),R(),ge("onMonthChange"),ve())}function Z(e){return t.calendarContainer.contains(e)}function $(e){if(t.isOpen&&!t.config.inline){var r=W(e),n=Z(r),a=!(r===t.input||r===t.altInput||t.element.contains(r)||e.path&&e.path.indexOf&&(~e.path.indexOf(t.input)||~e.path.indexOf(t.altInput))||n||Z(e.relatedTarget)),i=!t.config.ignoredFocusElements.some((function(e){return e.contains(r)}));a&&i&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),void 0!==t.timeContainer&&void 0!==t.minuteElement&&void 0!==t.hourElement&&""!==t.input.value&&void 0!==t.input.value&&o(),t.close(),t.config&&"range"===t.config.mode&&1===t.selectedDates.length&&t.clear(!1))}}function X(e){if(!(!e||t.config.minDate&&e<t.config.minDate.getFullYear()||t.config.maxDate&&e>t.config.maxDate.getFullYear())){var r=t.currentYear!==e;t.currentYear=e||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),r&&(t.redraw(),ge("onYearChange"),N())}}function ee(e,r){var n;void 0===r&&(r=!0);var a=t.parseDate(e,void 0,r);if(t.config.minDate&&a&&_(a,t.config.minDate,void 0!==r?r:!t.minDateHasTime)<0||t.config.maxDate&&a&&_(a,t.config.maxDate,void 0!==r?r:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&0===t.config.disable.length)return!0;if(void 0===a)return!1;for(var i=!!t.config.enable,o=null!==(n=t.config.enable)&&void 0!==n?n:t.config.disable,d=0,l=void 0;d<o.length;d++){if("function"==typeof(l=o[d])&&l(a))return i;if(l instanceof Date&&void 0!==a&&l.getTime()===a.getTime())return i;if("string"==typeof l){var s=t.parseDate(l,void 0,!0);return s&&s.getTime()===a.getTime()?i:!i}if("object"==typeof l&&void 0!==a&&l.from&&l.to&&a.getTime()>=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function re(e){return void 0!==t.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&t.daysContainer.contains(e)}function te(e){e.target!==t._input||!(t.selectedDates.length>0||t._input.value.length>0)||e.relatedTarget&&Z(e.relatedTarget)||t.setDate(t._input.value,!0,e.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function ne(r){var a=W(r),i=t.config.wrap?e.contains(a):a===t._input,l=t.config.allowInput,s=t.isOpen&&(!l||!i),c=t.config.inline&&i&&!l;if(13===r.keyCode&&i){if(l)return t.setDate(t._input.value,!0,a===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),a.blur();t.open()}else if(Z(a)||s||c){var h=!!t.timeContainer&&t.timeContainer.contains(a);switch(r.keyCode){case 13:h?(r.preventDefault(),o(),he()):ue(r);break;case 27:r.preventDefault(),he();break;case 8:case 46:i&&!t.config.allowInput&&(r.preventDefault(),t.clear());break;case 37:case 39:if(h||i)t.hourElement&&t.hourElement.focus();else{r.preventDefault();var u=n();if(void 0!==t.daysContainer&&(!1===l||u&&re(u))){var p=39===r.keyCode?1:-1;r.ctrlKey?(r.stopPropagation(),Q(p),b(w(1),0)):b(void 0,p)}}break;case 38:case 40:r.preventDefault();var f=40===r.keyCode?1:-1;t.daysContainer&&void 0!==a.$i||a===t.input||a===t.altInput?r.ctrlKey?(r.stopPropagation(),X(t.currentYear-f),b(w(1),0)):h||b(void 0,7*f):a===t.currentYearElement?X(t.currentYear-f):t.config.enableTime&&(!h&&t.hourElement&&t.hourElement.focus(),o(r),t._debouncedChange());break;case 9:if(h){var m=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter((function(e){return e})),k=m.indexOf(a);if(-1!==k){var g=m[k+(r.shiftKey?-1:1)];r.preventDefault(),(g||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(a)&&r.shiftKey&&(r.preventDefault(),t._input.focus())}}if(void 0!==t.amPM&&a===t.amPM)switch(r.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],d(),xe();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],d(),xe()}(i||Z(a))&&ge("onKeyDown",r)}function ae(e,r){if(void 0===r&&(r="flatpickr-day"),1===t.selectedDates.length&&(!e||e.classList.contains(r)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),a=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),i=Math.min(n,t.selectedDates[0].getTime()),o=Math.max(n,t.selectedDates[0].getTime()),d=!1,l=0,s=0,c=i;c<o;c+=864e5)ee(new Date(c),!0)||(d=d||c>i&&c<o,c<a&&(!l||c>l)?l=c:c>a&&(!s||c<s)&&(s=c));Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+r)).forEach((function(r){var i,o,c,h=r.dateObj.getTime(),u=l>0&&h<l||s>0&&h>s;if(u)return r.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){r.classList.remove(e)}));d&&!u||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){r.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=t.selectedDates[0].getTime()?"startRange":"endRange"),a<n&&h===a?r.classList.add("startRange"):a>n&&h===a&&r.classList.add("endRange"),h>=l&&(0===s||h<=s)&&(o=a,c=n,(i=h)>Math.min(o,c)&&i<Math.max(o,c))&&r.classList.add("inRange")))}))}}function ie(){!t.isOpen||t.config.static||t.config.inline||se()}function oe(e){return function(r){var n=t.config["_"+e+"Date"]=t.parseDate(r,t.config.dateFormat),a=t.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(t["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter((function(e){return ee(e)})),t.selectedDates.length||"min"!==e||l(n),xe()),t.daysContainer&&(ce(),void 0!==n?t.currentYearElement[e]=n.getFullYear().toString():t.currentYearElement.removeAttribute(e),t.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function de(){return t.config.wrap?e.querySelector("[data-input]"):e}function le(){"object"!=typeof t.config.locale&&void 0===q.l10ns[t.config.locale]&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=H(H({},q.l10ns.default),"object"==typeof t.config.locale?t.config.locale:"default"!==t.config.locale?q.l10ns[t.config.locale]:void 0),F.D="("+t.l10n.weekdays.shorthand.join("|")+")",F.l="("+t.l10n.weekdays.longhand.join("|")+")",F.M="("+t.l10n.months.shorthand.join("|")+")",F.F="("+t.l10n.months.longhand.join("|")+")",F.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")",void 0===H(H({},r),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===q.defaultConfig.time_24hr&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=L(t),t.parseDate=I({config:t.config,l10n:t.l10n})}function se(e){if("function"!=typeof t.config.position){if(void 0!==t.calendarContainer){ge("onPreCalendarPosition");var r=e||t._positionElement,n=Array.prototype.reduce.call(t.calendarContainer.children,(function(e,r){return e+r.offsetHeight}),0),a=t.calendarContainer.offsetWidth,i=t.config.position.split(" "),o=i[0],d=i.length>1?i[1]:null,l=r.getBoundingClientRect(),s=window.innerHeight-l.bottom,c="above"===o||"below"!==o&&s<n&&l.top>n,h=window.pageYOffset+l.top+(c?-n-2:r.offsetHeight+2);if(T(t.calendarContainer,"arrowTop",!c),T(t.calendarContainer,"arrowBottom",c),!t.config.inline){var u=window.pageXOffset+l.left,p=!1,f=!1;"center"===d?(u-=(a-l.width)/2,p=!0):"right"===d&&(u-=a-l.width,f=!0),T(t.calendarContainer,"arrowLeft",!p&&!f),T(t.calendarContainer,"arrowCenter",p),T(t.calendarContainer,"arrowRight",f);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right),k=u+a>window.document.body.offsetWidth,g=m+a>window.document.body.offsetWidth;if(T(t.calendarContainer,"rightMost",k),!t.config.static)if(t.calendarContainer.style.top=h+"px",k)if(g){var w=function(){for(var e=null,r=0;r<document.styleSheets.length;r++){var t=document.styleSheets[r];if(t.cssRules){e=t;break}}return null!=e?e:(n=document.createElement("style"),document.head.appendChild(n),n.sheet);var n}();if(void 0===w)return;var b=window.document.body.offsetWidth,v=Math.max(0,b/2-a/2),y=w.cssRules.length,x="{left:"+l.left+"px;right:auto;}";T(t.calendarContainer,"rightMost",!1),T(t.calendarContainer,"centerMost",!0),w.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+x,y),t.calendarContainer.style.left=v+"px",t.calendarContainer.style.right="auto"}else t.calendarContainer.style.left="auto",t.calendarContainer.style.right=m+"px";else t.calendarContainer.style.left=u+"px",t.calendarContainer.style.right="auto"}}}else t.config.position(t,e)}function ce(){t.config.noCalendar||t.isMobile||(N(),ve(),R())}function he(){t._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(t.close,0):t.close()}function ue(e){e.preventDefault(),e.stopPropagation();var r=J(W(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==r){var n=r,a=t.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<t.currentMonth||a.getMonth()>t.currentMonth+t.config.showMonths-1)&&"range"!==t.config.mode;if(t.selectedDateElem=n,"single"===t.config.mode)t.selectedDates=[a];else if("multiple"===t.config.mode){var o=be(a);o?t.selectedDates.splice(parseInt(o),1):t.selectedDates.push(a)}else"range"===t.config.mode&&(2===t.selectedDates.length&&t.clear(!1,!1),t.latestSelectedDateObj=a,t.selectedDates.push(a),0!==_(a,t.selectedDates[0],!0)&&t.selectedDates.sort((function(e,r){return e.getTime()-r.getTime()})));if(d(),i){var l=t.currentYear!==a.getFullYear();t.currentYear=a.getFullYear(),t.currentMonth=a.getMonth(),l&&(ge("onYearChange"),N()),ge("onMonthChange")}ve(),R(),xe(),i||"range"===t.config.mode||1!==t.config.showMonths?void 0!==t.selectedDateElem&&void 0===t.hourElement&&t.selectedDateElem&&t.selectedDateElem.focus():g(n),void 0!==t.hourElement&&void 0!==t.hourElement&&t.hourElement.focus(),t.config.closeOnSelect&&("single"===t.config.mode&&!t.config.enableTime||"range"===t.config.mode&&2===t.selectedDates.length&&!t.config.enableTime)&&he(),u()}}t.parseDate=I({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=h,t._setHoursFromDate=l,t._positionCalendar=se,t.changeMonth=Q,t.changeYear=X,t.clear=function(e,r){if(void 0===e&&(e=!0),void 0===r&&(r=!0),t.input.value="",void 0!==t.altInput&&(t.altInput.value=""),void 0!==t.mobileInput&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,!0===r&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),!0===t.config.enableTime){var n=E(t.config);s(n.hours,n.minutes,n.seconds)}t.redraw(),e&&ge("onChange")},t.close=function(){t.isOpen=!1,t.isMobile||(void 0!==t.calendarContainer&&t.calendarContainer.classList.remove("open"),void 0!==t._input&&t._input.classList.remove("active")),ge("onClose")},t.onMouseOver=ae,t._createElement=O,t.createDay=k,t.destroy=function(){void 0!==t.config&&ge("onDestroy");for(var e=t._handlers.length;e--;)t._handlers[e].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var r=t.calendarContainer.parentNode;if(r.lastChild&&r.removeChild(r.lastChild),r.parentNode){for(;r.firstChild;)r.parentNode.insertBefore(r.firstChild,r);r.parentNode.removeChild(r)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete t[e]}catch(e){}}))},t.isEnabled=ee,t.jumpToDate=p,t.updateValue=xe,t.open=function(e,r){if(void 0===r&&(r=t._positionElement),!0===t.isMobile){if(e){e.preventDefault();var n=W(e);n&&n.blur()}return void 0!==t.mobileInput&&(t.mobileInput.focus(),t.mobileInput.click()),void ge("onOpen")}if(!t._input.disabled&&!t.config.inline){var a=t.isOpen;t.isOpen=!0,a||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),ge("onOpen"),se(r)),!0===t.config.enableTime&&!0===t.config.noCalendar&&(!1!==t.config.allowInput||void 0!==e&&t.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return t.hourElement.select()}),50))}},t.redraw=ce,t.set=function(e,r){if(null!==e&&"object"==typeof e)for(var n in Object.assign(t.config,e),e)void 0!==pe[n]&&pe[n].forEach((function(e){return e()}));else t.config[e]=r,void 0!==pe[e]?pe[e].forEach((function(e){return e()})):v.indexOf(e)>-1&&(t.config[e]=A(r));t.redraw(),xe(!0)},t.setDate=function(e,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=t.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return t.clear(r);fe(e,n),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),p(void 0,r),l(),0===t.selectedDates.length&&t.clear(!1),xe(r),r&&ge("onChange")},t.toggle=function(e){if(!0===t.isOpen)return t.close();t.open(e)};var pe={locale:[le,V],showMonths:[U,i,B],minDate:[p],maxDate:[p],positionElement:[ke],clickOpens:[function(){!0===t.config.clickOpens?(h(t._input,"focus",t.open),h(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function fe(e,r){var n=[];if(e instanceof Array)n=e.map((function(e){return t.parseDate(e,r)}));else if(e instanceof Date||"number"==typeof e)n=[t.parseDate(e,r)];else if("string"==typeof e)switch(t.config.mode){case"single":case"time":n=[t.parseDate(e,r)];break;case"multiple":n=e.split(t.config.conjunction).map((function(e){return t.parseDate(e,r)}));break;case"range":n=e.split(t.l10n.rangeSeparator).map((function(e){return t.parseDate(e,r)}))}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));t.selectedDates=t.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===t.config.mode&&t.selectedDates.sort((function(e,r){return e.getTime()-r.getTime()}))}function me(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?t.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:t.parseDate(e.from,void 0),to:t.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ke(){t._positionElement=t.config.positionElement||t._input}function ge(e,r){if(void 0!==t.config){var n=t.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](t.selectedDates,t.input.value,t,r);"onChange"===e&&(t.input.dispatchEvent(we("change")),t.input.dispatchEvent(we("input")))}}function we(e){var r=document.createEvent("Event");return r.initEvent(e,!0,!0),r}function be(e){for(var r=0;r<t.selectedDates.length;r++){var n=t.selectedDates[r];if(n instanceof Date&&0===_(n,e))return""+r}return!1}function ve(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach((function(e,r){var n=new Date(t.currentYear,t.currentMonth,1);n.setMonth(t.currentMonth+r),t.config.showMonths>1||"static"===t.config.monthSelectorType?t.monthElements[r].textContent=z(n.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),t._hidePrevMonthArrow=void 0!==t.config.minDate&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=void 0!==t.config.maxDate&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function ye(e){return t.selectedDates.map((function(r){return t.formatDate(r,e)})).filter((function(e,r,n){return"range"!==t.config.mode||t.config.enableTime||n.indexOf(e)===r})).join("range"!==t.config.mode?t.config.conjunction:t.l10n.rangeSeparator)}function xe(e){void 0===e&&(e=!0),void 0!==t.mobileInput&&t.mobileFormatStr&&(t.mobileInput.value=void 0!==t.latestSelectedDateObj?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=ye(t.config.dateFormat),void 0!==t.altInput&&(t.altInput.value=ye(t.config.altFormat)),!1!==e&&ge("onValueUpdate")}function Me(e){var r=W(e),n=t.prevMonthNav.contains(r),a=t.nextMonthNav.contains(r);n||a?Q(n?-1:1):t.yearElements.indexOf(r)>=0?r.select():r.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):r.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}return function(){t.element=t.input=e,t.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=H(H({},JSON.parse(JSON.stringify(e.dataset||{}))),r),o={};t.config.parseDate=i.parseDate,t.config.formatDate=i.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(e){t.config._enable=me(e)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(e){t.config._disable=me(e)}});var d="time"===i.mode;i.dateFormat||!i.enableTime&&!d||(o.dateFormat=i.noCalendar||d?"H:i"+(i.enableSeconds?":S":""):(q.defaultConfig.dateFormat||y.dateFormat)+" H:i"+(i.enableSeconds?":S":"")),i.altInput&&(i.enableTime||d)&&!i.altFormat&&(o.altFormat=i.noCalendar||d?"h:i"+(i.enableSeconds?":S K":" K"):(q.defaultConfig.altFormat||y.altFormat)+" h:i"+(i.enableSeconds?":S":"")+" K"),Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:oe("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:oe("max")});var l=function(e){return function(r){t.config["min"===e?"_minTime":"_maxTime"]=t.parseDate(r,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:l("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:l("max")}),"time"===i.mode&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,o,i);for(var s=0;s<n.length;s++)t.config[n[s]]=!0===t.config[n[s]]||"true"===t.config[n[s]];for(v.filter((function(e){return void 0!==t.config[e]})).forEach((function(e){t.config[e]=A(t.config[e]||[]).map(a)})),t.isMobile=!t.config.disableMobile&&!t.config.inline&&"single"===t.config.mode&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),s=0;s<t.config.plugins.length;s++){var c=t.config.plugins[s](t)||{};for(var h in c)v.indexOf(h)>-1?t.config[h]=A(c[h]).map(a).concat(t.config[h]):void 0===i[h]&&(t.config[h]=c[h])}i.altInputClass||(t.config.altInputClass=de().className+" "+t.config.altInputClass),ge("onParseConfig")}(),le(),t.input=de(),t.input?(t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=O(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),ke()):t.config.errorHandler(new Error("Invalid input element specified")),function(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var e=t.config.defaultDate||("INPUT"!==t.input.nodeName&&"TEXTAREA"!==t.input.nodeName||!t.input.placeholder||t.input.value!==t.input.placeholder?t.input.value:null);e&&fe(e,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),void 0!==t.config.minTime&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),void 0!==t.config.maxTime&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}(),t.utils={getDaysInMonth:function(e,r){return void 0===e&&(e=t.currentMonth),void 0===r&&(r=t.currentYear),1===e&&(r%4==0&&r%100!=0||r%400==0)?29:t.l10n.daysInMonth[e]}},t.isMobile||function(){var e=window.document.createDocumentFragment();if(t.calendarContainer=O("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(e.appendChild((t.monthNav=O("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=O("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=O("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,U(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(e){t.__hidePrevMonthArrow!==e&&(T(t.prevMonthNav,"flatpickr-disabled",e),t.__hidePrevMonthArrow=e)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(e){t.__hideNextMonthArrow!==e&&(T(t.nextMonthNav,"flatpickr-disabled",e),t.__hideNextMonthArrow=e)}}),t.currentYearElement=t.yearElements[0],ve(),t.monthNav)),t.innerContainer=O("div","flatpickr-innerContainer"),t.config.weekNumbers){var r=function(){t.calendarContainer.classList.add("hasWeeks");var e=O("div","flatpickr-weekwrapper");e.appendChild(O("span","flatpickr-weekday",t.l10n.weekAbbreviation));var r=O("div","flatpickr-weeks");return e.appendChild(r),{weekWrapper:e,weekNumbers:r}}(),n=r.weekWrapper,a=r.weekNumbers;t.innerContainer.appendChild(n),t.weekNumbers=a,t.weekWrapper=n}t.rContainer=O("div","flatpickr-rContainer"),t.rContainer.appendChild(B()),t.daysContainer||(t.daysContainer=O("div","flatpickr-days"),t.daysContainer.tabIndex=-1),R(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),e.appendChild(t.innerContainer)}t.config.enableTime&&e.appendChild(function(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var e=E(t.config);t.timeContainer=O("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var r=O("span","flatpickr-time-separator",":"),n=C("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=n.getElementsByTagName("input")[0];var a=C("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=a.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),t.minuteElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():e.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(n),t.timeContainer.appendChild(r),t.timeContainer.appendChild(a),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var i=C("flatpickr-second");t.secondElement=i.getElementsByTagName("input")[0],t.secondElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():e.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(O("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(i)}return t.config.time_24hr||(t.amPM=O("span","flatpickr-am-pm",t.l10n.amPM[D((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}()),T(t.calendarContainer,"rangeMode","range"===t.config.mode),T(t.calendarContainer,"animate",!0===t.config.animate),T(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(e);var i=void 0!==t.config.appendTo&&void 0!==t.config.appendTo.nodeType;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!i&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):void 0!==t.config.appendTo&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var o=O("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(o,t.element),o.appendChild(t.element),t.altInput&&o.appendChild(t.altInput),o.appendChild(t.calendarContainer)}t.config.static||t.config.inline||(void 0!==t.config.appendTo?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}(),function(){if(t.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+e+"]"),(function(r){return h(r,"click",t[e])}))})),t.isMobile)!function(){var e=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=O("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=e,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",void 0!==t.altInput&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch(e){}h(t.mobileInput,"change",(function(e){t.setDate(W(e).value,!1,t.mobileFormatStr),ge("onChange"),ge("onClose")}))}();else{var e=S(ie,50);if(t._debouncedChange=S(u,300),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&h(t.daysContainer,"mouseover",(function(e){"range"===t.config.mode&&ae(W(e))})),h(t._input,"keydown",ne),void 0!==t.calendarContainer&&h(t.calendarContainer,"keydown",ne),t.config.inline||t.config.static||h(window,"resize",e),void 0!==window.ontouchstart?h(window.document,"touchstart",$):h(window.document,"mousedown",$),h(window.document,"focus",$,{capture:!0}),!0===t.config.clickOpens&&(h(t._input,"focus",t.open),h(t._input,"click",t.open)),void 0!==t.daysContainer&&(h(t.monthNav,"click",Me),h(t.monthNav,["keyup","increment"],c),h(t.daysContainer,"click",ue)),void 0!==t.timeContainer&&void 0!==t.minuteElement&&void 0!==t.hourElement){h(t.timeContainer,["increment"],o),h(t.timeContainer,"blur",o,{capture:!0}),h(t.timeContainer,"click",f),h([t.hourElement,t.minuteElement],["focus","click"],(function(e){return W(e).select()})),void 0!==t.secondElement&&h(t.secondElement,"focus",(function(){return t.secondElement&&t.secondElement.select()})),void 0!==t.amPM&&h(t.amPM,"click",(function(e){o(e)}))}t.config.allowInput&&h(t._input,"blur",te)}}(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&l(t.config.noCalendar?t.latestSelectedDateObj:void 0),xe(!1)),i();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&n&&se(),ge("onReady")}(),t}function U(e,r){for(var t=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),n=[],a=0;a<t.length;a++){var i=t[a];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=G(i,r||{}),n.push(i._flatpickr)}catch(e){console.error(e)}}return 1===n.length?n[0]:n}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return U(this,e)},HTMLElement.prototype.flatpickr=function(e){return U([this],e)});var q=function(e,r){return"string"==typeof e?U(window.document.querySelectorAll(e),r):e instanceof Node?U([e],r):U(e,r)};q.defaultConfig={},q.l10ns={en:H({},x),default:H({},x)},q.localize=function(e){q.l10ns.default=H(H({},q.l10ns.default),e)},q.setDefaults=function(e){q.defaultConfig=H(H({},q.defaultConfig),e)},q.parseDate=I({}),q.formatDate=L({}),q.compareDates=_,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return U(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=q);const B=o(a((function(e,r){!function(e){
|
|
1
|
+
import{r as e,c as r,h as t}from"./p-e9a95b8f.js";import{t as n}from"./p-3bf54a4c.js";import{c as a,a as i,g as o}from"./p-eab67c09.js";import{D as d}from"./p-72e03943.js";import{m as l}from"./p-2ff40ce6.js";import{i as s,a as c}from"./p-cc9ebbef.js";import{e as h}from"./p-eda23c05.js";import{i as u,b as p}from"./p-7f43b0c4.js";import{i as f}from"./p-c93050d6.js";import{t as m}from"./p-365098fe.js";import"./p-d529bb7d.js";import"./p-858c6b82.js";function k(e){return e?1/0===(e=m(e))||-1/0===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}var g=Math.ceil,w=Math.max,b=function(e,r,t){return t&&"number"!=typeof t&&function(e,r,t){if(!f(t))return!1;var n=typeof r;return!!("number"==n?u(t)&&p(r,t.length):"string"==n&&r in t)&&h(t[r],e)}(e,r,t)&&(r=t=void 0),e=k(e),void 0===r?(r=e,e=0):r=k(r),function(e,r,t){for(var n=-1,a=w(g((r-e)/(t||1)),0),i=Array(a);a--;)i[++n]=e,e+=t;return i}(e,r,t=void 0===t?e<r?1:-1:k(t))},v=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],y={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var r=new Date(e.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var t=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-t.getTime())/864e5-3+(t.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},x={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var r=e%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},M=function(e,r){return void 0===r&&(r=2),("000"+e).slice(-1*r)},D=function(e){return!0===e?1:0};function S(e,r){var t;return function(){var n=this,a=arguments;clearTimeout(t),t=setTimeout((function(){return e.apply(n,a)}),r)}}var A=function(e){return e instanceof Array?e:[e]};function T(e,r,t){if(!0===t)return e.classList.add(r);e.classList.remove(r)}function O(e,r,t){var n=window.document.createElement(e);return t=t||"",n.className=r=r||"",void 0!==t&&(n.textContent=t),n}function j(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function J(e,r){return r(e)?e:e.parentNode?J(e.parentNode,r):void 0}function C(e,r){var t=O("div","numInputWrapper"),n=O("input","numInput "+e),a=O("span","arrowUp"),i=O("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==r)for(var o in r)n.setAttribute(o,r[o]);return t.appendChild(n),t.appendChild(a),t.appendChild(i),t}function W(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(r){return e.target}}var P=function(){},z=function(e,r,t){return t.months[r?"shorthand":"longhand"][e]},R={D:P,F:function(e,r,t){e.setMonth(t.months.longhand.indexOf(r))},G:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},H:function(e,r){e.setHours(parseFloat(r))},J:function(e,r){e.setDate(parseFloat(r))},K:function(e,r,t){e.setHours(e.getHours()%12+12*D(new RegExp(t.amPM[1],"i").test(r)))},M:function(e,r,t){e.setMonth(t.months.shorthand.indexOf(r))},S:function(e,r){e.setSeconds(parseFloat(r))},U:function(e,r){return new Date(1e3*parseFloat(r))},W:function(e,r,t){var n=parseInt(r),a=new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+t.firstDayOfWeek),a},Y:function(e,r){e.setFullYear(parseFloat(r))},Z:function(e,r){return new Date(r)},d:function(e,r){e.setDate(parseFloat(r))},h:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},i:function(e,r){e.setMinutes(parseFloat(r))},j:function(e,r){e.setDate(parseFloat(r))},l:P,m:function(e,r){e.setMonth(parseFloat(r)-1)},n:function(e,r){e.setMonth(parseFloat(r)-1)},s:function(e,r){e.setSeconds(parseFloat(r))},u:function(e,r){return new Date(parseFloat(r))},w:P,y:function(e,r){e.setFullYear(2e3+parseFloat(r))}},F={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},N={Z:function(e){return e.toISOString()},D:function(e,r,t){return r.weekdays.shorthand[N.w(e,r,t)]},F:function(e,r,t){return z(N.n(e,r,t)-1,!1,r)},G:function(e,r,t){return M(N.h(e,r,t))},H:function(e){return M(e.getHours())},J:function(e,r){return void 0!==r.ordinal?e.getDate()+r.ordinal(e.getDate()):e.getDate()},K:function(e,r){return r.amPM[D(e.getHours()>11)]},M:function(e,r){return z(e.getMonth(),!0,r)},S:function(e){return M(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,r,t){return t.getWeek(e)},Y:function(e){return M(e.getFullYear(),4)},d:function(e){return M(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return M(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,r){return r.weekdays.longhand[e.getDay()]},m:function(e){return M(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},L=function(e){var r=e.config,t=void 0===r?y:r,n=e.l10n,a=void 0===n?x:n,i=e.isMobile,o=void 0!==i&&i;return function(e,r,n){var i=n||a;return void 0===t.formatDate||o?r.split("").map((function(r,n,a){return N[r]&&"\\"!==a[n-1]?N[r](e,i,t):"\\"!==r?r:""})).join(""):t.formatDate(e,r,i)}},I=function(e){var r=e.config,t=void 0===r?y:r,n=e.l10n,a=void 0===n?x:n;return function(e,r,n,i){if(0===e||e){var o,d=i||a,l=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var s=r||(t||y).dateFormat,c=String(e).trim();if("today"===c)o=new Date,n=!0;else if(t&&t.parseDate)o=t.parseDate(e,s);else if(/Z$/.test(c)||/GMT$/.test(c))o=new Date(e);else{for(var h=void 0,u=[],p=0,f=0,m="";p<s.length;p++){var k=s[p],g="\\"===k;if(F[k]&&"\\"!==s[p-1]&&!g){m+=F[k];var w=new RegExp(m).exec(e);w&&(h=!0)&&u["Y"!==k?"push":"unshift"]({fn:R[k],val:w[++f]})}else g||(m+=".")}o=t&&t.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),u.forEach((function(e){return o=(0,e.fn)(o,e.val,d)||o})),o=h?o:void 0}}if(o instanceof Date&&!isNaN(o.getTime()))return!0===n&&o.setHours(0,0,0,0),o;t.errorHandler(new Error("Invalid date provided: "+l))}}};function _(e,r,t){return void 0===t&&(t=!0),!1!==t?new Date(e.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):e.getTime()-r.getTime()}var Y=function(e,r,t){return 3600*e+60*r+t};function E(e){var r=e.defaultHour,t=e.defaultMinute,n=e.defaultSeconds;if(void 0!==e.minDate){var a=e.minDate.getHours(),i=e.minDate.getMinutes(),o=e.minDate.getSeconds();r<a&&(r=a),r===a&&t<i&&(t=i),r===a&&t===i&&n<o&&(n=e.minDate.getSeconds())}if(void 0!==e.maxDate){var d=e.maxDate.getHours(),l=e.maxDate.getMinutes();(r=Math.min(r,d))===d&&(t=Math.min(l,t)),r===d&&t===l&&(n=e.maxDate.getSeconds())}return{hours:r,minutes:t,seconds:n}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var n=function(r){r&&Object.keys(r).forEach((function(t){return e[t]=r[t]}))},a=0,i=r;a<i.length;a++){var o=i[a];n(o)}return e});var H=function(){return(H=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e}).apply(this,arguments)},K=function(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),a=0;for(r=0;r<t;r++)for(var i=arguments[r],o=0,d=i.length;o<d;o++,a++)n[a]=i[o];return n};function G(e,r){var t={config:H(H({},y),q.defaultConfig),l10n:x};function n(){var e;return(null===(e=t.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function a(e){return e.bind(t)}function i(){var e=t.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==t.calendarContainer&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),void 0!==t.daysContainer){var r=(t.days.offsetWidth+1)*e.showMonths;t.daysContainer.style.width=r+"px",t.calendarContainer.style.width=r+(void 0!==t.weekWrapper?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}}))}function o(e){if(0===t.selectedDates.length){var r=void 0===t.config.minDate||_(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),n=E(t.config);r.setHours(n.hours,n.minutes,n.seconds,r.getMilliseconds()),t.selectedDates=[r],t.latestSelectedDateObj=r}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var r="keydown"===e.type,n=W(e),a=n;void 0!==t.amPM&&n===t.amPM&&(t.amPM.textContent=t.l10n.amPM[D(t.amPM.textContent===t.l10n.amPM[0])]);var i=parseFloat(a.getAttribute("min")),o=parseFloat(a.getAttribute("max")),d=parseFloat(a.getAttribute("step")),l=parseInt(a.value,10),s=l+d*(e.delta||(r?38===e.which?1:-1:0));if(void 0!==a.value&&2===a.value.length){var c=a===t.hourElement,h=a===t.minuteElement;s<i?(s=o+s+D(!c)+(D(c)&&D(!t.amPM)),h&&m(void 0,-1,t.hourElement)):s>o&&(s=a===t.hourElement?s-o-D(!t.amPM):i,h&&m(void 0,1,t.hourElement)),t.amPM&&c&&(1===d?s+l===23:Math.abs(s-l)>d)&&(t.amPM.textContent=t.l10n.amPM[D(t.amPM.textContent===t.l10n.amPM[0])]),a.value=M(s)}}(e);var a=t._input.value;d(),xe(),t._input.value!==a&&t._debouncedChange()}function d(){if(void 0!==t.hourElement&&void 0!==t.minuteElement){var e=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(t.minuteElement.value,10)||0)%60,n=void 0!==t.secondElement?(parseInt(t.secondElement.value,10)||0)%60:0;void 0!==t.amPM&&(e=e%12+12*D(t.amPM.textContent===t.l10n.amPM[1]));var a=void 0!==t.config.minTime||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&0===_(t.latestSelectedDateObj,t.config.minDate,!0),i=void 0!==t.config.maxTime||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&0===_(t.latestSelectedDateObj,t.config.maxDate,!0);if(void 0!==t.config.maxTime&&void 0!==t.config.minTime&&t.config.minTime>t.config.maxTime){var o=Y(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),d=Y(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),l=Y(e,r,n);if(l>d&&l<o){var c=function(e){var r=Math.floor(e/3600),t=(e-3600*r)/60;return[r,t,e-3600*r-60*t]}(o);e=c[0],r=c[1],n=c[2]}}else{if(i){var h=void 0!==t.config.maxTime?t.config.maxTime:t.config.maxDate;(e=Math.min(e,h.getHours()))===h.getHours()&&(r=Math.min(r,h.getMinutes())),r===h.getMinutes()&&(n=Math.min(n,h.getSeconds()))}if(a){var u=void 0!==t.config.minTime?t.config.minTime:t.config.minDate;(e=Math.max(e,u.getHours()))===u.getHours()&&r<u.getMinutes()&&(r=u.getMinutes()),r===u.getMinutes()&&(n=Math.max(n,u.getSeconds()))}}s(e,r,n)}}function l(e){var r=e||t.latestSelectedDateObj;r&&r instanceof Date&&s(r.getHours(),r.getMinutes(),r.getSeconds())}function s(e,r,n){void 0!==t.latestSelectedDateObj&&t.latestSelectedDateObj.setHours(e%24,r,n||0,0),t.hourElement&&t.minuteElement&&!t.isMobile&&(t.hourElement.value=M(t.config.time_24hr?e:(12+e)%12+12*D(e%12==0)),t.minuteElement.value=M(r),void 0!==t.amPM&&(t.amPM.textContent=t.l10n.amPM[D(e>=12)]),void 0!==t.secondElement&&(t.secondElement.value=M(n)))}function c(e){var r=W(e),t=parseInt(r.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&X(t)}function h(e,r,n,a){return r instanceof Array?r.forEach((function(r){return h(e,r,n,a)})):e instanceof Array?e.forEach((function(e){return h(e,r,n,a)})):(e.addEventListener(r,n,a),void t._handlers.push({remove:function(){return e.removeEventListener(r,n,a)}}))}function u(){ge("onChange")}function p(e,r){var n=void 0!==e?t.parseDate(e):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),a=t.currentYear,i=t.currentMonth;try{void 0!==n&&(t.currentYear=n.getFullYear(),t.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,t.config.errorHandler(e)}r&&t.currentYear!==a&&(ge("onYearChange"),N()),!r||t.currentYear===a&&t.currentMonth===i||ge("onMonthChange"),t.redraw()}function f(e){var r=W(e);~r.className.indexOf("arrow")&&m(e,r.classList.contains("arrowUp")?1:-1)}function m(e,r,t){var n=e&&W(e),a=t||n&&n.parentNode&&n.parentNode.firstChild,i=we("increment");i.delta=r,a&&a.dispatchEvent(i)}function k(e,r,n,a){var i=ee(r,!0),o=O("span",e,r.getDate().toString());return o.dateObj=r,o.$i=a,o.setAttribute("aria-label",t.formatDate(r,t.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===_(r,t.now)&&(t.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,be(r)&&(o.classList.add("selected"),t.selectedDateElem=o,"range"===t.config.mode&&(T(o,"startRange",t.selectedDates[0]&&0===_(r,t.selectedDates[0],!0)),T(o,"endRange",t.selectedDates[1]&&0===_(r,t.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===t.config.mode&&function(e){return!("range"!==t.config.mode||t.selectedDates.length<2)&&_(e,t.selectedDates[0])>=0&&_(e,t.selectedDates[1])<=0}(r)&&!be(r)&&o.classList.add("inRange"),t.weekNumbers&&1===t.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(r)+"</span>"),ge("onDayCreate",o),o}function g(e){e.focus(),"range"===t.config.mode&&ae(e)}function w(e){for(var r=e>0?t.config.showMonths:-1,n=e>0?0:t.config.showMonths-1;n!=r;n+=e)for(var a=t.daysContainer.children[n],i=e>0?a.children.length:-1,o=e>0?0:a.children.length-1;o!=i;o+=e){var d=a.children[o];if(-1===d.className.indexOf("hidden")&&ee(d.dateObj))return d}}function b(e,r){var a=n(),i=re(a||document.body),o=void 0!==e?e:i?a:void 0!==t.selectedDateElem&&re(t.selectedDateElem)?t.selectedDateElem:void 0!==t.todayDateElem&&re(t.todayDateElem)?t.todayDateElem:w(r>0?1:-1);void 0===o?t._input.focus():i?function(e,r){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():t.currentMonth,a=r>0?t.config.showMonths:-1,i=r>0?1:-1,o=n-t.currentMonth;o!=a;o+=i)for(var d=t.daysContainer.children[o],l=d.children.length,s=n-t.currentMonth===o?e.$i+r:r<0?d.children.length-1:0;s>=0&&s<l&&s!=(r>0?l:-1);s+=i){var c=d.children[s];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj)&&Math.abs(e.$i-s)>=Math.abs(r))return g(c)}t.changeMonth(i),b(w(i),0)}(o,r):g(o)}function P(e,r){for(var n=(new Date(e,r,1).getDay()-t.l10n.firstDayOfWeek+7)%7,a=t.utils.getDaysInMonth((r-1+12)%12,e),i=t.utils.getDaysInMonth(r,e),o=window.document.createDocumentFragment(),d=t.config.showMonths>1,l=d?"prevMonthDay hidden":"prevMonthDay",s=d?"nextMonthDay hidden":"nextMonthDay",c=a+1-n,h=0;c<=a;c++,h++)o.appendChild(k("flatpickr-day "+l,new Date(e,r-1,c),c,h));for(c=1;c<=i;c++,h++)o.appendChild(k("flatpickr-day",new Date(e,r,c),c,h));for(var u=i+1;u<=42-n&&(1===t.config.showMonths||h%7!=0);u++,h++)o.appendChild(k("flatpickr-day "+s,new Date(e,r+1,u%i),u,h));var p=O("div","dayContainer");return p.appendChild(o),p}function R(){if(void 0!==t.daysContainer){j(t.daysContainer),t.weekNumbers&&j(t.weekNumbers);for(var e=document.createDocumentFragment(),r=0;r<t.config.showMonths;r++){var n=new Date(t.currentYear,t.currentMonth,1);n.setMonth(t.currentMonth+r),e.appendChild(P(n.getFullYear(),n.getMonth()))}t.daysContainer.appendChild(e),t.days=t.daysContainer.firstChild,"range"===t.config.mode&&1===t.selectedDates.length&&ae()}}function N(){if(!(t.config.showMonths>1||"dropdown"!==t.config.monthSelectorType)){var e=function(e){return!(void 0!==t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&e<t.config.minDate.getMonth()||void 0!==t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()&&e>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var r=0;r<12;r++)if(e(r)){var n=O("option","flatpickr-monthDropdown-month");n.value=new Date(t.currentYear,r).getMonth().toString(),n.textContent=z(r,t.config.shorthandCurrentMonth,t.l10n),n.tabIndex=-1,t.currentMonth===r&&(n.selected=!0),t.monthsDropdownContainer.appendChild(n)}}}function G(){var e,r=O("div","flatpickr-month"),n=window.document.createDocumentFragment();t.config.showMonths>1||"static"===t.config.monthSelectorType?e=O("span","cur-month"):(t.monthsDropdownContainer=O("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),h(t.monthsDropdownContainer,"change",(function(e){var r=W(e),n=parseInt(r.value,10);t.changeMonth(n-t.currentMonth),ge("onMonthChange")})),N(),e=t.monthsDropdownContainer);var a=C("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&i.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(i.setAttribute("max",t.config.maxDate.getFullYear().toString()),i.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var o=O("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),n.appendChild(o),r.appendChild(n),{container:r,yearElement:i,monthElement:e}}function U(){j(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var e=t.config.showMonths;e--;){var r=G();t.yearElements.push(r.yearElement),t.monthElements.push(r.monthElement),t.monthNav.appendChild(r.container)}t.monthNav.appendChild(t.nextMonthNav)}function B(){t.weekdayContainer?j(t.weekdayContainer):t.weekdayContainer=O("div","flatpickr-weekdays");for(var e=t.config.showMonths;e--;){var r=O("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(r)}return V(),t.weekdayContainer}function V(){if(t.weekdayContainer){var e=t.l10n.firstDayOfWeek,r=K(t.l10n.weekdays.shorthand);e>0&&e<r.length&&(r=K(r.splice(e,r.length),r.splice(0,e)));for(var n=t.config.showMonths;n--;)t.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+r.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Q(e,r){void 0===r&&(r=!0);var n=r?e:e-t.currentMonth;n<0&&!0===t._hidePrevMonthArrow||n>0&&!0===t._hideNextMonthArrow||(t.currentMonth+=n,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,ge("onYearChange"),N()),R(),ge("onMonthChange"),ve())}function Z(e){return t.calendarContainer.contains(e)}function $(e){if(t.isOpen&&!t.config.inline){var r=W(e),n=Z(r),a=!(r===t.input||r===t.altInput||t.element.contains(r)||e.path&&e.path.indexOf&&(~e.path.indexOf(t.input)||~e.path.indexOf(t.altInput))||n||Z(e.relatedTarget)),i=!t.config.ignoredFocusElements.some((function(e){return e.contains(r)}));a&&i&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),void 0!==t.timeContainer&&void 0!==t.minuteElement&&void 0!==t.hourElement&&""!==t.input.value&&void 0!==t.input.value&&o(),t.close(),t.config&&"range"===t.config.mode&&1===t.selectedDates.length&&t.clear(!1))}}function X(e){if(!(!e||t.config.minDate&&e<t.config.minDate.getFullYear()||t.config.maxDate&&e>t.config.maxDate.getFullYear())){var r=t.currentYear!==e;t.currentYear=e||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),r&&(t.redraw(),ge("onYearChange"),N())}}function ee(e,r){var n;void 0===r&&(r=!0);var a=t.parseDate(e,void 0,r);if(t.config.minDate&&a&&_(a,t.config.minDate,void 0!==r?r:!t.minDateHasTime)<0||t.config.maxDate&&a&&_(a,t.config.maxDate,void 0!==r?r:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&0===t.config.disable.length)return!0;if(void 0===a)return!1;for(var i=!!t.config.enable,o=null!==(n=t.config.enable)&&void 0!==n?n:t.config.disable,d=0,l=void 0;d<o.length;d++){if("function"==typeof(l=o[d])&&l(a))return i;if(l instanceof Date&&void 0!==a&&l.getTime()===a.getTime())return i;if("string"==typeof l){var s=t.parseDate(l,void 0,!0);return s&&s.getTime()===a.getTime()?i:!i}if("object"==typeof l&&void 0!==a&&l.from&&l.to&&a.getTime()>=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function re(e){return void 0!==t.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&t.daysContainer.contains(e)}function te(e){e.target!==t._input||!(t.selectedDates.length>0||t._input.value.length>0)||e.relatedTarget&&Z(e.relatedTarget)||t.setDate(t._input.value,!0,e.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function ne(r){var a=W(r),i=t.config.wrap?e.contains(a):a===t._input,l=t.config.allowInput,s=t.isOpen&&(!l||!i),c=t.config.inline&&i&&!l;if(13===r.keyCode&&i){if(l)return t.setDate(t._input.value,!0,a===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),a.blur();t.open()}else if(Z(a)||s||c){var h=!!t.timeContainer&&t.timeContainer.contains(a);switch(r.keyCode){case 13:h?(r.preventDefault(),o(),he()):ue(r);break;case 27:r.preventDefault(),he();break;case 8:case 46:i&&!t.config.allowInput&&(r.preventDefault(),t.clear());break;case 37:case 39:if(h||i)t.hourElement&&t.hourElement.focus();else{r.preventDefault();var u=n();if(void 0!==t.daysContainer&&(!1===l||u&&re(u))){var p=39===r.keyCode?1:-1;r.ctrlKey?(r.stopPropagation(),Q(p),b(w(1),0)):b(void 0,p)}}break;case 38:case 40:r.preventDefault();var f=40===r.keyCode?1:-1;t.daysContainer&&void 0!==a.$i||a===t.input||a===t.altInput?r.ctrlKey?(r.stopPropagation(),X(t.currentYear-f),b(w(1),0)):h||b(void 0,7*f):a===t.currentYearElement?X(t.currentYear-f):t.config.enableTime&&(!h&&t.hourElement&&t.hourElement.focus(),o(r),t._debouncedChange());break;case 9:if(h){var m=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter((function(e){return e})),k=m.indexOf(a);if(-1!==k){var g=m[k+(r.shiftKey?-1:1)];r.preventDefault(),(g||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(a)&&r.shiftKey&&(r.preventDefault(),t._input.focus())}}if(void 0!==t.amPM&&a===t.amPM)switch(r.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],d(),xe();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],d(),xe()}(i||Z(a))&&ge("onKeyDown",r)}function ae(e,r){if(void 0===r&&(r="flatpickr-day"),1===t.selectedDates.length&&(!e||e.classList.contains(r)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),a=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),i=Math.min(n,t.selectedDates[0].getTime()),o=Math.max(n,t.selectedDates[0].getTime()),d=!1,l=0,s=0,c=i;c<o;c+=864e5)ee(new Date(c),!0)||(d=d||c>i&&c<o,c<a&&(!l||c>l)?l=c:c>a&&(!s||c<s)&&(s=c));Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+r)).forEach((function(r){var i,o,c,h=r.dateObj.getTime(),u=l>0&&h<l||s>0&&h>s;if(u)return r.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){r.classList.remove(e)}));d&&!u||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){r.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=t.selectedDates[0].getTime()?"startRange":"endRange"),a<n&&h===a?r.classList.add("startRange"):a>n&&h===a&&r.classList.add("endRange"),h>=l&&(0===s||h<=s)&&(o=a,c=n,(i=h)>Math.min(o,c)&&i<Math.max(o,c))&&r.classList.add("inRange")))}))}}function ie(){!t.isOpen||t.config.static||t.config.inline||se()}function oe(e){return function(r){var n=t.config["_"+e+"Date"]=t.parseDate(r,t.config.dateFormat),a=t.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(t["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter((function(e){return ee(e)})),t.selectedDates.length||"min"!==e||l(n),xe()),t.daysContainer&&(ce(),void 0!==n?t.currentYearElement[e]=n.getFullYear().toString():t.currentYearElement.removeAttribute(e),t.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function de(){return t.config.wrap?e.querySelector("[data-input]"):e}function le(){"object"!=typeof t.config.locale&&void 0===q.l10ns[t.config.locale]&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=H(H({},q.l10ns.default),"object"==typeof t.config.locale?t.config.locale:"default"!==t.config.locale?q.l10ns[t.config.locale]:void 0),F.D="("+t.l10n.weekdays.shorthand.join("|")+")",F.l="("+t.l10n.weekdays.longhand.join("|")+")",F.M="("+t.l10n.months.shorthand.join("|")+")",F.F="("+t.l10n.months.longhand.join("|")+")",F.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")",void 0===H(H({},r),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===q.defaultConfig.time_24hr&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=L(t),t.parseDate=I({config:t.config,l10n:t.l10n})}function se(e){if("function"!=typeof t.config.position){if(void 0!==t.calendarContainer){ge("onPreCalendarPosition");var r=e||t._positionElement,n=Array.prototype.reduce.call(t.calendarContainer.children,(function(e,r){return e+r.offsetHeight}),0),a=t.calendarContainer.offsetWidth,i=t.config.position.split(" "),o=i[0],d=i.length>1?i[1]:null,l=r.getBoundingClientRect(),s=window.innerHeight-l.bottom,c="above"===o||"below"!==o&&s<n&&l.top>n,h=window.pageYOffset+l.top+(c?-n-2:r.offsetHeight+2);if(T(t.calendarContainer,"arrowTop",!c),T(t.calendarContainer,"arrowBottom",c),!t.config.inline){var u=window.pageXOffset+l.left,p=!1,f=!1;"center"===d?(u-=(a-l.width)/2,p=!0):"right"===d&&(u-=a-l.width,f=!0),T(t.calendarContainer,"arrowLeft",!p&&!f),T(t.calendarContainer,"arrowCenter",p),T(t.calendarContainer,"arrowRight",f);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right),k=u+a>window.document.body.offsetWidth,g=m+a>window.document.body.offsetWidth;if(T(t.calendarContainer,"rightMost",k),!t.config.static)if(t.calendarContainer.style.top=h+"px",k)if(g){var w=function(){for(var e=null,r=0;r<document.styleSheets.length;r++){var t=document.styleSheets[r];if(t.cssRules){e=t;break}}return null!=e?e:(n=document.createElement("style"),document.head.appendChild(n),n.sheet);var n}();if(void 0===w)return;var b=window.document.body.offsetWidth,v=Math.max(0,b/2-a/2),y=w.cssRules.length,x="{left:"+l.left+"px;right:auto;}";T(t.calendarContainer,"rightMost",!1),T(t.calendarContainer,"centerMost",!0),w.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+x,y),t.calendarContainer.style.left=v+"px",t.calendarContainer.style.right="auto"}else t.calendarContainer.style.left="auto",t.calendarContainer.style.right=m+"px";else t.calendarContainer.style.left=u+"px",t.calendarContainer.style.right="auto"}}}else t.config.position(t,e)}function ce(){t.config.noCalendar||t.isMobile||(N(),ve(),R())}function he(){t._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(t.close,0):t.close()}function ue(e){e.preventDefault(),e.stopPropagation();var r=J(W(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==r){var n=r,a=t.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<t.currentMonth||a.getMonth()>t.currentMonth+t.config.showMonths-1)&&"range"!==t.config.mode;if(t.selectedDateElem=n,"single"===t.config.mode)t.selectedDates=[a];else if("multiple"===t.config.mode){var o=be(a);o?t.selectedDates.splice(parseInt(o),1):t.selectedDates.push(a)}else"range"===t.config.mode&&(2===t.selectedDates.length&&t.clear(!1,!1),t.latestSelectedDateObj=a,t.selectedDates.push(a),0!==_(a,t.selectedDates[0],!0)&&t.selectedDates.sort((function(e,r){return e.getTime()-r.getTime()})));if(d(),i){var l=t.currentYear!==a.getFullYear();t.currentYear=a.getFullYear(),t.currentMonth=a.getMonth(),l&&(ge("onYearChange"),N()),ge("onMonthChange")}ve(),R(),xe(),i||"range"===t.config.mode||1!==t.config.showMonths?void 0!==t.selectedDateElem&&void 0===t.hourElement&&t.selectedDateElem&&t.selectedDateElem.focus():g(n),void 0!==t.hourElement&&void 0!==t.hourElement&&t.hourElement.focus(),t.config.closeOnSelect&&("single"===t.config.mode&&!t.config.enableTime||"range"===t.config.mode&&2===t.selectedDates.length&&!t.config.enableTime)&&he(),u()}}t.parseDate=I({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=h,t._setHoursFromDate=l,t._positionCalendar=se,t.changeMonth=Q,t.changeYear=X,t.clear=function(e,r){if(void 0===e&&(e=!0),void 0===r&&(r=!0),t.input.value="",void 0!==t.altInput&&(t.altInput.value=""),void 0!==t.mobileInput&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,!0===r&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),!0===t.config.enableTime){var n=E(t.config);s(n.hours,n.minutes,n.seconds)}t.redraw(),e&&ge("onChange")},t.close=function(){t.isOpen=!1,t.isMobile||(void 0!==t.calendarContainer&&t.calendarContainer.classList.remove("open"),void 0!==t._input&&t._input.classList.remove("active")),ge("onClose")},t.onMouseOver=ae,t._createElement=O,t.createDay=k,t.destroy=function(){void 0!==t.config&&ge("onDestroy");for(var e=t._handlers.length;e--;)t._handlers[e].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var r=t.calendarContainer.parentNode;if(r.lastChild&&r.removeChild(r.lastChild),r.parentNode){for(;r.firstChild;)r.parentNode.insertBefore(r.firstChild,r);r.parentNode.removeChild(r)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete t[e]}catch(e){}}))},t.isEnabled=ee,t.jumpToDate=p,t.updateValue=xe,t.open=function(e,r){if(void 0===r&&(r=t._positionElement),!0===t.isMobile){if(e){e.preventDefault();var n=W(e);n&&n.blur()}return void 0!==t.mobileInput&&(t.mobileInput.focus(),t.mobileInput.click()),void ge("onOpen")}if(!t._input.disabled&&!t.config.inline){var a=t.isOpen;t.isOpen=!0,a||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),ge("onOpen"),se(r)),!0===t.config.enableTime&&!0===t.config.noCalendar&&(!1!==t.config.allowInput||void 0!==e&&t.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return t.hourElement.select()}),50))}},t.redraw=ce,t.set=function(e,r){if(null!==e&&"object"==typeof e)for(var n in Object.assign(t.config,e),e)void 0!==pe[n]&&pe[n].forEach((function(e){return e()}));else t.config[e]=r,void 0!==pe[e]?pe[e].forEach((function(e){return e()})):v.indexOf(e)>-1&&(t.config[e]=A(r));t.redraw(),xe(!0)},t.setDate=function(e,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=t.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return t.clear(r);fe(e,n),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),p(void 0,r),l(),0===t.selectedDates.length&&t.clear(!1),xe(r),r&&ge("onChange")},t.toggle=function(e){if(!0===t.isOpen)return t.close();t.open(e)};var pe={locale:[le,V],showMonths:[U,i,B],minDate:[p],maxDate:[p],positionElement:[ke],clickOpens:[function(){!0===t.config.clickOpens?(h(t._input,"focus",t.open),h(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function fe(e,r){var n=[];if(e instanceof Array)n=e.map((function(e){return t.parseDate(e,r)}));else if(e instanceof Date||"number"==typeof e)n=[t.parseDate(e,r)];else if("string"==typeof e)switch(t.config.mode){case"single":case"time":n=[t.parseDate(e,r)];break;case"multiple":n=e.split(t.config.conjunction).map((function(e){return t.parseDate(e,r)}));break;case"range":n=e.split(t.l10n.rangeSeparator).map((function(e){return t.parseDate(e,r)}))}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));t.selectedDates=t.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===t.config.mode&&t.selectedDates.sort((function(e,r){return e.getTime()-r.getTime()}))}function me(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?t.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:t.parseDate(e.from,void 0),to:t.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ke(){t._positionElement=t.config.positionElement||t._input}function ge(e,r){if(void 0!==t.config){var n=t.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](t.selectedDates,t.input.value,t,r);"onChange"===e&&(t.input.dispatchEvent(we("change")),t.input.dispatchEvent(we("input")))}}function we(e){var r=document.createEvent("Event");return r.initEvent(e,!0,!0),r}function be(e){for(var r=0;r<t.selectedDates.length;r++){var n=t.selectedDates[r];if(n instanceof Date&&0===_(n,e))return""+r}return!1}function ve(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach((function(e,r){var n=new Date(t.currentYear,t.currentMonth,1);n.setMonth(t.currentMonth+r),t.config.showMonths>1||"static"===t.config.monthSelectorType?t.monthElements[r].textContent=z(n.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),t._hidePrevMonthArrow=void 0!==t.config.minDate&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=void 0!==t.config.maxDate&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function ye(e){return t.selectedDates.map((function(r){return t.formatDate(r,e)})).filter((function(e,r,n){return"range"!==t.config.mode||t.config.enableTime||n.indexOf(e)===r})).join("range"!==t.config.mode?t.config.conjunction:t.l10n.rangeSeparator)}function xe(e){void 0===e&&(e=!0),void 0!==t.mobileInput&&t.mobileFormatStr&&(t.mobileInput.value=void 0!==t.latestSelectedDateObj?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=ye(t.config.dateFormat),void 0!==t.altInput&&(t.altInput.value=ye(t.config.altFormat)),!1!==e&&ge("onValueUpdate")}function Me(e){var r=W(e),n=t.prevMonthNav.contains(r),a=t.nextMonthNav.contains(r);n||a?Q(n?-1:1):t.yearElements.indexOf(r)>=0?r.select():r.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):r.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}return function(){t.element=t.input=e,t.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=H(H({},JSON.parse(JSON.stringify(e.dataset||{}))),r),o={};t.config.parseDate=i.parseDate,t.config.formatDate=i.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(e){t.config._enable=me(e)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(e){t.config._disable=me(e)}});var d="time"===i.mode;i.dateFormat||!i.enableTime&&!d||(o.dateFormat=i.noCalendar||d?"H:i"+(i.enableSeconds?":S":""):(q.defaultConfig.dateFormat||y.dateFormat)+" H:i"+(i.enableSeconds?":S":"")),i.altInput&&(i.enableTime||d)&&!i.altFormat&&(o.altFormat=i.noCalendar||d?"h:i"+(i.enableSeconds?":S K":" K"):(q.defaultConfig.altFormat||y.altFormat)+" h:i"+(i.enableSeconds?":S":"")+" K"),Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:oe("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:oe("max")});var l=function(e){return function(r){t.config["min"===e?"_minTime":"_maxTime"]=t.parseDate(r,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:l("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:l("max")}),"time"===i.mode&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,o,i);for(var s=0;s<n.length;s++)t.config[n[s]]=!0===t.config[n[s]]||"true"===t.config[n[s]];for(v.filter((function(e){return void 0!==t.config[e]})).forEach((function(e){t.config[e]=A(t.config[e]||[]).map(a)})),t.isMobile=!t.config.disableMobile&&!t.config.inline&&"single"===t.config.mode&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),s=0;s<t.config.plugins.length;s++){var c=t.config.plugins[s](t)||{};for(var h in c)v.indexOf(h)>-1?t.config[h]=A(c[h]).map(a).concat(t.config[h]):void 0===i[h]&&(t.config[h]=c[h])}i.altInputClass||(t.config.altInputClass=de().className+" "+t.config.altInputClass),ge("onParseConfig")}(),le(),t.input=de(),t.input?(t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=O(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),ke()):t.config.errorHandler(new Error("Invalid input element specified")),function(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var e=t.config.defaultDate||("INPUT"!==t.input.nodeName&&"TEXTAREA"!==t.input.nodeName||!t.input.placeholder||t.input.value!==t.input.placeholder?t.input.value:null);e&&fe(e,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),void 0!==t.config.minTime&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),void 0!==t.config.maxTime&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}(),t.utils={getDaysInMonth:function(e,r){return void 0===e&&(e=t.currentMonth),void 0===r&&(r=t.currentYear),1===e&&(r%4==0&&r%100!=0||r%400==0)?29:t.l10n.daysInMonth[e]}},t.isMobile||function(){var e=window.document.createDocumentFragment();if(t.calendarContainer=O("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(e.appendChild((t.monthNav=O("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=O("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=O("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,U(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(e){t.__hidePrevMonthArrow!==e&&(T(t.prevMonthNav,"flatpickr-disabled",e),t.__hidePrevMonthArrow=e)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(e){t.__hideNextMonthArrow!==e&&(T(t.nextMonthNav,"flatpickr-disabled",e),t.__hideNextMonthArrow=e)}}),t.currentYearElement=t.yearElements[0],ve(),t.monthNav)),t.innerContainer=O("div","flatpickr-innerContainer"),t.config.weekNumbers){var r=function(){t.calendarContainer.classList.add("hasWeeks");var e=O("div","flatpickr-weekwrapper");e.appendChild(O("span","flatpickr-weekday",t.l10n.weekAbbreviation));var r=O("div","flatpickr-weeks");return e.appendChild(r),{weekWrapper:e,weekNumbers:r}}(),n=r.weekWrapper,a=r.weekNumbers;t.innerContainer.appendChild(n),t.weekNumbers=a,t.weekWrapper=n}t.rContainer=O("div","flatpickr-rContainer"),t.rContainer.appendChild(B()),t.daysContainer||(t.daysContainer=O("div","flatpickr-days"),t.daysContainer.tabIndex=-1),R(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),e.appendChild(t.innerContainer)}t.config.enableTime&&e.appendChild(function(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var e=E(t.config);t.timeContainer=O("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var r=O("span","flatpickr-time-separator",":"),n=C("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=n.getElementsByTagName("input")[0];var a=C("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=a.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),t.minuteElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():e.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(n),t.timeContainer.appendChild(r),t.timeContainer.appendChild(a),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var i=C("flatpickr-second");t.secondElement=i.getElementsByTagName("input")[0],t.secondElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():e.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(O("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(i)}return t.config.time_24hr||(t.amPM=O("span","flatpickr-am-pm",t.l10n.amPM[D((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}()),T(t.calendarContainer,"rangeMode","range"===t.config.mode),T(t.calendarContainer,"animate",!0===t.config.animate),T(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(e);var i=void 0!==t.config.appendTo&&void 0!==t.config.appendTo.nodeType;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!i&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):void 0!==t.config.appendTo&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var o=O("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(o,t.element),o.appendChild(t.element),t.altInput&&o.appendChild(t.altInput),o.appendChild(t.calendarContainer)}t.config.static||t.config.inline||(void 0!==t.config.appendTo?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}(),function(){if(t.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+e+"]"),(function(r){return h(r,"click",t[e])}))})),t.isMobile)!function(){var e=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=O("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=e,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",void 0!==t.altInput&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch(e){}h(t.mobileInput,"change",(function(e){t.setDate(W(e).value,!1,t.mobileFormatStr),ge("onChange"),ge("onClose")}))}();else{var e=S(ie,50);if(t._debouncedChange=S(u,300),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&h(t.daysContainer,"mouseover",(function(e){"range"===t.config.mode&&ae(W(e))})),h(t._input,"keydown",ne),void 0!==t.calendarContainer&&h(t.calendarContainer,"keydown",ne),t.config.inline||t.config.static||h(window,"resize",e),void 0!==window.ontouchstart?h(window.document,"touchstart",$):h(window.document,"mousedown",$),h(window.document,"focus",$,{capture:!0}),!0===t.config.clickOpens&&(h(t._input,"focus",t.open),h(t._input,"click",t.open)),void 0!==t.daysContainer&&(h(t.monthNav,"click",Me),h(t.monthNav,["keyup","increment"],c),h(t.daysContainer,"click",ue)),void 0!==t.timeContainer&&void 0!==t.minuteElement&&void 0!==t.hourElement){h(t.timeContainer,["increment"],o),h(t.timeContainer,"blur",o,{capture:!0}),h(t.timeContainer,"click",f),h([t.hourElement,t.minuteElement],["focus","click"],(function(e){return W(e).select()})),void 0!==t.secondElement&&h(t.secondElement,"focus",(function(){return t.secondElement&&t.secondElement.select()})),void 0!==t.amPM&&h(t.amPM,"click",(function(e){o(e)}))}t.config.allowInput&&h(t._input,"blur",te)}}(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&l(t.config.noCalendar?t.latestSelectedDateObj:void 0),xe(!1)),i();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&n&&se(),ge("onReady")}(),t}function U(e,r){for(var t=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),n=[],a=0;a<t.length;a++){var i=t[a];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=G(i,r||{}),n.push(i._flatpickr)}catch(e){console.error(e)}}return 1===n.length?n[0]:n}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return U(this,e)},HTMLElement.prototype.flatpickr=function(e){return U([this],e)});var q=function(e,r){return"string"==typeof e?U(window.document.querySelectorAll(e),r):e instanceof Node?U([e],r):U(e,r)};q.defaultConfig={},q.l10ns={en:H({},x),default:H({},x)},q.localize=function(e){q.l10ns.default=H(H({},q.l10ns.default),e)},q.setDefaults=function(e){q.defaultConfig=H(H({},q.defaultConfig),e)},q.parseDate=I({}),q.formatDate=L({}),q.compareDates=_,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return U(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=q);const B=o(a((function(e,r){!function(e){
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as e,b as a,a as n}from"./p-eab67c09.js";import{m as t}from"./p-
|
|
1
|
+
import{c as e,b as a,a as n}from"./p-eab67c09.js";import{m as t}from"./p-2ff40ce6.js";e((function(){!function(e){e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}("function"==typeof a?t:n.moment)})),e((function(){!function(e){
|
|
2
2
|
//! moment.js locale configuration
|
|
3
3
|
var a="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",a[7],a[8],a[9]];function t(e,t,r,d){var s="";switch(r){case"s":return d?"muutaman sekunnin":"muutama sekunti";case"ss":s=d?"sekunnin":"sekuntia";break;case"m":return d?"minuutin":"minuutti";case"mm":s=d?"minuutin":"minuuttia";break;case"h":return d?"tunnin":"tunti";case"hh":s=d?"tunnin":"tuntia";break;case"d":return d?"päivän":"päivä";case"dd":s=d?"päivän":"päivää";break;case"M":return d?"kuukauden":"kuukausi";case"MM":s=d?"kuukauden":"kuukautta";break;case"y":return d?"vuoden":"vuosi";case"yy":s=d?"vuoden":"vuotta"}return function(e,t){return e<10?t?n[e]:a[e]:e}(e,d)+" "+s}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}("function"==typeof a?t:n.moment)})),e((function(){!function(e){e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}("function"==typeof a?t:n.moment)})),e((function(){!function(e){e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?":e":1===a||2===a?":a":":e")},week:{dow:1,doy:4}})}("function"==typeof a?t:n.moment)})),e((function(){!function(e){
|
|
4
4
|
//! moment.js locale configuration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,g as e}from"./p-e9a95b8f.js";import{c as h}from"./p-6c094f3f.js";import{i as a,a as n}from"./p-cc9ebbef.js";import{D as o}from"./p-
|
|
1
|
+
import{r as t,c as i,h as s,g as e}from"./p-e9a95b8f.js";import{c as h}from"./p-6c094f3f.js";import{i as a,a as n}from"./p-cc9ebbef.js";import{D as o}from"./p-72e03943.js";import{M as r}from"./p-1c284626.js";import"./p-eab67c09.js";import"./p-2ff40ce6.js";import"./p-48d4ef20.js";import"./p-cbc43682.js";import"./p-dcc97cc2.js";import"./p-d0a7de87.js";const l={date:"date",time:"time",week:a()?"date":"week",month:"month",quarter:"date",year:"date",datetime:"datetime-local",default:"datetime-local"},d={date:"Y-MM-DD",time:"HH:mm",week:"GGGG-[W]WW",month:"Y-MM","datetime-local":"Y-MM-DD[T]HH:mm"},c=class{constructor(s){t(this,s),this.change=i(this,"change",7),this.disabled=!1,this.readonly=!1,this.invalid=!1,this.required=!1,this.type="datetime",this.language="en",this.showPortal=!1,this.portalId=`date-picker-calendar-${h()}`,this.documentClickListener=t=>{"keydown"===t.type&&"Tab"!==t.key||document.querySelector(`#${this.portalId}`).contains(t.target)||this.hideCalendar()},this.handleCalendarChange=this.handleCalendarChange.bind(this),this.handleInputElementChange=this.handleInputElementChange.bind(this),this.showCalendar=this.showCalendar.bind(this),this.dateFormatter=new o(this.language),this.clearValue=this.clearValue.bind(this),this.hideCalendar=this.hideCalendar.bind(this),this.onInputClick=this.onInputClick.bind(this),this.nativeChangeHandler=this.nativeChangeHandler.bind(this),this.preventBlurFromCalendarContainer=this.preventBlurFromCalendarContainer.bind(this)}componentWillLoad(){this.useNative=!this.readonly&&(a()||n()),this.updateInternalFormatAndType(),this.formattedValue=this.dateFormatter.formatDate(this.value,this.internalFormat)}componentWillUpdate(){this.updateInternalFormatAndType()}render(){const t={onAction:this.clearValue};if(this.value&&!this.readonly&&(t.trailingIcon="clear_symbol"),this.useNative)return s("div",{class:"container"},s("limel-input-field",{disabled:this.disabled,readonly:this.readonly,invalid:this.invalid,label:this.label,helperText:this.helperText,required:this.required,value:this.formattedValue,type:this.nativeType,onChange:this.nativeChangeHandler}));const i=getComputedStyle(this.host).getPropertyValue("--dropdown-z-index");return s("div",{class:"container"},s("limel-input-field",Object.assign({disabled:this.disabled,readonly:this.readonly,invalid:this.invalid,label:this.label,helperText:this.helperText,required:this.required,value:this.formattedValue,onFocus:this.showCalendar,onBlur:this.hideCalendar,onClick:this.onInputClick,onChange:this.handleInputElementChange,ref:t=>this.textField=t},t)),s("limel-portal",{containerId:this.portalId,visible:this.showPortal,containerStyle:{"z-index":i}},s("limel-flatpickr-adapter",{format:this.internalFormat,language:this.language,type:this.type,value:this.value,ref:t=>this.datePickerCalendar=t,isOpen:this.showPortal,onChange:this.handleCalendarChange})))}onValueChange(t,i){t!==i&&t!==this.formattedValue&&(this.formattedValue=this.dateFormatter.formatDate(this.value,this.internalFormat))}updateInternalFormatAndType(){this.nativeType=l[this.type||"default"],this.nativeFormat=d[this.nativeType],this.internalFormat=this.useNative?this.nativeFormat:this.format?this.format:this.dateFormatter.getDateFormat(this.type)}nativeChangeHandler(t){t.stopPropagation();const i=this.dateFormatter.parseDate(t.detail,this.internalFormat);this.formattedValue=t.detail,this.change.emit(i)}showCalendar(t){this.showPortal=!0;const i=this.textField.shadowRoot.querySelector("input");setTimeout((()=>{this.datePickerCalendar.inputElement=i})),t.stopPropagation(),document.addEventListener("mousedown",this.documentClickListener,{passive:!0}),document.addEventListener("keydown",this.documentClickListener,{passive:!0}),document.addEventListener("blur",this.preventBlurFromCalendarContainer,{capture:!0})}preventBlurFromCalendarContainer(t){t.relatedTarget===this.datePickerCalendar&&t.stopPropagation()}hideCalendar(){setTimeout((()=>{this.showPortal=!1})),document.removeEventListener("mousedown",this.documentClickListener),document.removeEventListener("keydown",this.documentClickListener),document.removeEventListener("blur",this.preventBlurFromCalendarContainer),this.pickerIsAutoClosing()||this.fixFlatpickrFocusBug()}fixFlatpickrFocusBug(){new r(this.textField.shadowRoot.querySelector(".mdc-text-field")).getDefaultFoundation().deactivateFocus()}handleCalendarChange(t){const i=t.detail;this.formattedValue=this.dateFormatter.formatDate(i,this.internalFormat),t.stopPropagation(),this.pickerIsAutoClosing()&&this.hideCalendar(),this.change.emit(i)}onInputClick(t){this.disabled||this.readonly||this.showPortal||this.showCalendar(t)}handleInputElementChange(t){""===t.detail&&this.clearValue(),t.stopPropagation()}pickerIsAutoClosing(){return"datetime"!==this.type&&"time"!==this.type}clearValue(){this.formattedValue="",this.change.emit(null)}get host(){return e(this)}static get watchers(){return{value:["onValueChange"]}}};c.style="div.container{position:relative}";export{c as limel_date_picker}
|
|
@@ -3,8 +3,8 @@ import { FieldProps } from '@rjsf/core';
|
|
|
3
3
|
export declare class ObjectField extends React.Component<FieldProps, any> {
|
|
4
4
|
constructor(props: any);
|
|
5
5
|
private handleValidation;
|
|
6
|
-
render(): React.FunctionComponentElement<
|
|
6
|
+
render(): React.FunctionComponentElement<{
|
|
7
7
|
children?: React.ReactNode;
|
|
8
|
-
}
|
|
8
|
+
}> | React.FunctionComponentElement<Readonly<FieldProps<any>>>;
|
|
9
9
|
private renderErrors;
|
|
10
10
|
}
|