UNPKG

date-fns

Version:

Modern JavaScript date utility library

2,009 lines (1,971 loc) 1.01 MB
function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:String(i);}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}(function(_window$dateFns){var __defProp=Object.defineProperty; var __export=function __export(target,all){ for(var name in all) __defProp(target,name,{ get:all[name], enumerable:true, configurable:true, set:function set(newValue){return all[name]=function(){return newValue;};} }); }; // lib/locale.mjs var exports_locale={}; __export(exports_locale,{ zhTW:function zhTW(){ { return _zhTW; } }, zhHK:function zhHK(){ { return _zhHK; } }, zhCN:function zhCN(){ { return _zhCN; } }, vi:function vi(){ { return _vi; } }, uzCyrl:function uzCyrl(){ { return _uzCyrl; } }, uz:function uz(){ { return _uz; } }, uk:function uk(){ { return _uk; } }, ug:function ug(){ { return _ug; } }, tr:function tr(){ { return _tr; } }, th:function th(){ { return _th; } }, te:function te(){ { return _te; } }, ta:function ta(){ { return _ta; } }, sv:function sv(){ { return _sv; } }, srLatn:function srLatn(){ { return _srLatn; } }, sr:function sr(){ { return _sr; } }, sq:function sq(){ { return _sq; } }, sl:function sl(){ { return _sl; } }, sk:function sk(){ { return _sk; } }, se:function se(){ { return _se; } }, ru:function ru(){ { return _ru; } }, ro:function ro(){ { return _ro; } }, ptBR:function ptBR(){ { return _ptBR; } }, pt:function pt(){ { return _pt; } }, pl:function pl(){ { return _pl; } }, oc:function oc(){ { return _oc; } }, nn:function nn(){ { return _nn; } }, nlBE:function nlBE(){ { return _nlBE; } }, nl:function nl(){ { return _nl; } }, nb:function nb(){ { return _nb; } }, mt:function mt(){ { return _mt; } }, ms:function ms(){ { return _ms; } }, mn:function mn(){ { return _mn; } }, mk:function mk(){ { return _mk; } }, lv:function lv(){ { return _lv; } }, lt:function lt(){ { return _lt; } }, lb:function lb(){ { return _lb; } }, ko:function ko(){ { return _ko; } }, kn:function kn(){ { return _kn; } }, km:function km(){ { return _km; } }, kk:function kk(){ { return _kk; } }, ka:function ka(){ { return _ka; } }, jaHira:function jaHira(){ { return _jaHira; } }, ja:function ja(){ { return _ja; } }, itCH:function itCH(){ { return _itCH; } }, it:function it(){ { return _it; } }, is:function is(){ { return _is; } }, id:function id(){ { return _id; } }, hy:function hy(){ { return _hy; } }, hu:function hu(){ { return _hu; } }, ht:function ht(){ { return _ht; } }, hr:function hr(){ { return _hr; } }, hi:function hi(){ { return _hi; } }, he:function he(){ { return _he; } }, gu:function gu(){ { return _gu; } }, gl:function gl(){ { return _gl; } }, gd:function gd(){ { return _gd; } }, fy:function fy(){ { return _fy; } }, frCH:function frCH(){ { return _frCH; } }, frCA:function frCA(){ { return _frCA; } }, fr:function fr(){ { return _fr; } }, fi:function fi(){ { return _fi; } }, faIR:function faIR(){ { return _faIR; } }, eu:function eu(){ { return _eu; } }, et:function et(){ { return _et; } }, es:function es(){ { return _es; } }, eo:function eo(){ { return _eo; } }, enZA:function enZA(){ { return _enZA; } }, enUS:function enUS(){ { return _enUS; } }, enNZ:function enNZ(){ { return _enNZ; } }, enIN:function enIN(){ { return _enIN; } }, enIE:function enIE(){ { return _enIE; } }, enGB:function enGB(){ { return _enGB; } }, enCA:function enCA(){ { return _enCA; } }, enAU:function enAU(){ { return _enAU; } }, el:function el(){ { return _el; } }, deAT:function deAT(){ { return _deAT; } }, de:function de(){ { return _de; } }, da:function da(){ { return _da; } }, cy:function cy(){ { return _cy; } }, cs:function cs(){ { return _cs; } }, ckb:function ckb(){ { return _ckb; } }, ca:function ca(){ { return _ca; } }, bs:function bs(){ { return _bs; } }, bn:function bn(){ { return _bn; } }, bg:function bg(){ { return _bg; } }, beTarask:function beTarask(){ { return _beTarask; } }, be:function be(){ { return _be; } }, az:function az(){ { return _az; } }, arTN:function arTN(){ { return _arTN; } }, arSA:function arSA(){ { return _arSA; } }, arMA:function arMA(){ { return _arMA; } }, arEG:function arEG(){ { return _arEG; } }, arDZ:function arDZ(){ { return _arDZ; } }, ar:function ar(){ { return _ar; } }, af:function af(){ { return _af; } } }); // lib/locale/af/_lib/formatDistance.mjs var formatDistanceLocale={ lessThanXSeconds:{ one:"minder as 'n sekonde", other:"minder as {{count}} sekondes" }, xSeconds:{ one:"1 sekonde", other:"{{count}} sekondes" }, halfAMinute:"'n halwe minuut", lessThanXMinutes:{ one:"minder as 'n minuut", other:"minder as {{count}} minute" }, xMinutes:{ one:"'n minuut", other:"{{count}} minute" }, aboutXHours:{ one:"ongeveer 1 uur", other:"ongeveer {{count}} ure" }, xHours:{ one:"1 uur", other:"{{count}} ure" }, xDays:{ one:"1 dag", other:"{{count}} dae" }, aboutXWeeks:{ one:"ongeveer 1 week", other:"ongeveer {{count}} weke" }, xWeeks:{ one:"1 week", other:"{{count}} weke" }, aboutXMonths:{ one:"ongeveer 1 maand", other:"ongeveer {{count}} maande" }, xMonths:{ one:"1 maand", other:"{{count}} maande" }, aboutXYears:{ one:"ongeveer 1 jaar", other:"ongeveer {{count}} jaar" }, xYears:{ one:"1 jaar", other:"{{count}} jaar" }, overXYears:{ one:"meer as 1 jaar", other:"meer as {{count}} jaar" }, almostXYears:{ one:"byna 1 jaar", other:"byna {{count}} jaar" } }; var formatDistance=function formatDistance(token,count,options){ var result; var tokenValue=formatDistanceLocale[token]; if(typeof tokenValue==="string"){ result=tokenValue; }else if(count===1){ result=tokenValue.one; }else{ result=tokenValue.other.replace("{{count}}",String(count)); } if(options!==null&&options!==void 0&&options.addSuffix){ if(options.comparison&&options.comparison>0){ return"oor "+result; }else{ return result+" gelede"; } } return result; }; // lib/locale/_lib/buildFormatLongFn.mjs function buildFormatLongFn(args){ return function(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{}; var width=options.width?String(options.width):args.defaultWidth; var format=args.formats[width]||args.formats[args.defaultWidth]; return format; }; } // lib/locale/af/_lib/formatLong.mjs var dateFormats={ full:"EEEE, d MMMM yyyy", long:"d MMMM yyyy", medium:"d MMM yyyy", short:"yyyy/MM/dd" }; var timeFormats={ full:"HH:mm:ss zzzz", long:"HH:mm:ss z", medium:"HH:mm:ss", short:"HH:mm" }; var dateTimeFormats={ full:"{{date}} 'om' {{time}}", long:"{{date}} 'om' {{time}}", medium:"{{date}}, {{time}}", short:"{{date}}, {{time}}" }; var formatLong={ date:buildFormatLongFn({ formats:dateFormats, defaultWidth:"full" }), time:buildFormatLongFn({ formats:timeFormats, defaultWidth:"full" }), dateTime:buildFormatLongFn({ formats:dateTimeFormats, defaultWidth:"full" }) }; // lib/locale/af/_lib/formatRelative.mjs var formatRelativeLocale={ lastWeek:"'verlede' eeee 'om' p", yesterday:"'gister om' p", today:"'vandag om' p", tomorrow:"'m\xF4re om' p", nextWeek:"eeee 'om' p", other:"P" }; var formatRelative=function formatRelative(token,_date,_baseDate,_options){return formatRelativeLocale[token];}; // lib/locale/_lib/buildLocalizeFn.mjs function buildLocalizeFn(args){ return function(value,options){ var context=options!==null&&options!==void 0&&options.context?String(options.context):"standalone"; var valuesArray; if(context==="formatting"&&args.formattingValues){ var defaultWidth=args.defaultFormattingWidth||args.defaultWidth; var width=options!==null&&options!==void 0&&options.width?String(options.width):defaultWidth; valuesArray=args.formattingValues[width]||args.formattingValues[defaultWidth]; }else{ var _defaultWidth=args.defaultWidth; var _width=options!==null&&options!==void 0&&options.width?String(options.width):args.defaultWidth; valuesArray=args.values[_width]||args.values[_defaultWidth]; } var index=args.argumentCallback?args.argumentCallback(value):value; return valuesArray[index]; }; } // lib/locale/af/_lib/localize.mjs var eraValues={ narrow:["vC","nC"], abbreviated:["vC","nC"], wide:["voor Christus","na Christus"] }; var quarterValues={ narrow:["1","2","3","4"], abbreviated:["K1","K2","K3","K4"], wide:["1ste kwartaal","2de kwartaal","3de kwartaal","4de kwartaal"] }; var monthValues={ narrow:["J","F","M","A","M","J","J","A","S","O","N","D"], abbreviated:[ "Jan", "Feb", "Mrt", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"], wide:[ "Januarie", "Februarie", "Maart", "April", "Mei", "Junie", "Julie", "Augustus", "September", "Oktober", "November", "Desember"] }; var dayValues={ narrow:["S","M","D","W","D","V","S"], short:["So","Ma","Di","Wo","Do","Vr","Sa"], abbreviated:["Son","Maa","Din","Woe","Don","Vry","Sat"], wide:[ "Sondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrydag", "Saterdag"] }; var dayPeriodValues={ narrow:{ am:"vm", pm:"nm", midnight:"middernag", noon:"middaguur", morning:"oggend", afternoon:"middag", evening:"laat middag", night:"aand" }, abbreviated:{ am:"vm", pm:"nm", midnight:"middernag", noon:"middaguur", morning:"oggend", afternoon:"middag", evening:"laat middag", night:"aand" }, wide:{ am:"vm", pm:"nm", midnight:"middernag", noon:"middaguur", morning:"oggend", afternoon:"middag", evening:"laat middag", night:"aand" } }; var formattingDayPeriodValues={ narrow:{ am:"vm", pm:"nm", midnight:"middernag", noon:"uur die middag", morning:"uur die oggend", afternoon:"uur die middag", evening:"uur die aand", night:"uur die aand" }, abbreviated:{ am:"vm", pm:"nm", midnight:"middernag", noon:"uur die middag", morning:"uur die oggend", afternoon:"uur die middag", evening:"uur die aand", night:"uur die aand" }, wide:{ am:"vm", pm:"nm", midnight:"middernag", noon:"uur die middag", morning:"uur die oggend", afternoon:"uur die middag", evening:"uur die aand", night:"uur die aand" } }; var ordinalNumber=function ordinalNumber(dirtyNumber){ var number=Number(dirtyNumber); var rem100=number%100; if(rem100<20){ switch(rem100){ case 1: case 8: return number+"ste"; default: return number+"de"; } } return number+"ste"; }; var localize={ ordinalNumber:ordinalNumber, era:buildLocalizeFn({ values:eraValues, defaultWidth:"wide" }), quarter:buildLocalizeFn({ values:quarterValues, defaultWidth:"wide", argumentCallback:function argumentCallback(quarter){return quarter-1;} }), month:buildLocalizeFn({ values:monthValues, defaultWidth:"wide" }), day:buildLocalizeFn({ values:dayValues, defaultWidth:"wide" }), dayPeriod:buildLocalizeFn({ values:dayPeriodValues, defaultWidth:"wide", formattingValues:formattingDayPeriodValues, defaultFormattingWidth:"wide" }) }; // lib/locale/_lib/buildMatchFn.mjs function buildMatchFn(args){ return function(string){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{}; var width=options.width; var matchPattern=width&&args.matchPatterns[width]||args.matchPatterns[args.defaultMatchWidth]; var matchResult=string.match(matchPattern); if(!matchResult){ return null; } var matchedString=matchResult[0]; var parsePatterns=width&&args.parsePatterns[width]||args.parsePatterns[args.defaultParseWidth]; var key=Array.isArray(parsePatterns)?findIndex(parsePatterns,function(pattern){return pattern.test(matchedString);}):findKey(parsePatterns,function(pattern){return pattern.test(matchedString);}); var value; value=args.valueCallback?args.valueCallback(key):key; value=options.valueCallback?options.valueCallback(value):value; var rest=string.slice(matchedString.length); return{value:value,rest:rest}; }; } var findKey=function findKey(object,predicate){ for(var key in object){ if(Object.prototype.hasOwnProperty.call(object,key)&&predicate(object[key])){ return key; } } return; }; var findIndex=function findIndex(array,predicate){ for(var key=0;key<array.length;key++){ if(predicate(array[key])){ return key; } } return; }; // lib/locale/_lib/buildMatchPatternFn.mjs function buildMatchPatternFn(args){ return function(string){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{}; var matchResult=string.match(args.matchPattern); if(!matchResult) return null; var matchedString=matchResult[0]; var parseResult=string.match(args.parsePattern); if(!parseResult) return null; var value=args.valueCallback?args.valueCallback(parseResult[0]):parseResult[0]; value=options.valueCallback?options.valueCallback(value):value; var rest=string.slice(matchedString.length); return{value:value,rest:rest}; }; } // lib/locale/af/_lib/match.mjs var matchOrdinalNumberPattern=/^(\d+)(ste|de)?/i; var parseOrdinalNumberPattern=/\d+/i; var matchEraPatterns={ narrow:/^([vn]\.? ?C\.?)/, abbreviated:/^([vn]\. ?C\.?)/, wide:/^((voor|na) Christus)/ }; var parseEraPatterns={ any:[/^v/,/^n/] }; var matchQuarterPatterns={ narrow:/^[1234]/i, abbreviated:/^K[1234]/i, wide:/^[1234](st|d)e kwartaal/i }; var parseQuarterPatterns={ any:[/1/i,/2/i,/3/i,/4/i] }; var matchMonthPatterns={ narrow:/^[jfmasond]/i, abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i, wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i }; var parseMonthPatterns={ narrow:[ /^J/i, /^F/i, /^M/i, /^A/i, /^M/i, /^J/i, /^J/i, /^A/i, /^S/i, /^O/i, /^N/i, /^D/i], any:[ /^Jan/i, /^Feb/i, /^Mrt/i, /^Apr/i, /^Mei/i, /^Jun/i, /^Jul/i, /^Aug/i, /^Sep/i, /^Okt/i, /^Nov/i, /^Dec/i] }; var matchDayPatterns={ narrow:/^[smdwv]/i, short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i, abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i, wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i }; var parseDayPatterns={ narrow:[/^S/i,/^M/i,/^D/i,/^W/i,/^D/i,/^V/i,/^S/i], any:[/^So/i,/^Ma/i,/^Di/i,/^Wo/i,/^Do/i,/^Vr/i,/^Sa/i] }; var matchDayPeriodPatterns={ any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i }; var parseDayPeriodPatterns={ any:{ am:/^vm/i, pm:/^nm/i, midnight:/^middernag/i, noon:/^middaguur/i, morning:/oggend/i, afternoon:/middag/i, evening:/laat middag/i, night:/aand/i } }; var match={ ordinalNumber:buildMatchPatternFn({ matchPattern:matchOrdinalNumberPattern, parsePattern:parseOrdinalNumberPattern, valueCallback:function valueCallback(value){return parseInt(value,10);} }), era:buildMatchFn({ matchPatterns:matchEraPatterns, defaultMatchWidth:"wide", parsePatterns:parseEraPatterns, defaultParseWidth:"any" }), quarter:buildMatchFn({ matchPatterns:matchQuarterPatterns, defaultMatchWidth:"wide", parsePatterns:parseQuarterPatterns, defaultParseWidth:"any", valueCallback:function valueCallback(index){return index+1;} }), month:buildMatchFn({ matchPatterns:matchMonthPatterns, defaultMatchWidth:"wide", parsePatterns:parseMonthPatterns, defaultParseWidth:"any" }), day:buildMatchFn({ matchPatterns:matchDayPatterns, defaultMatchWidth:"wide", parsePatterns:parseDayPatterns, defaultParseWidth:"any" }), dayPeriod:buildMatchFn({ matchPatterns:matchDayPeriodPatterns, defaultMatchWidth:"any", parsePatterns:parseDayPeriodPatterns, defaultParseWidth:"any" }) }; // lib/locale/af.mjs var _af={ code:"af", formatDistance:formatDistance, formatLong:formatLong, formatRelative:formatRelative, localize:localize, match:match, options:{ weekStartsOn:0, firstWeekContainsDate:1 } }; // lib/locale/ar/_lib/formatDistance.mjs var formatDistanceLocale2={ lessThanXSeconds:{ one:"\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u0629", two:"\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u062A\u064A\u0646", threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0648\u0627\u0646\u064A", other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0627\u0646\u064A\u0629" }, xSeconds:{ one:"\u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629", two:"\u062B\u0627\u0646\u064A\u062A\u0627\u0646", threeToTen:"{{count}} \u062B\u0648\u0627\u0646\u064A", other:"{{count}} \u062B\u0627\u0646\u064A\u0629" }, halfAMinute:"\u0646\u0635\u0641 \u062F\u0642\u064A\u0642\u0629", lessThanXMinutes:{ one:"\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u0629", two:"\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u062A\u064A\u0646", threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u0627\u0626\u0642", other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u064A\u0642\u0629" }, xMinutes:{ one:"\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629", two:"\u062F\u0642\u064A\u0642\u062A\u0627\u0646", threeToTen:"{{count}} \u062F\u0642\u0627\u0626\u0642", other:"{{count}} \u062F\u0642\u064A\u0642\u0629" }, aboutXHours:{ one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B", two:"\u0633\u0627\u0639\u062A\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627", threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062A \u062A\u0642\u0631\u064A\u0628\u0627\u064B", other:"{{count}} \u0633\u0627\u0639\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B" }, xHours:{ one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629", two:"\u0633\u0627\u0639\u062A\u0627\u0646", threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062A", other:"{{count}} \u0633\u0627\u0639\u0629" }, xDays:{ one:"\u064A\u0648\u0645 \u0648\u0627\u062D\u062F", two:"\u064A\u0648\u0645\u0627\u0646", threeToTen:"{{count}} \u0623\u064A\u0627\u0645", other:"{{count}} \u064A\u0648\u0645" }, aboutXWeeks:{ one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627", two:"\u0623\u0633\u0628\u0648\u0639\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627", threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064A\u0639 \u062A\u0642\u0631\u064A\u0628\u0627", other:"{{count}} \u0623\u0633\u0628\u0648\u0639\u0627 \u062A\u0642\u0631\u064A\u0628\u0627" }, xWeeks:{ one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F", two:"\u0623\u0633\u0628\u0648\u0639\u0627\u0646", threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064A\u0639", other:"{{count}} \u0623\u0633\u0628\u0648\u0639\u0627" }, aboutXMonths:{ one:"\u0634\u0647\u0631 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B", two:"\u0634\u0647\u0631\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627", threeToTen:"{{count}} \u0623\u0634\u0647\u0631 \u062A\u0642\u0631\u064A\u0628\u0627", other:"{{count}} \u0634\u0647\u0631\u0627 \u062A\u0642\u0631\u064A\u0628\u0627\u064B" }, xMonths:{ one:"\u0634\u0647\u0631 \u0648\u0627\u062D\u062F", two:"\u0634\u0647\u0631\u0627\u0646", threeToTen:"{{count}} \u0623\u0634\u0647\u0631", other:"{{count}} \u0634\u0647\u0631\u0627" }, aboutXYears:{ one:"\u0633\u0646\u0629 \u0648\u0627\u062D\u062F\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B", two:"\u0633\u0646\u062A\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627", threeToTen:"{{count}} \u0633\u0646\u0648\u0627\u062A \u062A\u0642\u0631\u064A\u0628\u0627\u064B", other:"{{count}} \u0633\u0646\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B" }, xYears:{ one:"\u0633\u0646\u0629 \u0648\u0627\u062D\u062F", two:"\u0633\u0646\u062A\u0627\u0646", threeToTen:"{{count}} \u0633\u0646\u0648\u0627\u062A", other:"{{count}} \u0633\u0646\u0629" }, overXYears:{ one:"\u0623\u0643\u062B\u0631 \u0645\u0646 \u0633\u0646\u0629", two:"\u0623\u0643\u062B\u0631 \u0645\u0646 \u0633\u0646\u062A\u064A\u0646", threeToTen:"\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0633\u0646\u0648\u0627\u062A", other:"\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0633\u0646\u0629" }, almostXYears:{ one:"\u0645\u0627 \u064A\u0642\u0627\u0631\u0628 \u0633\u0646\u0629 \u0648\u0627\u062D\u062F\u0629", two:"\u0645\u0627 \u064A\u0642\u0627\u0631\u0628 \u0633\u0646\u062A\u064A\u0646", threeToTen:"\u0645\u0627 \u064A\u0642\u0627\u0631\u0628 {{count}} \u0633\u0646\u0648\u0627\u062A", other:"\u0645\u0627 \u064A\u0642\u0627\u0631\u0628 {{count}} \u0633\u0646\u0629" } }; var formatDistance3=function formatDistance3(token,count,options){ var usageGroup=formatDistanceLocale2[token]; var result; if(typeof usageGroup==="string"){ result=usageGroup; }else if(count===1){ result=usageGroup.one; }else if(count===2){ result=usageGroup.two; }else if(count<=10){ result=usageGroup.threeToTen.replace("{{count}}",String(count)); }else{ result=usageGroup.other.replace("{{count}}",String(count)); } if(options!==null&&options!==void 0&&options.addSuffix){ if(options.comparison&&options.comparison>0){ return"\u062E\u0644\u0627\u0644 "+result; }else{ return"\u0645\u0646\u0630 "+result; } } return result; }; // lib/locale/ar/_lib/formatLong.mjs var dateFormats2={ full:"EEEE\u060C do MMMM y", long:"do MMMM y", medium:"d MMM y", short:"dd/MM/yyyy" }; var timeFormats2={ full:"HH:mm:ss", long:"HH:mm:ss", medium:"HH:mm:ss", short:"HH:mm" }; var dateTimeFormats2={ full:"{{date}} '\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' {{time}}", long:"{{date}} '\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' {{time}}", medium:"{{date}}, {{time}}", short:"{{date}}, {{time}}" }; var formatLong3={ date:buildFormatLongFn({ formats:dateFormats2, defaultWidth:"full" }), time:buildFormatLongFn({ formats:timeFormats2, defaultWidth:"full" }), dateTime:buildFormatLongFn({ formats:dateTimeFormats2, defaultWidth:"full" }) }; // lib/locale/ar/_lib/formatRelative.mjs var formatRelativeLocale2={ lastWeek:"eeee '\u0627\u0644\u0645\u0627\u0636\u064A \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p", yesterday:"'\u0627\u0644\u0623\u0645\u0633 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p", today:"'\u0627\u0644\u064A\u0648\u0645 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p", tomorrow:"'\u063A\u062F\u0627 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p", nextWeek:"eeee '\u0627\u0644\u0642\u0627\u062F\u0645 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629' p", other:"P" }; var formatRelative3=function formatRelative3(token){return formatRelativeLocale2[token];}; // lib/locale/ar/_lib/localize.mjs var eraValues2={ narrow:["\u0642","\u0628"], abbreviated:["\u0642.\u0645.","\u0628.\u0645."], wide:["\u0642\u0628\u0644 \u0627\u0644\u0645\u064A\u0644\u0627\u062F","\u0628\u0639\u062F \u0627\u0644\u0645\u064A\u0644\u0627\u062F"] }; var quarterValues2={ narrow:["1","2","3","4"], abbreviated:["\u06311","\u06312","\u06313","\u06314"], wide:["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0646\u064A","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0644\u062B","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"] }; var monthValues2={ narrow:["\u064A","\u0641","\u0645","\u0623","\u0645","\u064A","\u064A","\u0623","\u0633","\u0623","\u0646","\u062F"], abbreviated:[ "\u064A\u0646\u0627\u064A\u0631", "\u0641\u0628\u0631\u0627\u064A\u0631", "\u0645\u0627\u0631\u0633", "\u0623\u0628\u0631\u064A\u0644", "\u0645\u0627\u064A\u0648", "\u064A\u0648\u0646\u064A\u0648", "\u064A\u0648\u0644\u064A\u0648", "\u0623\u063A\u0633\u0637\u0633", "\u0633\u0628\u062A\u0645\u0628\u0631", "\u0623\u0643\u062A\u0648\u0628\u0631", "\u0646\u0648\u0641\u0645\u0628\u0631", "\u062F\u064A\u0633\u0645\u0628\u0631"], wide:[ "\u064A\u0646\u0627\u064A\u0631", "\u0641\u0628\u0631\u0627\u064A\u0631", "\u0645\u0627\u0631\u0633", "\u0623\u0628\u0631\u064A\u0644", "\u0645\u0627\u064A\u0648", "\u064A\u0648\u0646\u064A\u0648", "\u064A\u0648\u0644\u064A\u0648", "\u0623\u063A\u0633\u0637\u0633", "\u0633\u0628\u062A\u0645\u0628\u0631", "\u0623\u0643\u062A\u0648\u0628\u0631", "\u0646\u0648\u0641\u0645\u0628\u0631", "\u062F\u064A\u0633\u0645\u0628\u0631"] }; var dayValues2={ narrow:["\u062D","\u0646","\u062B","\u0631","\u062E","\u062C","\u0633"], short:["\u0623\u062D\u062F","\u0627\u062B\u0646\u064A\u0646","\u062B\u0644\u0627\u062B\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062E\u0645\u064A\u0633","\u062C\u0645\u0639\u0629","\u0633\u0628\u062A"], abbreviated:["\u0623\u062D\u062F","\u0627\u062B\u0646\u064A\u0646","\u062B\u0644\u0627\u062B\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062E\u0645\u064A\u0633","\u062C\u0645\u0639\u0629","\u0633\u0628\u062A"], wide:[ "\u0627\u0644\u0623\u062D\u062F", "\u0627\u0644\u0627\u062B\u0646\u064A\u0646", "\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621", "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", "\u0627\u0644\u062E\u0645\u064A\u0633", "\u0627\u0644\u062C\u0645\u0639\u0629", "\u0627\u0644\u0633\u0628\u062A"] }; var dayPeriodValues2={ narrow:{ am:"\u0635", pm:"\u0645", morning:"\u0627\u0644\u0635\u0628\u0627\u062D", noon:"\u0627\u0644\u0638\u0647\u0631", afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631", evening:"\u0627\u0644\u0645\u0633\u0627\u0621", night:"\u0627\u0644\u0644\u064A\u0644", midnight:"\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644" }, abbreviated:{ am:"\u0635", pm:"\u0645", morning:"\u0627\u0644\u0635\u0628\u0627\u062D", noon:"\u0627\u0644\u0638\u0647\u0631", afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631", evening:"\u0627\u0644\u0645\u0633\u0627\u0621", night:"\u0627\u0644\u0644\u064A\u0644", midnight:"\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644" }, wide:{ am:"\u0635", pm:"\u0645", morning:"\u0627\u0644\u0635\u0628\u0627\u062D", noon:"\u0627\u0644\u0638\u0647\u0631", afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631", evening:"\u0627\u0644\u0645\u0633\u0627\u0621", night:"\u0627\u0644\u0644\u064A\u0644", midnight:"\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644" } }; var formattingDayPeriodValues2={ narrow:{ am:"\u0635", pm:"\u0645", morning:"\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D", noon:"\u0627\u0644\u0638\u0647\u0631", afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631", evening:"\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621", night:"\u0641\u064A \u0627\u0644\u0644\u064A\u0644", midnight:"\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644" }, abbreviated:{ am:"\u0635", pm:"\u0645", morning:"\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D", noon:"\u0627\u0644\u0638\u0647\u0631", afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631", evening:"\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621", night:"\u0641\u064A \u0627\u0644\u0644\u064A\u0644", midnight:"\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644" }, wide:{ am:"\u0635", pm:"\u0645", morning:"\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D", noon:"\u0627\u0644\u0638\u0647\u0631", afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631", evening:"\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621", night:"\u0641\u064A \u0627\u0644\u0644\u064A\u0644", midnight:"\u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644" } }; var ordinalNumber2=function ordinalNumber2(num){return String(num);}; var localize3={ ordinalNumber:ordinalNumber2, era:buildLocalizeFn({ values:eraValues2, defaultWidth:"wide" }), quarter:buildLocalizeFn({ values:quarterValues2, defaultWidth:"wide", argumentCallback:function argumentCallback(quarter){return quarter-1;} }), month:buildLocalizeFn({ values:monthValues2, defaultWidth:"wide" }), day:buildLocalizeFn({ values:dayValues2, defaultWidth:"wide" }), dayPeriod:buildLocalizeFn({ values:dayPeriodValues2, defaultWidth:"wide", formattingValues:formattingDayPeriodValues2, defaultFormattingWidth:"wide" }) }; // lib/locale/ar/_lib/match.mjs var matchOrdinalNumberPattern2=/^(\d+)(th|st|nd|rd)?/i; var parseOrdinalNumberPattern2=/\d+/i; var matchEraPatterns2={ narrow:/[قب]/, abbreviated:/[قب]\.م\./, wide:/(قبل|بعد) الميلاد/ }; var parseEraPatterns2={ any:[/قبل/,/بعد/] }; var matchQuarterPatterns2={ narrow:/^[1234]/i, abbreviated:/ر[1234]/, wide:/الربع (الأول|الثاني|الثالث|الرابع)/ }; var parseQuarterPatterns2={ any:[/1/i,/2/i,/3/i,/4/i] }; var matchMonthPatterns2={ narrow:/^[أيفمسند]/, abbreviated:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/ }; var parseMonthPatterns2={ narrow:[ /^ي/i, /^ف/i, /^م/i, /^أ/i, /^م/i, /^ي/i, /^ي/i, /^أ/i, /^س/i, /^أ/i, /^ن/i, /^د/i], any:[ /^يناير/i, /^فبراير/i, /^مارس/i, /^أبريل/i, /^مايو/i, /^يونيو/i, /^يوليو/i, /^أغسطس/i, /^سبتمبر/i, /^أكتوبر/i, /^نوفمبر/i, /^ديسمبر/i] }; var matchDayPatterns2={ narrow:/^[حنثرخجس]/i, short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i }; var parseDayPatterns2={ narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i], wide:[ /^الأحد/i, /^الاثنين/i, /^الثلاثاء/i, /^الأربعاء/i, /^الخميس/i, /^الجمعة/i, /^السبت/i], any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i] }; var matchDayPeriodPatterns2={ narrow:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/, any:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/ }; var parseDayPeriodPatterns2={ any:{ am:/^ص/, pm:/^م/, midnight:/منتصف الليل/, noon:/الظهر/, afternoon:/بعد الظهر/, morning:/في الصباح/, evening:/في المساء/, night:/في الليل/ } }; var match3={ ordinalNumber:buildMatchPatternFn({ matchPattern:matchOrdinalNumberPattern2, parsePattern:parseOrdinalNumberPattern2, valueCallback:function valueCallback(value){return parseInt(value,10);} }), era:buildMatchFn({ matchPatterns:matchEraPatterns2, defaultMatchWidth:"wide", parsePatterns:parseEraPatterns2, defaultParseWidth:"any" }), quarter:buildMatchFn({ matchPatterns:matchQuarterPatterns2, defaultMatchWidth:"wide", parsePatterns:parseQuarterPatterns2, defaultParseWidth:"any", valueCallback:function valueCallback(index){return index+1;} }), month:buildMatchFn({ matchPatterns:matchMonthPatterns2, defaultMatchWidth:"wide", parsePatterns:parseMonthPatterns2, defaultParseWidth:"any" }), day:buildMatchFn({ matchPatterns:matchDayPatterns2, defaultMatchWidth:"wide", parsePatterns:parseDayPatterns2, defaultParseWidth:"any" }), dayPeriod:buildMatchFn({ matchPatterns:matchDayPeriodPatterns2, defaultMatchWidth:"any", parsePatterns:parseDayPeriodPatterns2, defaultParseWidth:"any" }) }; // lib/locale/ar.mjs var _ar={ code:"ar", formatDistance:formatDistance3, formatLong:formatLong3, formatRelative:formatRelative3, localize:localize3, match:match3, options:{ weekStartsOn:6, firstWeekContainsDate:1 } }; // lib/locale/ar-DZ/_lib/formatDistance.mjs var formatDistanceLocale3={ lessThanXSeconds:{ one:"\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629", two:"\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u062A\u064A\u0646", threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0648\u0627\u0646\u064A", other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0627\u0646\u064A\u0629" }, xSeconds:{ one:"\u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629", two:"\u062B\u0627\u0646\u062A\u064A\u0646", threeToTen:"{{count}} \u062B\u0648\u0627\u0646\u064A", other:"{{count}} \u062B\u0627\u0646\u064A\u0629" }, halfAMinute:"\u0646\u0635\u0641 \u062F\u0642\u064A\u0642\u0629", lessThanXMinutes:{ one:"\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u0629", two:"\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u062A\u064A\u0646", threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u0627\u0626\u0642", other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u064A\u0642\u0629" }, xMinutes:{ one:"\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629", two:"\u062F\u0642\u064A\u0642\u062A\u064A\u0646", threeToTen:"{{count}} \u062F\u0642\u0627\u0626\u0642", other:"{{count}} \u062F\u0642\u064A\u0642\u0629" }, aboutXHours:{ one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B", two:"\u0633\u0627\u0639\u062A\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B", threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062A \u062A\u0642\u0631\u064A\u0628\u0627\u064B", other:"{{count}} \u0633\u0627\u0639\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B" }, xHours:{ one:"\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629", two:"\u0633\u0627\u0639\u062A\u064A\u0646", threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062A", other:"{{count}} \u0633\u0627\u0639\u0629" }, xDays:{ one:"\u064A\u0648\u0645 \u0648\u0627\u062D\u062F", two:"\u064A\u0648\u0645\u064A\u0646", threeToTen:"{{count}} \u0623\u064A\u0627\u0645", other:"{{count}} \u064A\u0648\u0645" }, aboutXWeeks:{ one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B", two:"\u0623\u0633\u0628\u0648\u0639\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B", threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064A\u0639 \u062A\u0642\u0631\u064A\u0628\u0627\u064B", other:"{{count}} \u0623\u0633\u0628\u0648\u0639 \u062A\u0642\u0631\u064A\u0628\u0627\u064B" }, xWeeks:{ one:"\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F", two:"\u0623\u0633\u0628\u0648\u0639\u064A\u0646", threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064A\u0639", other:"{{count}} \u0623\u0633\u0628\u0648\u0639" }, aboutXMonths:{ one:"\u0634\u0647\u0631 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B", two:"\u0634\u0647\u0631\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B", threeToTen:"{{count}} \u0623\u0634\u0647\u0631 \u062A\u0642\u0631\u064A\u0628\u0627\u064B", other:"{{count}} \u0634\u0647\u0631 \u062A\u0642\u0631\u064A\u0628\u0627\u064B" }, xMonths:{ one:"\u0634\u0647\u0631 \u0648\u0627\u062D\u062F", two:"\u0634\u0647\u0631\u064A\u0646", threeToTen:"{{count}} \u0623\u0634\u0647\u0631", other:"{{count}} \u0634\u0647\u0631" }, aboutXYears:{ one:"\u0639\u0627\u0645 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B", two:"\u0639\u0627\u0645\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B", threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B", other:"{{count}} \u0639\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B" }, xYears:{ one:"\u0639\u0627\u0645 \u0648\u0627\u062D\u062F", two:"\u0639\u0627\u0645\u064A\u0646", threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645", other:"{{count}} \u0639\u0627\u0645" }, overXYears:{ one:"\u0623\u0643\u062B\u0631 \u0645\u0646 \u0639\u0627\u0645", two:"\u0623\u0643\u062B\u0631 \u0645\u0646 \u0639\u0627\u0645\u064A\u0646", threeToTen:"\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0623\u0639\u0648\u0627\u0645", other:"\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0639\u0627\u0645" }, almostXYears:{ one:"\u0639\u0627\u0645 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B", two:"\u0639\u0627\u0645\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B", threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B", other:"{{count}} \u0639\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B" } }; var formatDistance5=function formatDistance5(token,count,options){ options=options||{}; var usageGroup=formatDistanceLocale3[token]; var result; if(typeof usageGroup==="string"){ result=usageGroup; }else if(count===1){ result=usageGroup.one; }else if(count===2){ result=usageGroup.two; }else if(count<=10){ result=usageGroup.threeToTen.replace("{{count}}",String(count)); }else{ result=usageGroup.other.replace("{{count}}",String(count)); } if(options.addSuffix){ if(options.comparison&&options.comparison>0){ return"\u0641\u064A \u062E\u0644\u0627\u0644 "+result; }else{ return"\u0645\u0646\u0630 "+result; } } return result; }; // lib/locale/ar-DZ/_lib/formatLong.mjs var dateFormats3={ full:"EEEE, MMMM do, y", long:"MMMM do, y", medium:"MMM d, y", short:"MM/dd/yyyy" }; var timeFormats3={ full:"h:mm:ss a zzzz", long:"h:mm:ss a z", medium:"h:mm:ss a", short:"h:mm a" }; var dateTimeFormats3={ full:"{{date}} '\u0639\u0646\u062F' {{time}}", long:"{{date}} '\u0639\u0646\u062F' {{time}}", medium:"{{date}}, {{time}}", short:"{{date}}, {{time}}" }; var formatLong5={ date:buildFormatLongFn({ formats:dateFormats3, defaultWidth:"full" }), time:buildFormatLongFn({ formats:timeFormats3, defaultWidth:"full" }), dateTime:buildFormatLongFn({ formats:dateTimeFormats3, defaultWidth:"full" }) }; // lib/locale/ar-DZ/_lib/formatRelative.mjs var formatRelativeLocale3={ lastWeek:"'\u0623\u062E\u0631' eeee '\u0639\u0646\u062F' p", yesterday:"'\u0623\u0645\u0633 \u0639\u0646\u062F' p", today:"'\u0627\u0644\u064A\u0648\u0645 \u0639\u0646\u062F' p", tomorrow:"'\u063A\u062F\u0627\u064B \u0639\u0646\u062F' p", nextWeek:"eeee '\u0639\u0646\u062F' p", other:"P" }; var formatRelative5=function formatRelative5(token,_date,_baseDate,_options){ return formatRelativeLocale3[token]; }; // lib/locale/ar-DZ/_lib/localize.mjs var eraValues3={ narrow:["\u0642","\u0628"], abbreviated:["\u0642.\u0645.","\u0628.\u0645."], wide:["\u0642\u0628\u0644 \u0627\u0644\u0645\u064A\u0644\u0627\u062F","\u0628\u0639\u062F \u0627\u0644\u0645\u064A\u0644\u0627\u062F"] }; var quarterValues3={ narrow:["1","2","3","4"], abbreviated:["\u06311","\u06312","\u06313","\u06314"], wide:["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0646\u064A","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0644\u062B","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"] }; var monthValues3={ narrow:["\u062C","\u0641","\u0645","\u0623","\u0645","\u062C","\u062C","\u0623","\u0633","\u0623","\u0646","\u062F"], abbreviated:[ "\u062C\u0627\u0646\u0640", "\u0641\u064A\u0641\u0640", "\u0645\u0627\u0631\u0633", "\u0623\u0641\u0631\u064A\u0644", "\u0645\u0627\u064A\u0640", "\u062C\u0648\u0627\u0646\u0640", "\u062C\u0648\u064A\u0640", "\u0623\u0648\u062A", "\u0633\u0628\u062A\u0640", "\u0623\u0643\u062A\u0640", "\u0646\u0648\u0641\u0640", "\u062F\u064A\u0633\u0640"], wide:[ "\u062C\u0627\u0646\u0641\u064A", "\u0641\u064A\u0641\u0631\u064A", "\u0645\u0627\u0631\u0633", "\u0623\u0641\u0631\u064A\u0644", "\u0645\u0627\u064A", "\u062C\u0648\u0627\u0646", "\u062C\u0648\u064A\u0644\u064A\u0629", "\u0623\u0648\u062A", "\u0633\u0628\u062A\u0645\u0628\u0631", "\u0623\u0643\u062A\u0648\u0628\u0631", "\u0646\u0648\u0641\u0645\u0628\u0631", "\u062F\u064A\u0633\u0645\u0628\u0631"] }; var dayValues3={ narrow:["\u062D","\u0646","\u062B","\u0631","\u062E","\u062C","\u0633"], short:["\u0623\u062D\u062F","\u0627\u062B\u0646\u064A\u0646","\u062B\u0644\u0627\u062B\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062E\u0645\u064A\u0633","\u062C\u0645\u0639\u0629","\u0633\u0628\u062A"], abbreviated:["\u0623\u062D\u062F","\u0627\u062B\u0646\u0640","\u062B\u0644\u0627","\u0623\u0631\u0628\u0640","\u062E\u0645\u064A\u0640","\u062C\u0645\u0639\u0629","\u0633\u0628\u062A"], wide:[ "\u0627\u0644\u0623\u062D\u062F", "\u0627\u0644\u0627\u062B\u0646\u064A\u0646", "\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621", "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", "\u0627\u0644\u062E\u0645\u064A\u0633", "\u0627\u0644\u062C\u0645\u0639\u0629", "\u0627\u0644\u0633\u0628\u062A"] }; var dayPeriodValues3={ narrow:{ am:"\u0635", pm:"\u0645", midnight:"\u0646", noon:"\u0638", morning:"\u0635\u0628\u0627\u062D\u0627\u064B", afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631", evening:"\u0645\u0633\u0627\u0621\u0627\u064B", night:"\u0644\u064A\u0644\u0627\u064B" }, abbreviated:{ am:"\u0635", pm:"\u0645", midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644", noon:"\u0638\u0647\u0631", morning:"\u0635\u0628\u0627\u062D\u0627\u064B", afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631", evening:"\u0645\u0633\u0627\u0621\u0627\u064B", night:"\u0644\u064A\u0644\u0627\u064B" }, wide:{ am:"\u0635", pm:"\u0645", midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644", noon:"\u0638\u0647\u0631", morning:"\u0635\u0628\u0627\u062D\u0627\u064B", afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631", evening:"\u0645\u0633\u0627\u0621\u0627\u064B", night:"\u0644\u064A\u0644\u0627\u064B" } }; var formattingDayPeriodValues3={ narrow:{ am:"\u0635", pm:"\u0645", midnight:"\u0646", noon:"\u0638", morning:"\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D", afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0640\u0647\u0631", evening:"\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621", night:"\u0641\u064A \u0627\u0644\u0644\u064A\u0644" }, abbreviated:{ am:"\u0635", pm:"\u0645", midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644", noon:"\u0638\u0647\u0631", morning:"\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D", afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631", evening:"\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621", night:"\u0641\u064A \u0627\u0644\u0644\u064A\u0644" }, wide:{ am:"\u0635", pm:"\u0645", midnight:"\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644", noon:"\u0638\u0647\u0631", morning:"\u0635\u0628\u0627\u062D\u0627\u064B", afternoon:"\u0628\u0639\u062F \u0627\u0644\u0638\u0640\u0647\u0631", evening:"\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621", night:"\u0641\u064A \u0627\u0644\u0644\u064A\u0644" } }; var ordinalNumber3=function ordinalNumber3(dirtyNumber){ return String(dirtyNumber); }; var localize5={ ordinalNumber:ordinalNumber3, era:buildLocalizeFn({ values:eraValues3, defaultWidth:"wide" }), quarter:buildLocalizeFn({ values:quarterValues3, defaultWidth:"wide", argumentCallback:function argumentCallback(quarter){return Number(quarter)-1;} }), month:buildLocalizeFn({ values:monthValues3, defaultWidth:"wide" }), day:buildLocalizeFn({ values:dayValues3, defaultWidth:"wide" }), dayPeriod:buildLocalizeFn({ values:dayPeriodValues3, defaultWidth:"wide", formattingValues:formattingDayPeriodValues3, defaultFormattingWidth:"wide" }) }; // lib/locale/ar-DZ/_lib/match.mjs var matchOrdinalNumberPattern3=/^(\d+)(th|st|nd|rd)?/i; var parseOrdinalNumberPattern3=/\d+/i; var matchEraPatterns3={ narrow:/^(ق|ب)/i, abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i }; var parseEraPatterns3={ any:[/^قبل/i,/^بعد/i] }; var matchQuarterPatterns3={ narrow:/^[1234]/i, abbreviated:/^ر[1234]/i, wide:/^الربع [1234]/i }; var parseQuarterPatterns3={ any:[/1/i,/2/i,/3/i,/4/i] }; var matchMonthPatterns3={ narrow:/^[جفمأسند]/i, abbreviated:/^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i, wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i }; var parseMonthPatterns3={ narrow:[ /^ج/i, /^ف/i, /^م/i, /^أ/i, /^م/i, /^ج/i, /^ج/i, /^أ/i, /^س/i, /^أ/i, /^ن/i, /^د/i], any:[ /^جان/i, /^فيف/i, /^مار/i, /^أفر/i, /^ماي/i, /^جوا/i, /^جوي/i, /^أوت/i, /^سبت/i, /^أكت/i, /^نوف/i, /^ديس/i] }; var matchDayPatterns3={ narrow:/^[حنثرخجس]/i, short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i, wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i }; var parseDayPatterns3={ narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i], wide:[ /^الأحد/i, /^الاثنين/i, /^الثلاثاء/i, /^الأربعاء/i, /^الخميس/i, /^الجمعة/i, /^السبت/i], any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i] }; var matchDayPeriodPatterns3={ narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i }; var parseDayPeriodPatterns3={ any:{ am:/^a/i, pm:/^p/i, midnight:/^mi/i, noon:/^no/i, morning:/morning/i, afternoon:/afternoon/i, evening:/evening/i, night:/night/i } }; var match5={ ordinalNumber:buildMatchPatternFn({ matchPattern:matchOrdinalNumberPattern3, parsePattern:parseOrdinalNumberPattern3, valueCallback:function valueCallback(value){return parseInt(value,10);} }), era:buildMatchFn({ matchPatterns:matchEraPatterns3, defaultMatchWidth:"wide", parsePatterns:parseEraPatterns3, defaultParseWidth:"any" }), quarter:buildMatchFn({ matchPatterns:matchQuarterPatterns3, defaultMatchWidth:"wide", parsePatterns:parseQuarterPatterns3, defaultParseWidth:"any", valueCallback:function valueCallback(index){return Number(index)+1;} }), month:buildMatchFn({ matchPatterns:matchMonthPatterns3, defaultMatchWidth:"wide", parsePatterns:parseMonthPatterns3, defaultParseWidth:"any" }), day:buildMatchFn({ matchPatterns:matchDayPatterns3, defaultMatchWidth:"wide", parsePatterns:parseDayPatterns3, defaultParseWidth:"any" }), dayPeriod:buildMatchFn({ matchPatterns:matchDayPeriodPatterns3, defaultMatchWidth:"any", parsePatterns:parseDayPeriodPatterns3, defaultParseWidth:"any" }) }; // lib/locale/ar-DZ.mjs var _arDZ={ code:"ar-DZ", formatDistance:formatDistance5, formatLong:formatLong5, formatRelative:formatRelative5, localize:localize5, match:match5, options:{ weekStartsOn:0, firstWeekContainsDate:1 } }; // lib/locale/ar-EG/_lib/formatDistance.mjs var formatDistanceLocale4={ lessThanXSeconds:{ one:"\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u0629", two:"\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u062A\u064A\u0646", threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0648\u0627\u0646\u064A", other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0627\u0646\u064A\u0629" }, xSeconds:{ one:"\u062B\u0627\u0646\u064A\u0629", two:"\u062B\u0627\u0646\u064A\u062A\u064A\u0646", threeToTen:"{{count}} \u062B\u0648\u0627\u0646\u064A", other:"{{count}} \u062B\u0627\u0646\u064A\u0629" }, halfAMinute:"\u0646\u0635 \u062F\u0642\u064A\u0642\u0629", lessThanXMinutes:{ one:"\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u0629", two:"\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u062A\u064A\u0646", threeToTen:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u0627\u064A\u0642", other:"\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u064A\u0642\u0629" }, xMinutes:{ one:"\u062F\u0642\u064A\u0642\u0629", two:"\u062F\u0642\u064A\u0642\u062A\u064A\u0646", threeToTen:"{{count}} \u062F\u0642\u0627\u064A\u0642", other:"{{count}} \u062F\u0642\u064A\u0642\u0629" }, aboutXHours:{ one:"\u062D\u0648\u0627\u0644\u064A \u0633\u0627\u0639\u0629", two:"\u062D\u0648\u0627\u0644\u064A \u0633\u0627\u0639\u062A\u064A\u0646", threeToTen:"\u062D\u0648\u0627\u0644\u064A {{count}} \u0633\u0627\u0639\u0627\u062A", other:"\u062D\u0648\u0627\u0644\u064A {{count}} \u0633\u0627\u0639\u0629" }, xHours:{ one:"\u0633\u0627\u0639\u0629", two:"\u0633\u0627\u0639\u062A\u064A\u0646", threeToTen:"{{count}} \u0633\u0627\u0639\u0627\u062A", other:"{{count}} \u0633\u0627\u0639\u0629" }, xDays:{ one:"\u064A\u0648\u0645", two:"\u064A\u0648\u0645\u064A\u0646", threeToTen:"{{count}} \u0623\u064A\u0627\u0645", other:"{{count}} \u064A\u0648\u0645" }, aboutXWeeks:{ one:"\u062D\u0648\u0627\u0644\u064A \u0623\u0633\u0628\u0648\u0639", two:"\u062D\u0648\u0627\u0644\u064A \u0623\u0633\u0628\u0648\u0639\u064A\u0646", threeToTen:"\u062D\u0648\u0627\u0644\u064A {{count}} \u0623\u0633\u0627\u0628\u064A\u0639", other:"\u062D\u0648\u0627\u0644\u064A {{count}} \u0623\u0633\u0628\u0648\u0639" }, xWeeks:{ one:"\u0623\u0633\u0628\u0648\u0639", two:"\u0623\u0633\u0628\u0648\u0639\u064A\u0646", threeToTen:"{{count}} \u0623\u0633\u0627\u0628\u064A\u0639", other:"{{count}} \u0623\u0633\u0628\u0648\u0639" }, aboutXMonths:{ one:"\u062D\u0648\u0627\u0644\u064A \u0634\u0647\u0631", two:"\u062D\u0648\u0627\u0644\u064A \u0634\u0647\u0631\u064A\u0646", threeToTen:"\u062D\u0648\u0627\u0644\u064A {{count}} \u0623\u0634\u0647\u0631", other:"\u062D\u0648\u0627\u0644\u064A {{count}} \u0634\u0647\u0631" }, xMonths:{ one:"\u0634\u0647\u0631", two:"\u0634\u0647\u0631\u064A\u0646", threeToTen:"{{count}} \u0623\u0634\u0647\u0631", other:"{{count}} \u0634\u0647\u0631" }, aboutXYears:{ one:"\u062D\u0648\u0627\u0644\u064A \u0633\u0646\u0629", two:"\u062D\u0648\u0627\u0644\u064A \u0633\u0646\u062A\u064A\u0646", threeToTen:"\u062D\u0648\u0627\u0644\u064A {{count}} \u0633\u0646\u064A\u0646", other:"\u062D\u0648\u0627\u0644\u064A {{count}} \u0633\u0646\u0629" }, xYears:{ one:"\u0639\u0627\u0645", two:"\u0639\u0627\u0645\u064A\u0646", threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645", other:"{{count}} \u0639\u0627\u0645" }, overXYears:{ one:"\u0623\u0643\u062B\u0631 \u0645\u0646 \u0633\u0646\u0629", two:"\u0623\u0643\u062B\u0631 \u0645\u0646 \u0633\u0646\u062A\u064A\u0646", threeToTen:"\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0633\u0646\u064A\u0646", other:"\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0633\u0646\u0629" }, almostXYears:{ one:"\u0639\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u064B\u0627", two:"\u0639\u0627\u0645\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u064B\u0627", threeToTen:"{{count}} \u0623\u0639\u0648\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u064B\u0627", other:"{{count}} \u0639\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u064B\u0627" } }; var formatDistance7=function formatDistance7(token,count,options){ var result; var tokenValue=formatDistanceLocale4[token]; if(typeof tokenValue==="string"){ result=tokenValue; }else if(count===1){ result=tokenValue.one; }else if(count===2){ result=tokenValue.two; }else if(count<=10){ result=tokenValue.threeToTen.replace("{{count}}",String(count)); }else{ result=tokenValue.ot