cronstrue 2.1.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +36 -19
  2. package/locales/be.js +287 -1
  3. package/locales/be.min.js +1 -1
  4. package/locales/ca.js +287 -1
  5. package/locales/ca.min.js +1 -1
  6. package/locales/cs.js +287 -1
  7. package/locales/cs.min.js +1 -1
  8. package/locales/da.js +287 -1
  9. package/locales/da.min.js +1 -1
  10. package/locales/de.js +287 -1
  11. package/locales/de.min.js +1 -1
  12. package/locales/en.js +290 -1
  13. package/locales/en.min.js +1 -1
  14. package/locales/es.js +287 -1
  15. package/locales/es.min.js +1 -1
  16. package/locales/fa.js +280 -1
  17. package/locales/fa.min.js +1 -1
  18. package/locales/fi.js +296 -1
  19. package/locales/fi.min.js +1 -1
  20. package/locales/fr.js +290 -1
  21. package/locales/fr.min.js +1 -1
  22. package/locales/he.js +274 -1
  23. package/locales/he.min.js +1 -1
  24. package/locales/id.js +290 -1
  25. package/locales/id.min.js +1 -1
  26. package/locales/it.js +287 -1
  27. package/locales/it.min.js +1 -1
  28. package/locales/ja.js +289 -1
  29. package/locales/ja.min.js +1 -1
  30. package/locales/ko.js +289 -1
  31. package/locales/ko.min.js +1 -1
  32. package/locales/nb.js +287 -1
  33. package/locales/nb.min.js +1 -1
  34. package/locales/nl.js +287 -1
  35. package/locales/nl.min.js +1 -1
  36. package/locales/pl.js +287 -1
  37. package/locales/pl.min.js +1 -1
  38. package/locales/pt_BR.js +287 -1
  39. package/locales/pt_BR.min.js +1 -1
  40. package/locales/ro.js +287 -1
  41. package/locales/ro.min.js +1 -1
  42. package/locales/ru.js +287 -1
  43. package/locales/ru.min.js +1 -1
  44. package/locales/sk.js +287 -1
  45. package/locales/sk.min.js +1 -1
  46. package/locales/sl.js +287 -1
  47. package/locales/sl.min.js +1 -1
  48. package/locales/sv.js +287 -1
  49. package/locales/sv.min.js +1 -1
  50. package/locales/sw.js +288 -1
  51. package/locales/sw.min.js +1 -1
  52. package/locales/tr.js +287 -1
  53. package/locales/tr.min.js +1 -1
  54. package/locales/uk.js +287 -1
  55. package/locales/uk.min.js +1 -1
  56. package/locales/zh_CN.js +292 -1
  57. package/locales/zh_CN.min.js +1 -1
  58. package/locales/zh_TW.js +283 -1
  59. package/locales/zh_TW.min.js +1 -1
  60. package/package.json +1 -1
