Socket
Socket
Sign inDemoInstall

cronstrue

Package Overview
Dependencies
0
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.14.0 to 2.15.0

74

dist/cronstrue.js

@@ -341,3 +341,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

}, function (s) {
return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Seconds(), s);
return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Seconds(s), s);
}, function (s) {

@@ -349,4 +349,4 @@ return _this.i18n.secondsX0ThroughX1PastTheMinute();

: parseInt(s) < 20
? _this.i18n.atX0SecondsPastTheMinute()
: _this.i18n.atX0SecondsPastTheMinuteGt20() || _this.i18n.atX0SecondsPastTheMinute();
? _this.i18n.atX0SecondsPastTheMinute(s)
: _this.i18n.atX0SecondsPastTheMinuteGt20() || _this.i18n.atX0SecondsPastTheMinute(s);
});

@@ -362,3 +362,3 @@ return description;

}, function (s) {
return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Minutes(), s);
return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Minutes(s), s);
}, function (s) {

@@ -371,7 +371,7 @@ return _this.i18n.minutesX0ThroughX1PastTheHour();

: parseInt(s) < 20
? _this.i18n.atX0MinutesPastTheHour()
: _this.i18n.atX0MinutesPastTheHourGt20() || _this.i18n.atX0MinutesPastTheHour();
? _this.i18n.atX0MinutesPastTheHour(s)
: _this.i18n.atX0MinutesPastTheHourGt20() || _this.i18n.atX0MinutesPastTheHour(s);
}
catch (e) {
return _this.i18n.atX0MinutesPastTheHour();
return _this.i18n.atX0MinutesPastTheHour(s);
}

@@ -387,3 +387,3 @@ });

}, function (s) {
return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Hours(), s);
return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Hours(s), s);
}, function (s) {

@@ -398,3 +398,6 @@ return _this.i18n.betweenX0AndX1();

var lastAtTheHourMatchIndex = atTheHourMatches[atTheHourMatches.length - 1].index;
description = description.substring(0, lastAtTheHourMatchIndex) + ":59" + description.substring(lastAtTheHourMatchIndex + 3);
description =
description.substring(0, lastAtTheHourMatchIndex) +
":59" +
description.substring(lastAtTheHourMatchIndex + 3);
}

@@ -412,3 +415,3 @@ }

