text: /*! Built with http://stenciljs.com */
  import{h}from"../te-calendar.core.js";var hookCallback,some;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(e){hookCallback=e}function isArray(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function isObject(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function isObjectEmpty(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function isUndefined(e){return void 0===e}function isNumber(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function isDate(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function map(e,t){var a,n=[];for(a=0;a<e.length;++a)n.push(t(e[a],a));return n}function hasOwnProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function extend(e,t){for(var a in t)hasOwnProp(t,a)&&(e[a]=t[a]);return hasOwnProp(t,"toString")&&(e.toString=t.toString),hasOwnProp(t,"valueOf")&&(e.valueOf=t.valueOf),e}function createUTC(e,t,a,n){return createLocalOrUTC(e,t,a,n,!0).utc()}function defaultParsingFlags(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function getParsingFlags(e){return null==e._pf&&(e._pf=defaultParsingFlags()),e._pf}function isValid(e){if(null==e._isValid){var t=getParsingFlags(e),a=some.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function createInvalid(e){var t=createUTC(NaN);return null!=e?extend(getParsingFlags(t),e):getParsingFlags(t).userInvalidated=!0,t}some=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),a=t.length>>>0,n=0;n<a;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};var momentProperties=hooks.momentProperties=[];function copyConfig(e,t){var a,n,o;if(isUndefined(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),isUndefined(t._i)||(e._i=t._i),isUndefined(t._f)||(e._f=t._f),isUndefined(t._l)||(e._l=t._l),isUndefined(t._strict)||(e._strict=t._strict),isUndefined(t._tzm)||(e._tzm=t._tzm),isUndefined(t._isUTC)||(e._isUTC=t._isUTC),isUndefined(t._offset)||(e._offset=t._offset),isUndefined(t._pf)||(e._pf=getParsingFlags(t)),isUndefined(t._locale)||(e._locale=t._locale),momentProperties.length>0)for(a=0;a<momentProperties.length;a++)isUndefined(o=t[n=momentProperties[a]])||(e[n]=o);return e}var updateInProgress=!1;function Moment(e){copyConfig(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===updateInProgress&&(updateInProgress=!0,hooks.updateOffset(this),updateInProgress=!1)}function isMoment(e){return e instanceof Moment||null!=e&&null!=e._isAMomentObject}function absFloor(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function toInt(e){var t=+e,a=0;return 0!==t&&isFinite(t)&&(a=absFloor(t)),a}function compareArrays(e,t,a){var n,o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(n=0;n<o;n++)(a&&e[n]!==t[n]||!a&&toInt(e[n])!==toInt(t[n]))&&s++;return s+r}function warn(e){!1===hooks.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function deprecate(e,t){var a=!0;return extend(function(){if(null!=hooks.deprecationHandler&&hooks.deprecationHandler(null,e),a){for(var n,o=[],r=0;r<arguments.length;r++){if(n="","object"==typeof arguments[r]){for(var s in n+="\n["+r+"] ",arguments[0])n+=s+": "+arguments[0][s]+", ";n=n.slice(0,-2)}else n=arguments[r];o.push(n)}warn(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),a=!1}return t.apply(this,arguments)},t)}var keys,deprecations={};function deprecateSimple(e,t){null!=hooks.deprecationHandler&&hooks.deprecationHandler(e,t),deprecations[e]||(warn(t),deprecations[e]=!0)}function isFunction(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function set(e){var t,a;for(a in e)isFunction(t=e[a])?this[a]=t:this["_"+a]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(e,t){var a,n=extend({},e);for(a in t)hasOwnProp(t,a)&&(isObject(e[a])&&isObject(t[a])?(n[a]={},extend(n[a],e[a]),extend(n[a],t[a])):null!=t[a]?n[a]=t[a]:delete n[a]);for(a in e)hasOwnProp(e,a)&&!hasOwnProp(t,a)&&isObject(e[a])&&(n[a]=extend({},n[a]));return n}function Locale(e){null!=e&&this.set(e)}hooks.suppressDeprecationWarnings=!1,hooks.deprecationHandler=null,keys=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)hasOwnProp(e,t)&&a.push(t);return a};var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(e,t,a){var n=this._calendar[e]||this._calendar.sameElse;return isFunction(n)?n.call(t,a):n}var defaultLongDateFormat={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"};function longDateFormat(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(e){return this._ordinal.replace("%d",e)}var defaultRelativeTime={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(e,t,a,n){var o=this._relativeTime[a];return isFunction(o)?o(e,t,a,n):o.replace(/%d/i,e)}function pastFuture(e,t){var a=this._relativeTime[e>0?"future":"past"];return isFunction(a)?a(t):a.replace(/%s/i,t)}var aliases={};function addUnitAlias(e,t){var a=e.toLowerCase();aliases[a]=aliases[a+"s"]=aliases[t]=e}function normalizeUnits(e){return"string"==typeof e?aliases[e]||aliases[e.toLowerCase()]:void 0}function normalizeObjectUnits(e){var t,a,n={};for(a in e)hasOwnProp(e,a)&&(t=normalizeUnits(a))&&(n[t]=e[a]);return n}var priorities={};function addUnitPriority(e,t){priorities[e]=t}function getPrioritizedUnits(e){var t=[];for(var a in e)t.push({unit:a,priority:priorities[a]});return t.sort(function(e,t){return e.priority-t.priority}),t}function zeroFill(e,t,a){var n=""+Math.abs(e);return(e>=0?a?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(e,t,a,n){var o=n;"string"==typeof n&&(o=function(){return this[n]()}),e&&(formatTokenFunctions[e]=o),t&&(formatTokenFunctions[t[0]]=function(){return zeroFill(o.apply(this,arguments),t[1],t[2])}),a&&(formatTokenFunctions[a]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function removeFormattingTokens(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function makeFormatFunction(e){var t,a,n=e.match(formattingTokens);for(t=0,a=n.length;t<a;t++)n[t]=formatTokenFunctions[n[t]]?formatTokenFunctions[n[t]]:removeFormattingTokens(n[t]);return function(t){var o,r="";for(o=0;o<a;o++)r+=isFunction(n[o])?n[o].call(t,e):n[o];return r}}function formatMoment(e,t){return e.isValid()?(t=expandFormat(t,e.localeData()),formatFunctions[t]=formatFunctions[t]||makeFormatFunction(t),formatFunctions[t](e)):e.localeData().invalidDate()}function expandFormat(e,t){var a=5;function n(e){return t.longDateFormat(e)||e}for(localFormattingTokens.lastIndex=0;a>=0&&localFormattingTokens.test(e);)e=e.replace(localFormattingTokens,n),localFormattingTokens.lastIndex=0,a-=1;return e}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[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,regexes={};function addRegexToken(e,t,a){regexes[e]=isFunction(t)?t:function(e,n){return e&&a?a:t}}function getParseRegexForToken(e,t){return hasOwnProp(regexes,e)?regexes[e](t._strict,t._locale):new RegExp(unescapeFormat(e))}function unescapeFormat(e){return regexEscape(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,a,n,o){return t||a||n||o}))}function regexEscape(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tokens={};function addParseToken(e,t){var a,n=t;for("string"==typeof e&&(e=[e]),isNumber(t)&&(n=function(e,a){a[t]=toInt(e)}),a=0;a<e.length;a++)tokens[e[a]]=n}function addWeekParseToken(e,t){addParseToken(e,function(e,a,n,o){n._w=n._w||{},t(e,n._w,n,o)})}function addTimeToArrayFromToken(e,t,a){null!=t&&hasOwnProp(tokens,e)&&tokens[e](t,a._a,a,e)}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;function daysInYear(e){return isLeapYear(e)?366:365}function isLeapYear(e){return e%4==0&&e%100!=0||e%400==0}addFormatToken("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),addFormatToken(0,["YY",2],0,function(){return this.year()%100}),addFormatToken(0,["YYYY",4],0,"year"),addFormatToken(0,["YYYYY",5],0,"year"),addFormatToken(0,["YYYYYY",6,!0],0,"year"),addUnitAlias("year","y"),addUnitPriority("year",1),addRegexToken("Y",matchSigned),addRegexToken("YY",match1to2,match2),addRegexToken("YYYY",match1to4,match4),addRegexToken("YYYYY",match1to6,match6),addRegexToken("YYYYYY",match1to6,match6),addParseToken(["YYYYY","YYYYYY"],YEAR),addParseToken("YYYY",function(e,t){t[YEAR]=2===e.length?hooks.parseTwoDigitYear(e):toInt(e)}),addParseToken("YY",function(e,t){t[YEAR]=hooks.parseTwoDigitYear(e)}),addParseToken("Y",function(e,t){t[YEAR]=parseInt(e,10)}),hooks.parseTwoDigitYear=function(e){return toInt(e)+(toInt(e)>68?1900:2e3)};var indexOf,getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(e,t){return function(a){return null!=a?(set$1(this,e,a),hooks.updateOffset(this,t),this):get(this,e)}}function get(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function set$1(e,t,a){e.isValid()&&!isNaN(a)&&("FullYear"===t&&isLeapYear(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),daysInMonth(a,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function stringGet(e){return isFunction(this[e=normalizeUnits(e)])?this[e]():this}function stringSet(e,t){if("object"==typeof e)for(var a=getPrioritizedUnits(e=normalizeObjectUnits(e)),n=0;n<a.length;n++)this[a[n].unit](e[a[n].unit]);else if(isFunction(this[e=normalizeUnits(e)]))return this[e](t);return this}function mod(e,t){return(e%t+t)%t}function daysInMonth(e,t){if(isNaN(e)||isNaN(t))return NaN;var a=mod(t,12);return e+=(t-a)/12,1===a?isLeapYear(e)?29:28:31-a%7%2}indexOf=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1}),addFormatToken("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),addFormatToken("MMMM",0,0,function(e){return this.localeData().months(this,e)}),addUnitAlias("month","M"),addUnitPriority("month",8),addRegexToken("M",match1to2),addRegexToken("MM",match1to2,match2),addRegexToken("MMM",function(e,t){return t.monthsShortRegex(e)}),addRegexToken("MMMM",function(e,t){return t.monthsRegex(e)}),addParseToken(["M","MM"],function(e,t){t[MONTH]=toInt(e)-1}),addParseToken(["MMM","MMMM"],function(e,t,a,n){var o=a._locale.monthsParse(e,n,a._strict);null!=o?t[MONTH]=o:getParsingFlags(a).invalidMonth=e});var MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function localeMonths(e,t){return e?isArray(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(t)?"format":"standalone"][e.month()]:isArray(this._months)?this._months:this._months.standalone}var defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function localeMonthsShort(e,t){return e?isArray(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(t)?"format":"standalone"][e.month()]:isArray(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function handleStrictParse(e,t,a){var n,o,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=createUTC([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return a?"MMM"===t?-1!==(o=indexOf.call(this._shortMonthsParse,s))?o:null:-1!==(o=indexOf.call(this._longMonthsParse,s))?o:null:"MMM"===t?-1!==(o=indexOf.call(this._shortMonthsParse,s))?o:-1!==(o=indexOf.call(this._longMonthsParse,s))?o:null:-1!==(o=indexOf.call(this._longMonthsParse,s))?o:-1!==(o=indexOf.call(this._shortMonthsParse,s))?o:null}function localeMonthsParse(e,t,a){var n,o,r;if(this._monthsParseExact)return handleStrictParse.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(o=createUTC([2e3,n]),a&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),a||this._monthsParse[n]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),a&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(a&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!a&&this._monthsParse[n].test(e))return n}}function setMonth(e,t){var a;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=toInt(t);else if(!isNumber(t=e.localeData().monthsParse(t)))return e;return a=Math.min(e.date(),daysInMonth(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a),e}function getSetMonth(e){return null!=e?(setMonth(this,e),hooks.updateOffset(this,!0),this):get(this,"Month")}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}var defaultMonthsShortRegex=matchWord;function monthsShortRegex(e){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}var defaultMonthsRegex=matchWord;function monthsRegex(e){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),e?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function computeMonthsParse(){function e(e,t){return t.length-e.length}var t,a,n=[],o=[],r=[];for(t=0;t<12;t++)a=createUTC([2e3,t]),n.push(this.monthsShort(a,"")),o.push(this.months(a,"")),r.push(this.months(a,"")),r.push(this.monthsShort(a,""));for(n.sort(e),o.sort(e),r.sort(e),t=0;t<12;t++)n[t]=regexEscape(n[t]),o[t]=regexEscape(o[t]);for(t=0;t<24;t++)r[t]=regexEscape(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function createDate(e,t,a,n,o,r,s){var i=new Date(e,t,a,n,o,r,s);return e<100&&e>=0&&isFinite(i.getFullYear())&&i.setFullYear(e),i}function createUTCDate(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function firstWeekOffset(e,t,a){var n=7+t-a;return-(7+createUTCDate(e,0,n).getUTCDay()-t)%7+n-1}function dayOfYearFromWeeks(e,t,a,n,o){var r,s,i=1+7*(t-1)+(7+a-n)%7+firstWeekOffset(e,n,o);return i<=0?s=daysInYear(r=e-1)+i:i>daysInYear(e)?(r=e+1,s=i-daysInYear(e)):(r=e,s=i),{year:r,dayOfYear:s}}function weekOfYear(e,t,a){var n,o,r=firstWeekOffset(e.year(),t,a),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?n=s+weeksInYear(o=e.year()-1,t,a):s>weeksInYear(e.year(),t,a)?(n=s-weeksInYear(e.year(),t,a),o=e.year()+1):(o=e.year(),n=s),{week:n,year:o}}function weeksInYear(e,t,a){var n=firstWeekOffset(e,t,a),o=firstWeekOffset(e+1,t,a);return(daysInYear(e)-n+o)/7}function localeWeek(e){return weekOfYear(e,this._week.dow,this._week.doy).week}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addUnitAlias("week","w"),addUnitAlias("isoWeek","W"),addUnitPriority("week",5),addUnitPriority("isoWeek",5),addRegexToken("w",match1to2),addRegexToken("ww",match1to2,match2),addRegexToken("W",match1to2),addRegexToken("WW",match1to2,match2),addWeekParseToken(["w","ww","W","WW"],function(e,t,a,n){t[n.substr(0,1)]=toInt(e)});var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function getSetISOWeek(e){var t=weekOfYear(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function parseWeekday(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function parseIsoWeekday(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),addFormatToken("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),addFormatToken("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addUnitAlias("day","d"),addUnitAlias("weekday","e"),addUnitAlias("isoWeekday","E"),addUnitPriority("day",11),addUnitPriority("weekday",11),addUnitPriority("isoWeekday",11),addRegexToken("d",match1to2),addRegexToken("e",match1to2),addRegexToken("E",match1to2),addRegexToken("dd",function(e,t){return t.weekdaysMinRegex(e)}),addRegexToken("ddd",function(e,t){return t.weekdaysShortRegex(e)}),addRegexToken("dddd",function(e,t){return t.weekdaysRegex(e)}),addWeekParseToken(["dd","ddd","dddd"],function(e,t,a,n){var o=a._locale.weekdaysParse(e,n,a._strict);null!=o?t.d=o:getParsingFlags(a).invalidWeekday=e}),addWeekParseToken(["d","e","E"],function(e,t,a,n){t[n]=toInt(e)});var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function localeWeekdays(e,t){return e?isArray(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:isArray(this._weekdays)?this._weekdays:this._weekdays.standalone}var defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function localeWeekdaysShort(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}var defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function localeWeekdaysMin(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function handleStrictParse$1(e,t,a){var n,o,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=createUTC([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return a?"dddd"===t?-1!==(o=indexOf.call(this._weekdaysParse,s))?o:null:"ddd"===t?-1!==(o=indexOf.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=indexOf.call(this._minWeekdaysParse,s))?o:null:"dddd"===t?-1!==(o=indexOf.call(this._weekdaysParse,s))?o:-1!==(o=indexOf.call(this._shortWeekdaysParse,s))?o:-1!==(o=indexOf.call(this._minWeekdaysParse,s))?o:null:"ddd"===t?-1!==(o=indexOf.call(this._shortWeekdaysParse,s))?o:-1!==(o=indexOf.call(this._weekdaysParse,s))?o:-1!==(o=indexOf.call(this._minWeekdaysParse,s))?o:null:-1!==(o=indexOf.call(this._minWeekdaysParse,s))?o:-1!==(o=indexOf.call(this._weekdaysParse,s))?o:-1!==(o=indexOf.call(this._shortWeekdaysParse,s))?o:null}function localeWeekdaysParse(e,t,a){var n,o,r;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=createUTC([2e3,1]).day(n),a&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),a&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(a&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(a&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!a&&this._weekdaysParse[n].test(e))return n}}function getSetDayOfWeek(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=parseWeekday(e,this.localeData()),this.add(e-t,"d")):t}function getSetLocaleDayOfWeek(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function getSetISODayOfWeek(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=parseIsoWeekday(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}var defaultWeekdaysRegex=matchWord;function weekdaysRegex(e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}var defaultWeekdaysShortRegex=matchWord;function weekdaysShortRegex(e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var defaultWeekdaysMinRegex=matchWord;function weekdaysMinRegex(e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function e(e,t){return t.length-e.length}var t,a,n,o,r,s=[],i=[],d=[],l=[];for(t=0;t<7;t++)a=createUTC([2e3,1]).day(t),n=this.weekdaysMin(a,""),o=this.weekdaysShort(a,""),r=this.weekdays(a,""),s.push(n),i.push(o),d.push(r),l.push(n),l.push(o),l.push(r);for(s.sort(e),i.sort(e),d.sort(e),l.sort(e),t=0;t<7;t++)i[t]=regexEscape(i[t]),d[t]=regexEscape(d[t]),l[t]=regexEscape(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}function meridiem(e,t){addFormatToken(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function matchMeridiem(e,t){return t._meridiemParse}function localeIsPM(e){return"p"===(e+"").toLowerCase().charAt(0)}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,kFormat),addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)}),addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}),addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)}),addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}),meridiem("a",!0),meridiem("A",!1),addUnitAlias("hour","h"),addUnitPriority("hour",13),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",match1to2),addRegexToken("h",match1to2),addRegexToken("k",match1to2),addRegexToken("HH",match1to2,match2),addRegexToken("hh",match1to2,match2),addRegexToken("kk",match1to2,match2),addRegexToken("hmm",match3to4),addRegexToken("hmmss",match5to6),addRegexToken("Hmm",match3to4),addRegexToken("Hmmss",match5to6),addParseToken(["H","HH"],HOUR),addParseToken(["k","kk"],function(e,t,a){var n=toInt(e);t[HOUR]=24===n?0:n}),addParseToken(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),addParseToken(["h","hh"],function(e,t,a){t[HOUR]=toInt(e),getParsingFlags(a).bigHour=!0}),addParseToken("hmm",function(e,t,a){var n=e.length-2;t[HOUR]=toInt(e.substr(0,n)),t[MINUTE]=toInt(e.substr(n)),getParsingFlags(a).bigHour=!0}),addParseToken("hmmss",function(e,t,a){var n=e.length-4,o=e.length-2;t[HOUR]=toInt(e.substr(0,n)),t[MINUTE]=toInt(e.substr(n,2)),t[SECOND]=toInt(e.substr(o)),getParsingFlags(a).bigHour=!0}),addParseToken("Hmm",function(e,t,a){var n=e.length-2;t[HOUR]=toInt(e.substr(0,n)),t[MINUTE]=toInt(e.substr(n))}),addParseToken("Hmmss",function(e,t,a){var n=e.length-4,o=e.length-2;t[HOUR]=toInt(e.substr(0,n)),t[MINUTE]=toInt(e.substr(n,2)),t[SECOND]=toInt(e.substr(o))});var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i;function localeMeridiem(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}var globalLocale,getSetHour=makeGetSet("Hours",!0),baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={};function normalizeLocale(e){return e?e.toLowerCase().replace("_","-"):e}function chooseLocale(e){for(var t,a,n,o,r=0;r<e.length;){for(t=(o=normalizeLocale(e[r]).split("-")).length,a=(a=normalizeLocale(e[r+1]))?a.split("-"):null;t>0;){if(n=loadLocale(o.slice(0,t).join("-")))return n;if(a&&a.length>=t&&compareArrays(o,a,!0)>=t-1)break;t--}r++}return globalLocale}function loadLocale(e){var t=null;if(!locales[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=globalLocale._abbr,require("./locale/"+e),getSetGlobalLocale(t)}catch(e){}return locales[e]}function getSetGlobalLocale(e,t){var a;return e&&((a=isUndefined(t)?getLocale(e):defineLocale(e,t))?globalLocale=a:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(e,t){if(null!==t){var a,n=baseConfig;if(t.abbr=e,null!=locales[e])deprecateSimple("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."),n=locales[e]._config;else if(null!=t.parentLocale)if(null!=locales[t.parentLocale])n=locales[t.parentLocale]._config;else{if(null==(a=loadLocale(t.parentLocale)))return localeFamilies[t.parentLocale]||(localeFamilies[t.parentLocale]=[]),localeFamilies[t.parentLocale].push({name:e,config:t}),null;n=a._config}return locales[e]=new Locale(mergeConfigs(n,t)),localeFamilies[e]&&localeFamilies[e].forEach(function(e){defineLocale(e.name,e.config)}),getSetGlobalLocale(e),locales[e]}return delete locales[e],null}function updateLocale(e,t){if(null!=t){var a,n,o=baseConfig;null!=(n=loadLocale(e))&&(o=n._config),(a=new Locale(t=mergeConfigs(o,t))).parentLocale=locales[e],locales[e]=a,getSetGlobalLocale(e)}else null!=locales[e]&&(null!=locales[e].parentLocale?locales[e]=locales[e].parentLocale:null!=locales[e]&&delete locales[e]);return locales[e]}function getLocale(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return globalLocale;if(!isArray(e)){if(t=loadLocale(e))return t;e=[e]}return chooseLocale(e)}function listLocales(){return keys(locales)}function checkOverflow(e){var t,a=e._a;return a&&-2===getParsingFlags(e).overflow&&(t=a[MONTH]<0||a[MONTH]>11?MONTH:a[DATE]<1||a[DATE]>daysInMonth(a[YEAR],a[MONTH])?DATE:a[HOUR]<0||a[HOUR]>24||24===a[HOUR]&&(0!==a[MINUTE]||0!==a[SECOND]||0!==a[MILLISECOND])?HOUR:a[MINUTE]<0||a[MINUTE]>59?MINUTE:a[SECOND]<0||a[SECOND]>59?SECOND:a[MILLISECOND]<0||a[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(e)._overflowDayOfYear&&(t<YEAR||t>DATE)&&(t=DATE),getParsingFlags(e)._overflowWeeks&&-1===t&&(t=WEEK),getParsingFlags(e)._overflowWeekday&&-1===t&&(t=WEEKDAY),getParsingFlags(e).overflow=t),e}function defaults(e,t,a){return null!=e?e:null!=t?t:a}function currentDateArray(e){var t=new Date(hooks.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function configFromArray(e){var t,a,n,o,r,s=[];if(!e._d){for(n=currentDateArray(e),e._w&&null==e._a[DATE]&&null==e._a[MONTH]&&dayOfYearFromWeekInfo(e),null!=e._dayOfYear&&(r=defaults(e._a[YEAR],n[YEAR]),(e._dayOfYear>daysInYear(r)||0===e._dayOfYear)&&(getParsingFlags(e)._overflowDayOfYear=!0),a=createUTCDate(r,0,e._dayOfYear),e._a[MONTH]=a.getUTCMonth(),e._a[DATE]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[HOUR]&&0===e._a[MINUTE]&&0===e._a[SECOND]&&0===e._a[MILLISECOND]&&(e._nextDay=!0,e._a[HOUR]=0),e._d=(e._useUTC?createUTCDate:createDate).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[HOUR]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(getParsingFlags(e).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(e){var t,a,n,o,r,s,i,d;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,s=4,a=defaults(t.GG,e._a[YEAR],weekOfYear(createLocal(),1,4).year),n=defaults(t.W,1),((o=defaults(t.E,1))<1||o>7)&&(d=!0);else{r=e._locale._week.dow,s=e._locale._week.doy;var l=weekOfYear(createLocal(),r,s);a=defaults(t.gg,e._a[YEAR],l.year),n=defaults(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(d=!0):null!=t.e?(o=t.e+r,(t.e<0||t.e>6)&&(d=!0)):o=r}n<1||n>weeksInYear(a,r,s)?getParsingFlags(e)._overflowWeeks=!0:null!=d?getParsingFlags(e)._overflowWeekday=!0:(i=dayOfYearFromWeeks(a,n,o,r,s),e._a[YEAR]=i.year,e._dayOfYear=i.dayOfYear)}var extendedIsoRegex=/^\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)?)?$/,basicIsoRegex=/^\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)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["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}/]],isoTimes=[["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/]],aspNetJsonRegex=/^\/?Date\((\-?\d+)/i;function configFromISO(e){var t,a,n,o,r,s,i=e._i,d=extendedIsoRegex.exec(i)||basicIsoRegex.exec(i);if(d){for(getParsingFlags(e).iso=!0,t=0,a=isoDates.length;t<a;t++)if(isoDates[t][1].exec(d[1])){o=isoDates[t][0],n=!1!==isoDates[t][2];break}if(null==o)return void(e._isValid=!1);if(d[3]){for(t=0,a=isoTimes.length;t<a;t++)if(isoTimes[t][1].exec(d[3])){r=(d[2]||" ")+isoTimes[t][0];break}if(null==r)return void(e._isValid=!1)}if(!n&&null!=r)return void(e._isValid=!1);if(d[4]){if(!tzRegex.exec(d[4]))return void(e._isValid=!1);s="Z"}e._f=o+(r||"")+(s||""),configFromStringAndFormat(e)}else e._isValid=!1}var rfc2822=/^(?:(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}))$/;function extractFromRFC2822Strings(e,t,a,n,o,r){var s=[untruncateYear(e),defaultLocaleMonthsShort.indexOf(t),parseInt(a,10),parseInt(n,10),parseInt(o,10)];return r&&s.push(parseInt(r,10)),s}function untruncateYear(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function preprocessRFC2822(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function checkWeekday(e,t,a){return!e||defaultLocaleWeekdaysShort.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(getParsingFlags(a).weekdayMismatch=!0,a._isValid=!1,!1)}var obsOffsets={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function calculateOffset(e,t,a){if(e)return obsOffsets[e];if(t)return 0;var n=parseInt(a,10),o=n%100;return(n-o)/100*60+o}function configFromRFC2822(e){var t=rfc2822.exec(preprocessRFC2822(e._i));if(t){var a=extractFromRFC2822Strings(t[4],t[3],t[2],t[5],t[6],t[7]);if(!checkWeekday(t[1],a,e))return;e._a=a,e._tzm=calculateOffset(t[8],t[9],t[10]),e._d=createUTCDate.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),getParsingFlags(e).rfc2822=!0}else e._isValid=!1}function configFromString(e){var t=aspNetJsonRegex.exec(e._i);null===t?(configFromISO(e),!1===e._isValid&&(delete e._isValid,configFromRFC2822(e),!1===e._isValid&&(delete e._isValid,hooks.createFromInputFallback(e)))):e._d=new Date(+t[1])}function configFromStringAndFormat(e){if(e._f!==hooks.ISO_8601)if(e._f!==hooks.RFC_2822){e._a=[],getParsingFlags(e).empty=!0;var t,a,n,o,r,s=""+e._i,i=s.length,d=0;for(n=expandFormat(e._f,e._locale).match(formattingTokens)||[],t=0;t<n.length;t++)(a=(s.match(getParseRegexForToken(o=n[t],e))||[])[0])&&((r=s.substr(0,s.indexOf(a))).length>0&&getParsingFlags(e).unusedInput.push(r),s=s.slice(s.indexOf(a)+a.length),d+=a.length),formatTokenFunctions[o]?(a?getParsingFlags(e).empty=!1:getParsingFlags(e).unusedTokens.push(o),addTimeToArrayFromToken(o,a,e)):e._strict&&!a&&getParsingFlags(e).unusedTokens.push(o);getParsingFlags(e).charsLeftOver=i-d,s.length>0&&getParsingFlags(e).unusedInput.push(s),e._a[HOUR]<=12&&!0===getParsingFlags(e).bigHour&&e._a[HOUR]>0&&(getParsingFlags(e).bigHour=void 0),getParsingFlags(e).parsedDateParts=e._a.slice(0),getParsingFlags(e).meridiem=e._meridiem,e._a[HOUR]=meridiemFixWrap(e._locale,e._a[HOUR],e._meridiem),configFromArray(e),checkOverflow(e)}else configFromRFC2822(e);else configFromISO(e)}function meridiemFixWrap(e,t,a){var n;return null==a?t:null!=e.meridiemHour?e.meridiemHour(t,a):null!=e.isPM?((n=e.isPM(a))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function configFromStringAndArray(e){var t,a,n,o,r;if(0===e._f.length)return getParsingFlags(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)r=0,t=copyConfig({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],configFromStringAndFormat(t),isValid(t)&&(r+=getParsingFlags(t).charsLeftOver,r+=10*getParsingFlags(t).unusedTokens.length,getParsingFlags(t).score=r,(null==n||r<n)&&(n=r,a=t));extend(e,a||t)}function configFromObject(e){if(!e._d){var t=normalizeObjectUnits(e._i);e._a=map([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),configFromArray(e)}}function createFromConfig(e){var t=new Moment(checkOverflow(prepareConfig(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function prepareConfig(e){var t=e._i,a=e._f;return e._locale=e._locale||getLocale(e._l),null===t||void 0===a&&""===t?createInvalid({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),isMoment(t)?new Moment(checkOverflow(t)):(isDate(t)?e._d=t:isArray(a)?configFromStringAndArray(e):a?configFromStringAndFormat(e):configFromInput(e),isValid(e)||(e._d=null),e))}function configFromInput(e){var t=e._i;isUndefined(t)?e._d=new Date(hooks.now()):isDate(t)?e._d=new Date(t.valueOf()):"string"==typeof t?configFromString(e):isArray(t)?(e._a=map(t.slice(0),function(e){return parseInt(e,10)}),configFromArray(e)):isObject(t)?configFromObject(e):isNumber(t)?e._d=new Date(t):hooks.createFromInputFallback(e)}function createLocalOrUTC(e,t,a,n,o){var r={};return!0!==a&&!1!==a||(n=a,a=void 0),(isObject(e)&&isObjectEmpty(e)||isArray(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=o,r._l=a,r._i=e,r._f=t,r._strict=n,createFromConfig(r)}function createLocal(e,t,a,n){return createLocalOrUTC(e,t,a,n,!1)}hooks.createFromInputFallback=deprecate("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),hooks.ISO_8601=function(){},hooks.RFC_2822=function(){};var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=createLocal.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:createInvalid()}),prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=createLocal.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:createInvalid()});function pickBy(e,t){var a,n;if(1===t.length&&isArray(t[0])&&(t=t[0]),!t.length)return createLocal();for(a=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](a)||(a=t[n]);return a}function min(){return pickBy("isBefore",[].slice.call(arguments,0))}function max(){return pickBy("isAfter",[].slice.call(arguments,0))}var now=function(){return Date.now?Date.now():+new Date},ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];function isDurationValid(e){for(var t in e)if(-1===indexOf.call(ordering,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var a=!1,n=0;n<ordering.length;++n)if(e[ordering[n]]){if(a)return!1;parseFloat(e[ordering[n]])!==toInt(e[ordering[n]])&&(a=!0)}return!0}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(e){var t=normalizeObjectUnits(e),a=t.year||0,n=t.quarter||0,o=t.month||0,r=t.week||t.isoWeek||0,s=t.day||0,i=t.hour||0,d=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=isDurationValid(t),this._milliseconds=+c+1e3*l+6e4*d+1e3*i*60*60,this._days=+s+7*r,this._months=+o+3*n+12*a,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(e){return e instanceof Duration}function absRound(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function offset(e,t){addFormatToken(e,0,0,function(){var e=this.utcOffset(),a="+";return e<0&&(e=-e,a="-"),a+zeroFill(~~(e/60),2)+t+zeroFill(~~e%60,2)})}offset("Z",":"),offset("ZZ",""),addRegexToken("Z",matchShortOffset),addRegexToken("ZZ",matchShortOffset),addParseToken(["Z","ZZ"],function(e,t,a){a._useUTC=!0,a._tzm=offsetFromString(matchShortOffset,e)});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(e,t){var a=(t||"").match(e);if(null===a)return null;var n=((a[a.length-1]||[])+"").match(chunkOffset)||["-",0,0],o=60*n[1]+toInt(n[2]);return 0===o?0:"+"===n[0]?o:-o}function cloneWithOffset(e,t){var a,n;return t._isUTC?(a=t.clone(),n=(isMoment(e)||isDate(e)?e.valueOf():createLocal(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+n),hooks.updateOffset(a,!1),a):createLocal(e).local()}function getDateOffset(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function getSetOffset(e,t,a){var n,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=offsetFromString(matchShortOffset,e)))return this}else Math.abs(e)<16&&!a&&(e*=60);return!this._isUTC&&t&&(n=getDateOffset(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==e&&(!t||this._changeInProgress?addSubtract(this,createDuration(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:getDateOffset(this)}function getSetZone(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function setOffsetToUTC(e){return this.utcOffset(0,e)}function setOffsetToLocal(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(getDateOffset(this),"m")),this}function setOffsetToParsedOffset(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=offsetFromString(matchOffset,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function hasAlignedHourOffset(e){return!!this.isValid()&&(e=e?createLocal(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var e={};if(copyConfig(e,this),(e=prepareConfig(e))._a){var t=e._isUTC?createUTC(e._a):createLocal(e._a);this._isDSTShifted=this.isValid()&&compareArrays(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function isLocal(){return!!this.isValid()&&!this._isUTC}function isUtcOffset(){return!!this.isValid()&&this._isUTC}function isUtc(){return!!this.isValid()&&this._isUTC&&0===this._offset}hooks.updateOffset=function(){};var aspNetRegex=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(e,t){var a,n,o,r=e,s=null;return isDuration(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:isNumber(e)?(r={},t?r[t]=e:r.milliseconds=e):(s=aspNetRegex.exec(e))?(a="-"===s[1]?-1:1,r={y:0,d:toInt(s[DATE])*a,h:toInt(s[HOUR])*a,m:toInt(s[MINUTE])*a,s:toInt(s[SECOND])*a,ms:toInt(absRound(1e3*s[MILLISECOND]))*a}):(s=isoRegex.exec(e))?r={y:parseIso(s[2],a="-"===s[1]?-1:1),M:parseIso(s[3],a),w:parseIso(s[4],a),d:parseIso(s[5],a),h:parseIso(s[6],a),m:parseIso(s[7],a),s:parseIso(s[8],a)}:null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=momentsDifference(createLocal(r.from),createLocal(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),n=new Duration(r),isDuration(e)&&hasOwnProp(e,"_locale")&&(n._locale=e._locale),n}function parseIso(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function positiveMomentsDifference(e,t){var a={milliseconds:0,months:0};return a.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function momentsDifference(e,t){var a;return e.isValid()&&t.isValid()?(t=cloneWithOffset(t,e),e.isBefore(t)?a=positiveMomentsDifference(e,t):((a=positiveMomentsDifference(t,e)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function createAdder(e,t){return function(a,n){var o;return null===n||isNaN(+n)||(deprecateSimple(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=a,a=n,n=o),addSubtract(this,createDuration(a="string"==typeof a?+a:a,n),e),this}}function addSubtract(e,t,a,n){var o=t._milliseconds,r=absRound(t._days),s=absRound(t._months);e.isValid()&&(n=null==n||n,s&&setMonth(e,get(e,"Month")+s*a),r&&set$1(e,"Date",get(e,"Date")+r*a),o&&e._d.setTime(e._d.valueOf()+o*a),n&&hooks.updateOffset(e,r||s))}createDuration.fn=Duration.prototype,createDuration.invalid=createInvalid$1;var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function getCalendarFormat(e,t){var a=e.diff(t,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function calendar$1(e,t){var a=e||createLocal(),n=cloneWithOffset(a,this).startOf("day"),o=hooks.calendarFormat(this,n)||"sameElse",r=t&&(isFunction(t[o])?t[o].call(this,a):t[o]);return this.format(r||this.localeData().calendar(o,this,createLocal(a)))}function clone(){return new Moment(this)}function isAfter(e,t){var a=isMoment(e)?e:createLocal(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=normalizeUnits(t)||"millisecond")?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())}function isBefore(e,t){var a=isMoment(e)?e:createLocal(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=normalizeUnits(t)||"millisecond")?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())}function isBetween(e,t,a,n){var o=isMoment(e)?e:createLocal(e),r=isMoment(t)?t:createLocal(t);return!!(this.isValid()&&o.isValid()&&r.isValid())&&("("===(n=n||"()")[0]?this.isAfter(o,a):!this.isBefore(o,a))&&(")"===n[1]?this.isBefore(r,a):!this.isAfter(r,a))}function isSame(e,t){var a,n=isMoment(e)?e:createLocal(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=normalizeUnits(t)||"millisecond")?this.valueOf()===n.valueOf():(a=n.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))}function isSameOrAfter(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function isSameOrBefore(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function diff(e,t,a){var n,o,r;if(!this.isValid())return NaN;if(!(n=cloneWithOffset(e,this)).isValid())return NaN;switch(o=6e4*(n.utcOffset()-this.utcOffset()),t=normalizeUnits(t)){case"year":r=monthDiff(this,n)/12;break;case"month":r=monthDiff(this,n);break;case"quarter":r=monthDiff(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-o)/864e5;break;case"week":r=(this-n-o)/6048e5;break;default:r=this-n}return a?r:absFloor(r)}function monthDiff(e,t){var a=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(a,"months");return-(a+(t-n<0?(t-n)/(n-e.clone().add(a-1,"months")):(t-n)/(e.clone().add(a+1,"months")-n)))||0}function toString(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(e){if(!this.isValid())return null;var t=!0!==e,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?formatMoment(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",formatMoment(a,"Z")):formatMoment(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var a="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(a+n+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')}function format(e){e||(e=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var t=formatMoment(this,e);return this.localeData().postformat(t)}function from(e,t){return this.isValid()&&(isMoment(e)&&e.isValid()||createLocal(e).isValid())?createDuration({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fromNow(e){return this.from(createLocal(),e)}function to(e,t){return this.isValid()&&(isMoment(e)&&e.isValid()||createLocal(e).isValid())?createDuration({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function toNow(e){return this.to(createLocal(),e)}function locale(e){var t;return void 0===e?this._locale._abbr:(null!=(t=getLocale(e))&&(this._locale=t),this)}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function localeData(){return this._locale}function startOf(e){switch(e=normalizeUnits(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function endOf(e){return void 0===(e=normalizeUnits(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function valueOf(){return this._d.valueOf()-6e4*(this._offset||0)}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function toObject(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function addWeekYearFormatToken(e,t){addFormatToken(0,[e,e.length],0,t)}function getSetWeekYear(e){return getSetWeekYearHelper.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(e){return getSetWeekYearHelper.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getWeeksInYear(){var e=this.localeData()._week;return weeksInYear(this.year(),e.dow,e.doy)}function getSetWeekYearHelper(e,t,a,n,o){var r;return null==e?weekOfYear(this,n,o).year:(t>(r=weeksInYear(e,n,o))&&(t=r),setWeekAll.call(this,e,t,a,n,o))}function setWeekAll(e,t,a,n,o){var r=dayOfYearFromWeeks(e,t,a,n,o),s=createUTCDate(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function getSetQuarter(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100}),addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100}),addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addUnitAlias("weekYear","gg"),addUnitAlias("isoWeekYear","GG"),addUnitPriority("weekYear",1),addUnitPriority("isoWeekYear",1),addRegexToken("G",matchSigned),addRegexToken("g",matchSigned),addRegexToken("GG",match1to2,match2),addRegexToken("gg",match1to2,match2),addRegexToken("GGGG",match1to4,match4),addRegexToken("gggg",match1to4,match4),addRegexToken("GGGGG",match1to6,match6),addRegexToken("ggggg",match1to6,match6),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,n){t[n.substr(0,2)]=toInt(e)}),addWeekParseToken(["gg","GG"],function(e,t,a,n){t[n]=hooks.parseTwoDigitYear(e)}),addFormatToken("Q",0,"Qo","quarter"),addUnitAlias("quarter","Q"),addUnitPriority("quarter",7),addRegexToken("Q",match1),addParseToken("Q",function(e,t){t[MONTH]=3*(toInt(e)-1)}),addFormatToken("D",["DD",2],"Do","date"),addUnitAlias("date","D"),addUnitPriority("date",9),addRegexToken("D",match1to2),addRegexToken("DD",match1to2,match2),addRegexToken("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),addParseToken(["D","DD"],DATE),addParseToken("Do",function(e,t){t[DATE]=toInt(e.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);function getSetDayOfYear(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addUnitAlias("dayOfYear","DDD"),addUnitPriority("dayOfYear",4),addRegexToken("DDD",match1to3),addRegexToken("DDDD",match3),addParseToken(["DDD","DDDD"],function(e,t,a){a._dayOfYear=toInt(e)}),addFormatToken("m",["mm",2],0,"minute"),addUnitAlias("minute","m"),addUnitPriority("minute",14),addRegexToken("m",match1to2),addRegexToken("mm",match1to2,match2),addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addUnitAlias("second","s"),addUnitPriority("second",15),addRegexToken("s",match1to2),addRegexToken("ss",match1to2,match2),addParseToken(["s","ss"],SECOND);var token,getSetSecond=makeGetSet("Seconds",!1);for(addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)}),addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,function(){return 10*this.millisecond()}),addFormatToken(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),addFormatToken(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),addFormatToken(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),addFormatToken(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),addFormatToken(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),addUnitAlias("millisecond","ms"),addUnitPriority("millisecond",16),addRegexToken("S",match1to3,match1),addRegexToken("SS",match1to3,match2),addRegexToken("SSS",match1to3,match3),token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(e,t){t[MILLISECOND]=toInt(1e3*("0."+e))}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);var getSetMillisecond=makeGetSet("Milliseconds",!1);function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");var proto=Moment.prototype;function createUnix(e){return createLocal(1e3*e)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(e){return e}proto.add=add,proto.calendar=calendar$1,proto.clone=clone,proto.diff=diff,proto.endOf=endOf,proto.format=format,proto.from=from,proto.fromNow=fromNow,proto.to=to,proto.toNow=toNow,proto.get=stringGet,proto.invalidAt=invalidAt,proto.isAfter=isAfter,proto.isBefore=isBefore,proto.isBetween=isBetween,proto.isSame=isSame,proto.isSameOrAfter=isSameOrAfter,proto.isSameOrBefore=isSameOrBefore,proto.isValid=isValid$2,proto.lang=lang,proto.locale=locale,proto.localeData=localeData,proto.max=prototypeMax,proto.min=prototypeMin,proto.parsingFlags=parsingFlags,proto.set=stringSet,proto.startOf=startOf,proto.subtract=subtract,proto.toArray=toArray,proto.toObject=toObject,proto.toDate=toDate,proto.toISOString=toISOString,proto.inspect=inspect,proto.toJSON=toJSON,proto.toString=toString,proto.unix=unix,proto.valueOf=valueOf,proto.creationData=creationData,proto.year=getSetYear,proto.isLeapYear=getIsLeapYear,proto.weekYear=getSetWeekYear,proto.isoWeekYear=getSetISOWeekYear,proto.quarter=proto.quarters=getSetQuarter,proto.month=getSetMonth,proto.daysInMonth=getDaysInMonth,proto.week=proto.weeks=getSetWeek,proto.isoWeek=proto.isoWeeks=getSetISOWeek,proto.weeksInYear=getWeeksInYear,proto.isoWeeksInYear=getISOWeeksInYear,proto.date=getSetDayOfMonth,proto.day=proto.days=getSetDayOfWeek,proto.weekday=getSetLocaleDayOfWeek,proto.isoWeekday=getSetISODayOfWeek,proto.dayOfYear=getSetDayOfYear,proto.hour=proto.hours=getSetHour,proto.minute=proto.minutes=getSetMinute,proto.second=proto.seconds=getSetSecond,proto.millisecond=proto.milliseconds=getSetMillisecond,proto.utcOffset=getSetOffset,proto.utc=setOffsetToUTC,proto.local=setOffsetToLocal,proto.parseZone=setOffsetToParsedOffset,proto.hasAlignedHourOffset=hasAlignedHourOffset,proto.isDST=isDaylightSavingTime,proto.isLocal=isLocal,proto.isUtcOffset=isUtcOffset,proto.isUtc=isUtc,proto.isUTC=isUtc,proto.zoneAbbr=getZoneAbbr,proto.zoneName=getZoneName,proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth),proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear),proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone),proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);var proto$1=Locale.prototype;function get$1(e,t,a,n){var o=getLocale(),r=createUTC().set(n,t);return o[a](r,e)}function listMonthsImpl(e,t,a){if(isNumber(e)&&(t=e,e=void 0),e=e||"",null!=t)return get$1(e,t,a,"month");var n,o=[];for(n=0;n<12;n++)o[n]=get$1(e,n,a,"month");return o}function listWeekdaysImpl(e,t,a,n){"boolean"==typeof e?(isNumber(t)&&(a=t,t=void 0),t=t||""):(a=t=e,e=!1,isNumber(t)&&(a=t,t=void 0),t=t||"");var o,r=getLocale(),s=e?r._week.dow:0;if(null!=a)return get$1(t,(a+s)%7,n,"day");var i=[];for(o=0;o<7;o++)i[o]=get$1(t,(o+s)%7,n,"day");return i}function listMonths(e,t){return listMonthsImpl(e,t,"months")}function listMonthsShort(e,t){return listMonthsImpl(e,t,"monthsShort")}function listWeekdays(e,t,a){return listWeekdaysImpl(e,t,a,"weekdays")}function listWeekdaysShort(e,t,a){return listWeekdaysImpl(e,t,a,"weekdaysShort")}function listWeekdaysMin(e,t,a){return listWeekdaysImpl(e,t,a,"weekdaysMin")}proto$1.calendar=calendar,proto$1.longDateFormat=longDateFormat,proto$1.invalidDate=invalidDate,proto$1.ordinal=ordinal,proto$1.preparse=preParsePostFormat,proto$1.postformat=preParsePostFormat,proto$1.relativeTime=relativeTime,proto$1.pastFuture=pastFuture,proto$1.set=set,proto$1.months=localeMonths,proto$1.monthsShort=localeMonthsShort,proto$1.monthsParse=localeMonthsParse,proto$1.monthsRegex=monthsRegex,proto$1.monthsShortRegex=monthsShortRegex,proto$1.week=localeWeek,proto$1.firstDayOfYear=localeFirstDayOfYear,proto$1.firstDayOfWeek=localeFirstDayOfWeek,proto$1.weekdays=localeWeekdays,proto$1.weekdaysMin=localeWeekdaysMin,proto$1.weekdaysShort=localeWeekdaysShort,proto$1.weekdaysParse=localeWeekdaysParse,proto$1.weekdaysRegex=weekdaysRegex,proto$1.weekdaysShortRegex=weekdaysShortRegex,proto$1.weekdaysMinRegex=weekdaysMinRegex,proto$1.isPM=localeIsPM,proto$1.meridiem=localeMeridiem,getSetGlobalLocale("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===toInt(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs(){var e=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),e.milliseconds=mathAbs(e.milliseconds),e.seconds=mathAbs(e.seconds),e.minutes=mathAbs(e.minutes),e.hours=mathAbs(e.hours),e.months=mathAbs(e.months),e.years=mathAbs(e.years),this}function addSubtract$1(e,t,a,n){var o=createDuration(t,a);return e._milliseconds+=n*o._milliseconds,e._days+=n*o._days,e._months+=n*o._months,e._bubble()}function add$1(e,t){return addSubtract$1(this,e,t,1)}function subtract$1(e,t){return addSubtract$1(this,e,t,-1)}function absCeil(e){return e<0?Math.floor(e):Math.ceil(e)}function bubble(){var e,t,a,n,o,r=this._milliseconds,s=this._days,i=this._months,d=this._data;return r>=0&&s>=0&&i>=0||r<=0&&s<=0&&i<=0||(r+=864e5*absCeil(monthsToDays(i)+s),s=0,i=0),d.milliseconds=r%1e3,e=absFloor(r/1e3),d.seconds=e%60,t=absFloor(e/60),d.minutes=t%60,a=absFloor(t/60),d.hours=a%24,s+=absFloor(a/24),i+=o=absFloor(daysToMonths(s)),s-=absCeil(monthsToDays(o)),n=absFloor(i/12),i%=12,d.days=s,d.months=i,d.years=n,this}function daysToMonths(e){return 4800*e/146097}function monthsToDays(e){return 146097*e/4800}function as(e){if(!this.isValid())return NaN;var t,a,n=this._milliseconds;if("month"===(e=normalizeUnits(e))||"year"===e)return a=this._months+daysToMonths(t=this._days+n/864e5),"month"===e?a:a/12;switch(t=this._days+Math.round(monthsToDays(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function valueOf$1(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*toInt(this._months/12):NaN}function makeAs(e){return function(){return this.as(e)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asYears=makeAs("y");function clone$1(){return createDuration(this)}function get$2(e){return e=normalizeUnits(e),this.isValid()?this[e+"s"]():NaN}function makeGetter(e){return function(){return this.isValid()?this._data[e]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,M:11};function substituteTimeAgo(e,t,a,n,o){return o.relativeTime(t||1,!!a,e,n)}function relativeTime$1(e,t,a){var n=createDuration(e).abs(),o=round(n.as("s")),r=round(n.as("m")),s=round(n.as("h")),i=round(n.as("d")),d=round(n.as("M")),l=round(n.as("y")),c=o<=thresholds.ss&&["s",o]||o<thresholds.s&&["ss",o]||r<=1&&["m"]||r<thresholds.m&&["mm",r]||s<=1&&["h"]||s<thresholds.h&&["hh",s]||i<=1&&["d"]||i<thresholds.d&&["dd",i]||d<=1&&["M"]||d<thresholds.M&&["MM",d]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=a,substituteTimeAgo.apply(null,c)}function getSetRelativeTimeRounding(e){return void 0===e?round:"function"==typeof e&&(round=e,!0)}function getSetRelativeTimeThreshold(e,t){return void 0!==thresholds[e]&&(void 0===t?thresholds[e]:(thresholds[e]=t,"s"===e&&(thresholds.ss=t-1),!0))}function humanize(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),a=relativeTime$1(this,!e,t);return e&&(a=t.pastFuture(+this,a)),t.postformat(a)}var abs$1=Math.abs;function sign(e){return(e>0)-(e<0)||+e}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var e,t,a=abs$1(this._milliseconds)/1e3,n=abs$1(this._days),o=abs$1(this._months);e=absFloor(a/60),t=absFloor(e/60),a%=60,e%=60;var r=absFloor(o/12),s=o%=12,i=n,d=t,l=e,c=a?a.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var h=u<0?"-":"",f=sign(this._months)!==sign(u)?"-":"",m=sign(this._days)!==sign(u)?"-":"",g=sign(this._milliseconds)!==sign(u)?"-":"";return h+"P"+(r?f+r+"Y":"")+(s?f+s+"M":"")+(i?m+i+"D":"")+(d||l||c?"T":"")+(d?g+d+"H":"")+(l?g+l+"M":"")+(c?g+c+"S":"")}var proto$2=Duration.prototype;proto$2.isValid=isValid$1,proto$2.abs=abs,proto$2.add=add$1,proto$2.subtract=subtract$1,proto$2.as=as,proto$2.asMilliseconds=asMilliseconds,proto$2.asSeconds=asSeconds,proto$2.asMinutes=asMinutes,proto$2.asHours=asHours,proto$2.asDays=asDays,proto$2.asWeeks=asWeeks,proto$2.asMonths=asMonths,proto$2.asYears=asYears,proto$2.valueOf=valueOf$1,proto$2._bubble=bubble,proto$2.clone=clone$1,proto$2.get=get$2,proto$2.milliseconds=milliseconds,proto$2.seconds=seconds,proto$2.minutes=minutes,proto$2.hours=hours,proto$2.days=days,proto$2.weeks=weeks,proto$2.months=months,proto$2.years=years,proto$2.humanize=humanize,proto$2.toISOString=toISOString$1,proto$2.toString=toISOString$1,proto$2.toJSON=toISOString$1,proto$2.locale=locale,proto$2.localeData=localeData,proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),proto$2.lang=lang,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",matchSigned),addRegexToken("X",matchTimestamp),addParseToken("X",function(e,t,a){a._d=new Date(1e3*parseFloat(e,10))}),addParseToken("x",function(e,t,a){a._d=new Date(toInt(e))}),hooks.version="2.23.0",setHookCallback(createLocal),hooks.fn=proto,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=proto,hooks.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"};var CalendarMonthType,WeekDayType,DateHelper=function(){function e(){}return e.getMonthDates=function(t,a){void 0===a&&(a=[]);var n=hooks(t),o=hooks(t).startOf("month"),r=o.day(o.day()?1:-6),s=hooks(t).endOf("month"),i=s.day(s.day()?7:0),d=n.month();return this.getDateRange(r.toDate(),i.toDate()).map(function(t){var n=hooks(t),o=null;if(a&&a.length){var r=a.find(function(a){return e.areDatesEqual(a.date,t)});r&&r.innerHtml&&(o=r.innerHtml)}return{date:t,isCurrentMonth:n.month()===d,text:n.format("D"),isSelected:!1,events:[],footerHtml:o}})},e.getDateRange=function(e,t){var a=[],n=hooks(e).startOf("day"),o=hooks(t).startOf("day");for(a.push(n.clone().toDate());n.add(1,"days").diff(o)<=0;)a.push(n.clone().toDate());return a},e.getDateCount=function(e,t){var a=hooks(e),n=hooks(e).day(7),o=hooks(t).diff(a,"days"),r=n.diff(a,"days");return o<r?o+1:r+1},e.isCarryToNextWeek=function(e,t){var a=hooks(e),n=hooks(e).day(7),o=hooks(t).diff(a,"days");return n.diff(a,"days")<o},e.getNextMonday=function(e){return hooks(e).day(8).toDate()},e.areDatesEqual=function(e,t){return hooks(e).format("DDMMYYYY")===hooks(t).format("DDMMYYYY")},e.isGreaterThenOrEqual=function(e,t){return hooks(e).diff(t)>=0},e.isLessThenOrEqual=function(e,t){return hooks(e).diff(t)<=0},e.getWeekDay=function(e){return hooks(e).weekday()},e}();!function(e){e.January="jan",e.February="feb",e.March="mar",e.April="apr",e.May="may",e.June="jun",e.July="jul",e.August="aug",e.September="sep",e.October="oct",e.November="nov",e.December="dec"}(CalendarMonthType||(CalendarMonthType={})),function(e){e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e[e.Sunday=0]="Sunday"}(WeekDayType||(WeekDayType={}));var EventHelper=function(){function e(){}return e.getDateEvents=function(e,t,a){return void 0===a&&(a=3),t.filter(function(t){return DateHelper.isLessThenOrEqual(t.startDate,e)&&DateHelper.isLessThenOrEqual(e,t.endDate)}).sort(function(e,t){return DateHelper.isLessThenOrEqual(e.startDate,t.startDate)?-1:1}).map(function(t,a){return Object.assign({},t,{offset:17*a+1+"px",ispreviousDayEvent:!DateHelper.areDatesEqual(e,t.startDate),isMonday:DateHelper.getWeekDay(e)===WeekDayType.Monday})}).splice(0,a)},e.getDateExtendedEventsCount=function(e,t,a){return void 0===a&&(a=3),t.filter(function(t){return DateHelper.isLessThenOrEqual(t.startDate,e)&&DateHelper.isLessThenOrEqual(e,t.endDate)}).length-a},e}(),CalendarFull=function(){function e(){this.dateFooters=[],this.events=[],this.holidays=[],this.options={},this.currentMonth=new Date,this.calendarDates=[],this.startCalendarDate=null,this.endCalendarDate=null}return e.prototype.componentWillLoad=function(){this.initCalendarDates()},e.prototype.initCalendarDates=function(){this.calendarDates=DateHelper.getMonthDates(this.currentMonth,this.dateFooters);var e=hooks.weekdays(!0);e.push(e.shift()),this.weekDays=e},e.prototype.initializeOptions=function(e){this.options=Object.assign({allowMultiRangeSelect:!1,weekendDays:[WeekDayType.Saturday,WeekDayType.Sunday],eventTypeLegends:[]},e),console.log(this.options)},e.prototype.optionsChanged=function(e){this.initializeOptions(e)},e.prototype.dateFootersChanged=function(){this.initCalendarDates()},e.prototype.currentMonthChanged=function(e,t){e.getTime()!==t.getTime()&&this.initCalendarDates()},e.prototype.eventsChanged=function(){this.calendarDates=this.calendarDates.map(function(e){return Object.assign(e,{isSelected:!1})})},e.prototype.dateClicked=function(e){var t=this;this.calendarDates.forEach(function(a){DateHelper.areDatesEqual(a.date,e.date)?(a.isSelected=!a.isSelected,t.startCalendarDate=t.endCalendarDate=a,a.isSelected&&(console.log("dateClicked - "+a.date),t.dateSelected.emit({startDate:a.date,endDate:a.date}))):t.options.allowMultiRangeSelect||(a.isSelected=!1,t.startCalendarDate=t.endCalendarDate=null)}),this.calendarDates=this.calendarDates.slice()},e.prototype.eventClicked=function(e,t){e.stopPropagation(),this.eventSelected.emit({event:t})},e.prototype.moreEventsClickedHandler=function(e,t,a){e.stopPropagation(),this.moreEventsClicked.emit({events:a,date:t})},e.prototype.dragStart=function(e,t){this.startCalendarDate=t;var a=document.createElement("span");a.setAttribute("style","position: absolute; display: block; top: 0; left: 0; width: 0; height: 0;"),document.body.appendChild(a),e.dataTransfer.setDragImage(a,0,0)},e.prototype.dragOver=function(e,t){var a=this;this.startCalendarDate&&(this.endCalendarDate&&DateHelper.areDatesEqual(t.date,this.endCalendarDate.date)||(this.endCalendarDate=t,this.calendarDates.forEach(function(e){e.isSelected=!(!DateHelper.isLessThenOrEqual(a.startCalendarDate.date,e.date)||!DateHelper.isLessThenOrEqual(e.date,a.endCalendarDate.date))}),this.calendarDates=this.calendarDates.slice()),e.preventDefault())},e.prototype.dragEnd=function(){var e=this.calendarDates.filter(function(e){return e.isSelected}).sort(function(e,t){return DateHelper.isLessThenOrEqual(e.date,t.date)?-1:1}),t=e.shift(),a=e.pop();t&&a&&(console.log("dragEnd - "+t.date),this.dateSelected.emit({startDate:t.date,endDate:a.date}))},e.prototype.tileStyle=function(e){return"date-tile"+(e.isCurrentMonth?"":" other-month")+(DateHelper.areDatesEqual(e.date,new Date)?" today":"")+(e.isSelected?" selected":"")+(this.options.weekendDays&&this.options.weekendDays.indexOf(DateHelper.getWeekDay(e.date))>=0?" week-end":"")},e.prototype.getEventsLimit=function(){return this.dateFooters&&this.dateFooters.length?3:4},e.prototype.getDateHoliday=function(e){return this.holidays.find(function(t){return DateHelper.areDatesEqual(t.date,e)})},e.prototype.render=function(){var e=this;return h("div",null,h("div",{class:"header"},this.weekDays.map(function(e){return h("div",{class:"date-header-tile"},e)})),h("div",{class:"dates"},this.calendarDates.map(function(t){var a=EventHelper.getDateEvents(t.date,e.events,e.getEventsLimit()),n=e.getDateHoliday(t.date);return h("div",{draggable:!0,class:e.tileStyle(t)+(n?" is-holiday":""),onClick:function(){return e.dateClicked(t)},onDragOver:function(a){return e.dragOver(a,t)},onDragStart:function(a){return e.dragStart(a,t)},onDragEnd:function(){return e.dragEnd()}},EventHelper.getDateExtendedEventsCount(t.date,e.events,e.getEventsLimit())>=1?h("div",{onClick:function(n){return e.moreEventsClickedHandler(n,t.date,a)},class:"more-bar"+(t.footerHtml?" hasFooter":"")},h("a",{href:"#"},"+",EventHelper.getDateExtendedEventsCount(t.date,e.events)," more")):"",t.footerHtml?h("div",{class:"footer",innerHTML:t.footerHtml}):"",h("div",{class:"tile-content"},h("div",{class:"tile-text"},t.text),n?h("div",{class:"tile-holiday"},n.label):"",a.map(function(a){if(a.ispreviousDayEvent&&!a.isMonday)return"";var n=DateHelper.getDateCount(t.date,a.endDate),o=e.options.eventTypeLegends.find(function(e){return e.type===a.type});return h("div",{class:"event-bar",onClick:function(t){e.eventClicked(t,a)},style:{width:"calc(100%/7*"+n+" - "+n+"*2px - 25px)",borderLeftColor:o?o.color:"",backgroundColor:o?o.bgColor:"",marginTop:a.offset}},h("span",{class:"label"},a.label),h("span",{class:"desc"},a.description))})))})))},Object.defineProperty(e,"is",{get:function(){return"te-calendar-full"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{calendarDates:{state:!0},currentMonth:{type:"Any",attr:"current-month",watchCallbacks:["currentMonthChanged"]},dateFooters:{type:"Any",attr:"date-footers",watchCallbacks:["dateFootersChanged"]},endCalendarDate:{state:!0},events:{type:"Any",attr:"events",watchCallbacks:["eventsChanged"]},holidays:{type:"Any",attr:"holidays"},options:{type:"Any",attr:"options",mutable:!0,watchCallbacks:["optionsChanged"]},startCalendarDate:{state:!0}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"events",{get:function(){return[{name:"dateSelected",method:"dateSelected",bubbles:!0,cancelable:!0,composed:!0},{name:"eventSelected",method:"eventSelected",bubbles:!0,cancelable:!0,composed:!0},{name:"moreEventsClicked",method:"moreEventsClicked",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"body{font-family:Arial;font-size:14px}.dates{-ms-flex-flow:row wrap;flex-flow:row wrap}.dates,.header{display:-ms-flexbox;display:flex}.header{text-align:center}.date-header-tile{-ms-flex:1 1 calc(100%/7 - 2px);flex:1 1 calc(100%/7 - 2px);border:1px solid #ddd;padding:5px;font-size:.7em;text-transform:uppercase;font-weight:700}.date-tile>.tile-content{margin:5px;font-size:.8em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.date-tile>.tile-content>.tile-text{display:inline-block}.date-tile>.tile-content>.tile-holiday{display:inline;font-weight:700;margin-left:5px}.date-tile.is-holiday{background-color:#98fb98}.date-tile{-ms-flex:1 1 calc(100%/7 - 2px);flex:1 1 calc(100%/7 - 2px);height:100px;border:1px solid #ddd;overflow:hidden}.date-tile>.footer{background-color:#eee;font-size:.8em;padding:2px;position:absolute;width:calc(100%/7 - 8px);margin-top:84px;height:12px;color:#000}.date-tile.week-end{background-color:#f8f8f8}.date-tile.today{background-color:#e6f2ff;color:#005dba}.date-tile.selected{background-color:#005dba;color:#fff}.date-tile.other-month{color:#aaa}.event-bar{background-color:#eee;padding:1px 3px;white-space:nowrap;position:absolute;margin-top:1px;border:1px solid #dadada;border-left:5px solid grey;overflow:hidden;cursor:pointer;text-overflow:ellipsis}.event-bar>.label{font-weight:700;margin-right:5px}.event-bar>.desc{font-size:.9em}.more-bar{font-size:.8em;padding:2px;position:absolute;width:calc(100%/7 - 8px);margin-top:84px;height:12px}.more-bar>a:active,.more-bar>a:hover,.more-bar>a:visited{color:#00f}.more-bar>a{text-decoration:none;font-weight:700;color:#00f}.more-bar.hasFooter{margin-top:68px}"},enumerable:!0,configurable:!0}),e}();export{CalendarFull as TeCalendarFull};