package/locales/fr.js CHANGED
@@ -1 +1,290 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("locales/fr",[],t):"object"==typeof exports?exports["locales/fr"]=t():e["locales/fr"]=t()}(globalThis,(function(){return(()=>{"use strict";var e={794:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CronParser=void 0;var r=n(586),i=function(){function e(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=n}return e.prototype.parse=function(){var e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},e.prototype.extractParts=function(e){if(!this.expression)throw new Error("Expression is empty");var t=e.trim().split(/[ ]+/);if(t.length<5)throw new Error("Expression has only ".concat(t.length," part").concat(1==t.length?"":"s",". At least 5 parts are required."));if(5==t.length)t.unshift(""),t.push("");else if(6==t.length)/\d{4}$/.test(t[5])||"?"==t[4]||"?"==t[2]?t.unshift(""):t.push("");else if(t.length>7)throw new Error("Expression has ".concat(t.length," parts; too many!"));return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace("?","*"),e[5]=e[5].replace("?","*"),e[2]=e[2].replace("?","*"),0==e[0].indexOf("0/")&&(e[0]=e[0].replace("0/","*/")),0==e[1].indexOf("0/")&&(e[1]=e[1].replace("0/","*/")),0==e[2].indexOf("0/")&&(e[2]=e[2].replace("0/","*/")),0==e[3].indexOf("1/")&&(e[3]=e[3].replace("1/","*/")),0==e[4].indexOf("1/")&&(e[4]=e[4].replace("1/","*/")),0==e[6].indexOf("1/")&&(e[6]=e[6].replace("1/","*/")),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,(function(e){var n=e.replace(/\D/,""),r=n;return t.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),e.replace(n,r)})),"L"==e[5]&&(e[5]="6"),"?"==e[3]&&(e[3]="*"),e[3].indexOf("W")>-1&&(e[3].indexOf(",")>-1||e[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)e[5]=e[5].replace(new RegExp(r,"gi"),n[r].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(e){var n=e.replace(/\D/,""),r=n;return t.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),e.replace(n,r)}));var i={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 o in i)e[4]=e[4].replace(new RegExp(o,"gi"),i[o].toString());"0"==e[0]&&(e[0]=""),/\*|\-|\,|\//.test(e[2])||!/\*|\//.test(e[1])&&!/\*|\//.test(e[0])||(e[2]+="-".concat(e[2]));for(var s=0;s<e.length;s++)if(-1!=e[s].indexOf(",")&&(e[s]=e[s].split(",").filter((function(e){return""!==e})).join(",")||"*"),"*/1"==e[s]&&(e[s]="*"),e[s].indexOf("/")>-1&&!/^\*|\-|\,/.test(e[s])){var a=null;switch(s){case 4:a="12";break;case 5:a="6";break;case 6:a="9999";break;default:a=null}if(null!==a){var u=e[s].split("/");e[s]="".concat(u[0],"-").concat(a,"/").concat(u[1])}}},e.prototype.validate=function(e){this.assertNoInvalidCharacters("DOW",e[5]),this.assertNoInvalidCharacters("DOM",e[3]),this.validateRange(e)},e.prototype.validateRange=function(e){r.default.secondRange(e[0]),r.default.minuteRange(e[1]),r.default.hourRange(e[2]),r.default.dayOfMonthRange(e[3]),r.default.monthRange(e[4],this.monthStartIndexZero),r.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.assertNoInvalidCharacters=function(e,t){var n=t.match(/[A-KM-VX-Z]+/gi);if(n&&n.length)throw new Error("".concat(e," part contains invalid values: '").concat(n.toString(),"'"))},e}();t.CronParser=i},728:(e,t,n)=>{t.n=void 0;var r=n(910),i=n(794),o=function(){function e(t,n){if(this.expression=t,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var r=Object.keys(e.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=e.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,n){var r=void 0===n?{}:n,i=r.throwExceptionOnParseError,o=void 0===i||i,s=r.verbose,a=void 0!==s&&s,u=r.dayOfWeekStartIndexZero,c=void 0===u||u,p=r.monthStartIndexZero,f=void 0!==p&&p,h=r.use24HourTimeFormat,l=r.locale;return new e(t,{throwExceptionOnParseError:o,verbose:a,dayOfWeekStartIndexZero:c,monthStartIndexZero:f,use24HourTimeFormat:h,locale:void 0===l?null:l}).getFullDescription()},e.initialize=function(t,n){void 0===n&&(n="en"),e.specialCharacters=["/","-",",","*"],e.defaultLocale=n,t.load(e.locales)},e.prototype.getFullDescription=function(){var e="";try{var t=new i.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=t.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),o=this.getMonthDescription();e+=n+r+this.getDayOfWeekDescription()+o+this.getYearDescription(),e=(e=this.transformVerbosity(e,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+e.substr(1)}catch(t){if(this.options.throwExceptionOnParseError)throw"".concat(t);e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return e},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],n=this.expressionParts[1],i=this.expressionParts[2],o="";if(r.StringUtilities.containsAny(n,e.specialCharacters)||r.StringUtilities.containsAny(i,e.specialCharacters)||r.StringUtilities.containsAny(t,e.specialCharacters))if(t||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||r.StringUtilities.containsAny(i,e.specialCharacters))if(!t&&i.indexOf(",")>-1&&-1==i.indexOf("-")&&-1==i.indexOf("/")&&!r.StringUtilities.containsAny(n,e.specialCharacters)){var s=i.split(",");o+=this.i18n.at();for(var a=0;a<s.length;a++)o+=" ",o+=this.formatTime(s[a],n,""),a<s.length-2&&(o+=","),a==s.length-2&&(o+=this.i18n.spaceAnd())}else{var u=this.getSecondsDescription(),c=this.getMinutesDescription(),p=this.getHoursDescription();if((o+=u)&&c&&(o+=", "),o+=c,c===p)return o;o&&p&&(o+=", "),o+=p}else{var f=n.split("-");o+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(i,f[0],""),this.formatTime(i,f[1],""))}else o+=this.i18n.atSpace()+this.formatTime(i,n,t);return o},e.prototype.getSecondsDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(e){return e}),(function(t){return r.StringUtilities.format(e.i18n.everyX0Seconds(),t)}),(function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()}),(function(t){return"0"==t?"":parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute():e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute()}))},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(e){return e}),(function(t){return r.StringUtilities.format(e.i18n.everyX0Minutes(),t)}),(function(t){return e.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){try{return"0"==r&&-1==n.indexOf("/")&&""==t?e.i18n.everyHour():parseInt(r)<20?e.i18n.atX0MinutesPastTheHour():e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour()}catch(t){return e.i18n.atX0MinutesPastTheHour()}}))},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2];return this.getSegmentDescription(t,this.i18n.everyHour(),(function(t){return e.formatTime(t,"0","")}),(function(t){return r.StringUtilities.format(e.i18n.everyX0Hours(),t)}),(function(t){return e.i18n.betweenX0AndX1()}),(function(t){return e.i18n.atX0()}))},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(e){var n=e;return e.indexOf("#")>-1?n=e.substr(0,e.indexOf("#")):e.indexOf("L")>-1&&(n=n.replace("L","")),t[parseInt(n)]}),(function(t){return 1==parseInt(t)?"":r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(),t)}),(function(t){return e.i18n.commaX0ThroughX1()}),(function(t){var n=null;if(t.indexOf("#")>-1){var r=null;switch(t.substring(t.indexOf("#")+1)){case"1":r=e.i18n.first();break;case"2":r=e.i18n.second();break;case"3":r=e.i18n.third();break;case"4":r=e.i18n.fourth();break;case"5":r=e.i18n.fifth()}n=e.i18n.commaOnThe()+r+e.i18n.spaceX0OfTheMonth()}else n=t.indexOf("L")>-1?e.i18n.commaOnTheLastX0OfTheMonth():"*"!=e.expressionParts[3]?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0();return n}))},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",(function(e){return t[parseInt(e)-1]}),(function(t){return 1==parseInt(t)?"":r.StringUtilities.format(e.i18n.commaEveryX0Months(),t)}),(function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()}),(function(t){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()}))},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case"L":t=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var i=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(i){var o=parseInt(i[0].replace("W","")),s=1==o?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),o.toString());t=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),s);break}var a=n.match(/L-(\d{1,2})/);if(a){var u=a[1];t=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(),u);break}if("*"==n&&"*"!=this.expressionParts[5])return"";t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(t){return"L"==t?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),t):t}),(function(t){return"1"==t?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days()}),(function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth()}),(function(t){return e.i18n.commaOnDayX0OfTheMonth()}))}return t},e.prototype.getYearDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[6],"",(function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e}),(function(t){return r.StringUtilities.format(e.i18n.commaEveryX0Years(),t)}),(function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()}),(function(t){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()}))},e.prototype.getSegmentDescription=function(e,t,n,i,o,s){var a=null,u=e.indexOf("/")>-1,c=e.indexOf("-")>-1,p=e.indexOf(",")>-1;if(e)if("*"===e)a=t;else if(u||c||p)if(p){for(var f=e.split(","),h="",l=0;l<f.length;l++)if(l>0&&f.length>2&&(h+=",",l<f.length-1&&(h+=" ")),l>0&&f.length>1&&(l==f.length-1||2==f.length)&&(h+="".concat(this.i18n.spaceAnd()," ")),f[l].indexOf("/")>-1||f[l].indexOf("-")>-1){var m=f[l].indexOf("-")>-1&&-1==f[l].indexOf("/"),d=this.getSegmentDescription(f[l],t,n,i,m?this.i18n.commaX0ThroughX1:o,s);m&&(d=d.replace(", ","")),h+=d}else h+=u?this.getSegmentDescription(f[l],t,n,i,o,s):n(f[l]);a=u?h:r.StringUtilities.format(s(e),h)}else if(u){if(f=e.split("/"),a=r.StringUtilities.format(i(f[1]),f[1]),f[0].indexOf("-")>-1){var y=this.generateRangeSegmentDescription(f[0],o,n);0!=y.indexOf(", ")&&(a+=", "),a+=y}else if(-1==f[0].indexOf("*")){var g=r.StringUtilities.format(s(f[0]),n(f[0]));g=g.replace(", ",""),a+=r.StringUtilities.format(this.i18n.commaStartingX0(),g)}}else c&&(a=this.generateRangeSegmentDescription(e,o,n));else a=r.StringUtilities.format(s(e),n(e));else a="";return a},e.prototype.generateRangeSegmentDescription=function(e,t,n){var i="",o=e.split("-"),s=n(o[0]),a=n(o[1]);a=a.replace(":00",":59");var u=t(e);return i+r.StringUtilities.format(u,s,a)},e.prototype.formatTime=function(e,t,n){var r=parseInt(e),i="",o=!1;this.options.use24HourTimeFormat||(i=(o=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(r)," "):" ".concat(this.getPeriod(r)),r>12&&(r-=12),0===r&&(r=12));var s=t,a="";return n&&(a=":".concat(("00"+n).substring(n.length))),"".concat(o?i:"").concat(("00"+r.toString()).substring(r.toString().length),":").concat(("00"+s.toString()).substring(s.toString().length)).concat(a).concat(o?"":i)},e.prototype.transformVerbosity=function(e,t){return t||(e=(e=(e=(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(new RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,"")),e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},e.locales={},e}();t.n=o},586:(e,t)=>{function n(e,t){if(!e)throw new Error(t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.secondRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,"seconds part must be >= 0 and <= 59")}},e.minuteRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,"minutes part must be >= 0 and <= 59")}},e.hourRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=23,"hours part must be >= 0 and <= 23")}},e.dayOfMonthRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=1&&i<=31,"DOM part must be >= 1 and <= 31")}},e.monthRange=function(e,t){for(var r=e.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var o=parseInt(r[i],10);n(o>=1&&o<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},e.dayOfWeekRange=function(e,t){for(var r=e.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var o=parseInt(r[i],10);n(o>=0&&o<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},e}();t.default=r},910:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0;var n=function(){function e(){}return e.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.replace(/%s/g,(function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.shift()}))},e.containsAny=function(e,t){return t.some((function(t){return e.indexOf(t)>-1}))},e}();t.StringUtilities=n}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{default:()=>i,toString:()=>o});var e=n(728);Object.defineProperty(r,"__esModule",{value:!0}),exports.fr=void 0;var t=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.everyMinute=function(){return"toutes les minutes"},e.prototype.everyHour=function(){return"toutes les heures"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},e.prototype.atSpace=function(){return"À "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},e.prototype.at=function(){return"À"},e.prototype.spaceAnd=function(){return" et"},e.prototype.everySecond=function(){return"toutes les secondes"},e.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},e.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},e.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},e.prototype.everyX0Hours=function(){return"toutes les %s heures"},e.prototype.betweenX0AndX1=function(){return"de %s à %s"},e.prototype.atX0=function(){return"à %s"},e.prototype.commaEveryDay=function(){return", tous les jours"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},e.prototype.commaX0ThroughX1=function(){return", de %s à %s"},e.prototype.first=function(){return"premier"},e.prototype.second=function(){return"second"},e.prototype.third=function(){return"troisième"},e.prototype.fourth=function(){return"quatrième"},e.prototype.fifth=function(){return"cinquième"},e.prototype.commaOnThe=function(){return", le "},e.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},e.prototype.lastDay=function(){return"le dernier jour"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},e.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},e.prototype.commaAndOnX0=function(){return", et %s"},e.prototype.commaEveryX0Months=function(){return", tous les %s mois"},e.prototype.commaOnlyInX0=function(){return", uniquement en %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},e.prototype.firstWeekday=function(){return"premier jour ouvrable"},e.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},e.prototype.commaEveryX0Days=function(){return", tous les %s jours"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},e.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},e.prototype.commaEveryX0Years=function(){return", tous les %s ans"},e.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},e.prototype.commaStartingX0=function(){return", départ %s"},e.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},e.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},e}();exports.fr=t,e.n.initialize({load(e){e.fr=new t}},"fr");const i=e.n;let o=e.n.toString})(),r})()}));
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("cronstrue"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("locales/fr", ["cronstrue"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["locales/fr"] = factory(require("cronstrue"));
8
+ else
9
+ root["locales/fr"] = factory(root["cronstrue"]);
10
+ })(globalThis, function(__WEBPACK_EXTERNAL_MODULE__34__) {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 34:
16
+ /***/ ((module) => {
17
+
18
+ module.exports = __WEBPACK_EXTERNAL_MODULE__34__;
19
+
20
+ /***/ })
21
+
22
+ /******/ });
23
+ /************************************************************************/
24
+ /******/ // The module cache
25
+ /******/ var __webpack_module_cache__ = {};
26
+ /******/
27
+ /******/ // The require function
28
+ /******/ function __webpack_require__(moduleId) {
29
+ /******/ // Check if module is in cache
30
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
31
+ /******/ if (cachedModule !== undefined) {
32
+ /******/ return cachedModule.exports;
33
+ /******/ }
34
+ /******/ // Create a new module (and put it into the cache)
35
+ /******/ var module = __webpack_module_cache__[moduleId] = {
36
+ /******/ // no module.id needed
37
+ /******/ // no module.loaded needed
38
+ /******/ exports: {}
39
+ /******/ };
40
+ /******/
41
+ /******/ // Execute the module function
42
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
43
+ /******/
44
+ /******/ // Return the exports of the module
45
+ /******/ return module.exports;
46
+ /******/ }
47
+ /******/
48
+ /************************************************************************/
49
+ /******/ /* webpack/runtime/compat get default export */
50
+ /******/ (() => {
51
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
52
+ /******/ __webpack_require__.n = (module) => {
53
+ /******/ var getter = module && module.__esModule ?
54
+ /******/ () => (module['default']) :
55
+ /******/ () => (module);
56
+ /******/ __webpack_require__.d(getter, { a: getter });
57
+ /******/ return getter;
58
+ /******/ };
59
+ /******/ })();
60
+ /******/
61
+ /******/ /* webpack/runtime/define property getters */
62
+ /******/ (() => {
63
+ /******/ // define getter functions for harmony exports
64
+ /******/ __webpack_require__.d = (exports, definition) => {
65
+ /******/ for(var key in definition) {
66
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
67
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
68
+ /******/ }
69
+ /******/ }
70
+ /******/ };
71
+ /******/ })();
72
+ /******/
73
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
74
+ /******/ (() => {
75
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
76
+ /******/ })();
77
+ /******/
78
+ /******/ /* webpack/runtime/make namespace object */
79
+ /******/ (() => {
80
+ /******/ // define __esModule on exports
81
+ /******/ __webpack_require__.r = (exports) => {
82
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
83
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
84
+ /******/ }
85
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
86
+ /******/ };
87
+ /******/ })();
88
+ /******/
89
+ /************************************************************************/
90
+ var __webpack_exports__ = {};
91
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
92
+ (() => {
93
+ __webpack_require__.r(__webpack_exports__);
94
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
95
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
96
+ /* harmony export */ "toString": () => (/* binding */ toString)
97
+ /* harmony export */ });
98
+ /* harmony import */ var cronstrue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34);
99
+ /* harmony import */ var cronstrue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cronstrue__WEBPACK_IMPORTED_MODULE_0__);
100
+
101
+ Object.defineProperty(__webpack_exports__, "__esModule", ({ value: true }));
102
+ exports.fr = void 0;
103
+ var fr = (function () {
104
+ function fr() {
105
+ }
106
+ fr.prototype.atX0SecondsPastTheMinuteGt20 = function () {
107
+ return null;
108
+ };
109
+ fr.prototype.atX0MinutesPastTheHourGt20 = function () {
110
+ return null;
111
+ };
112
+ fr.prototype.commaMonthX0ThroughMonthX1 = function () {
113
+ return null;
114
+ };
115
+ fr.prototype.commaYearX0ThroughYearX1 = function () {
116
+ return null;
117
+ };
118
+ fr.prototype.use24HourTimeFormatByDefault = function () {
119
+ return false;
120
+ };
121
+ fr.prototype.everyMinute = function () {
122
+ return "toutes les minutes";
123
+ };
124
+ fr.prototype.everyHour = function () {
125
+ return "toutes les heures";
126
+ };
127
+ fr.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {
128
+ return "Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe.";
129
+ };
130
+ fr.prototype.atSpace = function () {
131
+ return "À ";
132
+ };
133
+ fr.prototype.everyMinuteBetweenX0AndX1 = function () {
134
+ return "Toutes les minutes entre %s et %s";
135
+ };
136
+ fr.prototype.at = function () {
137
+ return "À";
138
+ };
139
+ fr.prototype.spaceAnd = function () {
140
+ return " et";
141
+ };
142
+ fr.prototype.everySecond = function () {
143
+ return "toutes les secondes";
144
+ };
145
+ fr.prototype.everyX0Seconds = function () {
146
+ return "toutes les %s secondes";
147
+ };
148
+ fr.prototype.secondsX0ThroughX1PastTheMinute = function () {
149
+ return "les secondes entre %s et %s après la minute";
150
+ };
151
+ fr.prototype.atX0SecondsPastTheMinute = function () {
152
+ return "%s secondes après la minute";
153
+ };
154
+ fr.prototype.everyX0Minutes = function () {
155
+ return "toutes les %s minutes";
156
+ };
157
+ fr.prototype.minutesX0ThroughX1PastTheHour = function () {
158
+ return "les minutes entre %s et %s après l'heure";
159
+ };
160
+ fr.prototype.atX0MinutesPastTheHour = function () {
161
+ return "%s minutes après l'heure";
162
+ };
163
+ fr.prototype.everyX0Hours = function () {
164
+ return "toutes les %s heures";
165
+ };
166
+ fr.prototype.betweenX0AndX1 = function () {
167
+ return "de %s à %s";
168
+ };
169
+ fr.prototype.atX0 = function () {
170
+ return "à %s";
171
+ };
172
+ fr.prototype.commaEveryDay = function () {
173
+ return ", tous les jours";
174
+ };
175
+ fr.prototype.commaEveryX0DaysOfTheWeek = function () {
176
+ return ", every %s days of the week";
177
+ };
178
+ fr.prototype.commaX0ThroughX1 = function () {
179
+ return ", de %s à %s";
180
+ };
181
+ fr.prototype.first = function () {
182
+ return "premier";
183
+ };
184
+ fr.prototype.second = function () {
185
+ return "second";
186
+ };
187
+ fr.prototype.third = function () {
188
+ return "troisième";
189
+ };
190
+ fr.prototype.fourth = function () {
191
+ return "quatrième";
192
+ };
193
+ fr.prototype.fifth = function () {
194
+ return "cinquième";
195
+ };
196
+ fr.prototype.commaOnThe = function () {
197
+ return ", le ";
198
+ };
199
+ fr.prototype.spaceX0OfTheMonth = function () {
200
+ return " %s du mois";
201
+ };
202
+ fr.prototype.lastDay = function () {
203
+ return "le dernier jour";
204
+ };
205
+ fr.prototype.commaOnTheLastX0OfTheMonth = function () {
206
+ return ", le dernier %s du mois";
207
+ };
208
+ fr.prototype.commaOnlyOnX0 = function () {
209
+ return ", uniquement le %s";
210
+ };
211
+ fr.prototype.commaAndOnX0 = function () {
212
+ return ", et %s";
213
+ };
214
+ fr.prototype.commaEveryX0Months = function () {
215
+ return ", tous les %s mois";
216
+ };
217
+ fr.prototype.commaOnlyInX0 = function () {
218
+ return ", uniquement en %s";
219
+ };
220
+ fr.prototype.commaOnTheLastDayOfTheMonth = function () {
221
+ return ", le dernier jour du mois";
222
+ };
223
+ fr.prototype.commaOnTheLastWeekdayOfTheMonth = function () {
224
+ return ", le dernier jour ouvrable du mois";
225
+ };
226
+ fr.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
227
+ return ", %s jours avant le dernier jour du mois";
228
+ };
229
+ fr.prototype.firstWeekday = function () {
230
+ return "premier jour ouvrable";
231
+ };
232
+ fr.prototype.weekdayNearestDayX0 = function () {
233
+ return "jour ouvrable le plus proche du %s";
234
+ };
235
+ fr.prototype.commaOnTheX0OfTheMonth = function () {
236
+ return ", le %s du mois";
237
+ };
238
+ fr.prototype.commaEveryX0Days = function () {
239
+ return ", tous les %s jours";
240
+ };
241
+ fr.prototype.commaBetweenDayX0AndX1OfTheMonth = function () {
242
+ return ", du %s au %s du mois";
243
+ };
244
+ fr.prototype.commaOnDayX0OfTheMonth = function () {
245
+ return ", le %s du mois";
246
+ };
247
+ fr.prototype.commaEveryX0Years = function () {
248
+ return ", tous les %s ans";
249
+ };
250
+ fr.prototype.commaDaysX0ThroughX1 = function () {
251
+ return ", du %s au %s";
252
+ };
253
+ fr.prototype.commaStartingX0 = function () {
254
+ return ", départ %s";
255
+ };
256
+ fr.prototype.daysOfTheWeek = function () {
257
+ return ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"];
258
+ };
259
+ fr.prototype.monthsOfTheYear = function () {
260
+ return [
261
+ "janvier",
262
+ "février",
263
+ "mars",
264
+ "avril",
265
+ "mai",
266
+ "juin",
267
+ "juillet",
268
+ "août",
269
+ "septembre",
270
+ "octobre",
271
+ "novembre",
272
+ "décembre",
273
+ ];
274
+ };
275
+ return fr;
276
+ }());
277
+ exports.fr = fr;
278
+
279
+
280
+ (cronstrue__WEBPACK_IMPORTED_MODULE_0___default().locales.fr) = new fr();
281
+ const toString = (cronstrue__WEBPACK_IMPORTED_MODULE_0___default().toString);
282
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((cronstrue__WEBPACK_IMPORTED_MODULE_0___default()));
283
+
284
+
285
+ })();
286
+
287
+ /******/ return __webpack_exports__;
288
+ /******/ })()
289
+ ;
290
+ });
package/locales/fr.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("locales/fr.min",[],t):"object"==typeof exports?exports["locales/fr.min"]=t():e["locales/fr.min"]=t()}(globalThis,(function(){return(()=>{"use strict";var e={794:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CronParser=void 0;var r=n(586),i=function(){function e(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=n}return e.prototype.parse=function(){var e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},e.prototype.extractParts=function(e){if(!this.expression)throw new Error("Expression is empty");var t=e.trim().split(/[ ]+/);if(t.length<5)throw new Error("Expression has only ".concat(t.length," part").concat(1==t.length?"":"s",". At least 5 parts are required."));if(5==t.length)t.unshift(""),t.push("");else if(6==t.length)/\d{4}$/.test(t[5])||"?"==t[4]||"?"==t[2]?t.unshift(""):t.push("");else if(t.length>7)throw new Error("Expression has ".concat(t.length," parts; too many!"));return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace("?","*"),e[5]=e[5].replace("?","*"),e[2]=e[2].replace("?","*"),0==e[0].indexOf("0/")&&(e[0]=e[0].replace("0/","*/")),0==e[1].indexOf("0/")&&(e[1]=e[1].replace("0/","*/")),0==e[2].indexOf("0/")&&(e[2]=e[2].replace("0/","*/")),0==e[3].indexOf("1/")&&(e[3]=e[3].replace("1/","*/")),0==e[4].indexOf("1/")&&(e[4]=e[4].replace("1/","*/")),0==e[6].indexOf("1/")&&(e[6]=e[6].replace("1/","*/")),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,(function(e){var n=e.replace(/\D/,""),r=n;return t.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),e.replace(n,r)})),"L"==e[5]&&(e[5]="6"),"?"==e[3]&&(e[3]="*"),e[3].indexOf("W")>-1&&(e[3].indexOf(",")>-1||e[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)e[5]=e[5].replace(new RegExp(r,"gi"),n[r].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(e){var n=e.replace(/\D/,""),r=n;return t.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),e.replace(n,r)}));var i={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 o in i)e[4]=e[4].replace(new RegExp(o,"gi"),i[o].toString());"0"==e[0]&&(e[0]=""),/\*|\-|\,|\//.test(e[2])||!/\*|\//.test(e[1])&&!/\*|\//.test(e[0])||(e[2]+="-".concat(e[2]));for(var s=0;s<e.length;s++)if(-1!=e[s].indexOf(",")&&(e[s]=e[s].split(",").filter((function(e){return""!==e})).join(",")||"*"),"*/1"==e[s]&&(e[s]="*"),e[s].indexOf("/")>-1&&!/^\*|\-|\,/.test(e[s])){var a=null;switch(s){case 4:a="12";break;case 5:a="6";break;case 6:a="9999";break;default:a=null}if(null!==a){var u=e[s].split("/");e[s]="".concat(u[0],"-").concat(a,"/").concat(u[1])}}},e.prototype.validate=function(e){this.assertNoInvalidCharacters("DOW",e[5]),this.assertNoInvalidCharacters("DOM",e[3]),this.validateRange(e)},e.prototype.validateRange=function(e){r.default.secondRange(e[0]),r.default.minuteRange(e[1]),r.default.hourRange(e[2]),r.default.dayOfMonthRange(e[3]),r.default.monthRange(e[4],this.monthStartIndexZero),r.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.assertNoInvalidCharacters=function(e,t){var n=t.match(/[A-KM-VX-Z]+/gi);if(n&&n.length)throw new Error("".concat(e," part contains invalid values: '").concat(n.toString(),"'"))},e}();t.CronParser=i},728:(e,t,n)=>{t.n=void 0;var r=n(910),i=n(794),o=function(){function e(t,n){if(this.expression=t,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var r=Object.keys(e.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=e.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,n){var r=void 0===n?{}:n,i=r.throwExceptionOnParseError,o=void 0===i||i,s=r.verbose,a=void 0!==s&&s,u=r.dayOfWeekStartIndexZero,c=void 0===u||u,p=r.monthStartIndexZero,f=void 0!==p&&p,h=r.use24HourTimeFormat,l=r.locale;return new e(t,{throwExceptionOnParseError:o,verbose:a,dayOfWeekStartIndexZero:c,monthStartIndexZero:f,use24HourTimeFormat:h,locale:void 0===l?null:l}).getFullDescription()},e.initialize=function(t,n){void 0===n&&(n="en"),e.specialCharacters=["/","-",",","*"],e.defaultLocale=n,t.load(e.locales)},e.prototype.getFullDescription=function(){var e="";try{var t=new i.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=t.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),o=this.getMonthDescription();e+=n+r+this.getDayOfWeekDescription()+o+this.getYearDescription(),e=(e=this.transformVerbosity(e,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+e.substr(1)}catch(t){if(this.options.throwExceptionOnParseError)throw"".concat(t);e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return e},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],n=this.expressionParts[1],i=this.expressionParts[2],o="";if(r.StringUtilities.containsAny(n,e.specialCharacters)||r.StringUtilities.containsAny(i,e.specialCharacters)||r.StringUtilities.containsAny(t,e.specialCharacters))if(t||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||r.StringUtilities.containsAny(i,e.specialCharacters))if(!t&&i.indexOf(",")>-1&&-1==i.indexOf("-")&&-1==i.indexOf("/")&&!r.StringUtilities.containsAny(n,e.specialCharacters)){var s=i.split(",");o+=this.i18n.at();for(var a=0;a<s.length;a++)o+=" ",o+=this.formatTime(s[a],n,""),a<s.length-2&&(o+=","),a==s.length-2&&(o+=this.i18n.spaceAnd())}else{var u=this.getSecondsDescription(),c=this.getMinutesDescription(),p=this.getHoursDescription();if((o+=u)&&c&&(o+=", "),o+=c,c===p)return o;o&&p&&(o+=", "),o+=p}else{var f=n.split("-");o+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(i,f[0],""),this.formatTime(i,f[1],""))}else o+=this.i18n.atSpace()+this.formatTime(i,n,t);return o},e.prototype.getSecondsDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(e){return e}),(function(t){return r.StringUtilities.format(e.i18n.everyX0Seconds(),t)}),(function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()}),(function(t){return"0"==t?"":parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute():e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute()}))},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(e){return e}),(function(t){return r.StringUtilities.format(e.i18n.everyX0Minutes(),t)}),(function(t){return e.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){try{return"0"==r&&-1==n.indexOf("/")&&""==t?e.i18n.everyHour():parseInt(r)<20?e.i18n.atX0MinutesPastTheHour():e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour()}catch(t){return e.i18n.atX0MinutesPastTheHour()}}))},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2];return this.getSegmentDescription(t,this.i18n.everyHour(),(function(t){return e.formatTime(t,"0","")}),(function(t){return r.StringUtilities.format(e.i18n.everyX0Hours(),t)}),(function(t){return e.i18n.betweenX0AndX1()}),(function(t){return e.i18n.atX0()}))},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(e){var n=e;return e.indexOf("#")>-1?n=e.substr(0,e.indexOf("#")):e.indexOf("L")>-1&&(n=n.replace("L","")),t[parseInt(n)]}),(function(t){return 1==parseInt(t)?"":r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(),t)}),(function(t){return e.i18n.commaX0ThroughX1()}),(function(t){var n=null;if(t.indexOf("#")>-1){var r=null;switch(t.substring(t.indexOf("#")+1)){case"1":r=e.i18n.first();break;case"2":r=e.i18n.second();break;case"3":r=e.i18n.third();break;case"4":r=e.i18n.fourth();break;case"5":r=e.i18n.fifth()}n=e.i18n.commaOnThe()+r+e.i18n.spaceX0OfTheMonth()}else n=t.indexOf("L")>-1?e.i18n.commaOnTheLastX0OfTheMonth():"*"!=e.expressionParts[3]?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0();return n}))},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",(function(e){return t[parseInt(e)-1]}),(function(t){return 1==parseInt(t)?"":r.StringUtilities.format(e.i18n.commaEveryX0Months(),t)}),(function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()}),(function(t){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()}))},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case"L":t=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var i=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(i){var o=parseInt(i[0].replace("W","")),s=1==o?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),o.toString());t=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),s);break}var a=n.match(/L-(\d{1,2})/);if(a){var u=a[1];t=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(),u);break}if("*"==n&&"*"!=this.expressionParts[5])return"";t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(t){return"L"==t?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),t):t}),(function(t){return"1"==t?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days()}),(function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth()}),(function(t){return e.i18n.commaOnDayX0OfTheMonth()}))}return t},e.prototype.getYearDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[6],"",(function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e}),(function(t){return r.StringUtilities.format(e.i18n.commaEveryX0Years(),t)}),(function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()}),(function(t){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()}))},e.prototype.getSegmentDescription=function(e,t,n,i,o,s){var a=null,u=e.indexOf("/")>-1,c=e.indexOf("-")>-1,p=e.indexOf(",")>-1;if(e)if("*"===e)a=t;else if(u||c||p)if(p){for(var f=e.split(","),h="",l=0;l<f.length;l++)if(l>0&&f.length>2&&(h+=",",l<f.length-1&&(h+=" ")),l>0&&f.length>1&&(l==f.length-1||2==f.length)&&(h+="".concat(this.i18n.spaceAnd()," ")),f[l].indexOf("/")>-1||f[l].indexOf("-")>-1){var m=f[l].indexOf("-")>-1&&-1==f[l].indexOf("/"),d=this.getSegmentDescription(f[l],t,n,i,m?this.i18n.commaX0ThroughX1:o,s);m&&(d=d.replace(", ","")),h+=d}else h+=u?this.getSegmentDescription(f[l],t,n,i,o,s):n(f[l]);a=u?h:r.StringUtilities.format(s(e),h)}else if(u){if(f=e.split("/"),a=r.StringUtilities.format(i(f[1]),f[1]),f[0].indexOf("-")>-1){var y=this.generateRangeSegmentDescription(f[0],o,n);0!=y.indexOf(", ")&&(a+=", "),a+=y}else if(-1==f[0].indexOf("*")){var g=r.StringUtilities.format(s(f[0]),n(f[0]));g=g.replace(", ",""),a+=r.StringUtilities.format(this.i18n.commaStartingX0(),g)}}else c&&(a=this.generateRangeSegmentDescription(e,o,n));else a=r.StringUtilities.format(s(e),n(e));else a="";return a},e.prototype.generateRangeSegmentDescription=function(e,t,n){var i="",o=e.split("-"),s=n(o[0]),a=n(o[1]);a=a.replace(":00",":59");var u=t(e);return i+r.StringUtilities.format(u,s,a)},e.prototype.formatTime=function(e,t,n){var r=parseInt(e),i="",o=!1;this.options.use24HourTimeFormat||(i=(o=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(r)," "):" ".concat(this.getPeriod(r)),r>12&&(r-=12),0===r&&(r=12));var s=t,a="";return n&&(a=":".concat(("00"+n).substring(n.length))),"".concat(o?i:"").concat(("00"+r.toString()).substring(r.toString().length),":").concat(("00"+s.toString()).substring(s.toString().length)).concat(a).concat(o?"":i)},e.prototype.transformVerbosity=function(e,t){return t||(e=(e=(e=(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(new RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,"")),e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},e.locales={},e}();t.n=o},586:(e,t)=>{function n(e,t){if(!e)throw new Error(t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.secondRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,"seconds part must be >= 0 and <= 59")}},e.minuteRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,"minutes part must be >= 0 and <= 59")}},e.hourRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=23,"hours part must be >= 0 and <= 23")}},e.dayOfMonthRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=1&&i<=31,"DOM part must be >= 1 and <= 31")}},e.monthRange=function(e,t){for(var r=e.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var o=parseInt(r[i],10);n(o>=1&&o<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},e.dayOfWeekRange=function(e,t){for(var r=e.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var o=parseInt(r[i],10);n(o>=0&&o<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},e}();t.default=r},910:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0;var n=function(){function e(){}return e.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.replace(/%s/g,(function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.shift()}))},e.containsAny=function(e,t){return t.some((function(t){return e.indexOf(t)>-1}))},e}();t.StringUtilities=n}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{default:()=>i,toString:()=>o});var e=n(728);Object.defineProperty(r,"__esModule",{value:!0}),exports.fr=void 0;var t=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.everyMinute=function(){return"toutes les minutes"},e.prototype.everyHour=function(){return"toutes les heures"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},e.prototype.atSpace=function(){return"À "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},e.prototype.at=function(){return"À"},e.prototype.spaceAnd=function(){return" et"},e.prototype.everySecond=function(){return"toutes les secondes"},e.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},e.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},e.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},e.prototype.everyX0Hours=function(){return"toutes les %s heures"},e.prototype.betweenX0AndX1=function(){return"de %s à %s"},e.prototype.atX0=function(){return"à %s"},e.prototype.commaEveryDay=function(){return", tous les jours"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},e.prototype.commaX0ThroughX1=function(){return", de %s à %s"},e.prototype.first=function(){return"premier"},e.prototype.second=function(){return"second"},e.prototype.third=function(){return"troisième"},e.prototype.fourth=function(){return"quatrième"},e.prototype.fifth=function(){return"cinquième"},e.prototype.commaOnThe=function(){return", le "},e.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},e.prototype.lastDay=function(){return"le dernier jour"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},e.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},e.prototype.commaAndOnX0=function(){return", et %s"},e.prototype.commaEveryX0Months=function(){return", tous les %s mois"},e.prototype.commaOnlyInX0=function(){return", uniquement en %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},e.prototype.firstWeekday=function(){return"premier jour ouvrable"},e.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},e.prototype.commaEveryX0Days=function(){return", tous les %s jours"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},e.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},e.prototype.commaEveryX0Years=function(){return", tous les %s ans"},e.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},e.prototype.commaStartingX0=function(){return", départ %s"},e.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},e.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},e}();exports.fr=t,e.n.initialize({load(e){e.fr=new t}},"fr");const i=e.n;let o=e.n.toString})(),r})()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/fr.min",["cronstrue"],t):"object"==typeof exports?exports["locales/fr.min"]=t(require("cronstrue")):e["locales/fr.min"]=t(e.cronstrue)}(globalThis,(function(e){return(()=>{"use strict";var t={34:t=>{t.exports=e}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var u=r[e]={exports:{}};return t[e](u,u.exports,o),u.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{default:()=>s,toString:()=>u});var e=o(34),t=o.n(e);Object.defineProperty(n,"__esModule",{value:!0}),exports.fr=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.everyMinute=function(){return"toutes les minutes"},e.prototype.everyHour=function(){return"toutes les heures"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en générant la description de l'expression cron. Vérifiez sa syntaxe."},e.prototype.atSpace=function(){return"À "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},e.prototype.at=function(){return"À"},e.prototype.spaceAnd=function(){return" et"},e.prototype.everySecond=function(){return"toutes les secondes"},e.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s après la minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes après la minute"},e.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s après l'heure"},e.prototype.atX0MinutesPastTheHour=function(){return"%s minutes après l'heure"},e.prototype.everyX0Hours=function(){return"toutes les %s heures"},e.prototype.betweenX0AndX1=function(){return"de %s à %s"},e.prototype.atX0=function(){return"à %s"},e.prototype.commaEveryDay=function(){return", tous les jours"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},e.prototype.commaX0ThroughX1=function(){return", de %s à %s"},e.prototype.first=function(){return"premier"},e.prototype.second=function(){return"second"},e.prototype.third=function(){return"troisième"},e.prototype.fourth=function(){return"quatrième"},e.prototype.fifth=function(){return"cinquième"},e.prototype.commaOnThe=function(){return", le "},e.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},e.prototype.lastDay=function(){return"le dernier jour"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},e.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},e.prototype.commaAndOnX0=function(){return", et %s"},e.prototype.commaEveryX0Months=function(){return", tous les %s mois"},e.prototype.commaOnlyInX0=function(){return", uniquement en %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},e.prototype.firstWeekday=function(){return"premier jour ouvrable"},e.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},e.prototype.commaEveryX0Days=function(){return", tous les %s jours"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},e.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},e.prototype.commaEveryX0Years=function(){return", tous les %s ans"},e.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},e.prototype.commaStartingX0=function(){return", départ %s"},e.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},e.prototype.monthsOfTheYear=function(){return["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},e}();exports.fr=r,t().locales.fr=new r;const u=t().toString,s=t()})(),n})()}));