else {
description = this.getSegmentDescription(this.expressionParts[5], this.i18n.commaEveryDay(), function (s) {
description = this.getSegmentDescription(this.expressionParts[5], this.i18n.commaEveryDay(), function (s, form) {
var exp = s;

@@ -421,3 +424,5 @@ if (s.indexOf("#") > -1) {

}
return daysOfWeekNames[parseInt(exp)];
return _this.i18n.daysOfTheWeekInCase
? _this.i18n.daysOfTheWeekInCase(form)[parseInt(exp)]
: daysOfWeekNames[parseInt(exp)];
}, function (s) {

@@ -428,7 +433,8 @@ if (parseInt(s) == 1) {

else {
return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0DaysOfTheWeek(), s);
return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0DaysOfTheWeek(s), s);
}
}, function (s) {
var beginFrom = s.substring(0, s.indexOf("-"));
var domSpecified = _this.expressionParts[3] != "*";
return domSpecified ? _this.i18n.commaAndX0ThroughX1() : _this.i18n.commaX0ThroughX1();
return domSpecified ? _this.i18n.commaAndX0ThroughX1(beginFrom) : _this.i18n.commaX0ThroughX1(beginFrom);
}, function (s) {

@@ -438,28 +444,32 @@ var format = null;

var dayOfWeekOfMonthNumber = s.substring(s.indexOf("#") + 1);
var dayOfWeekNumber = s.substring(0, s.indexOf("#"));
var dayOfWeekOfMonthDescription = null;
switch (dayOfWeekOfMonthNumber) {
case "1":
dayOfWeekOfMonthDescription = _this.i18n.first();
dayOfWeekOfMonthDescription = _this.i18n.first(dayOfWeekNumber);
break;
case "2":
dayOfWeekOfMonthDescription = _this.i18n.second();
dayOfWeekOfMonthDescription = _this.i18n.second(dayOfWeekNumber);
break;
case "3":
dayOfWeekOfMonthDescription = _this.i18n.third();
dayOfWeekOfMonthDescription = _this.i18n.third(dayOfWeekNumber);
break;
case "4":
dayOfWeekOfMonthDescription = _this.i18n.fourth();
dayOfWeekOfMonthDescription = _this.i18n.fourth(dayOfWeekNumber);
break;
case "5":
dayOfWeekOfMonthDescription = _this.i18n.fifth();
dayOfWeekOfMonthDescription = _this.i18n.fifth(dayOfWeekNumber);
break;
}
format = _this.i18n.commaOnThe() + dayOfWeekOfMonthDescription + _this.i18n.spaceX0OfTheMonth();
format =
_this.i18n.commaOnThe(dayOfWeekOfMonthNumber) +
dayOfWeekOfMonthDescription +
_this.i18n.spaceX0OfTheMonth();
}
else if (s.indexOf("L") > -1) {
format = _this.i18n.commaOnTheLastX0OfTheMonth();
format = _this.i18n.commaOnTheLastX0OfTheMonth(s.replace("L", ""));
}
else {
var domSpecified = _this.expressionParts[3] != "*";
format = domSpecified ? _this.i18n.commaAndOnX0() : _this.i18n.commaOnlyOnX0();
format = domSpecified ? _this.i18n.commaAndOnX0() : _this.i18n.commaOnlyOnX0(s);
}

@@ -474,4 +484,6 @@ return format;

var monthNames = this.i18n.monthsOfTheYear();
var description = this.getSegmentDescription(this.expressionParts[4], "", function (s) {
return monthNames[parseInt(s) - 1];
var description = this.getSegmentDescription(this.expressionParts[4], "", function (s, form) {
return form && _this.i18n.monthsOfTheYearInCase
? _this.i18n.monthsOfTheYearInCase(form)[parseInt(s) - 1]
: monthNames[parseInt(s) - 1];
}, function (s) {

@@ -482,3 +494,3 @@ if (parseInt(s) == 1) {

else {
return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Months(), s);
return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Months(s), s);
}

@@ -518,3 +530,3 @@ }, function (s) {

var offSetDays = lastDayOffSetMatches[1];
description = stringUtilities_1.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(), offSetDays);
description = stringUtilities_1.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(offSetDays), offSetDays);
break;

@@ -533,7 +545,7 @@ }

}, function (s) {
return s == "1" ? _this.i18n.commaEveryDay() : _this.i18n.commaEveryX0Days();
return s == "1" ? _this.i18n.commaEveryDay() : _this.i18n.commaEveryX0Days(s);
}, function (s) {
return _this.i18n.commaBetweenDayX0AndX1OfTheMonth();
return _this.i18n.commaBetweenDayX0AndX1OfTheMonth(s);
}, function (s) {
return _this.i18n.commaOnDayX0OfTheMonth();
return _this.i18n.commaOnDayX0OfTheMonth(s);
});

@@ -551,3 +563,3 @@ }

}, function (s) {
return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Years(), s);
return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Years(s), s);
}, function (s) {

@@ -633,4 +645,4 @@ return _this.i18n.commaYearX0ThroughYearX1() || _this.i18n.commaX0ThroughX1();

var rangeSegments = rangeExpression.split("-");
var rangeSegment1Description = getSingleItemDescription(rangeSegments[0]);
var rangeSegment2Description = getSingleItemDescription(rangeSegments[1]);
var rangeSegment1Description = getSingleItemDescription(rangeSegments[0], 1);
var rangeSegment2Description = getSingleItemDescription(rangeSegments[1], 2);
var rangeDescriptionFormat = getRangeDescriptionFormat(rangeExpression);

@@ -637,0 +649,0 @@ description += stringUtilities_1.StringUtilities.format(rangeDescriptionFormat, rangeSegment1Description, rangeSegment2Description);

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("cronstrue",[],e):"object"==typeof exports?exports.cronstrue=e():t.cronstrue=e()}(globalThis,(function(){return(()=>{"use strict";var t={794:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CronParser=void 0;var r=n(586),o=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=n}return t.prototype.parse=function(){var t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},t.prototype.extractParts=function(t){if(!this.expression)throw new Error("Expression is empty");var e=t.trim().split(/[ ]+/);if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(1==e.length?"":"s",". At least 5 parts are required."));if(5==e.length)e.unshift(""),e.push("");else if(6==e.length){/\d{4}$/.test(e[5])||"?"==e[4]||"?"==e[2]?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},t.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),0==t[0].indexOf("0/")&&(t[0]=t[0].replace("0/","*/")),0==t[1].indexOf("0/")&&(t[1]=t[1].replace("0/","*/")),0==t[2].indexOf("0/")&&(t[2]=t[2].replace("0/","*/")),0==t[3].indexOf("1/")&&(t[3]=t[3].replace("1/","*/")),0==t[4].indexOf("1/")&&(t[4]=t[4].replace("1/","*/")),0==t[6].indexOf("1/")&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),t.replace(n,r)})),"L"==t[5]&&(t[5]="6"),"?"==t[3]&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)t[5]=t[5].replace(new RegExp(r,"gi"),n[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),t.replace(n,r)}));var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var i in o)t[4]=t[4].replace(new RegExp(i,"gi"),o[i].toString());"0"==t[0]&&(t[0]=""),/\*|\-|\,|\//.test(t[2])||!/\*|\//.test(t[1])&&!/\*|\//.test(t[0])||(t[2]+="-".concat(t[2]));for(var a=0;a<t.length;a++)if(-1!=t[a].indexOf(",")&&(t[a]=t[a].split(",").filter((function(t){return""!==t})).join(",")||"*"),"*/1"==t[a]&&(t[a]="*"),t[a].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[a])){var s=null;switch(a){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null}if(null!==s){var u=t[a].split("/");t[a]="".concat(u[0],"-").concat(s,"/").concat(u[1])}}},t.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},t.prototype.validateRange=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},t.prototype.assertNoInvalidCharacters=function(t,e){var n=e.match(/[A-KM-VX-Z]+/gi);if(n&&n.length)throw new Error("".concat(t," part contains invalid values: '").concat(n.toString(),"'"))},t}();e.CronParser=o},728:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressionDescriptor=void 0;var r=n(910),o=n(794),i=function(){function t(e,n){if(this.expression=e,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,n){var r=void 0===n?{}:n,o=r.throwExceptionOnParseError,i=void 0===o||o,a=r.verbose,s=void 0!==a&&a,u=r.dayOfWeekStartIndexZero,c=void 0===u||u,h=r.monthStartIndexZero,p=void 0!==h&&h,f=r.use24HourTimeFormat,l=r.locale;return new t(e,{throwExceptionOnParseError:i,verbose:s,dayOfWeekStartIndexZero:c,monthStartIndexZero:p,use24HourTimeFormat:f,locale:void 0===l?null:l}).getFullDescription()},t.initialize=function(e,n){void 0===n&&(n="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=n,e.load(t.locales)},t.prototype.getFullDescription=function(){var t="";try{var e=new o.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=e.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),i=this.getMonthDescription();t+=n+r+this.getDayOfWeekDescription()+i+this.getYearDescription(),t=(t=this.transformVerbosity(t,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+t.substr(1)}catch(e){if(this.options.throwExceptionOnParseError)throw"".concat(e);t=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return t},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],n=this.expressionParts[1],o=this.expressionParts[2],i="";if(r.StringUtilities.containsAny(n,t.specialCharacters)||r.StringUtilities.containsAny(o,t.specialCharacters)||r.StringUtilities.containsAny(e,t.specialCharacters))if(e||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||r.StringUtilities.containsAny(o,t.specialCharacters))if(!e&&o.indexOf(",")>-1&&-1==o.indexOf("-")&&-1==o.indexOf("/")&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var a=o.split(",");i+=this.i18n.at();for(var s=0;s<a.length;s++)i+=" ",i+=this.formatTime(a[s],n,""),s<a.length-2&&(i+=","),s==a.length-2&&(i+=this.i18n.spaceAnd())}else{var u=this.getSecondsDescription(),c=this.getMinutesDescription(),h=this.getHoursDescription();if((i+=u)&&c&&(i+=", "),i+=c,c===h)return i;i&&h&&(i+=", "),i+=h}else{var p=n.split("-");i+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(o,p[0],""),this.formatTime(o,p[1],""))}else i+=this.i18n.atSpace()+this.formatTime(o,n,e);return i},t.prototype.getSecondsDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Seconds(),e)}),(function(e){return t.i18n.secondsX0ThroughX1PastTheMinute()}),(function(e){return"0"==e?"":parseInt(e)<20?t.i18n.atX0SecondsPastTheMinute():t.i18n.atX0SecondsPastTheMinuteGt20()||t.i18n.atX0SecondsPastTheMinute()}))},t.prototype.getMinutesDescription=function(){var t=this,e=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Minutes(),e)}),(function(e){return t.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){try{return"0"==r&&-1==n.indexOf("/")&&""==e?t.i18n.everyHour():parseInt(r)<20?t.i18n.atX0MinutesPastTheHour():t.i18n.atX0MinutesPastTheHourGt20()||t.i18n.atX0MinutesPastTheHour()}catch(e){return t.i18n.atX0MinutesPastTheHour()}}))},t.prototype.getHoursDescription=function(){var t=this,e=this.expressionParts[2],n=this.getSegmentDescription(e,this.i18n.everyHour(),(function(e){return t.formatTime(e,"0","")}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Hours(),e)}),(function(e){return t.i18n.betweenX0AndX1()}),(function(e){return t.i18n.atX0()}));if(n&&e.includes("-")&&"0"!=this.expressionParts[1]){var o=Array.from(n.matchAll(/:00/g));if(o.length>1){var i=o[o.length-1].index;n=n.substring(0,i)+":59"+n.substring(i+3)}}return n},t.prototype.getDayOfWeekDescription=function(){var t=this,e=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(t){var n=t;return t.indexOf("#")>-1?n=t.substr(0,t.indexOf("#")):t.indexOf("L")>-1&&(n=n.replace("L","")),e[parseInt(n)]}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0DaysOfTheWeek(),e)}),(function(e){return"*"!=t.expressionParts[3]?t.i18n.commaAndX0ThroughX1():t.i18n.commaX0ThroughX1()}),(function(e){var n=null;if(e.indexOf("#")>-1){var r=null;switch(e.substring(e.indexOf("#")+1)){case"1":r=t.i18n.first();break;case"2":r=t.i18n.second();break;case"3":r=t.i18n.third();break;case"4":r=t.i18n.fourth();break;case"5":r=t.i18n.fifth()}n=t.i18n.commaOnThe()+r+t.i18n.spaceX0OfTheMonth()}else if(e.indexOf("L")>-1)n=t.i18n.commaOnTheLastX0OfTheMonth();else{n="*"!=t.expressionParts[3]?t.i18n.commaAndOnX0():t.i18n.commaOnlyOnX0()}return n}))},t.prototype.getMonthDescription=function(){var t=this,e=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",(function(t){return e[parseInt(t)-1]}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0Months(),e)}),(function(e){return t.i18n.commaMonthX0ThroughMonthX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInMonthX0?t.i18n.commaOnlyInMonthX0():t.i18n.commaOnlyInX0()}))},t.prototype.getDayOfMonthDescription=function(){var t=this,e=null,n=this.expressionParts[3];switch(n){case"L":e=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":e=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var i=parseInt(o[0].replace("W","")),a=1==i?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),i.toString());e=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),a);break}var s=n.match(/L-(\d{1,2})/);if(s){var u=s[1];e=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(),u);break}if("*"==n&&"*"!=this.expressionParts[5])return"";e=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(e){return"L"==e?t.i18n.lastDay():t.i18n.dayX0?r.StringUtilities.format(t.i18n.dayX0(),e):e}),(function(e){return"1"==e?t.i18n.commaEveryDay():t.i18n.commaEveryX0Days()}),(function(e){return t.i18n.commaBetweenDayX0AndX1OfTheMonth()}),(function(e){return t.i18n.commaOnDayX0OfTheMonth()}))}return e},t.prototype.getYearDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[6],"",(function(t){return/^\d+$/.test(t)?new Date(parseInt(t),1).getFullYear().toString():t}),(function(e){return r.StringUtilities.format(t.i18n.commaEveryX0Years(),e)}),(function(e){return t.i18n.commaYearX0ThroughYearX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInYearX0?t.i18n.commaOnlyInYearX0():t.i18n.commaOnlyInX0()}))},t.prototype.getSegmentDescription=function(t,e,n,o,i,a){var s=null,u=t.indexOf("/")>-1,c=t.indexOf("-")>-1,h=t.indexOf(",")>-1;if(t)if("*"===t)s=e;else if(u||c||h)if(h){for(var p=t.split(","),f="",l=0;l<p.length;l++)if(l>0&&p.length>2&&(f+=",",l<p.length-1&&(f+=" ")),l>0&&p.length>1&&(l==p.length-1||2==p.length)&&(f+="".concat(this.i18n.spaceAnd()," ")),p[l].indexOf("/")>-1||p[l].indexOf("-")>-1){var y=p[l].indexOf("-")>-1&&-1==p[l].indexOf("/"),m=this.getSegmentDescription(p[l],e,n,o,y?this.i18n.commaX0ThroughX1:i,a);y&&(m=m.replace(", ","")),f+=m}else f+=u?this.getSegmentDescription(p[l],e,n,o,i,a):n(p[l]);s=u?f:r.StringUtilities.format(a(t),f)}else if(u){p=t.split("/");if(s=r.StringUtilities.format(o(p[1]),p[1]),p[0].indexOf("-")>-1){var d=this.generateRangeSegmentDescription(p[0],i,n);0!=d.indexOf(", ")&&(s+=", "),s+=d}else if(-1==p[0].indexOf("*")){var g=r.StringUtilities.format(a(p[0]),n(p[0]));g=g.replace(", ",""),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),g)}}else c&&(s=this.generateRangeSegmentDescription(t,i,n));else s=r.StringUtilities.format(a(t),n(t));else s="";return s},t.prototype.generateRangeSegmentDescription=function(t,e,n){var o="",i=t.split("-"),a=n(i[0]),s=n(i[1]),u=e(t);return o+=r.StringUtilities.format(u,a,s)},t.prototype.formatTime=function(t,e,n){var r=parseInt(t),o="",i=!1;this.options.use24HourTimeFormat||(o=(i=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(r)," "):" ".concat(this.getPeriod(r)),r>12&&(r-=12),0===r&&(r=12));var a=e,s="";return n&&(s=":".concat(("00"+n).substring(n.length))),"".concat(i?o:"").concat(("00"+r.toString()).substring(r.toString().length),":").concat(("00"+a.toString()).substring(a.toString().length)).concat(s).concat(i?"":o)},t.prototype.transformVerbosity=function(t,e){return e||(t=(t=(t=(t=t.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(new RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,"")),t},t.prototype.getPeriod=function(t){return t>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();e.ExpressionDescriptor=i},336:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.enLocaleLoader=void 0;var r=n(751),o=function(){function t(){}return t.prototype.load=function(t){t.en=new r.en},t}();e.enLocaleLoader=o},751:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.en=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},t.prototype.everyMinute=function(){return"every minute"},t.prototype.everyHour=function(){return"every hour"},t.prototype.atSpace=function(){return"At "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},t.prototype.at=function(){return"At"},t.prototype.spaceAnd=function(){return" and"},t.prototype.everySecond=function(){return"every second"},t.prototype.everyX0Seconds=function(){return"every %s seconds"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},t.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},t.prototype.everyX0Minutes=function(){return"every %s minutes"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},t.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},t.prototype.everyX0Hours=function(){return"every %s hours"},t.prototype.betweenX0AndX1=function(){return"between %s and %s"},t.prototype.atX0=function(){return"at %s"},t.prototype.commaEveryDay=function(){return", every day"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},t.prototype.commaX0ThroughX1=function(){return", %s through %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},t.prototype.first=function(){return"first"},t.prototype.second=function(){return"second"},t.prototype.third=function(){return"third"},t.prototype.fourth=function(){return"fourth"},t.prototype.fifth=function(){return"fifth"},t.prototype.commaOnThe=function(){return", on the "},t.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},t.prototype.lastDay=function(){return"the last day"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},t.prototype.commaOnlyOnX0=function(){return", only on %s"},t.prototype.commaAndOnX0=function(){return", and on %s"},t.prototype.commaEveryX0Months=function(){return", every %s months"},t.prototype.commaOnlyInX0=function(){return", only in %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},t.prototype.firstWeekday=function(){return"first weekday"},t.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},t.prototype.commaEveryX0Days=function(){return", every %s days"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},t.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},t.prototype.commaEveryHour=function(){return", every hour"},t.prototype.commaEveryX0Years=function(){return", every %s years"},t.prototype.commaStartingX0=function(){return", starting %s"},t.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},t}();e.en=n},586:(t,e)=>{function n(t,e){if(!t)throw new Error(e)}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.secondRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"seconds part must be >= 0 and <= 59")}},t.minuteRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"minutes part must be >= 0 and <= 59")}},t.hourRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=23,"hours part must be >= 0 and <= 23")}},t.dayOfMonthRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=1&&o<=31,"DOM part must be >= 1 and <= 31")}},t.monthRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=1&&i<=12,e?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},t.dayOfWeekRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=0&&i<=6,e?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},t}();e.default=r},910:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtilities=void 0;var n=function(){function t(){}return t.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.replace(/%s/g,(function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.shift()}))},t.containsAny=function(t,e){return e.some((function(e){return t.indexOf(e)>-1}))},t}();e.StringUtilities=n}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;var e=n(728),o=n(336);e.ExpressionDescriptor.initialize(new o.enLocaleLoader),t.default=e.ExpressionDescriptor;var i=e.ExpressionDescriptor.toString;t.toString=i})(),r})()}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("cronstrue",[],e):"object"==typeof exports?exports.cronstrue=e():t.cronstrue=e()}(globalThis,(function(){return(()=>{"use strict";var t={794:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CronParser=void 0;var r=n(586),o=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=n}return t.prototype.parse=function(){var t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},t.prototype.extractParts=function(t){if(!this.expression)throw new Error("Expression is empty");var e=t.trim().split(/[ ]+/);if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(1==e.length?"":"s",". At least 5 parts are required."));if(5==e.length)e.unshift(""),e.push("");else if(6==e.length){/\d{4}$/.test(e[5])||"?"==e[4]||"?"==e[2]?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},t.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),0==t[0].indexOf("0/")&&(t[0]=t[0].replace("0/","*/")),0==t[1].indexOf("0/")&&(t[1]=t[1].replace("0/","*/")),0==t[2].indexOf("0/")&&(t[2]=t[2].replace("0/","*/")),0==t[3].indexOf("1/")&&(t[3]=t[3].replace("1/","*/")),0==t[4].indexOf("1/")&&(t[4]=t[4].replace("1/","*/")),0==t[6].indexOf("1/")&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),t.replace(n,r)})),"L"==t[5]&&(t[5]="6"),"?"==t[3]&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)t[5]=t[5].replace(new RegExp(r,"gi"),n[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),t.replace(n,r)}));var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var i in o)t[4]=t[4].replace(new RegExp(i,"gi"),o[i].toString());"0"==t[0]&&(t[0]=""),/\*|\-|\,|\//.test(t[2])||!/\*|\//.test(t[1])&&!/\*|\//.test(t[0])||(t[2]+="-".concat(t[2]));for(var a=0;a<t.length;a++)if(-1!=t[a].indexOf(",")&&(t[a]=t[a].split(",").filter((function(t){return""!==t})).join(",")||"*"),"*/1"==t[a]&&(t[a]="*"),t[a].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[a])){var s=null;switch(a){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null}if(null!==s){var u=t[a].split("/");t[a]="".concat(u[0],"-").concat(s,"/").concat(u[1])}}},t.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},t.prototype.validateRange=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},t.prototype.assertNoInvalidCharacters=function(t,e){var n=e.match(/[A-KM-VX-Z]+/gi);if(n&&n.length)throw new Error("".concat(t," part contains invalid values: '").concat(n.toString(),"'"))},t}();e.CronParser=o},728:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressionDescriptor=void 0;var r=n(910),o=n(794),i=function(){function t(e,n){if(this.expression=e,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,n){var r=void 0===n?{}:n,o=r.throwExceptionOnParseError,i=void 0===o||o,a=r.verbose,s=void 0!==a&&a,u=r.dayOfWeekStartIndexZero,c=void 0===u||u,h=r.monthStartIndexZero,p=void 0!==h&&h,f=r.use24HourTimeFormat,l=r.locale;return new t(e,{throwExceptionOnParseError:i,verbose:s,dayOfWeekStartIndexZero:c,monthStartIndexZero:p,use24HourTimeFormat:f,locale:void 0===l?null:l}).getFullDescription()},t.initialize=function(e,n){void 0===n&&(n="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=n,e.load(t.locales)},t.prototype.getFullDescription=function(){var t="";try{var e=new o.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=e.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),i=this.getMonthDescription();t+=n+r+this.getDayOfWeekDescription()+i+this.getYearDescription(),t=(t=this.transformVerbosity(t,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+t.substr(1)}catch(e){if(this.options.throwExceptionOnParseError)throw"".concat(e);t=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return t},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],n=this.expressionParts[1],o=this.expressionParts[2],i="";if(r.StringUtilities.containsAny(n,t.specialCharacters)||r.StringUtilities.containsAny(o,t.specialCharacters)||r.StringUtilities.containsAny(e,t.specialCharacters))if(e||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||r.StringUtilities.containsAny(o,t.specialCharacters))if(!e&&o.indexOf(",")>-1&&-1==o.indexOf("-")&&-1==o.indexOf("/")&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var a=o.split(",");i+=this.i18n.at();for(var s=0;s<a.length;s++)i+=" ",i+=this.formatTime(a[s],n,""),s<a.length-2&&(i+=","),s==a.length-2&&(i+=this.i18n.spaceAnd())}else{var u=this.getSecondsDescription(),c=this.getMinutesDescription(),h=this.getHoursDescription();if((i+=u)&&c&&(i+=", "),i+=c,c===h)return i;i&&h&&(i+=", "),i+=h}else{var p=n.split("-");i+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(o,p[0],""),this.formatTime(o,p[1],""))}else i+=this.i18n.atSpace()+this.formatTime(o,n,e);return i},t.prototype.getSecondsDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Seconds(e),e)}),(function(e){return t.i18n.secondsX0ThroughX1PastTheMinute()}),(function(e){return"0"==e?"":parseInt(e)<20?t.i18n.atX0SecondsPastTheMinute(e):t.i18n.atX0SecondsPastTheMinuteGt20()||t.i18n.atX0SecondsPastTheMinute(e)}))},t.prototype.getMinutesDescription=function(){var t=this,e=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Minutes(e),e)}),(function(e){return t.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){try{return"0"==r&&-1==n.indexOf("/")&&""==e?t.i18n.everyHour():parseInt(r)<20?t.i18n.atX0MinutesPastTheHour(r):t.i18n.atX0MinutesPastTheHourGt20()||t.i18n.atX0MinutesPastTheHour(r)}catch(e){return t.i18n.atX0MinutesPastTheHour(r)}}))},t.prototype.getHoursDescription=function(){var t=this,e=this.expressionParts[2],n=this.getSegmentDescription(e,this.i18n.everyHour(),(function(e){return t.formatTime(e,"0","")}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Hours(e),e)}),(function(e){return t.i18n.betweenX0AndX1()}),(function(e){return t.i18n.atX0()}));if(n&&e.includes("-")&&"0"!=this.expressionParts[1]){var o=Array.from(n.matchAll(/:00/g));if(o.length>1){var i=o[o.length-1].index;n=n.substring(0,i)+":59"+n.substring(i+3)}}return n},t.prototype.getDayOfWeekDescription=function(){var t=this,e=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(n,r){var o=n;return n.indexOf("#")>-1?o=n.substr(0,n.indexOf("#")):n.indexOf("L")>-1&&(o=o.replace("L","")),t.i18n.daysOfTheWeekInCase?t.i18n.daysOfTheWeekInCase(r)[parseInt(o)]:e[parseInt(o)]}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0DaysOfTheWeek(e),e)}),(function(e){var n=e.substring(0,e.indexOf("-"));return"*"!=t.expressionParts[3]?t.i18n.commaAndX0ThroughX1(n):t.i18n.commaX0ThroughX1(n)}),(function(e){var n=null;if(e.indexOf("#")>-1){var r=e.substring(e.indexOf("#")+1),o=e.substring(0,e.indexOf("#")),i=null;switch(r){case"1":i=t.i18n.first(o);break;case"2":i=t.i18n.second(o);break;case"3":i=t.i18n.third(o);break;case"4":i=t.i18n.fourth(o);break;case"5":i=t.i18n.fifth(o)}n=t.i18n.commaOnThe(r)+i+t.i18n.spaceX0OfTheMonth()}else if(e.indexOf("L")>-1)n=t.i18n.commaOnTheLastX0OfTheMonth(e.replace("L",""));else{n="*"!=t.expressionParts[3]?t.i18n.commaAndOnX0():t.i18n.commaOnlyOnX0(e)}return n}))},t.prototype.getMonthDescription=function(){var t=this,e=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",(function(n,r){return r&&t.i18n.monthsOfTheYearInCase?t.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:e[parseInt(n)-1]}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0Months(e),e)}),(function(e){return t.i18n.commaMonthX0ThroughMonthX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInMonthX0?t.i18n.commaOnlyInMonthX0():t.i18n.commaOnlyInX0()}))},t.prototype.getDayOfMonthDescription=function(){var t=this,e=null,n=this.expressionParts[3];switch(n){case"L":e=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":e=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var i=parseInt(o[0].replace("W","")),a=1==i?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),i.toString());e=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),a);break}var s=n.match(/L-(\d{1,2})/);if(s){var u=s[1];e=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(u),u);break}if("*"==n&&"*"!=this.expressionParts[5])return"";e=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(e){return"L"==e?t.i18n.lastDay():t.i18n.dayX0?r.StringUtilities.format(t.i18n.dayX0(),e):e}),(function(e){return"1"==e?t.i18n.commaEveryDay():t.i18n.commaEveryX0Days(e)}),(function(e){return t.i18n.commaBetweenDayX0AndX1OfTheMonth(e)}),(function(e){return t.i18n.commaOnDayX0OfTheMonth(e)}))}return e},t.prototype.getYearDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[6],"",(function(t){return/^\d+$/.test(t)?new Date(parseInt(t),1).getFullYear().toString():t}),(function(e){return r.StringUtilities.format(t.i18n.commaEveryX0Years(e),e)}),(function(e){return t.i18n.commaYearX0ThroughYearX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInYearX0?t.i18n.commaOnlyInYearX0():t.i18n.commaOnlyInX0()}))},t.prototype.getSegmentDescription=function(t,e,n,o,i,a){var s=null,u=t.indexOf("/")>-1,c=t.indexOf("-")>-1,h=t.indexOf(",")>-1;if(t)if("*"===t)s=e;else if(u||c||h)if(h){for(var p=t.split(","),f="",l=0;l<p.length;l++)if(l>0&&p.length>2&&(f+=",",l<p.length-1&&(f+=" ")),l>0&&p.length>1&&(l==p.length-1||2==p.length)&&(f+="".concat(this.i18n.spaceAnd()," ")),p[l].indexOf("/")>-1||p[l].indexOf("-")>-1){var y=p[l].indexOf("-")>-1&&-1==p[l].indexOf("/"),m=this.getSegmentDescription(p[l],e,n,o,y?this.i18n.commaX0ThroughX1:i,a);y&&(m=m.replace(", ","")),f+=m}else f+=u?this.getSegmentDescription(p[l],e,n,o,i,a):n(p[l]);s=u?f:r.StringUtilities.format(a(t),f)}else if(u){p=t.split("/");if(s=r.StringUtilities.format(o(p[1]),p[1]),p[0].indexOf("-")>-1){var d=this.generateRangeSegmentDescription(p[0],i,n);0!=d.indexOf(", ")&&(s+=", "),s+=d}else if(-1==p[0].indexOf("*")){var g=r.StringUtilities.format(a(p[0]),n(p[0]));g=g.replace(", ",""),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),g)}}else c&&(s=this.generateRangeSegmentDescription(t,i,n));else s=r.StringUtilities.format(a(t),n(t));else s="";return s},t.prototype.generateRangeSegmentDescription=function(t,e,n){var o="",i=t.split("-"),a=n(i[0],1),s=n(i[1],2),u=e(t);return o+=r.StringUtilities.format(u,a,s)},t.prototype.formatTime=function(t,e,n){var r=parseInt(t),o="",i=!1;this.options.use24HourTimeFormat||(o=(i=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(r)," "):" ".concat(this.getPeriod(r)),r>12&&(r-=12),0===r&&(r=12));var a=e,s="";return n&&(s=":".concat(("00"+n).substring(n.length))),"".concat(i?o:"").concat(("00"+r.toString()).substring(r.toString().length),":").concat(("00"+a.toString()).substring(a.toString().length)).concat(s).concat(i?"":o)},t.prototype.transformVerbosity=function(t,e){return e||(t=(t=(t=(t=t.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(new RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,"")),t},t.prototype.getPeriod=function(t){return t>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();e.ExpressionDescriptor=i},336:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.enLocaleLoader=void 0;var r=n(751),o=function(){function t(){}return t.prototype.load=function(t){t.en=new r.en},t}();e.enLocaleLoader=o},751:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.en=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},t.prototype.everyMinute=function(){return"every minute"},t.prototype.everyHour=function(){return"every hour"},t.prototype.atSpace=function(){return"At "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},t.prototype.at=function(){return"At"},t.prototype.spaceAnd=function(){return" and"},t.prototype.everySecond=function(){return"every second"},t.prototype.everyX0Seconds=function(){return"every %s seconds"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},t.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},t.prototype.everyX0Minutes=function(){return"every %s minutes"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},t.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},t.prototype.everyX0Hours=function(){return"every %s hours"},t.prototype.betweenX0AndX1=function(){return"between %s and %s"},t.prototype.atX0=function(){return"at %s"},t.prototype.commaEveryDay=function(){return", every day"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},t.prototype.commaX0ThroughX1=function(){return", %s through %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},t.prototype.first=function(){return"first"},t.prototype.second=function(){return"second"},t.prototype.third=function(){return"third"},t.prototype.fourth=function(){return"fourth"},t.prototype.fifth=function(){return"fifth"},t.prototype.commaOnThe=function(){return", on the "},t.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},t.prototype.lastDay=function(){return"the last day"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},t.prototype.commaOnlyOnX0=function(){return", only on %s"},t.prototype.commaAndOnX0=function(){return", and on %s"},t.prototype.commaEveryX0Months=function(){return", every %s months"},t.prototype.commaOnlyInX0=function(){return", only in %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},t.prototype.firstWeekday=function(){return"first weekday"},t.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},t.prototype.commaEveryX0Days=function(){return", every %s days"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},t.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},t.prototype.commaEveryHour=function(){return", every hour"},t.prototype.commaEveryX0Years=function(){return", every %s years"},t.prototype.commaStartingX0=function(){return", starting %s"},t.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},t}();e.en=n},586:(t,e)=>{function n(t,e){if(!t)throw new Error(e)}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.secondRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"seconds part must be >= 0 and <= 59")}},t.minuteRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"minutes part must be >= 0 and <= 59")}},t.hourRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=23,"hours part must be >= 0 and <= 23")}},t.dayOfMonthRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=1&&o<=31,"DOM part must be >= 1 and <= 31")}},t.monthRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=1&&i<=12,e?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},t.dayOfWeekRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=0&&i<=6,e?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},t}();e.default=r},910:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtilities=void 0;var n=function(){function t(){}return t.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.replace(/%s/g,(function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.shift()}))},t.containsAny=function(t,e){return e.some((function(e){return t.indexOf(e)>-1}))},t}();e.StringUtilities=n}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;var e=n(728),o=n(336);e.ExpressionDescriptor.initialize(new o.enLocaleLoader),t.default=e.ExpressionDescriptor;var i=e.ExpressionDescriptor.toString;t.toString=i})(),r})()}));

@@ -26,4 +26,4 @@ import { Options } from "./options";

protected getYearDescription(): string;
protected getSegmentDescription(expression: string, allDescription: string, getSingleItemDescription: (t: string) => string, getIncrementDescriptionFormat: (t: string) => string, getRangeDescriptionFormat: (t: string) => string, getDescriptionFormat: (t: string) => string): string | null;
protected generateRangeSegmentDescription(rangeExpression: string, getRangeDescriptionFormat: (t: string) => string, getSingleItemDescription: (t: string) => string): string;
protected getSegmentDescription(expression: string, allDescription: string, getSingleItemDescription: (t: string, form?: number) => string, getIncrementDescriptionFormat: (t: string) => string, getRangeDescriptionFormat: (t: string) => string, getDescriptionFormat: (t: string) => string): string | null;
protected generateRangeSegmentDescription(rangeExpression: string, getRangeDescriptionFormat: (t: string) => string, getSingleItemDescription: (t: string, form?: number) => string): string;
protected formatTime(hourExpression: string, minuteExpression: string, secondExpression: string): string;

@@ -30,0 +30,0 @@ protected transformVerbosity(description: string, useVerboseFormat: boolean): string;

@@ -14,31 +14,31 @@ export interface Locale {

everySecond(): string;
everyX0Seconds(): string;
everyX0Seconds(s?: string): string;
secondsX0ThroughX1PastTheMinute(): string;
atX0SecondsPastTheMinute(): string;
atX0SecondsPastTheMinute(s?: string): string;
atX0SecondsPastTheMinuteGt20(): string | null;
everyX0Minutes(): string;
everyX0Minutes(s?: string): string;
minutesX0ThroughX1PastTheHour(): string;
atX0MinutesPastTheHour(): string;
atX0MinutesPastTheHour(s?: string): string;
atX0MinutesPastTheHourGt20(): string | null;
everyX0Hours(): string;
everyX0Hours(s?: string): string;
betweenX0AndX1(): string;
atX0(): string;
commaEveryDay(): string;
commaEveryX0DaysOfTheWeek(): string;
commaX0ThroughX1(): string;
commaAndX0ThroughX1(): string;
commaEveryX0DaysOfTheWeek(s?: string): string;
commaX0ThroughX1(s?: string): string;
commaAndX0ThroughX1(s?: string): string;
commaMonthX0ThroughMonthX1(): string | null;
commaYearX0ThroughYearX1(): string | null;
first(): string;
second(): string;
third(): string;
fourth(): string;
fifth(): string;
commaOnThe(): string;
first(s?: string): string;
second(s?: string): string;
third(s?: string): string;
fourth(s?: string): string;
fifth(s?: string): string;
commaOnThe(s?: string): string;
spaceX0OfTheMonth(): string;
lastDay(): string;
commaOnTheLastX0OfTheMonth(): string;
commaOnlyOnX0(): string;
commaOnTheLastX0OfTheMonth(s?: string): string;
commaOnlyOnX0(s?: string): string;
commaAndOnX0(): string;
commaEveryX0Months(): string;
commaEveryX0Months(s?: string): string;
commaOnlyInX0(): string;

@@ -49,14 +49,16 @@ commaOnlyInMonthX0?(): string;

commaOnTheLastWeekdayOfTheMonth(): string;
commaDaysBeforeTheLastDayOfTheMonth(): string;
commaDaysBeforeTheLastDayOfTheMonth(s?: string): string;
firstWeekday(): string;
weekdayNearestDayX0(): string;
commaOnTheX0OfTheMonth(): string;
commaEveryX0Days(): string;
commaBetweenDayX0AndX1OfTheMonth(): string;
commaOnDayX0OfTheMonth(): string;
commaEveryX0Years(): string;
commaEveryX0Days(s?: string): string;
commaBetweenDayX0AndX1OfTheMonth(s?: string): string;
commaOnDayX0OfTheMonth(s?: string): string;
commaEveryX0Years(s?: string): string;
commaStartingX0(): string;
dayX0?(): string;
daysOfTheWeek(): string[];
daysOfTheWeekInCase?(f?: number): string[];
monthsOfTheYear(): string[];
monthsOfTheYearInCase?(f?: number): string[];
}

@@ -16,41 +16,44 @@ import { Locale } from "../locale";

everySecond(): string;
everyX0Seconds(): string;
everyX0Seconds(s: string): string;
secondsX0ThroughX1PastTheMinute(): string;
atX0SecondsPastTheMinute(): string;
everyX0Minutes(): string;
atX0SecondsPastTheMinute(s: string): string;
everyX0Minutes(s: string): string;
minutesX0ThroughX1PastTheHour(): string;
atX0MinutesPastTheHour(): string;
everyX0Hours(): string;
atX0MinutesPastTheHour(s: string): string;
everyX0Hours(s: string): string;
betweenX0AndX1(): string;
atX0(): string;
commaEveryDay(): string;
commaEveryX0DaysOfTheWeek(): string;
commaX0ThroughX1(): string;
commaAndX0ThroughX1(): string;
first(): string;
second(): string;
third(): string;
fourth(): string;
fifth(): string;
commaOnThe(): string;
commaEveryX0DaysOfTheWeek(s: string): string;
commaX0ThroughX1(s: string): ", со %s по %s" | ", с %s по %s";
commaAndX0ThroughX1(s: string): " и со %s по %s" | " и с %s по %s";
first(s: string): string;
second(s: string): string;
third(s: string): string;
fourth(s: string): string;
fifth(s: string): string;
commaOnThe(s: string): ", во " | ", в ";
spaceX0OfTheMonth(): string;
lastDay(): string;
commaOnTheLastX0OfTheMonth(): string;
commaOnlyOnX0(): string;
commaOnTheLastX0OfTheMonth(s: string): string;
commaOnlyOnX0(s: string): ", только во %s" | ", только в %s";
commaAndOnX0(): string;
commaEveryX0Months(): string;
commaEveryX0Months(s: string): string;
commaOnlyInMonthX0(): string;
commaOnlyInX0(): string;
commaOnTheLastDayOfTheMonth(): string;
commaOnTheLastWeekdayOfTheMonth(): string;
commaDaysBeforeTheLastDayOfTheMonth(): string;
commaDaysBeforeTheLastDayOfTheMonth(s: string): string;
firstWeekday(): string;
weekdayNearestDayX0(): string;
commaOnTheX0OfTheMonth(): string;
commaEveryX0Days(): string;
commaBetweenDayX0AndX1OfTheMonth(): string;
commaOnDayX0OfTheMonth(): string;
commaEveryX0Years(): string;
commaEveryX0Days(s: string): string;
commaBetweenDayX0AndX1OfTheMonth(s: string): ", со %s по %s число месяца" | ", с %s по %s число месяца";
commaOnDayX0OfTheMonth(s: string): ", во %s число месяца" | ", в %s число месяца";
commaEveryX0Years(s: string): string;
commaStartingX0(): string;
daysOfTheWeek(): string[];
daysOfTheWeekInCase(f?: number): string[];
monthsOfTheYear(): string[];
monthsOfTheYearInCase(f: number): string[];
}

@@ -103,2 +103,12 @@ (function webpackUniversalModuleDefinition(root, factory) {

exports.ru = void 0;
var getPhraseByNumber = function (str, words) {
var number = Number(str);
return number
? words[number % 100 > 4 && number % 100 < 20 ? 2 : [2, 0, 1, 1, 1, 2][number % 10 < 5 ? Math.abs(number) % 10 : 5]]
: words[2];
};
var getPhraseByDayOfWeek = function (str, words) {
var number = Number(str);
return number ? words[number === 0 ? 0 : number === 1 || number === 2 || number === 4 ? 1 : 2] : words[1];
};
var ru = (function () {

@@ -146,4 +156,4 @@ function ru() {

};
ru.prototype.everyX0Seconds = function () {
return "каждые %s секунд";
ru.prototype.everyX0Seconds = function (s) {
return getPhraseByNumber(s, ["каждую %s секунду", "каждые %s секунды", "каждые %s секунд"]);
};

@@ -153,7 +163,7 @@ ru.prototype.secondsX0ThroughX1PastTheMinute = function () {

};
ru.prototype.atX0SecondsPastTheMinute = function () {
return "в %s секунд";
ru.prototype.atX0SecondsPastTheMinute = function (s) {
return getPhraseByNumber(s, ["в %s секунду", "в %s секунды", "в %s секунд"]);
};
ru.prototype.everyX0Minutes = function () {
return "каждые %s минут";
ru.prototype.everyX0Minutes = function (s) {
return getPhraseByNumber(s, ["каждую %s минуту", "каждые %s минуты", "каждые %s минут"]);
};

@@ -163,7 +173,7 @@ ru.prototype.minutesX0ThroughX1PastTheHour = function () {

};
ru.prototype.atX0MinutesPastTheHour = function () {
return "в %s минут";
ru.prototype.atX0MinutesPastTheHour = function (s) {
return getPhraseByNumber(s, ["в %s минуту", "в %s минуты", "в %s минут"]);
};
ru.prototype.everyX0Hours = function () {
return "каждые %s часов";
ru.prototype.everyX0Hours = function (s) {
return getPhraseByNumber(s, ["каждый %s час", "каждые %s часа", "каждые %s часов"]);
};

@@ -179,28 +189,28 @@ ru.prototype.betweenX0AndX1 = function () {

};
ru.prototype.commaEveryX0DaysOfTheWeek = function () {
return ", каждые %s дней недели";
ru.prototype.commaEveryX0DaysOfTheWeek = function (s) {
return getPhraseByNumber(s, ["", ", каждые %s дня недели", ", каждые %s дней недели"]);
};
ru.prototype.commaX0ThroughX1 = function () {
return ", %s по %s";
ru.prototype.commaX0ThroughX1 = function (s) {
return s[0] == "2" || s[0] == "3" ? ", со %s по %s" : ", с %s по %s";
};
ru.prototype.commaAndX0ThroughX1 = function () {
return ", и %s по %s";
ru.prototype.commaAndX0ThroughX1 = function (s) {
return s[0] == "2" || s[0] == "3" ? " и со %s по %s" : " и с %s по %s";
};
ru.prototype.first = function () {
return "первый";
ru.prototype.first = function (s) {
return getPhraseByDayOfWeek(s, ["первое", "первый", "первую"]);
};
ru.prototype.second = function () {
return "второй";
ru.prototype.second = function (s) {
return getPhraseByDayOfWeek(s, ["второе", "второй", "вторую"]);
};
ru.prototype.third = function () {
return "третий";
ru.prototype.third = function (s) {
return getPhraseByDayOfWeek(s, ["третье", "третий", "третью"]);
};
ru.prototype.fourth = function () {
return "четвертый";
ru.prototype.fourth = function (s) {
return getPhraseByDayOfWeek(s, ["четвертое", "четвертый", "четвертую"]);
};
ru.prototype.fifth = function () {
return "пятый";
ru.prototype.fifth = function (s) {
return getPhraseByDayOfWeek(s, ["пятое", "пятый", "пятую"]);
};
ru.prototype.commaOnThe = function () {
return ", в ";
ru.prototype.commaOnThe = function (s) {
return s === "2" ? ", во " : ", в ";
};

@@ -213,14 +223,17 @@ ru.prototype.spaceX0OfTheMonth = function () {

};
ru.prototype.commaOnTheLastX0OfTheMonth = function () {
return ", в последний %s месяца";
ru.prototype.commaOnTheLastX0OfTheMonth = function (s) {
return getPhraseByDayOfWeek(s, [", в последнее %s месяца", ", в последний %s месяца", ", в последнюю %s месяца"]);
};
ru.prototype.commaOnlyOnX0 = function () {
return ", только в %s";
ru.prototype.commaOnlyOnX0 = function (s) {
return s[0] === "2" ? ", только во %s" : ", только в %s";
};
ru.prototype.commaAndOnX0 = function () {
return ", и в %s";
return ", и %s";
};
ru.prototype.commaEveryX0Months = function () {
return ", каждые %s месяцев";
ru.prototype.commaEveryX0Months = function (s) {
return getPhraseByNumber(s, ["", " каждые %s месяца", " каждые %s месяцев"]);
};
ru.prototype.commaOnlyInMonthX0 = function () {
return ", только %s";
};
ru.prototype.commaOnlyInX0 = function () {

@@ -235,4 +248,8 @@ return ", только в %s";

};
ru.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
return ", %s дней до последнего дня месяца";
ru.prototype.commaDaysBeforeTheLastDayOfTheMonth = function (s) {
return getPhraseByNumber(s, [
", за %s день до конца месяца",
", за %s дня до конца месяца",
", за %s дней до конца месяца",
]);
};

@@ -243,3 +260,3 @@ ru.prototype.firstWeekday = function () {

ru.prototype.weekdayNearestDayX0 = function () {
return "ближайший будний день к %s";
return "ближайший будний день к %s числу";
};

@@ -249,13 +266,13 @@ ru.prototype.commaOnTheX0OfTheMonth = function () {

};
ru.prototype.commaEveryX0Days = function () {
return ", каждые %s дней";
ru.prototype.commaEveryX0Days = function (s) {
return getPhraseByNumber(s, [", каждый %s день", ", каждые %s дня", ", каждые %s дней"]);
};
ru.prototype.commaBetweenDayX0AndX1OfTheMonth = function () {
return ", с %s по %s число месяца";
ru.prototype.commaBetweenDayX0AndX1OfTheMonth = function (s) {
return s.substring(0, s.indexOf("-")) == "2" ? ", со %s по %s число месяца" : ", с %s по %s число месяца";
};
ru.prototype.commaOnDayX0OfTheMonth = function () {
return ", в %s число месяца";
ru.prototype.commaOnDayX0OfTheMonth = function (s) {
return s[0] == "2" ? ", во %s число месяца" : ", в %s число месяца";
};
ru.prototype.commaEveryX0Years = function () {
return ", каждые %s лет";
ru.prototype.commaEveryX0Years = function (s) {
return getPhraseByNumber(s, [", каждый %s год", ", каждые %s года", ", каждые %s лет"]);
};

@@ -268,2 +285,8 @@ ru.prototype.commaStartingX0 = function () {

};
ru.prototype.daysOfTheWeekInCase = function (f) {
if (f === void 0) { f = 2; }
return f == 1
? ["воскресенья", "понедельника", "вторника", "среды", "четверга", "пятницы", "субботы"]
: ["воскресенье", "понедельник", "вторник", "среду", "четверг", "пятницу", "субботу"];
};
ru.prototype.monthsOfTheYear = function () {

@@ -285,2 +308,20 @@ return [

};
ru.prototype.monthsOfTheYearInCase = function (f) {
return f == 1
? [
"января",
"февраля",
"марта",
"апреля",
"мая",
"июня",
"июля",
"августа",
"сентября",
"октября",
"ноября",
"декабря",
]
: this.monthsOfTheYear();
};
return ru;

@@ -287,0 +328,0 @@ }());

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/ru.min",["cronstrue"],e):"object"==typeof exports?exports["locales/ru.min"]=e(require("cronstrue")):t["locales/ru.min"]=e(t.cronstrue)}(globalThis,(function(t){return(()=>{"use strict";var e={34:e=>{e.exports=t}},o={};function r(t){var n=o[t];if(void 0!==n)return n.exports;var u=o[t]={exports:{}};return e[t](u,u.exports,r),u.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{default:()=>p,toString:()=>u});var t=r(34),e=r.n(t);Object.defineProperty(n,"__esModule",{value:!0}),exports.ru=void 0;var o=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.everyMinute=function(){return"каждую минуту"},t.prototype.everyHour=function(){return"каждый час"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},t.prototype.atSpace=function(){return"В "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},t.prototype.at=function(){return"В"},t.prototype.spaceAnd=function(){return" и"},t.prototype.everySecond=function(){return"каждую секунду"},t.prototype.everyX0Seconds=function(){return"каждые %s секунд"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},t.prototype.atX0SecondsPastTheMinute=function(){return"в %s секунд"},t.prototype.everyX0Minutes=function(){return"каждые %s минут"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},t.prototype.atX0MinutesPastTheHour=function(){return"в %s минут"},t.prototype.everyX0Hours=function(){return"каждые %s часов"},t.prototype.betweenX0AndX1=function(){return"с %s по %s"},t.prototype.atX0=function(){return"в %s"},t.prototype.commaEveryDay=function(){return", каждый день"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", каждые %s дней недели"},t.prototype.commaX0ThroughX1=function(){return", %s по %s"},t.prototype.commaAndX0ThroughX1=function(){return", и %s по %s"},t.prototype.first=function(){return"первый"},t.prototype.second=function(){return"второй"},t.prototype.third=function(){return"третий"},t.prototype.fourth=function(){return"четвертый"},t.prototype.fifth=function(){return"пятый"},t.prototype.commaOnThe=function(){return", в "},t.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},t.prototype.lastDay=function(){return"последний день"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", в последний %s месяца"},t.prototype.commaOnlyOnX0=function(){return", только в %s"},t.prototype.commaAndOnX0=function(){return", и в %s"},t.prototype.commaEveryX0Months=function(){return", каждые %s месяцев"},t.prototype.commaOnlyInX0=function(){return", только в %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s дней до последнего дня месяца"},t.prototype.firstWeekday=function(){return"первый будний день"},t.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},t.prototype.commaEveryX0Days=function(){return", каждые %s дней"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", с %s по %s число месяца"},t.prototype.commaOnDayX0OfTheMonth=function(){return", в %s число месяца"},t.prototype.commaEveryX0Years=function(){return", каждые %s лет"},t.prototype.commaStartingX0=function(){return", начало %s"},t.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},t.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},t}();exports.ru=o,e().locales.ru=new o;const u=e().toString,p=e()})(),n})()}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/ru.min",["cronstrue"],e):"object"==typeof exports?exports["locales/ru.min"]=e(require("cronstrue")):t["locales/ru.min"]=e(t.cronstrue)}(globalThis,(function(t){return(()=>{"use strict";var e={34:e=>{e.exports=t}},o={};function r(t){var n=o[t];if(void 0!==n)return n.exports;var u=o[t]={exports:{}};return e[t](u,u.exports,r),u.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{default:()=>c,toString:()=>s});var t=r(34),e=r.n(t);Object.defineProperty(n,"__esModule",{value:!0}),exports.ru=void 0;var o=function(t,e){var o=Number(t);return o?e[o%100>4&&o%100<20?2:[2,0,1,1,1,2][o%10<5?Math.abs(o)%10:5]]:e[2]},u=function(t,e){var o=Number(t);return o?e[0===o?0:1===o||2===o||4===o?1:2]:e[1]},p=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!0},t.prototype.everyMinute=function(){return"каждую минуту"},t.prototype.everyHour=function(){return"каждый час"},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},t.prototype.atSpace=function(){return"В "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},t.prototype.at=function(){return"В"},t.prototype.spaceAnd=function(){return" и"},t.prototype.everySecond=function(){return"каждую секунду"},t.prototype.everyX0Seconds=function(t){return o(t,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},t.prototype.atX0SecondsPastTheMinute=function(t){return o(t,["в %s секунду","в %s секунды","в %s секунд"])},t.prototype.everyX0Minutes=function(t){return o(t,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},t.prototype.atX0MinutesPastTheHour=function(t){return o(t,["в %s минуту","в %s минуты","в %s минут"])},t.prototype.everyX0Hours=function(t){return o(t,["каждый %s час","каждые %s часа","каждые %s часов"])},t.prototype.betweenX0AndX1=function(){return"с %s по %s"},t.prototype.atX0=function(){return"в %s"},t.prototype.commaEveryDay=function(){return", каждый день"},t.prototype.commaEveryX0DaysOfTheWeek=function(t){return o(t,["",", каждые %s дня недели",", каждые %s дней недели"])},t.prototype.commaX0ThroughX1=function(t){return"2"==t[0]||"3"==t[0]?", со %s по %s":", с %s по %s"},t.prototype.commaAndX0ThroughX1=function(t){return"2"==t[0]||"3"==t[0]?" и со %s по %s":" и с %s по %s"},t.prototype.first=function(t){return u(t,["первое","первый","первую"])},t.prototype.second=function(t){return u(t,["второе","второй","вторую"])},t.prototype.third=function(t){return u(t,["третье","третий","третью"])},t.prototype.fourth=function(t){return u(t,["четвертое","четвертый","четвертую"])},t.prototype.fifth=function(t){return u(t,["пятое","пятый","пятую"])},t.prototype.commaOnThe=function(t){return"2"===t?", во ":", в "},t.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},t.prototype.lastDay=function(){return"последний день"},t.prototype.commaOnTheLastX0OfTheMonth=function(t){return u(t,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},t.prototype.commaOnlyOnX0=function(t){return"2"===t[0]?", только во %s":", только в %s"},t.prototype.commaAndOnX0=function(){return", и %s"},t.prototype.commaEveryX0Months=function(t){return o(t,[""," каждые %s месяца"," каждые %s месяцев"])},t.prototype.commaOnlyInMonthX0=function(){return", только %s"},t.prototype.commaOnlyInX0=function(){return", только в %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(t){return o(t,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},t.prototype.firstWeekday=function(){return"первый будний день"},t.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},t.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},t.prototype.commaEveryX0Days=function(t){return o(t,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(t){return"2"==t.substring(0,t.indexOf("-"))?", со %s по %s число месяца":", с %s по %s число месяца"},t.prototype.commaOnDayX0OfTheMonth=function(t){return"2"==t[0]?", во %s число месяца":", в %s число месяца"},t.prototype.commaEveryX0Years=function(t){return o(t,[", каждый %s год",", каждые %s года",", каждые %s лет"])},t.prototype.commaStartingX0=function(){return", начало %s"},t.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},t.prototype.daysOfTheWeekInCase=function(t){return void 0===t&&(t=2),1==t?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},t.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},t.prototype.monthsOfTheYearInCase=function(t){return 1==t?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},t}();exports.ru=p,e().locales.ru=new p;const s=e().toString,c=e()})(),n})()}));
{
"name": "cronstrue",
"title": "cRonstrue",
"version": "2.14.0",
"version": "2.15.0",
"description": "Convert cron expressions into human readable descriptions",

@@ -6,0 +6,0 @@ "author": "Brady Holt",

@@ -1,2 +0,2 @@

# cRonstrue ![Build Status](https://github.com/bradymholt/cRonstrue/workflows/build/badge.svg) [![NPM Package](https://img.shields.io/npm/v/cronstrue.svg)](https://www.npmjs.com/package/cronstrue)
# cRonstrue ![Build Status](https://github.com/bradymholt/cRonstrue/workflows/Build/badge.svg) [![NPM Package](https://img.shields.io/npm/v/cronstrue.svg)](https://www.npmjs.com/package/cronstrue)

@@ -3,0 +3,0 @@ cRonstrue is a JavaScript library that parses a cron expression and outputs a human readable description of the cron schedule. For example, given the expression "*/5 * * * *" it will output "Every 5 minutes".

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc